(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 0this._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(a,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[a]=m._jQueryInterface,e.fn[a].Constructor=m,e.fn[a].noConflict=function(){return e.fn[a]=d,m._jQueryInterface},m}(jQuery),u=function(e){var a='collapse',l='bs.collapse',i='.'+l,s=e.fn[a],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,a){o(this,s),this._isTransitioning=!1,this._element=n,this._config=this._getConfig(a),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;ldocument.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
',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){o(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 r(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(a,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

'}),u=e.extend({},g.DefaultType,{content:'(string|element|function)'}),p={FADE:'fade',SHOW:'show'},f={TITLE:'.popover-header',CONTENT:'.popover-body'},m={HIDE:'hide'+l,HIDDEN:'hidden'+l,SHOW:'show'+l,SHOWN:'shown'+l,INSERTED:'inserted'+l,CLICK:'click'+l,FOCUSIN:'focusin'+l,FOCUSOUT:'focusout'+l,MOUSEENTER:'mouseenter'+l,MOUSELEAVE:'mouseleave'+l},E=function(d){function g(){return o(this,g),s(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,d),r(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){var a=this._targets[this._targets.length-1];return void(this._activeTarget!==a&&this._activate(a))}if(this._activeTarget&&e=this._offsets[r]&&(void 0===this._offsets[r+1]||e .dropdown-menu .active'},_=function(){function n(e){o(this,n),this._element=e}return r(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,a),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 o=e(this),r=o.data(a);if(r||(r=new n(this),o.data(a,r)),'string'==typeof t){if(void 0===r[t])throw new Error('No method named "'+t+'"');r[t]()}})}},{key:'VERSION',get:function(){return'4.0.0-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')[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},a={},l=function(){function l(t,n){var r=2',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 r=2.'),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()})}}]),l}(A);return a}(jQuery),C=function(e){var t='checkbox',n='bmd.'+t,a='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[a],c={template:''},_=function(a){function d(n,a){var r=2.'),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 o=e(this),r=o.data(n);r||(r=new a(o,t),o.data(n,r))})}}]),a}(A);return e.fn[a]=p._jQueryInterface,e.fn[a].Constructor=p,e.fn[a].noConflict=function(){return e.fn[a]=d,p._jQueryInterface},p}(jQuery),N=function(e){var t='radio',n='bmd.'+t,a='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[a],c={template:''},_=function(a){function d(n,a){var r=2.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var o=e(this),r=o.data(n);r||(r=new a(o,t),o.data(n,r))})}}]),a}(k);return e.fn[a]=_._jQueryInterface,e.fn[a].Constructor=_,e.fn[a].noConflict=function(){return e.fn[a]=d,_._jQueryInterface},_}(jQuery),S=function(e){var t='switch',n='bmd.'+t,a='bmd'+(t.charAt(0).toUpperCase()+t.slice(1)),d=e.fn[a],c={template:''},_=function(t){function a(t,n){var r=2.')}},{key:'_jQueryInterface',value:function(t){return this.each(function(){var o=e(this),r=o.data(n);r||(r=new a(o,t),o.data(n,r))})}}]),a}(k);return e.fn[a]=_._jQueryInterface,e.fn[a].Constructor=_,e.fn[a].noConflict=function(){return e.fn[a]=d,_._jQueryInterface},_}(jQuery),L=function(e){if('undefined'==typeof Popper)throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)');var a='dropdown',l='bs.dropdown',i='.'+l,s='.data-api',d=e.fn[a],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,TRANSITION_END:'transitionend webkitTransitionEnd oTransitionEnd animationend webkitAnimationEnd oAnimationEnd'},f={DISABLED:'disabled',SHOW:'show',SHOWING:'showing',HIDING:'hiding',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){o(this,s),this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}return r(s,[{key:'toggle',value:function(){var t=this;if(!(this._element.disabled||e(this._element).hasClass(f.DISABLED))){var n=s._getParentFromElement(this._element),a=e(this._menu).hasClass(f.SHOW);if(s._clearMenus(),!a){var o={relatedTarget:this._element},r=e.Event(g.SHOW,o);if(e(n).trigger(r),!r.isDefaultPrevented()){var l=this._element;e(n).hasClass(f.DROPUP)&&(e(this._menu).hasClass(f.MENULEFT)||e(this._menu).hasClass(f.MENURIGHT))&&(l=n),this._popper=new Popper(l,this._menu,this._getPopperConfig()),'ontouchstart'in document.documentElement&&!e(n).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).one(g.TRANSITION_END,function(){e(n).trigger(e.Event(g.SHOWN,o)),e(t._menu).removeClass(f.SHOWING)}),e(this._menu).addClass(f.SHOW+' '+f.SHOWING),e(n).addClass(f.SHOW)}}}}},{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 o=e(this._element).data();return void 0!==o.placement&&(o.placement=E[o.placement.toUpperCase()]),n=e.extend({},this.constructor.Default,e(this._element).data(),n),t.typeCheckConfig(a,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 0l&&(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[a]=A._jQueryInterface,e.fn[a].Constructor=A,e.fn[a].noConflict=function(){return e.fn[a]=d,A._jQueryInterface},A}(jQuery),P=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},a={canvas:{create:!0,required:!0,template:'
'},backdrop:{create:!0,required:!0,template:'
'}},d=function(t){function d(t,n){var r=2 '+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'},decorator:{template:'
'},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,a){var r=this;o(this,n),this.$element=e,this.config=t.extend(!0,{},c,a),this.$element.on(this.config.trigger.start,function(e){r._onStartRipple(e)})}return r(n,[{key:'dispose',value:function(){this.$element.data(a,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 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,a){var r=this;o(this,e),this.$element=n,this.config=t.extend(!0,{},i,a);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 r(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[a]=s._jQueryInterface,t.fn[a].Constructor=s,t.fn[a].noConflict=function(){return t.fn[a]=l,s._jQueryInterface},s})(jQuery)})();