if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");!function(t){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){"use strict";var t="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},e=Object.assign||function(t){for(var e=1;e0?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(i){t(i).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var a=i[s],o=e[s],r=o&&n.isElement(o)?"element":(h=o,{}.toString.call(h).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(a).test(r))throw new Error(t.toUpperCase()+': Option "'+s+'" provided type "'+r+'" but expected type "'+a+'".')}var h}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=i,n.supportsTransitionEnd()&&(t.event.special[n.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),n}($),Ti=(s=$,a="alert",r="."+(o="bs.alert"),h=s.fn[a],l={CLOSE:"close"+r,CLOSED:"closed"+r,CLICK_DATA_API:"click"+r+".data-api"},c="alert",d="fade",u="show",f=function(){function t(e){n(this,t),this._element=e}return t.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.prototype.dispose=function(){s.removeData(this._element,o),this._element=null},t.prototype._getRootElement=function(t){var e=Di.getSelectorFromElement(t),i=!1;return e&&(i=s(e)[0]),i||(i=s(t).closest("."+c)[0]),i},t.prototype._triggerCloseEvent=function(t){var e=s.Event(l.CLOSE);return s(t).trigger(e),e},t.prototype._removeElement=function(t){var e=this;s(t).removeClass(u),Di.supportsTransitionEnd()&&s(t).hasClass(d)?s(t).one(Di.TRANSITION_END,function(i){return e._destroyElement(t,i)}).emulateTransitionEnd(150):this._destroyElement(t)},t.prototype._destroyElement=function(t){s(t).detach().trigger(l.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var i=s(this),n=i.data(o);n||(n=new t(this),i.data(o,n)),"close"===e&&n[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),s(document).on(l.CLICK_DATA_API,'[data-dismiss="alert"]',f._handleDismiss(new f)),s.fn[a]=f._jQueryInterface,s.fn[a].Constructor=f,s.fn[a].noConflict=function(){return s.fn[a]=h,f._jQueryInterface},p=$,g="button",m="."+(_="bs.button"),v=".data-api",y=p.fn[g],D="active",T="btn",C="focus",E='[data-toggle^="button"]',w='[data-toggle="buttons"]',b="input",I=".active",k=".btn",S={CLICK_DATA_API:"click"+m+v,FOCUS_BLUR_DATA_API:"focus"+m+v+" blur"+m+v},A=function(){function t(e){n(this,t),this._element=e}return t.prototype.toggle=function(){var t=!0,e=!0,i=p(this._element).closest(w)[0];if(i){var n=p(this._element).find(b)[0];if(n){if("radio"===n.type)if(n.checked&&p(this._element).hasClass(D))t=!1;else{var s=p(i).find(I)[0];s&&p(s).removeClass(D)}if(t){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!p(this._element).hasClass(D),p(n).trigger("change")}n.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!p(this._element).hasClass(D)),t&&p(this._element).toggleClass(D)},t.prototype.dispose=function(){p.removeData(this._element,_),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var i=p(this).data(_);i||(i=new t(this),p(this).data(_,i)),"toggle"===e&&i[e]()})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),p(document).on(S.CLICK_DATA_API,E,function(t){t.preventDefault();var e=t.target;p(e).hasClass(T)||(e=p(e).closest(k)),A._jQueryInterface.call(p(e),"toggle")}).on(S.FOCUS_BLUR_DATA_API,E,function(t){var e=p(t.target).closest(k)[0];p(e).toggleClass(C,/^focus(in)?$/.test(t.type))}),p.fn[g]=A._jQueryInterface,p.fn[g].Constructor=A,p.fn[g].noConflict=function(){return p.fn[g]=y,A._jQueryInterface},N=$,O="carousel",M="."+(U="bs.carousel"),x=".data-api",P=N.fn[O],L={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},R={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},F="next",j="prev",W="left",V="right",Y={SLIDE:"slide"+M,SLID:"slid"+M,KEYDOWN:"keydown"+M,MOUSEENTER:"mouseenter"+M,MOUSELEAVE:"mouseleave"+M,TOUCHEND:"touchend"+M,LOAD_DATA_API:"load"+M+x,CLICK_DATA_API:"click"+M+x},H="carousel",K="active",B="slide",Q="carousel-item-right",G="carousel-item-left",z="carousel-item-next",q="carousel-item-prev",J={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"]'},X=function(){function s(t,e){n(this,s),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=N(t)[0],this._indicatorsElement=N(this._element).find(J.INDICATORS)[0],this._addEventListeners()}return s.prototype.next=function(){this._isSliding||this._slide(F)},s.prototype.nextWhenVisible=function(){!document.hidden&&N(this._element).is(":visible")&&"hidden"!==N(this._element).css("visibility")&&this.next()},s.prototype.prev=function(){this._isSliding||this._slide(j)},s.prototype.pause=function(t){t||(this._isPaused=!0),N(this._element).find(J.NEXT_PREV)[0]&&Di.supportsTransitionEnd()&&(Di.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},s.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))},s.prototype.to=function(t){var e=this;this._activeElement=N(this._element).find(J.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)N(this._element).one(Y.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=t>i?F:j;this._slide(n,this._items[t])}},s.prototype.dispose=function(){N(this._element).off(M),N.removeData(this._element,U),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},s.prototype._getConfig=function(t){return t=e({},L,t),Di.typeCheckConfig(O,t,R),t},s.prototype._addEventListeners=function(){var t=this;this._config.keyboard&&N(this._element).on(Y.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(N(this._element).on(Y.MOUSEENTER,function(e){return t.pause(e)}).on(Y.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&N(this._element).on(Y.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},s.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()}},s.prototype._getItemIndex=function(t){return this._items=N.makeArray(N(t).parent().find(J.ITEM)),this._items.indexOf(t)},s.prototype._getItemByDirection=function(t,e){var i=t===F,n=t===j,s=this._getItemIndex(e),a=this._items.length-1;if((n&&0===s||i&&s===a)&&!this._config.wrap)return e;var o=(s+(t===j?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},s.prototype._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(N(this._element).find(J.ACTIVE_ITEM)[0]),s=N.Event(Y.SLIDE,{relatedTarget:t,direction:e,from:n,to:i});return N(this._element).trigger(s),s},s.prototype._setActiveIndicatorElement=function(t){if(this._indicatorsElement){N(this._indicatorsElement).find(J.ACTIVE).removeClass(K);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&N(e).addClass(K)}},s.prototype._slide=function(t,e){var i=this,n=N(this._element).find(J.ACTIVE_ITEM)[0],s=this._getItemIndex(n),a=e||n&&this._getItemByDirection(t,n),o=this._getItemIndex(a),r=Boolean(this._interval),h=void 0,l=void 0,c=void 0;if(t===F?(h=G,l=z,c=W):(h=Q,l=q,c=V),a&&N(a).hasClass(K))this._isSliding=!1;else if(!this._triggerSlideEvent(a,c).isDefaultPrevented()&&n&&a){this._isSliding=!0,r&&this.pause(),this._setActiveIndicatorElement(a);var d=N.Event(Y.SLID,{relatedTarget:a,direction:c,from:s,to:o});Di.supportsTransitionEnd()&&N(this._element).hasClass(B)?(N(a).addClass(l),Di.reflow(a),N(n).addClass(h),N(a).addClass(h),N(n).one(Di.TRANSITION_END,function(){N(a).removeClass(h+" "+l).addClass(K),N(n).removeClass(K+" "+l+" "+h),i._isSliding=!1,setTimeout(function(){return N(i._element).trigger(d)},0)}).emulateTransitionEnd(600)):(N(n).removeClass(K),N(a).addClass(K),this._isSliding=!1,N(this._element).trigger(d)),r&&this.cycle()}},s._jQueryInterface=function(i){return this.each(function(){var n=N(this).data(U),a=e({},L,N(this).data());"object"===(void 0===i?"undefined":t(i))&&(a=e({},a,i));var o="string"==typeof i?i:a.slide;if(n||(n=new s(this,a),N(this).data(U,n)),"number"==typeof i)n.to(i);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else a.interval&&(n.pause(),n.cycle())})},s._dataApiClickHandler=function(t){var i=Di.getSelectorFromElement(this);if(i){var n=N(i)[0];if(n&&N(n).hasClass(H)){var a=e({},N(n).data(),N(this).data()),o=this.getAttribute("data-slide-to");o&&(a.interval=!1),s._jQueryInterface.call(N(n),a),o&&N(n).data(U).to(o),t.preventDefault()}}},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return L}}]),s}(),N(document).on(Y.CLICK_DATA_API,J.DATA_SLIDE,X._dataApiClickHandler),N(window).on(Y.LOAD_DATA_API,function(){N(J.DATA_RIDE).each(function(){var t=N(this);X._jQueryInterface.call(t,t.data())})}),N.fn[O]=X._jQueryInterface,N.fn[O].Constructor=X,N.fn[O].noConflict=function(){return N.fn[O]=P,X._jQueryInterface},Z=$,tt="collapse",it="."+(et="bs.collapse"),nt=Z.fn[tt],st={toggle:!0,parent:""},at={toggle:"boolean",parent:"(string|element)"},ot={SHOW:"show"+it,SHOWN:"shown"+it,HIDE:"hide"+it,HIDDEN:"hidden"+it,CLICK_DATA_API:"click"+it+".data-api"},rt="show",ht="collapse",lt="collapsing",ct="collapsed",dt="width",ut="height",ft={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},pt=function(){function s(t,e){n(this,s),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=Z.makeArray(Z('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=Z(ft.DATA_TOGGLE),a=0;a0&&(this._selector=r,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()}return s.prototype.toggle=function(){Z(this._element).hasClass(rt)?this.hide():this.show()},s.prototype.show=function(){var t=this;if(!this._isTransitioning&&!Z(this._element).hasClass(rt)){var e=void 0,i=void 0;if(this._parent&&0===(e=Z.makeArray(Z(this._parent).find(ft.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(i=Z(e).not(this._selector).data(et))&&i._isTransitioning)){var n=Z.Event(ot.SHOW);if(Z(this._element).trigger(n),!n.isDefaultPrevented()){e&&(s._jQueryInterface.call(Z(e).not(this._selector),"hide"),i||Z(e).data(et,null));var a=this._getDimension();Z(this._element).removeClass(ht).addClass(lt),this._element.style[a]=0,this._triggerArray.length>0&&Z(this._triggerArray).removeClass(ct).attr("aria-expanded",!0),this.setTransitioning(!0);var o=function(){Z(t._element).removeClass(lt).addClass(ht).addClass(rt),t._element.style[a]="",t.setTransitioning(!1),Z(t._element).trigger(ot.SHOWN)};if(Di.supportsTransitionEnd()){var r="scroll"+(a[0].toUpperCase()+a.slice(1));Z(this._element).one(Di.TRANSITION_END,o).emulateTransitionEnd(600),this._element.style[a]=this._element[r]+"px"}else o()}}}},s.prototype.hide=function(){var t=this;if(!this._isTransitioning&&Z(this._element).hasClass(rt)){var e=Z.Event(ot.HIDE);if(Z(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",Di.reflow(this._element),Z(this._element).addClass(lt).removeClass(ht).removeClass(rt),this._triggerArray.length>0)for(var n=0;n0&&Z(e).toggleClass(ct,!i).attr("aria-expanded",i)}},s._getTargetFromElement=function(t){var e=Di.getSelectorFromElement(t);return e?Z(e)[0]:null},s._jQueryInterface=function(i){return this.each(function(){var n=Z(this),a=n.data(et),o=e({},st,n.data(),"object"===(void 0===i?"undefined":t(i))&&i);if(!a&&o.toggle&&/show|hide/.test(i)&&(o.toggle=!1),a||(a=new s(this,o),n.data(et,a)),"string"==typeof i){if(void 0===a[i])throw new TypeError('No method named "'+i+'"');a[i]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return st}}]),s}(),Z(document).on(ot.CLICK_DATA_API,ft.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=Z(this),i=Di.getSelectorFromElement(this);Z(i).each(function(){var t=Z(this),i=t.data(et)?"toggle":e.data();pt._jQueryInterface.call(t,i)})}),Z.fn[tt]=pt._jQueryInterface,Z.fn[tt].Constructor=pt,Z.fn[tt].noConflict=function(){return Z.fn[tt]=nt,pt._jQueryInterface},gt=$,Popper,_t="dropdown",vt="."+(mt="bs.dropdown"),yt=".data-api",Dt=gt.fn[_t],Tt=new RegExp("38|40|27"),Ct={HIDE:"hide"+vt,HIDDEN:"hidden"+vt,SHOW:"show"+vt,SHOWN:"shown"+vt,CLICK:"click"+vt,CLICK_DATA_API:"click"+vt+yt,KEYDOWN_DATA_API:"keydown"+vt+yt,KEYUP_DATA_API:"keyup"+vt+yt},Et="disabled",wt="show",bt="dropup",It="dropright",kt="dropleft",St="dropdown-menu-right",At="position-static",Nt='[data-toggle="dropdown"]',Ot=".dropdown form",Ut=".dropdown-menu",Mt=".navbar-nav",xt=".dropdown-menu .dropdown-item:not(.disabled)",Pt="top-start",Lt="top-end",Rt="bottom-start",Ft="bottom-end",jt="right-start",Wt="left-start",Vt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle"},Yt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)"},Ht=function(){function s(t,e){n(this,s),this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}return s.prototype.toggle=function(){if(!this._element.disabled&&!gt(this._element).hasClass(Et)){var t=s._getParentFromElement(this._element),e=gt(this._menu).hasClass(wt);if(s._clearMenus(),!e){var i={relatedTarget:this._element},n=gt.Event(Ct.SHOW,i);if(gt(t).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof Popper)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=t:Di.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&>(t).addClass(At),this._popper=new Popper(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===gt(t).closest(Mt).length&>("body").children().on("mouseover",null,gt.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),gt(this._menu).toggleClass(wt),gt(t).toggleClass(wt).trigger(gt.Event(Ct.SHOWN,i))}}}},s.prototype.dispose=function(){gt.removeData(this._element,mt),gt(this._element).off(vt),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},s.prototype.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},s.prototype._addEventListeners=function(){var t=this;gt(this._element).on(Ct.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},s.prototype._getConfig=function(t){return t=e({},this.constructor.Default,gt(this._element).data(),t),Di.typeCheckConfig(_t,t,this.constructor.DefaultType),t},s.prototype._getMenuElement=function(){if(!this._menu){var t=s._getParentFromElement(this._element);this._menu=gt(t).find(Ut)[0]}return this._menu},s.prototype._getPlacement=function(){var t=gt(this._element).parent(),e=Rt;return t.hasClass(bt)?(e=Pt,gt(this._menu).hasClass(St)&&(e=Lt)):t.hasClass(It)?e=jt:t.hasClass(kt)?e=Wt:gt(this._menu).hasClass(St)&&(e=Ft),e},s.prototype._detectNavbar=function(){return gt(this._element).closest(".navbar").length>0},s.prototype._getPopperConfig=function(){var t=this,i={};return"function"==typeof this._config.offset?i.fn=function(i){return i.offsets=e({},i.offsets,t._config.offset(i.offsets)||{}),i}:i.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:i,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},s._jQueryInterface=function(e){return this.each(function(){var i=gt(this).data(mt),n="object"===(void 0===e?"undefined":t(e))?e:null;if(i||(i=new s(this,n),gt(this).data(mt,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=gt.makeArray(gt(Nt)),i=0;i0&&a--,40===t.which&&adocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},s.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},s.prototype._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},ge="show",_e="out",me={HIDE:"hide"+he,HIDDEN:"hidden"+he,SHOW:"show"+he,SHOWN:"shown"+he,INSERTED:"inserted"+he,CLICK:"click"+he,FOCUSIN:"focusin"+he,FOCUSOUT:"focusout"+he,MOUSEENTER:"mouseenter"+he,MOUSELEAVE:"mouseleave"+he},ve="fade",ye="show",De=".tooltip-inner",Te=".arrow",Ce="hover",Ee="focus",we="click",be="manual",Ie=function(){function s(t,e){if(n(this,s),"undefined"==typeof Popper)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return s.prototype.enable=function(){this._isEnabled=!0},s.prototype.disable=function(){this._isEnabled=!1},s.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},s.prototype.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=ae(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),ae(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(ae(this.getTipElement()).hasClass(ye))return void this._leave(null,this);this._enter(null,this)}},s.prototype.dispose=function(){clearTimeout(this._timeout),ae.removeData(this.element,this.constructor.DATA_KEY),ae(this.element).off(this.constructor.EVENT_KEY),ae(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&ae(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},s.prototype.show=function(){var t=this;if("none"===ae(this.element).css("display"))throw new Error("Please use show on visible elements");var e=ae.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){ae(this.element).trigger(e);var i=ae.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var n=this.getTipElement(),a=Di.getUID(this.constructor.NAME);n.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&ae(n).addClass(ve);var o="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,r=this._getAttachment(o);this.addAttachmentClass(r);var h=!1===this.config.container?document.body:ae(this.config.container);ae(n).data(this.constructor.DATA_KEY,this),ae.contains(this.element.ownerDocument.documentElement,this.tip)||ae(n).appendTo(h),ae(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,n,{placement:r,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:Te},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),ae(n).addClass(ye),"ontouchstart"in document.documentElement&&ae("body").children().on("mouseover",null,ae.noop);var l=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,ae(t.element).trigger(t.constructor.Event.SHOWN),e===_e&&t._leave(null,t)};Di.supportsTransitionEnd()&&ae(this.tip).hasClass(ve)?ae(this.tip).one(Di.TRANSITION_END,l).emulateTransitionEnd(s._TRANSITION_DURATION):l()}},s.prototype.hide=function(t){var e=this,i=this.getTipElement(),n=ae.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==ge&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),ae(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};ae(this.element).trigger(n),n.isDefaultPrevented()||(ae(i).removeClass(ye),"ontouchstart"in document.documentElement&&ae("body").children().off("mouseover",null,ae.noop),this._activeTrigger[we]=!1,this._activeTrigger[Ee]=!1,this._activeTrigger[Ce]=!1,Di.supportsTransitionEnd()&&ae(this.tip).hasClass(ve)?ae(i).one(Di.TRANSITION_END,s).emulateTransitionEnd(150):s(),this._hoverState="")},s.prototype.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},s.prototype.isWithContent=function(){return Boolean(this.getTitle())},s.prototype.addAttachmentClass=function(t){ae(this.getTipElement()).addClass(ce+"-"+t)},s.prototype.getTipElement=function(){return this.tip=this.tip||ae(this.config.template)[0],this.tip},s.prototype.setContent=function(){var t=ae(this.getTipElement());this.setElementContent(t.find(De),this.getTitle()),t.removeClass(ve+" "+ye)},s.prototype.setElementContent=function(e,i){var n=this.config.html;"object"===(void 0===i?"undefined":t(i))&&(i.nodeType||i.jquery)?n?ae(i).parent().is(e)||e.empty().append(i):e.text(ae(i).text()):e[n?"html":"text"](i)},s.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},s.prototype._getAttachment=function(t){return fe[t.toUpperCase()]},s.prototype._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)ae(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(e!==be){var i=e===Ce?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n=e===Ce?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;ae(t.element).on(i,t.config.selector,function(e){return t._enter(e)}).on(n,t.config.selector,function(e){return t._leave(e)})}ae(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=e({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},s.prototype._fixTitle=function(){var e=t(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",""))},s.prototype._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||ae(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),ae(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?Ee:Ce]=!0),ae(e.getTipElement()).hasClass(ye)||e._hoverState===ge?e._hoverState=ge:(clearTimeout(e._timeout),e._hoverState=ge,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===ge&&e.show()},e.config.delay.show):e.show())},s.prototype._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||ae(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),ae(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?Ee:Ce]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=_e,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===_e&&e.hide()},e.config.delay.hide):e.hide())},s.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},s.prototype._getConfig=function(t){return"number"==typeof(t=e({},this.constructor.Default,ae(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Di.typeCheckConfig(oe,t,this.constructor.DefaultType),t},s.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},s.prototype._cleanTipClass=function(){var t=ae(this.getTipElement()),e=t.attr("class").match(de);null!==e&&e.length>0&&t.removeClass(e.join(""))},s.prototype._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},s.prototype._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(ae(t).removeClass(ve),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},s._jQueryInterface=function(e){return this.each(function(){var i=ae(this).data(re),n="object"===(void 0===e?"undefined":t(e))&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new s(this,n),ae(this).data(re,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return pe}},{key:"NAME",get:function(){return oe}},{key:"DATA_KEY",get:function(){return re}},{key:"Event",get:function(){return me}},{key:"EVENT_KEY",get:function(){return he}},{key:"DefaultType",get:function(){return ue}}]),s}(),ae.fn[oe]=Ie._jQueryInterface,ae.fn[oe].Constructor=Ie,ae.fn[oe].noConflict=function(){return ae.fn[oe]=le,Ie._jQueryInterface},Ie);ke=$,Se="popover",Ne="."+(Ae="bs.popover"),Oe=ke.fn[Se],Ue="bs-popover",Me=new RegExp("(^|\\s)"+Ue+"\\S+","g"),xe=e({},Ti.Default,{placement:"right",trigger:"click",content:"",template:''}),Pe=e({},Ti.DefaultType,{content:"(string|element|function)"}),Le="fade",Re="show",Fe=".popover-header",je=".popover-body",We={HIDE:"hide"+Ne,HIDDEN:"hidden"+Ne,SHOW:"show"+Ne,SHOWN:"shown"+Ne,INSERTED:"inserted"+Ne,CLICK:"click"+Ne,FOCUSIN:"focusin"+Ne,FOCUSOUT:"focusout"+Ne,MOUSEENTER:"mouseenter"+Ne,MOUSELEAVE:"mouseleave"+Ne},Ve=function(e){function s(){return n(this,s),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,e.apply(this,arguments))}return 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)}(s,e),s.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},s.prototype.addAttachmentClass=function(t){ke(this.getTipElement()).addClass(Ue+"-"+t)},s.prototype.getTipElement=function(){return this.tip=this.tip||ke(this.config.template)[0],this.tip},s.prototype.setContent=function(){var t=ke(this.getTipElement());this.setElementContent(t.find(Fe),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(je),e),t.removeClass(Le+" "+Re)},s.prototype._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s.prototype._cleanTipClass=function(){var t=ke(this.getTipElement()),e=t.attr("class").match(Me);null!==e&&e.length>0&&t.removeClass(e.join(""))},s._jQueryInterface=function(e){return this.each(function(){var i=ke(this).data(Ae),n="object"===(void 0===e?"undefined":t(e))?e:null;if((i||!/destroy|hide/.test(e))&&(i||(i=new s(this,n),ke(this).data(Ae,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return xe}},{key:"NAME",get:function(){return Se}},{key:"DATA_KEY",get:function(){return Ae}},{key:"Event",get:function(){return We}},{key:"EVENT_KEY",get:function(){return Ne}},{key:"DefaultType",get:function(){return Pe}}]),s}(Ti),ke.fn[Se]=Ve._jQueryInterface,ke.fn[Se].Constructor=Ve,ke.fn[Se].noConflict=function(){return ke.fn[Se]=Oe,Ve._jQueryInterface},Ye=$,He="scrollspy",Be="."+(Ke="bs.scrollspy"),Qe=Ye.fn[He],$e={offset:10,method:"auto",target:""},Ge={offset:"number",method:"string",target:"(string|element)"},ze={ACTIVATE:"activate"+Be,SCROLL:"scroll"+Be,LOAD_DATA_API:"load"+Be+".data-api"},qe="dropdown-item",Je="active",Xe={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},Ze="offset",ti="position",ei=function(){function s(t,e){var i=this;n(this,s),this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Xe.NAV_LINKS+","+this._config.target+" "+Xe.LIST_ITEMS+","+this._config.target+" "+Xe.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Ye(this._scrollElement).on(ze.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}return s.prototype.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Ze:ti,i="auto"===this._config.method?e:this._config.method,n=i===ti?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Ye.makeArray(Ye(this._selector)).map(function(t){var e=void 0,s=Di.getSelectorFromElement(t);if(s&&(e=Ye(s)[0]),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[Ye(e)[i]().top+n,s]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},s.prototype.dispose=function(){Ye.removeData(this._element,Ke),Ye(this._scrollElement).off(Be),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},s.prototype._getConfig=function(t){if("string"!=typeof(t=e({},$e,t)).target){var i=Ye(t.target).attr("id");i||(i=Di.getUID(He),Ye(t.target).attr("id",i)),t.target="#"+i}return Di.typeCheckConfig(He,t,Ge),t},s.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},s.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},s.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},s.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;){this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),s=this.options.offset,a=s.top,o=s.bottom,r=Math.max(e(document).height(),e(document.body).height());"object"!=(void 0===s?"undefined":t(s))&&(o=a=s),"function"==typeof a&&(a=s.top(this.$element)),"function"==typeof o&&(o=s.bottom(this.$element));var h=this.getState(r,n,a,o);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var l="affix"+(h?"-"+h:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:r-n-o})}};var s=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=i,e.fn.affix.noConflict=function(){return e.fn.affix=s,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),i=t.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(t,i)})})}(jQuery);!function(e,i){function n(){return new Date(Date.UTC.apply(Date,arguments))}function s(){var t=new Date;return n(t.getFullYear(),t.getMonth(),t.getDate())}function a(t){return function(){return this[t].apply(this,arguments)}}var o,r=(o={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;in?(this.picker.addClass("datepicker-orient-right"),u=l.left+d-t):this.picker.addClass("datepicker-orient-left");var p,g,_=this.o.orientation.y;if("auto"===_&&(p=-a+f-i,g=a+s-(f+c+i),_=Math.max(p,g)===g?"top":"bottom"),this.picker.addClass("datepicker-orient-"+_),"top"===_?f+=c:f-=i+parseInt(this.picker.css("padding-top")),this.o.rtl){var m=n-(u+d);this.picker.css({top:f,right:m,zIndex:h})}else this.picker.css({top:f,left:u,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),i=[],n=!1;return arguments.length?(e.each(arguments,e.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),n=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=e.map(i,e.proxy(function(t){return g.parseDate(t,this.o.format,this.o.language)},this)),i=e.grep(i,e.proxy(function(t){return tthis.o.endDate||!t},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate&&(this.viewDate=new Date(this.o.endDate)),n?this.setValue():i.length&&String(t)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&t.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var t=this.o.weekStart,e="";if(this.o.calendarWeeks){this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(t,e){return parseInt(e)+1});e+=' '}for(;t'+p[this.o.language].daysMin[t++%7]+"";e+="",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+=''+p[this.o.language].monthsShort[e++]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],n=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a=new Date;return t.getUTCFullYear()n||t.getUTCFullYear()===n&&t.getUTCMonth()>s)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===a.getFullYear()&&t.getUTCMonth()===a.getMonth()&&t.getUTCDate()===a.getDate()&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),(t.valueOf()this.o.endDate||-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&i.push("disabled"),this.o.datesDisabled.length>0&&e.grep(this.o.datesDisabled,function(e){return n=e,(i=t).getUTCFullYear()===n.getUTCFullYear()&&i.getUTCMonth()===n.getUTCMonth()&&i.getUTCDate()===n.getUTCDate();var i,n}).length>0&&i.push("disabled","disabled-date"),this.range&&(t>this.range[0]&&t"),this.o.calendarWeeks)){var D=new Date(+f+(this.o.weekStart-f.getUTCDay()-7)%7*864e5),T=new Date(Number(D)+(11-D.getUTCDay())%7*864e5),C=new Date(Number(C=n(T.getUTCFullYear(),0,1))+(11-C.getUTCDay())%7*864e5),E=(T-C)/864e5/7+1;y.push(''+E+"")}if((v=this.getClassNames(f)).push("day"),this.o.beforeShowDay!==e.noop){var w=this.o.beforeShowDay(this._utc_to_local(f));w===i?w={}:"boolean"==typeof w?w={enabled:w}:"string"==typeof w&&(w={classes:w}),!1===w.enabled&&v.push("disabled"),w.classes&&(v=v.concat(w.classes.split(/\s+/))),w.tooltip&&(t=w.tooltip)}v=e.unique(v),y.push('"+f.getUTCDate()+""),t=null,f.getUTCDay()===this.o.weekEnd&&y.push(""),f.setUTCDate(f.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(y.join(""));var b=this.picker.find(".datepicker-months").find("th:eq(1)").text(a).end().find("span").removeClass("active");if(e.each(this.dates,function(t,e){e.getUTCFullYear()===a&&b.eq(e.getUTCMonth()).addClass("active")}),(al)&&b.addClass("disabled"),a===r&&b.slice(0,h).addClass("disabled"),a===l&&b.slice(c+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var I=this;e.each(b,function(t,i){if(!e(i).hasClass("disabled")){var n=new Date(a,t,1);!1===I.o.beforeShowMonth(n)&&e(i).addClass("disabled")}})}y="",a=10*parseInt(a/10,10);var k=this.picker.find(".datepicker-years").find("th:eq(1)").text(a+"-"+(a+9)).end().find("td");a-=1;for(var S,A=e.map(this.dates,function(t){return t.getUTCFullYear()}),N=-1;N<11;N++)S=["year"],-1===N?S.push("old"):10===N&&S.push("new"),-1!==e.inArray(a,A)&&S.push("active"),(al)&&S.push("disabled"),y+=''+a+"",a+=1;k.html(y)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){t.preventDefault();var i,s,a,o=e(t.target).closest("span, td, th");if(1===o.length)switch(o[0].nodeName.toLowerCase()){case"th":switch(o[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var r=g.modes[this.viewMode].navStep*("prev"===o[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,r),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,r),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var h=new Date;h=n(h.getFullYear(),h.getMonth(),h.getDate(),0,0,0),this.showMode(-2);var l="linked"===this.o.todayBtn?null:"view";this._setDate(h,l);break;case"clear":this.clearDates()}break;case"span":o.hasClass("disabled")||(this.viewDate.setUTCDate(1),o.hasClass("month")?(a=1,s=o.parent().find("span").index(o),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(s),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(n(i,s,a))):(a=1,s=0,i=parseInt(o.text(),10)||0,this.viewDate.setUTCFullYear(i),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(n(i,s,a))),this.showMode(-1),this.fill());break;case"td":o.hasClass("day")&&!o.hasClass("disabled")&&(a=parseInt(o.text(),10)||1,i=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),o.hasClass("old")?0===s?(s=11,i-=1):s-=1:o.hasClass("new")&&(11===s?(s=0,i+=1):s+=1),this._setDate(n(i,s,a)))}this.picker.is(":visible")&&this._focused_from&&e(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){var i;e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveMonth:function(t,e){if(!t)return i;if(!e)return t;var n,s,a=new Date(t.valueOf()),o=a.getUTCDate(),r=a.getUTCMonth(),h=Math.abs(e);if(e=e>0?1:-1,1===h)s=-1===e?function(){return a.getUTCMonth()===r}:function(){return a.getUTCMonth()!==n},n=r+e,a.setUTCMonth(n),(n<0||n>11)&&(n=(n+12)%12);else{for(var l=0;l=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,n,a,o=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||s(),e),n=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||s(),e),n=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||s())).setUTCDate(i.getUTCDate()+e),(n=new Date(r)).setUTCDate(r.getUTCDate()+e)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||s(),e),n=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||s(),e),n=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||s())).setUTCDate(i.getUTCDate()+7*e),(n=new Date(r)).setUTCDate(r.getUTCDate()+7*e)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 32:break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),o=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(o)this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?a=this.element:this.component&&(a=this.element.find("input")),a&&a.change()}else 27===t.keyCode&&this.show()},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.children("div").hide().filter(".datepicker-"+g.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var l=function(t,i){this.element=e(t),this.inputs=e.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,d.call(e(this.inputs),i).bind("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e(t).data("datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(t){return t.valueOf()});e.each(this.pickers,function(e,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var i=e(t.target).data("datepicker").getUTCDate(),n=e.inArray(t.target,this.inputs),s=n-1,a=n+1,o=this.inputs.length;if(-1!==n){if(e.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(i)}),i=0&&ithis.dates[a])for(;athis.dates[a];)this.pickers[a++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){e.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var c=e.fn.datepicker,d=function(n){var s,a=Array.apply(null,arguments);return a.shift(),this.each(function(){var o=e(this),r=o.data("datepicker"),c="object"===(void 0===n?"undefined":t(n))&&n;if(!r){var d=function(t,i){var n=e(t).data(),s={},a=new RegExp("^"+i.toLowerCase()+"([A-Z])");function o(t,e){return e.toLowerCase()}for(var r in i=new RegExp("^"+i.toLowerCase()),n)i.test(r)&&(s[r.replace(a,o)]=n[r]);return s}(this,"date"),g=function(t){var i={};if(p[t]||(t=t.split("-")[0],p[t])){var n=p[t];return e.each(f,function(t,e){e in n&&(i[e]=n[e])}),i}}(e.extend({},u,d,c).language),_=e.extend({},u,g,d,c);if(o.hasClass("input-daterange")||_.inputs){var m={inputs:_.inputs||o.find("input").toArray()};o.data("datepicker",r=new l(this,e.extend(_,m)))}else o.data("datepicker",r=new h(this,_))}if("string"==typeof n&&"function"==typeof r[n]&&(s=r[n].apply(r,a))!==i)return!1}),s!==i?s:this};e.fn.datepicker=d;var u=e.fn.datepicker.defaults={autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,container:"body"},f=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=h;var p=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},g={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,g.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(t,s,a){if(!t)return i;if(t instanceof Date)return t;"string"==typeof s&&(s=g.parseFormat(s));var o,r,l,c=/([\-+]\d+)([dmwy])/,d=t.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(t)){for(t=new Date,l=0;l«»',contTemplate:'',footTemplate:''};g.template='
'+g.headTemplate+""+g.footTemplate+'
'+g.headTemplate+g.contTemplate+g.footTemplate+'
'+g.headTemplate+g.contTemplate+g.footTemplate+"
",e.fn.datepicker.DPGlobal=g,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=c,this},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),d.call(i,"show"))}),e(function(){d.call(e('[data-provide="datepicker-inline"]'))})}(window.jQuery)}();