mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-14 05:37:01 +03:00
ca5b4411d8
generated from commit a5a1aeab75
1 line
81 KiB
JavaScript
1 line
81 KiB
JavaScript
(function(){'use strict';var e=Math.max,t=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 a(){return{bindType:l.end,delegateType:l.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}}}function o(){if(window.QUnit)return!1;var e=document.createElement('bootstrap');for(var t in i)if(void 0!==e.style[t])return{end:i[t]};return!1}function r(t){var n=this,a=!1;return e(this).one(s.TRANSITION_END,function(){a=!0}),setTimeout(function(){a||s.triggerTransitionEnd(n)},t),this}var l=!1,i={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'},s={TRANSITION_END:'bsTransitionEnd',getUID:function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},getSelectorFromElement:function(t){var n=t.getAttribute('data-target');n&&'#'!==n||(n=t.getAttribute('href')||'');try{var a=e(n);return 0<a.length?n:null}catch(e){return null}},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(l.end)},supportsTransitionEnd:function(){return!!l},typeCheckConfig:function(e,a,o){for(var r in o)if(o.hasOwnProperty(r)){var l=o[r],i=a[r],s=i&&n(i)?'element':t(i);if(!new RegExp(l).test(s))throw new Error(e.toUpperCase()+': '+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+l+'".'))}}};return function(){l=o(),e.fn.emulateTransitionEnd=r,s.supportsTransitionEnd()&&(e.event.special[s.TRANSITION_END]=a())}(),s}(jQuery),n='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},a=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},o=function(){function e(e,t){for(var n,a=0;a<t.length;a++)n=t[a],n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),r=function e(t,n,a){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,a)}if('value'in o)return o.value;var l=o.get;return void 0===l?void 0:l.call(a)},l=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)},i=function(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'==typeof t||'function'==typeof t)?t:e},s=function(e){var n='alert',r='bs.alert',l='.'+r,i=e.fn[n],s={CLOSE:'close'+l,CLOSED:'closed'+l,CLICK_DATA_API:'click'+l+'.data-api'},d={ALERT:'alert',FADE:'fade',SHOW:'show'},c=function(){function n(e){a(this,n),this._element=e}return o(n,[{key:'close',value:function(e){e=e||this._element;var t=this._getRootElement(e),n=this._triggerCloseEvent(t);n.isDefaultPrevented()||this._removeElement(t)}},{key:'dispose',value:function(){e.removeData(this._element,r),this._element=null}},{key:'_getRootElement',value:function(n){var a=t.getSelectorFromElement(n),o=!1;return a&&(o=e(a)[0]),o||(o=e(n).closest('.'+d.ALERT)[0]),o}},{key:'_triggerCloseEvent',value:function(t){var n=e.Event(s.CLOSE);return e(t).trigger(n),n}},{key:'_removeElement',value:function(n){var a=this;return e(n).removeClass(d.SHOW),t.supportsTransitionEnd()&&e(n).hasClass(d.FADE)?void e(n).one(t.TRANSITION_END,function(e){return a._destroyElement(n,e)}).emulateTransitionEnd(150):void this._destroyElement(n)}},{key:'_destroyElement',value:function(t){e(t).detach().trigger(s.CLOSED).remove()}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(r);o||(o=new n(this),a.data(r,o)),'close'===t&&o[t](this)})}},{key:'_handleDismiss',value:function(e){return function(t){t&&t.preventDefault(),e.close(this)}}},{key:'VERSION',get:function(){return'4.0.0-beta'}}]),n}();return e(document).on(s.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,c._handleDismiss(new c)),e.fn[n]=c._jQueryInterface,e.fn[n].Constructor=c,e.fn[n].noConflict=function(){return e.fn[n]=i,c._jQueryInterface},c}(jQuery),d=function(e){var t='button',n='bs.button',r='.'+n,l='.data-api',i=e.fn[t],s={ACTIVE:'active',BUTTON:'btn',FOCUS:'focus'},d={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:'input',ACTIVE:'.active',BUTTON:'.btn'},c={CLICK_DATA_API:'click'+r+l,FOCUS_BLUR_DATA_API:'focus'+r+l+' '+('blur'+r+l)},_=function(){function t(e){a(this,t),this._element=e}return o(t,[{key:'toggle',value:function(){var t=!0,n=!0,a=e(this._element).closest(d.DATA_TOGGLE)[0];if(a){var o=e(this._element).find(d.INPUT)[0];if(o){if('radio'===o.type)if(o.checked&&e(this._element).hasClass(s.ACTIVE))t=!1;else{var r=e(a).find(d.ACTIVE)[0];r&&e(r).removeClass(s.ACTIVE)}if(t){if(o.hasAttribute('disabled')||a.hasAttribute('disabled')||o.classList.contains('disabled')||a.classList.contains('disabled'))return;o.checked=!e(this._element).hasClass(s.ACTIVE),e(o).trigger('change')}o.focus(),n=!1}}n&&this._element.setAttribute('aria-pressed',!e(this._element).hasClass(s.ACTIVE)),t&&e(this._element).toggleClass(s.ACTIVE)}},{key:'dispose',value:function(){e.removeData(this._element,n),this._element=null}}],[{key:'_jQueryInterface',value:function(a){return this.each(function(){var o=e(this).data(n);o||(o=new t(this),e(this).data(n,o)),'toggle'===a&&o[a]()})}},{key:'VERSION',get:function(){return'4.0.0-beta'}}]),t}();return e(document).on(c.CLICK_DATA_API,d.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var n=t.target;e(n).hasClass(s.BUTTON)||(n=e(n).closest(d.BUTTON)),_._jQueryInterface.call(e(n),'toggle')}).on(c.FOCUS_BLUR_DATA_API,d.DATA_TOGGLE_CARROT,function(t){var n=e(t.target).closest(d.BUTTON)[0];e(n).toggleClass(s.FOCUS,/^focus(in)?$/.test(t.type))}),e.fn[t]=_._jQueryInterface,e.fn[t].Constructor=_,e.fn[t].noConflict=function(){return e.fn[t]=i,_._jQueryInterface},_}(jQuery),c=function(e){var r='carousel',l='bs.carousel',i='.'+l,s='.data-api',d=e.fn[r],c={interval:5e3,keyboard:!0,slide:!1,pause:'hover',wrap:!0},_={interval:'(number|boolean)',keyboard:'boolean',slide:'(boolean|string)',pause:'(string|boolean)',wrap:'boolean'},u={NEXT:'next',PREV:'prev',LEFT:'left',RIGHT:'right'},p={SLIDE:'slide'+i,SLID:'slid'+i,KEYDOWN:'keydown'+i,MOUSEENTER:'mouseenter'+i,MOUSELEAVE:'mouseleave'+i,TOUCHEND:'touchend'+i,LOAD_DATA_API:'load'+i+s,CLICK_DATA_API:'click'+i+s},g={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'},f={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"]'},m=function(){function s(t,n){a(this,s),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=e(t)[0],this._indicatorsElement=e(this._element).find(f.INDICATORS)[0],this._addEventListeners()}return o(s,[{key:'next',value:function(){this._isSliding||this._slide(u.NEXT)}},{key:'nextWhenVisible',value:function(){document.hidden||this.next()}},{key:'prev',value:function(){this._isSliding||this._slide(u.PREV)}},{key:'pause',value:function(n){n||(this._isPaused=!0),e(this._element).find(f.NEXT_PREV)[0]&&t.supportsTransitionEnd()&&(t.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:'cycle',value:function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:'to',value:function(t){var n=this;this._activeElement=e(this._element).find(f.ACTIVE_ITEM)[0];var a=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||0>t)){if(this._isSliding)return void e(this._element).one(p.SLID,function(){return n.to(t)});if(a===t)return this.pause(),void this.cycle();var o=t>a?u.NEXT:u.PREV;this._slide(o,this._items[t])}}},{key:'dispose',value:function(){e(this._element).off(i),e.removeData(this._element,l),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(n){return n=e.extend({},c,n),t.typeCheckConfig(r,n,_),n}},{key:'_addEventListeners',value:function(){var t=this;this._config.keyboard&&e(this._element).on(p.KEYDOWN,function(e){return t._keydown(e)}),'hover'===this._config.pause&&(e(this._element).on(p.MOUSEENTER,function(e){return t.pause(e)}).on(p.MOUSELEAVE,function(e){return t.cycle(e)}),'ontouchstart'in document.documentElement&&e(this._element).on(p.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))}},{key:'_keydown',value:function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next();break;default:}}},{key:'_getItemIndex',value:function(t){return this._items=e.makeArray(e(t).parent().find(f.ITEM)),this._items.indexOf(t)}},{key:'_getItemByDirection',value:function(e,t){var n=e===u.NEXT,a=e===u.PREV,o=this._getItemIndex(t),r=this._items.length-1;if((a&&0===o||n&&o===r)&&!this._config.wrap)return t;var l=e===u.PREV?-1:1,i=(o+l)%this._items.length;return-1==i?this._items[this._items.length-1]:this._items[i]}},{key:'_triggerSlideEvent',value:function(t,n){var a=this._getItemIndex(t),o=this._getItemIndex(e(this._element).find(f.ACTIVE_ITEM)[0]),r=e.Event(p.SLIDE,{relatedTarget:t,direction:n,from:o,to:a});return e(this._element).trigger(r),r}},{key:'_setActiveIndicatorElement',value:function(t){if(this._indicatorsElement){e(this._indicatorsElement).find(f.ACTIVE).removeClass(g.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(g.ACTIVE)}}},{key:'_slide',value:function(n,a){var o,r,l,i=this,s=e(this._element).find(f.ACTIVE_ITEM)[0],d=this._getItemIndex(s),c=a||s&&this._getItemByDirection(n,s),_=this._getItemIndex(c),m=!!this._interval;if(n===u.NEXT?(o=g.LEFT,r=g.NEXT,l=u.LEFT):(o=g.RIGHT,r=g.PREV,l=u.RIGHT),c&&e(c).hasClass(g.ACTIVE))return void(this._isSliding=!1);var E=this._triggerSlideEvent(c,l);if(!E.isDefaultPrevented()&&s&&c){this._isSliding=!0,m&&this.pause(),this._setActiveIndicatorElement(c);var h=e.Event(p.SLID,{relatedTarget:c,direction:l,from:d,to:_});t.supportsTransitionEnd()&&e(this._element).hasClass(g.SLIDE)?(e(c).addClass(r),t.reflow(c),e(s).addClass(o),e(c).addClass(o),e(s).one(t.TRANSITION_END,function(){e(c).removeClass(o+' '+r).addClass(g.ACTIVE),e(s).removeClass(g.ACTIVE+' '+r+' '+o),i._isSliding=!1,setTimeout(function(){return e(i._element).trigger(h)},0)}).emulateTransitionEnd(600)):(e(s).removeClass(g.ACTIVE),e(c).addClass(g.ACTIVE),this._isSliding=!1,e(this._element).trigger(h)),m&&this.cycle()}}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this).data(l),o=e.extend({},c,e(this).data());'object'===('undefined'==typeof t?'undefined':n(t))&&e.extend(o,t);var r='string'==typeof t?t:o.slide;if(a||(a=new s(this,o),e(this).data(l,a)),'number'==typeof t)a.to(t);else if('string'==typeof r){if(void 0===a[r])throw new Error('No method named "'+r+'"');a[r]()}else o.interval&&(a.pause(),a.cycle())})}},{key:'_dataApiClickHandler',value:function(n){var a=t.getSelectorFromElement(this);if(a){var o=e(a)[0];if(o&&e(o).hasClass(g.CAROUSEL)){var r=e.extend({},e(o).data(),e(this).data()),i=this.getAttribute('data-slide-to');i&&(r.interval=!1),s._jQueryInterface.call(e(o),r),i&&e(o).data(l).to(i),n.preventDefault()}}}},{key:'VERSION',get:function(){return'4.0.0-beta'}},{key:'Default',get:function(){return c}}]),s}();return e(document).on(p.CLICK_DATA_API,f.DATA_SLIDE,m._dataApiClickHandler),e(window).on(p.LOAD_DATA_API,function(){e(f.DATA_RIDE).each(function(){var t=e(this);m._jQueryInterface.call(t,t.data())})}),e.fn[r]=m._jQueryInterface,e.fn[r].Constructor=m,e.fn[r].noConflict=function(){return e.fn[r]=d,m._jQueryInterface},m}(jQuery),_=function(e){var r='collapse',l='bs.collapse',i='.'+l,s=e.fn[r],d=600,c={toggle:!0,parent:''},_={toggle:'boolean',parent:'string'},u={SHOW:'show'+i,SHOWN:'shown'+i,HIDE:'hide'+i,HIDDEN:'hidden'+i,CLICK_DATA_API:'click'+i+'.data-api'},p={SHOW:'show',COLLAPSE:'collapse',COLLAPSING:'collapsing',COLLAPSED:'collapsed'},g={WIDTH:'width',HEIGHT:'height'},f={ACTIVES:'.show, .collapsing',DATA_TOGGLE:'[data-toggle="collapse"]'},m=function(){function s(n,o){a(this,s),this._isTransitioning=!1,this._element=n,this._config=this._getConfig(o),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+n.id+'"],'+('[data-toggle="collapse"][data-target="#'+n.id+'"]')));for(var r=e(f.DATA_TOGGLE),l=0;l<r.length;l++){var i=r[l],d=t.getSelectorFromElement(i);null!==d&&0<e(d).filter(n).length&&this._triggerArray.push(i)}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return o(s,[{key:'toggle',value:function(){e(this._element).hasClass(p.SHOW)?this.hide():this.show()}},{key:'show',value:function(){var n=this;if(!(this._isTransitioning||e(this._element).hasClass(p.SHOW))){var a,o;if(this._parent&&(a=e.makeArray(e(this._parent).children().children(f.ACTIVES)),!a.length&&(a=null)),!(a&&(o=e(a).data(l),o&&o._isTransitioning))){var r=e.Event(u.SHOW);if(e(this._element).trigger(r),!r.isDefaultPrevented()){a&&(s._jQueryInterface.call(e(a),'hide'),!o&&e(a).data(l,null));var i=this._getDimension();e(this._element).removeClass(p.COLLAPSE).addClass(p.COLLAPSING),this._element.style[i]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(p.COLLAPSED).attr('aria-expanded',!0),this.setTransitioning(!0);var c=function(){e(n._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).addClass(p.SHOW),n._element.style[i]='',n.setTransitioning(!1),e(n._element).trigger(u.SHOWN)};if(!t.supportsTransitionEnd())return void c();var _=i[0].toUpperCase()+i.slice(1);e(this._element).one(t.TRANSITION_END,c).emulateTransitionEnd(d),this._element.style[i]=this._element['scroll'+_]+'px'}}}}},{key:'hide',value:function(){var n=this;if(!this._isTransitioning&&e(this._element).hasClass(p.SHOW)){var a=e.Event(u.HIDE);if(e(this._element).trigger(a),!a.isDefaultPrevented()){var o=this._getDimension();if(this._element.style[o]=this._element.getBoundingClientRect()[o]+'px',t.reflow(this._element),e(this._element).addClass(p.COLLAPSING).removeClass(p.COLLAPSE).removeClass(p.SHOW),this._triggerArray.length)for(var r=0;r<this._triggerArray.length;r++){var l=this._triggerArray[r],i=t.getSelectorFromElement(l);if(null!==i){var s=e(i);s.hasClass(p.SHOW)||e(l).addClass(p.COLLAPSED).attr('aria-expanded',!1)}}this.setTransitioning(!0);var c=function(){n.setTransitioning(!1),e(n._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).trigger(u.HIDDEN)};return this._element.style[o]='',t.supportsTransitionEnd()?void e(this._element).one(t.TRANSITION_END,c).emulateTransitionEnd(d):void c()}}}},{key:'setTransitioning',value:function(e){this._isTransitioning=e}},{key:'dispose',value:function(){e.removeData(this._element,l),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}},{key:'_getConfig',value:function(n){return n=e.extend({},c,n),n.toggle=!!n.toggle,t.typeCheckConfig(r,n,_),n}},{key:'_getDimension',value:function(){var t=e(this._element).hasClass(g.WIDTH);return t?g.WIDTH:g.HEIGHT}},{key:'_getParent',value:function(){var t=this,n=e(this._config.parent)[0],a='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(a).each(function(e,n){t._addAriaAndCollapsedClass(s._getTargetFromElement(n),[n])}),n}},{key:'_addAriaAndCollapsedClass',value:function(t,n){if(t){var a=e(t).hasClass(p.SHOW);n.length&&e(n).toggleClass(p.COLLAPSED,!a).attr('aria-expanded',a)}}}],[{key:'_getTargetFromElement',value:function(n){var a=t.getSelectorFromElement(n);return a?e(a)[0]:null}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(l),r=e.extend({},c,a.data(),'object'===('undefined'==typeof t?'undefined':n(t))&&t);if(!o&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),o||(o=new s(this,r),a.data(l,o)),'string'==typeof t){if(void 0===o[t])throw new Error('No method named "'+t+'"');o[t]()}})}},{key:'VERSION',get:function(){return'4.0.0-beta'}},{key:'Default',get:function(){return c}}]),s}();return e(document).on(u.CLICK_DATA_API,f.DATA_TOGGLE,function(n){/input|textarea/i.test(n.target.tagName)||n.preventDefault();var a=e(this),o=t.getSelectorFromElement(this);e(o).each(function(){var t=e(this),n=t.data(l),o=n?'toggle':a.data();m._jQueryInterface.call(t,o)})}),e.fn[r]=m._jQueryInterface,e.fn[r].Constructor=m,e.fn[r].noConflict=function(){return e.fn[r]=s,m._jQueryInterface},m}(jQuery),u=function(e){if('undefined'==typeof Popper)throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)');var r='dropdown',l='bs.dropdown',i='.'+l,s='.data-api',d=e.fn[r],c=27,_=32,u=9,p=/38|40|27/,g={HIDE:'hide'+i,HIDDEN:'hidden'+i,SHOW:'show'+i,SHOWN:'shown'+i,CLICK:'click'+i,CLICK_DATA_API:'click'+i+s,KEYDOWN_DATA_API:'keydown'+i+s,KEYUP_DATA_API:'keyup'+i+s},f={DISABLED:'disabled',SHOW:'show',DROPUP:'dropup',MENURIGHT:'dropdown-menu-right',MENULEFT:'dropdown-menu-left'},m={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:'.dropdown form',MENU:'.dropdown-menu',NAVBAR_NAV:'.navbar-nav',VISIBLE_ITEMS:'.dropdown-menu .dropdown-item:not(.disabled)'},E={TOP:'top-start',TOPEND:'top-end',BOTTOM:'bottom-start',BOTTOMEND:'bottom-end'},h={placement:E.BOTTOM,offset:0,flip:!0},y={placement:'string',offset:'(number|string)',flip:'boolean'},A=function(){function s(e,t){a(this,s),this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}return o(s,[{key:'toggle',value:function(){if(!(this._element.disabled||e(this._element).hasClass(f.DISABLED))){var t=s._getParentFromElement(this._element),n=e(this._menu).hasClass(f.SHOW);if(s._clearMenus(),!n){var a={relatedTarget:this._element},o=e.Event(g.SHOW,a);if(e(t).trigger(o),!o.isDefaultPrevented()){var r=this._element;e(t).hasClass(f.DROPUP)&&(e(this._menu).hasClass(f.MENULEFT)||e(this._menu).hasClass(f.MENURIGHT))&&(r=t),this._popper=new Popper(r,this._menu,this._getPopperConfig()),'ontouchstart'in document.documentElement&&!e(t).closest(m.NAVBAR_NAV).length&&e('body').children().on('mouseover',null,e.noop),this._element.focus(),this._element.setAttribute('aria-expanded',!0),e(this._menu).toggleClass(f.SHOW),e(t).toggleClass(f.SHOW).trigger(e.Event(g.SHOWN,a))}}}}},{key:'dispose',value:function(){e.removeData(this._element,l),e(this._element).off(i),this._element=null,this._menu=null,null!==this._popper&&this._popper.destroy(),this._popper=null}},{key:'update',value:function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}},{key:'_addEventListeners',value:function(){var t=this;e(this._element).on(g.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})}},{key:'_getConfig',value:function(n){var a=e(this._element).data();return void 0!==a.placement&&(a.placement=E[a.placement.toUpperCase()]),n=e.extend({},this.constructor.Default,e(this._element).data(),n),t.typeCheckConfig(r,n,this.constructor.DefaultType),n}},{key:'_getMenuElement',value:function(){if(!this._menu){var t=s._getParentFromElement(this._element);this._menu=e(t).find(m.MENU)[0]}return this._menu}},{key:'_getPlacement',value:function(){var t=e(this._element).parent(),n=this._config.placement;return t.hasClass(f.DROPUP)||this._config.placement===E.TOP?(n=E.TOP,e(this._menu).hasClass(f.MENURIGHT)&&(n=E.TOPEND)):e(this._menu).hasClass(f.MENURIGHT)&&(n=E.BOTTOMEND),n}},{key:'_detectNavbar',value:function(){return 0<e(this._element).closest('.navbar').length}},{key:'_getPopperConfig',value:function(){var e={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(e.modifiers.applyStyle={enabled:!this._inNavbar}),e}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this).data(l),o='object'===('undefined'==typeof t?'undefined':n(t))?t:null;if(a||(a=new s(this,o),e(this).data(l,a)),'string'==typeof t){if(void 0===a[t])throw new Error('No method named "'+t+'"');a[t]()}})}},{key:'_clearMenus',value:function(t){if(!(t&&(3===t.which||'keyup'===t.type&&t.which!==u)))for(var n=e.makeArray(e(m.DATA_TOGGLE)),a=0;a<n.length;a++){var o=s._getParentFromElement(n[a]),r=e(n[a]).data(l),i={relatedTarget:n[a]};if(r){var d=r._menu;if(e(o).hasClass(f.SHOW)&&!(t&&('click'===t.type&&/input|textarea/i.test(t.target.tagName)||'keyup'===t.type&&t.which===u)&&e.contains(o,t.target))){var c=e.Event(g.HIDE,i);(e(o).trigger(c),!c.isDefaultPrevented())&&('ontouchstart'in document.documentElement&&e('body').children().off('mouseover',null,e.noop),n[a].setAttribute('aria-expanded','false'),e(d).removeClass(f.SHOW),e(o).removeClass(f.SHOW).trigger(e.Event(g.HIDDEN,i)))}}}}},{key:'_getParentFromElement',value:function(n){var a,o=t.getSelectorFromElement(n);return o&&(a=e(o)[0]),a||n.parentNode}},{key:'_dataApiKeydownHandler',value:function(t){if(!(!p.test(t.which)||/button/i.test(t.target.tagName)&&t.which===_||/input|textarea/i.test(t.target.tagName))&&(t.preventDefault(),t.stopPropagation(),!(this.disabled||e(this).hasClass(f.DISABLED)))){var n=s._getParentFromElement(this),a=e(n).hasClass(f.SHOW);if(!a&&(t.which!==c||t.which!==_)||a&&(t.which===c||t.which===_)){if(t.which===c){var o=e(n).find(m.DATA_TOGGLE)[0];e(o).trigger('focus')}return void e(this).trigger('click')}var r=e(n).find(m.VISIBLE_ITEMS).get();if(r.length){var l=r.indexOf(t.target);38===t.which&&0<l&&l--,40===t.which&&l<r.length-1&&l++,0>l&&(l=0),r[l].focus()}}}},{key:'VERSION',get:function(){return'4.0.0-beta'}},{key:'Default',get:function(){return h}},{key:'DefaultType',get:function(){return y}}]),s}();return e(document).on(g.KEYDOWN_DATA_API,m.DATA_TOGGLE,A._dataApiKeydownHandler).on(g.KEYDOWN_DATA_API,m.MENU,A._dataApiKeydownHandler).on(g.CLICK_DATA_API+' '+g.KEYUP_DATA_API,A._clearMenus).on(g.CLICK_DATA_API,m.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),A._jQueryInterface.call(e(this),'toggle')}).on(g.CLICK_DATA_API,m.FORM_CHILD,function(t){t.stopPropagation()}),e.fn[r]=A._jQueryInterface,e.fn[r].Constructor=A,e.fn[r].noConflict=function(){return e.fn[r]=d,A._jQueryInterface},A}(jQuery),p=function(e){var r='modal',l='bs.modal',i='.'+l,s=e.fn[r],d=300,c=150,_={backdrop:!0,keyboard:!0,focus:!0,show:!0},u={backdrop:'(boolean|string)',keyboard:'boolean',focus:'boolean',show:'boolean'},p={HIDE:'hide'+i,HIDDEN:'hidden'+i,SHOW:'show'+i,SHOWN:'shown'+i,FOCUSIN:'focusin'+i,RESIZE:'resize'+i,CLICK_DISMISS:'click.dismiss'+i,KEYDOWN_DISMISS:'keydown.dismiss'+i,MOUSEUP_DISMISS:'mouseup.dismiss'+i,MOUSEDOWN_DISMISS:'mousedown.dismiss'+i,CLICK_DATA_API:'click'+i+'.data-api'},g={SCROLLBAR_MEASURER:'modal-scrollbar-measure',BACKDROP:'modal-backdrop',OPEN:'modal-open',FADE:'fade',SHOW:'show'},f={DIALOG:'.modal-dialog',DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:'.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',NAVBAR_TOGGLER:'.navbar-toggler'},m=function(){function s(t,n){a(this,s),this._config=this._getConfig(n),this._element=t,this._dialog=e(t).find(f.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return o(s,[{key:'toggle',value:function(e){return this._isShown?this.hide():this.show(e)}},{key:'show',value:function(n){var a=this;if(!this._isTransitioning){t.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE)&&(this._isTransitioning=!0);var o=e.Event(p.SHOW,{relatedTarget:n});e(this._element).trigger(o),this._isShown||o.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),e(document.body).addClass(g.OPEN),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(p.CLICK_DISMISS,f.DATA_DISMISS,function(e){return a.hide(e)}),e(this._dialog).on(p.MOUSEDOWN_DISMISS,function(){e(a._element).one(p.MOUSEUP_DISMISS,function(t){e(t.target).is(a._element)&&(a._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return a._showElement(n)}))}}},{key:'hide',value:function(n){var a=this;if(n&&n.preventDefault(),!this._isTransitioning&&this._isShown){var o=t.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE);o&&(this._isTransitioning=!0);var r=e.Event(p.HIDE);e(this._element).trigger(r),!this._isShown||r.isDefaultPrevented()||(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),e(document).off(p.FOCUSIN),e(this._element).removeClass(g.SHOW),e(this._element).off(p.CLICK_DISMISS),e(this._dialog).off(p.MOUSEDOWN_DISMISS),o?e(this._element).one(t.TRANSITION_END,function(e){return a._hideModal(e)}).emulateTransitionEnd(d):this._hideModal())}}},{key:'dispose',value:function(){e.removeData(this._element,l),e(window,document,this._element,this._backdrop).off(i),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null}},{key:'handleUpdate',value:function(){this._adjustDialog()}},{key:'_getConfig',value:function(n){return n=e.extend({},_,n),t.typeCheckConfig(r,n,u),n}},{key:'_showElement',value:function(n){var a=this,o=t.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE);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,o&&t.reflow(this._element),e(this._element).addClass(g.SHOW),this._config.focus&&this._enforceFocus();var r=e.Event(p.SHOWN,{relatedTarget:n}),l=function(){a._config.focus&&a._element.focus(),a._isTransitioning=!1,e(a._element).trigger(r)};o?e(this._dialog).one(t.TRANSITION_END,l).emulateTransitionEnd(d):l()}},{key:'_enforceFocus',value:function(){var t=this;e(document).off(p.FOCUSIN).on(p.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(p.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):!this._isShown&&e(this._element).off(p.KEYDOWN_DISMISS)}},{key:'_setResizeEvent',value:function(){var t=this;this._isShown?e(window).on(p.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(p.RESIZE)}},{key:'_hideModal',value:function(){var t=this;this._element.style.display='none',this._element.setAttribute('aria-hidden',!0),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(g.OPEN),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(p.HIDDEN)})}},{key:'_removeBackdrop',value:function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}},{key:'_showBackdrop',value:function(n){var a=this,o=e(this._element).hasClass(g.FADE)?g.FADE:'';if(this._isShown&&this._config.backdrop){var r=t.supportsTransitionEnd()&&o;if(this._backdrop=document.createElement('div'),this._backdrop.className=g.BACKDROP,o&&e(this._backdrop).addClass(o),e(this._backdrop).appendTo(document.body),e(this._element).on(p.CLICK_DISMISS,function(e){return a._ignoreBackdropClick?void(a._ignoreBackdropClick=!1):void(e.target!==e.currentTarget||('static'===a._config.backdrop?a._element.focus():a.hide()))}),r&&t.reflow(this._backdrop),e(this._backdrop).addClass(g.SHOW),!n)return;if(!r)return void n();e(this._backdrop).one(t.TRANSITION_END,n).emulateTransitionEnd(c)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(g.SHOW);var l=function(){a._removeBackdrop(),n&&n()};t.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE)?e(this._backdrop).one(t.TRANSITION_END,l).emulateTransitionEnd(c):l()}else n&&n()}},{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=this;if(this._isBodyOverflowing){e(f.FIXED_CONTENT).each(function(n,a){var o=e(a)[0].style.paddingRight,r=e(a).css('padding-right');e(a).data('padding-right',o).css('padding-right',parseFloat(r)+t._scrollbarWidth+'px')}),e(f.NAVBAR_TOGGLER).each(function(n,a){var o=e(a)[0].style.marginRight,r=e(a).css('margin-right');e(a).data('margin-right',o).css('margin-right',parseFloat(r)+t._scrollbarWidth+'px')});var n=document.body.style.paddingRight,a=e('body').css('padding-right');e('body').data('padding-right',n).css('padding-right',parseFloat(a)+this._scrollbarWidth+'px')}}},{key:'_resetScrollbar',value:function(){e(f.FIXED_CONTENT).each(function(t,n){var a=e(n).data('padding-right');'undefined'!=typeof a&&e(n).css('padding-right',a).removeData('padding-right')}),e(f.NAVBAR_TOGGLER).each(function(t,n){var a=e(n).data('margin-right');'undefined'!=typeof a&&e(n).css('margin-right',a).removeData('margin-right')});var t=e('body').data('padding-right');'undefined'!=typeof t&&e('body').css('padding-right',t).removeData('padding-right')}},{key:'_getScrollbarWidth',value:function(){var e=document.createElement('div');e.className=g.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}}],[{key:'_jQueryInterface',value:function(t,a){return this.each(function(){var o=e(this).data(l),r=e.extend({},s.Default,e(this).data(),'object'===('undefined'==typeof t?'undefined':n(t))&&t);if(o||(o=new s(this,r),e(this).data(l,o)),'string'==typeof t){if(void 0===o[t])throw new Error('No method named "'+t+'"');o[t](a)}else r.show&&o.show(a)})}},{key:'VERSION',get:function(){return'4.0.0-beta'}},{key:'Default',get:function(){return _}}]),s}();return e(document).on(p.CLICK_DATA_API,f.DATA_TOGGLE,function(n){var a,o=this,r=t.getSelectorFromElement(this);r&&(a=e(r)[0]);var i=e(a).data(l)?'toggle':e.extend({},e(a).data(),e(this).data());('A'===this.tagName||'AREA'===this.tagName)&&n.preventDefault();var s=e(a).one(p.SHOW,function(t){t.isDefaultPrevented()||s.one(p.HIDDEN,function(){e(o).is(':visible')&&o.focus()})});m._jQueryInterface.call(e(a),i,this)}),e.fn[r]=m._jQueryInterface,e.fn[r].Constructor=m,e.fn[r].noConflict=function(){return e.fn[r]=s,m._jQueryInterface},m}(jQuery),g=function(e){if('undefined'==typeof Popper)throw new Error('Bootstrap tooltips require Popper.js (https://popper.js.org)');var r='tooltip',l='bs.tooltip',i='.'+l,s=e.fn[r],d=/(^|\s)bs-tooltip\S+/g,c={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)'},_={AUTO:'auto',TOP:'top',RIGHT:'right',BOTTOM:'bottom',LEFT:'left'},u={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:!1,selector:!1,placement:'top',offset:0,container:!1,fallbackPlacement:'flip'},p={SHOW:'show',OUT:'out'},g={HIDE:'hide'+i,HIDDEN:'hidden'+i,SHOW:'show'+i,SHOWN:'shown'+i,INSERTED:'inserted'+i,CLICK:'click'+i,FOCUSIN:'focusin'+i,FOCUSOUT:'focusout'+i,MOUSEENTER:'mouseenter'+i,MOUSELEAVE:'mouseleave'+i},f={FADE:'fade',SHOW:'show'},m={TOOLTIP:'.tooltip',TOOLTIP_INNER:'.tooltip-inner',ARROW:'.arrow'},E={HOVER:'hover',FOCUS:'focus',CLICK:'click',MANUAL:'manual'},h=function(){function s(e,t){a(this,s),this._isEnabled=!0,this._timeout=0,this._hoverState='',this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}return o(s,[{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,a=e(t.currentTarget).data(n);a||(a=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,a)),a._activeTrigger.click=!a._activeTrigger.click,a._isWithActiveTrigger()?a._enter(null,a):a._leave(null,a)}else{if(e(this.getTipElement()).hasClass(f.SHOW))return void this._leave(null,this);this._enter(null,this)}}},{key:'dispose',value:function(){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'),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}},{key:'show',value:function(){var n=this;if('none'===e(this.element).css('display'))throw new Error('Please use show on visible elements');var a=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(a);var o=e.contains(this.element.ownerDocument.documentElement,this.element);if(a.isDefaultPrevented()||!o)return;var r=this.getTipElement(),l=t.getUID(this.constructor.NAME);r.setAttribute('id',l),this.element.setAttribute('aria-describedby',l),this.setContent(),this.config.animation&&e(r).addClass(f.FADE);var i='function'==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,d=this._getAttachment(i);this.addAttachmentClass(d);var c=!1===this.config.container?document.body:e(this.config.container);e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(c),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,r,{placement:d,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:m.ARROW}},onCreate:function(e){e.originalPlacement!==e.placement&&n._handlePopperPlacementChange(e)},onUpdate:function(e){n._handlePopperPlacementChange(e)}}),e(r).addClass(f.SHOW),'ontouchstart'in document.documentElement&&e('body').children().on('mouseover',null,e.noop);var _=function(){n.config.animation&&n._fixTransition();var t=n._hoverState;n._hoverState=null,e(n.element).trigger(n.constructor.Event.SHOWN),t===p.OUT&&n._leave(null,n)};t.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(this.tip).one(t.TRANSITION_END,_).emulateTransitionEnd(s._TRANSITION_DURATION):_()}}},{key:'hide',value:function(n){var a=this,o=this.getTipElement(),r=e.Event(this.constructor.Event.HIDE),l=function(){a._hoverState!==p.SHOW&&o.parentNode&&o.parentNode.removeChild(o),a._cleanTipClass(),a.element.removeAttribute('aria-describedby'),e(a.element).trigger(a.constructor.Event.HIDDEN),null!==a._popper&&a._popper.destroy(),n&&n()};e(this.element).trigger(r),r.isDefaultPrevented()||(e(o).removeClass(f.SHOW),'ontouchstart'in document.documentElement&&e('body').children().off('mouseover',null,e.noop),this._activeTrigger[E.CLICK]=!1,this._activeTrigger[E.FOCUS]=!1,this._activeTrigger[E.HOVER]=!1,t.supportsTransitionEnd()&&e(this.tip).hasClass(f.FADE)?e(o).one(t.TRANSITION_END,l).emulateTransitionEnd(150):l(),this._hoverState='')}},{key:'update',value:function(){null!==this._popper&&this._popper.scheduleUpdate()}},{key:'isWithContent',value:function(){return!!this.getTitle()}},{key:'addAttachmentClass',value:function(t){e(this.getTipElement()).addClass('bs-tooltip-'+t)}},{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(m.TOOLTIP_INNER),this.getTitle()),t.removeClass(f.FADE+' '+f.SHOW)}},{key:'setElementContent',value:function(t,a){var o=this.config.html;'object'===('undefined'==typeof a?'undefined':n(a))&&(a.nodeType||a.jquery)?o?!e(a).parent().is(t)&&t.empty().append(a):t.text(e(a).text()):t[o?'html':'text'](a)}},{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:'_getAttachment',value:function(e){return _[e.toUpperCase()]}},{key:'_setListeners',value:function(){var t=this,n=this.config.trigger.split(' ');n.forEach(function(n){if('click'===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==E.MANUAL){var a=n===E.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=n===E.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(a,t.config.selector,function(e){return t._enter(e)}).on(o,t.config.selector,function(e){return t._leave(e)})}e(t.element).closest('.modal').on('hide.bs.modal',function(){return t.hide()})}),this.config.selector?this.config=e.extend({},this.config,{trigger:'manual',selector:''}):this._fixTitle()}},{key:'_fixTitle',value:function(){var e=n(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 a=this.constructor.DATA_KEY;return(n=n||e(t.currentTarget).data(a),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(a,n)),t&&(n._activeTrigger['focusin'===t.type?E.FOCUS:E.HOVER]=!0),e(n.getTipElement()).hasClass(f.SHOW)||n._hoverState===p.SHOW)?void(n._hoverState=p.SHOW):(clearTimeout(n._timeout),n._hoverState=p.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===p.SHOW&&n.show()},n.config.delay.show)):void n.show())}},{key:'_leave',value:function(t,n){var a=this.constructor.DATA_KEY;if(n=n||e(t.currentTarget).data(a),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(a,n)),t&&(n._activeTrigger['focusout'===t.type?E.FOCUS:E.HOVER]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=p.OUT,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){n._hoverState===p.OUT&&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(n){return n=e.extend({},this.constructor.Default,e(this.element).data(),n),n.delay&&'number'==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.title&&'number'==typeof n.title&&(n.title=n.title.toString()),n.content&&'number'==typeof n.content&&(n.content=n.content.toString()),t.typeCheckConfig(r,n,this.constructor.DefaultType),n}},{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:'_cleanTipClass',value:function(){var t=e(this.getTipElement()),n=t.attr('class').match(d);null!==n&&0<n.length&&t.removeClass(n.join(''))}},{key:'_handlePopperPlacementChange',value:function(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))}},{key:'_fixTransition',value:function(){var t=this.getTipElement(),n=this.config.animation;null!==t.getAttribute('x-placement')||(e(t).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this).data(l),o='object'===('undefined'==typeof t?'undefined':n(t))&&t;if((a||!/dispose|hide/.test(t))&&(a||(a=new s(this,o),e(this).data(l,a)),'string'==typeof t)){if(void 0===a[t])throw new Error('No method named "'+t+'"');a[t]()}})}},{key:'VERSION',get:function(){return'4.0.0-beta'}},{key:'Default',get:function(){return u}},{key:'NAME',get:function(){return r}},{key:'DATA_KEY',get:function(){return l}},{key:'Event',get:function(){return g}},{key:'EVENT_KEY',get:function(){return i}},{key:'DefaultType',get:function(){return c}}]),s}();return e.fn[r]=h._jQueryInterface,e.fn[r].Constructor=h,e.fn[r].noConflict=function(){return e.fn[r]=s,h._jQueryInterface},h}(jQuery),f=function(e){var t='popover',r='bs.popover',s='.'+r,d=e.fn[t],c=/(^|\s)bs-popover\S+/g,_=e.extend({},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>'}),u=e.extend({},g.DefaultType,{content:'(string|element|function)'}),p={FADE:'fade',SHOW:'show'},f={TITLE:'.popover-header',CONTENT:'.popover-body'},m={HIDE:'hide'+s,HIDDEN:'hidden'+s,SHOW:'show'+s,SHOWN:'shown'+s,INSERTED:'inserted'+s,CLICK:'click'+s,FOCUSIN:'focusin'+s,FOCUSOUT:'focusout'+s,MOUSEENTER:'mouseenter'+s,MOUSELEAVE:'mouseleave'+s},E=function(d){function g(){return a(this,g),i(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return l(g,d),o(g,[{key:'isWithContent',value:function(){return this.getTitle()||this._getContent()}},{key:'addAttachmentClass',value:function(t){e(this.getTipElement()).addClass('bs-popover-'+t)}},{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.TITLE),this.getTitle()),this.setElementContent(t.find(f.CONTENT),this._getContent()),t.removeClass(p.FADE+' '+p.SHOW)}},{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:'_cleanTipClass',value:function(){var t=e(this.getTipElement()),n=t.attr('class').match(c);null!==n&&0<n.length&&t.removeClass(n.join(''))}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this).data(r),o='object'===('undefined'==typeof t?'undefined':n(t))?t:null;if((a||!/destroy|hide/.test(t))&&(a||(a=new g(this,o),e(this).data(r,a)),'string'==typeof t)){if(void 0===a[t])throw new Error('No method named "'+t+'"');a[t]()}})}},{key:'VERSION',get:function(){return'4.0.0-beta'}},{key:'Default',get:function(){return _}},{key:'NAME',get:function(){return t}},{key:'DATA_KEY',get:function(){return r}},{key:'Event',get:function(){return m}},{key:'EVENT_KEY',get:function(){return s}},{key:'DefaultType',get:function(){return u}}]),g}(g);return e.fn[t]=E._jQueryInterface,e.fn[t].Constructor=E,e.fn[t].noConflict=function(){return e.fn[t]=d,E._jQueryInterface},E}(jQuery),m=function(r){var l='scrollspy',i='bs.scrollspy',s='.'+i,d=r.fn[l],c={offset:10,method:'auto',target:''},_={offset:'number',method:'string',target:'(string|element)'},u={ACTIVATE:'activate'+s,SCROLL:'scroll'+s,LOAD_DATA_API:'load'+s+'.data-api'},p={DROPDOWN_ITEM:'dropdown-item',DROPDOWN_MENU:'dropdown-menu',ACTIVE:'active'},g={DATA_SPY:'[data-spy="scroll"]',ACTIVE:'.active',NAV_LIST_GROUP:'.nav, .list-group',NAV_LINKS:'.nav-link',LIST_ITEMS:'.list-group-item',DROPDOWN:'.dropdown',DROPDOWN_ITEMS:'.dropdown-item',DROPDOWN_TOGGLE:'.dropdown-toggle'},f={OFFSET:'offset',POSITION:'position'},m=function(){function d(e,t){var n=this;a(this,d),this._element=e,this._scrollElement='BODY'===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+' '+g.NAV_LINKS+','+(this._config.target+' '+g.LIST_ITEMS+',')+(this._config.target+' '+g.DROPDOWN_ITEMS),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r(this._scrollElement).on(u.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}return o(d,[{key:'refresh',value:function(){var e=this,n=this._scrollElement===this._scrollElement.window?f.OFFSET:f.POSITION,a='auto'===this._config.method?n:this._config.method,o=a===f.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var l=r.makeArray(r(this._selector));l.map(function(e){var n,l=t.getSelectorFromElement(e);if(l&&(n=r(l)[0]),n){var i=n.getBoundingClientRect();if(i.width||i.height)return[r(n)[a]().top+o,l]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})}},{key:'dispose',value:function(){r.removeData(this._element,i),r(this._scrollElement).off(s),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(e){if(e=r.extend({},c,e),'string'!=typeof e.target){var n=r(e.target).attr('id');n||(n=t.getUID(l),r(e.target).attr('id',n)),e.target='#'+n}return t.typeCheckConfig(l,e,_),e}},{key:'_getScrollTop',value:function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:'_getScrollHeight',value:function(){return this._scrollElement.scrollHeight||e(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:'_getOffsetHeight',value:function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:'_process',value:function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var a=this._targets[this._targets.length-1];return void(this._activeTarget!==a&&this._activate(a))}if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o,r=this._offsets.length;r--;)o=this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1]),o&&this._activate(this._targets[r])}},{key:'_activate',value:function(e){this._activeTarget=e,this._clear();var t=this._selector.split(',');t=t.map(function(t){return t+'[data-target="'+e+'"],'+(t+'[href="'+e+'"]')});var n=r(t.join(','));n.hasClass(p.DROPDOWN_ITEM)?(n.closest(g.DROPDOWN).find(g.DROPDOWN_TOGGLE).addClass(p.ACTIVE),n.addClass(p.ACTIVE)):(n.addClass(p.ACTIVE),n.parents(g.NAV_LIST_GROUP).prev(g.NAV_LINKS+', '+g.LIST_ITEMS).addClass(p.ACTIVE)),r(this._scrollElement).trigger(u.ACTIVATE,{relatedTarget:e})}},{key:'_clear',value:function(){r(this._selector).filter(g.ACTIVE).removeClass(p.ACTIVE)}}],[{key:'_jQueryInterface',value:function(e){return this.each(function(){var t=r(this).data(i),a='object'===('undefined'==typeof e?'undefined':n(e))&&e;if(t||(t=new d(this,a),r(this).data(i,t)),'string'==typeof e){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e]()}})}},{key:'VERSION',get:function(){return'4.0.0-beta'}},{key:'Default',get:function(){return c}}]),d}();return r(window).on(u.LOAD_DATA_API,function(){for(var e,t=r.makeArray(r(g.DATA_SPY)),n=t.length;n--;)e=r(t[n]),m._jQueryInterface.call(e,e.data())}),r.fn[l]=m._jQueryInterface,r.fn[l].Constructor=m,r.fn[l].noConflict=function(){return r.fn[l]=d,m._jQueryInterface},m}(jQuery),E=function(e){var n='tab',r='bs.tab',l='.'+r,i=e.fn[n],s={HIDE:'hide'+l,HIDDEN:'hidden'+l,SHOW:'show'+l,SHOWN:'shown'+l,CLICK_DATA_API:'click'+l+'.data-api'},d={DROPDOWN_MENU:'dropdown-menu',ACTIVE:'active',DISABLED:'disabled',FADE:'fade',SHOW:'show'},c={DROPDOWN:'.dropdown',NAV_LIST_GROUP:'.nav, .list-group',ACTIVE:'.active',DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:'.dropdown-toggle',DROPDOWN_ACTIVE_CHILD:'> .dropdown-menu .active'},_=function(){function n(e){a(this,n),this._element=e}return o(n,[{key:'show',value:function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(d.ACTIVE)||e(this._element).hasClass(d.DISABLED))){var a,o,r=e(this._element).closest(c.NAV_LIST_GROUP)[0],l=t.getSelectorFromElement(this._element);r&&(o=e.makeArray(e(r).find(c.ACTIVE)),o=o[o.length-1]);var i=e.Event(s.HIDE,{relatedTarget:this._element}),_=e.Event(s.SHOW,{relatedTarget:o});if(o&&e(o).trigger(i),e(this._element).trigger(_),!(_.isDefaultPrevented()||i.isDefaultPrevented())){l&&(a=e(l)[0]),this._activate(this._element,r);var u=function(){var t=e.Event(s.HIDDEN,{relatedTarget:n._element}),a=e.Event(s.SHOWN,{relatedTarget:o});e(o).trigger(t),e(n._element).trigger(a)};a?this._activate(a,a.parentNode,u):u()}}}},{key:'dispose',value:function(){e.removeData(this._element,r),this._element=null}},{key:'_activate',value:function(n,a,o){var r=this,l=e(a).find(c.ACTIVE)[0],i=o&&t.supportsTransitionEnd()&&l&&e(l).hasClass(d.FADE),s=function(){return r._transitionComplete(n,l,i,o)};l&&i?e(l).one(t.TRANSITION_END,s).emulateTransitionEnd(150):s(),l&&e(l).removeClass(d.SHOW)}},{key:'_transitionComplete',value:function(n,a,o,r){if(a){e(a).removeClass(d.ACTIVE);var l=e(a.parentNode).find(c.DROPDOWN_ACTIVE_CHILD)[0];l&&e(l).removeClass(d.ACTIVE),a.setAttribute('aria-expanded',!1)}if(e(n).addClass(d.ACTIVE),n.setAttribute('aria-expanded',!0),o?(t.reflow(n),e(n).addClass(d.SHOW)):e(n).removeClass(d.FADE),n.parentNode&&e(n.parentNode).hasClass(d.DROPDOWN_MENU)){var i=e(n).closest(c.DROPDOWN)[0];i&&e(i).find(c.DROPDOWN_TOGGLE).addClass(d.ACTIVE),n.setAttribute('aria-expanded',!0)}r&&r()}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(r);if(o||(o=new n(this),a.data(r,o)),'string'==typeof t){if(void 0===o[t])throw new Error('No method named "'+t+'"');o[t]()}})}},{key:'VERSION',get:function(){return'4.0.0-beta'}}]),n}();return e(document).on(s.CLICK_DATA_API,c.DATA_TOGGLE,function(t){t.preventDefault(),_._jQueryInterface.call(e(this),'show')}),e.fn[n]=_._jQueryInterface,e.fn[n].Constructor=_,e.fn[n].noConflict=function(){return e.fn[n]=i,_._jQueryInterface},_}(jQuery),h=function(){function e(){if(window.QUnit)return!1;var e=document.createElement('bmd');for(var t in a)if(void 0!==e.style[t])return a[t];return!1}var t=!1,n='',a={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};return function(){for(var o in t=e(),a)n+=' '+a[o]}(),{transitionEndSupported:function(){return t},transitionEndSelector:function(){return n},isChar:function(e){return'undefined'==typeof e.which||'number'==typeof e.which&&0<e.which&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which},assert:function(e,t,n){if(t)throw void 0===!e&&e.css('border','1px solid red'),console.error(n,e),n},describe:function(e){return void 0===e?'undefined':0===e.length?'(no matching elements)':e[0].outerHTML.split('>')[0]+'>'}}}(jQuery),y=function(e){var t={BMD_FORM_GROUP:'bmd-form-group',IS_FILLED:'is-filled',IS_FOCUSED:'is-focused'},n={BMD_FORM_GROUP:'.'+t.BMD_FORM_GROUP},r={},l=function(){function l(t,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};for(var i in a(this,l),this.$element=t,this.config=e.extend(!0,{},r,n),o)this[i]=o[i]}return o(l,[{key:'dispose',value:function(e){this.$element.data(e,null),this.$element=null,this.config=null}},{key:'addFormGroupFocus',value:function(){this.$element.prop('disabled')||this.$bmdFormGroup.addClass(t.IS_FOCUSED)}},{key:'removeFormGroupFocus',value:function(){this.$bmdFormGroup.removeClass(t.IS_FOCUSED)}},{key:'removeIsFilled',value:function(){this.$bmdFormGroup.removeClass(t.IS_FILLED)}},{key:'addIsFilled',value:function(){this.$bmdFormGroup.addClass(t.IS_FILLED)}},{key:'findMdbFormGroup',value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0,a=this.$element.closest(n.BMD_FORM_GROUP);return 0===a.length&&t&&e.error('Failed to find '+n.BMD_FORM_GROUP+' for '+h.describe(this.$element)),a}}]),l}();return l}(jQuery),A=function(e){var t={FORM_GROUP:'form-group',BMD_FORM_GROUP:'bmd-form-group',BMD_LABEL:'bmd-label',BMD_LABEL_STATIC:'bmd-label-static',BMD_LABEL_PLACEHOLDER:'bmd-label-placeholder',BMD_LABEL_FLOATING:'bmd-label-floating',HAS_DANGER:'has-danger',IS_FILLED:'is-filled',IS_FOCUSED:'is-focused',INPUT_GROUP:'input-group'},n={FORM_GROUP:'.'+t.FORM_GROUP,BMD_FORM_GROUP:'.'+t.BMD_FORM_GROUP,BMD_LABEL_WILDCARD:'label[class^=\''+t.BMD_LABEL+'\'], label[class*=\' '+t.BMD_LABEL+'\']'},s={validate:!1,formGroup:{required:!1},bmdFormGroup:{template:'<span class=\''+t.BMD_FORM_GROUP+'\'></span>',create:!0,required:!0},label:{required:!1,selectors:['.form-control-label','> label'],className:t.BMD_LABEL_STATIC},requiredClasses:[],invalidComponentMatches:[],convertInputSizeVariations:!0},d={"form-control-lg":'bmd-form-group-lg',"form-control-sm":'bmd-form-group-sm'},c=function(c){function _(t,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};a(this,_);var r=i(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,t,e.extend(!0,{},s,n),o));return r._rejectInvalidComponentMatches(),r.rejectWithoutRequiredStructure(),r._rejectWithoutRequiredClasses(),r.$formGroup=r.findFormGroup(r.config.formGroup.required),r.$bmdFormGroup=r.resolveMdbFormGroup(),r.$bmdLabel=r.resolveMdbLabel(),r.resolveMdbFormGroupSizing(),r.addFocusListener(),r.addChangeListener(),''!=r.$element.val()&&r.addIsFilled(),r}return l(_,c),o(_,[{key:'dispose',value:function(e){r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),'dispose',this).call(this,e),this.$bmdFormGroup=null,this.$formGroup=null}},{key:'rejectWithoutRequiredStructure',value:function(){}},{key:'addFocusListener',value:function(){var e=this;this.$element.on('focus',function(){e.addFormGroupFocus()}).on('blur',function(){e.removeFormGroupFocus()})}},{key:'addChangeListener',value:function(){var e=this;this.$element.on('keydown paste',function(t){h.isChar(t)&&e.addIsFilled()}).on('keyup change',function(){if(e.isEmpty()?e.removeIsFilled():e.addIsFilled(),e.config.validate){var t='undefined'==typeof e.$element[0].checkValidity||e.$element[0].checkValidity();t?e.removeHasDanger():e.addHasDanger()}})}},{key:'addHasDanger',value:function(){this.$bmdFormGroup.addClass(t.HAS_DANGER)}},{key:'removeHasDanger',value:function(){this.$bmdFormGroup.removeClass(t.HAS_DANGER)}},{key:'isEmpty',value:function(){return null===this.$element.val()||void 0===this.$element.val()||''===this.$element.val()}},{key:'resolveMdbFormGroup',value:function(){var e=this.findMdbFormGroup(!1);return(void 0===e||0===e.length)&&(this.config.bmdFormGroup.create&&(void 0===this.$formGroup||0===this.$formGroup.length)?this.outerElement().parent().hasClass(t.INPUT_GROUP)?this.outerElement().parent().wrap(this.config.bmdFormGroup.template):this.outerElement().wrap(this.config.bmdFormGroup.template):this.$formGroup.addClass(t.BMD_FORM_GROUP),e=this.findMdbFormGroup(this.config.bmdFormGroup.required)),e}},{key:'outerElement',value:function(){return this.$element}},{key:'resolveMdbLabel',value:function(){var e=this.$bmdFormGroup.find(n.BMD_LABEL_WILDCARD);return(void 0===e||0===e.length)&&(e=this.findMdbLabel(this.config.label.required),void 0===e||0===e.length||e.addClass(this.config.label.className)),e}},{key:'findMdbLabel',value:function(){var t,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0,o=null,r=!0,l=!1;try{for(var i,s,d=this.config.label.selectors[Symbol.iterator]();!(r=(i=d.next()).done)&&(s=i.value,o=e.isFunction(s)?s(this):this.$bmdFormGroup.find(s),!(void 0!==o&&0<o.length));r=!0);}catch(e){l=!0,t=e}finally{try{!r&&d.return&&d.return()}finally{if(l)throw t}}return 0===o.length&&a&&e.error('Failed to find '+n.BMD_LABEL_WILDCARD+' within form-group for '+h.describe(this.$element)),o}},{key:'findFormGroup',value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0,a=this.$element.closest(n.FORM_GROUP);return 0===a.length&&t&&e.error('Failed to find '+n.FORM_GROUP+' for '+h.describe(this.$element)),a}},{key:'resolveMdbFormGroupSizing',value:function(){if(this.config.convertInputSizeVariations)for(var e in d)this.$element.hasClass(e)&&this.$bmdFormGroup.addClass(d[e])}},{key:'_rejectInvalidComponentMatches',value:function(){var e,t=!0,n=!1;try{for(var a,o,r=this.config.invalidComponentMatches[Symbol.iterator]();!(t=(a=r.next()).done);t=!0)o=a.value,o.rejectMatch(this.constructor.name,this.$element)}catch(t){n=!0,e=t}finally{try{!t&&r.return&&r.return()}finally{if(n)throw e}}}},{key:'_rejectWithoutRequiredClasses',value:function(){var t,n=!0,a=!1;try{for(var o,r=this.config.requiredClasses[Symbol.iterator]();!(n=(o=r.next()).done);n=!0){var l=o.value,i=!1;if(-1!==l.indexOf('||')){var s=l.split('||'),d=!0,c=!1,_=void 0;try{for(var u,p,g=s[Symbol.iterator]();!(d=(u=g.next()).done);d=!0)if(p=u.value,this.$element.hasClass(p)){i=!0;break}}catch(e){c=!0,_=e}finally{try{!d&&g.return&&g.return()}finally{if(c)throw _}}}else this.$element.hasClass(l)&&(i=!0);i||e.error(this.constructor.name+' element: '+h.describe(this.$element)+' requires class: '+l)}}catch(e){a=!0,t=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw t}}}}]),_}(y);return c}(jQuery),v=function(e){var t={label:{required:!1}},n={LABEL:'label'},r=function(r){function s(n,o,r){a(this,s);var l=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,n,e.extend(!0,{},t,o),r));return l.decorateMarkup(),l}return l(s,r),o(s,[{key:'decorateMarkup',value:function(){var t=e(this.config.template);this.$element.after(t),!1!==this.config.ripples&&t.bmdRipples()}},{key:'outerElement',value:function(){return this.$element.parent().closest('.'+this.outerClass)}},{key:'rejectWithoutRequiredStructure',value:function(){h.assert(this.$element,'label'===!this.$element.parent().prop('tagName'),this.constructor.name+'\'s '+h.describe(this.$element)+' parent element should be <label>.'),h.assert(this.$element,!this.outerElement().hasClass(this.outerClass),this.constructor.name+'\'s '+h.describe(this.$element)+' outer element should have class '+this.outerClass+'.')}},{key:'addFocusListener',value:function(){var e=this;this.$element.closest(n.LABEL).hover(function(){e.addFormGroupFocus()},function(){e.removeFormGroupFocus()})}},{key:'addChangeListener',value:function(){var e=this;this.$element.change(function(){e.$element.blur()})}}]),s}(A);return r}(jQuery),C=function(e){var t='checkbox',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={template:'<span class=\'checkbox-decorator\'><span class=\'check\'></span></span>'},_=function(s){function d(n,o){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{inputType:t,outerClass:t};return a(this,d),i(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,n,e.extend(!0,c,o),r))}return l(d,s),o(d,[{key:'dispose',value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n;r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),'dispose',this).call(this,e)}}],[{key:'matches',value:function(e){return'checkbox'===e.attr('type')}},{key:'rejectMatch',value:function(e,t){h.assert(this.$element,this.matches(t),e+' component element '+h.describe(t)+' is invalid for type=\'checkbox\'.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new d(a,t),a.data(n,o))})}}]),d}(v);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),T=function(e){var t='checkboxInline',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={bmdFormGroup:{create:!1,required:!1}},_=function(t){function s(t,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{inputType:'checkbox',outerClass:'checkbox-inline'};return a(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,{},c,n),o))}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n)}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(C);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),I=function(e){var t='collapseInline',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={ANY_INPUT:'input, select, textarea'},_={IN:'in',COLLAPSE:'collapse',COLLAPSING:'collapsing',COLLAPSED:'collapsed',WIDTH:'width'},u={},p=function(t){function s(t,n){a(this,s);var o=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,{},u,n)));o.$bmdFormGroup=o.findMdbFormGroup(!0);var r=t.data('target');o.$collapse=e(r),h.assert(t,0===o.$collapse.length,'Cannot find collapse target for '+h.describe(t)),h.assert(o.$collapse,!o.$collapse.hasClass(_.COLLAPSE),h.describe(o.$collapse)+' is expected to have the \''+_.COLLAPSE+'\' class. It is being targeted by '+h.describe(t));var l=o.$bmdFormGroup.find(c.ANY_INPUT);return 0<l.length&&(o.$input=l.first()),o.$collapse.hasClass(_.WIDTH)||o.$collapse.addClass(_.WIDTH),o.$input&&(o.$collapse.on('shown.bs.collapse',function(){o.$input.focus()}),o.$input.blur(function(){o.$collapse.collapse('hide')})),o}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n),this.$bmdFormGroup=null,this.$collapse=null,this.$input=null}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(y);return e.fn[s]=p._jQueryInterface,e.fn[s].Constructor=p,e.fn[s].noConflict=function(){return e.fn[s]=d,p._jQueryInterface},p}(jQuery),O=function(e){var t='file',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={},_={FILE:t,IS_FILE:'is-file'},u={FILENAMES:'input.form-control[readonly]'},p=function(t){function s(t,n){a(this,s);var o=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,c,n)));return o.$bmdFormGroup.addClass(_.IS_FILE),o}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n)}},{key:'outerElement',value:function(){return this.$element.parent().closest('.'+_.FILE)}},{key:'rejectWithoutRequiredStructure',value:function(){h.assert(this.$element,'label'===!this.outerElement().prop('tagName'),this.constructor.name+'\'s '+h.describe(this.$element)+' parent element '+h.describe(this.outerElement())+' should be <label>.'),h.assert(this.$element,!this.outerElement().hasClass(_.FILE),this.constructor.name+'\'s '+h.describe(this.$element)+' parent element '+h.describe(this.outerElement())+' should have class .'+_.FILE+'.')}},{key:'addFocusListener',value:function(){var e=this;this.$bmdFormGroup.on('focus',function(){e.addFormGroupFocus()}).on('blur',function(){e.removeFormGroupFocus()})}},{key:'addChangeListener',value:function(){var t=this;this.$element.on('change',function(){var n='';e.each(t.$element.files,function(e,t){n+=t.name+' , '}),n=n.substring(0,n.length-2),n?t.addIsFilled():t.removeIsFilled(),t.$bmdFormGroup.find(u.FILENAMES).val(n)})}}],[{key:'matches',value:function(e){return'file'===e.attr('type')}},{key:'rejectMatch',value:function(e,t){h.assert(this.$element,this.matches(t),e+' component element '+h.describe(t)+' is invalid for type=\'file\'.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(A);return e.fn[s]=p._jQueryInterface,e.fn[s].Constructor=p,e.fn[s].noConflict=function(){return e.fn[s]=d,p._jQueryInterface},p}(jQuery),N=function(e){var t='radio',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={template:'<span class=\'bmd-radio\'></span>'},_=function(s){function d(n,o){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{inputType:t,outerClass:t};return a(this,d),i(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,n,e.extend(!0,c,o),r))}return l(d,s),o(d,[{key:'dispose',value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n;r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),'dispose',this).call(this,e)}}],[{key:'matches',value:function(e){return'radio'===e.attr('type')}},{key:'rejectMatch',value:function(e,t){h.assert(this.$element,this.matches(t),e+' component element '+h.describe(t)+' is invalid for type=\'radio\'.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new d(a,t),a.data(n,o))})}}]),d}(v);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),b=function(e){var t='radioInline',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={bmdFormGroup:{create:!1,required:!1}},_=function(t){function s(t,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{inputType:'radio',outerClass:'radio-inline'};return a(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,{},c,n),o))}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n)}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(N);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),k=function(e){var t={requiredClasses:['form-control']},n=function(n){function o(n,r){a(this,o);var l=i(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,n,e.extend(!0,t,r)));return l.isEmpty()&&l.removeIsFilled(),l}return l(o,n),o}(A);return n}(jQuery),D=function(e){var t='select',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={requiredClasses:['form-control||custom-select']},_=function(t){function s(t,n){a(this,s);var o=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,c,n)));return o.addIsFilled(),o}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n)}}],[{key:'matches',value:function(e){return'select'===e.prop('tagName')}},{key:'rejectMatch',value:function(e,t){h.assert(this.$element,this.matches(t),e+' component element '+h.describe(t)+' is invalid for <select>.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(k);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),S=function(e){var t='switch',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={template:'<span class=\'bmd-switch-track\'></span>'},_=function(t){function s(t,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{inputType:'checkbox',outerClass:'switch'};return a(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,{},c,n),o))}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n)}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(C);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),R=function(e){var t='text',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={},_=function(t){function s(t,n){return a(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,c,n)))}return l(s,t),o(s,[{key:'dispose',value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n;r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,e)}}],[{key:'matches',value:function(e){return'text'===e.attr('type')}},{key:'rejectMatch',value:function(e,t){h.assert(this.$element,this.matches(t),e+' component element '+h.describe(t)+' is invalid for type=\'text\'.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(k);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),M=function(e){var t='textarea',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={},_=function(t){function s(t,n){return a(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,c,n)))}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n)}}],[{key:'matches',value:function(e){return'textarea'===e.prop('tagName')}},{key:'rejectMatch',value:function(e,t){h.assert(this.$element,this.matches(t),e+' component element '+h.describe(t)+' is invalid for <textarea>.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(k);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),L=function(e){var t={CANVAS:'bmd-layout-canvas',CONTAINER:'bmd-layout-container',BACKDROP:'bmd-layout-backdrop'},n={CANVAS:'.'+t.CANVAS,CONTAINER:'.'+t.CONTAINER,BACKDROP:'.'+t.BACKDROP},s={canvas:{create:!0,required:!0,template:'<div class="'+t.CANVAS+'"></div>'},backdrop:{create:!0,required:!0,template:'<div class="'+t.BACKDROP+'"></div>'}},d=function(t){function d(t,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};a(this,d);var r=i(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,t,e.extend(!0,{},s,n),o));return r.$container=r.findContainer(!0),r.$backdrop=r.resolveBackdrop(),r.resolveCanvas(),r}return l(d,t),o(d,[{key:'dispose',value:function(e){r(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),'dispose',this).call(this,e),this.$container=null,this.$backdrop=null}},{key:'resolveCanvas',value:function(){var e=this.findCanvas(!1);return(void 0===e||0===e.length)&&(this.config.canvas.create&&this.$container.wrap(this.config.canvas.template),e=this.findCanvas(this.config.canvas.required)),e}},{key:'findCanvas',value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.$container,o=a.closest(n.CANVAS);return 0===o.length&&t&&e.error('Failed to find '+n.CANVAS+' for '+h.describe(a)),o}},{key:'resolveBackdrop',value:function(){var e=this.findBackdrop(!1);return(void 0===e||0===e.length)&&(this.config.backdrop.create&&this.$container.append(this.config.backdrop.template),e=this.findBackdrop(this.config.backdrop.required)),e}},{key:'findBackdrop',value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.$container,o=a.find('> '+n.BACKDROP);return 0===o.length&&t&&e.error('Failed to find '+n.BACKDROP+' for '+h.describe(a)),o}},{key:'findContainer',value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.$element,o=a.closest(n.CONTAINER);return 0===o.length&&t&&e.error('Failed to find '+n.CONTAINER+' for '+h.describe(a)),o}}]),d}(y);return d}(jQuery),P=function(e){var t='drawer',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={ESCAPE:27},_={IN:'in',DRAWER_IN:'bmd-drawer-in',DRAWER_OUT:'bmd-drawer-out',DRAWER:'bmd-layout-drawer',CONTAINER:'bmd-layout-container'},u={focusSelector:'a, button, input'},p=function(t){function s(t,n){a(this,s);var o=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,{},u,n)));return o.$toggles=e('[data-toggle="drawer"][href="#'+o.$element[0].id+'"], [data-toggle="drawer"][data-target="#'+o.$element[0].id+'"]'),o._addAria(),o.$backdrop.keydown(function(e){e.which===c.ESCAPE&&o.hide()}).click(function(){o.hide()}),o.$element.keydown(function(e){e.which===c.ESCAPE&&o.hide()}),o.$toggles.click(function(){o.toggle()}),o}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n),this.$toggles=null}},{key:'toggle',value:function(){this._isOpen()?this.hide():this.show()}},{key:'show',value:function(){if(!(this._isForcedClosed()||this._isOpen())){this.$toggles.attr('aria-expanded',!0),this.$element.attr('aria-expanded',!0),this.$element.attr('aria-hidden',!1);var e=this.$element.find(this.config.focusSelector);0<e.length&&e.first().focus(),this.$container.addClass(_.DRAWER_IN),this.$backdrop.addClass(_.IN)}}},{key:'hide',value:function(){this._isOpen()&&(this.$toggles.attr('aria-expanded',!1),this.$element.attr('aria-expanded',!1),this.$element.attr('aria-hidden',!0),this.$container.removeClass(_.DRAWER_IN),this.$backdrop.removeClass(_.IN))}},{key:'_isOpen',value:function(){return this.$container.hasClass(_.DRAWER_IN)}},{key:'_isForcedClosed',value:function(){return this.$container.hasClass(_.DRAWER_OUT)}},{key:'_addAria',value:function(){var e=this._isOpen();this.$element.attr('aria-expanded',e),this.$element.attr('aria-hidden',e),this.$toggles.length&&this.$toggles.attr('aria-expanded',e)}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(L);return e.fn[s]=p._jQueryInterface,e.fn[s].Constructor=p,e.fn[s].noConflict=function(){return e.fn[s]=d,p._jQueryInterface},p}(jQuery),U=function(t){var n='ripples',r='bmd.'+n,l='bmd'+(n.charAt(0).toUpperCase()+n.slice(1)),i=t.fn[l],s={CONTAINER:'ripple-container',DECORATOR:'ripple-decorator'},d={CONTAINER:'.'+s.CONTAINER,DECORATOR:'.'+s.DECORATOR},c={container:{template:'<div class=\''+s.CONTAINER+'\'></div>'},decorator:{template:'<div class=\''+s.DECORATOR+'\'></div>'},trigger:{start:'mousedown touchstart',end:'mouseup mouseleave touchend'},touchUserAgentRegex:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,duration:500},_=function(){function n(e,o){var r=this;a(this,n),this.$element=e,this.config=t.extend(!0,{},c,o),this.$element.on(this.config.trigger.start,function(e){r._onStartRipple(e)})}return o(n,[{key:'dispose',value:function(){this.$element.data(r,null),this.$element=null,this.$container=null,this.$decorator=null,this.config=null}},{key:'_onStartRipple',value:function(e){var t=this;if(!(this._isTouch()&&'mousedown'===e.type)){this._findOrCreateContainer();var n=this._getRelY(e),a=this._getRelX(e);(n||a)&&(this.$decorator.css({left:a,top:n,"background-color":this._getRipplesColor()}),this._forceStyleApplication(),this.rippleOn(),setTimeout(function(){t.rippleEnd()},this.config.duration),this.$element.on(this.config.trigger.end,function(){t.$decorator&&(t.$decorator.data('mousedown','off'),'off'===t.$decorator.data('animating')&&t.rippleOut())}))}}},{key:'_findOrCreateContainer',value:function(){(!this.$container||0<!this.$container.length)&&(this.$element.append(this.config.container.template),this.$container=this.$element.find(d.CONTAINER)),this.$container.append(this.config.decorator.template),this.$decorator=this.$container.find(d.DECORATOR)}},{key:'_forceStyleApplication',value:function(){return window.getComputedStyle(this.$decorator[0]).opacity}},{key:'_getRelX',value:function(e){var t=this.$container.offset(),n=null;return this._isTouch()?(e=e.originalEvent,n=1===e.touches.length&&e.touches[0].pageX-t.left):n=e.pageX-t.left,n}},{key:'_getRelY',value:function(e){var t=this.$container.offset(),n=null;return this._isTouch()?(e=e.originalEvent,n=1===e.touches.length&&e.touches[0].pageY-t.top):n=e.pageY-t.top,n}},{key:'_getRipplesColor',value:function(){var e=this.$element.data('ripple-color')?this.$element.data('ripple-color'):window.getComputedStyle(this.$element[0]).color;return e}},{key:'_isTouch',value:function(){return this.config.touchUserAgentRegex.test(navigator.userAgent)}},{key:'rippleEnd',value:function(){this.$decorator&&(this.$decorator.data('animating','off'),'off'===this.$decorator.data('mousedown')&&this.rippleOut(this.$decorator))}},{key:'rippleOut',value:function(){var e=this;this.$decorator.off(),h.transitionEndSupported()?this.$decorator.addClass('ripple-out'):this.$decorator.animate({opacity:0},100,function(){e.$decorator.trigger('transitionend')}),this.$decorator.on(h.transitionEndSelector(),function(){e.$decorator&&(e.$decorator.remove(),e.$decorator=null)})}},{key:'rippleOn',value:function(){var t=this,n=this._getNewSize();h.transitionEndSupported()?this.$decorator.css({"-ms-transform":'scale('+n+')',"-moz-transform":'scale('+n+')',"-webkit-transform":'scale('+n+')',transform:'scale('+n+')'}).addClass('ripple-on').data('animating','on').data('mousedown','on'):this.$decorator.animate({width:2*e(this.$element.outerWidth(),this.$element.outerHeight()),height:2*e(this.$element.outerWidth(),this.$element.outerHeight()),"margin-left":-1*e(this.$element.outerWidth(),this.$element.outerHeight()),"margin-top":-1*e(this.$element.outerWidth(),this.$element.outerHeight()),opacity:0.2},this.config.duration,function(){t.$decorator.trigger('transitionend')})}},{key:'_getNewSize',value:function(){return 2.5*(e(this.$element.outerWidth(),this.$element.outerHeight())/this.$decorator.outerWidth())}}],[{key:'_jQueryInterface',value:function(e){return this.each(function(){var a=t(this),o=a.data(r);o||(o=new n(a,e),a.data(r,o))})}}]),n}();return t.fn[l]=_._jQueryInterface,t.fn[l].Constructor=_,t.fn[l].noConflict=function(){return t.fn[l]=i,_._jQueryInterface},_}(jQuery),w=function(e){var t='autofill',n='bmd.'+t,s='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[s],c={},_=function(t){function s(t,n){a(this,s);var o=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t,e.extend(!0,{},c,n)));return o._watchLoading(),o._attachEventHandlers(),o}return l(s,t),o(s,[{key:'dispose',value:function(){r(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),'dispose',this).call(this,n)}},{key:'_watchLoading',value:function(){var e=this;setTimeout(function(){clearInterval(e._onLoading)},1e4)}},{key:'_onLoading',value:function(){setInterval(function(){e('input[type!=checkbox]').each(function(t,n){var a=e(n);a.val()&&a.val()!==a.attr('value')&&a.trigger('change')})},100)}},{key:'_attachEventHandlers',value:function(){var t=null;e(document).on('focus','input',function(n){var a=e(n.currentTarget).closest('form').find('input').not('[type=file]');t=setInterval(function(){a.each(function(t,n){var a=e(n);a.val()!==a.attr('value')&&a.trigger('change')})},100)}).on('blur','.form-group input',function(){clearInterval(t)})}}],[{key:'_jQueryInterface',value:function(t){return this.each(function(){var a=e(this),o=a.data(n);o||(o=new s(a,t),a.data(n,o))})}}]),s}(y);return e.fn[s]=_._jQueryInterface,e.fn[s].Constructor=_,e.fn[s].noConflict=function(){return e.fn[s]=d,_._jQueryInterface},_}(jQuery),F=function(t){var e='bootstrapMaterialDesign',n='bmd.'+e,r=e,l=t.fn[r],i={global:{validate:!1,label:{className:'bmd-label-static'}},autofill:{selector:'body'},checkbox:{selector:'.checkbox > label > input[type=checkbox]'},checkboxInline:{selector:'label.checkbox-inline > input[type=checkbox]'},collapseInline:{selector:'.bmd-collapse-inline [data-toggle="collapse"]'},drawer:{selector:'.bmd-layout-drawer'},file:{selector:'input[type=file]'},radio:{selector:'.radio > label > input[type=radio]'},radioInline:{selector:'label.radio-inline > input[type=radio]'},ripples:{selector:['.btn:not(.btn-link):not(.ripple-none)','.card-image:not(.ripple-none)','.navbar a:not(.ripple-none)','.dropdown-menu a:not(.ripple-none)','.nav-tabs a:not(.ripple-none)','.pagination li:not(.active):not(.disabled) a:not(.ripple-none)','.ripple']},select:{selector:['select']},switch:{selector:'.switch > label > input[type=checkbox]'},text:{selector:['input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset])']},textarea:{selector:['textarea']},arrive:!0,instantiation:['ripples','checkbox','checkboxInline','collapseInline','drawer','radio','radioInline','switch','text','textarea','select','autofill']},s=function(){function e(n,o){var r=this;a(this,e),this.$element=n,this.config=t.extend(!0,{},i,o);var l,s=t(document),d=!0,c=!1;try{for(var _,u=function(){var e=_.value,n=r.config[e];if(n){var a=r._resolveSelector(n);n=t.extend(!0,{},r.config.global,n);var o=''+(e.charAt(0).toUpperCase()+e.slice(1)),l='bmd'+o;try{t(a)[l](n),document.arrive&&r.config.arrive&&s.arrive(a,function(){t(this)[l](n)})}catch(o){var i='Failed to instantiate component: $(\''+a+'\')['+l+']('+n+')';throw console.error(i,o,'\nSelected elements: ',t(a)),o}}},p=this.config.instantiation[Symbol.iterator]();!(d=(_=p.next()).done);d=!0)u()}catch(e){c=!0,l=e}finally{try{!d&&p.return&&p.return()}finally{if(c)throw l}}}return o(e,[{key:'dispose',value:function(){this.$element.data(n,null),this.$element=null,this.config=null}},{key:'_resolveSelector',value:function(e){var t=e.selector;return Array.isArray(t)&&(t=t.join(', ')),t}}],[{key:'_jQueryInterface',value:function(a){return this.each(function(){var o=t(this),r=o.data(n);r||(r=new e(o,a),o.data(n,r))})}}]),e}();return t.fn[r]=s._jQueryInterface,t.fn[r].Constructor=s,t.fn[r].noConflict=function(){return t.fn[r]=l,s._jQueryInterface},s}(jQuery)})(); |