/*
 * Copyright (c) 2020 aureliancnx
 *
 * MIT LICENSE
 *
 * This project is part of aureliancnx.
 * See https://github.com/aureliancnx/Bubulle-Norminette for further info.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE. */
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");!function(){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){var I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(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 b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o,e,n,r,D=(o=jQuery,e=!1,n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},r={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return 0<o(e).length?e:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o(t).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},typeCheckConfig:function(t,e,n){for(var i in n)if(n.hasOwnProperty(i)){var o=n[i],r=e[i],s=r&&((l=r)[0]||l).nodeType?"element":(a=r,{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a,l}},e=function(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in n)if(void 0!==t.style[e])return{end:n[e]};return!1}(),o.fn.emulateTransitionEnd=t,r.supportsTransitionEnd()&&(o.event.special[r.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(t){if(o(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),r);function t(t){var e=this,n=!1;return o(this).one(r.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||r.triggerTransitionEnd(e)},t),this}var s,a,l,h,c,u,d,f,p,_;s=jQuery,a="alert",h="."+(l="bs.alert"),c=s.fn[a],u={CLOSE:"close"+h,CLOSED:"closed"+h,CLICK_DATA_API:"click"+h+".data-api"},d="alert",f="fade",p="show",g.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},g.prototype.dispose=function(){s.removeData(this._element,l),this._element=null},g.prototype._getRootElement=function(t){var e=D.getSelectorFromElement(t),n=!1;return e&&(n=s(e)[0]),n=n||s(t).closest("."+d)[0]},g.prototype._triggerCloseEvent=function(t){var e=s.Event(u.CLOSE);return s(t).trigger(e),e},g.prototype._removeElement=function(e){var n=this;s(e).removeClass(p),D.supportsTransitionEnd()&&s(e).hasClass(f)?s(e).one(D.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(150):this._destroyElement(e)},g.prototype._destroyElement=function(t){s(t).detach().trigger(u.CLOSED).remove()},g._jQueryInterface=function(n){return this.each(function(){var t=s(this),e=t.data(l);e||(e=new g(this),t.data(l,e)),"close"===n&&e[n](this)})},g._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},A(g,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),_=g,s(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',_._handleDismiss(new _)),s.fn[a]=_._jQueryInterface,s.fn[a].Constructor=_,s.fn[a].noConflict=function(){return s.fn[a]=c,_._jQueryInterface};function g(t){b(this,g),this._element=t}var m,v,y,E,T,C,S,w,N,O,k,P,L,j,R,x;m=jQuery,v="button",E="."+(y="bs.button"),T=".data-api",C=m.fn[v],S="active",w="btn",O='[data-toggle^="button"]',k='[data-toggle="buttons"]',P="input",L=".active",j=".btn",R={CLICK_DATA_API:"click"+E+T,FOCUS_BLUR_DATA_API:(N="focus")+E+T+" blur"+E+T},H.prototype.toggle=function(){var t=!0,e=!0,n=m(this._element).closest(k)[0];if(n){var i,o=m(this._element).find(P)[0];if(o){if("radio"===o.type&&(o.checked&&m(this._element).hasClass(S)?t=!1:(i=m(n).find(L)[0])&&m(i).removeClass(S)),t){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!m(this._element).hasClass(S),m(o).trigger("change")}o.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!m(this._element).hasClass(S)),t&&m(this._element).toggleClass(S)},H.prototype.dispose=function(){m.removeData(this._element,y),this._element=null},H._jQueryInterface=function(e){return this.each(function(){var t=m(this).data(y);t||(t=new H(this),m(this).data(y,t)),"toggle"===e&&t[e]()})},A(H,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),x=H,m(document).on(R.CLICK_DATA_API,O,function(t){t.preventDefault();var e=t.target;m(e).hasClass(w)||(e=m(e).closest(j)),x._jQueryInterface.call(m(e),"toggle")}).on(R.FOCUS_BLUR_DATA_API,O,function(t){var e=m(t.target).closest(j)[0];m(e).toggleClass(N,/^focus(in)?$/.test(t.type))}),m.fn[v]=x._jQueryInterface,m.fn[v].Constructor=x,m.fn[v].noConflict=function(){return m.fn[v]=C,x._jQueryInterface};function H(t){b(this,H),this._element=t}var W,M,Q,U,K,B,V,F,G,Y,q,z,X,Z,J,$,tt,et,nt,it,ot,rt;W=jQuery,M="carousel",U="."+(Q="bs.carousel"),K=".data-api",B=W.fn[M],V={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},F={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},G="next",Y="prev",q="left",z="right",X={SLIDE:"slide"+U,SLID:"slid"+U,KEYDOWN:"keydown"+U,MOUSEENTER:"mouseenter"+U,MOUSELEAVE:"mouseleave"+U,TOUCHEND:"touchend"+U,LOAD_DATA_API:"load"+U+K,CLICK_DATA_API:"click"+U+K},Z="carousel",J="active",$="slide",tt="carousel-item-right",et="carousel-item-left",nt="carousel-item-next",it="carousel-item-prev",ot={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},st.prototype.next=function(){this._isSliding||this._slide(G)},st.prototype.nextWhenVisible=function(){document.hidden||this.next()},st.prototype.prev=function(){this._isSliding||this._slide(Y)},st.prototype.pause=function(t){t||(this._isPaused=!0),W(this._element).find(ot.NEXT_PREV)[0]&&D.supportsTransitionEnd()&&(D.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},st.prototype.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))},st.prototype.to=function(t){var e=this;this._activeElement=W(this._element).find(ot.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)W(this._element).one(X.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?G:Y;this._slide(i,this._items[t])}},st.prototype.dispose=function(){W(this._element).off(U),W.removeData(this._element,Q),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},st.prototype._getConfig=function(t){return t=W.extend({},V,t),D.typeCheckConfig(M,t,F),t},st.prototype._addEventListeners=function(){var e=this;this._config.keyboard&&W(this._element).on(X.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(W(this._element).on(X.MOUSEENTER,function(t){return e.pause(t)}).on(X.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&W(this._element).on(X.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},st.prototype._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();break;default:return}},st.prototype._getItemIndex=function(t){return this._items=W.makeArray(W(t).parent().find(ot.ITEM)),this._items.indexOf(t)},st.prototype._getItemByDirection=function(t,e){var n=t===G,i=t===Y,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===Y?-1:1))%this._items.length;return-1==s?this._items[this._items.length-1]:this._items[s]},st.prototype._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(W(this._element).find(ot.ACTIVE_ITEM)[0]),o=W.Event(X.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return W(this._element).trigger(o),o},st.prototype._setActiveIndicatorElement=function(t){var e;this._indicatorsElement&&(W(this._indicatorsElement).find(ot.ACTIVE).removeClass(J),(e=this._indicatorsElement.children[this._getItemIndex(t)])&&W(e).addClass(J))},st.prototype._slide=function(t,e){var n,i=this,o=W(this._element).find(ot.ACTIVE_ITEM)[0],r=this._getItemIndex(o),s=e||o&&this._getItemByDirection(t,o),a=this._getItemIndex(s),l=Boolean(this._interval),h=void 0,c=void 0,u=void 0,u=t===G?(h=et,c=nt,q):(h=tt,c=it,z);s&&W(s).hasClass(J)?this._isSliding=!1:this._triggerSlideEvent(s,u).isDefaultPrevented()||o&&s&&(this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(s),n=W.Event(X.SLID,{relatedTarget:s,direction:u,from:r,to:a}),D.supportsTransitionEnd()&&W(this._element).hasClass($)?(W(s).addClass(c),D.reflow(s),W(o).addClass(h),W(s).addClass(h),W(o).one(D.TRANSITION_END,function(){W(s).removeClass(h+" "+c).addClass(J),W(o).removeClass(J+" "+c+" "+h),i._isSliding=!1,setTimeout(function(){return W(i._element).trigger(n)},0)}).emulateTransitionEnd(600)):(W(o).removeClass(J),W(s).addClass(J),this._isSliding=!1,W(this._element).trigger(n)),l&&this.cycle())},st._jQueryInterface=function(i){return this.each(function(){var t=W(this).data(Q),e=W.extend({},V,W(this).data());"object"===(void 0===i?"undefined":I(i))&&W.extend(e,i);var n="string"==typeof i?i:e.slide;if(t||(t=new st(this,e),W(this).data(Q,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}else e.interval&&(t.pause(),t.cycle())})},st._dataApiClickHandler=function(t){var e,n,i,o=D.getSelectorFromElement(this);!o||(e=W(o)[0])&&W(e).hasClass(Z)&&(n=W.extend({},W(e).data(),W(this).data()),(i=this.getAttribute("data-slide-to"))&&(n.interval=!1),st._jQueryInterface.call(W(e),n),i&&W(e).data(Q).to(i),t.preventDefault())},A(st,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return V}}]),rt=st,W(document).on(X.CLICK_DATA_API,ot.DATA_SLIDE,rt._dataApiClickHandler),W(window).on(X.LOAD_DATA_API,function(){W(ot.DATA_RIDE).each(function(){var t=W(this);rt._jQueryInterface.call(t,t.data())})}),W.fn[M]=rt._jQueryInterface,W.fn[M].Constructor=rt,W.fn[M].noConflict=function(){return W.fn[M]=B,rt._jQueryInterface};function st(t,e){b(this,st),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=W(t)[0],this._indicatorsElement=W(this._element).find(ot.INDICATORS)[0],this._addEventListeners()}var at,lt,ht,ct,ut,dt,ft,pt,_t,gt,mt,vt,yt,Et,Tt,Ct;at=jQuery,lt="collapse",ct="."+(ht="bs.collapse"),ut=at.fn[lt],dt={toggle:!0,parent:""},ft={toggle:"boolean",parent:"string"},pt={SHOW:"show"+ct,SHOWN:"shown"+ct,HIDE:"hide"+ct,HIDDEN:"hidden"+ct,CLICK_DATA_API:"click"+ct+".data-api"},_t="show",gt="collapse",mt="collapsing",vt="collapsed",yt="width",Et="height",Tt={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},It.prototype.toggle=function(){at(this._element).hasClass(_t)?this.hide():this.show()},It.prototype.show=function(){var t,e,n,i,o,r,s=this;this._isTransitioning||at(this._element).hasClass(_t)||(e=t=void 0,this._parent&&((t=at.makeArray(at(this._parent).children().children(Tt.ACTIVES))).length||(t=null)),t&&(e=at(t).data(ht))&&e._isTransitioning||(n=at.Event(pt.SHOW),at(this._element).trigger(n),n.isDefaultPrevented()||(t&&(It._jQueryInterface.call(at(t),"hide"),e||at(t).data(ht,null)),i=this._getDimension(),at(this._element).removeClass(gt).addClass(mt),this._element.style[i]=0,this._triggerArray.length&&at(this._triggerArray).removeClass(vt).attr("aria-expanded",!0),this.setTransitioning(!0),o=function(){at(s._element).removeClass(mt).addClass(gt).addClass(_t),s._element.style[i]="",s.setTransitioning(!1),at(s._element).trigger(pt.SHOWN)},D.supportsTransitionEnd()?(r="scroll"+(i[0].toUpperCase()+i.slice(1)),at(this._element).one(D.TRANSITION_END,o).emulateTransitionEnd(600),this._element.style[i]=this._element[r]+"px"):o())))},It.prototype.hide=function(){var t=this;if(!this._isTransitioning&&at(this._element).hasClass(_t)){var e=at.Event(pt.HIDE);if(at(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",D.reflow(this._element),at(this._element).addClass(mt).removeClass(gt).removeClass(_t),this._triggerArray.length)for(var i=0;i<this._triggerArray.length;i++){var o=this._triggerArray[i],r=D.getSelectorFromElement(o);null!==r&&(at(r).hasClass(_t)||at(o).addClass(vt).attr("aria-expanded",!1))}function s(){t.setTransitioning(!1),at(t._element).removeClass(mt).addClass(gt).trigger(pt.HIDDEN)}this.setTransitioning(!0),this._element.style[n]="",D.supportsTransitionEnd()?at(this._element).one(D.TRANSITION_END,s).emulateTransitionEnd(600):s()}}},It.prototype.setTransitioning=function(t){this._isTransitioning=t},It.prototype.dispose=function(){at.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},It.prototype._getConfig=function(t){return(t=at.extend({},dt,t)).toggle=Boolean(t.toggle),D.typeCheckConfig(lt,t,ft),t},It.prototype._getDimension=function(){return at(this._element).hasClass(yt)?yt:Et},It.prototype._getParent=function(){var n=this,t=at(this._config.parent)[0],e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return at(t).find(e).each(function(t,e){n._addAriaAndCollapsedClass(It._getTargetFromElement(e),[e])}),t},It.prototype._addAriaAndCollapsedClass=function(t,e){var n;t&&(n=at(t).hasClass(_t),e.length&&at(e).toggleClass(vt,!n).attr("aria-expanded",n))},It._getTargetFromElement=function(t){var e=D.getSelectorFromElement(t);return e?at(e)[0]:null},It._jQueryInterface=function(i){return this.each(function(){var t=at(this),e=t.data(ht),n=at.extend({},dt,t.data(),"object"===(void 0===i?"undefined":I(i))&&i);if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new It(this,n),t.data(ht,e)),"string"==typeof i){if(void 0===e[i])throw new Error('No method named "'+i+'"');e[i]()}})},A(It,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return dt}}]),Ct=It,at(document).on(pt.CLICK_DATA_API,Tt.DATA_TOGGLE,function(t){/input|textarea/i.test(t.target.tagName)||t.preventDefault();var n=at(this),e=D.getSelectorFromElement(this);at(e).each(function(){var t=at(this),e=t.data(ht)?"toggle":n.data();Ct._jQueryInterface.call(t,e)})}),at.fn[lt]=Ct._jQueryInterface,at.fn[lt].Constructor=Ct,at.fn[lt].noConflict=function(){return at.fn[lt]=ut,Ct._jQueryInterface};function It(t,e){b(this,It),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=at.makeArray(at('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=at(Tt.DATA_TOGGLE),i=0;i<n.length;i++){var o=n[i],r=D.getSelectorFromElement(o);null!==r&&0<at(r).filter(t).length&&this._triggerArray.push(o)}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var At,bt,Dt,St,wt,Nt,Ot,kt,Pt,Lt,jt,Rt,xt,Ht,Wt;(function(l){if("undefined"==typeof Popper)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var n="dropdown",h="bs.dropdown",t="."+h,e=".data-api",i=l.fn[n],s=new RegExp("38|40|27"),c={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,CLICK:"click"+t,CLICK_DATA_API:"click"+t+e,KEYDOWN_DATA_API:"keydown"+t+e,KEYUP_DATA_API:"keyup"+t+e},a="disabled",u="show",r="dropup",d="dropdown-menu-right",f="dropdown-menu-left",p='[data-toggle="dropdown"]',o=".dropdown form",_=".dropdown-menu",g=".navbar-nav",m=".dropdown-menu .dropdown-item:not(.disabled)",v={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},y={placement:v.BOTTOM,offset:0,flip:!0},E={placement:"string",offset:"(number|string)",flip:"boolean"},T=(C.prototype.toggle=function(){var t,e,n,i,o;this._element.disabled||l(this._element).hasClass(a)||(t=C._getParentFromElement(this._element),e=l(this._menu).hasClass(u),C._clearMenus(),e||(n={relatedTarget:this._element},i=l.Event(c.SHOW,n),l(t).trigger(i),i.isDefaultPrevented()||(o=this._element,l(t).hasClass(r)&&(l(this._menu).hasClass(f)||l(this._menu).hasClass(d))&&(o=t),this._popper=new Popper(o,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!l(t).closest(g).length&&l("body").children().on("mouseover",null,l.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),l(this._menu).toggleClass(u),l(t).toggleClass(u).trigger(l.Event(c.SHOWN,n)))))},C.prototype.dispose=function(){l.removeData(this._element,h),l(this._element).off(t),this._element=null,(this._menu=null)!==this._popper&&this._popper.destroy(),this._popper=null},C.prototype.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},C.prototype._addEventListeners=function(){var e=this;l(this._element).on(c.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},C.prototype._getConfig=function(t){var e=l(this._element).data();return void 0!==e.placement&&(e.placement=v[e.placement.toUpperCase()]),t=l.extend({},this.constructor.Default,l(this._element).data(),t),D.typeCheckConfig(n,t,this.constructor.DefaultType),t},C.prototype._getMenuElement=function(){var t;return this._menu||(t=C._getParentFromElement(this._element),this._menu=l(t).find(_)[0]),this._menu},C.prototype._getPlacement=function(){var t=l(this._element).parent(),e=this._config.placement;return t.hasClass(r)||this._config.placement===v.TOP?(e=v.TOP,l(this._menu).hasClass(d)&&(e=v.TOPEND)):l(this._menu).hasClass(d)&&(e=v.BOTTOMEND),e},C.prototype._detectNavbar=function(){return 0<l(this._element).closest(".navbar").length},C.prototype._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(t.modifiers.applyStyle={enabled:!this._inNavbar}),t},C._jQueryInterface=function(n){return this.each(function(){var t=l(this).data(h),e="object"===(void 0===n?"undefined":I(n))?n:null;if(t||(t=new C(this,e),l(this).data(h,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},C._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=l.makeArray(l(p)),n=0;n<e.length;n++){var i,o,r=C._getParentFromElement(e[n]),s=l(e[n]).data(h),a={relatedTarget:e[n]};s&&(i=s._menu,l(r).hasClass(u)&&(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&l.contains(r,t.target)||(o=l.Event(c.HIDE,a),l(r).trigger(o),o.isDefaultPrevented()||("ontouchstart"in document.documentElement&&l("body").children().off("mouseover",null,l.noop),e[n].setAttribute("aria-expanded","false"),l(i).removeClass(u),l(r).removeClass(u).trigger(l.Event(c.HIDDEN,a))))))}},C._getParentFromElement=function(t){var e=void 0,n=D.getSelectorFromElement(t);return n&&(e=l(n)[0]),e||t.parentNode},C._dataApiKeydownHandler=function(t){if(!(!s.test(t.which)||/button/i.test(t.target.tagName)&&32===t.which||/input|textarea/i.test(t.target.tagName)||(t.preventDefault(),t.stopPropagation(),this.disabled||l(this).hasClass(a)))){var e,n=C._getParentFromElement(this),i=l(n).hasClass(u);if(!i&&(27!==t.which||32!==t.which)||i&&(27===t.which||32===t.which))return 27===t.which&&(e=l(n).find(p)[0],l(e).trigger("focus")),void l(this).trigger("click");var o,r=l(n).find(m).get();r.length&&(o=r.indexOf(t.target),38===t.which&&0<o&&o--,40===t.which&&o<r.length-1&&o++,o<0&&(o=0),r[o].focus())}},A(C,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return y}},{key:"DefaultType",get:function(){return E}}]),C);function C(t,e){b(this,C),this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}l(document).on(c.KEYDOWN_DATA_API,p,T._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API,_,T._dataApiKeydownHandler).on(c.CLICK_DATA_API+" "+c.KEYUP_DATA_API,T._clearMenus).on(c.CLICK_DATA_API,p,function(t){t.preventDefault(),t.stopPropagation(),T._jQueryInterface.call(l(this),"toggle")}).on(c.CLICK_DATA_API,o,function(t){t.stopPropagation()}),l.fn[n]=T._jQueryInterface,l.fn[n].Constructor=T,l.fn[n].noConflict=function(){return l.fn[n]=i,T._jQueryInterface}})(jQuery),At=jQuery,bt="modal",St="."+(Dt="bs.modal"),wt=At.fn[bt],Nt={backdrop:!0,keyboard:!0,focus:!0,show:!0},Ot={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},kt={HIDE:"hide"+St,HIDDEN:"hidden"+St,SHOW:"show"+St,SHOWN:"shown"+St,FOCUSIN:"focusin"+St,RESIZE:"resize"+St,CLICK_DISMISS:"click.dismiss"+St,KEYDOWN_DISMISS:"keydown.dismiss"+St,MOUSEUP_DISMISS:"mouseup.dismiss"+St,MOUSEDOWN_DISMISS:"mousedown.dismiss"+St,CLICK_DATA_API:"click"+St+".data-api"},Pt="modal-scrollbar-measure",Lt="modal-backdrop",jt="modal-open",Rt="fade",xt="show",Ht={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},Mt.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},Mt.prototype.show=function(t){var e,n=this;this._isTransitioning||(D.supportsTransitionEnd()&&At(this._element).hasClass(Rt)&&(this._isTransitioning=!0),e=At.Event(kt.SHOW,{relatedTarget:t}),At(this._element).trigger(e),this._isShown||e.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),At(document.body).addClass(jt),this._setEscapeEvent(),this._setResizeEvent(),At(this._element).on(kt.CLICK_DISMISS,Ht.DATA_DISMISS,function(t){return n.hide(t)}),At(this._dialog).on(kt.MOUSEDOWN_DISMISS,function(){At(n._element).one(kt.MOUSEUP_DISMISS,function(t){At(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)})))},Mt.prototype.hide=function(t){var e,n,i=this;t&&t.preventDefault(),!this._isTransitioning&&this._isShown&&((e=D.supportsTransitionEnd()&&At(this._element).hasClass(Rt))&&(this._isTransitioning=!0),n=At.Event(kt.HIDE),At(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),At(document).off(kt.FOCUSIN),At(this._element).removeClass(xt),At(this._element).off(kt.CLICK_DISMISS),At(this._dialog).off(kt.MOUSEDOWN_DISMISS),e?At(this._element).one(D.TRANSITION_END,function(t){return i._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()))},Mt.prototype.dispose=function(){At.removeData(this._element,Dt),At(window,document,this._element,this._backdrop).off(St),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},Mt.prototype.handleUpdate=function(){this._adjustDialog()},Mt.prototype._getConfig=function(t){return t=At.extend({},Nt,t),D.typeCheckConfig(bt,t,Ot),t},Mt.prototype._showElement=function(t){var e=this,n=D.supportsTransitionEnd()&&At(this._element).hasClass(Rt);function i(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,At(e._element).trigger(o)}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.scrollTop=0,n&&D.reflow(this._element),At(this._element).addClass(xt),this._config.focus&&this._enforceFocus();var o=At.Event(kt.SHOWN,{relatedTarget:t});n?At(this._dialog).one(D.TRANSITION_END,i).emulateTransitionEnd(300):i()},Mt.prototype._enforceFocus=function(){var e=this;At(document).off(kt.FOCUSIN).on(kt.FOCUSIN,function(t){document===t.target||e._element===t.target||At(e._element).has(t.target).length||e._element.focus()})},Mt.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?At(this._element).on(kt.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||At(this._element).off(kt.KEYDOWN_DISMISS)},Mt.prototype._setResizeEvent=function(){var e=this;this._isShown?At(window).on(kt.RESIZE,function(t){return e.handleUpdate(t)}):At(window).off(kt.RESIZE)},Mt.prototype._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){At(document.body).removeClass(jt),t._resetAdjustments(),t._resetScrollbar(),At(t._element).trigger(kt.HIDDEN)})},Mt.prototype._removeBackdrop=function(){this._backdrop&&(At(this._backdrop).remove(),this._backdrop=null)},Mt.prototype._showBackdrop=function(t){var e,n=this,i=At(this._element).hasClass(Rt)?Rt:"";if(this._isShown&&this._config.backdrop){var o=D.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=Lt,i&&At(this._backdrop).addClass(i),At(this._backdrop).appendTo(document.body),At(this._element).on(kt.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),o&&D.reflow(this._backdrop),At(this._backdrop).addClass(xt),!t)return;if(!o)return void t();At(this._backdrop).one(D.TRANSITION_END,t).emulateTransitionEnd(150)}else!this._isShown&&this._backdrop?(At(this._backdrop).removeClass(xt),e=function(){n._removeBackdrop(),t&&t()},D.supportsTransitionEnd()&&At(this._element).hasClass(Rt)?At(this._backdrop).one(D.TRANSITION_END,e).emulateTransitionEnd(150):e()):t&&t()},Mt.prototype._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")},Mt.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},Mt.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},Mt.prototype._setScrollbar=function(){var t,e,o=this;this._isBodyOverflowing&&(At(Ht.FIXED_CONTENT).each(function(t,e){var n=At(e)[0].style.paddingRight,i=At(e).css("padding-right");At(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),At(Ht.NAVBAR_TOGGLER).each(function(t,e){var n=At(e)[0].style.marginRight,i=At(e).css("margin-right");At(e).data("margin-right",n).css("margin-right",parseFloat(i)+o._scrollbarWidth+"px")}),t=document.body.style.paddingRight,e=At("body").css("padding-right"),At("body").data("padding-right",t).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px"))},Mt.prototype._resetScrollbar=function(){At(Ht.FIXED_CONTENT).each(function(t,e){var n=At(e).data("padding-right");void 0!==n&&At(e).css("padding-right",n).removeData("padding-right")}),At(Ht.NAVBAR_TOGGLER).each(function(t,e){var n=At(e).data("margin-right");void 0!==n&&At(e).css("margin-right",n).removeData("margin-right")});var t=At("body").data("padding-right");void 0!==t&&At("body").css("padding-right",t).removeData("padding-right")},Mt.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=Pt,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Mt._jQueryInterface=function(n,i){return this.each(function(){var t=At(this).data(Dt),e=At.extend({},Mt.Default,At(this).data(),"object"===(void 0===n?"undefined":I(n))&&n);if(t||(t=new Mt(this,e),At(this).data(Dt,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},A(Mt,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return Nt}}]),Wt=Mt,At(document).on(kt.CLICK_DATA_API,Ht.DATA_TOGGLE,function(t){var e=this,n=void 0,i=D.getSelectorFromElement(this);i&&(n=At(i)[0]);var o=At(n).data(Dt)?"toggle":At.extend({},At(n).data(),At(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=At(n).one(kt.SHOW,function(t){t.isDefaultPrevented()||r.one(kt.HIDDEN,function(){At(e).is(":visible")&&e.focus()})});Wt._jQueryInterface.call(At(n),o,this)}),At.fn[bt]=Wt._jQueryInterface,At.fn[bt].Constructor=Wt,At.fn[bt].noConflict=function(){return At.fn[bt]=wt,Wt._jQueryInterface};function Mt(t,e){b(this,Mt),this._config=this._getConfig(e),this._element=t,this._dialog=At(t).find(Ht.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var Qt,Ut,Kt,Bt,Vt,Ft,Gt,Yt,qt,zt,Xt,Zt,Jt,$t;Qt=jQuery,Ut="scrollspy",Bt="."+(Kt="bs.scrollspy"),Vt=Qt.fn[Ut],Ft={offset:10,method:"auto",target:""},Gt={offset:"number",method:"string",target:"(string|element)"},Yt={ACTIVATE:"activate"+Bt,SCROLL:"scroll"+Bt,LOAD_DATA_API:"load"+Bt+".data-api"},qt="dropdown-item",zt="active",Xt={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},Zt="offset",Jt="position",te.prototype.refresh=function(){var e=this,t=this._scrollElement!==this._scrollElement.window?Jt:Zt,o="auto"===this._config.method?t:this._config.method,r=o===Jt?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Qt.makeArray(Qt(this._selector)).map(function(t){var e=void 0,n=D.getSelectorFromElement(t);if(n&&(e=Qt(n)[0]),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[Qt(e)[o]().top+r,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},te.prototype.dispose=function(){Qt.removeData(this._element,Kt),Qt(this._scrollElement).off(Bt),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},te.prototype._getConfig=function(t){var e;return"string"!=typeof(t=Qt.extend({},Ft,t)).target&&((e=Qt(t.target).attr("id"))||(e=D.getUID(Ut),Qt(t.target).attr("id",e)),t.target="#"+e),D.typeCheckConfig(Ut,t,Gt),t},te.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},te.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},te.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},te.prototype._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(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},te.prototype._activate=function(e){this._activeTarget=e,this._clear();var t=(t=this._selector.split(",")).map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=Qt(t.join(","));n.hasClass(qt)?(n.closest(Xt.DROPDOWN).find(Xt.DROPDOWN_TOGGLE).addClass(zt),n.addClass(zt)):(n.addClass(zt),n.parents(Xt.NAV_LIST_GROUP).prev(Xt.NAV_LINKS+", "+Xt.LIST_ITEMS).addClass(zt)),Qt(this._scrollElement).trigger(Yt.ACTIVATE,{relatedTarget:e})},te.prototype._clear=function(){Qt(this._selector).filter(Xt.ACTIVE).removeClass(zt)},te._jQueryInterface=function(n){return this.each(function(){var t=Qt(this).data(Kt),e="object"===(void 0===n?"undefined":I(n))&&n;if(t||(t=new te(this,e),Qt(this).data(Kt,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},A(te,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return Ft}}]),$t=te,Qt(window).on(Yt.LOAD_DATA_API,function(){for(var t=Qt.makeArray(Qt(Xt.DATA_SPY)),e=t.length;e--;){var n=Qt(t[e]);$t._jQueryInterface.call(n,n.data())}}),Qt.fn[Ut]=$t._jQueryInterface,Qt.fn[Ut].Constructor=$t,Qt.fn[Ut].noConflict=function(){return Qt.fn[Ut]=Vt,$t._jQueryInterface};function te(t,e){var n=this;b(this,te),this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Xt.NAV_LINKS+","+this._config.target+" "+Xt.LIST_ITEMS+","+this._config.target+" "+Xt.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Qt(this._scrollElement).on(Yt.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var ee,ne,ie,oe,re,se,ae,le,he,ce,ue,de,fe,pe,_e,ge,me;ee=jQuery,ie="."+(ne="bs.tab"),oe=ee.fn.tab,re={HIDE:"hide"+ie,HIDDEN:"hidden"+ie,SHOW:"show"+ie,SHOWN:"shown"+ie,CLICK_DATA_API:"click"+ie+".data-api"},se="dropdown-menu",ae="active",le="disabled",he="fade",ce="show",ue=".dropdown",de=".nav, .list-group",fe=".active",pe='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',_e=".dropdown-toggle",ge="> .dropdown-menu .active",ve.prototype.show=function(){var t,n,e,i,o,r,s,a=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&ee(this._element).hasClass(ae)||ee(this._element).hasClass(le)||(n=t=void 0,e=ee(this._element).closest(de)[0],i=D.getSelectorFromElement(this._element),e&&(n=(n=ee.makeArray(ee(e).find(fe)))[n.length-1]),o=ee.Event(re.HIDE,{relatedTarget:this._element}),r=ee.Event(re.SHOW,{relatedTarget:n}),n&&ee(n).trigger(o),ee(this._element).trigger(r),r.isDefaultPrevented()||o.isDefaultPrevented()||(i&&(t=ee(i)[0]),this._activate(this._element,e),s=function(){var t=ee.Event(re.HIDDEN,{relatedTarget:a._element}),e=ee.Event(re.SHOWN,{relatedTarget:n});ee(n).trigger(t),ee(a._element).trigger(e)},t?this._activate(t,t.parentNode,s):s()))},ve.prototype.dispose=function(){ee.removeData(this._element,ne),this._element=null},ve.prototype._activate=function(t,e,n){function i(){return o._transitionComplete(t,r,s,n)}var o=this,r=ee(e).find(fe)[0],s=n&&D.supportsTransitionEnd()&&r&&ee(r).hasClass(he);r&&s?ee(r).one(D.TRANSITION_END,i).emulateTransitionEnd(150):i(),r&&ee(r).removeClass(ce)},ve.prototype._transitionComplete=function(t,e,n,i){var o,r;e&&(ee(e).removeClass(ae),(o=ee(e.parentNode).find(ge)[0])&&ee(o).removeClass(ae),e.setAttribute("aria-expanded",!1)),ee(t).addClass(ae),t.setAttribute("aria-expanded",!0),n?(D.reflow(t),ee(t).addClass(ce)):ee(t).removeClass(he),t.parentNode&&ee(t.parentNode).hasClass(se)&&((r=ee(t).closest(ue)[0])&&ee(r).find(_e).addClass(ae),t.setAttribute("aria-expanded",!0)),i&&i()},ve._jQueryInterface=function(n){return this.each(function(){var t=ee(this),e=t.data(ne);if(e||(e=new ve(this),t.data(ne,e)),"string"==typeof n){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}})},A(ve,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),me=ve,ee(document).on(re.CLICK_DATA_API,pe,function(t){t.preventDefault(),me._jQueryInterface.call(ee(this),"show")}),ee.fn.tab=me._jQueryInterface,ee.fn.tab.Constructor=me,ee.fn.tab.noConflict=function(){return ee.fn.tab=oe,me._jQueryInterface};function ve(t){b(this,ve),this._element=t}var ye,Ee,Te,Ce,Ie,Ae,be,De,Se,we,Ne,Oe,ke,Pe,Le,je,Re=function(h){if("undefined"==typeof Popper)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var e="tooltip",i="bs.tooltip",t="."+i,n=h.fn[e],o="bs-tooltip",r=new RegExp("(^|\\s)"+o+"\\S+","g"),s={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},a={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},l={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"},c="show",u="out",d={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},f="fade",p="show",_=".tooltip-inner",g=".arrow",m="hover",v="focus",y="click",E="manual",T=(C.prototype.enable=function(){this._isEnabled=!0},C.prototype.disable=function(){this._isEnabled=!1},C.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},C.prototype.toggle=function(t){if(t){var e=this.constructor.DATA_KEY,n=h(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(h(this.getTipElement()).hasClass(p))return void this._leave(null,this);this._enter(null,this)}},C.prototype.dispose=function(){clearTimeout(this._timeout),h.removeData(this.element,this.constructor.DATA_KEY),h(this.element).off(this.constructor.EVENT_KEY),h(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&h(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},C.prototype.show=function(){var e=this;if("none"===h(this.element).css("display"))throw new Error("Please use show on visible elements");var t=h.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){h(this.element).trigger(t);var n=h.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var i=this.getTipElement(),o=D.getUID(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&h(i).addClass(f);var r="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(r);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:h(this.config.container);function l(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,h(e.element).trigger(e.constructor.Event.SHOWN),t===u&&e._leave(null,e)}h(i).data(this.constructor.DATA_KEY,this),h.contains(this.element.ownerDocument.documentElement,this.tip)||h(i).appendTo(a),h(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:g}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),h(i).addClass(p),"ontouchstart"in document.documentElement&&h("body").children().on("mouseover",null,h.noop),D.supportsTransitionEnd()&&h(this.tip).hasClass(f)?h(this.tip).one(D.TRANSITION_END,l).emulateTransitionEnd(C._TRANSITION_DURATION):l()}},C.prototype.hide=function(t){function e(){n._hoverState!==c&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),h(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()}var n=this,i=this.getTipElement(),o=h.Event(this.constructor.Event.HIDE);h(this.element).trigger(o),o.isDefaultPrevented()||(h(i).removeClass(p),"ontouchstart"in document.documentElement&&h("body").children().off("mouseover",null,h.noop),this._activeTrigger[y]=!1,this._activeTrigger[v]=!1,this._activeTrigger[m]=!1,D.supportsTransitionEnd()&&h(this.tip).hasClass(f)?h(i).one(D.TRANSITION_END,e).emulateTransitionEnd(150):e(),this._hoverState="")},C.prototype.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},C.prototype.isWithContent=function(){return Boolean(this.getTitle())},C.prototype.addAttachmentClass=function(t){h(this.getTipElement()).addClass(o+"-"+t)},C.prototype.getTipElement=function(){return this.tip=this.tip||h(this.config.template)[0]},C.prototype.setContent=function(){var t=h(this.getTipElement());this.setElementContent(t.find(_),this.getTitle()),t.removeClass(f+" "+p)},C.prototype.setElementContent=function(t,e){var n=this.config.html;"object"===(void 0===e?"undefined":I(e))&&(e.nodeType||e.jquery)?n?h(e).parent().is(t)||t.empty().append(e):t.text(h(e).text()):t[n?"html":"text"](e)},C.prototype.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},C.prototype._getAttachment=function(t){return a[t.toUpperCase()]},C.prototype._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){var e,n;"click"===t?h(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)}):t!==E&&(e=t===m?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===m?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,h(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})),h(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=h.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},C.prototype._fixTitle=function(){var t=I(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",""))},C.prototype._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||h(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?v:m]=!0),h(e.getTipElement()).hasClass(p)||e._hoverState===c?e._hoverState=c:(clearTimeout(e._timeout),e._hoverState=c,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===c&&e.show()},e.config.delay.show):e.show())},C.prototype._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||h(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?v:m]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=u,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===u&&e.hide()},e.config.delay.hide):e.hide())},C.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},C.prototype._getConfig=function(t){return(t=h.extend({},this.constructor.Default,h(this.element).data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.title&&"number"==typeof t.title&&(t.title=t.title.toString()),t.content&&"number"==typeof t.content&&(t.content=t.content.toString()),D.typeCheckConfig(e,t,this.constructor.DefaultType),t},C.prototype._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},C.prototype._cleanTipClass=function(){var t=h(this.getTipElement()),e=t.attr("class").match(r);null!==e&&0<e.length&&t.removeClass(e.join(""))},C.prototype._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},C.prototype._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(h(t).removeClass(f),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},C._jQueryInterface=function(n){return this.each(function(){var t=h(this).data(i),e="object"===(void 0===n?"undefined":I(n))&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new C(this,e),h(this).data(i,t)),"string"==typeof n)){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},A(C,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return s}}]),C);function C(t,e){b(this,C),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()}return h.fn[e]=T._jQueryInterface,h.fn[e].Constructor=T,h.fn[e].noConflict=function(){return h.fn[e]=n,T._jQueryInterface},T}(jQuery);ye=jQuery,Te="popover",Ie="."+(Ce="bs.popover"),Ae=ye.fn[Te],be="bs-popover",De=new RegExp("(^|\\s)"+be+"\\S+","g"),Se=ye.extend({},Re.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>'}),we=ye.extend({},Re.DefaultType,{content:"(string|element|function)"}),Ne="fade",ke=".popover-header",Pe=".popover-body",Le={HIDE:"hide"+Ie,HIDDEN:"hidden"+Ie,SHOW:(Oe="show")+Ie,SHOWN:"shown"+Ie,INSERTED:"inserted"+Ie,CLICK:"click"+Ie,FOCUSIN:"focusin"+Ie,FOCUSOUT:"focusout"+Ie,MOUSEENTER:"mouseenter"+Ie,MOUSELEAVE:"mouseleave"+Ie},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(xe,Ee=Re),xe.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},xe.prototype.addAttachmentClass=function(t){ye(this.getTipElement()).addClass(be+"-"+t)},xe.prototype.getTipElement=function(){return this.tip=this.tip||ye(this.config.template)[0]},xe.prototype.setContent=function(){var t=ye(this.getTipElement());this.setElementContent(t.find(ke),this.getTitle()),this.setElementContent(t.find(Pe),this._getContent()),t.removeClass(Ne+" "+Oe)},xe.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},xe.prototype._cleanTipClass=function(){var t=ye(this.getTipElement()),e=t.attr("class").match(De);null!==e&&0<e.length&&t.removeClass(e.join(""))},xe._jQueryInterface=function(n){return this.each(function(){var t=ye(this).data(Ce),e="object"===(void 0===n?"undefined":I(n))?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new xe(this,e),ye(this).data(Ce,t)),"string"==typeof n)){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},A(xe,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return Se}},{key:"NAME",get:function(){return Te}},{key:"DATA_KEY",get:function(){return Ce}},{key:"Event",get:function(){return Le}},{key:"EVENT_KEY",get:function(){return Ie}},{key:"DefaultType",get:function(){return we}}]),je=xe,ye.fn[Te]=je._jQueryInterface,ye.fn[Te].Constructor=je,ye.fn[Te].noConflict=function(){return ye.fn[Te]=Ae,je._jQueryInterface};function xe(){return b(this,xe),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,Ee.apply(this,arguments))}}();