diff --git a/public/scripts/applications/admin/app.bundle.js b/public/scripts/applications/admin/app.bundle.js index 214751f..d1bda8b 100644 --- a/public/scripts/applications/admin/app.bundle.js +++ b/public/scripts/applications/admin/app.bundle.js @@ -1,4 +1,4 @@ -!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!w[e]||!b[e])return;for(var n in b[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===g&&k()}(e,n),t&&t(e,n)};var n,r=!0,i="d94d58cb0a5d5f6c03d0",o={},a=[],s=[];function c(e){var t=j[e];if(!t)return T;var r=function(r){return t.hot.active?(j[r]?-1===j[r].parents.indexOf(e)&&j[r].parents.push(e):(a=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),a=[]),T(r)},i=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var o in T)Object.prototype.hasOwnProperty.call(T,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(r,o,i(o));return r.e=function(e){return"ready"===p&&f("prepare"),g++,T.e(e).then(t,(function(e){throw t(),e}));function t(){g--,"prepare"===p&&(_[e]||$(e),0===g&&0===y&&k())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}function u(t){var r={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)r._selfAccepted=!0;else if("function"==typeof e)r._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&r._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,p){case"idle":(v={})[t]=e[t],f("ready");break;case"ready":A(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:C,apply:O,status:function(e){if(!e)return p;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:o[t]};return n=void 0,r}var l=[],p="idle";function f(e){p=e;for(var t=0;t0;){var i=r.pop(),o=i.id,a=i.chain;if((l=j[o])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s ")),k.type){case"self-declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of self decline: "+k.moduleId+R));break;case"declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+k.moduleId+" in "+k.parentId+R));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(k),r.ignoreUnaccepted||(O=new Error("Aborted because "+p+" is not accepted"+R));break;case"accepted":r.onAccepted&&r.onAccepted(k),A=!0;break;case"disposed":r.onDisposed&&r.onDisposed(k),E=!0;break;default:throw new Error("Unexception type "+k.type)}if(O)return f("abort"),Promise.reject(O);if(A)for(p in b[p]=v[p],y(_,k.outdatedModules),k.outdatedDependencies)Object.prototype.hasOwnProperty.call(k.outdatedDependencies,p)&&(g[p]||(g[p]=[]),y(g[p],k.outdatedDependencies[p]));E&&(y(_,[k.moduleId]),b[p]=C)}var M,L=[];for(c=0;c<_.length;c++)p=_[c],j[p]&&j[p].hot._selfAccepted&&b[p]!==C&&!j[p].hot._selfInvalidated&&L.push({module:p,parents:j[p].parents.slice(),errorHandler:j[p].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(e){!1===w[e]&&function(e){delete installedChunks[e]}(e)}));var P,N,I=_.slice();for(;I.length>0;)if(p=I.pop(),l=j[p]){var F={},D=l.hot._disposeHandlers;for(u=0;u=0&&H.parents.splice(M,1))}}for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p]))for(N=g[p],u=0;u=0&&l.children.splice(M,1);f("apply"),void 0!==h&&(i=h,h=void 0);for(p in v=void 0,b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p]);var U=null;for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p])){N=g[p];var B=[];for(c=0;c1)for(var n=1;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){v(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){v(e.data)},r=function(e){o.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(v,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&v(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-hot-reload-api/dist/index.js":function(e,t){var n,r,i=Object.create(null);"undefined"!=typeof window&&(window.__VUE_HOT_MAP__=i);var o=!1,a="beforeCreate";function s(e,t){if(t.functional){var n=t.render;t.render=function(t,r){var o=i[e].instances;return r&&o.indexOf(r.parent)<0&&o.push(r.parent),n(t,r)}}else c(t,a,(function(){var t=i[e];t.Ctor||(t.Ctor=this.constructor),t.instances.push(this)})),c(t,"beforeDestroy",(function(){var t=i[e].instances;t.splice(t.indexOf(this),1)}))}function c(e,t,n){var r=e[t];e[t]=r?Array.isArray(r)?r.concat(n):[r,n]:[n]}function u(e){return function(t,n){try{e(t,n)}catch(e){console.error(e),console.warn("Something went wrong during Vue component hot-reload. Full reload required.")}}}function l(e,t){for(var n in e)n in t||delete e[n];for(var r in t)e[r]=t[r]}t.install=function(e,i){o||(o=!0,n=e.__esModule?e.default:e,r=n.version.split(".").map(Number),i,n.config._lifecycleHooks.indexOf("init")>-1&&(a="init"),t.compatible=r[0]>=2,t.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},t.createRecord=function(e,t){if(!i[e]){var n=null;"function"==typeof t&&(t=(n=t).options),s(e,t),i[e]={Ctor:n,options:t,instances:[]}}},t.isRecorded=function(e){return void 0!==i[e]},t.rerender=u((function(e,t){var n=i[e];if(t){if("function"==typeof t&&(t=t.options),n.Ctor)n.Ctor.options.render=t.render,n.Ctor.options.staticRenderFns=t.staticRenderFns,n.instances.slice().forEach((function(e){e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(n.Ctor.options.cached)&&(n.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var r=function(e){if(!e._u)return;var t=e._u;return e._u=function(e){try{return t(e,!0)}catch(n){return t(e,null,!0)}},function(){e._u=t}}(e);e.$forceUpdate(),e.$nextTick(r)}));else if(n.options.render=t.render,n.options.staticRenderFns=t.staticRenderFns,n.options.functional){if(Object.keys(t).length>2)l(n.options,t);else{var r=n.options._injectStyles;if(r){var o=t.render;n.options.render=function(e,t){return r.call(t),o(e,t)}}}n.options._Ctor=null,Array.isArray(n.options.cached)&&(n.options.cached=[]),n.instances.slice().forEach((function(e){e.$forceUpdate()}))}}else n.instances.slice().forEach((function(e){e.$forceUpdate()}))})),t.reload=u((function(e,t){var n=i[e];if(t)if("function"==typeof t&&(t=t.options),s(e,t),n.Ctor){r[1]<2&&(n.Ctor.extendOptions=t);var o=n.Ctor.super.extend(t);o.options._Ctor=n.options._Ctor,n.Ctor.options=o.options,n.Ctor.cid=o.cid,n.Ctor.prototype=o.prototype,o.release&&o.release()}else l(n.options,t);n.instances.slice().forEach((function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")}))}))},"./node_modules/vue-loader/lib/runtime/componentNormalizer.js":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"./node_modules/vue-router/dist/vue-router.esm.js":function(e,t,n){"use strict"; +!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!w[e]||!b[e])return;for(var n in b[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===g&&k()}(e,n),t&&t(e,n)};var n,r=!0,i="7dc24c939137cfe31270",o={},a=[],s=[];function c(e){var t=j[e];if(!t)return T;var r=function(r){return t.hot.active?(j[r]?-1===j[r].parents.indexOf(e)&&j[r].parents.push(e):(a=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),a=[]),T(r)},i=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var o in T)Object.prototype.hasOwnProperty.call(T,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(r,o,i(o));return r.e=function(e){return"ready"===p&&f("prepare"),g++,T.e(e).then(t,(function(e){throw t(),e}));function t(){g--,"prepare"===p&&(_[e]||$(e),0===g&&0===y&&k())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}function u(t){var r={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)r._selfAccepted=!0;else if("function"==typeof e)r._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&r._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,p){case"idle":(v={})[t]=e[t],f("ready");break;case"ready":A(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:C,apply:O,status:function(e){if(!e)return p;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:o[t]};return n=void 0,r}var l=[],p="idle";function f(e){p=e;for(var t=0;t0;){var i=r.pop(),o=i.id,a=i.chain;if((l=j[o])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s ")),k.type){case"self-declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of self decline: "+k.moduleId+R));break;case"declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+k.moduleId+" in "+k.parentId+R));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(k),r.ignoreUnaccepted||(O=new Error("Aborted because "+p+" is not accepted"+R));break;case"accepted":r.onAccepted&&r.onAccepted(k),A=!0;break;case"disposed":r.onDisposed&&r.onDisposed(k),E=!0;break;default:throw new Error("Unexception type "+k.type)}if(O)return f("abort"),Promise.reject(O);if(A)for(p in b[p]=v[p],y(_,k.outdatedModules),k.outdatedDependencies)Object.prototype.hasOwnProperty.call(k.outdatedDependencies,p)&&(g[p]||(g[p]=[]),y(g[p],k.outdatedDependencies[p]));E&&(y(_,[k.moduleId]),b[p]=C)}var M,L=[];for(c=0;c<_.length;c++)p=_[c],j[p]&&j[p].hot._selfAccepted&&b[p]!==C&&!j[p].hot._selfInvalidated&&L.push({module:p,parents:j[p].parents.slice(),errorHandler:j[p].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(e){!1===w[e]&&function(e){delete installedChunks[e]}(e)}));var P,N,I=_.slice();for(;I.length>0;)if(p=I.pop(),l=j[p]){var F={},D=l.hot._disposeHandlers;for(u=0;u=0&&H.parents.splice(M,1))}}for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p]))for(N=g[p],u=0;u=0&&l.children.splice(M,1);f("apply"),void 0!==h&&(i=h,h=void 0);for(p in v=void 0,b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p]);var U=null;for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p])){N=g[p];var B=[];for(c=0;c1)for(var n=1;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){v(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){v(e.data)},r=function(e){o.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(v,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&v(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-hot-reload-api/dist/index.js":function(e,t){var n,r,i=Object.create(null);"undefined"!=typeof window&&(window.__VUE_HOT_MAP__=i);var o=!1,a="beforeCreate";function s(e,t){if(t.functional){var n=t.render;t.render=function(t,r){var o=i[e].instances;return r&&o.indexOf(r.parent)<0&&o.push(r.parent),n(t,r)}}else c(t,a,(function(){var t=i[e];t.Ctor||(t.Ctor=this.constructor),t.instances.push(this)})),c(t,"beforeDestroy",(function(){var t=i[e].instances;t.splice(t.indexOf(this),1)}))}function c(e,t,n){var r=e[t];e[t]=r?Array.isArray(r)?r.concat(n):[r,n]:[n]}function u(e){return function(t,n){try{e(t,n)}catch(e){console.error(e),console.warn("Something went wrong during Vue component hot-reload. Full reload required.")}}}function l(e,t){for(var n in e)n in t||delete e[n];for(var r in t)e[r]=t[r]}t.install=function(e,i){o||(o=!0,n=e.__esModule?e.default:e,r=n.version.split(".").map(Number),i,n.config._lifecycleHooks.indexOf("init")>-1&&(a="init"),t.compatible=r[0]>=2,t.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},t.createRecord=function(e,t){if(!i[e]){var n=null;"function"==typeof t&&(t=(n=t).options),s(e,t),i[e]={Ctor:n,options:t,instances:[]}}},t.isRecorded=function(e){return void 0!==i[e]},t.rerender=u((function(e,t){var n=i[e];if(t){if("function"==typeof t&&(t=t.options),n.Ctor)n.Ctor.options.render=t.render,n.Ctor.options.staticRenderFns=t.staticRenderFns,n.instances.slice().forEach((function(e){e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(n.Ctor.options.cached)&&(n.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var r=function(e){if(!e._u)return;var t=e._u;return e._u=function(e){try{return t(e,!0)}catch(n){return t(e,null,!0)}},function(){e._u=t}}(e);e.$forceUpdate(),e.$nextTick(r)}));else if(n.options.render=t.render,n.options.staticRenderFns=t.staticRenderFns,n.options.functional){if(Object.keys(t).length>2)l(n.options,t);else{var r=n.options._injectStyles;if(r){var o=t.render;n.options.render=function(e,t){return r.call(t),o(e,t)}}}n.options._Ctor=null,Array.isArray(n.options.cached)&&(n.options.cached=[]),n.instances.slice().forEach((function(e){e.$forceUpdate()}))}}else n.instances.slice().forEach((function(e){e.$forceUpdate()}))})),t.reload=u((function(e,t){var n=i[e];if(t)if("function"==typeof t&&(t=t.options),s(e,t),n.Ctor){r[1]<2&&(n.Ctor.extendOptions=t);var o=n.Ctor.super.extend(t);o.options._Ctor=n.options._Ctor,n.Ctor.options=o.options,n.Ctor.cid=o.cid,n.Ctor.prototype=o.prototype,o.release&&o.release()}else l(n.options,t);n.instances.slice().forEach((function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")}))}))},"./node_modules/vue-loader/lib/runtime/componentNormalizer.js":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"./node_modules/vue-router/dist/vue-router.esm.js":function(e,t,n){"use strict"; /*! * vue-router v3.1.6 * (c) 2020 Evan You diff --git a/public/scripts/applications/home/app.bundle.js b/public/scripts/applications/home/app.bundle.js index 279416c..018dbf0 100644 --- a/public/scripts/applications/home/app.bundle.js +++ b/public/scripts/applications/home/app.bundle.js @@ -1,4 +1,4 @@ -!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!L[e]||!M[e])return;for(var n in M[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(h[n]=t[n]);0==--v&&0===g&&Y()}(e,n),t&&t(e,n)};var n,a=!0,s="d94d58cb0a5d5f6c03d0",r={},i=[],o=[];function d(e){var t=S[e];if(!t)return x;var a=function(a){return t.hot.active?(S[a]?-1===S[a].parents.indexOf(e)&&S[a].parents.push(e):(i=[e],n=a),-1===t.children.indexOf(a)&&t.children.push(a)):(console.warn("[HMR] unexpected require("+a+") from disposed module "+e),i=[]),x(a)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return x[e]},set:function(t){x[e]=t}}};for(var r in x)Object.prototype.hasOwnProperty.call(x,r)&&"e"!==r&&"t"!==r&&Object.defineProperty(a,r,s(r));return a.e=function(e){return"ready"===c&&m("prepare"),g++,x.e(e).then(t,(function(e){throw t(),e}));function t(){g--,"prepare"===c&&(y[e]||w(e),0===g&&0===v&&Y())}},a.t=function(e,t){return 1&t&&(e=a(e)),x.t(e,-2&t)},a}function l(t){var a={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)a._selfAccepted=!0;else if("function"==typeof e)a._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&a._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,c){case"idle":(h={})[t]=e[t],m("ready");break;case"ready":j(t);break;case"prepare":case"check":case"dispose":case"apply":(f=f||[]).push(t)}},check:k,apply:D,status:function(e){if(!e)return c;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var t=u.indexOf(e);t>=0&&u.splice(t,1)},data:r[t]};return n=void 0,a}var u=[],c="idle";function m(e){c=e;for(var t=0;t0;){var s=a.pop(),r=s.id,i=s.chain;if((u=S[r])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:r};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:r};for(var o=0;o ")),Y.type){case"self-declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of self decline: "+Y.moduleId+H));break;case"declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of declined dependency: "+Y.moduleId+" in "+Y.parentId+H));break;case"unaccepted":a.onUnaccepted&&a.onUnaccepted(Y),a.ignoreUnaccepted||(D=new Error("Aborted because "+c+" is not accepted"+H));break;case"accepted":a.onAccepted&&a.onAccepted(Y),j=!0;break;case"disposed":a.onDisposed&&a.onDisposed(Y),C=!0;break;default:throw new Error("Unexception type "+Y.type)}if(D)return m("abort"),Promise.reject(D);if(j)for(c in M[c]=h[c],v(y,Y.outdatedModules),Y.outdatedDependencies)Object.prototype.hasOwnProperty.call(Y.outdatedDependencies,c)&&(g[c]||(g[c]=[]),v(g[c],Y.outdatedDependencies[c]));C&&(v(y,[Y.moduleId]),M[c]=k)}var P,O=[];for(d=0;d0;)if(c=R.pop(),u=S[c]){var F={},I=u.hot._disposeHandlers;for(l=0;l=0&&N.parents.splice(P,1))}}for(c in g)if(Object.prototype.hasOwnProperty.call(g,c)&&(u=S[c]))for(E=g[c],l=0;l=0&&u.children.splice(P,1);m("apply"),void 0!==p&&(s=p,p=void 0);for(c in h=void 0,M)Object.prototype.hasOwnProperty.call(M,c)&&(e[c]=M[c]);var W=null;for(c in g)if(Object.prototype.hasOwnProperty.call(g,c)&&(u=S[c])){E=g[c];var $=[];for(d=0;d0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return n*w;case"minutes":case"minute":case"mins":case"min":case"m":return n*k;case"seconds":case"second":case"secs":case"sec":case"s":return n*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===a&&!1===isNaN(t))return n.long?function(e){return T(e,Y,"day")||T(e,w,"hour")||T(e,k,"minute")||T(e,b,"second")||e+" ms"}(t):function(e){return e>=Y?Math.round(e/Y)+"d":e>=w?Math.round(e/w)+"h":e>=k?Math.round(e/k)+"m":e>=b?Math.round(e/b)+"s":e+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function T(e,t,n){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(s())}))),x=(S.log,S.formatArgs,S.save,S.load,S.useColors,S.storage,S.colors,M((function(e){var t=S;t.enable("adonis:*"),e.exports=t("adonis:websocket")}))),C=function(){function e(t,n){s(this,e),this.topic=t,this.connection=n,this.emitter=new v,this._state="pending",this._emitBuffer=[]}return r(e,[{key:"joinAck",value:function(){var e=this;this.state="open",this.emitter.emit("ready",this),x("clearing emit buffer for %s topic after subscription ack",this.topic),this._emitBuffer.forEach((function(t){return e.emit(t.event,t.data)})),this._emitBuffer=[]}},{key:"joinError",value:function(e){this.state="error",this.emitter.emit("error",e),this.serverClose()}},{key:"leaveAck",value:function(){this.state="closed",this.serverClose()}},{key:"leaveError",value:function(e){this.emitter.emit("leaveError",e)}},{key:"on",value:function(){var e;(e=this.emitter).on.apply(e,arguments)}},{key:"once",value:function(){var e;(e=this.emitter).once.apply(e,arguments)}},{key:"off",value:function(){var e;(e=this.emitter).off.apply(e,arguments)}},{key:"emit",value:function(e,t){"pending"!==this.state?this.connection.sendEvent(this.topic,e,t):this._emitBuffer.push({event:e,data:t})}},{key:"serverClose",value:function(){var e=this;return this.emitter.emit("close",this).then((function(){e._emitBuffer=[],e.emitter.clearListeners()})).catch((function(){e._emitBuffer=[],e.emitter.clearListeners()}))}},{key:"serverEvent",value:function(e){var t=e.event,n=e.data;this.emitter.emit(t,n)}},{key:"serverError",value:function(){this.state="error"}},{key:"close",value:function(){this.state="closing",x("closing subscription for %s topic with server",this.topic),this.connection.sendPacket(L.leavePacket(this.topic))}},{key:"terminate",value:function(){this.leaveAck()}},{key:"state",get:function(){return this._state},set:function(e){if(-1===!this.constructor.states.indexOf(e))throw new Error(e+" is not a valid socket state");this._state=e}}],[{key:"states",get:function(){return["pending","open","closed","closing","error"]}}]),e}(),H={name:"json",encode:function(e,t){var n=null;try{n=JSON.stringify(e)}catch(e){return t(e)}t(null,n)},decode:function(e,t){var n=null;try{n=JSON.parse(e)}catch(e){return t(e)}t(null,n)}},P="https:"===window.location.protocol?"wss":"ws",O=function(e){function t(e,n){s(this,t);var a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=e||P+"://"+window.location.host,a.options=i({path:"adonis-ws",reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3,query:null,encoder:H},n),x("connection options %o",a.options),a._connectionState="idle",a._reconnectionAttempts=0,a._packetsQueue=[],a._processingQueue=!1,a._pingTimer=null,a._extendedQuery={},a._url=e.replace(/\/$/,"")+"/"+a.options.path,a.subscriptions={},a.removeSubscription=function(e){var t=e.topic;delete a.subscriptions[t]},a}return o(t,e),r(t,[{key:"_cleanup",value:function(){clearInterval(this._pingTimer),this.ws=null,this._pingTimer=null}},{key:"_subscriptionsIterator",value:function(e){var t=this;Object.keys(this.subscriptions).forEach((function(n){return e(t.subscriptions[n],n)}))}},{key:"_ensureSubscription",value:function(e,t){var n=this.getSubscription(e.d.topic);n?t(n,e):x("cannot consume packet since %s topic has no active subscription %j",e.d.topic,e)}},{key:"_processQueue",value:function(){var e=this;!this._processingQueue&&this._packetsQueue.length&&(this._processingQueue=!0,this.options.encoder.encode(this._packetsQueue.shift(),(function(t,n){t?x("encode error %j",t):(e.write(n),e._processingQueue=!1,e._processQueue())})))}},{key:"_onOpen",value:function(){x("opened")}},{key:"_onError",value:function(e){x("error %O",e),this._subscriptionsIterator((function(e){return e.serverError()})),this.emit("error",e)}},{key:"_reconnect",value:function(){var e=this;this._reconnectionAttempts++,this.emit("reconnect",this._reconnectionAttempts),setTimeout((function(){e._connectionState="reconnect",e.connect()}),this.options.reconnectionDelay*this._reconnectionAttempts)}},{key:"_onClose",value:function(e){var t=this;x("closing from %s state",this._connectionState),this._cleanup(),this._subscriptionsIterator((function(e){return e.terminate()})),this.emit("close",this).then((function(){t.shouldReconnect?t._reconnect():t.clearListeners()})).catch((function(){t.shouldReconnect?t._reconnect():t.clearListeners()}))}},{key:"_onMessage",value:function(e){var t=this;this.options.encoder.decode(e.data,(function(e,n){e?x("packet dropped, decode error %o",e):t._handleMessage(n)}))}},{key:"_handleMessage",value:function(e){return L.isOpenPacket(e)?(x("open packet"),void this._handleOpen(e)):L.isJoinAckPacket(e)?(x("join ack packet"),void this._handleJoinAck(e)):L.isJoinErrorPacket(e)?(x("join error packet"),void this._handleJoinError(e)):L.isLeaveAckPacket(e)?(x("leave ack packet"),void this._handleLeaveAck(e)):L.isLeaveErrorPacket(e)?(x("leave error packet"),void this._handleLeaveError(e)):L.isLeavePacket(e)?(x("leave packet"),void this._handleServerLeave(e)):L.isEventPacket(e)?(x("event packet"),void this._handleEvent(e)):void(L.isPongPacket(e)?x("pong packet"):x("invalid packet type %d",e.t))}},{key:"_handleOpen",value:function(e){var t=this;this._connectionState="open",this.emit("open",e.d),this._pingTimer=setInterval((function(){t.sendPacket(L.pingPacket())}),e.d.clientInterval),x("processing pre connection subscriptions %o",Object.keys(this.subscriptions)),this._subscriptionsIterator((function(e){t._sendSubscriptionPacket(e.topic)}))}},{key:"_handleJoinAck",value:function(e){this._ensureSubscription(e,(function(e){return e.joinAck()}))}},{key:"_handleJoinError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.joinError(t.d)}))}},{key:"_handleLeaveAck",value:function(e){this._ensureSubscription(e,(function(e){return e.leaveAck()}))}},{key:"_handleLeaveError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveError(t.d)}))}},{key:"_handleServerLeave",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveAck()}))}},{key:"_handleEvent",value:function(e){this._ensureSubscription(e,(function(e,t){return e.serverEvent(t.d)}))}},{key:"_sendSubscriptionPacket",value:function(e){x("initiating subscription for %s topic with server",e),this.sendPacket(L.joinPacket(e))}},{key:"connect",value:function(){var e=this,t=y(i({},this.options.query,this._extendedQuery)),n=t?this._url+"?"+t:this._url;return x("creating socket connection on %s url",n),this.ws=new window.WebSocket(n),this.ws.onclose=function(t){return e._onClose(t)},this.ws.onerror=function(t){return e._onError(t)},this.ws.onopen=function(t){return e._onOpen(t)},this.ws.onmessage=function(t){return e._onMessage(t)},this}},{key:"write",value:function(e){this.ws.readyState===window.WebSocket.OPEN?this.ws.send(e):x("connection is not in open state, current state %s",this.ws.readyState)}},{key:"sendPacket",value:function(e){this._packetsQueue.push(e),this._processQueue()}},{key:"getSubscription",value:function(e){return this.subscriptions[e]}},{key:"hasSubcription",value:function(e){return!!this.getSubscription(e)}},{key:"subscribe",value:function(e){if(!e||"string"!=typeof e)throw new Error("subscribe method expects topic to be a valid string");if(this.subscriptions[e])throw new Error("Cannot subscribe to same topic twice. Instead use getSubscription");var t=new C(e,this);return t.on("close",this.removeSubscription),this.subscriptions[e]=t,"open"===this._connectionState&&this._sendSubscriptionPacket(e),t}},{key:"sendEvent",value:function(e,t,n){if(!e||!t)throw new Error("topic and event name is required to call sendEvent method");var a=this.getSubscription(e);if(!a)throw new Error("There is no active subscription for "+e+" topic");if("open"!==a.state)throw new Error("Cannot emit since subscription socket is in "+this.state+" state");x("sending event on %s topic",e),this.sendPacket(L.eventPacket(e,t,n))}},{key:"withJwtToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"withBasicAuth",value:function(e,t){return this._extendedQuery.basic=window.btoa(e+":"+t),this}},{key:"withApiToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"close",value:function(){this._connectionState="terminated",this.ws.close()}},{key:"shouldReconnect",get:function(){return"terminated"!==this._connectionState&&this.options.reconnection&&this.options.reconnectionAttempts>this._reconnectionAttempts}}]),t}(v);return function(e,t){return new O(e,t)}},e.exports=a()}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/events/events.js":function(e,t,n){"use strict";var a,s="object"==typeof Reflect?Reflect:null,r=s&&"function"==typeof s.apply?s.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};a=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var d=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,a){var s,r,i,o;if(l(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(s=u(e))>0&&i.length>s&&!i.warned){i.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=i.length,o=d,console&&console.warn&&console.warn(o)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=m.bind(a);return s.listener=n,a.wrapFn=s,s}function h(e,t,n){var a=e._events;if(void 0===a)return[];var s=a[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var o=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw o.context=i,o}var d=s[e];if(void 0===d)return!1;if("function"==typeof d)r(d,this,t);else{var l=d.length,u=f(d,l);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,s=r;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var a={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-in":"./node_modules/moment/locale/en-in.js","./en-in.js":"./node_modules/moment/locale/en-in.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./en-sg":"./node_modules/moment/locale/en-sg.js","./en-sg.js":"./node_modules/moment/locale/en-sg.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fil":"./node_modules/moment/locale/fil.js","./fil.js":"./node_modules/moment/locale/fil.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./ga":"./node_modules/moment/locale/ga.js","./ga.js":"./node_modules/moment/locale/ga.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-deva":"./node_modules/moment/locale/gom-deva.js","./gom-deva.js":"./node_modules/moment/locale/gom-deva.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it-ch":"./node_modules/moment/locale/it-ch.js","./it-ch.js":"./node_modules/moment/locale/it-ch.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ku":"./node_modules/moment/locale/ku.js","./ku.js":"./node_modules/moment/locale/ku.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mn":"./node_modules/moment/locale/mn.js","./mn.js":"./node_modules/moment/locale/mn.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./oc-lnc":"./node_modules/moment/locale/oc-lnc.js","./oc-lnc.js":"./node_modules/moment/locale/oc-lnc.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-mo":"./node_modules/moment/locale/zh-mo.js","./zh-mo.js":"./node_modules/moment/locale/zh-mo.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function s(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=r,e.exports=s,s.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict"; +!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!L[e]||!M[e])return;for(var n in M[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(_[n]=t[n]);0==--v&&0===g&&Y()}(e,n),t&&t(e,n)};var n,a=!0,s="7dc24c939137cfe31270",r={},i=[],o=[];function d(e){var t=S[e];if(!t)return x;var a=function(a){return t.hot.active?(S[a]?-1===S[a].parents.indexOf(e)&&S[a].parents.push(e):(i=[e],n=a),-1===t.children.indexOf(a)&&t.children.push(a)):(console.warn("[HMR] unexpected require("+a+") from disposed module "+e),i=[]),x(a)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return x[e]},set:function(t){x[e]=t}}};for(var r in x)Object.prototype.hasOwnProperty.call(x,r)&&"e"!==r&&"t"!==r&&Object.defineProperty(a,r,s(r));return a.e=function(e){return"ready"===c&&m("prepare"),g++,x.e(e).then(t,(function(e){throw t(),e}));function t(){g--,"prepare"===c&&(y[e]||w(e),0===g&&0===v&&Y())}},a.t=function(e,t){return 1&t&&(e=a(e)),x.t(e,-2&t)},a}function l(t){var a={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)a._selfAccepted=!0;else if("function"==typeof e)a._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&a._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,c){case"idle":(_={})[t]=e[t],m("ready");break;case"ready":j(t);break;case"prepare":case"check":case"dispose":case"apply":(f=f||[]).push(t)}},check:k,apply:D,status:function(e){if(!e)return c;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var t=u.indexOf(e);t>=0&&u.splice(t,1)},data:r[t]};return n=void 0,a}var u=[],c="idle";function m(e){c=e;for(var t=0;t0;){var s=a.pop(),r=s.id,i=s.chain;if((u=S[r])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:r};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:r};for(var o=0;o ")),Y.type){case"self-declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of self decline: "+Y.moduleId+H));break;case"declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of declined dependency: "+Y.moduleId+" in "+Y.parentId+H));break;case"unaccepted":a.onUnaccepted&&a.onUnaccepted(Y),a.ignoreUnaccepted||(D=new Error("Aborted because "+c+" is not accepted"+H));break;case"accepted":a.onAccepted&&a.onAccepted(Y),j=!0;break;case"disposed":a.onDisposed&&a.onDisposed(Y),C=!0;break;default:throw new Error("Unexception type "+Y.type)}if(D)return m("abort"),Promise.reject(D);if(j)for(c in M[c]=_[c],v(y,Y.outdatedModules),Y.outdatedDependencies)Object.prototype.hasOwnProperty.call(Y.outdatedDependencies,c)&&(g[c]||(g[c]=[]),v(g[c],Y.outdatedDependencies[c]));C&&(v(y,[Y.moduleId]),M[c]=k)}var P,O=[];for(d=0;d0;)if(c=R.pop(),u=S[c]){var F={},I=u.hot._disposeHandlers;for(l=0;l=0&&N.parents.splice(P,1))}}for(c in g)if(Object.prototype.hasOwnProperty.call(g,c)&&(u=S[c]))for(E=g[c],l=0;l=0&&u.children.splice(P,1);m("apply"),void 0!==p&&(s=p,p=void 0);for(c in _=void 0,M)Object.prototype.hasOwnProperty.call(M,c)&&(e[c]=M[c]);var W=null;for(c in g)if(Object.prototype.hasOwnProperty.call(g,c)&&(u=S[c])){E=g[c];var $=[];for(d=0;d0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return n*w;case"minutes":case"minute":case"mins":case"min":case"m":return n*k;case"seconds":case"second":case"secs":case"sec":case"s":return n*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===a&&!1===isNaN(t))return n.long?function(e){return T(e,Y,"day")||T(e,w,"hour")||T(e,k,"minute")||T(e,b,"second")||e+" ms"}(t):function(e){return e>=Y?Math.round(e/Y)+"d":e>=w?Math.round(e/w)+"h":e>=k?Math.round(e/k)+"m":e>=b?Math.round(e/b)+"s":e+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function T(e,t,n){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(s())}))),x=(S.log,S.formatArgs,S.save,S.load,S.useColors,S.storage,S.colors,M((function(e){var t=S;t.enable("adonis:*"),e.exports=t("adonis:websocket")}))),C=function(){function e(t,n){s(this,e),this.topic=t,this.connection=n,this.emitter=new v,this._state="pending",this._emitBuffer=[]}return r(e,[{key:"joinAck",value:function(){var e=this;this.state="open",this.emitter.emit("ready",this),x("clearing emit buffer for %s topic after subscription ack",this.topic),this._emitBuffer.forEach((function(t){return e.emit(t.event,t.data)})),this._emitBuffer=[]}},{key:"joinError",value:function(e){this.state="error",this.emitter.emit("error",e),this.serverClose()}},{key:"leaveAck",value:function(){this.state="closed",this.serverClose()}},{key:"leaveError",value:function(e){this.emitter.emit("leaveError",e)}},{key:"on",value:function(){var e;(e=this.emitter).on.apply(e,arguments)}},{key:"once",value:function(){var e;(e=this.emitter).once.apply(e,arguments)}},{key:"off",value:function(){var e;(e=this.emitter).off.apply(e,arguments)}},{key:"emit",value:function(e,t){"pending"!==this.state?this.connection.sendEvent(this.topic,e,t):this._emitBuffer.push({event:e,data:t})}},{key:"serverClose",value:function(){var e=this;return this.emitter.emit("close",this).then((function(){e._emitBuffer=[],e.emitter.clearListeners()})).catch((function(){e._emitBuffer=[],e.emitter.clearListeners()}))}},{key:"serverEvent",value:function(e){var t=e.event,n=e.data;this.emitter.emit(t,n)}},{key:"serverError",value:function(){this.state="error"}},{key:"close",value:function(){this.state="closing",x("closing subscription for %s topic with server",this.topic),this.connection.sendPacket(L.leavePacket(this.topic))}},{key:"terminate",value:function(){this.leaveAck()}},{key:"state",get:function(){return this._state},set:function(e){if(-1===!this.constructor.states.indexOf(e))throw new Error(e+" is not a valid socket state");this._state=e}}],[{key:"states",get:function(){return["pending","open","closed","closing","error"]}}]),e}(),H={name:"json",encode:function(e,t){var n=null;try{n=JSON.stringify(e)}catch(e){return t(e)}t(null,n)},decode:function(e,t){var n=null;try{n=JSON.parse(e)}catch(e){return t(e)}t(null,n)}},P="https:"===window.location.protocol?"wss":"ws",O=function(e){function t(e,n){s(this,t);var a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=e||P+"://"+window.location.host,a.options=i({path:"adonis-ws",reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3,query:null,encoder:H},n),x("connection options %o",a.options),a._connectionState="idle",a._reconnectionAttempts=0,a._packetsQueue=[],a._processingQueue=!1,a._pingTimer=null,a._extendedQuery={},a._url=e.replace(/\/$/,"")+"/"+a.options.path,a.subscriptions={},a.removeSubscription=function(e){var t=e.topic;delete a.subscriptions[t]},a}return o(t,e),r(t,[{key:"_cleanup",value:function(){clearInterval(this._pingTimer),this.ws=null,this._pingTimer=null}},{key:"_subscriptionsIterator",value:function(e){var t=this;Object.keys(this.subscriptions).forEach((function(n){return e(t.subscriptions[n],n)}))}},{key:"_ensureSubscription",value:function(e,t){var n=this.getSubscription(e.d.topic);n?t(n,e):x("cannot consume packet since %s topic has no active subscription %j",e.d.topic,e)}},{key:"_processQueue",value:function(){var e=this;!this._processingQueue&&this._packetsQueue.length&&(this._processingQueue=!0,this.options.encoder.encode(this._packetsQueue.shift(),(function(t,n){t?x("encode error %j",t):(e.write(n),e._processingQueue=!1,e._processQueue())})))}},{key:"_onOpen",value:function(){x("opened")}},{key:"_onError",value:function(e){x("error %O",e),this._subscriptionsIterator((function(e){return e.serverError()})),this.emit("error",e)}},{key:"_reconnect",value:function(){var e=this;this._reconnectionAttempts++,this.emit("reconnect",this._reconnectionAttempts),setTimeout((function(){e._connectionState="reconnect",e.connect()}),this.options.reconnectionDelay*this._reconnectionAttempts)}},{key:"_onClose",value:function(e){var t=this;x("closing from %s state",this._connectionState),this._cleanup(),this._subscriptionsIterator((function(e){return e.terminate()})),this.emit("close",this).then((function(){t.shouldReconnect?t._reconnect():t.clearListeners()})).catch((function(){t.shouldReconnect?t._reconnect():t.clearListeners()}))}},{key:"_onMessage",value:function(e){var t=this;this.options.encoder.decode(e.data,(function(e,n){e?x("packet dropped, decode error %o",e):t._handleMessage(n)}))}},{key:"_handleMessage",value:function(e){return L.isOpenPacket(e)?(x("open packet"),void this._handleOpen(e)):L.isJoinAckPacket(e)?(x("join ack packet"),void this._handleJoinAck(e)):L.isJoinErrorPacket(e)?(x("join error packet"),void this._handleJoinError(e)):L.isLeaveAckPacket(e)?(x("leave ack packet"),void this._handleLeaveAck(e)):L.isLeaveErrorPacket(e)?(x("leave error packet"),void this._handleLeaveError(e)):L.isLeavePacket(e)?(x("leave packet"),void this._handleServerLeave(e)):L.isEventPacket(e)?(x("event packet"),void this._handleEvent(e)):void(L.isPongPacket(e)?x("pong packet"):x("invalid packet type %d",e.t))}},{key:"_handleOpen",value:function(e){var t=this;this._connectionState="open",this.emit("open",e.d),this._pingTimer=setInterval((function(){t.sendPacket(L.pingPacket())}),e.d.clientInterval),x("processing pre connection subscriptions %o",Object.keys(this.subscriptions)),this._subscriptionsIterator((function(e){t._sendSubscriptionPacket(e.topic)}))}},{key:"_handleJoinAck",value:function(e){this._ensureSubscription(e,(function(e){return e.joinAck()}))}},{key:"_handleJoinError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.joinError(t.d)}))}},{key:"_handleLeaveAck",value:function(e){this._ensureSubscription(e,(function(e){return e.leaveAck()}))}},{key:"_handleLeaveError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveError(t.d)}))}},{key:"_handleServerLeave",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveAck()}))}},{key:"_handleEvent",value:function(e){this._ensureSubscription(e,(function(e,t){return e.serverEvent(t.d)}))}},{key:"_sendSubscriptionPacket",value:function(e){x("initiating subscription for %s topic with server",e),this.sendPacket(L.joinPacket(e))}},{key:"connect",value:function(){var e=this,t=y(i({},this.options.query,this._extendedQuery)),n=t?this._url+"?"+t:this._url;return x("creating socket connection on %s url",n),this.ws=new window.WebSocket(n),this.ws.onclose=function(t){return e._onClose(t)},this.ws.onerror=function(t){return e._onError(t)},this.ws.onopen=function(t){return e._onOpen(t)},this.ws.onmessage=function(t){return e._onMessage(t)},this}},{key:"write",value:function(e){this.ws.readyState===window.WebSocket.OPEN?this.ws.send(e):x("connection is not in open state, current state %s",this.ws.readyState)}},{key:"sendPacket",value:function(e){this._packetsQueue.push(e),this._processQueue()}},{key:"getSubscription",value:function(e){return this.subscriptions[e]}},{key:"hasSubcription",value:function(e){return!!this.getSubscription(e)}},{key:"subscribe",value:function(e){if(!e||"string"!=typeof e)throw new Error("subscribe method expects topic to be a valid string");if(this.subscriptions[e])throw new Error("Cannot subscribe to same topic twice. Instead use getSubscription");var t=new C(e,this);return t.on("close",this.removeSubscription),this.subscriptions[e]=t,"open"===this._connectionState&&this._sendSubscriptionPacket(e),t}},{key:"sendEvent",value:function(e,t,n){if(!e||!t)throw new Error("topic and event name is required to call sendEvent method");var a=this.getSubscription(e);if(!a)throw new Error("There is no active subscription for "+e+" topic");if("open"!==a.state)throw new Error("Cannot emit since subscription socket is in "+this.state+" state");x("sending event on %s topic",e),this.sendPacket(L.eventPacket(e,t,n))}},{key:"withJwtToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"withBasicAuth",value:function(e,t){return this._extendedQuery.basic=window.btoa(e+":"+t),this}},{key:"withApiToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"close",value:function(){this._connectionState="terminated",this.ws.close()}},{key:"shouldReconnect",get:function(){return"terminated"!==this._connectionState&&this.options.reconnection&&this.options.reconnectionAttempts>this._reconnectionAttempts}}]),t}(v);return function(e,t){return new O(e,t)}},e.exports=a()}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/events/events.js":function(e,t,n){"use strict";var a,s="object"==typeof Reflect?Reflect:null,r=s&&"function"==typeof s.apply?s.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};a=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var d=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,a){var s,r,i,o;if(l(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(s=u(e))>0&&i.length>s&&!i.warned){i.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=i.length,o=d,console&&console.warn&&console.warn(o)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=m.bind(a);return s.listener=n,a.wrapFn=s,s}function _(e,t,n){var a=e._events;if(void 0===a)return[];var s=a[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var o=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw o.context=i,o}var d=s[e];if(void 0===d)return!1;if("function"==typeof d)r(d,this,t);else{var l=d.length,u=f(d,l);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,s=r;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return _(this,e,!0)},o.prototype.rawListeners=function(e){return _(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var a={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-in":"./node_modules/moment/locale/en-in.js","./en-in.js":"./node_modules/moment/locale/en-in.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./en-sg":"./node_modules/moment/locale/en-sg.js","./en-sg.js":"./node_modules/moment/locale/en-sg.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fil":"./node_modules/moment/locale/fil.js","./fil.js":"./node_modules/moment/locale/fil.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./ga":"./node_modules/moment/locale/ga.js","./ga.js":"./node_modules/moment/locale/ga.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-deva":"./node_modules/moment/locale/gom-deva.js","./gom-deva.js":"./node_modules/moment/locale/gom-deva.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it-ch":"./node_modules/moment/locale/it-ch.js","./it-ch.js":"./node_modules/moment/locale/it-ch.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ku":"./node_modules/moment/locale/ku.js","./ku.js":"./node_modules/moment/locale/ku.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mn":"./node_modules/moment/locale/mn.js","./mn.js":"./node_modules/moment/locale/mn.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./oc-lnc":"./node_modules/moment/locale/oc-lnc.js","./oc-lnc.js":"./node_modules/moment/locale/oc-lnc.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-mo":"./node_modules/moment/locale/zh-mo.js","./zh-mo.js":"./node_modules/moment/locale/zh-mo.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function s(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=r,e.exports=s,s.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-dz.js":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration @@ -262,9 +262,9 @@ e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月 //! moment.js locale configuration e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/zh-tw.js":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration -e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/moment.js":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,a;function s(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,a=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+a}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,Y=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},A={};function E(e,t,n,a){var s=a;"string"==typeof a&&(s=function(){return this[a]()}),e&&(A[e]=s),t&&(A[t[0]]=function(){return C(s.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=F(t,e.localeData()),O[t]=O[t]||function(e){var t,n,a,s=e.match(H);for(t=0,n=s.length;t=0&&P.test(e);)e=e.replace(P,a),P.lastIndex=0,n-=1;return e}var I={};function N(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function W(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function $(e){var t,n,a={};for(n in e)o(e,n)&&(t=W(n))&&(a[t]=e[n]);return a}var z={};function U(e,t){z[e]=t}function J(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=B(t)),n}function G(e,t){return function(n){return null!=n?(Z(this,e,n),s.updateOffset(this,t),this):q(this,e)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&J(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),be(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,X=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ae=/\d\d?/,se=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,oe=/\d{1,4}/,de=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,_e=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){K[e]=j(t)?t:function(e,a){return e&&n?n:t}}function pe(e,t){return o(K,e)?K[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,s){return t||n||a||s}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ve,ge={};function ye(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),u(t)&&(a=function(e,n){n[t]=V(e)}),n=0;n68?1900:2e3)};var Pe=G("FullYear",!0);function Oe(e,t,n,a,s,r,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,a,s,r,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,a,s,r,i),o}function Ae(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,n){var a=7+t-n;return-(7+Ae(e,0,a).getUTCDay()-t)%7+a-1}function Re(e,t,n,a,s){var r,i,o=1+7*(t-1)+(7+n-a)%7+Ee(e,a,s);return o<=0?i=He(r=e-1)+o:o>He(e)?(r=e+1,i=o-He(e)):(r=e,i=o),{year:r,dayOfYear:i}}function Fe(e,t,n){var a,s,r=Ee(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?a=i+Ie(s=e.year()-1,t,n):i>Ie(e.year(),t,n)?(a=i-Ie(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Ie(e,t,n){var a=Ee(e,t,n),s=Ee(e+1,t,n);return(He(e)-a+s)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),he("w",ae),he("ww",ae,Q),he("W",ae),he("WW",ae,Q),Me(["w","ww","W","WW"],(function(e,t,n,a){t[a.substr(0,1)]=V(e)})),E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),he("d",ae),he("e",ae),he("E",ae),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),Me(["dd","ddd","dddd"],(function(e,t,n,a){var s=n._locale.weekdaysParse(e,a,n._strict);null!=s?t.d=s:p(n).invalidWeekday=e})),Me(["d","e","E"],(function(e,t,n,a){t[a]=V(e)}));var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$e="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=_e,Je=_e,Be=_e;function Ve(e,t,n){var a,s,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)r=h([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(s=ve.call(this._weekdaysParse,i))?s:null:"ddd"===t?-1!==(s=ve.call(this._shortWeekdaysParse,i))?s:null:-1!==(s=ve.call(this._minWeekdaysParse,i))?s:null:"dddd"===t?-1!==(s=ve.call(this._weekdaysParse,i))||-1!==(s=ve.call(this._shortWeekdaysParse,i))||-1!==(s=ve.call(this._minWeekdaysParse,i))?s:null:"ddd"===t?-1!==(s=ve.call(this._shortWeekdaysParse,i))||-1!==(s=ve.call(this._weekdaysParse,i))||-1!==(s=ve.call(this._minWeekdaysParse,i))?s:null:-1!==(s=ve.call(this._minWeekdaysParse,i))||-1!==(s=ve.call(this._weekdaysParse,i))||-1!==(s=ve.call(this._shortWeekdaysParse,i))?s:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,a,s,r,i=[],o=[],d=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),a=fe(this.weekdaysMin(n,"")),s=fe(this.weekdaysShort(n,"")),r=fe(this.weekdays(n,"")),i.push(a),o.push(s),d.push(r),l.push(a),l.push(s),l.push(r);i.sort(e),o.sort(e),d.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ze(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,qe),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+qe.apply(this)+C(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+qe.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),Ze("a",!0),Ze("A",!1),N("hour","h"),U("hour",13),he("a",Ke),he("A",Ke),he("H",ae),he("h",ae),he("k",ae),he("HH",ae,Q),he("hh",ae,Q),he("kk",ae,Q),he("hmm",se),he("hmmss",re),he("Hmm",se),he("Hmmss",re),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var a=V(e);t[3]=24===a?0:a})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=V(e),p(n).bigHour=!0})),ye("hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a)),p(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var a=e.length-4,s=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(s)),p(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a))})),ye("Hmmss",(function(e,t,n){var a=e.length-4,s=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(s))}));var Xe,Qe=G("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:we,week:{dow:0,doy:6},weekdays:We,weekdaysMin:ze,weekdaysShort:$e,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function at(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n0;){if(a=rt(s.slice(0,t).join("-")))return a;if(n&&n.length>=t&&at(s,n)>=t-1)break;t--}r++}return Xe}(e)}function lt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>be(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((-?\d+)/i,ft=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gt(e){var t,n,a,s,r,i,o=e._i,d=ut.exec(o)||ct.exec(o);if(d){for(p(e).iso=!0,t=0,n=_t.length;t7)&&(d=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,l=Fe(Dt(),r,i),n=Lt(t.gg,e._a[0],l.year),a=Lt(t.w,l.week),null!=t.d?((s=t.d)<0||s>6)&&(d=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(d=!0)):s=r),a<1||a>Ie(n,r,i)?p(e)._overflowWeeks=!0:null!=d?p(e)._overflowWeekday=!0:(o=Re(n,a,s,r,i),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(i=Lt(e._a[0],a[0]),(e._dayOfYear>He(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ae(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=a[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Oe).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],p(e).empty=!0;var t,n,a,r,i,o,d=""+e._i,l=d.length,u=0;for(a=F(e._f,e._locale).match(H)||[],t=0;t0&&p(e).unusedInput.push(i),d=d.slice(d.indexOf(n)+n.length),u+=n.length),A[r]?(n?p(e).empty=!1:p(e).unusedTokens.push(r),Le(r,n,e)):e._strict&&!n&&p(e).unusedTokens.push(r);p(e).charsLeftOver=l-u,d.length>0&&p(e).unusedInput.push(d),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(o=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),bt(e),lt(e)}else Mt(e);else gt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new L(lt(t)):(c(t)?e._d=t:r(n)?function(e){var t,n,a,s,r,i,o=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;sthis?this:e:v()}));function St(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],a=1;a=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function on(){var e,t,n=[],a=[],s=[],r=[],i=this.eras();for(e=0,t=i.length;e(r=Ie(e,a,s))&&(t=r),un.call(this,e,t,n,a,s))}function un(e,t,n,a,s){var r=Re(e,t,n,a,s),i=Ae(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),he("N",rn),he("NN",rn),he("NNN",rn),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var s=n._locale.erasParse(e,a,n._strict);s?p(n).era=s:p(n).invalidEra=e})),he("y",le),he("yy",le),he("yyy",le),he("yyyy",le),he("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,a){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,s):t[0]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),he("G",ue),he("g",ue),he("GG",ae,Q),he("gg",ae,Q),he("GGGG",oe,te),he("gggg",oe,te),he("GGGGG",de,ne),he("ggggg",de,ne),Me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=V(e)})),Me(["gg","GG"],(function(e,t,n,a){t[a]=s.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),he("Q",X),ye("Q",(function(e,t){t[1]=3*(V(e)-1)})),E("D",["DD",2],"Do","date"),N("date","D"),U("date",9),he("D",ae),he("DD",ae,Q),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=V(e.match(ae)[0])}));var cn=G("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),he("DDD",ie),he("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),E("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),he("m",ae),he("mm",ae,Q),ye(["m","mm"],4);var mn=G("Minutes",!1);E("s",["ss",2],0,"second"),N("second","s"),U("second",15),he("s",ae),he("ss",ae,Q),ye(["s","ss"],5);var _n,hn,pn=G("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),U("millisecond",16),he("S",ie,X),he("SS",ie,Q),he("SSS",ie,ee),_n="SSSS";_n.length<=9;_n+="S")he(_n,le);function fn(e,t){t[6]=V(1e3*("0."+e))}for(_n="S";_n.length<=9;_n+="S")ye(_n,fn);hn=G("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var vn=L.prototype;function gn(e){return e}vn.add=Vt,vn.calendar=function(e,t){1===arguments.length&&(Zt(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Dt(),a=Rt(n,this).startOf("day"),r=s.calendarFormat(this,a)||"sameElse",i=t&&(j(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,Dt(n)))},vn.clone=function(){return new L(this)},vn.diff=function(e,t,n){var a,s,r;if(!this.isValid())return NaN;if(!(a=Rt(e,this)).isValid())return NaN;switch(s=6e4*(a.utcOffset()-this.utcOffset()),t=W(t)){case"year":r=Xt(this,a)/12;break;case"month":r=Xt(this,a);break;case"quarter":r=Xt(this,a)/3;break;case"second":r=(this-a)/1e3;break;case"minute":r=(this-a)/6e4;break;case"hour":r=(this-a)/36e5;break;case"day":r=(this-a-s)/864e5;break;case"week":r=(this-a-s)/6048e5;break;default:r=this-a}return n?r:B(r)},vn.endOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:an,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(Dt(),e)},vn.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(Dt(),e)},vn.get=function(e){return j(this[e=W(e)])?this[e]():this},vn.invalidAt=function(){return p(this).overflow},vn.isAfter=function(e,t){var n=b(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a="moment",s="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=s+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=It,vn.isUTC=It,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=w("dates accessor is deprecated. Use date instead.",cn),vn.months=w("months accessor is deprecated. Use month instead",xe),vn.years=w("years accessor is deprecated. Use year instead",Pe),vn.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=wt(t))._a?(e=t._isUTC?h(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var a,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(a=0;a0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=x.prototype;function Mn(e,t,n,a){var s=dt(),r=h().set(a,t);return s[n](r,e)}function Ln(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var a,s=[];for(a=0;a<12;a++)s[a]=Mn(e,a,n,"month");return s}function bn(e,t,n,a){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var s,r=dt(),i=e?r._week.dow:0,o=[];if(null!=n)return Mn(t,(n+i)%7,a,"day");for(s=0;s<7;s++)o[s]=Mn(t,(s+i)%7,a,"day");return o}yn.calendar=function(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return j(a)?a.call(t,n):a},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=gn,yn.postformat=gn,yn.relativeTime=function(e,t,n,a){var s=this._relativeTime[n];return j(s)?s(e,t,n,a):s.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return j(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)o(e,n)&&(j(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,a,r,i=this._eras||dt("en")._eras;for(n=0,a=i.length;n=0)return d[a]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ye).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ye.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var a,s,r;if(this._monthsParseExact)return je.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(s=h([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},yn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var a,s,r;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(s=h([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=w("moment.lang is deprecated. Use moment.locale instead.",it),s.langData=w("moment.langData is deprecated. Use moment.localeData instead.",dt);var kn=Math.abs;function wn(e,t,n,a){var s=$t(t,n);return e._milliseconds+=a*s._milliseconds,e._days+=a*s._days,e._months+=a*s._months,e._bubble()}function Yn(e){return e<0?Math.floor(e):Math.ceil(e)}function Dn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function jn(e){return function(){return this.as(e)}}var Sn=jn("ms"),xn=jn("s"),Cn=jn("m"),Hn=jn("h"),Pn=jn("d"),On=jn("w"),An=jn("M"),En=jn("Q"),Rn=jn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var In=Fn("milliseconds"),Nn=Fn("seconds"),Wn=Fn("minutes"),$n=Fn("hours"),zn=Fn("days"),Un=Fn("months"),Jn=Fn("years"),Bn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,a,s){return s.relativeTime(t||1,!!n,e,a)}var qn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,s,r,i,o,d=qn(this._milliseconds)/1e3,l=qn(this._days),u=qn(this._months),c=this.asSeconds();return c?(e=B(d/60),t=B(e/60),d%=60,e%=60,n=B(u/12),u%=12,a=d?d.toFixed(3).replace(/\.?0+$/,""):"",s=c<0?"-":"",r=Zn(this._months)!==Zn(c)?"-":"",i=Zn(this._days)!==Zn(c)?"-":"",o=Zn(this._milliseconds)!==Zn(c)?"-":"",s+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(l?i+l+"D":"")+(t||e||d?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(d?o+a+"S":"")):"P0D"}var Xn=Ct.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Xn.add=function(e,t){return wn(this,e,t,1)},Xn.subtract=function(e,t){return wn(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=W(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+Dn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Sn,Xn.asSeconds=xn,Xn.asMinutes=Cn,Xn.asHours=Hn,Xn.asDays=Pn,Xn.asWeeks=On,Xn.asMonths=An,Xn.asQuarters=En,Xn.asYears=Rn,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Xn._bubble=function(){var e,t,n,a,s,r=this._milliseconds,i=this._days,o=this._months,d=this._data;return r>=0&&i>=0&&o>=0||r<=0&&i<=0&&o<=0||(r+=864e5*Yn(Tn(o)+i),i=0,o=0),d.milliseconds=r%1e3,e=B(r/1e3),d.seconds=e%60,t=B(e/60),d.minutes=t%60,n=B(t/60),d.hours=n%24,i+=B(n/24),s=B(Dn(i)),o+=s,i-=Yn(Tn(s)),a=B(o/12),o%=12,d.days=i,d.months=o,d.years=a,this},Xn.clone=function(){return $t(this)},Xn.get=function(e){return e=W(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=In,Xn.seconds=Nn,Xn.minutes=Wn,Xn.hours=$n,Xn.days=zn,Xn.weeks=function(){return B(this.days()/7)},Xn.months=Un,Xn.years=Jn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,a,s=!1,r=Vn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(r=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=this.localeData(),a=function(e,t,n,a){var s=$t(e).abs(),r=Bn(s.as("s")),i=Bn(s.as("m")),o=Bn(s.as("h")),d=Bn(s.as("d")),l=Bn(s.as("M")),u=Bn(s.as("w")),c=Bn(s.as("y")),m=r<=n.ss&&["s",r]||r0,m[4]=a,Gn.apply(null,m)}(this,!s,r,n),s&&(a=n.pastFuture(+this,a)),n.postformat(a)},Xn.toISOString=Kn,Xn.toString=Kn,Xn.toJSON=Kn,Xn.locale=Qt,Xn.localeData=tn,Xn.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Xn.lang=en,E("X",0,0,"unix"),E("x",0,0,"valueOf"),he("x",ue),he("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(V(e))})), +e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/moment.js":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,a;function s(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,a=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+a}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,Y=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},A={};function E(e,t,n,a){var s=a;"string"==typeof a&&(s=function(){return this[a]()}),e&&(A[e]=s),t&&(A[t[0]]=function(){return C(s.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=F(t,e.localeData()),O[t]=O[t]||function(e){var t,n,a,s=e.match(H);for(t=0,n=s.length;t=0&&P.test(e);)e=e.replace(P,a),P.lastIndex=0,n-=1;return e}var I={};function N(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function W(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function $(e){var t,n,a={};for(n in e)o(e,n)&&(t=W(n))&&(a[t]=e[n]);return a}var z={};function U(e,t){z[e]=t}function B(e){return e%4==0&&e%100!=0||e%400==0}function J(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=J(t)),n}function G(e,t){return function(n){return null!=n?(Z(this,e,n),s.updateOffset(this,t),this):q(this,e)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&B(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),be(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,X=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ae=/\d\d?/,se=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,oe=/\d{1,4}/,de=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,me=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _e(e,t,n){K[e]=j(t)?t:function(e,a){return e&&n?n:t}}function pe(e,t){return o(K,e)?K[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,s){return t||n||a||s}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ve,ge={};function ye(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),u(t)&&(a=function(e,n){n[t]=V(e)}),n=0;n68?1900:2e3)};var Pe=G("FullYear",!0);function Oe(e,t,n,a,s,r,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,a,s,r,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,a,s,r,i),o}function Ae(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,n){var a=7+t-n;return-(7+Ae(e,0,a).getUTCDay()-t)%7+a-1}function Re(e,t,n,a,s){var r,i,o=1+7*(t-1)+(7+n-a)%7+Ee(e,a,s);return o<=0?i=He(r=e-1)+o:o>He(e)?(r=e+1,i=o-He(e)):(r=e,i=o),{year:r,dayOfYear:i}}function Fe(e,t,n){var a,s,r=Ee(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?a=i+Ie(s=e.year()-1,t,n):i>Ie(e.year(),t,n)?(a=i-Ie(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Ie(e,t,n){var a=Ee(e,t,n),s=Ee(e+1,t,n);return(He(e)-a+s)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),_e("w",ae),_e("ww",ae,Q),_e("W",ae),_e("WW",ae,Q),Me(["w","ww","W","WW"],(function(e,t,n,a){t[a.substr(0,1)]=V(e)})),E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),_e("d",ae),_e("e",ae),_e("E",ae),_e("dd",(function(e,t){return t.weekdaysMinRegex(e)})),_e("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),_e("dddd",(function(e,t){return t.weekdaysRegex(e)})),Me(["dd","ddd","dddd"],(function(e,t,n,a){var s=n._locale.weekdaysParse(e,a,n._strict);null!=s?t.d=s:p(n).invalidWeekday=e})),Me(["d","e","E"],(function(e,t,n,a){t[a]=V(e)}));var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$e="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=he,Be=he,Je=he;function Ve(e,t,n){var a,s,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)r=_([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(s=ve.call(this._weekdaysParse,i))?s:null:"ddd"===t?-1!==(s=ve.call(this._shortWeekdaysParse,i))?s:null:-1!==(s=ve.call(this._minWeekdaysParse,i))?s:null:"dddd"===t?-1!==(s=ve.call(this._weekdaysParse,i))||-1!==(s=ve.call(this._shortWeekdaysParse,i))||-1!==(s=ve.call(this._minWeekdaysParse,i))?s:null:"ddd"===t?-1!==(s=ve.call(this._shortWeekdaysParse,i))||-1!==(s=ve.call(this._weekdaysParse,i))||-1!==(s=ve.call(this._minWeekdaysParse,i))?s:null:-1!==(s=ve.call(this._minWeekdaysParse,i))||-1!==(s=ve.call(this._weekdaysParse,i))||-1!==(s=ve.call(this._shortWeekdaysParse,i))?s:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,a,s,r,i=[],o=[],d=[],l=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),a=fe(this.weekdaysMin(n,"")),s=fe(this.weekdaysShort(n,"")),r=fe(this.weekdays(n,"")),i.push(a),o.push(s),d.push(r),l.push(a),l.push(s),l.push(r);i.sort(e),o.sort(e),d.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ze(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,qe),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+qe.apply(this)+C(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+qe.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),Ze("a",!0),Ze("A",!1),N("hour","h"),U("hour",13),_e("a",Ke),_e("A",Ke),_e("H",ae),_e("h",ae),_e("k",ae),_e("HH",ae,Q),_e("hh",ae,Q),_e("kk",ae,Q),_e("hmm",se),_e("hmmss",re),_e("Hmm",se),_e("Hmmss",re),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var a=V(e);t[3]=24===a?0:a})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=V(e),p(n).bigHour=!0})),ye("hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a)),p(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var a=e.length-4,s=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(s)),p(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var a=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a))})),ye("Hmmss",(function(e,t,n){var a=e.length-4,s=e.length-2;t[3]=V(e.substr(0,a)),t[4]=V(e.substr(a,2)),t[5]=V(e.substr(s))}));var Xe,Qe=G("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:we,week:{dow:0,doy:6},weekdays:We,weekdaysMin:ze,weekdaysShort:$e,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function at(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n0;){if(a=rt(s.slice(0,t).join("-")))return a;if(n&&n.length>=t&&at(s,n)>=t-1)break;t--}r++}return Xe}(e)}function lt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>be(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((-?\d+)/i,ft=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gt(e){var t,n,a,s,r,i,o=e._i,d=ut.exec(o)||ct.exec(o);if(d){for(p(e).iso=!0,t=0,n=ht.length;t7)&&(d=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,l=Fe(Dt(),r,i),n=Lt(t.gg,e._a[0],l.year),a=Lt(t.w,l.week),null!=t.d?((s=t.d)<0||s>6)&&(d=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(d=!0)):s=r),a<1||a>Ie(n,r,i)?p(e)._overflowWeeks=!0:null!=d?p(e)._overflowWeekday=!0:(o=Re(n,a,s,r,i),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(i=Lt(e._a[0],a[0]),(e._dayOfYear>He(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ae(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=a[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Oe).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],p(e).empty=!0;var t,n,a,r,i,o,d=""+e._i,l=d.length,u=0;for(a=F(e._f,e._locale).match(H)||[],t=0;t0&&p(e).unusedInput.push(i),d=d.slice(d.indexOf(n)+n.length),u+=n.length),A[r]?(n?p(e).empty=!1:p(e).unusedTokens.push(r),Le(r,n,e)):e._strict&&!n&&p(e).unusedTokens.push(r);p(e).charsLeftOver=l-u,d.length>0&&p(e).unusedInput.push(d),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(o=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),bt(e),lt(e)}else Mt(e);else gt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new L(lt(t)):(c(t)?e._d=t:r(n)?function(e){var t,n,a,s,r,i,o=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;sthis?this:e:v()}));function St(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],a=1;a=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function on(){var e,t,n=[],a=[],s=[],r=[],i=this.eras();for(e=0,t=i.length;e(r=Ie(e,a,s))&&(t=r),un.call(this,e,t,n,a,s))}function un(e,t,n,a,s){var r=Re(e,t,n,a,s),i=Ae(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),_e("N",rn),_e("NN",rn),_e("NNN",rn),_e("NNNN",(function(e,t){return t.erasNameRegex(e)})),_e("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var s=n._locale.erasParse(e,a,n._strict);s?p(n).era=s:p(n).invalidEra=e})),_e("y",le),_e("yy",le),_e("yyy",le),_e("yyyy",le),_e("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,a){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,s):t[0]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),_e("G",ue),_e("g",ue),_e("GG",ae,Q),_e("gg",ae,Q),_e("GGGG",oe,te),_e("gggg",oe,te),_e("GGGGG",de,ne),_e("ggggg",de,ne),Me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=V(e)})),Me(["gg","GG"],(function(e,t,n,a){t[a]=s.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),_e("Q",X),ye("Q",(function(e,t){t[1]=3*(V(e)-1)})),E("D",["DD",2],"Do","date"),N("date","D"),U("date",9),_e("D",ae),_e("DD",ae,Q),_e("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=V(e.match(ae)[0])}));var cn=G("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),_e("DDD",ie),_e("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),E("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),_e("m",ae),_e("mm",ae,Q),ye(["m","mm"],4);var mn=G("Minutes",!1);E("s",["ss",2],0,"second"),N("second","s"),U("second",15),_e("s",ae),_e("ss",ae,Q),ye(["s","ss"],5);var hn,_n,pn=G("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),U("millisecond",16),_e("S",ie,X),_e("SS",ie,Q),_e("SSS",ie,ee),hn="SSSS";hn.length<=9;hn+="S")_e(hn,le);function fn(e,t){t[6]=V(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ye(hn,fn);_n=G("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var vn=L.prototype;function gn(e){return e}vn.add=Vt,vn.calendar=function(e,t){1===arguments.length&&(Zt(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||Dt(),a=Rt(n,this).startOf("day"),r=s.calendarFormat(this,a)||"sameElse",i=t&&(j(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,Dt(n)))},vn.clone=function(){return new L(this)},vn.diff=function(e,t,n){var a,s,r;if(!this.isValid())return NaN;if(!(a=Rt(e,this)).isValid())return NaN;switch(s=6e4*(a.utcOffset()-this.utcOffset()),t=W(t)){case"year":r=Xt(this,a)/12;break;case"month":r=Xt(this,a);break;case"quarter":r=Xt(this,a)/3;break;case"second":r=(this-a)/1e3;break;case"minute":r=(this-a)/6e4;break;case"hour":r=(this-a)/36e5;break;case"day":r=(this-a-s)/864e5;break;case"week":r=(this-a-s)/6048e5;break;default:r=this-a}return n?r:J(r)},vn.endOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:an,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(Dt(),e)},vn.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Dt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(Dt(),e)},vn.get=function(e){return j(this[e=W(e)])?this[e]():this},vn.invalidAt=function(){return p(this).overflow},vn.isAfter=function(e,t){var n=b(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a="moment",s="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=s+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=It,vn.isUTC=It,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=w("dates accessor is deprecated. Use date instead.",cn),vn.months=w("months accessor is deprecated. Use month instead",xe),vn.years=w("years accessor is deprecated. Use year instead",Pe),vn.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=wt(t))._a?(e=t._isUTC?_(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var a,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(a=0;a0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=x.prototype;function Mn(e,t,n,a){var s=dt(),r=_().set(a,t);return s[n](r,e)}function Ln(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var a,s=[];for(a=0;a<12;a++)s[a]=Mn(e,a,n,"month");return s}function bn(e,t,n,a){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var s,r=dt(),i=e?r._week.dow:0,o=[];if(null!=n)return Mn(t,(n+i)%7,a,"day");for(s=0;s<7;s++)o[s]=Mn(t,(s+i)%7,a,"day");return o}yn.calendar=function(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return j(a)?a.call(t,n):a},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=gn,yn.postformat=gn,yn.relativeTime=function(e,t,n,a){var s=this._relativeTime[n];return j(s)?s(e,t,n,a):s.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return j(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)o(e,n)&&(j(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,a,r,i=this._eras||dt("en")._eras;for(n=0,a=i.length;n=0)return d[a]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ye).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ye.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var a,s,r;if(this._monthsParseExact)return je.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(s=_([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},yn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var a,s,r;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(s=_([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=w("moment.lang is deprecated. Use moment.locale instead.",it),s.langData=w("moment.langData is deprecated. Use moment.localeData instead.",dt);var kn=Math.abs;function wn(e,t,n,a){var s=$t(t,n);return e._milliseconds+=a*s._milliseconds,e._days+=a*s._days,e._months+=a*s._months,e._bubble()}function Yn(e){return e<0?Math.floor(e):Math.ceil(e)}function Dn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function jn(e){return function(){return this.as(e)}}var Sn=jn("ms"),xn=jn("s"),Cn=jn("m"),Hn=jn("h"),Pn=jn("d"),On=jn("w"),An=jn("M"),En=jn("Q"),Rn=jn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var In=Fn("milliseconds"),Nn=Fn("seconds"),Wn=Fn("minutes"),$n=Fn("hours"),zn=Fn("days"),Un=Fn("months"),Bn=Fn("years"),Jn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,a,s){return s.relativeTime(t||1,!!n,e,a)}var qn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,s,r,i,o,d=qn(this._milliseconds)/1e3,l=qn(this._days),u=qn(this._months),c=this.asSeconds();return c?(e=J(d/60),t=J(e/60),d%=60,e%=60,n=J(u/12),u%=12,a=d?d.toFixed(3).replace(/\.?0+$/,""):"",s=c<0?"-":"",r=Zn(this._months)!==Zn(c)?"-":"",i=Zn(this._days)!==Zn(c)?"-":"",o=Zn(this._milliseconds)!==Zn(c)?"-":"",s+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(l?i+l+"D":"")+(t||e||d?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(d?o+a+"S":"")):"P0D"}var Xn=Ct.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Xn.add=function(e,t){return wn(this,e,t,1)},Xn.subtract=function(e,t){return wn(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=W(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+Dn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Sn,Xn.asSeconds=xn,Xn.asMinutes=Cn,Xn.asHours=Hn,Xn.asDays=Pn,Xn.asWeeks=On,Xn.asMonths=An,Xn.asQuarters=En,Xn.asYears=Rn,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Xn._bubble=function(){var e,t,n,a,s,r=this._milliseconds,i=this._days,o=this._months,d=this._data;return r>=0&&i>=0&&o>=0||r<=0&&i<=0&&o<=0||(r+=864e5*Yn(Tn(o)+i),i=0,o=0),d.milliseconds=r%1e3,e=J(r/1e3),d.seconds=e%60,t=J(e/60),d.minutes=t%60,n=J(t/60),d.hours=n%24,i+=J(n/24),s=J(Dn(i)),o+=s,i-=Yn(Tn(s)),a=J(o/12),o%=12,d.days=i,d.months=o,d.years=a,this},Xn.clone=function(){return $t(this)},Xn.get=function(e){return e=W(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=In,Xn.seconds=Nn,Xn.minutes=Wn,Xn.hours=$n,Xn.days=zn,Xn.weeks=function(){return J(this.days()/7)},Xn.months=Un,Xn.years=Bn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,a,s=!1,r=Vn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(r=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=this.localeData(),a=function(e,t,n,a){var s=$t(e).abs(),r=Jn(s.as("s")),i=Jn(s.as("m")),o=Jn(s.as("h")),d=Jn(s.as("d")),l=Jn(s.as("M")),u=Jn(s.as("w")),c=Jn(s.as("y")),m=r<=n.ss&&["s",r]||r0,m[4]=a,Gn.apply(null,m)}(this,!s,r,n),s&&(a=n.pastFuture(+this,a)),n.postformat(a)},Xn.toISOString=Kn,Xn.toString=Kn,Xn.toJSON=Kn,Xn.locale=Qt,Xn.localeData=tn,Xn.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Xn.lang=en,E("X",0,0,"unix"),E("x",0,0,"valueOf"),_e("x",ue),_e("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(V(e))})), //! moment.js -s.version="2.25.3",t=Dt,s.fn=vn,s.min=function(){var e=[].slice.call(arguments,0);return St("isBefore",e)},s.max=function(){var e=[].slice.call(arguments,0);return St("isAfter",e)},s.now=function(){return Date.now?Date.now():+new Date},s.utc=h,s.unix=function(e){return Dt(1e3*e)},s.months=function(e,t){return Ln(e,t,"months")},s.isDate=c,s.locale=it,s.invalid=v,s.duration=$t,s.isMoment=b,s.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},s.parseZone=function(){return Dt.apply(null,arguments).parseZone()},s.localeData=dt,s.isDuration=Ht,s.monthsShort=function(e,t){return Ln(e,t,"monthsShort")},s.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},s.defineLocale=ot,s.updateLocale=function(e,t){if(null!=t){var n,a,s=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(S(tt[e]._config,t)):(null!=(a=rt(e))&&(s=a._config),t=S(s,t),null==a&&(t.abbr=e),(n=new x(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},s.locales=function(){return Y(tt)},s.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},s.normalizeUnits=W,s.relativeTimeRounding=function(e){return void 0===e?Bn:"function"==typeof e&&(Bn=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},s.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},s.prototype=vn,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/process/browser.js":function(e,t){var n,a,s=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{a="function"==typeof clearTimeout?clearTimeout:i}catch(e){a=i}}();var d,l=[],u=!1,c=-1;function m(){u&&d&&(u=!1,d.length?l=d.concat(l):c=-1,l.length&&_())}function _(){if(!u){var e=o(m);u=!0;for(var t=l.length;t;){for(d=l,l=[];++c1)for(var n=1;n=0;--s){var r=this.tryEntries[s],i=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var o=n.call(r,"catchLoc"),d=n.call(r,"finallyLoc");if(o&&d){if(this.prev=0;--a){var s=this.tryEntries[a];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var s=a.arg;L(n)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},"./node_modules/rematrix/dist/rematrix.es.js":function(e,t,n){"use strict"; +s.version="2.25.3",t=Dt,s.fn=vn,s.min=function(){var e=[].slice.call(arguments,0);return St("isBefore",e)},s.max=function(){var e=[].slice.call(arguments,0);return St("isAfter",e)},s.now=function(){return Date.now?Date.now():+new Date},s.utc=_,s.unix=function(e){return Dt(1e3*e)},s.months=function(e,t){return Ln(e,t,"months")},s.isDate=c,s.locale=it,s.invalid=v,s.duration=$t,s.isMoment=b,s.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},s.parseZone=function(){return Dt.apply(null,arguments).parseZone()},s.localeData=dt,s.isDuration=Ht,s.monthsShort=function(e,t){return Ln(e,t,"monthsShort")},s.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},s.defineLocale=ot,s.updateLocale=function(e,t){if(null!=t){var n,a,s=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(S(tt[e]._config,t)):(null!=(a=rt(e))&&(s=a._config),t=S(s,t),null==a&&(t.abbr=e),(n=new x(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},s.locales=function(){return Y(tt)},s.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},s.normalizeUnits=W,s.relativeTimeRounding=function(e){return void 0===e?Jn:"function"==typeof e&&(Jn=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},s.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},s.prototype=vn,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()}).call(this,n("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/process/browser.js":function(e,t){var n,a,s=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{a="function"==typeof clearTimeout?clearTimeout:i}catch(e){a=i}}();var d,l=[],u=!1,c=-1;function m(){u&&d&&(u=!1,d.length?l=d.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=o(m);u=!0;for(var t=l.length;t;){for(d=l,l=[];++c1)for(var n=1;n=0;--s){var r=this.tryEntries[s],i=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var o=n.call(r,"catchLoc"),d=n.call(r,"finallyLoc");if(o&&d){if(this.prev=0;--a){var s=this.tryEntries[a];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var s=a.arg;L(n)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},"./node_modules/rematrix/dist/rematrix.es.js":function(e,t,n){"use strict"; /*! @license Rematrix v0.7.0 Copyright 2020 Julian Lloyd. @@ -287,27 +287,27 @@ s.version="2.25.3",t=Dt,s.fn=vn,s.min=function(){var e=[].slice.call(arguments,0 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -function a(e){if(e&&e.constructor===Array){var t=e.filter((function(e){return"number"==typeof e})).filter((function(e){return!isNaN(e)}));if(6===e.length&&6===t.length){var n=r();return n[0]=t[0],n[1]=t[1],n[4]=t[2],n[5]=t[3],n[12]=t[4],n[13]=t[5],n}if(16===e.length&&16===t.length)return e}throw new TypeError("Expected a `number[]` with length 6 or 16.")}function s(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return a(t[2].split(", ").map(parseFloat))}throw new TypeError("Expected a string containing `matrix()` or `matrix3d()")}function r(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function i(e){var t=a(e),n=t[0]*t[5]-t[4]*t[1],s=t[0]*t[6]-t[4]*t[2],r=t[0]*t[7]-t[4]*t[3],i=t[1]*t[6]-t[5]*t[2],o=t[1]*t[7]-t[5]*t[3],d=t[2]*t[7]-t[6]*t[3],l=t[10]*t[15]-t[14]*t[11],u=t[9]*t[15]-t[13]*t[11],c=t[9]*t[14]-t[13]*t[10],m=t[8]*t[15]-t[12]*t[11],_=t[8]*t[14]-t[12]*t[10],h=t[8]*t[13]-t[12]*t[9],p=1/(n*l-s*u+r*c+i*m-o*_+d*h);if(isNaN(p)||p===1/0)throw new Error("Inverse determinant attempted to divide by zero.");return[(t[5]*l-t[6]*u+t[7]*c)*p,(-t[1]*l+t[2]*u-t[3]*c)*p,(t[13]*d-t[14]*o+t[15]*i)*p,(-t[9]*d+t[10]*o-t[11]*i)*p,(-t[4]*l+t[6]*m-t[7]*_)*p,(t[0]*l-t[2]*m+t[3]*_)*p,(-t[12]*d+t[14]*r-t[15]*s)*p,(t[8]*d-t[10]*r+t[11]*s)*p,(t[4]*u-t[5]*m+t[7]*h)*p,(-t[0]*u+t[1]*m-t[3]*h)*p,(t[12]*o-t[13]*r+t[15]*n)*p,(-t[8]*o+t[9]*r-t[11]*n)*p,(-t[4]*c+t[5]*_-t[6]*h)*p,(t[0]*c-t[1]*_+t[2]*h)*p,(-t[12]*i+t[13]*s-t[14]*n)*p,(t[8]*i-t[9]*s+t[10]*n)*p]}function o(e,t){for(var n=a(e),s=a(t),r=[],i=0;i<4;i++)for(var o=[n[i],n[i+4],n[i+8],n[i+12]],d=0;d<4;d++){var l=4*d,u=[s[l],s[l+1],s[l+2],s[l+3]],c=o[0]*u[0]+o[1]*u[1]+o[2]*u[2]+o[3]*u[3];r[i+l]=c}return r}function d(e){var t=r();return t[11]=-1/e,t}function l(e){return m(e)}function u(e){var t=Math.PI/180*e,n=r();return n[5]=n[10]=Math.cos(t),n[6]=n[9]=Math.sin(t),n[9]*=-1,n}function c(e){var t=Math.PI/180*e,n=r();return n[0]=n[10]=Math.cos(t),n[2]=n[8]=Math.sin(t),n[2]*=-1,n}function m(e){var t=Math.PI/180*e,n=r();return n[0]=n[5]=Math.cos(t),n[1]=n[4]=Math.sin(t),n[4]*=-1,n}function _(e,t){var n=r();return n[0]=e,n[5]="number"==typeof t?t:e,n}function h(e){var t=r();return t[0]=e,t}function p(e){var t=r();return t[5]=e,t}function f(e){var t=r();return t[10]=e,t}function v(e,t){var n=Math.PI/180*e,a=r();if(a[4]=Math.tan(n),t){var s=Math.PI/180*t;a[1]=Math.tan(s)}return a}function g(e){var t=Math.PI/180*e,n=r();return n[4]=Math.tan(t),n}function y(e){var t=Math.PI/180*e,n=r();return n[1]=Math.tan(t),n}function M(e){return"matrix3d("+a(e).join(", ")+")"}function L(e,t){var n=r();return n[12]=e,t&&(n[13]=t),n}function b(e,t,n){var a=r();return void 0!==e&&void 0!==t&&void 0!==n&&(a[12]=e,a[13]=t,a[14]=n),a}function k(e){var t=r();return t[12]=e,t}function w(e){var t=r();return t[13]=e,t}function Y(e){var t=r();return t[14]=e,t}n.r(t),n.d(t,"format",(function(){return a})),n.d(t,"fromString",(function(){return s})),n.d(t,"identity",(function(){return r})),n.d(t,"inverse",(function(){return i})),n.d(t,"multiply",(function(){return o})),n.d(t,"perspective",(function(){return d})),n.d(t,"rotate",(function(){return l})),n.d(t,"rotateX",(function(){return u})),n.d(t,"rotateY",(function(){return c})),n.d(t,"rotateZ",(function(){return m})),n.d(t,"scale",(function(){return _})),n.d(t,"scaleX",(function(){return h})),n.d(t,"scaleY",(function(){return p})),n.d(t,"scaleZ",(function(){return f})),n.d(t,"skew",(function(){return v})),n.d(t,"skewX",(function(){return g})),n.d(t,"skewY",(function(){return y})),n.d(t,"toString",(function(){return M})),n.d(t,"translate",(function(){return L})),n.d(t,"translate3d",(function(){return b})),n.d(t,"translateX",(function(){return k})),n.d(t,"translateY",(function(){return w})),n.d(t,"translateZ",(function(){return Y}))},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var a,s,r,i,o,d=1,l={},u=!1,c=e.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(e);m=m&&m.setTimeout?m:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},a=function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(s=c.documentElement,a=function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):a=function(e){setTimeout(h,0,e)}:(i="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&h(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),a=function(t){e.postMessage(i+t,"*")}),m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-croppa/dist/vue-croppa.js":function(e,t,n){(function(t){var n;n=function(){"use strict";"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports={drawImage:function(e,t,n,a,s,r){if(!/^[1-8]$/.test(t))throw new Error("orientation should be [1-8]");null==n&&(n=0),null==a&&(a=0),null==s&&(s=e.width),null==r&&(r=e.height);var i=document.createElement("canvas"),o=i.getContext("2d");switch(i.width=s,i.height=r,o.save(),+t){case 1:break;case 2:o.translate(s,0),o.scale(-1,1);break;case 3:o.translate(s,r),o.rotate(1*Math.PI);break;case 4:o.translate(0,r),o.scale(1,-1);break;case 5:i.width=r,i.height=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:i.width=r,i.height=s,o.rotate(.5*Math.PI),o.translate(0,-r);break;case 7:i.width=r,i.height=s,o.rotate(1.5*Math.PI),o.translate(-s,r),o.scale(1,-1);break;case 8:i.width=r,i.height=s,o.translate(0,s),o.rotate(1.5*Math.PI)}return o.drawImage(e,n,a,s,r),o.restore(),i}}})),n={onePointCoord:function(e,t){var n=t.canvas,a=t.quality,s=n.getBoundingClientRect(),r=e.clientX,i=e.clientY;return{x:(r-s.left)*a,y:(i-s.top)*a}},getPointerCoords:function(e,t){var n=void 0;return n=e.touches&&e.touches[0]?e.touches[0]:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0]:e,this.onePointCoord(n,t)},getPinchDistance:function(e,t){var n=e.touches[0],a=e.touches[1],s=this.onePointCoord(n,t),r=this.onePointCoord(a,t);return Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2))},getPinchCenterCoord:function(e,t){var n=e.touches[0],a=e.touches[1],s=this.onePointCoord(n,t),r=this.onePointCoord(a,t);return{x:(s.x+r.x)/2,y:(s.y+r.y)/2}},imageLoaded:function(e){return e.complete&&0!==e.naturalWidth},rAFPolyfill:function(){if("undefined"!=typeof document&&"undefined"!=typeof window){for(var e=0,t=["webkit","moz"],n=0;n0}},height:{type:Number,default:200,validator:function(e){return e>0}},placeholder:{type:String,default:"Choose an image"},placeholderColor:{default:"#606060"},placeholderFontSize:{type:Number,default:0,validator:function(e){return e>=0}},canvasColor:{default:"transparent"},quality:{type:Number,default:2,validator:function(e){return e>0}},zoomSpeed:{default:3,type:Number,validator:function(e){return e>0}},accept:String,fileSizeLimit:{type:Number,default:0,validator:function(e){return e>=0}},disabled:Boolean,disableDragAndDrop:Boolean,disableClickToChoose:Boolean,disableDragToMove:Boolean,disableScrollToZoom:Boolean,disablePinchToZoom:Boolean,disableRotation:Boolean,reverseScrollToZoom:Boolean,preventWhiteSpace:Boolean,showRemoveButton:{type:Boolean,default:!0},removeButtonColor:{type:String,default:"red"},removeButtonSize:{type:Number},initialImage:a,initialSize:{type:String,default:"cover",validator:function(e){return"cover"===e||"contain"===e||"natural"===e}},initialPosition:{type:String,default:"center",validator:function(e){var t=["center","top","bottom","left","right"];return e.split(" ").every((function(e){return t.indexOf(e)>=0}))||/^-?\d+% -?\d+%$/.test(e)}},inputAttrs:Object,showLoading:Boolean,loadingSize:{type:Number,default:20},loadingColor:{type:String,default:"#606060"},replaceDrop:Boolean,passive:Boolean,imageBorderRadius:{type:[Number,String],default:0},autoSizing:Boolean,videoEnabled:Boolean},r="init",i="file-choose",o="file-size-exceed",d="file-type-mismatch",l="new-image",u="new-image-drawn",c="image-remove",m="move",_="zoom",h="draw",p="initial-image-loaded",f="loading-start",v="loading-end",g="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},y=["imgData","img","imgSet","originalImage","naturalHeight","naturalWidth","orientation","scaleRatio"],M={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"wrapper",class:"croppa-container "+(e.img?"croppa--has-target":"")+" "+(e.passive?"croppa--passive":"")+" "+(e.disabled?"croppa--disabled":"")+" "+(e.disableClickToChoose?"croppa--disabled-cc":"")+" "+(e.disableDragToMove&&e.disableScrollToZoom?"croppa--disabled-mz":"")+" "+(e.fileDraggedOver?"croppa--dropzone":""),on:{dragenter:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDragEnter(t)},dragleave:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDragLeave(t)},dragover:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDragOver(t)},drop:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDrop(t)}}},[n("input",e._b({ref:"fileInput",staticStyle:{height:"1px",width:"1px",overflow:"hidden","margin-left":"-99999px",position:"absolute"},attrs:{type:"file",accept:e.accept,disabled:e.disabled},on:{change:e._handleInputChange}},"input",e.inputAttrs,!1)),e._v(" "),n("div",{staticClass:"slots",staticStyle:{width:"0",height:"0",visibility:"hidden"}},[e._t("initial"),e._v(" "),e._t("placeholder")],2),e._v(" "),n("canvas",{ref:"canvas",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e._handleClick(t)},dblclick:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDblClick(t)},touchstart:function(t){return t.stopPropagation(),e._handlePointerStart(t)},mousedown:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerStart(t)},pointerstart:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerStart(t)},touchend:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},touchcancel:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},mouseup:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},pointerend:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},pointercancel:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},touchmove:function(t){return t.stopPropagation(),e._handlePointerMove(t)},mousemove:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerMove(t)},pointermove:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerMove(t)},pointerleave:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerLeave(t)},DOMMouseScroll:function(t){return t.stopPropagation(),e._handleWheel(t)},wheel:function(t){return t.stopPropagation(),e._handleWheel(t)},mousewheel:function(t){return t.stopPropagation(),e._handleWheel(t)}}}),e._v(" "),e.showRemoveButton&&e.img&&!e.passive?n("svg",{staticClass:"icon icon-remove",style:"top: -"+e.height/40+"px; right: -"+e.width/40+"px",attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:e.removeButtonSize||e.width/10,height:e.removeButtonSize||e.width/10},on:{click:e.remove}},[n("path",{attrs:{d:"M511.921231 0C229.179077 0 0 229.257846 0 512 0 794.702769 229.179077 1024 511.921231 1024 794.781538 1024 1024 794.702769 1024 512 1024 229.257846 794.781538 0 511.921231 0ZM732.041846 650.633846 650.515692 732.081231C650.515692 732.081231 521.491692 593.683692 511.881846 593.683692 502.429538 593.683692 373.366154 732.081231 373.366154 732.081231L291.761231 650.633846C291.761231 650.633846 430.316308 523.500308 430.316308 512.196923 430.316308 500.696615 291.761231 373.523692 291.761231 373.523692L373.366154 291.918769C373.366154 291.918769 503.453538 430.395077 511.881846 430.395077 520.349538 430.395077 650.515692 291.918769 650.515692 291.918769L732.041846 373.523692C732.041846 373.523692 593.447385 502.547692 593.447385 512.196923 593.447385 521.412923 732.041846 650.633846 732.041846 650.633846Z",fill:e.removeButtonColor}})]):e._e(),e._v(" "),e.showLoading&&e.loading?n("div",{staticClass:"sk-fading-circle",style:e.loadingStyle},e._l(12,(function(t){return n("div",{key:t,class:"sk-circle"+t+" sk-circle"},[n("div",{staticClass:"sk-circle-indicator",style:{backgroundColor:e.loadingColor}})])}))):e._e(),e._v(" "),e._t("default")],2)},staticRenderFns:[],model:{prop:"value",event:r},props:s,data:function(){return{canvas:null,ctx:null,originalImage:null,img:null,video:null,dragging:!1,lastMovingCoord:null,imgData:{width:0,height:0,startX:0,startY:0},fileDraggedOver:!1,tabStart:0,scrolling:!1,pinching:!1,rotating:!1,pinchDistance:0,supportTouch:!1,pointerMoved:!1,pointerStartCoord:null,naturalWidth:0,naturalHeight:0,scaleRatio:null,orientation:1,userMetadata:null,imageSet:!1,currentPointerCoord:null,currentIsInitial:!1,loading:!1,realWidth:0,realHeight:0,chosenFile:null,useAutoSizing:!1}},computed:{outputWidth:function(){return(this.useAutoSizing?this.realWidth:this.width)*this.quality},outputHeight:function(){return(this.useAutoSizing?this.realHeight:this.height)*this.quality},computedPlaceholderFontSize:function(){return this.placeholderFontSize*this.quality},aspectRatio:function(){return this.naturalWidth/this.naturalHeight},loadingStyle:function(){return{width:this.loadingSize+"px",height:this.loadingSize+"px",right:"15px",bottom:"10px"}}},mounted:function(){var e=this;this._initialize(),n.rAFPolyfill(),n.toBlobPolyfill(),this.supportDetection().basic||console.warn("Your browser does not support vue-croppa functionality."),this.passive&&this.$watch("value._data",(function(t){var n=!1;if(t){for(var a in t)if(y.indexOf(a)>=0){var s=t[a];s!==e[a]&&(e.$set(e,a,s),n=!0)}n&&(e.img?e.$nextTick((function(){e._draw()})):e.remove())}}),{deep:!0}),this.useAutoSizing=!!(this.autoSizing&&this.$refs.wrapper&&getComputedStyle),this.useAutoSizing&&this._autoSizingInit()},beforeDestroy:function(){this.useAutoSizing&&this._autoSizingRemove()},watch:{outputWidth:function(){this.onDimensionChange()},outputHeight:function(){this.onDimensionChange()},canvasColor:function(){this.img?this._draw():this._setPlaceholders()},imageBorderRadius:function(){this.img&&this._draw()},placeholder:function(){this.img||this._setPlaceholders()},placeholderColor:function(){this.img||this._setPlaceholders()},computedPlaceholderFontSize:function(){this.img||this._setPlaceholders()},preventWhiteSpace:function(e){e&&(this.imageSet=!1),this._placeImage()},scaleRatio:function(e,t){if(!this.passive&&this.img&&n.numberValid(e)){var a=1;n.numberValid(t)&&0!==t&&(a=e/t);var s=this.currentPointerCoord||{x:this.imgData.startX+this.imgData.width/2,y:this.imgData.startY+this.imgData.height/2};if(this.imgData.width=this.naturalWidth*e,this.imgData.height=this.naturalHeight*e,!this.userMetadata&&this.imageSet&&!this.rotating){var r=(a-1)*(s.x-this.imgData.startX),i=(a-1)*(s.y-this.imgData.startY);this.imgData.startX=this.imgData.startX-r,this.imgData.startY=this.imgData.startY-i}this.preventWhiteSpace&&(this._preventZoomingToWhiteSpace(),this._preventMovingToWhiteSpace())}},"imgData.width":function(e,t){n.numberValid(e)&&(this.scaleRatio=e/this.naturalWidth,this.hasImage()&&Math.abs(e-t)>1e-5*e&&(this.emitEvent(_),this._draw()))},"imgData.height":function(e){n.numberValid(e)&&(this.scaleRatio=e/this.naturalHeight)},"imgData.startX":function(e){this.hasImage()&&this.$nextTick(this._draw)},"imgData.startY":function(e){this.hasImage()&&this.$nextTick(this._draw)},loading:function(e){this.passive||(e?this.emitEvent(f):this.emitEvent(v))},autoSizing:function(e){this.useAutoSizing=!!(this.autoSizing&&this.$refs.wrapper&&getComputedStyle),e?this._autoSizingInit():this._autoSizingRemove()}},methods:{emitEvent:function(){this.$emit.apply(this,arguments)},getCanvas:function(){return this.canvas},getContext:function(){return this.ctx},getChosenFile:function(){return this.chosenFile||this.$refs.fileInput.files[0]},move:function(e){if(e&&!this.passive){var t=this.imgData.startX,n=this.imgData.startY;this.imgData.startX+=e.x,this.imgData.startY+=e.y,this.preventWhiteSpace&&this._preventMovingToWhiteSpace(),this.imgData.startX===t&&this.imgData.startY===n||(this.emitEvent(m),this._draw())}},moveUpwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:0,y:-e})},moveDownwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:0,y:e})},moveLeftwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:-e,y:0})},moveRightwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:e,y:0})},zoom:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!this.passive){var n=this.zoomSpeed*t,a=1e-5*this.outputWidth*n,s=1;e?s=1+a:this.imgData.width>10&&(s=1-a),this.scaleRatio*=s}},zoomIn:function(){this.zoom(!0)},zoomOut:function(){this.zoom(!1)},rotate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.disableRotation||this.disabled||this.passive||(e=parseInt(e),(isNaN(e)||e>3||e<-3)&&(console.warn("Invalid argument for rotate() method. It should one of the integers from -3 to 3."),e=1),this._rotateByStep(e))},flipX:function(){this.disableRotation||this.disabled||this.passive||this._setOrientation(2)},flipY:function(){this.disableRotation||this.disabled||this.passive||this._setOrientation(4)},refresh:function(){this.$nextTick(this._initialize)},hasImage:function(){return!!this.imageSet},applyMetadata:function(e){if(e&&!this.passive){this.userMetadata=e;var t=e.orientation||this.orientation||1;this._setOrientation(t,!0)}},generateDataUrl:function(e,t){return this.hasImage()?this.canvas.toDataURL(e,t):""},generateBlob:function(e,t,n){this.hasImage()?this.canvas.toBlob(e,t,n):e(null)},promisedBlob:function(){for(var e=this,t=arguments.length,n=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];this.imageSet&&this.remove(),this.originalImage=e,this.img=e,isNaN(t)&&(t=1),this._setOrientation(t),n&&this.emitEvent(p)},_onVideoLoad:function(e,t){var n=this;this.video=e;var a=document.createElement("canvas"),s=e.videoWidth,r=e.videoHeight;a.width=s,a.height=r;var i=a.getContext("2d");this.loading=!1;var o=function(e){if(n.video){i.drawImage(n.video,0,0,s,r);var t=new Image;t.src=a.toDataURL(),t.onload=function(){n.img=t,e?n._placeImage():n._draw()}}};o(!0);var d=function e(){n.$nextTick((function(){o(),!n.video||n.video.ended||n.video.paused||requestAnimationFrame(e)}))};this.video.addEventListener("play",(function(){requestAnimationFrame(d)}))},_handleClick:function(e){this.emitNativeEvent(e),this.hasImage()||this.disableClickToChoose||this.disabled||this.supportTouch||this.passive||this.chooseFile()},_handleDblClick:function(e){this.emitNativeEvent(e),this.videoEnabled&&this.video&&(this.video.paused||this.video.ended?this.video.play():this.video.pause())},_handleInputChange:function(){var e=this.$refs.fileInput;if(e.files.length&&!this.passive){var t=e.files[0];this._onNewFileIn(t)}},_onNewFileIn:function(e){var t=this;if(this.currentIsInitial=!1,this.loading=!0,this.emitEvent(i,e),this.chosenFile=e,!this._fileSizeIsValid(e))return this.loading=!1,this.emitEvent(o,e),!1;if(!this._fileTypeIsValid(e))return this.loading=!1,this.emitEvent(d,e),e.type||e.name.toLowerCase().split(".").pop(),!1;if("undefined"!=typeof window&&void 0!==window.FileReader){var a=new FileReader;a.onload=function(a){var s=a.target.result,r=n.parseDataUrl(s);if(/^video/.test(e.type)){var i=document.createElement("video");i.src=s,s=null,i.readyState>=i.HAVE_FUTURE_DATA?t._onVideoLoad(i):i.addEventListener("canplay",(function(){console.log("can play event"),t._onVideoLoad(i)}),!1)}else{var o=1;try{o=n.getFileOrientation(n.base64ToArrayBuffer(r))}catch(e){}o<1&&(o=1);var d=new Image;d.src=s,s=null,d.onload=function(){t._onload(d,o),t.emitEvent(l)}}},a.readAsDataURL(e)}},_fileSizeIsValid:function(e){return!!e&&(!this.fileSizeLimit||0==this.fileSizeLimit||e.sizen?(a=t/this.outputHeight,this.imgData.width=e/a,this.imgData.height=this.outputHeight,this.imgData.startX=-(this.imgData.width-this.outputWidth)/2,this.imgData.startY=0):(a=e/this.outputWidth,this.imgData.height=t/a,this.imgData.width=this.outputWidth,this.imgData.startY=-(this.imgData.height-this.outputHeight)/2,this.imgData.startX=0)},_aspectFit:function(){var e=this.naturalWidth,t=this.naturalHeight,n=this.outputWidth/this.outputHeight,a=void 0;this.aspectRatio>n?(a=e/this.outputWidth,this.imgData.height=t/a,this.imgData.width=this.outputWidth,this.imgData.startY=-(this.imgData.height-this.outputHeight)/2,this.imgData.startX=0):(a=t/this.outputHeight,this.imgData.width=e/a,this.imgData.height=this.outputHeight,this.imgData.startX=-(this.imgData.width-this.outputWidth)/2,this.imgData.startY=0)},_naturalSize:function(){var e=this.naturalWidth,t=this.naturalHeight;this.imgData.width=e,this.imgData.height=t,this.imgData.startX=-(this.imgData.width-this.outputWidth)/2,this.imgData.startY=-(this.imgData.height-this.outputHeight)/2},_handlePointerStart:function(e){if(this.emitNativeEvent(e),!this.passive){this.supportTouch=!0,this.pointerMoved=!1;var t=n.getPointerCoords(e,this);if(this.pointerStartCoord=t,!this.disabled)if(this.hasImage()||this.disableClickToChoose){if(!(e.which&&e.which>1)){if(!e.touches||1===e.touches.length){this.dragging=!0,this.pinching=!1;var a=n.getPointerCoords(e,this);this.lastMovingCoord=a}e.touches&&2===e.touches.length&&!this.disablePinchToZoom&&(this.dragging=!1,this.pinching=!0,this.pinchDistance=n.getPinchDistance(e,this));for(var s=["mouseup","touchend","touchcancel","pointerend","pointercancel"],r=0,i=s.length;r0,1),this.pinchDistance=a}}}},_handlePointerLeave:function(e){this.emitNativeEvent(e),this.passive||(this.currentPointerCoord=null)},_handleWheel:function(e){var t=this;this.emitNativeEvent(e),this.passive||this.disabled||this.disableScrollToZoom||!this.hasImage()||(e.preventDefault(),this.scrolling=!0,e.wheelDelta<0||e.deltaY>0||e.detail>0?this.zoom(this.reverseScrollToZoom):(e.wheelDelta>0||e.deltaY<0||e.detail<0)&&this.zoom(!this.reverseScrollToZoom),this.$nextTick((function(){t.scrolling=!1})))},_handleDragEnter:function(e){this.emitNativeEvent(e),this.passive||this.disabled||this.disableDragAndDrop||!n.eventHasFile(e)||this.hasImage()&&!this.replaceDrop||(this.fileDraggedOver=!0)},_handleDragLeave:function(e){this.emitNativeEvent(e),this.passive||this.fileDraggedOver&&n.eventHasFile(e)&&(this.fileDraggedOver=!1)},_handleDragOver:function(e){this.emitNativeEvent(e)},_handleDrop:function(e){if(this.emitNativeEvent(e),!this.passive&&this.fileDraggedOver&&n.eventHasFile(e)&&(!this.hasImage()||this.replaceDrop)){this.fileDraggedOver=!1;var t=void 0,a=e.dataTransfer;if(a){if(a.items)for(var s=0,r=a.items.length;s0&&(this.imgData.startX=0),this.imgData.startY>0&&(this.imgData.startY=0),this.outputWidth-this.imgData.startX>this.imgData.width&&(this.imgData.startX=-(this.imgData.width-this.outputWidth)),this.outputHeight-this.imgData.startY>this.imgData.height&&(this.imgData.startY=-(this.imgData.height-this.outputHeight))},_preventZoomingToWhiteSpace:function(){this.imgData.width0&&void 0!==arguments[0]?arguments[0]:6,a=arguments[1],s=a;if(t>1||s){if(!this.img)return;this.rotating=!0;var r=n.getRotatedImage(s?this.originalImage:this.img,t);r.onload=function(){e.img=r,e._placeImage(a)}}else this._placeImage(a);this.orientation=2==t?n.flipX(this.orientation):4==t?n.flipY(this.orientation):6==t?n.rotate90(this.orientation):3==t?n.rotate90(n.rotate90(this.orientation)):8==t?n.rotate90(n.rotate90(n.rotate90(this.orientation))):t,s&&(this.orientation=t)},_paintBackground:function(){var e=this.canvasColor&&"default"!=this.canvasColor?this.canvasColor:"transparent";this.ctx.fillStyle=e,this.ctx.clearRect(0,0,this.outputWidth,this.outputHeight),this.ctx.fillRect(0,0,this.outputWidth,this.outputHeight)},_draw:function(){var e=this;this.$nextTick((function(){"undefined"!=typeof window&&window.requestAnimationFrame?requestAnimationFrame(e._drawFrame):e._drawFrame()}))},_drawFrame:function(){if(this.img){this.loading=!1;var e=this.ctx,t=this.imgData,n=t.startX,a=t.startY,s=t.width,r=t.height;this._paintBackground(),e.drawImage(this.img,n,a,s,r),this.preventWhiteSpace&&this._clip(this._createContainerClipPath),this.emitEvent(h,e),this.imageSet||(this.imageSet=!0,this.emitEvent(u)),this.rotating=!1}},_clipPathFactory:function(e,t,n,a){var s=this.ctx,r="number"==typeof this.imageBorderRadius?this.imageBorderRadius:isNaN(Number(this.imageBorderRadius))?0:Number(this.imageBorderRadius);s.beginPath(),s.moveTo(e+r,t),s.lineTo(e+n-r,t),s.quadraticCurveTo(e+n,t,e+n,t+r),s.lineTo(e+n,t+a-r),s.quadraticCurveTo(e+n,t+a,e+n-r,t+a),s.lineTo(e+r,t+a),s.quadraticCurveTo(e,t+a,e,t+a-r),s.lineTo(e,t+r),s.quadraticCurveTo(e,t,e+r,t),s.closePath()},_createContainerClipPath:function(){var e=this;this._clipPathFactory(0,0,this.outputWidth,this.outputHeight),this.clipPlugins&&this.clipPlugins.length&&this.clipPlugins.forEach((function(t){t(e.ctx,0,0,e.outputWidth,e.outputHeight)}))},_clip:function(e){var t=this.ctx;t.save(),t.fillStyle="#fff",t.globalCompositeOperation="destination-in",e(),t.fill(),t.restore()},_applyMetadata:function(){var e=this;if(this.userMetadata){var t=this.userMetadata,a=t.startX,s=t.startY,r=t.scale;n.numberValid(a)&&(this.imgData.startX=a),n.numberValid(s)&&(this.imgData.startY=s),n.numberValid(r)&&(this.scaleRatio=r),this.$nextTick((function(){e.userMetadata=null}))}},onDimensionChange:function(){this.img?(this.preventWhiteSpace&&(this.imageSet=!1),this._setSize(),this._placeImage()):this._initialize()}}},L=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;function w(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Y=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=w(e),r=1;r-1&&(i="init"),t.compatible=a[0]>=2,t.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},t.createRecord=function(e,t){if(!s[e]){var n=null;"function"==typeof t&&(t=(n=t).options),o(e,t),s[e]={Ctor:n,options:t,instances:[]}}},t.isRecorded=function(e){return void 0!==s[e]},t.rerender=l((function(e,t){var n=s[e];if(t){if("function"==typeof t&&(t=t.options),n.Ctor)n.Ctor.options.render=t.render,n.Ctor.options.staticRenderFns=t.staticRenderFns,n.instances.slice().forEach((function(e){e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(n.Ctor.options.cached)&&(n.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var a=function(e){if(!e._u)return;var t=e._u;return e._u=function(e){try{return t(e,!0)}catch(n){return t(e,null,!0)}},function(){e._u=t}}(e);e.$forceUpdate(),e.$nextTick(a)}));else if(n.options.render=t.render,n.options.staticRenderFns=t.staticRenderFns,n.options.functional){if(Object.keys(t).length>2)u(n.options,t);else{var a=n.options._injectStyles;if(a){var r=t.render;n.options.render=function(e,t){return a.call(t),r(e,t)}}}n.options._Ctor=null,Array.isArray(n.options.cached)&&(n.options.cached=[]),n.instances.slice().forEach((function(e){e.$forceUpdate()}))}}else n.instances.slice().forEach((function(e){e.$forceUpdate()}))})),t.reload=l((function(e,t){var n=s[e];if(t)if("function"==typeof t&&(t=t.options),o(e,t),n.Ctor){a[1]<2&&(n.Ctor.extendOptions=t);var r=n.Ctor.super.extend(t);r.options._Ctor=n.options._Ctor,n.Ctor.options=r.options,n.Ctor.cid=r.cid,n.Ctor.prototype=r.prototype,r.release&&r.release()}else u(n.options,t);n.instances.slice().forEach((function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")}))}))},"./node_modules/vue-loader/lib/runtime/componentNormalizer.js":function(e,t,n){"use strict";function a(e,t,n,a,s,r,i,o){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),a&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=d):s&&(d=o?function(){s.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:s),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(e,t){return d.call(t),u(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}n.d(t,"a",(function(){return a}))},"./node_modules/vue-router/dist/vue-router.esm.js":function(e,t,n){"use strict"; +function a(e){if(e&&e.constructor===Array){var t=e.filter((function(e){return"number"==typeof e})).filter((function(e){return!isNaN(e)}));if(6===e.length&&6===t.length){var n=r();return n[0]=t[0],n[1]=t[1],n[4]=t[2],n[5]=t[3],n[12]=t[4],n[13]=t[5],n}if(16===e.length&&16===t.length)return e}throw new TypeError("Expected a `number[]` with length 6 or 16.")}function s(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return a(t[2].split(", ").map(parseFloat))}throw new TypeError("Expected a string containing `matrix()` or `matrix3d()")}function r(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function i(e){var t=a(e),n=t[0]*t[5]-t[4]*t[1],s=t[0]*t[6]-t[4]*t[2],r=t[0]*t[7]-t[4]*t[3],i=t[1]*t[6]-t[5]*t[2],o=t[1]*t[7]-t[5]*t[3],d=t[2]*t[7]-t[6]*t[3],l=t[10]*t[15]-t[14]*t[11],u=t[9]*t[15]-t[13]*t[11],c=t[9]*t[14]-t[13]*t[10],m=t[8]*t[15]-t[12]*t[11],h=t[8]*t[14]-t[12]*t[10],_=t[8]*t[13]-t[12]*t[9],p=1/(n*l-s*u+r*c+i*m-o*h+d*_);if(isNaN(p)||p===1/0)throw new Error("Inverse determinant attempted to divide by zero.");return[(t[5]*l-t[6]*u+t[7]*c)*p,(-t[1]*l+t[2]*u-t[3]*c)*p,(t[13]*d-t[14]*o+t[15]*i)*p,(-t[9]*d+t[10]*o-t[11]*i)*p,(-t[4]*l+t[6]*m-t[7]*h)*p,(t[0]*l-t[2]*m+t[3]*h)*p,(-t[12]*d+t[14]*r-t[15]*s)*p,(t[8]*d-t[10]*r+t[11]*s)*p,(t[4]*u-t[5]*m+t[7]*_)*p,(-t[0]*u+t[1]*m-t[3]*_)*p,(t[12]*o-t[13]*r+t[15]*n)*p,(-t[8]*o+t[9]*r-t[11]*n)*p,(-t[4]*c+t[5]*h-t[6]*_)*p,(t[0]*c-t[1]*h+t[2]*_)*p,(-t[12]*i+t[13]*s-t[14]*n)*p,(t[8]*i-t[9]*s+t[10]*n)*p]}function o(e,t){for(var n=a(e),s=a(t),r=[],i=0;i<4;i++)for(var o=[n[i],n[i+4],n[i+8],n[i+12]],d=0;d<4;d++){var l=4*d,u=[s[l],s[l+1],s[l+2],s[l+3]],c=o[0]*u[0]+o[1]*u[1]+o[2]*u[2]+o[3]*u[3];r[i+l]=c}return r}function d(e){var t=r();return t[11]=-1/e,t}function l(e){return m(e)}function u(e){var t=Math.PI/180*e,n=r();return n[5]=n[10]=Math.cos(t),n[6]=n[9]=Math.sin(t),n[9]*=-1,n}function c(e){var t=Math.PI/180*e,n=r();return n[0]=n[10]=Math.cos(t),n[2]=n[8]=Math.sin(t),n[2]*=-1,n}function m(e){var t=Math.PI/180*e,n=r();return n[0]=n[5]=Math.cos(t),n[1]=n[4]=Math.sin(t),n[4]*=-1,n}function h(e,t){var n=r();return n[0]=e,n[5]="number"==typeof t?t:e,n}function _(e){var t=r();return t[0]=e,t}function p(e){var t=r();return t[5]=e,t}function f(e){var t=r();return t[10]=e,t}function v(e,t){var n=Math.PI/180*e,a=r();if(a[4]=Math.tan(n),t){var s=Math.PI/180*t;a[1]=Math.tan(s)}return a}function g(e){var t=Math.PI/180*e,n=r();return n[4]=Math.tan(t),n}function y(e){var t=Math.PI/180*e,n=r();return n[1]=Math.tan(t),n}function M(e){return"matrix3d("+a(e).join(", ")+")"}function L(e,t){var n=r();return n[12]=e,t&&(n[13]=t),n}function b(e,t,n){var a=r();return void 0!==e&&void 0!==t&&void 0!==n&&(a[12]=e,a[13]=t,a[14]=n),a}function k(e){var t=r();return t[12]=e,t}function w(e){var t=r();return t[13]=e,t}function Y(e){var t=r();return t[14]=e,t}n.r(t),n.d(t,"format",(function(){return a})),n.d(t,"fromString",(function(){return s})),n.d(t,"identity",(function(){return r})),n.d(t,"inverse",(function(){return i})),n.d(t,"multiply",(function(){return o})),n.d(t,"perspective",(function(){return d})),n.d(t,"rotate",(function(){return l})),n.d(t,"rotateX",(function(){return u})),n.d(t,"rotateY",(function(){return c})),n.d(t,"rotateZ",(function(){return m})),n.d(t,"scale",(function(){return h})),n.d(t,"scaleX",(function(){return _})),n.d(t,"scaleY",(function(){return p})),n.d(t,"scaleZ",(function(){return f})),n.d(t,"skew",(function(){return v})),n.d(t,"skewX",(function(){return g})),n.d(t,"skewY",(function(){return y})),n.d(t,"toString",(function(){return M})),n.d(t,"translate",(function(){return L})),n.d(t,"translate3d",(function(){return b})),n.d(t,"translateX",(function(){return k})),n.d(t,"translateY",(function(){return w})),n.d(t,"translateZ",(function(){return Y}))},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var a,s,r,i,o,d=1,l={},u=!1,c=e.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(e);m=m&&m.setTimeout?m:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick((function(){_(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){_(e.data)},a=function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(s=c.documentElement,a=function(e){var t=c.createElement("script");t.onreadystatechange=function(){_(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):a=function(e){setTimeout(_,0,e)}:(i="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&_(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),a=function(t){e.postMessage(i+t,"*")}),m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-croppa/dist/vue-croppa.js":function(e,t,n){(function(t){var n;n=function(){"use strict";"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports={drawImage:function(e,t,n,a,s,r){if(!/^[1-8]$/.test(t))throw new Error("orientation should be [1-8]");null==n&&(n=0),null==a&&(a=0),null==s&&(s=e.width),null==r&&(r=e.height);var i=document.createElement("canvas"),o=i.getContext("2d");switch(i.width=s,i.height=r,o.save(),+t){case 1:break;case 2:o.translate(s,0),o.scale(-1,1);break;case 3:o.translate(s,r),o.rotate(1*Math.PI);break;case 4:o.translate(0,r),o.scale(1,-1);break;case 5:i.width=r,i.height=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:i.width=r,i.height=s,o.rotate(.5*Math.PI),o.translate(0,-r);break;case 7:i.width=r,i.height=s,o.rotate(1.5*Math.PI),o.translate(-s,r),o.scale(1,-1);break;case 8:i.width=r,i.height=s,o.translate(0,s),o.rotate(1.5*Math.PI)}return o.drawImage(e,n,a,s,r),o.restore(),i}}})),n={onePointCoord:function(e,t){var n=t.canvas,a=t.quality,s=n.getBoundingClientRect(),r=e.clientX,i=e.clientY;return{x:(r-s.left)*a,y:(i-s.top)*a}},getPointerCoords:function(e,t){var n=void 0;return n=e.touches&&e.touches[0]?e.touches[0]:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0]:e,this.onePointCoord(n,t)},getPinchDistance:function(e,t){var n=e.touches[0],a=e.touches[1],s=this.onePointCoord(n,t),r=this.onePointCoord(a,t);return Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2))},getPinchCenterCoord:function(e,t){var n=e.touches[0],a=e.touches[1],s=this.onePointCoord(n,t),r=this.onePointCoord(a,t);return{x:(s.x+r.x)/2,y:(s.y+r.y)/2}},imageLoaded:function(e){return e.complete&&0!==e.naturalWidth},rAFPolyfill:function(){if("undefined"!=typeof document&&"undefined"!=typeof window){for(var e=0,t=["webkit","moz"],n=0;n0}},height:{type:Number,default:200,validator:function(e){return e>0}},placeholder:{type:String,default:"Choose an image"},placeholderColor:{default:"#606060"},placeholderFontSize:{type:Number,default:0,validator:function(e){return e>=0}},canvasColor:{default:"transparent"},quality:{type:Number,default:2,validator:function(e){return e>0}},zoomSpeed:{default:3,type:Number,validator:function(e){return e>0}},accept:String,fileSizeLimit:{type:Number,default:0,validator:function(e){return e>=0}},disabled:Boolean,disableDragAndDrop:Boolean,disableClickToChoose:Boolean,disableDragToMove:Boolean,disableScrollToZoom:Boolean,disablePinchToZoom:Boolean,disableRotation:Boolean,reverseScrollToZoom:Boolean,preventWhiteSpace:Boolean,showRemoveButton:{type:Boolean,default:!0},removeButtonColor:{type:String,default:"red"},removeButtonSize:{type:Number},initialImage:a,initialSize:{type:String,default:"cover",validator:function(e){return"cover"===e||"contain"===e||"natural"===e}},initialPosition:{type:String,default:"center",validator:function(e){var t=["center","top","bottom","left","right"];return e.split(" ").every((function(e){return t.indexOf(e)>=0}))||/^-?\d+% -?\d+%$/.test(e)}},inputAttrs:Object,showLoading:Boolean,loadingSize:{type:Number,default:20},loadingColor:{type:String,default:"#606060"},replaceDrop:Boolean,passive:Boolean,imageBorderRadius:{type:[Number,String],default:0},autoSizing:Boolean,videoEnabled:Boolean},r="init",i="file-choose",o="file-size-exceed",d="file-type-mismatch",l="new-image",u="new-image-drawn",c="image-remove",m="move",h="zoom",_="draw",p="initial-image-loaded",f="loading-start",v="loading-end",g="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},y=["imgData","img","imgSet","originalImage","naturalHeight","naturalWidth","orientation","scaleRatio"],M={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"wrapper",class:"croppa-container "+(e.img?"croppa--has-target":"")+" "+(e.passive?"croppa--passive":"")+" "+(e.disabled?"croppa--disabled":"")+" "+(e.disableClickToChoose?"croppa--disabled-cc":"")+" "+(e.disableDragToMove&&e.disableScrollToZoom?"croppa--disabled-mz":"")+" "+(e.fileDraggedOver?"croppa--dropzone":""),on:{dragenter:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDragEnter(t)},dragleave:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDragLeave(t)},dragover:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDragOver(t)},drop:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDrop(t)}}},[n("input",e._b({ref:"fileInput",staticStyle:{height:"1px",width:"1px",overflow:"hidden","margin-left":"-99999px",position:"absolute"},attrs:{type:"file",accept:e.accept,disabled:e.disabled},on:{change:e._handleInputChange}},"input",e.inputAttrs,!1)),e._v(" "),n("div",{staticClass:"slots",staticStyle:{width:"0",height:"0",visibility:"hidden"}},[e._t("initial"),e._v(" "),e._t("placeholder")],2),e._v(" "),n("canvas",{ref:"canvas",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e._handleClick(t)},dblclick:function(t){return t.stopPropagation(),t.preventDefault(),e._handleDblClick(t)},touchstart:function(t){return t.stopPropagation(),e._handlePointerStart(t)},mousedown:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerStart(t)},pointerstart:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerStart(t)},touchend:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},touchcancel:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},mouseup:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},pointerend:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},pointercancel:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerEnd(t)},touchmove:function(t){return t.stopPropagation(),e._handlePointerMove(t)},mousemove:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerMove(t)},pointermove:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerMove(t)},pointerleave:function(t){return t.stopPropagation(),t.preventDefault(),e._handlePointerLeave(t)},DOMMouseScroll:function(t){return t.stopPropagation(),e._handleWheel(t)},wheel:function(t){return t.stopPropagation(),e._handleWheel(t)},mousewheel:function(t){return t.stopPropagation(),e._handleWheel(t)}}}),e._v(" "),e.showRemoveButton&&e.img&&!e.passive?n("svg",{staticClass:"icon icon-remove",style:"top: -"+e.height/40+"px; right: -"+e.width/40+"px",attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:e.removeButtonSize||e.width/10,height:e.removeButtonSize||e.width/10},on:{click:e.remove}},[n("path",{attrs:{d:"M511.921231 0C229.179077 0 0 229.257846 0 512 0 794.702769 229.179077 1024 511.921231 1024 794.781538 1024 1024 794.702769 1024 512 1024 229.257846 794.781538 0 511.921231 0ZM732.041846 650.633846 650.515692 732.081231C650.515692 732.081231 521.491692 593.683692 511.881846 593.683692 502.429538 593.683692 373.366154 732.081231 373.366154 732.081231L291.761231 650.633846C291.761231 650.633846 430.316308 523.500308 430.316308 512.196923 430.316308 500.696615 291.761231 373.523692 291.761231 373.523692L373.366154 291.918769C373.366154 291.918769 503.453538 430.395077 511.881846 430.395077 520.349538 430.395077 650.515692 291.918769 650.515692 291.918769L732.041846 373.523692C732.041846 373.523692 593.447385 502.547692 593.447385 512.196923 593.447385 521.412923 732.041846 650.633846 732.041846 650.633846Z",fill:e.removeButtonColor}})]):e._e(),e._v(" "),e.showLoading&&e.loading?n("div",{staticClass:"sk-fading-circle",style:e.loadingStyle},e._l(12,(function(t){return n("div",{key:t,class:"sk-circle"+t+" sk-circle"},[n("div",{staticClass:"sk-circle-indicator",style:{backgroundColor:e.loadingColor}})])}))):e._e(),e._v(" "),e._t("default")],2)},staticRenderFns:[],model:{prop:"value",event:r},props:s,data:function(){return{canvas:null,ctx:null,originalImage:null,img:null,video:null,dragging:!1,lastMovingCoord:null,imgData:{width:0,height:0,startX:0,startY:0},fileDraggedOver:!1,tabStart:0,scrolling:!1,pinching:!1,rotating:!1,pinchDistance:0,supportTouch:!1,pointerMoved:!1,pointerStartCoord:null,naturalWidth:0,naturalHeight:0,scaleRatio:null,orientation:1,userMetadata:null,imageSet:!1,currentPointerCoord:null,currentIsInitial:!1,loading:!1,realWidth:0,realHeight:0,chosenFile:null,useAutoSizing:!1}},computed:{outputWidth:function(){return(this.useAutoSizing?this.realWidth:this.width)*this.quality},outputHeight:function(){return(this.useAutoSizing?this.realHeight:this.height)*this.quality},computedPlaceholderFontSize:function(){return this.placeholderFontSize*this.quality},aspectRatio:function(){return this.naturalWidth/this.naturalHeight},loadingStyle:function(){return{width:this.loadingSize+"px",height:this.loadingSize+"px",right:"15px",bottom:"10px"}}},mounted:function(){var e=this;this._initialize(),n.rAFPolyfill(),n.toBlobPolyfill(),this.supportDetection().basic||console.warn("Your browser does not support vue-croppa functionality."),this.passive&&this.$watch("value._data",(function(t){var n=!1;if(t){for(var a in t)if(y.indexOf(a)>=0){var s=t[a];s!==e[a]&&(e.$set(e,a,s),n=!0)}n&&(e.img?e.$nextTick((function(){e._draw()})):e.remove())}}),{deep:!0}),this.useAutoSizing=!!(this.autoSizing&&this.$refs.wrapper&&getComputedStyle),this.useAutoSizing&&this._autoSizingInit()},beforeDestroy:function(){this.useAutoSizing&&this._autoSizingRemove()},watch:{outputWidth:function(){this.onDimensionChange()},outputHeight:function(){this.onDimensionChange()},canvasColor:function(){this.img?this._draw():this._setPlaceholders()},imageBorderRadius:function(){this.img&&this._draw()},placeholder:function(){this.img||this._setPlaceholders()},placeholderColor:function(){this.img||this._setPlaceholders()},computedPlaceholderFontSize:function(){this.img||this._setPlaceholders()},preventWhiteSpace:function(e){e&&(this.imageSet=!1),this._placeImage()},scaleRatio:function(e,t){if(!this.passive&&this.img&&n.numberValid(e)){var a=1;n.numberValid(t)&&0!==t&&(a=e/t);var s=this.currentPointerCoord||{x:this.imgData.startX+this.imgData.width/2,y:this.imgData.startY+this.imgData.height/2};if(this.imgData.width=this.naturalWidth*e,this.imgData.height=this.naturalHeight*e,!this.userMetadata&&this.imageSet&&!this.rotating){var r=(a-1)*(s.x-this.imgData.startX),i=(a-1)*(s.y-this.imgData.startY);this.imgData.startX=this.imgData.startX-r,this.imgData.startY=this.imgData.startY-i}this.preventWhiteSpace&&(this._preventZoomingToWhiteSpace(),this._preventMovingToWhiteSpace())}},"imgData.width":function(e,t){n.numberValid(e)&&(this.scaleRatio=e/this.naturalWidth,this.hasImage()&&Math.abs(e-t)>1e-5*e&&(this.emitEvent(h),this._draw()))},"imgData.height":function(e){n.numberValid(e)&&(this.scaleRatio=e/this.naturalHeight)},"imgData.startX":function(e){this.hasImage()&&this.$nextTick(this._draw)},"imgData.startY":function(e){this.hasImage()&&this.$nextTick(this._draw)},loading:function(e){this.passive||(e?this.emitEvent(f):this.emitEvent(v))},autoSizing:function(e){this.useAutoSizing=!!(this.autoSizing&&this.$refs.wrapper&&getComputedStyle),e?this._autoSizingInit():this._autoSizingRemove()}},methods:{emitEvent:function(){this.$emit.apply(this,arguments)},getCanvas:function(){return this.canvas},getContext:function(){return this.ctx},getChosenFile:function(){return this.chosenFile||this.$refs.fileInput.files[0]},move:function(e){if(e&&!this.passive){var t=this.imgData.startX,n=this.imgData.startY;this.imgData.startX+=e.x,this.imgData.startY+=e.y,this.preventWhiteSpace&&this._preventMovingToWhiteSpace(),this.imgData.startX===t&&this.imgData.startY===n||(this.emitEvent(m),this._draw())}},moveUpwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:0,y:-e})},moveDownwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:0,y:e})},moveLeftwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:-e,y:0})},moveRightwards:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.move({x:e,y:0})},zoom:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!this.passive){var n=this.zoomSpeed*t,a=1e-5*this.outputWidth*n,s=1;e?s=1+a:this.imgData.width>10&&(s=1-a),this.scaleRatio*=s}},zoomIn:function(){this.zoom(!0)},zoomOut:function(){this.zoom(!1)},rotate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.disableRotation||this.disabled||this.passive||(e=parseInt(e),(isNaN(e)||e>3||e<-3)&&(console.warn("Invalid argument for rotate() method. It should one of the integers from -3 to 3."),e=1),this._rotateByStep(e))},flipX:function(){this.disableRotation||this.disabled||this.passive||this._setOrientation(2)},flipY:function(){this.disableRotation||this.disabled||this.passive||this._setOrientation(4)},refresh:function(){this.$nextTick(this._initialize)},hasImage:function(){return!!this.imageSet},applyMetadata:function(e){if(e&&!this.passive){this.userMetadata=e;var t=e.orientation||this.orientation||1;this._setOrientation(t,!0)}},generateDataUrl:function(e,t){return this.hasImage()?this.canvas.toDataURL(e,t):""},generateBlob:function(e,t,n){this.hasImage()?this.canvas.toBlob(e,t,n):e(null)},promisedBlob:function(){for(var e=this,t=arguments.length,n=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];this.imageSet&&this.remove(),this.originalImage=e,this.img=e,isNaN(t)&&(t=1),this._setOrientation(t),n&&this.emitEvent(p)},_onVideoLoad:function(e,t){var n=this;this.video=e;var a=document.createElement("canvas"),s=e.videoWidth,r=e.videoHeight;a.width=s,a.height=r;var i=a.getContext("2d");this.loading=!1;var o=function(e){if(n.video){i.drawImage(n.video,0,0,s,r);var t=new Image;t.src=a.toDataURL(),t.onload=function(){n.img=t,e?n._placeImage():n._draw()}}};o(!0);var d=function e(){n.$nextTick((function(){o(),!n.video||n.video.ended||n.video.paused||requestAnimationFrame(e)}))};this.video.addEventListener("play",(function(){requestAnimationFrame(d)}))},_handleClick:function(e){this.emitNativeEvent(e),this.hasImage()||this.disableClickToChoose||this.disabled||this.supportTouch||this.passive||this.chooseFile()},_handleDblClick:function(e){this.emitNativeEvent(e),this.videoEnabled&&this.video&&(this.video.paused||this.video.ended?this.video.play():this.video.pause())},_handleInputChange:function(){var e=this.$refs.fileInput;if(e.files.length&&!this.passive){var t=e.files[0];this._onNewFileIn(t)}},_onNewFileIn:function(e){var t=this;if(this.currentIsInitial=!1,this.loading=!0,this.emitEvent(i,e),this.chosenFile=e,!this._fileSizeIsValid(e))return this.loading=!1,this.emitEvent(o,e),!1;if(!this._fileTypeIsValid(e))return this.loading=!1,this.emitEvent(d,e),e.type||e.name.toLowerCase().split(".").pop(),!1;if("undefined"!=typeof window&&void 0!==window.FileReader){var a=new FileReader;a.onload=function(a){var s=a.target.result,r=n.parseDataUrl(s);if(/^video/.test(e.type)){var i=document.createElement("video");i.src=s,s=null,i.readyState>=i.HAVE_FUTURE_DATA?t._onVideoLoad(i):i.addEventListener("canplay",(function(){console.log("can play event"),t._onVideoLoad(i)}),!1)}else{var o=1;try{o=n.getFileOrientation(n.base64ToArrayBuffer(r))}catch(e){}o<1&&(o=1);var d=new Image;d.src=s,s=null,d.onload=function(){t._onload(d,o),t.emitEvent(l)}}},a.readAsDataURL(e)}},_fileSizeIsValid:function(e){return!!e&&(!this.fileSizeLimit||0==this.fileSizeLimit||e.sizen?(a=t/this.outputHeight,this.imgData.width=e/a,this.imgData.height=this.outputHeight,this.imgData.startX=-(this.imgData.width-this.outputWidth)/2,this.imgData.startY=0):(a=e/this.outputWidth,this.imgData.height=t/a,this.imgData.width=this.outputWidth,this.imgData.startY=-(this.imgData.height-this.outputHeight)/2,this.imgData.startX=0)},_aspectFit:function(){var e=this.naturalWidth,t=this.naturalHeight,n=this.outputWidth/this.outputHeight,a=void 0;this.aspectRatio>n?(a=e/this.outputWidth,this.imgData.height=t/a,this.imgData.width=this.outputWidth,this.imgData.startY=-(this.imgData.height-this.outputHeight)/2,this.imgData.startX=0):(a=t/this.outputHeight,this.imgData.width=e/a,this.imgData.height=this.outputHeight,this.imgData.startX=-(this.imgData.width-this.outputWidth)/2,this.imgData.startY=0)},_naturalSize:function(){var e=this.naturalWidth,t=this.naturalHeight;this.imgData.width=e,this.imgData.height=t,this.imgData.startX=-(this.imgData.width-this.outputWidth)/2,this.imgData.startY=-(this.imgData.height-this.outputHeight)/2},_handlePointerStart:function(e){if(this.emitNativeEvent(e),!this.passive){this.supportTouch=!0,this.pointerMoved=!1;var t=n.getPointerCoords(e,this);if(this.pointerStartCoord=t,!this.disabled)if(this.hasImage()||this.disableClickToChoose){if(!(e.which&&e.which>1)){if(!e.touches||1===e.touches.length){this.dragging=!0,this.pinching=!1;var a=n.getPointerCoords(e,this);this.lastMovingCoord=a}e.touches&&2===e.touches.length&&!this.disablePinchToZoom&&(this.dragging=!1,this.pinching=!0,this.pinchDistance=n.getPinchDistance(e,this));for(var s=["mouseup","touchend","touchcancel","pointerend","pointercancel"],r=0,i=s.length;r0,1),this.pinchDistance=a}}}},_handlePointerLeave:function(e){this.emitNativeEvent(e),this.passive||(this.currentPointerCoord=null)},_handleWheel:function(e){var t=this;this.emitNativeEvent(e),this.passive||this.disabled||this.disableScrollToZoom||!this.hasImage()||(e.preventDefault(),this.scrolling=!0,e.wheelDelta<0||e.deltaY>0||e.detail>0?this.zoom(this.reverseScrollToZoom):(e.wheelDelta>0||e.deltaY<0||e.detail<0)&&this.zoom(!this.reverseScrollToZoom),this.$nextTick((function(){t.scrolling=!1})))},_handleDragEnter:function(e){this.emitNativeEvent(e),this.passive||this.disabled||this.disableDragAndDrop||!n.eventHasFile(e)||this.hasImage()&&!this.replaceDrop||(this.fileDraggedOver=!0)},_handleDragLeave:function(e){this.emitNativeEvent(e),this.passive||this.fileDraggedOver&&n.eventHasFile(e)&&(this.fileDraggedOver=!1)},_handleDragOver:function(e){this.emitNativeEvent(e)},_handleDrop:function(e){if(this.emitNativeEvent(e),!this.passive&&this.fileDraggedOver&&n.eventHasFile(e)&&(!this.hasImage()||this.replaceDrop)){this.fileDraggedOver=!1;var t=void 0,a=e.dataTransfer;if(a){if(a.items)for(var s=0,r=a.items.length;s0&&(this.imgData.startX=0),this.imgData.startY>0&&(this.imgData.startY=0),this.outputWidth-this.imgData.startX>this.imgData.width&&(this.imgData.startX=-(this.imgData.width-this.outputWidth)),this.outputHeight-this.imgData.startY>this.imgData.height&&(this.imgData.startY=-(this.imgData.height-this.outputHeight))},_preventZoomingToWhiteSpace:function(){this.imgData.width0&&void 0!==arguments[0]?arguments[0]:6,a=arguments[1],s=a;if(t>1||s){if(!this.img)return;this.rotating=!0;var r=n.getRotatedImage(s?this.originalImage:this.img,t);r.onload=function(){e.img=r,e._placeImage(a)}}else this._placeImage(a);this.orientation=2==t?n.flipX(this.orientation):4==t?n.flipY(this.orientation):6==t?n.rotate90(this.orientation):3==t?n.rotate90(n.rotate90(this.orientation)):8==t?n.rotate90(n.rotate90(n.rotate90(this.orientation))):t,s&&(this.orientation=t)},_paintBackground:function(){var e=this.canvasColor&&"default"!=this.canvasColor?this.canvasColor:"transparent";this.ctx.fillStyle=e,this.ctx.clearRect(0,0,this.outputWidth,this.outputHeight),this.ctx.fillRect(0,0,this.outputWidth,this.outputHeight)},_draw:function(){var e=this;this.$nextTick((function(){"undefined"!=typeof window&&window.requestAnimationFrame?requestAnimationFrame(e._drawFrame):e._drawFrame()}))},_drawFrame:function(){if(this.img){this.loading=!1;var e=this.ctx,t=this.imgData,n=t.startX,a=t.startY,s=t.width,r=t.height;this._paintBackground(),e.drawImage(this.img,n,a,s,r),this.preventWhiteSpace&&this._clip(this._createContainerClipPath),this.emitEvent(_,e),this.imageSet||(this.imageSet=!0,this.emitEvent(u)),this.rotating=!1}},_clipPathFactory:function(e,t,n,a){var s=this.ctx,r="number"==typeof this.imageBorderRadius?this.imageBorderRadius:isNaN(Number(this.imageBorderRadius))?0:Number(this.imageBorderRadius);s.beginPath(),s.moveTo(e+r,t),s.lineTo(e+n-r,t),s.quadraticCurveTo(e+n,t,e+n,t+r),s.lineTo(e+n,t+a-r),s.quadraticCurveTo(e+n,t+a,e+n-r,t+a),s.lineTo(e+r,t+a),s.quadraticCurveTo(e,t+a,e,t+a-r),s.lineTo(e,t+r),s.quadraticCurveTo(e,t,e+r,t),s.closePath()},_createContainerClipPath:function(){var e=this;this._clipPathFactory(0,0,this.outputWidth,this.outputHeight),this.clipPlugins&&this.clipPlugins.length&&this.clipPlugins.forEach((function(t){t(e.ctx,0,0,e.outputWidth,e.outputHeight)}))},_clip:function(e){var t=this.ctx;t.save(),t.fillStyle="#fff",t.globalCompositeOperation="destination-in",e(),t.fill(),t.restore()},_applyMetadata:function(){var e=this;if(this.userMetadata){var t=this.userMetadata,a=t.startX,s=t.startY,r=t.scale;n.numberValid(a)&&(this.imgData.startX=a),n.numberValid(s)&&(this.imgData.startY=s),n.numberValid(r)&&(this.scaleRatio=r),this.$nextTick((function(){e.userMetadata=null}))}},onDimensionChange:function(){this.img?(this.preventWhiteSpace&&(this.imageSet=!1),this._setSize(),this._placeImage()):this._initialize()}}},L=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;function w(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Y=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=w(e),r=1;r-1&&(i="init"),t.compatible=a[0]>=2,t.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},t.createRecord=function(e,t){if(!s[e]){var n=null;"function"==typeof t&&(t=(n=t).options),o(e,t),s[e]={Ctor:n,options:t,instances:[]}}},t.isRecorded=function(e){return void 0!==s[e]},t.rerender=l((function(e,t){var n=s[e];if(t){if("function"==typeof t&&(t=t.options),n.Ctor)n.Ctor.options.render=t.render,n.Ctor.options.staticRenderFns=t.staticRenderFns,n.instances.slice().forEach((function(e){e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(n.Ctor.options.cached)&&(n.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var a=function(e){if(!e._u)return;var t=e._u;return e._u=function(e){try{return t(e,!0)}catch(n){return t(e,null,!0)}},function(){e._u=t}}(e);e.$forceUpdate(),e.$nextTick(a)}));else if(n.options.render=t.render,n.options.staticRenderFns=t.staticRenderFns,n.options.functional){if(Object.keys(t).length>2)u(n.options,t);else{var a=n.options._injectStyles;if(a){var r=t.render;n.options.render=function(e,t){return a.call(t),r(e,t)}}}n.options._Ctor=null,Array.isArray(n.options.cached)&&(n.options.cached=[]),n.instances.slice().forEach((function(e){e.$forceUpdate()}))}}else n.instances.slice().forEach((function(e){e.$forceUpdate()}))})),t.reload=l((function(e,t){var n=s[e];if(t)if("function"==typeof t&&(t=t.options),o(e,t),n.Ctor){a[1]<2&&(n.Ctor.extendOptions=t);var r=n.Ctor.super.extend(t);r.options._Ctor=n.options._Ctor,n.Ctor.options=r.options,n.Ctor.cid=r.cid,n.Ctor.prototype=r.prototype,r.release&&r.release()}else u(n.options,t);n.instances.slice().forEach((function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")}))}))},"./node_modules/vue-loader/lib/runtime/componentNormalizer.js":function(e,t,n){"use strict";function a(e,t,n,a,s,r,i,o){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),a&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=d):s&&(d=o?function(){s.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:s),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(e,t){return d.call(t),u(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}n.d(t,"a",(function(){return a}))},"./node_modules/vue-router/dist/vue-router.esm.js":function(e,t,n){"use strict"; /*! * vue-router v3.1.6 * (c) 2020 Evan You * @license MIT - */function a(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function s(e,t){return t instanceof e||t&&(t.name===e.name||t._name===e._name)}function r(e,t){for(var n in t)e[n]=t[n];return e}var i={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,a=t.children,s=t.parent,i=t.data;i.routerView=!0;for(var d=s.$createElement,l=n.name,u=s.$route,c=s._routerViewCache||(s._routerViewCache={}),m=0,_=!1;s&&s._routerRoot!==s;){var h=s.$vnode?s.$vnode.data:{};h.routerView&&m++,h.keepAlive&&s._directInactive&&s._inactive&&(_=!0),s=s.$parent}if(i.routerViewDepth=m,_){var p=c[l],f=p&&p.component;return f?(p.configProps&&o(f,i,p.route,p.configProps),d(f,i,a)):d()}var v=u.matched[m],g=v&&v.components[l];if(!v||!g)return c[l]=null,d();c[l]={component:g},i.registerRouteInstance=function(e,t){var n=v.instances[l];(t&&n!==e||!t&&n===e)&&(v.instances[l]=t)},(i.hook||(i.hook={})).prepatch=function(e,t){v.instances[l]=t.componentInstance},i.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==v.instances[l]&&(v.instances[l]=e.componentInstance)};var y=v.props&&v.props[l];return y&&(r(c[l],{route:u,configProps:y}),o(g,i,u,y)),d(g,i,a)}};function o(e,t,n,a){var s=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(n,a);if(s){s=t.props=r({},s);var i=t.attrs=t.attrs||{};for(var o in s)e.props&&o in e.props||(i[o]=s[o],delete s[o])}}var d=/[!'()*]/g,l=function(e){return"%"+e.charCodeAt(0).toString(16)},u=/%2C/g,c=function(e){return encodeURIComponent(e).replace(d,l).replace(u,",")},m=decodeURIComponent;function _(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),a=m(n.shift()),s=n.length>0?m(n.join("=")):null;void 0===t[a]?t[a]=s:Array.isArray(t[a])?t[a].push(s):t[a]=[t[a],s]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return c(t);if(Array.isArray(n)){var a=[];return n.forEach((function(e){void 0!==e&&(null===e?a.push(c(t)):a.push(c(t)+"="+c(e)))})),a.join("&")}return c(t)+"="+c(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function f(e,t,n,a){var s=a&&a.options.stringifyQuery,r=t.query||{};try{r=v(r)}catch(e){}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:r,params:t.params||{},fullPath:M(t,s),matched:e?y(e):[]};return n&&(i.redirectedFrom=M(n,s)),Object.freeze(i)}function v(e){if(Array.isArray(e))return e.map(v);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=v(e[n]);return t}return e}var g=f(null,{path:"/"});function y(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function M(e,t){var n=e.path,a=e.query;void 0===a&&(a={});var s=e.hash;return void 0===s&&(s=""),(n||"/")+(t||h)(a)+s}function L(e,t){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&e.hash===t.hash&&b(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params)))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),a=Object.keys(t);return n.length===a.length&&n.every((function(n){var a=e[n],s=t[n];return"object"==typeof a&&"object"==typeof s?b(a,s):String(a)===String(s)}))}function k(e,t,n){var a=e.charAt(0);if("/"===a)return e;if("?"===a||"#"===a)return t+e;var s=t.split("/");n&&s[s.length-1]||s.pop();for(var r=e.replace(/^\//,"").split("/"),i=0;i=0&&(t=e.slice(a),e=e.slice(0,a));var s=e.indexOf("?");return s>=0&&(n=e.slice(s+1),e=e.slice(0,s)),{path:e,query:n,hash:t}}(s.path||""),u=t&&t.path||"/",c=l.path?k(l.path,u,n||s.append):u,m=function(e,t,n){void 0===t&&(t={});var a,s=n||_;try{a=s(e||"")}catch(e){a={}}for(var r in t)a[r]=t[r];return a}(l.query,s.query,a&&a.options.parseQuery),h=s.hash||l.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:c,query:m,hash:h}}var U,J=function(){},B={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,a=this.$route,s=n.resolve(this.to,a,this.append),i=s.location,o=s.route,d=s.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,m=null==u?"router-link-active":u,_=null==c?"router-link-exact-active":c,h=null==this.activeClass?m:this.activeClass,v=null==this.exactActiveClass?_:this.exactActiveClass,g=o.redirectedFrom?f(null,z(o.redirectedFrom),null,n):o;l[v]=L(a,g),l[h]=this.exact?l[v]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(a,g);var y=function(e){V(e)&&(t.replace?n.replace(i,J):n.push(i,J))},M={click:V};Array.isArray(this.event)?this.event.forEach((function(e){M[e]=y})):M[this.event]=y;var b={class:l},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:d,route:o,navigate:y,isActive:l[h],isExactActive:l[v]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)b.on=M,b.attrs={href:d};else{var w=function e(t){var n;if(t)for(var a=0;a-1&&(o.params[m]=n.params[m]);return o.path=$(u.path,o.params),d(u,o,i)}if(o.path){o.params={};for(var _=0;_=e.length?n():e[s]?t(e[s],(function(){a(s+1)})):a(s+1)};a(0)}function ge(e){return function(t,n,s){var r=!1,i=0,o=null;ye(e,(function(e,t,n,d){if("function"==typeof e&&void 0===e.cid){r=!0,i++;var l,u=be((function(t){var a;((a=t).__esModule||Le&&"Module"===a[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:U.extend(t),n.components[d]=t,--i<=0&&s()})),c=be((function(e){var t="Failed to resolve async component "+d+": "+e;o||(o=a(e)?e:new Error(t),s(o))}));try{l=e(u,c)}catch(e){c(e)}if(l)if("function"==typeof l.then)l.then(u,c);else{var m=l.component;m&&"function"==typeof m.then&&m.then(u,c)}}})),r||s()}}function ye(e,t){return Me(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Me(e){return Array.prototype.concat.apply([],e)}var Le="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function be(e){var t=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!t)return t=!0,e.apply(this,n)}}var ke=function(e){function t(t){e.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+t.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new e).stack,writable:!0,configurable:!0})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error);ke._name="NavigationDuplicated";var we=function(e,t){this.router=e,this.base=function(e){if(!e)if(G){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Ye(e,t,n,a){var s=ye(e,(function(e,a,s,r){var i=function(e,t){"function"!=typeof e&&(e=U.extend(e));return e.options[t]}(e,t);if(i)return Array.isArray(i)?i.map((function(e){return n(e,a,s,r)})):n(i,a,s,r)}));return Me(a?s.reverse():s)}function De(e,t){if(t)return function(){return e.apply(t,arguments)}}we.prototype.listen=function(e){this.cb=e},we.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},we.prototype.onError=function(e){this.errorCbs.push(e)},we.prototype.transitionTo=function(e,t,n){var a=this,s=this.router.match(e,this.current);this.confirmTransition(s,(function(){a.updateRoute(s),t&&t(s),a.ensureURL(),a.ready||(a.ready=!0,a.readyCbs.forEach((function(e){e(s)})))}),(function(e){n&&n(e),e&&!a.ready&&(a.ready=!0,a.readyErrorCbs.forEach((function(t){t(e)})))}))},we.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current,o=function(e){!s(ke,e)&&a(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)};if(L(e,i)&&e.matched.length===i.matched.length)return this.ensureURL(),o(new ke(e));var d=function(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n-1?decodeURI(e.slice(0,a))+e.slice(a):decodeURI(e)}else e=decodeURI(e.slice(0,n))+e.slice(n);return e}function He(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Pe(e){he?pe(He(e)):window.location.hash=e}function Oe(e){he?fe(He(e)):window.location.replace(He(e))}var Ae=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.index+1).concat(e),a.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,(function(){t.index=n,t.updateRoute(a)}),(function(e){s(ke,e)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(we),Ee=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=K(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!he&&!1!==e.fallback,this.fallback&&(t="hash"),G||(t="abstract"),this.mode=t,t){case"history":this.history=new Te(this,e.base);break;case"hash":this.history=new Se(this,e.base,this.fallback);break;case"abstract":this.history=new Ae(this,e.base);break;default:0}},Re={currentRoute:{configurable:!0}};function Fe(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Ee.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Re.currentRoute.get=function(){return this.history&&this.history.current},Ee.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null)})),!this.app){this.app=e;var n=this.history;if(n instanceof Te)n.transitionTo(n.getCurrentLocation());else if(n instanceof Se){var a=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Ee.prototype.beforeEach=function(e){return Fe(this.beforeHooks,e)},Ee.prototype.beforeResolve=function(e){return Fe(this.resolveHooks,e)},Ee.prototype.afterEach=function(e){return Fe(this.afterHooks,e)},Ee.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ee.prototype.onError=function(e){this.history.onError(e)},Ee.prototype.push=function(e,t,n){var a=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){a.history.push(e,t,n)}));this.history.push(e,t,n)},Ee.prototype.replace=function(e,t,n){var a=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){a.history.replace(e,t,n)}));this.history.replace(e,t,n)},Ee.prototype.go=function(e){this.history.go(e)},Ee.prototype.back=function(){this.go(-1)},Ee.prototype.forward=function(){this.go(1)},Ee.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Ee.prototype.resolve=function(e,t,n){var a=z(e,t=t||this.history.current,n,this),s=this.match(a,t),r=s.redirectedFrom||s.fullPath;return{location:a,route:s,href:function(e,t,n){var a="hash"===n?"#"+t:t;return e?w(e+"/"+a):a}(this.history.base,r,this.mode),normalizedTo:a,resolved:s}},Ee.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ee.prototype,Re),Ee.install=function e(t){if(!e.installed||U!==t){e.installed=!0,U=t;var n=function(e){return void 0!==e},a=function(e,t){var a=e.$options._parentVnode;n(a)&&n(a=a.data)&&n(a=a.registerRouteInstance)&&a(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,a(this,this)},destroyed:function(){a(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",i),t.component("RouterLink",B);var s=t.config.optionMergeStrategies;s.beforeRouteEnter=s.beforeRouteLeave=s.beforeRouteUpdate=s.created}},Ee.version="3.1.6",G&&window.Vue&&window.Vue.use(Ee),t.a=Ee},"./node_modules/vue/dist/vue.esm.js":function(e,t,n){"use strict";n.r(t),function(e,n){ + */function a(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function s(e,t){return t instanceof e||t&&(t.name===e.name||t._name===e._name)}function r(e,t){for(var n in t)e[n]=t[n];return e}var i={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,a=t.children,s=t.parent,i=t.data;i.routerView=!0;for(var d=s.$createElement,l=n.name,u=s.$route,c=s._routerViewCache||(s._routerViewCache={}),m=0,h=!1;s&&s._routerRoot!==s;){var _=s.$vnode?s.$vnode.data:{};_.routerView&&m++,_.keepAlive&&s._directInactive&&s._inactive&&(h=!0),s=s.$parent}if(i.routerViewDepth=m,h){var p=c[l],f=p&&p.component;return f?(p.configProps&&o(f,i,p.route,p.configProps),d(f,i,a)):d()}var v=u.matched[m],g=v&&v.components[l];if(!v||!g)return c[l]=null,d();c[l]={component:g},i.registerRouteInstance=function(e,t){var n=v.instances[l];(t&&n!==e||!t&&n===e)&&(v.instances[l]=t)},(i.hook||(i.hook={})).prepatch=function(e,t){v.instances[l]=t.componentInstance},i.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==v.instances[l]&&(v.instances[l]=e.componentInstance)};var y=v.props&&v.props[l];return y&&(r(c[l],{route:u,configProps:y}),o(g,i,u,y)),d(g,i,a)}};function o(e,t,n,a){var s=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(n,a);if(s){s=t.props=r({},s);var i=t.attrs=t.attrs||{};for(var o in s)e.props&&o in e.props||(i[o]=s[o],delete s[o])}}var d=/[!'()*]/g,l=function(e){return"%"+e.charCodeAt(0).toString(16)},u=/%2C/g,c=function(e){return encodeURIComponent(e).replace(d,l).replace(u,",")},m=decodeURIComponent;function h(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),a=m(n.shift()),s=n.length>0?m(n.join("=")):null;void 0===t[a]?t[a]=s:Array.isArray(t[a])?t[a].push(s):t[a]=[t[a],s]})),t):t}function _(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return c(t);if(Array.isArray(n)){var a=[];return n.forEach((function(e){void 0!==e&&(null===e?a.push(c(t)):a.push(c(t)+"="+c(e)))})),a.join("&")}return c(t)+"="+c(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function f(e,t,n,a){var s=a&&a.options.stringifyQuery,r=t.query||{};try{r=v(r)}catch(e){}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:r,params:t.params||{},fullPath:M(t,s),matched:e?y(e):[]};return n&&(i.redirectedFrom=M(n,s)),Object.freeze(i)}function v(e){if(Array.isArray(e))return e.map(v);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=v(e[n]);return t}return e}var g=f(null,{path:"/"});function y(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function M(e,t){var n=e.path,a=e.query;void 0===a&&(a={});var s=e.hash;return void 0===s&&(s=""),(n||"/")+(t||_)(a)+s}function L(e,t){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&e.hash===t.hash&&b(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params)))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),a=Object.keys(t);return n.length===a.length&&n.every((function(n){var a=e[n],s=t[n];return"object"==typeof a&&"object"==typeof s?b(a,s):String(a)===String(s)}))}function k(e,t,n){var a=e.charAt(0);if("/"===a)return e;if("?"===a||"#"===a)return t+e;var s=t.split("/");n&&s[s.length-1]||s.pop();for(var r=e.replace(/^\//,"").split("/"),i=0;i=0&&(t=e.slice(a),e=e.slice(0,a));var s=e.indexOf("?");return s>=0&&(n=e.slice(s+1),e=e.slice(0,s)),{path:e,query:n,hash:t}}(s.path||""),u=t&&t.path||"/",c=l.path?k(l.path,u,n||s.append):u,m=function(e,t,n){void 0===t&&(t={});var a,s=n||h;try{a=s(e||"")}catch(e){a={}}for(var r in t)a[r]=t[r];return a}(l.query,s.query,a&&a.options.parseQuery),_=s.hash||l.hash;return _&&"#"!==_.charAt(0)&&(_="#"+_),{_normalized:!0,path:c,query:m,hash:_}}var U,B=function(){},J={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,a=this.$route,s=n.resolve(this.to,a,this.append),i=s.location,o=s.route,d=s.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,m=null==u?"router-link-active":u,h=null==c?"router-link-exact-active":c,_=null==this.activeClass?m:this.activeClass,v=null==this.exactActiveClass?h:this.exactActiveClass,g=o.redirectedFrom?f(null,z(o.redirectedFrom),null,n):o;l[v]=L(a,g),l[_]=this.exact?l[v]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(a,g);var y=function(e){V(e)&&(t.replace?n.replace(i,B):n.push(i,B))},M={click:V};Array.isArray(this.event)?this.event.forEach((function(e){M[e]=y})):M[this.event]=y;var b={class:l},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:d,route:o,navigate:y,isActive:l[_],isExactActive:l[v]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)b.on=M,b.attrs={href:d};else{var w=function e(t){var n;if(t)for(var a=0;a-1&&(o.params[m]=n.params[m]);return o.path=$(u.path,o.params),d(u,o,i)}if(o.path){o.params={};for(var h=0;h=e.length?n():e[s]?t(e[s],(function(){a(s+1)})):a(s+1)};a(0)}function ge(e){return function(t,n,s){var r=!1,i=0,o=null;ye(e,(function(e,t,n,d){if("function"==typeof e&&void 0===e.cid){r=!0,i++;var l,u=be((function(t){var a;((a=t).__esModule||Le&&"Module"===a[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:U.extend(t),n.components[d]=t,--i<=0&&s()})),c=be((function(e){var t="Failed to resolve async component "+d+": "+e;o||(o=a(e)?e:new Error(t),s(o))}));try{l=e(u,c)}catch(e){c(e)}if(l)if("function"==typeof l.then)l.then(u,c);else{var m=l.component;m&&"function"==typeof m.then&&m.then(u,c)}}})),r||s()}}function ye(e,t){return Me(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Me(e){return Array.prototype.concat.apply([],e)}var Le="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function be(e){var t=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!t)return t=!0,e.apply(this,n)}}var ke=function(e){function t(t){e.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+t.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new e).stack,writable:!0,configurable:!0})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error);ke._name="NavigationDuplicated";var we=function(e,t){this.router=e,this.base=function(e){if(!e)if(G){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Ye(e,t,n,a){var s=ye(e,(function(e,a,s,r){var i=function(e,t){"function"!=typeof e&&(e=U.extend(e));return e.options[t]}(e,t);if(i)return Array.isArray(i)?i.map((function(e){return n(e,a,s,r)})):n(i,a,s,r)}));return Me(a?s.reverse():s)}function De(e,t){if(t)return function(){return e.apply(t,arguments)}}we.prototype.listen=function(e){this.cb=e},we.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},we.prototype.onError=function(e){this.errorCbs.push(e)},we.prototype.transitionTo=function(e,t,n){var a=this,s=this.router.match(e,this.current);this.confirmTransition(s,(function(){a.updateRoute(s),t&&t(s),a.ensureURL(),a.ready||(a.ready=!0,a.readyCbs.forEach((function(e){e(s)})))}),(function(e){n&&n(e),e&&!a.ready&&(a.ready=!0,a.readyErrorCbs.forEach((function(t){t(e)})))}))},we.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current,o=function(e){!s(ke,e)&&a(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)};if(L(e,i)&&e.matched.length===i.matched.length)return this.ensureURL(),o(new ke(e));var d=function(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n-1?decodeURI(e.slice(0,a))+e.slice(a):decodeURI(e)}else e=decodeURI(e.slice(0,n))+e.slice(n);return e}function He(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Pe(e){_e?pe(He(e)):window.location.hash=e}function Oe(e){_e?fe(He(e)):window.location.replace(He(e))}var Ae=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.index+1).concat(e),a.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,(function(){t.index=n,t.updateRoute(a)}),(function(e){s(ke,e)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(we),Ee=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=K(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!_e&&!1!==e.fallback,this.fallback&&(t="hash"),G||(t="abstract"),this.mode=t,t){case"history":this.history=new Te(this,e.base);break;case"hash":this.history=new Se(this,e.base,this.fallback);break;case"abstract":this.history=new Ae(this,e.base);break;default:0}},Re={currentRoute:{configurable:!0}};function Fe(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Ee.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Re.currentRoute.get=function(){return this.history&&this.history.current},Ee.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null)})),!this.app){this.app=e;var n=this.history;if(n instanceof Te)n.transitionTo(n.getCurrentLocation());else if(n instanceof Se){var a=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Ee.prototype.beforeEach=function(e){return Fe(this.beforeHooks,e)},Ee.prototype.beforeResolve=function(e){return Fe(this.resolveHooks,e)},Ee.prototype.afterEach=function(e){return Fe(this.afterHooks,e)},Ee.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ee.prototype.onError=function(e){this.history.onError(e)},Ee.prototype.push=function(e,t,n){var a=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){a.history.push(e,t,n)}));this.history.push(e,t,n)},Ee.prototype.replace=function(e,t,n){var a=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){a.history.replace(e,t,n)}));this.history.replace(e,t,n)},Ee.prototype.go=function(e){this.history.go(e)},Ee.prototype.back=function(){this.go(-1)},Ee.prototype.forward=function(){this.go(1)},Ee.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Ee.prototype.resolve=function(e,t,n){var a=z(e,t=t||this.history.current,n,this),s=this.match(a,t),r=s.redirectedFrom||s.fullPath;return{location:a,route:s,href:function(e,t,n){var a="hash"===n?"#"+t:t;return e?w(e+"/"+a):a}(this.history.base,r,this.mode),normalizedTo:a,resolved:s}},Ee.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ee.prototype,Re),Ee.install=function e(t){if(!e.installed||U!==t){e.installed=!0,U=t;var n=function(e){return void 0!==e},a=function(e,t){var a=e.$options._parentVnode;n(a)&&n(a=a.data)&&n(a=a.registerRouteInstance)&&a(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,a(this,this)},destroyed:function(){a(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",i),t.component("RouterLink",J);var s=t.config.optionMergeStrategies;s.beforeRouteEnter=s.beforeRouteLeave=s.beforeRouteUpdate=s.created}},Ee.version="3.1.6",G&&window.Vue&&window.Vue.use(Ee),t.a=Ee},"./node_modules/vue/dist/vue.esm.js":function(e,t,n){"use strict";n.r(t),function(e,n){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ -var a=Object.freeze({});function s(e){return null==e}function r(e){return null!=e}function i(e){return!0===e}function o(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function d(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function c(e){return"[object RegExp]"===l.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function _(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),a=e.split(","),s=0;s-1)return e.splice(n,1)}}var M=Object.prototype.hasOwnProperty;function L(e,t){return M.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var k=/-(\w)/g,w=b((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),Y=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),D=/\B([A-Z])/g,T=b((function(e){return e.replace(D,"-$1").toLowerCase()}));var j=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var a=arguments.length;return a?a>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function S(e,t){t=t||0;for(var n=e.length-t,a=new Array(n);n--;)a[n]=e[n+t];return a}function x(e,t){for(var n in t)e[n]=t[n];return e}function C(e){for(var t={},n=0;n0,Q=Z&&Z.indexOf("edge/")>0,ee=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===q),te=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ne={}.watch,ae=!1;if(V)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(e){}var re=function(){return void 0===J&&(J=!V&&!G&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),J},ie=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}var de,le="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);de="undefined"!=typeof Set&&oe(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=H,ce=0,me=function(){this.id=ce++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(r&&!L(s,"default"))i=!1;else if(""===i||i===T(e)){var d=ze(String,s.type);(d<0||o0&&(mt((d=e(d,(n||"")+"_"+a))[0])&&mt(u)&&(c[l]=ye(u.text+d[0].text),d.shift()),c.push.apply(c,d)):o(d)?mt(u)?c[l]=ye(u.text+d):""!==d&&c.push(ye(d)):mt(d)&&mt(u)?c[l]=ye(u.text+d.text):(i(t._isVList)&&r(d.tag)&&s(d.key)&&r(n)&&(d.key="__vlist"+n+"_"+a+"__"),c.push(d)));return c}(e):void 0}function mt(e){return r(e)&&r(e.text)&&!1===e.isComment}function _t(e,t){if(e){for(var n=Object.create(null),a=le?Reflect.ownKeys(e):Object.keys(e),s=0;s0,i=e?!!e.$stable:!r,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==a&&o===n.$key&&!r&&!n.$hasNormal)return n;for(var d in s={},e)e[d]&&"$"!==d[0]&&(s[d]=vt(t,d,e[d]))}else s={};for(var l in t)l in s||(s[l]=gt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=s),z(s,"$stable",i),z(s,"$key",o),z(s,"$hasNormal",r),s}function vt(e,t,n){var a=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:a,enumerable:!0,configurable:!0}),a}function gt(e,t){return function(){return e[t]}}function yt(e,t){var n,a,s,i,o;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),a=0,s=e.length;adocument.createEvent("Event").timeStamp&&(un=function(){return cn.now()})}function mn(){var e,t;for(ln=un(),on=!0,nn.sort((function(e,t){return e.id-t.id})),dn=0;dndn&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);rn||(rn=!0,at(mn))}}(this)},hn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||d(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ue(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:H,set:H};function fn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},a=e._props={},s=e.$options._propKeys=[];e.$parent&&Ye(!1);var r=function(r){s.push(r);var i=Ne(r,t,n,e);je(a,r,i),r in e||fn(e,"_props",r)};for(var i in t)r(i);Ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?H:j(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){he();try{return e.call(t,t)}catch(e){return Ue(e,t,"data()"),{}}finally{pe()}}(t,e):t||{})||(t={});var n=Object.keys(t),a=e.$options.props,s=(e.$options.methods,n.length);for(;s--;){var r=n[s];0,a&&L(a,r)||$(r)||fn(e,"_data",r)}Te(t,!0)}(e):Te(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),a=re();for(var s in t){var r=t[s],i="function"==typeof r?r:r.get;0,a||(n[s]=new hn(e,i||H,H,gn)),s in e||yn(e,s,r)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var a=t[n];if(Array.isArray(a))for(var s=0;s-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function Sn(e,t){var n=e.cache,a=e.keys,s=e._vnode;for(var r in n){var i=n[r];if(i){var o=Tn(i.componentOptions);o&&!t(o)&&xn(n,r,a,s)}}}function xn(e,t,n,a){var s=e[t];!s||a&&s.tag===a.tag||s.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=kn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),a=t._parentVnode;n.parent=t.parent,n._parentVnode=a;var s=a.componentOptions;n.propsData=s.propsData,n._parentListeners=s.listeners,n._renderChildren=s.children,n._componentTag=s.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Fe(wn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,s=n&&n.context;e.$slots=ht(t._renderChildren,s),e.$scopedSlots=a,e._c=function(t,n,a,s){return Wt(e,t,n,a,s,!1)},e.$createElement=function(t,n,a,s){return Wt(e,t,n,a,s,!0)};var r=n&&n.data;je(e,"$attrs",r&&r.attrs||a,null,!0),je(e,"$listeners",t._parentListeners||a,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=_t(e.$options.inject,e);t&&(Ye(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Ye(!0))}(t),vn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Yn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Se,e.prototype.$delete=xe,e.prototype.$watch=function(e,t,n){if(u(t))return bn(this,e,t,n);(n=n||{}).user=!0;var a=new hn(this,e,t,n);if(n.immediate)try{t.call(this,a.value)}catch(e){Ue(e,this,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(Yn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var a=this;if(Array.isArray(e))for(var s=0,r=e.length;s1?S(n):n;for(var a=S(arguments,1),s='event handler for "'+e+'"',r=0,i=n.length;rparseInt(this.max)&&xn(i,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return N}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:x,mergeOptions:Fe,defineReactive:je},e.set=Se,e.delete=xe,e.nextTick=at,e.observable=function(e){return Te(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,x(e.options.components,Hn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Fe(this.options,e),this}}(e),Dn(e),function(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Yn),Object.defineProperty(Yn.prototype,"$isServer",{get:re}),Object.defineProperty(Yn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Yn,"FunctionalRenderContext",{value:Ot}),Yn.version="2.6.11";var Pn=f("style,class"),On=f("input,textarea,option,select,progress"),An=function(e,t,n){return"value"===n&&On(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},En=f("contenteditable,draggable,spellcheck"),Rn=f("events,caret,typing,plaintext-only"),Fn=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",Nn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Wn=function(e){return Nn(e)?e.slice(6,e.length):""},$n=function(e){return null==e||!1===e};function zn(e){for(var t=e.data,n=e,a=e;r(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(t=Un(a.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Un(t,n.data));return function(e,t){if(r(e)||r(t))return Jn(e,Bn(t));return""}(t.staticClass,t.class)}function Un(e,t){return{staticClass:Jn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Jn(e,t){return e?t?e+" "+t:e:t||""}function Bn(e){return Array.isArray(e)?function(e){for(var t,n="",a=0,s=e.length;a-1?va(e,t,n):Fn(t)?$n(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):En(t)?e.setAttribute(t,function(e,t){return $n(t)||"false"===t?"false":"contenteditable"===e&&Rn(t)?t:"true"}(t,n)):Nn(t)?$n(n)?e.removeAttributeNS(In,Wn(t)):e.setAttributeNS(In,t,n):va(e,t,n)}function va(e,t,n){if($n(n))e.removeAttribute(t);else{if(K&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var a=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(t,n)}}var ga={create:pa,update:pa};function ya(e,t){var n=t.elm,a=t.data,i=e.data;if(!(s(a.staticClass)&&s(a.class)&&(s(i)||s(i.staticClass)&&s(i.class)))){var o=zn(t),d=n._transitionClasses;r(d)&&(o=Jn(o,Bn(d))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Ma,La,ba,ka,wa,Ya,Da={create:ya,update:ya},Ta=/[\w).+\-_$\]]/;function ja(e){var t,n,a,s,r,i=!1,o=!1,d=!1,l=!1,u=0,c=0,m=0,_=0;for(a=0;a=0&&" "===(p=e.charAt(h));h--);p&&Ta.test(p)||(l=!0)}}else void 0===s?(_=a+1,s=e.slice(0,a).trim()):f();function f(){(r||(r=[])).push(e.slice(_,a).trim()),_=a+1}if(void 0===s?s=e.slice(0,a).trim():0!==_&&f(),r)for(a=0;a-1?{exp:e.slice(0,ka),key:'"'+e.slice(ka+1)+'"'}:{exp:e,key:null};La=e,ka=wa=Ya=0;for(;!Ja();)Ba(ba=Ua())?Ga(ba):91===ba&&Va(ba);return{exp:e.slice(0,wa),key:e.slice(wa+1,Ya)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ua(){return La.charCodeAt(++ka)}function Ja(){return ka>=Ma}function Ba(e){return 34===e||39===e}function Va(e){var t=1;for(wa=ka;!Ja();)if(Ba(e=Ua()))Ga(e);else if(91===e&&t++,93===e&&t--,0===t){Ya=ka;break}}function Ga(e){for(var t=e;!Ja()&&(e=Ua())!==t;);}var qa;function Za(e,t,n){var a=qa;return function s(){var r=t.apply(null,arguments);null!==r&&Qa(e,s,n,a)}}var Ka=qe&&!(te&&Number(te[1])<=53);function Xa(e,t,n,a){if(Ka){var s=ln,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=s||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}qa.addEventListener(e,t,ae?{capture:n,passive:a}:n)}function Qa(e,t,n,a){(a||qa).removeEventListener(e,t._wrapper||t,n)}function es(e,t){if(!s(e.data.on)||!s(t.data.on)){var n=t.data.on||{},a=e.data.on||{};qa=t.elm,function(e){if(r(e.__r)){var t=K?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}r(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),dt(n,a,Xa,Qa,Za,t.context),qa=void 0}}var ts,ns={create:es,update:es};function as(e,t){if(!s(e.data.domProps)||!s(t.data.domProps)){var n,a,i=t.elm,o=e.data.domProps||{},d=t.data.domProps||{};for(n in r(d.__ob__)&&(d=t.data.domProps=x({},d)),o)n in d||(i[n]="");for(n in d){if(a=d[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=a;var l=s(a)?"":String(a);ss(i,l)&&(i.value=l)}else if("innerHTML"===n&&qn(i.tagName)&&s(i.innerHTML)){(ts=ts||document.createElement("div")).innerHTML=""+a+"";for(var u=ts.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;u.firstChild;)i.appendChild(u.firstChild)}else if(a!==o[n])try{i[n]=a}catch(e){}}}}function ss(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,a=e._vModifiers;if(r(a)){if(a.number)return p(n)!==p(t);if(a.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var rs={create:as,update:as},is=b((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var a=e.split(n);a.length>1&&(t[a[0].trim()]=a[1].trim())}})),t}));function os(e){var t=ds(e.style);return e.staticStyle?x(e.staticStyle,t):t}function ds(e){return Array.isArray(e)?C(e):"string"==typeof e?is(e):e}var ls,us=/^--/,cs=/\s*!important$/,ms=function(e,t,n){if(us.test(t))e.style.setProperty(t,n);else if(cs.test(n))e.style.setProperty(T(t),n.replace(cs,""),"important");else{var a=hs(t);if(Array.isArray(n))for(var s=0,r=n.length;s-1?t.split(vs).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ys(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(vs).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",a=" "+t+" ";n.indexOf(a)>=0;)n=n.replace(a," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Ms(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&x(t,Ls(e.name||"v")),x(t,e),t}return"string"==typeof e?Ls(e):void 0}}var Ls=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bs=V&&!X,ks="transition",ws="transitionend",Ys="animation",Ds="animationend";bs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ks="WebkitTransition",ws="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ys="WebkitAnimation",Ds="webkitAnimationEnd"));var Ts=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function js(e){Ts((function(){Ts(e)}))}function Ss(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gs(e,t))}function xs(e,t){e._transitionClasses&&y(e._transitionClasses,t),ys(e,t)}function Cs(e,t,n){var a=Ps(e,t),s=a.type,r=a.timeout,i=a.propCount;if(!s)return n();var o="transition"===s?ws:Ds,d=0,l=function(){e.removeEventListener(o,u),n()},u=function(t){t.target===e&&++d>=i&&l()};setTimeout((function(){d0&&(n="transition",u=i,c=r.length):"animation"===t?l>0&&(n="animation",u=l,c=d.length):c=(n=(u=Math.max(i,l))>0?i>l?"transition":"animation":null)?"transition"===n?r.length:d.length:0,{type:n,timeout:u,propCount:c,hasTransform:"transition"===n&&Hs.test(a[ks+"Property"])}}function Os(e,t){for(;e.length1}function Ns(e,t){!0!==t.data.show&&Es(t)}var Ws=function(e){var t,n,a={},d=e.modules,l=e.nodeOps;for(t=0;th?y(e,s(n[v+1])?null:n[v+1].elm,n,_,v,a):_>v&&L(t,m,h)}(m,f,v,n,u):r(v)?(r(e.text)&&l.setTextContent(m,""),y(m,null,v,0,v.length-1,n)):r(f)?L(f,0,f.length-1):r(e.text)&&l.setTextContent(m,""):e.text!==t.text&&l.setTextContent(m,t.text),r(h)&&r(_=h.hook)&&r(_=_.postpatch)&&_(e,t)}}}function Y(e,t,n){if(i(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var a=0;a-1,i.selected!==r&&(i.selected=r);else if(A(Bs(i),a))return void(e.selectedIndex!==o&&(e.selectedIndex=o));s||(e.selectedIndex=-1)}}function Js(e,t){return t.every((function(t){return!A(t,e)}))}function Bs(e){return"_value"in e?e._value:e.value}function Vs(e){e.target.composing=!0}function Gs(e){e.target.composing&&(e.target.composing=!1,qs(e.target,"input"))}function qs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Zs(e){return!e.componentInstance||e.data&&e.data.transition?e:Zs(e.componentInstance._vnode)}var Ks={model:$s,show:{bind:function(e,t,n){var a=t.value,s=(n=Zs(n)).data&&n.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;a&&s?(n.data.show=!0,Es(n,(function(){e.style.display=r}))):e.style.display=a?r:"none"},update:function(e,t,n){var a=t.value;!a!=!t.oldValue&&((n=Zs(n)).data&&n.data.transition?(n.data.show=!0,a?Es(n,(function(){e.style.display=e.__vOriginalDisplay})):Rs(n,(function(){e.style.display="none"}))):e.style.display=a?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,a,s){s||(e.style.display=e.__vOriginalDisplay)}}},Xs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Qs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Qs(Bt(t.children)):e}function er(e){var t={},n=e.$options;for(var a in n.propsData)t[a]=e[a];var s=n._parentListeners;for(var r in s)t[w(r)]=s[r];return t}function tr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var nr=function(e){return e.tag||Jt(e)},ar=function(e){return"show"===e.name},sr={name:"transition",props:Xs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(nr)).length){0;var a=this.mode;0;var s=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return s;var r=Qs(s);if(!r)return s;if(this._leaving)return tr(e,s);var i="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?i+"comment":i+r.tag:o(r.key)?0===String(r.key).indexOf(i)?r.key:i+r.key:r.key;var d=(r.data||(r.data={})).transition=er(this),l=this._vnode,u=Qs(l);if(r.data.directives&&r.data.directives.some(ar)&&(r.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(r,u)&&!Jt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var c=u.data.transition=x({},d);if("out-in"===a)return this._leaving=!0,lt(c,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),tr(e,s);if("in-out"===a){if(Jt(r))return l;var m,_=function(){m()};lt(d,"afterEnter",_),lt(d,"enterCancelled",_),lt(c,"delayLeave",(function(e){m=e}))}}return s}}},rr=x({tag:String,moveClass:String},Xs);function ir(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function or(e){e.data.newPos=e.elm.getBoundingClientRect()}function dr(e){var t=e.data.pos,n=e.data.newPos,a=t.left-n.left,s=t.top-n.top;if(a||s){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+a+"px,"+s+"px)",r.transitionDuration="0s"}}delete rr.mode;var lr={Transition:sr,TransitionGroup:{props:rr,beforeMount:function(){var e=this,t=this._update;this._update=function(n,a){var s=Xt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,s(),t.call(e,n,a)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),a=this.prevChildren=this.children,s=this.$slots.default||[],r=this.children=[],i=er(this),o=0;o-1?Xn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Xn[e]=/HTMLUnknownElement/.test(t.toString())},x(Yn.options.directives,Ks),x(Yn.options.components,lr),Yn.prototype.__patch__=V?Ws:H,Yn.prototype.$mount=function(e,t){return function(e,t,n){var a;return e.$el=t,e.$options.render||(e.$options.render=ge),tn(e,"beforeMount"),a=function(){e._update(e._render(),n)},new hn(e,a,H,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&V?ea(e):void 0,t)},V&&setTimeout((function(){N.devtools&&ie&&ie.emit("init",Yn)}),0);var ur=/\{\{((?:.|\r?\n)+?)\}\}/g,cr=/[-.*+?^${}()|[\]\/\\]/g,mr=b((function(e){var t=e[0].replace(cr,"\\$&"),n=e[1].replace(cr,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var _r={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Ia(e,"class");n&&(e.staticClass=JSON.stringify(n));var a=Fa(e,"class",!1);a&&(e.classBinding=a)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var hr,pr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Ia(e,"style");n&&(e.staticStyle=JSON.stringify(is(n)));var a=Fa(e,"style",!1);a&&(e.styleBinding=a)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},fr=function(e){return(hr=hr||document.createElement("div")).innerHTML=e,hr.textContent},vr=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),gr=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yr=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Mr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Lr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,br="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+W.source+"]*",kr="((?:"+br+"\\:)?"+br+")",wr=new RegExp("^<"+kr),Yr=/^\s*(\/?)>/,Dr=new RegExp("^<\\/"+kr+"[^>]*>"),Tr=/^]+>/i,jr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Pr=/&(?:lt|gt|quot|amp|#39);/g,Or=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ar=f("pre,textarea",!0),Er=function(e,t){return e&&Ar(e)&&"\n"===t[0]};function Rr(e,t){var n=t?Or:Pr;return e.replace(n,(function(e){return Hr[e]}))}var Fr,Ir,Nr,Wr,$r,zr,Ur,Jr,Br=/^@|^v-on:/,Vr=/^v-|^@|^:|^#/,Gr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,qr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zr=/^\(|\)$/g,Kr=/^\[.*\]$/,Xr=/:(.*)$/,Qr=/^:|^\.|^v-bind:/,ei=/\.[^.\]]+(?=[^\]]*$)/g,ti=/^v-slot(:|$)|^#/,ni=/[\r\n]/,ai=/\s+/g,si=b(fr);function ri(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:mi(t),rawAttrsMap:{},parent:n,children:[]}}function ii(e,t){Fr=t.warn||xa,zr=t.isPreTag||P,Ur=t.mustUseProp||P,Jr=t.getTagNamespace||P;var n=t.isReservedTag||P;(function(e){return!!e.component||!n(e.tag)}),Nr=Ca(t.modules,"transformNode"),Wr=Ca(t.modules,"preTransformNode"),$r=Ca(t.modules,"postTransformNode"),Ir=t.delimiters;var a,s,r=[],i=!1!==t.preserveWhitespace,o=t.whitespace,d=!1,l=!1;function u(e){if(c(e),d||e.processed||(e=oi(e,t)),r.length||e===a||a.if&&(e.elseif||e.else)&&li(a,{exp:e.elseif,block:e}),s&&!e.forbidden)if(e.elseif||e.else)i=e,(o=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(s.children))&&o.if&&li(o,{exp:i.elseif,block:i});else{if(e.slotScope){var n=e.slotTarget||'"default"';(s.scopedSlots||(s.scopedSlots={}))[n]=e}s.children.push(e),e.parent=s}var i,o;e.children=e.children.filter((function(e){return!e.slotScope})),c(e),e.pre&&(d=!1),zr(e.tag)&&(l=!1);for(var u=0;u<$r.length;u++)$r[u](e,t)}function c(e){if(!l)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,a,s=[],r=t.expectHTML,i=t.isUnaryTag||P,o=t.canBeLeftOpenTag||P,d=0;e;){if(n=e,a&&xr(a)){var l=0,u=a.toLowerCase(),c=Cr[u]||(Cr[u]=new RegExp("([\\s\\S]*?)(]*>)","i")),m=e.replace(c,(function(e,n,a){return l=a.length,xr(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Er(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));d+=e.length-m.length,e=m,D(u,d-l,d)}else{var _=e.indexOf("<");if(0===_){if(jr.test(e)){var h=e.indexOf("--\x3e");if(h>=0){t.shouldKeepComment&&t.comment(e.substring(4,h),d,d+h+3),k(h+3);continue}}if(Sr.test(e)){var p=e.indexOf("]>");if(p>=0){k(p+2);continue}}var f=e.match(Tr);if(f){k(f[0].length);continue}var v=e.match(Dr);if(v){var g=d;k(v[0].length),D(v[1],g,d);continue}var y=w();if(y){Y(y),Er(y.tagName,e)&&k(1);continue}}var M=void 0,L=void 0,b=void 0;if(_>=0){for(L=e.slice(_);!(Dr.test(L)||wr.test(L)||jr.test(L)||Sr.test(L)||(b=L.indexOf("<",1))<0);)_+=b,L=e.slice(_);M=e.substring(0,_)}_<0&&(M=e),M&&k(M.length),t.chars&&M&&t.chars(M,d-M.length,d)}if(e===n){t.chars&&t.chars(e);break}}function k(t){d+=t,e=e.substring(t)}function w(){var t=e.match(wr);if(t){var n,a,s={tagName:t[1],attrs:[],start:d};for(k(t[0].length);!(n=e.match(Yr))&&(a=e.match(Lr)||e.match(Mr));)a.start=d,k(a[0].length),a.end=d,s.attrs.push(a);if(n)return s.unarySlash=n[1],k(n[0].length),s.end=d,s}}function Y(e){var n=e.tagName,d=e.unarySlash;r&&("p"===a&&yr(n)&&D(a),o(n)&&a===n&&D(n));for(var l=i(n)||!!d,u=e.attrs.length,c=new Array(u),m=0;m=0&&s[i].lowerCasedTag!==o;i--);else i=0;if(i>=0){for(var l=s.length-1;l>=i;l--)t.end&&t.end(s[l].tag,n,r);s.length=i,a=i&&s[i-1].tag}else"br"===o?t.start&&t.start(e,[],!0,n,r):"p"===o&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}D()}(e,{warn:Fr,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,i,o,c){var m=s&&s.ns||Jr(e);K&&"svg"===m&&(n=function(e){for(var t=[],n=0;nd&&(o.push(r=e.slice(d,s)),i.push(JSON.stringify(r)));var l=ja(a[1].trim());i.push("_s("+l+")"),o.push({"@binding":l}),d=s+a[0].length}return d-1"+("true"===r?":("+t+")":":_q("+t+","+r+")")),Ra(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+i+");if(Array.isArray($$a)){var $$v="+(a?"_n("+s+")":s)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+za(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+za(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+za(t,"$$c")+"}",null,!0)}(e,a,s);else if("input"===r&&"radio"===i)!function(e,t,n){var a=n&&n.number,s=Fa(e,"value")||"null";Ha(e,"checked","_q("+t+","+(s=a?"_n("+s+")":s)+")"),Ra(e,"change",za(t,s),null,!0)}(e,a,s);else if("input"===r||"textarea"===r)!function(e,t,n){var a=e.attrsMap.type;0;var s=n||{},r=s.lazy,i=s.number,o=s.trim,d=!r&&"range"!==a,l=r?"change":"range"===a?"__r":"input",u="$event.target.value";o&&(u="$event.target.value.trim()");i&&(u="_n("+u+")");var c=za(t,u);d&&(c="if($event.target.composing)return;"+c);Ha(e,"value","("+t+")"),Ra(e,l,c,null,!0),(o||i)&&Ra(e,"blur","$forceUpdate()")}(e,a,s);else{if(!N.isReservedTag(r))return $a(e,a,s),!1}return!0},text:function(e,t){t.value&&Ha(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ha(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:vr,mustUseProp:An,canBeLeftOpenTag:gr,isReservedTag:Zn,getTagNamespace:Kn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(fi)},Mi=b((function(e){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Li(e,t){e&&(vi=Mi(t.staticKeys||""),gi=t.isReservedTag||P,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!gi(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(vi)))}(t),1===t.type){if(!gi(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,a=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,ki=/\([^)]*?\);*$/,wi=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Yi={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Di={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ti=function(e){return"if("+e+")return null;"},ji={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ti("$event.target !== $event.currentTarget"),ctrl:Ti("!$event.ctrlKey"),shift:Ti("!$event.shiftKey"),alt:Ti("!$event.altKey"),meta:Ti("!$event.metaKey"),left:Ti("'button' in $event && $event.button !== 0"),middle:Ti("'button' in $event && $event.button !== 1"),right:Ti("'button' in $event && $event.button !== 2")};function Si(e,t){var n=t?"nativeOn:":"on:",a="",s="";for(var r in e){var i=xi(e[r]);e[r]&&e[r].dynamic?s+=r+","+i+",":a+='"'+r+'":'+i+","}return a="{"+a.slice(0,-1)+"}",s?n+"_d("+a+",["+s.slice(0,-1)+"])":n+a}function xi(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return xi(e)})).join(",")+"]";var t=wi.test(e.value),n=bi.test(e.value),a=wi.test(e.value.replace(ki,""));if(e.modifiers){var s="",r="",i=[];for(var o in e.modifiers)if(ji[o])r+=ji[o],Yi[o]&&i.push(o);else if("exact"===o){var d=e.modifiers;r+=Ti(["ctrl","shift","alt","meta"].filter((function(e){return!d[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else i.push(o);return i.length&&(s+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ci).join("&&")+")return null;"}(i)),r&&(s+=r),"function($event){"+s+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":a?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(a?"return "+e.value:e.value)+"}"}function Ci(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Yi[e],a=Di[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(a)+")"}var Hi={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:H},Pi=function(e){this.options=e,this.warn=e.warn||xa,this.transforms=Ca(e.modules,"transformCode"),this.dataGenFns=Ca(e.modules,"genData"),this.directives=x(x({},Hi),e.directives);var t=e.isReservedTag||P;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Oi(e,t){var n=new Pi(t);return{render:"with(this){return "+(e?Ai(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ai(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ei(e,t);if(e.once&&!e.onceProcessed)return Ri(e,t);if(e.for&&!e.forProcessed)return Ii(e,t);if(e.if&&!e.ifProcessed)return Fi(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',a=zi(e,t),s="_t("+n+(a?","+a:""),r=e.attrs||e.dynamicAttrs?Bi((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:w(e.name),value:e.value,dynamic:e.dynamic}}))):null,i=e.attrsMap["v-bind"];!r&&!i||a||(s+=",null");r&&(s+=","+r);i&&(s+=(r?"":",null")+","+i);return s+")"}(e,t);var n;if(e.component)n=function(e,t,n){var a=t.inlineTemplate?null:zi(t,n,!0);return"_c("+e+","+Ni(t,n)+(a?","+a:"")+")"}(e.component,e,t);else{var a;(!e.plain||e.pre&&t.maybeComponent(e))&&(a=Ni(e,t));var s=e.inlineTemplate?null:zi(e,t,!0);n="_c('"+e.tag+"'"+(a?","+a:"")+(s?","+s:"")+")"}for(var r=0;r>>0}(i):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var r=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var a=Oi(n,t.options);return"inlineTemplate:{render:function(){"+a.render+"},staticRenderFns:["+a.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);r&&(n+=r+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Bi(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Wi(e){return 1===e.type&&("slot"===e.tag||e.children.some(Wi))}function $i(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Fi(e,t,$i,"null");if(e.for&&!e.forProcessed)return Ii(e,t,$i);var a="_empty_"===e.slotScope?"":String(e.slotScope),s="function("+a+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(zi(e,t)||"undefined")+":undefined":zi(e,t)||"undefined":Ai(e,t))+"}",r=a?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+s+r+"}"}function zi(e,t,n,a,s){var r=e.children;if(r.length){var i=r[0];if(1===r.length&&i.for&&"template"!==i.tag&&"slot"!==i.tag){var o=n?t.maybeComponent(i)?",1":",0":"";return""+(a||Ai)(i,t)+o}var d=n?function(e,t){for(var n=0,a=0;a':'
',Ki.innerHTML.indexOf(" ")>0}var to=!!V&&eo(!1),no=!!V&&eo(!0),ao=b((function(e){var t=ea(e);return t&&t.innerHTML})),so=Yn.prototype.$mount;Yn.prototype.$mount=function(e,t){if((e=e&&ea(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var a=n.template;if(a)if("string"==typeof a)"#"===a.charAt(0)&&(a=ao(a));else{if(!a.nodeType)return this;a=a.innerHTML}else e&&(a=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(a){0;var s=Qi(a,{outputSourceRange:!1,shouldDecodeNewlines:to,shouldDecodeNewlinesForHref:no,delimiters:n.delimiters,comments:n.comments},this),r=s.render,i=s.staticRenderFns;n.render=r,n.staticRenderFns=i}}return so.call(this,e,t)},Yn.compile=Qi,t.default=Yn}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/vuex/dist/vuex.esm.js":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return L}));var a=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function r(e){return null!==e&&"object"==typeof e}var i=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},o={namespaced:{configurable:!0}};o.namespaced.get=function(){return!!this._rawModule.namespaced},i.prototype.addChild=function(e,t){this._children[e]=t},i.prototype.removeChild=function(e){delete this._children[e]},i.prototype.getChild=function(e){return this._children[e]},i.prototype.hasChild=function(e){return e in this._children},i.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},i.prototype.forEachChild=function(e){s(this._children,e)},i.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},i.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},i.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(i.prototype,o);var d=function(e){this.register([],e,!1)};d.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},d.prototype.update=function(e){!function e(t,n,a){0;if(n.update(a),a.modules)for(var s in a.modules){if(!n.getChild(s))return void 0;e(t.concat(s),n.getChild(s),a.modules[s])}}([],this.root,e)},d.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0);var r=new i(t,n);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r);t.modules&&s(t.modules,(function(t,s){a.register(e.concat(s),t,n)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)},d.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var l;var u=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var s=e.strict;void 0===s&&(s=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var r=this,i=this.dispatch,o=this.commit;this.dispatch=function(e,t){return i.call(r,e,t)},this.commit=function(e,t,n){return o.call(r,e,t,n)},this.strict=s;var u=this._modules.root.state;p(this,u,[],this._modules.root),h(this,u),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:l.config.devtools)&&function(e){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){a.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){a.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},c={state:{configurable:!0}};function m(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function _(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;p(e,n,[],e._modules.root,!0),h(e,n,t)}function h(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,i={};s(r,(function(t,n){i[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var o=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:i}),l.config.silent=o,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),a&&(n&&e._withCommit((function(){a._data.$$state=null})),l.nextTick((function(){return a.$destroy()})))}function p(e,t,n,a,s){var r=!n.length,i=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=a),!r&&!s){var o=f(t,n.slice(0,-1)),d=n[n.length-1];e._withCommit((function(){l.set(o,d,a.state)}))}var u=a.context=function(e,t,n){var a=""===t,s={dispatch:a?e.dispatch:function(n,a,s){var r=v(n,a,s),i=r.payload,o=r.options,d=r.type;return o&&o.root||(d=t+d),e.dispatch(d,i)},commit:a?e.commit:function(n,a,s){var r=v(n,a,s),i=r.payload,o=r.options,d=r.type;o&&o.root||(d=t+d),e.commit(d,i,o)}};return Object.defineProperties(s,{getters:{get:a?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(s){if(s.slice(0,a)===t){var r=s.slice(a);Object.defineProperty(n,r,{get:function(){return e.getters[s]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return f(e.state,n)}}}),s}(e,i,n);a.forEachMutation((function(t,n){!function(e,t,n,a){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,a.state,t)}))}(e,i+n,t,u)})),a.forEachAction((function(t,n){var a=t.root?n:i+n,s=t.handler||t;!function(e,t,n,a){(e._actions[t]||(e._actions[t]=[])).push((function(t){var s,r=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return(s=r)&&"function"==typeof s.then||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}(e,a,s,u)})),a.forEachGetter((function(t,n){!function(e,t,n,a){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)}}(e,i+n,t,u)})),a.forEachChild((function(a,r){p(e,t,n.concat(r),a,s)}))}function f(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,n){return r(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){l&&e===l|| +var a=Object.freeze({});function s(e){return null==e}function r(e){return null!=e}function i(e){return!0===e}function o(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function d(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function c(e){return"[object RegExp]"===l.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function _(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),a=e.split(","),s=0;s-1)return e.splice(n,1)}}var M=Object.prototype.hasOwnProperty;function L(e,t){return M.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var k=/-(\w)/g,w=b((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),Y=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),D=/\B([A-Z])/g,T=b((function(e){return e.replace(D,"-$1").toLowerCase()}));var j=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var a=arguments.length;return a?a>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function S(e,t){t=t||0;for(var n=e.length-t,a=new Array(n);n--;)a[n]=e[n+t];return a}function x(e,t){for(var n in t)e[n]=t[n];return e}function C(e){for(var t={},n=0;n0,Q=Z&&Z.indexOf("edge/")>0,ee=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===q),te=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ne={}.watch,ae=!1;if(V)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(e){}var re=function(){return void 0===B&&(B=!V&&!G&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),B},ie=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function oe(e){return"function"==typeof e&&/native code/.test(e.toString())}var de,le="undefined"!=typeof Symbol&&oe(Symbol)&&"undefined"!=typeof Reflect&&oe(Reflect.ownKeys);de="undefined"!=typeof Set&&oe(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=H,ce=0,me=function(){this.id=ce++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(r&&!L(s,"default"))i=!1;else if(""===i||i===T(e)){var d=ze(String,s.type);(d<0||o0&&(mt((d=e(d,(n||"")+"_"+a))[0])&&mt(u)&&(c[l]=ye(u.text+d[0].text),d.shift()),c.push.apply(c,d)):o(d)?mt(u)?c[l]=ye(u.text+d):""!==d&&c.push(ye(d)):mt(d)&&mt(u)?c[l]=ye(u.text+d.text):(i(t._isVList)&&r(d.tag)&&s(d.key)&&r(n)&&(d.key="__vlist"+n+"_"+a+"__"),c.push(d)));return c}(e):void 0}function mt(e){return r(e)&&r(e.text)&&!1===e.isComment}function ht(e,t){if(e){for(var n=Object.create(null),a=le?Reflect.ownKeys(e):Object.keys(e),s=0;s0,i=e?!!e.$stable:!r,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==a&&o===n.$key&&!r&&!n.$hasNormal)return n;for(var d in s={},e)e[d]&&"$"!==d[0]&&(s[d]=vt(t,d,e[d]))}else s={};for(var l in t)l in s||(s[l]=gt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=s),z(s,"$stable",i),z(s,"$key",o),z(s,"$hasNormal",r),s}function vt(e,t,n){var a=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:a,enumerable:!0,configurable:!0}),a}function gt(e,t){return function(){return e[t]}}function yt(e,t){var n,a,s,i,o;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),a=0,s=e.length;adocument.createEvent("Event").timeStamp&&(un=function(){return cn.now()})}function mn(){var e,t;for(ln=un(),on=!0,nn.sort((function(e,t){return e.id-t.id})),dn=0;dndn&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);rn||(rn=!0,at(mn))}}(this)},_n.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||d(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ue(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},_n.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},_n.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},_n.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:H,set:H};function fn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},a=e._props={},s=e.$options._propKeys=[];e.$parent&&Ye(!1);var r=function(r){s.push(r);var i=Ne(r,t,n,e);je(a,r,i),r in e||fn(e,"_props",r)};for(var i in t)r(i);Ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?H:j(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){_e();try{return e.call(t,t)}catch(e){return Ue(e,t,"data()"),{}}finally{pe()}}(t,e):t||{})||(t={});var n=Object.keys(t),a=e.$options.props,s=(e.$options.methods,n.length);for(;s--;){var r=n[s];0,a&&L(a,r)||$(r)||fn(e,"_data",r)}Te(t,!0)}(e):Te(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),a=re();for(var s in t){var r=t[s],i="function"==typeof r?r:r.get;0,a||(n[s]=new _n(e,i||H,H,gn)),s in e||yn(e,s,r)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var a=t[n];if(Array.isArray(a))for(var s=0;s-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!c(e)&&e.test(t)}function Sn(e,t){var n=e.cache,a=e.keys,s=e._vnode;for(var r in n){var i=n[r];if(i){var o=Tn(i.componentOptions);o&&!t(o)&&xn(n,r,a,s)}}}function xn(e,t,n,a){var s=e[t];!s||a&&s.tag===a.tag||s.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=kn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),a=t._parentVnode;n.parent=t.parent,n._parentVnode=a;var s=a.componentOptions;n.propsData=s.propsData,n._parentListeners=s.listeners,n._renderChildren=s.children,n._componentTag=s.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Fe(wn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,s=n&&n.context;e.$slots=_t(t._renderChildren,s),e.$scopedSlots=a,e._c=function(t,n,a,s){return Wt(e,t,n,a,s,!1)},e.$createElement=function(t,n,a,s){return Wt(e,t,n,a,s,!0)};var r=n&&n.data;je(e,"$attrs",r&&r.attrs||a,null,!0),je(e,"$listeners",t._parentListeners||a,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=ht(e.$options.inject,e);t&&(Ye(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Ye(!0))}(t),vn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Yn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Se,e.prototype.$delete=xe,e.prototype.$watch=function(e,t,n){if(u(t))return bn(this,e,t,n);(n=n||{}).user=!0;var a=new _n(this,e,t,n);if(n.immediate)try{t.call(this,a.value)}catch(e){Ue(e,this,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(Yn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var a=this;if(Array.isArray(e))for(var s=0,r=e.length;s1?S(n):n;for(var a=S(arguments,1),s='event handler for "'+e+'"',r=0,i=n.length;rparseInt(this.max)&&xn(i,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return N}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:x,mergeOptions:Fe,defineReactive:je},e.set=Se,e.delete=xe,e.nextTick=at,e.observable=function(e){return Te(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,x(e.options.components,Hn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Fe(this.options,e),this}}(e),Dn(e),function(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Yn),Object.defineProperty(Yn.prototype,"$isServer",{get:re}),Object.defineProperty(Yn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Yn,"FunctionalRenderContext",{value:Ot}),Yn.version="2.6.11";var Pn=f("style,class"),On=f("input,textarea,option,select,progress"),An=function(e,t,n){return"value"===n&&On(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},En=f("contenteditable,draggable,spellcheck"),Rn=f("events,caret,typing,plaintext-only"),Fn=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",Nn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Wn=function(e){return Nn(e)?e.slice(6,e.length):""},$n=function(e){return null==e||!1===e};function zn(e){for(var t=e.data,n=e,a=e;r(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(t=Un(a.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Un(t,n.data));return function(e,t){if(r(e)||r(t))return Bn(e,Jn(t));return""}(t.staticClass,t.class)}function Un(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function Jn(e){return Array.isArray(e)?function(e){for(var t,n="",a=0,s=e.length;a-1?va(e,t,n):Fn(t)?$n(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):En(t)?e.setAttribute(t,function(e,t){return $n(t)||"false"===t?"false":"contenteditable"===e&&Rn(t)?t:"true"}(t,n)):Nn(t)?$n(n)?e.removeAttributeNS(In,Wn(t)):e.setAttributeNS(In,t,n):va(e,t,n)}function va(e,t,n){if($n(n))e.removeAttribute(t);else{if(K&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var a=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(t,n)}}var ga={create:pa,update:pa};function ya(e,t){var n=t.elm,a=t.data,i=e.data;if(!(s(a.staticClass)&&s(a.class)&&(s(i)||s(i.staticClass)&&s(i.class)))){var o=zn(t),d=n._transitionClasses;r(d)&&(o=Bn(o,Jn(d))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Ma,La,ba,ka,wa,Ya,Da={create:ya,update:ya},Ta=/[\w).+\-_$\]]/;function ja(e){var t,n,a,s,r,i=!1,o=!1,d=!1,l=!1,u=0,c=0,m=0,h=0;for(a=0;a=0&&" "===(p=e.charAt(_));_--);p&&Ta.test(p)||(l=!0)}}else void 0===s?(h=a+1,s=e.slice(0,a).trim()):f();function f(){(r||(r=[])).push(e.slice(h,a).trim()),h=a+1}if(void 0===s?s=e.slice(0,a).trim():0!==h&&f(),r)for(a=0;a-1?{exp:e.slice(0,ka),key:'"'+e.slice(ka+1)+'"'}:{exp:e,key:null};La=e,ka=wa=Ya=0;for(;!Ba();)Ja(ba=Ua())?Ga(ba):91===ba&&Va(ba);return{exp:e.slice(0,wa),key:e.slice(wa+1,Ya)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ua(){return La.charCodeAt(++ka)}function Ba(){return ka>=Ma}function Ja(e){return 34===e||39===e}function Va(e){var t=1;for(wa=ka;!Ba();)if(Ja(e=Ua()))Ga(e);else if(91===e&&t++,93===e&&t--,0===t){Ya=ka;break}}function Ga(e){for(var t=e;!Ba()&&(e=Ua())!==t;);}var qa;function Za(e,t,n){var a=qa;return function s(){var r=t.apply(null,arguments);null!==r&&Qa(e,s,n,a)}}var Ka=qe&&!(te&&Number(te[1])<=53);function Xa(e,t,n,a){if(Ka){var s=ln,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=s||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}qa.addEventListener(e,t,ae?{capture:n,passive:a}:n)}function Qa(e,t,n,a){(a||qa).removeEventListener(e,t._wrapper||t,n)}function es(e,t){if(!s(e.data.on)||!s(t.data.on)){var n=t.data.on||{},a=e.data.on||{};qa=t.elm,function(e){if(r(e.__r)){var t=K?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}r(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),dt(n,a,Xa,Qa,Za,t.context),qa=void 0}}var ts,ns={create:es,update:es};function as(e,t){if(!s(e.data.domProps)||!s(t.data.domProps)){var n,a,i=t.elm,o=e.data.domProps||{},d=t.data.domProps||{};for(n in r(d.__ob__)&&(d=t.data.domProps=x({},d)),o)n in d||(i[n]="");for(n in d){if(a=d[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=a;var l=s(a)?"":String(a);ss(i,l)&&(i.value=l)}else if("innerHTML"===n&&qn(i.tagName)&&s(i.innerHTML)){(ts=ts||document.createElement("div")).innerHTML=""+a+"";for(var u=ts.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;u.firstChild;)i.appendChild(u.firstChild)}else if(a!==o[n])try{i[n]=a}catch(e){}}}}function ss(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,a=e._vModifiers;if(r(a)){if(a.number)return p(n)!==p(t);if(a.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var rs={create:as,update:as},is=b((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var a=e.split(n);a.length>1&&(t[a[0].trim()]=a[1].trim())}})),t}));function os(e){var t=ds(e.style);return e.staticStyle?x(e.staticStyle,t):t}function ds(e){return Array.isArray(e)?C(e):"string"==typeof e?is(e):e}var ls,us=/^--/,cs=/\s*!important$/,ms=function(e,t,n){if(us.test(t))e.style.setProperty(t,n);else if(cs.test(n))e.style.setProperty(T(t),n.replace(cs,""),"important");else{var a=_s(t);if(Array.isArray(n))for(var s=0,r=n.length;s-1?t.split(vs).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ys(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(vs).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",a=" "+t+" ";n.indexOf(a)>=0;)n=n.replace(a," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Ms(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&x(t,Ls(e.name||"v")),x(t,e),t}return"string"==typeof e?Ls(e):void 0}}var Ls=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bs=V&&!X,ks="transition",ws="transitionend",Ys="animation",Ds="animationend";bs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ks="WebkitTransition",ws="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ys="WebkitAnimation",Ds="webkitAnimationEnd"));var Ts=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function js(e){Ts((function(){Ts(e)}))}function Ss(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gs(e,t))}function xs(e,t){e._transitionClasses&&y(e._transitionClasses,t),ys(e,t)}function Cs(e,t,n){var a=Ps(e,t),s=a.type,r=a.timeout,i=a.propCount;if(!s)return n();var o="transition"===s?ws:Ds,d=0,l=function(){e.removeEventListener(o,u),n()},u=function(t){t.target===e&&++d>=i&&l()};setTimeout((function(){d0&&(n="transition",u=i,c=r.length):"animation"===t?l>0&&(n="animation",u=l,c=d.length):c=(n=(u=Math.max(i,l))>0?i>l?"transition":"animation":null)?"transition"===n?r.length:d.length:0,{type:n,timeout:u,propCount:c,hasTransform:"transition"===n&&Hs.test(a[ks+"Property"])}}function Os(e,t){for(;e.length1}function Ns(e,t){!0!==t.data.show&&Es(t)}var Ws=function(e){var t,n,a={},d=e.modules,l=e.nodeOps;for(t=0;t_?y(e,s(n[v+1])?null:n[v+1].elm,n,h,v,a):h>v&&L(t,m,_)}(m,f,v,n,u):r(v)?(r(e.text)&&l.setTextContent(m,""),y(m,null,v,0,v.length-1,n)):r(f)?L(f,0,f.length-1):r(e.text)&&l.setTextContent(m,""):e.text!==t.text&&l.setTextContent(m,t.text),r(_)&&r(h=_.hook)&&r(h=h.postpatch)&&h(e,t)}}}function Y(e,t,n){if(i(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var a=0;a-1,i.selected!==r&&(i.selected=r);else if(A(Js(i),a))return void(e.selectedIndex!==o&&(e.selectedIndex=o));s||(e.selectedIndex=-1)}}function Bs(e,t){return t.every((function(t){return!A(t,e)}))}function Js(e){return"_value"in e?e._value:e.value}function Vs(e){e.target.composing=!0}function Gs(e){e.target.composing&&(e.target.composing=!1,qs(e.target,"input"))}function qs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Zs(e){return!e.componentInstance||e.data&&e.data.transition?e:Zs(e.componentInstance._vnode)}var Ks={model:$s,show:{bind:function(e,t,n){var a=t.value,s=(n=Zs(n)).data&&n.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;a&&s?(n.data.show=!0,Es(n,(function(){e.style.display=r}))):e.style.display=a?r:"none"},update:function(e,t,n){var a=t.value;!a!=!t.oldValue&&((n=Zs(n)).data&&n.data.transition?(n.data.show=!0,a?Es(n,(function(){e.style.display=e.__vOriginalDisplay})):Rs(n,(function(){e.style.display="none"}))):e.style.display=a?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,a,s){s||(e.style.display=e.__vOriginalDisplay)}}},Xs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Qs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Qs(Jt(t.children)):e}function er(e){var t={},n=e.$options;for(var a in n.propsData)t[a]=e[a];var s=n._parentListeners;for(var r in s)t[w(r)]=s[r];return t}function tr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var nr=function(e){return e.tag||Bt(e)},ar=function(e){return"show"===e.name},sr={name:"transition",props:Xs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(nr)).length){0;var a=this.mode;0;var s=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return s;var r=Qs(s);if(!r)return s;if(this._leaving)return tr(e,s);var i="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?i+"comment":i+r.tag:o(r.key)?0===String(r.key).indexOf(i)?r.key:i+r.key:r.key;var d=(r.data||(r.data={})).transition=er(this),l=this._vnode,u=Qs(l);if(r.data.directives&&r.data.directives.some(ar)&&(r.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(r,u)&&!Bt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var c=u.data.transition=x({},d);if("out-in"===a)return this._leaving=!0,lt(c,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),tr(e,s);if("in-out"===a){if(Bt(r))return l;var m,h=function(){m()};lt(d,"afterEnter",h),lt(d,"enterCancelled",h),lt(c,"delayLeave",(function(e){m=e}))}}return s}}},rr=x({tag:String,moveClass:String},Xs);function ir(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function or(e){e.data.newPos=e.elm.getBoundingClientRect()}function dr(e){var t=e.data.pos,n=e.data.newPos,a=t.left-n.left,s=t.top-n.top;if(a||s){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+a+"px,"+s+"px)",r.transitionDuration="0s"}}delete rr.mode;var lr={Transition:sr,TransitionGroup:{props:rr,beforeMount:function(){var e=this,t=this._update;this._update=function(n,a){var s=Xt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,s(),t.call(e,n,a)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),a=this.prevChildren=this.children,s=this.$slots.default||[],r=this.children=[],i=er(this),o=0;o-1?Xn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Xn[e]=/HTMLUnknownElement/.test(t.toString())},x(Yn.options.directives,Ks),x(Yn.options.components,lr),Yn.prototype.__patch__=V?Ws:H,Yn.prototype.$mount=function(e,t){return function(e,t,n){var a;return e.$el=t,e.$options.render||(e.$options.render=ge),tn(e,"beforeMount"),a=function(){e._update(e._render(),n)},new _n(e,a,H,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&V?ea(e):void 0,t)},V&&setTimeout((function(){N.devtools&&ie&&ie.emit("init",Yn)}),0);var ur=/\{\{((?:.|\r?\n)+?)\}\}/g,cr=/[-.*+?^${}()|[\]\/\\]/g,mr=b((function(e){var t=e[0].replace(cr,"\\$&"),n=e[1].replace(cr,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var hr={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Ia(e,"class");n&&(e.staticClass=JSON.stringify(n));var a=Fa(e,"class",!1);a&&(e.classBinding=a)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var _r,pr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Ia(e,"style");n&&(e.staticStyle=JSON.stringify(is(n)));var a=Fa(e,"style",!1);a&&(e.styleBinding=a)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},fr=function(e){return(_r=_r||document.createElement("div")).innerHTML=e,_r.textContent},vr=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),gr=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yr=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Mr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Lr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,br="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+W.source+"]*",kr="((?:"+br+"\\:)?"+br+")",wr=new RegExp("^<"+kr),Yr=/^\s*(\/?)>/,Dr=new RegExp("^<\\/"+kr+"[^>]*>"),Tr=/^]+>/i,jr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Pr=/&(?:lt|gt|quot|amp|#39);/g,Or=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ar=f("pre,textarea",!0),Er=function(e,t){return e&&Ar(e)&&"\n"===t[0]};function Rr(e,t){var n=t?Or:Pr;return e.replace(n,(function(e){return Hr[e]}))}var Fr,Ir,Nr,Wr,$r,zr,Ur,Br,Jr=/^@|^v-on:/,Vr=/^v-|^@|^:|^#/,Gr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,qr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zr=/^\(|\)$/g,Kr=/^\[.*\]$/,Xr=/:(.*)$/,Qr=/^:|^\.|^v-bind:/,ei=/\.[^.\]]+(?=[^\]]*$)/g,ti=/^v-slot(:|$)|^#/,ni=/[\r\n]/,ai=/\s+/g,si=b(fr);function ri(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:mi(t),rawAttrsMap:{},parent:n,children:[]}}function ii(e,t){Fr=t.warn||xa,zr=t.isPreTag||P,Ur=t.mustUseProp||P,Br=t.getTagNamespace||P;var n=t.isReservedTag||P;(function(e){return!!e.component||!n(e.tag)}),Nr=Ca(t.modules,"transformNode"),Wr=Ca(t.modules,"preTransformNode"),$r=Ca(t.modules,"postTransformNode"),Ir=t.delimiters;var a,s,r=[],i=!1!==t.preserveWhitespace,o=t.whitespace,d=!1,l=!1;function u(e){if(c(e),d||e.processed||(e=oi(e,t)),r.length||e===a||a.if&&(e.elseif||e.else)&&li(a,{exp:e.elseif,block:e}),s&&!e.forbidden)if(e.elseif||e.else)i=e,(o=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(s.children))&&o.if&&li(o,{exp:i.elseif,block:i});else{if(e.slotScope){var n=e.slotTarget||'"default"';(s.scopedSlots||(s.scopedSlots={}))[n]=e}s.children.push(e),e.parent=s}var i,o;e.children=e.children.filter((function(e){return!e.slotScope})),c(e),e.pre&&(d=!1),zr(e.tag)&&(l=!1);for(var u=0;u<$r.length;u++)$r[u](e,t)}function c(e){if(!l)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,a,s=[],r=t.expectHTML,i=t.isUnaryTag||P,o=t.canBeLeftOpenTag||P,d=0;e;){if(n=e,a&&xr(a)){var l=0,u=a.toLowerCase(),c=Cr[u]||(Cr[u]=new RegExp("([\\s\\S]*?)(]*>)","i")),m=e.replace(c,(function(e,n,a){return l=a.length,xr(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Er(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));d+=e.length-m.length,e=m,D(u,d-l,d)}else{var h=e.indexOf("<");if(0===h){if(jr.test(e)){var _=e.indexOf("--\x3e");if(_>=0){t.shouldKeepComment&&t.comment(e.substring(4,_),d,d+_+3),k(_+3);continue}}if(Sr.test(e)){var p=e.indexOf("]>");if(p>=0){k(p+2);continue}}var f=e.match(Tr);if(f){k(f[0].length);continue}var v=e.match(Dr);if(v){var g=d;k(v[0].length),D(v[1],g,d);continue}var y=w();if(y){Y(y),Er(y.tagName,e)&&k(1);continue}}var M=void 0,L=void 0,b=void 0;if(h>=0){for(L=e.slice(h);!(Dr.test(L)||wr.test(L)||jr.test(L)||Sr.test(L)||(b=L.indexOf("<",1))<0);)h+=b,L=e.slice(h);M=e.substring(0,h)}h<0&&(M=e),M&&k(M.length),t.chars&&M&&t.chars(M,d-M.length,d)}if(e===n){t.chars&&t.chars(e);break}}function k(t){d+=t,e=e.substring(t)}function w(){var t=e.match(wr);if(t){var n,a,s={tagName:t[1],attrs:[],start:d};for(k(t[0].length);!(n=e.match(Yr))&&(a=e.match(Lr)||e.match(Mr));)a.start=d,k(a[0].length),a.end=d,s.attrs.push(a);if(n)return s.unarySlash=n[1],k(n[0].length),s.end=d,s}}function Y(e){var n=e.tagName,d=e.unarySlash;r&&("p"===a&&yr(n)&&D(a),o(n)&&a===n&&D(n));for(var l=i(n)||!!d,u=e.attrs.length,c=new Array(u),m=0;m=0&&s[i].lowerCasedTag!==o;i--);else i=0;if(i>=0){for(var l=s.length-1;l>=i;l--)t.end&&t.end(s[l].tag,n,r);s.length=i,a=i&&s[i-1].tag}else"br"===o?t.start&&t.start(e,[],!0,n,r):"p"===o&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}D()}(e,{warn:Fr,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,i,o,c){var m=s&&s.ns||Br(e);K&&"svg"===m&&(n=function(e){for(var t=[],n=0;nd&&(o.push(r=e.slice(d,s)),i.push(JSON.stringify(r)));var l=ja(a[1].trim());i.push("_s("+l+")"),o.push({"@binding":l}),d=s+a[0].length}return d-1"+("true"===r?":("+t+")":":_q("+t+","+r+")")),Ra(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+i+");if(Array.isArray($$a)){var $$v="+(a?"_n("+s+")":s)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+za(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+za(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+za(t,"$$c")+"}",null,!0)}(e,a,s);else if("input"===r&&"radio"===i)!function(e,t,n){var a=n&&n.number,s=Fa(e,"value")||"null";Ha(e,"checked","_q("+t+","+(s=a?"_n("+s+")":s)+")"),Ra(e,"change",za(t,s),null,!0)}(e,a,s);else if("input"===r||"textarea"===r)!function(e,t,n){var a=e.attrsMap.type;0;var s=n||{},r=s.lazy,i=s.number,o=s.trim,d=!r&&"range"!==a,l=r?"change":"range"===a?"__r":"input",u="$event.target.value";o&&(u="$event.target.value.trim()");i&&(u="_n("+u+")");var c=za(t,u);d&&(c="if($event.target.composing)return;"+c);Ha(e,"value","("+t+")"),Ra(e,l,c,null,!0),(o||i)&&Ra(e,"blur","$forceUpdate()")}(e,a,s);else{if(!N.isReservedTag(r))return $a(e,a,s),!1}return!0},text:function(e,t){t.value&&Ha(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ha(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:vr,mustUseProp:An,canBeLeftOpenTag:gr,isReservedTag:Zn,getTagNamespace:Kn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(fi)},Mi=b((function(e){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Li(e,t){e&&(vi=Mi(t.staticKeys||""),gi=t.isReservedTag||P,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!gi(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(vi)))}(t),1===t.type){if(!gi(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,a=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,ki=/\([^)]*?\);*$/,wi=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Yi={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Di={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ti=function(e){return"if("+e+")return null;"},ji={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ti("$event.target !== $event.currentTarget"),ctrl:Ti("!$event.ctrlKey"),shift:Ti("!$event.shiftKey"),alt:Ti("!$event.altKey"),meta:Ti("!$event.metaKey"),left:Ti("'button' in $event && $event.button !== 0"),middle:Ti("'button' in $event && $event.button !== 1"),right:Ti("'button' in $event && $event.button !== 2")};function Si(e,t){var n=t?"nativeOn:":"on:",a="",s="";for(var r in e){var i=xi(e[r]);e[r]&&e[r].dynamic?s+=r+","+i+",":a+='"'+r+'":'+i+","}return a="{"+a.slice(0,-1)+"}",s?n+"_d("+a+",["+s.slice(0,-1)+"])":n+a}function xi(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return xi(e)})).join(",")+"]";var t=wi.test(e.value),n=bi.test(e.value),a=wi.test(e.value.replace(ki,""));if(e.modifiers){var s="",r="",i=[];for(var o in e.modifiers)if(ji[o])r+=ji[o],Yi[o]&&i.push(o);else if("exact"===o){var d=e.modifiers;r+=Ti(["ctrl","shift","alt","meta"].filter((function(e){return!d[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else i.push(o);return i.length&&(s+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ci).join("&&")+")return null;"}(i)),r&&(s+=r),"function($event){"+s+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":a?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(a?"return "+e.value:e.value)+"}"}function Ci(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Yi[e],a=Di[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(a)+")"}var Hi={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:H},Pi=function(e){this.options=e,this.warn=e.warn||xa,this.transforms=Ca(e.modules,"transformCode"),this.dataGenFns=Ca(e.modules,"genData"),this.directives=x(x({},Hi),e.directives);var t=e.isReservedTag||P;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Oi(e,t){var n=new Pi(t);return{render:"with(this){return "+(e?Ai(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ai(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ei(e,t);if(e.once&&!e.onceProcessed)return Ri(e,t);if(e.for&&!e.forProcessed)return Ii(e,t);if(e.if&&!e.ifProcessed)return Fi(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',a=zi(e,t),s="_t("+n+(a?","+a:""),r=e.attrs||e.dynamicAttrs?Ji((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:w(e.name),value:e.value,dynamic:e.dynamic}}))):null,i=e.attrsMap["v-bind"];!r&&!i||a||(s+=",null");r&&(s+=","+r);i&&(s+=(r?"":",null")+","+i);return s+")"}(e,t);var n;if(e.component)n=function(e,t,n){var a=t.inlineTemplate?null:zi(t,n,!0);return"_c("+e+","+Ni(t,n)+(a?","+a:"")+")"}(e.component,e,t);else{var a;(!e.plain||e.pre&&t.maybeComponent(e))&&(a=Ni(e,t));var s=e.inlineTemplate?null:zi(e,t,!0);n="_c('"+e.tag+"'"+(a?","+a:"")+(s?","+s:"")+")"}for(var r=0;r>>0}(i):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var r=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var a=Oi(n,t.options);return"inlineTemplate:{render:function(){"+a.render+"},staticRenderFns:["+a.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);r&&(n+=r+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ji(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Wi(e){return 1===e.type&&("slot"===e.tag||e.children.some(Wi))}function $i(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Fi(e,t,$i,"null");if(e.for&&!e.forProcessed)return Ii(e,t,$i);var a="_empty_"===e.slotScope?"":String(e.slotScope),s="function("+a+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(zi(e,t)||"undefined")+":undefined":zi(e,t)||"undefined":Ai(e,t))+"}",r=a?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+s+r+"}"}function zi(e,t,n,a,s){var r=e.children;if(r.length){var i=r[0];if(1===r.length&&i.for&&"template"!==i.tag&&"slot"!==i.tag){var o=n?t.maybeComponent(i)?",1":",0":"";return""+(a||Ai)(i,t)+o}var d=n?function(e,t){for(var n=0,a=0;a':'
',Ki.innerHTML.indexOf(" ")>0}var to=!!V&&eo(!1),no=!!V&&eo(!0),ao=b((function(e){var t=ea(e);return t&&t.innerHTML})),so=Yn.prototype.$mount;Yn.prototype.$mount=function(e,t){if((e=e&&ea(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var a=n.template;if(a)if("string"==typeof a)"#"===a.charAt(0)&&(a=ao(a));else{if(!a.nodeType)return this;a=a.innerHTML}else e&&(a=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(a){0;var s=Qi(a,{outputSourceRange:!1,shouldDecodeNewlines:to,shouldDecodeNewlinesForHref:no,delimiters:n.delimiters,comments:n.comments},this),r=s.render,i=s.staticRenderFns;n.render=r,n.staticRenderFns=i}}return so.call(this,e,t)},Yn.compile=Qi,t.default=Yn}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/vuex/dist/vuex.esm.js":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return L}));var a=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function r(e){return null!==e&&"object"==typeof e}var i=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},o={namespaced:{configurable:!0}};o.namespaced.get=function(){return!!this._rawModule.namespaced},i.prototype.addChild=function(e,t){this._children[e]=t},i.prototype.removeChild=function(e){delete this._children[e]},i.prototype.getChild=function(e){return this._children[e]},i.prototype.hasChild=function(e){return e in this._children},i.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},i.prototype.forEachChild=function(e){s(this._children,e)},i.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},i.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},i.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(i.prototype,o);var d=function(e){this.register([],e,!1)};d.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},d.prototype.update=function(e){!function e(t,n,a){0;if(n.update(a),a.modules)for(var s in a.modules){if(!n.getChild(s))return void 0;e(t.concat(s),n.getChild(s),a.modules[s])}}([],this.root,e)},d.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0);var r=new i(t,n);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r);t.modules&&s(t.modules,(function(t,s){a.register(e.concat(s),t,n)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)},d.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var l;var u=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var s=e.strict;void 0===s&&(s=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var r=this,i=this.dispatch,o=this.commit;this.dispatch=function(e,t){return i.call(r,e,t)},this.commit=function(e,t,n){return o.call(r,e,t,n)},this.strict=s;var u=this._modules.root.state;p(this,u,[],this._modules.root),_(this,u),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:l.config.devtools)&&function(e){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){a.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){a.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},c={state:{configurable:!0}};function m(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;p(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,i={};s(r,(function(t,n){i[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var o=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:i}),l.config.silent=o,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),a&&(n&&e._withCommit((function(){a._data.$$state=null})),l.nextTick((function(){return a.$destroy()})))}function p(e,t,n,a,s){var r=!n.length,i=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=a),!r&&!s){var o=f(t,n.slice(0,-1)),d=n[n.length-1];e._withCommit((function(){l.set(o,d,a.state)}))}var u=a.context=function(e,t,n){var a=""===t,s={dispatch:a?e.dispatch:function(n,a,s){var r=v(n,a,s),i=r.payload,o=r.options,d=r.type;return o&&o.root||(d=t+d),e.dispatch(d,i)},commit:a?e.commit:function(n,a,s){var r=v(n,a,s),i=r.payload,o=r.options,d=r.type;o&&o.root||(d=t+d),e.commit(d,i,o)}};return Object.defineProperties(s,{getters:{get:a?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(s){if(s.slice(0,a)===t){var r=s.slice(a);Object.defineProperty(n,r,{get:function(){return e.getters[s]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return f(e.state,n)}}}),s}(e,i,n);a.forEachMutation((function(t,n){!function(e,t,n,a){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,a.state,t)}))}(e,i+n,t,u)})),a.forEachAction((function(t,n){var a=t.root?n:i+n,s=t.handler||t;!function(e,t,n,a){(e._actions[t]||(e._actions[t]=[])).push((function(t){var s,r=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return(s=r)&&"function"==typeof s.then||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}(e,a,s,u)})),a.forEachGetter((function(t,n){!function(e,t,n,a){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)}}(e,i+n,t,u)})),a.forEachChild((function(a,r){p(e,t,n.concat(r),a,s)}))}function f(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,n){return r(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){l&&e===l|| /*! * vuex v3.4.0 * (c) 2020 Evan You * @license MIT */ -function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l=e)}c.state.get=function(){return this._vm._data.$$state},c.state.set=function(e){0},u.prototype.commit=function(e,t,n){var a=this,s=v(e,t,n),r=s.type,i=s.payload,o=(s.options,{type:r,payload:i}),d=this._mutations[r];d&&(this._withCommit((function(){d.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(o,a.state)})))},u.prototype.dispatch=function(e,t){var n=this,a=v(e,t),s=a.type,r=a.payload,i={type:s,payload:r},o=this._actions[s];if(o){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(e){0}var d=o.length>1?Promise.all(o.map((function(e){return e(r)}))):o[0](r);return new Promise((function(e,t){d.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(e){0}t(e)}))}))}},u.prototype.subscribe=function(e,t){return m(e,this._subscribers,t)},u.prototype.subscribeAction=function(e,t){return m("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},u.prototype.watch=function(e,t,n){var a=this;return this._watcherVM.$watch((function(){return e(a.state,a.getters)}),t,n)},u.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},u.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),p(this,this.state,e,this._modules.get(e),n.preserveState),h(this,this.state)},u.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=f(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),_(this)},u.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},u.prototype.hotUpdate=function(e){this._modules.update(e),_(this,!0)},u.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(u.prototype,c);var y=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=Y(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"==typeof s?s.call(this,t,n):t[s]},n[a].vuex=!0})),n})),M=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.commit;if(e){var r=Y(this.$store,"mapMutations",e);if(!r)return;a=r.context.commit}return"function"==typeof s?s.apply(this,[a].concat(t)):a.apply(this.$store,[s].concat(t))}})),n})),L=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;s=e+s,n[a]=function(){if(!e||Y(this.$store,"mapGetters",e))return this.$store.getters[s]},n[a].vuex=!0})),n})),b=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var r=Y(this.$store,"mapActions",e);if(!r)return;a=r.context.dispatch}return"function"==typeof s?s.apply(this,[a].concat(t)):a.apply(this.$store,[s].concat(t))}})),n}));function k(e){return function(e){return Array.isArray(e)||r(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function w(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Y(e,t,n){return e._modulesNamespaceMap[n]}var D={Store:u,install:g,version:"3.4.0",mapState:y,mapMutations:M,mapGetters:L,mapActions:b,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:L.bind(null,e),mapMutations:M.bind(null,e),mapActions:b.bind(null,e)}}};t.b=D}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./resources/scripts/applications/home/app.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&"),s=n("./resources/scripts/applications/home/app.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("bc5a19e4")?o.reload("bc5a19e4",i.options):o.createRecord("bc5a19e4",i.options),e.hot.accept("./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&",function(e){a=n("./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&"),o.rerender("bc5a19e4",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/app.vue",t.a=i.exports},"./resources/scripts/applications/home/app.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/Header.vue"),s=n("./resources/scripts/applications/shared/components/Notification.vue"),r=n("./node_modules/vuex/dist/vuex.esm.js"),i=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),o=n("./resources/scripts/applications/shared/components/TopNavbar.vue"),d=n("./resources/scripts/applications/home/ws/websocket.service.ts"),l={name:"App",components:{Header:a.a,Notification:s.a,Loading:i.a,TopNavbar:o.a},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(e.getUser());case 2:return t.sent,t.next=5,regeneratorRuntime.awrap(d.a.getInstance());case 5:return e.ws=t.sent,e.ws.on(d.a.Events.CONNECTION_ONLINE,t=>{console.log("User Online: "+JSON.stringify(t,null,2)),e.notify({message:t.name+" is online!",level:"success"})}),e.ws.on(d.a.Events.CONNECTION_OFFLINE,t=>{e.notify({message:t.name+" disconnected",level:"warning"})}),e.ws.on(d.a.Events.INCOMING_CALL,e.onIncomingCall.bind(e)),e.loading=!1,t.abrupt("return",!0);case 11:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({appName:"Seepur",loading:!0,ws:null}),computed:{...Object(r.d)(["notifications"])},methods:{onIncomingCall(e){this.notify({message:"New call from "+e.child.name,level:"success"}),this.$router.replace({path:"/call/"+e.callId})},onNotificationClose(e){this.dismissNotification(e.id)},...Object(r.c)(["dismissNotification","getUser","notify"])}};t.a=l},"./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app"},[n("TopNavbar",{attrs:{ws:this.ws}}),e._v(" "),e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("div",{staticClass:"notifications"},e._l(e.notifications,(function(t){return n("Notification",{key:t.id,attrs:{notification:t},on:{onClose:function(n){return e.onNotificationClose(t)}}})})),1),e._v(" "),n("div",{staticClass:"app-content m-t-xs is-fullheight"},[n("div",{staticClass:"application"},[n("router-view")],1)])])],1)},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/AddChildModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&"),s=n("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("17ed057c")?o.reload("17ed057c",i.options):o.createRecord("17ed057c",i.options),e.hot.accept("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&",function(e){a=n("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&"),o.rerender("17ed057c",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/AddChildModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./resources/scripts/applications/services/index.ts"),r=n("./resources/scripts/applications/home/components/ImagePicker.vue"),i={name:"AddChildModal",components:{Modal:a.a,ImagePicker:r.a},props:["isActive"],data:()=>({errors:{},childValidation:{enableInput:!0,name:null,dob:null,avatar:null}}),methods:{onColse(){this.$emit("onClose"),this.childValidation.name=null,this.childValidation.dob=null,this.childValidation.avatar=null},addChild(){var e,t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return n.errors={},n.childValidation.enableInput=!1,e={name:n.childValidation.name,dob:n.childValidation.dob,avatar:n.$refs.imagePicker.generateDataUrl("image/png",.8)},n.$refs.imagePicker.isDefaultImage&&delete e.avatar,a.prev=4,a.next=7,regeneratorRuntime.awrap(s.a.ApiService.createChild(e.name,e.dob,e.avatar));case 7:201===(t=a.sent).code?n.$emit("onCreated",t.child):400===t.code?t.message.forEach(e=>{n.errors[e.field]=e}):(n.$emit("onFail",t.message),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null),a.next=17;break;case 11:a.prev=11,a.t0=a.catch(4),n.$emit("onFail",a.t0.message),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null;case 17:return n.childValidation.enableInput=!0,a.abrupt("return",!0);case 19:case"end":return a.stop()}}),null,null,[[4,11]],Promise)}}};t.a=i},"./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"Add your child",isActive:e.isActive,acceptText:"Add",rejectText:"Cancel"},on:{accept:function(t){return e.addChild()},close:function(t){return e.onColse()}}},[n("h2",{staticClass:"subtitle"},[e._v("I am the proud parent of:")]),e._v(" "),n("form",{staticClass:"form",attrs:{id:"form-add-child"}},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Name")]),e._v(" "),n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.childValidation.name,expression:"childValidation.name"}],class:"input "+(e.errors.name?"is-danger":""),attrs:{required:"true",name:"name",type:"text",placeholder:"John Snow",disabled:!e.childValidation.enableInput},domProps:{value:e.childValidation.name},on:{input:function(t){t.target.composing||e.$set(e.childValidation,"name",t.target.value)}}}),e._v(" "),n("span",{staticClass:"icon is-small is-left"},[n("i",{staticClass:"fa fa-id-card"})])]),e._v(" "),e.errors.name?n("p",{staticClass:"help is-danger"},[e._v(e._s(""+e.errors.name.message))]):e._e()]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Birthday")]),e._v(" "),n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.childValidation.dob,expression:"childValidation.dob"}],class:"input "+(e.errors.dob?"is-danger":""),attrs:{required:"true",name:"dob",type:"date",disabled:!e.childValidation.enableInput},domProps:{value:e.childValidation.dob},on:{input:function(t){t.target.composing||e.$set(e.childValidation,"dob",t.target.value)}}}),e._v(" "),n("span",{staticClass:"icon is-small is-left"},[n("i",{staticClass:"fa fa-gift"})])]),e._v(" "),e.errors.dob?n("p",{staticClass:"help is-danger"},[e._v(e._s(""+e.errors.dob.message))]):e._e()]),e._v(" "),n("ImagePicker",{ref:"imagePicker",attrs:{initialImage:"/images/default-child-avatar.png"}})],1)])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/AddConnectionModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&"),s=n("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1e8c8cf4")?o.reload("1e8c8cf4",i.options):o.createRecord("1e8c8cf4",i.options),e.hot.accept("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&",function(e){a=n("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&"),o.rerender("1e8c8cf4",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/AddConnectionModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./node_modules/vuex/dist/vuex.esm.js"),r={name:"AddConnectionModal",props:["isActive","childName"],components:{Modal:a.a},methods:{close(){this.reset(),this.$emit("dismiss")},reset(){this.email="",this.isParent=!1},addConnection(){var e;e=this.email,/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)?(this.$emit("createNewConnection",{email:this.email,is_parent:this.isParent}),this.reset()):this.notify({message:"Please provide a valid email",level:"warning"})},...Object(s.c)(["notify"])},data:()=>({email:"",isParent:!1})};t.a=r},"./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"Add Connection to "+e.childName,isActive:e.isActive,acceptText:"Add",rejectText:"Cancel"},on:{accept:function(t){return e.addConnection()},close:function(t){return e.close()}}},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Connection Email")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input",attrs:{type:"email",placeholder:"name@zmail.com"},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"field"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.isParent,expression:"isParent"}],staticClass:"checkbox",attrs:{type:"checkbox","aria-label":"isParent"},domProps:{checked:Array.isArray(e.isParent)?e._i(e.isParent,null)>-1:e.isParent},on:{change:function(t){var n=e.isParent,a=t.target,s=!!a.checked;if(Array.isArray(n)){var r=e._i(n,null);a.checked?r<0&&(e.isParent=n.concat([null])):r>-1&&(e.isParent=n.slice(0,r).concat(n.slice(r+1)))}else e.isParent=s}}}),e._v("\n Is this a parent? "+e._s(e.isParent?"Yes":"No")+"\n ")])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/AvatarBadge.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&"),s=n("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("dc48fd58")?o.reload("dc48fd58",i.options):o.createRecord("dc48fd58",i.options),e.hot.accept("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&",function(e){a=n("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&"),o.rerender("dc48fd58",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/AvatarBadge.vue",t.a=i.exports},"./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"AvatarBadge",props:["img","text","isLink"],created(){},methods:{onClick(){this.$emit("onClick")}}};t.a=a},"./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["has-text-centered","p-t-sm",{"has-pointer":!!e.isLink}],on:{click:function(t){return e.onClick()}}},[n("div",{staticClass:"avatar-badge-image"},[n("figure",{staticClass:"image is-48x48"},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.img,alt:"Placeholder image"}})])]),e._v(" "),n("div",{},[e._v(e._s(e.text))])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ChangeAvatarModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&"),s=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7ca147e4")?o.reload("7ca147e4",i.options):o.createRecord("7ca147e4",i.options),e.hot.accept("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&",function(e){a=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&"),o.rerender("7ca147e4",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ChangeAvatarModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./resources/scripts/applications/home/components/ImagePicker.vue"),r={name:"ChangeAvatarModal",components:{Modal:a.a,ImagePicker:s.a},props:["isActive","defaultImage"],data:()=>({}),methods:{onColse(){this.$emit("onClose")},emitAvatarChange(){const e={isDefaultImage:this.$refs.imagePicker.isDefaultImage,image:this.$refs.imagePicker.generateDataUrl("image/png",.8)};this.$emit("onAvatarSelected",e)}}};t.a=r},"./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"Change Avatar",isActive:e.isActive,acceptText:"Update",rejectText:"Cancel"},on:{accept:function(t){return e.emitAvatarChange()},close:function(t){return e.onColse()}}},[n("ImagePicker",{ref:"imagePicker",attrs:{initialImage:e.defaultImage}})],1)},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/Child_Card.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&"),s=n("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("018cd559")?o.reload("018cd559",i.options):o.createRecord("018cd559",i.options),e.hot.accept("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&",function(e){a=n("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&"),o.rerender("018cd559",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/Child_Card.vue",t.a=i.exports},"./resources/scripts/applications/home/components/Child_Card.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/moment/moment.js"),s=n.n(a);var r={name:"ChildCard",props:["child"],methods:{goToChild(e){this.$router.push({path:"/child/"+e.id})}},created(){this.childAge=s()().diff(this.child.dob,"years")},data:()=>({childAge:void 0})};t.a=r},"./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("article",{staticClass:"media has-pointer",on:{click:function(t){return e.goToChild(e.child)}}},[n("div",{staticClass:"media-left"},[n("figure",{staticClass:"image is-48x48"},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.child.avatar,alt:e.child.name}})])]),e._v(" "),n("div",{staticClass:"media-content"},[n("div",{staticClass:"content"},[n("p",{},[e._v(e._s(e.child.name))])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ConfigureNewCallModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&"),s=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("07d8e6bf")?o.reload("07d8e6bf",i.options):o.createRecord("07d8e6bf",i.options),e.hot.accept("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&",function(e){a=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&"),o.rerender("07d8e6bf",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ConfigureNewCallModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./resources/scripts/applications/home/components/AvatarBadge.vue"),r=n("./node_modules/vuex/dist/vuex.esm.js"),i={name:"ConfigureNewCallModal",props:["isActive"],components:{Modal:a.a,AvatarBadge:s.a},computed:{...Object(r.d)(["user"])},methods:{close(){this.reset(),this.$emit("dismiss")},onChildSelected(e){this.child_id=e.id,this.connection_options=e.connections},onConnectionSelected(e){this.connection_id=e.id},reset(){this.connection_id="",this.child_id=!1},validate(){if(!this.child_id||!this.connection_id)return!1;const e=this.user.connections.children;for(const t of e)for(const e of t.connections)if(e.id===this.connection_id)return!0;return!1},createCall(){this.validate()?(this.$emit("newCall",{connection_id:this.connection_id,child_id:this.child_id}),this.reset()):this.notify({message:"Please select a child and a user",level:"warning"})},...Object(r.c)(["notify"])},data:()=>({connection_id:null,child_id:null,connection_options:[]})};t.a=i},"./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"New Call",isActive:e.isActive,acceptText:"Call",rejectText:"Cancel"},on:{accept:function(t){return e.createCall()},close:function(t){return e.close()}}},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column"},[e._v("\n Select Child:\n "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},e._l(e.user.connections.children,(function(t){return n("avatar-badge",{key:t.id,style:e.child_id===t.id?"background-color:rgba(56, 181, 187, 0.19); border-radius:15px;":"",attrs:{img:t.avatar,text:t.name,isLink:!0},on:{onClick:function(n){return e.onChildSelected(t)}}})})),1)])]),e._v(" "),n("div",{staticClass:"column"},[e._v("\n Select Connection:\n "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},e._l(e.connection_options,(function(t){return n("avatar-badge",{key:t.id,style:e.connection_id===t.id?"background-color:rgba(56, 181, 187, 0.19); border-radius:15px":"",attrs:{img:t.avatar,text:t.name,isLink:!0},on:{onClick:function(n){return e.onConnectionSelected(t)}}})})),1)])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/Header.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&"),s=n("./resources/scripts/applications/home/components/Header.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("28cdad73")?o.reload("28cdad73",i.options):o.createRecord("28cdad73",i.options),e.hot.accept("./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&",function(e){a=n("./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&"),o.rerender("28cdad73",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/Header.vue",t.a=i.exports},"./resources/scripts/applications/home/components/Header.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={name:"Header",props:["appName"]}},"./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-small is-primary hero-bg-landing01"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title"},[this._v(this._s(this.appName))])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ImagePicker.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&"),s=n("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7901045a")?o.reload("7901045a",i.options):o.createRecord("7901045a",i.options),e.hot.accept("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&",function(e){a=n("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&"),o.rerender("7901045a",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ImagePicker.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vue-croppa/dist/vue-croppa.js"),s={name:"ImagePicker",components:{Croppa:n.n(a).a.component},props:["initialImage"],watch:{zoomState:function(e,t){e({zoomState:1,isDefaultImage:!0,croppa:{}})};t.a=s},"./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"columns has-text-centered"},[n("div",{staticClass:"column"},[n("figure",{staticClass:"image is-avatar is-inline-block is-light"},[n("croppa",{attrs:{"initial-image":e.initialImage,"prevent-white-space":!0,"show-remove-button":!1,"disable-drag-to-move":e.isDefaultImage,accept:"image/*"},on:{"new-image":function(t){e.isDefaultImage=!1,e.zoomState=1}},model:{value:e.croppa,callback:function(t){e.croppa=t},expression:"croppa"}})],1)]),e._v(" "),n("div",{staticClass:"column is-flex-column m-t-md m-b-md m-r-lg"},[n("button",{staticClass:"button is-rounded is-primary",attrs:{type:"button"},on:{click:function(t){return e.croppa.chooseFile()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Photo\n ")]),e._v(" "),n("button",{staticClass:"button is-rounded is-danger",attrs:{type:"button",disabled:e.isDefaultImage},on:{click:function(t){e.croppa.refresh(),e.isDefaultImage=!0}}},[n("i",{staticClass:"fa fa-fw fa-trash"}),e._v(" Remove Image\n ")]),e._v(" "),n("div",{staticClass:"is-flex"},[n("button",{staticClass:"button is-rounded is-outlined",attrs:{type:"button",disabled:e.isDefaultImage},on:{click:function(t){e.zoomState--}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.zoomState,expression:"zoomState"}],attrs:{type:"range",min:"1",max:"100",disabled:e.isDefaultImage},domProps:{value:e.zoomState},on:{__r:function(t){e.zoomState=t.target.value}}}),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined",attrs:{type:"button",disabled:e.isDefaultImage},on:{click:function(t){e.zoomState++}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ProfileHeader.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&"),s=n("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("602be2a0")?o.reload("602be2a0",i.options):o.createRecord("602be2a0",i.options),e.hot.accept("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&",function(e){a=n("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&"),o.rerender("602be2a0",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ProfileHeader.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"ProfileHeader",props:["title","background"],computed:{style(){const e=`\n background-image: url('${this.background}');\n background-size: cover;\n background-position: center\n `;return this.background?e:"\n background-image: url(\"/images/cloudgroup.png\"), url('/images/sun+clouds.svg');\n background-size: contain, cover;\n background-position: center top, center right;\n background-repeat: repeat, no-repeat;\n "}}};t.a=a},"./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement;return(this._self._c||e)("section",{staticClass:"hero is-small p-t-xl p-b-xl is-light",style:this.style},[this._m(0)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"})])}];a._withStripped=!0},"./resources/scripts/applications/home/components/child_avatar.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&"),s=n("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("e580f2bc")?o.reload("e580f2bc",i.options):o.createRecord("e580f2bc",i.options),e.hot.accept("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&",function(e){a=n("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&"),o.rerender("e580f2bc",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/child_avatar.vue",t.a=i.exports},"./resources/scripts/applications/home/components/child_avatar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"ChildAvatar",props:["child"],created(){}};t.a=a},"./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"chiled-avatar has-text-centered"},[t("div",{staticClass:"avatar-badge-image"},[t("figure",{staticClass:"image is-48x48"},[t("img",{staticClass:"is-rounded is-avatar",attrs:{src:this.child.avatar,alt:"Placeholder image"}})])]),this._v(" "),t("div",{staticClass:"chiled-avatar-name"},[this._v(this._s(this.child.name))])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js":function(e,t,n){"use strict"; +function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l=e)}c.state.get=function(){return this._vm._data.$$state},c.state.set=function(e){0},u.prototype.commit=function(e,t,n){var a=this,s=v(e,t,n),r=s.type,i=s.payload,o=(s.options,{type:r,payload:i}),d=this._mutations[r];d&&(this._withCommit((function(){d.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(o,a.state)})))},u.prototype.dispatch=function(e,t){var n=this,a=v(e,t),s=a.type,r=a.payload,i={type:s,payload:r},o=this._actions[s];if(o){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(e){0}var d=o.length>1?Promise.all(o.map((function(e){return e(r)}))):o[0](r);return new Promise((function(e,t){d.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(e){0}t(e)}))}))}},u.prototype.subscribe=function(e,t){return m(e,this._subscribers,t)},u.prototype.subscribeAction=function(e,t){return m("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},u.prototype.watch=function(e,t,n){var a=this;return this._watcherVM.$watch((function(){return e(a.state,a.getters)}),t,n)},u.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},u.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),p(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},u.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=f(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),h(this)},u.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},u.prototype.hotUpdate=function(e){this._modules.update(e),h(this,!0)},u.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(u.prototype,c);var y=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=Y(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"==typeof s?s.call(this,t,n):t[s]},n[a].vuex=!0})),n})),M=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.commit;if(e){var r=Y(this.$store,"mapMutations",e);if(!r)return;a=r.context.commit}return"function"==typeof s?s.apply(this,[a].concat(t)):a.apply(this.$store,[s].concat(t))}})),n})),L=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;s=e+s,n[a]=function(){if(!e||Y(this.$store,"mapGetters",e))return this.$store.getters[s]},n[a].vuex=!0})),n})),b=w((function(e,t){var n={};return k(t).forEach((function(t){var a=t.key,s=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var r=Y(this.$store,"mapActions",e);if(!r)return;a=r.context.dispatch}return"function"==typeof s?s.apply(this,[a].concat(t)):a.apply(this.$store,[s].concat(t))}})),n}));function k(e){return function(e){return Array.isArray(e)||r(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function w(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Y(e,t,n){return e._modulesNamespaceMap[n]}var D={Store:u,install:g,version:"3.4.0",mapState:y,mapMutations:M,mapGetters:L,mapActions:b,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:L.bind(null,e),mapMutations:M.bind(null,e),mapActions:b.bind(null,e)}}};t.b=D}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./resources/scripts/applications/home/app.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&"),s=n("./resources/scripts/applications/home/app.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("bc5a19e4")?o.reload("bc5a19e4",i.options):o.createRecord("bc5a19e4",i.options),e.hot.accept("./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&",function(e){a=n("./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&"),o.rerender("bc5a19e4",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/app.vue",t.a=i.exports},"./resources/scripts/applications/home/app.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/Header.vue"),s=n("./resources/scripts/applications/shared/components/Notification.vue"),r=n("./node_modules/vuex/dist/vuex.esm.js"),i=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),o=n("./resources/scripts/applications/shared/components/TopNavbar.vue"),d=n("./resources/scripts/applications/home/ws/websocket.service.ts"),l={name:"App",components:{Header:a.a,Notification:s.a,Loading:i.a,TopNavbar:o.a},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(e.getUser());case 2:return t.sent,t.next=5,regeneratorRuntime.awrap(d.a.getInstance());case 5:return e.ws=t.sent,e.ws.on(d.a.Events.CONNECTION_ONLINE,t=>{console.log("User Online: "+JSON.stringify(t,null,2)),e.notify({message:t.name+" is online!",level:"success"})}),e.ws.on(d.a.Events.CONNECTION_OFFLINE,t=>{e.notify({message:t.name+" disconnected",level:"warning"})}),e.ws.on(d.a.Events.INCOMING_CALL,e.onIncomingCall.bind(e)),e.loading=!1,t.abrupt("return",!0);case 11:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({appName:"Seepur",loading:!0,ws:null}),computed:{...Object(r.d)(["notifications"])},methods:{onIncomingCall(e){this.notify({message:"New call from "+e.child.name,level:"success"}),this.$router.replace({path:"/call/"+e.callId})},onNotificationClose(e){this.dismissNotification(e.id)},...Object(r.c)(["dismissNotification","getUser","notify"])}};t.a=l},"./resources/scripts/applications/home/app.vue?vue&type=template&id=bc5a19e4&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app"},[n("TopNavbar",{attrs:{ws:this.ws}}),e._v(" "),e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("div",{staticClass:"notifications"},e._l(e.notifications,(function(t){return n("Notification",{key:t.id,attrs:{notification:t},on:{onClose:function(n){return e.onNotificationClose(t)}}})})),1),e._v(" "),n("div",{staticClass:"app-content m-t-xs is-fullheight"},[n("div",{staticClass:"application"},[n("router-view")],1)])])],1)},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/AddChildModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&"),s=n("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("17ed057c")?o.reload("17ed057c",i.options):o.createRecord("17ed057c",i.options),e.hot.accept("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&",function(e){a=n("./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&"),o.rerender("17ed057c",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/AddChildModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./resources/scripts/applications/services/index.ts"),r=n("./resources/scripts/applications/home/components/ImagePicker.vue"),i={name:"AddChildModal",components:{Modal:a.a,ImagePicker:r.a},props:["isActive"],data:()=>({errors:{},childValidation:{enableInput:!0,name:null,dob:null,avatar:null}}),methods:{onColse(){this.$emit("onClose"),this.childValidation.name=null,this.childValidation.dob=null,this.childValidation.avatar=null},addChild(){var e,t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return n.errors={},n.childValidation.enableInput=!1,e={name:n.childValidation.name,dob:n.childValidation.dob,avatar:n.$refs.imagePicker.generateDataUrl("image/png",.8)},n.$refs.imagePicker.isDefaultImage&&delete e.avatar,a.prev=4,a.next=7,regeneratorRuntime.awrap(s.a.ApiService.createChild(e.name,e.dob,e.avatar));case 7:201===(t=a.sent).code?n.$emit("onCreated",t.child):400===t.code?t.message.forEach(e=>{n.errors[e.field]=e}):(n.$emit("onFail",t.message),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null),a.next=17;break;case 11:a.prev=11,a.t0=a.catch(4),n.$emit("onFail",a.t0.message),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null;case 17:return n.childValidation.enableInput=!0,a.abrupt("return",!0);case 19:case"end":return a.stop()}}),null,null,[[4,11]],Promise)}}};t.a=i},"./resources/scripts/applications/home/components/AddChildModal.vue?vue&type=template&id=17ed057c&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"Add your child",isActive:e.isActive,acceptText:"Add",rejectText:"Cancel"},on:{accept:function(t){return e.addChild()},close:function(t){return e.onColse()}}},[n("h2",{staticClass:"subtitle"},[e._v("I am the proud parent of:")]),e._v(" "),n("form",{staticClass:"form",attrs:{id:"form-add-child"}},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Name")]),e._v(" "),n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.childValidation.name,expression:"childValidation.name"}],class:"input "+(e.errors.name?"is-danger":""),attrs:{required:"true",name:"name",type:"text",placeholder:"John Snow",disabled:!e.childValidation.enableInput},domProps:{value:e.childValidation.name},on:{input:function(t){t.target.composing||e.$set(e.childValidation,"name",t.target.value)}}}),e._v(" "),n("span",{staticClass:"icon is-small is-left"},[n("i",{staticClass:"fa fa-id-card"})])]),e._v(" "),e.errors.name?n("p",{staticClass:"help is-danger"},[e._v(e._s(""+e.errors.name.message))]):e._e()]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Birthday")]),e._v(" "),n("div",{staticClass:"control has-icons-left"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.childValidation.dob,expression:"childValidation.dob"}],class:"input "+(e.errors.dob?"is-danger":""),attrs:{required:"true",name:"dob",type:"date",disabled:!e.childValidation.enableInput},domProps:{value:e.childValidation.dob},on:{input:function(t){t.target.composing||e.$set(e.childValidation,"dob",t.target.value)}}}),e._v(" "),n("span",{staticClass:"icon is-small is-left"},[n("i",{staticClass:"fa fa-gift"})])]),e._v(" "),e.errors.dob?n("p",{staticClass:"help is-danger"},[e._v(e._s(""+e.errors.dob.message))]):e._e()]),e._v(" "),n("ImagePicker",{ref:"imagePicker",attrs:{initialImage:"/images/default-child-avatar.png"}})],1)])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/AddConnectionModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&"),s=n("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1e8c8cf4")?o.reload("1e8c8cf4",i.options):o.createRecord("1e8c8cf4",i.options),e.hot.accept("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&",function(e){a=n("./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&"),o.rerender("1e8c8cf4",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/AddConnectionModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./node_modules/vuex/dist/vuex.esm.js"),r={name:"AddConnectionModal",props:["isActive","childName"],components:{Modal:a.a},methods:{close(){this.reset(),this.$emit("dismiss")},reset(){this.email="",this.isParent=!1},addConnection(){var e;e=this.email,/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)?(this.$emit("createNewConnection",{email:this.email,is_parent:this.isParent}),this.reset()):this.notify({message:"Please provide a valid email",level:"warning"})},...Object(s.c)(["notify"])},data:()=>({email:"",isParent:!1})};t.a=r},"./resources/scripts/applications/home/components/AddConnectionModal.vue?vue&type=template&id=1e8c8cf4&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"Add Connection to "+e.childName,isActive:e.isActive,acceptText:"Add",rejectText:"Cancel"},on:{accept:function(t){return e.addConnection()},close:function(t){return e.close()}}},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Connection Email")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input",attrs:{type:"email",placeholder:"name@zmail.com"},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"field"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.isParent,expression:"isParent"}],staticClass:"checkbox",attrs:{type:"checkbox","aria-label":"isParent"},domProps:{checked:Array.isArray(e.isParent)?e._i(e.isParent,null)>-1:e.isParent},on:{change:function(t){var n=e.isParent,a=t.target,s=!!a.checked;if(Array.isArray(n)){var r=e._i(n,null);a.checked?r<0&&(e.isParent=n.concat([null])):r>-1&&(e.isParent=n.slice(0,r).concat(n.slice(r+1)))}else e.isParent=s}}}),e._v("\n Is this a parent? "+e._s(e.isParent?"Yes":"No")+"\n ")])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/AvatarBadge.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&"),s=n("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("dc48fd58")?o.reload("dc48fd58",i.options):o.createRecord("dc48fd58",i.options),e.hot.accept("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&",function(e){a=n("./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&"),o.rerender("dc48fd58",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/AvatarBadge.vue",t.a=i.exports},"./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"AvatarBadge",props:["img","text","isLink"],created(){},methods:{onClick(){this.$emit("onClick")}}};t.a=a},"./resources/scripts/applications/home/components/AvatarBadge.vue?vue&type=template&id=dc48fd58&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["has-text-centered","p-t-sm",{"has-pointer":!!e.isLink}],on:{click:function(t){return e.onClick()}}},[n("div",{staticClass:"avatar-badge-image"},[n("figure",{staticClass:"image is-48x48"},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.img,alt:"Placeholder image"}})])]),e._v(" "),n("div",{},[e._v(e._s(e.text))])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ChangeAvatarModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&"),s=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7ca147e4")?o.reload("7ca147e4",i.options):o.createRecord("7ca147e4",i.options),e.hot.accept("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&",function(e){a=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&"),o.rerender("7ca147e4",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ChangeAvatarModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./resources/scripts/applications/home/components/ImagePicker.vue"),r={name:"ChangeAvatarModal",components:{Modal:a.a,ImagePicker:s.a},props:["isActive","defaultImage"],data:()=>({}),methods:{onColse(){this.$emit("onClose")},emitAvatarChange(){const e={isDefaultImage:this.$refs.imagePicker.isDefaultImage,image:this.$refs.imagePicker.generateDataUrl("image/png",.8)};this.$emit("onAvatarSelected",e)}}};t.a=r},"./resources/scripts/applications/home/components/ChangeAvatarModal.vue?vue&type=template&id=7ca147e4&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"Change Avatar",isActive:e.isActive,acceptText:"Update",rejectText:"Cancel"},on:{accept:function(t){return e.emitAvatarChange()},close:function(t){return e.onColse()}}},[n("ImagePicker",{ref:"imagePicker",attrs:{initialImage:e.defaultImage}})],1)},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/Child_Card.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&"),s=n("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("018cd559")?o.reload("018cd559",i.options):o.createRecord("018cd559",i.options),e.hot.accept("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&",function(e){a=n("./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&"),o.rerender("018cd559",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/Child_Card.vue",t.a=i.exports},"./resources/scripts/applications/home/components/Child_Card.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/moment/moment.js"),s=n.n(a);var r={name:"ChildCard",props:["child"],methods:{goToChild(e){this.$router.push({path:"/child/"+e.id})}},created(){this.childAge=s()().diff(this.child.dob,"years")},data:()=>({childAge:void 0})};t.a=r},"./resources/scripts/applications/home/components/Child_Card.vue?vue&type=template&id=018cd559&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("article",{staticClass:"media has-pointer",on:{click:function(t){return e.goToChild(e.child)}}},[n("div",{staticClass:"media-left"},[n("figure",{staticClass:"image is-48x48"},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.child.avatar,alt:e.child.name}})])]),e._v(" "),n("div",{staticClass:"media-content"},[n("div",{staticClass:"content"},[n("p",{},[e._v(e._s(e.child.name))])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ConfigureNewCallModal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&"),s=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("07d8e6bf")?o.reload("07d8e6bf",i.options):o.createRecord("07d8e6bf",i.options),e.hot.accept("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&",function(e){a=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&"),o.rerender("07d8e6bf",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ConfigureNewCallModal.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),s=n("./resources/scripts/applications/home/components/AvatarBadge.vue"),r=n("./node_modules/vuex/dist/vuex.esm.js"),i={name:"ConfigureNewCallModal",props:["isActive"],components:{Modal:a.a,AvatarBadge:s.a},computed:{...Object(r.d)(["user"])},methods:{close(){this.reset(),this.$emit("dismiss")},onChildSelected(e){this.child_id=e.id,this.connection_options=e.connections},onConnectionSelected(e){this.connection_id=e.id},reset(){this.connection_id="",this.child_id=!1},validate(){if(!this.child_id||!this.connection_id)return!1;const e=this.user.connections.children;for(const t of e)for(const e of t.connections)if(e.id===this.connection_id)return!0;return!1},createCall(){this.validate()?(this.$emit("newCall",{connection_id:this.connection_id,child_id:this.child_id}),this.reset()):this.notify({message:"Please select a child and a user",level:"warning"})},...Object(r.c)(["notify"])},data:()=>({connection_id:null,child_id:null,connection_options:[]})};t.a=i},"./resources/scripts/applications/home/components/ConfigureNewCallModal.vue?vue&type=template&id=07d8e6bf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{attrs:{title:"New Call",isActive:e.isActive,acceptText:"Call",rejectText:"Cancel"},on:{accept:function(t){return e.createCall()},close:function(t){return e.close()}}},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column"},[e._v("\n Select Child:\n "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},e._l(e.user.connections.children,(function(t){return n("avatar-badge",{key:t.id,style:e.child_id===t.id?"background-color:rgba(56, 181, 187, 0.19); border-radius:15px;":"",attrs:{img:t.avatar,text:t.name,isLink:!0},on:{onClick:function(n){return e.onChildSelected(t)}}})})),1)])]),e._v(" "),n("div",{staticClass:"column"},[e._v("\n Select Connection:\n "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},e._l(e.connection_options,(function(t){return n("avatar-badge",{key:t.id,style:e.connection_id===t.id?"background-color:rgba(56, 181, 187, 0.19); border-radius:15px":"",attrs:{img:t.avatar,text:t.name,isLink:!0},on:{onClick:function(n){return e.onConnectionSelected(t)}}})})),1)])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/Header.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&"),s=n("./resources/scripts/applications/home/components/Header.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("28cdad73")?o.reload("28cdad73",i.options):o.createRecord("28cdad73",i.options),e.hot.accept("./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&",function(e){a=n("./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&"),o.rerender("28cdad73",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/Header.vue",t.a=i.exports},"./resources/scripts/applications/home/components/Header.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={name:"Header",props:["appName"]}},"./resources/scripts/applications/home/components/Header.vue?vue&type=template&id=28cdad73&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-small is-primary hero-bg-landing01"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title"},[this._v(this._s(this.appName))])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ImagePicker.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&"),s=n("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7901045a")?o.reload("7901045a",i.options):o.createRecord("7901045a",i.options),e.hot.accept("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&",function(e){a=n("./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&"),o.rerender("7901045a",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ImagePicker.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vue-croppa/dist/vue-croppa.js"),s={name:"ImagePicker",components:{Croppa:n.n(a).a.component},props:["initialImage"],watch:{zoomState:function(e,t){e({zoomState:1,isDefaultImage:!0,croppa:{}})};t.a=s},"./resources/scripts/applications/home/components/ImagePicker.vue?vue&type=template&id=7901045a&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"columns has-text-centered"},[n("div",{staticClass:"column"},[n("figure",{staticClass:"image is-avatar is-inline-block is-light"},[n("croppa",{attrs:{"initial-image":e.initialImage,"prevent-white-space":!0,"show-remove-button":!1,"disable-drag-to-move":e.isDefaultImage,accept:"image/*"},on:{"new-image":function(t){e.isDefaultImage=!1,e.zoomState=1}},model:{value:e.croppa,callback:function(t){e.croppa=t},expression:"croppa"}})],1)]),e._v(" "),n("div",{staticClass:"column is-flex-column m-t-md m-b-md m-r-lg"},[n("button",{staticClass:"button is-rounded is-primary",attrs:{type:"button"},on:{click:function(t){return e.croppa.chooseFile()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Photo\n ")]),e._v(" "),n("button",{staticClass:"button is-rounded is-danger",attrs:{type:"button",disabled:e.isDefaultImage},on:{click:function(t){e.croppa.refresh(),e.isDefaultImage=!0}}},[n("i",{staticClass:"fa fa-fw fa-trash"}),e._v(" Remove Image\n ")]),e._v(" "),n("div",{staticClass:"is-flex"},[n("button",{staticClass:"button is-rounded is-outlined",attrs:{type:"button",disabled:e.isDefaultImage},on:{click:function(t){e.zoomState--}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.zoomState,expression:"zoomState"}],attrs:{type:"range",min:"1",max:"100",disabled:e.isDefaultImage},domProps:{value:e.zoomState},on:{__r:function(t){e.zoomState=t.target.value}}}),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined",attrs:{type:"button",disabled:e.isDefaultImage},on:{click:function(t){e.zoomState++}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/ProfileHeader.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&"),s=n("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("602be2a0")?o.reload("602be2a0",i.options):o.createRecord("602be2a0",i.options),e.hot.accept("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&",function(e){a=n("./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&"),o.rerender("602be2a0",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/ProfileHeader.vue",t.a=i.exports},"./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"ProfileHeader",props:["title","background"],computed:{style(){const e=`\n background-image: url('${this.background}');\n background-size: cover;\n background-position: center\n `;return this.background?e:"\n background-image: url(\"/images/cloudgroup.png\"), url('/images/sun+clouds.svg');\n background-size: contain, cover;\n background-position: center top, center right;\n background-repeat: repeat, no-repeat;\n "}}};t.a=a},"./resources/scripts/applications/home/components/ProfileHeader.vue?vue&type=template&id=602be2a0&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement;return(this._self._c||e)("section",{staticClass:"hero is-small p-t-xl p-b-xl is-light",style:this.style},[this._m(0)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"})])}];a._withStripped=!0},"./resources/scripts/applications/home/components/child_avatar.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&"),s=n("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("e580f2bc")?o.reload("e580f2bc",i.options):o.createRecord("e580f2bc",i.options),e.hot.accept("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&",function(e){a=n("./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&"),o.rerender("e580f2bc",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/components/child_avatar.vue",t.a=i.exports},"./resources/scripts/applications/home/components/child_avatar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"ChildAvatar",props:["child"],created(){}};t.a=a},"./resources/scripts/applications/home/components/child_avatar.vue?vue&type=template&id=e580f2bc&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"chiled-avatar has-text-centered"},[t("div",{staticClass:"avatar-badge-image"},[t("figure",{staticClass:"image is-48x48"},[t("img",{staticClass:"is-rounded is-avatar",attrs:{src:this.child.avatar,alt:"Placeholder image"}})])]),this._v(" "),t("div",{staticClass:"chiled-avatar-name"},[this._v(this._s(this.child.name))])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js":function(e,t,n){"use strict"; /*! * @license * flipbook-vue v0.8.1 * Copyright © 2020 Takeshi Sone. * Released under the MIT License. - */var a,s,r,i,o=n("./node_modules/rematrix/dist/rematrix.es.js"),d=function(){function e(e){e?e.m?this.m=[].concat(e.m):this.m=[].concat(e):this.m=o.identity()}return e.prototype.clone=function(){return new e(this)},e.prototype.multiply=function(e){return this.m=o.multiply(this.m,e)},e.prototype.perspective=function(e){return this.multiply(o.perspective(e))},e.prototype.transformX=function(e){return(e*this.m[0]+this.m[12])/(e*this.m[3]+this.m[15])},e.prototype.translate=function(e,t){return this.multiply(o.translate(e,t))},e.prototype.translate3d=function(e,t,n){return this.multiply(o.translate3d(e,t,n))},e.prototype.rotateY=function(e){return this.multiply(o.rotateY(e))},e.prototype.toString=function(){return o.toString(this.m)},e}();s=function(e){return Math.pow(e,2)},i=function(e){return 1-s(1-e)},r=function(e){return e<.5?s(2*e)/2:.5+i(2*(e-.5))/2},a=/Trident/.test(navigator.userAgent);var l={props:{enabled:{type:Boolean,required:!0},pages:{type:Array,required:!0},pagesHiRes:{type:Array,default:function(){return[]}},flipDuration:{type:Number,default:1e3},zoomDuration:{type:Number,default:500},zooms:{type:Array,default:function(){return[1,2,4]}},perspective:{type:Number,default:2400},nPolygons:{type:Number,default:10},ambient:{type:Number,default:.4},gloss:{type:Number,default:.6},swipeMin:{type:Number,default:3},singlePage:{type:Boolean,default:!1},forwardDirection:{validator:function(e){return"right"===e||"left"===e},default:"right"},centering:{type:Boolean,default:!0},startPage:{type:Number,default:null}},data:function(){return{viewWidth:0,viewHeight:0,imageWidth:null,imageHeight:null,displayedPages:1,nImageLoad:0,nImageLoadTrigger:0,imageLoadCallback:null,currentPage:0,firstPage:0,secondPage:1,zoomIndex:0,zoom:1,zooming:!1,touchStartX:null,touchStartY:null,maxMove:0,activeCursor:null,hasTouchEvents:!1,hasPointerEvents:!1,minX:Infinity,maxX:-Infinity,preloadedImages:{},flip:{progress:0,direction:null,frontImage:null,backImage:null,auto:!1,opacity:1},currentCenterOffset:null,animatingCenter:!1,startScrollLeft:0,startScrollTop:0,scrollLeft:0,scrollTop:0}},computed:{canFlipLeft:function(){return"left"===this.forwardDirection?this.canGoForward:this.canGoBack},canFlipRight:function(){return"right"===this.forwardDirection?this.canGoForward:this.canGoBack},canZoomIn:function(){return!this.zooming&&this.zoomIndex0},numPages:function(){return null===this.pages[0]?this.pages.length-1:this.pages.length},page:function(){return null!==this.pages[0]?this.currentPage+1:Math.max(1,this.currentPage)},zooms_:function(){return this.zooms||[1]},canGoForward:function(){return!this.flip.direction&&this.currentPage=this.displayedPages&&!(1===this.displayedPages&&!this.pageUrl(this.firstPage-1))},leftPage:function(){return"right"===this.forwardDirection||1===this.displayedPages?this.firstPage:this.secondPage},rightPage:function(){return"left"===this.forwardDirection?this.firstPage:this.secondPage},showLeftPage:function(){return this.pageUrl(this.leftPage)},showRightPage:function(){return this.pageUrl(this.rightPage)&&2===this.displayedPages},cursor:function(){return this.activeCursor?this.activeCursor:a?"auto":this.canZoomIn?"zoom-in":this.canZoomOut?"zoom-out":"grab"},pageScale:function(){var e,t,n;return(e=(t=this.viewWidth/this.displayedPages/this.imageWidth)<(n=this.viewHeight/this.imageHeight)?t:n)<1?e:1},pageWidth:function(){return Math.round(this.imageWidth*this.pageScale)},pageHeight:function(){return Math.round(this.imageHeight*this.pageScale)},xMargin:function(){return(this.viewWidth-this.pageWidth*this.displayedPages)/2},yMargin:function(){return(this.viewHeight-this.pageHeight)/2},polygonWidth:function(){var e;return e=this.pageWidth/this.nPolygons,(e=Math.ceil(e+1/this.zoom))+"px"},polygonHeight:function(){return this.pageHeight+"px"},polygonBgSize:function(){return this.pageWidth+"px "+this.pageHeight+"px"},polygonArray:function(){return this.makePolygonArray("front").concat(this.makePolygonArray("back"))},boundingLeft:function(){var e;return 1===this.displayedPages?this.xMargin:(e=this.pageUrl(this.leftPage)?this.xMargin:this.viewWidth/2)this.maxX?e:this.maxX},centerOffset:function(){var e;return e=this.centering?Math.round(this.viewWidth/2-(this.boundingLeft+this.boundingRight)/2):0,null===this.currentCenterOffset&&null!==this.imageWidth&&(this.currentCenterOffset=e),e},centerOffsetSmoothed:function(){return Math.round(this.currentCenterOffset)},dragToScroll:function(){return!this.hasTouchEvents},scrollLeftMin:function(){var e;return(e=(this.boundingRight-this.boundingLeft)*this.zoom)this.viewHeight&&!this.singlePage?2:1,2===this.displayedPages&&(this.currentPage&=-2),this.fixFirstPage(),this.minX=Infinity,this.maxX=-Infinity,console.log("Flipbook resized")},fixFirstPage:function(){if(1===this.displayedPages&&0===this.currentPage&&this.pages.length&&!this.pageUrl(0))return this.currentPage++},pageUrl:function(e,t){var n;return void 0===t&&(t=!1),t&&this.zoom>1&&!this.zooming&&(n=this.pagesHiRes[e])?n:this.pages[e]||null},flipLeft:function(){if(this.canFlipLeft)return this.flipStart("left",!0)},flipRight:function(){if(this.canFlipRight)return this.flipStart("right",!0)},makePolygonArray:function(e){var t,n,a,s,r,i,o,l,u,c,m,_,h,p,f,v,g,y,M,L,b,k,w,Y,D,T,j;if(!this.flip.direction)return[];for(v=this.flip.progress,r=this.flip.direction,1===this.displayedPages&&r!==this.forwardDirection&&(v=1-v,r=this.forwardDirection),this.flip.opacity=1===this.displayedPages&&v>.7?1-(v-.7)/.3:1,t=(o="front"===e?this.flip.frontImage:this.flip.backImage)&&"url('"+o+"')",f=this.pageWidth/this.nPolygons,p=this.xMargin,m=!1,1===this.displayedPages?"right"===this.forwardDirection?"back"===e&&(m=!0,p=this.xMargin-this.pageWidth):"left"===r?"back"===e?p=this.pageWidth-this.xMargin:m=!0:"front"===e?p=this.pageWidth-this.xMargin:m=!0:"left"===r?"back"===e?p=this.viewWidth/2:m=!0:"front"===e?p=this.viewWidth/2:m=!0,(_=new d).translate(this.viewWidth/2),_.perspective(this.perspective),_.translate(-this.viewWidth/2),_.translate(p,this.yMargin),h=0,v>.5&&(h=2*-(v-.5)*180),"left"===r&&(h=-h),"back"===e&&(h+=180),h&&(m&&_.translate(this.pageWidth),_.rotateY(h),m&&_.translate(-this.pageWidth)),0===(w=v<.5?2*v*Math.PI:(1-2*(v-.5))*Math.PI)&&(w=1e-9),M=this.pageWidth/w,y=0,k=(a=w/this.nPolygons)/2/Math.PI*180,s=a/Math.PI*180,m&&(k=-w/Math.PI*180+s/2),"back"===e&&(k=-k,s=-s),this.minX=Infinity,this.maxX=-Infinity,b=[],i=l=0,L=this.nPolygons;0<=L?lL;i=0<=L?++l:--l)n=i/(this.nPolygons-1)*100+"% 0px",c=_.clone(),g=m?w-y:y,Y=Math.sin(g)*M,m&&(Y=this.pageWidth-Y),j=(1-Math.cos(g))*M,"back"===e&&(j=-j),c.translate3d(Y,0,j),c.rotateY(-k),D=c.transformX(0),T=c.transformX(f),this.maxX=Math.max(Math.max(D,T),this.maxX),this.minX=Math.min(Math.min(D,T),this.minX),u=this.computeLighting(h-k,s),y+=a,k+=s,b.push([e+i,t,u,n,c.toString(),Math.abs(Math.round(j))]);return b},computeLighting:function(e,t){var n,s,r,i,o;return r=[],i=[-.5,-.25,0,.25,.5],this.ambient<1&&(n=1-this.ambient,s=i.map((function(a){return(1-Math.cos((e-t*a)/180*Math.PI))*n})),r.push("linear-gradient(to right,\n rgba(0, 0, 0, "+s[0]+"),\n rgba(0, 0, 0, "+s[1]+") 25%,\n rgba(0, 0, 0, "+s[2]+") 50%,\n rgba(0, 0, 0, "+s[3]+") 75%,\n rgba(0, 0, 0, "+s[4]+"))")),this.gloss>0&&!a&&(30,200,o=i.map((function(n){return Math.max(Math.pow(Math.cos((e+30-t*n)/180*Math.PI),200),Math.pow(Math.cos((e-30-t*n)/180*Math.PI),200))})),r.push("linear-gradient(to right,\n rgba(255, 255, 255, "+o[0]*this.gloss+"),\n rgba(255, 255, 255, "+o[1]*this.gloss+") 25%,\n rgba(255, 255, 255, "+o[2]*this.gloss+") 50%,\n rgba(255, 255, 255, "+o[3]*this.gloss+") 75%,\n rgba(255, 255, 255, "+o[4]*this.gloss+"))")),r.join(",")},flipStart:function(e,t){var n=this;return e!==this.forwardDirection?1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage-1),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.firstPage),this.flip.backImage=this.pageUrl(this.currentPage-this.displayedPages+1)):1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.secondPage),this.flip.backImage=this.pageUrl(this.currentPage+this.displayedPages)),this.flip.direction=e,this.flip.progress=0,requestAnimationFrame((function(){return requestAnimationFrame((function(){if(n.flip.direction!==n.forwardDirection?2===n.displayedPages&&(n.firstPage=n.currentPage-n.displayedPages):1===n.displayedPages?n.firstPage=n.currentPage+n.displayedPages:n.secondPage=n.currentPage+1+n.displayedPages,t)return n.flipAuto(!0)}))}))},flipAuto:function(e){var t,n,a,s,i=this;return s=Date.now(),n=this.flipDuration*(1-this.flip.progress),a=this.flip.progress,this.flip.auto=!0,this.$emit("flip-"+this.flip.direction+"-start",this.page),(t=function(){return requestAnimationFrame((function(){var o,d;return d=Date.now()-s,(o=a+d/n)>1&&(o=1),i.flip.progress=e?r(o):o,o<1?t():(i.flip.direction!==i.forwardDirection?i.currentPage-=i.displayedPages:i.currentPage+=i.displayedPages,i.$emit("flip-"+i.flip.direction+"-end",i.page),1===i.displayedPages&&i.flip.direction===i.forwardDirection?i.flip.direction=null:i.onImageLoad(1,(function(){return i.flip.direction=null})),i.flip.auto=!1)}))})()},flipRevert:function(){var e,t,n,a,s=this;return a=Date.now(),t=this.flipDuration*this.flip.progress,n=this.flip.progress,this.flip.auto=!0,(e=function(){return requestAnimationFrame((function(){var r,i;return i=Date.now()-a,(r=n-n*i/t)<0&&(r=0),s.flip.progress=r,r>0?e():(s.firstPage=s.currentPage,s.secondPage=s.currentPage+1,1===s.displayedPages&&s.flip.direction!==s.forwardDirection?s.flip.direction=null:s.onImageLoad(1,(function(){return s.flip.direction=null})),s.flip.auto=!1)}))})()},onImageLoad:function(e,t){return this.nImageLoad=0,this.nImageLoadTrigger=e,this.imageLoadCallback=t},didLoadImage:function(e){if(null===this.imageWidth&&(this.imageWidth=(e.target||e.path[0]).naturalWidth,this.imageHeight=(e.target||e.path[0]).naturalHeight),this.imageLoadCallback)return++this.nImageLoad>=this.nImageLoadTrigger?(this.imageLoadCallback(),this.imageLoadCallback=null):void 0},zoomIn:function(){if(this.canZoomIn)return this.zoomIndex+=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomOut:function(){if(this.canZoomOut)return this.zoomIndex-=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomTo:function(e,t,n){var s,i,o,d,l,u,c,m,_,h=this;if(l=this.zoom,i=e,_=this.$refs.viewport,u=_.scrollLeft,c=_.scrollTop,t||(t=_.clientWidth/2),n||(n=_.clientHeight/2),o=(t+u)/l*i-t,d=(n+c)/l*i-n,m=Date.now(),this.zooming=!0,this.$emit("zoom-start",e),(s=function(){return requestAnimationFrame((function(){var t,n;return((t=(n=Date.now()-m)/h.zoomDuration)>1||a)&&(t=1),t=r(t),h.zoom=l+(i-l)*t,h.scrollLeft=u+(o-u)*t,h.scrollTop=c+(d-c)*t,n1)return this.preloadImages(!0)},zoomAt:function(e){var t,n,a;return t=this.$refs.viewport.getBoundingClientRect(),n=e.pageX-t.left,a=e.pageY-t.top,this.zoomIndex=(this.zoomIndex+1)%this.zooms_.length,this.zoomTo(this.zooms_[this.zoomIndex],n,a)},swipeStart:function(e){},swipeMove:function(e){var t,n;if(null!=this.touchStartX)if(t=e.pageX-this.touchStartX,n=e.pageY-this.touchStartY,this.maxMove=Math.max(this.maxMove,Math.abs(t)),this.maxMove=Math.max(this.maxMove,Math.abs(n)),this.zoom>1)this.dragToScroll&&this.dragScroll(t,n);else if(!(Math.abs(n)>Math.abs(t)))return this.activeCursor="grabbing",t>0?(null===this.flip.direction&&this.canFlipLeft&&t>=this.swipeMin&&this.flipStart("left",!1),"left"===this.flip.direction&&(this.flip.progress=t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))):(null===this.flip.direction&&this.canFlipRight&&t<=-this.swipeMin&&this.flipStart("right",!1),"right"===this.flip.direction&&(this.flip.progress=-t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))),!0},swipeEnd:function(e){if(null!=this.touchStartX)return this.maxMove1/4?this.flipAuto(!1):this.flipRevert()),this.touchStartX=null,this.activeCursor=null},onTouchStart:function(e){return this.hasTouchEvents=!0,this.swipeStart(e.changedTouches[0])},onTouchMove:function(e){if(this.swipeMove(e.changedTouches[0])&&e.cancelable)return e.preventDefault()},onTouchEnd:function(e){return this.swipeEnd(e.changedTouches[0])},onPointerDown:function(e){if(this.hasPointerEvents=!0,!(this.hasTouchEvents||e.which&&1!==e.which)){this.swipeStart(e);try{return e.target.setPointerCapture(e.pointerId)}catch(e){}}},onPointerMove:function(e){if(!this.hasTouchEvents)return this.swipeMove(e)},onPointerUp:function(e){if(!this.hasTouchEvents){this.swipeEnd(e);try{return e.target.releasePointerCapture(e.pointerId)}catch(e){}}},onMouseDown:function(e){if(!(this.hasTouchEvents||this.hasPointerEvents||e.which&&1!==e.which))return this.swipeStart(e)},onMouseMove:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeMove(e)},onMouseUp:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeEnd(e)},dragScroll:function(e,t){return this.scrollLeft=this.startScrollLeft-e,this.scrollTop=this.startScrollTop-t},onWheel:function(e){if(this.zoom>1&&this.dragToScroll&&(this.scrollLeft=this.$refs.viewport.scrollLeft+e.deltaX,this.scrollTop=this.$refs.viewport.scrollTop+e.deltaY,e.cancelable))return e.preventDefault()},preloadImages:function(e){var t,n,a,s,r,i,o,d,l;for(void 0===e&&(e=!1),Object.keys(this.preloadedImages).length>=10&&(this.preloadedImages={}),t=a=r=this.currentPage-3,i=this.currentPage+3;r<=i?a<=i:a>=i;t=r<=i?++a:--a)(l=this.pageUrl(t))&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n));if(e)for(t=s=o=this.currentPage,d=this.currentPage+this.displayedPages;o<=d?sd;t=o<=d?++s:--s)(l=this.pagesHiRes[t])&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n))},goToPage:function(e){if(null!==e&&e!==this.page)return null===this.pages[0]?2===this.displayedPages&&1===e?this.currentPage=0:this.currentPage=e:this.currentPage=e-1,this.minX=Infinity,this.maxX=-Infinity,this.currentCenterOffset=this.centerOffset}},watch:{currentPage:function(){return this.firstPage=this.currentPage,this.secondPage=this.currentPage+1,this.preloadImages()},centerOffset:function(){var e,t=this;if(!this.animatingCenter)return e=function(){return requestAnimationFrame((function(){var n;return.1,n=t.centerOffset-t.currentCenterOffset,Math.abs(n)<.5?(t.currentCenterOffset=t.centerOffset,t.animatingCenter=!1):(t.currentCenterOffset+=.1*n,e())}))},this.animatingCenter=!0,e()},scrollLeftLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollLeft=e})):this.$refs.viewport.scrollLeft=e},scrollTopLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollTop=e})):this.$refs.viewport.scrollTop=e},pages:function(e,t){if(this.fixFirstPage(),!(null!=t?t.length:void 0)&&(null!=e?e.length:void 0)&&this.startPage>1&&null===e[0])return this.currentPage++},startPage:function(e){return this.goToPage(e)}}};var u,c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var m={};var _=function(e,t,n,a,s,r,i,o,d,l){"boolean"!=typeof i&&(d=o,o=i,i=!1);var u,c="function"==typeof n?n.options:n;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),a&&(c._scopeId=a),r?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=u):t&&(u=i?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),u)if(c.functional){var m=c.render;c.render=function(e,t){return u.call(t),m(e,t)}}else{var _=c.beforeCreate;c.beforeCreate=_?[].concat(_,u):[u]}return n}({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",null,null,{canFlipLeft:e.canFlipLeft,canFlipRight:e.canFlipRight,canZoomIn:e.canZoomIn,canZoomOut:e.canZoomOut,page:e.page,numPages:e.numPages,flipLeft:e.flipLeft,flipRight:e.flipRight,zoomIn:e.zoomIn,zoomOut:e.zoomOut}),e._v(" "),n("div",{ref:"viewport",staticClass:"viewport",class:{zoom:e.zooming||e.zoom>1,"drag-to-scroll":e.dragToScroll},style:{cursor:"grabbing"==e.cursor?"grabbing":"auto"},on:{touchmove:e.onTouchMove,pointermove:e.onPointerMove,mousemove:e.onMouseMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,mouseup:e.onMouseUp,wheel:e.onWheel}},[n("div",{staticClass:"book-container",style:{transform:"scale("+e.zoom+")"}},[n("div",{style:{transform:"translateX("+e.centerOffsetSmoothed+"px)"}},[e.showLeftPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.xMargin+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.leftPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),e.showRightPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.viewWidth/2+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.rightPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),n("div",{style:{opacity:e.flip.opacity}},e._l(e.polygonArray,(function(t){var a=t[0],s=t[1],r=t[2],i=t[3],o=t[4],d=t[5];return n("div",{key:a,staticClass:"polygon",class:{blank:!s},style:{backgroundImage:s,backgroundSize:e.polygonBgSize,backgroundPosition:i,width:e.polygonWidth,height:e.polygonHeight,transform:o,zIndex:d}},[n("div",{directives:[{name:"show",rawName:"v-show",value:r.length,expression:"lighting.length"}],staticClass:"lighting",style:{backgroundImage:r}})])})),0),e._v(" "),n("div",{staticClass:"bounding-box",style:{left:e.boundingLeft+"px",top:e.yMargin+"px",width:e.boundingRight-e.boundingLeft+"px",height:e.pageHeight+"px",cursor:e.cursor},on:{touchstart:e.onTouchStart,pointerdown:e.onPointerDown,mousedown:e.onMouseDown}})])])])],2)},staticRenderFns:[]},(function(e){e&&e("data-v-1b72a150_0",{source:".viewport[data-v-1b72a150]{-webkit-overflow-scrolling:touch;width:100%;height:100%}.viewport.zoom[data-v-1b72a150]{overflow:scroll}.viewport.zoom.drag-to-scroll[data-v-1b72a150]{overflow:hidden}.book-container[data-v-1b72a150]{position:relative;width:100%;height:100%;transform-origin:top left;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip[data-v-1b72a150]{position:absolute;width:50%;height:100%;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip.left[data-v-1b72a150]{left:0}.click-to-flip.right[data-v-1b72a150]{right:0}.bounding-box[data-v-1b72a150]{position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none}.page[data-v-1b72a150]{position:absolute;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-shadow:0 0 15px -4px rgba(0,0,0,.75)}.polygon[data-v-1b72a150]{position:absolute;top:0;left:0;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-origin:center left}.polygon.blank[data-v-1b72a150]{background-color:#ddd}.polygon .lighting[data-v-1b72a150]{width:100%;height:100%}",map:void 0,media:void 0})}),l,"data-v-1b72a150",!1,void 0,!1,(function(e){return function(e,t){return function(e,t){var n=c?t.media||"default":e,a=m[n]||(m[n]={ids:new Set,styles:[]});if(!a.ids.has(e)){a.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",t.media&&a.element.setAttribute("media",t.media),void 0===u&&(u=document.head||document.getElementsByTagName("head")[0]),u.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(s),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var r=a.ids.size-1,i=document.createTextNode(s),o=a.element.childNodes;o[r]&&a.element.removeChild(o[r]),o.length?a.element.insertBefore(i,o[r]):a.element.appendChild(i)}}}(e,t)}}),void 0,void 0);e.exports=_},"./resources/scripts/applications/home/main.vue":function(e,t,n){"use strict";n.r(t);n("./node_modules/regenerator-runtime/runtime.js");var a=n("./node_modules/vue/dist/vue.esm.js"),s=n("./node_modules/vuex/dist/vuex.esm.js"),r=n("./resources/scripts/applications/home/app.vue"),i=n("./node_modules/vue-router/dist/vue-router.esm.js"),o=n("./resources/scripts/applications/home/views/home.vue"),d=n("./resources/scripts/applications/home/views/settings.vue"),l=n("./resources/scripts/applications/home/views/call.vue"),u=n("./resources/scripts/applications/home/views/child_profile.vue"),c=n("./resources/scripts/applications/home/views/edit_book.vue"),m=n("./resources/scripts/applications/home/views/call_views/Lobby.vue"),_=n("./resources/scripts/applications/home/views/call_views/Book.vue");a.default.use(i.a);const h=[{path:"/",component:o.a,name:"root"},{path:"/settings",component:d.a},{path:"/create/book",component:c.a},{path:"/call/:id",component:l.a,children:[{path:"",component:m.a,name:"lobby"},{path:"book",component:_.a,name:"book"}]},{path:"/child/:id",component:u.a},{path:"*",redirect:{name:"root"}}];var p=new i.a({routes:h,mode:"history"}),f=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),v=Object(f.a)(p,void 0,void 0,!1,null,null,null),g=n("./node_modules/vue-hot-reload-api/dist/index.js");g.install(n("./node_modules/vue/dist/vue.esm.js")),g.compatible&&(e.hot.accept(),g.isRecorded("1c72787c")?g.reload("1c72787c",v.options):g.createRecord("1c72787c",v.options)),v.options.__file="resources/scripts/applications/home/router/router.vue";var y=v.exports,M=n("./resources/scripts/applications/services/index.ts");a.default.use(s.b);var L=new s.a({strict:!0,state:{inCall:!1,user:{name:"loading...",is_admin:!1,id:null,books:[]},notifications:[]},getters:{user:e=>e.user,notifications:e=>e.notifications,inCall:e=>e.inCall},mutations:{setUser(e,t){e.user=t},notify(e,t){const n=Math.ceil(1e3*Math.random());e.notifications.push({...t,id:n});const a=this.dispatch;setTimeout(()=>{a("dismissNotification",n)},5e3)},dismissNotification(e,t){e.notifications=e.notifications.filter(e=>e.id!=t)},callEnded(e){e.inCall=!1},callStarted(e){e.inCall=!0}},actions:{getUser(e,t){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,regeneratorRuntime.awrap(M.a.ApiService.getUser(t));case 2:return n=a.sent,e.commit("setUser",n),a.abrupt("return",n);case 5:case"end":return a.stop()}}),null,null,null,Promise);var n},notify(e,t){e.commit("notify",t)},dismissNotification(e,t){e.commit("dismissNotification",t)},callEnded(e){e.commit("callEnded")},callStarted(e){e.commit("callStarted")}}});a.default.use(s.b);var b=new a.default({router:y,store:L,render:e=>e(r.a)}).$mount("#app"),k=Object(f.a)(b,void 0,void 0,!1,null,null,null),w=n("./node_modules/vue-hot-reload-api/dist/index.js");w.install(n("./node_modules/vue/dist/vue.esm.js")),w.compatible&&(e.hot.accept(),w.isRecorded("550f4f9c")?w.reload("550f4f9c",k.options):w.createRecord("550f4f9c",k.options)),k.options.__file="resources/scripts/applications/home/main.vue";t.default=k.exports},"./resources/scripts/applications/home/views/call.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),s=n("./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("2e42c802")?o.reload("2e42c802",i.options):o.createRecord("2e42c802",i.options),e.hot.accept("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&",function(e){a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),o.rerender("2e42c802",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r=n("./resources/scripts/applications/home/ws/websocket.service.ts"),i=n("./resources/scripts/applications/home/views/call_views/VideoStrip.vue"),o=n("./node_modules/vuex/dist/vuex.esm.js"),d={components:{Loading:a.a,VideoStrip:i.a},name:"Call",created(){var e,t,n,a=this;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return a.loading=!0,i.prev=1,e=Number(a.$route.params.id),i.next=5,regeneratorRuntime.awrap(r.a.getInstance());case 5:return t=i.sent,a.callManager=t.callManager,a.callManager.on(s.a.CLOSE,a.endCall),i.next=10,regeneratorRuntime.awrap(a.callManager.connectToCall(a.user.id,{video:!0,audio:!0},e));case 10:if(n=i.sent,a.callManager.on(s.a.CALL_HOST_CHANGED,a.onRemoteHostChanged),n){i.next=16;break}return a.notify({message:"Can find this call...",level:"danger"}),a.$router.push({path:"/"}),i.abrupt("return",!1);case 16:return a.callStarted(),i.next=19,regeneratorRuntime.awrap(a.callManager.getUserMedia());case 19:a.localStream=i.sent,a.remoteStream=a.callManager.getRemoteStream(),a.notify({message:"Connected!",level:"success"}),i.next=28;break;case 24:i.prev=24,i.t0=i.catch(1),console.error(i.t0),a.notify({message:i.t0.message,level:"danger"});case 28:a.loading=!1;case 29:case"end":return i.stop()}}),null,null,[[1,24]],Promise)},beforeDestroy(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("destroyed"),e.callManager.close(),e.callEnded(),t.abrupt("return",!0);case 4:case"end":return t.stop()}}),null,null,null,Promise)},methods:{setupCall:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),endCall(e){this.notify({message:`Call #${e} Ended`}),this.$router.replace({path:"/"})},onRemoteHostChanged(e){console.log("-----------"),console.log(e),this.peer=this.callManager.peer},changeHost(){this.callManager.changeHost()},...Object(o.c)(["notify","callStarted","callEnded"])},computed:{...Object(o.d)(["user","inCall"])},watch:{$route(e,t){const n=e.path.split("/").length,a=t.path.split("/").length;this.stateTransitionName=n({loading:!0,localStream:null,remoteStream:null,callManager:null,stateTransitionName:"slide-left"}),beforeCreate:()=>{}};t.a=d},"./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"is-fullwidth"},[this.loading?t("div",[t("Loading")],1):t("div",{staticClass:"columns"},[t("VideoStrip",{staticClass:"column is-3",attrs:{localStream:this.localStream,remoteStream:this.remoteStream,remotePoster:this.callManager.peer.avatar}}),this._v(" "),t("transition",{attrs:{name:this.stateTransitionName}},[t("router-view",{staticClass:"column"})],1)],1)])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/views/call_views/Book.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),s=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("39118a17")?o.reload("39118a17",i.options):o.createRecord("39118a17",i.options),e.hot.accept("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&",function(e){a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),o.rerender("39118a17",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call_views/Book.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js"),s=n.n(a),r=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),i=n("./resources/scripts/applications/home/ws/call.manager.ts"),o=n("./resources/scripts/applications/home/ws/websocket.service.ts"),d=n("./node_modules/vuex/dist/vuex.esm.js"),l={name:"CallBook",components:{Flipbook:s.a,Loading:r.a},created(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(o.a.getInstance());case 2:return e=n.sent,t.callManager=e.callManager,t.callManager.on(i.a.ACTION_BOOK_FLIP,t.onRemoteFlip.bind(t)),t.loading=!1,n.abrupt("return",!0);case 7:case"end":return n.stop()}}),null,null,null,Promise)},destroyed(){this.callManager.removeListener(i.a.ACTION_BOOK_FLIP,this.onRemoteFlip.bind(this))},data:()=>({loading:!0,localStream:null,remoteStream:null,flipbookRef:!1,callManager:{isHost:!1}}),computed:{canFlipLeft(){return this.flipbookRef&&this.$refs.flipbook.canFlipLeft},canFlipRight(){return this.flipbookRef&&this.$refs.flipbook.canFlipRight},createPages(){const e=[null];for(let t=1;t({callManager:{books:[]}}),methods:{goToBook(e,t,n){(n||this.callManager.isHost)&&(this.callManager.selectBook(t,n),this.$router.replace({name:"book"}))},remoteBookSelected({bookId:e}){for(let t=0;t!!e||n.id===t.user.id,t.isParent),n.next=15;break;case 13:t.notify({message:"Sorry, Child not found!",level:"danger"}),t.$router.push({path:"/"});case 15:return n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showAddConnectionModal:!1,showChangeAvatarModal:!1,childCoverModalImage:null}),methods:{onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goToUserProfile(e){this.user.id===e.id?this.$router.push({path:"/"}):this.$router.push({path:"/user/"+e.id})},addConnection(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,n.loading=!0,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.createConnection({...e,child_id:n.child.id}));case 4:if(409!==(t=a.sent).code){a.next=11;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"warning"}));case 11:if(0===t.code){a.next=15;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"danger"}));case 15:return n.notify({message:`Awesome!\n${t.data.user.name} is connected to ${n.child.name}`,level:"success"}),t.data.is_parent?n.child.parents.push(t.data.user):n.child.connections.push(t.data.user),a.next=19,regeneratorRuntime.awrap(n.getUser());case 19:a.next=24;break;case 21:a.prev=21,a.t0=a.catch(0),console.error(a.t0);case 24:return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",!0);case 27:case"end":return a.stop()}}),null,null,[[0,21]],Promise)},onAvatarClicked(){this.isParent&&(this.showChangeAvatarModal=!0)},updateAvatar(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.isDefaultImage){a.next=11;break}return a.prev=1,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.updateChild(n.child.id,{avatar:e.image}));case 4:0===(t=a.sent).code&&(n.notify({message:"Updated Successfully!",level:"success"}),n.child.avatar=t.data.child.avatar),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error(a.t0);case 11:return n.showChangeAvatarModal=!1,a.abrupt("return",!0);case 13:case"end":return a.stop()}}),null,null,[[1,8]],Promise)},changeCover(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.childCoverModalImage){n.next=13;break}return t.loading=!0,n.prev=2,n.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(t.child.id,{profile_cover:t.childCoverModalImage}));case 5:0===(e=n.sent).code&&(t.child.profile_cover=e.data.child.profile_cover),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),console.error(n.t0.message);case 12:t.loading=!1;case 13:return t.showCoverModal=!1,t.this.childCoverModalImage=null,n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,[[2,9]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","notify"])},computed:{age(){const e=m()().diff(this.child.dob,"years"),t=m()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user"])}};t.a=p},"./resources/scripts/applications/home/views/child_profile.vue?vue&type=template&id=5e105c92&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.child.name,background:e.childCoverModalImage?e.childCoverModalImage:e.child.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ChangeAvatarModal",{attrs:{isActive:e.showChangeAvatarModal,defaultImage:e.child.avatar},on:{onAvatarSelected:function(t){return e.updateAvatar(t)},onClose:function(t){e.showChangeAvatarModal=!1}}}),e._v(" "),n("AddConnectionModal",{attrs:{isActive:e.showAddConnectionModal,childName:e.child.name},on:{createNewConnection:function(t){return e.addConnection(t)},dismiss:function(t){e.showAddConnectionModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.child.name,background:e.child.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{class:"image is-1by1 is-light "+(e.isParent?"editable-image":""),on:{click:function(t){return e.onAvatarClicked()}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.child.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"content"},[n("p",[e._v("Hi!")]),e._v(" "),n("p",[e._v("Im "+e._s(e.age))]),e._v(" "),n("br")])]),e._v(" "),e.isParent?n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",on:{click:function(t){return e.togleEditMode()}}},[e._v(e._s(e.inEditMode?"Cancel":"Edit"))]),e._v(" "),n("a",{staticClass:"card-footer-item is-danger",on:{click:function(t){return e.onDeleteClicked()}}},[e._v("Delete")])]):e._e()])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.child.name.split(" ")[0]+"'s Room"))])])])]),e._v(" "),n("nav",{staticClass:"level"},[e._m(0),e._v(" "),n("div",{staticClass:"level-right"},[e.isParent?n("div",{staticClass:"level-item"},[n("button",{staticClass:"button",on:{click:function(t){e.showAddConnectionModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Connection\n ")])]):e._e()])]),e._v(" "),n("div",{staticClass:"parents"},[n("div",{staticClass:"is-flex"},e._l(e.child.parents,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)]),e._v(" "),e._m(1),e._v(" "),n("div",{staticClass:"columns"},e._l(e.child.connections,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Parents")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("nav",{staticClass:"level"},[t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Connections")])])])])}];a._withStripped=!0},"./resources/scripts/applications/home/views/edit_book.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&"),s=n("./resources/scripts/applications/home/views/edit_book.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("a6f8a5ec")?o.reload("a6f8a5ec",i.options):o.createRecord("a6f8a5ec",i.options),e.hot.accept("./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&",function(e){a=n("./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&"),o.rerender("a6f8a5ec",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/edit_book.vue",t.a=i.exports},"./resources/scripts/applications/home/views/edit_book.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js"),r=n.n(s),i=n("./node_modules/vue-croppa/dist/vue-croppa.js"),o=n.n(i),d=n("./resources/scripts/applications/services/index.ts");var l={name:"EditBook",props:["editBook"],components:{Flipbook:r.a,Croppa:o.a.component},watch:{editMode:function(e){e?(this.currentPage<0&&this.pages.length&&(this.currentPage=0),this.flipbookRef=!1):(this.currentPage=-7,this.previewPages=[null,...this.pages.map(e=>e.image)])},currentPage:function(e,t){var n,a;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(console.log(t,e),!(this.pages[t]&&t>=0)){s.next=6;break}return s.next=4,regeneratorRuntime.awrap(this.pages[t].croppa.promisedBlob("image/jpeg",.4));case 4:(n=s.sent)&&(a=URL.createObjectURL(n),this.pages[t].base64=this.pages[t].croppa.generateDataUrl("image/jpeg",.4),this.pages[t].image=a);case 6:return e>=0&&(this.pages[e].loaded=!1,this.$nextTick((function(){console.log("tick"),this.pages[e].loaded=!0}))),this.pageRotation=0,this.pageZoom=500,s.abrupt("return",!0);case 10:case"end":return s.stop()}}),null,this,null,Promise)},pageRotation:function(e){console.log(e);const t=this.pages[this.currentPage],n=t.croppa.getCanvas(),a=t.croppa.getContext();a.rotate(e*Math.PI/180),a.drawImage(n,0,0),a.setTransform(1,0,0,1,0,0),this.$nextTick((function(){}))},pageZoom:function(e,t){const n=this.pages[this.currentPage];console.log(e,t);const a=Math.abs(e-t);if(e0;e--)n.croppa.zoomOut();else for(let e=a;e>0;e--)n.croppa.zoomIn()}},created(){this.editBook?this.book=this.editBook:this.book={name:"",ltr:!0,pages:0,user_id:this.user.id}},methods:{...Object(a.c)(["notify","getUser"]),deleteLastPage(){this.pages.pop(),this.pages.length?this.currentPage=this.pages.length-1:this.currentPage=-7},onRotateClicked(e){this.pages[this.currentPage].croppa.rotate(e?1:-1)},onPageClicked(e){this.currentPage=e,this.editMode=!0},onCroppaImageLoaded(){this.pages[this.currentPage].imageLoaded=!0},promiseAllProgress(e,t){return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:for(t(n=0,e.length),a=0;aregeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return n++,t(n,e.length),s.abrupt("return",a);case 3:case"end":return s.stop()}}),null,null,null,Promise));return s.abrupt("return",Promise.all(e));case 4:case"end":return s.stop()}}),null,null,null,Promise);var n,a},onUploadClicked(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.book.title&&e.book.title.length){t.next=3;break}return e.notify({message:"Book needs a title!",level:"warning"}),t.abrupt("return");case 3:if(e.book.author&&e.book.author.length){t.next=6;break}return e.notify({message:"Book sure has an author!",level:"warning"}),t.abrupt("return");case 6:if(!(e.pages.length<4)){t.next=9;break}return e.notify({message:"A book need to have at least 4 pages",level:"warning"}),t.abrupt("return");case 9:return e.uploading=!0,t.prev=10,t.next=13,regeneratorRuntime.awrap(d.a.ApiService.uploadBook({title:e.book.title,author:e.book.author,ltr:e.book.ltr,pages:e.pages.map(e=>e.base64||e.croppa.generateDataUrl("image/jpeg",.4))}));case 13:0===t.sent.code?(e.notify({message:`Woop Woop!! ${e.book.title} has been added!`,level:"success"}),e.getUser(),e.$router.replace({path:"/"})):e.notify({message:"Something went wrong!",level:"danger"}),t.next=20;break;case 17:t.prev=17,t.t0=t.catch(10),console.log("Error... "+t.t0.message);case 20:e.uploading=!1;case 21:case"end":return t.stop()}}),null,null,[[10,17]],Promise)},onAddPageClicked(){var e,t,n,a,s,r=this;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(!((e=r.pages.length-1)<0)){i.next=6;break}r.pages.push({text:"Cover",id:0,loaded:!1,croppa:{},image:null,imageLoaded:!1,base64:null}),r.currentPage=0,i.next=23;break;case 6:return console.log("In else"),t=e+1,i.next=10,regeneratorRuntime.awrap(r.pages[e].croppa.promisedBlob("image/jpeg",.4));case 10:if(n=i.sent){i.next=15;break}return r.notify({message:"Your last page is still empty",level:"warning"}),r.currentPage=e,i.abrupt("return");case 15:a=URL.createObjectURL(n),r.pages[e].base64=r.pages[e].croppa.generateDataUrl("image/jpeg",.4),s=r.pages[e].croppa.generateDataUrl("image/jpeg",.1),console.log("COMPRESSION_RATE: "+r.pages[e].base64.length),console.log("0.1: "+s.length),r.pages[e].image=a,r.pages.push({text:"Page "+t,id:t,loaded:!1,croppa:{},image:null,imageLoaded:!1,base64:null}),r.currentPage=t;case 23:case"end":return i.stop()}}),null,null,null,Promise)},bookMounted(){this.$refs.flipbook?(console.log("Found!"),this.flipbookRef=!0):console.log("Still Null!!")},onLeftClicked(){return console.time("Flip Left"),this.$refs.flipbook.flipLeft(),console.timeEnd("Flip Left"),!0},onRightClicked(){return this.$refs.flipbook.flipRight(),!0}},computed:{...Object(a.d)(["user"]),bookPages(){return this.pages.slice(1)},canFlipLeft(){return this.flipbookRef&&this.$refs.flipbook.canFlipLeft},canFlipRight(){return this.flipbookRef&&this.$refs.flipbook.canFlipRight},croppaWidth(){return Number(this.bookWidth)},croppaHeight(){return Number(this.bookHeight)}},data:()=>({book:{title:"",author:"",rtl:!0},pages:[],bookWidth:350,bookHeight:350,previewPages:[],editMode:!0,currentPage:-7,flipbookRef:!1,pageRotation:0,pageZoom:500,uploading:!1,errors:{},DEFAULT_PAGE_WIDTH:350,DEFAULT_PAGE_HEIGHT:350})};t.a=l},"./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth is-fullheight-container"},[n("transition",{attrs:{name:"fade"}},[e.uploading?n("div",{staticClass:"book-uploading-overlay"},[n("div",{staticClass:"section book-uploading-overlay-content has-text-centered"},[n("h1",{staticClass:"title"},[e._v("Uploading...")]),e._v(" "),n("h1",{staticClass:"subtitle"},[e._v("Be pacient, This can take a while")]),e._v(" "),n("progress",{staticClass:"progress is-small is-primary",attrs:{max:"100"}},[e._v("15%")])])]):e._e()]),e._v(" "),n("div",{staticClass:"columns is-flex is-fullheight-container"},[n("div",{staticClass:"column is-3"},[n("div",{staticClass:"card m-b-md"},[n("div",{staticClass:"card-content"},[e._m(0),e._v(" "),n("div",{staticClass:"book-properties"},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Book Title:")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.book.title,expression:"book.title"}],staticClass:"input",attrs:{type:"text",placeholder:"My Book"},domProps:{value:e.book.title},on:{input:function(t){t.target.composing||e.$set(e.book,"title",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Book Author:")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.book.author,expression:"book.author"}],staticClass:"input",attrs:{type:"text",placeholder:"Savta Cochi"},domProps:{value:e.book.author},on:{input:function(t){t.target.composing||e.$set(e.book,"author",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Language Direction:")]),e._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.book.ltr,expression:"book.ltr"}],staticClass:"checkbox",attrs:{type:"checkbox","aria-label":"Book direction"},domProps:{checked:Array.isArray(e.book.ltr)?e._i(e.book.ltr,null)>-1:e.book.ltr},on:{change:function(t){var n=e.book.ltr,a=t.target,s=!!a.checked;if(Array.isArray(n)){var r=e._i(n,null);a.checked?r<0&&e.$set(e.book,"ltr",n.concat([null])):r>-1&&e.$set(e.book,"ltr",n.slice(0,r).concat(n.slice(r+1)))}else e.$set(e.book,"ltr",s)}}}),e._v("\n "+e._s(e.book.ltr?"Left To Right":"Right To Left")+"\n "),n("i",{class:"fa fa-fw fa-arrow-"+(e.book.ltr?"right":"left")})])]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Total page count: #"+e._s(e.pages.length))])])])]),e._v(" "),n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item is-success",on:{click:function(t){return e.onUploadClicked()}}},[n("i",{staticClass:"fa fa-fw fa-upload"}),e._v(" Upload Book\n ")])])]),e._v(" "),n("div",{staticClass:"card"},[n("aside",{staticClass:"menu card-content"},[n("p",{staticClass:"menu-label"},[e._v("Pages")]),e._v(" "),n("ul",{staticClass:"menu-list"},e._l(e.pages,(function(t){return n("li",{key:t.id},[n("a",{class:{"is-active":e.currentPage===t.id},on:{click:function(n){return e.onPageClicked(t.id)}}},[e._v(e._s(t.text))])])})),0)]),e._v(" "),n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",on:{click:function(t){return e.onAddPageClicked()}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Page\n ")])])])]),e._v(" "),n("div",{staticClass:"column is-9"},[n("div",{staticClass:"card is-fullheight-container bg-flower height-max-view"},[n("div",{staticClass:"card-content is-fullheight-container"},[n("div",{staticClass:"tabs-container has-text-centered m-b-lg"},[n("div",{staticClass:"tabs is-centered"},[n("ul",[n("li",{class:e.editMode?"is-active":"",on:{click:function(t){e.editMode=!0}}},[e._m(1)]),e._v(" "),n("li",{class:e.editMode?"":"is-active",on:{click:function(t){e.currentPage=-7,e.editMode=!1}}},[e._m(2)])])])]),e._v(" "),n("div",{staticClass:"content is-fullheight-container"},[n("transition",{attrs:{name:"fade"}},[e.editMode?n("div",{staticClass:"edit"},[e.currentPage<-1?n("div",{staticClass:"has-text-centered"},[n("h1",{staticClass:"subtitle m-t-xl m-b-xl"},[e._v("This is exciting...")]),e._v(" "),n("a",{staticClass:"button is-large is-rounded",on:{click:function(t){return e.onAddPageClicked()}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Cover\n ")])]):n("div",{staticClass:"page-editor"},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column has-text-centered"},[e.pages[e.currentPage].loaded?n("div",[n("h1",{staticClass:"subtitle is-3"},[e._v(e._s(e.pages[e.currentPage].text))]),e._v(" "),n("croppa",{attrs:{"prevent-white-space":!1,"show-remove-button":!1,accept:"image/*","initial-image":e.pages[e.currentPage].image,width:e.croppaWidth,height:e.croppaHeight,"disable-drag-to-move":!1,"disable-scroll-to-zoom":!0,"zoom-speed":1},on:{"loading-end":function(t){return e.onCroppaImageLoaded()}},model:{value:e.pages[e.currentPage].croppa,callback:function(t){e.$set(e.pages[e.currentPage],"croppa",t)},expression:"pages[currentPage].croppa"}})],1):e._e()]),e._v(" "),n("div",{staticClass:"edit-page-controllers column is-3 is-flex-column is-justify-centered has-text-centered"},[0===e.currentPage&&1===e.pages.length?n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Page width")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.bookWidth,expression:"bookWidth"}],attrs:{type:"range",min:e.DEFAULT_PAGE_WIDTH-100,max:e.DEFAULT_PAGE_WIDTH,disabled:!e.pages[e.currentPage].imageLoaded},domProps:{value:e.bookWidth},on:{__r:function(t){e.bookWidth=t.target.value}}}),e._v(" "),n("div",{staticClass:"is-flex is-justify-between"},[n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth<=e.DEFAULT_PAGE_WIDTH-100},on:{click:function(t){e.bookWidth-=2}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth>=e.DEFAULT_PAGE_WIDTH},on:{click:function(t){e.bookWidth+=2}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])]):n("div",{staticClass:"prev-page-preview"},[e.pages[e.currentPage-1]&&e.pages[e.currentPage-1].base64?n("div",{staticClass:"is-flex is-justify-centered"},[n("div",{staticClass:"book-thumb page-preview"},[n("div",{staticClass:"book-text"},[n("div",[e._v("Previouse Page")])]),e._v(" "),n("div",{staticClass:"book-cover"},[n("img",{attrs:{src:e.pages[e.currentPage-1]?e.pages[e.currentPage-1].base64:""}})]),e._v(" "),n("div",{staticClass:"book-text"},[n("div",[e._v(e._s(e.pages[e.currentPage-1].text))])])])]):e._e()]),e._v(" "),n("hr",{staticClass:"is-fullwidth-container"}),e._v(" "),0===e.currentPage&&1===e.pages.length?n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Page height")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.bookHeight,expression:"bookHeight"}],attrs:{type:"range",min:e.DEFAULT_PAGE_HEIGHT-50,max:e.DEFAULT_PAGE_HEIGHT,disabled:!e.pages[e.currentPage].imageLoaded},domProps:{value:e.bookHeight},on:{__r:function(t){e.bookHeight=t.target.value}}}),e._v(" "),n("div",{staticClass:"is-flex is-justify-between"},[n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth<=e.DEFAULT_PAGE_HEIGHT-50},on:{click:function(t){e.bookHeight-=2}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth>=e.DEFAULT_PAGE_HEIGHT},on:{click:function(t){e.bookHeight+=2}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])]):e._e(),e._v(" "),n("div",{staticClass:"field"}),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Zoom Image")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.pageZoom,expression:"pageZoom"}],attrs:{type:"range",min:"0",max:"1000",disabled:!e.pages[e.currentPage].imageLoaded},domProps:{value:e.pageZoom},on:{__r:function(t){e.pageZoom=t.target.value}}}),e._v(" "),n("div",{staticClass:"is-flex is-justify-between"},[n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){e.pageZoom-=2}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){e.pageZoom+=2}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])]),e._v(" "),n("div",{staticClass:"rotations is-flex is-justify-between m-b-lg"},[n("button",{staticClass:"button",attrs:{disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){return e.onRotateClicked(!1)}}},[n("i",{staticClass:"fa fa-fw fa-rotate-left"})]),e._v(" "),n("button",{staticClass:"button",attrs:{disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){return e.onRotateClicked(!0)}}},[n("i",{staticClass:"fa fa-fw fa-rotate-right"})])]),e._v(" "),n("div",{staticClass:"change-image"},[n("button",{staticClass:"button is-fullwidth-container",on:{click:function(t){return e.pages[e.currentPage].croppa.chooseFile()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Image\n ")])]),e._v(" "),e.currentPage===e.pages.length-1?n("div",{staticClass:"remove-image"},[n("button",{staticClass:"button is-danger is-fullwidth-container",on:{click:function(t){return e.deleteLastPage()}}},[n("i",{staticClass:"fa fa-fw fa-trash"}),e._v(" Delete Page\n ")])]):e._e()])])])]):e._e()]),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.editMode?e._e():n("div",{class:"is-fullheight-container "+(e.flipbookRef?"":"is-transparent")},[n("div",{staticClass:"book-view m-sm m-r-md"},[n("div",{staticClass:"go-left m-r-sm",staticStyle:{display:"inline-block","align-items":"center",position:"absolute",left:"0px",top:"0px"}},[n("button",{staticClass:"button book-flip-buttons",attrs:{disabled:!e.canFlipLeft},on:{click:function(t){return e.onLeftClicked()}}},[n("i",{staticClass:"fa fa-fw fa-arrow-left"})])]),e._v(" "),n("flipbook",{ref:"flipbook",staticClass:"flipbook",attrs:{pages:e.previewPages,forwardDirection:e.book.ltr?"right":"left",zooms:null,enabled:!0},on:{"on-mounted":function(t){return e.bookMounted()}},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"page-progress has-text-centered m-b-none"},[n("p",[e._v("Page "+e._s(t.page)+" of "+e._s(t.numPages))])])]}}],null,!1,2047056082)}),e._v(" "),n("div",{staticClass:"go-right m-l-sm",staticStyle:{display:"inline-block","align-items":"center",position:"absolute",right:"0px",top:"0px"}},[n("button",{staticClass:"button book-flip-buttons",attrs:{disabled:!e.canFlipRight},on:{click:function(t){return e.onRightClicked()}}},[n("i",{staticClass:"fa fa-fw fa-arrow-right"})])])],1)])])],1)])])])])],1)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("h1",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-book"}),this._v(" Properties\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",[t("span",{staticClass:"icon is-small"},[t("i",{staticClass:"fa fa-pencil",attrs:{"aria-hidden":"true"}})]),this._v(" "),t("span",[this._v("Edit")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",[t("span",{staticClass:"icon is-small"},[t("i",{staticClass:"fa fa-eye",attrs:{"aria-hidden":"true"}})]),this._v(" "),t("span",[this._v("Preview")])])}];a._withStripped=!0},"./resources/scripts/applications/home/views/home.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),s=n("./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1b921a03")?o.reload("1b921a03",i.options):o.createRecord("1b921a03",i.options),e.hot.accept("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&",function(e){a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),o.rerender("1b921a03",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/home.vue",t.a=i.exports},"./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/components/Child_Card.vue"),r=n("./resources/scripts/applications/services/index.ts"),i=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),o=n("./resources/scripts/applications/home/components/ProfileHeader.vue"),d=n("./resources/scripts/applications/home/components/AddChildModal.vue"),l=n("./resources/scripts/applications/home/components/AddConnectionModal.vue"),u=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue"),c=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),m=n("./resources/scripts/applications/home/components/AvatarBadge.vue"),_=n("./node_modules/moment/moment.js"),h=n.n(_),p=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),f=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue"),v={name:"Home",components:{Loading:i.a,ProfileHeader:o.a,Modal:p.a,FileSelect:c.a,AvatarBadge:m.a,AddConnectionModal:l.a,ConfigureNewCallModal:u.a,ChildCard:s.a,AddChildModal:d.a,ChangeAvatarModal:f.a},beforeCreate(){},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!1,t.abrupt("return",!0);case 2:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showCreateCallModal:!1,showAddChildModal:!1,showAddConnectionModal:!1,childCoverModalImage:null,addMenuOpen:!1,showChangeAvatarModal:!1}),methods:{updateAvatar(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isDefaultImage){n.next=14;break}return n.prev=1,n.next=4,regeneratorRuntime.awrap(r.a.ApiService.updateUser({avatar:e.image}));case 4:if(0!==n.sent.code){n.next=9;break}return n.next=8,regeneratorRuntime.awrap(t.getUser());case 8:t.notify({message:"Updated Successfully!",level:"success"});case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),console.error(n.t0);case 14:return t.showChangeAvatarModal=!1,n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,[[1,11]],Promise)},onAddClicked(e){switch(e){case"child":this.showAddChildModal=!0;break;case"book":this.$router.push({path:"/create/"+e});break;default:this.notify({message:`Add ${e} button clicked. Still not working`})}this.addMenuOpen=!1},onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goChildProfile(e){this.$router.push({path:"/child/"+e.id})},onChildCreated(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,regeneratorRuntime.awrap(t.getUser());case 3:t.loading=!1,t.showAddChildModal=!1,t.notify({message:`Woohoo! ${e.name} created!`,level:"success"}),t.goChildProfile(e);case 7:case"end":return n.stop()}}),null,null,null,Promise)},onCreateChildFailed(e){this.notify({message:"ERROR: "+e,level:"danger"}),this.showAddChildModal=!1},makeCall(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,regeneratorRuntime.awrap(r.a.ApiService.createCall(e));case 3:t=a.sent,n.notify({message:"Connecting..."}),n.$router.push({path:"/call/"+t.data.id}),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),console.error(a.t0);case 11:return a.abrupt("return",!0);case 12:case"end":return a.stop()}}),null,null,[[0,8]],Promise)},changeCover(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.childCoverModalImage){t.next=12;break}return e.loading=!0,t.prev=2,t.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(e.child.id,{profile_cover:e.childCoverModalImage}));case 5:e.child.profile_cover=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),console.error(t.t0);case 11:e.loading=!1;case 12:e.showCoverModal=!1,e.this.childCoverModalImage=null;case 14:case"end":return t.stop()}}),null,null,[[2,8]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","notify"])},computed:{age(){const e=h()().diff(this.child.dob,"years"),t=h()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user"])}};t.a=v},"./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("AddChildModal",{attrs:{isActive:e.showAddChildModal},on:{onFail:function(t){return e.onCreateChildFailed(t)},onCreated:function(t){return e.onChildCreated(t)},onClose:function(t){e.showAddChildModal=!1}}}),e._v(" "),n("ChangeAvatarModal",{attrs:{isActive:e.showChangeAvatarModal,defaultImage:e.user.avatar},on:{onAvatarSelected:function(t){return e.updateAvatar(t)},onClose:function(t){e.showChangeAvatarModal=!1}}}),e._v(" "),n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.user.name,background:e.childCoverModalImage?e.childCoverModalImage:e.user.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ConfigureNewCallModal",{attrs:{isActive:e.showCreateCallModal},on:{newCall:function(t){return e.makeCall(t)},dismiss:function(t){e.showCreateCallModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.user.name,background:e.user.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{staticClass:"image is-1by1 editable-image is-light",on:{click:function(t){e.showChangeAvatarModal=!0}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.user.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[e.user.connections.children.concat(e.user.connections.connections).length?n("div",[n("p",{staticClass:"card-header-title"},[e._v("Connections")]),e._v(" "),e._l(e.user.connections.children.concat(e.user.connections.connections),(function(e){return n("ChildCard",{key:e.id,attrs:{child:e}})})),e._v(" "),n("br")],2):n("div",[n("p",{staticClass:"card-header-title"},[e._v("No Connections yet...")])])])])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.user.name.split(" ")[0]+"'s Room"))])])]),e._v(" "),n("div",{staticClass:"level-right"},[n("div",{staticClass:"level-item"},[n("div",{class:"dropdown "+(e.addMenuOpen?"is-active":"")},[n("div",{staticClass:"dropdown-trigger"},[n("button",{staticClass:"button",attrs:{"aria-haspopup":"true","aria-controls":"dropdown-menu"},on:{click:function(t){e.addMenuOpen=!e.addMenuOpen}}},[n("span",[e._v("Add")]),e._v(" "),n("span",{staticClass:"icon is-small"},[n("i",{class:"fa fa-angle-"+(e.addMenuOpen?"up":"down"),attrs:{"aria-hidden":"true"}})])])]),e._v(" "),n("div",{staticClass:"dropdown-menu",attrs:{id:"dropdown-menu",role:"menu"}},[n("div",{staticClass:"dropdown-content"},[n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("book")}}},[n("i",{staticClass:"fa fa-fw fa-book"}),e._v(" Add a book\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("slideshow")}}},[n("i",{staticClass:"fa fa-fw fa-photo"}),e._v(" New slideshow\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("puzzle")}}},[n("i",{staticClass:"fa fa-fw fa-puzzle-piece"}),e._v(" Create a puzzle\n ")]),e._v(" "),n("hr",{staticClass:"dropdown-divider"}),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("child")}}},[n("i",{staticClass:"fa fa-fw fa-child"}),e._v(" Add a child\n ")])])])]),e._v(" "),n("button",{staticClass:"button is-success m-l-md",attrs:{disabled:!e.user.connections.children.length,title:e.user.connections.children.length?"Start a new call":"Only a parent of a child can start a call"},on:{click:function(t){e.showCreateCallModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-phone"}),e._v(" Call\n ")])])])]),e._v(" "),n("div",{staticClass:"Books"},[e._m(0),e._v(" "),n("div",{staticClass:"is-flex m-b-md is-justify-centered"},e._l(e.user.books,(function(t){return n("div",{key:t.id,staticClass:"book-thumb m-l-md"},[n("div",{staticClass:"book-cover"},[n("figure",{staticClass:"image is-2by3 m-a"},[n("img",{attrs:{src:"/u/books/"+t.id+"/thumbnail"}})])]),e._v(" "),n("div",{staticClass:"book-text"},[n("div",[e._v(e._s(t.title))])])])})),0)])])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-fw fa-book"}),this._v(" My Books\n ")])}];a._withStripped=!0},"./resources/scripts/applications/home/views/settings.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),s=n("./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("f4fa8d72")?o.reload("f4fa8d72",i.options):o.createRecord("f4fa8d72",i.options),e.hot.accept("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&",function(e){a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),o.rerender("f4fa8d72",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/settings.vue",t.a=i.exports},"./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),r=n("./resources/scripts/applications/home/components/Child_Card.vue"),i=n("./resources/scripts/applications/services/index.ts"),o=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),d=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),l={components:{Modal:s.a,FileSelect:o.a,ChildCard:r.a,Loading:d.a},name:"Settings",beforeCreate:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.user){t.next=9;break}return t.prev=1,t.next=4,regeneratorRuntime.awrap(e.getUser());case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.error("Failed to fetch user");case 9:return e.loading=!1,t.abrupt("return",!0);case 11:case"end":return t.stop()}}),null,null,[[1,6]],Promise)},methods:{addChild(){var e,t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return n.childValidation.enableInput=!1,e={name:n.childValidation.name,dob:n.childValidation.dob,avatar:n.childValidation.avatar},console.log(e),a.next=5,regeneratorRuntime.awrap(i.a.ApiService.createChild(e.name,e.dob,e.avatar));case 5:return t=a.sent,e.avatar&&console.log(e.avatar.length),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null,n.childValidation.enableInput=!0,n.enableChildModel=!1,a.next=14,regeneratorRuntime.awrap(n.getUser());case 14:return n.notify({message:`Yay!, ${t.name} was cretated`,level:"success"}),a.abrupt("return",!0);case 16:case"end":return a.stop()}}),null,null,null,Promise)},...Object(a.c)(["getUser","notify"])},computed:{...Object(a.d)(["user"])},data:()=>({loading:!0,childValidation:{enableInput:!0,name:null,dob:null,avatar:null},enableChildModel:!1})};t.a=l},"./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"container is-fullwidth"},[this.loading?t("div",{staticClass:"loading"},[t("Loading")],1):t("div",{},[t("h1",{staticClass:"is-1"},[this._v("Under a complete remake.")]),this._v(" "),t("h2",{staticClass:"subtitle"},[this._v("Add a child from your homepage")])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/ws/call.manager.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n("./node_modules/events/events.js");let s=null;class r{constructor(e){this.ws=e,this.emitter=new a.EventEmitter,this.peer={avatar:""},this.isHost=!1,this.books=[],this.currentActivity=null,this.inCall=!1,this.peerId=null,this.pc=null,this.remoteStream=new MediaStream}connectToCall(e,t,n){var a=this;return function(){var s,r;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(!a.inCall){i.next=2;break}throw new Error("Already connected to call");case 2:return a.callId=n,a.userId=e,console.log("connecting to call"),i.next=7,regeneratorRuntime.awrap(a.getUserMedia(t));case 7:return a.signalingChannel=a.ws.subscribe("call:"+a.callId),s=a.signalingChannel,r=a,i.abrupt("return",new Promise((e,t)=>{s.on("close",r.close.bind(r)),s.on("call:start",r.onCallStart.bind(r)),s.on("call:standby",r.onCallStandby.bind(r)),s.on("wrtc:sdp:offer",r.onRemoteOffer.bind(r)),s.on("wrtc:sdp:answer",r.onRemoteAnswer.bind(r)),s.on("wrtc:ice",r.onRemoteIce.bind(r)),s.on("book:action:flip-page",r.onActionBookFlip.bind(r)),s.on("call:host:changed",r.onRemoteHostChanged.bind(r)),s.on("call:view:lobby",r.onRemoteViewLobby.bind(r)),s.on("call:view:book",r.onRemoteViewBook.bind(r)),s.on("error",t=>{console.error(t),e(!1)}),s.on("ready",()=>{console.log("in Ready"),r.inCall=!0,e(!0)})}));case 11:case"end":return i.stop()}}),null,null,null,Promise)}()}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}emit(e,t){this.emitter.emit(e,t)}send(e,t){console.log("Sending event: "+e),this.signalingChannel.emit(e,{userId:this.userId,peerId:this.peerId,...t})}onCallStart(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return console.log("onCallStart"),console.log(e),n.peerId=e.peerId,n.books=e.books,n.isHost=n.userId===e.hostId,n.pc=new RTCPeerConnection({iceServers:e.iceServers}),n.child=e.child,e.users.forEach(e=>{e.id===n.peerId&&(n.peer=e)}),n.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),n.localStream.getTracks().forEach(e=>n.pc.addTrack(e,n.localStream)),n.setupPeerConnectionListeners(),a.next=15,regeneratorRuntime.awrap(n.pc.createOffer());case 15:return t=a.sent,a.next=18,regeneratorRuntime.awrap(n.pc.setLocalDescription(t));case 18:return console.log("Local description Set",t.sdp),n.send("wrtc:sdp:offer",{sdp:t}),a.abrupt("return",!0);case 21:case"end":return a.stop()}}),null,null,null,Promise)}onCallStandby(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("onCallStandby"),console.log(e),t.peerId=e.peerId,t.books=e.books,t.isHost=t.userId===e.hostId,t.pc=new RTCPeerConnection({iceServers:e.iceServers}),t.child=e.child,e.users.forEach(e=>{e.id===t.peerId&&(t.peer=e)}),t.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),t.localStream.getTracks().forEach(e=>t.pc.addTrack(e,t.localStream)),t.setupPeerConnectionListeners(),n.abrupt("return",!0);case 14:case"end":return n.stop()}}),null,null,null,Promise)}selectBook(e,t){this.currentActivity=this.books[e],console.log("-------\x3e Selected Book ",e,"bookId:",this.currentActivity.id),t||this.send("call:view:book",{bookId:this.currentActivity.id})}backToLobby(){console.log("-------\x3e backToLobby"),this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.send("call:view:lobby",{})}setupPeerConnectionListeners(){this.pc.addEventListener("icecandidate",this.onLocalIce.bind(this)),this.pc.addEventListener("connectionstatechange",e=>{console.log("PC Connection state: "+this.pc.connectionState)}),this.pc.addEventListener("iceconnectionstatechange",e=>{console.log("iceconnectionstatechange"),console.log(this.pc.iceConnectionState)}),this.pc.addEventListener("track",e=>regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("On remote track!"),this.remoteStream.addTrack(e.track);case 2:case"end":return t.stop()}}),null,this,null,Promise)),this.pc.addEventListener("icegatheringstatechange",e=>{console.log("icegatheringstatechange",this.pc.iceGatheringState)})}onLocalIce(e){e.candidate&&(console.log("Sending candidate"),this.send("wrtc:ice",{ice:e.candidate}))}onRemoteOffer(e){var t,n,a=this;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=new RTCSessionDescription(e.sdp),s.next=3,regeneratorRuntime.awrap(a.pc.setRemoteDescription(t));case 3:return console.log("Remote offer Set",t.sdp),s.next=6,regeneratorRuntime.awrap(a.pc.createAnswer());case 6:return n=s.sent,a.send("wrtc:sdp:answer",{sdp:n}),s.next=10,regeneratorRuntime.awrap(a.pc.setLocalDescription(n));case 10:return console.log("Local answer Set",n.sdp),s.abrupt("return",!0);case 12:case"end":return s.stop()}}),null,null,null,Promise)}onRemoteAnswer(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=new RTCSessionDescription(e.sdp),a.next=3,regeneratorRuntime.awrap(n.pc.setRemoteDescription(t));case 3:return console.log("Remote answer Set",t.sdp),a.abrupt("return",!0);case 5:case"end":return a.stop()}}),null,null,null,Promise)}onRemoteIce(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.ice,a.next=3,regeneratorRuntime.awrap(n.pc.addIceCandidate(t));case 3:return a.abrupt("return",!0);case 4:case"end":return a.stop()}}),null,null,null,Promise)}getUserMedia(e={video:!0,audio:!0}){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.localStream){n.next=2;break}return n.abrupt("return",t.localStream);case 2:return n.next=4,regeneratorRuntime.awrap(navigator.mediaDevices.getUserMedia(e));case 4:return t.localStream=n.sent,n.abrupt("return",t.localStream);case 6:case"end":return n.stop()}}),null,null,null,Promise)}getRemoteStream(){return this.remoteStream}onActionBookFlip(e){this.emit(i.ACTION_BOOK_FLIP,e)}changeHost(){this.send("call:host:changed",{})}onRemoteHostChanged(e){this.isHost=this.userId===e.hostId,this.emit(i.CALL_HOST_CHANGED,e)}onRemoteViewLobby(e){this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.emit(i.CALL_VIEW_LOBBY,null)}onRemoteViewBook(e){this.emit(i.CALL_VIEW_BOOK,e)}close(){this.inCall&&(console.log("Closing..."),this.emit(i.CLOSE,this.callId),this.signalingChannel&&this.signalingChannel.close(),this.signalingChannel=null,this.pc&&this.pc.close(),this.localStream&&this.localStream.getTracks().forEach(e=>e.stop()),this.localStream=null,this.remoteStream=null,this.emitter.removeAllListeners(),this.inCall=!1,s=null)}}var i;!function(e){e.CLOSE="CLOSE",e.REMOTE_STREAM="REMOTE_STREAM",e.ACTION_BOOK_FLIP="ACTION_BOOK_FLIP",e.CALL_HOST_CHANGED="CALL_HOST_CHANGED",e.CALL_VIEW_LOBBY="CALL_VIEW_LOBBY",e.CALL_VIEW_BOOK="CALL_VIEW_BOOK"}(i||(i={}))},"./resources/scripts/applications/home/ws/websocket.service.ts":function(e,t,n){"use strict";var a=n("./node_modules/@adonisjs/websocket-client/dist/Ws.browser.js"),s=n.n(a);let r=null;class i{constructor(e){this.ws=e,this.subscription=null}connect(){var e=this;return function(){var t,n;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return e.subscription=e.ws.subscribe("user_channel"),t=e.subscription,n=e,a.abrupt("return",new Promise((e,a)=>{t.on("error",()=>{e(!1)}),t.on("ready",()=>{e(!0)}),t.on("close",n.close)}));case 4:case"end":return a.stop()}}),null,null,null,Promise)}()}on(e,t){this.subscription&&this.subscription.on(e,t)}static getInstance(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=2;break}return t.abrupt("return",r);case 2:return r=new i(e),t.abrupt("return",r);case 4:case"end":return t.stop()}}),null,null,null,Promise)}close(){this.subscription.close(),r=null}}var o=n("./node_modules/events/events.js"),d=n("./resources/scripts/applications/home/ws/call.manager.ts");let l=null;var u;!function(e){e[e.NEW_CONNECTION=0]="NEW_CONNECTION",e[e.CONNECTION_ONLINE=1]="CONNECTION_ONLINE",e[e.CONNECTION_OFFLINE=2]="CONNECTION_OFFLINE",e[e.INCOMING_CALL=3]="INCOMING_CALL"}(u||(u={}));let c=(()=>{class e{constructor(e,t){this.ws=e,this.userChannelService=t,this.emitter=new o.EventEmitter,this.userChannelService.on("new:connection",this.onUserNewConnection.bind(this)),this.userChannelService.on("connection:online",this.onUserConnectionOnline.bind(this)),this.userChannelService.on("connection:offline",this.onUserConnectionOffline.bind(this)),this.userChannelService.on("call:incoming",this.onIncomingCall.bind(this)),this.callManager=new d.b(this)}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}subscribe(e){const t=this.ws.subscribe(e);return console.log(t),t}onIncomingCall(e){this.emitter.emit(u.INCOMING_CALL,e)}onUserNewConnection(e){this.emitter.emit(u.NEW_CONNECTION,e)}onUserConnectionOnline(e){this.emitter.emit(u.CONNECTION_ONLINE,e)}onUserConnectionOffline(e){this.emitter.emit(u.CONNECTION_OFFLINE,e)}static getInstance(){return new Promise((t,n)=>{if(l)return t(l);const a=s()("",{path:"connect"});a.connect(),a.on("open",()=>{var n,s;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(i.getInstance(a));case 2:return n=r.sent,r.next=5,regeneratorRuntime.awrap(n.connect());case 5:s=r.sent,console.log("Connected to user socket:",s),l=new e(a,n),t(l);case 9:case"end":return r.stop()}}),null,null,null,Promise)}),a.on("error",e=>{console.log(e),n(new Error("Failed to connect"))}),a.on("close",e=>{console.log("Socket Closed")})})}}return e.Events=u,e})();t.a=c},"./resources/scripts/applications/services/index.ts":function(e,t,n){"use strict";const a={ApiService:class{static getUser(e){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/user/"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getUser ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getAllUsers(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/admin/users"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getAllUsers ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static uploadBook(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/book/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:throw n.prev=7,n.t0=n.catch(1),console.error("uploadBook ERROR: "+n.t0.message),n.t0;case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateUser(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"PUT",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/user/",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("updateUser ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static getChild(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e));case 3:return t.abrupt("return",t.sent.json());case 6:return t.prev=6,t.t0=t.catch(0),console.error("getChild ERROR: "+t.t0.message),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),null,null,[[0,6]],Promise)}static createConnection(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/connections/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("createConnection ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateChild(e,t){return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return n={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}},s.prev=1,s.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e,n));case 4:return a=s.sent,console.log(a),s.abrupt("return",a.json());case 9:return s.prev=9,s.t0=s.catch(1),console.error("updateChildCover ERROR: "+s.t0.message),s.abrupt("return",!1);case 13:case"end":return s.stop()}}),null,null,[[1,9]],Promise);var n,a}static createCall(e){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},a.prev=1,a.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/call/create",t));case 4:return n=a.sent,a.abrupt("return",n.json());case 8:return a.prev=8,a.t0=a.catch(1),console.error("createCall ERROR: "+a.t0.message),a.abrupt("return",!1);case 12:case"end":return a.stop()}}),null,null,[[1,8]],Promise);var t,n}static createChild(e,t,n){return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return a={method:"POST",body:JSON.stringify({name:e,dob:t,avatar:n}),headers:{"Content-Type":"application/json"}},r.prev=1,r.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/",a));case 4:return s=r.sent,r.abrupt("return",s.json());case 8:return r.prev=8,r.t0=r.catch(1),console.error("createChild ERROR: "+r.t0.message),r.abrupt("return",!1);case 12:case"end":return r.stop()}}),null,null,[[1,8]],Promise);var a,s}}};t.a=a},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),s=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("46c93e93")?o.reload("46c93e93",i.options):o.createRecord("46c93e93",i.options),e.hot.accept("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&",function(e){a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),o.rerender("46c93e93",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/FileSelect/FileSelect.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";const a=e=>new Promise((t,n)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=e=>n(e)});var s={props:["accept","lable"],data:()=>({filename:null}),created(){this.filename=null},methods:{handleFileChange(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=t,n.next=3,regeneratorRuntime.awrap(a(e.target.files[0]));case 3:n.t1=n.sent,n.t0.$emit.call(n.t0,"input",n.t1),t.filename=e.target.files[0];case 6:case"end":return n.stop()}}),null,null,null,Promise)}}};t.a=s},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v(e._s(e.lable))]),e._v(" "),n("div",{staticClass:"control"},[n("label",{staticClass:"button"},[e._v("\n Select File\n "),e._v(" "),n("input",{staticClass:"is-hidden",attrs:{type:"file",accept:e.accept},on:{change:e.handleFileChange}})]),e._v(" "),e.filename?n("span",[e._v(e._s(e.filename.name))]):e._e()])])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Loading/Loading.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),s=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("c18e6166")?o.reload("c18e6166",i.options):o.createRecord("c18e6166",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&",function(e){a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),o.rerender("c18e6166",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Loading/Loading.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={}},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement;this._self._c;return this._m(0)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wrapper is-fullheight"},[t("div",{staticClass:"css-loader"},[t("div",{staticClass:"dot"}),this._v(" "),t("div",{staticClass:"dot delay-1"}),this._v(" "),t("div",{staticClass:"dot delay-2"})])])}];a._withStripped=!0},"./resources/scripts/applications/shared/components/Modal/Modal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1625ddaf")?o.reload("1625ddaf",i.options):o.createRecord("1625ddaf",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&",function(e){a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),o.rerender("1625ddaf",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Modal/Modal.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={props:["title","isActive","acceptText","rejectText"],data(){return{showTitle:!!this.title,showButtons:this.acceptText||this.rejectText}},methods:{close(){this.$emit("close")}}};t.a=a},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.isActive?n("div",{class:["modal",{"is-active":!!e.isActive}]},[n("div",{staticClass:"modal-background",on:{click:function(t){return e.close()}}}),e._v(" "),n("div",{staticClass:"modal-card"},[e.showTitle?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))]),e._v(" "),n("button",{staticClass:"delete",attrs:{"aria-label":"close"},on:{click:function(t){return e.close()}}})]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body"},[e._t("default")],2),e._v(" "),e.showButtons?n("footer",{staticClass:"modal-card-foot"},[e.acceptText?n("button",{staticClass:"button is-success",on:{click:function(t){return e.$emit("accept")}}},[e._v(e._s(e.acceptText))]):e._e(),e._v(" "),e.rejectText?n("button",{staticClass:"button",on:{click:function(t){return e.close()}}},[e._v(e._s(e.rejectText))]):e._e()]):e._e()])]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Notification.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),s=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7fc5b0d2")?o.reload("7fc5b0d2",i.options):o.createRecord("7fc5b0d2",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&",function(e){a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),o.rerender("7fc5b0d2",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Notification.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"Notification",props:["notification"],mounted(){this.ready=!0},data:()=>({ready:!1}),methods:{close(){this.$emit("onClose")}}};t.a=a},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.ready?n("div",{class:["notification","is-light","is-"+(e.notification.level||"info")]},[n("button",{staticClass:"delete",on:{click:function(t){return e.close()}}}),e._v("\n "+e._s(e.notification.message)+"\n ")]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/TopNavbar.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),s=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("ff71a66e")?o.reload("ff71a66e",i.options):o.createRecord("ff71a66e",i.options),e.hot.accept("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&",function(e){a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),o.rerender("ff71a66e",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/TopNavbar.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r={name:"TobNavbar",props:["ws"],components:{Modal:n("./resources/scripts/applications/shared/components/Modal/Modal.vue").a},watch:{ws(e,t){null!=e&&(this.callManager=this.ws.callManager)}},created:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),null,null,null,Promise),updated(){this.inCall||(this.subscribedToLobbyEvents=!1)},data:()=>({showConfirmEndCall:!1,showMenu:!1,subscribedToLobbyEvents:!1,callManager:null}),computed:{host(){return this.inCall?(this.subscribedToLobbyEvents||(console.log("TopNav subscribe to back_to_lobby"),this.subscribedToLobbyEvents=!0,this.callManager.on(s.a.CALL_VIEW_LOBBY,this.remoteBackToLobby.bind(this))),this.callManager.isHost?this.user:this.callManager.peer):null},...Object(a.d)(["user","inCall"])},methods:{onConfirmedEndCall(){this.showConfirmEndCall=!1,this.$router.replace({path:"/"})},changeHost(){this.callManager.changeHost()},backToLobby(e){this.callManager.backToLobby(),this.$router.replace({path:"/call/"+this.callManager.callId})},remoteBackToLobby(e){this.$router.replace({path:"/call/"+this.callManager.callId})},...Object(a.c)([])}};t.a=r},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Modal",{attrs:{title:"Are You Sure?",isActive:e.showConfirmEndCall,acceptText:"End",rejectText:"Cancel"},on:{accept:function(t){return e.onConfirmedEndCall()},close:function(t){e.showConfirmEndCall=!1}}},[n("p",[e._v("End Call?")])]),e._v(" "),n("nav",{staticClass:"navbar is-light",attrs:{role:"navigation","aria-label":"main navigation"}},[n("div",{staticClass:"navbar-brand"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{to:"/",exact:""}},[n("strong",[e._v("Seepur")])]),e._v(" "),n("a",{staticClass:"navbar-burger burger",attrs:{id:"menu-button",role:"button","aria-label":"menu","aria-expanded":"false","data-target":"navbarBasicExample"},on:{click:function(t){e.showMenu=!e.showMenu}}},[n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}})])],1),e._v(" "),n("div",{class:["navbar-menu",{"is-active":e.showMenu}],attrs:{id:"nav-menu"}},[n("div",{staticClass:"navbar-start"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/",exact:""}},[e._v("Home")]),e._v(" "),e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/about",exact:""}},[e._v("About")]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("div",{staticClass:"field is-grouped"},[n("p",{staticClass:"control"},[e.inCall?n("button",{staticClass:"button is-danger",on:{click:function(t){e.showConfirmEndCall=!0}}},[n("i",{staticClass:"fa fa-fw fa-times-circle-o"}),e._v(" End Call\n ")]):e._e()]),e._v(" "),n("p",{staticClass:"control"},[e.inCall&&"book"===e.$route.name?n("button",{staticClass:"button is-info",attrs:{append:"",replace:"",disabled:!e.callManager.isHost},on:{click:function(t){return e.backToLobby(!0)}}},[n("i",{staticClass:"fa fa-fw fa-arrow-circle-o-left"}),e._v(" Back\n ")]):e._e()])])]):e._e()],1),e._v(" "),n("div",{staticClass:"navbar-end"},[e.inCall?e._e():n("div",{staticClass:"navbar-item has-dropdown is-hoverable is-dark"},[n("a",{staticClass:"navbar-link"},[e._v(e._s(e.user.name))]),e._v(" "),n("div",{staticClass:"navbar-dropdown"},[n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/settings",exact:""}},[e._v("Settings")]),e._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"/logout"}},[e._v("Logout")]),e._v(" "),e.user.is_admin?n("hr",{staticClass:"navbar-divider"}):e._e(),e._v(" "),e.user.is_admin?n("a",{staticClass:"navbar-item",attrs:{href:"/admin/"}},[e._v("Admin Settigns")]):e._e()],1)]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("p",{staticClass:"control"},[n("button",{staticClass:"button",on:{click:function(t){return e.changeHost()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Host\n ")])])]):e._e(),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[e._v("Current Host: "+e._s(e.host.name))]):e._e()])])])],1)},s=[];a._withStripped=!0}}); \ No newline at end of file + */var a,s,r,i,o=n("./node_modules/rematrix/dist/rematrix.es.js"),d=function(){function e(e){e?e.m?this.m=[].concat(e.m):this.m=[].concat(e):this.m=o.identity()}return e.prototype.clone=function(){return new e(this)},e.prototype.multiply=function(e){return this.m=o.multiply(this.m,e)},e.prototype.perspective=function(e){return this.multiply(o.perspective(e))},e.prototype.transformX=function(e){return(e*this.m[0]+this.m[12])/(e*this.m[3]+this.m[15])},e.prototype.translate=function(e,t){return this.multiply(o.translate(e,t))},e.prototype.translate3d=function(e,t,n){return this.multiply(o.translate3d(e,t,n))},e.prototype.rotateY=function(e){return this.multiply(o.rotateY(e))},e.prototype.toString=function(){return o.toString(this.m)},e}();s=function(e){return Math.pow(e,2)},i=function(e){return 1-s(1-e)},r=function(e){return e<.5?s(2*e)/2:.5+i(2*(e-.5))/2},a=/Trident/.test(navigator.userAgent);var l={props:{enabled:{type:Boolean,required:!0},pages:{type:Array,required:!0},pagesHiRes:{type:Array,default:function(){return[]}},flipDuration:{type:Number,default:1e3},zoomDuration:{type:Number,default:500},zooms:{type:Array,default:function(){return[1,2,4]}},perspective:{type:Number,default:2400},nPolygons:{type:Number,default:10},ambient:{type:Number,default:.4},gloss:{type:Number,default:.6},swipeMin:{type:Number,default:3},singlePage:{type:Boolean,default:!1},forwardDirection:{validator:function(e){return"right"===e||"left"===e},default:"right"},centering:{type:Boolean,default:!0},startPage:{type:Number,default:null}},data:function(){return{viewWidth:0,viewHeight:0,imageWidth:null,imageHeight:null,displayedPages:1,nImageLoad:0,nImageLoadTrigger:0,imageLoadCallback:null,currentPage:0,firstPage:0,secondPage:1,zoomIndex:0,zoom:1,zooming:!1,touchStartX:null,touchStartY:null,maxMove:0,activeCursor:null,hasTouchEvents:!1,hasPointerEvents:!1,minX:Infinity,maxX:-Infinity,preloadedImages:{},flip:{progress:0,direction:null,frontImage:null,backImage:null,auto:!1,opacity:1},currentCenterOffset:null,animatingCenter:!1,startScrollLeft:0,startScrollTop:0,scrollLeft:0,scrollTop:0}},computed:{canFlipLeft:function(){return"left"===this.forwardDirection?this.canGoForward:this.canGoBack},canFlipRight:function(){return"right"===this.forwardDirection?this.canGoForward:this.canGoBack},canZoomIn:function(){return!this.zooming&&this.zoomIndex0},numPages:function(){return null===this.pages[0]?this.pages.length-1:this.pages.length},page:function(){return null!==this.pages[0]?this.currentPage+1:Math.max(1,this.currentPage)},zooms_:function(){return this.zooms||[1]},canGoForward:function(){return!this.flip.direction&&this.currentPage=this.displayedPages&&!(1===this.displayedPages&&!this.pageUrl(this.firstPage-1))},leftPage:function(){return"right"===this.forwardDirection||1===this.displayedPages?this.firstPage:this.secondPage},rightPage:function(){return"left"===this.forwardDirection?this.firstPage:this.secondPage},showLeftPage:function(){return this.pageUrl(this.leftPage)},showRightPage:function(){return this.pageUrl(this.rightPage)&&2===this.displayedPages},cursor:function(){return this.activeCursor?this.activeCursor:a?"auto":this.canZoomIn?"zoom-in":this.canZoomOut?"zoom-out":"grab"},pageScale:function(){var e,t,n;return(e=(t=this.viewWidth/this.displayedPages/this.imageWidth)<(n=this.viewHeight/this.imageHeight)?t:n)<1?e:1},pageWidth:function(){return Math.round(this.imageWidth*this.pageScale)},pageHeight:function(){return Math.round(this.imageHeight*this.pageScale)},xMargin:function(){return(this.viewWidth-this.pageWidth*this.displayedPages)/2},yMargin:function(){return(this.viewHeight-this.pageHeight)/2},polygonWidth:function(){var e;return e=this.pageWidth/this.nPolygons,(e=Math.ceil(e+1/this.zoom))+"px"},polygonHeight:function(){return this.pageHeight+"px"},polygonBgSize:function(){return this.pageWidth+"px "+this.pageHeight+"px"},polygonArray:function(){return this.makePolygonArray("front").concat(this.makePolygonArray("back"))},boundingLeft:function(){var e;return 1===this.displayedPages?this.xMargin:(e=this.pageUrl(this.leftPage)?this.xMargin:this.viewWidth/2)this.maxX?e:this.maxX},centerOffset:function(){var e;return e=this.centering?Math.round(this.viewWidth/2-(this.boundingLeft+this.boundingRight)/2):0,null===this.currentCenterOffset&&null!==this.imageWidth&&(this.currentCenterOffset=e),e},centerOffsetSmoothed:function(){return Math.round(this.currentCenterOffset)},dragToScroll:function(){return!this.hasTouchEvents},scrollLeftMin:function(){var e;return(e=(this.boundingRight-this.boundingLeft)*this.zoom)this.viewHeight&&!this.singlePage?2:1,2===this.displayedPages&&(this.currentPage&=-2),this.fixFirstPage(),this.minX=Infinity,this.maxX=-Infinity,console.log("Flipbook resized")},fixFirstPage:function(){if(1===this.displayedPages&&0===this.currentPage&&this.pages.length&&!this.pageUrl(0))return this.currentPage++},pageUrl:function(e,t){var n;return void 0===t&&(t=!1),t&&this.zoom>1&&!this.zooming&&(n=this.pagesHiRes[e])?n:this.pages[e]||null},flipLeft:function(){if(this.canFlipLeft)return this.flipStart("left",!0)},flipRight:function(){if(this.canFlipRight)return this.flipStart("right",!0)},makePolygonArray:function(e){var t,n,a,s,r,i,o,l,u,c,m,h,_,p,f,v,g,y,M,L,b,k,w,Y,D,T,j;if(!this.flip.direction)return[];for(v=this.flip.progress,r=this.flip.direction,1===this.displayedPages&&r!==this.forwardDirection&&(v=1-v,r=this.forwardDirection),this.flip.opacity=1===this.displayedPages&&v>.7?1-(v-.7)/.3:1,t=(o="front"===e?this.flip.frontImage:this.flip.backImage)&&"url('"+o+"')",f=this.pageWidth/this.nPolygons,p=this.xMargin,m=!1,1===this.displayedPages?"right"===this.forwardDirection?"back"===e&&(m=!0,p=this.xMargin-this.pageWidth):"left"===r?"back"===e?p=this.pageWidth-this.xMargin:m=!0:"front"===e?p=this.pageWidth-this.xMargin:m=!0:"left"===r?"back"===e?p=this.viewWidth/2:m=!0:"front"===e?p=this.viewWidth/2:m=!0,(h=new d).translate(this.viewWidth/2),h.perspective(this.perspective),h.translate(-this.viewWidth/2),h.translate(p,this.yMargin),_=0,v>.5&&(_=2*-(v-.5)*180),"left"===r&&(_=-_),"back"===e&&(_+=180),_&&(m&&h.translate(this.pageWidth),h.rotateY(_),m&&h.translate(-this.pageWidth)),0===(w=v<.5?2*v*Math.PI:(1-2*(v-.5))*Math.PI)&&(w=1e-9),M=this.pageWidth/w,y=0,k=(a=w/this.nPolygons)/2/Math.PI*180,s=a/Math.PI*180,m&&(k=-w/Math.PI*180+s/2),"back"===e&&(k=-k,s=-s),this.minX=Infinity,this.maxX=-Infinity,b=[],i=l=0,L=this.nPolygons;0<=L?lL;i=0<=L?++l:--l)n=i/(this.nPolygons-1)*100+"% 0px",c=h.clone(),g=m?w-y:y,Y=Math.sin(g)*M,m&&(Y=this.pageWidth-Y),j=(1-Math.cos(g))*M,"back"===e&&(j=-j),c.translate3d(Y,0,j),c.rotateY(-k),D=c.transformX(0),T=c.transformX(f),this.maxX=Math.max(Math.max(D,T),this.maxX),this.minX=Math.min(Math.min(D,T),this.minX),u=this.computeLighting(_-k,s),y+=a,k+=s,b.push([e+i,t,u,n,c.toString(),Math.abs(Math.round(j))]);return b},computeLighting:function(e,t){var n,s,r,i,o;return r=[],i=[-.5,-.25,0,.25,.5],this.ambient<1&&(n=1-this.ambient,s=i.map((function(a){return(1-Math.cos((e-t*a)/180*Math.PI))*n})),r.push("linear-gradient(to right,\n rgba(0, 0, 0, "+s[0]+"),\n rgba(0, 0, 0, "+s[1]+") 25%,\n rgba(0, 0, 0, "+s[2]+") 50%,\n rgba(0, 0, 0, "+s[3]+") 75%,\n rgba(0, 0, 0, "+s[4]+"))")),this.gloss>0&&!a&&(30,200,o=i.map((function(n){return Math.max(Math.pow(Math.cos((e+30-t*n)/180*Math.PI),200),Math.pow(Math.cos((e-30-t*n)/180*Math.PI),200))})),r.push("linear-gradient(to right,\n rgba(255, 255, 255, "+o[0]*this.gloss+"),\n rgba(255, 255, 255, "+o[1]*this.gloss+") 25%,\n rgba(255, 255, 255, "+o[2]*this.gloss+") 50%,\n rgba(255, 255, 255, "+o[3]*this.gloss+") 75%,\n rgba(255, 255, 255, "+o[4]*this.gloss+"))")),r.join(",")},flipStart:function(e,t){var n=this;return e!==this.forwardDirection?1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage-1),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.firstPage),this.flip.backImage=this.pageUrl(this.currentPage-this.displayedPages+1)):1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.secondPage),this.flip.backImage=this.pageUrl(this.currentPage+this.displayedPages)),this.flip.direction=e,this.flip.progress=0,requestAnimationFrame((function(){return requestAnimationFrame((function(){if(n.flip.direction!==n.forwardDirection?2===n.displayedPages&&(n.firstPage=n.currentPage-n.displayedPages):1===n.displayedPages?n.firstPage=n.currentPage+n.displayedPages:n.secondPage=n.currentPage+1+n.displayedPages,t)return n.flipAuto(!0)}))}))},flipAuto:function(e){var t,n,a,s,i=this;return s=Date.now(),n=this.flipDuration*(1-this.flip.progress),a=this.flip.progress,this.flip.auto=!0,this.$emit("flip-"+this.flip.direction+"-start",this.page),(t=function(){return requestAnimationFrame((function(){var o,d;return d=Date.now()-s,(o=a+d/n)>1&&(o=1),i.flip.progress=e?r(o):o,o<1?t():(i.flip.direction!==i.forwardDirection?i.currentPage-=i.displayedPages:i.currentPage+=i.displayedPages,i.$emit("flip-"+i.flip.direction+"-end",i.page),1===i.displayedPages&&i.flip.direction===i.forwardDirection?i.flip.direction=null:i.onImageLoad(1,(function(){return i.flip.direction=null})),i.flip.auto=!1)}))})()},flipRevert:function(){var e,t,n,a,s=this;return a=Date.now(),t=this.flipDuration*this.flip.progress,n=this.flip.progress,this.flip.auto=!0,(e=function(){return requestAnimationFrame((function(){var r,i;return i=Date.now()-a,(r=n-n*i/t)<0&&(r=0),s.flip.progress=r,r>0?e():(s.firstPage=s.currentPage,s.secondPage=s.currentPage+1,1===s.displayedPages&&s.flip.direction!==s.forwardDirection?s.flip.direction=null:s.onImageLoad(1,(function(){return s.flip.direction=null})),s.flip.auto=!1)}))})()},onImageLoad:function(e,t){return this.nImageLoad=0,this.nImageLoadTrigger=e,this.imageLoadCallback=t},didLoadImage:function(e){if(null===this.imageWidth&&(this.imageWidth=(e.target||e.path[0]).naturalWidth,this.imageHeight=(e.target||e.path[0]).naturalHeight),this.imageLoadCallback)return++this.nImageLoad>=this.nImageLoadTrigger?(this.imageLoadCallback(),this.imageLoadCallback=null):void 0},zoomIn:function(){if(this.canZoomIn)return this.zoomIndex+=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomOut:function(){if(this.canZoomOut)return this.zoomIndex-=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomTo:function(e,t,n){var s,i,o,d,l,u,c,m,h,_=this;if(l=this.zoom,i=e,h=this.$refs.viewport,u=h.scrollLeft,c=h.scrollTop,t||(t=h.clientWidth/2),n||(n=h.clientHeight/2),o=(t+u)/l*i-t,d=(n+c)/l*i-n,m=Date.now(),this.zooming=!0,this.$emit("zoom-start",e),(s=function(){return requestAnimationFrame((function(){var t,n;return((t=(n=Date.now()-m)/_.zoomDuration)>1||a)&&(t=1),t=r(t),_.zoom=l+(i-l)*t,_.scrollLeft=u+(o-u)*t,_.scrollTop=c+(d-c)*t,n<_.zoomDuration?s():(_.$emit("zoom-end",e),_.zooming=!1,_.zoom=e,_.scrollLeft=o,_.scrollTop=d)}))})(),i>1)return this.preloadImages(!0)},zoomAt:function(e){var t,n,a;return t=this.$refs.viewport.getBoundingClientRect(),n=e.pageX-t.left,a=e.pageY-t.top,this.zoomIndex=(this.zoomIndex+1)%this.zooms_.length,this.zoomTo(this.zooms_[this.zoomIndex],n,a)},swipeStart:function(e){},swipeMove:function(e){var t,n;if(null!=this.touchStartX)if(t=e.pageX-this.touchStartX,n=e.pageY-this.touchStartY,this.maxMove=Math.max(this.maxMove,Math.abs(t)),this.maxMove=Math.max(this.maxMove,Math.abs(n)),this.zoom>1)this.dragToScroll&&this.dragScroll(t,n);else if(!(Math.abs(n)>Math.abs(t)))return this.activeCursor="grabbing",t>0?(null===this.flip.direction&&this.canFlipLeft&&t>=this.swipeMin&&this.flipStart("left",!1),"left"===this.flip.direction&&(this.flip.progress=t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))):(null===this.flip.direction&&this.canFlipRight&&t<=-this.swipeMin&&this.flipStart("right",!1),"right"===this.flip.direction&&(this.flip.progress=-t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))),!0},swipeEnd:function(e){if(null!=this.touchStartX)return this.maxMove1/4?this.flipAuto(!1):this.flipRevert()),this.touchStartX=null,this.activeCursor=null},onTouchStart:function(e){return this.hasTouchEvents=!0,this.swipeStart(e.changedTouches[0])},onTouchMove:function(e){if(this.swipeMove(e.changedTouches[0])&&e.cancelable)return e.preventDefault()},onTouchEnd:function(e){return this.swipeEnd(e.changedTouches[0])},onPointerDown:function(e){if(this.hasPointerEvents=!0,!(this.hasTouchEvents||e.which&&1!==e.which)){this.swipeStart(e);try{return e.target.setPointerCapture(e.pointerId)}catch(e){}}},onPointerMove:function(e){if(!this.hasTouchEvents)return this.swipeMove(e)},onPointerUp:function(e){if(!this.hasTouchEvents){this.swipeEnd(e);try{return e.target.releasePointerCapture(e.pointerId)}catch(e){}}},onMouseDown:function(e){if(!(this.hasTouchEvents||this.hasPointerEvents||e.which&&1!==e.which))return this.swipeStart(e)},onMouseMove:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeMove(e)},onMouseUp:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeEnd(e)},dragScroll:function(e,t){return this.scrollLeft=this.startScrollLeft-e,this.scrollTop=this.startScrollTop-t},onWheel:function(e){if(this.zoom>1&&this.dragToScroll&&(this.scrollLeft=this.$refs.viewport.scrollLeft+e.deltaX,this.scrollTop=this.$refs.viewport.scrollTop+e.deltaY,e.cancelable))return e.preventDefault()},preloadImages:function(e){var t,n,a,s,r,i,o,d,l;for(void 0===e&&(e=!1),Object.keys(this.preloadedImages).length>=10&&(this.preloadedImages={}),t=a=r=this.currentPage-3,i=this.currentPage+3;r<=i?a<=i:a>=i;t=r<=i?++a:--a)(l=this.pageUrl(t))&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n));if(e)for(t=s=o=this.currentPage,d=this.currentPage+this.displayedPages;o<=d?sd;t=o<=d?++s:--s)(l=this.pagesHiRes[t])&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n))},goToPage:function(e){if(null!==e&&e!==this.page)return null===this.pages[0]?2===this.displayedPages&&1===e?this.currentPage=0:this.currentPage=e:this.currentPage=e-1,this.minX=Infinity,this.maxX=-Infinity,this.currentCenterOffset=this.centerOffset}},watch:{currentPage:function(){return this.firstPage=this.currentPage,this.secondPage=this.currentPage+1,this.preloadImages()},centerOffset:function(){var e,t=this;if(!this.animatingCenter)return e=function(){return requestAnimationFrame((function(){var n;return.1,n=t.centerOffset-t.currentCenterOffset,Math.abs(n)<.5?(t.currentCenterOffset=t.centerOffset,t.animatingCenter=!1):(t.currentCenterOffset+=.1*n,e())}))},this.animatingCenter=!0,e()},scrollLeftLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollLeft=e})):this.$refs.viewport.scrollLeft=e},scrollTopLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollTop=e})):this.$refs.viewport.scrollTop=e},pages:function(e,t){if(this.fixFirstPage(),!(null!=t?t.length:void 0)&&(null!=e?e.length:void 0)&&this.startPage>1&&null===e[0])return this.currentPage++},startPage:function(e){return this.goToPage(e)}}};var u,c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var m={};var h=function(e,t,n,a,s,r,i,o,d,l){"boolean"!=typeof i&&(d=o,o=i,i=!1);var u,c="function"==typeof n?n.options:n;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),a&&(c._scopeId=a),r?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=u):t&&(u=i?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),u)if(c.functional){var m=c.render;c.render=function(e,t){return u.call(t),m(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return n}({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",null,null,{canFlipLeft:e.canFlipLeft,canFlipRight:e.canFlipRight,canZoomIn:e.canZoomIn,canZoomOut:e.canZoomOut,page:e.page,numPages:e.numPages,flipLeft:e.flipLeft,flipRight:e.flipRight,zoomIn:e.zoomIn,zoomOut:e.zoomOut}),e._v(" "),n("div",{ref:"viewport",staticClass:"viewport",class:{zoom:e.zooming||e.zoom>1,"drag-to-scroll":e.dragToScroll},style:{cursor:"grabbing"==e.cursor?"grabbing":"auto"},on:{touchmove:e.onTouchMove,pointermove:e.onPointerMove,mousemove:e.onMouseMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,mouseup:e.onMouseUp,wheel:e.onWheel}},[n("div",{staticClass:"book-container",style:{transform:"scale("+e.zoom+")"}},[n("div",{style:{transform:"translateX("+e.centerOffsetSmoothed+"px)"}},[e.showLeftPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.xMargin+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.leftPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),e.showRightPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.viewWidth/2+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.rightPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),n("div",{style:{opacity:e.flip.opacity}},e._l(e.polygonArray,(function(t){var a=t[0],s=t[1],r=t[2],i=t[3],o=t[4],d=t[5];return n("div",{key:a,staticClass:"polygon",class:{blank:!s},style:{backgroundImage:s,backgroundSize:e.polygonBgSize,backgroundPosition:i,width:e.polygonWidth,height:e.polygonHeight,transform:o,zIndex:d}},[n("div",{directives:[{name:"show",rawName:"v-show",value:r.length,expression:"lighting.length"}],staticClass:"lighting",style:{backgroundImage:r}})])})),0),e._v(" "),n("div",{staticClass:"bounding-box",style:{left:e.boundingLeft+"px",top:e.yMargin+"px",width:e.boundingRight-e.boundingLeft+"px",height:e.pageHeight+"px",cursor:e.cursor},on:{touchstart:e.onTouchStart,pointerdown:e.onPointerDown,mousedown:e.onMouseDown}})])])])],2)},staticRenderFns:[]},(function(e){e&&e("data-v-1b72a150_0",{source:".viewport[data-v-1b72a150]{-webkit-overflow-scrolling:touch;width:100%;height:100%}.viewport.zoom[data-v-1b72a150]{overflow:scroll}.viewport.zoom.drag-to-scroll[data-v-1b72a150]{overflow:hidden}.book-container[data-v-1b72a150]{position:relative;width:100%;height:100%;transform-origin:top left;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip[data-v-1b72a150]{position:absolute;width:50%;height:100%;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip.left[data-v-1b72a150]{left:0}.click-to-flip.right[data-v-1b72a150]{right:0}.bounding-box[data-v-1b72a150]{position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none}.page[data-v-1b72a150]{position:absolute;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-shadow:0 0 15px -4px rgba(0,0,0,.75)}.polygon[data-v-1b72a150]{position:absolute;top:0;left:0;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-origin:center left}.polygon.blank[data-v-1b72a150]{background-color:#ddd}.polygon .lighting[data-v-1b72a150]{width:100%;height:100%}",map:void 0,media:void 0})}),l,"data-v-1b72a150",!1,void 0,!1,(function(e){return function(e,t){return function(e,t){var n=c?t.media||"default":e,a=m[n]||(m[n]={ids:new Set,styles:[]});if(!a.ids.has(e)){a.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",t.media&&a.element.setAttribute("media",t.media),void 0===u&&(u=document.head||document.getElementsByTagName("head")[0]),u.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(s),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var r=a.ids.size-1,i=document.createTextNode(s),o=a.element.childNodes;o[r]&&a.element.removeChild(o[r]),o.length?a.element.insertBefore(i,o[r]):a.element.appendChild(i)}}}(e,t)}}),void 0,void 0);e.exports=h},"./resources/scripts/applications/home/main.vue":function(e,t,n){"use strict";n.r(t);n("./node_modules/regenerator-runtime/runtime.js");var a=n("./node_modules/vue/dist/vue.esm.js"),s=n("./node_modules/vuex/dist/vuex.esm.js"),r=n("./resources/scripts/applications/home/app.vue"),i=n("./node_modules/vue-router/dist/vue-router.esm.js"),o=n("./resources/scripts/applications/home/views/home.vue"),d=n("./resources/scripts/applications/home/views/settings.vue"),l=n("./resources/scripts/applications/home/views/call.vue"),u=n("./resources/scripts/applications/home/views/child_profile.vue"),c=n("./resources/scripts/applications/home/views/edit_book.vue"),m=n("./resources/scripts/applications/home/views/call_views/Lobby.vue"),h=n("./resources/scripts/applications/home/views/call_views/Book.vue");a.default.use(i.a);const _=[{path:"/",component:o.a,name:"root"},{path:"/settings",component:d.a},{path:"/create/book",component:c.a},{path:"/call/:id",component:l.a,children:[{path:"",component:m.a,name:"lobby"},{path:"book",component:h.a,name:"book"}]},{path:"/child/:id",component:u.a},{path:"*",redirect:{name:"root"}}];var p=new i.a({routes:_,mode:"history"}),f=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),v=Object(f.a)(p,void 0,void 0,!1,null,null,null),g=n("./node_modules/vue-hot-reload-api/dist/index.js");g.install(n("./node_modules/vue/dist/vue.esm.js")),g.compatible&&(e.hot.accept(),g.isRecorded("1c72787c")?g.reload("1c72787c",v.options):g.createRecord("1c72787c",v.options)),v.options.__file="resources/scripts/applications/home/router/router.vue";var y=v.exports,M=n("./resources/scripts/applications/services/index.ts");a.default.use(s.b);var L=new s.a({strict:!0,state:{inCall:!1,user:{name:"loading...",is_admin:!1,id:null,books:[]},notifications:[]},getters:{user:e=>e.user,notifications:e=>e.notifications,inCall:e=>e.inCall},mutations:{setUser(e,t){e.user=t},notify(e,t){const n=Math.ceil(1e3*Math.random());e.notifications.push({...t,id:n});const a=this.dispatch;setTimeout(()=>{a("dismissNotification",n)},5e3)},dismissNotification(e,t){e.notifications=e.notifications.filter(e=>e.id!=t)},callEnded(e){e.inCall=!1},callStarted(e){e.inCall=!0}},actions:{getUser(e,t){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,regeneratorRuntime.awrap(M.a.ApiService.getUser(t));case 2:return n=a.sent,e.commit("setUser",n),a.abrupt("return",n);case 5:case"end":return a.stop()}}),null,null,null,Promise);var n},notify(e,t){e.commit("notify",t)},dismissNotification(e,t){e.commit("dismissNotification",t)},callEnded(e){e.commit("callEnded")},callStarted(e){e.commit("callStarted")}}});a.default.use(s.b);var b=new a.default({router:y,store:L,render:e=>e(r.a)}).$mount("#app"),k=Object(f.a)(b,void 0,void 0,!1,null,null,null),w=n("./node_modules/vue-hot-reload-api/dist/index.js");w.install(n("./node_modules/vue/dist/vue.esm.js")),w.compatible&&(e.hot.accept(),w.isRecorded("550f4f9c")?w.reload("550f4f9c",k.options):w.createRecord("550f4f9c",k.options)),k.options.__file="resources/scripts/applications/home/main.vue";t.default=k.exports},"./resources/scripts/applications/home/views/call.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),s=n("./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("2e42c802")?o.reload("2e42c802",i.options):o.createRecord("2e42c802",i.options),e.hot.accept("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&",function(e){a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),o.rerender("2e42c802",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r=n("./resources/scripts/applications/home/ws/websocket.service.ts"),i=n("./resources/scripts/applications/home/views/call_views/VideoStrip.vue"),o=n("./node_modules/vuex/dist/vuex.esm.js"),d={components:{Loading:a.a,VideoStrip:i.a},name:"Call",created(){var e,t,n,a=this;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return a.loading=!0,i.prev=1,e=Number(a.$route.params.id),i.next=5,regeneratorRuntime.awrap(r.a.getInstance());case 5:return t=i.sent,a.callManager=t.callManager,a.callManager.on(s.a.CLOSE,a.endCall),i.next=10,regeneratorRuntime.awrap(a.callManager.connectToCall(a.user.id,{video:!0,audio:!0},e));case 10:if(n=i.sent,a.callManager.on(s.a.CALL_HOST_CHANGED,a.onRemoteHostChanged),n){i.next=16;break}return a.notify({message:"Can find this call...",level:"danger"}),a.$router.push({path:"/"}),i.abrupt("return",!1);case 16:return a.callStarted(),i.next=19,regeneratorRuntime.awrap(a.callManager.getUserMedia());case 19:a.localStream=i.sent,a.remoteStream=a.callManager.getRemoteStream(),a.notify({message:"Connected!",level:"success"}),i.next=28;break;case 24:i.prev=24,i.t0=i.catch(1),console.error(i.t0),a.notify({message:i.t0.message,level:"danger"});case 28:a.loading=!1;case 29:case"end":return i.stop()}}),null,null,[[1,24]],Promise)},beforeDestroy(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("destroyed"),e.callManager.close(),e.callEnded(),t.abrupt("return",!0);case 4:case"end":return t.stop()}}),null,null,null,Promise)},methods:{setupCall:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),endCall(e){this.notify({message:`Call #${e} Ended`}),this.$router.replace({path:"/"})},onRemoteHostChanged(e){console.log("-----------"),console.log(e),this.peer=this.callManager.peer},changeHost(){this.callManager.changeHost()},...Object(o.c)(["notify","callStarted","callEnded"])},computed:{...Object(o.d)(["user","inCall"])},watch:{$route(e,t){const n=e.path.split("/").length,a=t.path.split("/").length;this.stateTransitionName=n({loading:!0,localStream:null,remoteStream:null,callManager:null,stateTransitionName:"slide-left"}),beforeCreate:()=>{}};t.a=d},"./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"is-fullwidth"},[this.loading?t("div",[t("Loading")],1):t("div",{staticClass:"columns"},[t("VideoStrip",{staticClass:"column is-3",attrs:{localStream:this.localStream,remoteStream:this.remoteStream,remotePoster:this.callManager.peer.avatar}}),this._v(" "),t("transition",{attrs:{name:this.stateTransitionName}},[t("router-view",{staticClass:"column"})],1)],1)])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/views/call_views/Book.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),s=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("39118a17")?o.reload("39118a17",i.options):o.createRecord("39118a17",i.options),e.hot.accept("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&",function(e){a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),o.rerender("39118a17",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call_views/Book.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js"),s=n.n(a),r=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),i=n("./resources/scripts/applications/home/ws/call.manager.ts"),o=n("./resources/scripts/applications/home/ws/websocket.service.ts"),d=n("./node_modules/vuex/dist/vuex.esm.js"),l={name:"CallBook",components:{Flipbook:s.a,Loading:r.a},created(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(o.a.getInstance());case 2:return e=n.sent,t.callManager=e.callManager,t.callManager.on(i.a.ACTION_BOOK_FLIP,t.onRemoteFlip.bind(t)),t.loading=!1,n.abrupt("return",!0);case 7:case"end":return n.stop()}}),null,null,null,Promise)},destroyed(){this.callManager.removeListener(i.a.ACTION_BOOK_FLIP,this.onRemoteFlip.bind(this))},data:()=>({loading:!0,localStream:null,remoteStream:null,flipbookRef:!1,callManager:{isHost:!1}}),computed:{canFlipLeft(){return this.flipbookRef&&this.$refs.flipbook.canFlipLeft},canFlipRight(){return this.flipbookRef&&this.$refs.flipbook.canFlipRight},createPages(){const e=[null];for(let t=1;t({callManager:{books:[]}}),methods:{goToBook(e,t,n){(n||this.callManager.isHost)&&(this.callManager.selectBook(t,n),this.$router.replace({name:"book"}))},remoteBookSelected({bookId:e}){for(let t=0;t!!e||n.id===t.user.id,t.isParent),n.next=15;break;case 13:t.notify({message:"Sorry, Child not found!",level:"danger"}),t.$router.push({path:"/"});case 15:return n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showAddConnectionModal:!1,showChangeAvatarModal:!1,childCoverModalImage:null}),methods:{onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goToUserProfile(e){this.user.id===e.id?this.$router.push({path:"/"}):this.$router.push({path:"/user/"+e.id})},addConnection(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,n.loading=!0,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.createConnection({...e,child_id:n.child.id}));case 4:if(409!==(t=a.sent).code){a.next=11;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"warning"}));case 11:if(0===t.code){a.next=15;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"danger"}));case 15:return n.notify({message:`Awesome!\n${t.data.user.name} is connected to ${n.child.name}`,level:"success"}),t.data.is_parent?n.child.parents.push(t.data.user):n.child.connections.push(t.data.user),a.next=19,regeneratorRuntime.awrap(n.getUser());case 19:a.next=24;break;case 21:a.prev=21,a.t0=a.catch(0),console.error(a.t0);case 24:return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",!0);case 27:case"end":return a.stop()}}),null,null,[[0,21]],Promise)},onAvatarClicked(){this.isParent&&(this.showChangeAvatarModal=!0)},updateAvatar(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.isDefaultImage){a.next=11;break}return a.prev=1,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.updateChild(n.child.id,{avatar:e.image}));case 4:0===(t=a.sent).code&&(n.notify({message:"Updated Successfully!",level:"success"}),n.child.avatar=t.data.child.avatar),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error(a.t0);case 11:return n.showChangeAvatarModal=!1,a.abrupt("return",!0);case 13:case"end":return a.stop()}}),null,null,[[1,8]],Promise)},changeCover(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.childCoverModalImage){n.next=13;break}return t.loading=!0,n.prev=2,n.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(t.child.id,{profile_cover:t.childCoverModalImage}));case 5:0===(e=n.sent).code&&(t.child.profile_cover=e.data.child.profile_cover),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),console.error(n.t0.message);case 12:t.loading=!1;case 13:return t.showCoverModal=!1,t.this.childCoverModalImage=null,n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,[[2,9]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","notify"])},computed:{age(){const e=m()().diff(this.child.dob,"years"),t=m()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user"])}};t.a=p},"./resources/scripts/applications/home/views/child_profile.vue?vue&type=template&id=5e105c92&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.child.name,background:e.childCoverModalImage?e.childCoverModalImage:e.child.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ChangeAvatarModal",{attrs:{isActive:e.showChangeAvatarModal,defaultImage:e.child.avatar},on:{onAvatarSelected:function(t){return e.updateAvatar(t)},onClose:function(t){e.showChangeAvatarModal=!1}}}),e._v(" "),n("AddConnectionModal",{attrs:{isActive:e.showAddConnectionModal,childName:e.child.name},on:{createNewConnection:function(t){return e.addConnection(t)},dismiss:function(t){e.showAddConnectionModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.child.name,background:e.child.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{class:"image is-1by1 is-light "+(e.isParent?"editable-image":""),on:{click:function(t){return e.onAvatarClicked()}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.child.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"content"},[n("p",[e._v("Hi!")]),e._v(" "),n("p",[e._v("Im "+e._s(e.age))]),e._v(" "),n("br")])]),e._v(" "),e.isParent?n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",on:{click:function(t){return e.togleEditMode()}}},[e._v(e._s(e.inEditMode?"Cancel":"Edit"))]),e._v(" "),n("a",{staticClass:"card-footer-item is-danger",on:{click:function(t){return e.onDeleteClicked()}}},[e._v("Delete")])]):e._e()])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.child.name.split(" ")[0]+"'s Room"))])])])]),e._v(" "),n("nav",{staticClass:"level"},[e._m(0),e._v(" "),n("div",{staticClass:"level-right"},[e.isParent?n("div",{staticClass:"level-item"},[n("button",{staticClass:"button",on:{click:function(t){e.showAddConnectionModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Connection\n ")])]):e._e()])]),e._v(" "),n("div",{staticClass:"parents"},[n("div",{staticClass:"is-flex"},e._l(e.child.parents,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)]),e._v(" "),e._m(1),e._v(" "),n("div",{staticClass:"columns"},e._l(e.child.connections,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Parents")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("nav",{staticClass:"level"},[t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Connections")])])])])}];a._withStripped=!0},"./resources/scripts/applications/home/views/edit_book.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&"),s=n("./resources/scripts/applications/home/views/edit_book.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("a6f8a5ec")?o.reload("a6f8a5ec",i.options):o.createRecord("a6f8a5ec",i.options),e.hot.accept("./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&",function(e){a=n("./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&"),o.rerender("a6f8a5ec",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/edit_book.vue",t.a=i.exports},"./resources/scripts/applications/home/views/edit_book.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js"),r=n.n(s),i=n("./node_modules/vue-croppa/dist/vue-croppa.js"),o=n.n(i),d=n("./resources/scripts/applications/services/index.ts");var l={name:"EditBook",props:["editBook"],components:{Flipbook:r.a,Croppa:o.a.component},watch:{editMode:function(e){e?(this.currentPage<0&&this.pages.length&&(this.currentPage=0),this.flipbookRef=!1):(this.currentPage=-7,this.previewPages=[null,...this.pages.map(e=>e.image)])},currentPage:function(e,t){var n,a;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(console.log(t,e),!(this.pages[t]&&t>=0)){s.next=6;break}return s.next=4,regeneratorRuntime.awrap(this.pages[t].croppa.promisedBlob("image/jpeg",.4));case 4:(n=s.sent)&&(a=URL.createObjectURL(n),this.pages[t].base64=this.pages[t].croppa.generateDataUrl("image/jpeg",.4),this.pages[t].image=a);case 6:return e>=0&&(this.pages[e].loaded=!1,this.$nextTick((function(){console.log("tick"),this.pages[e].loaded=!0}))),this.pageRotation=0,this.pageZoom=500,s.abrupt("return",!0);case 10:case"end":return s.stop()}}),null,this,null,Promise)},pageRotation:function(e){console.log(e);const t=this.pages[this.currentPage],n=t.croppa.getCanvas(),a=t.croppa.getContext();a.rotate(e*Math.PI/180),a.drawImage(n,0,0),a.setTransform(1,0,0,1,0,0),this.$nextTick((function(){}))},pageZoom:function(e,t){const n=this.pages[this.currentPage];console.log(e,t);const a=Math.abs(e-t);if(e0;e--)n.croppa.zoomOut();else for(let e=a;e>0;e--)n.croppa.zoomIn()}},created(){this.editBook?this.book=this.editBook:this.book={name:"",ltr:!0,pages:0,user_id:this.user.id}},methods:{...Object(a.c)(["notify","getUser"]),deleteLastPage(){this.pages.pop(),this.pages.length?this.currentPage=this.pages.length-1:this.currentPage=-7},onRotateClicked(e){this.pages[this.currentPage].croppa.rotate(e?1:-1)},onPageClicked(e){this.currentPage=e,this.editMode=!0},onCroppaImageLoaded(){this.pages[this.currentPage].imageLoaded=!0},promiseAllProgress(e,t){return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:for(t(n=0,e.length),a=0;aregeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return n++,t(n,e.length),s.abrupt("return",a);case 3:case"end":return s.stop()}}),null,null,null,Promise));return s.abrupt("return",Promise.all(e));case 4:case"end":return s.stop()}}),null,null,null,Promise);var n,a},onUploadClicked(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.book.title&&e.book.title.length){t.next=3;break}return e.notify({message:"Book needs a title!",level:"warning"}),t.abrupt("return");case 3:if(e.book.author&&e.book.author.length){t.next=6;break}return e.notify({message:"Book sure has an author!",level:"warning"}),t.abrupt("return");case 6:if(!(e.pages.length<4)){t.next=9;break}return e.notify({message:"A book need to have at least 4 pages",level:"warning"}),t.abrupt("return");case 9:if(e.pages[e.pages.length-1].base64){t.next=12;break}return e.notify({message:"You last page is empty. Delete or update",level:"warning"}),t.abrupt("return");case 12:return e.uploading=!0,t.prev=13,t.next=16,regeneratorRuntime.awrap(d.a.ApiService.uploadBook({title:e.book.title,author:e.book.author,ltr:e.book.ltr,pages:e.pages.map(e=>e.base64||e.croppa.generateDataUrl("image/jpeg",.4))}));case 16:0===t.sent.code?(e.notify({message:`Woop Woop!! ${e.book.title} has been added!`,level:"success"}),e.getUser(),e.$router.replace({path:"/"})):e.notify({message:"Something went wrong!",level:"danger"}),t.next=23;break;case 20:t.prev=20,t.t0=t.catch(13),console.log("Error... "+t.t0.message);case 23:e.uploading=!1;case 24:case"end":return t.stop()}}),null,null,[[13,20]],Promise)},onEditClicked(){var e,t,n,a=this;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(!((e=a.currentPage)>=0)){s.next=16;break}return s.next=4,regeneratorRuntime.awrap(a.pages[e].croppa.promisedBlob("image/jpeg",.4));case 4:if(t=s.sent){s.next=9;break}return a.notify({message:"Cant have an empty page.",level:"warning"}),a.currentPage=e,s.abrupt("return");case 9:n=URL.createObjectURL(t),a.pages[e].base64=a.pages[e].croppa.generateDataUrl("image/jpeg",.4),a.pages[e].image=n,a.currentPage=-7,a.editMode=!1,s.next=17;break;case 16:a.notify({message:"Please add pages before preview",level:"warning"});case 17:case"end":return s.stop()}}),null,null,null,Promise)},onAddPageClicked(){var e,t,n,a,s=this;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(!((e=s.pages.length-1)<0)){r.next=6;break}s.pages.push({text:"Cover",id:0,loaded:!1,croppa:{},image:null,imageLoaded:!1,base64:null}),s.currentPage=0,r.next=21;break;case 6:return console.log("In else"),t=e+1,r.next=10,regeneratorRuntime.awrap(s.pages[e].croppa.promisedBlob("image/jpeg",.4));case 10:if(n=r.sent){r.next=15;break}return s.notify({message:"Your last page is still empty",level:"warning"}),s.currentPage=e,r.abrupt("return");case 15:s.editMode=!0,a=URL.createObjectURL(n),s.pages[e].base64=s.pages[e].croppa.generateDataUrl("image/jpeg",.4),s.pages[e].image=a,s.pages.push({text:"Page "+t,id:t,loaded:!1,croppa:{},image:null,imageLoaded:!1,base64:null}),s.currentPage=t;case 21:case"end":return r.stop()}}),null,null,null,Promise)},bookMounted(){this.$refs.flipbook?(console.log("Found!"),this.flipbookRef=!0):console.log("Still Null!!")},onLeftClicked(){return console.time("Flip Left"),this.$refs.flipbook.flipLeft(),console.timeEnd("Flip Left"),!0},onRightClicked(){return this.$refs.flipbook.flipRight(),!0}},computed:{...Object(a.d)(["user"]),bookPages(){return this.pages.slice(1)},croppaClass(){return 0==this.currentPage||this.currentPage%2!=0||"book-stitch-preview-"+(this.book.ltr?"left":"right")},canFlipLeft(){return this.flipbookRef&&this.$refs.flipbook.canFlipLeft},canFlipRight(){return this.flipbookRef&&this.$refs.flipbook.canFlipRight},croppaWidth(){return Number(this.bookWidth)},croppaHeight(){return Number(this.bookHeight)}},data:()=>({book:{title:"",author:"",rtl:!0},pages:[],bookWidth:350,bookHeight:350,previewPages:[],editMode:!0,currentPage:-7,flipbookRef:!1,pageRotation:0,pageZoom:500,uploading:!1,errors:{},DEFAULT_PAGE_WIDTH:350,DEFAULT_PAGE_HEIGHT:350})};t.a=l},"./resources/scripts/applications/home/views/edit_book.vue?vue&type=template&id=a6f8a5ec&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"is-fullwidth is-fullheight-container p-l-lg p-r-lg"},[n("transition",{attrs:{name:"fade"}},[e.uploading?n("div",{staticClass:"book-uploading-overlay"},[n("div",{staticClass:"section book-uploading-overlay-content has-text-centered"},[n("h1",{staticClass:"title"},[e._v("Uploading...")]),e._v(" "),n("h1",{staticClass:"subtitle"},[e._v("Be pacient, This can take a while")]),e._v(" "),n("progress",{staticClass:"progress is-small is-primary",attrs:{max:"100"}},[e._v("15%")])])]):e._e()]),e._v(" "),n("div",{staticClass:"columns is-flex is-fullheight-container"},[n("div",{staticClass:"column is-3"},[n("div",{staticClass:"card m-b-md"},[n("div",{staticClass:"card-content"},[e._m(0),e._v(" "),n("div",{staticClass:"book-properties"},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Book Title:")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.book.title,expression:"book.title"}],staticClass:"input",attrs:{type:"text",placeholder:"My Book"},domProps:{value:e.book.title},on:{input:function(t){t.target.composing||e.$set(e.book,"title",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Book Author:")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.book.author,expression:"book.author"}],staticClass:"input",attrs:{type:"text",placeholder:"Savta Cochi"},domProps:{value:e.book.author},on:{input:function(t){t.target.composing||e.$set(e.book,"author",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Language Direction:")]),e._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.book.ltr,expression:"book.ltr"}],staticClass:"checkbox",attrs:{type:"checkbox","aria-label":"Book direction"},domProps:{checked:Array.isArray(e.book.ltr)?e._i(e.book.ltr,null)>-1:e.book.ltr},on:{change:function(t){var n=e.book.ltr,a=t.target,s=!!a.checked;if(Array.isArray(n)){var r=e._i(n,null);a.checked?r<0&&e.$set(e.book,"ltr",n.concat([null])):r>-1&&e.$set(e.book,"ltr",n.slice(0,r).concat(n.slice(r+1)))}else e.$set(e.book,"ltr",s)}}}),e._v("\n "+e._s(e.book.ltr?"Left To Right":"Right To Left")+"\n "),n("i",{class:"fa fa-fw fa-arrow-"+(e.book.ltr?"right":"left")})])]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Total page count: #"+e._s(e.pages.length))])])])]),e._v(" "),n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item is-success",on:{click:function(t){return e.onUploadClicked()}}},[n("i",{staticClass:"fa fa-fw fa-upload"}),e._v(" Upload Book\n ")])])]),e._v(" "),n("div",{staticClass:"card"},[n("aside",{staticClass:"menu card-content"},[n("p",{staticClass:"menu-label"},[e._v("Pages")]),e._v(" "),n("ul",{staticClass:"menu-list"},e._l(e.pages,(function(t){return n("li",{key:t.id},[n("a",{class:{"is-active":e.currentPage===t.id},on:{click:function(n){return e.onPageClicked(t.id)}}},[e._v(e._s(t.text))])])})),0)]),e._v(" "),n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",on:{click:function(t){return e.onAddPageClicked()}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Page\n ")])])])]),e._v(" "),n("div",{staticClass:"column is-9"},[n("div",{staticClass:"card is-fullheight-container bg-flower height-max-view"},[n("div",{staticClass:"card-content is-fullheight-container"},[n("div",{staticClass:"tabs-container has-text-centered m-b-lg"},[n("div",{staticClass:"tabs is-centered"},[n("ul",[n("li",{class:e.editMode?"is-active":"",on:{click:function(t){e.editMode=!0}}},[e._m(1)]),e._v(" "),n("li",{class:e.editMode?"":"is-active",on:{click:function(t){return e.onEditClicked()}}},[e._m(2)])])])]),e._v(" "),n("div",{staticClass:"content is-fullheight-container"},[n("transition",{attrs:{name:"fade"}},[e.editMode?n("div",{staticClass:"edit"},[e.currentPage<-1?n("div",{staticClass:"has-text-centered"},[n("h1",{staticClass:"subtitle m-t-xl m-b-xl"},[e._v("This is exciting...")]),e._v(" "),n("div",{staticClass:"has-text-left"},[n("p",[e._v("Here will be some more instructions in the future...")]),e._v(" "),n("p",[e._v("Also maybe some gifs fo help...")]),e._v(" "),n("ul",[n("li",[e._v("Add a title and author for the book")]),e._v(" "),n("li",[e._v("Add first image (Cover of the book)")]),e._v(" "),n("li",[e._v('Try to fit the image as close as possible to edges of the "page"')]),e._v(" "),n("li",[e._v("You can modify the width/height while editing the cover")]),e._v(" "),n("li",[e._v("You can always zoom in/out and drag the image to make it fit better")]),e._v(" "),n("li",[e._v("Please click on preview to actualy see how the book will look like before uploading")]),e._v(" "),n("li",[e._v('Once all done. Click on "Upload Book"')])])]),e._v(" "),n("a",{staticClass:"button is-large is-rounded",on:{click:function(t){return e.onAddPageClicked()}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Cover\n ")])]):n("div",{staticClass:"page-editor"},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column has-text-centered"},[e.pages[e.currentPage].loaded?n("div",[n("h1",{staticClass:"subtitle is-3"},[e._v(e._s(e.pages[e.currentPage].text))]),e._v(" "),n("div",{staticClass:"is-relative is-flex is-justify-centered"},[0!=e.currentPage&&e.currentPage%2==0&&e.book.ltr?n("div",{staticClass:"stitch-preview-left",style:"width:"+e.croppaWidth+"px;height:"+e.croppaHeight+"px;"},[n("img",{attrs:{src:e.pages[e.currentPage-1].image,alt:""}})]):e._e(),e._v(" "),n("croppa",{attrs:{"prevent-white-space":!1,"show-remove-button":!1,accept:"image/*","initial-image":e.pages[e.currentPage].image,width:e.croppaWidth,height:e.croppaHeight,"disable-drag-to-move":!1,"disable-scroll-to-zoom":!0,"zoom-speed":1,"canvas-color":"white"},on:{"loading-end":function(t){return e.onCroppaImageLoaded()}},model:{value:e.pages[e.currentPage].croppa,callback:function(t){e.$set(e.pages[e.currentPage],"croppa",t)},expression:"pages[currentPage].croppa"}}),e._v(" "),0==e.currentPage||e.currentPage%2!=0||e.book.ltr?e._e():n("div",{staticClass:"stitch-preview-right",style:"width:"+e.croppaWidth+"px;height:"+e.croppaHeight+"px;"},[n("img",{attrs:{src:e.pages[e.currentPage-1].image,alt:""}})])],1)]):e._e()]),e._v(" "),n("div",{staticClass:"edit-page-controllers column is-3 is-flex-column is-justify-centered has-text-centered"},[0===e.currentPage&&1===e.pages.length?n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Page width")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.bookWidth,expression:"bookWidth"}],attrs:{type:"range",min:e.DEFAULT_PAGE_WIDTH-100,max:e.DEFAULT_PAGE_WIDTH,disabled:!e.pages[e.currentPage].imageLoaded},domProps:{value:e.bookWidth},on:{__r:function(t){e.bookWidth=t.target.value}}}),e._v(" "),n("div",{staticClass:"is-flex is-justify-between"},[n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth<=e.DEFAULT_PAGE_WIDTH-100},on:{click:function(t){e.bookWidth-=2}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth>=e.DEFAULT_PAGE_WIDTH},on:{click:function(t){e.bookWidth+=2}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])]):n("div",{staticClass:"prev-page-preview"},[e.pages[e.currentPage-1]&&e.pages[e.currentPage-1].base64?n("div",{staticClass:"is-flex is-justify-centered"},[n("div",{staticClass:"book-thumb page-preview"},[n("div",{staticClass:"book-text"},[n("div",[e._v("Previouse Page")])]),e._v(" "),n("div",{staticClass:"book-cover"},[n("img",{attrs:{src:e.pages[e.currentPage-1]?e.pages[e.currentPage-1].base64:""}})]),e._v(" "),n("div",{staticClass:"book-text"},[n("div",[e._v(e._s(e.pages[e.currentPage-1].text))])])])]):e._e()]),e._v(" "),n("hr",{staticClass:"is-fullwidth-container"}),e._v(" "),0===e.currentPage&&1===e.pages.length?n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Page height")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.bookHeight,expression:"bookHeight"}],attrs:{type:"range",min:e.DEFAULT_PAGE_HEIGHT-50,max:e.DEFAULT_PAGE_HEIGHT,disabled:!e.pages[e.currentPage].imageLoaded},domProps:{value:e.bookHeight},on:{__r:function(t){e.bookHeight=t.target.value}}}),e._v(" "),n("div",{staticClass:"is-flex is-justify-between"},[n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth<=e.DEFAULT_PAGE_HEIGHT-50},on:{click:function(t){e.bookHeight-=2}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded||e.bookWidth>=e.DEFAULT_PAGE_HEIGHT},on:{click:function(t){e.bookHeight+=2}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])]):e._e(),e._v(" "),n("div",{staticClass:"field"}),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Zoom Image")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.pageZoom,expression:"pageZoom"}],attrs:{type:"range",min:"0",max:"1000",disabled:!e.pages[e.currentPage].imageLoaded},domProps:{value:e.pageZoom},on:{__r:function(t){e.pageZoom=t.target.value}}}),e._v(" "),n("div",{staticClass:"is-flex is-justify-between"},[n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){e.pageZoom-=2}}},[n("i",{staticClass:"fa fa-fw fa-minus"})]),e._v(" "),n("button",{staticClass:"button is-rounded is-outlined is-small",attrs:{type:"button",disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){e.pageZoom+=2}}},[n("i",{staticClass:"fa fa-fw fa-plus"})])])]),e._v(" "),n("div",{staticClass:"rotations is-flex is-justify-between m-b-lg"},[n("button",{staticClass:"button",attrs:{disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){return e.onRotateClicked(!1)}}},[n("i",{staticClass:"fa fa-fw fa-rotate-left"})]),e._v(" "),n("button",{staticClass:"button",attrs:{disabled:!e.pages[e.currentPage].imageLoaded},on:{click:function(t){return e.onRotateClicked(!0)}}},[n("i",{staticClass:"fa fa-fw fa-rotate-right"})])]),e._v(" "),n("div",{staticClass:"change-image"},[n("button",{staticClass:"button is-fullwidth-container",on:{click:function(t){return e.pages[e.currentPage].croppa.chooseFile()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Image\n ")])]),e._v(" "),e.currentPage===e.pages.length-1?n("div",{staticClass:"remove-image"},[n("button",{staticClass:"button is-danger is-fullwidth-container",on:{click:function(t){return e.deleteLastPage()}}},[n("i",{staticClass:"fa fa-fw fa-trash"}),e._v(" Delete Page\n ")])]):e._e()])])])]):e._e()]),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.editMode?e._e():n("div",{class:"is-fullheight-container "+(e.flipbookRef?"":"is-transparent")},[n("div",{staticClass:"book-view m-sm m-r-md"},[n("div",{staticClass:"go-left m-r-sm",staticStyle:{display:"inline-block","align-items":"center",position:"absolute",left:"0px",top:"0px"}},[n("button",{staticClass:"button book-flip-buttons",attrs:{disabled:!e.canFlipLeft},on:{click:function(t){return e.onLeftClicked()}}},[n("i",{staticClass:"fa fa-fw fa-arrow-left"})])]),e._v(" "),n("flipbook",{ref:"flipbook",staticClass:"flipbook",attrs:{pages:e.previewPages,forwardDirection:e.book.ltr?"right":"left",zooms:null,enabled:!0},on:{"on-mounted":function(t){return e.bookMounted()}},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"page-progress has-text-centered m-b-none"},[n("p",[e._v("Page "+e._s(t.page)+" of "+e._s(t.numPages))])])]}}],null,!1,2047056082)}),e._v(" "),n("div",{staticClass:"go-right m-l-sm",staticStyle:{display:"inline-block","align-items":"center",position:"absolute",right:"0px",top:"0px"}},[n("button",{staticClass:"button book-flip-buttons",attrs:{disabled:!e.canFlipRight},on:{click:function(t){return e.onRightClicked()}}},[n("i",{staticClass:"fa fa-fw fa-arrow-right"})])])],1)])])],1)])])])])],1)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("h1",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-book"}),this._v(" Properties\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",[t("span",{staticClass:"icon is-small"},[t("i",{staticClass:"fa fa-pencil",attrs:{"aria-hidden":"true"}})]),this._v(" "),t("span",[this._v("Edit")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",[t("span",{staticClass:"icon is-small"},[t("i",{staticClass:"fa fa-eye",attrs:{"aria-hidden":"true"}})]),this._v(" "),t("span",[this._v("Preview")])])}];a._withStripped=!0},"./resources/scripts/applications/home/views/home.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),s=n("./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1b921a03")?o.reload("1b921a03",i.options):o.createRecord("1b921a03",i.options),e.hot.accept("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&",function(e){a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),o.rerender("1b921a03",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/home.vue",t.a=i.exports},"./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/components/Child_Card.vue"),r=n("./resources/scripts/applications/services/index.ts"),i=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),o=n("./resources/scripts/applications/home/components/ProfileHeader.vue"),d=n("./resources/scripts/applications/home/components/AddChildModal.vue"),l=n("./resources/scripts/applications/home/components/AddConnectionModal.vue"),u=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue"),c=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),m=n("./resources/scripts/applications/home/components/AvatarBadge.vue"),h=n("./node_modules/moment/moment.js"),_=n.n(h),p=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),f=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue"),v={name:"Home",components:{Loading:i.a,ProfileHeader:o.a,Modal:p.a,FileSelect:c.a,AvatarBadge:m.a,AddConnectionModal:l.a,ConfigureNewCallModal:u.a,ChildCard:s.a,AddChildModal:d.a,ChangeAvatarModal:f.a},beforeCreate(){},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!1,t.abrupt("return",!0);case 2:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showCreateCallModal:!1,showAddChildModal:!1,showAddConnectionModal:!1,childCoverModalImage:null,addMenuOpen:!1,showChangeAvatarModal:!1}),methods:{updateAvatar(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isDefaultImage){n.next=14;break}return n.prev=1,n.next=4,regeneratorRuntime.awrap(r.a.ApiService.updateUser({avatar:e.image}));case 4:if(0!==n.sent.code){n.next=9;break}return n.next=8,regeneratorRuntime.awrap(t.getUser());case 8:t.notify({message:"Updated Successfully!",level:"success"});case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),console.error(n.t0);case 14:return t.showChangeAvatarModal=!1,n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,[[1,11]],Promise)},onAddClicked(e){switch(e){case"child":this.showAddChildModal=!0;break;case"book":this.$router.push({path:"/create/"+e});break;default:this.notify({message:`Add ${e} button clicked. Still not working`})}this.addMenuOpen=!1},onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goChildProfile(e){this.$router.push({path:"/child/"+e.id})},onChildCreated(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,regeneratorRuntime.awrap(t.getUser());case 3:t.loading=!1,t.showAddChildModal=!1,t.notify({message:`Woohoo! ${e.name} created!`,level:"success"}),t.goChildProfile(e);case 7:case"end":return n.stop()}}),null,null,null,Promise)},onCreateChildFailed(e){this.notify({message:"ERROR: "+e,level:"danger"}),this.showAddChildModal=!1},makeCall(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,regeneratorRuntime.awrap(r.a.ApiService.createCall(e));case 3:t=a.sent,n.notify({message:"Connecting..."}),n.$router.push({path:"/call/"+t.data.id}),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),console.error(a.t0);case 11:return a.abrupt("return",!0);case 12:case"end":return a.stop()}}),null,null,[[0,8]],Promise)},changeCover(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.childCoverModalImage){t.next=12;break}return e.loading=!0,t.prev=2,t.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(e.child.id,{profile_cover:e.childCoverModalImage}));case 5:e.child.profile_cover=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),console.error(t.t0);case 11:e.loading=!1;case 12:e.showCoverModal=!1,e.this.childCoverModalImage=null;case 14:case"end":return t.stop()}}),null,null,[[2,8]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","notify"])},computed:{age(){const e=_()().diff(this.child.dob,"years"),t=_()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user"])}};t.a=v},"./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("AddChildModal",{attrs:{isActive:e.showAddChildModal},on:{onFail:function(t){return e.onCreateChildFailed(t)},onCreated:function(t){return e.onChildCreated(t)},onClose:function(t){e.showAddChildModal=!1}}}),e._v(" "),n("ChangeAvatarModal",{attrs:{isActive:e.showChangeAvatarModal,defaultImage:e.user.avatar},on:{onAvatarSelected:function(t){return e.updateAvatar(t)},onClose:function(t){e.showChangeAvatarModal=!1}}}),e._v(" "),n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.user.name,background:e.childCoverModalImage?e.childCoverModalImage:e.user.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ConfigureNewCallModal",{attrs:{isActive:e.showCreateCallModal},on:{newCall:function(t){return e.makeCall(t)},dismiss:function(t){e.showCreateCallModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.user.name,background:e.user.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{staticClass:"image is-1by1 editable-image is-light",on:{click:function(t){e.showChangeAvatarModal=!0}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.user.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[e.user.connections.children.concat(e.user.connections.connections).length?n("div",[n("p",{staticClass:"card-header-title"},[e._v("Connections")]),e._v(" "),e._l(e.user.connections.children.concat(e.user.connections.connections),(function(e){return n("ChildCard",{key:e.id,attrs:{child:e}})})),e._v(" "),n("br")],2):n("div",[n("p",{staticClass:"card-header-title"},[e._v("No Connections yet...")])])])])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.user.name.split(" ")[0]+"'s Room"))])])]),e._v(" "),n("div",{staticClass:"level-right"},[n("div",{staticClass:"level-item"},[n("div",{class:"dropdown "+(e.addMenuOpen?"is-active":"")},[n("div",{staticClass:"dropdown-trigger"},[n("button",{staticClass:"button",attrs:{"aria-haspopup":"true","aria-controls":"dropdown-menu"},on:{click:function(t){e.addMenuOpen=!e.addMenuOpen}}},[n("span",[e._v("Add")]),e._v(" "),n("span",{staticClass:"icon is-small"},[n("i",{class:"fa fa-angle-"+(e.addMenuOpen?"up":"down"),attrs:{"aria-hidden":"true"}})])])]),e._v(" "),n("div",{staticClass:"dropdown-menu",attrs:{id:"dropdown-menu",role:"menu"}},[n("div",{staticClass:"dropdown-content"},[n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("book")}}},[n("i",{staticClass:"fa fa-fw fa-book"}),e._v(" Add a book\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("slideshow")}}},[n("i",{staticClass:"fa fa-fw fa-photo"}),e._v(" New slideshow\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("puzzle")}}},[n("i",{staticClass:"fa fa-fw fa-puzzle-piece"}),e._v(" Create a puzzle\n ")]),e._v(" "),n("hr",{staticClass:"dropdown-divider"}),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("child")}}},[n("i",{staticClass:"fa fa-fw fa-child"}),e._v(" Add a child\n ")])])])]),e._v(" "),n("button",{staticClass:"button is-success m-l-md",attrs:{disabled:!e.user.connections.children.length,title:e.user.connections.children.length?"Start a new call":"Only a parent of a child can start a call"},on:{click:function(t){e.showCreateCallModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-phone"}),e._v(" Call\n ")])])])]),e._v(" "),n("div",{staticClass:"Books"},[e._m(0),e._v(" "),n("div",{staticClass:"is-flex m-b-md is-justify-centered has-wrap"},e._l(e.user.books,(function(t){return n("div",{key:t.id,staticClass:"book-thumb m-l-md"},[n("div",{staticClass:"book-cover"},[n("figure",{staticClass:"image is-2by3 m-a"},[n("img",{attrs:{src:"/u/books/"+t.id+"/thumbnail"}})])]),e._v(" "),n("div",{staticClass:"book-text"},[n("div",[e._v(e._s(t.title))])])])})),0)])])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-fw fa-book"}),this._v(" My Books\n ")])}];a._withStripped=!0},"./resources/scripts/applications/home/views/settings.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),s=n("./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("f4fa8d72")?o.reload("f4fa8d72",i.options):o.createRecord("f4fa8d72",i.options),e.hot.accept("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&",function(e){a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),o.rerender("f4fa8d72",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/settings.vue",t.a=i.exports},"./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),r=n("./resources/scripts/applications/home/components/Child_Card.vue"),i=n("./resources/scripts/applications/services/index.ts"),o=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),d=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),l={components:{Modal:s.a,FileSelect:o.a,ChildCard:r.a,Loading:d.a},name:"Settings",beforeCreate:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.user){t.next=9;break}return t.prev=1,t.next=4,regeneratorRuntime.awrap(e.getUser());case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.error("Failed to fetch user");case 9:return e.loading=!1,t.abrupt("return",!0);case 11:case"end":return t.stop()}}),null,null,[[1,6]],Promise)},methods:{addChild(){var e,t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return n.childValidation.enableInput=!1,e={name:n.childValidation.name,dob:n.childValidation.dob,avatar:n.childValidation.avatar},console.log(e),a.next=5,regeneratorRuntime.awrap(i.a.ApiService.createChild(e.name,e.dob,e.avatar));case 5:return t=a.sent,e.avatar&&console.log(e.avatar.length),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null,n.childValidation.enableInput=!0,n.enableChildModel=!1,a.next=14,regeneratorRuntime.awrap(n.getUser());case 14:return n.notify({message:`Yay!, ${t.name} was cretated`,level:"success"}),a.abrupt("return",!0);case 16:case"end":return a.stop()}}),null,null,null,Promise)},...Object(a.c)(["getUser","notify"])},computed:{...Object(a.d)(["user"])},data:()=>({loading:!0,childValidation:{enableInput:!0,name:null,dob:null,avatar:null},enableChildModel:!1})};t.a=l},"./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"container is-fullwidth"},[this.loading?t("div",{staticClass:"loading"},[t("Loading")],1):t("div",{},[t("h1",{staticClass:"is-1"},[this._v("Under a complete remake.")]),this._v(" "),t("h2",{staticClass:"subtitle"},[this._v("Add a child from your homepage")])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/ws/call.manager.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n("./node_modules/events/events.js");let s=null;class r{constructor(e){this.ws=e,this.emitter=new a.EventEmitter,this.peer={avatar:""},this.isHost=!1,this.books=[],this.currentActivity=null,this.inCall=!1,this.peerId=null,this.pc=null,this.remoteStream=new MediaStream}connectToCall(e,t,n){var a=this;return function(){var s,r;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(!a.inCall){i.next=2;break}throw new Error("Already connected to call");case 2:return a.callId=n,a.userId=e,console.log("connecting to call"),i.next=7,regeneratorRuntime.awrap(a.getUserMedia(t));case 7:return a.signalingChannel=a.ws.subscribe("call:"+a.callId),s=a.signalingChannel,r=a,i.abrupt("return",new Promise((e,t)=>{s.on("close",r.close.bind(r)),s.on("call:start",r.onCallStart.bind(r)),s.on("call:standby",r.onCallStandby.bind(r)),s.on("wrtc:sdp:offer",r.onRemoteOffer.bind(r)),s.on("wrtc:sdp:answer",r.onRemoteAnswer.bind(r)),s.on("wrtc:ice",r.onRemoteIce.bind(r)),s.on("book:action:flip-page",r.onActionBookFlip.bind(r)),s.on("call:host:changed",r.onRemoteHostChanged.bind(r)),s.on("call:view:lobby",r.onRemoteViewLobby.bind(r)),s.on("call:view:book",r.onRemoteViewBook.bind(r)),s.on("error",t=>{console.error(t),e(!1)}),s.on("ready",()=>{console.log("in Ready"),r.inCall=!0,e(!0)})}));case 11:case"end":return i.stop()}}),null,null,null,Promise)}()}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}emit(e,t){this.emitter.emit(e,t)}send(e,t){console.log("Sending event: "+e),this.signalingChannel.emit(e,{userId:this.userId,peerId:this.peerId,...t})}onCallStart(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return console.log("onCallStart"),console.log(e),n.peerId=e.peerId,n.books=e.books,n.isHost=n.userId===e.hostId,n.pc=new RTCPeerConnection({iceServers:e.iceServers}),n.child=e.child,e.users.forEach(e=>{e.id===n.peerId&&(n.peer=e)}),n.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),n.localStream.getTracks().forEach(e=>n.pc.addTrack(e,n.localStream)),n.setupPeerConnectionListeners(),a.next=15,regeneratorRuntime.awrap(n.pc.createOffer());case 15:return t=a.sent,a.next=18,regeneratorRuntime.awrap(n.pc.setLocalDescription(t));case 18:return console.log("Local description Set",t.sdp),n.send("wrtc:sdp:offer",{sdp:t}),a.abrupt("return",!0);case 21:case"end":return a.stop()}}),null,null,null,Promise)}onCallStandby(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("onCallStandby"),console.log(e),t.peerId=e.peerId,t.books=e.books,t.isHost=t.userId===e.hostId,t.pc=new RTCPeerConnection({iceServers:e.iceServers}),t.child=e.child,e.users.forEach(e=>{e.id===t.peerId&&(t.peer=e)}),t.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),t.localStream.getTracks().forEach(e=>t.pc.addTrack(e,t.localStream)),t.setupPeerConnectionListeners(),n.abrupt("return",!0);case 14:case"end":return n.stop()}}),null,null,null,Promise)}selectBook(e,t){this.currentActivity=this.books[e],console.log("-------\x3e Selected Book ",e,"bookId:",this.currentActivity.id),t||this.send("call:view:book",{bookId:this.currentActivity.id})}backToLobby(){console.log("-------\x3e backToLobby"),this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.send("call:view:lobby",{})}setupPeerConnectionListeners(){this.pc.addEventListener("icecandidate",this.onLocalIce.bind(this)),this.pc.addEventListener("connectionstatechange",e=>{console.log("PC Connection state: "+this.pc.connectionState)}),this.pc.addEventListener("iceconnectionstatechange",e=>{console.log("iceconnectionstatechange"),console.log(this.pc.iceConnectionState)}),this.pc.addEventListener("track",e=>regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("On remote track!"),this.remoteStream.addTrack(e.track);case 2:case"end":return t.stop()}}),null,this,null,Promise)),this.pc.addEventListener("icegatheringstatechange",e=>{console.log("icegatheringstatechange",this.pc.iceGatheringState)})}onLocalIce(e){e.candidate&&(console.log("Sending candidate"),this.send("wrtc:ice",{ice:e.candidate}))}onRemoteOffer(e){var t,n,a=this;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=new RTCSessionDescription(e.sdp),s.next=3,regeneratorRuntime.awrap(a.pc.setRemoteDescription(t));case 3:return console.log("Remote offer Set",t.sdp),s.next=6,regeneratorRuntime.awrap(a.pc.createAnswer());case 6:return n=s.sent,a.send("wrtc:sdp:answer",{sdp:n}),s.next=10,regeneratorRuntime.awrap(a.pc.setLocalDescription(n));case 10:return console.log("Local answer Set",n.sdp),s.abrupt("return",!0);case 12:case"end":return s.stop()}}),null,null,null,Promise)}onRemoteAnswer(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=new RTCSessionDescription(e.sdp),a.next=3,regeneratorRuntime.awrap(n.pc.setRemoteDescription(t));case 3:return console.log("Remote answer Set",t.sdp),a.abrupt("return",!0);case 5:case"end":return a.stop()}}),null,null,null,Promise)}onRemoteIce(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.ice,a.next=3,regeneratorRuntime.awrap(n.pc.addIceCandidate(t));case 3:return a.abrupt("return",!0);case 4:case"end":return a.stop()}}),null,null,null,Promise)}getUserMedia(e={video:!0,audio:!0}){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.localStream){n.next=2;break}return n.abrupt("return",t.localStream);case 2:return n.next=4,regeneratorRuntime.awrap(navigator.mediaDevices.getUserMedia(e));case 4:return t.localStream=n.sent,n.abrupt("return",t.localStream);case 6:case"end":return n.stop()}}),null,null,null,Promise)}getRemoteStream(){return this.remoteStream}onActionBookFlip(e){this.emit(i.ACTION_BOOK_FLIP,e)}changeHost(){this.send("call:host:changed",{})}onRemoteHostChanged(e){this.isHost=this.userId===e.hostId,this.emit(i.CALL_HOST_CHANGED,e)}onRemoteViewLobby(e){this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.emit(i.CALL_VIEW_LOBBY,null)}onRemoteViewBook(e){this.emit(i.CALL_VIEW_BOOK,e)}close(){this.inCall&&(console.log("Closing..."),this.emit(i.CLOSE,this.callId),this.signalingChannel&&this.signalingChannel.close(),this.signalingChannel=null,this.pc&&this.pc.close(),this.localStream&&this.localStream.getTracks().forEach(e=>e.stop()),this.localStream=null,this.remoteStream=null,this.emitter.removeAllListeners(),this.inCall=!1,s=null)}}var i;!function(e){e.CLOSE="CLOSE",e.REMOTE_STREAM="REMOTE_STREAM",e.ACTION_BOOK_FLIP="ACTION_BOOK_FLIP",e.CALL_HOST_CHANGED="CALL_HOST_CHANGED",e.CALL_VIEW_LOBBY="CALL_VIEW_LOBBY",e.CALL_VIEW_BOOK="CALL_VIEW_BOOK"}(i||(i={}))},"./resources/scripts/applications/home/ws/websocket.service.ts":function(e,t,n){"use strict";var a=n("./node_modules/@adonisjs/websocket-client/dist/Ws.browser.js"),s=n.n(a);let r=null;class i{constructor(e){this.ws=e,this.subscription=null}connect(){var e=this;return function(){var t,n;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return e.subscription=e.ws.subscribe("user_channel"),t=e.subscription,n=e,a.abrupt("return",new Promise((e,a)=>{t.on("error",()=>{e(!1)}),t.on("ready",()=>{e(!0)}),t.on("close",n.close)}));case 4:case"end":return a.stop()}}),null,null,null,Promise)}()}on(e,t){this.subscription&&this.subscription.on(e,t)}static getInstance(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=2;break}return t.abrupt("return",r);case 2:return r=new i(e),t.abrupt("return",r);case 4:case"end":return t.stop()}}),null,null,null,Promise)}close(){this.subscription.close(),r=null}}var o=n("./node_modules/events/events.js"),d=n("./resources/scripts/applications/home/ws/call.manager.ts");let l=null;var u;!function(e){e[e.NEW_CONNECTION=0]="NEW_CONNECTION",e[e.CONNECTION_ONLINE=1]="CONNECTION_ONLINE",e[e.CONNECTION_OFFLINE=2]="CONNECTION_OFFLINE",e[e.INCOMING_CALL=3]="INCOMING_CALL"}(u||(u={}));let c=(()=>{class e{constructor(e,t){this.ws=e,this.userChannelService=t,this.emitter=new o.EventEmitter,this.userChannelService.on("new:connection",this.onUserNewConnection.bind(this)),this.userChannelService.on("connection:online",this.onUserConnectionOnline.bind(this)),this.userChannelService.on("connection:offline",this.onUserConnectionOffline.bind(this)),this.userChannelService.on("call:incoming",this.onIncomingCall.bind(this)),this.callManager=new d.b(this)}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}subscribe(e){const t=this.ws.subscribe(e);return console.log(t),t}onIncomingCall(e){this.emitter.emit(u.INCOMING_CALL,e)}onUserNewConnection(e){this.emitter.emit(u.NEW_CONNECTION,e)}onUserConnectionOnline(e){this.emitter.emit(u.CONNECTION_ONLINE,e)}onUserConnectionOffline(e){this.emitter.emit(u.CONNECTION_OFFLINE,e)}static getInstance(){return new Promise((t,n)=>{if(l)return t(l);const a=s()("",{path:"connect"});a.connect(),a.on("open",()=>{var n,s;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(i.getInstance(a));case 2:return n=r.sent,r.next=5,regeneratorRuntime.awrap(n.connect());case 5:s=r.sent,console.log("Connected to user socket:",s),l=new e(a,n),t(l);case 9:case"end":return r.stop()}}),null,null,null,Promise)}),a.on("error",e=>{console.log(e),n(new Error("Failed to connect"))}),a.on("close",e=>{console.log("Socket Closed")})})}}return e.Events=u,e})();t.a=c},"./resources/scripts/applications/services/index.ts":function(e,t,n){"use strict";const a={ApiService:class{static getUser(e){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/user/"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getUser ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getAllUsers(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/admin/users"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getAllUsers ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static uploadBook(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/book/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:throw n.prev=7,n.t0=n.catch(1),console.error("uploadBook ERROR: "+n.t0.message),n.t0;case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateUser(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"PUT",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/user/",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("updateUser ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static getChild(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e));case 3:return t.abrupt("return",t.sent.json());case 6:return t.prev=6,t.t0=t.catch(0),console.error("getChild ERROR: "+t.t0.message),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),null,null,[[0,6]],Promise)}static createConnection(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/connections/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("createConnection ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateChild(e,t){return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return n={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}},s.prev=1,s.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e,n));case 4:return a=s.sent,console.log(a),s.abrupt("return",a.json());case 9:return s.prev=9,s.t0=s.catch(1),console.error("updateChildCover ERROR: "+s.t0.message),s.abrupt("return",!1);case 13:case"end":return s.stop()}}),null,null,[[1,9]],Promise);var n,a}static createCall(e){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},a.prev=1,a.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/call/create",t));case 4:return n=a.sent,a.abrupt("return",n.json());case 8:return a.prev=8,a.t0=a.catch(1),console.error("createCall ERROR: "+a.t0.message),a.abrupt("return",!1);case 12:case"end":return a.stop()}}),null,null,[[1,8]],Promise);var t,n}static createChild(e,t,n){return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return a={method:"POST",body:JSON.stringify({name:e,dob:t,avatar:n}),headers:{"Content-Type":"application/json"}},r.prev=1,r.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/",a));case 4:return s=r.sent,r.abrupt("return",s.json());case 8:return r.prev=8,r.t0=r.catch(1),console.error("createChild ERROR: "+r.t0.message),r.abrupt("return",!1);case 12:case"end":return r.stop()}}),null,null,[[1,8]],Promise);var a,s}}};t.a=a},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),s=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("46c93e93")?o.reload("46c93e93",i.options):o.createRecord("46c93e93",i.options),e.hot.accept("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&",function(e){a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),o.rerender("46c93e93",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/FileSelect/FileSelect.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";const a=e=>new Promise((t,n)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=e=>n(e)});var s={props:["accept","lable"],data:()=>({filename:null}),created(){this.filename=null},methods:{handleFileChange(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=t,n.next=3,regeneratorRuntime.awrap(a(e.target.files[0]));case 3:n.t1=n.sent,n.t0.$emit.call(n.t0,"input",n.t1),t.filename=e.target.files[0];case 6:case"end":return n.stop()}}),null,null,null,Promise)}}};t.a=s},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v(e._s(e.lable))]),e._v(" "),n("div",{staticClass:"control"},[n("label",{staticClass:"button"},[e._v("\n Select File\n "),e._v(" "),n("input",{staticClass:"is-hidden",attrs:{type:"file",accept:e.accept},on:{change:e.handleFileChange}})]),e._v(" "),e.filename?n("span",[e._v(e._s(e.filename.name))]):e._e()])])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Loading/Loading.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),s=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("c18e6166")?o.reload("c18e6166",i.options):o.createRecord("c18e6166",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&",function(e){a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),o.rerender("c18e6166",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Loading/Loading.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={}},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement;this._self._c;return this._m(0)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wrapper is-fullheight"},[t("div",{staticClass:"css-loader"},[t("div",{staticClass:"dot"}),this._v(" "),t("div",{staticClass:"dot delay-1"}),this._v(" "),t("div",{staticClass:"dot delay-2"})])])}];a._withStripped=!0},"./resources/scripts/applications/shared/components/Modal/Modal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1625ddaf")?o.reload("1625ddaf",i.options):o.createRecord("1625ddaf",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&",function(e){a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),o.rerender("1625ddaf",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Modal/Modal.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={props:["title","isActive","acceptText","rejectText"],data(){return{showTitle:!!this.title,showButtons:this.acceptText||this.rejectText}},methods:{close(){this.$emit("close")}}};t.a=a},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.isActive?n("div",{class:["modal",{"is-active":!!e.isActive}]},[n("div",{staticClass:"modal-background",on:{click:function(t){return e.close()}}}),e._v(" "),n("div",{staticClass:"modal-card"},[e.showTitle?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))]),e._v(" "),n("button",{staticClass:"delete",attrs:{"aria-label":"close"},on:{click:function(t){return e.close()}}})]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body"},[e._t("default")],2),e._v(" "),e.showButtons?n("footer",{staticClass:"modal-card-foot"},[e.acceptText?n("button",{staticClass:"button is-success",on:{click:function(t){return e.$emit("accept")}}},[e._v(e._s(e.acceptText))]):e._e(),e._v(" "),e.rejectText?n("button",{staticClass:"button",on:{click:function(t){return e.close()}}},[e._v(e._s(e.rejectText))]):e._e()]):e._e()])]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Notification.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),s=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7fc5b0d2")?o.reload("7fc5b0d2",i.options):o.createRecord("7fc5b0d2",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&",function(e){a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),o.rerender("7fc5b0d2",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Notification.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"Notification",props:["notification"],mounted(){this.ready=!0},data:()=>({ready:!1}),methods:{close(){this.$emit("onClose")}}};t.a=a},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.ready?n("div",{class:["notification","is-light","is-"+(e.notification.level||"info")]},[n("button",{staticClass:"delete",on:{click:function(t){return e.close()}}}),e._v("\n "+e._s(e.notification.message)+"\n ")]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/TopNavbar.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),s=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("ff71a66e")?o.reload("ff71a66e",i.options):o.createRecord("ff71a66e",i.options),e.hot.accept("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&",function(e){a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),o.rerender("ff71a66e",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/TopNavbar.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r={name:"TobNavbar",props:["ws"],components:{Modal:n("./resources/scripts/applications/shared/components/Modal/Modal.vue").a},watch:{ws(e,t){null!=e&&(this.callManager=this.ws.callManager)}},created:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),null,null,null,Promise),updated(){this.inCall||(this.subscribedToLobbyEvents=!1)},data:()=>({showConfirmEndCall:!1,showMenu:!1,subscribedToLobbyEvents:!1,callManager:null}),computed:{host(){return this.inCall?(this.subscribedToLobbyEvents||(console.log("TopNav subscribe to back_to_lobby"),this.subscribedToLobbyEvents=!0,this.callManager.on(s.a.CALL_VIEW_LOBBY,this.remoteBackToLobby.bind(this))),this.callManager.isHost?this.user:this.callManager.peer):null},...Object(a.d)(["user","inCall"])},methods:{onConfirmedEndCall(){this.showConfirmEndCall=!1,this.$router.replace({path:"/"})},changeHost(){this.callManager.changeHost()},backToLobby(e){this.callManager.backToLobby(),this.$router.replace({path:"/call/"+this.callManager.callId})},remoteBackToLobby(e){this.$router.replace({path:"/call/"+this.callManager.callId})},...Object(a.c)([])}};t.a=r},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Modal",{attrs:{title:"Are You Sure?",isActive:e.showConfirmEndCall,acceptText:"End",rejectText:"Cancel"},on:{accept:function(t){return e.onConfirmedEndCall()},close:function(t){e.showConfirmEndCall=!1}}},[n("p",[e._v("End Call?")])]),e._v(" "),n("nav",{staticClass:"navbar is-light",attrs:{role:"navigation","aria-label":"main navigation"}},[n("div",{staticClass:"navbar-brand"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{to:"/",exact:""}},[n("strong",[e._v("Seepur")])]),e._v(" "),n("a",{staticClass:"navbar-burger burger",attrs:{id:"menu-button",role:"button","aria-label":"menu","aria-expanded":"false","data-target":"navbarBasicExample"},on:{click:function(t){e.showMenu=!e.showMenu}}},[n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}})])],1),e._v(" "),n("div",{class:["navbar-menu",{"is-active":e.showMenu}],attrs:{id:"nav-menu"}},[n("div",{staticClass:"navbar-start"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/",exact:""}},[e._v("Home")]),e._v(" "),e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/about",exact:""}},[e._v("About")]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("div",{staticClass:"field is-grouped"},[n("p",{staticClass:"control"},[e.inCall?n("button",{staticClass:"button is-danger",on:{click:function(t){e.showConfirmEndCall=!0}}},[n("i",{staticClass:"fa fa-fw fa-times-circle-o"}),e._v(" End Call\n ")]):e._e()]),e._v(" "),n("p",{staticClass:"control"},[e.inCall&&"book"===e.$route.name?n("button",{staticClass:"button is-info",attrs:{append:"",replace:"",disabled:!e.callManager.isHost},on:{click:function(t){return e.backToLobby(!0)}}},[n("i",{staticClass:"fa fa-fw fa-arrow-circle-o-left"}),e._v(" Back\n ")]):e._e()])])]):e._e()],1),e._v(" "),n("div",{staticClass:"navbar-end"},[e.inCall?e._e():n("div",{staticClass:"navbar-item has-dropdown is-hoverable is-dark"},[n("a",{staticClass:"navbar-link"},[e._v(e._s(e.user.name))]),e._v(" "),n("div",{staticClass:"navbar-dropdown"},[n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/settings",exact:""}},[e._v("Settings")]),e._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"/logout"}},[e._v("Logout")]),e._v(" "),e.user.is_admin?n("hr",{staticClass:"navbar-divider"}):e._e(),e._v(" "),e.user.is_admin?n("a",{staticClass:"navbar-item",attrs:{href:"/admin/"}},[e._v("Admin Settigns")]):e._e()],1)]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("p",{staticClass:"control"},[n("button",{staticClass:"button",on:{click:function(t){return e.changeHost()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Host\n ")])])]):e._e(),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[e._v("Current Host: "+e._s(e.host.name))]):e._e()])])])],1)},s=[];a._withStripped=!0}}); \ No newline at end of file diff --git a/public/scripts/components/navbar/app.bundle.js b/public/scripts/components/navbar/app.bundle.js index 6fa11c8..cca7f03 100644 --- a/public/scripts/components/navbar/app.bundle.js +++ b/public/scripts/components/navbar/app.bundle.js @@ -1 +1 @@ -!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!_[e]||!O[e])return;for(var r in O[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--b&&0===m&&E()}(e,r),n&&n(e,r)};var r,t=!0,o="d94d58cb0a5d5f6c03d0",c={},i=[],d=[];function a(e){var n=H[e];if(!n)return k;var t=function(t){return n.hot.active?(H[t]?-1===H[t].parents.indexOf(e)&&H[t].parents.push(e):(i=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),i=[]),k(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return k[e]},set:function(n){k[e]=n}}};for(var c in k)Object.prototype.hasOwnProperty.call(k,c)&&"e"!==c&&"t"!==c&&Object.defineProperty(t,c,o(c));return t.e=function(e){return"ready"===l&&p("prepare"),m++,k.e(e).then(n,(function(e){throw n(),e}));function n(){m--,"prepare"===l&&(w[e]||D(e),0===m&&0===b&&E())}},t.t=function(e,n){return 1&n&&(e=t(e)),k.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":x(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:j,apply:I,status:function(e){if(!e)return l;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var n=u.indexOf(e);n>=0&&u.splice(n,1)},data:c[n]};return r=void 0,t}var u=[],l="idle";function p(e){l=e;for(var n=0;n0;){var o=t.pop(),c=o.id,i=o.chain;if((u=H[c])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:c};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:c};for(var d=0;d ")),E.type){case"self-declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+E.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+E.moduleId+" in "+E.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(E),t.ignoreUnaccepted||(I=new Error("Aborted because "+l+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(E),x=!0;break;case"disposed":t.onDisposed&&t.onDisposed(E),M=!0;break;default:throw new Error("Unexception type "+E.type)}if(I)return p("abort"),Promise.reject(I);if(x)for(l in O[l]=h[l],b(w,E.outdatedModules),E.outdatedDependencies)Object.prototype.hasOwnProperty.call(E.outdatedDependencies,l)&&(m[l]||(m[l]=[]),b(m[l],E.outdatedDependencies[l]));M&&(b(w,[E.moduleId]),O[l]=j)}var S,U=[];for(a=0;a0;)if(l=R.pop(),u=H[l]){var T={},C=u.hot._disposeHandlers;for(s=0;s=0&&B.parents.splice(S,1))}}for(l in m)if(Object.prototype.hasOwnProperty.call(m,l)&&(u=H[l]))for(L=m[l],s=0;s=0&&u.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(l in h=void 0,O)Object.prototype.hasOwnProperty.call(O,l)&&(e[l]=O[l]);var N=null;for(l in m)if(Object.prototype.hasOwnProperty.call(m,l)&&(u=H[l])){L=m[l];var X=[];for(a=0;a{n.classList.toggle("is-active")}}()}))}}); \ No newline at end of file +!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!_[e]||!O[e])return;for(var r in O[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&E()}(e,r),n&&n(e,r)};var r,t=!0,o="7dc24c939137cfe31270",c={},i=[],d=[];function a(e){var n=H[e];if(!n)return k;var t=function(t){return n.hot.active?(H[t]?-1===H[t].parents.indexOf(e)&&H[t].parents.push(e):(i=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),i=[]),k(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return k[e]},set:function(n){k[e]=n}}};for(var c in k)Object.prototype.hasOwnProperty.call(k,c)&&"e"!==c&&"t"!==c&&Object.defineProperty(t,c,o(c));return t.e=function(e){return"ready"===l&&p("prepare"),b++,k.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===l&&(w[e]||D(e),0===b&&0===m&&E())}},t.t=function(e,n){return 1&n&&(e=t(e)),k.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":x(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:j,apply:I,status:function(e){if(!e)return l;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var n=u.indexOf(e);n>=0&&u.splice(n,1)},data:c[n]};return r=void 0,t}var u=[],l="idle";function p(e){l=e;for(var n=0;n0;){var o=t.pop(),c=o.id,i=o.chain;if((u=H[c])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:c};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:c};for(var d=0;d ")),E.type){case"self-declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+E.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+E.moduleId+" in "+E.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(E),t.ignoreUnaccepted||(I=new Error("Aborted because "+l+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(E),x=!0;break;case"disposed":t.onDisposed&&t.onDisposed(E),M=!0;break;default:throw new Error("Unexception type "+E.type)}if(I)return p("abort"),Promise.reject(I);if(x)for(l in O[l]=h[l],m(w,E.outdatedModules),E.outdatedDependencies)Object.prototype.hasOwnProperty.call(E.outdatedDependencies,l)&&(b[l]||(b[l]=[]),m(b[l],E.outdatedDependencies[l]));M&&(m(w,[E.moduleId]),O[l]=j)}var S,U=[];for(a=0;a0;)if(l=R.pop(),u=H[l]){var T={},C=u.hot._disposeHandlers;for(s=0;s=0&&B.parents.splice(S,1))}}for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(u=H[l]))for(L=b[l],s=0;s=0&&u.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(l in h=void 0,O)Object.prototype.hasOwnProperty.call(O,l)&&(e[l]=O[l]);var N=null;for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(u=H[l])){L=b[l];var X=[];for(a=0;a{n.classList.toggle("is-active")}}()}))}}); \ No newline at end of file diff --git a/public/scripts/views/register/app.bundle.js b/public/scripts/views/register/app.bundle.js index 95a4014..52ead88 100644 --- a/public/scripts/views/register/app.bundle.js +++ b/public/scripts/views/register/app.bundle.js @@ -1 +1 @@ -!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!O[e]||!w[e])return;for(var r in w[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&D()}(e,r),n&&n(e,r)};var r,t=!0,o="d94d58cb0a5d5f6c03d0",i={},c=[],d=[];function a(e){var n=k[e];if(!n)return H;var t=function(t){return n.hot.active?(k[t]?-1===k[t].parents.indexOf(e)&&k[t].parents.push(e):(c=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),c=[]),H(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return H[e]},set:function(n){H[e]=n}}};for(var i in H)Object.prototype.hasOwnProperty.call(H,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(t,i,o(i));return t.e=function(e){return"ready"===u&&p("prepare"),b++,H.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===u&&(g[e]||j(e),0===b&&0===m&&D())}},t.t=function(e,n){return 1&n&&(e=t(e)),H.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,u){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":P(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:E,apply:I,status:function(e){if(!e)return u;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var n=l.indexOf(e);n>=0&&l.splice(n,1)},data:i[n]};return r=void 0,t}var l=[],u="idle";function p(e){u=e;for(var n=0;n0;){var o=t.pop(),i=o.id,c=o.chain;if((l=k[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:c,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:c,moduleId:i};for(var d=0;d ")),D.type){case"self-declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+D.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+D.moduleId+" in "+D.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(D),t.ignoreUnaccepted||(I=new Error("Aborted because "+u+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(D),P=!0;break;case"disposed":t.onDisposed&&t.onDisposed(D),M=!0;break;default:throw new Error("Unexception type "+D.type)}if(I)return p("abort"),Promise.reject(I);if(P)for(u in w[u]=h[u],m(g,D.outdatedModules),D.outdatedDependencies)Object.prototype.hasOwnProperty.call(D.outdatedDependencies,u)&&(b[u]||(b[u]=[]),m(b[u],D.outdatedDependencies[u]));M&&(m(g,[D.moduleId]),w[u]=E)}var S,U=[];for(a=0;a0;)if(u=L.pop(),l=k[u]){var R={},T=l.hot._disposeHandlers;for(s=0;s=0&&C.parents.splice(S,1))}}for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u]))for(B=b[u],s=0;s=0&&l.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(u in h=void 0,w)Object.prototype.hasOwnProperty.call(w,u)&&(e[u]=w[u]);var N=null;for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u])){B=b[u];var X=[];for(a=0;a{let e=!1,n=!1;const r=document.getElementById("form-register"),t=document.getElementById("txt-register-password"),o=document.getElementById("txt-register-confirm-password"),i=document.getElementById("chk-register-terms"),c=document.getElementById("btn-register-submit");function d(){e=r.checkValidity()&&n&&i.checked,c.disabled=!e,i.value=i.checked?"on":""}t&&o&&i||alert("Something Went wrong"),r.oninput=e=>{n=t.value===o.value&&!!t.value.trim().length,d()},d()})}}); \ No newline at end of file +!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!O[e]||!w[e])return;for(var r in w[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&D()}(e,r),n&&n(e,r)};var r,t=!0,o="7dc24c939137cfe31270",i={},c=[],d=[];function a(e){var n=k[e];if(!n)return H;var t=function(t){return n.hot.active?(k[t]?-1===k[t].parents.indexOf(e)&&k[t].parents.push(e):(c=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),c=[]),H(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return H[e]},set:function(n){H[e]=n}}};for(var i in H)Object.prototype.hasOwnProperty.call(H,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(t,i,o(i));return t.e=function(e){return"ready"===u&&p("prepare"),b++,H.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===u&&(g[e]||j(e),0===b&&0===m&&D())}},t.t=function(e,n){return 1&n&&(e=t(e)),H.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,u){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":P(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:E,apply:I,status:function(e){if(!e)return u;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var n=l.indexOf(e);n>=0&&l.splice(n,1)},data:i[n]};return r=void 0,t}var l=[],u="idle";function p(e){u=e;for(var n=0;n0;){var o=t.pop(),i=o.id,c=o.chain;if((l=k[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:c,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:c,moduleId:i};for(var d=0;d ")),D.type){case"self-declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+D.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+D.moduleId+" in "+D.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(D),t.ignoreUnaccepted||(I=new Error("Aborted because "+u+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(D),P=!0;break;case"disposed":t.onDisposed&&t.onDisposed(D),M=!0;break;default:throw new Error("Unexception type "+D.type)}if(I)return p("abort"),Promise.reject(I);if(P)for(u in w[u]=h[u],m(g,D.outdatedModules),D.outdatedDependencies)Object.prototype.hasOwnProperty.call(D.outdatedDependencies,u)&&(b[u]||(b[u]=[]),m(b[u],D.outdatedDependencies[u]));M&&(m(g,[D.moduleId]),w[u]=E)}var S,U=[];for(a=0;a0;)if(u=L.pop(),l=k[u]){var R={},T=l.hot._disposeHandlers;for(s=0;s=0&&C.parents.splice(S,1))}}for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u]))for(B=b[u],s=0;s=0&&l.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(u in h=void 0,w)Object.prototype.hasOwnProperty.call(w,u)&&(e[u]=w[u]);var N=null;for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u])){B=b[u];var X=[];for(a=0;a{let e=!1,n=!1;const r=document.getElementById("form-register"),t=document.getElementById("txt-register-password"),o=document.getElementById("txt-register-confirm-password"),i=document.getElementById("chk-register-terms"),c=document.getElementById("btn-register-submit");function d(){e=r.checkValidity()&&n&&i.checked,c.disabled=!e,i.value=i.checked?"on":""}t&&o&&i||alert("Something Went wrong"),r.oninput=e=>{n=t.value===o.value&&!!t.value.trim().length,d()},d()})}}); \ No newline at end of file diff --git a/public/style.css b/public/style.css index eb8ff2b..aac28ac 100644 --- a/public/style.css +++ b/public/style.css @@ -7984,11 +7984,18 @@ video { border: solid 1px rgba(56, 181, 187, 0.3); flex-basis: 100%; } +.has-wrap { + flex-wrap: wrap; } + .book-thumb { transition: all .2s; z-index: inherit; flex-basis: 12%; - text-align: center; } + text-align: center; + min-width: 180px; + background-color: whitesmoke; + padding: 5px; + margin: 5px; } .book-thumb.enabled { cursor: pointer; } @@ -8109,11 +8116,31 @@ video { .page-editor .croppa-container { border: 2px solid whitesmoke; border-radius: 8px; - background-color: white; } + color: white; } .book-thumb.page-preview { flex-basis: unset; } +.book-stitch-preview-left::before { + content: ''; + height: 100%; + position: absolute; + width: 50%; + left: -50%; + top: 0; + mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.3) 0%, transparent 100%); + background: url("/images/default-user-avatar.png"); } + +.stitch-preview-right { + mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, transparent 100%); } + +.stitch-preview-left { + mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.3) 0%, transparent 100%); } + +.book-stitch-preview-right::after { + content: ''; + background: url("/images/default-user-avatar.png"); } + .edit-page-controllers { border-radius: 15px; background-color: rgba(134, 134, 134, 0.1); } diff --git a/resources/sass/main.scss b/resources/sass/main.scss index fb28556..ac9ca6e 100644 --- a/resources/sass/main.scss +++ b/resources/sass/main.scss @@ -342,6 +342,9 @@ video{ flex-basis: 100%; // max-width: 15vh; } +.has-wrap{ + flex-wrap: wrap; +} .book-thumb{ // cursor: not-allowed; @@ -349,6 +352,10 @@ video{ z-index: inherit; flex-basis: 12%; text-align: center; + min-width: 180px; + background-color: whitesmoke; + padding: 5px; + margin: 5px; } .book-thumb.enabled{ cursor: pointer; @@ -494,12 +501,46 @@ video{ .croppa-container { border: 2px solid whitesmoke; border-radius: 8px; - background-color: white; + color: white; } } .book-thumb.page-preview{ flex-basis: unset; } +.book-stitch-preview-left{ + &::before{ + content: ''; + height: 100%; + position: absolute; + // background-color: black; + width:50%; + left:-50%; + top:0; + mask-image: linear-gradient(to left, rgba(0,0,0,.3) 0%, transparent 100%); + background: url('/images/default-user-avatar.png'); + } +} +.stitch-preview-right{ + // position: absolute; + // top:0; + // right:0; + mask-image: linear-gradient(to right, rgba(0,0,0,.3) 0%, transparent 100%); + +} +.stitch-preview-left{ + // position: absolute; + // top:0; + // left:0; + mask-image: linear-gradient(to left, rgba(0,0,0,.3) 0%, transparent 100%); + +} +.book-stitch-preview-right{ + &::after{ + content: ''; + + background: url('/images/default-user-avatar.png'); + } +} .edit-page-controllers{ border-radius: 15px; background-color: rgba(134, 134, 134, 0.1); diff --git a/resources/scripts/applications/home/views/call_views/Lobby.vue b/resources/scripts/applications/home/views/call_views/Lobby.vue index 61aa78c..1e6bccc 100644 --- a/resources/scripts/applications/home/views/call_views/Lobby.vue +++ b/resources/scripts/applications/home/views/call_views/Lobby.vue @@ -4,7 +4,7 @@

Select A Book

-
+
-
+
@@ -86,10 +86,7 @@ Edit -
  • +
  • @@ -106,6 +103,19 @@

    This is exciting...

    +
    +

    Here will be some more instructions in the future...

    +

    Also maybe some gifs fo help...

    +
      +
    • Add a title and author for the book
    • +
    • Add first image (Cover of the book)
    • +
    • Try to fit the image as close as possible to edges of the "page"
    • +
    • You can modify the width/height while editing the cover
    • +
    • You can always zoom in/out and drag the image to make it fit better
    • +
    • Please click on preview to actualy see how the book will look like before uploading
    • +
    • Once all done. Click on "Upload Book"
    • +
    +
    Add Cover @@ -116,19 +126,36 @@

    {{pages[currentPage].text}}

    - +
    +
    + +
    + +
    + +
    +
    @@ -499,6 +526,13 @@ export default { }); return; } + if (!this.pages[this.pages.length - 1].base64) { + this.notify({ + message: "You last page is empty. Delete or update", + level: "warning" + }); + return; + } this.uploading = true; try { const resp = await Services.ApiService.uploadBook({ @@ -528,6 +562,35 @@ export default { } this.uploading = false; }, + async onEditClicked() { + const lastPage = this.currentPage; + if (lastPage >= 0) { + const imageBlob = await this.pages[lastPage].croppa.promisedBlob( + MIME_TYPE, + COMPRESSION_RATE + ); + if (!imageBlob) { + this.notify({ + message: "Cant have an empty page.", + level: "warning" + }); + this.currentPage = lastPage; + return; + } + let url = URL.createObjectURL(imageBlob); + this.pages[lastPage].base64 = this.pages[ + lastPage + ].croppa.generateDataUrl(MIME_TYPE, COMPRESSION_RATE); + this.pages[lastPage].image = url; + this.currentPage = -7; + this.editMode = false; + } else { + this.notify({ + message: `Please add pages before preview`, + level: "warning" + }); + } + }, async onAddPageClicked() { const lastPage = this.pages.length - 1; if (lastPage < 0) { @@ -557,13 +620,11 @@ export default { this.currentPage = lastPage; return; } + this.editMode = true; let url = URL.createObjectURL(imageBlob); this.pages[lastPage].base64 = this.pages[ lastPage ].croppa.generateDataUrl(MIME_TYPE, COMPRESSION_RATE); - const c01 = this.pages[lastPage].croppa.generateDataUrl(MIME_TYPE, 0.1); - console.log(`COMPRESSION_RATE: ${this.pages[lastPage].base64.length}`); - console.log(`0.1: ${c01.length}`); this.pages[lastPage].image = url; this.pages.push({ text: `Page ${nextPage}`, @@ -604,6 +665,12 @@ export default { bookPages() { return this.pages.slice(1); }, + croppaClass() { + if (this.currentPage != 0 && this.currentPage % 2 == 0) { + return `book-stitch-preview-${this.book.ltr ? "left" : "right"}`; + } + return true; + }, canFlipLeft() { return this.flipbookRef && this.$refs.flipbook.canFlipLeft; }, diff --git a/resources/scripts/applications/home/views/home.vue b/resources/scripts/applications/home/views/home.vue index 4c2d296..58069f8 100644 --- a/resources/scripts/applications/home/views/home.vue +++ b/resources/scripts/applications/home/views/home.vue @@ -138,7 +138,7 @@

    My Books

    -
    +