text: if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(e,t,n){for(var i=!0;i;){var r=e,s=t,o=n;i=!1,null===r&&(r=Function.prototype);var a=Object.getOwnPropertyDescriptor(r,s);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=s,n=o,i=!0,a=u=void 0}},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e){function t(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(e){return(e[0]||e).nodeType}function i(t){var n=this,i=!1;return e(this).one(o.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||o.triggerTransitionEnd(n)},t),this}var r=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},o={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},reflow:function(e){new Function("bs","return bs")(e.offsetHeight)},triggerTransitionEnd:function(t){e(t).trigger(r.end)},supportsTransitionEnd:function(){return Boolean(r)},typeCheckConfig:function(e,i,r){for(var s in r)if(r.hasOwnProperty(s)){var o,a=r[s],l=i[s];if(o=l&&n(l)?"element":t(l),!new RegExp(a).test(o))throw new Error(e.toUpperCase()+': Option "'+s+'" provided type "'+o+'" but expected type "'+a+'".')}}};return r=function(){if(window.QUnit)return!1;var e=document.createElement("bootstrap");for(var t in s)if(void 0!==e.style[t])return{end:s[t]};return!1}(),e.fn.emulateTransitionEnd=i,o.supportsTransitionEnd()&&(e.event.special[o.TRANSITION_END]={bindType:r.end,delegateType:r.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),o}(jQuery),s=(function(e){var n="alert",s="bs.alert",o="."+s,a=e.fn[n],l={CLOSE:"close"+o,CLOSED:"closed"+o,CLICK_DATA_API:"click"+o+".data-api"},u="alert",h="fade",c="in",d=function(){function n(e){t(this,n),this._element=e}return i(n,[{key:"close",value:function(e){e=e||this._element;var t=this._getRootElement(e);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)}},{key:"dispose",value:function(){e.removeData(this._element,s),this._element=null}},{key:"_getRootElement",value:function(t){var n=r.getSelectorFromElement(t),i=!1;return n&&(i=e(n)[0]),i||(i=e(t).closest("."+u)[0]),i}},{key:"_triggerCloseEvent",value:function(t){var n=e.Event(l.CLOSE);return e(t).trigger(n),n}},{key:"_removeElement",value:function(t){return e(t).removeClass(c),r.supportsTransitionEnd()&&e(t).hasClass(h)?void e(t).one(r.TRANSITION_END,e.proxy(this._destroyElement,this,t)).emulateTransitionEnd(150):void this._destroyElement(t)}},{key:"_destroyElement",value:function(t){e(t).detach().trigger(l.CLOSED).remove()}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=e(this),r=i.data(s);r||(r=new n(this),i.data(s,r)),"close"===t&&r[t](this)})}},{key:"_handleDismiss",value:function(e){return function(t){t&&t.preventDefault(),e.close(this)}}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}}]),n}();e(document).on(l.CLICK_DATA_API,'[data-dismiss="alert"]',d._handleDismiss(new d)),e.fn[n]=d._jQueryInterface,e.fn[n].Constructor=d,e.fn[n].noConflict=function(){return e.fn[n]=a,d._jQueryInterface}}(jQuery),function(e){var n="button",r="bs.button",s="."+r,o=".data-api",a=e.fn[n],l="active",u="btn",h="focus",c='[data-toggle^="button"]',d='[data-toggle="buttons"]',f="input",_=".active",g=".btn",v={CLICK_DATA_API:"click"+s+o,FOCUS_BLUR_DATA_API:"focus"+s+o+" blur"+s+o},m=function(){function n(e){t(this,n),this._element=e}return i(n,[{key:"toggle",value:function(){var t=!0,n=e(this._element).closest(d)[0];if(n){var i=e(this._element).find(f)[0];if(i){if("radio"===i.type)if(i.checked&&e(this._element).hasClass(l))t=!1;else{var r=e(n).find(_)[0];r&&e(r).removeClass(l)}t&&(i.checked=!e(this._element).hasClass(l),e(this._element).trigger("change")),i.focus()}}else this._element.setAttribute("aria-pressed",!e(this._element).hasClass(l));t&&e(this._element).toggleClass(l)}},{key:"dispose",value:function(){e.removeData(this._element,r),this._element=null}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=e(this).data(r);i||(i=new n(this),e(this).data(r,i)),"toggle"===t&&i[t]()})}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}}]),n}();e(document).on(v.CLICK_DATA_API,c,function(t){t.preventDefault();var n=t.target;e(n).hasClass(u)||(n=e(n).closest(g)),m._jQueryInterface.call(e(n),"toggle")}).on(v.FOCUS_BLUR_DATA_API,c,function(t){var n=e(t.target).closest(g)[0];e(n).toggleClass(h,/^focus(in)?$/.test(t.type))}),e.fn[n]=m._jQueryInterface,e.fn[n].Constructor=m,e.fn[n].noConflict=function(){return e.fn[n]=a,m._jQueryInterface}}(jQuery),function(e){var n="carousel",s="bs.carousel",o="."+s,a=".data-api",l=e.fn[n],u={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},h={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},c="next",d="prev",f={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,LOAD_DATA_API:"load"+o+a,CLICK_DATA_API:"click"+o+a},_="carousel",g="active",v="slide",m="right",p="left",y={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".next, .prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},E=function(){function a(n,i){t(this,a),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(i),this._element=e(n)[0],this._indicatorsElement=e(this._element).find(y.INDICATORS)[0],this._addEventListeners()}return i(a,[{key:"next",value:function(){this._isSliding||this._slide(c)}},{key:"nextWhenVisible",value:function(){document.hidden||this.next()}},{key:"prev",value:function(){this._isSliding||this._slide(d)}},{key:"pause",value:function(t){t||(this._isPaused=!0),e(this._element).find(y.NEXT_PREV)[0]&&r.supportsTransitionEnd()&&(r.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(e.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))}},{key:"to",value:function(t){var n=this;this._activeElement=e(this._element).find(y.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)return void e(this._element).one(f.SLID,function(){return n.to(t)});if(i===t)return this.pause(),void this.cycle();var r=t>i?c:d;this._slide(r,this._items[t])}}},{key:"dispose",value:function(){e(this._element).off(o),e.removeData(this._element,s),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}},{key:"_getConfig",value:function(t){return t=e.extend({},u,t),r.typeCheckConfig(n,t,h),t}},{key:"_addEventListeners",value:function(){this._config.keyboard&&e(this._element).on(f.KEYDOWN,e.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||e(this._element).on(f.MOUSEENTER,e.proxy(this.pause,this)).on(f.MOUSELEAVE,e.proxy(this.cycle,this))}},{key:"_keydown",value:function(e){if(e.preventDefault(),!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}}},{key:"_getItemIndex",value:function(t){return this._items=e.makeArray(e(t).parent().find(y.ITEM)),this._items.indexOf(t)}},{key:"_getItemByDirection",value:function(e,t){var n=e===c,i=e===d,r=this._getItemIndex(t),s=this._items.length-1;if((i&&0===r||n&&r===s)&&!this._config.wrap)return t;var o=(r+(e===d?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]}},{key:"_triggerSlideEvent",value:function(t,n){var i=e.Event(f.SLIDE,{relatedTarget:t,direction:n});return e(this._element).trigger(i),i}},{key:"_setActiveIndicatorElement",value:function(t){if(this._indicatorsElement){e(this._indicatorsElement).find(y.ACTIVE).removeClass(g);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(g)}}},{key:"_slide",value:function(t,n){var i=this,s=e(this._element).find(y.ACTIVE_ITEM)[0],o=n||s&&this._getItemByDirection(t,s),a=Boolean(this._interval),l=t===c?p:m;if(o&&e(o).hasClass(g))this._isSliding=!1;else if(!this._triggerSlideEvent(o,l).isDefaultPrevented()&&s&&o){this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o);var u=e.Event(f.SLID,{relatedTarget:o,direction:l});r.supportsTransitionEnd()&&e(this._element).hasClass(v)?(e(o).addClass(t),r.reflow(o),e(s).addClass(l),e(o).addClass(l),e(s).one(r.TRANSITION_END,function(){e(o).removeClass(l).removeClass(t),e(o).addClass(g),e(s).removeClass(g).removeClass(t).removeClass(l),i._isSliding=!1,setTimeout(function(){return e(i._element).trigger(u)},0)}).emulateTransitionEnd(600)):(e(s).removeClass(g),e(o).addClass(g),this._isSliding=!1,e(this._element).trigger(u)),a&&this.cycle()}}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var n=e(this).data(s),i=e.extend({},u,e(this).data());"object"==typeof t&&e.extend(i,t);var r="string"==typeof t?t:i.slide;if(n||(n=new a(this,i),e(this).data(s,n)),"number"==typeof t)n.to(t);else if("string"==typeof r){if(void 0===n[r])throw new Error('No method named "'+r+'"');n[r]()}else i.interval&&(n.pause(),n.cycle())})}},{key:"_dataApiClickHandler",value:function(t){var n=r.getSelectorFromElement(this);if(n){var i=e(n)[0];if(i&&e(i).hasClass(_)){var o=e.extend({},e(i).data(),e(this).data()),l=this.getAttribute("data-slide-to");l&&(o.interval=!1),a._jQueryInterface.call(e(i),o),l&&e(i).data(s).to(l),t.preventDefault()}}}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}},{key:"Default",get:function(){return u}}]),a}();e(document).on(f.CLICK_DATA_API,y.DATA_SLIDE,E._dataApiClickHandler),e(window).on(f.LOAD_DATA_API,function(){e(y.DATA_RIDE).each(function(){var t=e(this);E._jQueryInterface.call(t,t.data())})}),e.fn[n]=E._jQueryInterface,e.fn[n].Constructor=E,e.fn[n].noConflict=function(){return e.fn[n]=l,E._jQueryInterface}}(jQuery),function(e){var n="collapse",s="bs.collapse",o="."+s,a=e.fn[n],l={toggle:!0,parent:""},u={toggle:"boolean",parent:"string"},h={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},c="in",d="collapse",f="collapsing",_="collapsed",g="width",v="height",m=".panel > .in, .panel > .collapsing",p='[data-toggle="collapse"]',y=function(){function o(n,i){t(this,o),this._isTransitioning=!1,this._element=n,this._config=this._getConfig(i),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return i(o,[{key:"toggle",value:function(){e(this._element).hasClass(c)?this.hide():this.show()}},{key:"show",value:function(){var t=this;if(!this._isTransitioning&&!e(this._element).hasClass(c)){var n=void 0,i=void 0;if(this._parent&&((n=e.makeArray(e(m))).length||(n=null)),!(n&&(i=e(n).data(s),i&&i._isTransitioning))){var a=e.Event(h.SHOW);if(e(this._element).trigger(a),!a.isDefaultPrevented()){n&&(o._jQueryInterface.call(e(n),"hide"),i||e(n).data(s,null));var l=this._getDimension();e(this._element).removeClass(d).addClass(f),this._element.style[l]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&e(this._triggerArray).removeClass(_).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){e(t._element).removeClass(f).addClass(d).addClass(c),t._element.style[l]="",t.setTransitioning(!1),e(t._element).trigger(h.SHOWN)};if(!r.supportsTransitionEnd())return void u();var g="scroll"+(l[0].toUpperCase()+l.slice(1));e(this._element).one(r.TRANSITION_END,u).emulateTransitionEnd(600),this._element.style[l]=this._element[g]+"px"}}}}},{key:"hide",value:function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(c)){var n=e.Event(h.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension(),s=i===g?"offsetWidth":"offsetHeight";this._element.style[i]=this._element[s]+"px",r.reflow(this._element),e(this._element).addClass(f).removeClass(d).removeClass(c),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&e(this._triggerArray).addClass(_).attr("aria-expanded",!1),this.setTransitioning(!0);var o=function(){t.setTransitioning(!1),e(t._element).removeClass(f).addClass(d).trigger(h.HIDDEN)};return this._element.style[i]=0,r.supportsTransitionEnd()?void e(this._element).one(r.TRANSITION_END,o).emulateTransitionEnd(600):void o()}}}},{key:"setTransitioning",value:function(e){this._isTransitioning=e}},{key:"dispose",value:function(){e.removeData(this._element,s),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}},{key:"_getConfig",value:function(t){return(t=e.extend({},l,t)).toggle=Boolean(t.toggle),r.typeCheckConfig(n,t,u),t}},{key:"_getDimension",value:function(){return e(this._element).hasClass(g)?g:v}},{key:"_getParent",value:function(){var t=this,n=e(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(i).each(function(e,n){t._addAriaAndCollapsedClass(o._getTargetFromElement(n),[n])}),n}},{key:"_addAriaAndCollapsedClass",value:function(t,n){if(t){var i=e(t).hasClass(c);t.setAttribute("aria-expanded",i),n.length&&e(n).toggleClass(_,!i).attr("aria-expanded",i)}}}],[{key:"_getTargetFromElement",value:function(t){var n=r.getSelectorFromElement(t);return n?e(n)[0]:null}},{key:"_jQueryInterface",value:function(t){return this.each(function(){var n=e(this),i=n.data(s),r=e.extend({},l,n.data(),"object"==typeof t&&t);if(!i&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),i||(i=new o(this,r),n.data(s,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}},{key:"Default",get:function(){return l}}]),o}();e(document).on(h.CLICK_DATA_API,p,function(t){t.preventDefault();var n=y._getTargetFromElement(this),i=e(n).data(s)?"toggle":e(this).data();y._jQueryInterface.call(e(n),i)}),e.fn[n]=y._jQueryInterface,e.fn[n].Constructor=y,e.fn[n].noConflict=function(){return e.fn[n]=a,y._jQueryInterface}}(jQuery),function(e){var n="dropdown",s="bs.dropdown",o="."+s,a=".data-api",l=e.fn[n],u={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+a,KEYDOWN_DATA_API:"keydown"+o+a},h="dropdown-backdrop",c="disabled",d="open",f=".dropdown-backdrop",_='[data-toggle="dropdown"]',g=".dropdown form",v='[role="menu"]',m='[role="listbox"]',p=".navbar-nav",y='[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a',E=function(){function n(e){t(this,n),this._element=e,this._addEventListeners()}return i(n,[{key:"toggle",value:function(){if(this.disabled||e(this).hasClass(c))return!1;var t=n._getParentFromElement(this),i=e(t).hasClass(d);if(n._clearMenus(),i)return!1;if("ontouchstart"in document.documentElement&&!e(t).closest(p).length){var r=document.createElement("div");r.className=h,e(r).insertBefore(this),e(r).on("click",n._clearMenus)}var s={relatedTarget:this},o=e.Event(u.SHOW,s);return e(t).trigger(o),!o.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),e(t).toggleClass(d),e(t).trigger(e.Event(u.SHOWN,s)),!1)}},{key:"dispose",value:function(){e.removeData(this._element,s),e(this._element).off(o),this._element=null}},{key:"_addEventListeners",value:function(){e(this._element).on(u.CLICK,this.toggle)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=e(this).data(s);if(i||e(this).data(s,i=new n(this)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t].call(this)}})}},{key:"_clearMenus",value:function(t){if(!t||3!==t.which){var i=e(f)[0];i&&i.parentNode.removeChild(i);for(var r=e.makeArray(e(_)),s=0;s<r.length;s++){var o=n._getParentFromElement(r[s]),a={relatedTarget:r[s]};if(e(o).hasClass(d)&&!(t&&"click"===t.type&&/input|textarea/i.test(t.target.tagName)&&e.contains(o,t.target))){var l=e.Event(u.HIDE,a);e(o).trigger(l),l.isDefaultPrevented()||(r[s].setAttribute("aria-expanded","false"),e(o).removeClass(d).trigger(e.Event(u.HIDDEN,a)))}}}}},{key:"_getParentFromElement",value:function(t){var n=void 0,i=r.getSelectorFromElement(t);return i&&(n=e(i)[0]),n||t.parentNode}},{key:"_dataApiKeydownHandler",value:function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!e(this).hasClass(c))){var i=n._getParentFromElement(this),r=e(i).hasClass(d);if(!r&&27!==t.which||r&&27===t.which){if(27===t.which){var s=e(i).find(_)[0];e(s).trigger("focus")}return void e(this).trigger("click")}var o=e.makeArray(e(y));if((o=o.filter(function(e){return e.offsetWidth||e.offsetHeight})).length){var a=o.indexOf(t.target);38===t.which&&a>0&&a--,40===t.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}}]),n}();e(document).on(u.KEYDOWN_DATA_API,_,E._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,v,E._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,m,E._dataApiKeydownHandler).on(u.CLICK_DATA_API,E._clearMenus).on(u.CLICK_DATA_API,_,E.prototype.toggle).on(u.CLICK_DATA_API,g,function(e){e.stopPropagation()}),e.fn[n]=E._jQueryInterface,e.fn[n].Constructor=E,e.fn[n].noConflict=function(){return e.fn[n]=l,E._jQueryInterface}}(jQuery),function(e){var n="modal",s="bs.modal",o="."+s,a=e.fn[n],l={backdrop:!0,keyboard:!0,focus:!0,show:!0},u={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},h={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,FOCUSIN:"focusin"+o,RESIZE:"resize"+o,CLICK_DISMISS:"click.dismiss"+o,KEYDOWN_DISMISS:"keydown.dismiss"+o,MOUSEUP_DISMISS:"mouseup.dismiss"+o,MOUSEDOWN_DISMISS:"mousedown.dismiss"+o,CLICK_DATA_API:"click"+o+".data-api"},c="modal-scrollbar-measure",d="modal-backdrop",f="modal-open",_="fade",g="in",v={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed"},m=function(){function a(n,i){t(this,a),this._config=this._getConfig(i),this._element=n,this._dialog=e(n).find(v.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return i(a,[{key:"toggle",value:function(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function(t){var n=this,i=e.Event(h.SHOW,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),e(document.body).addClass(f),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(h.CLICK_DISMISS,v.DATA_DISMISS,e.proxy(this.hide,this)),e(this._dialog).on(h.MOUSEDOWN_DISMISS,function(){e(n._element).one(h.MOUSEUP_DISMISS,function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(e.proxy(this._showElement,this,t)))}},{key:"hide",value:function(t){t&&t.preventDefault();var n=e.Event(h.HIDE);e(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),e(document).off(h.FOCUSIN),e(this._element).removeClass(g),e(this._element).off(h.CLICK_DISMISS),e(this._dialog).off(h.MOUSEDOWN_DISMISS),r.supportsTransitionEnd()&&e(this._element).hasClass(_)?e(this._element).one(r.TRANSITION_END,e.proxy(this._hideModal,this)).emulateTransitionEnd(300):this._hideModal())}},{key:"dispose",value:function(){e.removeData(this._element,s),e(window).off(o),e(document).off(o),e(this._element).off(o),e(this._backdrop).off(o),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null}},{key:"_getConfig",value:function(t){return t=e.extend({},l,t),r.typeCheckConfig(n,t,u),t}},{key:"_showElement",value:function(t){var n=this,i=r.supportsTransitionEnd()&&e(this._element).hasClass(_);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&r.reflow(this._element),e(this._element).addClass(g),this._config.focus&&this._enforceFocus();var s=e.Event(h.SHOWN,{relatedTarget:t}),o=function(){n._config.focus&&n._element.focus(),e(n._element).trigger(s)};i?e(this._dialog).one(r.TRANSITION_END,o).emulateTransitionEnd(300):o()}},{key:"_enforceFocus",value:function(){var t=this;e(document).off(h.FOCUSIN).on(h.FOCUSIN,function(n){document===n.target||t._element===n.target||e(t._element).has(n.target).length||t._element.focus()})}},{key:"_setEscapeEvent",value:function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(h.KEYDOWN_DISMISS,function(e){27===e.which&&t.hide()}):this._isShown||e(this._element).off(h.KEYDOWN_DISMISS)}},{key:"_setResizeEvent",value:function(){this._isShown?e(window).on(h.RESIZE,e.proxy(this._handleUpdate,this)):e(window).off(h.RESIZE)}},{key:"_hideModal",value:function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._showBackdrop(function(){e(document.body).removeClass(f),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(h.HIDDEN)})}},{key:"_removeBackdrop",value:function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}},{key:"_showBackdrop",value:function(t){var n=this,i=e(this._element).hasClass(_)?_:"";if(this._isShown&&this._config.backdrop){var s=r.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=d,i&&e(this._backdrop).addClass(i),e(this._backdrop).appendTo(document.body),e(this._element).on(h.CLICK_DISMISS,function(e){return n._ignoreBackdropClick?void(n._ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide()))}),s&&r.reflow(this._backdrop),e(this._backdrop).addClass(g),!t)return;if(!s)return void t();e(this._backdrop).one(r.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(g);var o=function(){n._removeBackdrop(),t&&t()};r.supportsTransitionEnd()&&e(this._element).hasClass(_)?e(this._backdrop).one(r.TRANSITION_END,o).emulateTransitionEnd(150):o()}else t&&t()}},{key:"_handleUpdate",value:function(){this._adjustDialog()}},{key:"_adjustDialog",value: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")}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}},{key:"_setScrollbar",value:function(){var t=parseInt(e(v.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=t+this._scrollbarWidth+"px")}},{key:"_resetScrollbar",value:function(){document.body.style.paddingRight=this._originalBodyPadding}},{key:"_getScrollbarWidth",value:function(){var e=document.createElement("div");e.className=c,document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}}],[{key:"_jQueryInterface",value:function(t,n){return this.each(function(){var i=e(this).data(s),r=e.extend({},a.Default,e(this).data(),"object"==typeof t&&t);if(i||(i=new a(this,r),e(this).data(s,i)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t](n)}else r.show&&i.show(n)})}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}},{key:"Default",get:function(){return l}}]),a}();e(document).on(h.CLICK_DATA_API,v.DATA_TOGGLE,function(t){var n=this,i=void 0,o=r.getSelectorFromElement(this);o&&(i=e(o)[0]);var a=e(i).data(s)?"toggle":e.extend({},e(i).data(),e(this).data());"A"===this.tagName&&t.preventDefault();var l=e(i).one(h.SHOW,function(t){t.isDefaultPrevented()||l.one(h.HIDDEN,function(){e(n).is(":visible")&&n.focus()})});m._jQueryInterface.call(e(i),a,this)}),e.fn[n]=m._jQueryInterface,e.fn[n].Constructor=m,e.fn[n].noConflict=function(){return e.fn[n]=a,m._jQueryInterface}}(jQuery),function(e){var n="scrollspy",s="bs.scrollspy",o="."+s,a=e.fn[n],l={offset:10,method:"auto",target:""},u={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate"+o,SCROLL:"scroll"+o,LOAD_DATA_API:"load"+o+".data-api"},c="dropdown-item",d="active",f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},_="offset",g="position",v=function(){function a(n,i){t(this,a),this._element=n,this._scrollElement="BODY"===n.tagName?window:n,this._config=this._getConfig(i),this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(h.SCROLL,e.proxy(this._process,this)),this.refresh(),this._process()}return i(a,[{key:"refresh",value:function(){var t=this,n=this._scrollElement!==this._scrollElement.window?g:_,i="auto"===this._config.method?n:this._config.method,s=i===g?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),e.makeArray(e(this._selector)).map(function(t){var n=void 0,o=r.getSelectorFromElement(t);return o&&(n=e(o)[0]),n&&(n.offsetWidth||n.offsetHeight)?[e(n)[i]().top+s,o]:null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})}},{key:"dispose",value:function(){e.removeData(this._element,s),e(this._scrollElement).off(o),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}},{key:"_getConfig",value:function(t){if("string"!=typeof(t=e.extend({},l,t)).target){var i=e(t.target).attr("id");i||(i=r.getUID(n),e(t.target).attr("id",i)),t.target="#"+i}return r.typeCheckConfig(n,t,u),t}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_process",value:function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._scrollElement.offsetHeight;if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}if(this._activeTarget&&e<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}}},{key:"_activate",value:function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",");n=n.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=e(n.join(","));i.hasClass(c)?(i.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(d),i.addClass(d)):i.addClass(d),i.parents(f.NAV_ITEMS).children(f.NAV_LINKS).addClass(d),e(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:t})}},{key:"_clear",value:function(){e(this._selector).filter(f.ACTIVE).removeClass(d)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var n=e(this).data(s);if(n||(n=new a(this,"object"==typeof t&&t||null),e(this).data(s,n)),"string"==typeof t){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}},{key:"Default",get:function(){return l}}]),a}();e(window).on(h.LOAD_DATA_API,function(){for(var t=e.makeArray(e(f.DATA_SPY)),n=t.length;n--;){var i=e(t[n]);v._jQueryInterface.call(i,i.data())}}),e.fn[n]=v._jQueryInterface,e.fn[n].Constructor=v,e.fn[n].noConflict=function(){return e.fn[n]=a,v._jQueryInterface}}(jQuery),function(e){var n="tab",s="bs.tab",o="."+s,a=e.fn[n],l={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK_DATA_API:"click"+o+".data-api"},u="dropdown-menu",h="active",c="fade",d="in",f=".dropdown",_="ul:not(.dropdown-menu)",g="> .nav-item .fade, > .fade",v=".active",m="> .nav-item > .active, > .active",p='[data-toggle="tab"], [data-toggle="pill"]',y=".dropdown-toggle",E="> .dropdown-menu .active",T=function(){function n(e){t(this,n),this._element=e}return i(n,[{key:"show",value:function(){var t=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!e(this._element).hasClass(h)){var n=void 0,i=void 0,s=e(this._element).closest(_)[0],o=r.getSelectorFromElement(this._element);s&&(i=(i=e.makeArray(e(s).find(v)))[i.length-1]);var a=e.Event(l.HIDE,{relatedTarget:this._element}),u=e.Event(l.SHOW,{relatedTarget:i});if(i&&e(i).trigger(a),e(this._element).trigger(u),!u.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(n=e(o)[0]),this._activate(this._element,s);var c=function(){var n=e.Event(l.HIDDEN,{relatedTarget:t._element}),r=e.Event(l.SHOWN,{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(r)};n?this._activate(n,n.parentNode,c):c()}}}},{key:"dispose",value:function(){e.removeClass(this._element,s),this._element=null}},{key:"_activate",value:function(t,n,i){var s=e(n).find(m)[0],o=i&&r.supportsTransitionEnd()&&(s&&e(s).hasClass(c)||Boolean(e(n).find(g)[0])),a=e.proxy(this._transitionComplete,this,t,s,o,i);s&&o?e(s).one(r.TRANSITION_END,a).emulateTransitionEnd(150):a(),s&&e(s).removeClass(d)}},{key:"_transitionComplete",value:function(t,n,i,s){if(n){e(n).removeClass(h);var o=e(n).find(E)[0];o&&e(o).removeClass(h),n.setAttribute("aria-expanded",!1)}if(e(t).addClass(h),t.setAttribute("aria-expanded",!0),i?(r.reflow(t),e(t).addClass(d)):e(t).removeClass(c),t.parentNode&&e(t.parentNode).hasClass(u)){var a=e(t).closest(f)[0];a&&e(a).find(y).addClass(h),t.setAttribute("aria-expanded",!0)}s&&s()}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var i=e(this),r=i.data(s);if(r||(r=r=new n(this),i.data(s,r)),"string"==typeof t){if(void 0===r[t])throw new Error('No method named "'+t+'"');r[t]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}}]),n}();e(document).on(l.CLICK_DATA_API,p,function(t){t.preventDefault(),T._jQueryInterface.call(e(this),"show")}),e.fn[n]=T._jQueryInterface,e.fn[n].Constructor=T,e.fn[n].noConflict=function(){return e.fn[n]=a,T._jQueryInterface}}(jQuery),function(e){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)");var n="tooltip",s="bs.tooltip",o="."+s,a=e.fn[n],l={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},u={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},h={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},c="in",d="out",f={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},_="fade",g="in",v=".tooltip-inner",m={element:!1,enabled:!1},p="hover",y="focus",E="manual",T=function(){function a(e,n){t(this,a),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=e,this.config=this._getConfig(n),this.tip=null,this._setListeners()}return i(a,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(t){if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass(g))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function(){clearTimeout(this._timeout),this.cleanupTether(),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null}},{key:"show",value:function(){var t=this,n=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(n);var i=e.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var s=this.getTipElement(),o=r.getUID(this.constructor.NAME);s.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&e(s).addClass(_);var l="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(l);e(s).data(this.constructor.DATA_KEY,this).appendTo(document.body),e(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:u,element:s,target:this.element,classes:m,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),r.reflow(s),this._tether.position(),e(s).addClass(g);var h=function(){var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===d&&t._leave(null,t)};if(r.supportsTransitionEnd()&&e(this.tip).hasClass(_))return void e(this.tip).one(r.TRANSITION_END,h).emulateTransitionEnd(a._TRANSITION_DURATION);h()}}},{key:"hide",value:function(t){var n=this,i=this.getTipElement(),s=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==c&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),t&&t()};e(this.element).trigger(s),s.isDefaultPrevented()||(e(i).removeClass(g),r.supportsTransitionEnd()&&e(this.tip).hasClass(_)?e(i).one(r.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function(){return this.tip=this.tip||e(this.config.template)[0]}},{key:"setContent",value:function(){var t=e(this.getTipElement());this.setElementContent(t.find(v),this.getTitle()),t.removeClass(_).removeClass(g),this.cleanupTether()}},{key:"setElementContent",value:function(t,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()):t[i?"html":"text"](n)}},{key:"getTitle",value: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}},{key:"cleanupTether",value:function(){this._tether&&this._tether.destroy()}},{key:"_getAttachment",value:function(e){return h[e.toUpperCase()]}},{key:"_setListeners",value:function(){var t=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,e.proxy(t.toggle,t));else if(n!==E){var i=n===p?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=n===p?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,e.proxy(t._enter,t)).on(r,t.config.selector,e.proxy(t._leave,t))}}),this.config.selector?this.config=e.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value: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",""))}},{key:"_enter",value:function(t,n){var i=this.constructor.DATA_KEY;return(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?y:p]=!0),e(n.getTipElement()).hasClass(g)||n._hoverState===c?void(n._hoverState=c):(clearTimeout(n._timeout),n._hoverState=c,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===c&&n.show()},n.config.delay.show)):void n.show())}},{key:"_leave",value:function(t,n){var i=this.constructor.DATA_KEY;if((n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?y:p]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=d,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){n._hoverState===d&&n.hide()},n.config.delay.hide)):void n.hide()}},{key:"_isWithActiveTrigger",value:function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function(t){return(t=e.extend({},this.constructor.Default,e(this.element).data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),r.typeCheckConfig(n,t,this.constructor.DefaultType),t}},{key:"_getDelegateConfig",value:function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var n=e(this).data(s),i="object"==typeof t?t:null;if((n||!/destroy|hide/.test(t))&&(n||(n=new a(this,i),e(this).data(s,n)),"string"==typeof t)){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return s}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return u}}]),a}();return e.fn[n]=T._jQueryInterface,e.fn[n].Constructor=T,e.fn[n].noConflict=function(){return e.fn[n]=a,T._jQueryInterface},T}(jQuery));!function(e){var r="popover",o="bs.popover",a="."+o,l=e.fn[r],u=e.extend({},s.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),h=e.extend({},s.DefaultType,{content:"(string|element|function)"}),c="fade",d="in",f=".popover-title",_=".popover-content",g={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},v=function(s){function l(){t(this,l),n(Object.getPrototypeOf(l.prototype),"constructor",this).apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,s),i(l,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"getTipElement",value:function(){return this.tip=this.tip||e(this.config.template)[0]}},{key:"setContent",value:function(){var t=e(this.getTipElement());this.setElementContent(t.find(f),this.getTitle()),this.setElementContent(t.find(_),this._getContent()),t.removeClass(c).removeClass(d),this.cleanupTether()}},{key:"_getContent",value:function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var n=e(this).data(o),i="object"==typeof t?t:null;if((n||!/destroy|hide/.test(t))&&(n||(n=new l(this,i),e(this).data(o,n)),"string"==typeof t)){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha.4"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return r}},{key:"DATA_KEY",get:function(){return o}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return h}}]),l}(s);e.fn[r]=v._jQueryInterface,e.fn[r].Constructor=v,e.fn[r].noConflict=function(){return e.fn[r]=l,v._jQueryInterface}}(jQuery)}(jQuery),function(){"use strict";window.Toc={helpers:{findOrFilter:function(e,t){var n=e.find(t);return e.filter(t).add(n).filter(":not([data-toc-skip])")},generateUniqueIdBase:function(e){return $(e).text().trim().toLowerCase().replace(/[^A-Za-z0-9]+/g,"-")||e.tagName.toLowerCase()},generateUniqueId:function(e){for(var t=this.generateUniqueIdBase(e),n=0;;n++){var i=t;if(n>0&&(i+="-"+n),!document.getElementById(i))return i}},generateAnchor:function(e){if(e.id)return e.id;var t=this.generateUniqueId(e);return e.id=t,t},createNavList:function(){return $('<ul class="nav"></ul>')},createChildNavList:function(e){var t=this.createNavList();return e.append(t),t},generateNavEl:function(e,t){var n=$('<a class="nav-link"></a>');n.attr("href","#"+e),n.text(t);var i=$('<li class="nav-item"></li>');return i.append(n),i},generateNavItem:function(e){var t=this.generateAnchor(e),n=$(e),i=n.data("toc-text")||n.text();return this.generateNavEl(t,i)},getTopLevel:function(e){for(var t=1;t<=6;t++){if(this.findOrFilter(e,"h"+t).length>1)return t}return 1},getHeadings:function(e,t){var n="h"+t,i="h"+(t+1);return this.findOrFilter(e,n+","+i)},getNavLevel:function(e){return parseInt(e.tagName.charAt(1),10)},populateNav:function(e,t,n){var i,r=e,s=this;n.each(function(n,o){var a=s.generateNavItem(o);s.getNavLevel(o)===t?r=e:i&&r===e&&(r=s.createChildNavList(i)),r.append(a),i=a})},parseOps:function(e){var t;return(t=e.jquery?{$nav:e}:e).$scope=t.$scope||$(document.body),t}},init:function(e){(e=this.helpers.parseOps(e)).$nav.attr("data-toggle","toc");var t=this.helpers.createChildNavList(e.$nav),n=this.helpers.getTopLevel(e.$scope),i=this.helpers.getHeadings(e.$scope,n);this.helpers.populateNav(t,n,i)}},$(function(){$('nav[data-toggle="toc"]').each(function(e,t){var n=$(t);Toc.init(n),$("#toc").scrollspy()})})}();
  