(function(v,y){"object"==typeof exports&&typeof module<"u"?y(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],y):y((v=typeof globalThis<"u"?globalThis:v||self).bootstrap={},v.jQuery,v.Popper)})(this,function(v,y,et){"use strict";function c(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var t=c(y),f=c(et);function F(o,a){for(var r=0;r<a.length;r++){var e=a[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}function S(o,a,r){return a&&F(o.prototype,a),r&&F(o,r),o}function E(){return E=Object.assign||function(o){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(o[e]=r[e])}return o},E.apply(this,arguments)}function H(o,a){return(H=Object.setPrototypeOf||function(e,i){return e.__proto__=i,e})(o,a)}var N="transitionend";function Tt(o){var a=this,r=!1;return t.default(this).one(d.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||d.triggerTransitionEnd(a)},o),this}var d={TRANSITION_END:"bsTransitionEnd",getUID:function(a){do{a+=~~(1e6*Math.random())}while(document.getElementById(a));return a},getSelectorFromElement:function(a){var r=a.getAttribute("data-target");if(!r||"#"===r){var e=a.getAttribute("href");r=e&&"#"!==e?e.trim():""}try{return document.querySelector(r)?r:null}catch{return null}},getTransitionDurationFromElement:function(a){if(!a)return 0;var r=t.default(a).css("transition-duration"),e=t.default(a).css("transition-delay"),i=parseFloat(r),n=parseFloat(e);return i||n?(r=r.split(",")[0],e=e.split(",")[0],1e3*(parseFloat(r)+parseFloat(e))):0},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(a){t.default(a).trigger(N)},supportsTransitionEnd:function(){return!0},isElement:function(a){return(a[0]||a).nodeType},typeCheckConfig:function(a,r,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=e[i],s=r[i],l=s&&d.isElement(s)?"element":null===(o=s)||typeof o>"u"?""+o:{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(l))throw new Error(a.toUpperCase()+': Option "'+i+'" provided type "'+l+'" but expected type "'+n+'".')}var o},findShadowRoot:function(a){if(!document.documentElement.attachShadow)return null;if("function"==typeof a.getRootNode){var r=a.getRootNode();return r instanceof ShadowRoot?r:null}return a instanceof ShadowRoot?a:a.parentNode?d.findShadowRoot(a.parentNode):null},jQueryDetection:function(){if(typeof t.default>"u")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var a=t.default.fn.jquery.split(" ")[0].split(".");if(a[0]<2&&a[1]<9||1===a[0]&&9===a[1]&&a[2]<1||a[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};d.jQueryDetection(),function tt(){t.default.fn.emulateTransitionEnd=Tt,t.default.event.special[d.TRANSITION_END]=function pt(){return{bindType:N,delegateType:N,handle:function(a){if(t.default(a.target).is(this))return a.handleObj.handler.apply(this,arguments)}}}()}();var I="alert",D="bs.alert",K="."+D,k=t.default.fn[I],it="close"+K,V="closed"+K,ce="click"+K+".data-api",Q=function(){function o(r){this._element=r}var a=o.prototype;return a.close=function(e){var i=this._element;e&&(i=this._getRootElement(e)),this._triggerCloseEvent(i).isDefaultPrevented()||this._removeElement(i)},a.dispose=function(){t.default.removeData(this._element,D),this._element=null},a._getRootElement=function(e){var i=d.getSelectorFromElement(e),n=!1;return i&&(n=document.querySelector(i)),n||(n=t.default(e).closest(".alert")[0]),n},a._triggerCloseEvent=function(e){var i=t.default.Event(it);return t.default(e).trigger(i),i},a._removeElement=function(e){var i=this;if(t.default(e).removeClass("show"),t.default(e).hasClass("fade")){var n=d.getTransitionDurationFromElement(e);t.default(e).one(d.TRANSITION_END,function(s){return i._destroyElement(e,s)}).emulateTransitionEnd(n)}else this._destroyElement(e)},a._destroyElement=function(e){t.default(e).detach().trigger(V).remove()},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(D);n||(n=new o(this),i.data(D,n)),"close"===e&&n[e](this)})},o._handleDismiss=function(e){return function(i){i&&i.preventDefault(),e.close(this)}},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),o}();t.default(document).on(ce,'[data-dismiss="alert"]',Q._handleDismiss(new Q)),t.default.fn[I]=Q._jQueryInterface,t.default.fn[I].Constructor=Q,t.default.fn[I].noConflict=function(){return t.default.fn[I]=k,Q._jQueryInterface};var Y="button",p="bs.button",M="."+p,O=".data-api",nt=t.default.fn[Y],b="active",li="click"+M+O,ui="focus"+M+O+" blur"+M+O,fi="load"+M+O,St='[data-toggle^="button"]',rt='input:not([type="hidden"])',he=function(){function o(r){this._element=r,this.shouldAvoidTriggerChange=!1}var a=o.prototype;return a.toggle=function(){var e=!0,i=!0,n=t.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var s=this._element.querySelector(rt);if(s){if("radio"===s.type)if(s.checked&&this._element.classList.contains(b))e=!1;else{var l=n.querySelector(".active");l&&t.default(l).removeClass(b)}e&&(("checkbox"===s.type||"radio"===s.type)&&(s.checked=!this._element.classList.contains(b)),this.shouldAvoidTriggerChange||t.default(s).trigger("change")),s.focus(),i=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),e&&t.default(this._element).toggleClass(b))},a.dispose=function(){t.default.removeData(this._element,p),this._element=null},o._jQueryInterface=function(e,i){return this.each(function(){var n=t.default(this),s=n.data(p);s||(s=new o(this),n.data(p,s)),s.shouldAvoidTriggerChange=i,"toggle"===e&&s[e]()})},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),o}();t.default(document).on(li,St,function(o){var a=o.target,r=a;if(t.default(a).hasClass("btn")||(a=t.default(a).closest(".btn")[0]),!a||a.hasAttribute("disabled")||a.classList.contains("disabled"))o.preventDefault();else{var e=a.querySelector(rt);if(e&&(e.hasAttribute("disabled")||e.classList.contains("disabled")))return void o.preventDefault();("INPUT"===r.tagName||"LABEL"!==a.tagName)&&he._jQueryInterface.call(t.default(a),"toggle","INPUT"===r.tagName)}}).on(ui,St,function(o){var a=t.default(o.target).closest(".btn")[0];t.default(a).toggleClass("focus",/^focus(in)?$/.test(o.type))}),t.default(window).on(fi,function(){for(var o=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),a=0,r=o.length;a<r;a++){var e=o[a],i=e.querySelector(rt);i.checked||i.hasAttribute("checked")?e.classList.add(b):e.classList.remove(b)}for(var n=0,s=(o=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;n<s;n++){var l=o[n];"true"===l.getAttribute("aria-pressed")?l.classList.add(b):l.classList.remove(b)}}),t.default.fn[Y]=he._jQueryInterface,t.default.fn[Y].Constructor=he,t.default.fn[Y].noConflict=function(){return t.default.fn[Y]=nt,he._jQueryInterface};var ie="carousel",_e="bs.carousel",C="."+_e,At=".data-api",gi=t.default.fn[ie],q="active",ke="next",Ve="prev",wi="slide"+C,yt="slid"+C,Li="keydown"+C,Ri="mouseenter"+C,Pi="mouseleave"+C,Fi="touchstart"+C,Mi="touchmove"+C,xi="touchend"+C,$i="pointerdown"+C,ki="pointerup"+C,Vi="dragstart"+C,ji="load"+C+At,Hi="click"+C+At,je=".active.carousel-item",at={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Gi={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Nt={TOUCH:"touch",PEN:"pen"},ne=function(){function o(r,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=r,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=!(!window.PointerEvent&&!window.MSPointerEvent),this._addEventListeners()}var a=o.prototype;return a.next=function(){this._isSliding||this._slide(ke)},a.nextWhenVisible=function(){var e=t.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},a.prev=function(){this._isSliding||this._slide(Ve)},a.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},a.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},a.to=function(e){var i=this;this._activeElement=this._element.querySelector(je);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)return void t.default(this._element).one(yt,function(){return i.to(e)});if(n===e)return this.pause(),void this.cycle();this._slide(e>n?ke:Ve,this._items[e])}},a.dispose=function(){t.default(this._element).off(C),t.default.removeData(this._element,_e),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},a._getConfig=function(e){return e=E({},at,e),d.typeCheckConfig(ie,e,Gi),e},a._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var i=e/this.touchDeltaX;this.touchDeltaX=0,i>0&&this.prev(),i<0&&this.next()}},a._addEventListeners=function(){var e=this;this._config.keyboard&&t.default(this._element).on(Li,function(i){return e._keydown(i)}),"hover"===this._config.pause&&t.default(this._element).on(Ri,function(i){return e.pause(i)}).on(Pi,function(i){return e.cycle(i)}),this._config.touch&&this._addTouchEventListeners()},a._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var i=function(u){e._pointerEvent&&Nt[u.originalEvent.pointerType.toUpperCase()]?e.touchStartX=u.originalEvent.clientX:e._pointerEvent||(e.touchStartX=u.originalEvent.touches[0].clientX)},s=function(u){e._pointerEvent&&Nt[u.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=u.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(_){return e.cycle(_)},500+e._config.interval))};t.default(this._element.querySelectorAll(".carousel-item img")).on(Vi,function(l){return l.preventDefault()}),this._pointerEvent?(t.default(this._element).on($i,function(l){return i(l)}),t.default(this._element).on(ki,function(l){return s(l)}),this._element.classList.add("pointer-event")):(t.default(this._element).on(Fi,function(l){return i(l)}),t.default(this._element).on(Mi,function(l){var u;e.touchDeltaX=(u=l).originalEvent.touches&&u.originalEvent.touches.length>1?0:u.originalEvent.touches[0].clientX-e.touchStartX}),t.default(this._element).on(xi,function(l){return s(l)}))}},a._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},a._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},a._getItemByDirection=function(e,i){var n=e===ke,s=e===Ve,l=this._getItemIndex(i);if((s&&0===l||n&&l===this._items.length-1)&&!this._config.wrap)return i;var m=(l+(e===Ve?-1:1))%this._items.length;return-1===m?this._items[this._items.length-1]:this._items[m]},a._triggerSlideEvent=function(e,i){var n=this._getItemIndex(e),s=this._getItemIndex(this._element.querySelector(je)),l=t.default.Event(wi,{relatedTarget:e,direction:i,from:s,to:n});return t.default(this._element).trigger(l),l},a._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var i=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));t.default(i).removeClass(q);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t.default(n).addClass(q)}},a._updateInterval=function(){var e=this._activeElement||this._element.querySelector(je);if(e){var i=parseInt(e.getAttribute("data-interval"),10);i?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=i):this._config.interval=this._config.defaultInterval||this._config.interval}},a._slide=function(e,i){var m,T,x,n=this,s=this._element.querySelector(je),l=this._getItemIndex(s),u=i||s&&this._getItemByDirection(e,s),_=this._getItemIndex(u),g=!!this._interval;if(e===ke?(m="carousel-item-left",T="carousel-item-next",x="left"):(m="carousel-item-right",T="carousel-item-prev",x="right"),u&&t.default(u).hasClass(q))this._isSliding=!1;else if(!this._triggerSlideEvent(u,x).isDefaultPrevented()&&s&&u){this._isSliding=!0,g&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var fe=t.default.Event(yt,{relatedTarget:u,direction:x,from:l,to:_});if(t.default(this._element).hasClass("slide")){t.default(u).addClass(T),d.reflow(u),t.default(s).addClass(m),t.default(u).addClass(m);var Et=d.getTransitionDurationFromElement(s);t.default(s).one(d.TRANSITION_END,function(){t.default(u).removeClass(m+" "+T).addClass(q),t.default(s).removeClass(q+" "+T+" "+m),n._isSliding=!1,setTimeout(function(){return t.default(n._element).trigger(fe)},0)}).emulateTransitionEnd(Et)}else t.default(s).removeClass(q),t.default(u).addClass(q),this._isSliding=!1,t.default(this._element).trigger(fe);g&&this.cycle()}},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this).data(_e),n=E({},at,t.default(this).data());"object"==typeof e&&(n=E({},n,e));var s="string"==typeof e?e:n.slide;if(i||(i=new o(this,n),t.default(this).data(_e,i)),"number"==typeof e)i.to(e);else if("string"==typeof s){if(typeof i[s]>"u")throw new TypeError('No method named "'+s+'"');i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())})},o._dataApiClickHandler=function(e){var i=d.getSelectorFromElement(this);if(i){var n=t.default(i)[0];if(n&&t.default(n).hasClass("carousel")){var s=E({},t.default(n).data(),t.default(this).data()),l=this.getAttribute("data-slide-to");l&&(s.interval=!1),o._jQueryInterface.call(t.default(n),s),l&&t.default(n).data(_e).to(l),e.preventDefault()}}},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return at}}]),o}();t.default(document).on(Hi,"[data-slide], [data-slide-to]",ne._dataApiClickHandler),t.default(window).on(ji,function(){for(var o=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),a=0,r=o.length;a<r;a++){var e=t.default(o[a]);ne._jQueryInterface.call(e,e.data())}}),t.default.fn[ie]=ne._jQueryInterface,t.default.fn[ie].Constructor=ne,t.default.fn[ie].noConflict=function(){return t.default.fn[ie]=gi,ne._jQueryInterface};var re="collapse",G="bs.collapse",ve="."+G,Ji=t.default.fn[re],z="show",ge="collapse",He="collapsing",ot="collapsed",en="show"+ve,tn="shown"+ve,nn="hide"+ve,rn="hidden"+ve,an="click"+ve+".data-api",Dt='[data-toggle="collapse"]',st={toggle:!0,parent:""},sn={toggle:"boolean",parent:"(string|element)"},me=function(){function o(r,e){this._isTransitioning=!1,this._element=r,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+r.id+'"],[data-toggle="collapse"][data-target="#'+r.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(Dt)),n=0,s=i.length;n<s;n++){var l=i[n],u=d.getSelectorFromElement(l),_=[].slice.call(document.querySelectorAll(u)).filter(function(g){return g===r});null!==u&&_.length>0&&(this._selector=u,this._triggerArray.push(l))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var a=o.prototype;return a.toggle=function(){t.default(this._element).hasClass(z)?this.hide():this.show()},a.show=function(){var i,n,e=this;if(!(this._isTransitioning||t.default(this._element).hasClass(z)||(this._parent&&0===(i=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(T){return"string"==typeof e._config.parent?T.getAttribute("data-parent")===e._config.parent:T.classList.contains(ge)})).length&&(i=null),i&&(n=t.default(i).not(this._selector).data(G),n&&n._isTransitioning)))){var s=t.default.Event(en);if(t.default(this._element).trigger(s),!s.isDefaultPrevented()){i&&(o._jQueryInterface.call(t.default(i).not(this._selector),"hide"),n||t.default(i).data(G,null));var l=this._getDimension();t.default(this._element).removeClass(ge).addClass(He),this._element.style[l]=0,this._triggerArray.length&&t.default(this._triggerArray).removeClass(ot).attr("aria-expanded",!0),this.setTransitioning(!0);var g="scroll"+(l[0].toUpperCase()+l.slice(1)),m=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,function(){t.default(e._element).removeClass(He).addClass(ge+" "+z),e._element.style[l]="",e.setTransitioning(!1),t.default(e._element).trigger(tn)}).emulateTransitionEnd(m),this._element.style[l]=this._element[g]+"px"}}},a.hide=function(){var e=this;if(!this._isTransitioning&&t.default(this._element).hasClass(z)){var i=t.default.Event(nn);if(t.default(this._element).trigger(i),!i.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",d.reflow(this._element),t.default(this._element).addClass(He).removeClass(ge+" "+z);var s=this._triggerArray.length;if(s>0)for(var l=0;l<s;l++){var u=this._triggerArray[l],_=d.getSelectorFromElement(u);null!==_&&(t.default([].slice.call(document.querySelectorAll(_))).hasClass(z)||t.default(u).addClass(ot).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var T=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,function(){e.setTransitioning(!1),t.default(e._element).removeClass(He).addClass(ge).trigger(rn)}).emulateTransitionEnd(T)}}},a.setTransitioning=function(e){this._isTransitioning=e},a.dispose=function(){t.default.removeData(this._element,G),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},a._getConfig=function(e){return(e=E({},st,e)).toggle=!!e.toggle,d.typeCheckConfig(re,e,sn),e},a._getDimension=function(){return t.default(this._element).hasClass("width")?"width":"height"},a._getParent=function(){var i,e=this;d.isElement(this._config.parent)?(i=this._config.parent,typeof this._config.parent.jquery<"u"&&(i=this._config.parent[0])):i=document.querySelector(this._config.parent);var s=[].slice.call(i.querySelectorAll('[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'));return t.default(s).each(function(l,u){e._addAriaAndCollapsedClass(o._getTargetFromElement(u),[u])}),i},a._addAriaAndCollapsedClass=function(e,i){var n=t.default(e).hasClass(z);i.length&&t.default(i).toggleClass(ot,!n).attr("aria-expanded",n)},o._getTargetFromElement=function(e){var i=d.getSelectorFromElement(e);return i?document.querySelector(i):null},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(G),s=E({},st,i.data(),"object"==typeof e&&e?e:{});if(!n&&s.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(s.toggle=!1),n||(n=new o(this,s),i.data(G,n)),"string"==typeof e){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e]()}})},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return st}}]),o}();t.default(document).on(an,Dt,function(o){"A"===o.currentTarget.tagName&&o.preventDefault();var a=t.default(this),r=d.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(r));t.default(e).each(function(){var i=t.default(this),s=i.data(G)?"toggle":a.data();me._jQueryInterface.call(i,s)})}),t.default.fn[re]=me._jQueryInterface,t.default.fn[re].Constructor=me,t.default.fn[re].noConflict=function(){return t.default.fn[re]=Ji,me._jQueryInterface};var ae="dropdown",Ee="bs.dropdown",j="."+Ee,lt=".data-api",un=t.default.fn[ae],dn=new RegExp("38|40|27"),Ue="disabled",w="show",wt="dropdown-menu-right",Lt="hide"+j,Rt="hidden"+j,gn="show"+j,mn="shown"+j,En="click"+j,dt="click"+j+lt,Pt="keydown"+j+lt,pn="keyup"+j+lt,We='[data-toggle="dropdown"]',ct=".dropdown-menu",bn={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},wn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},U=function(){function o(r,e){this._element=r,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var a=o.prototype;return a.toggle=function(){if(!this._element.disabled&&!t.default(this._element).hasClass(Ue)){var e=t.default(this._menu).hasClass(w);o._clearMenus(),!e&&this.show(!0)}},a.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||t.default(this._element).hasClass(Ue)||t.default(this._menu).hasClass(w))){var i={relatedTarget:this._element},n=t.default.Event(gn,i),s=o._getParentFromElement(this._element);if(t.default(s).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(typeof f.default>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var l=this._element;"parent"===this._config.reference?l=s:d.isElement(this._config.reference)&&(l=this._config.reference,typeof this._config.reference.jquery<"u"&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t.default(s).addClass("position-static"),this._popper=new f.default(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t.default(s).closest(".navbar-nav").length&&t.default(document.body).children().on("mouseover",null,t.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t.default(this._menu).toggleClass(w),t.default(s).toggleClass(w).trigger(t.default.Event(mn,i))}}},a.hide=function(){if(!this._element.disabled&&!t.default(this._element).hasClass(Ue)&&t.default(this._menu).hasClass(w)){var e={relatedTarget:this._element},i=t.default.Event(Lt,e),n=o._getParentFromElement(this._element);t.default(n).trigger(i),!i.isDefaultPrevented()&&(this._popper&&this._popper.destroy(),t.default(this._menu).toggleClass(w),t.default(n).toggleClass(w).trigger(t.default.Event(Rt,e)))}},a.dispose=function(){t.default.removeData(this._element,Ee),t.default(this._element).off(j),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},a.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},a._addEventListeners=function(){var e=this;t.default(this._element).on(En,function(i){i.preventDefault(),i.stopPropagation(),e.toggle()})},a._getConfig=function(e){return e=E({},this.constructor.Default,t.default(this._element).data(),e),d.typeCheckConfig(ae,e,this.constructor.DefaultType),e},a._getMenuElement=function(){if(!this._menu){var e=o._getParentFromElement(this._element);e&&(this._menu=e.querySelector(ct))}return this._menu},a._getPlacement=function(){var e=t.default(this._element.parentNode),i="bottom-start";return e.hasClass("dropup")?i=t.default(this._menu).hasClass(wt)?"top-end":"top-start":e.hasClass("dropright")?i="right-start":e.hasClass("dropleft")?i="left-start":t.default(this._menu).hasClass(wt)&&(i="bottom-end"),i},a._detectNavbar=function(){return t.default(this._element).closest(".navbar").length>0},a._getOffset=function(){var e=this,i={};return"function"==typeof this._config.offset?i.fn=function(n){return n.offsets=E({},n.offsets,e._config.offset(n.offsets,e._element)),n}:i.offset=this._config.offset,i},a._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),E({},e,this._config.popperConfig)},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this).data(Ee);if(i||(i=new o(this,"object"==typeof e?e:null),t.default(this).data(Ee,i)),"string"==typeof e){if(typeof i[e]>"u")throw new TypeError('No method named "'+e+'"');i[e]()}})},o._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=[].slice.call(document.querySelectorAll(We)),n=0,s=i.length;n<s;n++){var l=o._getParentFromElement(i[n]),u=t.default(i[n]).data(Ee),_={relatedTarget:i[n]};if(e&&"click"===e.type&&(_.clickEvent=e),u){var g=u._menu;if(t.default(l).hasClass(w)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&t.default.contains(l,e.target))){var m=t.default.Event(Lt,_);t.default(l).trigger(m),!m.isDefaultPrevented()&&("ontouchstart"in document.documentElement&&t.default(document.body).children().off("mouseover",null,t.default.noop),i[n].setAttribute("aria-expanded","false"),u._popper&&u._popper.destroy(),t.default(g).removeClass(w),t.default(l).removeClass(w).trigger(t.default.Event(Rt,_)))}}}},o._getParentFromElement=function(e){var i,n=d.getSelectorFromElement(e);return n&&(i=document.querySelector(n)),i||e.parentNode},o._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||t.default(e.target).closest(ct).length):!dn.test(e.which))&&!this.disabled&&!t.default(this).hasClass(Ue)){var i=o._getParentFromElement(this),n=t.default(i).hasClass(w);if(n||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!n||27===e.which||32===e.which)return 27===e.which&&t.default(i.querySelector(We)).trigger("focus"),void t.default(this).trigger("click");var s=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(u){return t.default(u).is(":visible")});if(0!==s.length){var l=s.indexOf(e.target);38===e.which&&l>0&&l--,40===e.which&&l<s.length-1&&l++,l<0&&(l=0),s[l].focus()}}}},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return bn}},{key:"DefaultType",get:function(){return wn}}]),o}();t.default(document).on(Pt,We,U._dataApiKeydownHandler).on(Pt,ct,U._dataApiKeydownHandler).on(dt+" "+pn,U._clearMenus).on(dt,We,function(o){o.preventDefault(),o.stopPropagation(),U._jQueryInterface.call(t.default(this),"toggle")}).on(dt,".dropdown form",function(o){o.stopPropagation()}),t.default.fn[ae]=U._jQueryInterface,t.default.fn[ae].Constructor=U,t.default.fn[ae].noConflict=function(){return t.default.fn[ae]=un,U._jQueryInterface};var oe="modal",Te="bs.modal",A="."+Te,Pn=t.default.fn[oe],Mt="modal-open",se="fade",Ke="show",xt="modal-static",$n="hide"+A,kn="hidePrevented"+A,$t="hidden"+A,kt="show"+A,Vn="shown"+A,Be="focusin"+A,Vt="resize"+A,ht="click.dismiss"+A,jt="keydown.dismiss"+A,jn="mouseup.dismiss"+A,Ht="mousedown.dismiss"+A,Hn="click"+A+".data-api",Ut=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Wt=".sticky-top",_t={backdrop:!0,keyboard:!0,focus:!0,show:!0},Qn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Se=function(){function o(r,e){this._config=this._getConfig(e),this._element=r,this._dialog=r.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var a=o.prototype;return a.toggle=function(e){return this._isShown?this.hide():this.show(e)},a.show=function(e){var i=this;if(!this._isShown&&!this._isTransitioning){var n=t.default.Event(kt,{relatedTarget:e});t.default(this._element).trigger(n),!n.isDefaultPrevented()&&(this._isShown=!0,t.default(this._element).hasClass(se)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t.default(this._element).on(ht,'[data-dismiss="modal"]',function(s){return i.hide(s)}),t.default(this._dialog).on(Ht,function(){t.default(i._element).one(jn,function(s){t.default(s.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(e)}))}},a.hide=function(e){var i=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=t.default.Event($n);if(t.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var s=t.default(this._element).hasClass(se);if(s&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t.default(document).off(Be),t.default(this._element).removeClass(Ke),t.default(this._element).off(ht),t.default(this._dialog).off(Ht),s){var l=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,function(u){return i._hideModal(u)}).emulateTransitionEnd(l)}else this._hideModal()}}},a.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return t.default(e).off(A)}),t.default(document).off(Be),t.default.removeData(this._element,Te),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},a.handleUpdate=function(){this._adjustDialog()},a._getConfig=function(e){return e=E({},_t,e),d.typeCheckConfig(oe,e,Qn),e},a._triggerBackdropTransition=function(){var e=this,i=t.default.Event(kn);if(t.default(this._element).trigger(i),!i.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(xt);var s=d.getTransitionDurationFromElement(this._dialog);t.default(this._element).off(d.TRANSITION_END),t.default(this._element).one(d.TRANSITION_END,function(){e._element.classList.remove(xt),n||t.default(e._element).one(d.TRANSITION_END,function(){e._element.style.overflowY=""}).emulateTransitionEnd(e._element,s)}).emulateTransitionEnd(s),this._element.focus()}},a._showElement=function(e){var i=this,n=t.default(this._element).hasClass(se),s=this._dialog?this._dialog.querySelector(".modal-body"):null;(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),t.default(this._dialog).hasClass("modal-dialog-scrollable")&&s?s.scrollTop=0:this._element.scrollTop=0,n&&d.reflow(this._element),t.default(this._element).addClass(Ke),this._config.focus&&this._enforceFocus();var l=t.default.Event(Vn,{relatedTarget:e}),u=function(){i._config.focus&&i._element.focus(),i._isTransitioning=!1,t.default(i._element).trigger(l)};if(n){var _=d.getTransitionDurationFromElement(this._dialog);t.default(this._dialog).one(d.TRANSITION_END,u).emulateTransitionEnd(_)}else u()},a._enforceFocus=function(){var e=this;t.default(document).off(Be).on(Be,function(i){document!==i.target&&e._element!==i.target&&0===t.default(e._element).has(i.target).length&&e._element.focus()})},a._setEscapeEvent=function(){var e=this;this._isShown?t.default(this._element).on(jt,function(i){e._config.keyboard&&27===i.which?(i.preventDefault(),e.hide()):!e._config.keyboard&&27===i.which&&e._triggerBackdropTransition()}):this._isShown||t.default(this._element).off(jt)},a._setResizeEvent=function(){var e=this;this._isShown?t.default(window).on(Vt,function(i){return e.handleUpdate(i)}):t.default(window).off(Vt)},a._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){t.default(document.body).removeClass(Mt),e._resetAdjustments(),e._resetScrollbar(),t.default(e._element).trigger($t)})},a._removeBackdrop=function(){this._backdrop&&(t.default(this._backdrop).remove(),this._backdrop=null)},a._showBackdrop=function(e){var i=this,n=t.default(this._element).hasClass(se)?se:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),t.default(this._backdrop).appendTo(document.body),t.default(this._element).on(ht,function(_){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:_.target===_.currentTarget&&("static"===i._config.backdrop?i._triggerBackdropTransition():i.hide())}),n&&d.reflow(this._backdrop),t.default(this._backdrop).addClass(Ke),!e)return;if(!n)return void e();var s=d.getTransitionDurationFromElement(this._backdrop);t.default(this._backdrop).one(d.TRANSITION_END,e).emulateTransitionEnd(s)}else if(!this._isShown&&this._backdrop){t.default(this._backdrop).removeClass(Ke);var l=function(){i._removeBackdrop(),e&&e()};if(t.default(this._element).hasClass(se)){var u=d.getTransitionDurationFromElement(this._backdrop);t.default(this._backdrop).one(d.TRANSITION_END,l).emulateTransitionEnd(u)}else l()}else e&&e()},a._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},a._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},a._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},a._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var i=[].slice.call(document.querySelectorAll(Ut)),n=[].slice.call(document.querySelectorAll(Wt));t.default(i).each(function(u,_){var g=_.style.paddingRight,m=t.default(_).css("padding-right");t.default(_).data("padding-right",g).css("padding-right",parseFloat(m)+e._scrollbarWidth+"px")}),t.default(n).each(function(u,_){var g=_.style.marginRight,m=t.default(_).css("margin-right");t.default(_).data("margin-right",g).css("margin-right",parseFloat(m)-e._scrollbarWidth+"px")});var s=document.body.style.paddingRight,l=t.default(document.body).css("padding-right");t.default(document.body).data("padding-right",s).css("padding-right",parseFloat(l)+this._scrollbarWidth+"px")}t.default(document.body).addClass(Mt)},a._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(Ut));t.default(e).each(function(s,l){var u=t.default(l).data("padding-right");t.default(l).removeData("padding-right"),l.style.paddingRight=u||""});var i=[].slice.call(document.querySelectorAll(""+Wt));t.default(i).each(function(s,l){var u=t.default(l).data("margin-right");typeof u<"u"&&t.default(l).css("margin-right",u).removeData("margin-right")});var n=t.default(document.body).data("padding-right");t.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},a._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var i=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),i},o._jQueryInterface=function(e,i){return this.each(function(){var n=t.default(this).data(Te),s=E({},_t,t.default(this).data(),"object"==typeof e&&e?e:{});if(n||(n=new o(this,s),t.default(this).data(Te,n)),"string"==typeof e){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e](i)}else s.show&&n.show(i)})},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return _t}}]),o}();t.default(document).on(Hn,'[data-toggle="modal"]',function(o){var r,a=this,e=d.getSelectorFromElement(this);e&&(r=document.querySelector(e));var i=t.default(r).data(Te)?"toggle":E({},t.default(r).data(),t.default(this).data());("A"===this.tagName||"AREA"===this.tagName)&&o.preventDefault();var n=t.default(r).one(kt,function(s){s.isDefaultPrevented()||n.one($t,function(){t.default(a).is(":visible")&&a.focus()})});Se._jQueryInterface.call(t.default(r),i,this)}),t.default.fn[oe]=Se._jQueryInterface,t.default.fn[oe].Constructor=Se,t.default.fn[oe].noConflict=function(){return t.default.fn[oe]=Pn,Se._jQueryInterface};var Yn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],zn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Xn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Kt(o,a,r){if(0===o.length)return o;if(r&&"function"==typeof r)return r(o);for(var i=(new window.DOMParser).parseFromString(o,"text/html"),n=Object.keys(a),s=[].slice.call(i.body.querySelectorAll("*")),l=function(T,x){var P=s[T],fe=P.nodeName.toLowerCase();if(-1===n.indexOf(P.nodeName.toLowerCase()))return P.parentNode.removeChild(P),"continue";var Et=[].slice.call(P.attributes),aa=[].concat(a["*"]||[],a[fe]||[]);Et.forEach(function(ai){(function Jn(o,a){var r=o.nodeName.toLowerCase();if(-1!==a.indexOf(r))return-1===Yn.indexOf(r)||!(!zn.test(o.nodeValue)&&!Xn.test(o.nodeValue));for(var e=a.filter(function(s){return s instanceof RegExp}),i=0,n=e.length;i<n;i++)if(e[i].test(r))return!0;return!1})(ai,aa)||P.removeAttribute(ai.nodeName)})},u=0,_=s.length;u<_;u++)l(u);return i.body.innerHTML}var X="tooltip",Qe="bs.tooltip",L="."+Qe,er=t.default.fn[X],Bt="bs-tooltip",tr=new RegExp("(^|\\s)"+Bt+"\\S+","g"),ir=["sanitize","whiteList","sanitizeFn"],Ce="fade",Ae="show",ye="show",Ne="hover",gt="focus",sr={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},lr={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},ur={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)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},fr={HIDE:"hide"+L,HIDDEN:"hidden"+L,SHOW:"show"+L,SHOWN:"shown"+L,INSERTED:"inserted"+L,CLICK:"click"+L,FOCUSIN:"focusin"+L,FOCUSOUT:"focusout"+L,MOUSEENTER:"mouseenter"+L,MOUSELEAVE:"mouseleave"+L},J=function(){function o(r,e){if(typeof f.default>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=r,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var a=o.prototype;return a.enable=function(){this._isEnabled=!0},a.disable=function(){this._isEnabled=!1},a.toggleEnabled=function(){this._isEnabled=!this._isEnabled},a.toggle=function(e){if(this._isEnabled)if(e){var i=this.constructor.DATA_KEY,n=t.default(e.currentTarget).data(i);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t.default(e.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(t.default(this.getTipElement()).hasClass(Ae))return void this._leave(null,this);this._enter(null,this)}},a.dispose=function(){clearTimeout(this._timeout),t.default.removeData(this.element,this.constructor.DATA_KEY),t.default(this.element).off(this.constructor.EVENT_KEY),t.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},a.show=function(){var e=this;if("none"===t.default(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t.default(this.element).trigger(i);var n=d.findShadowRoot(this.element),s=t.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var l=this.getTipElement(),u=d.getUID(this.constructor.NAME);l.setAttribute("id",u),this.element.setAttribute("aria-describedby",u),this.setContent(),this.config.animation&&t.default(l).addClass(Ce);var _="function"==typeof this.config.placement?this.config.placement.call(this,l,this.element):this.config.placement,g=this._getAttachment(_);this.addAttachmentClass(g);var m=this._getContainer();t.default(l).data(this.constructor.DATA_KEY,this),t.default.contains(this.element.ownerDocument.documentElement,this.tip)||t.default(l).appendTo(m),t.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new f.default(this.element,l,this._getPopperConfig(g)),t.default(l).addClass(Ae),t.default(l).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&t.default(document.body).children().on("mouseover",null,t.default.noop);var T=function(){e.config.animation&&e._fixTransition();var fe=e._hoverState;e._hoverState=null,t.default(e.element).trigger(e.constructor.Event.SHOWN),"out"===fe&&e._leave(null,e)};if(t.default(this.tip).hasClass(Ce)){var x=d.getTransitionDurationFromElement(this.tip);t.default(this.tip).one(d.TRANSITION_END,T).emulateTransitionEnd(x)}else T()}},a.hide=function(e){var i=this,n=this.getTipElement(),s=t.default.Event(this.constructor.Event.HIDE),l=function(){i._hoverState!==ye&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),t.default(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()};if(t.default(this.element).trigger(s),!s.isDefaultPrevented()){if(t.default(n).removeClass(Ae),"ontouchstart"in document.documentElement&&t.default(document.body).children().off("mouseover",null,t.default.noop),this._activeTrigger.click=!1,this._activeTrigger[gt]=!1,this._activeTrigger[Ne]=!1,t.default(this.tip).hasClass(Ce)){var u=d.getTransitionDurationFromElement(n);t.default(n).one(d.TRANSITION_END,l).emulateTransitionEnd(u)}else l();this._hoverState=""}},a.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},a.isWithContent=function(){return!!this.getTitle()},a.addAttachmentClass=function(e){t.default(this.getTipElement()).addClass(Bt+"-"+e)},a.getTipElement=function(){return this.tip=this.tip||t.default(this.config.template)[0],this.tip},a.setContent=function(){var e=this.getTipElement();this.setElementContent(t.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),t.default(e).removeClass(Ce+" "+Ae)},a.setElementContent=function(e,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=Kt(i,this.config.whiteList,this.config.sanitizeFn)),e.html(i)):e.text(i):this.config.html?t.default(i).parent().is(e)||e.empty().append(i):e.text(t.default(i).text())},a.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},a._getPopperConfig=function(e){var i=this;return E({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(l){l.originalPlacement!==l.placement&&i._handlePopperPlacementChange(l)},onUpdate:function(l){return i._handlePopperPlacementChange(l)}},this.config.popperConfig)},a._getOffset=function(){var e=this,i={};return"function"==typeof this.config.offset?i.fn=function(n){return n.offsets=E({},n.offsets,e.config.offset(n.offsets,e.element)),n}:i.offset=this.config.offset,i},a._getContainer=function(){return!1===this.config.container?document.body:d.isElement(this.config.container)?t.default(this.config.container):t.default(document).find(this.config.container)},a._getAttachment=function(e){return sr[e.toUpperCase()]},a._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(u){return e.toggle(u)});else if("manual"!==n){var s=n===Ne?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,l=n===Ne?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t.default(e.element).on(s,e.config.selector,function(u){return e._enter(u)}).on(l,e.config.selector,function(u){return e._leave(u)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=E({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},a._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},a._enter=function(e,i){var n=this.constructor.DATA_KEY;(i=i||t.default(e.currentTarget).data(n))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t.default(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusin"===e.type?gt:Ne]=!0),t.default(i.getTipElement()).hasClass(Ae)||i._hoverState===ye?i._hoverState=ye:(clearTimeout(i._timeout),i._hoverState=ye,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===ye&&i.show()},i.config.delay.show):i.show())},a._leave=function(e,i){var n=this.constructor.DATA_KEY;if((i=i||t.default(e.currentTarget).data(n))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t.default(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusout"===e.type?gt:Ne]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState="out",!i.config.delay||!i.config.delay.hide)return void i.hide();i._timeout=setTimeout(function(){"out"===i._hoverState&&i.hide()},i.config.delay.hide)}},a._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},a._getConfig=function(e){var i=t.default(this.element).data();return Object.keys(i).forEach(function(n){-1!==ir.indexOf(n)&&delete i[n]}),"number"==typeof(e=E({},this.constructor.Default,i,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),d.typeCheckConfig(X,e,this.constructor.DefaultType),e.sanitize&&(e.template=Kt(e.template,e.whiteList,e.sanitizeFn)),e},a._getDelegateConfig=function(){var e={};if(this.config)for(var i in this.config)this.constructor.Default[i]!==this.config[i]&&(e[i]=this.config[i]);return e},a._cleanTipClass=function(){var e=t.default(this.getTipElement()),i=e.attr("class").match(tr);null!==i&&i.length&&e.removeClass(i.join(""))},a._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},a._fixTransition=function(){var e=this.getTipElement(),i=this.config.animation;null===e.getAttribute("x-placement")&&(t.default(e).removeClass(Ce),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(Qe),s="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new o(this,s),i.data(Qe,n)),"string"==typeof e)){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e]()}})},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return lr}},{key:"NAME",get:function(){return X}},{key:"DATA_KEY",get:function(){return Qe}},{key:"Event",get:function(){return fr}},{key:"EVENT_KEY",get:function(){return L}},{key:"DefaultType",get:function(){return ur}}]),o}();t.default.fn[X]=J._jQueryInterface,t.default.fn[X].Constructor=J,t.default.fn[X].noConflict=function(){return t.default.fn[X]=er,J._jQueryInterface};var le="popover",Ye="bs.popover",R="."+Ye,cr=t.default.fn[le],Qt="bs-popover",hr=new RegExp("(^|\\s)"+Qt+"\\S+","g"),Er=E({},J.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),pr=E({},J.DefaultType,{content:"(string|element|function)"}),Tr={HIDE:"hide"+R,HIDDEN:"hidden"+R,SHOW:"show"+R,SHOWN:"shown"+R,INSERTED:"inserted"+R,CLICK:"click"+R,FOCUSIN:"focusin"+R,FOCUSOUT:"focusout"+R,MOUSEENTER:"mouseenter"+R,MOUSELEAVE:"mouseleave"+R},qe=function(o){function a(){return o.apply(this,arguments)||this}!function Pe(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,H(o,a)}(a,o);var r=a.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(i){t.default(this.getTipElement()).addClass(Qt+"-"+i)},r.getTipElement=function(){return this.tip=this.tip||t.default(this.config.template)[0],this.tip},r.setContent=function(){var i=t.default(this.getTipElement());this.setElementContent(i.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(i.find(".popover-body"),n),i.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var i=t.default(this.getTipElement()),n=i.attr("class").match(hr);null!==n&&n.length>0&&i.removeClass(n.join(""))},a._jQueryInterface=function(i){return this.each(function(){var n=t.default(this).data(Ye),s="object"==typeof i?i:null;if((n||!/dispose|hide/.test(i))&&(n||(n=new a(this,s),t.default(this).data(Ye,n)),"string"==typeof i)){if(typeof n[i]>"u")throw new TypeError('No method named "'+i+'"');n[i]()}})},S(a,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return Er}},{key:"NAME",get:function(){return le}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return Tr}},{key:"EVENT_KEY",get:function(){return R}},{key:"DefaultType",get:function(){return pr}}]),a}(J);t.default.fn[le]=qe._jQueryInterface,t.default.fn[le].Constructor=qe,t.default.fn[le].noConflict=function(){return t.default.fn[le]=cr,qe._jQueryInterface};var Z="scrollspy",Ge="bs.scrollspy",ze="."+Ge,Ar=t.default.fn[Z],ee="active",Nr="activate"+ze,Ir="scroll"+ze,Dr="load"+ze+".data-api",Yt="position",qt=".nav, .list-group",mt=".nav-link",Gt=".list-group-item",zt={offset:10,method:"auto",target:""},Fr={offset:"number",method:"string",target:"(string|element)"},Ie=function(){function o(r,e){var i=this;this._element=r,this._scrollElement="BODY"===r.tagName?window:r,this._config=this._getConfig(e),this._selector=this._config.target+" "+mt+","+this._config.target+" "+Gt+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t.default(this._scrollElement).on(Ir,function(n){return i._process(n)}),this.refresh(),this._process()}var a=o.prototype;return a.refresh=function(){var e=this,n="auto"===this._config.method?this._scrollElement===this._scrollElement.window?"offset":Yt:this._config.method,s=n===Yt?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(u){var _,g=d.getSelectorFromElement(u);if(g&&(_=document.querySelector(g)),_){var m=_.getBoundingClientRect();if(m.width||m.height)return[t.default(_)[n]().top+s,g]}return null}).filter(function(u){return u}).sort(function(u,_){return u[0]-_[0]}).forEach(function(u){e._offsets.push(u[0]),e._targets.push(u[1])})},a.dispose=function(){t.default.removeData(this._element,Ge),t.default(this._scrollElement).off(ze),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},a._getConfig=function(e){if("string"!=typeof(e=E({},zt,"object"==typeof e&&e?e:{})).target&&d.isElement(e.target)){var i=t.default(e.target).attr("id");i||(i=d.getUID(Z),t.default(e.target).attr("id",i)),e.target="#"+i}return d.typeCheckConfig(Z,e,Fr),e},a._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},a._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},a._process=function(){var e=this._getScrollTop()+this._config.offset,i=this._getScrollHeight(),n=this._config.offset+i-this._getOffsetHeight();if(this._scrollHeight!==i&&this.refresh(),e>=n){var s=this._targets[this._targets.length-1];this._activeTarget!==s&&this._activate(s)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var l=this._offsets.length;l--;)this._activeTarget!==this._targets[l]&&e>=this._offsets[l]&&(typeof this._offsets[l+1]>"u"||e<this._offsets[l+1])&&this._activate(this._targets[l])}},a._activate=function(e){this._activeTarget=e,this._clear();var i=this._selector.split(",").map(function(s){return s+'[data-target="'+e+'"],'+s+'[href="'+e+'"]'}),n=t.default([].slice.call(document.querySelectorAll(i.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(ee),n.addClass(ee)):(n.addClass(ee),n.parents(qt).prev(mt+", "+Gt).addClass(ee),n.parents(qt).prev(".nav-item").children(mt).addClass(ee)),t.default(this._scrollElement).trigger(Nr,{relatedTarget:e})},a._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(ee)}).forEach(function(e){return e.classList.remove(ee)})},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this).data(Ge);if(i||(i=new o(this,"object"==typeof e&&e),t.default(this).data(Ge,i)),"string"==typeof e){if(typeof i[e]>"u")throw new TypeError('No method named "'+e+'"');i[e]()}})},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return zt}}]),o}();t.default(window).on(Dr,function(){for(var o=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),r=o.length;r--;){var e=t.default(o[r]);Ie._jQueryInterface.call(e,e.data())}}),t.default.fn[Z]=Ie._jQueryInterface,t.default.fn[Z].Constructor=Ie,t.default.fn[Z].noConflict=function(){return t.default.fn[Z]=Ar,Ie._jQueryInterface};var De="tab",Xe="bs.tab",Oe="."+Xe,$r=t.default.fn[De],be="active",jr="hide"+Oe,Hr="hidden"+Oe,Ur="show"+Oe,Wr="shown"+Oe,Kr="click"+Oe+".data-api",Zt=".active",ei="> li > .active",we=function(){function o(r){this._element=r}var a=o.prototype;return a.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t.default(this._element).hasClass(be)||t.default(this._element).hasClass("disabled"))){var i,n,s=t.default(this._element).closest(".nav, .list-group")[0],l=d.getSelectorFromElement(this._element);if(s){var u="UL"===s.nodeName||"OL"===s.nodeName?ei:Zt;n=(n=t.default.makeArray(t.default(s).find(u)))[n.length-1]}var _=t.default.Event(jr,{relatedTarget:this._element}),g=t.default.Event(Ur,{relatedTarget:n});if(n&&t.default(n).trigger(_),t.default(this._element).trigger(g),!g.isDefaultPrevented()&&!_.isDefaultPrevented()){l&&(i=document.querySelector(l)),this._activate(this._element,s);var m=function(){var x=t.default.Event(Hr,{relatedTarget:e._element}),P=t.default.Event(Wr,{relatedTarget:n});t.default(n).trigger(x),t.default(e._element).trigger(P)};i?this._activate(i,i.parentNode,m):m()}}},a.dispose=function(){t.default.removeData(this._element,Xe),this._element=null},a._activate=function(e,i,n){var s=this,u=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?t.default(i).children(Zt):t.default(i).find(ei))[0],_=n&&u&&t.default(u).hasClass("fade"),g=function(){return s._transitionComplete(e,u,n)};if(u&&_){var m=d.getTransitionDurationFromElement(u);t.default(u).removeClass("show").one(d.TRANSITION_END,g).emulateTransitionEnd(m)}else g()},a._transitionComplete=function(e,i,n){if(i){t.default(i).removeClass(be);var s=t.default(i.parentNode).find("> .dropdown-menu .active")[0];s&&t.default(s).removeClass(be),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}t.default(e).addClass(be),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),d.reflow(e),e.classList.contains("fade")&&e.classList.add("show");var l=e.parentNode;if(l&&"LI"===l.nodeName&&(l=l.parentNode),l&&t.default(l).hasClass("dropdown-menu")){var u=t.default(e).closest(".dropdown")[0];if(u){var _=[].slice.call(u.querySelectorAll(".dropdown-toggle"));t.default(_).addClass(be)}e.setAttribute("aria-expanded",!0)}n&&n()},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(Xe);if(n||(n=new o(this),i.data(Xe,n)),"string"==typeof e){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e]()}})},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}}]),o}();t.default(document).on(Kr,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(o){o.preventDefault(),we._jQueryInterface.call(t.default(this),"show")}),t.default.fn[De]=we._jQueryInterface,t.default.fn[De].Constructor=we,t.default.fn[De].noConflict=function(){return t.default.fn[De]=$r,we._jQueryInterface};var ue="toast",Je="bs.toast",Le="."+Je,Xr=t.default.fn[ue],Re="show",ii="showing",ni="click.dismiss"+Le,Zr="hide"+Le,ea="hidden"+Le,ta="show"+Le,ia="shown"+Le,ri={animation:!0,autohide:!0,delay:500},ra={animation:"boolean",autohide:"boolean",delay:"number"},Ze=function(){function o(r,e){this._element=r,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var a=o.prototype;return a.show=function(){var e=this,i=t.default.Event(ta);if(t.default(this._element).trigger(i),!i.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove(ii),e._element.classList.add(Re),t.default(e._element).trigger(ia),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove("hide"),d.reflow(this._element),this._element.classList.add(ii),this._config.animation){var s=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(s)}else n()}},a.hide=function(){if(this._element.classList.contains(Re)){var e=t.default.Event(Zr);t.default(this._element).trigger(e),!e.isDefaultPrevented()&&this._close()}},a.dispose=function(){this._clearTimeout(),this._element.classList.contains(Re)&&this._element.classList.remove(Re),t.default(this._element).off(ni),t.default.removeData(this._element,Je),this._element=null,this._config=null},a._getConfig=function(e){return e=E({},ri,t.default(this._element).data(),"object"==typeof e&&e?e:{}),d.typeCheckConfig(ue,e,this.constructor.DefaultType),e},a._setListeners=function(){var e=this;t.default(this._element).on(ni,'[data-dismiss="toast"]',function(){return e.hide()})},a._close=function(){var e=this,i=function(){e._element.classList.add("hide"),t.default(e._element).trigger(ea)};if(this._element.classList.remove(Re),this._config.animation){var n=d.getTransitionDurationFromElement(this._element);t.default(this._element).one(d.TRANSITION_END,i).emulateTransitionEnd(n)}else i()},a._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},o._jQueryInterface=function(e){return this.each(function(){var i=t.default(this),n=i.data(Je);if(n||(n=new o(this,"object"==typeof e&&e),i.data(Je,n)),"string"==typeof e){if(typeof n[e]>"u")throw new TypeError('No method named "'+e+'"');n[e](this)}})},S(o,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"DefaultType",get:function(){return ra}},{key:"Default",get:function(){return ri}}]),o}();t.default.fn[ue]=Ze._jQueryInterface,t.default.fn[ue].Constructor=Ze,t.default.fn[ue].noConflict=function(){return t.default.fn[ue]=Xr,Ze._jQueryInterface},v.Alert=Q,v.Button=he,v.Carousel=ne,v.Collapse=me,v.Dropdown=U,v.Modal=Se,v.Popover=qe,v.Scrollspy=Ie,v.Tab=we,v.Toast=Ze,v.Tooltip=J,v.Util=d,Object.defineProperty(v,"__esModule",{value:!0})}),function(v){v.isScrollToFixed=function(y){return!!v(y).data("ScrollToFixed")},v.ScrollToFixed=function(y,et){var c=this;c.$el=v(y),c.el=y,c.$el.data("ScrollToFixed",c);var F,S,E,Pe,t=!1,f=c.$el,H=0,N=0,Fe=-1,W=-1,$=null;function d(){var h=c.options.limit;return h?"function"==typeof h?h.apply(f):h:0}function I(){return"fixed"===F}function Me(){return"absolute"===F}function D(){return!(I()||Me())}function K(){I()||($.css({display:f.css("display"),width:f.outerWidth(!0),height:f.outerHeight(!0),float:f.css("float")}),cssOptions={"z-index":c.options.zIndex,position:"fixed",top:-1==c.options.bottom?te():"",bottom:-1==c.options.bottom?"":c.options.bottom,"margin-left":"0px"},c.options.dontSetWidth||(cssOptions.width=f.width()),f.css(cssOptions),f.addClass(c.options.baseClassName),c.options.className&&f.addClass(c.options.className),F="fixed")}function xe(){var h=d(),p=N;c.options.removeOffsets&&(p="",h-=H),cssOptions={position:"absolute",top:h,left:p,"margin-left":"0px",bottom:""},c.options.dontSetWidth||(cssOptions.width=f.width()),f.css(cssOptions),F="absolute"}function k(){D()||(W=-1,$.css("display","none"),f.css({"z-index":Pe,width:"",position:S,left:"",top:E,"margin-left":""}),f.removeClass("scroll-to-fixed-fixed"),c.options.className&&f.removeClass(c.options.className),F=null)}function de(h){h!=W&&(f.css("left",N-h),W=h)}function te(){var h=c.options.marginTop;return h?"function"==typeof h?h.apply(f):h:0}function B(){if(v.isScrollToFixed(f)){var h=t;t?D()&&(H=f.offset().top,N=f.offset().left):function tt(){f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed"),W=-1,H=f.offset().top,N=f.offset().left,c.options.offsets&&(N+=f.offset().left-f.position().left),-1==Fe&&(Fe=N),F=f.css("position"),t=!0,-1!=c.options.bottom&&(f.trigger("preFixed.ScrollToFixed"),K(),f.trigger("fixed.ScrollToFixed"))}();var p=v(window).scrollLeft(),M=v(window).scrollTop(),O=d();c.options.minWidth&&v(window).width()<c.options.minWidth||c.options.maxWidth&&v(window).width()>c.options.maxWidth?(!D()||!h)&&(V(),f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed")):-1==c.options.bottom?O>0&&M>=O-te()?(!Me()||!h)&&(V(),f.trigger("preAbsolute.ScrollToFixed"),xe(),f.trigger("unfixed.ScrollToFixed")):M>=H-te()?((!I()||!h)&&(V(),f.trigger("preFixed.ScrollToFixed"),K(),W=-1,f.trigger("fixed.ScrollToFixed")),de(p)):(!D()||!h)&&(V(),f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed")):O>0?M+v(window).height()-f.outerHeight(!0)>=O-(te()||-function it(){return c.options.bottom?c.options.bottom:0}())?I()&&(V(),f.trigger("preUnfixed.ScrollToFixed"),"absolute"===S?xe():k(),f.trigger("unfixed.ScrollToFixed")):(I()||(V(),f.trigger("preFixed.ScrollToFixed"),K()),de(p),f.trigger("fixed.ScrollToFixed")):de(p)}}function V(){var h=f.css("position");f.trigger("absolute"==h?"postAbsolute.ScrollToFixed":"fixed"==h?"postFixed.ScrollToFixed":"postUnfixed.ScrollToFixed")}var ce=function(h){f.is(":visible")&&(t=!1,B())},$e=function(h){window.requestAnimationFrame?requestAnimationFrame(B):B()};c.init=function(){c.options=v.extend({},v.ScrollToFixed.defaultOptions,et),Pe=f.css("z-index"),c.$el.css("z-index",c.options.zIndex),$=v("<div />"),F=f.css("position"),S=f.css("position"),E=f.css("top"),D()&&c.$el.after($),v(window).bind("resize.ScrollToFixed",ce),v(window).bind("scroll.ScrollToFixed",$e),"ontouchmove"in window&&v(window).bind("touchmove.ScrollToFixed",B),c.options.preFixed&&f.bind("preFixed.ScrollToFixed",c.options.preFixed),c.options.postFixed&&f.bind("postFixed.ScrollToFixed",c.options.postFixed),c.options.preUnfixed&&f.bind("preUnfixed.ScrollToFixed",c.options.preUnfixed),c.options.postUnfixed&&f.bind("postUnfixed.ScrollToFixed",c.options.postUnfixed),c.options.preAbsolute&&f.bind("preAbsolute.ScrollToFixed",c.options.preAbsolute),c.options.postAbsolute&&f.bind("postAbsolute.ScrollToFixed",c.options.postAbsolute),c.options.fixed&&f.bind("fixed.ScrollToFixed",c.options.fixed),c.options.unfixed&&f.bind("unfixed.ScrollToFixed",c.options.unfixed),c.options.spacerClass&&$.addClass(c.options.spacerClass),f.bind("resize.ScrollToFixed",function(){$.height(f.height())}),f.bind("scroll.ScrollToFixed",function(){f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed"),B()}),f.bind("detach.ScrollToFixed",function(h){(function(h){(h=h||window.event).preventDefault&&h.preventDefault(),h.returnValue=!1})(h),f.trigger("preUnfixed.ScrollToFixed"),k(),f.trigger("unfixed.ScrollToFixed"),v(window).unbind("resize.ScrollToFixed",ce),v(window).unbind("scroll.ScrollToFixed",$e),f.unbind(".ScrollToFixed"),$.remove(),c.$el.removeData("ScrollToFixed")}),ce()},c.init()},v.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"},v.fn.scrollToFixed=function(y){return this.each(function(){new v.ScrollToFixed(this,y)})}}(jQuery);