nextcloud/core/js/dist/maintenance.js

286 lines
535 KiB
JavaScript
Raw Normal View History

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=779)}([function(e,t,n){var r,i,a;
/*!
* jQuery JavaScript Library v2.1.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:01Z
*/i="undefined"!=typeof window?window:this,a=function(n,i){var a=[],s=a.slice,o=a.concat,u=a.push,d=a.indexOf,l={},c=l.toString,_=l.hasOwnProperty,f={},h=n.document,m=function(e,t){return new m.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,M=/-([\da-z])/gi,g=function(e,t){return t.toUpperCase()};function v(e){var t="length"in e&&e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}m.fn=m.prototype={jquery:"2.1.4",constructor:m,selector:"",length:0,toArray:function(){return s.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:s.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return m.each(this,e,t)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:u,sort:a.sort,splice:a.splice},m.extend=m.fn.extend=function(){var e,t,n,r,i,a,s=arguments[0]||{},o=1,u=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[o]||{},o++),"object"==typeof s||m.isFunction(s)||(s={}),o===u&&(s=this,o--);o<u;o++)if(null!=(e=arguments[o]))for(t in e)n=s[t],s!==(r=e[t])&&(d&&r&&(m.isPlainObject(r)||(i=m.isArray(r)))?(i?(i=!1,a=n&&m.isArray(n)?n:[]):a=n&&m.isPlainObject(n)?n:{},s[t]=m.extend(d,a,r)):void 0!==r&&(s[t]=r));return s},m.extend({expando:"jQuery"+("2.1.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!m.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return!("object"!==m.type(e)||e.nodeType||m.isWindow(e)||e.constructor&&!_.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=m.trim(e))&&(1===e.indexOf("use strict")?((t=h.createElement("script")).text=e,h.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(M,g)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,a=v(e);if(n){if(a)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(a)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(v(Object(e))?m.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,s=!n;i<a;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,a=e.length,s=[];if(v(e))for(;i<a;i++)null!=(r=t(e[i],i,n))&&s.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&s.push(r);return o.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m.isFunction(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||m.guid++,i},now:Date.now,support:f}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var L=
/*!
* Sizzle CSS Selector Engine v2.2.0-pre
* http://sizzlejs.com/
*
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-16
*/
function(e){var t,n,r,i,a,s,o,u,d,l,c,_,f,h,m,p,y,M,g,v="sizzle"+1*new Date,L=e.document,Y=0,k=0,w=se(),b=se(),T=se(),D=function(e,t){return e===t&&(c=!0),0},x=1<<31,S={}.hasOwnProperty,j=[],H=j.pop,P=j.push,O=j.push,E=j.slice,C=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},A="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=N.replace("w","w#"),I="\\["+F+"*("+N+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+F+"*\\]",R=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",z=new RegExp(F+"+","g"),U=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),$=new RegExp("^"+F+"*,"+F+"*"),J=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),q=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),B=new RegExp(R),V=new RegExp("^"+W+"$"),G={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+A+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),re=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ie=function(){_()};try{O.apply(j=E.call(L.childNodes),L.childNodes),j[L.childNodes.length].nodeType}catch(e){O={apply:j.length?function(e,t){P.apply(e,E.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,i){var a,o,d,l,c,h,y,M,Y,k;if((t?t.ownerDocument||t:L)!==f&&_(t),r=r||[],l=(t=t||f).nodeType,"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return r;if(!i&&m){if(11!==l&&(a=Z.exec(e)))if(d=a[1]){if(9===l){if(!(o=t.getElementById(d))||!o.parentNode)return r;if(o.id===d)return r.push(o),r}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(d))&&g(t,o)&&o.id===d)return r.push(o),r}else{if(a[2])return O.apply(r,t.getElementsByTagName(e)),r;if((d=a[3])&&n.getElementsByClassName)return O.apply(r,t.getElementsByClassName(d)),r}if(n.qsa&&(!p||!p.test(e))){if(M=y=v,Y=t,k=1!==l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){for(h=s(e),(y=t.getAttribute("id"))?M=y.replace(te,"\\$&"):t.setAttribute("id",M),M="[id='"+M+"'] ",c=h.length;c--;)h[c]=M+pe(h[c]);Y=ee.test(e)&&he(t.parentNode)||t,k=h.join(",")}if(k)try{return O.apply(r,Y.querySelectorAll(k)),r}catch(e){}finally{y||t.removeAttribute("id")}}}return u(e.replace(U,"$1"),t,r,i)}function se(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function oe(e){return e[v]=!0,e}function ue(e){var t=f.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=e.length;i--;)r.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||x)-(~e.sourceIndex||x);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function _e(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return oe(function(t){return t=+t,oe(function(n,r){for(var i,a=e([],n.length,t),s=a.length;s--;)n[i=a[s]]&&(n[i]=!(r[i]=n[i]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},a=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},_=ae.setDocument=function(e){var t,i
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/je.customResults={},je.resultTypes={};var He=je,Pe=window._theme||{},Oe=i(1),Ee=i.n(Oe),Ce={_handlers:[],_pushState:function(e,t,n){var r;if(r="string"==typeof e?e:qe.buildQueryString(e),window.history.pushState){if(t=t||location.pathname+"?"+r,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51)for(var i,a=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]'),s=0,o=a.length;s<o;s++)(i=a[s]).style.fill=i.style.fill,i.style.stroke=i.style.stroke,i.removeAttribute("filter"),i.setAttribute("filter","url(#invert)");n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t)}else window.location.hash="?"+r,this._cancelPop=!0},pushState:function(e,t){return this._pushState(e,t,!1)},replaceState:function(e,t){return this._pushState(e,t,!0)},addOnPopStateHandler:function(e){this._handlers.push(e)},_parseHashQuery:function(){var e=window.location.hash,t=e.indexOf("?");return t>=0?e.substr(t+1):e.length?e.substr(1):""},_decodeQuery:function(e){return e.replace(/\+/g," ")},parseUrlQuery:function(){var e,t=this._parseHashQuery();return t&&(e=qe.parseQueryString(this._decodeQuery(t))),(e=f.a.extend(e||{},qe.parseQueryString(this._decodeQuery(location.search))))||{}},_onPopState:function(e){var t;if(this._cancelPop)this._cancelPop=!1;else if(this._handlers.length){t=e&&e.state,f.a.isString(t)?t=qe.parseQueryString(t):t||(t=this.parseUrlQuery()||{});for(var n=0;n<this._handlers.length;n++)this._handlers[n](t)}}},Ae=i(87);
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function Fe(e){for(var t,n=[],r=0,i=-1,a=0;r<e.length;){t=e.charAt(r);var s=!a&&"."===t||t>="0"&&t<="9";s!==a&&(n[++i]="",a=s),n[i]+=t,r++}return n}var Ne={History:Ce,humanFileSize:Ae.a,computerFileSize:function(e){if("string"!=typeof e)return null;var t=e.toLowerCase().trim(),n=null,r=t.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===r?null:(n=parseFloat(t),isFinite(n)?(r[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[r[5]]),n=Math.round(n)):null)},formatDate:function(e,t){return t=t||"LLL",Ee()(e).format(t)},relativeModifiedDate:function(e){var n=Ee()().diff(Ee()(e));return n>=0&&n<45e3?t("core","seconds ago"):Ee()(e).fromNow()},isIE:function(){return o()("html").hasClass("ie")},getScrollBarWidth:function(){if(this._scrollBarWidth)return this._scrollBarWidth;var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;return n===r&&(r=t.clientWidth),document.body.removeChild(t),this._scrollBarWidth=n-r,this._scrollBarWidth},stripTime:function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},naturalSortCompare:function(e,t){var n,r=Fe(e),i=Fe(t);for(n=0;r[n]&&i[n];n++)if(r[n]!==i[n]){var a=Number(r[n]),s=Number(i[n]);return a==r[n]&&s==i[n]?a-s:r[n].localeCompare(i[n],qe.getLanguage())}return r.length-i.length},waitFor:function(e,t){!function n(){!0!==e()&&setTimeout(n,t)}()},isCookieSetToValue:function(e,t){for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var i=n[r].split("=");if(i[0].trim()===e&&i[1].trim()===t)return!0}return!1}},We=window._oc_debug,Ie=We,Re=function(e){return window.location=e},ze=function(){return window.location.reload()},Ue=window._oc_webroot;
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/if(void 0===Ue){var $e=(Ue=location.pathname).indexOf("/index.php/");Ue=-1!==$e?Ue.substr(0,$e):Ue.substr(0,Ue.lastIndexOf("/"))}var Je=Ue,qe=r.a={coreApps:Z.i,menuSpeed:Z.j,PERMISSION_ALL:Z.a,PERMISSION_CREATE:Z.b,PERMISSION_DELETE:Z.c,PERMISSION_NONE:Z.d,PERMISSION_READ:Z.e,PERMISSION_SHARE:Z.f,PERMISSION_UPDATE:Z.g,TAG_FAVORITE:Z.h,fileIsBlacklisted:function(e){return!!e.match(Q.blacklist_files_regex)},addScript:l,addStyle:c,Apps:M.a,AppConfig:L,appConfig:v,appSettings:k,appswebroots:b,Backbone:U,ContactsMenu:ee.a,config:Q,currentUser:re,dialogs:oe,EventSource:le,getCurrentUser:ie,isUserAdmin:be,L10N:Te.a,_ajaxConnectionLostHandler:m,_processAjaxError:p,registerXHRForErrorProcessing:y,_capabilities:he(),getCapabilities:he,hideMenus:Ye,registerMenu:ve,showMenu:ke,unregisterMenu:Le,basename:q,encodePath:J,dirname:B,isSamePath:V,joinPaths:G,getHost:pe,getHostName:ye,getPort:Me,getProtocol:me,getCanonicalLocale:Te.b,getLocale:Te.d,getLanguage:Te.c,addTranslations:Te.a.load,buildQueryString:K.a,parseQueryString:K.b,msg:De,Notification:h,PasswordConfirmation:xe.a,Plugins:Se,search:He,theme:Pe,Util:Ne,debug:Ie,filePath:Y.a,generateUrl:Y.b,get:ce(window),set:_e(window),getRootPath:Y.c,imagePath:Y.d,redirect:Re,reload:ze,requestToken:Object(ue.a)(),linkTo:Y.e,linkToOCS:Y.f,linkToRemote:Y.g,linkToRemoteBase:Y.h,webroot:Je};
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/Object(a.subscribe)("csrf-token-update",function(e){OC.requestToken=e.token,console.info("OC.requestToken changed",e.token)})},,function(e,t,n){"use strict";n.d(t,"i",function(){return r}),n.d(t,"j",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"g",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"f",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"h",function(){return _});
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software = you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation either version 3 of the
* License or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not see <http://www.gnu.org/licenses/>.
*/
var r=["","admin","log","core/search","settings","core","3rdparty"],i=50,a=0,s=4,o=1,u=2,d=8,l=16,c=31,_="_$!<Favorite>!$_"},function(e,t,n){var r=n(8),i=n(43),a=n(61),s=n(290),o=r.Symbol,u=i("wks");e.exports=function(e){return u[e]||(u[e]=s&&o[e]||(s?o:a)("Symbol."+e))}},function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"h",function(){return u}),n.d(t,"g",function(){return d}),n.d(t,"f",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return _}),n.d(t,"a",function(){return f}),n.d(t,"c",function(){return h});var r=n(2),i=n.n(r),a=n(3),s=n(5),o=function(e,t){return f(e,"",t)},u=function(e){return h()+"/remote.php/"+e},d=function(e){return window.location.protocol+"//"+window.location.host+u(e)},l=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+h()+"/ocs/v"+t+".php/"+e+"/"},c=function(e,t,n){var r=n||{};i.a.defaults(r,{escape:!0});var s=function(e,t){return t=t||[],e.replace(/{([^{}]*)}/g,function(e,n){var i=t[n];return r.escape?"string"==typeof i||"number"==typeof i?encodeURIComponent(i):encodeURIComponent(e):"string"==typeof i||"number"==typeof i?i:e})};return"/"!==e.charAt(0)&&(e="/"+e),!0===a.a.config.modRewriteWorking?h()+s(e,t):h()+"/index.php"+s(e,t)},_=function(e,t){return-1===t.indexOf(".")?f(e,"img",t+".svg"):f(e,"img",t)},f=function(e,t,n){var r=-1!==s.i.indexOf(e),i=h();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(i+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(i+="apps/"),""!==e&&(i+=e+="/"),t&&(i+=t+"/"),i+=n):(i=a.a.appswebroots[e],t&&(i+="/"+t+"/"),"/"!==i.substring(i.length-1)&&(i+="/"),i+=n):(i+="/index.php/apps/"+e,"index.php"!==n&&(i+="/",t&&(i+=encodeURI(t+"/")),i+=n)),i},h=function(){return a.a.webroot}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(21))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},,,,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(24),i=n(22),a=n(41);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";t.__esModule=!0,t.extend=o,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!a.test(e))return e;return e.replace(i,s)},t.isEmpty=function(e){return!e&&0!==e||!(!l(e)||0!==e.length)},t.createFrame=function(e){var t=o({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},i=/[&<>"'`=]/g,a=/[&<>"'`=]/;function s(e){return r[e]}function o(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var u=Object.prototype.toString;t.toString=u;var d=function(e){return"function"==typeof e};d(/x/)&&(t.isFunction=d=function(e){return"function"==typeof e&&"[object Function]"===u.call(e)}),t.isFunction=d;var l=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===u.call(e)};t.isArray=l},function(e,t,n){(function(r){var i,a,s;s="object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r,i=[n(2),n(0),t],void 0===(a=function(e,t,n){s.Backbone=function(e,t,n,r){var i=e.Backbone,a=Array.prototype.slice;t.VERSION="1.4.0",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s,o=t.Events={},u=/\s+/,d=function(e,t,r,i,a){var s,o=0;if(r&&"object"==typeof r){void 0!==i&&"context"in a&&void 0===a.context&&
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
window._oc_l10n_registry_translations=window._oc_l10n_registry_translations||{},window._oc_l10n_registry_plural_functions=window._oc_l10n_registry_plural_functions||{};var l=function(e,t,n){c(e)?function(e,t,n){window._oc_l10n_registry_translations[e]=Object.assign(window._oc_l10n_registry_translations[e],t),window._oc_l10n_registry_plural_functions[e]=n}(e,t,n):function(e,t,n){window._oc_l10n_registry_translations[e]=t,window._oc_l10n_registry_plural_functions[e]=n}(e,t,n)},c=function(e){return void 0!==window._oc_l10n_registry_translations[e]&&void 0!==window._oc_l10n_registry_plural_functions[e]},_=function(e){return{translations:window._oc_l10n_registry_translations[e]||{},pluralFunction:window._oc_l10n_registry_plural_functions[e]}};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"b",function(){return m}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return y});var h={load:function(e,t){if(c(e)||"en"===d.a.getLocale()){var n=s.a.Deferred(),r=n.promise();return r.then(t),n.resolve(),r}var i=this,a=d.a.filePath(e,"l10n",d.a.getLocale()+".json");return s.a.get(a).then(function(t){t.translations&&i.register(e,t.translations,t.pluralForm)}).then(t)},register:function(e,t,n){l(e,t,this._getPlural)},_unregister:function(e){delete window._oc_l10n_registry_translations[e],delete window._oc_l10n_registry_plural_functions[e]},translate:function(e,t,n,r,a){var s=a||{};i.a.defaults(s,{escape:!0});var o=t,u=_(e).translations[t];return void 0!==u&&(o=u),"object"===f(n)||void 0!==r?DOMPurify.sanitize(function(e,t,n){return e.replace(/%n/g,n).replace(/{([^{}]*)}/g,function(e,n){var r=t[n];return"string"==typeof r||"number"==typeof r?s.escape?DOMPurify.sanitize(escapeHTML(r)):DOMPurify.sanitize(r):DOMPurify.sanitize(e)})}(o,n,r)):DOMPurify.sanitize(o)},translatePlural:function(e,t,n,r,i,a){var o="_"+t+"_::_"+n+"_",u=_(e),d=u.translations[o];if(void 0!==d){var l=d;if(s.a.isArray(l)){var c=u.pluralFunction(r);return this.translate(e,l[c],i,r,a)}}return 1===r?this.translate(e,t,i,r,a):this.translate(e,n,i,r,a)},_getPlural:function(e){var t=d.a.getLanguage();if("pt_BR"===t&&(t="xbr"),void 0===t||""===t)return 1==e?0:1;switch(t.length>3&&(t=t.substring(0,t.lastIndexOf("_"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return 1==e?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return 0==e||1==e?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return 1==e%10&&11!=e%100?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return 1==e?0:e>=2&&e<=4?1:2;case"ga":return 1==e?0:2==e?1:2;case"lt":return 1==e%10&&11!=e%100?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return 1==e%100?0:2==e%100?1:3==e%100||4==e%100?2:3;case"mk":return 1==e%10?0:1;case"mt":return 1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return 0==e?0:1==e%10&&11!=e%100?1:2;case"pl":return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return 1==e?0:2==e?1:8==e||11==e?2:3;case"ro":return 1==e?0:0==e||e%100>0&&e%100<20?1:2;case"ar":return 0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5;default:return 0}}},m=(t.a=h,function(){var e=p();return"string"==typeof e?e.replace(/_/g,"-"):e}),p=function(){return s()("html").data("locale")},y=function(){return s()("html").prop("lang")};u.a.
/**
* @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
function s(t,n,r){"post"!==t&&"delete"!==t||!a.a.PasswordConfirmation.requiresPasswordConfirmation()?(r=r||{},i.a.ajax({type:t.toUpperCase(),url:a.a.linkToOCS("apps/provisioning_api/api/v1",2)+"config/apps"+n,data:r.data||{},success:r.success,error:r.error})):a.a.PasswordConfirmation.requirePasswordConfirmation(e.bind(s,this,t,n,r))}function o(e){s("get","",e)}function u(e,t){s("get","/"+e,t)}function d(e,t,n,r){(r=r||{}).data={defaultValue:n},s("get","/"+e+"/"+t,r)}function l(e,t,n,r){(r=r||{}).data={value:n},s("post","/"+e+"/"+t,r)}function c(e,t,n){s("delete","/"+e+"/"+t,n)}}.call(this,n(2))},function(e,t,n){(function(t){var n="object",r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof t==n&&t)||Function("return this")()}).call(this,n(21))},,function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s});var r=n(40),i=document.getElementsByTagName("head")[0].getAttribute("data-requesttoken"),a=function(){return i},s=function(e){i=e,Object(r.emit)("csrf-token-update",{token:i})}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(21))},,function(e,t,n){"use strict";
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/t.a={}},function(e,t,n){e.exports=n(51).default},function(e,t,n){var r=n(8),i=n(97).f,a=n(16),s=n(37),o=n(59),u=n(282),d=n(103);e.exports=function(e,t){var n,l,c,_,f,h=e.target,m=e.global,p=e.stat;if(n=m?r:p?r[h]||o(h,{}):(r[h]||{}).prototype)for(l in t){if(_=t[l],c=e.noTargetGet?(f=i(n,l))&&f.value:n[l],!d(m?l:h+(p?".":"#")+l,e.forced)&&void 0!==c){if(typeof _==typeof c)continue;u(_,c)}(e.sham||c&&c.sham)&&a(_,"sham",!0),s(n,l,_,e)}}},function(e,t,n){var r=n(8),i=n(43),a=n(16),s=n(15),o=n(59),u=n(101),d=n(44),l=d.get,c=d.enforce,_=String(u).split("toString");i("inspectSource",function(e){return u.call(e)}),(e.exports=function(e,t,n,i){var u=!!i&&!!i.unsafe,d=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||a(n,"name",t),c(n).source=_.join("string"==typeof t?t:"")),e!==r?(u?!l&&e[t]&&(d=!0):delete e[t],d?e[t]=n:a(e,t,n)):d?e[t]=n:o(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||u.call(this)})},function(e,t){e.exports={}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emit=t.unsubscribe=t.subscribe=void 0;var r=n(276),i=n(277);var a=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus),s=a.subscribe.bind(a);t.subscribe=s;var o=a.unsubscribe.bind(a);t.unsubscribe=o;var u=a.emit.bind(a);t.emit=u},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(98),i=n(56);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(58),i=n(280);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.3.2",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r,i,a,s=n(281),o=n(8),u=n(10),d=n(16),l=n(15),c=n(60),_=n(45),f=o.WeakMap;if(s){var h=new f,m=h.get,p=h.has,y=h.set;r=function(e,t){return y.call(h,e,t),t},i=function(e){return m.call(h,e)||{}},a=function(e){return p.call(h,e)}}else{var M=c("state");_[M]=!0,r=function(e,t){return d(e,M,t),t},i=function(e){return l(e,M)?e[M]:{}},a=function(e){return l(e,M)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){e.exports={}},function(e,t,n){var r=n(63),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var a=i(n(119)),s=r(n(330)),o=r(n(26)),u=i(n(17)),d=i(n(331)),l=r(n(332));function c(){var e=new a.HandlebarsEnvironment;return u.extend(e,a),e.SafeString=s.default,e.Exception=o.default,e.Utils=u,e.escapeExpression=u.escapeExpression,e.VM=d,e.template=function(t){return d.template(t,e)},e}var _=c();_.create=c,l.default(_),_.default=_,t.default=_,e.exports=t.default},,,,function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,n){var r=n(8),i=n(16);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(43),i
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var r=function(e){var t,n,r,i,a={};if(!e)return null;(n=e.indexOf("?"))>=0&&(e=e.substr(n+1)),t=e.replace(/\+/g,"%20").split("&");for(var s=0;s<t.length;s++){var o=t[s];(r=(n=o.indexOf("="))>=0?[o.substr(0,n),o.substr(n+1)]:[o]).length&&((i=decodeURIComponent(r[0]))&&(r.length>1?a[i]=decodeURIComponent(r[1]):a[i]=null))}return a},i=function(t){return t?e.map(t,function(e,t){var n=encodeURIComponent(t);return null!=e&&(n+="="+encodeURIComponent(e)),n}).join("&"):""}}).call(this,n(0))},,,,,,,function(e,t,n){"use strict";n.d(t,"b",function(){return o});var r=n(0),i=n.n(r),a=!1,s={enableDynamicSlideToggle:function(){a=!0},showAppSidebar:function(e){(e||i()("#app-sidebar")).removeClass("disappear").show(),i()("#app-content").trigger(new i.a.Event("appresized"))},hideAppSidebar:function(e){var t=e||i()("#app-sidebar");t.find("[data-original-title]").tooltip("hide"),t.hide().addClass("disappear"),i()("#app-content").trigger(new i.a.Event("appresized"))}},o=function(){var e=i()("[data-apps-slide-toggle]");0===e.length&&i()("#app-navigation").addClass("without-app-settings"),i()(document).click(function(t){a&&(e=i()("[data-apps-slide-toggle]")),e.each(function(e,n){var r=i()(n).data("apps-slide-toggle"),a=i()(r);function s(){a.slideUp(4*OC.menuSpeed,function(){a.trigger(new i.a.Event("hide"))}),a.removeClass("opened"),i()(n).removeClass("opened")}if(!a.is(":animated"))if(i()(n).is(i()(t.target).closest("[data-apps-slide-toggle]")))a.is(":visible")?s():function(){a.slideDown(4*OC.menuSpeed,function(){a.trigger(new i.a.Event("show"))}),a.addClass("opened"),i()(n).addClass("opened");var e=i()(r+" [autofocus]");1===e.length&&e.focus()}();else{var o=i()(t.target).closest(r);a.is(":visible")&&o[0]!==a[0]&&s()}})})};t.a=s},function(e,t){"undefined"==typeof dav&&(dav={}),dav._XML_CHAR_MAP={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&apos;"},dav._escapeXml=function(e){return e.replace(/[<>&"']/g,function(e){return dav._XML_CHAR_MAP[e]})},dav.Client=function(e){var t;for(t in e)this[t]=e[t]},dav.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(e,t,n,r){void 0===n&&(n="0"),n=""+n,(r=r||{}).Depth=n,r["Content-Type"]="application/xml; charset=utf-8";var i,a='<?xml version="1.0"?>\n<d:propfind ';for(i in this.xmlNamespaces)a+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';for(var s in a+=">\n <d:prop>\n",t)if(t.hasOwnProperty(s)){var o=this.parseClarkNotation(t[s]);this.xmlNamespaces[o.namespace]?a+=" <"+this.xmlNamespaces[o.namespace]+":"+o.name+" />\n":a+=" <x:"+o.name+' xmlns:x="'+o.namespace+'" />\n'}return a+=" </d:prop>\n",a+="</d:propfind>",this.request("PROPFIND",e,r,a).then(function(e){return"0"===n?{status:e.status,body:e.body[0],xhr:e.xhr}:{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},_renderPropSet:function(e){var t=" <d:set>\n <d:prop>\n";for(var n in e)if(e.hasOwnProperty(n)){var r,i=this.parseClarkNotation(n),a=e[n];"d:resourcetype"!==(r=this.xmlNamespaces[i.namespace]?this.xmlNamespaces[i.namespace]+":"+i.name:"x:"+i.name+' xmlns:x="'+i.namespace+'"')&&(a=dav._escapeXml(a)),t+=" <"+r+">"+a+"</"+r+">\n"}return t+=" </d:prop>\n",t+=" </d:set>\n"},propPatch:function(e,t,n){(n=n||{})["Content-Type"]="application/xml; charset=utf-8";var r,i='<?xml version="1.0"?>\n<d:propertyupdate ';for(r in this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';return i+=">\n"+this._renderPropSet(t),i+="</d:propertyupdate>",this.request("PROPPATCH",e,n,i).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},mkcol:function(e,t,n){var r="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",t){var i;for(i in r='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';r+=">\n"+this._renderPropSet(t),r+="</d:mkcol>"}return this.request("MKCOL",e,n,r).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},request:function(e,t,n,r){var i,a=this,s=this.xhrProvider();for(i in n=n||{},this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/n.a={callback:null,pageLoadTime:null,init:function(){o()(".password-confirm-required").on("click",a.a.bind(this.requirePasswordConfirmation,this)),this.pageLoadTime=d.a.now()},requiresPasswordConfirmation:function(){var e=this.pageLoadTime-1e3*nc_pageLoad,t=d.a.now()-(e+1e3*nc_lastLogin);return backendAllowsPasswordConfirmation&&t>18e5},requirePasswordConfirmation:function(e,n,r){n=void 0!==n?n:{};var i={title:t("core","Authentication required"),text:t("core","This action requires you to confirm your password"),confirm:t("core","Confirm"),label:t("core","Password"),error:""},s=a.a.extend(i,n),u=this;this.requiresPasswordConfirmation()&&l.a.dialogs.prompt(s.text,s.title,function(e,t){e&&""!==t?u._confirmPassword(t,s):a.a.isFunction(r)&&r()},!0,s.label,!0).then(function(){var e=o()(".oc-dialog:visible");if(e.find(".ui-icon").remove(),e.addClass("password-confirmation"),""!==s.error)var t=o()("<p></p>").addClass("msg warning").text(s.error);e.find(".oc-dialog-content").append(t),e.find(".oc-dialog-buttonrow").addClass("aside");var n=e.find("button");n.eq(0).hide(),n.eq(1).text(s.confirm)}),this.callback=e},_confirmPassword:function(e,n){var r=this;o.a.ajax({url:l.a.generateUrl("/login/confirm"),data:{password:e},type:"POST",success:function(e){nc_lastLogin=e.lastLogin,a.a.isFunction(r.callback)&&r.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),l.a.PasswordConfirmation.requirePasswordConfirmation(r.callback,n)}})}}},function(e,t,n){"use strict";
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function r(e,t){var n=["B","KB","MB","GB","TB"],r=e>0?Math.floor(Math.log(e)/Math.log(1024)):0,i=n[r=Math.min(n.length-1,r)],a=(e/Math.pow(1024,r)).toFixed(1);return!0===t&&0===r?"0.0"!==a?"< 1 KB":"0 KB":(a=r<2?parseFloat(a).toFixed(0):".0"===a.substr(a.length-2,2)?a.substr(0,a.length-2):parseFloat(a).toLocaleString(OC.getCanonicalLocale()))+" "+i}n.d(t,"a",function(){return r})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(70),i=n(252),a=n(339);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(48);e.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(91),i=n(361),a=n(355);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(29),i=n(256),a=n(443),s=r["__core-js_shared__"]||i("__core-js_shared__",{});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.2.1",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},,,,function(e,t,n){var r=n(24),i=n(279),a=n(41),s=n(42),o=n(57),u=n(15),d=n(99),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=s(e),t=o(t,!0),d)try{return l(e,t)}catch(e){}if(u(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(9),i=n(55),a="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(24),i=n(9),a=n(100);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(8),i=n(10),a=r.document,s=i(a)&&i(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},function(e,t,n){var r=n(43);e.exports=r("native-function-to-string",Function.toString)},function(e,t,n){var r=n(15),i=n(42),a=n(286).indexOf,s=n(45);e.exports=function(e,t){var n,o=i(e),u=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&d.push(n);for(;t.length>u;)r(o,n=t[u++])&&(~a(d,n)||d.push(n));return d}},function(e,t,n){var r=n(9),i=/#|\.prototype\./,a=function(e,t){var n=o[s(e)];return n==d||n!=u&&("function"==typeof t?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=a.data={},u=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(55);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10),i=n(104),a=n(6)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(9),i=n(6)("species");e.exports=function(e){return!r(function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){var r=n(66),i=n(98),a=n(65),s=n(46),o=n(105),u=[].push,d=function(e){var t=1==e,n=2==e,d=3==e,l=4==e,c=6==e,_=5==e||c;return function(f,h,m,p){for(var y,M,g=a(f),v=i(g),L=r(h,m,3),Y=s(v.length),k=0,w=p||o,b=t?w(f,Y):n?w(f,0):void 0;Y>k;k++)if((_||k in v)&&(M=L(y=v[k],k,g),e))if(t)b[k]=M;else if(M)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:u.call(b,y)}else if(l)return!1;return c?-1:d||l?l:b}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6)}},function(e,t,n){"use strict";var r=n(107).forEach,i=n(294);e.exports=i("forEach")?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(e,t,n){"use strict";var r=n(42),i=n(295),a=n(38),s=n(44),o=n(68),u=s.set,d=s.getterFor("Array Iterator");e.exports=o(Array,"Array",function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),a.Arguments
/*!
* Toastify js 1.6.1
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
* Copyright (C) 2018 Varun A P
*/
var r,i;r=this,i=function(e){var t=function(e){return new t.lib.init(e)};function n(e,t){return!(!e||"string"!=typeof t||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.lib=t.prototype={toastify:"1.6.1",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||"Hi there!",this.options.duration=e.duration||3e3,this.options.selector=e.selector,this.options.callback=e.callback||function(){},this.options.destination=e.destination,this.options.newWindow=e.newWindow||!1,this.options.close=e.close||!1,this.options.gravity="bottom"==e.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=e.positionLeft||!1,this.options.position=e.position||"",this.options.backgroundColor=e.backgroundColor,this.options.avatar=e.avatar||"",this.options.className=e.className||"",this.options.stopOnFocus=void 0===e.stopOnFocus||e.stopOnFocus,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");if(e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&(e.style.background=this.options.backgroundColor),e.innerHTML=this.options.text,""!==this.options.avatar){var t=document.createElement("img");t.src=this.options.avatar,t.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(t):e.insertAdjacentElement("beforeend",t)}if(!0===this.options.close){var n=document.createElement("span");if(n.innerHTML="&#10006;",n.className="toast-close",n.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(e.target.parentElement),window.clearTimeout(e.target.parentElement.timeOutValue)}.bind(this)),this.options.stopOnFocus&&this.options.duration>0){const t=this;e.addEventListener("mouseover",function(t){window.clearTimeout(e.timeOutValue)}),e.addEventListener("mouseleave",function(){e.timeOutValue=window.setTimeout(function(){t.removeElement(e)},t.options.duration)})}var r=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&r>360?e.insertAdjacentElement("afterbegin",n):e.appendChild(n)}return void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return e.insertBefore(this.toastElement,e.firstChild),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},r={top:15,bottom:15},i={top:15,bottom:15},a=document.getElementsByClassName("toastify"),s=0;s<a.length;s++){e=!0===n(a[s],"toastify-top")?"toastify-top":"toastify-bottom";var o=a[s].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[s].style[e]=i[e]+"px",i[e]+=o+15):!0===n(a[s],"toastify-left")?(a[s].style[e]=t[e]+"px",t[e]+=o+15):(a[s].style[e]=r[e]+"px",r[e]+=o+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=i():r.Toastify=i()},function(e,t,n){"use strict";n(393),Object.definePr
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(20),i=n(347),a=n(423),s=n(424),o=n(352);function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=o(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=o(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=u},function(e,t,n){"use strict";var r=n(20);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){"use strict";var r=n(20),i=n(425),a=n(348),s=n(349),o=n(432),u=n(433);function d(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return d(e),e.baseURL&&!o(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return d(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(d(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(20);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(20);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(351);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(20),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"];e.exports=function(e){var t,n,a,s={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}}),s):s}},function(e,t,n){"use strict";var r=n(20);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(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:"/
//# sourceMappingURL=maintenance.js.map