diff options
Diffstat (limited to 'settings/js/main.js')
-rw-r--r-- | settings/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/main.js b/settings/js/main.js index f2e0e34bb67..f16a9aeddf2 100644 --- a/settings/js/main.js +++ b/settings/js/main.js @@ -40,12 +40,12 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document,r=["Edge","Triden * vue-router v3.0.1 * (c) 2017 Evan You * @license MIT - */function l(t,e){0}function f(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,i=e.parent,o=e.data;o.routerView=!0;for(var s=i.$createElement,a=n.name,u=i.$route,c=i._routerViewCache||(i._routerViewCache={}),l=0,f=!1;i&&i._routerRoot!==i;)i.$vnode&&i.$vnode.data.routerView&&l++,i._inactive&&(f=!0),i=i.$parent;if(o.routerViewDepth=l,f)return s(c[a],o,r);var p=u.matched[l];if(!p)return c[a]=null,s();var d=c[a]=p.components[a];o.registerRouteInstance=function(t,e){var n=p.instances[a];(e&&n!==t||!e&&n===t)&&(p.instances[a]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){p.instances[a]=e.componentInstance};var h=o.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}}(u,p.props&&p.props[a]);if(h){h=o.props=function(t,e){for(var n in e)t[n]=e[n];return t}({},h);var v=o.attrs=o.attrs||{};for(var m in h)d.props&&m in d.props||(v[m]=h[m],delete h[m])}return s(d,o,r)}};var d=/[!'()*]/g,h=function(t){return"%"+t.charCodeAt(0).toString(16)},v=/%2C/g,m=function(t){return encodeURIComponent(t).replace(d,h).replace(v,",")},g=decodeURIComponent;function y(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=g(n.shift()),i=n.length>0?g(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),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 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 _=/\/?$/;function w(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=x(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:O(e,i),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(s.redirectedFrom=O(n,i)),Object.freeze(s)}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 C=w(null,{path:"/"});function O(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||b)(r)+i}function S(t,e){return e===C?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&t.hash===e.hash&&A(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&A(t.query,e.query)&&A(t.params,e.params)))}function A(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],i=e[n];return"object"==typeof r&&"object"==typeof i?A(r,i):String(r)===String(i)})}var k,E=[String,Object],L=[String,Array],T={name:"router-link",props:{to:{type:E,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:L,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,u={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=o.path?w(null,o,null,n):s;u[h]=S(r,v),u[d]=this.exact?u[h]:function(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!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){P(t)&&(e.replace?n.replace(o):n.push(o))},g={click:P};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=m}):g[this.event]=m;var y={class:u};if("a"===this.tag)y.on=g,y.attrs={href:a};else{var b=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(b){b.isStatic=!1;var x=k.util.extend;(b.data=x({},b.data)).on=g,(b.data.attrs=x({},b.data.attrs)).href=a}else y.on=g}return t(this.tag,y,this.$slots.default)}};function P(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 j(t){if(!j.installed||k!==t){j.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",p),t.component("router-link",T);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var N="undefined"!=typeof window;function I(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function M(t){return t.replace(/\/\//g,"/")}var U=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},D=X,F=H,R=function(t,e){return z(H(t,e))},B=z,G=J,V=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function H(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=V.exec(t));){var u=n[0],c=n[1],l=n.index;if(s+=t.slice(o,l),o=l+u.length,c)s+=c[1];else{var f=t[o],p=n[2],d=n[3],h=n[4],v=n[5],m=n[6],g=n[7];s&&(r.push(s),s="");var y=null!=p&&null!=f&&f!==p,b="+"===m||"*"===m,_="?"===m||"*"===m,w=n[2]||a,x=h||v;r.push({name:d||i++,prefix:p||"",delimiter:w,optional:_,repeat:b,partial:y,asterisk:!!g,pattern:x?Y(x):g?".*":"[^"+W(w)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function q(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 i="",o=n||{},s=(r||{}).pretty?q:encodeURIComponent,a=0;a<t.length;a++){var u=t[a];if("string"!=typeof u){var c,l=o[u.name];if(null==l){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(U(l)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<l.length;f++){if(c=s(l[f]),!e[a].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(c)+"`");i+=(0===f?u.prefix:u.delimiter)+c}}else{if(c=u.asterisk?encodeURI(l).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):s(l),!e[a].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+c+'"');i+=u.prefix+c}}else i+=u}return i}}function W(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Y(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){return t.keys=e,t}function Q(t){return t.sensitive?"":"i"}function J(t,e,n){U(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=W(a);else{var u=W(a.prefix),c="(?:"+a.pattern+")";e.push(a),a.repeat&&(c+="(?:"+u+c+")*"),o+=c=a.optional?a.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")"}}var l=W(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",K(new RegExp("^"+o,Q(n)),e)}function X(t,e,n){return U(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):U(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(X(t[i],e,n).source);return K(new RegExp("(?:"+r.join("|")+")",Q(n)),e)}(t,e,n):function(t,e,n){return J(H(t,n),e,n)}(t,e,n)}D.parse=F,D.compile=R,D.tokensToFunction=B,D.tokensToRegExp=G;var Z=Object.create(null);function tt(t,e,n){try{return(Z[t]||(Z[t]=D.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}function et(t,e,n,r){var i=e||[],o=n||Object.create(null),s=r||Object.create(null);t.forEach(function(t){!function t(e,n,r,i,o,s){var a=i.path;var u=i.name;0;var c=i.pathToRegexpOptions||{};var l=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return M(e.path+"/"+t)}(a,o,c.strict);"boolean"==typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var f={path:l,regex:function(t,e){var n=D(t,[],e);0;return n}(l,c),components:i.components||{default:i.component},instances:{},name:u,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach(function(i){var o=s?M(s+"/"+i.path):void 0;t(e,n,r,i,f,o)});if(void 0!==i.alias){var p=Array.isArray(i.alias)?i.alias:[i.alias];p.forEach(function(s){var a={path:s,children:i.children};t(e,n,r,a,o,f.path||"/")})}n[f.path]||(e.push(f.path),n[f.path]=f);u&&(r[u]||(r[u]=f))}(i,o,s,t)});for(var a=0,u=i.length;a<u;a++)"*"===i[a]&&(i.push(i.splice(a,1)[0]),u--,a--);return{pathList:i,pathMap:o,nameMap:s}}function nt(t,e,n,r){var i="string"==typeof t?{path:t}:t;if(i.name||i._normalized)return i;if(!i.path&&i.params&&e){(i=rt({},i))._normalized=!0;var o=rt(rt({},e.params),i.params);if(e.name)i.name=e.name,i.params=o;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;i.path=tt(s,o,e.path)}else 0;return i}var a=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),u=e&&e.path||"/",c=a.path?I(a.path,u,n||i.append):u,l=function(t,e,n){void 0===e&&(e={});var r,i=n||y;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(a.query,i.query,r&&r.options.parseQuery),f=i.hash||a.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:l,hash:f}}function rt(t,e){for(var n in e)t[n]=e[n];return t}function it(t,e){var n=et(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var a=nt(t,n,!1,e),c=a.name;if(c){var l=o[c];if(!l)return u(null,a);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in a.params)&&f.indexOf(p)>-1&&(a.params[p]=n.params[p]);if(l)return a.path=tt(l.path,a.params),u(l,a,s)}else if(a.path){a.params={};for(var d=0;d<r.length;d++){var h=r[d],v=i[h];if(ot(v.regex,a.path,a.params))return u(v,a,s)}}return u(null,a)}function a(t,n){var r=t.redirect,i="function"==typeof r?r(w(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return u(null,n);var a=i,c=a.name,l=a.path,f=n.query,p=n.hash,d=n.params;if(f=a.hasOwnProperty("query")?a.query:f,p=a.hasOwnProperty("hash")?a.hash:p,d=a.hasOwnProperty("params")?a.params:d,c){o[c];return s({_normalized:!0,name:c,query:f,hash:p,params:d},void 0,n)}if(l){var h=function(t,e){return I(t,e.parent?e.parent.path:"/",!0)}(l,t);return s({_normalized:!0,path:tt(h,d),query:f,hash:p},void 0,n)}return u(null,n)}function u(t,n,r){return t&&t.redirect?a(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:tt(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,u(o,e)}return u(null,e)}(0,n,t.matchAs):w(t,n,r,e)}return{match:s,addRoutes:function(t){et(t,r,i,o)}}}function ot(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1],a="string"==typeof r[i]?decodeURIComponent(r[i]):r[i];s&&(n[s.name]=a)}return!0}var st=Object.create(null);function at(){window.history.replaceState({key:bt()},""),window.addEventListener("popstate",function(t){var e;ct(),t.state&&t.state.key&&(e=t.state.key,gt=e)})}function ut(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick(function(){var t=function(){var t=bt();if(t)return st[t]}(),o=i(e,n,r?t:null);o&&("function"==typeof o.then?o.then(function(e){dt(e,t)}).catch(function(t){0}):dt(o,t))})}}function ct(){var t=bt();t&&(st[t]={x:window.pageXOffset,y:window.pageYOffset})}function lt(t){return pt(t.x)||pt(t.y)}function ft(t){return{x:pt(t.x)?t.x:window.pageXOffset,y:pt(t.y)?t.y:window.pageYOffset}}function pt(t){return"number"==typeof t}function dt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=document.querySelector(t.selector);if(i){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}}(i,o={x:pt((n=o).x)?n.x:0,y:pt(n.y)?n.y:0})}else lt(t)&&(e=ft(t))}else r&<(t)&&(e=ft(t));e&&window.scrollTo(e.x,e.y)}var ht,vt=N&&((-1===(ht=window.navigator.userAgent).indexOf("Android 2.")&&-1===ht.indexOf("Android 4.0")||-1===ht.indexOf("Mobile Safari")||-1!==ht.indexOf("Chrome")||-1!==ht.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),mt=N&&window.performance&&window.performance.now?window.performance:Date,gt=yt();function yt(){return mt.now().toFixed(3)}function bt(){return gt}function _t(t,e){ct();var n=window.history;try{e?n.replaceState({key:gt},"",t):(gt=yt(),n.pushState({key:gt},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function wt(t){_t(t,!0)}function xt(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function Ct(t){return function(e,n,r){var i=!1,o=0,s=null;Ot(t,function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var u,c=kt(function(e){var i;((i=e).__esModule||At&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:k.extend(e),n.components[a]=e,--o<=0&&r()}),l=kt(function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=f(t)?t:new Error(e),r(s))});try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var p=u.component;p&&"function"==typeof p.then&&p.then(c,l)}}}),i||r()}}function Ot(t,e){return St(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function St(t){return Array.prototype.concat.apply([],t)}var At="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function kt(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 Et=function(t,e){this.router=t,this.base=function(t){if(!t)if(N){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=C,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function $t(t,e,n,r){var i=Ot(t,function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=k.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map(function(t){return n(t,r,i,o)}):n(s,r,i,o)});return St(r?i.reverse():i)}function Lt(t,e){if(e)return function(){return t.apply(e,arguments)}}Et.prototype.listen=function(t){this.cb=t},Et.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Et.prototype.onError=function(t){this.errorCbs.push(t)},Et.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Et.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){f(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):(l(),console.error(t))),n&&n(t)};if(S(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o();var s=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),a=s.updated,u=s.deactivated,c=s.activated,p=[].concat(function(t){return $t(t,"beforeRouteLeave",Lt,!0)}(u),this.router.beforeHooks,function(t){return $t(t,"beforeRouteUpdate",Lt)}(a),c.map(function(t){return t.beforeEnter}),Ct(c));this.pending=t;var d=function(e,n){if(r.pending!==t)return o();try{e(t,i,function(t){!1===t||f(t)?(r.ensureURL(!0),o(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(o(),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)})}catch(t){o(t)}};xt(p,d,function(){var n=[];xt(function(t,e,n){return $t(t,"beforeRouteEnter",function(t,r,i,o){return function(t,e,n,r,i){return function(o,s,a){return t(o,s,function(t){a(t),"function"==typeof t&&r.push(function(){!function t(e,n,r,i){n[r]?e(n[r]):i()&&setTimeout(function(){t(e,n,r,i)},16)}(t,e.instances,n,i)})})}}(t,i,o,e,n)})}(c,n,function(){return r.current===t}).concat(r.router.resolveHooks),d,function(){if(r.pending!==t)return o();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},Et.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 i=e.options.scrollBehavior;i&&at();var o=Pt(this.base);window.addEventListener("popstate",function(t){var n=r.current,s=Pt(r.base);r.current===C&&s===o||r.transitionTo(s,function(t){i&&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,i=this.current;this.transitionTo(t,function(t){_t(M(r.base+t.fullPath)),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){wt(M(r.base+t.fullPath)),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Pt(this.base)!==this.current.fullPath){var e=M(this.base+this.current.fullPath);t?_t(e):wt(e)}},e.prototype.getCurrentLocation=function(){return Pt(this.base)},e}(Et);function Pt(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 jt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Pt(t);if(!/^\/#/.test(e))return window.location.replace(M(t+"/#"+e)),!0}(this.base)||Nt()}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&&at(),window.addEventListener(vt?"popstate":"hashchange",function(){var e=t.current;Nt()&&t.transitionTo(It(),function(r){n&&ut(t.router,r,e,!0),vt||Dt(r.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){Ut(t.fullPath),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){Dt(t.fullPath),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;It()!==e&&(t?Ut(e):Dt(e))},e.prototype.getCurrentLocation=function(){return It()},e}(Et);function Nt(){var t=It();return"/"===t.charAt(0)||(Dt("/"+t),!1)}function It(){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 Ut(t){vt?_t(Mt(t)):window.location.hash=t}function Dt(t){vt?wt(Mt(t)):window.location.replace(Mt(t))}var Ft=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}(Et),Rt=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"),N||(e="abstract"),this.mode=e,e){case"history":this.history=new Tt(this,t.base);break;case"hash":this.history=new jt(this,t.base,this.fallback);break;case"abstract":this.history=new Ft(this,t.base);break;default:0}},Bt={currentRoute:{configurable:!0}};function Gt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Rt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Bt.currentRoute.get=function(){return this.history&&this.history.current},Rt.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 jt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Rt.prototype.beforeEach=function(t){return Gt(this.beforeHooks,t)},Rt.prototype.beforeResolve=function(t){return Gt(this.resolveHooks,t)},Rt.prototype.afterEach=function(t){return Gt(this.afterHooks,t)},Rt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Rt.prototype.onError=function(t){this.history.onError(t)},Rt.prototype.push=function(t,e,n){this.history.push(t,e,n)},Rt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Rt.prototype.go=function(t){this.history.go(t)},Rt.prototype.back=function(){this.go(-1)},Rt.prototype.forward=function(){this.go(1)},Rt.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]})})):[]},Rt.prototype.resolve=function(t,e,n){var r=nt(t,e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?M(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Rt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==C&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Rt.prototype,Bt),Rt.install=j,Rt.version="3.0.1",N&&window.Vue&&window.Vue.use(Rt);var Vt=Rt,Ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("app-navigation",{attrs:{menu:t.menu}},[n("template",{slot:"settings-content"},[n("div",[n("p",[t._v(t._s(t.t("settings","Default quota :")))]),t._v(" "),n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.defaultQuota,options:t.quotaOptions,"tag-placeholder":"create",placeholder:t.t("settings","Select default quota"),label:"label","track-by":"id",allowEmpty:!1,taggable:!0},on:{tag:t.validateQuota,input:t.setDefaultQuota}})],1),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showLanguages,expression:"showLanguages"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showLanguages"},domProps:{checked:Array.isArray(t.showLanguages)?t._i(t.showLanguages,null)>-1:t.showLanguages},on:{change:function(e){var n=t.showLanguages,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showLanguages=n.concat([null])):o>-1&&(t.showLanguages=n.slice(0,o).concat(n.slice(o+1)))}else t.showLanguages=i}}}),t._v(" "),n("label",{attrs:{for:"showLanguages"}},[t._v(t._s(t.t("settings","Show Languages")))])]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showLastLogin,expression:"showLastLogin"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showLastLogin"},domProps:{checked:Array.isArray(t.showLastLogin)?t._i(t.showLastLogin,null)>-1:t.showLastLogin},on:{change:function(e){var n=t.showLastLogin,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showLastLogin=n.concat([null])):o>-1&&(t.showLastLogin=n.slice(0,o).concat(n.slice(o+1)))}else t.showLastLogin=i}}}),t._v(" "),n("label",{attrs:{for:"showLastLogin"}},[t._v(t._s(t.t("settings","Show last login")))])]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showUserBackend,expression:"showUserBackend"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showUserBackend"},domProps:{checked:Array.isArray(t.showUserBackend)?t._i(t.showUserBackend,null)>-1:t.showUserBackend},on:{change:function(e){var n=t.showUserBackend,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showUserBackend=n.concat([null])):o>-1&&(t.showUserBackend=n.slice(0,o).concat(n.slice(o+1)))}else t.showUserBackend=i}}}),t._v(" "),n("label",{attrs:{for:"showUserBackend"}},[t._v(t._s(t.t("settings","Show user backend")))])]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showStoragePath,expression:"showStoragePath"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showStoragePath"},domProps:{checked:Array.isArray(t.showStoragePath)?t._i(t.showStoragePath,null)>-1:t.showStoragePath},on:{change:function(e){var n=t.showStoragePath,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showStoragePath=n.concat([null])):o>-1&&(t.showStoragePath=n.slice(0,o).concat(n.slice(o+1)))}else t.showStoragePath=i}}}),t._v(" "),n("label",{attrs:{for:"showStoragePath"}},[t._v(t._s(t.t("settings","Show storage path")))])])])],2),t._v(" "),n("user-list",{attrs:{users:t.users,showConfig:t.showConfig,selectedGroup:t.selectedGroup}})],1)};Ht._withStripped=!0;var qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"icon-loading":t.menu.loading},attrs:{id:"app-navigation"}},[t.menu.new?n("div",{staticClass:"app-navigation-new"},[n("button",{class:t.menu.new.icon,attrs:{type:"button",id:t.menu.new.id},on:{click:t.menu.new.action}},[t._v(t._s(t.menu.new.text))])]):t._e(),t._v(" "),n("ul",{attrs:{id:t.menu.id}},t._l(t.menu.items,function(t){return n("navigation-item",{key:t.key,attrs:{item:t}})})),t._v(" "),t.$slots["settings-content"]?n("div",{attrs:{id:"app-settings"}},[n("div",{attrs:{id:"app-settings-header"}},[n("button",{staticClass:"settings-button",attrs:{"data-apps-slide-toggle":"#app-settings-content"}},[t._v(t._s(t.t("settings","Settings")))])]),t._v(" "),n("div",{attrs:{id:"app-settings-content"}},[t._t("settings-content")],2)]):t._e()])};qt._withStripped=!0;var zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav-element",t._b({class:[{"icon-loading-small":t.item.loading,open:t.item.opened,collapsible:t.item.collapsible&&t.item.children&&t.item.children.length>0},t.item.classes],attrs:{id:t.item.id}},"nav-element",t.navElement(t.item),!1),[t.item.bullet?n("div",{staticClass:"app-navigation-entry-bullet",style:{backgroundColor:t.item.bullet}}):t._e(),t._v(" "),n("a",{class:t.item.icon,attrs:{href:t.item.href?t.item.href:"#"},on:{click:t.toggleCollapse}},[t.item.iconUrl?n("img",{attrs:{alt:t.item.text,src:t.item.iconUrl}}):t._e(),t._v("\n\t\t"+t._s(t.item.text)+"\n\t")]),t._v(" "),t.item.utils?n("div",{staticClass:"app-navigation-entry-utils"},[n("ul",[Number.isInteger(t.item.utils.counter)?n("li",{staticClass:"app-navigation-entry-utils-counter"},[t._v(t._s(t.item.utils.counter))]):t._e(),t._v(" "),t.item.utils.actions&&1===t.item.utils.actions.length&&Number.isInteger(t.item.utils.counter)?n("li",{staticClass:"app-navigation-entry-utils-menu-button"},[n("button",{class:t.item.utils.actions[0].icon,attrs:{title:t.item.utils.actions[0].text},on:{click:t.item.utils.actions[0].action}})]):t.item.utils.actions&&2===t.item.utils.actions.length&&!Number.isInteger(t.item.utils.counter)?t._l(t.item.utils.actions,function(t){return n("li",{key:t.action,staticClass:"app-navigation-entry-utils-menu-button"},[n("button",{class:t.icon,attrs:{title:t.text},on:{click:t.action}})])}):t.item.utils.actions&&t.item.utils.actions.length>1&&(Number.isInteger(t.item.utils.counter)||t.item.utils.actions.length>2)?n("li",{staticClass:"app-navigation-entry-utils-menu-button"},[n("button",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMenu,expression:"hideMenu"}],on:{click:t.showMenu}})]):t._e()],2)]):t._e(),t._v(" "),t.item.utils&&t.item.utils.actions&&t.item.utils.actions.length>1&&(Number.isInteger(t.item.utils.counter)||t.item.utils.actions.length>2)?n("div",{staticClass:"app-navigation-entry-menu",class:{open:t.openedMenu}},[n("popover-menu",{attrs:{menu:t.item.utils.actions}})],1):t._e(),t._v(" "),t.item.undo?n("div",{staticClass:"app-navigation-entry-deleted"},[n("div",{staticClass:"app-navigation-entry-deleted-description"},[t._v(t._s(t.item.undo.text))]),t._v(" "),n("button",{staticClass:"app-navigation-entry-deleted-button icon-history",attrs:{title:t.t("settings","Undo")}})]):t._e(),t._v(" "),t.item.edit?n("div",{staticClass:"app-navigation-entry-edit"},[n("form",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.item.text,expression:"item.text"}],attrs:{type:"text"},domProps:{value:t.item.text},on:{input:function(e){e.target.composing||t.$set(t.item,"text",e.target.value)}}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}}),t._v(" "),n("input",{staticClass:"icon-close",attrs:{type:"submit",value:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.cancelEdit(e)}}})])]):t._e(),t._v(" "),t.item.children?n("ul",t._l(t.item.children,function(t,e){return n("navigation-item",{key:e,attrs:{item:t}})})):t._e()])};zt._withStripped=!0;var Wt=function(){var t=this.$createElement,e=this._self._c||t;return e("ul",this._l(this.menu,function(t,n){return e("popover-item",{key:n,attrs:{item:t}})}))};Wt._withStripped=!0;var Yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",[t.item.href?n("a",{attrs:{href:t.item.href?t.item.href:"#"},on:{click:t.item.action}},[n("span",{class:t.item.icon}),t._v(" "),t.item.text?n("span",[t._v(t._s(t.item.text))]):t.item.longtext?n("p",[t._v(t._s(t.item.longtext))]):t._e()]):t.item.action?n("button",{on:{click:t.item.action}},[n("span",{class:t.item.icon}),t._v(" "),t.item.text?n("span",[t._v(t._s(t.item.text))]):t.item.longtext?n("p",[t._v(t._s(t.item.longtext))]):t._e()]):n("span",[n("span",{class:t.item.icon}),t._v(" "),t.item.text?n("span",[t._v(t._s(t.item.text))]):t.item.longtext?n("p",[t._v(t._s(t.item.longtext))]):t._e()])])};Yt._withStripped=!0;var Kt=a({props:["item"]},Yt,[],!1,null,null,null);Kt.options.__file="src/components/popoverMenu/popoverItem.vue";var Qt=a({name:"popoverMenu",props:["menu"],components:{popoverItem:Kt.exports}},Wt,[],!1,null,null,null);Qt.options.__file="src/components/popoverMenu.vue";var Jt=Qt.exports,Xt=r(53),Zt=r.n(Xt),te=a({name:"navigationItem",props:["item"],components:{popoverMenu:Jt},directives:{ClickOutside:Zt.a},data:function(){return{openedMenu:!1}},methods:{showMenu:function(){this.openedMenu=!0},hideMenu:function(){this.openedMenu=!1},toggleCollapse:function(){i.a.set(this.item,"opened",!this.item.opened||!this.item.opened)},cancelEdit:function(){Array.isArray(this.item.classes)&&(this.item.classes=this.item.classes.filter(function(t){return"editing"!==t}))},navElement:function(t){return t.href?{is:"li"}:{is:"router-link",tag:"li",to:t.router,exact:!0}}},mounted:function(){this.popupItem=this.$el}},zt,[],!1,null,null,null);te.options.__file="src/components/appNavigation/navigationItem.vue";var ee=a({name:"appNavigation",props:["menu"],components:{navigationItem:te.exports}},qt,[],!1,null,null,null);ee.options.__file="src/components/appNavigation.vue";var ne=ee.exports,re=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-list-grid",attrs:{id:"app-content"},on:{"&scroll":function(e){return t.onScroll(e)}}},[n("div",{staticClass:"row",class:{sticky:t.scrolled&&!t.showConfig.showNewUserForm},attrs:{id:"grid-header"}},[n("div",{staticClass:"avatar",attrs:{id:"headerAvatar"}}),t._v(" "),n("div",{staticClass:"name",attrs:{id:"headerName"}},[t._v(t._s(t.t("settings","Username")))]),t._v(" "),n("div",{staticClass:"displayName",attrs:{id:"headerDisplayName"}},[t._v(t._s(t.t("settings","Full name")))]),t._v(" "),n("div",{staticClass:"password",attrs:{id:"headerPassword"}},[t._v(t._s(t.t("settings","Password")))]),t._v(" "),n("div",{staticClass:"mailAddress",attrs:{id:"headerAddress"}},[t._v(t._s(t.t("settings","Email")))]),t._v(" "),n("div",{staticClass:"groups",attrs:{id:"headerGroups"}},[t._v(t._s(t.t("settings","Groups")))]),t._v(" "),t.subAdminsGroups.length>0&&t.settings.isAdmin?n("div",{staticClass:"subadmins",attrs:{id:"headerSubAdmins"}},[t._v(t._s(t.t("settings","Group admin for")))]):t._e(),t._v(" "),n("div",{staticClass:"quota",attrs:{id:"headerQuota"}},[t._v(t._s(t.t("settings","Quota")))]),t._v(" "),t.showConfig.showLanguages?n("div",{staticClass:"languages",attrs:{id:"headerLanguages"}},[t._v(t._s(t.t("settings","Languages")))]):t._e(),t._v(" "),t.showConfig.showStoragePath?n("div",{staticClass:"headerStorageLocation storageLocation"},[t._v(t._s(t.t("settings","Storage location")))]):t._e(),t._v(" "),t.showConfig.showUserBackend?n("div",{staticClass:"headerUserBackend userBackend"},[t._v(t._s(t.t("settings","User backend")))]):t._e(),t._v(" "),t.showConfig.showLastLogin?n("div",{staticClass:"headerLastLogin lastLogin"},[t._v(t._s(t.t("settings","Last login")))]):t._e(),t._v(" "),n("div",{staticClass:"userActions"})]),t._v(" "),n("form",{directives:[{name:"show",rawName:"v-show",value:t.showConfig.showNewUserForm,expression:"showConfig.showNewUserForm"}],staticClass:"row",class:{sticky:t.scrolled&&t.showConfig.showNewUserForm},attrs:{id:"new-user",disabled:t.loading},on:{submit:function(e){return e.preventDefault(),t.createUser(e)}}},[n("div",{class:t.loading?"icon-loading-small":"icon-add"}),t._v(" "),n("div",{staticClass:"name"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.id,expression:"newUser.id"}],attrs:{id:"newusername",type:"text",required:"",placeholder:t.t("settings","User name"),name:"username",autocomplete:"off",autocapitalize:"none",autocorrect:"off",pattern:"[a-zA-Z0-9 _\\.@\\-']+"},domProps:{value:t.newUser.id},on:{input:function(e){e.target.composing||t.$set(t.newUser,"id",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"displayName"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.displayName,expression:"newUser.displayName"}],attrs:{id:"newdisplayname",type:"text",placeholder:t.t("settings","Display name"),name:"displayname",autocomplete:"off",autocapitalize:"none",autocorrect:"off"},domProps:{value:t.newUser.displayName},on:{input:function(e){e.target.composing||t.$set(t.newUser,"displayName",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"password"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.password,expression:"newUser.password"}],attrs:{id:"newuserpassword",type:"password",required:""===t.newUser.mailAddress,placeholder:t.t("settings","Password"),name:"password",autocomplete:"new-password",autocapitalize:"none",autocorrect:"off",minlength:t.minPasswordLength},domProps:{value:t.newUser.password},on:{input:function(e){e.target.composing||t.$set(t.newUser,"password",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"mailAddress"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.mailAddress,expression:"newUser.mailAddress"}],attrs:{id:"newemail",type:"email",required:""===t.newUser.password,placeholder:t.t("settings","Mail address"),name:"email",autocomplete:"off",autocapitalize:"none",autocorrect:"off"},domProps:{value:t.newUser.mailAddress},on:{input:function(e){e.target.composing||t.$set(t.newUser,"mailAddress",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"groups"},[t.settings.isAdmin?t._e():n("input",{attrs:{type:"text",tabindex:"-1",id:"newgroups",required:!t.settings.isAdmin},domProps:{value:t.newUser.groups}}),t._v(" "),n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.groups,placeholder:t.t("settings","Add user in group"),label:"name","track-by":"id",multiple:!0,"close-on-select":!1,allowEmpty:t.settings.isAdmin},model:{value:t.newUser.groups,callback:function(e){t.$set(t.newUser,"groups",e)},expression:"newUser.groups"}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1),t._v(" "),t.subAdminsGroups.length>0&&t.settings.isAdmin?n("div",{staticClass:"subadmins"},[n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.subAdminsGroups,placeholder:t.t("settings","Set user as admin for"),label:"name","track-by":"id",multiple:!0,"close-on-select":!1},model:{value:t.newUser.subAdminsGroups,callback:function(e){t.$set(t.newUser,"subAdminsGroups",e)},expression:"newUser.subAdminsGroups"}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1):t._e(),t._v(" "),n("div",{staticClass:"quota"},[n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.quotaOptions,placeholder:t.t("settings","Select user quota"),label:"label","track-by":"id",allowEmpty:!1,taggable:!0},on:{tag:t.validateQuota},model:{value:t.newUser.quota,callback:function(e){t.$set(t.newUser,"quota",e)},expression:"newUser.quota"}})],1),t._v(" "),t.showConfig.showLanguages?n("div",{staticClass:"languages"},[n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.languages,placeholder:t.t("settings","Default language"),label:"name","track-by":"code",allowEmpty:!1,"group-values":"languages","group-label":"label"},model:{value:t.newUser.language,callback:function(e){t.$set(t.newUser,"language",e)},expression:"newUser.language"}})],1):t._e(),t._v(" "),t.showConfig.showStoragePath?n("div",{staticClass:"storageLocation"}):t._e(),t._v(" "),t.showConfig.showUserBackend?n("div",{staticClass:"userBackend"}):t._e(),t._v(" "),t.showConfig.showLastLogin?n("div",{staticClass:"lastLogin"}):t._e(),t._v(" "),n("div",{staticClass:"userActions"},[n("input",{staticClass:"button primary icon-checkmark-white has-tooltip",attrs:{type:"submit",id:"newsubmit",value:"",title:t.t("settings","Add a new user")}}),t._v(" "),n("input",{staticClass:"button icon-close has-tooltip",attrs:{type:"reset",id:"newreset",value:"",title:t.t("settings","Cancel and reset the form")},on:{click:t.resetForm}})])]),t._v(" "),t._l(t.filteredUsers,function(e,r){return n("user-row",{key:r,attrs:{user:e,settings:t.settings,showConfig:t.showConfig,groups:t.groups,subAdminsGroups:t.subAdminsGroups,quotaOptions:t.quotaOptions,languages:t.languages}})}),t._v(" "),n("infinite-loading",{ref:"infiniteLoading",on:{infinite:t.infiniteHandler}},[n("div",{attrs:{slot:"spinner"},slot:"spinner"},[n("div",{staticClass:"users-icon-loading icon-loading"})]),t._v(" "),n("div",{attrs:{slot:"no-more"},slot:"no-more"},[n("div",{staticClass:"users-list-end"},[t._v("— "+t._s(t.t("settings","no more results"))+" —")])]),t._v(" "),n("div",{attrs:{slot:"no-results"},slot:"no-results"},[n("div",{attrs:{id:"emptycontent"}},[n("div",{staticClass:"icon-contacts-dark"}),t._v(" "),n("h2",[t._v(t._s(t.t("settings","No users in here")))])])])])],2)};re._withStripped=!0;var ie=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1===Object.keys(t.user).length?n("div",{staticClass:"row"},[n("div",{staticClass:"avatar",class:{"icon-loading-small":t.loading.delete||t.loading.disable}},[t.loading.delete||t.loading.disable?t._e():n("img",{attrs:{alt:"",width:"32",height:"32",src:t.generateAvatar(t.user.id,32),srcset:t.generateAvatar(t.user.id,64)+" 2x, "+t.generateAvatar(t.user.id,128)+" 4x"}})]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(t.user.id))]),t._v(" "),n("div",{staticClass:"obfuscated"},[t._v(t._s(t.t("settings","You do not have permissions to see the details of this user")))])]):n("div",{staticClass:"row",class:{disabled:t.loading.delete||t.loading.disable}},[n("div",{staticClass:"avatar",class:{"icon-loading-small":t.loading.delete||t.loading.disable}},[t.loading.delete||t.loading.disable?t._e():n("img",{attrs:{alt:"",width:"32",height:"32",src:t.generateAvatar(t.user.id,32),srcset:t.generateAvatar(t.user.id,64)+" 2x, "+t.generateAvatar(t.user.id,128)+" 4x"}})]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(t.user.id))]),t._v(" "),n("form",{staticClass:"displayName",class:{"icon-loading-small":t.loading.displayName},on:{submit:function(e){return e.preventDefault(),t.updateDisplayName(e)}}},[n("input",{ref:"displayName",attrs:{id:"displayName"+t.user.id+t.rand,type:"text",disabled:t.loading.displayName||t.loading.all,autocomplete:"new-password",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},domProps:{value:t.user.displayname}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}})]),t._v(" "),t.settings.canChangePassword?n("form",{staticClass:"password",class:{"icon-loading-small":t.loading.password},on:{submit:function(e){return e.preventDefault(),t.updatePassword(e)}}},[n("input",{ref:"password",attrs:{id:"password"+t.user.id+t.rand,type:"password",required:"",disabled:t.loading.password||t.loading.all,minlength:t.minPasswordLength,value:"",placeholder:t.t("settings","New password"),autocomplete:"new-password",autocorrect:"off",autocapitalize:"off",spellcheck:"false"}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}})]):n("div"),t._v(" "),n("form",{staticClass:"mailAddress",class:{"icon-loading-small":t.loading.mailAddress},on:{submit:function(e){return e.preventDefault(),t.updateEmail(e)}}},[n("input",{ref:"mailAddress",attrs:{id:"mailAddress"+t.user.id+t.rand,type:"email",disabled:t.loading.mailAddress||t.loading.all,autocomplete:"new-password",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},domProps:{value:t.user.email}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}})]),t._v(" "),n("div",{staticClass:"groups",class:{"icon-loading-small":t.loading.groups}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userGroups,options:t.groups,disabled:t.loading.groups||t.loading.all,"tag-placeholder":"create",placeholder:t.t("settings","Add user in group"),label:"name","track-by":"id",limit:2,multiple:!0,taggable:t.settings.isAdmin,closeOnSelect:!1},on:{tag:t.createGroup,select:t.addUserGroup,remove:t.removeUserGroup}},[n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.formatGroupsTitle(t.userGroups),expression:"formatGroupsTitle(userGroups)",modifiers:{auto:!0}}],staticClass:"multiselect__limit",attrs:{slot:"limit"},slot:"limit"},[t._v("+"+t._s(t.userGroups.length-2))]),t._v(" "),n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1),t._v(" "),t.subAdminsGroups.length>0&&t.settings.isAdmin?n("div",{staticClass:"subadmins",class:{"icon-loading-small":t.loading.subadmins}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userSubAdminsGroups,options:t.subAdminsGroups,disabled:t.loading.subadmins||t.loading.all,placeholder:t.t("settings","Set user as admin for"),label:"name","track-by":"id",limit:2,multiple:!0,closeOnSelect:!1},on:{select:t.addUserSubAdmin,remove:t.removeUserSubAdmin}},[n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.formatGroupsTitle(t.userSubAdminsGroups),expression:"formatGroupsTitle(userSubAdminsGroups)",modifiers:{auto:!0}}],staticClass:"multiselect__limit",attrs:{slot:"limit"},slot:"limit"},[t._v("+"+t._s(t.userSubAdminsGroups.length-2))]),t._v(" "),n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1):t._e(),t._v(" "),n("div",{staticClass:"quota",class:{"icon-loading-small":t.loading.quota}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userQuota,options:t.quotaOptions,disabled:t.loading.quota||t.loading.all,"tag-placeholder":"create",placeholder:t.t("settings","Select user quota"),label:"label","track-by":"id",allowEmpty:!1,taggable:!0},on:{tag:t.validateQuota,input:t.setUserQuota}}),t._v(" "),n("progress",{staticClass:"quota-user-progress",class:{warn:t.usedQuota>80},attrs:{max:"100"},domProps:{value:t.usedQuota}})],1),t._v(" "),t.showConfig.showLanguages?n("div",{staticClass:"languages",class:{"icon-loading-small":t.loading.languages}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userLanguage,options:t.languages,disabled:t.loading.languages||t.loading.all,placeholder:t.t("settings","No language set"),label:"name","track-by":"code",allowEmpty:!1,"group-values":"languages","group-label":"label"},on:{input:t.setUserLanguage}})],1):t._e(),t._v(" "),t.showConfig.showStoragePath?n("div",{staticClass:"storageLocation"},[t._v(t._s(t.user.storageLocation))]):t._e(),t._v(" "),t.showConfig.showUserBackend?n("div",{staticClass:"userBackend"},[t._v(t._s(t.user.backend))]):t._e(),t._v(" "),t.showConfig.showLastLogin?n("div",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.user.lastLogin>0?t.OC.Util.formatDate(t.user.lastLogin):"",expression:"user.lastLogin>0 ? OC.Util.formatDate(user.lastLogin) : ''",modifiers:{auto:!0}}],staticClass:"lastLogin"},[t._v("\n\t\t"+t._s(t.user.lastLogin>0?t.OC.Util.relativeModifiedDate(t.user.lastLogin):t.t("settings","Never"))+"\n\t")]):t._e(),t._v(" "),n("div",{staticClass:"userActions"},[t.OC.currentUser===t.user.id||"admin"===t.user.id||t.loading.all?t._e():n("div",{staticClass:"toggleUserActions"},[n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMenu,expression:"hideMenu"}],staticClass:"icon-more",on:{click:t.toggleMenu}}),t._v(" "),n("div",{staticClass:"popovermenu",class:{open:t.openedMenu}},[n("popover-menu",{attrs:{menu:t.userActions}})],1)])])])};ie._withStripped=!0;var oe=r(9),se=r.n(oe),ae=r(107),ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i.a.use(ae.a);var ce=a({name:"userRow",props:["user","settings","groups","subAdminsGroups","quotaOptions","showConfig","languages"],components:{popoverMenu:Jt,Multiselect:se.a},directives:{ClickOutside:Zt.a},mounted:function(){},data:function(){return{rand:parseInt(1e3*Math.random()),openedMenu:!1,loading:{all:!1,displayName:!1,password:!1,mailAddress:!1,groups:!1,subadmins:!1,quota:!1,delete:!1,disable:!1,languages:!1}}},computed:{userActions:function(){return[{icon:"icon-delete",text:t("settings","Delete user"),action:this.deleteUser},{icon:this.user.enabled?"icon-close":"icon-add",text:this.user.enabled?t("settings","Disable user"):t("settings","Enable user"),action:this.enableDisableUser}]},userGroups:function(){var t=this,e=this.groups.filter(function(e){return t.user.groups.includes(e.id)});return e},userSubAdminsGroups:function(){var t=this,e=this.subAdminsGroups.filter(function(e){return t.user.subadmin.includes(e.id)});return e},usedQuota:function(){var t=this.user.quota.quota;t>0?t=Math.min(100,Math.round(this.user.quota.used/t*100)):t=95*(1-1/(this.user.quota.used/(10*Math.pow(2,30))+1));return isNaN(t)?0:t},userQuota:function(){if(this.user.quota.quota>0){var t=OC.Util.humanFileSize(this.user.quota.quota),e=this.quotaOptions.find(function(e){return e.id===t});return e||{id:t,label:t}}return 0===this.user.quota.quota||"default"===this.user.quota.quota?this.quotaOptions[0]:this.quotaOptions[1]},minPasswordLength:function(){return this.$store.getters.getPasswordPolicyMinLength},userLanguage:function(){var t=this,e=this.languages[0].languages.concat(this.languages[1].languages).find(function(e){return e.code===t.user.language});return"object"!==(void 0===e?"undefined":ue(e))&&""!==this.user.language?{code:this.user.language,name:this.user.language}:""!==this.user.language&&e}},methods:{toggleMenu:function(){this.openedMenu=!this.openedMenu},hideMenu:function(){this.openedMenu=!1},generateAvatar:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return OC.generateUrl("/avatar/{user}/{size}?v={version}",{user:t,size:e,version:oc_userconfig.avatar.version})},formatGroupsTitle:function(t){return t.map(function(t){return t.name}).slice(2).join(", ")},deleteUser:function(){var t=this;this.loading.delete=!0,this.loading.all=!0;var e=this.user.id;return this.$store.dispatch("deleteUser",{userid:e}).then(function(){t.loading.delete=!1,t.loading.all=!1})},enableDisableUser:function(){var t=this;this.loading.delete=!0,this.loading.all=!0;var e=this.user.id,n=!this.user.enabled;return this.$store.dispatch("enableDisableUser",{userid:e,enabled:n}).then(function(){t.loading.delete=!1,t.loading.all=!1})},updateDisplayName:function(){var t=this,e=this.$refs.displayName.value;this.loading.displayName=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"displayname",value:e}).then(function(){t.loading.displayName=!1,t.$refs.displayName.value=e})},updatePassword:function(){var t=this,e=this.$refs.password.value;this.loading.password=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"password",value:e}).then(function(){t.loading.password=!1,t.$refs.password.value=""})},updateEmail:function(){var t=this,e=this.$refs.mailAddress.value;this.loading.mailAddress=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"email",value:e}).then(function(){t.loading.mailAddress=!1,t.$refs.mailAddress.value=e})},createGroup:function(t){var e=this;return this.loading={groups:!0,subadmins:!0},this.$store.dispatch("addGroup",t).then(function(){e.loading={groups:!1,subadmins:!1};var n=e.user.id;e.$store.dispatch("addUserGroup",{userid:n,gid:t})}).catch(function(){e.loading={groups:!1,subadmins:!1}}),this.$store.getters.getGroups[this.groups.length]},addUserGroup:function(t){var e=this;this.loading.groups=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("addUserGroup",{userid:n,gid:r}).then(function(){return e.loading.groups=!1})},removeUserGroup:function(t){var e=this;this.loading.groups=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("removeUserGroup",{userid:n,gid:r}).then(function(){e.loading.groups=!1,e.$route.params.selectedGroup===r&&e.$store.commit("deleteUser",n)}).catch(function(){e.loading.groups=!1})},addUserSubAdmin:function(t){var e=this;this.loading.subadmins=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("addUserSubAdmin",{userid:n,gid:r}).then(function(){return e.loading.subadmins=!1})},removeUserSubAdmin:function(t){var e=this;this.loading.subadmins=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("removeUserSubAdmin",{userid:n,gid:r}).then(function(){return e.loading.subadmins=!1})},setUserQuota:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"none";return this.loading.quota=!0,e=e.id?e.id:e,this.$store.dispatch("setUserData",{userid:this.user.id,key:"quota",value:e}).then(function(){return t.loading.quota=!1}),e},validateQuota:function(t){var e=OC.Util.computerFileSize(t);return 0===e?this.setUserQuota("none"):null!==e&&this.setUserQuota(OC.Util.humanFileSize(OC.Util.computerFileSize(t)))},setUserLanguage:function(t){var e=this;return this.loading.languages=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"language",value:t.code}).then(function(){return e.loading.languages=!1}),t}}},ie,[],!1,null,null,null);ce.options.__file="src/components/userList/userRow.vue";var le=ce.exports,fe=r(106),pe=r.n(fe),de=a({name:"userList",props:["users","showConfig","selectedGroup"],components:{userRow:le,Multiselect:se.a,InfiniteLoading:pe.a},data:function(){var e={id:"none",label:t("settings","Unlimited")},n={id:"default",label:t("settings","Default quota")};return{unlimitedQuota:e,defaultQuota:n,loading:!1,scrolled:!1,newUser:{id:"",displayName:"",password:"",mailAddress:"",groups:[],subAdminsGroups:[],quota:n,language:{code:"en",name:t("settings","Default language")}}}},mounted:function(){this.settings.canChangePassword||OC.Notification.showTemporary(t("settings","Password change is disabled because the master key is disabled")),i.a.set(this.newUser.language,"code",this.settings.defaultLanguage),this.setNewUserDefaultGroup(this.$route.params.selectedGroup)},computed:{settings:function(){return this.$store.getters.getServerData},filteredUsers:function(){if("disabled"===this.selectedGroup){var t=this.users.filter(function(t){return!1===t.enabled});return 0===t.length&&this.$refs.infiniteLoading&&this.$refs.infiniteLoading.isComplete&&(this.$router.push({name:"users"}),this.$refs.infiniteLoading.$emit("$InfiniteLoading:reset")),t}return settings.isAdmin?this.users.filter(function(t){return!1!==t.enabled}):this.users.filter(function(t){return!1!==t.enabled&&t.id!==oc_current_user})},groups:function(){return this.$store.getters.getGroups.filter(function(t){return"disabled"!==t.id}).sort(function(t,e){return t.name.localeCompare(e.name)})},subAdminsGroups:function(){return this.$store.getters.getSubadminGroups},quotaOptions:function(){var t=this.settings.quotaPreset.reduce(function(t,e){return t.concat({id:e,label:e})},[]);return t.unshift(this.unlimitedQuota),t.unshift(this.defaultQuota),t},minPasswordLength:function(){return this.$store.getters.getPasswordPolicyMinLength},usersOffset:function(){return this.$store.getters.getUsersOffset},usersLimit:function(){return this.$store.getters.getUsersLimit},languages:function(){return Array({label:t("settings","Common languages"),languages:this.settings.languages.commonlanguages},{label:t("settings","All languages"),languages:this.settings.languages.languages})}},watch:{selectedGroup:function(t,e){this.$store.commit("resetUsers"),this.$refs.infiniteLoading.$emit("$InfiniteLoading:reset"),this.setNewUserDefaultGroup(t)}},methods:{onScroll:function(t){this.scrolled=t.target.scrollTop>0},validateQuota:function(t){var e=OC.Util.computerFileSize(t);return null!==e&&e>0?(t=OC.Util.humanFileSize(OC.Util.computerFileSize(t)),this.newUser.quota={id:t,label:t}):this.newUser.quota=this.quotaOptions[0]},infiniteHandler:function(t){this.$store.dispatch("getUsers",{offset:this.usersOffset,limit:this.usersLimit,group:"disabled"!==this.selectedGroup?this.selectedGroup:""}).then(function(e){e?t.loaded():t.complete()})},resetForm:function(){Object.assign(this.newUser,this.$options.data.call(this).newUser),this.loading=!1},createUser:function(){var t=this;this.loading=!0,this.$store.dispatch("addUser",{userid:this.newUser.id,password:this.newUser.password,email:this.newUser.mailAddress,groups:this.newUser.groups.map(function(t){return t.id}),subadmin:this.newUser.subAdminsGroups.map(function(t){return t.id}),quota:this.newUser.quota.id,language:this.newUser.language.code}).then(function(){return t.resetForm()}).catch(function(){return t.loading=!1})},setNewUserDefaultGroup:function(t){if(t&&t.length>0){var e=this.groups.find(function(e){return e.id===t});if(e)return void(this.newUser.groups=[e])}this.newUser.groups=[]}}},re,[],!1,null,null,null);de.options.__file="src/components/userList.vue";var he=de.exports,ve=r(40),me=r.n(ve),ge=r(28),ye=r.n(ge),be={headers:{requesttoken:document.getElementsByTagName("head")[0].getAttribute("data-requesttoken")}},_e=function(t){return t.replace(/\/$/,"")},we=function(){return new Promise(function(e,n){var r=void 0,i=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(i),e())}()})},xe=function(t){return ye.a.get(_e(t),be).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Ce=function(t,e){return ye.a.post(_e(t),e,be).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Oe=function(t,e){return ye.a.put(_e(t),e,be).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Se=function(t,e){return ye.a.delete(_e(t),{data:e,headers:be.headers}).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i.a.use(me.a),i.a.use(me.a);var ke=a({name:"Users",props:["selectedGroup"],components:{appNavigation:ne,userList:he,Multiselect:se.a},beforeMount:function(){this.$store.commit("initGroups",{groups:this.$store.getters.getServerData.groups,orderBy:this.$store.getters.getServerData.sortGroups,userCount:this.$store.getters.getServerData.userCount}),this.$store.dispatch("getPasswordPolicyMinLength")},data:function(){return{unlimitedQuota:{id:"default",label:t("settings","Unlimited")},selectedQuota:!1,showConfig:{showStoragePath:!1,showUserBackend:!1,showLastLogin:!1,showNewUserForm:!1,showLanguages:!1}}},methods:{toggleNewUserMenu:function(){this.showConfig.showNewUserForm=!this.showConfig.showNewUserForm,this.showConfig.showNewUserForm&&i.a.nextTick(function(){window.newusername.focus()})},getLocalstorage:function(t){var e=this.$localStorage.get(t);return this.showConfig[t]=null!==e?"true"===e:this.showConfig[t],this.showConfig[t]},setLocalStorage:function(t,e){return this.showConfig[t]=e,this.$localStorage.set(t,e),e},removeGroup:function(e){var n=this;OC.dialogs.confirm(t("settings","You are about to remove the group {group}. The users will NOT be deleted.",{group:e}),t("settings","Please confirm the group removal "),function(t){t&&n.$store.dispatch("removeGroup",e)})},setDefaultQuota:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"none";this.$store.dispatch("setAppConfig",{app:"files",key:"default_quota",value:e.id?e.id:e}).then(function(){"object"!==(void 0===e?"undefined":Ae(e))&&(e={id:e,label:e}),t.defaultQuota=e})},validateQuota:function(t){var e=OC.Util.computerFileSize(t);return 0===e?this.setDefaultQuota("none"):null!==e&&this.setDefaultQuota(OC.Util.humanFileSize(OC.Util.computerFileSize(t)))}},computed:{users:function(){return this.$store.getters.getUsers},loading:function(){return 0===Object.keys(this.users).length},usersOffset:function(){return this.$store.getters.getUsersOffset},usersLimit:function(){return this.$store.getters.getUsersLimit},showLanguages:{get:function(){return this.getLocalstorage("showLanguages")},set:function(t){this.setLocalStorage("showLanguages",t)}},showLastLogin:{get:function(){return this.getLocalstorage("showLastLogin")},set:function(t){this.setLocalStorage("showLastLogin",t)}},showUserBackend:{get:function(){return this.getLocalstorage("showUserBackend")},set:function(t){this.setLocalStorage("showUserBackend",t)}},showStoragePath:{get:function(){return this.getLocalstorage("showStoragePath")},set:function(t){this.setLocalStorage("showStoragePath",t)}},userCount:function(){return this.$store.getters.getUserCount},settings:function(){return this.$store.getters.getServerData},quotaOptions:function(){var t=this.settings.quotaPreset.reduce(function(t,e){return t.concat({id:e,label:e})},[]);return t.unshift(this.unlimitedQuota),t},defaultQuota:{get:function(){return!1!==this.selectedQuota?this.selectedQuota:OC.Util.computerFileSize(this.settings.defaultQuota)>0?{id:this.settings.defaultQuota,label:this.settings.defaultQuota}:this.unlimitedQuota},set:function(t){this.selectedQuota=t}},menu:function(){var e=this,n=this.$store.getters.getGroups,r=(n=(n=Array.isArray(n)?n:[]).map(function(n){var r={};if(r.id=n.id.replace(" ","_"),r.key=r.id,r.utils={},r.router={name:"group",params:{selectedGroup:n.id}},r.text=n.name,n.usercount-n.disabled>0&&(r.utils.counter=n.usercount-n.disabled),"admin"!==r.id&&"disabled"!==r.id&&e.settings.isAdmin){var i=e;r.utils.actions=[{icon:"icon-delete",text:t("settings","Remove group"),action:function(){i.removeGroup(n.id)}}]}return r})).find(function(t){return"admin"==t.id}),i=n.findIndex(function(t){return"disabled"==t.id}),o=n[i];r&&r.text&&(r.text=t("settings","Admins")),o&&o.text&&(o.text=t("settings","Disabled users"),0===o.utils.counter&&n.splice(i,1));var s={id:"everyone",key:"everyone",router:{name:"users"},text:t("settings","Everyone")};return this.userCount>0&&(s.utils={counter:this.userCount}),n.unshift(s),{id:"usergrouplist",new:{id:"new-user-button",text:t("settings","New user"),icon:"icon-add",action:this.toggleNewUserMenu},items:n}}}},Ht,[],!1,null,null,null);ke.options.__file="src/views/Users.vue";var Ee=ke.exports,$e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("app-navigation",{attrs:{menu:t.menu}}),t._v(" "),n("div",{staticClass:"app-settings-content",class:{"with-app-sidebar":t.currentApp,"icon-loading":t.loadingList},attrs:{id:"app-content"}},[n("app-list",{attrs:{category:t.category,app:t.currentApp,search:t.search}}),t._v(" "),t.id&&t.currentApp?n("div",{attrs:{id:"app-sidebar"}},[n("app-details",{attrs:{category:t.category,app:t.currentApp}})],1):t._e()],1)],1)};$e._withStripped=!0;var Le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app-content-inner"}},[n("div",{class:{installed:t.useBundleView||t.useListView,store:t.useAppStoreView},attrs:{id:"apps-list"}},[t.useListView?t._l(t.apps,function(e){return n("app-item",{key:e.id,attrs:{app:e,category:t.category}})}):t._e(),t._v(" "),t._l(t.bundles,function(e){return t.useBundleView&&t.bundleApps(e.id).length>0?[n("div",{staticClass:"apps-header"},[n("div",{staticClass:"app-image"}),t._v(" "),n("h2",[t._v(t._s(e.name)+" "),n("input",{attrs:{type:"button",value:t.bundleToggleText(e.id)},on:{click:function(n){t.toggleBundle(e.id)}}})]),t._v(" "),n("div",{staticClass:"app-version"}),t._v(" "),n("div",{staticClass:"app-level"}),t._v(" "),n("div",{staticClass:"app-groups"}),t._v(" "),n("div",{staticClass:"actions"},[t._v(" ")])]),t._v(" "),t._l(t.bundleApps(e.id),function(r){return n("app-item",{key:e.id+r.id,attrs:{app:r,category:t.category}})})]:t._e()}),t._v(" "),t.useAppStoreView?t._l(t.apps,function(e){return n("app-item",{key:e.id,attrs:{app:e,category:t.category,"list-view":!1}})}):t._e()],2),t._v(" "),n("div",{staticClass:"installed",attrs:{id:"apps-list-search"}},[""!==t.search&&t.searchApps.length>0?[n("div",{staticClass:"section"},[n("div"),t._v(" "),n("h2",[t._v(t._s(t.t("settings","Results from other categories")))])]),t._v(" "),t._l(t.searchApps,function(e){return n("app-item",{key:e.id,attrs:{app:e,category:t.category,"list-view":!0}})})]:t._e()],2),t._v(" "),t.loading||0!==t.searchApps.length||0!==t.apps.length?t._e():n("div",{staticClass:"emptycontent emptycontent-search",attrs:{id:"apps-list-empty"}},[n("div",{staticClass:"icon-settings-dark",attrs:{id:"app-list-empty-icon"}}),t._v(" "),n("h2",[t._v(t._s(t.t("settings","No apps found for your versoin")))])]),t._v(" "),n("div",{attrs:{id:"searchresults"}})])};Le._withStripped=!0;var Te=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section",class:{selected:t.isSelected},on:{click:t.showAppDetails}},[n("div",{staticClass:"app-image app-image-icon",on:{click:t.showAppDetails}},[t.listView&&!t.app.preview||!t.listView&&!t.app.screenshot?n("div",{staticClass:"icon-settings-dark"}):t._e(),t._v(" "),t.listView&&t.app.preview?n("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32"}},[n("defs",[n("filter",{attrs:{id:t.filterId}},[n("feColorMatrix",{attrs:{in:"SourceGraphic",type:"matrix",values:"-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"}})],1)]),t._v(" "),n("image",{staticClass:"app-icon",attrs:{x:"0",y:"0",width:"32",height:"32",preserveAspectRatio:"xMinYMin meet",filter:t.filterUrl,"xlink:href":t.app.preview}})]):t._e(),t._v(" "),!t.listView&&t.app.screenshot?n("img",{attrs:{src:t.app.screenshot,width:"100%"}}):t._e()]),t._v(" "),n("div",{staticClass:"app-name",on:{click:t.showAppDetails}},[t._v("\n\t\t"+t._s(t.app.name)+"\n\t")]),t._v(" "),t.listView?t._e():n("div",{staticClass:"app-summary"},[t._v(t._s(t.app.summary))]),t._v(" "),t.listView?n("div",{staticClass:"app-version"},[t.app.version?n("span",[t._v(t._s(t.app.version))]):t.app.appstoreData.releases[0].version?n("span",[t._v(t._s(t.app.appstoreData.releases[0].version))]):t._e()]):t._e(),t._v(" "),n("div",{staticClass:"app-level"},[200===t.app.level?n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.t("settings","Official apps are developed by and within the community. They offer central functionality and are ready for production use."),expression:"t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.')",modifiers:{auto:!0}}],staticClass:"official icon-checkmark"},[t._v("\n\t\t\t"+t._s(t.t("settings","Official")))]):t._e(),t._v(" "),t.listView?t._e():n("app-score",{attrs:{score:t.app.score}})],1),t._v(" "),n("div",{staticClass:"actions"},[t.app.error?n("div",{staticClass:"warning"},[t._v(t._s(t.app.error))]):t._e(),t._v(" "),t.loading(t.app.id)?n("div",{staticClass:"icon icon-loading-small"}):t._e(),t._v(" "),t.app.update?n("input",{staticClass:"update",attrs:{type:"button",value:t.t("settings","Update to {update}",{update:t.app.update}),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.update(t.app.id)}}}):t._e(),t._v(" "),t.app.canUnInstall?n("input",{staticClass:"uninstall",attrs:{type:"button",value:t.t("settings","Remove"),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.remove(t.app.id)}}}):t._e(),t._v(" "),t.app.active?n("input",{staticClass:"enable",attrs:{type:"button",value:t.t("settings","Disable"),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.disable(t.app.id)}}}):t._e(),t._v(" "),t.app.active?t._e():n("input",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.enableButtonTooltip,expression:"enableButtonTooltip",modifiers:{auto:!0}}],staticClass:"enable",attrs:{type:"button",value:t.enableButtonText,disabled:!t.app.canInstall||t.installing||t.loading(t.app.id)},on:{click:function(e){t.enable(t.app.id)}}})])])};Te._withStripped=!0;var Pe=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"app-score-image",attrs:{src:this.scoreImage}})};Pe._withStripped=!0;var je=a({name:"appScore",props:["score"],computed:{scoreImage:function(){var t="rating/s"+Math.round(10*this.score)+".svg";return OC.imagePath("core",t)}}},Pe,[],!1,null,null,null);je.options.__file="src/components/appList/appScore.vue";var Ne=je.exports,Ie=a({mounted:function(){this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},computed:{appGroups:function(){return this.app.groups.map(function(t){return{id:t,name:t}})},loading:function(){var t=this;return function(e){return t.$store.getters.loading(e)}},installing:function(){return this.$store.getters.loading("install")},enableButtonText:function(){return this.app.needsDownload?t("settings","Download and enable"):t("settings","Enable")},enableButtonTooltip:function(){return!!this.app.needsDownload&&t("settings","The app will be downloaded from the app store")}},methods:{isLimitedToGroups:function(t){return!(!this.app.groups.length&&!this.groupCheckedAppsData)},setGroupLimit:function(){this.groupCheckedAppsData||this.$store.dispatch("enableApp",{appId:this.app.id,groups:[]})},canLimitToGroups:function(t){return!(t.types&&t.types.includes("filesystem")||t.types.includes("prelogin")||t.types.includes("authentication")||t.types.includes("logging")||t.types.includes("prevent_group_restriction"))},addGroupLimitation:function(t){var e=this.app.groups.concat([]).concat([t.id]);this.$store.dispatch("enableApp",{appId:this.app.id,groups:e})},removeGroupLimitation:function(t){var e=this.app.groups.concat([]),n=e.indexOf(t.id);n>-1&&e.splice(n,1),this.$store.dispatch("enableApp",{appId:this.app.id,groups:e})},enable:function(t){this.$store.dispatch("enableApp",{appId:t,groups:[]}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},disable:function(t){this.$store.dispatch("disableApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},remove:function(t){this.$store.dispatch("uninstallApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},install:function(t){this.$store.dispatch("enableApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},update:function(t){this.$store.dispatch("updateApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})}}},void 0,void 0,!1,null,null,null);Ie.options.__file="src/components/appManagement.vue";var Me=Ie.exports,Ue=a({name:"svgFilterMixin",mounted:function(){this.filterId="invertIconApps"+Math.floor(100*Math.random())+(new Date).getSeconds()+(new Date).getMilliseconds()},computed:{filterUrl:function(){return"url(#"+this.filterId+")"}},data:function(){return{filterId:""}}},void 0,void 0,!1,null,null,null);Ue.options.__file="src/components/svgFilterMixin.vue";var De=Ue.exports,Fe=a({name:"appItem",mixins:[Me,De],props:{app:{},category:{},listView:{type:Boolean,default:!0}},watch:{"$route.params.id":function(t){this.isSelected=this.app.id===t}},components:{Multiselect:se.a,AppScore:Ne},data:function(){return{isSelected:!1,scrolled:!1}},mounted:function(){this.isSelected=this.app.id===this.$route.params.id},computed:{},watchers:{},methods:{showAppDetails:function(t){"INPUT"!==t.currentTarget.tagName&&"A"!==t.currentTarget.tagName&&this.$router.push({name:"apps-details",params:{category:this.category,id:this.app.id}})},prefix:function(t,e){return t+"_"+e}}},Te,[],!1,null,null,null);Fe.options.__file="src/components/appList/appItem.vue";var Re=Fe.exports,Be=a({name:"prefixMixin",methods:{prefix:function(t,e){return t+"_"+e}}},void 0,void 0,!1,null,null,null);Be.options.__file="src/components/prefixMixin.vue";var Ge=Be.exports,Ve=a({name:"appList",mixins:[Ge],props:["category","app","search"],components:{Multiselect:se.a,appItem:Re},computed:{loading:function(){return this.$store.getters.loading("list")},apps:function(){var t=this,e=this.$store.getters.getAllApps.filter(function(e){return-1!==e.name.toLowerCase().search(t.search.toLowerCase())}).sort(function(t,e){return t.active!==e.active?t.active?-1:1:t.update!==e.update?t.update?-1:1:OC.Util.naturalSortCompare(t.name,e.name)});return"installed"===this.category?e.filter(function(t){return t.installed}):"enabled"===this.category?e.filter(function(t){return t.active}):"disabled"===this.category?e.filter(function(t){return!t.active}):"app-bundles"===this.category?e.filter(function(t){return t.bundles}):"updates"===this.category?e.filter(function(t){return t.update}):e.filter(function(e){return e.appstore&&void 0!==e.category&&(e.category===t.category||e.category.indexOf(t.category)>-1)})},bundles:function(){return this.$store.getters.getServerData.bundles},bundleApps:function(){return function(t){return this.$store.getters.getAllApps.filter(function(e){return e.bundleId===t})}},searchApps:function(){var t=this;return""===this.search?[]:this.$store.getters.getAllApps.filter(function(e){return-1!==e.name.toLowerCase().search(t.search.toLowerCase())&&!t.apps.find(function(t){return t.id===e.id})})},useAppStoreView:function(){return!this.useListView&&!this.useBundleView},useListView:function(){return"installed"===this.category||"enabled"===this.category||"disabled"===this.category||"updates"===this.category},useBundleView:function(){return"app-bundles"===this.category},allBundlesEnabled:function(){var t=this;return function(e){return 0===t.bundleApps(e).filter(function(t){return!t.active}).length}},bundleToggleText:function(){var e=this;return function(n){return e.allBundlesEnabled(n)?t("settings","Disable all"):t("settings","Enable all")}}},methods:{toggleBundle:function(t){return this.allBundlesEnabled(t)?this.disableBundle(t):this.enableBundle(t)},enableBundle:function(t){var e=this.bundleApps(t).map(function(t){return t.id});this.$store.dispatch("enableApp",{appId:e,groups:[]}).catch(function(t){console.log(t),OC.Notification.show(t)})},disableBundle:function(t){var e=this.bundleApps(t).map(function(t){return t.id});this.$store.dispatch("disableApp",{appId:e,groups:[]}).catch(function(t){OC.Notification.show(t)})}}},Le,[],!1,null,null,null);Ve.options.__file="src/components/appList.vue";var He=Ve.exports,qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"20px"},attrs:{id:"app-details-view"}},[n("a",{staticClass:"close icon-close",attrs:{href:"#"},on:{click:t.hideAppDetails}},[n("span",{staticClass:"hidden-visually"},[t._v("Close")])]),t._v(" "),n("h2",[t.app.preview?t._e():n("div",{staticClass:"icon-settings-dark"}),t._v(" "),t.app.previewAsIcon&&t.app.preview?n("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32"}},[n("defs",[n("filter",{attrs:{id:t.filterId}},[n("feColorMatrix",{attrs:{in:"SourceGraphic",type:"matrix",values:"-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"}})],1)]),t._v(" "),n("image",{staticClass:"app-icon",attrs:{x:"0",y:"0",width:"32",height:"32",preserveAspectRatio:"xMinYMin meet",filter:t.filterUrl,"xlink:href":t.app.preview}})]):t._e(),t._v("\n\t\t"+t._s(t.app.name))]),t._v(" "),t.app.screenshot?n("img",{attrs:{src:t.app.screenshot,width:"100%"}}):t._e(),t._v(" "),200===t.app.level||t.hasRating?n("div",{staticClass:"app-level"},[200===t.app.level?n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.t("settings","Official apps are developed by and within the community. They offer central functionality and are ready for production use."),expression:"t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.')",modifiers:{auto:!0}}],staticClass:"official icon-checkmark"},[t._v("\n\t\t\t"+t._s(t.t("settings","Official")))]):t._e(),t._v(" "),t.hasRating?n("app-score",{attrs:{score:t.app.appstoreData.ratingOverall}}):t._e()],1):t._e(),t._v(" "),t.author?n("div",{staticClass:"app-author"},[t._v("\n\t\t"+t._s(t.t("settings","by"))+"\n\t\t"),t._l(t.author,function(e,r){return n("span",[e["@attributes"]&&e["@attributes"].homepage?n("a",{attrs:{href:e["@attributes"].homepage}},[t._v(t._s(e["@value"]))]):e["@value"]?n("span",[t._v(t._s(e["@value"]))]):n("span",[t._v(t._s(e))]),r+1<t.author.length?n("span",[t._v(", ")]):t._e()])})],2):t._e(),t._v(" "),t.licence?n("div",{staticClass:"app-licence"},[t._v(t._s(t.licence))]):t._e(),t._v(" "),n("div",{staticClass:"actions"},[n("div",{staticClass:"actions-buttons"},[t.app.update?n("input",{staticClass:"update",attrs:{type:"button",value:t.t("settings","Update to {version}",{version:t.app.update}),disabled:t.installing||t.loading(t.app.id)}}):t._e(),t._v(" "),t.app.canUnInstall?n("input",{staticClass:"uninstall",attrs:{type:"button",value:t.t("settings","Remove"),disabled:t.installing||t.loading(t.app.id)}}):t._e(),t._v(" "),t.app.active?n("input",{staticClass:"enable",attrs:{type:"button",value:t.t("settings","Disable"),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.disable(t.app.id)}}}):t._e(),t._v(" "),t.app.active?t._e():n("input",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.enableButtonTooltip,expression:"enableButtonTooltip",modifiers:{auto:!0}}],staticClass:"enable",attrs:{type:"button",value:t.enableButtonText,disabled:!t.app.canInstall||t.installing||t.loading(t.app.id)},on:{click:function(e){t.enable(t.app.id)}}})]),t._v(" "),n("div",{staticClass:"app-groups"},[t.app.active&&t.canLimitToGroups(t.app)?n("div",{staticClass:"groups-enable"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.groupCheckedAppsData,expression:"groupCheckedAppsData"}],staticClass:"groups-enable__checkbox checkbox",attrs:{type:"checkbox",id:t.prefix("groups_enable",t.app.id)},domProps:{value:t.app.id,checked:Array.isArray(t.groupCheckedAppsData)?t._i(t.groupCheckedAppsData,t.app.id)>-1:t.groupCheckedAppsData},on:{change:[function(e){var n=t.groupCheckedAppsData,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.app.id,s=t._i(n,o);r.checked?s<0&&(t.groupCheckedAppsData=n.concat([o])):s>-1&&(t.groupCheckedAppsData=n.slice(0,s).concat(n.slice(s+1)))}else t.groupCheckedAppsData=i},t.setGroupLimit]}}),t._v(" "),n("label",{attrs:{for:t.prefix("groups_enable",t.app.id)}},[t._v("Auf Gruppen beschränken")]),t._v(" "),n("input",{staticClass:"group_select",attrs:{type:"hidden",title:"Alle",value:""}}),t._v(" "),t.isLimitedToGroups(t.app)?n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.groups,value:t.appGroups,"options-limit":5,placeholder:t.t("settings","Limit app usage to groups"),label:"name","track-by":"id",multiple:!0,"close-on-select":!1},on:{select:t.addGroupLimitation,remove:t.removeGroupLimitation}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])]):t._e()],1):t._e()])]),t._v(" "),n("p",{staticClass:"documentation"},[t.app.internal?t._e():n("a",{staticClass:"appslink",attrs:{href:t.appstoreUrl,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","View in store"))+" ↗")]),t._v(" "),t.app.website?n("a",{staticClass:"appslink",attrs:{href:t.app.website,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Visit website"))+" ↗")]):t._e(),t._v(" "),t.app.bugs?n("a",{staticClass:"appslink",attrs:{href:t.app.bugs,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Report a bug"))+" ↗")]):t._e(),t._v(" "),t.app.documentation&&t.app.documentation.user?n("a",{staticClass:"appslink",attrs:{href:t.app.documentation.user,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","User documentation"))+" ↗")]):t._e(),t._v(" "),t.app.documentation&&t.app.documentation.admin?n("a",{staticClass:"appslink",attrs:{href:t.app.documentation.admin,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Admin documentation"))+" ↗")]):t._e(),t._v(" "),t.app.documentation&&t.app.documentation.developer?n("a",{staticClass:"appslink",attrs:{href:t.app.documentation.developer,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Developer documentation"))+" ↗")]):t._e()]),t._v(" "),n("ul",{staticClass:"app-dependencies"},[t.app.missingMinOwnCloudVersion?n("li",[t._v(t._s(t.t("settings","This app has no minimum Nextcloud version assigned. This will be an error in the future.")))]):t._e(),t._v(" "),t.app.missingMaxOwnCloudVersion?n("li",[t._v(t._s(t.t("settings","This app has no maximum Nextcloud version assigned. This will be an error in the future.")))]):t._e(),t._v(" "),t.app.canInstall?t._e():n("li",[t._v("\n\t\t\t"+t._s(t.t("settings","This app cannot be installed because the following dependencies are not fulfilled:"))+"\n\t\t\t"),n("ul",{staticClass:"missing-dependencies"},t._l(t.app.missingDependencies,function(e){return n("li",[t._v(t._s(e))])}))])]),t._v(" "),n("div",{staticClass:"app-description",domProps:{innerHTML:t._s(t.renderMarkdown)}})])};qe._withStripped=!0;var ze=a({mixins:[Me,Ge,De],name:"appDetails",props:["category","app"],components:{Multiselect:se.a,AppScore:Ne},data:function(){return{groupCheckedAppsData:!1}},mounted:function(){this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},methods:{hideAppDetails:function(){this.$router.push({name:"apps-category",params:{category:this.category}})}},computed:{appstoreUrl:function(){return"https://apps.nextcloud.com/apps/"+this.app.id},licence:function(){return this.app.licence?(""+this.app.licence).toUpperCase()+t("settings","-licensed"):null},hasRating:function(){return this.app.appstoreData&&this.app.appstoreData.ratingNumOverall>5},author:function(){return"string"==typeof this.app.author?[{"@value":this.app.author}]:this.app.author["@value"]?[this.app.author]:this.app.author},appGroups:function(){return this.app.groups.map(function(t){return{id:t,name:t}})},groups:function(){return this.$store.getters.getGroups.filter(function(t){return"disabled"!==t.id}).sort(function(t,e){return t.name.localeCompare(e.name)})},renderMarkdown:function(){var t=new window.marked.Renderer;return t.link=function(t,e,n){try{var r=decodeURIComponent(unescape(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return""}if(0!==r.indexOf("http:")&&0!==r.indexOf("https:"))return"";var i='<a href="'+t+'" rel="noreferrer noopener"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>"},t.image=function(t,e,n){return n||e},t.blockquote=function(t){return t},DOMPurify.sanitize(window.marked(this.app.description.trim(),{renderer:t,gfm:!1,highlight:!1,tables:!1,breaks:!1,pedantic:!1,sanitize:!0,smartLists:!0,smartypants:!1}),{SAFE_FOR_JQUERY:!0,ALLOWED_TAGS:["strong","p","a","ul","ol","li","em","del","blockquote"]})}}},qe,[],!1,null,null,null);ze.options.__file="src/components/appDetails.vue";var We=ze.exports;i.a.use(me.a),i.a.use(me.a);var Ye=a({name:"Apps",props:{category:{type:String,default:"installed"},id:{type:String,default:""}},components:{AppDetails:We,appNavigation:ne,appList:He},methods:{setSearch:function(t){this.search=t}},beforeMount:function(){this.$store.dispatch("getCategories"),this.$store.dispatch("getAllApps"),this.$store.dispatch("getGroups",{offset:0,limit:-1}),this.$store.commit("setUpdateCount",this.$store.getters.getServerData.updateCount)},mounted:function(){$("#searchbox").show();var t=this;$("#searchbox").change(function(e){t.setSearch($("#searchbox").val())})},data:function(){return{search:""}},watch:{category:function(t,e){this.setSearch("")}},computed:{loading:function(){return this.$store.getters.loading("categories")},loadingList:function(){return this.$store.getters.loading("list")},currentApp:function(){var t=this;return this.apps.find(function(e){return e.id===t.id})},categories:function(){return this.$store.getters.getCategories},apps:function(){return this.$store.getters.getAllApps},updateCount:function(){return this.$store.getters.getUpdateCount},settings:function(){return this.$store.getters.getServerData},menu:function(){var e=this,n=this.$store.getters.getCategories;n=(n=Array.isArray(n)?n:[]).map(function(t){var e={};return e.id="app-category-"+t.ident,e.icon="icon-category-"+t.ident,e.classes=[],e.router={name:"apps-category",params:{category:t.ident}},e.text=t.displayName,e});var r=[{id:"app-category-your-apps",classes:[],router:{name:"apps"},icon:"icon-category-installed",text:t("settings","Your apps")},{id:"app-category-enabled",classes:[],icon:"icon-category-enabled",router:{name:"apps-category",params:{category:"enabled"}},text:t("settings","Active apps")},{id:"app-category-disabled",classes:[],icon:"icon-category-disabled",router:{name:"apps-category",params:{category:"disabled"}},text:t("settings","Disabled apps")}];if(!this.settings.appstoreEnabled)return{id:"appscategories",items:r};this.$store.getters.getUpdateCount>0&&r.push({id:"app-category-updates",classes:[],icon:"icon-download",router:{name:"apps-category",params:{category:"updates"}},text:t("settings","Updates"),utils:{counter:this.$store.getters.getUpdateCount}}),r.push({id:"app-category-app-bundles",classes:[],icon:"icon-category-app-bundles",router:{name:"apps-category",params:{category:"app-bundles"}},text:t("settings","App bundles")});var i=(n=r.concat(n)).findIndex(function(t){return t.id==="app-category-"+e.category});return i>=0?n[i].classes.push("active"):n[0].classes.push("active"),n.push({id:"app-developer-docs",classes:[],href:this.settings.developerDocumentation,text:t("settings","Developer documentation")+" ↗"}),{id:"appscategories",items:n,loading:this.loading}}}},$e,[],!1,null,null,null);Ye.options.__file="src/views/Apps.vue";var Ke=Ye.exports;i.a.use(Vt);var Qe=new Vt({mode:"history",base:OC.generateUrl(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:Ee,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:Ee}]},{path:"/:index(index.php/)?settings/apps",component:Ke,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:Ke,children:[{path:":id",name:"apps-details",component:Ke}]}]}]}),Je=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)}},Xe="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__; + */function l(t,e){0}function f(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,i=e.parent,o=e.data;o.routerView=!0;for(var s=i.$createElement,a=n.name,u=i.$route,c=i._routerViewCache||(i._routerViewCache={}),l=0,f=!1;i&&i._routerRoot!==i;)i.$vnode&&i.$vnode.data.routerView&&l++,i._inactive&&(f=!0),i=i.$parent;if(o.routerViewDepth=l,f)return s(c[a],o,r);var p=u.matched[l];if(!p)return c[a]=null,s();var d=c[a]=p.components[a];o.registerRouteInstance=function(t,e){var n=p.instances[a];(e&&n!==t||!e&&n===t)&&(p.instances[a]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){p.instances[a]=e.componentInstance};var h=o.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}}(u,p.props&&p.props[a]);if(h){h=o.props=function(t,e){for(var n in e)t[n]=e[n];return t}({},h);var v=o.attrs=o.attrs||{};for(var m in h)d.props&&m in d.props||(v[m]=h[m],delete h[m])}return s(d,o,r)}};var d=/[!'()*]/g,h=function(t){return"%"+t.charCodeAt(0).toString(16)},v=/%2C/g,m=function(t){return encodeURIComponent(t).replace(d,h).replace(v,",")},g=decodeURIComponent;function y(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=g(n.shift()),i=n.length>0?g(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),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 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 _=/\/?$/;function w(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=x(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:O(e,i),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(s.redirectedFrom=O(n,i)),Object.freeze(s)}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 C=w(null,{path:"/"});function O(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||b)(r)+i}function S(t,e){return e===C?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&t.hash===e.hash&&A(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&A(t.query,e.query)&&A(t.params,e.params)))}function A(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],i=e[n];return"object"==typeof r&&"object"==typeof i?A(r,i):String(r)===String(i)})}var k,E=[String,Object],L=[String,Array],T={name:"router-link",props:{to:{type:E,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:L,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,u={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=o.path?w(null,o,null,n):s;u[h]=S(r,v),u[d]=this.exact?u[h]:function(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!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){P(t)&&(e.replace?n.replace(o):n.push(o))},g={click:P};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=m}):g[this.event]=m;var y={class:u};if("a"===this.tag)y.on=g,y.attrs={href:a};else{var b=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(b){b.isStatic=!1;var x=k.util.extend;(b.data=x({},b.data)).on=g,(b.data.attrs=x({},b.data.attrs)).href=a}else y.on=g}return t(this.tag,y,this.$slots.default)}};function P(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 j(t){if(!j.installed||k!==t){j.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",p),t.component("router-link",T);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var N="undefined"!=typeof window;function I(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function M(t){return t.replace(/\/\//g,"/")}var U=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},D=X,F=H,R=function(t,e){return z(H(t,e))},B=z,G=J,V=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function H(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=V.exec(t));){var u=n[0],c=n[1],l=n.index;if(s+=t.slice(o,l),o=l+u.length,c)s+=c[1];else{var f=t[o],p=n[2],d=n[3],h=n[4],v=n[5],m=n[6],g=n[7];s&&(r.push(s),s="");var y=null!=p&&null!=f&&f!==p,b="+"===m||"*"===m,_="?"===m||"*"===m,w=n[2]||a,x=h||v;r.push({name:d||i++,prefix:p||"",delimiter:w,optional:_,repeat:b,partial:y,asterisk:!!g,pattern:x?Y(x):g?".*":"[^"+W(w)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function q(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 i="",o=n||{},s=(r||{}).pretty?q:encodeURIComponent,a=0;a<t.length;a++){var u=t[a];if("string"!=typeof u){var c,l=o[u.name];if(null==l){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(U(l)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<l.length;f++){if(c=s(l[f]),!e[a].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(c)+"`");i+=(0===f?u.prefix:u.delimiter)+c}}else{if(c=u.asterisk?encodeURI(l).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):s(l),!e[a].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+c+'"');i+=u.prefix+c}}else i+=u}return i}}function W(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Y(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){return t.keys=e,t}function Q(t){return t.sensitive?"":"i"}function J(t,e,n){U(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=W(a);else{var u=W(a.prefix),c="(?:"+a.pattern+")";e.push(a),a.repeat&&(c+="(?:"+u+c+")*"),o+=c=a.optional?a.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")"}}var l=W(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",K(new RegExp("^"+o,Q(n)),e)}function X(t,e,n){return U(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):U(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(X(t[i],e,n).source);return K(new RegExp("(?:"+r.join("|")+")",Q(n)),e)}(t,e,n):function(t,e,n){return J(H(t,n),e,n)}(t,e,n)}D.parse=F,D.compile=R,D.tokensToFunction=B,D.tokensToRegExp=G;var Z=Object.create(null);function tt(t,e,n){try{return(Z[t]||(Z[t]=D.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}function et(t,e,n,r){var i=e||[],o=n||Object.create(null),s=r||Object.create(null);t.forEach(function(t){!function t(e,n,r,i,o,s){var a=i.path;var u=i.name;0;var c=i.pathToRegexpOptions||{};var l=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return M(e.path+"/"+t)}(a,o,c.strict);"boolean"==typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var f={path:l,regex:function(t,e){var n=D(t,[],e);0;return n}(l,c),components:i.components||{default:i.component},instances:{},name:u,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach(function(i){var o=s?M(s+"/"+i.path):void 0;t(e,n,r,i,f,o)});if(void 0!==i.alias){var p=Array.isArray(i.alias)?i.alias:[i.alias];p.forEach(function(s){var a={path:s,children:i.children};t(e,n,r,a,o,f.path||"/")})}n[f.path]||(e.push(f.path),n[f.path]=f);u&&(r[u]||(r[u]=f))}(i,o,s,t)});for(var a=0,u=i.length;a<u;a++)"*"===i[a]&&(i.push(i.splice(a,1)[0]),u--,a--);return{pathList:i,pathMap:o,nameMap:s}}function nt(t,e,n,r){var i="string"==typeof t?{path:t}:t;if(i.name||i._normalized)return i;if(!i.path&&i.params&&e){(i=rt({},i))._normalized=!0;var o=rt(rt({},e.params),i.params);if(e.name)i.name=e.name,i.params=o;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;i.path=tt(s,o,e.path)}else 0;return i}var a=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),u=e&&e.path||"/",c=a.path?I(a.path,u,n||i.append):u,l=function(t,e,n){void 0===e&&(e={});var r,i=n||y;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(a.query,i.query,r&&r.options.parseQuery),f=i.hash||a.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:l,hash:f}}function rt(t,e){for(var n in e)t[n]=e[n];return t}function it(t,e){var n=et(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var a=nt(t,n,!1,e),c=a.name;if(c){var l=o[c];if(!l)return u(null,a);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in a.params)&&f.indexOf(p)>-1&&(a.params[p]=n.params[p]);if(l)return a.path=tt(l.path,a.params),u(l,a,s)}else if(a.path){a.params={};for(var d=0;d<r.length;d++){var h=r[d],v=i[h];if(ot(v.regex,a.path,a.params))return u(v,a,s)}}return u(null,a)}function a(t,n){var r=t.redirect,i="function"==typeof r?r(w(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return u(null,n);var a=i,c=a.name,l=a.path,f=n.query,p=n.hash,d=n.params;if(f=a.hasOwnProperty("query")?a.query:f,p=a.hasOwnProperty("hash")?a.hash:p,d=a.hasOwnProperty("params")?a.params:d,c){o[c];return s({_normalized:!0,name:c,query:f,hash:p,params:d},void 0,n)}if(l){var h=function(t,e){return I(t,e.parent?e.parent.path:"/",!0)}(l,t);return s({_normalized:!0,path:tt(h,d),query:f,hash:p},void 0,n)}return u(null,n)}function u(t,n,r){return t&&t.redirect?a(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:tt(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,u(o,e)}return u(null,e)}(0,n,t.matchAs):w(t,n,r,e)}return{match:s,addRoutes:function(t){et(t,r,i,o)}}}function ot(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1],a="string"==typeof r[i]?decodeURIComponent(r[i]):r[i];s&&(n[s.name]=a)}return!0}var st=Object.create(null);function at(){window.history.replaceState({key:bt()},""),window.addEventListener("popstate",function(t){var e;ct(),t.state&&t.state.key&&(e=t.state.key,gt=e)})}function ut(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick(function(){var t=function(){var t=bt();if(t)return st[t]}(),o=i(e,n,r?t:null);o&&("function"==typeof o.then?o.then(function(e){dt(e,t)}).catch(function(t){0}):dt(o,t))})}}function ct(){var t=bt();t&&(st[t]={x:window.pageXOffset,y:window.pageYOffset})}function lt(t){return pt(t.x)||pt(t.y)}function ft(t){return{x:pt(t.x)?t.x:window.pageXOffset,y:pt(t.y)?t.y:window.pageYOffset}}function pt(t){return"number"==typeof t}function dt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=document.querySelector(t.selector);if(i){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}}(i,o={x:pt((n=o).x)?n.x:0,y:pt(n.y)?n.y:0})}else lt(t)&&(e=ft(t))}else r&<(t)&&(e=ft(t));e&&window.scrollTo(e.x,e.y)}var ht,vt=N&&((-1===(ht=window.navigator.userAgent).indexOf("Android 2.")&&-1===ht.indexOf("Android 4.0")||-1===ht.indexOf("Mobile Safari")||-1!==ht.indexOf("Chrome")||-1!==ht.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),mt=N&&window.performance&&window.performance.now?window.performance:Date,gt=yt();function yt(){return mt.now().toFixed(3)}function bt(){return gt}function _t(t,e){ct();var n=window.history;try{e?n.replaceState({key:gt},"",t):(gt=yt(),n.pushState({key:gt},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function wt(t){_t(t,!0)}function xt(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function Ct(t){return function(e,n,r){var i=!1,o=0,s=null;Ot(t,function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var u,c=kt(function(e){var i;((i=e).__esModule||At&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:k.extend(e),n.components[a]=e,--o<=0&&r()}),l=kt(function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=f(t)?t:new Error(e),r(s))});try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var p=u.component;p&&"function"==typeof p.then&&p.then(c,l)}}}),i||r()}}function Ot(t,e){return St(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function St(t){return Array.prototype.concat.apply([],t)}var At="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function kt(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 Et=function(t,e){this.router=t,this.base=function(t){if(!t)if(N){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=C,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function $t(t,e,n,r){var i=Ot(t,function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=k.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map(function(t){return n(t,r,i,o)}):n(s,r,i,o)});return St(r?i.reverse():i)}function Lt(t,e){if(e)return function(){return t.apply(e,arguments)}}Et.prototype.listen=function(t){this.cb=t},Et.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Et.prototype.onError=function(t){this.errorCbs.push(t)},Et.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Et.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){f(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):(l(),console.error(t))),n&&n(t)};if(S(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o();var s=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),a=s.updated,u=s.deactivated,c=s.activated,p=[].concat(function(t){return $t(t,"beforeRouteLeave",Lt,!0)}(u),this.router.beforeHooks,function(t){return $t(t,"beforeRouteUpdate",Lt)}(a),c.map(function(t){return t.beforeEnter}),Ct(c));this.pending=t;var d=function(e,n){if(r.pending!==t)return o();try{e(t,i,function(t){!1===t||f(t)?(r.ensureURL(!0),o(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(o(),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)})}catch(t){o(t)}};xt(p,d,function(){var n=[];xt(function(t,e,n){return $t(t,"beforeRouteEnter",function(t,r,i,o){return function(t,e,n,r,i){return function(o,s,a){return t(o,s,function(t){a(t),"function"==typeof t&&r.push(function(){!function t(e,n,r,i){n[r]?e(n[r]):i()&&setTimeout(function(){t(e,n,r,i)},16)}(t,e.instances,n,i)})})}}(t,i,o,e,n)})}(c,n,function(){return r.current===t}).concat(r.router.resolveHooks),d,function(){if(r.pending!==t)return o();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},Et.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 i=e.options.scrollBehavior;i&&at();var o=Pt(this.base);window.addEventListener("popstate",function(t){var n=r.current,s=Pt(r.base);r.current===C&&s===o||r.transitionTo(s,function(t){i&&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,i=this.current;this.transitionTo(t,function(t){_t(M(r.base+t.fullPath)),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){wt(M(r.base+t.fullPath)),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Pt(this.base)!==this.current.fullPath){var e=M(this.base+this.current.fullPath);t?_t(e):wt(e)}},e.prototype.getCurrentLocation=function(){return Pt(this.base)},e}(Et);function Pt(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 jt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Pt(t);if(!/^\/#/.test(e))return window.location.replace(M(t+"/#"+e)),!0}(this.base)||Nt()}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&&at(),window.addEventListener(vt?"popstate":"hashchange",function(){var e=t.current;Nt()&&t.transitionTo(It(),function(r){n&&ut(t.router,r,e,!0),vt||Dt(r.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){Ut(t.fullPath),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,function(t){Dt(t.fullPath),ut(r.router,t,i,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;It()!==e&&(t?Ut(e):Dt(e))},e.prototype.getCurrentLocation=function(){return It()},e}(Et);function Nt(){var t=It();return"/"===t.charAt(0)||(Dt("/"+t),!1)}function It(){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 Ut(t){vt?_t(Mt(t)):window.location.hash=t}function Dt(t){vt?wt(Mt(t)):window.location.replace(Mt(t))}var Ft=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}(Et),Rt=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"),N||(e="abstract"),this.mode=e,e){case"history":this.history=new Tt(this,t.base);break;case"hash":this.history=new jt(this,t.base,this.fallback);break;case"abstract":this.history=new Ft(this,t.base);break;default:0}},Bt={currentRoute:{configurable:!0}};function Gt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Rt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Bt.currentRoute.get=function(){return this.history&&this.history.current},Rt.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 jt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Rt.prototype.beforeEach=function(t){return Gt(this.beforeHooks,t)},Rt.prototype.beforeResolve=function(t){return Gt(this.resolveHooks,t)},Rt.prototype.afterEach=function(t){return Gt(this.afterHooks,t)},Rt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Rt.prototype.onError=function(t){this.history.onError(t)},Rt.prototype.push=function(t,e,n){this.history.push(t,e,n)},Rt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Rt.prototype.go=function(t){this.history.go(t)},Rt.prototype.back=function(){this.go(-1)},Rt.prototype.forward=function(){this.go(1)},Rt.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]})})):[]},Rt.prototype.resolve=function(t,e,n){var r=nt(t,e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?M(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Rt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==C&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Rt.prototype,Bt),Rt.install=j,Rt.version="3.0.1",N&&window.Vue&&window.Vue.use(Rt);var Vt=Rt,Ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("app-navigation",{attrs:{menu:t.menu}},[n("template",{slot:"settings-content"},[n("div",[n("p",[t._v(t._s(t.t("settings","Default quota :")))]),t._v(" "),n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.defaultQuota,options:t.quotaOptions,"tag-placeholder":"create",placeholder:t.t("settings","Select default quota"),label:"label","track-by":"id",allowEmpty:!1,taggable:!0},on:{tag:t.validateQuota,input:t.setDefaultQuota}})],1),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showLanguages,expression:"showLanguages"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showLanguages"},domProps:{checked:Array.isArray(t.showLanguages)?t._i(t.showLanguages,null)>-1:t.showLanguages},on:{change:function(e){var n=t.showLanguages,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showLanguages=n.concat([null])):o>-1&&(t.showLanguages=n.slice(0,o).concat(n.slice(o+1)))}else t.showLanguages=i}}}),t._v(" "),n("label",{attrs:{for:"showLanguages"}},[t._v(t._s(t.t("settings","Show Languages")))])]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showLastLogin,expression:"showLastLogin"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showLastLogin"},domProps:{checked:Array.isArray(t.showLastLogin)?t._i(t.showLastLogin,null)>-1:t.showLastLogin},on:{change:function(e){var n=t.showLastLogin,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showLastLogin=n.concat([null])):o>-1&&(t.showLastLogin=n.slice(0,o).concat(n.slice(o+1)))}else t.showLastLogin=i}}}),t._v(" "),n("label",{attrs:{for:"showLastLogin"}},[t._v(t._s(t.t("settings","Show last login")))])]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showUserBackend,expression:"showUserBackend"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showUserBackend"},domProps:{checked:Array.isArray(t.showUserBackend)?t._i(t.showUserBackend,null)>-1:t.showUserBackend},on:{change:function(e){var n=t.showUserBackend,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showUserBackend=n.concat([null])):o>-1&&(t.showUserBackend=n.slice(0,o).concat(n.slice(o+1)))}else t.showUserBackend=i}}}),t._v(" "),n("label",{attrs:{for:"showUserBackend"}},[t._v(t._s(t.t("settings","Show user backend")))])]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.showStoragePath,expression:"showStoragePath"}],staticClass:"checkbox",attrs:{type:"checkbox",id:"showStoragePath"},domProps:{checked:Array.isArray(t.showStoragePath)?t._i(t.showStoragePath,null)>-1:t.showStoragePath},on:{change:function(e){var n=t.showStoragePath,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.showStoragePath=n.concat([null])):o>-1&&(t.showStoragePath=n.slice(0,o).concat(n.slice(o+1)))}else t.showStoragePath=i}}}),t._v(" "),n("label",{attrs:{for:"showStoragePath"}},[t._v(t._s(t.t("settings","Show storage path")))])])])],2),t._v(" "),n("user-list",{attrs:{users:t.users,showConfig:t.showConfig,selectedGroup:t.selectedGroup}})],1)};Ht._withStripped=!0;var qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"icon-loading":t.menu.loading},attrs:{id:"app-navigation"}},[t.menu.new?n("div",{staticClass:"app-navigation-new"},[n("button",{class:t.menu.new.icon,attrs:{type:"button",id:t.menu.new.id},on:{click:t.menu.new.action}},[t._v(t._s(t.menu.new.text))])]):t._e(),t._v(" "),n("ul",{attrs:{id:t.menu.id}},t._l(t.menu.items,function(t){return n("navigation-item",{key:t.key,attrs:{item:t}})})),t._v(" "),t.$slots["settings-content"]?n("div",{attrs:{id:"app-settings"}},[n("div",{attrs:{id:"app-settings-header"}},[n("button",{staticClass:"settings-button",attrs:{"data-apps-slide-toggle":"#app-settings-content"}},[t._v(t._s(t.t("settings","Settings")))])]),t._v(" "),n("div",{attrs:{id:"app-settings-content"}},[t._t("settings-content")],2)]):t._e()])};qt._withStripped=!0;var zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav-element",t._b({class:[{"icon-loading-small":t.item.loading,open:t.item.opened,collapsible:t.item.collapsible&&t.item.children&&t.item.children.length>0},t.item.classes],attrs:{id:t.item.id}},"nav-element",t.navElement(t.item),!1),[t.item.bullet?n("div",{staticClass:"app-navigation-entry-bullet",style:{backgroundColor:t.item.bullet}}):t._e(),t._v(" "),n("a",{class:t.item.icon,attrs:{href:t.item.href?t.item.href:"#"},on:{click:t.toggleCollapse}},[t.item.iconUrl?n("img",{attrs:{alt:t.item.text,src:t.item.iconUrl}}):t._e(),t._v("\n\t\t"+t._s(t.item.text)+"\n\t")]),t._v(" "),t.item.utils?n("div",{staticClass:"app-navigation-entry-utils"},[n("ul",[Number.isInteger(t.item.utils.counter)?n("li",{staticClass:"app-navigation-entry-utils-counter"},[t._v(t._s(t.item.utils.counter))]):t._e(),t._v(" "),t.item.utils.actions&&1===t.item.utils.actions.length&&Number.isInteger(t.item.utils.counter)?n("li",{staticClass:"app-navigation-entry-utils-menu-button"},[n("button",{class:t.item.utils.actions[0].icon,attrs:{title:t.item.utils.actions[0].text},on:{click:t.item.utils.actions[0].action}})]):t.item.utils.actions&&2===t.item.utils.actions.length&&!Number.isInteger(t.item.utils.counter)?t._l(t.item.utils.actions,function(t){return n("li",{key:t.action,staticClass:"app-navigation-entry-utils-menu-button"},[n("button",{class:t.icon,attrs:{title:t.text},on:{click:t.action}})])}):t.item.utils.actions&&t.item.utils.actions.length>1&&(Number.isInteger(t.item.utils.counter)||t.item.utils.actions.length>2)?n("li",{staticClass:"app-navigation-entry-utils-menu-button"},[n("button",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMenu,expression:"hideMenu"}],on:{click:t.showMenu}})]):t._e()],2)]):t._e(),t._v(" "),t.item.utils&&t.item.utils.actions&&t.item.utils.actions.length>1&&(Number.isInteger(t.item.utils.counter)||t.item.utils.actions.length>2)?n("div",{staticClass:"app-navigation-entry-menu",class:{open:t.openedMenu}},[n("popover-menu",{attrs:{menu:t.item.utils.actions}})],1):t._e(),t._v(" "),t.item.undo?n("div",{staticClass:"app-navigation-entry-deleted"},[n("div",{staticClass:"app-navigation-entry-deleted-description"},[t._v(t._s(t.item.undo.text))]),t._v(" "),n("button",{staticClass:"app-navigation-entry-deleted-button icon-history",attrs:{title:t.t("settings","Undo")}})]):t._e(),t._v(" "),t.item.edit?n("div",{staticClass:"app-navigation-entry-edit"},[n("form",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.item.text,expression:"item.text"}],attrs:{type:"text"},domProps:{value:t.item.text},on:{input:function(e){e.target.composing||t.$set(t.item,"text",e.target.value)}}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}}),t._v(" "),n("input",{staticClass:"icon-close",attrs:{type:"submit",value:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.cancelEdit(e)}}})])]):t._e(),t._v(" "),t.item.children?n("ul",t._l(t.item.children,function(t,e){return n("navigation-item",{key:e,attrs:{item:t}})})):t._e()])};zt._withStripped=!0;var Wt=function(){var t=this.$createElement,e=this._self._c||t;return e("ul",this._l(this.menu,function(t,n){return e("popover-item",{key:n,attrs:{item:t}})}))};Wt._withStripped=!0;var Yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",[t.item.href?n("a",{attrs:{href:t.item.href?t.item.href:"#"},on:{click:t.item.action}},[n("span",{class:t.item.icon}),t._v(" "),t.item.text?n("span",[t._v(t._s(t.item.text))]):t.item.longtext?n("p",[t._v(t._s(t.item.longtext))]):t._e()]):t.item.action?n("button",{on:{click:t.item.action}},[n("span",{class:t.item.icon}),t._v(" "),t.item.text?n("span",[t._v(t._s(t.item.text))]):t.item.longtext?n("p",[t._v(t._s(t.item.longtext))]):t._e()]):n("span",[n("span",{class:t.item.icon}),t._v(" "),t.item.text?n("span",[t._v(t._s(t.item.text))]):t.item.longtext?n("p",[t._v(t._s(t.item.longtext))]):t._e()])])};Yt._withStripped=!0;var Kt=a({props:["item"]},Yt,[],!1,null,null,null);Kt.options.__file="src/components/popoverMenu/popoverItem.vue";var Qt=a({name:"popoverMenu",props:["menu"],components:{popoverItem:Kt.exports}},Wt,[],!1,null,null,null);Qt.options.__file="src/components/popoverMenu.vue";var Jt=Qt.exports,Xt=r(53),Zt=r.n(Xt),te=a({name:"navigationItem",props:["item"],components:{popoverMenu:Jt},directives:{ClickOutside:Zt.a},data:function(){return{openedMenu:!1}},methods:{showMenu:function(){this.openedMenu=!0},hideMenu:function(){this.openedMenu=!1},toggleCollapse:function(){i.a.set(this.item,"opened",!this.item.opened||!this.item.opened)},cancelEdit:function(){Array.isArray(this.item.classes)&&(this.item.classes=this.item.classes.filter(function(t){return"editing"!==t}))},navElement:function(t){return t.href?{is:"li"}:{is:"router-link",tag:"li",to:t.router,exact:!0}}},mounted:function(){this.popupItem=this.$el}},zt,[],!1,null,null,null);te.options.__file="src/components/appNavigation/navigationItem.vue";var ee=a({name:"appNavigation",props:["menu"],components:{navigationItem:te.exports}},qt,[],!1,null,null,null);ee.options.__file="src/components/appNavigation.vue";var ne=ee.exports,re=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-list-grid",attrs:{id:"app-content"},on:{"&scroll":function(e){return t.onScroll(e)}}},[n("div",{staticClass:"row",class:{sticky:t.scrolled&&!t.showConfig.showNewUserForm},attrs:{id:"grid-header"}},[n("div",{staticClass:"avatar",attrs:{id:"headerAvatar"}}),t._v(" "),n("div",{staticClass:"name",attrs:{id:"headerName"}},[t._v(t._s(t.t("settings","Username")))]),t._v(" "),n("div",{staticClass:"displayName",attrs:{id:"headerDisplayName"}},[t._v(t._s(t.t("settings","Full name")))]),t._v(" "),n("div",{staticClass:"password",attrs:{id:"headerPassword"}},[t._v(t._s(t.t("settings","Password")))]),t._v(" "),n("div",{staticClass:"mailAddress",attrs:{id:"headerAddress"}},[t._v(t._s(t.t("settings","Email")))]),t._v(" "),n("div",{staticClass:"groups",attrs:{id:"headerGroups"}},[t._v(t._s(t.t("settings","Groups")))]),t._v(" "),t.subAdminsGroups.length>0&&t.settings.isAdmin?n("div",{staticClass:"subadmins",attrs:{id:"headerSubAdmins"}},[t._v(t._s(t.t("settings","Group admin for")))]):t._e(),t._v(" "),n("div",{staticClass:"quota",attrs:{id:"headerQuota"}},[t._v(t._s(t.t("settings","Quota")))]),t._v(" "),t.showConfig.showLanguages?n("div",{staticClass:"languages",attrs:{id:"headerLanguages"}},[t._v(t._s(t.t("settings","Languages")))]):t._e(),t._v(" "),t.showConfig.showStoragePath?n("div",{staticClass:"headerStorageLocation storageLocation"},[t._v(t._s(t.t("settings","Storage location")))]):t._e(),t._v(" "),t.showConfig.showUserBackend?n("div",{staticClass:"headerUserBackend userBackend"},[t._v(t._s(t.t("settings","User backend")))]):t._e(),t._v(" "),t.showConfig.showLastLogin?n("div",{staticClass:"headerLastLogin lastLogin"},[t._v(t._s(t.t("settings","Last login")))]):t._e(),t._v(" "),n("div",{staticClass:"userActions"})]),t._v(" "),n("form",{directives:[{name:"show",rawName:"v-show",value:t.showConfig.showNewUserForm,expression:"showConfig.showNewUserForm"}],staticClass:"row",class:{sticky:t.scrolled&&t.showConfig.showNewUserForm},attrs:{id:"new-user",disabled:t.loading},on:{submit:function(e){return e.preventDefault(),t.createUser(e)}}},[n("div",{class:t.loading?"icon-loading-small":"icon-add"}),t._v(" "),n("div",{staticClass:"name"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.id,expression:"newUser.id"}],attrs:{id:"newusername",type:"text",required:"",placeholder:t.t("settings","User name"),name:"username",autocomplete:"off",autocapitalize:"none",autocorrect:"off",pattern:"[a-zA-Z0-9 _\\.@\\-']+"},domProps:{value:t.newUser.id},on:{input:function(e){e.target.composing||t.$set(t.newUser,"id",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"displayName"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.displayName,expression:"newUser.displayName"}],attrs:{id:"newdisplayname",type:"text",placeholder:t.t("settings","Display name"),name:"displayname",autocomplete:"off",autocapitalize:"none",autocorrect:"off"},domProps:{value:t.newUser.displayName},on:{input:function(e){e.target.composing||t.$set(t.newUser,"displayName",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"password"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.password,expression:"newUser.password"}],attrs:{id:"newuserpassword",type:"password",required:""===t.newUser.mailAddress,placeholder:t.t("settings","Password"),name:"password",autocomplete:"new-password",autocapitalize:"none",autocorrect:"off",minlength:t.minPasswordLength},domProps:{value:t.newUser.password},on:{input:function(e){e.target.composing||t.$set(t.newUser,"password",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"mailAddress"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.mailAddress,expression:"newUser.mailAddress"}],attrs:{id:"newemail",type:"email",required:""===t.newUser.password,placeholder:t.t("settings","Mail address"),name:"email",autocomplete:"off",autocapitalize:"none",autocorrect:"off"},domProps:{value:t.newUser.mailAddress},on:{input:function(e){e.target.composing||t.$set(t.newUser,"mailAddress",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"groups"},[t.settings.isAdmin?t._e():n("input",{attrs:{type:"text",tabindex:"-1",id:"newgroups",required:!t.settings.isAdmin},domProps:{value:t.newUser.groups}}),t._v(" "),n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.groups,placeholder:t.t("settings","Add user in group"),label:"name","track-by":"id",multiple:!0,"close-on-select":!1,allowEmpty:t.settings.isAdmin},model:{value:t.newUser.groups,callback:function(e){t.$set(t.newUser,"groups",e)},expression:"newUser.groups"}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1),t._v(" "),t.subAdminsGroups.length>0&&t.settings.isAdmin?n("div",{staticClass:"subadmins"},[n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.subAdminsGroups,placeholder:t.t("settings","Set user as admin for"),label:"name","track-by":"id",multiple:!0,"close-on-select":!1},model:{value:t.newUser.subAdminsGroups,callback:function(e){t.$set(t.newUser,"subAdminsGroups",e)},expression:"newUser.subAdminsGroups"}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1):t._e(),t._v(" "),n("div",{staticClass:"quota"},[n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.quotaOptions,placeholder:t.t("settings","Select user quota"),label:"label","track-by":"id",allowEmpty:!1,taggable:!0},on:{tag:t.validateQuota},model:{value:t.newUser.quota,callback:function(e){t.$set(t.newUser,"quota",e)},expression:"newUser.quota"}})],1),t._v(" "),t.showConfig.showLanguages?n("div",{staticClass:"languages"},[n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.languages,placeholder:t.t("settings","Default language"),label:"name","track-by":"code",allowEmpty:!1,"group-values":"languages","group-label":"label"},model:{value:t.newUser.language,callback:function(e){t.$set(t.newUser,"language",e)},expression:"newUser.language"}})],1):t._e(),t._v(" "),t.showConfig.showStoragePath?n("div",{staticClass:"storageLocation"}):t._e(),t._v(" "),t.showConfig.showUserBackend?n("div",{staticClass:"userBackend"}):t._e(),t._v(" "),t.showConfig.showLastLogin?n("div",{staticClass:"lastLogin"}):t._e(),t._v(" "),n("div",{staticClass:"userActions"},[n("input",{staticClass:"button primary icon-checkmark-white has-tooltip",attrs:{type:"submit",id:"newsubmit",value:"",title:t.t("settings","Add a new user")}}),t._v(" "),n("input",{staticClass:"button icon-close has-tooltip",attrs:{type:"reset",id:"newreset",value:"",title:t.t("settings","Cancel and reset the form")},on:{click:t.resetForm}})])]),t._v(" "),t._l(t.filteredUsers,function(e,r){return n("user-row",{key:r,attrs:{user:e,settings:t.settings,showConfig:t.showConfig,groups:t.groups,subAdminsGroups:t.subAdminsGroups,quotaOptions:t.quotaOptions,languages:t.languages}})}),t._v(" "),n("infinite-loading",{ref:"infiniteLoading",on:{infinite:t.infiniteHandler}},[n("div",{attrs:{slot:"spinner"},slot:"spinner"},[n("div",{staticClass:"users-icon-loading icon-loading"})]),t._v(" "),n("div",{attrs:{slot:"no-more"},slot:"no-more"},[n("div",{staticClass:"users-list-end"},[t._v("— "+t._s(t.t("settings","no more results"))+" —")])]),t._v(" "),n("div",{attrs:{slot:"no-results"},slot:"no-results"},[n("div",{attrs:{id:"emptycontent"}},[n("div",{staticClass:"icon-contacts-dark"}),t._v(" "),n("h2",[t._v(t._s(t.t("settings","No users in here")))])])])])],2)};re._withStripped=!0;var ie=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1===Object.keys(t.user).length?n("div",{staticClass:"row"},[n("div",{staticClass:"avatar",class:{"icon-loading-small":t.loading.delete||t.loading.disable}},[t.loading.delete||t.loading.disable?t._e():n("img",{attrs:{alt:"",width:"32",height:"32",src:t.generateAvatar(t.user.id,32),srcset:t.generateAvatar(t.user.id,64)+" 2x, "+t.generateAvatar(t.user.id,128)+" 4x"}})]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(t.user.id))]),t._v(" "),n("div",{staticClass:"obfuscated"},[t._v(t._s(t.t("settings","You do not have permissions to see the details of this user")))])]):n("div",{staticClass:"row",class:{disabled:t.loading.delete||t.loading.disable}},[n("div",{staticClass:"avatar",class:{"icon-loading-small":t.loading.delete||t.loading.disable}},[t.loading.delete||t.loading.disable?t._e():n("img",{attrs:{alt:"",width:"32",height:"32",src:t.generateAvatar(t.user.id,32),srcset:t.generateAvatar(t.user.id,64)+" 2x, "+t.generateAvatar(t.user.id,128)+" 4x"}})]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(t.user.id))]),t._v(" "),n("form",{staticClass:"displayName",class:{"icon-loading-small":t.loading.displayName},on:{submit:function(e){return e.preventDefault(),t.updateDisplayName(e)}}},[n("input",{ref:"displayName",attrs:{id:"displayName"+t.user.id+t.rand,type:"text",disabled:t.loading.displayName||t.loading.all,autocomplete:"new-password",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},domProps:{value:t.user.displayname}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}})]),t._v(" "),t.settings.canChangePassword?n("form",{staticClass:"password",class:{"icon-loading-small":t.loading.password},on:{submit:function(e){return e.preventDefault(),t.updatePassword(e)}}},[n("input",{ref:"password",attrs:{id:"password"+t.user.id+t.rand,type:"password",required:"",disabled:t.loading.password||t.loading.all,minlength:t.minPasswordLength,value:"",placeholder:t.t("settings","New password"),autocomplete:"new-password",autocorrect:"off",autocapitalize:"off",spellcheck:"false"}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}})]):n("div"),t._v(" "),n("form",{staticClass:"mailAddress",class:{"icon-loading-small":t.loading.mailAddress},on:{submit:function(e){return e.preventDefault(),t.updateEmail(e)}}},[n("input",{ref:"mailAddress",attrs:{id:"mailAddress"+t.user.id+t.rand,type:"email",disabled:t.loading.mailAddress||t.loading.all,autocomplete:"new-password",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},domProps:{value:t.user.email}}),t._v(" "),n("input",{staticClass:"icon-confirm",attrs:{type:"submit",value:""}})]),t._v(" "),n("div",{staticClass:"groups",class:{"icon-loading-small":t.loading.groups}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userGroups,options:t.groups,disabled:t.loading.groups||t.loading.all,"tag-placeholder":"create",placeholder:t.t("settings","Add user in group"),label:"name","track-by":"id",limit:2,multiple:!0,taggable:t.settings.isAdmin,closeOnSelect:!1},on:{tag:t.createGroup,select:t.addUserGroup,remove:t.removeUserGroup}},[n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.formatGroupsTitle(t.userGroups),expression:"formatGroupsTitle(userGroups)",modifiers:{auto:!0}}],staticClass:"multiselect__limit",attrs:{slot:"limit"},slot:"limit"},[t._v("+"+t._s(t.userGroups.length-2))]),t._v(" "),n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1),t._v(" "),t.subAdminsGroups.length>0&&t.settings.isAdmin?n("div",{staticClass:"subadmins",class:{"icon-loading-small":t.loading.subadmins}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userSubAdminsGroups,options:t.subAdminsGroups,disabled:t.loading.subadmins||t.loading.all,placeholder:t.t("settings","Set user as admin for"),label:"name","track-by":"id",limit:2,multiple:!0,closeOnSelect:!1},on:{select:t.addUserSubAdmin,remove:t.removeUserSubAdmin}},[n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.formatGroupsTitle(t.userSubAdminsGroups),expression:"formatGroupsTitle(userSubAdminsGroups)",modifiers:{auto:!0}}],staticClass:"multiselect__limit",attrs:{slot:"limit"},slot:"limit"},[t._v("+"+t._s(t.userSubAdminsGroups.length-2))]),t._v(" "),n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])])],1):t._e(),t._v(" "),n("div",{staticClass:"quota",class:{"icon-loading-small":t.loading.quota}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userQuota,options:t.quotaOptions,disabled:t.loading.quota||t.loading.all,"tag-placeholder":"create",placeholder:t.t("settings","Select user quota"),label:"label","track-by":"id",allowEmpty:!1,taggable:!0},on:{tag:t.validateQuota,input:t.setUserQuota}}),t._v(" "),n("progress",{staticClass:"quota-user-progress",class:{warn:t.usedQuota>80},attrs:{max:"100"},domProps:{value:t.usedQuota}})],1),t._v(" "),t.showConfig.showLanguages?n("div",{staticClass:"languages",class:{"icon-loading-small":t.loading.languages}},[n("multiselect",{staticClass:"multiselect-vue",attrs:{value:t.userLanguage,options:t.languages,disabled:t.loading.languages||t.loading.all,placeholder:t.t("settings","No language set"),label:"name","track-by":"code",allowEmpty:!1,"group-values":"languages","group-label":"label"},on:{input:t.setUserLanguage}})],1):t._e(),t._v(" "),t.showConfig.showStoragePath?n("div",{staticClass:"storageLocation"},[t._v(t._s(t.user.storageLocation))]):t._e(),t._v(" "),t.showConfig.showUserBackend?n("div",{staticClass:"userBackend"},[t._v(t._s(t.user.backend))]):t._e(),t._v(" "),t.showConfig.showLastLogin?n("div",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.user.lastLogin>0?t.OC.Util.formatDate(t.user.lastLogin):"",expression:"user.lastLogin>0 ? OC.Util.formatDate(user.lastLogin) : ''",modifiers:{auto:!0}}],staticClass:"lastLogin"},[t._v("\n\t\t"+t._s(t.user.lastLogin>0?t.OC.Util.relativeModifiedDate(t.user.lastLogin):t.t("settings","Never"))+"\n\t")]):t._e(),t._v(" "),n("div",{staticClass:"userActions"},[t.OC.currentUser===t.user.id||"admin"===t.user.id||t.loading.all?t._e():n("div",{staticClass:"toggleUserActions"},[n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMenu,expression:"hideMenu"}],staticClass:"icon-more",on:{click:t.toggleMenu}}),t._v(" "),n("div",{staticClass:"popovermenu",class:{open:t.openedMenu}},[n("popover-menu",{attrs:{menu:t.userActions}})],1)])])])};ie._withStripped=!0;var oe=r(9),se=r.n(oe),ae=r(107),ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i.a.use(ae.a);var ce=a({name:"userRow",props:["user","settings","groups","subAdminsGroups","quotaOptions","showConfig","languages"],components:{popoverMenu:Jt,Multiselect:se.a},directives:{ClickOutside:Zt.a},mounted:function(){},data:function(){return{rand:parseInt(1e3*Math.random()),openedMenu:!1,loading:{all:!1,displayName:!1,password:!1,mailAddress:!1,groups:!1,subadmins:!1,quota:!1,delete:!1,disable:!1,languages:!1}}},computed:{userActions:function(){return[{icon:"icon-delete",text:t("settings","Delete user"),action:this.deleteUser},{icon:this.user.enabled?"icon-close":"icon-add",text:this.user.enabled?t("settings","Disable user"):t("settings","Enable user"),action:this.enableDisableUser}]},userGroups:function(){var t=this,e=this.groups.filter(function(e){return t.user.groups.includes(e.id)});return e},userSubAdminsGroups:function(){var t=this,e=this.subAdminsGroups.filter(function(e){return t.user.subadmin.includes(e.id)});return e},usedQuota:function(){var t=this.user.quota.quota;t>0?t=Math.min(100,Math.round(this.user.quota.used/t*100)):t=95*(1-1/(this.user.quota.used/(10*Math.pow(2,30))+1));return isNaN(t)?0:t},userQuota:function(){if(this.user.quota.quota>=0){var t=OC.Util.humanFileSize(this.user.quota.quota),e=this.quotaOptions.find(function(e){return e.id===t});return e||{id:t,label:t}}return"default"===this.user.quota.quota?this.quotaOptions[0]:this.quotaOptions[1]},minPasswordLength:function(){return this.$store.getters.getPasswordPolicyMinLength},userLanguage:function(){var t=this,e=this.languages[0].languages.concat(this.languages[1].languages).find(function(e){return e.code===t.user.language});return"object"!==(void 0===e?"undefined":ue(e))&&""!==this.user.language?{code:this.user.language,name:this.user.language}:""!==this.user.language&&e}},methods:{toggleMenu:function(){this.openedMenu=!this.openedMenu},hideMenu:function(){this.openedMenu=!1},generateAvatar:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return OC.generateUrl("/avatar/{user}/{size}?v={version}",{user:t,size:e,version:oc_userconfig.avatar.version})},formatGroupsTitle:function(t){return t.map(function(t){return t.name}).slice(2).join(", ")},deleteUser:function(){var t=this;this.loading.delete=!0,this.loading.all=!0;var e=this.user.id;return this.$store.dispatch("deleteUser",{userid:e}).then(function(){t.loading.delete=!1,t.loading.all=!1})},enableDisableUser:function(){var t=this;this.loading.delete=!0,this.loading.all=!0;var e=this.user.id,n=!this.user.enabled;return this.$store.dispatch("enableDisableUser",{userid:e,enabled:n}).then(function(){t.loading.delete=!1,t.loading.all=!1})},updateDisplayName:function(){var t=this,e=this.$refs.displayName.value;this.loading.displayName=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"displayname",value:e}).then(function(){t.loading.displayName=!1,t.$refs.displayName.value=e})},updatePassword:function(){var t=this,e=this.$refs.password.value;this.loading.password=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"password",value:e}).then(function(){t.loading.password=!1,t.$refs.password.value=""})},updateEmail:function(){var t=this,e=this.$refs.mailAddress.value;this.loading.mailAddress=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"email",value:e}).then(function(){t.loading.mailAddress=!1,t.$refs.mailAddress.value=e})},createGroup:function(t){var e=this;return this.loading={groups:!0,subadmins:!0},this.$store.dispatch("addGroup",t).then(function(){e.loading={groups:!1,subadmins:!1};var n=e.user.id;e.$store.dispatch("addUserGroup",{userid:n,gid:t})}).catch(function(){e.loading={groups:!1,subadmins:!1}}),this.$store.getters.getGroups[this.groups.length]},addUserGroup:function(t){var e=this;this.loading.groups=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("addUserGroup",{userid:n,gid:r}).then(function(){return e.loading.groups=!1})},removeUserGroup:function(t){var e=this;this.loading.groups=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("removeUserGroup",{userid:n,gid:r}).then(function(){e.loading.groups=!1,e.$route.params.selectedGroup===r&&e.$store.commit("deleteUser",n)}).catch(function(){e.loading.groups=!1})},addUserSubAdmin:function(t){var e=this;this.loading.subadmins=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("addUserSubAdmin",{userid:n,gid:r}).then(function(){return e.loading.subadmins=!1})},removeUserSubAdmin:function(t){var e=this;this.loading.subadmins=!0;var n=this.user.id,r=t.id;return this.$store.dispatch("removeUserSubAdmin",{userid:n,gid:r}).then(function(){return e.loading.subadmins=!1})},setUserQuota:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"none";return this.loading.quota=!0,e=e.id?e.id:e,this.$store.dispatch("setUserData",{userid:this.user.id,key:"quota",value:e}).then(function(){return t.loading.quota=!1}),e},validateQuota:function(t){var e=OC.Util.computerFileSize(t);return null!==e&&e>=0&&this.setUserQuota(OC.Util.humanFileSize(OC.Util.computerFileSize(t)))},setUserLanguage:function(t){var e=this;return this.loading.languages=!0,this.$store.dispatch("setUserData",{userid:this.user.id,key:"language",value:t.code}).then(function(){return e.loading.languages=!1}),t}}},ie,[],!1,null,null,null);ce.options.__file="src/components/userList/userRow.vue";var le=ce.exports,fe=r(106),pe=r.n(fe),de=a({name:"userList",props:["users","showConfig","selectedGroup"],components:{userRow:le,Multiselect:se.a,InfiniteLoading:pe.a},data:function(){var e={id:"none",label:t("settings","Unlimited")},n={id:"default",label:t("settings","Default quota")};return{unlimitedQuota:e,defaultQuota:n,loading:!1,scrolled:!1,newUser:{id:"",displayName:"",password:"",mailAddress:"",groups:[],subAdminsGroups:[],quota:n,language:{code:"en",name:t("settings","Default language")}}}},mounted:function(){this.settings.canChangePassword||OC.Notification.showTemporary(t("settings","Password change is disabled because the master key is disabled")),i.a.set(this.newUser.language,"code",this.settings.defaultLanguage),this.setNewUserDefaultGroup(this.$route.params.selectedGroup)},computed:{settings:function(){return this.$store.getters.getServerData},filteredUsers:function(){if("disabled"===this.selectedGroup){var t=this.users.filter(function(t){return!1===t.enabled});return 0===t.length&&this.$refs.infiniteLoading&&this.$refs.infiniteLoading.isComplete&&(this.$router.push({name:"users"}),this.$refs.infiniteLoading.$emit("$InfiniteLoading:reset")),t}return this.settings.isAdmin?this.users.filter(function(t){return!1!==t.enabled}):this.users.filter(function(t){return!1!==t.enabled&&t.id!==oc_current_user})},groups:function(){return this.$store.getters.getGroups.filter(function(t){return"disabled"!==t.id}).sort(function(t,e){return t.name.localeCompare(e.name)})},subAdminsGroups:function(){return this.$store.getters.getSubadminGroups},quotaOptions:function(){var t=this.settings.quotaPreset.reduce(function(t,e){return t.concat({id:e,label:e})},[]);return t.unshift(this.unlimitedQuota),t.unshift(this.defaultQuota),t},minPasswordLength:function(){return this.$store.getters.getPasswordPolicyMinLength},usersOffset:function(){return this.$store.getters.getUsersOffset},usersLimit:function(){return this.$store.getters.getUsersLimit},languages:function(){return Array({label:t("settings","Common languages"),languages:this.settings.languages.commonlanguages},{label:t("settings","All languages"),languages:this.settings.languages.languages})}},watch:{selectedGroup:function(t,e){this.$store.commit("resetUsers"),this.$refs.infiniteLoading.$emit("$InfiniteLoading:reset"),this.setNewUserDefaultGroup(t)}},methods:{onScroll:function(t){this.scrolled=t.target.scrollTop>0},validateQuota:function(t){var e=OC.Util.computerFileSize(t);return null!==e&&e>=0?(t=OC.Util.humanFileSize(OC.Util.computerFileSize(t)),this.newUser.quota={id:t,label:t}):this.newUser.quota=this.quotaOptions[0]},infiniteHandler:function(t){this.$store.dispatch("getUsers",{offset:this.usersOffset,limit:this.usersLimit,group:"disabled"!==this.selectedGroup?this.selectedGroup:""}).then(function(e){e?t.loaded():t.complete()})},resetForm:function(){Object.assign(this.newUser,this.$options.data.call(this).newUser),this.loading=!1},createUser:function(){var t=this;this.loading=!0,this.$store.dispatch("addUser",{userid:this.newUser.id,password:this.newUser.password,email:this.newUser.mailAddress,groups:this.newUser.groups.map(function(t){return t.id}),subadmin:this.newUser.subAdminsGroups.map(function(t){return t.id}),quota:this.newUser.quota.id,language:this.newUser.language.code}).then(function(){return t.resetForm()}).catch(function(){return t.loading=!1})},setNewUserDefaultGroup:function(t){if(t&&t.length>0){var e=this.groups.find(function(e){return e.id===t});if(e)return void(this.newUser.groups=[e])}this.newUser.groups=[]}}},re,[],!1,null,null,null);de.options.__file="src/components/userList.vue";var he=de.exports,ve=r(40),me=r.n(ve),ge=r(28),ye=r.n(ge),be={headers:{requesttoken:document.getElementsByTagName("head")[0].getAttribute("data-requesttoken")}},_e=function(t){return t.replace(/\/$/,"")},we=function(){return new Promise(function(e,n){var r=void 0,i=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(i),e())}()})},xe=function(t){return ye.a.get(_e(t),be).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Ce=function(t,e){return ye.a.post(_e(t),e,be).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Oe=function(t,e){return ye.a.put(_e(t),e,be).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Se=function(t,e){return ye.a.delete(_e(t),{data:e,headers:be.headers}).then(function(t){return Promise.resolve(t)}).catch(function(t){return Promise.reject(t)})},Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i.a.use(me.a),i.a.use(me.a);var ke=a({name:"Users",props:["selectedGroup"],components:{appNavigation:ne,userList:he,Multiselect:se.a},beforeMount:function(){this.$store.commit("initGroups",{groups:this.$store.getters.getServerData.groups,orderBy:this.$store.getters.getServerData.sortGroups,userCount:this.$store.getters.getServerData.userCount}),this.$store.dispatch("getPasswordPolicyMinLength")},data:function(){return{unlimitedQuota:{id:"none",label:t("settings","Unlimited")},selectedQuota:!1,showConfig:{showStoragePath:!1,showUserBackend:!1,showLastLogin:!1,showNewUserForm:!1,showLanguages:!1}}},methods:{toggleNewUserMenu:function(){this.showConfig.showNewUserForm=!this.showConfig.showNewUserForm,this.showConfig.showNewUserForm&&i.a.nextTick(function(){window.newusername.focus()})},getLocalstorage:function(t){var e=this.$localStorage.get(t);return this.showConfig[t]=null!==e?"true"===e:this.showConfig[t],this.showConfig[t]},setLocalStorage:function(t,e){return this.showConfig[t]=e,this.$localStorage.set(t,e),e},removeGroup:function(e){var n=this;OC.dialogs.confirm(t("settings","You are about to remove the group {group}. The users will NOT be deleted.",{group:e}),t("settings","Please confirm the group removal "),function(t){t&&n.$store.dispatch("removeGroup",e)})},setDefaultQuota:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"none";this.$store.dispatch("setAppConfig",{app:"files",key:"default_quota",value:e.id?e.id:e}).then(function(){"object"!==(void 0===e?"undefined":Ae(e))&&(e={id:e,label:e}),t.defaultQuota=e})},validateQuota:function(t){var e=OC.Util.computerFileSize(t);return 0===e?this.setDefaultQuota("none"):null!==e&&this.setDefaultQuota(OC.Util.humanFileSize(OC.Util.computerFileSize(t)))}},computed:{users:function(){return this.$store.getters.getUsers},loading:function(){return 0===Object.keys(this.users).length},usersOffset:function(){return this.$store.getters.getUsersOffset},usersLimit:function(){return this.$store.getters.getUsersLimit},showLanguages:{get:function(){return this.getLocalstorage("showLanguages")},set:function(t){this.setLocalStorage("showLanguages",t)}},showLastLogin:{get:function(){return this.getLocalstorage("showLastLogin")},set:function(t){this.setLocalStorage("showLastLogin",t)}},showUserBackend:{get:function(){return this.getLocalstorage("showUserBackend")},set:function(t){this.setLocalStorage("showUserBackend",t)}},showStoragePath:{get:function(){return this.getLocalstorage("showStoragePath")},set:function(t){this.setLocalStorage("showStoragePath",t)}},userCount:function(){return this.$store.getters.getUserCount},settings:function(){return this.$store.getters.getServerData},quotaOptions:function(){var t=this.settings.quotaPreset.reduce(function(t,e){return t.concat({id:e,label:e})},[]);return t.unshift(this.unlimitedQuota),t},defaultQuota:{get:function(){return!1!==this.selectedQuota?this.selectedQuota:OC.Util.computerFileSize(this.settings.defaultQuota)>0?{id:this.settings.defaultQuota,label:this.settings.defaultQuota}:this.unlimitedQuota},set:function(t){this.selectedQuota=t}},menu:function(){var e=this,n=this.$store.getters.getGroups,r=(n=(n=Array.isArray(n)?n:[]).map(function(n){var r={};if(r.id=n.id.replace(" ","_"),r.key=r.id,r.utils={},r.router={name:"group",params:{selectedGroup:n.id}},r.text=n.name,n.usercount-n.disabled>0&&(r.utils.counter=n.usercount-n.disabled),"admin"!==r.id&&"disabled"!==r.id&&e.settings.isAdmin){var i=e;r.utils.actions=[{icon:"icon-delete",text:t("settings","Remove group"),action:function(){i.removeGroup(n.id)}}]}return r})).find(function(t){return"admin"==t.id}),i=n.findIndex(function(t){return"disabled"==t.id}),o=n[i];r&&r.text&&(r.text=t("settings","Admins")),o&&o.text&&(o.text=t("settings","Disabled users"),0===o.utils.counter&&n.splice(i,1));var s={id:"everyone",key:"everyone",router:{name:"users"},text:t("settings","Everyone")};return this.userCount>0&&(s.utils={counter:this.userCount}),n.unshift(s),{id:"usergrouplist",new:{id:"new-user-button",text:t("settings","New user"),icon:"icon-add",action:this.toggleNewUserMenu},items:n}}}},Ht,[],!1,null,null,null);ke.options.__file="src/views/Users.vue";var Ee=ke.exports,$e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("app-navigation",{attrs:{menu:t.menu}}),t._v(" "),n("div",{staticClass:"app-settings-content",class:{"with-app-sidebar":t.currentApp,"icon-loading":t.loadingList},attrs:{id:"app-content"}},[n("app-list",{attrs:{category:t.category,app:t.currentApp,search:t.search}}),t._v(" "),t.id&&t.currentApp?n("div",{attrs:{id:"app-sidebar"}},[n("app-details",{attrs:{category:t.category,app:t.currentApp}})],1):t._e()],1)],1)};$e._withStripped=!0;var Le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app-content-inner"}},[n("div",{class:{installed:t.useBundleView||t.useListView,store:t.useAppStoreView},attrs:{id:"apps-list"}},[t.useListView?t._l(t.apps,function(e){return n("app-item",{key:e.id,attrs:{app:e,category:t.category}})}):t._e(),t._v(" "),t._l(t.bundles,function(e){return t.useBundleView&&t.bundleApps(e.id).length>0?[n("div",{staticClass:"apps-header"},[n("div",{staticClass:"app-image"}),t._v(" "),n("h2",[t._v(t._s(e.name)+" "),n("input",{attrs:{type:"button",value:t.bundleToggleText(e.id)},on:{click:function(n){t.toggleBundle(e.id)}}})]),t._v(" "),n("div",{staticClass:"app-version"}),t._v(" "),n("div",{staticClass:"app-level"}),t._v(" "),n("div",{staticClass:"app-groups"}),t._v(" "),n("div",{staticClass:"actions"},[t._v(" ")])]),t._v(" "),t._l(t.bundleApps(e.id),function(r){return n("app-item",{key:e.id+r.id,attrs:{app:r,category:t.category}})})]:t._e()}),t._v(" "),t.useAppStoreView?t._l(t.apps,function(e){return n("app-item",{key:e.id,attrs:{app:e,category:t.category,"list-view":!1}})}):t._e()],2),t._v(" "),n("div",{staticClass:"installed",attrs:{id:"apps-list-search"}},[""!==t.search&&t.searchApps.length>0?[n("div",{staticClass:"section"},[n("div"),t._v(" "),n("h2",[t._v(t._s(t.t("settings","Results from other categories")))])]),t._v(" "),t._l(t.searchApps,function(e){return n("app-item",{key:e.id,attrs:{app:e,category:t.category,"list-view":!0}})})]:t._e()],2),t._v(" "),t.loading||0!==t.searchApps.length||0!==t.apps.length?t._e():n("div",{staticClass:"emptycontent emptycontent-search",attrs:{id:"apps-list-empty"}},[n("div",{staticClass:"icon-settings-dark",attrs:{id:"app-list-empty-icon"}}),t._v(" "),n("h2",[t._v(t._s(t.t("settings","No apps found for your versoin")))])]),t._v(" "),n("div",{attrs:{id:"searchresults"}})])};Le._withStripped=!0;var Te=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section",class:{selected:t.isSelected},on:{click:t.showAppDetails}},[n("div",{staticClass:"app-image app-image-icon",on:{click:t.showAppDetails}},[t.listView&&!t.app.preview||!t.listView&&!t.app.screenshot?n("div",{staticClass:"icon-settings-dark"}):t._e(),t._v(" "),t.listView&&t.app.preview?n("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32"}},[n("defs",[n("filter",{attrs:{id:t.filterId}},[n("feColorMatrix",{attrs:{in:"SourceGraphic",type:"matrix",values:"-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"}})],1)]),t._v(" "),n("image",{staticClass:"app-icon",attrs:{x:"0",y:"0",width:"32",height:"32",preserveAspectRatio:"xMinYMin meet",filter:t.filterUrl,"xlink:href":t.app.preview}})]):t._e(),t._v(" "),!t.listView&&t.app.screenshot?n("img",{attrs:{src:t.app.screenshot,width:"100%"}}):t._e()]),t._v(" "),n("div",{staticClass:"app-name",on:{click:t.showAppDetails}},[t._v("\n\t\t"+t._s(t.app.name)+"\n\t")]),t._v(" "),t.listView?t._e():n("div",{staticClass:"app-summary"},[t._v(t._s(t.app.summary))]),t._v(" "),t.listView?n("div",{staticClass:"app-version"},[t.app.version?n("span",[t._v(t._s(t.app.version))]):t.app.appstoreData.releases[0].version?n("span",[t._v(t._s(t.app.appstoreData.releases[0].version))]):t._e()]):t._e(),t._v(" "),n("div",{staticClass:"app-level"},[200===t.app.level?n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.t("settings","Official apps are developed by and within the community. They offer central functionality and are ready for production use."),expression:"t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.')",modifiers:{auto:!0}}],staticClass:"official icon-checkmark"},[t._v("\n\t\t\t"+t._s(t.t("settings","Official")))]):t._e(),t._v(" "),t.listView?t._e():n("app-score",{attrs:{score:t.app.score}})],1),t._v(" "),n("div",{staticClass:"actions"},[t.app.error?n("div",{staticClass:"warning"},[t._v(t._s(t.app.error))]):t._e(),t._v(" "),t.loading(t.app.id)?n("div",{staticClass:"icon icon-loading-small"}):t._e(),t._v(" "),t.app.update?n("input",{staticClass:"update",attrs:{type:"button",value:t.t("settings","Update to {update}",{update:t.app.update}),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.update(t.app.id)}}}):t._e(),t._v(" "),t.app.canUnInstall?n("input",{staticClass:"uninstall",attrs:{type:"button",value:t.t("settings","Remove"),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.remove(t.app.id)}}}):t._e(),t._v(" "),t.app.active?n("input",{staticClass:"enable",attrs:{type:"button",value:t.t("settings","Disable"),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.disable(t.app.id)}}}):t._e(),t._v(" "),t.app.active?t._e():n("input",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.enableButtonTooltip,expression:"enableButtonTooltip",modifiers:{auto:!0}}],staticClass:"enable",attrs:{type:"button",value:t.enableButtonText,disabled:!t.app.canInstall||t.installing||t.loading(t.app.id)},on:{click:function(e){t.enable(t.app.id)}}})])])};Te._withStripped=!0;var Pe=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"app-score-image",attrs:{src:this.scoreImage}})};Pe._withStripped=!0;var je=a({name:"appScore",props:["score"],computed:{scoreImage:function(){var t="rating/s"+Math.round(10*this.score)+".svg";return OC.imagePath("core",t)}}},Pe,[],!1,null,null,null);je.options.__file="src/components/appList/appScore.vue";var Ne=je.exports,Ie=a({mounted:function(){this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},computed:{appGroups:function(){return this.app.groups.map(function(t){return{id:t,name:t}})},loading:function(){var t=this;return function(e){return t.$store.getters.loading(e)}},installing:function(){return this.$store.getters.loading("install")},enableButtonText:function(){return this.app.needsDownload?t("settings","Download and enable"):t("settings","Enable")},enableButtonTooltip:function(){return!!this.app.needsDownload&&t("settings","The app will be downloaded from the app store")}},methods:{isLimitedToGroups:function(t){return!(!this.app.groups.length&&!this.groupCheckedAppsData)},setGroupLimit:function(){this.groupCheckedAppsData||this.$store.dispatch("enableApp",{appId:this.app.id,groups:[]})},canLimitToGroups:function(t){return!(t.types&&t.types.includes("filesystem")||t.types.includes("prelogin")||t.types.includes("authentication")||t.types.includes("logging")||t.types.includes("prevent_group_restriction"))},addGroupLimitation:function(t){var e=this.app.groups.concat([]).concat([t.id]);this.$store.dispatch("enableApp",{appId:this.app.id,groups:e})},removeGroupLimitation:function(t){var e=this.app.groups.concat([]),n=e.indexOf(t.id);n>-1&&e.splice(n,1),this.$store.dispatch("enableApp",{appId:this.app.id,groups:e})},enable:function(t){this.$store.dispatch("enableApp",{appId:t,groups:[]}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},disable:function(t){this.$store.dispatch("disableApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},remove:function(t){this.$store.dispatch("uninstallApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},install:function(t){this.$store.dispatch("enableApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})},update:function(t){this.$store.dispatch("updateApp",{appId:t}).then(function(t){OC.Settings.Apps.rebuildNavigation()}).catch(function(t){OC.Notification.show(t)})}}},void 0,void 0,!1,null,null,null);Ie.options.__file="src/components/appManagement.vue";var Me=Ie.exports,Ue=a({name:"svgFilterMixin",mounted:function(){this.filterId="invertIconApps"+Math.floor(100*Math.random())+(new Date).getSeconds()+(new Date).getMilliseconds()},computed:{filterUrl:function(){return"url(#"+this.filterId+")"}},data:function(){return{filterId:""}}},void 0,void 0,!1,null,null,null);Ue.options.__file="src/components/svgFilterMixin.vue";var De=Ue.exports,Fe=a({name:"appItem",mixins:[Me,De],props:{app:{},category:{},listView:{type:Boolean,default:!0}},watch:{"$route.params.id":function(t){this.isSelected=this.app.id===t}},components:{Multiselect:se.a,AppScore:Ne},data:function(){return{isSelected:!1,scrolled:!1}},mounted:function(){this.isSelected=this.app.id===this.$route.params.id},computed:{},watchers:{},methods:{showAppDetails:function(t){"INPUT"!==t.currentTarget.tagName&&"A"!==t.currentTarget.tagName&&this.$router.push({name:"apps-details",params:{category:this.category,id:this.app.id}})},prefix:function(t,e){return t+"_"+e}}},Te,[],!1,null,null,null);Fe.options.__file="src/components/appList/appItem.vue";var Re=Fe.exports,Be=a({name:"prefixMixin",methods:{prefix:function(t,e){return t+"_"+e}}},void 0,void 0,!1,null,null,null);Be.options.__file="src/components/prefixMixin.vue";var Ge=Be.exports,Ve=a({name:"appList",mixins:[Ge],props:["category","app","search"],components:{Multiselect:se.a,appItem:Re},computed:{loading:function(){return this.$store.getters.loading("list")},apps:function(){var t=this,e=this.$store.getters.getAllApps.filter(function(e){return-1!==e.name.toLowerCase().search(t.search.toLowerCase())}).sort(function(t,e){return t.active!==e.active?t.active?-1:1:t.update!==e.update?t.update?-1:1:OC.Util.naturalSortCompare(t.name,e.name)});return"installed"===this.category?e.filter(function(t){return t.installed}):"enabled"===this.category?e.filter(function(t){return t.active}):"disabled"===this.category?e.filter(function(t){return!t.active}):"app-bundles"===this.category?e.filter(function(t){return t.bundles}):"updates"===this.category?e.filter(function(t){return t.update}):e.filter(function(e){return e.appstore&&void 0!==e.category&&(e.category===t.category||e.category.indexOf(t.category)>-1)})},bundles:function(){return this.$store.getters.getServerData.bundles},bundleApps:function(){return function(t){return this.$store.getters.getAllApps.filter(function(e){return e.bundleId===t})}},searchApps:function(){var t=this;return""===this.search?[]:this.$store.getters.getAllApps.filter(function(e){return-1!==e.name.toLowerCase().search(t.search.toLowerCase())&&!t.apps.find(function(t){return t.id===e.id})})},useAppStoreView:function(){return!this.useListView&&!this.useBundleView},useListView:function(){return"installed"===this.category||"enabled"===this.category||"disabled"===this.category||"updates"===this.category},useBundleView:function(){return"app-bundles"===this.category},allBundlesEnabled:function(){var t=this;return function(e){return 0===t.bundleApps(e).filter(function(t){return!t.active}).length}},bundleToggleText:function(){var e=this;return function(n){return e.allBundlesEnabled(n)?t("settings","Disable all"):t("settings","Enable all")}}},methods:{toggleBundle:function(t){return this.allBundlesEnabled(t)?this.disableBundle(t):this.enableBundle(t)},enableBundle:function(t){var e=this.bundleApps(t).map(function(t){return t.id});this.$store.dispatch("enableApp",{appId:e,groups:[]}).catch(function(t){console.log(t),OC.Notification.show(t)})},disableBundle:function(t){var e=this.bundleApps(t).map(function(t){return t.id});this.$store.dispatch("disableApp",{appId:e,groups:[]}).catch(function(t){OC.Notification.show(t)})}}},Le,[],!1,null,null,null);Ve.options.__file="src/components/appList.vue";var He=Ve.exports,qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"20px"},attrs:{id:"app-details-view"}},[n("a",{staticClass:"close icon-close",attrs:{href:"#"},on:{click:t.hideAppDetails}},[n("span",{staticClass:"hidden-visually"},[t._v("Close")])]),t._v(" "),n("h2",[t.app.preview?t._e():n("div",{staticClass:"icon-settings-dark"}),t._v(" "),t.app.previewAsIcon&&t.app.preview?n("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32"}},[n("defs",[n("filter",{attrs:{id:t.filterId}},[n("feColorMatrix",{attrs:{in:"SourceGraphic",type:"matrix",values:"-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"}})],1)]),t._v(" "),n("image",{staticClass:"app-icon",attrs:{x:"0",y:"0",width:"32",height:"32",preserveAspectRatio:"xMinYMin meet",filter:t.filterUrl,"xlink:href":t.app.preview}})]):t._e(),t._v("\n\t\t"+t._s(t.app.name))]),t._v(" "),t.app.screenshot?n("img",{attrs:{src:t.app.screenshot,width:"100%"}}):t._e(),t._v(" "),200===t.app.level||t.hasRating?n("div",{staticClass:"app-level"},[200===t.app.level?n("span",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.t("settings","Official apps are developed by and within the community. They offer central functionality and are ready for production use."),expression:"t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.')",modifiers:{auto:!0}}],staticClass:"official icon-checkmark"},[t._v("\n\t\t\t"+t._s(t.t("settings","Official")))]):t._e(),t._v(" "),t.hasRating?n("app-score",{attrs:{score:t.app.appstoreData.ratingOverall}}):t._e()],1):t._e(),t._v(" "),t.author?n("div",{staticClass:"app-author"},[t._v("\n\t\t"+t._s(t.t("settings","by"))+"\n\t\t"),t._l(t.author,function(e,r){return n("span",[e["@attributes"]&&e["@attributes"].homepage?n("a",{attrs:{href:e["@attributes"].homepage}},[t._v(t._s(e["@value"]))]):e["@value"]?n("span",[t._v(t._s(e["@value"]))]):n("span",[t._v(t._s(e))]),r+1<t.author.length?n("span",[t._v(", ")]):t._e()])})],2):t._e(),t._v(" "),t.licence?n("div",{staticClass:"app-licence"},[t._v(t._s(t.licence))]):t._e(),t._v(" "),n("div",{staticClass:"actions"},[n("div",{staticClass:"actions-buttons"},[t.app.update?n("input",{staticClass:"update",attrs:{type:"button",value:t.t("settings","Update to {version}",{version:t.app.update}),disabled:t.installing||t.loading(t.app.id)}}):t._e(),t._v(" "),t.app.canUnInstall?n("input",{staticClass:"uninstall",attrs:{type:"button",value:t.t("settings","Remove"),disabled:t.installing||t.loading(t.app.id)}}):t._e(),t._v(" "),t.app.active?n("input",{staticClass:"enable",attrs:{type:"button",value:t.t("settings","Disable"),disabled:t.installing||t.loading(t.app.id)},on:{click:function(e){t.disable(t.app.id)}}}):t._e(),t._v(" "),t.app.active?t._e():n("input",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:t.enableButtonTooltip,expression:"enableButtonTooltip",modifiers:{auto:!0}}],staticClass:"enable",attrs:{type:"button",value:t.enableButtonText,disabled:!t.app.canInstall||t.installing||t.loading(t.app.id)},on:{click:function(e){t.enable(t.app.id)}}})]),t._v(" "),n("div",{staticClass:"app-groups"},[t.app.active&&t.canLimitToGroups(t.app)?n("div",{staticClass:"groups-enable"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.groupCheckedAppsData,expression:"groupCheckedAppsData"}],staticClass:"groups-enable__checkbox checkbox",attrs:{type:"checkbox",id:t.prefix("groups_enable",t.app.id)},domProps:{value:t.app.id,checked:Array.isArray(t.groupCheckedAppsData)?t._i(t.groupCheckedAppsData,t.app.id)>-1:t.groupCheckedAppsData},on:{change:[function(e){var n=t.groupCheckedAppsData,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.app.id,s=t._i(n,o);r.checked?s<0&&(t.groupCheckedAppsData=n.concat([o])):s>-1&&(t.groupCheckedAppsData=n.slice(0,s).concat(n.slice(s+1)))}else t.groupCheckedAppsData=i},t.setGroupLimit]}}),t._v(" "),n("label",{attrs:{for:t.prefix("groups_enable",t.app.id)}},[t._v("Auf Gruppen beschränken")]),t._v(" "),n("input",{staticClass:"group_select",attrs:{type:"hidden",title:"Alle",value:""}}),t._v(" "),t.isLimitedToGroups(t.app)?n("multiselect",{staticClass:"multiselect-vue",attrs:{options:t.groups,value:t.appGroups,"options-limit":5,placeholder:t.t("settings","Limit app usage to groups"),label:"name","track-by":"id",multiple:!0,"close-on-select":!1},on:{select:t.addGroupLimitation,remove:t.removeGroupLimitation}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[t._v(t._s(t.t("settings","No results")))])]):t._e()],1):t._e()])]),t._v(" "),n("p",{staticClass:"documentation"},[t.app.internal?t._e():n("a",{staticClass:"appslink",attrs:{href:t.appstoreUrl,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","View in store"))+" ↗")]),t._v(" "),t.app.website?n("a",{staticClass:"appslink",attrs:{href:t.app.website,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Visit website"))+" ↗")]):t._e(),t._v(" "),t.app.bugs?n("a",{staticClass:"appslink",attrs:{href:t.app.bugs,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Report a bug"))+" ↗")]):t._e(),t._v(" "),t.app.documentation&&t.app.documentation.user?n("a",{staticClass:"appslink",attrs:{href:t.app.documentation.user,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","User documentation"))+" ↗")]):t._e(),t._v(" "),t.app.documentation&&t.app.documentation.admin?n("a",{staticClass:"appslink",attrs:{href:t.app.documentation.admin,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Admin documentation"))+" ↗")]):t._e(),t._v(" "),t.app.documentation&&t.app.documentation.developer?n("a",{staticClass:"appslink",attrs:{href:t.app.documentation.developer,target:"_blank",rel:"noreferrer noopener"}},[t._v(t._s(t.t("settings","Developer documentation"))+" ↗")]):t._e()]),t._v(" "),n("ul",{staticClass:"app-dependencies"},[t.app.missingMinOwnCloudVersion?n("li",[t._v(t._s(t.t("settings","This app has no minimum Nextcloud version assigned. This will be an error in the future.")))]):t._e(),t._v(" "),t.app.missingMaxOwnCloudVersion?n("li",[t._v(t._s(t.t("settings","This app has no maximum Nextcloud version assigned. This will be an error in the future.")))]):t._e(),t._v(" "),t.app.canInstall?t._e():n("li",[t._v("\n\t\t\t"+t._s(t.t("settings","This app cannot be installed because the following dependencies are not fulfilled:"))+"\n\t\t\t"),n("ul",{staticClass:"missing-dependencies"},t._l(t.app.missingDependencies,function(e){return n("li",[t._v(t._s(e))])}))])]),t._v(" "),n("div",{staticClass:"app-description",domProps:{innerHTML:t._s(t.renderMarkdown)}})])};qe._withStripped=!0;var ze=a({mixins:[Me,Ge,De],name:"appDetails",props:["category","app"],components:{Multiselect:se.a,AppScore:Ne},data:function(){return{groupCheckedAppsData:!1}},mounted:function(){this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},methods:{hideAppDetails:function(){this.$router.push({name:"apps-category",params:{category:this.category}})}},computed:{appstoreUrl:function(){return"https://apps.nextcloud.com/apps/"+this.app.id},licence:function(){return this.app.licence?(""+this.app.licence).toUpperCase()+t("settings","-licensed"):null},hasRating:function(){return this.app.appstoreData&&this.app.appstoreData.ratingNumOverall>5},author:function(){return"string"==typeof this.app.author?[{"@value":this.app.author}]:this.app.author["@value"]?[this.app.author]:this.app.author},appGroups:function(){return this.app.groups.map(function(t){return{id:t,name:t}})},groups:function(){return this.$store.getters.getGroups.filter(function(t){return"disabled"!==t.id}).sort(function(t,e){return t.name.localeCompare(e.name)})},renderMarkdown:function(){var t=new window.marked.Renderer;return t.link=function(t,e,n){try{var r=decodeURIComponent(unescape(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return""}if(0!==r.indexOf("http:")&&0!==r.indexOf("https:"))return"";var i='<a href="'+t+'" rel="noreferrer noopener"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>"},t.image=function(t,e,n){return n||e},t.blockquote=function(t){return t},DOMPurify.sanitize(window.marked(this.app.description.trim(),{renderer:t,gfm:!1,highlight:!1,tables:!1,breaks:!1,pedantic:!1,sanitize:!0,smartLists:!0,smartypants:!1}),{SAFE_FOR_JQUERY:!0,ALLOWED_TAGS:["strong","p","a","ul","ol","li","em","del","blockquote"]})}}},qe,[],!1,null,null,null);ze.options.__file="src/components/appDetails.vue";var We=ze.exports;i.a.use(me.a),i.a.use(me.a);var Ye=a({name:"Apps",props:{category:{type:String,default:"installed"},id:{type:String,default:""}},components:{AppDetails:We,appNavigation:ne,appList:He},methods:{setSearch:function(t){this.search=t}},beforeMount:function(){this.$store.dispatch("getCategories"),this.$store.dispatch("getAllApps"),this.$store.dispatch("getGroups",{offset:0,limit:-1}),this.$store.commit("setUpdateCount",this.$store.getters.getServerData.updateCount)},mounted:function(){$("#searchbox").show();var t=this;$("#searchbox").change(function(e){t.setSearch($("#searchbox").val())})},data:function(){return{search:""}},watch:{category:function(t,e){this.setSearch("")}},computed:{loading:function(){return this.$store.getters.loading("categories")},loadingList:function(){return this.$store.getters.loading("list")},currentApp:function(){var t=this;return this.apps.find(function(e){return e.id===t.id})},categories:function(){return this.$store.getters.getCategories},apps:function(){return this.$store.getters.getAllApps},updateCount:function(){return this.$store.getters.getUpdateCount},settings:function(){return this.$store.getters.getServerData},menu:function(){var e=this,n=this.$store.getters.getCategories;n=(n=Array.isArray(n)?n:[]).map(function(t){var e={};return e.id="app-category-"+t.ident,e.icon="icon-category-"+t.ident,e.classes=[],e.router={name:"apps-category",params:{category:t.ident}},e.text=t.displayName,e});var r=[{id:"app-category-your-apps",classes:[],router:{name:"apps"},icon:"icon-category-installed",text:t("settings","Your apps")},{id:"app-category-enabled",classes:[],icon:"icon-category-enabled",router:{name:"apps-category",params:{category:"enabled"}},text:t("settings","Active apps")},{id:"app-category-disabled",classes:[],icon:"icon-category-disabled",router:{name:"apps-category",params:{category:"disabled"}},text:t("settings","Disabled apps")}];if(!this.settings.appstoreEnabled)return{id:"appscategories",items:r};this.$store.getters.getUpdateCount>0&&r.push({id:"app-category-updates",classes:[],icon:"icon-download",router:{name:"apps-category",params:{category:"updates"}},text:t("settings","Updates"),utils:{counter:this.$store.getters.getUpdateCount}}),r.push({id:"app-category-app-bundles",classes:[],icon:"icon-category-app-bundles",router:{name:"apps-category",params:{category:"app-bundles"}},text:t("settings","App bundles")});var i=(n=r.concat(n)).findIndex(function(t){return t.id==="app-category-"+e.category});return i>=0?n[i].classes.push("active"):n[0].classes.push("active"),n.push({id:"app-developer-docs",classes:[],href:this.settings.developerDocumentation,text:t("settings","Developer documentation")+" ↗"}),{id:"appscategories",items:n,loading:this.loading}}}},$e,[],!1,null,null,null);Ye.options.__file="src/views/Apps.vue";var Ke=Ye.exports;i.a.use(Vt);var Qe=new Vt({mode:"history",base:OC.generateUrl(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:Ee,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:Ee}]},{path:"/:index(index.php/)?settings/apps",component:Ke,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:Ke,children:[{path:":id",name:"apps-details",component:Ke}]}]}]}),Je=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)}},Xe="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__; /** * vuex v3.0.1 * (c) 2017 Evan You * @license MIT - */function Ze(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var tn=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)||{}},en={namespaced:{configurable:!0}};en.namespaced.get=function(){return!!this._rawModule.namespaced},tn.prototype.addChild=function(t,e){this._children[t]=e},tn.prototype.removeChild=function(t){delete this._children[t]},tn.prototype.getChild=function(t){return this._children[t]},tn.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)},tn.prototype.forEachChild=function(t){Ze(this._children,t)},tn.prototype.forEachGetter=function(t){this._rawModule.getters&&Ze(this._rawModule.getters,t)},tn.prototype.forEachAction=function(t){this._rawModule.actions&&Ze(this._rawModule.actions,t)},tn.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ze(this._rawModule.mutations,t)},Object.defineProperties(tn.prototype,en);var nn=function(t){this.register([],t,!1)};nn.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},nn.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},nn.prototype.update=function(t){!function t(e,n,r){0;n.update(r);if(r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},nn.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new tn(e,n);0===t.length?this.root=i:this.get(t.slice(0,-1)).addChild(t[t.length-1],i);e.modules&&Ze(e.modules,function(e,i){r.register(t.concat(i),e,n)})},nn.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 rn;var on=function(t){var e=this;void 0===t&&(t={}),!rn&&"undefined"!=typeof window&&window.Vue&&dn(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new nn(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new rn;var o=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return a.call(o,t,e,n)},this.strict=r,ln(this,i,[],this._modules.root),cn(this,i),n.forEach(function(t){return t(e)}),rn.config.devtools&&function(t){Xe&&(t._devtoolHook=Xe,Xe.emit("vuex:init",t),Xe.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){Xe.emit("vuex:mutation",t,e)}))}(this)},sn={state:{configurable:!0}};function an(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function un(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;ln(t,n,[],t._modules.root,!0),cn(t,n,e)}function cn(t,e,n){var r=t._vm;t.getters={};var i={};Ze(t._wrappedGetters,function(e,n){i[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var o=rn.config.silent;rn.config.silent=!0,t._vm=new rn({data:{$$state:e},computed:i}),rn.config.silent=o,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}),rn.nextTick(function(){return r.$destroy()}))}function ln(t,e,n,r,i){var o=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s]=r),!o&&!i){var a=fn(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit(function(){rn.set(a,u,r.state)})}var c=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=pn(n,r,i),s=o.payload,a=o.options,u=o.type;return a&&a.root||(u=e+u),t.dispatch(u,s)},commit:r?t.commit:function(n,r,i){var o=pn(n,r,i),s=o.payload,a=o.options,u=o.type;a&&a.root||(u=e+u),t.commit(u,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return fn(t.state,n)}}}),i}(t,s,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,s+n,e,c)}),r.forEachAction(function(e,n){var r=e.root?n:s+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,i){var o,s=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return(o=s)&&"function"==typeof o.then||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):s})}(t,r,i,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,s+n,e,c)}),r.forEachChild(function(r,o){ln(t,e,n.concat(o),r,i)})}function fn(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function pn(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function dn(t){rn&&t===rn||Je(rn=t)}sn.state.get=function(){return this._vm._data.$$state},sn.state.set=function(t){0},on.prototype.commit=function(t,e,n){var r=this,i=pn(t,e,n),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(t){t(s)})}),this._subscribers.forEach(function(t){return t(a,r.state)}))},on.prototype.dispatch=function(t,e){var n=this,r=pn(t,e),i=r.type,o=r.payload,s={type:i,payload:o},a=this._actions[i];if(a)return this._actionSubscribers.forEach(function(t){return t(s,n.state)}),a.length>1?Promise.all(a.map(function(t){return t(o)})):a[0](o)},on.prototype.subscribe=function(t){return an(t,this._subscribers)},on.prototype.subscribeAction=function(t){return an(t,this._actionSubscribers)},on.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},on.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},on.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),ln(this,this.state,t,this._modules.get(t),n.preserveState),cn(this,this.state)},on.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=fn(e.state,t.slice(0,-1));rn.delete(n,t[t.length-1])}),un(this)},on.prototype.hotUpdate=function(t){this._modules.update(t),un(this,!0)},on.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(on.prototype,sn);var hn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=_n(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),vn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=_n(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),mn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||_n(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),gn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=_n(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n});function yn(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 bn(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function _n(t,e,n){return t._modulesNamespaceMap[n]}var wn={Store:on,install:dn,version:"3.0.1",mapState:hn,mapMutations:vn,mapGetters:mn,mapActions:gn,createNamespacedHelpers:function(t){return{mapState:hn.bind(null,t),mapGetters:mn.bind(null,t),mapMutations:vn.bind(null,t),mapActions:gn.bind(null,t)}}},xn=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)})},Cn={id:"",name:"",usercount:0,disabled:0},On={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,i=e.userCount;t.groups=n.map(function(t){return Object.assign({},Cn,t)}),t.orderBy=r,t.userCount=i,t.groups=xn(t.groups,t.orderBy)},addGroup:function(t,e){var n=e.gid,r=e.displayName;try{var i=Object.assign({},Cn,{id:n,name:r});t.groups.push(i),t.groups=xn(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,i=t.groups.find(function(t){return t.id==r}),o=t.users.find(function(t){return t.id==n});i&&o.enabled&&i.usercount++,o.groups.push(r),t.groups=xn(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,i=t.groups.find(function(t){return t.id==r}),o=t.users.find(function(t){return t.id==n});i&&o.enabled&&i.usercount--;var s=o.groups;s.splice(s.indexOf(r),1),t.groups=xn(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,i=t.users.find(function(t){return t.id==n}).subadmin;i.splice(i.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,i=t.users.find(function(t){return t.id==n});i.enabled=r,t.groups.find(function(t){return"disabled"==t.id}).usercount+=r?-1:1,t.userCount+=r?1:-1,i.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,i=e.value;if("quota"===r){var o=OC.Util.computerFileSize(i);t.users.find(function(t){return t.id==n})[r][r]=o||i}else t.users.find(function(t){return t.id==n})[r]=i},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,i=e.search,o=e.group;return i="string"==typeof i?i:"",""!==(o="string"==typeof o?o:"")?xe(OC.linkToOCS("cloud/groups/"+o+"/users/details?offset="+n+"&limit="+r+"&search="+i,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)}):xe(OC.linkToOCS("cloud/users/details?offset="+n+"&limit="+r+"&search="+i,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,i=e.search;return i="string"==typeof i?i:"",xe(OC.linkToOCS("cloud/groups?offset="+n+"&limit="+r+"&search="+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,i=e.search;return i="string"==typeof i?i:"",xe(OC.linkToOCS("cloud/users/details?offset="+n+"&limit="+r+"&search="+i,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,i=e.limit;return xe(OC.linkToOCS("cloud/users/"+n+"/details?offset="+r+"&limit="+i,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 we().then(function(n){return Ce(OC.linkToOCS("cloud/groups",2),{groupid:e}).then(function(n){return t.commit("addGroup",{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 we().then(function(n){return Se(OC.linkToOCS("cloud/groups/"+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 we().then(function(e){return Ce(OC.linkToOCS("cloud/users/"+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 we().then(function(e){return Se(OC.linkToOCS("cloud/users/"+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 we().then(function(e){return Ce(OC.linkToOCS("cloud/users/"+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 we().then(function(e){return Se(OC.linkToOCS("cloud/users/"+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){var n=e.userid;return we().then(function(e){return Se(OC.linkToOCS("cloud/users/"+n,2)).then(function(e){return t.commit("deleteUser",n)}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},addUser:function(t,e){var n=t.commit,r=t.dispatch,i=e.userid,o=e.password,s=e.email,a=e.groups,u=e.subadmin,c=e.quota,l=e.language;return we().then(function(t){return Ce(OC.linkToOCS("cloud/users",2),{userid:i,password:o,email:s,groups:a,subadmin:u,quota:c,language:l}).then(function(t){return r("addUserData",i)}).catch(function(t){throw t})}).catch(function(t){return n("API_FAILURE",{userid:i,error:t})})},addUserData:function(t,e){return we().then(function(n){return xe(OC.linkToOCS("cloud/users/"+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,i=void 0===r||r,o=i?"enable":"disable";return we().then(function(e){return Oe(OC.linkToOCS("cloud/users/"+n+"/"+o,2)).then(function(e){return t.commit("enableDisableUser",{userid:n,enabled:i})}).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,i=e.value,o=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof i&&(-1===o.indexOf(r)&&i.length>0||-1!==o.indexOf(r))?we().then(function(e){return Oe(OC.linkToOCS("cloud/users/"+n,2),{key:r,value:i}).then(function(e){return t.commit("setUserData",{userid:n,key:r,value:i})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})}):Promise.reject(new Error("Invalid request data"))}}},Sn={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;t.apps.find(function(t){return t.id===n}).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,i=t.apps.find(function(t){return t.id===n});i.active=!0,i.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}).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){i.a.set(t.loading,e,!0)}):i.a.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach(function(e){i.a.set(t.loading,e,!1)}):i.a.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=n.appId,i=n.groups,o=void 0;return o=Array.isArray(r)?r:[r],we().then(function(n){return e.commit("startLoading",o),e.commit("startLoading","install"),Ce(OC.generateUrl("settings/apps/enable"),{appIds:o,groups:i}).then(function(n){return e.commit("stopLoading",o),e.commit("stopLoading","install"),o.forEach(function(t){e.commit("enableApp",{appId:t,groups:i})}),xe(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(r)||e.commit("setError",{appId:o,error:t("settings","Error: This app can not be enabled because it makes the server unstable")})})}).catch(function(n){e.commit("setError",{appId:o,error:t("settings","Error while enabling app")}),e.commit("stopLoading",o),e.commit("stopLoading","install"),e.commit("APPS_API_FAILURE",{appId:r,error:n})})}).catch(function(t){return e.commit("API_FAILURE",{appId:r,error:t})})},disableApp:function(t,e){var n=e.appId,r=void 0;return r=Array.isArray(n)?n:[n],we().then(function(e){return t.commit("startLoading",r),Ce(OC.generateUrl("settings/apps/disable"),{appIds:r}).then(function(e){return t.commit("stopLoading",r),r.forEach(function(e){t.commit("disableApp",e)}),!0}).catch(function(e){t.commit("stopLoading",r),t.commit("APPS_API_FAILURE",{appId:n,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:n,error:e})})},uninstallApp:function(t,e){var n=e.appId;return we().then(function(e){return t.commit("startLoading",n),xe(OC.generateUrl("settings/apps/uninstall/"+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 we().then(function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),xe(OC.generateUrl("settings/apps/update/"+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"),xe(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"),xe(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)})}}},An={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},kn={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,i=e.value;return we().then(function(t){return Ce(OC.linkToOCS("apps/provisioning_api/api/v1/config/apps/"+n+"/"+r,2),{value:i}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{app:n,key:r,value:i,error:e})})}}};i.a.use(wn);var En={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)}},$n=new wn.Store({modules:{users:On,apps:Sn,settings:An,oc:kn},strict:!1,mutations:En});r.d(n,"app",function(){return Ln}),r.d(n,"router",function(){return Qe}),r.d(n,"store",function(){return $n}),r(219),r(218),r(213),r(212),r(211),r(210),r(209),r(208),r(207),r(206),r(205),r(203),r(202),r(201),r(200),r(199),r(197),r(196),r(195),r(194),r(193),r(192),r(191),r(190),r(189),r(188),r(187),r(186),r(182),r(179),r(178),r(177),r(176),r(175),r(174),r(173),r(172),r(171),r(170),r(169),r(168),r(166),r(165),r(164),r(163),r(162),r(160),r(159),r(158),r(157),r(156),r(154),r(153),r(152),r(151),r(150),r(149),r(148),r(147),r(146),r(145),r(62),r(144),r(143),r(142),r(141),r(140),r(139),r(138),r(137),r(136),r(135),r(134),r(133),r(132),r(131),r(130),r(128),r(127),r(126),r(125),r(124),r(123),r(122),r(121),r(120),r(119),r(118),r(117),r(116),r(115),r(114),r(113),r(112),r(111),r(110),Object(o.sync)($n,Qe),i.a.prototype.t=t,i.a.prototype.OC=OC,i.a.prototype.oc_userconfig=oc_userconfig,i.a.prototype.oc_current_user=oc_current_user;var Ln=new i.a({router:Qe,store:$n,render:function(t){return t(c)}}).$mount("#content")},function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof t,l=e.regeneratorRuntime;if(l)c&&(t.exports=l);else{(l=e.regeneratorRuntime=c?t.exports:{}).wrap=_;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={},m={};m[s]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==r&&i.call(y,s)&&(m=y);var b=O.prototype=x.prototype=Object.create(m);C.prototype=b.constructor=O,O.constructor=C,O[u]=C.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===C||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},S(A.prototype),A.prototype[a]=function(){return this},l.AsyncIterator=A,l.async=function(t,e,n,r){var i=new A(_(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(b),b[u]="Generator",b[s]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach($),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function _(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),s=new L(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=w(t,e,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,s),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function C(){}function O(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function A(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,s){var a=w(t[n],t,r);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(c).then(function(t){u.value=t,o(u)},s)}s(a.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){for(var r=n(62),i=n(22),o=n(21),s=n(3),a=n(13),u=n(32),c=n(5),l=c("iterator"),f=c("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(d),v=0;v<h.length;v++){var m,g=h[v],y=d[g],b=s[g],_=b&&b.prototype;if(_&&(_[l]||a(_,l,p),_[f]||a(_,f,g),u[g]=p,y))for(m in r)_[m]||o(_,m,r[m],!0)}},function(t,e,n){var r=n(0),i=n(60);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){var r=n(3),i=n(0),o=n(54),s=[].slice,a=/MSIE .\./.test(o),u=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*a,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){"use strict";var r=n(0),i=n(77),o=n(54);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";var r=n(0),i=n(77),o=n(54);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){var r=n(0),i=n(86),o=n(15),s=n(16),a=n(57);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),u=s.f,c=i(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&a(l,e,n);return l}})},function(t,e,n){var r=n(0),i=n(78)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){var r=n(0),i=n(78)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(0),i=n(71)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(30)("includes")},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),i=n(55),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0),i=n(55),o=Math.exp;r(r.S+r.F*n(6)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(56)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(79)})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(6)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)u<(n=i(arguments[s++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(56),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),c=r(t);return i<u?c*(i/u/s+1/o-1/o)*u*s:(n=(e=(1+s/o)*i)-(e-i))>a||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(129)})},function(t,e,n){var r=n(0),i=n(55);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=n(56);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),i=n(79),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(80),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(80)})},function(t,e,n){var r=n(0),i=n(3).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(67)}),n(30)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(42)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(30)(o)},function(t,e,n){"use strict";var r=n(0),i=n(42)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(30)("find")},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(92)}),n(30)("copyWithin")},function(t,e,n){"use strict";var r=n(0),i=n(57);r(r.S+r.F*n(6)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(19),i=n(0),o=n(18),s=n(90),a=n(64),u=n(8),c=n(57),l=n(63);i(i.S+i.F*!n(50)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,p=o(t),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(p);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&a(y))for(n=new d(e=u(p.length));e>g;g++)c(n,g,m?v(p[g],g):p[g]);else for(f=y.call(p),n=new d;!(i=f.next()).done;g++)c(n,g,m?s(f,v,[i.value,g],!0):i.value);return n.length=g,n}})},function(t,e,n){n(46)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(46)("split",2,function(t,e,r){"use strict";var i=n(81),o=r,s=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,u,c,l,f,p=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,v=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,d+"g");for(a||(r=new RegExp("^"+m.source+"$(?!\\s)",d));(u=m.exec(n))&&!((c=u.index+u[0].length)>h&&(p.push(n.slice(h,u.index)),!a&&u.length>1&&u[0].replace(r,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)}),u.length>1&&u.index<n.length&&s.apply(p,u.slice(1)),l=u[0].length,h=c,p.length>=v));)m.lastIndex===u.index&&m.lastIndex++;return h===n.length?!l&&m.test("")||p.push(""):p.push(n.slice(h)),p.length>v?p.slice(0,v):p}}else"0".split(void 0,0).length&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){n(46)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(46)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){n(10)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(155)})},function(t,e,n){"use strict";var r=n(0),i=n(59);r(r.P+r.F*n(58)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(59),s="".endsWith;r(r.P+r.F*n(58)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),u=String(t);return s?s.call(e,u,a):e.slice(a-u.length,a)===u}})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(59),s="".startsWith;r(r.P+r.F*n(58)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(82)})},function(t,e,n){var r=n(24),i=n(23);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(0),i=n(161)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(0),i=n(34),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),i=n(15),o=n(8);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,n){var r=n(7).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(10)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(61).set})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(167)})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(89)})},function(t,e,n){n(14)("getOwnPropertyNames",function(){return n(83).f})},function(t,e,n){var r=n(18),i=n(22);n(14)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(18),i=n(31);n(14)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(15),i=n(16).f;n(14)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(1);n(14)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(1);n(14)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(1);n(14)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(1),i=n(20).onFreeze;n(14)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(1),i=n(20).onFreeze;n(14)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(1),i=n(20).onFreeze;n(14)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(22),i=n(47),o=n(41);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(3),i=n(39),o=n(38),s=n(84),a=n(7).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){"use strict";var r=n(3),i=n(12),o=n(10),s=n(0),a=n(21),u=n(20).KEY,c=n(6),l=n(69),f=n(33),p=n(26),d=n(5),h=n(84),v=n(181),m=n(180),g=n(95),y=n(4),b=n(1),_=n(15),w=n(45),x=n(27),C=n(43),O=n(83),S=n(16),A=n(7),k=n(22),E=S.f,$=A.f,L=O.f,T=r.Symbol,P=r.JSON,j=P&&P.stringify,N=d("_hidden"),I=d("toPrimitive"),M={}.propertyIsEnumerable,U=l("symbol-registry"),D=l("symbols"),F=l("op-symbols"),R=Object.prototype,B="function"==typeof T,G=r.QObject,V=!G||!G.prototype||!G.prototype.findChild,H=o&&c(function(){return 7!=C($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(R,e);r&&delete R[e],$(t,e,n),r&&t!==R&&$(R,e,r)}:$,q=function(t){var e=D[t]=C(T.prototype);return e._k=t,e},z=B&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},W=function(t,e,n){return t===R&&W(F,e,n),y(t),e=w(e,!0),y(n),i(D,e)?(n.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:x(0,!1)})):(i(t,N)||$(t,N,x(1,{})),t[N][e]=!0),H(t,e,n)):$(t,e,n)},Y=function(t,e){y(t);for(var n,r=m(e=_(e)),i=0,o=r.length;o>i;)W(t,n=r[i++],e[n]);return t},K=function(t){var e=M.call(this,t=w(t,!0));return!(this===R&&i(D,t)&&!i(F,t))&&(!(e||!i(this,t)||!i(D,t)||i(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=_(t),e=w(e,!0),t!==R||!i(D,e)||i(F,e)){var n=E(t,e);return!n||!i(D,e)||i(t,N)&&t[N][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=L(_(t)),r=[],o=0;n.length>o;)i(D,e=n[o++])||e==N||e==u||r.push(e);return r},X=function(t){for(var e,n=t===R,r=L(n?F:_(t)),o=[],s=0;r.length>s;)!i(D,e=r[s++])||n&&!i(R,e)||o.push(D[e]);return o};B||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===R&&e.call(F,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),H(this,t,x(1,n))};return o&&V&&H(R,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",function(){return this._k}),S.f=Q,A.f=W,n(44).f=O.f=J,n(41).f=K,n(47).f=X,o&&!n(38)&&a(R,"propertyIsEnumerable",K,!0),h.f=function(t){return q(d(t))}),s(s.G+s.W+s.F*!B,{Symbol:T});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=k(d.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!B,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=T(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),s(s.S+s.F*!B,"Object",{create:function(t,e){return void 0===e?C(t):Y(C(t),e)},defineProperty:W,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:X}),P&&s(s.S+s.F*(!B||c(function(){var t=T();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!z(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!z(e))return e}),r[1]=e,j.apply(P,r)}}),T.prototype[I]||n(13)(T.prototype,I,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(4),i=n(1),o=n(85);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(3),i=n(60).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(35)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve();n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";var r,i,o,s,a=n(38),u=n(3),c=n(19),l=n(65),f=n(0),p=n(1),d=n(25),h=n(36),v=n(49),m=n(66),g=n(60).set,y=n(185)(),b=n(85),_=n(184),w=n(183),x=u.TypeError,C=u.process,O=u.Promise,S="process"==l(C),A=function(){},k=i=b.f,E=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(A,A)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e}catch(t){}}(),$=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(i||(2==t._h&&j(t),t._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===e.promise?c(x("Promise-chain cycle")):(o=$(n))?o.call(n,u,c):u(n)):c(r)}catch(t){l&&!s&&l.exit(),c(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){g.call(u,function(){var e,n,r,i=t._v,o=P(t);if(o&&(e=_(function(){S?C.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=S||P(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},P=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){g.call(u,function(){var e;S?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=$(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(I,r,1),c(N,r,1))}catch(t){N.call(r,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};E||(O=function(t){h(this,O,"Promise","_h"),d(t),r.call(this);try{t(c(I,this,1),c(N,this,1))}catch(t){N.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(37)(O.prototype,{then:function(t,e){var n=k(m(this,O));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(I,t,1),this.reject=c(N,t,1)},b.f=k=function(t){return t===O||t===s?new o(t):i(t)}),f(f.G+f.W+f.F*!E,{Promise:O}),n(33)(O,"Promise"),n(51)("Promise"),s=n(39).Promise,f(f.S+f.F*!E,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!E),"Promise",{resolve:function(t){return w(a&&this===s?O:this,t)}}),f(f.S+f.F*!(E&&n(50)(function(t){O.all(t).catch(A)})),"Promise",{all:function(t){var e=this,n=k(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,s=1;v(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=k(e),r=n.reject,i=_(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){var r=n(0),i=n(61);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(7),i=n(16),o=n(31),s=n(12),a=n(0),u=n(27),c=n(4),l=n(1);a(a.S,"Reflect",{set:function t(e,n,a){var f,p,d=arguments.length<4?e:arguments[3],h=i.f(c(e),n);if(!h){if(l(p=o(e)))return t(p,n,a,d);h=u(0)}if(s(h,"value")){if(!1===h.writable||!l(d))return!1;if(f=i.f(d,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=a,r.f(d,n,f)}else r.f(d,n,u(0,a));return!0}return void 0!==h.set&&(h.set.call(d,a),!0)}})},function(t,e,n){var r=n(0),i=n(4),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(86)})},function(t,e,n){var r=n(0),i=n(4),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(31),o=n(4);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(16),i=n(0),o=n(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(16),i=n(31),o=n(12),s=n(0),a=n(1),u=n(4);s(s.S,"Reflect",{get:function t(e,n){var s,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(s=r.f(e,n))?o(s,"value")?s.value:void 0!==s.get?s.get.call(l):void 0:a(c=i(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(0),i=n(16).f,o=n(4);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(7),i=n(0),o=n(4),s=n(45);i(i.S+i.F*n(6)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var r=n(25),i=n(1),o=n(87),s=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),u=function(){var r=n.concat(s.call(arguments));return this instanceof u?function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)}(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e,n){var r=n(0),i=n(43),o=n(25),s=n(4),a=n(1),u=n(6),c=n(198),l=(n(3).Reflect||{}).construct,f=u(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),p=!u(function(){l(function(){})});r(r.S+r.F*(f||p),"Reflect",{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(p&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,d=i(a(u)?u:Object.prototype),h=Function.apply.call(t,d,e);return a(h)?h:d}})},function(t,e,n){var r=n(0),i=n(25),o=n(4),s=(n(3).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(6)(function(){s(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return s?s(r,e,u):a.call(r,e,u)}})},function(t,e,n){"use strict";var r=n(88),i=n(29);n(48)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r,i=n(42)(0),o=n(21),s=n(20),a=n(89),u=n(88),c=n(1),l=n(6),f=n(29),p=s.getWeak,d=Object.isExtensible,h=u.ufstore,v={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(c(t)){var e=p(t);return!0===e?h(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(f(this,"WeakMap"),t,e)}},y=t.exports=n(48)("WeakMap",m,g,u,!0,!0);l(function(){return 7!=(new y).set((Object.freeze||Object)(v),7).get(v)})&&(a((r=u.getConstructor(m,"WeakMap")).prototype,g),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!d(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(91),i=n(29);t.exports=n(48)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){var r=n(1),i=n(61).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(91),i=n(29);t.exports=n(48)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){n(17)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(17)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";var r=n(43),i=n(27),o=n(33),s={};n(13)(s,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(1),i=n(95),o=n(5)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(215);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(7),i=n(4),o=n(22);t.exports=n(10)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){n(17)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";var r=n(0),i=n(73),o=n(99),s=n(4),a=n(34),u=n(8),c=n(1),l=n(3).ArrayBuffer,f=n(66),p=o.ArrayBuffer,d=o.DataView,h=i.ABV&&l.isView,v=p.prototype.slice,m=i.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return h&&h(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(6)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(f(this,p))(u(i-r)),c=new d(this),l=new d(o),h=0;r<i;)l.setUint8(h++,c.getUint8(r++));return o}}),n(51)("ArrayBuffer")},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(101);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";var r=n(11),i=n(224),o=n(102),s=n(75),a=n(223),u=n(222);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!a(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return c(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(11);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,n,o=String(t),s="",a=0,u=r;o.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&e>>8-a%1*8)){if((n=o.charCodeAt(a+=.75))>255)throw new i;e=e<<8|n}return s}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(11),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}}),s):s}},function(t,e,n){"use strict";var r=n(11);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,function(t,e){null!==t&&void 0!==t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),o=s.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},function(t,e,n){"use strict";var r=n(103);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(75),i=n(11),o=n(226),s=n(225);function a(t){this.defaults=t,this.interceptors={request:new o,response:new o}}a.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),(t=i.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=a},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} + */function Ze(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var tn=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)||{}},en={namespaced:{configurable:!0}};en.namespaced.get=function(){return!!this._rawModule.namespaced},tn.prototype.addChild=function(t,e){this._children[t]=e},tn.prototype.removeChild=function(t){delete this._children[t]},tn.prototype.getChild=function(t){return this._children[t]},tn.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)},tn.prototype.forEachChild=function(t){Ze(this._children,t)},tn.prototype.forEachGetter=function(t){this._rawModule.getters&&Ze(this._rawModule.getters,t)},tn.prototype.forEachAction=function(t){this._rawModule.actions&&Ze(this._rawModule.actions,t)},tn.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ze(this._rawModule.mutations,t)},Object.defineProperties(tn.prototype,en);var nn=function(t){this.register([],t,!1)};nn.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},nn.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},nn.prototype.update=function(t){!function t(e,n,r){0;n.update(r);if(r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},nn.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new tn(e,n);0===t.length?this.root=i:this.get(t.slice(0,-1)).addChild(t[t.length-1],i);e.modules&&Ze(e.modules,function(e,i){r.register(t.concat(i),e,n)})},nn.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 rn;var on=function(t){var e=this;void 0===t&&(t={}),!rn&&"undefined"!=typeof window&&window.Vue&&dn(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new nn(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new rn;var o=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,n){return a.call(o,t,e,n)},this.strict=r,ln(this,i,[],this._modules.root),cn(this,i),n.forEach(function(t){return t(e)}),rn.config.devtools&&function(t){Xe&&(t._devtoolHook=Xe,Xe.emit("vuex:init",t),Xe.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){Xe.emit("vuex:mutation",t,e)}))}(this)},sn={state:{configurable:!0}};function an(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function un(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;ln(t,n,[],t._modules.root,!0),cn(t,n,e)}function cn(t,e,n){var r=t._vm;t.getters={};var i={};Ze(t._wrappedGetters,function(e,n){i[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var o=rn.config.silent;rn.config.silent=!0,t._vm=new rn({data:{$$state:e},computed:i}),rn.config.silent=o,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}),rn.nextTick(function(){return r.$destroy()}))}function ln(t,e,n,r,i){var o=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s]=r),!o&&!i){var a=fn(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit(function(){rn.set(a,u,r.state)})}var c=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=pn(n,r,i),s=o.payload,a=o.options,u=o.type;return a&&a.root||(u=e+u),t.dispatch(u,s)},commit:r?t.commit:function(n,r,i){var o=pn(n,r,i),s=o.payload,a=o.options,u=o.type;a&&a.root||(u=e+u),t.commit(u,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return fn(t.state,n)}}}),i}(t,s,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,s+n,e,c)}),r.forEachAction(function(e,n){var r=e.root?n:s+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,i){var o,s=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return(o=s)&&"function"==typeof o.then||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):s})}(t,r,i,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,s+n,e,c)}),r.forEachChild(function(r,o){ln(t,e,n.concat(o),r,i)})}function fn(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function pn(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function dn(t){rn&&t===rn||Je(rn=t)}sn.state.get=function(){return this._vm._data.$$state},sn.state.set=function(t){0},on.prototype.commit=function(t,e,n){var r=this,i=pn(t,e,n),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(t){t(s)})}),this._subscribers.forEach(function(t){return t(a,r.state)}))},on.prototype.dispatch=function(t,e){var n=this,r=pn(t,e),i=r.type,o=r.payload,s={type:i,payload:o},a=this._actions[i];if(a)return this._actionSubscribers.forEach(function(t){return t(s,n.state)}),a.length>1?Promise.all(a.map(function(t){return t(o)})):a[0](o)},on.prototype.subscribe=function(t){return an(t,this._subscribers)},on.prototype.subscribeAction=function(t){return an(t,this._actionSubscribers)},on.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},on.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},on.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),ln(this,this.state,t,this._modules.get(t),n.preserveState),cn(this,this.state)},on.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=fn(e.state,t.slice(0,-1));rn.delete(n,t[t.length-1])}),un(this)},on.prototype.hotUpdate=function(t){this._modules.update(t),un(this,!0)},on.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(on.prototype,sn);var hn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=_n(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),vn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=_n(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),mn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||_n(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),gn=bn(function(t,e){var n={};return yn(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=_n(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n});function yn(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 bn(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function _n(t,e,n){return t._modulesNamespaceMap[n]}var wn={Store:on,install:dn,version:"3.0.1",mapState:hn,mapMutations:vn,mapGetters:mn,mapActions:gn,createNamespacedHelpers:function(t){return{mapState:hn.bind(null,t),mapGetters:mn.bind(null,t),mapMutations:vn.bind(null,t),mapActions:gn.bind(null,t)}}},xn=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)})},Cn={id:"",name:"",usercount:0,disabled:0},On={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,i=e.userCount;t.groups=n.map(function(t){return Object.assign({},Cn,t)}),t.orderBy=r,t.userCount=i,t.groups=xn(t.groups,t.orderBy)},addGroup:function(t,e){var n=e.gid,r=e.displayName;try{var i=Object.assign({},Cn,{id:n,name:r});t.groups.push(i),t.groups=xn(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,i=t.groups.find(function(t){return t.id==r}),o=t.users.find(function(t){return t.id==n});i&&o.enabled&&i.usercount++,o.groups.push(r),t.groups=xn(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,i=t.groups.find(function(t){return t.id==r}),o=t.users.find(function(t){return t.id==n});i&&o.enabled&&i.usercount--;var s=o.groups;s.splice(s.indexOf(r),1),t.groups=xn(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,i=t.users.find(function(t){return t.id==n}).subadmin;i.splice(i.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,i=t.users.find(function(t){return t.id==n});i.enabled=r,t.groups.find(function(t){return"disabled"==t.id}).usercount+=r?-1:1,t.userCount+=r?1:-1,i.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,i=e.value;if("quota"===r){var o=OC.Util.computerFileSize(i);t.users.find(function(t){return t.id==n})[r][r]=null!==o?o:i}else t.users.find(function(t){return t.id==n})[r]=i},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,i=e.search,o=e.group;return i="string"==typeof i?i:"",""!==(o="string"==typeof o?o:"")?xe(OC.linkToOCS("cloud/groups/"+o+"/users/details?offset="+n+"&limit="+r+"&search="+i,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)}):xe(OC.linkToOCS("cloud/users/details?offset="+n+"&limit="+r+"&search="+i,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,i=e.search;return i="string"==typeof i?i:"",xe(OC.linkToOCS("cloud/groups?offset="+n+"&limit="+r+"&search="+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,i=e.search;return i="string"==typeof i?i:"",xe(OC.linkToOCS("cloud/users/details?offset="+n+"&limit="+r+"&search="+i,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,i=e.limit;return xe(OC.linkToOCS("cloud/users/"+n+"/details?offset="+r+"&limit="+i,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 we().then(function(n){return Ce(OC.linkToOCS("cloud/groups",2),{groupid:e}).then(function(n){return t.commit("addGroup",{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 we().then(function(n){return Se(OC.linkToOCS("cloud/groups/"+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 we().then(function(e){return Ce(OC.linkToOCS("cloud/users/"+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 we().then(function(e){return Se(OC.linkToOCS("cloud/users/"+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 we().then(function(e){return Ce(OC.linkToOCS("cloud/users/"+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 we().then(function(e){return Se(OC.linkToOCS("cloud/users/"+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){var n=e.userid;return we().then(function(e){return Se(OC.linkToOCS("cloud/users/"+n,2)).then(function(e){return t.commit("deleteUser",n)}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})})},addUser:function(t,e){var n=t.commit,r=t.dispatch,i=e.userid,o=e.password,s=e.email,a=e.groups,u=e.subadmin,c=e.quota,l=e.language;return we().then(function(t){return Ce(OC.linkToOCS("cloud/users",2),{userid:i,password:o,email:s,groups:a,subadmin:u,quota:c,language:l}).then(function(t){return r("addUserData",i)}).catch(function(t){throw t})}).catch(function(t){return n("API_FAILURE",{userid:i,error:t})})},addUserData:function(t,e){return we().then(function(n){return xe(OC.linkToOCS("cloud/users/"+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,i=void 0===r||r,o=i?"enable":"disable";return we().then(function(e){return Oe(OC.linkToOCS("cloud/users/"+n+"/"+o,2)).then(function(e){return t.commit("enableDisableUser",{userid:n,enabled:i})}).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,i=e.value,o=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof i&&(-1===o.indexOf(r)&&i.length>0||-1!==o.indexOf(r))?we().then(function(e){return Oe(OC.linkToOCS("cloud/users/"+n,2),{key:r,value:i}).then(function(e){return t.commit("setUserData",{userid:n,key:r,value:i})}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{userid:n,error:e})}):Promise.reject(new Error("Invalid request data"))}}},Sn={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;t.apps.find(function(t){return t.id===n}).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,i=t.apps.find(function(t){return t.id===n});i.active=!0,i.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}).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){i.a.set(t.loading,e,!0)}):i.a.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach(function(e){i.a.set(t.loading,e,!1)}):i.a.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=n.appId,i=n.groups,o=void 0;return o=Array.isArray(r)?r:[r],we().then(function(n){return e.commit("startLoading",o),e.commit("startLoading","install"),Ce(OC.generateUrl("settings/apps/enable"),{appIds:o,groups:i}).then(function(n){return e.commit("stopLoading",o),e.commit("stopLoading","install"),o.forEach(function(t){e.commit("enableApp",{appId:t,groups:i})}),xe(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(r)||e.commit("setError",{appId:o,error:t("settings","Error: This app can not be enabled because it makes the server unstable")})})}).catch(function(n){e.commit("setError",{appId:o,error:t("settings","Error while enabling app")}),e.commit("stopLoading",o),e.commit("stopLoading","install"),e.commit("APPS_API_FAILURE",{appId:r,error:n})})}).catch(function(t){return e.commit("API_FAILURE",{appId:r,error:t})})},disableApp:function(t,e){var n=e.appId,r=void 0;return r=Array.isArray(n)?n:[n],we().then(function(e){return t.commit("startLoading",r),Ce(OC.generateUrl("settings/apps/disable"),{appIds:r}).then(function(e){return t.commit("stopLoading",r),r.forEach(function(e){t.commit("disableApp",e)}),!0}).catch(function(e){t.commit("stopLoading",r),t.commit("APPS_API_FAILURE",{appId:n,error:e})})}).catch(function(e){return t.commit("API_FAILURE",{appId:n,error:e})})},uninstallApp:function(t,e){var n=e.appId;return we().then(function(e){return t.commit("startLoading",n),xe(OC.generateUrl("settings/apps/uninstall/"+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 we().then(function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),xe(OC.generateUrl("settings/apps/update/"+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"),xe(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"),xe(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)})}}},An={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},kn={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,i=e.value;return we().then(function(t){return Ce(OC.linkToOCS("apps/provisioning_api/api/v1/config/apps/"+n+"/"+r,2),{value:i}).catch(function(t){throw t})}).catch(function(e){return t.commit("API_FAILURE",{app:n,key:r,value:i,error:e})})}}};i.a.use(wn);var En={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)}},$n=new wn.Store({modules:{users:On,apps:Sn,settings:An,oc:kn},strict:!1,mutations:En});r.d(n,"app",function(){return Ln}),r.d(n,"router",function(){return Qe}),r.d(n,"store",function(){return $n}),r(219),r(218),r(213),r(212),r(211),r(210),r(209),r(208),r(207),r(206),r(205),r(203),r(202),r(201),r(200),r(199),r(197),r(196),r(195),r(194),r(193),r(192),r(191),r(190),r(189),r(188),r(187),r(186),r(182),r(179),r(178),r(177),r(176),r(175),r(174),r(173),r(172),r(171),r(170),r(169),r(168),r(166),r(165),r(164),r(163),r(162),r(160),r(159),r(158),r(157),r(156),r(154),r(153),r(152),r(151),r(150),r(149),r(148),r(147),r(146),r(145),r(62),r(144),r(143),r(142),r(141),r(140),r(139),r(138),r(137),r(136),r(135),r(134),r(133),r(132),r(131),r(130),r(128),r(127),r(126),r(125),r(124),r(123),r(122),r(121),r(120),r(119),r(118),r(117),r(116),r(115),r(114),r(113),r(112),r(111),r(110),Object(o.sync)($n,Qe),i.a.prototype.t=t,i.a.prototype.OC=OC,i.a.prototype.oc_userconfig=oc_userconfig,i.a.prototype.oc_current_user=oc_current_user;var Ln=new i.a({router:Qe,store:$n,render:function(t){return t(c)}}).$mount("#content")},function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof t,l=e.regeneratorRuntime;if(l)c&&(t.exports=l);else{(l=e.regeneratorRuntime=c?t.exports:{}).wrap=_;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={},m={};m[s]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==r&&i.call(y,s)&&(m=y);var b=O.prototype=x.prototype=Object.create(m);C.prototype=b.constructor=O,O.constructor=C,O[u]=C.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===C||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},S(A.prototype),A.prototype[a]=function(){return this},l.AsyncIterator=A,l.async=function(t,e,n,r){var i=new A(_(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(b),b[u]="Generator",b[s]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach($),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;$(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function _(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),s=new L(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=w(t,e,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,s),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function C(){}function O(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function A(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,s){var a=w(t[n],t,r);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(c).then(function(t){u.value=t,o(u)},s)}s(a.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){for(var r=n(62),i=n(22),o=n(21),s=n(3),a=n(13),u=n(32),c=n(5),l=c("iterator"),f=c("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(d),v=0;v<h.length;v++){var m,g=h[v],y=d[g],b=s[g],_=b&&b.prototype;if(_&&(_[l]||a(_,l,p),_[f]||a(_,f,g),u[g]=p,y))for(m in r)_[m]||o(_,m,r[m],!0)}},function(t,e,n){var r=n(0),i=n(60);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){var r=n(3),i=n(0),o=n(54),s=[].slice,a=/MSIE .\./.test(o),u=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*a,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){"use strict";var r=n(0),i=n(77),o=n(54);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";var r=n(0),i=n(77),o=n(54);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){var r=n(0),i=n(86),o=n(15),s=n(16),a=n(57);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),u=s.f,c=i(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&a(l,e,n);return l}})},function(t,e,n){var r=n(0),i=n(78)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){var r=n(0),i=n(78)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(0),i=n(71)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(30)("includes")},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),i=n(55),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0),i=n(55),o=Math.exp;r(r.S+r.F*n(6)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(56)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(79)})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(6)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)u<(n=i(arguments[s++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(56),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),c=r(t);return i<u?c*(i/u/s+1/o-1/o)*u*s:(n=(e=(1+s/o)*i)-(e-i))>a||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(129)})},function(t,e,n){var r=n(0),i=n(55);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=n(56);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),i=n(79),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(80),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(80)})},function(t,e,n){var r=n(0),i=n(3).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(67)}),n(30)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(42)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(30)(o)},function(t,e,n){"use strict";var r=n(0),i=n(42)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(30)("find")},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(92)}),n(30)("copyWithin")},function(t,e,n){"use strict";var r=n(0),i=n(57);r(r.S+r.F*n(6)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(19),i=n(0),o=n(18),s=n(90),a=n(64),u=n(8),c=n(57),l=n(63);i(i.S+i.F*!n(50)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,p=o(t),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(p);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&a(y))for(n=new d(e=u(p.length));e>g;g++)c(n,g,m?v(p[g],g):p[g]);else for(f=y.call(p),n=new d;!(i=f.next()).done;g++)c(n,g,m?s(f,v,[i.value,g],!0):i.value);return n.length=g,n}})},function(t,e,n){n(46)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(46)("split",2,function(t,e,r){"use strict";var i=n(81),o=r,s=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,u,c,l,f,p=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,v=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,d+"g");for(a||(r=new RegExp("^"+m.source+"$(?!\\s)",d));(u=m.exec(n))&&!((c=u.index+u[0].length)>h&&(p.push(n.slice(h,u.index)),!a&&u.length>1&&u[0].replace(r,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)}),u.length>1&&u.index<n.length&&s.apply(p,u.slice(1)),l=u[0].length,h=c,p.length>=v));)m.lastIndex===u.index&&m.lastIndex++;return h===n.length?!l&&m.test("")||p.push(""):p.push(n.slice(h)),p.length>v?p.slice(0,v):p}}else"0".split(void 0,0).length&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){n(46)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(46)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){n(10)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(155)})},function(t,e,n){"use strict";var r=n(0),i=n(59);r(r.P+r.F*n(58)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(59),s="".endsWith;r(r.P+r.F*n(58)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),u=String(t);return s?s.call(e,u,a):e.slice(a-u.length,a)===u}})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(59),s="".startsWith;r(r.P+r.F*n(58)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(82)})},function(t,e,n){var r=n(24),i=n(23);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(0),i=n(161)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(0),i=n(34),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),i=n(15),o=n(8);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,n){var r=n(7).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(10)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(61).set})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(167)})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(89)})},function(t,e,n){n(14)("getOwnPropertyNames",function(){return n(83).f})},function(t,e,n){var r=n(18),i=n(22);n(14)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(18),i=n(31);n(14)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(15),i=n(16).f;n(14)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(1);n(14)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(1);n(14)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(1);n(14)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(1),i=n(20).onFreeze;n(14)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(1),i=n(20).onFreeze;n(14)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(1),i=n(20).onFreeze;n(14)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(22),i=n(47),o=n(41);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(3),i=n(39),o=n(38),s=n(84),a=n(7).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){"use strict";var r=n(3),i=n(12),o=n(10),s=n(0),a=n(21),u=n(20).KEY,c=n(6),l=n(69),f=n(33),p=n(26),d=n(5),h=n(84),v=n(181),m=n(180),g=n(95),y=n(4),b=n(1),_=n(15),w=n(45),x=n(27),C=n(43),O=n(83),S=n(16),A=n(7),k=n(22),E=S.f,$=A.f,L=O.f,T=r.Symbol,P=r.JSON,j=P&&P.stringify,N=d("_hidden"),I=d("toPrimitive"),M={}.propertyIsEnumerable,U=l("symbol-registry"),D=l("symbols"),F=l("op-symbols"),R=Object.prototype,B="function"==typeof T,G=r.QObject,V=!G||!G.prototype||!G.prototype.findChild,H=o&&c(function(){return 7!=C($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(R,e);r&&delete R[e],$(t,e,n),r&&t!==R&&$(R,e,r)}:$,q=function(t){var e=D[t]=C(T.prototype);return e._k=t,e},z=B&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},W=function(t,e,n){return t===R&&W(F,e,n),y(t),e=w(e,!0),y(n),i(D,e)?(n.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:x(0,!1)})):(i(t,N)||$(t,N,x(1,{})),t[N][e]=!0),H(t,e,n)):$(t,e,n)},Y=function(t,e){y(t);for(var n,r=m(e=_(e)),i=0,o=r.length;o>i;)W(t,n=r[i++],e[n]);return t},K=function(t){var e=M.call(this,t=w(t,!0));return!(this===R&&i(D,t)&&!i(F,t))&&(!(e||!i(this,t)||!i(D,t)||i(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=_(t),e=w(e,!0),t!==R||!i(D,e)||i(F,e)){var n=E(t,e);return!n||!i(D,e)||i(t,N)&&t[N][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=L(_(t)),r=[],o=0;n.length>o;)i(D,e=n[o++])||e==N||e==u||r.push(e);return r},X=function(t){for(var e,n=t===R,r=L(n?F:_(t)),o=[],s=0;r.length>s;)!i(D,e=r[s++])||n&&!i(R,e)||o.push(D[e]);return o};B||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===R&&e.call(F,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),H(this,t,x(1,n))};return o&&V&&H(R,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",function(){return this._k}),S.f=Q,A.f=W,n(44).f=O.f=J,n(41).f=K,n(47).f=X,o&&!n(38)&&a(R,"propertyIsEnumerable",K,!0),h.f=function(t){return q(d(t))}),s(s.G+s.W+s.F*!B,{Symbol:T});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=k(d.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!B,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=T(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),s(s.S+s.F*!B,"Object",{create:function(t,e){return void 0===e?C(t):Y(C(t),e)},defineProperty:W,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:X}),P&&s(s.S+s.F*(!B||c(function(){var t=T();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!z(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!z(e))return e}),r[1]=e,j.apply(P,r)}}),T.prototype[I]||n(13)(T.prototype,I,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(4),i=n(1),o=n(85);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(3),i=n(60).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(35)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve();n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";var r,i,o,s,a=n(38),u=n(3),c=n(19),l=n(65),f=n(0),p=n(1),d=n(25),h=n(36),v=n(49),m=n(66),g=n(60).set,y=n(185)(),b=n(85),_=n(184),w=n(183),x=u.TypeError,C=u.process,O=u.Promise,S="process"==l(C),A=function(){},k=i=b.f,E=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(A,A)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e}catch(t){}}(),$=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(i||(2==t._h&&j(t),t._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===e.promise?c(x("Promise-chain cycle")):(o=$(n))?o.call(n,u,c):u(n)):c(r)}catch(t){l&&!s&&l.exit(),c(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){g.call(u,function(){var e,n,r,i=t._v,o=P(t);if(o&&(e=_(function(){S?C.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=S||P(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},P=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){g.call(u,function(){var e;S?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=$(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(I,r,1),c(N,r,1))}catch(t){N.call(r,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};E||(O=function(t){h(this,O,"Promise","_h"),d(t),r.call(this);try{t(c(I,this,1),c(N,this,1))}catch(t){N.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(37)(O.prototype,{then:function(t,e){var n=k(m(this,O));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(I,t,1),this.reject=c(N,t,1)},b.f=k=function(t){return t===O||t===s?new o(t):i(t)}),f(f.G+f.W+f.F*!E,{Promise:O}),n(33)(O,"Promise"),n(51)("Promise"),s=n(39).Promise,f(f.S+f.F*!E,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!E),"Promise",{resolve:function(t){return w(a&&this===s?O:this,t)}}),f(f.S+f.F*!(E&&n(50)(function(t){O.all(t).catch(A)})),"Promise",{all:function(t){var e=this,n=k(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,s=1;v(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=k(e),r=n.reject,i=_(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){var r=n(0),i=n(61);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(7),i=n(16),o=n(31),s=n(12),a=n(0),u=n(27),c=n(4),l=n(1);a(a.S,"Reflect",{set:function t(e,n,a){var f,p,d=arguments.length<4?e:arguments[3],h=i.f(c(e),n);if(!h){if(l(p=o(e)))return t(p,n,a,d);h=u(0)}if(s(h,"value")){if(!1===h.writable||!l(d))return!1;if(f=i.f(d,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=a,r.f(d,n,f)}else r.f(d,n,u(0,a));return!0}return void 0!==h.set&&(h.set.call(d,a),!0)}})},function(t,e,n){var r=n(0),i=n(4),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(86)})},function(t,e,n){var r=n(0),i=n(4),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(31),o=n(4);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(16),i=n(0),o=n(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(16),i=n(31),o=n(12),s=n(0),a=n(1),u=n(4);s(s.S,"Reflect",{get:function t(e,n){var s,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(s=r.f(e,n))?o(s,"value")?s.value:void 0!==s.get?s.get.call(l):void 0:a(c=i(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(0),i=n(16).f,o=n(4);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(7),i=n(0),o=n(4),s=n(45);i(i.S+i.F*n(6)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var r=n(25),i=n(1),o=n(87),s=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),u=function(){var r=n.concat(s.call(arguments));return this instanceof u?function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)}(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e,n){var r=n(0),i=n(43),o=n(25),s=n(4),a=n(1),u=n(6),c=n(198),l=(n(3).Reflect||{}).construct,f=u(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),p=!u(function(){l(function(){})});r(r.S+r.F*(f||p),"Reflect",{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(p&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,d=i(a(u)?u:Object.prototype),h=Function.apply.call(t,d,e);return a(h)?h:d}})},function(t,e,n){var r=n(0),i=n(25),o=n(4),s=(n(3).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(6)(function(){s(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return s?s(r,e,u):a.call(r,e,u)}})},function(t,e,n){"use strict";var r=n(88),i=n(29);n(48)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r,i=n(42)(0),o=n(21),s=n(20),a=n(89),u=n(88),c=n(1),l=n(6),f=n(29),p=s.getWeak,d=Object.isExtensible,h=u.ufstore,v={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(c(t)){var e=p(t);return!0===e?h(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(f(this,"WeakMap"),t,e)}},y=t.exports=n(48)("WeakMap",m,g,u,!0,!0);l(function(){return 7!=(new y).set((Object.freeze||Object)(v),7).get(v)})&&(a((r=u.getConstructor(m,"WeakMap")).prototype,g),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!d(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(91),i=n(29);t.exports=n(48)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){var r=n(1),i=n(61).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(91),i=n(29);t.exports=n(48)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){n(17)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(17)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(17)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";var r=n(43),i=n(27),o=n(33),s={};n(13)(s,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(1),i=n(95),o=n(5)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(215);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(7),i=n(4),o=n(22);t.exports=n(10)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){n(17)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";var r=n(0),i=n(73),o=n(99),s=n(4),a=n(34),u=n(8),c=n(1),l=n(3).ArrayBuffer,f=n(66),p=o.ArrayBuffer,d=o.DataView,h=i.ABV&&l.isView,v=p.prototype.slice,m=i.VIEW;r(r.G+r.W+r.F*(l!==p),{ArrayBuffer:p}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return h&&h(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(6)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(f(this,p))(u(i-r)),c=new d(this),l=new d(o),h=0;r<i;)l.setUint8(h++,c.getUint8(r++));return o}}),n(51)("ArrayBuffer")},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(101);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";var r=n(11),i=n(224),o=n(102),s=n(75),a=n(223),u=n(222);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!a(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return c(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(11);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,n,o=String(t),s="",a=0,u=r;o.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&e>>8-a%1*8)){if((n=o.charCodeAt(a+=.75))>255)throw new i;e=e<<8|n}return s}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(11),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}}),s):s}},function(t,e,n){"use strict";var r=n(11);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,function(t,e){null!==t&&void 0!==t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),o=s.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},function(t,e,n){"use strict";var r=n(103);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(75),i=n(11),o=n(226),s=n(225);function a(t){this.defaults=t,this.interceptors={request:new o,response:new o}}a.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),(t=i.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=a},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} /*! * Determine if an object is a Buffer * |