Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/ui/bootstrap4/js/ |
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/ui/bootstrap4/js/bootstrap.min.js |
(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("jquery"),require("popper.js")):typeof define==="function"&&define.amd?define(["exports","jquery","popper.js"],t):t(e.bootstrap={},e.jQuery,e.Popper)})(this,function(e,t,n){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;n=n&&n.hasOwnProperty("default")?n["default"]:n;function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function r(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function a(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var i=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}i.forEach(function(t){a(e,t,n[t])})}return e}function o(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var l=function(e){var t="transitionend";var n=1e6;var i=1e3;function r(e){return{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function a(){return{bindType:t,delegateType:t,handle:function t(n){if(e(n.target).is(this)){return n.handleObj.handler.apply(this,arguments)}return undefined}}}function s(t){var n=this;var i=false;e(this).one(l.TRANSITION_END,function(){i=true});setTimeout(function(){if(!i){l.triggerTransitionEnd(n)}},t);return this}function o(){e.fn.emulateTransitionEnd=s;e.event.special[l.TRANSITION_END]=a()}var l={TRANSITION_END:"bsTransitionEnd",getUID:function e(t){do{t+=~~(Math.random()*n)}while(document.getElementById(t));return t},getSelectorFromElement:function e(t){var n=t.getAttribute("data-target");if(!n||n==="#"){n=t.getAttribute("href")||""}try{return document.querySelector(n)?n:null}catch(e){return null}},getTransitionDurationFromElement:function t(n){if(!n){return 0}var r=e(n).css("transition-duration");var a=parseFloat(r);if(!a){return 0}r=r.split(",")[0];return parseFloat(r)*i},reflow:function e(t){return t.offsetHeight},triggerTransitionEnd:function n(i){e(i).trigger(t)},supportsTransitionEnd:function e(){return Boolean(t)},isElement:function e(t){return(t[0]||t).nodeType},typeCheckConfig:function e(t,n,i){for(var a in i){if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a];var o=n[a];var c=o&&l.isElement(o)?"element":r(o);if(!new RegExp(s).test(c)){throw new Error(t.toUpperCase()+": "+('Option "'+a+'" provided type "'+c+'" ')+('but expected type "'+s+'".'))}}}}};o();return l}(t);var c=function(e){var t="alert";var n="4.1.3";var i="bs.alert";var a="."+i;var s=".data-api";var o=e.fn[t];var c={DISMISS:'[data-dismiss="alert"]'};var u={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+s};var f={ALERT:"alert",FADE:"fade",SHOW:"show"};var h=function(){function t(e){this._element=e}var a=t.prototype;a.close=function e(t){var n=this._element;if(t){n=this._getRootElement(t)}var i=this._triggerCloseEvent(n);if(i.isDefaultPrevented()){return}this._removeElement(n)};a.dispose=function t(){e.removeData(this._element,i);this._element=null};a._getRootElement=function t(n){var i=l.getSelectorFromElement(n);var r=false;if(i){r=document.querySelector(i)}if(!r){r=e(n).closest("."+f.ALERT)[0]}return r};a._triggerCloseEvent=function t(n){var i=e.Event(u.CLOSE);e(n).trigger(i);return i};a._removeElement=function t(n){var i=this;e(n).removeClass(f.SHOW);if(!e(n).hasClass(f.FADE)){this._destroyElement(n);return}var r=l.getTransitionDurationFromElement(n);e(n).one(l.TRANSITION_END,function(e){return i._destroyElement(n,e)}).emulateTransitionEnd(r)};a._destroyElement=function t(n){e(n).detach().trigger(u.CLOSED).remove()};t._jQueryInterface=function n(r){return this.each(function(){var n=e(this);var a=n.data(i);if(!a){a=new t(this);n.data(i,a)}if(r==="close"){a[r](this)}})};t._handleDismiss=function e(t){return function(e){if(e){e.preventDefault()}t.close(this)}};r(t,null,[{key:"VERSION",get:function e(){return n}}]);return t}();e(document).on(u.CLICK_DATA_API,c.DISMISS,h._handleDismiss(new h));e.fn[t]=h._jQueryInterface;e.fn[t].Constructor=h;e.fn[t].noConflict=function(){e.fn[t]=o;return h._jQueryInterface};return h}(t);var u=function(e){var t="button";var n="4.1.3";var i="bs.button";var a="."+i;var s=".data-api";var o=e.fn[t];var l={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"};var c={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"};var u={CLICK_DATA_API:"click"+a+s,FOCUS_BLUR_DATA_API:"focus"+a+s+" "+("blur"+a+s)};var f=function(){function t(e){this._element=e}var a=t.prototype;a.toggle=function t(){var n=true;var i=true;var r=e(this._element).closest(c.DATA_TOGGLE)[0];if(r){var a=this._element.querySelector(c.INPUT);if(a){if(a.type==="radio"){if(a.checked&&this._element.classList.contains(l.ACTIVE)){n=false}else{var s=r.querySelector(c.ACTIVE);if(s){e(s).removeClass(l.ACTIVE)}}}if(n){if(a.hasAttribute("disabled")||r.hasAttribute("disabled")||a.classList.contains("disabled")||r.classList.contains("disabled")){return}a.checked=!this._element.classList.contains(l.ACTIVE);e(a).trigger("change")}a.focus();i=false}}if(i){this._element.setAttribute("aria-pressed",!this._element.classList.contains(l.ACTIVE))}if(n){e(this._element).toggleClass(l.ACTIVE)}};a.dispose=function t(){e.removeData(this._element,i);this._element=null};t._jQueryInterface=function n(r){return this.each(function(){var n=e(this).data(i);if(!n){n=new t(this);e(this).data(i,n)}if(r==="toggle"){n[r]()}})};r(t,null,[{key:"VERSION",get:function e(){return n}}]);return t}();e(document).on(u.CLICK_DATA_API,c.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var n=t.target;if(!e(n).hasClass(l.BUTTON)){n=e(n).closest(c.BUTTON)}f._jQueryInterface.call(e(n),"toggle")}).on(u.FOCUS_BLUR_DATA_API,c.DATA_TOGGLE_CARROT,function(t){var n=e(t.target).closest(c.BUTTON)[0];e(n).toggleClass(l.FOCUS,/^focus(in)?$/.test(t.type))});e.fn[t]=f._jQueryInterface;e.fn[t].Constructor=f;e.fn[t].noConflict=function(){e.fn[t]=o;return f._jQueryInterface};return f}(t);var f=function(e){var t="carousel";var n="4.1.3";var i="bs.carousel";var a="."+i;var o=".data-api";var c=e.fn[t];var u=37;var f=39;var h=500;var d={interval:5e3,keyboard:true,slide:false,pause:"hover",wrap:true};var _={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"};var g={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"};var v={SLIDE:"slide"+a,SLID:"slid"+a,KEYDOWN:"keydown"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a,TOUCHEND:"touchend"+a,LOAD_DATA_API:"load"+a+o,CLICK_DATA_API:"click"+a+o};var m={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"};var p={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"]'};var E=function(){function o(t,n){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=false;this._isSliding=false;this.touchTimeout=null;this._config=this._getConfig(n);this._element=e(t)[0];this._indicatorsElement=this._element.querySelector(p.INDICATORS);this._addEventListeners()}var c=o.prototype;c.next=function e(){if(!this._isSliding){this._slide(g.NEXT)}};c.nextWhenVisible=function t(){if(!document.hidden&&e(this._element).is(":visible")&&e(this._element).css("visibility")!=="hidden"){this.next()}};c.prev=function e(){if(!this._isSliding){this._slide(g.PREV)}};c.pause=function e(t){if(!t){this._isPaused=true}if(this._element.querySelector(p.NEXT_PREV)){l.triggerTransitionEnd(this._element);this.cycle(true)}clearInterval(this._interval);this._interval=null};c.cycle=function e(t){if(!t){this._isPaused=false}if(this._interval){clearInterval(this._interval);this._interval=null}if(this._config.interval&&!this._isPaused){this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval)}};c.to=function t(n){var i=this;this._activeElement=this._element.querySelector(p.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(n>this._items.length-1||n<0){return}if(this._isSliding){e(this._element).one(v.SLID,function(){return i.to(n)});return}if(r===n){this.pause();this.cycle();return}var a=n>r?g.NEXT:g.PREV;this._slide(a,this._items[n])};c.dispose=function t(){e(this._element).off(a);e.removeData(this._element,i);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null};c._getConfig=function e(n){n=s({},d,n);l.typeCheckConfig(t,n,_);return n};c._addEventListeners=function t(){var n=this;if(this._config.keyboard){e(this._element).on(v.KEYDOWN,function(e){return n._keydown(e)})}if(this._config.pause==="hover"){e(this._element).on(v.MOUSEENTER,function(e){return n.pause(e)}).on(v.MOUSELEAVE,function(e){return n.cycle(e)});if("ontouchstart"in document.documentElement){e(this._element).on(v.TOUCHEND,function(){n.pause();if(n.touchTimeout){clearTimeout(n.touchTimeout)}n.touchTimeout=setTimeout(function(e){return n.cycle(e)},h+n._config.interval)})}}};c._keydown=function e(t){if(/input|textarea/i.test(t.target.tagName)){return}switch(t.which){case u:t.preventDefault();this.prev();break;case f:t.preventDefault();this.next();break;default:}};c._getItemIndex=function e(t){this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(p.ITEM)):[];return this._items.indexOf(t)};c._getItemByDirection=function e(t,n){var i=t===g.NEXT;var r=t===g.PREV;var a=this._getItemIndex(n);var s=this._items.length-1;var o=r&&a===0||i&&a===s;if(o&&!this._config.wrap){return n}var l=t===g.PREV?-1:1;var c=(a+l)%this._items.length;return c===-1?this._items[this._items.length-1]:this._items[c]};c._triggerSlideEvent=function t(n,i){var r=this._getItemIndex(n);var a=this._getItemIndex(this._element.querySelector(p.ACTIVE_ITEM));var s=e.Event(v.SLIDE,{relatedTarget:n,direction:i,from:a,to:r});e(this._element).trigger(s);return s};c._setActiveIndicatorElement=function t(n){if(this._indicatorsElement){var i=[].slice.call(this._indicatorsElement.querySelectorAll(p.ACTIVE));e(i).removeClass(m.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(n)];if(r){e(r).addClass(m.ACTIVE)}}};c._slide=function t(n,i){var r=this;var a=this._element.querySelector(p.ACTIVE_ITEM);var s=this._getItemIndex(a);var o=i||a&&this._getItemByDirection(n,a);var c=this._getItemIndex(o);var u=Boolean(this._interval);var f;var h;var d;if(n===g.NEXT){f=m.LEFT;h=m.NEXT;d=g.LEFT}else{f=m.RIGHT;h=m.PREV;d=g.RIGHT}if(o&&e(o).hasClass(m.ACTIVE)){this._isSliding=false;return}var _=this._triggerSlideEvent(o,d);if(_.isDefaultPrevented()){return}if(!a||!o){return}this._isSliding=true;if(u){this.pause()}this._setActiveIndicatorElement(o);var E=e.Event(v.SLID,{relatedTarget:o,direction:d,from:s,to:c});if(e(this._element).hasClass(m.SLIDE)){e(o).addClass(h);l.reflow(o);e(a).addClass(f);e(o).addClass(f);var T=l.getTransitionDurationFromElement(a);e(a).one(l.TRANSITION_END,function(){e(o).removeClass(f+" "+h).addClass(m.ACTIVE);e(a).removeClass(m.ACTIVE+" "+h+" "+f);r._isSliding=false;setTimeout(function(){return e(r._element).trigger(E)},0)}).emulateTransitionEnd(T)}else{e(a).removeClass(m.ACTIVE);e(o).addClass(m.ACTIVE);this._isSliding=false;e(this._element).trigger(E)}if(u){this.cycle()}};o._jQueryInterface=function t(n){return this.each(function(){var t=e(this).data(i);var r=s({},d,e(this).data());if(typeof n==="object"){r=s({},r,n)}var a=typeof n==="string"?n:r.slide;if(!t){t=new o(this,r);e(this).data(i,t)}if(typeof n==="number"){t.to(n)}else if(typeof a==="string"){if(typeof t[a]==="undefined"){throw new TypeError('No method named "'+a+'"')}t[a]()}else if(r.interval){t.pause();t.cycle()}})};o._dataApiClickHandler=function t(n){var r=l.getSelectorFromElement(this);if(!r){return}var a=e(r)[0];if(!a||!e(a).hasClass(m.CAROUSEL)){return}var c=s({},e(a).data(),e(this).data());var u=this.getAttribute("data-slide-to");if(u){c.interval=false}o._jQueryInterface.call(e(a),c);if(u){e(a).data(i).to(u)}n.preventDefault()};r(o,null,[{key:"VERSION",get:function e(){return n}},{key:"Default",get:function e(){return d}}]);return o}();e(document).on(v.CLICK_DATA_API,p.DATA_SLIDE,E._dataApiClickHandler);e(window).on(v.LOAD_DATA_API,function(){var t=[].slice.call(document.querySelectorAll(p.DATA_RIDE));for(var n=0,i=t.length;n<i;n++){var r=e(t[n]);E._jQueryInterface.call(r,r.data())}});e.fn[t]=E._jQueryInterface;e.fn[t].Constructor=E;e.fn[t].noConflict=function(){e.fn[t]=c;return E._jQueryInterface};return E}(t);var h=function(e){var t="collapse";var n="4.1.3";var i="bs.collapse";var a="."+i;var o=".data-api";var c=e.fn[t];var u={toggle:true,parent:""};var f={toggle:"boolean",parent:"(string|element)"};var h={SHOW:"show"+a,SHOWN:"shown"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,CLICK_DATA_API:"click"+a+o};var d={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"};var _={WIDTH:"width",HEIGHT:"height"};var g={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'};var v=function(){function a(t,n){this._isTransitioning=false;this._element=t;this._config=this._getConfig(n);this._triggerArray=e.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]')));var i=[].slice.call(document.querySelectorAll(g.DATA_TOGGLE));for(var r=0,a=i.length;r<a;r++){var s=i[r];var o=l.getSelectorFromElement(s);var c=[].slice.call(document.querySelectorAll(o)).filter(function(e){return e===t});if(o!==null&&c.length>0){this._selector=o;this._triggerArray.push(s)}}this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray)}if(this._config.toggle){this.toggle()}}var o=a.prototype;o.toggle=function t(){if(e(this._element).hasClass(d.SHOW)){this.hide()}else{this.show()}};o.show=function t(){var n=this;if(this._isTransitioning||e(this._element).hasClass(d.SHOW)){return}var r;var s;if(this._parent){r=[].slice.call(this._parent.querySelectorAll(g.ACTIVES)).filter(function(e){return e.getAttribute("data-parent")===n._config.parent});if(r.length===0){r=null}}if(r){s=e(r).not(this._selector).data(i);if(s&&s._isTransitioning){return}}var o=e.Event(h.SHOW);e(this._element).trigger(o);if(o.isDefaultPrevented()){return}if(r){a._jQueryInterface.call(e(r).not(this._selector),"hide");if(!s){e(r).data(i,null)}}var c=this._getDimension();e(this._element).removeClass(d.COLLAPSE).addClass(d.COLLAPSING);this._element.style[c]=0;if(this._triggerArray.length){e(this._triggerArray).removeClass(d.COLLAPSED).attr("aria-expanded",true)}this.setTransitioning(true);var u=function t(){e(n._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).addClass(d.SHOW);n._element.style[c]="";n.setTransitioning(false);e(n._element).trigger(h.SHOWN)};var f=c[0].toUpperCase()+c.slice(1);var _="scroll"+f;var v=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,u).emulateTransitionEnd(v);this._element.style[c]=this._element[_]+"px"};o.hide=function t(){var n=this;if(this._isTransitioning||!e(this._element).hasClass(d.SHOW)){return}var i=e.Event(h.HIDE);e(this._element).trigger(i);if(i.isDefaultPrevented()){return}var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px";l.reflow(this._element);e(this._element).addClass(d.COLLAPSING).removeClass(d.COLLAPSE).removeClass(d.SHOW);var a=this._triggerArray.length;if(a>0){for(var s=0;s<a;s++){var o=this._triggerArray[s];var c=l.getSelectorFromElement(o);if(c!==null){var u=e([].slice.call(document.querySelectorAll(c)));if(!u.hasClass(d.SHOW)){e(o).addClass(d.COLLAPSED).attr("aria-expanded",false)}}}}this.setTransitioning(true);var f=function t(){n.setTransitioning(false);e(n._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).trigger(h.HIDDEN)};this._element.style[r]="";var _=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,f).emulateTransitionEnd(_)};o.setTransitioning=function e(t){this._isTransitioning=t};o.dispose=function t(){e.removeData(this._element,i);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null};o._getConfig=function e(n){n=s({},u,n);n.toggle=Boolean(n.toggle);l.typeCheckConfig(t,n,f);return n};o._getDimension=function t(){var n=e(this._element).hasClass(_.WIDTH);return n?_.WIDTH:_.HEIGHT};o._getParent=function t(){var n=this;var i=null;if(l.isElement(this._config.parent)){i=this._config.parent;if(typeof this._config.parent.jquery!=="undefined"){i=this._config.parent[0]}}else{i=document.querySelector(this._config.parent)}var r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';var s=[].slice.call(i.querySelectorAll(r));e(s).each(function(e,t){n._addAriaAndCollapsedClass(a._getTargetFromElement(t),[t])});return i};o._addAriaAndCollapsedClass=function t(n,i){if(n){var r=e(n).hasClass(d.SHOW);if(i.length){e(i).toggleClass(d.COLLAPSED,!r).attr("aria-expanded",r)}}};a._getTargetFromElement=function e(t){var n=l.getSelectorFromElement(t);return n?document.querySelector(n):null};a._jQueryInterface=function t(n){return this.each(function(){var t=e(this);var r=t.data(i);var o=s({},u,t.data(),typeof n==="object"&&n?n:{});if(!r&&o.toggle&&/show|hide/.test(n)){o.toggle=false}if(!r){r=new a(this,o);t.data(i,r)}if(typeof n==="string"){if(typeof r[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}r[n]()}})};r(a,null,[{key:"VERSION",get:function e(){return n}},{key:"Default",get:function e(){return u}}]);return a}();e(document).on(h.CLICK_DATA_API,g.DATA_TOGGLE,function(t){if(t.currentTarget.tagName==="A"){t.preventDefault()}var n=e(this);var r=l.getSelectorFromElement(this);var a=[].slice.call(document.querySelectorAll(r));e(a).each(function(){var t=e(this);var r=t.data(i);var a=r?"toggle":n.data();v._jQueryInterface.call(t,a)})});e.fn[t]=v._jQueryInterface;e.fn[t].Constructor=v;e.fn[t].noConflict=function(){e.fn[t]=c;return v._jQueryInterface};return v}(t);var d=function(e){var t="dropdown";var i="4.1.3";var a="bs.dropdown";var o="."+a;var c=".data-api";var u=e.fn[t];var f=27;var h=32;var d=9;var _=38;var g=40;var v=3;var m=new RegExp(_+"|"+g+"|"+f);var p={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+c,KEYDOWN_DATA_API:"keydown"+o+c,KEYUP_DATA_API:"keyup"+o+c};var E={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"};var T={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"};var A={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"};var I={offset:0,flip:true,boundary:"scrollParent",reference:"toggle",display:"dynamic"};var C={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"};var S=function(){function c(e,t){this._element=e;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var u=c.prototype;u.toggle=function t(){if(this._element.disabled||e(this._element).hasClass(E.DISABLED)){return}var i=c._getParentFromElement(this._element);var r=e(this._menu).hasClass(E.SHOW);c._clearMenus();if(r){return}var a={relatedTarget:this._element};var s=e.Event(p.SHOW,a);e(i).trigger(s);if(s.isDefaultPrevented()){return}if(!this._inNavbar){if(typeof n==="undefined"){throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)")}var o=this._element;if(this._config.reference==="parent"){o=i}else if(l.isElement(this._config.reference)){o=this._config.reference;if(typeof this._config.reference.jquery!=="undefined"){o=this._config.reference[0]}}if(this._config.boundary!=="scrollParent"){e(i).addClass(E.POSITION_STATIC)}this._popper=new n(o,this._menu,this._getPopperConfig())}if("ontouchstart"in document.documentElement&&e(i).closest(T.NAVBAR_NAV).length===0){e(document.body).children().on("mouseover",null,e.noop)}this._element.focus();this._element.setAttribute("aria-expanded",true);e(this._menu).toggleClass(E.SHOW);e(i).toggleClass(E.SHOW).trigger(e.Event(p.SHOWN,a))};u.dispose=function t(){e.removeData(this._element,a);e(this._element).off(o);this._element=null;this._menu=null;if(this._popper!==null){this._popper.destroy();this._popper=null}};u.update=function e(){this._inNavbar=this._detectNavbar();if(this._popper!==null){this._popper.scheduleUpdate()}};u._addEventListeners=function t(){var n=this;e(this._element).on(p.CLICK,function(e){e.preventDefault();e.stopPropagation();n.toggle()})};u._getConfig=function n(i){i=s({},this.constructor.Default,e(this._element).data(),i);l.typeCheckConfig(t,i,this.constructor.DefaultType);return i};u._getMenuElement=function e(){if(!this._menu){var t=c._getParentFromElement(this._element);if(t){this._menu=t.querySelector(T.MENU)}}return this._menu};u._getPlacement=function t(){var n=e(this._element.parentNode);var i=A.BOTTOM;if(n.hasClass(E.DROPUP)){i=A.TOP;if(e(this._menu).hasClass(E.MENURIGHT)){i=A.TOPEND}}else if(n.hasClass(E.DROPRIGHT)){i=A.RIGHT}else if(n.hasClass(E.DROPLEFT)){i=A.LEFT}else if(e(this._menu).hasClass(E.MENURIGHT)){i=A.BOTTOMEND}return i};u._detectNavbar=function t(){return e(this._element).closest(".navbar").length>0};u._getPopperConfig=function e(){var t=this;var n={};if(typeof this._config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,t._config.offset(e.offsets)||{});return e}}else{n.offset=this._config.offset}var i={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};if(this._config.display==="static"){i.modifiers.applyStyle={enabled:false}}return i};c._jQueryInterface=function t(n){return this.each(function(){var t=e(this).data(a);var i=typeof n==="object"?n:null;if(!t){t=new c(this,i);e(this).data(a,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n]()}})};c._clearMenus=function t(n){if(n&&(n.which===v||n.type==="keyup"&&n.which!==d)){return}var i=[].slice.call(document.querySelectorAll(T.DATA_TOGGLE));for(var r=0,s=i.length;r<s;r++){var o=c._getParentFromElement(i[r]);var l=e(i[r]).data(a);var u={relatedTarget:i[r]};if(n&&n.type==="click"){u.clickEvent=n}if(!l){continue}var f=l._menu;if(!e(o).hasClass(E.SHOW)){continue}if(n&&(n.type==="click"&&/input|textarea/i.test(n.target.tagName)||n.type==="keyup"&&n.which===d)&&e.contains(o,n.target)){continue}var h=e.Event(p.HIDE,u);e(o).trigger(h);if(h.isDefaultPrevented()){continue}if("ontouchstart"in document.documentElement){e(document.body).children().off("mouseover",null,e.noop)}i[r].setAttribute("aria-expanded","false");e(f).removeClass(E.SHOW);e(o).removeClass(E.SHOW).trigger(e.Event(p.HIDDEN,u))}};c._getParentFromElement=function e(t){var n;var i=l.getSelectorFromElement(t);if(i){n=document.querySelector(i)}return n||t.parentNode};c._dataApiKeydownHandler=function t(n){if(/input|textarea/i.test(n.target.tagName)?n.which===h||n.which!==f&&(n.which!==g&&n.which!==_||e(n.target).closest(T.MENU).length):!m.test(n.which)){return}n.preventDefault();n.stopPropagation();if(this.disabled||e(this).hasClass(E.DISABLED)){return}var i=c._getParentFromElement(this);var r=e(i).hasClass(E.SHOW);if(!r&&(n.which!==f||n.which!==h)||r&&(n.which===f||n.which===h)){if(n.which===f){var a=i.querySelector(T.DATA_TOGGLE);e(a).trigger("focus")}e(this).trigger("click");return}var s=[].slice.call(i.querySelectorAll(T.VISIBLE_ITEMS));if(s.length===0){return}var o=s.indexOf(n.target);if(n.which===_&&o>0){o--}if(n.which===g&&o<s.length-1){o++}if(o<0){o=0}s[o].focus()};r(c,null,[{key:"VERSION",get:function e(){return i}},{key:"Default",get:function e(){return I}},{key:"DefaultType",get:function e(){return C}}]);return c}();e(document).on(p.KEYDOWN_DATA_API,T.DATA_TOGGLE,S._dataApiKeydownHandler).on(p.KEYDOWN_DATA_API,T.MENU,S._dataApiKeydownHandler).on(p.CLICK_DATA_API+" "+p.KEYUP_DATA_API,S._clearMenus).on(p.CLICK_DATA_API,T.DATA_TOGGLE,function(t){t.preventDefault();t.stopPropagation();S._jQueryInterface.call(e(this),"toggle")}).on(p.CLICK_DATA_API,T.FORM_CHILD,function(e){e.stopPropagation()});e.fn[t]=S._jQueryInterface;e.fn[t].Constructor=S;e.fn[t].noConflict=function(){e.fn[t]=u;return S._jQueryInterface};return S}(t,n);var _=function(e){var t="modal";var n="4.1.3";var i="bs.modal";var a="."+i;var o=".data-api";var c=e.fn[t];var u=27;var f={backdrop:true,keyboard:true,focus:true,show:true};var h={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"};var d={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,FOCUSIN:"focusin"+a,RESIZE:"resize"+a,CLICK_DISMISS:"click.dismiss"+a,KEYDOWN_DISMISS:"keydown.dismiss"+a,MOUSEUP_DISMISS:"mouseup.dismiss"+a,MOUSEDOWN_DISMISS:"mousedown.dismiss"+a,CLICK_DATA_API:"click"+a+o};var _={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"};var g={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"};var v=function(){function o(e,t){this._config=this._getConfig(t);this._element=e;this._dialog=e.querySelector(g.DIALOG);this._backdrop=null;this._isShown=false;this._isBodyOverflowing=false;this._ignoreBackdropClick=false;this._scrollbarWidth=0}var c=o.prototype;c.toggle=function e(t){return this._isShown?this.hide():this.show(t)};c.show=function t(n){var i=this;if(this._isTransitioning||this._isShown){return}if(e(this._element).hasClass(_.FADE)){this._isTransitioning=true}var r=e.Event(d.SHOW,{relatedTarget:n});e(this._element).trigger(r);if(this._isShown||r.isDefaultPrevented()){return}this._isShown=true;this._checkScrollbar();this._setScrollbar();this._adjustDialog();e(document.body).addClass(_.OPEN);this._setEscapeEvent();this._setResizeEvent();e(this._element).on(d.CLICK_DISMISS,g.DATA_DISMISS,function(e){return i.hide(e)});e(this._dialog).on(d.MOUSEDOWN_DISMISS,function(){e(i._element).one(d.MOUSEUP_DISMISS,function(t){if(e(t.target).is(i._element)){i._ignoreBackdropClick=true}})});this._showBackdrop(function(){return i._showElement(n)})};c.hide=function t(n){var i=this;if(n){n.preventDefault()}if(this._isTransitioning||!this._isShown){return}var r=e.Event(d.HIDE);e(this._element).trigger(r);if(!this._isShown||r.isDefaultPrevented()){return}this._isShown=false;var a=e(this._element).hasClass(_.FADE);if(a){this._isTransitioning=true}this._setEscapeEvent();this._setResizeEvent();e(document).off(d.FOCUSIN);e(this._element).removeClass(_.SHOW);e(this._element).off(d.CLICK_DISMISS);e(this._dialog).off(d.MOUSEDOWN_DISMISS);if(a){var s=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,function(e){return i._hideModal(e)}).emulateTransitionEnd(s)}else{this._hideModal()}};c.dispose=function t(){e.removeData(this._element,i);e(window,document,this._element,this._backdrop).off(a);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null};c.handleUpdate=function e(){this._adjustDialog()};c._getConfig=function e(n){n=s({},f,n);l.typeCheckConfig(t,n,h);return n};c._showElement=function t(n){var i=this;var r=e(this._element).hasClass(_.FADE);if(!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;if(r){l.reflow(this._element)}e(this._element).addClass(_.SHOW);if(this._config.focus){this._enforceFocus()}var a=e.Event(d.SHOWN,{relatedTarget:n});var s=function t(){if(i._config.focus){i._element.focus()}i._isTransitioning=false;e(i._element).trigger(a)};if(r){var o=l.getTransitionDurationFromElement(this._element);e(this._dialog).one(l.TRANSITION_END,s).emulateTransitionEnd(o)}else{s()}};c._enforceFocus=function t(){var n=this;e(document).off(d.FOCUSIN).on(d.FOCUSIN,function(t){if(document!==t.target&&n._element!==t.target&&e(n._element).has(t.target).length===0){n._element.focus()}})};c._setEscapeEvent=function t(){var n=this;if(this._isShown&&this._config.keyboard){e(this._element).on(d.KEYDOWN_DISMISS,function(e){if(e.which===u){e.preventDefault();n.hide()}})}else if(!this._isShown){e(this._element).off(d.KEYDOWN_DISMISS)}};c._setResizeEvent=function t(){var n=this;if(this._isShown){e(window).on(d.RESIZE,function(e){return n.handleUpdate(e)})}else{e(window).off(d.RESIZE)}};c._hideModal=function t(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",true);this._isTransitioning=false;this._showBackdrop(function(){e(document.body).removeClass(_.OPEN);n._resetAdjustments();n._resetScrollbar();e(n._element).trigger(d.HIDDEN)})};c._removeBackdrop=function t(){if(this._backdrop){e(this._backdrop).remove();this._backdrop=null}};c._showBackdrop=function t(n){var i=this;var r=e(this._element).hasClass(_.FADE)?_.FADE:"";if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement("div");this._backdrop.className=_.BACKDROP;if(r){this._backdrop.classList.add(r)}e(this._backdrop).appendTo(document.body);e(this._element).on(d.CLICK_DISMISS,function(e){if(i._ignoreBackdropClick){i._ignoreBackdropClick=false;return}if(e.target!==e.currentTarget){return}if(i._config.backdrop==="static"){i._element.focus()}else{i.hide()}});if(r){l.reflow(this._backdrop)}e(this._backdrop).addClass(_.SHOW);if(!n){return}if(!r){n();return}var a=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,n).emulateTransitionEnd(a)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(_.SHOW);var s=function e(){i._removeBackdrop();if(n){n()}};if(e(this._element).hasClass(_.FADE)){var o=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,s).emulateTransitionEnd(o)}else{s()}}else if(n){n()}};c._adjustDialog=function e(){var t=this._element.scrollHeight>document.documentElement.clientHeight;if(!this._isBodyOverflowing&&t){this._element.style.paddingLeft=this._scrollbarWidth+"px"}if(this._isBodyOverflowing&&!t){this._element.style.paddingRight=this._scrollbarWidth+"px"}};c._resetAdjustments=function e(){this._element.style.paddingLeft="";this._element.style.paddingRight=""};c._checkScrollbar=function e(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()};c._setScrollbar=function t(){var n=this;if(this._isBodyOverflowing){var i=[].slice.call(document.querySelectorAll(g.FIXED_CONTENT));var r=[].slice.call(document.querySelectorAll(g.STICKY_CONTENT));e(i).each(function(t,i){var r=i.style.paddingRight;var a=e(i).css("padding-right");e(i).data("padding-right",r).css("padding-right",parseFloat(a)+n._scrollbarWidth+"px")});e(r).each(function(t,i){var r=i.style.marginRight;var a=e(i).css("margin-right");e(i).data("margin-right",r).css("margin-right",parseFloat(a)-n._scrollbarWidth+"px")});var a=document.body.style.paddingRight;var s=e(document.body).css("padding-right");e(document.body).data("padding-right",a).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}};c._resetScrollbar=function t(){var n=[].slice.call(document.querySelectorAll(g.FIXED_CONTENT));e(n).each(function(t,n){var i=e(n).data("padding-right");e(n).removeData("padding-right");n.style.paddingRight=i?i:""});var i=[].slice.call(document.querySelectorAll(""+g.STICKY_CONTENT));e(i).each(function(t,n){var i=e(n).data("margin-right");if(typeof i!=="undefined"){e(n).css("margin-right",i).removeData("margin-right")}});var r=e(document.body).data("padding-right");e(document.body).removeData("padding-right");document.body.style.paddingRight=r?r:""};c._getScrollbarWidth=function e(){var t=document.createElement("div");t.className=_.SCROLLBAR_MEASURER;document.body.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;document.body.removeChild(t);return n};o._jQueryInterface=function t(n,r){return this.each(function(){var t=e(this).data(i);var a=s({},f,e(this).data(),typeof n==="object"&&n?n:{});if(!t){t=new o(this,a);e(this).data(i,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n](r)}else if(a.show){t.show(r)}})};r(o,null,[{key:"VERSION",get:function e(){return n}},{key:"Default",get:function e(){return f}}]);return o}();e(document).on(d.CLICK_DATA_API,g.DATA_TOGGLE,function(t){var n=this;var r;var a=l.getSelectorFromElement(this);if(a){r=document.querySelector(a)}var o=e(r).data(i)?"toggle":s({},e(r).data(),e(this).data());if(this.tagName==="A"||this.tagName==="AREA"){t.preventDefault()}var c=e(r).one(d.SHOW,function(t){if(t.isDefaultPrevented()){return}c.one(d.HIDDEN,function(){if(e(n).is(":visible")){n.focus()}})});v._jQueryInterface.call(e(r),o,this)});e.fn[t]=v._jQueryInterface;e.fn[t].Constructor=v;e.fn[t].noConflict=function(){e.fn[t]=c;return v._jQueryInterface};return v}(t);var g=function(e){var t="tooltip";var i="4.1.3";var a="bs.tooltip";var o="."+a;var c=e.fn[t];var u="bs-tooltip";var f=new RegExp("(^|\\s)"+u+"\\S+","g");var h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"};var d={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"};var _={animation:true,template:'<div class="tooltip" role="tooltip">'+'<div class="arrow"></div>'+'<div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,selector:false,placement:"top",offset:0,container:false,fallbackPlacement:"flip",boundary:"scrollParent"};var g={SHOW:"show",OUT:"out"};var v={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};var m={FADE:"fade",SHOW:"show"};var p={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"};var E={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"};var T=function(){function c(e,t){if(typeof n==="undefined"){throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)")}this._isEnabled=true;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=e;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var T=c.prototype;T.enable=function e(){this._isEnabled=true};T.disable=function e(){this._isEnabled=false};T.toggleEnabled=function e(){this._isEnabled=!this._isEnabled};T.toggle=function t(n){if(!this._isEnabled){return}if(n){var i=this.constructor.DATA_KEY;var r=e(n.currentTarget).data(i);if(!r){r=new this.constructor(n.currentTarget,this._getDelegateConfig());e(n.currentTarget).data(i,r)}r._activeTrigger.click=!r._activeTrigger.click;if(r._isWithActiveTrigger()){r._enter(null,r)}else{r._leave(null,r)}}else{if(e(this.getTipElement()).hasClass(m.SHOW)){this._leave(null,this);return}this._enter(null,this)}};T.dispose=function t(){clearTimeout(this._timeout);e.removeData(this.element,this.constructor.DATA_KEY);e(this.element).off(this.constructor.EVENT_KEY);e(this.element).closest(".modal").off("hide.bs.modal");if(this.tip){e(this.tip).remove()}this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;if(this._popper!==null){this._popper.destroy()}this._popper=null;this.element=null;this.config=null;this.tip=null};T.show=function t(){var i=this;if(e(this.element).css("display")==="none"){throw new Error("Please use show on visible elements")}var r=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(r);var a=e.contains(this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!a){return}var s=this.getTipElement();var o=l.getUID(this.constructor.NAME);s.setAttribute("id",o);this.element.setAttribute("aria-describedby",o);this.setContent();if(this.config.animation){e(s).addClass(m.FADE)}var c=typeof this.config.placement==="function"?this.config.placement.call(this,s,this.element):this.config.placement;var u=this._getAttachment(c);this.addAttachmentClass(u);var f=this.config.container===false?document.body:e(document).find(this.config.container);e(s).data(this.constructor.DATA_KEY,this);if(!e.contains(this.element.ownerDocument.documentElement,this.tip)){e(s).appendTo(f)}e(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new n(this.element,s,{placement:u,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:p.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function e(t){if(t.originalPlacement!==t.placement){i._handlePopperPlacementChange(t)}},onUpdate:function e(t){i._handlePopperPlacementChange(t)}});e(s).addClass(m.SHOW);if("ontouchstart"in document.documentElement){e(document.body).children().on("mouseover",null,e.noop)}var h=function t(){if(i.config.animation){i._fixTransition()}var n=i._hoverState;i._hoverState=null;e(i.element).trigger(i.constructor.Event.SHOWN);if(n===g.OUT){i._leave(null,i)}};if(e(this.tip).hasClass(m.FADE)){var d=l.getTransitionDurationFromElement(this.tip);e(this.tip).one(l.TRANSITION_END,h).emulateTransitionEnd(d)}else{h()}}};T.hide=function t(n){var i=this;var r=this.getTipElement();var a=e.Event(this.constructor.Event.HIDE);var s=function t(){if(i._hoverState!==g.SHOW&&r.parentNode){r.parentNode.removeChild(r)}i._cleanTipClass();i.element.removeAttribute("aria-describedby");e(i.element).trigger(i.constructor.Event.HIDDEN);if(i._popper!==null){i._popper.destroy()}if(n){n()}};e(this.element).trigger(a);if(a.isDefaultPrevented()){return}e(r).removeClass(m.SHOW);if("ontouchstart"in document.documentElement){e(document.body).children().off("mouseover",null,e.noop)}this._activeTrigger[E.CLICK]=false;this._activeTrigger[E.FOCUS]=false;this._activeTrigger[E.HOVER]=false;if(e(this.tip).hasClass(m.FADE)){var o=l.getTransitionDurationFromElement(r);e(r).one(l.TRANSITION_END,s).emulateTransitionEnd(o)}else{s()}this._hoverState=""};T.update=function e(){if(this._popper!==null){this._popper.scheduleUpdate()}};T.isWithContent=function e(){return Boolean(this.getTitle())};T.addAttachmentClass=function t(n){e(this.getTipElement()).addClass(u+"-"+n)};T.getTipElement=function t(){this.tip=this.tip||e(this.config.template)[0];return this.tip};T.setContent=function t(){var n=this.getTipElement();this.setElementContent(e(n.querySelectorAll(p.TOOLTIP_INNER)),this.getTitle());e(n).removeClass(m.FADE+" "+m.SHOW)};T.setElementContent=function t(n,i){var r=this.config.html;if(typeof i==="object"&&(i.nodeType||i.jquery)){if(r){if(!e(i).parent().is(n)){n.empty().append(i)}}else{n.text(e(i).text())}}else{n[r?"html":"text"](i)}};T.getTitle=function e(){var t=this.element.getAttribute("data-original-title");if(!t){t=typeof this.config.title==="function"?this.config.title.call(this.element):this.config.title}return t};T._getAttachment=function e(t){return d[t.toUpperCase()]};T._setListeners=function t(){var n=this;var i=this.config.trigger.split(" ");i.forEach(function(t){if(t==="click"){e(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(e){return n.toggle(e)})}else if(t!==E.MANUAL){var i=t===E.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN;var r=t===E.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;e(n.element).on(i,n.config.selector,function(e){return n._enter(e)}).on(r,n.config.selector,function(e){return n._leave(e)})}e(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});if(this.config.selector){this.config=s({},this.config,{trigger:"manual",selector:""})}else{this._fixTitle()}};T._fixTitle=function e(){var t=typeof this.element.getAttribute("data-original-title");if(this.element.getAttribute("title")||t!=="string"){this.element.setAttribute("data-original-title",this.element.getAttribute("title")||"");this.element.setAttribute("title","")}};T._enter=function t(n,i){var r=this.constructor.DATA_KEY;i=i||e(n.currentTarget).data(r);if(!i){i=new this.constructor(n.currentTarget,this._getDelegateConfig());e(n.currentTarget).data(r,i)}if(n){i._activeTrigger[n.type==="focusin"?E.FOCUS:E.HOVER]=true}if(e(i.getTipElement()).hasClass(m.SHOW)||i._hoverState===g.SHOW){i._hoverState=g.SHOW;return}clearTimeout(i._timeout);i._hoverState=g.SHOW;if(!i.config.delay||!i.config.delay.show){i.show();return}i._timeout=setTimeout(function(){if(i._hoverState===g.SHOW){i.show()}},i.config.delay.show)};T._leave=function t(n,i){var r=this.constructor.DATA_KEY;i=i||e(n.currentTarget).data(r);if(!i){i=new this.constructor(n.currentTarget,this._getDelegateConfig());e(n.currentTarget).data(r,i)}if(n){i._activeTrigger[n.type==="focusout"?E.FOCUS:E.HOVER]=false}if(i._isWithActiveTrigger()){return}clearTimeout(i._timeout);i._hoverState=g.OUT;if(!i.config.delay||!i.config.delay.hide){i.hide();return}i._timeout=setTimeout(function(){if(i._hoverState===g.OUT){i.hide()}},i.config.delay.hide)};T._isWithActiveTrigger=function e(){for(var t in this._activeTrigger){if(this._activeTrigger[t]){return true}}return false};T._getConfig=function n(i){i=s({},this.constructor.Default,e(this.element).data(),typeof i==="object"&&i?i:{});if(typeof i.delay==="number"){i.delay={show:i.delay,hide:i.delay}}if(typeof i.title==="number"){i.title=i.title.toString()}if(typeof i.content==="number"){i.content=i.content.toString()}l.typeCheckConfig(t,i,this.constructor.DefaultType);return i};T._getDelegateConfig=function e(){var t={};if(this.config){for(var n in this.config){if(this.constructor.Default[n]!==this.config[n]){t[n]=this.config[n]}}}return t};T._cleanTipClass=function t(){var n=e(this.getTipElement());var i=n.attr("class").match(f);if(i!==null&&i.length){n.removeClass(i.join(""))}};T._handlePopperPlacementChange=function e(t){var n=t.instance;this.tip=n.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(t.placement))};T._fixTransition=function t(){var n=this.getTipElement();var i=this.config.animation;if(n.getAttribute("x-placement")!==null){return}e(n).removeClass(m.FADE);this.config.animation=false;this.hide();this.show();this.config.animation=i};c._jQueryInterface=function t(n){return this.each(function(){var t=e(this).data(a);var i=typeof n==="object"&&n;if(!t&&/dispose|hide/.test(n)){return}if(!t){t=new c(this,i);e(this).data(a,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n]()}})};r(c,null,[{key:"VERSION",get:function e(){return i}},{key:"Default",get:function e(){return _}},{key:"NAME",get:function e(){return t}},{key:"DATA_KEY",get:function e(){return a}},{key:"Event",get:function e(){return v}},{key:"EVENT_KEY",get:function e(){return o}},{key:"DefaultType",get:function e(){return h}}]);return c}();e.fn[t]=T._jQueryInterface;e.fn[t].Constructor=T;e.fn[t].noConflict=function(){e.fn[t]=c;return T._jQueryInterface};return T}(t,n);var v=function(e){var t="popover";var n="4.1.3";var i="bs.popover";var a="."+i;var l=e.fn[t];var c="bs-popover";var u=new RegExp("(^|\\s)"+c+"\\S+","g");var f=s({},g.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip">'+'<div class="arrow"></div>'+'<h3 class="popover-header"></h3>'+'<div class="popover-body"></div></div>'});var h=s({},g.DefaultType,{content:"(string|element|function)"});var d={FADE:"fade",SHOW:"show"};var _={TITLE:".popover-header",CONTENT:".popover-body"};var v={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};var m=function(s){o(l,s);function l(){return s.apply(this,arguments)||this}var g=l.prototype;g.isWithContent=function e(){return this.getTitle()||this._getContent()};g.addAttachmentClass=function t(n){e(this.getTipElement()).addClass(c+"-"+n)};g.getTipElement=function t(){this.tip=this.tip||e(this.config.template)[0];return this.tip};g.setContent=function t(){var n=e(this.getTipElement());this.setElementContent(n.find(_.TITLE),this.getTitle());var i=this._getContent();if(typeof i==="function"){i=i.call(this.element)}this.setElementContent(n.find(_.CONTENT),i);n.removeClass(d.FADE+" "+d.SHOW)};g._getContent=function e(){return this.element.getAttribute("data-content")||this.config.content};g._cleanTipClass=function t(){var n=e(this.getTipElement());var i=n.attr("class").match(u);if(i!==null&&i.length>0){n.removeClass(i.join(""))}};l._jQueryInterface=function t(n){return this.each(function(){var t=e(this).data(i);var r=typeof n==="object"?n:null;if(!t&&/destroy|hide/.test(n)){return}if(!t){t=new l(this,r);e(this).data(i,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n]()}})};r(l,null,[{key:"VERSION",get:function e(){return n}},{key:"Default",get:function e(){return f}},{key:"NAME",get:function e(){return t}},{key:"DATA_KEY",get:function e(){return i}},{key:"Event",get:function e(){return v}},{key:"EVENT_KEY",get:function e(){return a}},{key:"DefaultType",get:function e(){return h}}]);return l}(g);e.fn[t]=m._jQueryInterface;e.fn[t].Constructor=m;e.fn[t].noConflict=function(){e.fn[t]=l;return m._jQueryInterface};return m}(t);var m=function(e){var t="scrollspy";var n="4.1.3";var i="bs.scrollspy";var a="."+i;var o=".data-api";var c=e.fn[t];var u={offset:10,method:"auto",target:""};var f={offset:"number",method:"string",target:"(string|element)"};var h={ACTIVATE:"activate"+a,SCROLL:"scroll"+a,LOAD_DATA_API:"load"+a+o};var d={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"};var _={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"};var g={OFFSET:"offset",POSITION:"position"};var v=function(){function o(t,n){var i=this;this._element=t;this._scrollElement=t.tagName==="BODY"?window:t;this._config=this._getConfig(n);this._selector=this._config.target+" "+_.NAV_LINKS+","+(this._config.target+" "+_.LIST_ITEMS+",")+(this._config.target+" "+_.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;e(this._scrollElement).on(h.SCROLL,function(e){return i._process(e)});this.refresh();this._process()}var c=o.prototype;c.refresh=function t(){var n=this;var i=this._scrollElement===this._scrollElement.window?g.OFFSET:g.POSITION;var r=this._config.method==="auto"?i:this._config.method;var a=r===g.POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();var s=[].slice.call(document.querySelectorAll(this._selector));s.map(function(t){var n;var i=l.getSelectorFromElement(t);if(i){n=document.querySelector(i)}if(n){var s=n.getBoundingClientRect();if(s.width||s.height){return[e(n)[r]().top+a,i]}}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){n._offsets.push(e[0]);n._targets.push(e[1])})};c.dispose=function t(){e.removeData(this._element,i);e(this._scrollElement).off(a);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null};c._getConfig=function n(i){i=s({},u,typeof i==="object"&&i?i:{});if(typeof i.target!=="string"){var r=e(i.target).attr("id");if(!r){r=l.getUID(t);e(i.target).attr("id",r)}i.target="#"+r}l.typeCheckConfig(t,i,f);return i};c._getScrollTop=function e(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop};c._getScrollHeight=function e(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};c._getOffsetHeight=function e(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height};c._process=function e(){var t=this._getScrollTop()+this._config.offset;var n=this._getScrollHeight();var i=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n){this.refresh()}if(t>=i){var r=this._targets[this._targets.length-1];if(this._activeTarget!==r){this._activate(r)}return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}var a=this._offsets.length;for(var s=a;s--;){var o=this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(typeof this._offsets[s+1]==="undefined"||t<this._offsets[s+1]);if(o){this._activate(this._targets[s])}}};c._activate=function t(n){this._activeTarget=n;this._clear();var i=this._selector.split(",");i=i.map(function(e){return e+'[data-target="'+n+'"],'+(e+'[href="'+n+'"]')});var r=e([].slice.call(document.querySelectorAll(i.join(","))));if(r.hasClass(d.DROPDOWN_ITEM)){r.closest(_.DROPDOWN).find(_.DROPDOWN_TOGGLE).addClass(d.ACTIVE);r.addClass(d.ACTIVE)}else{r.addClass(d.ACTIVE);r.parents(_.NAV_LIST_GROUP).prev(_.NAV_LINKS+", "+_.LIST_ITEMS).addClass(d.ACTIVE);r.parents(_.NAV_LIST_GROUP).prev(_.NAV_ITEMS).children(_.NAV_LINKS).addClass(d.ACTIVE)}e(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:n})};c._clear=function t(){var n=[].slice.call(document.querySelectorAll(this._selector));e(n).filter(_.ACTIVE).removeClass(d.ACTIVE)};o._jQueryInterface=function t(n){return this.each(function(){var t=e(this).data(i);var r=typeof n==="object"&&n;if(!t){t=new o(this,r);e(this).data(i,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n]()}})};r(o,null,[{key:"VERSION",get:function e(){return n}},{key:"Default",get:function e(){return u}}]);return o}();e(window).on(h.LOAD_DATA_API,function(){var t=[].slice.call(document.querySelectorAll(_.DATA_SPY));var n=t.length;for(var i=n;i--;){var r=e(t[i]);v._jQueryInterface.call(r,r.data())}});e.fn[t]=v._jQueryInterface;e.fn[t].Constructor=v;e.fn[t].noConflict=function(){e.fn[t]=c;return v._jQueryInterface};return v}(t);var p=function(e){var t="tab";var n="4.1.3";var i="bs.tab";var a="."+i;var s=".data-api";var o=e.fn[t];var c={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK_DATA_API:"click"+a+s};var u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"};var f={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"};var h=function(){function t(e){this._element=e}var a=t.prototype;a.show=function t(){var n=this;if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(u.ACTIVE)||e(this._element).hasClass(u.DISABLED)){return}var i;var r;var a=e(this._element).closest(f.NAV_LIST_GROUP)[0];var s=l.getSelectorFromElement(this._element);if(a){var o=a.nodeName==="UL"?f.ACTIVE_UL:f.ACTIVE;r=e.makeArray(e(a).find(o));r=r[r.length-1]}var h=e.Event(c.HIDE,{relatedTarget:this._element});var d=e.Event(c.SHOW,{relatedTarget:r});if(r){e(r).trigger(h)}e(this._element).trigger(d);if(d.isDefaultPrevented()||h.isDefaultPrevented()){return}if(s){i=document.querySelector(s)}this._activate(this._element,a);var _=function t(){var i=e.Event(c.HIDDEN,{relatedTarget:n._element});var a=e.Event(c.SHOWN,{relatedTarget:r});e(r).trigger(i);e(n._element).trigger(a)};if(i){this._activate(i,i.parentNode,_)}else{_()}};a.dispose=function t(){e.removeData(this._element,i);this._element=null};a._activate=function t(n,i,r){var a=this;var s;if(i.nodeName==="UL"){s=e(i).find(f.ACTIVE_UL)}else{s=e(i).children(f.ACTIVE)}var o=s[0];var c=r&&o&&e(o).hasClass(u.FADE);var h=function e(){return a._transitionComplete(n,o,r)};if(o&&c){var d=l.getTransitionDurationFromElement(o);e(o).one(l.TRANSITION_END,h).emulateTransitionEnd(d)}else{h()}};a._transitionComplete=function t(n,i,r){if(i){e(i).removeClass(u.SHOW+" "+u.ACTIVE);var a=e(i.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0];if(a){e(a).removeClass(u.ACTIVE)}if(i.getAttribute("role")==="tab"){i.setAttribute("aria-selected",false)}}e(n).addClass(u.ACTIVE);if(n.getAttribute("role")==="tab"){n.setAttribute("aria-selected",true)}l.reflow(n);e(n).addClass(u.SHOW);if(n.parentNode&&e(n.parentNode).hasClass(u.DROPDOWN_MENU)){var s=e(n).closest(f.DROPDOWN)[0];if(s){var o=[].slice.call(s.querySelectorAll(f.DROPDOWN_TOGGLE));e(o).addClass(u.ACTIVE)}n.setAttribute("aria-expanded",true)}if(r){r()}};t._jQueryInterface=function n(r){return this.each(function(){var n=e(this);var a=n.data(i);if(!a){a=new t(this);n.data(i,a)}if(typeof r==="string"){if(typeof a[r]==="undefined"){throw new TypeError('No method named "'+r+'"')}a[r]()}})};r(t,null,[{key:"VERSION",get:function e(){return n}}]);return t}();e(document).on(c.CLICK_DATA_API,f.DATA_TOGGLE,function(t){t.preventDefault();h._jQueryInterface.call(e(this),"show")});e.fn[t]=h._jQueryInterface;e.fn[t].Constructor=h;e.fn[t].noConflict=function(){e.fn[t]=o;return h._jQueryInterface};return h}(t);(function(e){if(typeof e==="undefined"){throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.")}var t=e.fn.jquery.split(" ")[0].split(".");var n=1;var i=2;var r=9;var a=1;var s=4;if(t[0]<i&&t[1]<r||t[0]===n&&t[1]===r&&t[2]<a||t[0]>=s){throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}})(t);e.Util=l;e.Alert=c;e.Button=u;e.Carousel=f;e.Collapse=h;e.Dropdown=d;e.Modal=_;e.Popover=v;e.Scrollspy=m;e.Tab=p;e.Tooltip=g;Object.defineProperty(e,"__esModule",{value:true})});