aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js/settings-vue.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-23 09:08:09 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-23 09:08:09 +0200
commit803216c816203e83d5bb6866b53b1c6f59dee804 (patch)
tree0ff9d31e975136d0286aee6d82f1368c577248b2 /settings/js/settings-vue.js
parent53b8ebeafc7e666c3ebbb0f1a70588b97ca99da7 (diff)
downloadnextcloud-server-803216c816203e83d5bb6866b53b1c6f59dee804.tar.gz
nextcloud-server-803216c816203e83d5bb6866b53b1c6f59dee804.zip
Rebuild assets
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/js/settings-vue.js')
-rw-r--r--settings/js/settings-vue.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/js/settings-vue.js b/settings/js/settings-vue.js
index 29513eaf6f4..d50206589a5 100644
--- a/settings/js/settings-vue.js
+++ b/settings/js/settings-vue.js
@@ -1,4 +1,4 @@
-!function(t){function e(e){for(var n,o,i=e[0],a=e[1],u=0,c=[];u<i.length;u++)o=i[u],r[o]&&c.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(s&&s(e);c.length;)c.shift()()}var n={},r={1:0};function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var i=new Promise(function(e,o){n=r[t]=[e,o]});e.push(n[2]=i);var a,u=document.getElementsByTagName("head")[0],s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(t){return o.p+""+({}[t]||t)+".js"}(t),a=function(e){s.onerror=s.onload=null,clearTimeout(c);var n=r[t];if(0!==n){if(n){var o=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src,a=new Error("Loading chunk "+t+" failed.\n("+o+": "+i+")");a.type=o,a.request=i,n[1](a)}r[t]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:s})},12e4);s.onerror=s.onload=a,u.appendChild(s)}return Promise.all(e)},o.m=t,o.c=n,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o.oe=function(t){throw console.error(t),t};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=e,i=i.slice();for(var u=0;u<i.length;u++)e(i[u]);var s=a;o(o.s=318)}([function(t,e,n){var r=n(3),o=n(11),i=n(16),a=n(13),u=n(25),s=function(t,e,n){var c,f,l,p,h=t&s.F,d=t&s.G,v=t&s.S,m=t&s.P,y=t&s.B,g=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=d?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});for(c in d&&(n=e),n)l=((f=!h&&g&&void 0!==g[c])?g:n)[c],p=y&&f?u(l,r):m&&"function"==typeof l?u(Function.call,l):l,g&&a(g,c,l,t&s.U),_[c]!=l&&i(_,c,p),m&&b[c]!=l&&(b[c]=l)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(e,n,r){"use strict";var o=r(20),i=r.n(o),a=function(t){return t.replace(/\/$/,"")};n.a={requireAdmin:function(){return new Promise(function(e,n){var r,o=setTimeout(function(){clearTimeout(r),document.getElementsByClassName("oc-dialog-close").length>0&&document.getElementsByClassName("oc-dialog-close")[0].click(),OC.Notification.showTemporary(t("settings","You did not enter the password in time")),n("Password request cancelled")},7e3);OC.PasswordConfirmation.requirePasswordConfirmation(),function t(){OC.PasswordConfirmation.requiresPasswordConfirmation()?r=setTimeout(t,500):(clearTimeout(r),clearTimeout(o),e())}()})},get:function(t){return i.a.get(a(t))},post:function(t,e){return i.a.post(a(t),e)},patch:function(t,e){return i.a.patch(a(t),e)},put:function(t,e){return i.a.put(a(t),e)},delete:function(t,e){return i.a.delete(a(t),{data:e})}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";var r=n(53),o=n(100),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function u(t){return null!==t&&"object"==typeof t}function s(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:s,isStream:function(t){return u(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){var r=n(72)("wks"),o=n(34),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";n.r(e),function(t,n){
+!function(t){function e(e){for(var n,o,i=e[0],a=e[1],u=0,c=[];u<i.length;u++)o=i[u],r[o]&&c.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(s&&s(e);c.length;)c.shift()()}var n={},r={2:0};function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var i=new Promise(function(e,o){n=r[t]=[e,o]});e.push(n[2]=i);var a,u=document.getElementsByTagName("head")[0],s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(t){return o.p+""+({}[t]||t)+".js"}(t),a=function(e){s.onerror=s.onload=null,clearTimeout(c);var n=r[t];if(0!==n){if(n){var o=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src,a=new Error("Loading chunk "+t+" failed.\n("+o+": "+i+")");a.type=o,a.request=i,n[1](a)}r[t]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:s})},12e4);s.onerror=s.onload=a,u.appendChild(s)}return Promise.all(e)},o.m=t,o.c=n,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o.oe=function(t){throw console.error(t),t};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=e,i=i.slice();for(var u=0;u<i.length;u++)e(i[u]);var s=a;o(o.s=318)}([function(t,e,n){var r=n(3),o=n(11),i=n(16),a=n(13),u=n(25),s=function(t,e,n){var c,f,l,p,h=t&s.F,d=t&s.G,v=t&s.S,m=t&s.P,y=t&s.B,g=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=d?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});for(c in d&&(n=e),n)l=((f=!h&&g&&void 0!==g[c])?g:n)[c],p=y&&f?u(l,r):m&&"function"==typeof l?u(Function.call,l):l,g&&a(g,c,l,t&s.U),_[c]!=l&&i(_,c,p),m&&b[c]!=l&&(b[c]=l)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(e,n,r){"use strict";var o=r(20),i=r.n(o),a=function(t){return t.replace(/\/$/,"")};n.a={requireAdmin:function(){return new Promise(function(e,n){var r,o=setTimeout(function(){clearTimeout(r),document.getElementsByClassName("oc-dialog-close").length>0&&document.getElementsByClassName("oc-dialog-close")[0].click(),OC.Notification.showTemporary(t("settings","You did not enter the password in time")),n("Password request cancelled")},7e3);OC.PasswordConfirmation.requirePasswordConfirmation(),function t(){OC.PasswordConfirmation.requiresPasswordConfirmation()?r=setTimeout(t,500):(clearTimeout(r),clearTimeout(o),e())}()})},get:function(t){return i.a.get(a(t))},post:function(t,e){return i.a.post(a(t),e)},patch:function(t,e){return i.a.patch(a(t),e)},put:function(t,e){return i.a.put(a(t),e)},delete:function(t,e){return i.a.delete(a(t),{data:e})}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";var r=n(53),o=n(100),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function u(t){return null!==t&&"object"==typeof t}function s(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:s,isStream:function(t){return u(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){var r=n(72)("wks"),o=n(34),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";n.r(e),function(t,n){
/*!
* Vue.js v2.5.17
* (c) 2014-2018 Evan You
@@ -16,7 +16,7 @@ t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeo
* vue-router v3.0.1
* (c) 2017 Evan You
* @license MIT
- */function l(t,e){0}function p(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}var h={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$createElement,u=n.name,s=o.$route,c=o._routerViewCache||(o._routerViewCache={}),f=0,l=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&f++,o._inactive&&(l=!0),o=o.$parent;if(i.routerViewDepth=f,l)return a(c[u],i,r);var p=s.matched[f];if(!p)return c[u]=null,a();var h=c[u]=p.components[u];i.registerRouteInstance=function(t,e){var n=p.instances[u];(e&&n!==t||!e&&n===t)&&(p.instances[u]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){p.instances[u]=e.componentInstance};var d=i.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(s,p.props&&p.props[u]);if(d){d=i.props=function(t,e){for(var n in e)t[n]=e[n];return t}({},d);var v=i.attrs=i.attrs||{};for(var m in d)h.props&&m in h.props||(v[m]=d[m],delete d[m])}return a(h,i,r)}};var d=/[!'()*]/g,v=function(t){return"%"+t.charCodeAt(0).toString(16)},m=/%2C/g,y=function(t){return encodeURIComponent(t).replace(d,v).replace(m,",")},g=decodeURIComponent;function _(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=g(n.shift()),o=n.length>0?g(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function b(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return y(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(y(e)):r.push(y(e)+"="+y(t)))}),r.join("&")}return y(e)+"="+y(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var w=/\/?$/;function x(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=A(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:O(e,o),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(a.redirectedFrom=O(n,o)),Object.freeze(a)}function A(t){if(Array.isArray(t))return t.map(A);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=A(t[n]);return e}return t}var S=x(null,{path:"/"});function O(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||b)(r)+o}function C(t,e){return e===S?t===e:!!e&&(t.path&&e.path?t.path.replace(w,"")===e.path.replace(w,"")&&t.hash===e.hash&&E(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&E(t.query,e.query)&&E(t.params,e.params)))}function E(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],o=e[n];return"object"==typeof r&&"object"==typeof o?E(r,o):String(r)===String(o)})}var k,P=[String,Object],I=[String,Array],T={name:"router-link",props:{to:{type:P,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:I,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,u=o.href,s={},c=n.options.linkActiveClass,f=n.options.linkExactActiveClass,l=null==c?"router-link-active":c,p=null==f?"router-link-exact-active":f,h=null==this.activeClass?l:this.activeClass,d=null==this.exactActiveClass?p:this.exactActiveClass,v=i.path?x(null,i,null,n):a;s[d]=C(r,v),s[h]=this.exact?s[d]:function(t,e){return 0===t.path.replace(w,"/").indexOf(e.path.replace(w,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=function(t){j(t)&&(e.replace?n.replace(i):n.push(i))},y={click:j};Array.isArray(this.event)?this.event.forEach(function(t){y[t]=m}):y[this.event]=m;var g={class:s};if("a"===this.tag)g.on=y,g.attrs={href:u};else{var _=function t(e){if(e)for(var n,r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(_){_.isStatic=!1;var b=k.util.extend;(_.data=b({},_.data)).on=y,(_.data.attrs=b({},_.data.attrs)).href=u}else g.on=y}return t(this.tag,g,this.$slots.default)}};function j(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function L(t){if(!L.installed||k!==t){L.installed=!0,k=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(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,n(this,this)},destroyed:function(){n(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("router-view",h),t.component("router-link",T);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var $="undefined"!=typeof window;function F(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var o=e.split("/");n&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var u=i[a];".."===u?o.pop():"."!==u&&o.push(u)}return""!==o[0]&&o.unshift(""),o.join("/")}function M(t){return t.replace(/\/\//g,"/")}var R=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},N=Z,U=G,D=function(t,e){return z(G(t,e))},B=z,q=Q,V=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function G(t,e){for(var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=V.exec(t));){var s=n[0],c=n[1],f=n.index;if(a+=t.slice(i,f),i=f+s.length,c)a+=c[1];else{var l=t[i],p=n[2],h=n[3],d=n[4],v=n[5],m=n[6],y=n[7];a&&(r.push(a),a="");var g=null!=p&&null!=l&&l!==p,_="+"===m||"*"===m,b="?"===m||"*"===m,w=n[2]||u,x=d||v;r.push({name:h||o++,prefix:p||"",delimiter:w,optional:b,repeat:_,partial:g,asterisk:!!y,pattern:x?X(x):y?".*":"[^"+K(w)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function W(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function H(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function z(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=(r||{}).pretty?W:encodeURIComponent,u=0;u<t.length;u++){var s=t[u];if("string"!=typeof s){var c,f=i[s.name];if(null==f){if(s.optional){s.partial&&(o+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(R(f)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;l<f.length;l++){if(c=a(f[l]),!e[u].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(c)+"`");o+=(0===l?s.prefix:s.delimiter)+c}}else{if(c=s.asterisk?H(f):a(f),!e[u].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=s.prefix+c}}else o+=s}return o}}function K(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function X(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function Y(t,e){return t.keys=e,t}function J(t){return t.sensitive?"":"i"}function Q(t,e,n){R(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=K(u);else{var s=K(u.prefix),c="(?:"+u.pattern+")";e.push(u),u.repeat&&(c+="(?:"+s+c+")*"),i+=c=u.optional?u.partial?s+"("+c+")?":"(?:"+s+"("+c+"))?":s+"("+c+")"}}var f=K(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",Y(new RegExp("^"+i,J(n)),e)}function Z(t,e,n){return R(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Y(t,e)}(t,e):R(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(Z(t[o],e,n).source);return Y(new RegExp("(?:"+r.join("|")+")",J(n)),e)}(t,e,n):function(t,e,n){return Q(G(t,n),e,n)}(t,e,n)}N.parse=U,N.compile=D,N.tokensToFunction=B,N.tokensToRegExp=q;var tt=Object.create(null);function et(t,e,n){try{return(tt[t]||(tt[t]=N.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}function nt(t,e,n,r){var o=e||[],i=n||Object.create(null),a=r||Object.create(null);t.forEach(function(t){!function t(e,n,r,o,i,a){var u=o.path;var s=o.name;0;var c=o.pathToRegexpOptions||{};var f=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return M(e.path+"/"+t)}(u,i,c.strict);"boolean"==typeof o.caseSensitive&&(c.sensitive=o.caseSensitive);var l={path:f,regex:function(t,e){var n=N(t,[],e);0;return n}(f,c),components:o.components||{default:o.component},instances:{},name:s,parent:i,matchAs:a,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};o.children&&o.children.forEach(function(o){var i=a?M(a+"/"+o.path):void 0;t(e,n,r,o,l,i)});if(void 0!==o.alias){var p=Array.isArray(o.alias)?o.alias:[o.alias];p.forEach(function(a){var u={path:a,children:o.children};t(e,n,r,u,i,l.path||"/")})}n[l.path]||(e.push(l.path),n[l.path]=l);s&&(r[s]||(r[s]=l))}(o,i,a,t)});for(var u=0,s=o.length;u<s;u++)"*"===o[u]&&(o.push(o.splice(u,1)[0]),s--,u--);return{pathList:o,pathMap:i,nameMap:a}}function rt(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o.name||o._normalized)return o;if(!o.path&&o.params&&e){(o=ot({},o))._normalized=!0;var i=ot(ot({},e.params),o.params);if(e.name)o.name=e.name,o.params=i;else if(e.matched.length){var a=e.matched[e.matched.length-1].path;o.path=et(a,i,e.path)}else 0;return o}var u=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),s=e&&e.path||"/",c=u.path?F(u.path,s,n||o.append):s,f=function(t,e,n){void 0===e&&(e={});var r,o=n||_;try{r=o(t||"")}catch(t){r={}}for(var i in e)r[i]=e[i];return r}(u.query,o.query,r&&r.options.parseQuery),l=o.hash||u.hash;return l&&"#"!==l.charAt(0)&&(l="#"+l),{_normalized:!0,path:c,query:f,hash:l}}function ot(t,e){for(var n in e)t[n]=e[n];return t}function it(t,e){var n=nt(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function a(t,n,a){var u=rt(t,n,!1,e),c=u.name;if(c){var f=i[c];if(!f)return s(null,u);var l=f.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof u.params&&(u.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in u.params)&&l.indexOf(p)>-1&&(u.params[p]=n.params[p]);if(f)return u.path=et(f.path,u.params),s(f,u,a)}else if(u.path){u.params={};for(var h=0;h<r.length;h++){var d=r[h],v=o[d];if(at(v.regex,u.path,u.params))return s(v,u,a)}}return s(null,u)}function u(t,n){var r=t.redirect,o="function"==typeof r?r(x(t,n,null,e)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return s(null,n);var u=o,c=u.name,f=u.path,l=n.query,p=n.hash,h=n.params;if(l=u.hasOwnProperty("query")?u.query:l,p=u.hasOwnProperty("hash")?u.hash:p,h=u.hasOwnProperty("params")?u.params:h,c){i[c];return a({_normalized:!0,name:c,query:l,hash:p,params:h},void 0,n)}if(f){var d=function(t,e){return F(t,e.parent?e.parent.path:"/",!0)}(f,t);return a({_normalized:!0,path:et(d,h),query:l,hash:p},void 0,n)}return s(null,n)}function s(t,n,r){return t&&t.redirect?u(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:et(n,e.params)});if(r){var o=r.matched,i=o[o.length-1];return e.params=r.params,s(i,e)}return s(null,e)}(0,n,t.matchAs):x(t,n,r,e)}return{match:a,addRoutes:function(t){nt(t,r,o,i)}}}function at(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=t.keys[o-1],u="string"==typeof r[o]?decodeURIComponent(r[o]):r[o];a&&(n[a.name]=u)}return!0}var ut=Object.create(null);function st(){window.history.replaceState({key:_t()},""),window.addEventListener("popstate",function(t){ft(),t.state&&t.state.key&&function(t){yt=t}(t.state.key)})}function ct(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick(function(){var t=function(){var t=_t();if(t)return ut[t]}(),i=o(e,n,r?t:null);i&&("function"==typeof i.then?i.then(function(e){dt(e,t)}).catch(function(t){0}):dt(i,t))})}}function ft(){var t=_t();t&&(ut[t]={x:window.pageXOffset,y:window.pageYOffset})}function lt(t){return ht(t.x)||ht(t.y)}function pt(t){return{x:ht(t.x)?t.x:window.pageXOffset,y:ht(t.y)?t.y:window.pageYOffset}}function ht(t){return"number"==typeof t}function dt(t,e){var n="object"==typeof t;if(n&&"string"==typeof t.selector){var r=document.querySelector(t.selector);if(r){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(r,o=function(t){return{x:ht(t.x)?t.x:0,y:ht(t.y)?t.y:0}}(o))}else lt(t)&&(e=pt(t))}else n&&lt(t)&&(e=pt(t));e&&window.scrollTo(e.x,e.y)}var vt=$&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),mt=$&&window.performance&&window.performance.now?window.performance:Date,yt=gt();function gt(){return mt.now().toFixed(3)}function _t(){return yt}function bt(t,e){ft();var n=window.history;try{e?n.replaceState({key:yt},"",t):(yt=gt(),n.pushState({key:yt},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function wt(t){bt(t,!0)}function xt(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function At(t){return function(e,n,r){var o=!1,i=0,a=null;St(t,function(t,e,n,u){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var s,c=Et(function(e){(function(t){return t.__esModule||Ct&&"Module"===t[Symbol.toStringTag]})(e)&&(e=e.default),t.resolved="function"==typeof e?e:k.extend(e),n.components[u]=e,--i<=0&&r()}),f=Et(function(t){var e="Failed to resolve async component "+u+": "+t;a||(a=p(t)?t:new Error(e),r(a))});try{s=t(c,f)}catch(t){f(t)}if(s)if("function"==typeof s.then)s.then(c,f);else{var l=s.component;l&&"function"==typeof l.then&&l.then(c,f)}}}),o||r()}}function St(t,e){return Ot(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Ot(t){return Array.prototype.concat.apply([],t)}var Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Et(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var kt=function(t,e){this.router=t,this.base=function(t){if(!t)if($){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=S,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Pt(t,e,n,r){var o=St(t,function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=k.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,o,i)}):n(a,r,o,i)});return Ot(r?o.reverse():o)}function It(t,e){if(e)return function(){return t.apply(e,arguments)}}kt.prototype.listen=function(t){this.cb=t},kt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},kt.prototype.onError=function(t){this.errorCbs.push(t)},kt.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},kt.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current,i=function(t){p(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):(l(),console.error(t))),n&&n(t)};if(C(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),i();var a=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),u=a.updated,s=a.deactivated,c=a.activated,f=[].concat(function(t){return Pt(t,"beforeRouteLeave",It,!0)}(s),this.router.beforeHooks,function(t){return Pt(t,"beforeRouteUpdate",It)}(u),c.map(function(t){return t.beforeEnter}),At(c));this.pending=t;var h=function(e,n){if(r.pending!==t)return i();try{e(t,o,function(t){!1===t||p(t)?(r.ensureURL(!0),i(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(i(),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)})}catch(t){i(t)}};xt(f,h,function(){var n=[];xt(function(t,e,n){return Pt(t,"beforeRouteEnter",function(t,r,o,i){return function(t,e,n,r,o){return function(i,a,u){return t(i,a,function(t){u(t),"function"==typeof t&&r.push(function(){!function t(e,n,r,o){n[r]?e(n[r]):o()&&setTimeout(function(){t(e,n,r,o)},16)}(t,e.instances,n,o)})})}}(t,o,i,e,n)})}(c,n,function(){return r.current===t}).concat(r.router.resolveHooks),h,function(){if(r.pending!==t)return i();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},kt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Tt=function(t){function e(e,n){var r=this;t.call(this,e,n);var o=e.options.scrollBehavior;o&&st();var i=jt(this.base);window.addEventListener("popstate",function(t){var n=r.current,a=jt(r.base);r.current===S&&a===i||r.transitionTo(a,function(t){o&&ct(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){bt(M(r.base+t.fullPath)),ct(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){wt(M(r.base+t.fullPath)),ct(r.router,t,o,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(jt(this.base)!==this.current.fullPath){var e=M(this.base+this.current.fullPath);t?bt(e):wt(e)}},e.prototype.getCurrentLocation=function(){return jt(this.base)},e}(kt);function jt(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Lt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=jt(t);if(!/^\/#/.test(e))return window.location.replace(M(t+"/#"+e)),!0}(this.base)||$t()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router.options.scrollBehavior,n=vt&&e;n&&st(),window.addEventListener(vt?"popstate":"hashchange",function(){var e=t.current;$t()&&t.transitionTo(Ft(),function(r){n&&ct(t.router,r,e,!0),vt||Nt(r.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){Rt(t.fullPath),ct(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){Nt(t.fullPath),ct(r.router,t,o,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Ft()!==e&&(t?Rt(e):Nt(e))},e.prototype.getCurrentLocation=function(){return Ft()},e}(kt);function $t(){var t=Ft();return"/"===t.charAt(0)||(Nt("/"+t),!1)}function Ft(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.slice(e+1)}function Mt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Rt(t){vt?bt(Mt(t)):window.location.hash=t}function Nt(t){vt?wt(Mt(t)):window.location.replace(Mt(t))}var Ut=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(kt),Dt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!vt&&!1!==t.fallback,this.fallback&&(e="hash"),$||(e="abstract"),this.mode=e,e){case"history":this.history=new Tt(this,t.base);break;case"hash":this.history=new Lt(this,t.base,this.fallback);break;case"abstract":this.history=new Ut(this,t.base);break;default:0}},Bt={currentRoute:{configurable:!0}};function qt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Dt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Bt.currentRoute.get=function(){return this.history&&this.history.current},Dt.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Tt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Lt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Dt.prototype.beforeEach=function(t){return qt(this.beforeHooks,t)},Dt.prototype.beforeResolve=function(t){return qt(this.resolveHooks,t)},Dt.prototype.afterEach=function(t){return qt(this.afterHooks,t)},Dt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Dt.prototype.onError=function(t){this.history.onError(t)},Dt.prototype.push=function(t,e,n){this.history.push(t,e,n)},Dt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Dt.prototype.go=function(t){this.history.go(t)},Dt.prototype.back=function(){this.go(-1)},Dt.prototype.forward=function(){this.go(1)},Dt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Dt.prototype.resolve=function(t,e,n){var r=rt(t,e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?M(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Dt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==S&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Dt.prototype,Bt),Dt.install=L,Dt.version="3.0.1",$&&window.Vue&&window.Vue.use(Dt);var Vt=Dt,Gt=function(){return Promise.all([r.e(0),r.e(5),r.e(3)]).then(r.bind(null,327))},Wt=function(){return Promise.all([r.e(0),r.e(4)]).then(r.bind(null,326))};
+ */function l(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}var p={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$createElement,u=n.name,s=o.$route,c=o._routerViewCache||(o._routerViewCache={}),f=0,l=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&f++,o._inactive&&(l=!0),o=o.$parent;if(i.routerViewDepth=f,l)return a(c[u],i,r);var p=s.matched[f];if(!p)return c[u]=null,a();var h=c[u]=p.components[u];i.registerRouteInstance=function(t,e){var n=p.instances[u];(e&&n!==t||!e&&n===t)&&(p.instances[u]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){p.instances[u]=e.componentInstance};var d=i.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(s,p.props&&p.props[u]);if(d){d=i.props=function(t,e){for(var n in e)t[n]=e[n];return t}({},d);var v=i.attrs=i.attrs||{};for(var m in d)h.props&&m in h.props||(v[m]=d[m],delete d[m])}return a(h,i,r)}};var h=/[!'()*]/g,d=function(t){return"%"+t.charCodeAt(0).toString(16)},v=/%2C/g,m=function(t){return encodeURIComponent(t).replace(h,d).replace(v,",")},y=decodeURIComponent;function g(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=y(n.shift()),o=n.length>0?y(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function _(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return m(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(m(e)):r.push(m(e)+"="+m(t)))}),r.join("&")}return m(e)+"="+m(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var b=/\/?$/;function w(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=x(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:S(e,o),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(a.redirectedFrom=S(n,o)),Object.freeze(a)}function x(t){if(Array.isArray(t))return t.map(x);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=x(t[n]);return e}return t}var A=w(null,{path:"/"});function S(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||_)(r)+o}function O(t,e){return e===A?t===e:!!e&&(t.path&&e.path?t.path.replace(b,"")===e.path.replace(b,"")&&t.hash===e.hash&&C(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&C(t.query,e.query)&&C(t.params,e.params)))}function C(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],o=e[n];return"object"==typeof r&&"object"==typeof o?C(r,o):String(r)===String(o)})}var E,k=[String,Object],P=[String,Array],I={name:"router-link",props:{to:{type:k,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:P,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,u=o.href,s={},c=n.options.linkActiveClass,f=n.options.linkExactActiveClass,l=null==c?"router-link-active":c,p=null==f?"router-link-exact-active":f,h=null==this.activeClass?l:this.activeClass,d=null==this.exactActiveClass?p:this.exactActiveClass,v=i.path?w(null,i,null,n):a;s[d]=O(r,v),s[h]=this.exact?s[d]:function(t,e){return 0===t.path.replace(b,"/").indexOf(e.path.replace(b,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=function(t){T(t)&&(e.replace?n.replace(i):n.push(i))},y={click:T};Array.isArray(this.event)?this.event.forEach(function(t){y[t]=m}):y[this.event]=m;var g={class:s};if("a"===this.tag)g.on=y,g.attrs={href:u};else{var _=function t(e){if(e)for(var n,r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(_){_.isStatic=!1;var x=E.util.extend;(_.data=x({},_.data)).on=y,(_.data.attrs=x({},_.data.attrs)).href=u}else g.on=y}return t(this.tag,g,this.$slots.default)}};function T(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var j="undefined"!=typeof window;function L(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var o=e.split("/");n&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var u=i[a];".."===u?o.pop():"."!==u&&o.push(u)}return""!==o[0]&&o.unshift(""),o.join("/")}function $(t){return t.replace(/\/\//g,"/")}var F=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},M=J,R=q,N=function(t,e){return W(q(t,e))},U=W,D=Y,B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function q(t,e){for(var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=B.exec(t));){var s=n[0],c=n[1],f=n.index;if(a+=t.slice(i,f),i=f+s.length,c)a+=c[1];else{var l=t[i],p=n[2],h=n[3],d=n[4],v=n[5],m=n[6],y=n[7];a&&(r.push(a),a="");var g=null!=p&&null!=l&&l!==p,_="+"===m||"*"===m,b="?"===m||"*"===m,w=n[2]||u,x=d||v;r.push({name:h||o++,prefix:p||"",delimiter:w,optional:b,repeat:_,partial:g,asterisk:!!y,pattern:x?z(x):y?".*":"[^"+H(w)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function V(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function G(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function W(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=(r||{}).pretty?V:encodeURIComponent,u=0;u<t.length;u++){var s=t[u];if("string"!=typeof s){var c,f=i[s.name];if(null==f){if(s.optional){s.partial&&(o+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(F(f)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;l<f.length;l++){if(c=a(f[l]),!e[u].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(c)+"`");o+=(0===l?s.prefix:s.delimiter)+c}}else{if(c=s.asterisk?G(f):a(f),!e[u].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=s.prefix+c}}else o+=s}return o}}function H(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function z(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){return t.keys=e,t}function X(t){return t.sensitive?"":"i"}function Y(t,e,n){F(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=H(u);else{var s=H(u.prefix),c="(?:"+u.pattern+")";e.push(u),u.repeat&&(c+="(?:"+s+c+")*"),i+=c=u.optional?u.partial?s+"("+c+")?":"(?:"+s+"("+c+"))?":s+"("+c+")"}}var f=H(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",K(new RegExp("^"+i,X(n)),e)}function J(t,e,n){return F(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return K(t,e)}(t,e):F(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(J(t[o],e,n).source);return K(new RegExp("(?:"+r.join("|")+")",X(n)),e)}(t,e,n):function(t,e,n){return Y(q(t,n),e,n)}(t,e,n)}M.parse=R,M.compile=N,M.tokensToFunction=U,M.tokensToRegExp=D;var Q=Object.create(null);function Z(t,e,n){try{return(Q[t]||(Q[t]=M.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}function tt(t,e,n,r){var o=e||[],i=n||Object.create(null),a=r||Object.create(null);t.forEach(function(t){!function t(e,n,r,o,i,a){var u=o.path;var s=o.name;0;var c=o.pathToRegexpOptions||{};var f=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return $(e.path+"/"+t)}(u,i,c.strict);"boolean"==typeof o.caseSensitive&&(c.sensitive=o.caseSensitive);var l={path:f,regex:function(t,e){var n=M(t,[],e);0;return n}(f,c),components:o.components||{default:o.component},instances:{},name:s,parent:i,matchAs:a,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};o.children&&o.children.forEach(function(o){var i=a?$(a+"/"+o.path):void 0;t(e,n,r,o,l,i)});if(void 0!==o.alias){var p=Array.isArray(o.alias)?o.alias:[o.alias];p.forEach(function(a){var u={path:a,children:o.children};t(e,n,r,u,i,l.path||"/")})}n[l.path]||(e.push(l.path),n[l.path]=l);s&&(r[s]||(r[s]=l))}(o,i,a,t)});for(var u=0,s=o.length;u<s;u++)"*"===o[u]&&(o.push(o.splice(u,1)[0]),s--,u--);return{pathList:o,pathMap:i,nameMap:a}}function et(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o.name||o._normalized)return o;if(!o.path&&o.params&&e){(o=nt({},o))._normalized=!0;var i=nt(nt({},e.params),o.params);if(e.name)o.name=e.name,o.params=i;else if(e.matched.length){var a=e.matched[e.matched.length-1].path;o.path=Z(a,i,e.path)}else 0;return o}var u=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),s=e&&e.path||"/",c=u.path?L(u.path,s,n||o.append):s,f=function(t,e,n){void 0===e&&(e={});var r,o=n||g;try{r=o(t||"")}catch(t){r={}}for(var i in e)r[i]=e[i];return r}(u.query,o.query,r&&r.options.parseQuery),l=o.hash||u.hash;return l&&"#"!==l.charAt(0)&&(l="#"+l),{_normalized:!0,path:c,query:f,hash:l}}function nt(t,e){for(var n in e)t[n]=e[n];return t}function rt(t,e){var n=tt(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function a(t,n,a){var u=et(t,n,!1,e),c=u.name;if(c){var f=i[c];if(!f)return s(null,u);var l=f.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof u.params&&(u.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in u.params)&&l.indexOf(p)>-1&&(u.params[p]=n.params[p]);if(f)return u.path=Z(f.path,u.params),s(f,u,a)}else if(u.path){u.params={};for(var h=0;h<r.length;h++){var d=r[h],v=o[d];if(ot(v.regex,u.path,u.params))return s(v,u,a)}}return s(null,u)}function u(t,n){var r=t.redirect,o="function"==typeof r?r(w(t,n,null,e)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return s(null,n);var u=o,c=u.name,f=u.path,l=n.query,p=n.hash,h=n.params;if(l=u.hasOwnProperty("query")?u.query:l,p=u.hasOwnProperty("hash")?u.hash:p,h=u.hasOwnProperty("params")?u.params:h,c){i[c];return a({_normalized:!0,name:c,query:l,hash:p,params:h},void 0,n)}if(f){var d=function(t,e){return L(t,e.parent?e.parent.path:"/",!0)}(f,t);return a({_normalized:!0,path:Z(d,h),query:l,hash:p},void 0,n)}return s(null,n)}function s(t,n,r){return t&&t.redirect?u(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:Z(n,e.params)});if(r){var o=r.matched,i=o[o.length-1];return e.params=r.params,s(i,e)}return s(null,e)}(0,n,t.matchAs):w(t,n,r,e)}return{match:a,addRoutes:function(t){tt(t,r,o,i)}}}function ot(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=t.keys[o-1],u="string"==typeof r[o]?decodeURIComponent(r[o]):r[o];a&&(n[a.name]=u)}return!0}var it=Object.create(null);function at(){window.history.replaceState({key:yt()},""),window.addEventListener("popstate",function(t){st(),t.state&&t.state.key&&function(t){vt=t}(t.state.key)})}function ut(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick(function(){var t=function(){var t=yt();if(t)return it[t]}(),i=o(e,n,r?t:null);i&&("function"==typeof i.then?i.then(function(e){pt(e,t)}).catch(function(t){0}):pt(i,t))})}}function st(){var t=yt();t&&(it[t]={x:window.pageXOffset,y:window.pageYOffset})}function ct(t){return lt(t.x)||lt(t.y)}function ft(t){return{x:lt(t.x)?t.x:window.pageXOffset,y:lt(t.y)?t.y:window.pageYOffset}}function lt(t){return"number"==typeof t}function pt(t,e){var n="object"==typeof t;if(n&&"string"==typeof t.selector){var r=document.querySelector(t.selector);if(r){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(r,o=function(t){return{x:lt(t.x)?t.x:0,y:lt(t.y)?t.y:0}}(o))}else ct(t)&&(e=ft(t))}else n&&ct(t)&&(e=ft(t));e&&window.scrollTo(e.x,e.y)}var ht=j&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),dt=j&&window.performance&&window.performance.now?window.performance:Date,vt=mt();function mt(){return dt.now().toFixed(3)}function yt(){return vt}function gt(t,e){st();var n=window.history;try{e?n.replaceState({key:vt},"",t):(vt=mt(),n.pushState({key:vt},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function _t(t){gt(t,!0)}function bt(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function wt(t){return function(e,n,r){var o=!1,i=0,a=null;xt(t,function(t,e,n,u){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var s,c=Ot(function(e){(function(t){return t.__esModule||St&&"Module"===t[Symbol.toStringTag]})(e)&&(e=e.default),t.resolved="function"==typeof e?e:E.extend(e),n.components[u]=e,--i<=0&&r()}),f=Ot(function(t){var e="Failed to resolve async component "+u+": "+t;a||(a=l(t)?t:new Error(e),r(a))});try{s=t(c,f)}catch(t){f(t)}if(s)if("function"==typeof s.then)s.then(c,f);else{var p=s.component;p&&"function"==typeof p.then&&p.then(c,f)}}}),o||r()}}function xt(t,e){return At(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function At(t){return Array.prototype.concat.apply([],t)}var St="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ot(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Ct=function(t,e){this.router=t,this.base=function(t){if(!t)if(j){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=A,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Et(t,e,n,r){var o=xt(t,function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=E.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,o,i)}):n(a,r,o,i)});return At(r?o.reverse():o)}function kt(t,e){if(e)return function(){return t.apply(e,arguments)}}Ct.prototype.listen=function(t){this.cb=t},Ct.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Ct.prototype.onError=function(t){this.errorCbs.push(t)},Ct.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Ct.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current,i=function(t){l(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(O(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),i();var a=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),u=a.updated,s=a.deactivated,c=a.activated,f=[].concat(function(t){return Et(t,"beforeRouteLeave",kt,!0)}(s),this.router.beforeHooks,function(t){return Et(t,"beforeRouteUpdate",kt)}(u),c.map(function(t){return t.beforeEnter}),wt(c));this.pending=t;var p=function(e,n){if(r.pending!==t)return i();try{e(t,o,function(t){!1===t||l(t)?(r.ensureURL(!0),i(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(i(),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)})}catch(t){i(t)}};bt(f,p,function(){var n=[];bt(function(t,e,n){return Et(t,"beforeRouteEnter",function(t,r,o,i){return function(t,e,n,r,o){return function(i,a,u){return t(i,a,function(t){u(t),"function"==typeof t&&r.push(function(){!function t(e,n,r,o){n[r]?e(n[r]):o()&&setTimeout(function(){t(e,n,r,o)},16)}(t,e.instances,n,o)})})}}(t,o,i,e,n)})}(c,n,function(){return r.current===t}).concat(r.router.resolveHooks),p,function(){if(r.pending!==t)return i();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},Ct.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Pt=function(t){function e(e,n){var r=this;t.call(this,e,n);var o=e.options.scrollBehavior;o&&at();var i=It(this.base);window.addEventListener("popstate",function(t){var n=r.current,a=It(r.base);r.current===A&&a===i||r.transitionTo(a,function(t){o&&ut(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){gt($(r.base+t.fullPath)),ut(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){_t($(r.base+t.fullPath)),ut(r.router,t,o,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(It(this.base)!==this.current.fullPath){var e=$(this.base+this.current.fullPath);t?gt(e):_t(e)}},e.prototype.getCurrentLocation=function(){return It(this.base)},e}(Ct);function It(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Tt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=It(t);if(!/^\/#/.test(e))return window.location.replace($(t+"/#"+e)),!0}(this.base)||jt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router.options.scrollBehavior,n=ht&&e;n&&at(),window.addEventListener(ht?"popstate":"hashchange",function(){var e=t.current;jt()&&t.transitionTo(Lt(),function(r){n&&ut(t.router,r,e,!0),ht||Mt(r.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){Ft(t.fullPath),ut(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){Mt(t.fullPath),ut(r.router,t,o,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Lt()!==e&&(t?Ft(e):Mt(e))},e.prototype.getCurrentLocation=function(){return Lt()},e}(Ct);function jt(){var t=Lt();return"/"===t.charAt(0)||(Mt("/"+t),!1)}function Lt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.slice(e+1)}function $t(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ft(t){ht?gt($t(t)):window.location.hash=t}function Mt(t){ht?_t($t(t)):window.location.replace($t(t))}var Rt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Ct),Nt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=rt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ht&&!1!==t.fallback,this.fallback&&(e="hash"),j||(e="abstract"),this.mode=e,e){case"history":this.history=new Pt(this,t.base);break;case"hash":this.history=new Tt(this,t.base,this.fallback);break;case"abstract":this.history=new Rt(this,t.base);break;default:0}},Ut={currentRoute:{configurable:!0}};function Dt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Nt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ut.currentRoute.get=function(){return this.history&&this.history.current},Nt.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Pt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Tt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Nt.prototype.beforeEach=function(t){return Dt(this.beforeHooks,t)},Nt.prototype.beforeResolve=function(t){return Dt(this.resolveHooks,t)},Nt.prototype.afterEach=function(t){return Dt(this.afterHooks,t)},Nt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Nt.prototype.onError=function(t){this.history.onError(t)},Nt.prototype.push=function(t,e,n){this.history.push(t,e,n)},Nt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Nt.prototype.go=function(t){this.history.go(t)},Nt.prototype.back=function(){this.go(-1)},Nt.prototype.forward=function(){this.go(1)},Nt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Nt.prototype.resolve=function(t,e,n){var r=et(t,e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?$(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Nt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==A&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Nt.prototype,Ut),Nt.install=function t(e){if(!t.installed||E!==e){t.installed=!0,E=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("router-view",p),e.component("router-link",I);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Nt.version="3.0.1",j&&window.Vue&&window.Vue.use(Nt);var Bt=Nt,qt=function(){return Promise.all([r.e(0),r.e(3),r.e(5)]).then(r.bind(null,327))},Vt=function(){return Promise.all([r.e(0),r.e(4)]).then(r.bind(null,326))};
/*
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
@@ -38,12 +38,12 @@ t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeo
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- */o.default.use(Vt);var Ht=new Vt({mode:"history",base:OC.generateUrl(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:Gt,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:Gt}]},{path:"/:index(index.php/)?settings/apps",component:Wt,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:Wt,children:[{path:":id",name:"apps-details",component:Wt}]}]}]}),zt=function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},Kt="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
+ */o.default.use(Bt);var Gt=new Bt({mode:"history",base:OC.generateUrl(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:qt,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:qt}]},{path:"/:index(index.php/)?settings/apps",component:Vt,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:Vt,children:[{path:":id",name:"apps-details",component:Vt}]}]}]}),Wt=function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},Ht="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
/**
* vuex v3.0.1
* (c) 2017 Evan You
* @license MIT
- */function Xt(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var Yt=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},Jt={namespaced:{configurable:!0}};Jt.namespaced.get=function(){return!!this._rawModule.namespaced},Yt.prototype.addChild=function(t,e){this._children[t]=e},Yt.prototype.removeChild=function(t){delete this._children[t]},Yt.prototype.getChild=function(t){return this._children[t]},Yt.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Yt.prototype.forEachChild=function(t){Xt(this._children,t)},Yt.prototype.forEachGetter=function(t){this._rawModule.getters&&Xt(this._rawModule.getters,t)},Yt.prototype.forEachAction=function(t){this._rawModule.actions&&Xt(this._rawModule.actions,t)},Yt.prototype.forEachMutation=function(t){this._rawModule.mutations&&Xt(this._rawModule.mutations,t)},Object.defineProperties(Yt.prototype,Jt);var Qt=function(t){this.register([],t,!1)};Qt.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},Qt.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},Qt.prototype.update=function(t){!function t(e,n,r){0;n.update(r);if(r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;t(e.concat(o),n.getChild(o),r.modules[o])}}([],this.root,t)},Qt.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new Yt(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&Xt(e.modules,function(e,o){r.register(t.concat(o),e,n)})},Qt.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var Zt;var te=function(t){var e=this;void 0===t&&(t={}),!Zt&&"undefined"!=typeof window&&window.Vue&&se(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var o=t.state;void 0===o&&(o={}),"function"==typeof o&&(o=o()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Qt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Zt;var i=this,a=this.dispatch,u=this.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r,ie(this,o,[],this._modules.root),oe(this,o),n.forEach(function(t){return t(e)}),Zt.config.devtools&&function(t){Kt&&(t._devtoolHook=Kt,Kt.emit("vuex:init",t),Kt.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){Kt.emit("vuex:mutation",t,e)}))}(this)},ee={state:{configurable:!0}};function ne(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function re(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;ie(t,n,[],t._modules.root,!0),oe(t,n,e)}function oe(t,e,n){var r=t._vm;t.getters={};var o={};Xt(t._wrappedGetters,function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var i=Zt.config.silent;Zt.config.silent=!0,t._vm=new Zt({data:{$$state:e},computed:o}),Zt.config.silent=i,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),Zt.nextTick(function(){return r.$destroy()}))}function ie(t,e,n,r,o){var i=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!i&&!o){var u=ae(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit(function(){Zt.set(u,s,r.state)})}var c=r.context=function(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=ue(n,r,o),a=i.payload,u=i.options,s=i.type;return u&&u.root||(s=e+s),t.dispatch(s,a)},commit:r?t.commit:function(n,r,o){var i=ue(n,r,o),a=i.payload,u=i.options,s=i.type;u&&u.root||(s=e+s),t.commit(s,a,u)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return ae(t.state,n)}}}),o}(t,a,n);r.forEachMutation(function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}(t,a+n,e,c)}),r.forEachAction(function(e,n){var r=e.root?n:a+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,o){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,o);return function(t){return t&&"function"==typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}(t,r,o,c)}),r.forEachGetter(function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,c)}),r.forEachChild(function(r,i){ie(t,e,n.concat(i),r,o)})}function ae(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function ue(t,e,n){return function(t){return null!==t&&"object"==typeof t}(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function se(t){Zt&&t===Zt||zt(Zt=t)}ee.state.get=function(){return this._vm._data.$$state},ee.state.set=function(t){0},te.prototype.commit=function(t,e,n){var r=this,o=ue(t,e,n),i=o.type,a=o.payload,u=(o.options,{type:i,payload:a}),s=this._mutations[i];s&&(this._withCommit(function(){s.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(u,r.state)}))},te.prototype.dispatch=function(t,e){var n=this,r=ue(t,e),o=r.type,i=r.payload,a={type:o,payload:i},u=this._actions[o];if(u)return this._actionSubscribers.forEach(function(t){return t(a,n.state)}),u.length>1?Promise.all(u.map(function(t){return t(i)})):u[0](i)},te.prototype.subscribe=function(t){return ne(t,this._subscribers)},te.prototype.subscribeAction=function(t){return ne(t,this._actionSubscribers)},te.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},te.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},te.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),ie(this,this.state,t,this._modules.get(t),n.preserveState),oe(this,this.state)},te.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=ae(e.state,t.slice(0,-1));Zt.delete(n,t[t.length-1])}),re(this)},te.prototype.hotUpdate=function(t){this._modules.update(t),re(this,!0)},te.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(te.prototype,ee);var ce=de(function(t,e){var n={};return he(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=ve(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0}),n}),fe=de(function(t,e){var n={};return he(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=ve(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n}),le=de(function(t,e){var n={};return he(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||ve(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0}),n}),pe=de(function(t,e){var n={};return he(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=ve(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n});function he(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function de(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function ve(t,e,n){return t._modulesNamespaceMap[n]}var me={Store:te,install:se,version:"3.0.1",mapState:ce,mapMutations:fe,mapGetters:le,mapActions:pe,createNamespacedHelpers:function(t){return{mapState:ce.bind(null,t),mapGetters:le.bind(null,t),mapMutations:fe.bind(null,t),mapActions:pe.bind(null,t)}}},ye=r(1),ge=function(t,e){return 1===e?t.sort(function(t,e){return t.usercount-t.disabled<e.usercount-e.disabled}):t.sort(function(t,e){return t.name.localeCompare(e.name)})},_e={id:"",name:"",usercount:0,disabled:0,canAdd:!0,canRemove:!0},be={state:{users:[],groups:[],orderBy:1,minPasswordLength:0,usersOffset:0,usersLimit:25,userCount:0},mutations:{appendUsers:function(t,e){var n=t.users.concat(Object.keys(e).map(function(t){return e[t]}));t.usersOffset+=t.usersLimit,t.users=n},setPasswordPolicyMinLength:function(t,e){t.minPasswordLength=""!==e?e:0},initGroups:function(t,e){var n=e.groups,r=e.orderBy,o=e.userCount;t.groups=n.map(function(t){return Object.assign({},_e,t)}),t.orderBy=r,t.userCount=o,t.groups=ge(t.groups,t.orderBy)},addGroup:function(t,e){var n=e.gid,r=e.displayName;try{if(void 0!==t.groups.find(function(t){return t.id===n}))return;var o=Object.assign({},_e,{id:n,name:r});t.groups.push(o),t.groups=ge(t.groups,t.orderBy)}catch(t){console.log("Can't create group",t)}},removeGroup:function(t,e){var n=t.groups.findIndex(function(t){return t.id==e});n>=0&&t.groups.splice(n,1)},addUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find(function(t){return t.id==r}),i=t.users.find(function(t){return t.id==n});o&&i.enabled&&o.usercount++,i.groups.push(r),t.groups=ge(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find(function(t){return t.id==r}),i=t.users.find(function(t){return t.id==n});o&&i.enabled&&o.usercount--;var a=i.groups;a.splice(a.indexOf(r),1),t.groups=ge(t.groups,t.orderBy)},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;t.users.find(function(t){return t.id==n}).subadmin.push(r)},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid,o=t.users.find(function(t){return t.id==n}).subadmin;o.splice(o.indexOf(r),1)},deleteUser:function(t,e){var n=t.users.findIndex(function(t){return t.id==e});t.users.splice(n,1)},addUserData:function(t,e){t.users.push(e.data.ocs.data)},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=t.users.find(function(t){return t.id==n});o.enabled=r,t.groups.find(function(t){return"disabled"==t.id}).usercount+=r?-1:1,t.userCount+=r?1:-1,o.groups.forEach(function(e){t.groups.find(function(t){return t.id==e}).disabled+=r?-1:1})},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value;if("quota"===r){var i=OC.Util.computerFileSize(o);t.users.find(function(t){return t.id==n})[r][r]=null!==i?i:o}else t.users.find(function(t){return t.id==n})[r]=o},resetUsers:function(t){t.users=[],t.usersOffset=0}},getters:{getUsers:function(t){return t.users},getGroups:function(t){return t.groups},getSubadminGroups:function(t){return t.groups.filter(function(t){return"admin"!==t.id&&"disabled"!==t.id})},getPasswordPolicyMinLength:function(t){return t.minPasswordLength},getUsersOffset:function(t){return t.usersOffset},getUsersLimit:function(t){return t.usersLimit},getUserCount:function(t){return t.userCount}},actions:{getUsers:function(t,e){var n=e.offset,r=e.limit,o=e.search,i=e.group;return o="string"==typeof o?o:"",""!==(i="string"==typeof i?i:"")?ye.a.get(OC.linkToOCS("cloud/groups/".concat(i,"/users/details?offset=").concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then(function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)}).catch(function(e){return t.commit("API_FAILURE",e)}):ye.a.get(OC.linkToOCS("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then(function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})},getGroups:function(t,e){var n=e.offset,r=e.limit,o=e.search;o="string"==typeof o?o:"";var i=-1===r?"":"&limit=".concat(r);return ye.a.get(OC.linkToOCS("cloud/groups?offset=".concat(n,"&search=").concat(o).concat(i),2)).then(function(e){return Object.keys(e.data.ocs.data.groups).length>0&&(e.data.ocs.data.groups.forEach(function(e){t.commit("addGroup",{gid:e,displayName:e})}),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})},getUsersFromList:function(t,e){var n=e.offset,r=e.limit,o=e.search;return o="string"==typeof o?o:"",ye.a.get(OC.linkToOCS("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then(function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})},getUsersFromGroup:function(t,e){var n=e.groupid,r=e.offset,o=e.limit;return ye.a.get(OC.linkToOCS("cloud/users/".concat(n,"/details?offset=").concat(r,"&limit=").concat(o),2)).then(function(e){return t.commit("getUsersFromList",e.data.ocs.data.users)}).catch(function(e){return t.commit("API_FAILURE",e)})},getPasswordPolicyMinLength:function(t){return!(!oc_capabilities.password_policy||!oc_capabilities.password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",oc_capabilities.password_policy.minLength),oc_capabilities.password_policy.minLength)},addGroup:function(t,e){return ye.a.requireAdmin().then(function(n){return ye.a.post(OC.linkToOCS("cloud/groups",2),{groupid:e}).then(function(n){return t.commit("addGroup",{gid:e,displayName:e}),{gid:e,displayName:e}}).catch(function(t){throw t})}).catch(function(n){throw t.commit("API_FAILURE",{gid:e,error:n}),n})},removeGroup:function(t,e){return ye.a.requireAdmin().then(function(n){return ye.a.delete(OC.linkToOCS("cloud/groups/".concat(e),2)).then(function(n){return t.commit("removeGroup",e)}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{gid:e,error:n})})},addUserGroup:function(t,e){var n=e.userid,r=e.gid;return ye.a.requireAdmin().then(function(e){return ye.a.post(OC.linkToOCS("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then(function(e){return t.commit("addUserGroup",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},removeUserGroup:function(t,e){var n=e.userid,r=e.gid;return ye.a.requireAdmin().then(function(e){return ye.a.delete(OC.linkToOCS("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then(function(e){return t.commit("removeUserGroup",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){throw t.commit("API_FAILURE",{userid:n,error:e}),e})},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return ye.a.requireAdmin().then(function(e){return ye.a.post(OC.linkToOCS("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then(function(e){return t.commit("addUserSubAdmin",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return ye.a.requireAdmin().then(function(e){return ye.a.delete(OC.linkToOCS("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then(function(e){return t.commit("removeUserSubAdmin",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},deleteUser:function(t,e){return ye.a.requireAdmin().then(function(n){return ye.a.delete(OC.linkToOCS("cloud/users/".concat(e),2)).then(function(n){return t.commit("deleteUser",e)}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},addUser:function(t,e){var n=t.commit,r=t.dispatch,o=e.userid,i=e.password,a=e.displayName,u=e.email,s=e.groups,c=e.subadmin,f=e.quota,l=e.language;return ye.a.requireAdmin().then(function(t){return ye.a.post(OC.linkToOCS("cloud/users",2),{userid:o,password:i,displayName:a,email:u,groups:s,subadmin:c,quota:f,language:l}).then(function(t){return r("addUserData",o)}).catch(function(t){throw t})}).catch(function(t){return n("API_FAILURE",{userid:o,error:t})})},addUserData:function(t,e){return ye.a.requireAdmin().then(function(n){return ye.a.get(OC.linkToOCS("cloud/users/".concat(e),2)).then(function(e){return t.commit("addUserData",e)}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=void 0===r||r,i=o?"enable":"disable";return ye.a.requireAdmin().then(function(e){return ye.a.put(OC.linkToOCS("cloud/users/".concat(n,"/").concat(i),2)).then(function(e){return t.commit("enableDisableUser",{userid:n,enabled:o})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value,i=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r))?ye.a.requireAdmin().then(function(e){return ye.a.put(OC.linkToOCS("cloud/users/".concat(n),2),{key:r,value:o}).then(function(e){return t.commit("setUserData",{userid:n,key:r,value:o})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})}):Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:function(t,e){return ye.a.requireAdmin().then(function(t){return ye.a.post(OC.linkToOCS("cloud/users/".concat(e,"/welcome"),2)).then(function(t){return!0}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})}}},we={state:{apps:[],categories:[],updateCount:0,loading:{},loadingList:!1},mutations:{APPS_API_FAILURE:function(e,n){OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"<br>"+n.error.response.data.data.message,{timeout:7}),console.log(e,n)},initCategories:function(t,e){var n=e.categories,r=e.updateCount;t.categories=n,t.updateCount=r},setUpdateCount:function(t,e){t.updateCount=e},addCategory:function(t,e){t.categories.push(e)},appendCategories:function(t,e){t.categories=e},setAllApps:function(t,e){t.apps=e},setError:function(t,e){var n=e.appId,r=e.error;Array.isArray(n)||(n=[n]),n.forEach(function(e){t.apps.find(function(t){return t.id===e}).error=r})},clearError:function(t,e){var n=e.appId;e.error;t.apps.find(function(t){return t.id===n}).error=null},enableApp:function(t,e){var n=e.appId,r=e.groups,o=t.apps.find(function(t){return t.id===n});o.active=!0,o.groups=r},disableApp:function(t,e){var n=t.apps.find(function(t){return t.id===e});n.active=!1,n.groups=[],n.removable&&(n.canUnInstall=!0)},uninstallApp:function(t,e){t.apps.find(function(t){return t.id===e}).active=!1,t.apps.find(function(t){return t.id===e}).groups=[],t.apps.find(function(t){return t.id===e}).needsDownload=!0,t.apps.find(function(t){return t.id===e}).installed=!1,t.apps.find(function(t){return t.id===e}).canUnInstall=!1,t.apps.find(function(t){return t.id===e}).canInstall=!0},updateApp:function(t,e){var n=t.apps.find(function(t){return t.id===e}),r=n.update;n.update=null,n.version=r,t.updateCount--},resetApps:function(t){t.apps=[]},reset:function(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading:function(t,e){Array.isArray(e)?e.forEach(function(e){o.default.set(t.loading,e,!0)}):o.default.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach(function(e){o.default.set(t.loading,e,!1)}):o.default.set(t.loading,e,!1)}},getters:{loading:function(t){return function(e){return t.loading[e]}},getCategories:function(t){return t.categories},getAllApps:function(t){return t.apps},getUpdateCount:function(t){return t.updateCount}},actions:{enableApp:function(e,n){var r,o=n.appId,i=n.groups;return r=Array.isArray(o)?o:[o],ye.a.requireAdmin().then(function(n){return e.commit("startLoading",r),e.commit("startLoading","install"),ye.a.post(OC.generateUrl("settings/apps/enable"),{appIds:r,groups:i}).then(function(n){return e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach(function(t){e.commit("enableApp",{appId:t,groups:i})}),ye.a.get(OC.generateUrl("apps/files")).then(function(){n.data.update_required&&(OC.dialogs.info(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),t("settings","App update"),function(){window.location.reload()},!0),setTimeout(function(){location.reload()},5e3))}).catch(function(n){Array.isArray(o)||e.commit("setError",{appId:r,error:t("settings","Error: This app can not be enabled because it makes the server unstable")})})}).catch(function(t){e.commit("stopLoading",r),e.commit("stopLoading","install"),e.commit("setError",{appId:r,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:o,error:t})})}).catch(function(t){return e.commit("API_FAILURE",{appId:o,error:t})})},disableApp:function(t,e){var n,r=e.appId;return n=Array.isArray(r)?r:[r],ye.a.requireAdmin().then(function(e){return t.commit("startLoading",n),ye.a.post(OC.generateUrl("settings/apps/disable"),{appIds:n}).then(function(e){return t.commit("stopLoading",n),n.forEach(function(e){t.commit("disableApp",e)}),!0}).catch(function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:r,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:r,error:e})})},uninstallApp:function(t,e){var n=e.appId;return ye.a.requireAdmin().then(function(e){return t.commit("startLoading",n),ye.a.get(OC.generateUrl("settings/apps/uninstall/".concat(n))).then(function(e){return t.commit("stopLoading",n),t.commit("uninstallApp",n),!0}).catch(function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:n,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:n,error:e})})},updateApp:function(t,e){var n=e.appId;return ye.a.requireAdmin().then(function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),ye.a.get(OC.generateUrl("settings/apps/update/".concat(n))).then(function(e){return t.commit("stopLoading","install"),t.commit("stopLoading",n),t.commit("updateApp",n),!0}).catch(function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:n,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:n,error:e})})},getAllApps:function(t){return t.commit("startLoading","list"),ye.a.get(OC.generateUrl("settings/apps/list")).then(function(e){return t.commit("setAllApps",e.data.apps),t.commit("stopLoading","list"),!0}).catch(function(e){return t.commit("API_FAILURE",e)})},getCategories:function(t){return t.commit("startLoading","categories"),ye.a.get(OC.generateUrl("settings/apps/categories")).then(function(e){return e.data.length>0&&(t.commit("appendCategories",e.data),t.commit("stopLoading","categories"),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})}}},xe={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},Ae={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,o=e.value;return ye.a.requireAdmin().then(function(t){return ye.a.post(OC.linkToOCS("apps/provisioning_api/api/v1/config/apps/".concat(n,"/").concat(r),2),{value:o}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{app:n,key:r,value:o,error:e})})}}};
+ */function zt(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var Kt=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},Xt={namespaced:{configurable:!0}};Xt.namespaced.get=function(){return!!this._rawModule.namespaced},Kt.prototype.addChild=function(t,e){this._children[t]=e},Kt.prototype.removeChild=function(t){delete this._children[t]},Kt.prototype.getChild=function(t){return this._children[t]},Kt.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Kt.prototype.forEachChild=function(t){zt(this._children,t)},Kt.prototype.forEachGetter=function(t){this._rawModule.getters&&zt(this._rawModule.getters,t)},Kt.prototype.forEachAction=function(t){this._rawModule.actions&&zt(this._rawModule.actions,t)},Kt.prototype.forEachMutation=function(t){this._rawModule.mutations&&zt(this._rawModule.mutations,t)},Object.defineProperties(Kt.prototype,Xt);var Yt=function(t){this.register([],t,!1)};Yt.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},Yt.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},Yt.prototype.update=function(t){!function t(e,n,r){0;n.update(r);if(r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;t(e.concat(o),n.getChild(o),r.modules[o])}}([],this.root,t)},Yt.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new Kt(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&zt(e.modules,function(e,o){r.register(t.concat(o),e,n)})},Yt.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var Jt;var Qt=function(t){var e=this;void 0===t&&(t={}),!Jt&&"undefined"!=typeof window&&window.Vue&&ae(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var o=t.state;void 0===o&&(o={}),"function"==typeof o&&(o=o()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Yt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Jt;var i=this,a=this.dispatch,u=this.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r,re(this,o,[],this._modules.root),ne(this,o),n.forEach(function(t){return t(e)}),Jt.config.devtools&&function(t){Ht&&(t._devtoolHook=Ht,Ht.emit("vuex:init",t),Ht.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){Ht.emit("vuex:mutation",t,e)}))}(this)},Zt={state:{configurable:!0}};function te(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function ee(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;re(t,n,[],t._modules.root,!0),ne(t,n,e)}function ne(t,e,n){var r=t._vm;t.getters={};var o={};zt(t._wrappedGetters,function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var i=Jt.config.silent;Jt.config.silent=!0,t._vm=new Jt({data:{$$state:e},computed:o}),Jt.config.silent=i,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),Jt.nextTick(function(){return r.$destroy()}))}function re(t,e,n,r,o){var i=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!i&&!o){var u=oe(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit(function(){Jt.set(u,s,r.state)})}var c=r.context=function(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=ie(n,r,o),a=i.payload,u=i.options,s=i.type;return u&&u.root||(s=e+s),t.dispatch(s,a)},commit:r?t.commit:function(n,r,o){var i=ie(n,r,o),a=i.payload,u=i.options,s=i.type;u&&u.root||(s=e+s),t.commit(s,a,u)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return oe(t.state,n)}}}),o}(t,a,n);r.forEachMutation(function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}(t,a+n,e,c)}),r.forEachAction(function(e,n){var r=e.root?n:a+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,o){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,o);return function(t){return t&&"function"==typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}(t,r,o,c)}),r.forEachGetter(function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,c)}),r.forEachChild(function(r,i){re(t,e,n.concat(i),r,o)})}function oe(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function ie(t,e,n){return function(t){return null!==t&&"object"==typeof t}(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function ae(t){Jt&&t===Jt||Wt(Jt=t)}Zt.state.get=function(){return this._vm._data.$$state},Zt.state.set=function(t){0},Qt.prototype.commit=function(t,e,n){var r=this,o=ie(t,e,n),i=o.type,a=o.payload,u=(o.options,{type:i,payload:a}),s=this._mutations[i];s&&(this._withCommit(function(){s.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(u,r.state)}))},Qt.prototype.dispatch=function(t,e){var n=this,r=ie(t,e),o=r.type,i=r.payload,a={type:o,payload:i},u=this._actions[o];if(u)return this._actionSubscribers.forEach(function(t){return t(a,n.state)}),u.length>1?Promise.all(u.map(function(t){return t(i)})):u[0](i)},Qt.prototype.subscribe=function(t){return te(t,this._subscribers)},Qt.prototype.subscribeAction=function(t){return te(t,this._actionSubscribers)},Qt.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},Qt.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},Qt.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),re(this,this.state,t,this._modules.get(t),n.preserveState),ne(this,this.state)},Qt.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=oe(e.state,t.slice(0,-1));Jt.delete(n,t[t.length-1])}),ee(this)},Qt.prototype.hotUpdate=function(t){this._modules.update(t),ee(this,!0)},Qt.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(Qt.prototype,Zt);var ue=pe(function(t,e){var n={};return le(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=he(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0}),n}),se=pe(function(t,e){var n={};return le(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=he(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n}),ce=pe(function(t,e){var n={};return le(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||he(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0}),n}),fe=pe(function(t,e){var n={};return le(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=he(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n});function le(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function pe(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function he(t,e,n){return t._modulesNamespaceMap[n]}var de={Store:Qt,install:ae,version:"3.0.1",mapState:ue,mapMutations:se,mapGetters:ce,mapActions:fe,createNamespacedHelpers:function(t){return{mapState:ue.bind(null,t),mapGetters:ce.bind(null,t),mapMutations:se.bind(null,t),mapActions:fe.bind(null,t)}}},ve=r(1),me=function(t,e){return 1===e?t.sort(function(t,e){return t.usercount-t.disabled<e.usercount-e.disabled}):t.sort(function(t,e){return t.name.localeCompare(e.name)})},ye={id:"",name:"",usercount:0,disabled:0,canAdd:!0,canRemove:!0},ge={state:{users:[],groups:[],orderBy:1,minPasswordLength:0,usersOffset:0,usersLimit:25,userCount:0},mutations:{appendUsers:function(t,e){var n=t.users.concat(Object.keys(e).map(function(t){return e[t]}));t.usersOffset+=t.usersLimit,t.users=n},setPasswordPolicyMinLength:function(t,e){t.minPasswordLength=""!==e?e:0},initGroups:function(t,e){var n=e.groups,r=e.orderBy,o=e.userCount;t.groups=n.map(function(t){return Object.assign({},ye,t)}),t.orderBy=r,t.userCount=o,t.groups=me(t.groups,t.orderBy)},addGroup:function(t,e){var n=e.gid,r=e.displayName;try{if(void 0!==t.groups.find(function(t){return t.id===n}))return;var o=Object.assign({},ye,{id:n,name:r});t.groups.push(o),t.groups=me(t.groups,t.orderBy)}catch(t){console.log("Can't create group",t)}},removeGroup:function(t,e){var n=t.groups.findIndex(function(t){return t.id==e});n>=0&&t.groups.splice(n,1)},addUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find(function(t){return t.id==r}),i=t.users.find(function(t){return t.id==n});o&&i.enabled&&o.usercount++,i.groups.push(r),t.groups=me(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find(function(t){return t.id==r}),i=t.users.find(function(t){return t.id==n});o&&i.enabled&&o.usercount--;var a=i.groups;a.splice(a.indexOf(r),1),t.groups=me(t.groups,t.orderBy)},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;t.users.find(function(t){return t.id==n}).subadmin.push(r)},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid,o=t.users.find(function(t){return t.id==n}).subadmin;o.splice(o.indexOf(r),1)},deleteUser:function(t,e){var n=t.users.findIndex(function(t){return t.id==e});t.users.splice(n,1)},addUserData:function(t,e){t.users.push(e.data.ocs.data)},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=t.users.find(function(t){return t.id==n});o.enabled=r,t.groups.find(function(t){return"disabled"==t.id}).usercount+=r?-1:1,t.userCount+=r?1:-1,o.groups.forEach(function(e){t.groups.find(function(t){return t.id==e}).disabled+=r?-1:1})},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value;if("quota"===r){var i=OC.Util.computerFileSize(o);t.users.find(function(t){return t.id==n})[r][r]=null!==i?i:o}else t.users.find(function(t){return t.id==n})[r]=o},resetUsers:function(t){t.users=[],t.usersOffset=0}},getters:{getUsers:function(t){return t.users},getGroups:function(t){return t.groups},getSubadminGroups:function(t){return t.groups.filter(function(t){return"admin"!==t.id&&"disabled"!==t.id})},getPasswordPolicyMinLength:function(t){return t.minPasswordLength},getUsersOffset:function(t){return t.usersOffset},getUsersLimit:function(t){return t.usersLimit},getUserCount:function(t){return t.userCount}},actions:{getUsers:function(t,e){var n=e.offset,r=e.limit,o=e.search,i=e.group;return o="string"==typeof o?o:"",""!==(i="string"==typeof i?i:"")?ve.a.get(OC.linkToOCS("cloud/groups/".concat(i,"/users/details?offset=").concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then(function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)}).catch(function(e){return t.commit("API_FAILURE",e)}):ve.a.get(OC.linkToOCS("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then(function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})},getGroups:function(t,e){var n=e.offset,r=e.limit,o=e.search;o="string"==typeof o?o:"";var i=-1===r?"":"&limit=".concat(r);return ve.a.get(OC.linkToOCS("cloud/groups?offset=".concat(n,"&search=").concat(o).concat(i),2)).then(function(e){return Object.keys(e.data.ocs.data.groups).length>0&&(e.data.ocs.data.groups.forEach(function(e){t.commit("addGroup",{gid:e,displayName:e})}),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})},getUsersFromList:function(t,e){var n=e.offset,r=e.limit,o=e.search;return o="string"==typeof o?o:"",ve.a.get(OC.linkToOCS("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then(function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})},getUsersFromGroup:function(t,e){var n=e.groupid,r=e.offset,o=e.limit;return ve.a.get(OC.linkToOCS("cloud/users/".concat(n,"/details?offset=").concat(r,"&limit=").concat(o),2)).then(function(e){return t.commit("getUsersFromList",e.data.ocs.data.users)}).catch(function(e){return t.commit("API_FAILURE",e)})},getPasswordPolicyMinLength:function(t){return!(!oc_capabilities.password_policy||!oc_capabilities.password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",oc_capabilities.password_policy.minLength),oc_capabilities.password_policy.minLength)},addGroup:function(t,e){return ve.a.requireAdmin().then(function(n){return ve.a.post(OC.linkToOCS("cloud/groups",2),{groupid:e}).then(function(n){return t.commit("addGroup",{gid:e,displayName:e}),{gid:e,displayName:e}}).catch(function(t){throw t})}).catch(function(n){throw t.commit("API_FAILURE",{gid:e,error:n}),n})},removeGroup:function(t,e){return ve.a.requireAdmin().then(function(n){return ve.a.delete(OC.linkToOCS("cloud/groups/".concat(e),2)).then(function(n){return t.commit("removeGroup",e)}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{gid:e,error:n})})},addUserGroup:function(t,e){var n=e.userid,r=e.gid;return ve.a.requireAdmin().then(function(e){return ve.a.post(OC.linkToOCS("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then(function(e){return t.commit("addUserGroup",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},removeUserGroup:function(t,e){var n=e.userid,r=e.gid;return ve.a.requireAdmin().then(function(e){return ve.a.delete(OC.linkToOCS("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then(function(e){return t.commit("removeUserGroup",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){throw t.commit("API_FAILURE",{userid:n,error:e}),e})},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return ve.a.requireAdmin().then(function(e){return ve.a.post(OC.linkToOCS("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then(function(e){return t.commit("addUserSubAdmin",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return ve.a.requireAdmin().then(function(e){return ve.a.delete(OC.linkToOCS("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then(function(e){return t.commit("removeUserSubAdmin",{userid:n,gid:r})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},deleteUser:function(t,e){return ve.a.requireAdmin().then(function(n){return ve.a.delete(OC.linkToOCS("cloud/users/".concat(e),2)).then(function(n){return t.commit("deleteUser",e)}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},addUser:function(t,e){var n=t.commit,r=t.dispatch,o=e.userid,i=e.password,a=e.displayName,u=e.email,s=e.groups,c=e.subadmin,f=e.quota,l=e.language;return ve.a.requireAdmin().then(function(t){return ve.a.post(OC.linkToOCS("cloud/users",2),{userid:o,password:i,displayName:a,email:u,groups:s,subadmin:c,quota:f,language:l}).then(function(t){return r("addUserData",o)}).catch(function(t){throw t})}).catch(function(t){return n("API_FAILURE",{userid:o,error:t})})},addUserData:function(t,e){return ve.a.requireAdmin().then(function(n){return ve.a.get(OC.linkToOCS("cloud/users/".concat(e),2)).then(function(e){return t.commit("addUserData",e)}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=void 0===r||r,i=o?"enable":"disable";return ve.a.requireAdmin().then(function(e){return ve.a.put(OC.linkToOCS("cloud/users/".concat(n,"/").concat(i),2)).then(function(e){return t.commit("enableDisableUser",{userid:n,enabled:o})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value,i=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r))?ve.a.requireAdmin().then(function(e){return ve.a.put(OC.linkToOCS("cloud/users/".concat(n),2),{key:r,value:o}).then(function(e){return t.commit("setUserData",{userid:n,key:r,value:o})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})}):Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:function(t,e){return ve.a.requireAdmin().then(function(t){return ve.a.post(OC.linkToOCS("cloud/users/".concat(e,"/welcome"),2)).then(function(t){return!0}).catch(function(t){throw t})}).catch(function(n){return t.commit("API_FAILURE",{userid:e,error:n})})}}},_e={state:{apps:[],categories:[],updateCount:0,loading:{},loadingList:!1},mutations:{APPS_API_FAILURE:function(e,n){OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"<br>"+n.error.response.data.data.message,{timeout:7}),console.log(e,n)},initCategories:function(t,e){var n=e.categories,r=e.updateCount;t.categories=n,t.updateCount=r},setUpdateCount:function(t,e){t.updateCount=e},addCategory:function(t,e){t.categories.push(e)},appendCategories:function(t,e){t.categories=e},setAllApps:function(t,e){t.apps=e},setError:function(t,e){var n=e.appId,r=e.error;Array.isArray(n)||(n=[n]),n.forEach(function(e){t.apps.find(function(t){return t.id===e}).error=r})},clearError:function(t,e){var n=e.appId;e.error;t.apps.find(function(t){return t.id===n}).error=null},enableApp:function(t,e){var n=e.appId,r=e.groups,o=t.apps.find(function(t){return t.id===n});o.active=!0,o.groups=r},disableApp:function(t,e){var n=t.apps.find(function(t){return t.id===e});n.active=!1,n.groups=[],n.removable&&(n.canUnInstall=!0)},uninstallApp:function(t,e){t.apps.find(function(t){return t.id===e}).active=!1,t.apps.find(function(t){return t.id===e}).groups=[],t.apps.find(function(t){return t.id===e}).needsDownload=!0,t.apps.find(function(t){return t.id===e}).installed=!1,t.apps.find(function(t){return t.id===e}).canUnInstall=!1,t.apps.find(function(t){return t.id===e}).canInstall=!0},updateApp:function(t,e){var n=t.apps.find(function(t){return t.id===e}),r=n.update;n.update=null,n.version=r,t.updateCount--},resetApps:function(t){t.apps=[]},reset:function(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading:function(t,e){Array.isArray(e)?e.forEach(function(e){o.default.set(t.loading,e,!0)}):o.default.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach(function(e){o.default.set(t.loading,e,!1)}):o.default.set(t.loading,e,!1)}},getters:{loading:function(t){return function(e){return t.loading[e]}},getCategories:function(t){return t.categories},getAllApps:function(t){return t.apps},getUpdateCount:function(t){return t.updateCount}},actions:{enableApp:function(e,n){var r,o=n.appId,i=n.groups;return r=Array.isArray(o)?o:[o],ve.a.requireAdmin().then(function(n){return e.commit("startLoading",r),e.commit("startLoading","install"),ve.a.post(OC.generateUrl("settings/apps/enable"),{appIds:r,groups:i}).then(function(n){return e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach(function(t){e.commit("enableApp",{appId:t,groups:i})}),ve.a.get(OC.generateUrl("apps/files")).then(function(){n.data.update_required&&(OC.dialogs.info(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),t("settings","App update"),function(){window.location.reload()},!0),setTimeout(function(){location.reload()},5e3))}).catch(function(n){Array.isArray(o)||e.commit("setError",{appId:r,error:t("settings","Error: This app can not be enabled because it makes the server unstable")})})}).catch(function(t){e.commit("stopLoading",r),e.commit("stopLoading","install"),e.commit("setError",{appId:r,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:o,error:t})})}).catch(function(t){return e.commit("API_FAILURE",{appId:o,error:t})})},disableApp:function(t,e){var n,r=e.appId;return n=Array.isArray(r)?r:[r],ve.a.requireAdmin().then(function(e){return t.commit("startLoading",n),ve.a.post(OC.generateUrl("settings/apps/disable"),{appIds:n}).then(function(e){return t.commit("stopLoading",n),n.forEach(function(e){t.commit("disableApp",e)}),!0}).catch(function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:r,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:r,error:e})})},uninstallApp:function(t,e){var n=e.appId;return ve.a.requireAdmin().then(function(e){return t.commit("startLoading",n),ve.a.get(OC.generateUrl("settings/apps/uninstall/".concat(n))).then(function(e){return t.commit("stopLoading",n),t.commit("uninstallApp",n),!0}).catch(function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:n,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:n,error:e})})},updateApp:function(t,e){var n=e.appId;return ve.a.requireAdmin().then(function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),ve.a.get(OC.generateUrl("settings/apps/update/".concat(n))).then(function(e){return t.commit("stopLoading","install"),t.commit("stopLoading",n),t.commit("updateApp",n),!0}).catch(function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:n,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:n,error:e})})},getAllApps:function(t){return t.commit("startLoading","list"),ve.a.get(OC.generateUrl("settings/apps/list")).then(function(e){return t.commit("setAllApps",e.data.apps),t.commit("stopLoading","list"),!0}).catch(function(e){return t.commit("API_FAILURE",e)})},getCategories:function(t){return t.commit("startLoading","categories"),ve.a.get(OC.generateUrl("settings/apps/categories")).then(function(e){return e.data.length>0&&(t.commit("appendCategories",e.data),t.commit("stopLoading","categories"),!0)}).catch(function(e){return t.commit("API_FAILURE",e)})}}},be={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},we={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,o=e.value;return ve.a.requireAdmin().then(function(t){return ve.a.post(OC.linkToOCS("apps/provisioning_api/api/v1/config/apps/".concat(n,"/").concat(r),2),{value:o}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{app:n,key:r,value:o,error:e})})}}};
/*
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
@@ -66,7 +66,7 @@ t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeo
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-o.default.use(me);var Se={API_FAILURE:function(e,n){try{var r=n.error.response.data.ocs.meta.message;OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"<br>"+r,{timeout:7})}catch(e){OC.Notification.showTemporary(t("settings","An error occured during the request. Unable to proceed."))}console.log(e,n)}},Oe=new me.Store({modules:{users:be,apps:we,settings:xe,oc:Ae},strict:!1,mutations:Se});r.d(n,"app",function(){return Ce}),r.d(n,"router",function(){return Ht}),r.d(n,"store",function(){return Oe}),
+o.default.use(de);var xe={API_FAILURE:function(e,n){try{var r=n.error.response.data.ocs.meta.message;OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"<br>"+r,{timeout:7})}catch(e){OC.Notification.showTemporary(t("settings","An error occured during the request. Unable to proceed."))}console.log(e,n)}},Ae=new de.Store({modules:{users:ge,apps:_e,settings:be,oc:we},strict:!1,mutations:xe});r.d(n,"app",function(){return Se}),r.d(n,"router",function(){return Gt}),r.d(n,"store",function(){return Ae}),
/*
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
@@ -88,5 +88,5 @@ o.default.use(me);var Se={API_FAILURE:function(e,n){try{var r=n.error.response.d
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-Object(i.sync)(Oe,Ht),r.nc=btoa(OC.requestToken),r.p=OC.linkTo("settings","js/"),o.default.prototype.t=t,o.default.prototype.OC=OC,o.default.prototype.OCA=OCA,o.default.prototype.oc_userconfig=oc_userconfig,o.default.prototype.oc_current_user=oc_current_user;var Ce=new o.default({router:Ht,store:Oe,render:function(t){return t(f)}}).$mount("#content")}]);
+Object(i.sync)(Ae,Gt),r.nc=btoa(OC.requestToken),r.p=OC.linkTo("settings","js/"),o.default.prototype.t=t,o.default.prototype.OC=OC,o.default.prototype.OCA=OCA,o.default.prototype.oc_userconfig=oc_userconfig,o.default.prototype.oc_current_user=oc_current_user;var Se=new o.default({router:Gt,store:Ae,render:function(t){return t(f)}}).$mount("#content")}]);
//# sourceMappingURL=settings-vue.js.map \ No newline at end of file