vue-material
Version:
Material Design for Vue.js
1 lines • 261 kB
JavaScript
!(function(e,t){var n,r;if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{n=t("object"==typeof exports?require("vue"):e.Vue);for(r in n)("object"==typeof exports?exports:e)[r]=n[r]}})(this,(function(e){return (function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=387)})([(function(e,t){e.exports=function(e,t,n,r,i,s){var o,a,u,l,d,c=e=e||{},f=typeof e.default;return"object"!==f&&"function"!==f||(o=e,c=e.default),a="function"==typeof c?c.options:c,t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns,a._compiled=!0),n&&(a.functional=!0),i&&(a._scopeId=i),s?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=u):r&&(u=r),u&&(l=a.functional,d=l?a.render:a.beforeCreate,l?(a._injectStyles=u,a.render=function(e,t){return u.call(t),d(e,t)}):a.beforeCreate=d?[].concat(d,u):[u]),{esModule:o,exports:c,options:a}}}),(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={props:{mdTheme:null},computed:{$mdActiveTheme:function(){var e=s.default.enabled,t=s.default.getThemeName,n=s.default.getAncestorTheme;return e&&!1!==this.mdTheme?t(this.mdTheme||n(this)):null}}};return(0,a.default)(t,e)},i=n(4),s=r(i),o=n(6),a=r(o)}),(function(t,n){t.exports=e}),(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,s,o,a,u;Object.defineProperty(t,"__esModule",{value:!0}),n(7),i=n(5),s=r(i),o=n(4),a=r(o),u=function(){var e=new s.default({ripple:!0,theming:{},locale:{startYear:1900,endYear:2099,dateFormat:"YYYY-MM-DD",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shorterDays:["S","M","T","W","T","F","S"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],shorterMonths:["J","F","M","A","M","Ju","Ju","A","Se","O","N","D"]}});return Object.defineProperties(e.theming,{metaColors:{get:function(){return a.default.metaColors},set:function(e){a.default.metaColors=e}},theme:{get:function(){return a.default.theme},set:function(e){a.default.theme=e}},enabled:{get:function(){return a.default.enabled},set:function(e){a.default.enabled=e}}}),e},t.default=function(e){e.material||(e.material=u(),e.prototype.$material=e.material)}}),(function(e,t,n){"use strict";var r,i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=(function(e){return e&&e.__esModule?e:{default:e}})(r),s=null,o=null,a=null,t.default=new i.default({data:function(){return{prefix:"md-theme-",theme:"default",enabled:!0,metaColors:!1}},computed:{themeTarget:function(){return!this.$isServer&&document.documentElement},fullThemeName:function(){return this.getThemeName()}},watch:{enabled:{immediate:!0,handler:function(){var e=this.fullThemeName,t=this.themeTarget,n=this.enabled;t&&(n?(t.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)):(t.classList.remove(e),this.metaColors&&this.setHtmlMetaColors()))}},theme:function(e,t){var n=this.getThemeName,r=this.themeTarget;e=n(e),r.classList.remove(n(t)),r.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)},metaColors:function(e){e?this.setHtmlMetaColors(this.fullThemeName):this.setHtmlMetaColors()}},methods:{getAncestorTheme:function(e){var t,n=this;return e?(t=e.mdTheme,(function e(r){if(r){var i=r.mdTheme,s=r.$parent;return i&&i!==t?i:e(s)}return n.theme})(e.$parent)):null},getThemeName:function(e){var t=e||this.theme;return this.prefix+t},setMicrosoftColors:function(e){s&&s.setAttribute("content",e)},setThemeColors:function(e){o&&o.setAttribute("content",e)},setMaskColors:function(e){a&&a.setAttribute("color",e)},setHtmlMetaColors:function(e){var t,n="#fff";e&&(t=window.getComputedStyle(document.documentElement),n=t.getPropertyValue("--"+e+"-primary")),n&&(this.setMicrosoftColors(n),this.setThemeColors(n),this.setMaskColors(n))}},mounted:function(){var e=this;s=document.querySelector('[name="msapplication-TileColor"]'),o=document.querySelector('[name="theme-color"]'),a=document.querySelector('[rel="mask-icon"]'),this.enabled&&this.metaColors&&window.addEventListener("load",(function(){e.setHtmlMetaColors(e.fullThemeName)}))}})}),(function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return i.default.util.defineReactive(t,"reactive",e),t.reactive},r=n(2),i=(function(e){return e&&e.__esModule?e:{default:e}})(r)}),(function(e,t,n){"use strict";function r(e){return!!e&&"object"==typeof e}function i(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||s(e)}function s(e){return e.$$typeof===m}function o(e){return Array.isArray(e)?[]:{}}function a(e,t){return t&&!1===t.clone||!c(e)?e:d(o(e),e,t)}function u(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function l(e,t,n){var r={};return c(e)&&Object.keys(e).forEach((function(t){r[t]=a(e[t],n)})),Object.keys(t).forEach((function(i){c(t[i])&&e[i]?r[i]=d(e[i],t[i],n):r[i]=a(t[i],n)})),r}function d(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),s=n||{arrayMerge:u};return r===i?r?(s.arrayMerge||u)(e,t,n):l(e,t,n):a(t,n)}var c,f,m,h;Object.defineProperty(t,"__esModule",{value:!0}),c=function(e){return r(e)&&!i(e)},f="function"==typeof Symbol&&Symbol.for,m=f?Symbol.for("react.element"):60103,d.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce((function(e,n){return d(e,n,t)}),{})},h=d,t.default=h}),(function(e,t){}),(function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=(function(e){return e&&e.__esModule?e:{default:e}})(r),t.default=function(e,t){return{validator:function(n){return!!t.includes(n)||(i.default.util.warn("The "+e+" prop is invalid. Given value: "+n+". Available options: "+t.join(", ")+".",void 0),!1)}}}}),(function(e,t,n){"use strict";function r(e){n(21)}var i,s,o,a,u,l,d,c,f,m,h,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(22),s=n.n(i),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdSrc?n("md-svg-loader",{staticClass:"md-icon md-icon-image",class:[e.$mdActiveTheme],attrs:{"md-src":e.mdSrc},on:{"md-loaded":function(t){e.$emit("md-loaded")}}}):n("i",{staticClass:"md-icon md-icon-font",class:[e.$mdActiveTheme]},[e._t("default")],2)},a=[],u={render:o,staticRenderFns:a},l=u,d=n(0),c=!1,f=r,m=null,h=null,p=d(s.a,l,c,f,m,h),t.default=p.exports}),(function(e,t,n){function r(e,t){var n,r,l,c,h,p,v,g,b,_;return d(e)?new Date(e.getTime()):"string"!=typeof e?new Date(e):(n=t||{},r=n.additionalDigits,r=null==r?m:+r,l=i(e),c=s(l.date,r),h=c.year,p=c.restDateString,v=o(p,h),v?(g=v.getTime(),b=0,l.time&&(b=a(l.time)),l.timezone?_=u(l.timezone):(_=new Date(g+b).getTimezoneOffset(),_=new Date(g+b+_*f).getTimezoneOffset()),new Date(g+b+_*f)):new Date(e))}function i(e){var t,n,r={},i=e.split(h);return p.test(i[0])?(r.date=null,t=i[0]):(r.date=i[0],t=i[1]),t&&(n=P.exec(t),n?(r.time=t.replace(n[1],""),r.timezone=n[1]):r.time=t),r}function s(e,t){var n,r,i=g[t],s=_[t],o=b.exec(e)||s.exec(e);return o?(n=o[1],{year:parseInt(n,10),restDateString:e.slice(n.length)}):(o=v.exec(e)||i.exec(e),o?(r=o[1],{year:100*parseInt(r,10),restDateString:e.slice(r.length)}):{year:null})}function o(e,t){var n,r,i,s,o,a,u;return null===t?null:0===e.length?(r=new Date(0),r.setUTCFullYear(t),r):(n=M.exec(e))?(r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(t,i),r):(n=y.exec(e))?(r=new Date(0),o=parseInt(n[1],10),r.setUTCFullYear(t,0,o),r):(n=w.exec(e))?(r=new Date(0),i=parseInt(n[1],10)-1,a=parseInt(n[2],10),r.setUTCFullYear(t,i,a),r):(n=x.exec(e))?(s=parseInt(n[1],10)-1,l(t,s)):(n=S.exec(e),n?(s=parseInt(n[1],10)-1,u=parseInt(n[2],10)-1,l(t,s,u)):null)}function a(e){var t,n,r,i=C.exec(e);return i?(t=parseFloat(i[1].replace(",",".")))%24*c:(i=O.exec(e))?(t=parseInt(i[1],10),n=parseFloat(i[2].replace(",",".")),t%24*c+n*f):(i=T.exec(e),i?(t=parseInt(i[1],10),n=parseInt(i[2],10),r=parseFloat(i[3].replace(",",".")),t%24*c+n*f+1e3*r):null)}function u(e){var t,n=$.exec(e);return n?0:(n=k.exec(e))?(t=60*parseInt(n[2],10),"+"===n[1]?-t:t):(n=D.exec(e),n?(t=60*parseInt(n[2],10)+parseInt(n[3],10),"+"===n[1]?-t:t):0)}function l(e,t,n){var r,i,s;return t=t||0,n=n||0,r=new Date(0),r.setUTCFullYear(e,0,4),i=r.getUTCDay()||7,s=7*t+n+1-i,r.setUTCDate(r.getUTCDate()+s),r}var d=n(78),c=36e5,f=6e4,m=2,h=/[T ]/,p=/:/,v=/^(\d{2})$/,g=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],b=/^(\d{4})/,_=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],M=/^-(\d{2})$/,y=/^-?(\d{3})$/,w=/^-?(\d{2})-?(\d{2})$/,x=/^-?W(\d{2})$/,S=/^-?W(\d{2})-?(\d{1})$/,C=/^(\d{2}([.,]\d*)?)$/,O=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,T=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,P=/([Z+-].*)$/,$=/^(Z)$/,k=/^([+-])(\d{2})$/,D=/^([+-])(\d{2}):?(\d{2})$/;e.exports=r}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return Math.random().toString(36).slice(4)};t.default=r}),(function(e,t,n){(function(t){var r,i,s,o,a,u=n(15),l="undefined"==typeof window?t:window,d=["moz","webkit"],c="AnimationFrame",f=l["request"+c],m=l["cancel"+c]||l["cancelRequest"+c];for(r=0;!f&&r<d.length;r++)f=l[d[r]+"Request"+c],m=l[d[r]+"Cancel"+c]||l[d[r]+"CancelRequest"+c];f&&m||(i=0,s=0,o=[],a=1e3/60,f=function(e){if(0===o.length){var t=u(),n=Math.max(0,a-(t-i));i=n+t,setTimeout((function(){var e,t=o.slice(0);for(o.length=0,e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(i)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return o.push({handle:++s,callback:e,cancelled:!1}),s},m=function(e){for(var t=0;t<o.length;t++)o[t].handle===e&&(o[t].cancelled=!0)}),e.exports=function(e){return f.call(l,e)},e.exports.cancel=function(){m.apply(l,arguments)},e.exports.polyfill=function(e){e||(e=l),e.requestAnimationFrame=f,e.cancelAnimationFrame=m}}).call(t,n(13))}),(function(e,t){var n;n=(function(){return this})();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n}),(function(e,t,n){"use strict";function r(e){n(17)}var i,s,o,a,u,l,d,c,f,m,h,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(18),s=n.n(i),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-ripple",class:e.rippleClasses,on:{"&touchstart":function(t){t.stopPropagation(),e.touchStartCheck(t)},"&touchmove":function(t){t.stopPropagation(),e.touchMoveCheck(t)},"&mousedown":function(t){t.stopPropagation(),e.startRipple(t)}}},[e._t("default"),e._v(" "),e.isDisabled?e._e():n("transition",{attrs:{name:"md-ripple"},on:{"after-enter":e.clearWave}},[e.animating?n("span",{ref:"rippleWave",staticClass:"md-ripple-wave",class:e.waveClasses,style:e.waveStyles}):e._e()])],2)},a=[],u={render:o,staticRenderFns:a},l=u,d=n(0),c=!1,f=r,m=null,h=null,p=d(s.a,l,c,f,m,h),t.default=p.exports}),(function(e,t,n){(function(t){(function(){var n,r,i,s,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},s=n(),a=1e9*t.uptime(),o=s-a):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(t,n(16))}),(function(e,t){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function i(e){if(d===setTimeout)return setTimeout(e,0);if((d===n||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function s(e){if(c===clearTimeout)return clearTimeout(e);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function o(){m&&h&&(m=!1,h.length?f=h.concat(f):p=-1,f.length&&a())}function a(){var e,t;if(!m){for(e=i(o),m=!0,t=f.length;t;){for(h=f,f=[];++p<t;)h&&h[p].run();p=-1,t=f.length}h=null,m=!1,s(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var d,c,f,m,h,p,v=e.exports={};!(function(){try{d="function"==typeof setTimeout?setTimeout:n}catch(e){d=n}try{c="function"==typeof clearTimeout?clearTimeout:r}catch(e){c=r}})(),f=[],m=!1,p=-1,v.nextTick=function(e){var t,n=Array(arguments.length-1);if(arguments.length>1)for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];f.push(new u(e,n)),1!==f.length||m||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},v.title="browser",v.browser=!0,v.env={},v.argv=[],v.version="",v.versions={},v.on=l,v.addListener=l,v.once=l,v.off=l,v.removeListener=l,v.removeAllListeners=l,v.emit=l,v.prependListener=l,v.prependOnceListener=l,v.listeners=function(e){return[]},v.binding=function(e){throw Error("process.binding is not supported")},v.cwd=function(){return"/"},v.chdir=function(e){throw Error("process.chdir is not supported")},v.umask=function(){return 0}}),(function(e,t){}),(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,s){var o,a;try{o=t[i](s),a=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(a).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(a)}return r("next")})}}var s,o,a,u,l;Object.defineProperty(t,"__esModule",{value:!0}),s=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(12),a=r(o),u=n(1),l=r(u),t.default=new l.default({name:"MdRipple",props:{mdActive:null,mdDisabled:Boolean,mdCentered:Boolean},data:function(){return{eventType:null,waveStyles:null,animating:!1,touchTimeout:null}},computed:{isDisabled:function(){return!this.$material.ripple||this.mdDisabled},rippleClasses:function(){return{"md-disabled":this.isDisabled}},waveClasses:function(){return{"md-centered":this.mdCentered}}},watch:{mdActive:function(e){var t="boolean"==typeof e,n="mouseevent"===e.constructor.name.toLowerCase();t&&this.mdCentered&&e?(this.startRipple({type:"mousedown"}),this.$emit("update:mdActive",!1)):n&&(this.startRipple(e),this.$emit("update:mdActive",!1))}},methods:{touchMoveCheck:function(){window.clearTimeout(this.touchTimeout)},touchStartCheck:function(e){var t=this;this.touchTimeout=window.setTimeout((function(){t.startRipple(e)}),100)},startRipple:function(e){var t=this;(0,a.default)(i(regeneratorRuntime.mark((function n(){var r,i,s,o,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.eventType,i=t.isDisabled,s=t.mdCentered,i||r&&r!==e.type){n.next=10;break}return o=t.getSize(),a=null,a=s?t.getCenteredPosition(o):t.getHitPosition(e,o),n.next=7,t.clearWave();case 7:t.eventType=e.type,t.animating=!0,t.applyStyles(a,o);case 10:case"end":return n.stop()}}),n,t)}))))},applyStyles:function(e,t){t+="px",this.waveStyles=s({},e,{width:t,height:t})},clearWave:function(){return this.waveStyles=null,this.animating=!1,this.$nextTick()},getSize:function(){var e=this.$el,t=e.offsetWidth,n=e.offsetHeight;return Math.round(Math.max(t,n))},getCenteredPosition:function(e){var t=-e/2+"px";return{"margin-top":t,"margin-left":t}},getHitPosition:function(e,t){var n=this.$el.getBoundingClientRect(),r=e.pageY,i=e.pageX;return"touchstart"===e.type&&(r=e.changedTouches[0].pageY,i=e.changedTouches[0].pageX),{top:r-n.top-t/2-document.documentElement.scrollTop+"px",left:i-n.left-t/2-document.documentElement.scrollLeft+"px"}}}})}),(function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,s){var o,a;try{o=t[i](s),a=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(a).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(a)}return r("next")})}}var i,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),s=(function(e){return e&&e.__esModule?e:{default:e}})(i),t.default={name:"MdPortal",abstract:!0,props:{mdAttachToParent:Boolean,mdTarget:{type:null,validator:function(e){return!!(HTMLElement&&e&&e instanceof HTMLElement)||(s.default.util.warn("The md-target-el prop is invalid. You should pass a valid HTMLElement.",this),!1)}}},data:function(){return{leaveTimeout:null,originalParentEl:null}},computed:{transitionName:function(){var e,t,n=this._vnode.componentOptions.children[0];if(n){if(e=n.data.transition)return e.name;if(t=n.componentOptions.propsData.name)return t}return"v"},leaveClass:function(){return this.transitionName+"-leave"},leaveActiveClass:function(){return this.transitionName+"-leave-active"},leaveToClass:function(){return this.transitionName+"-leave-to"}},watch:{mdTarget:function(e,t){this.changeParentEl(e),t&&this.$forceUpdate()}},methods:{getTransitionDuration:function(e){var t=getComputedStyle(e).transitionDuration,n=parseFloat(t,10),r=t.match(/m?s/),i=null;switch(r&&(r=r[0]),r){case"s":i=1e3*n;break;case"ms":i=n;break;default:i=0}return i},killGhostElement:function(e){e.parentNode&&(this.changeParentEl(this.originalParentEl),this.$options._parentElm=this.originalParentEl,e.parentNode.removeChild(e))},initDestroy:(function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.$el,t&&"comment"===this.$el.constructor.name.toLowerCase()&&(n=this.$vnode.elm),n.classList.add(this.leaveClass),n.classList.add(this.leaveActiveClass),e.next=6,this.$nextTick();case 6:n.classList.add(this.leaveToClass),clearTimeout(this.leaveTimeout),this.leaveTimeout=setTimeout((function(){r.destroyElement(n)}),this.getTransitionDuration(n));case 9:case"end":return e.stop()}}),e,this)})));return e})(),destroyElement:function(e){var t=this;requestAnimationFrame((function(){e.classList.remove(t.leaveClass),e.classList.remove(t.leaveActiveClass),e.classList.remove(t.leaveToClass),t.$emit("md-destroy"),t.killGhostElement(e)}))},changeParentEl:function(e){e&&e.appendChild(this.$el)}},mounted:function(){this.originalParentEl||(this.originalParentEl=this.$el.parentNode,this.$emit("md-initial-parent",this.$el.parentNode)),this.mdAttachToParent&&this.$el.parentNode.parentNode?this.changeParentEl(this.$el.parentNode.parentNode):document&&this.changeParentEl(this.mdTarget||document.body)},beforeDestroy:function(){this.$el.classList?this.initDestroy():this.killGhostElement(this.$el)},render:function(e){var t=this.$slots.default;if(t&&t[0])return t[0]}}}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){return r({},t,e.$options.components["router-link"].options.props)}}),(function(e,t){}),(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=n(1),s=r(i),o=n(23),a=r(o),t.default=new s.default({name:"MdIcon",components:{MdSvgLoader:a.default},props:{mdSrc:String}})}),(function(e,t,n){"use strict";function r(e){n(24)}var i,s,o,a,u,l,d,c,f,m,h,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(25),s=n.n(i),o=function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{staticClass:"md-svg-loader",domProps:{innerHTML:e._s(e.html)}})},a=[],u={render:o,staticRenderFns:a},l=u,d=n(0),c=!1,f=r,m=null,h=null,p=d(s.a,l,c,f,m,h),t.default=p.exports}),(function(e,t){}),(function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,s){var o,a;try{o=t[i](s),a=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(a).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(a)}return r("next")})}}Object.defineProperty(t,"__esModule",{value:!0});var i={};t.default={name:"MdSVGLoader",props:{mdSrc:{type:String,required:!0}},data:function(){return{html:null,error:null}},watch:{mdSrc:function(){this.html=null,this.loadSVG()}},methods:{isSVG:function(e){return e.indexOf("svg")>=0},setHtml:(function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i[this.mdSrc];case 2:return this.html=e.sent,e.next=5,this.$nextTick();case 5:this.$emit("md-loaded");case 6:case"end":return e.stop()}}),e,this)})));return e})(),unexpectedError:function(e){this.error="Something bad happened trying to fetch "+this.mdSrc+".",e(this.error)},loadSVG:function(){var e=this;i.hasOwnProperty(this.mdSrc)?this.setHtml():i[this.mdSrc]=new Promise(function(t,n){var r=new window.XMLHttpRequest;r.open("GET",e.mdSrc,!0),r.onload=function(){var i=r.getResponseHeader("content-type");200===r.status?e.isSVG(i)?(t(r.response),e.setHtml()):(e.error="The file "+e.mdSrc+" is not a valid SVG.",n(e.error)):r.status>=400&&r.status<500?(e.error="The file "+e.mdSrc+" do not exists.",n(e.error)):e.unexpectedError(n)},r.onerror=function(){return e.unexpectedError(n)},r.onabort=function(){return e.unexpectedError(n)},r.send()})}},mounted:function(){this.loadSVG()}}}),(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=n(27),s=r(i),o=n(95),a=r(o),t.default={mixins:[s.default],components:{MdListItemContent:a.default},props:{disabled:Boolean},computed:{isDisabled:function(){return!this.mdRipple||this.disabled}}}}),(function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(14),i=(function(e){return e&&e.__esModule?e:{default:e}})(r),t.default={components:{MdRipple:i.default},props:{mdRipple:{type:Boolean,default:!0}}}}),(function(e,t,n){"use strict";function r(e){n(32)}var i,s,o,a,u,l,d,c,f;Object.defineProperty(t,"__esModule",{value:!0}),i=n(33),s=n.n(i),o=n(0),a=null,u=!1,l=r,d=null,c=null,f=o(s.a,a,u,l,d,c),t.default=f.exports}),(function(e,t,n){"use strict";function r(){try{var e=Object.defineProperty({},"passive",{get:function(){v={passive:!0}}});window.addEventListener("ghost",null,e)}catch(e){}}function i(e){var t=(e.keyCode,e.target);g.currentElement=t}function s(e){g.currentElement=null}function o(){p.addEventListener("keyup",i)}function a(){p.addEventListener("pointerup",s)}function u(){p.addEventListener("MSPointerUp",s)}function l(){p.addEventListener("mouseup",s),"ontouchend"in window&&p.addEventListener("touchend",s,v)}function d(){window.PointerEvent?a():window.MSPointerEvent?u():l(),o()}function c(){h||(p=document.body,r(),d(),h=!0)}var f,m,h,p,v,g;Object.defineProperty(t,"__esModule",{value:!0}),f=n(5),m=(function(e){return e&&e.__esModule?e:{default:e}})(f),h=!1,p=null,v=!1,g=new m.default({currentElement:null}),t.default={data:function(){return{mdHasFocus:!1}},computed:{focusedElement:function(){return g.currentElement}},watch:{focusedElement:function(e){this.mdHasFocus=e===this.$el}},mounted:function(){c()}}}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default={props:{value:{},placeholder:String,maxlength:[String,Number],readonly:Boolean,required:Boolean,disabled:Boolean,mdCounter:[String,Number]},data:function(){return{localValue:this.value,textareaHeight:!1}},computed:{model:{get:function(){return this.localValue},set:function(e){var t=this;"inputevent"!==e.constructor.name.toLowerCase()&&this.$nextTick((function(){t.localValue=e}))}},clear:function(){return this.MdField.clear},attributes:function(){return r({},this.$attrs,{type:this.type,id:this.id,name:this.name,disabled:this.disabled,required:this.required,placeholder:this.placeholder,readonly:this.readonly,maxlength:this.maxlength})}},watch:{model:function(){this.setFieldValue()},clear:function(e){e&&this.clearField()},placeholder:function(){this.setPlaceholder()},disabled:function(){this.setDisabled()},required:function(){this.setRequired()},maxlength:function(){this.setMaxlength()},mdCounter:function(){this.setMaxlength()},localValue:function(e){this.$emit("input",e)},value:function(e){this.localValue=e}},methods:{clearField:function(){this.$el.value="",this.model="",this.setFieldValue()},setLabelFor:function(){var e,t;this.$el.parentNode&&(e=this.$el.parentNode.querySelector("label"))&&(!(t=e.getAttribute("for"))||t.indexOf("md-")>=0)&&e.setAttribute("for",this.id)},setFieldValue:function(){this.MdField.value=this.model},setPlaceholder:function(){this.MdField.placeholder=!!this.placeholder},setDisabled:function(){this.MdField.disabled=!!this.disabled},setRequired:function(){this.MdField.required=!!this.required},setMaxlength:function(){this.mdCounter?this.MdField.counter=parseInt(this.mdCounter,10):this.MdField.maxlength=parseInt(this.maxlength,10)},onFocus:function(){this.MdField.focused=!0},onBlur:function(){this.MdField.focused=!1}},created:function(){this.setFieldValue(),this.setPlaceholder(),this.setDisabled(),this.setRequired(),this.setMaxlength()},mounted:function(){this.setLabelFor()}}}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{isAssetIcon:function(e){return/\w+[\/\\.]\w+/.test(e)}}}}),(function(e,t){}),(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,s,o,a,u,l,d,c,f,m,h;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),o=r(s),a=n(29),u=r(a),l=n(27),d=r(l),c=n(20),f=r(c),m=n(34),h=r(m),t.default=new o.default({name:"MdButton",components:{MdButtonContent:h.default},mixins:[d.default,u.default],props:{href:String,type:{type:String,default:"button"},disabled:Boolean,to:null},render:function(e){var t=e("md-button-content",{attrs:{mdRipple:this.mdRipple,disabled:this.disabled}},this.$slots.default),n={staticClass:"md-button",class:[this.$mdActiveTheme,{"md-ripple-off":!this.mdRipple,"md-focused":this.mdHasFocus}],attrs:i({},this.attrs,{href:this.href,disabled:this.disabled,type:!this.href&&(this.type||"button")}),on:this.$listeners},r="button";return this.href?r="a":this.$router&&this.to&&(this.$options.props=(0,f.default)(this,this.$options.props),r="router-link",n.props=this.$props,delete n.props.type,delete n.attrs.type,delete n.props.href,delete n.attrs.href),e(r,n,[t])}})}),(function(e,t,n){"use strict";function r(e){n(35)}var i,s,o,a,u,l,d,c,f,m,h,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(36),s=n.n(i),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-ripple",{attrs:{"md-disabled":!e.mdRipple||e.disabled}},[n("div",{staticClass:"md-button-content"},[e._t("default")],2)])},a=[],u={render:o,staticRenderFns:a},l=u,d=n(0),c=!1,f=r,m=null,h=null,p=d(s.a,l,c,f,m,h),t.default=p.exports}),(function(e,t){}),(function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(14),i=(function(e){return e&&e.__esModule?e:{default:e}})(r),t.default={name:"MdButtonContent",components:{MdRipple:i.default},props:{mdRipple:Boolean,disabled:Boolean}}}),(function(e,t,n){"use strict";var r,i,s,o,a,u,l,d,c,f,m,h;Object.defineProperty(t,"__esModule",{value:!0}),r=n(57),i=n.n(r),s=function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",domProps:{value:e.model},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"input",e.attributes,!1),e.listeners))},o=[],a={render:s,staticRenderFns:o},u=a,l=n(0),d=!1,c=null,f=null,m=null,h=l(i.a,u,d,c,f,m),t.default=h.exports}),(function(e,t,n){"use strict";function r(e){n(43)}var i,s,o,a,u,l,d,c,f;Object.defineProperty(t,"__esModule",{value:!0}),i=n(44),s=n.n(i),o=n(0),a=null,u=!1,l=r,d=null,c=null,f=o(s.a,a,u,l,d,c),t.default=f.exports}),(function(e,t,n){"use strict";function r(e){n(60)}var i,s,o,a,u,l,d,c,f,m,h,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(61),s=n.n(i),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-portal",{attrs:{"md-attach-to-parent":e.mdAttachToParent}},[n("transition",{attrs:{name:"md-overlay"}},[e.mdActive?n("div",e._g({staticClass:"md-overlay",class:e.overlayClasses},e.$listeners)):e._e()])],1)},a=[],u={render:o,staticRenderFns:a},l=u,d=n(0),c=!1,f=r,m=null,h=null,p=d(s.a,l,c,f,m,h),t.default=p.exports}),(function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=(function(e){return e&&e.__esModule?e:{default:e}})(r),t.default={name:"MdFocusTrap",abstract:!0,methods:{setFocus:function(){var e=this;window.setTimeout((function(){e.$el.tagName&&(e.$el.setAttribute("tabindex","-1"),e.$el.focus())}),20)}},mounted:function(){this.setFocus()},render:function(){try{var e=this.$slots.default;if(!e)return null;if(e.length>1)throw Error();return e[0]}catch(e){i.default.util.warn("MdFocusTrap can only render one, and exactly one child component.",this)}return null}}}),(function(e,t,n){"use strict";function r(e){n(50)}var i,s,o,a,u,l,d,c,f,m,h,p;Object.defineProperty(t,"__esModule",{value:!0}),i=n(51),s=n.n(i),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-field",class:[e.$mdActiveTheme,e.fieldClasses],on:{blur:e.onBlur}},[e._t("default"),e._v(" "),e.hasCounter?n("span",{staticClass:"md-count"},[e._v(e._s(e.valueLength)+" / "+e._s(e.MdField.maxlength||e.MdField.counter))]):e._e(),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasValue&&e.mdClearable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1"},on:{click:e.clearInput}},[n("md-clear-icon")],1):e._e()],1),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasPasswordToggle?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-toggle-password",attrs:{tabindex:"-1"},on:{click:e.togglePassword}},[n(e.MdField.togglePassword?"md-password-off-icon":"md-password-on-icon")],1):e._e()],1)],2)},a=[],u={render:o,staticRenderFns:a},l=u,d=n(0),c=!1,f=r,m=null,h=null,p=d(s.a,l,c,f,m,h),t.default=p.exports}),(function(e,t,n){"use strict";var r,i,s,o,a,u,l,d,c,f,m,h;Object.defineProperty(t,"__esModule",{value:!0}),r=n(52),i=n.n(r),s=function(){var e=this,t=e.$createElement;e._self._c;return e._m(1)},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])},function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-icon",{staticClass:"md-icon-image"},[e._m(0)])}],a={render:s,staticRenderFns:o},u=a,l=n(0),d=!1,c=null,f=null,m=null,h=l(i.a,u,d,c,f,m),t.default=h.exports}),(function(e,t){}),(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,s){var o,a;try{o=t[i](s),a=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(a).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(a)}return r("next")})}}var s,o,a,u,l,d,c;Object.defineProperty(t,"__esModule",{value:!0}),s=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(45),a=r(o),u=n(6),l=r(u),d=n(19),c=r(d),t.default={name:"MdPopover",abstract:!0,components:{MdPortal:c.default},props:{mdActive:Boolean,mdSettings:{type:Object,default:function(){return{}}}},data:function(){return{popperInstance:null,originalParentEl:null,shouldRender:!1,shouldActivate:!1}},computed:{popoverClasses:function(){return this.shouldActivate?"md-active":this.shouldRender?"md-rendering":void 0}},watch:{mdActive:{immediate:!0,handler:function(e){this.shouldRender=e,e?this.bindPopper():this.shouldActivate=!1}},mdSettings:function(){this.popperInstance&&this.createPopper()}},methods:{getPopperOptions:function(){var e=this;return{placement:"bottom",modifiers:{preventOverflow:{boundariesElement:"viewport",padding:16},computeStyle:{gpuAcceleration:!1}},onCreate:function(){e.shouldActivate=!0,e.$emit("md-active")}}},setOriginalParent:function(e){this.originalParentEl||(this.originalParentEl=e)},killPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},bindPopper:(function(){function e(){return t.apply(this,arguments)}var t=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$nextTick();case 2:this.originalParentEl&&this.createPopper();case 3:case"end":return e.stop()}}),e,this)})));return e})(),createPopper:(function(){function e(){return t.apply(this,arguments)}var t=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.mdSettings&&(t=(0,l.default)(this.getPopperOptions(),this.mdSettings),"comment"!==this.$el.constructor.name.toLowerCase()&&(this.popperInstance=new a.default(this.originalParentEl,this.$el,t)));case 1:case"end":return e.stop()}}),e,this)})));return e})(),resetPopper:function(){this.popperInstance&&(this.killPopper(),this.createPopper())}},beforeDestroy:function(){this.killPopper()},mounted:function(){this.resetPopper()},render:function(e){return e(c.default,{props:s({},this.$attrs),on:s({},this.$listeners,{"md-initial-parent":this.setOriginalParent,"md-destroy":this.killPopper})},this.$slots.default)}}}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){var t=!1;return function(){t||(t=!0,Promise.resolve().then((function(){t=!1,e()})))}}function r(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Se))}}function i(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function o(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function a(e){if(!e)return window.document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,r=t.overflowX;return/(auto|scroll)/.test(n+t.overflowY+r)?e:a(o(e))}function u(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===s(t,"position")?u(t):t:e?e.ownerDocument.documentElement:window.document.documentElement}function l(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||u(e.firstElementChild)===e)}function d(e){return null!==e.parentNode?d(e.parentNode):e}function c(e,t){var n,r,i,s,o,a;return e&&e.nodeType&&t&&t.nodeType?(n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,s=document.createRange(),s.setStart(r,0),s.setEnd(i,0),o=s.commonAncestorContainer,e!==o&&t!==o||r.contains(i)?l(o)?o:u(o):(a=d(e),a.host?c(a.host,t):c(e,d(t).host))):window.document.documentElement}function f(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===r?"scrollTop":"scrollLeft",s=e.nodeName;return"BODY"===s||"HTML"===s?(t=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||t,n[i]):e[i]}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(t,"top"),i=f(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}function h(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+r+"Width"].split("px")[0]}function p(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ce()?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=window.document.body,t=window.document.documentElement,n=ce()&&window.getComputedStyle(t);return{height:p("Height",e,t,n),width:p("Width",e,t,n)}}function g(e){return pe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t,n,r,i,o,a,u,l,d,c={};if(ce())try{c=e.getBoundingClientRect(),t=f(e,"top"),n=f(e,"left"),c.top+=t,c.left+=n,c.bottom+=t,c.right+=n}catch(e){}else c=e.getBoundingClientRect();return r={left:c.left,top:c.top,width:c.right-c.left,height:c.bottom-c.top},i="HTML"===e.nodeName?v():{},o=i.width||e.clientWidth||r.right-r.left,a=i.height||e.clientHeight||r.bottom-r.top,u=e.offsetWidth-o,l=e.offsetHeight-a,(u||l)&&(d=s(e),u-=h(d,"x"),l-=h(d,"y"),r.width-=u,r.height-=l),g(r)}function _(e,t){var n,r,i=ce(),o="HTML"===t.nodeName,u=b(e),l=b(t),d=a(e),c=s(t),f=+c.borderTopWidth.split("px")[0],h=+c.borderLeftWidth.split("px")[0],p=g({top:u.top-l.top-f,left:u.left-l.left-h,width:u.width,height:u.height});return p.marginTop=0,p.marginLeft=0,!i&&o&&(n=+c.marginTop.split("px")[0],r=+c.marginLeft.split("px")[0],p.top-=f-n,p.bottom-=f-n,p.left-=h-r,p.right-=h-r,p.marginTop=n,p.marginLeft=r),(i?t.contains(d):t===d&&"BODY"!==d.nodeName)&&(p=m(p,t)),p}function M(e){var t=e.ownerDocument.documentElement,n=_(e,t),r=Math.max(t.clientWidth,window.innerWidth||0),i=Math.max(t.clientHeight,window.innerHeight||0),s=f(t),o=f(t,"left");return g({top:s-n.top+n.marginTop,left:o-n.left+n.marginLeft,width:r,height:i})}function y(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===s(e,"position")||y(o(e)))}function w(e,t,n,r){var i,s,u,l,d,f={top:0,left:0},m=c(e,t);return"viewport"===r?f=M(m):(i=void 0,"scrollParent"===r?(i=a(o(e)),"BODY"===i.nodeName&&(i=e.ownerDocument.documentElement)):i="window"===r?e.ownerDocument.documentElement:r,s=_(i,m),"HTML"!==i.nodeName||y(m)?f=s:(u=v(),l=u.height,d=u.width,f.top+=s.top-s.marginTop,f.bottom=l+s.top,f.left+=s.left-s.marginLeft,f.right=d+s.left)),f.left+=n,f.top+=n,f.right-=n,f.bottom-=n,f}function x(e){return e.width*e.height}function S(e,t,n,r,i){var s,o,a,u,l,d,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return-1===e.indexOf("auto")?e:(s=w(n,r,c,i),o={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},a=Object.keys(o).map((function(e){return pe({key:e},o[e],{area:x(o[e])})})).sort((function(e,t){return t.area-e.area})),u=a.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=u.length>0?u[0].key:a[0].key,d=e.split("-")[1],l+(d?"-"+d:""))}function C(e,t,n){return _(n,c(t,n))}function O(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function T(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function P(e,t,n){var r,i,s,o,a,u,l;return n=n.split("-")[0],r=O(e),i={width:r.width,height:r.height},s=-1!==["right","left"].indexOf(n),o=s?"top":"left",a=s?"left":"top",u=s?"height":"width",l=s?"width":"height",i[o]=t[o]+t[u]/2-r[u]/2,i[a]=n===a?t[a]-r[l]:t[T(a)],i}function $(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function k(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=$(e,(function(e){return e[t]===n}));return e.indexOf(r)}function D(e,t,n){return(void 0===n?e:e.slice(0,k(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=g(t.offsets.popper),t.offsets.reference=g(t.offsets.reference),t=n(t,e))})),t}function A(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=C(this.state,this.popper,this.reference),e.placement=S(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=D(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function j(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function E(e){var t,n,r,i=[!1,"ms","Webkit","Moz","O"],s=e.charAt(0).toUpperCase()+e.slice(1);for(t=0;t<i.length-1;t++)if(n=i[t],r=n?""+n+s:e,void 0!==window.document.body.style[r])return r;return null}function I(){return this.state.isDestroyed=!0,j(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[E("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function R(e){var t=e.ownerDocument;return t?t.defaultView:window}function F(e,t,n,r){var i="BODY"===e.nodeName,s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||F(a(s.parentNode),t,n,r),r.push(s)}function B(e,t,n,r){n.updateBound=r,R(e).addEventListener("resize",n.updateBound,{passive:!0});var i=a(e);return F(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function L(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function H(e,t){return R(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function V(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=H(this.reference,this.state))}function N(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function z(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&N(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function Y(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}function W(e){return z(e.instance.popper,e.styles),Y(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&z(e.arrowElement,e.arrowStyles),e}function q(e,t,n,r,i){var s=C(i,t,e),o=S(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),z(t,{position:"absolute"}),n}function U(e,t){var n,r,i,s,o,a,l,d,c,f,m,h,p,v=t.x,g=t.y,_=e.offsets.popper,M=$(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;return void 0!==M&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),n=void 0!==M?M:t.gpuAcceleration,r=u(e.instance.popper),i=b(r),s={position:_.position},o={left:Math.floor(_.left),top:Math.floor(_.top),bottom:Math.floor(_.bottom),right:Math.floor(_.right)},a="bottom"===v?"top":"bottom",l="right"===g?"left":"right",d=E("transform"),c=void 0,f=void 0,f="bottom"===a?-i.height+o.bottom:o.top,c="right"===l?-i.width+o.right:o.left,n&&d?(s[d]="translate3d("+c+"px, "+f+"px, 0)",s[a]=0,s[l]=0,s.willChange="transform"):(m="bottom"===a?-1:1,h="right"===l?-1:1,s[a]=f*m,s[l]=c*h,s.willChange=a+", "+l),p={"x-placement":e.placement},e.attributes=pe({},p,e.attributes),e.styles=pe({},s,e.styles),e.arrowStyles=pe({},e.offsets.arrow,e.arrowStyles),e}function X(e,t,n){var r,i,s=$(e,(function(e){return e.name===t})),o=!!s&&e.some((function(e){return e.name===n&&e.enabled&&e.order<s.order}));return o||(r="`"+t+"`",i="`"+n+"`",console.warn(i+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),o}function G(e,t){var n,r,i,o,a,u,l,d,c,f,m,h,p,v,b;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;if("string"==typeof(n=t.element)){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;return r=e.placement.split("-")[0],i=e.offsets,o=i.popper,a=i.reference,u=-1!==["left","right"].indexOf(r),l=u?"height":"width",d=u?"Top":"Left",c=d.toLowerCase(),f=u?"left":"top",m=u?"bottom":"right",h=O(n)[l],a[m]-h<o[c]&&(e.offsets.popper[c]-=o[c]-(a[m]-h)),a[c]+h>o[m]&&(e.offsets.popper[c]+=a[c]+h-o[m]),p=a[c]+a[l]/2-h/2,v=s(e.instance.popper,"margin"+d).replace("px",""),b=p-g(e.offsets.popper)[c]-v,b=Math.max(Math.min(o[l]-h,b),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[c]=Math.round(b),e.offsets.arrow[f]="",e}function J(e){return"end"===e?"start":"start"===e?"end":e}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ge.indexOf(e),r=ge.slice(n+1).concat(ge.slice(0,n));return t?r.reverse():r}function Z(e,t){var n,r,i,s,o;if(j(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;switch(n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),r=e.placement.split("-")[0],i=T(r),s=e.placement.split("-")[1]||"",o=[],t.behavior){case be.FLIP:o=[r,i];break;case be.CLOCKWISE:o=K(r);break;case be.COUNTERCLOCKWISE:o=K(r,!0);break;default:o=t.behavior}return o.forEach((function(a,u){var l,d,c,f,m,h,p,v,g,b,_;if(r!==a||o.length===u+1)return e;r=e.placement.split("-")[0],i=T(r),l=e.offsets.popper,d=e.offsets.reference,c=Math.floor,f="left"===r&&c(l.right)>c(d.left)||"right"===r&&c(l.left)<c(d.right)||"top"===r&&c(l.bottom)>c(d.top)||"bottom"===r&&c(l.top)<c(d.bottom),m=c(l.left)<c(n.left),h=c(l.right)>c(n.right),p=c(l.top)<c(n.top),v=c(l.bottom)>c(n.bottom),g="left"===r&&m||"right"===r&&h||"top"===r&&p||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),_=!!t.flipVariations&&(b&&"start"===s&&m||b&&"end"===s&&h||!b&&"start"===s&&p||!b&&"end"===s&&v),(f||g||_)&&(e.flipped=!0,(f||g)&&(r=o[u+1]),_&&(s=J(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=pe({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=D(e.instance.modifiers,e,"flip"))})),e}function Q(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",u=o?"left":"top",l=o?"width":"height";return n[a]<s(r[u])&&(e.offsets.popper[u]=s(r[u])-n[l]),n[u]>s(r[a])&&(e.offsets.popper[u]=s(r[a])),e}function ee(e,t,n,r){var i,s,o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],u=o[2];if(!a)return e;if(0===u.indexOf("%")){switch(i=void 0,u){case"%p":i=n;break;case"%":case"%r":default:i=r}return s=g(i),s[t]/100*a}return"vh"===u||"vw"===u?(void 0,("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a):a}function te(e,t,n,r){var i,s,o=[0,0],a=-1!==["right","left"].indexOf(r),u=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=u.indexOf($(u,(function(e){return-1!==e.search(/,|\s/)})));return u[l]&&-1===u[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),i=/\s*,\s*|\s+/,s=-1!==l?[u.slice(0,l).concat([u[l].split(i)[0]]),[u[l].split(i)[1]].concat(u.slice(l+1))]:[u],s=s.map((function(e,r){var i=(1===r?!a:a)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return ee(e,i,t,n)}))})),s.forEach((function(e,t){e.forEach((function(n,r){N(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}function ne(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,o=i.reference,a=r.split("-")[0],u=void 0;return u=N(+n)?[+n,0]:te(n,s,o,a),"left"===a?(s.top+=u[0],s.left-=u[1]):"right"===a?(s.top+=u[0],s.left+=u[1]):"top"===a?(s.left+=u[0],s.top-=u[1]):"bottom"===a&&(s.left+=u[0],s.top+=u[1]),e.popper=s,e}function re(e,t){var n,r,i,s,o=t.boundariesElement||u(e.instance.popper);return e.instance.reference===o&&(o=u(o)),n=w(e.instance.popper,e.instance.reference,t.padding,o),t.boundaries=n,r=t.priority,i=e.offsets.popper,s={primary:function(e){var r=i[e];return i[e]<n[e]&&!t.escapeWithReference&&(r=Math.max(i[e],n[e])),he({},e,r)},secondary:function(e){var r="right"===e?"left":"top",s=i[r];return i[e]>n[e]&&!t.escapeWithReference&&(s=Math.min(i[r],n[e]-("right"===e?i.width:i.height))),he({},r,s)}},r.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";i=pe({},i,s[t](e))})),e.offsets.popper=i,e}function ie(e){var t,n,r,i,s,o,a,u=e.placement,l=u.split("-")[0],d=u.split("-")[1];return d&&(t