').addClass("crumb");if(i){var a=i.split("/");c().each(a,(function(t,e){if(""===(e=a.pop()))return!1;n.$dirTree.prepend(o.octemplate({dir:a.join("/")+"/"+e,name:e}))}))}o.octemplate({dir:"",name:t("core","Home")},{escapeFunction:null}).prependTo(this.$dirTree)},_handleTreeListSelect:function(t,e){var n=t.data,i=c()(t.target).closest(".crumb").data("dir");n._fillFilePicker(i,e);var o=t.target.closest(".oc-dialog"),a=c()(".primary",o);this._changeButtonsText(e,i.split(/[/]+/).pop()),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?a.prop("disabled",!1):a.prop("disabled",!0)},_handlePickerClick:function(t,e,n){var i=this.$filePicker.closest(".oc-dialog").find(".primary");"file"===e.data("type")?(!0===this.$filePicker.data("multiselect")&&t.ctrlKey||this.$filelist.find(".filepicker_element_selected").removeClass("filepicker_element_selected"),e.toggleClass("filepicker_element_selected"),i.prop("disabled",!1)):"dir"===e.data("type")&&(this._fillFilePicker(this.$filePicker.data("path")+"/"+e.data("entryname"),n),this._changeButtonsText(n,e.data("entryname")),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?i.prop("disabled",!1):i.prop("disabled",!0))},_changeButtonsText:function(e,n){var i=""===n?t("core","Copy"):t("core","Copy to {folder}",{folder:n}),o=""===n?t("core","Move"):t("core","Move to {folder}",{folder:n}),a=c()(".oc-dialog-buttonrow button");switch(e){case this.FILEPICKER_TYPE_CHOOSE:case this.FILEPICKER_TYPE_CUSTOM:break;case this.FILEPICKER_TYPE_COPY:a.text(i);break;case this.FILEPICKER_TYPE_MOVE:a.text(o);break;case this.FILEPICKER_TYPE_COPY_MOVE:a.eq(0).text(i),a.eq(1).text(o)}}},vt=gt,Ct=(ft=document,ht=u.j8,mt=ft.getElementsByTagName("head")[0].getAttribute("data-requesttoken"),{getToken:function(){return mt},setToken:function(t){ht("csrf-token-update",{token:mt=t})}}),bt=Ct.getToken,wt=Ct.setToken,yt=function t(e,n){var i,o,a="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},n)for(i in n)a+=i+"="+encodeURIComponent(n[i])+"&";if(a+="requesttoken="+encodeURIComponent(bt()),this.useFallBack||"undefined"==typeof EventSource){var r="oc_eventsource_iframe_"+t.iframeCount;t.fallBackSources[t.iframeCount]=this,this.iframe=c()(""),this.iframe.attr("id",r),this.iframe.hide(),o="&",-1===e.indexOf("?")&&(o="?"),this.iframe.attr("src",e+o+"fallback=true&fallback_id="+t.iframeCount+"&"+a),c()("body").append(this.iframe),this.useFallBack=!0,t.iframeCount++}else o="&",-1===e.indexOf("?")&&(o="?"),this.source=new EventSource(e+o+a),this.source.onmessage=function(t){for(var e=0;e18e5},requirePasswordConfirmation:function(e,n,i){n=void 0!==n?n:{};var o={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:""},a=h.ZP.extend(o,n),r=this;this.requiresPasswordConfirmation()&&Jt.dialogs.prompt(a.text,a.title,(function(t,e){t&&""!==e?r._confirmPassword(e,a):h.ZP.isFunction(i)&&i()}),!0,a.label,!0).then((function(){var t=c()(".oc-dialog:visible");if(t.find(".ui-icon").remove(),t.addClass("password-confirmation"),""!==a.error){var e=c()("").addClass("msg warning").text(a.error);t.find(".oc-dialog-content").append(e)}var n=t.find(".oc-dialog-buttonrow");n.addClass("aside");var i=n.find("button");i.eq(0).hide(),i.eq(1).text(a.confirm)})),this.callback=e},_confirmPassword:function(e,n){var i=this;c().ajax({url:(0,d.generateUrl)("/login/confirm"),data:{password:e},type:"POST",success:function(t){window.nc_lastLogin=t.lastLogin,h.ZP.isFunction(i.callback)&&i.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),Jt.PasswordConfirmation.requirePasswordConfirmation(i.callback,n)}})}},Mt=window._theme||{},Lt={_handlers:[],_pushState:function(t,e,n){var i;if(i="string"==typeof t?t:Jt.buildQueryString(t),window.history.pushState){if(e=e||location.pathname+"?"+i,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51)for(var o,a=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]'),r=0,s=a.length;r=0?t.substr(e+1):t.length?t.substr(1):""},_decodeQuery:function(t){return t.replace(/\+/g," ")},parseUrlQuery:function(){var t,e=this._parseHashQuery();return e&&(t=Jt.parseQueryString(this._decodeQuery(e))),(t=h.ZP.extend(t||{},Jt.parseQueryString(this._decodeQuery(location.search))))||{}},_onPopState:function(t){var e;if(this._cancelPop)this._cancelPop=!1;else if(this._handlers.length){e=t&&t.state,h.ZP.isString(e)?e=Jt.parseQueryString(e):e||(e=this.parseUrlQuery()||{});for(var n=0;n="0"&&e<="9";r!==a&&(n[++o]="",a=r),n[o]+=e,i++}return n}var Gt={History:Lt,humanFileSize:Ft.sS,computerFileSize:function(t){if("string"!=typeof t)return null;var e=t.toLowerCase().trim(),n=null,i=e.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===i?null:(n=parseFloat(e),isFinite(n)?(i[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[i[5]]),n=Math.round(n)):null)},formatDate:function(t,e){return void 0===window.TESTING&&Rt.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),e=e||"LLL",Nt()(t).format(e)},relativeModifiedDate:function(e){void 0===window.TESTING&&Rt.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");var n=Nt()().diff(Nt()(e));return n>=0&&n<45e3?t("core","seconds ago"):Nt()(e).fromNow()},getScrollBarWidth:function(){if(this._scrollBarWidth)return this._scrollBarWidth;var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;return n===i&&(i=e.clientWidth),document.body.removeChild(e),this._scrollBarWidth=n-i,this._scrollBarWidth},stripTime:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},naturalSortCompare:function(t,e){var n,i=Qt(t),o=Qt(e);for(n=0;i[n]&&o[n];n++)if(i[n]!==o[n]){var a=Number(i[n]),r=Number(o[n]);return a==i[n]&&r==o[n]?a-r:i[n].localeCompare(o[n],Jt.getLanguage())}return i.length-o.length},waitFor:function(t,e){!function n(){!0!==t()&&setTimeout(n,e)}()},isCookieSetToValue:function(t,e){for(var n=document.cookie.split(";"),i=0;i!$_",fileIsBlacklisted:function(t){return!!t.match(K.blacklist_files_regex)},addScript:function(t,e,n){var i;A.warn("OC.addScript is deprecated, use OCP.Loader.loadScript instead");var o=(0,d.generateFilePath)(t,"js",e+".js");return p[o]?n&&n():(i=c().Deferred(),c().getScript(o,(function(){return i.resolve()})),p[o]=i),p[o]},addStyle:function(t,e){A.warn("OC.addStyle is deprecated, use OCP.Loader.loadStylesheet instead");var n=(0,d.generateFilePath)(t,"css",e+".css");-1===f.indexOf(n)&&(f.push(n),document.createStyleSheet?document.createStyleSheet(n):(e=c()(''),c()("head").append(e)))},Apps:w,AppConfig:T,appConfig:O,appSettings:function(e){if(D.warn("OC.appSettings is deprecated and will be removed with Nextcloud 18"),void 0===e||void 0===e.appid)throw{name:"MissingParameter",message:"The parameter appid is missing"};var n={scriptName:"settings.php",cache:!0};c().extend(n,e);var i=c()("#appsettings");if(0===i.length)throw{name:"MissingDOMElement",message:'There has be be an element with id "appsettings" for the popup to show.'};var o=c()("#appsettings_popup");if(0===o.length&&(c()("body").prepend(''),(o=c()("#appsettings_popup")).addClass(i.hasClass("topright")?"topright":"bottomleft")),o.is(":visible"))o.hide().remove();else{var a=i.hasClass("topright")?"up":"left";c().get((0,d.generateFilePath)(n.appid,"",n.scriptName),(function(e){o.html(e).ready((function(){if(o.prepend('
'+t("core","Settings")+'
').show(),o.find(".close").bind("click",(function(){o.remove()})),void 0!==n.loadJS){var e;if(!0===n.loadJS)e="settings.js";else{if("string"!=typeof n.loadJS)throw{name:"InvalidParameter",message:'The "loadJS" parameter must be either boolean or a string.'};e=n.loadJS}n.cache&&c().ajaxSetup({cache:!0}),c().getScript((0,d.generateFilePath)(n.appid,"js",e)).fail((function(t,e,n){throw n}))}})).show()}),"html")}},appswebroots:I,Backbone:G,ContactsMenu:$,config:K,currentUser:nt,dialogs:vt,EventSource:xt,getCurrentUser:function(){return{uid:nt,displayName:et}},isUserAdmin:function(){return Tt},L10N:_t,_ajaxConnectionLostHandler:C,_processAjaxError:function(t){(0!==t.status||"abort"!==t.statusText&&"timeout"!==t.statusText&&!Jt._reloadCalled)&&(h.ZP.contains([302,303,307,401],t.status)&&Jt.currentUser?setTimeout((function(){if(!Jt._userIsNavigatingAway&&!Jt._reloadCalled){var t=0,e=setInterval((function(){v.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",5-t)),t>=5&&(clearInterval(e),Jt.reload()),t++}),1e3);Jt._reloadCalled=!0}}),100):0===t.status&&setTimeout((function(){Jt._userIsNavigatingAway||Jt._reloadCalled||Jt._ajaxConnectionLostHandler()}),100))},registerXHRForErrorProcessing:function(t){t.addEventListener&&(t.addEventListener("load",(function(){4===t.readyState&&(t.status>=200&&t.status<300||304===t.status||c()(document).trigger(new(c().Event)("ajaxError"),t))})),t.addEventListener("error",(function(){c()(document).trigger(new(c().Event)("ajaxError"),t)})))},getCapabilities:function(){return Pt.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,kt.getCapabilities)()},hideMenus:Ot,registerMenu:function(t,e,n,i){e.addClass("menu");var o="A"===t.prop("tagName")||"BUTTON"===t.prop("tagName");t.on(o?"click.menu":"click.menu keyup.menu",(function(o){o.preventDefault(),o.key&&"Enter"!==o.key||(e.is(Et)?Ot():(Et&&Ot(),!0===i&&e.parent().addClass("openedMenu"),t.attr("aria-expanded",!0),e.slideToggle(50,n),Et=e,Bt=t))}))},showMenu:function(t,e,n){e.is(Et)||(Ot(),Et=e,Bt=t,e.trigger(new(c().Event)("beforeShow")),e.show(),e.trigger(new(c().Event)("afterShow")),h.ZP.isFunction(n)&&n())},unregisterMenu:function(t,e){e.is(Et)&&Ot(),t.off("click.menu").removeClass("menutoggle"),e.removeClass("menu")},basename:H.EZ,encodePath:H.Ec,dirname:H.XX,isSamePath:H.Mg,joinPaths:H.RQ,getHost:function(){return window.location.host},getHostName:function(){return window.location.hostname},getPort:function(){return window.location.port},getProtocol:function(){return window.location.protocol.split(":")[0]},getCanonicalLocale:jt.aj,getLocale:jt.Kd,getLanguage:jt.G3,buildQueryString:function(t){return t?c().map(t,(function(t,e){var n=encodeURIComponent(e);return null!=t&&(n+="="+encodeURIComponent(t)),n})).join("&"):""},parseQueryString:function(t){var e,n,i,o={};if(!t)return null;(e=t.indexOf("?"))>=0&&(t=t.substr(e+1));for(var a=t.replace(/\+/g,"%20").split("&"),r=0;r=0?[s.substr(0,e),s.substr(e+1)]:[s]).length&&(i=decodeURIComponent(n[0]))&&(o[i]=n.length>1?decodeURIComponent(n[1]):null)}return o},msg:zt,Notification:v,PasswordConfirmation:Ut,Plugins:{_plugins:{},register:function(t,e){var n=this._plugins[t];n||(n=this._plugins[t]=[]),n.push(e)},getPlugins:function(t){return this._plugins[t]||[]},attach:function(t,e,n){for(var i=this.getPlugins(t),o=0;o0?" ("+n("core","{count} notification","{count} notifications",e.unread,{count:e.unread})+")":"")}}},mounted:function(){this.observer=new ResizeObserver(this.resize),this.observer.observe(this.$el),this.resize(),(0,u.Ld)("nextcloud:app-menu.refresh",this.setApps)},beforeDestroy:function(){this.observer.disconnect(),(0,u.r1)("nextcloud:app-menu.refresh",this.setApps)},methods:{setNavigationCounter:function(t,e){this.$set(this.apps[t],"unread",e)},setApps:function(t){var e=t.apps;this.apps=e},resize:function(){var t=this.$el.offsetWidth,e=Math.floor(t/50)-1;1==this.appList.length-e&&e--,e<1&&(e=0),this.appLimit=e}}},Ie=De,je=o(58626),_e={};_e.styleTagTransform=we(),_e.setAttributes=ge(),_e.insert=he().bind(null,"head"),_e.domAPI=pe(),_e.insertStyleElement=Ce(),de()(je.Z,_e),je.Z&&je.Z.locals&&je.Z.locals;var ze=(0,ke.Z)(Ie,(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"app-menu"},[e("ul",{staticClass:"app-menu-main"},t._l(t.mainAppList,(function(n){return e("li",{key:n.id,staticClass:"app-menu-entry",class:{"app-menu-entry__active":n.active},attrs:{"data-app-id":n.id}},[e("a",{class:{"has-unread":n.unread>0},attrs:{href:n.href,"aria-label":t.appLabel(n),title:n.name,"aria-current":!!n.active&&"page",target:n.target?"_blank":void 0,rel:n.target?"noopener noreferrer":void 0}},[e("img",{attrs:{src:n.icon,alt:""}}),t._v(" "),e("div",{staticClass:"app-menu-entry--label"},[t._v("\n\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t"),n.unread>0?e("span",{staticClass:"hidden-visually unread-counter"},[t._v(t._s(n.unread))]):t._e()])])])})),0),t._v(" "),e("NcActions",{staticClass:"app-menu-more",attrs:{"aria-label":t.t("core","More apps")}},t._l(t.popoverAppList,(function(n){return e("NcActionLink",{key:n.id,staticClass:"app-menu-popover-entry",attrs:{"aria-label":t.appLabel(n),"aria-current":!!n.active&&"page",href:n.href},scopedSlots:t._u([{key:"icon",fn:function(){return[e("div",{staticClass:"app-icon",class:{"has-unread":n.unread>0}},[e("img",{attrs:{src:n.icon,alt:""}})])]},proxy:!0}],null,!0)},[t._v("\n\t\t\t"+t._s(n.name)+"\n\t\t\t"),n.unread>0?e("span",{staticClass:"hidden-visually unread-counter"},[t._v(t._s(n.unread))]):t._e()])})),1)],1)}),[],!1,null,"b778f520",null).exports,Se=o(75925),Ne=o.n(Se),Ue=o(64192),Me=o.n(Ue),Le=(0,Vt.j)("core","versionHash",""),Fe={name:"UserMenuEntry",components:{NcLoadingIcon:Me()},props:{id:{type:String,required:!0},name:{type:String,required:!0},href:{type:String,required:!0},active:{type:Boolean,required:!0},icon:{type:String,required:!0}},data:function(){return{loading:!1}},computed:{cachedIcon:function(){return"".concat(this.icon,"?v=").concat(Le)}},methods:{handleClick:function(){this.loading=!0}}},Re=o(88951),Qe={};Qe.styleTagTransform=we(),Qe.setAttributes=ge(),Qe.insert=he().bind(null,"head"),Qe.domAPI=pe(),Qe.insertStyleElement=Ce(),de()(Re.Z,Qe),Re.Z&&Re.Z.locals&&Re.Z.locals;var Ge=(0,ke.Z)(Fe,(function(){var t=this,e=t._self._c;return e("li",{staticClass:"menu-entry",attrs:{id:t.id}},[t.href?e("a",{class:{active:t.active},attrs:{href:t.href},on:{click:function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.handleClick.apply(null,arguments)}}},[t.loading?e("NcLoadingIcon",{staticClass:"menu-entry__loading-icon",attrs:{size:18}}):e("img",{attrs:{src:t.cachedIcon,alt:""}}),t._v("\n\t\t"+t._s(t.name)+"\n\t")],1):e("button",[e("img",{attrs:{src:t.cachedIcon,alt:""}}),t._v("\n\t\t"+t._s(t.name)+"\n\t")])])}),[],!1,null,"6e59d13c",null),He=Ge.exports,Ke=(0,Vt.j)("core","settingsNavEntries",[]),Ze={name:"UserMenu",components:{NcAvatar:Ne(),NcHeaderMenu:le(),UserMenuEntry:He},data:function(){var t;return{settingsNavEntries:Ke,userId:null===(t=(0,Xt.ts)())||void 0===t?void 0:t.uid}},mounted:function(){(0,u.j8)("core:user-menu:mounted")}},Ye=o(71445),qe={};qe.styleTagTransform=we(),qe.setAttributes=ge(),qe.insert=he().bind(null,"head"),qe.domAPI=pe(),qe.insertStyleElement=Ce(),de()(Ye.Z,qe),Ye.Z&&Ye.Z.locals&&Ye.Z.locals;var We=(0,ke.Z)(Ze,(function(){var t=this,e=t._self._c;return e("NcHeaderMenu",{staticClass:"user-menu",attrs:{id:"user-menu","aria-label":t.t("core","Open settings menu")},scopedSlots:t._u([{key:"trigger",fn:function(){return[e("NcAvatar",{staticClass:"user-menu__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,user:t.userId}})]},proxy:!0}])},[t._v(" "),e("nav",{staticClass:"user-menu__nav",attrs:{"aria-label":t.t("core","Settings menu")}},[e("ul",t._l(t.settingsNavEntries,(function(n){return e("UserMenuEntry",t._b({key:n.id},"UserMenuEntry",n,!1))})),1)])])}),[],!1,null,"6a818bbc",null).exports,Je={zh:"zh-cn",zh_Hans:"zh-cn",zh_Hans_CN:"zh-cn",zh_Hans_HK:"zh-cn",zh_Hans_MO:"zh-cn",zh_Hans_SG:"zh-cn",zh_Hant:"zh-hk",zh_Hant_HK:"zh-hk",zh_Hant_MO:"zh-mo",zh_Hant_TW:"zh-tw"},Ve=Jt.getLocale();Object.prototype.hasOwnProperty.call(Je,Ve)&&(Ve=Je[Ve]),Nt().locale(Ve);var Xe,$e=function(){var t;if(c()(window).on("unload.main",(function(){Jt._unloadCalled=!0})),c()(window).on("beforeunload.main",(function(){setTimeout((function(){Jt._userIsNavigatingAway=!0,setTimeout((function(){Jt._unloadCalled||(Jt._userIsNavigatingAway=!1)}),1e4)}),1)})),c()(document).on("ajaxError.main",(function(t,e,n){n&&n.allowAuthErrors||Jt._processAjaxError(e)})),function(){if(function(){try{ne=(0,Vt.j)("core","config")}catch(t){ne=Jt.config}}(),function(){if(ne.auto_logout&&(0,Xt.ts)()){var t=Date.now();window.addEventListener("mousemove",(function(e){t=Date.now(),localStorage.setItem("lastActive",t)})),window.addEventListener("touchstart",(function(e){t=Date.now(),localStorage.setItem("lastActive",t)})),window.addEventListener("storage",(function(e){"lastActive"===e.key&&(t=e.newValue)}));var e=0;e=setInterval((function(){var n=Date.now()-1e3*ne.session_lifetime;if(t');var n=!1;e.on("animating",(function(){n=!0})),e.on("animated",(function(){n=!1})),e.on("start",(function(){n=!0})),e.on("end",(function(){n=!1}));var i=e.open,o=e.close,a=function(){n||"closed"!==e.state().state||i("left")},r=function(){n||"closed"===e.state().state||o()};window.TESTING||(e.open=function(){h.ZP.defer(a)},e.close=function(){h.ZP.defer(r)}),c()("#app-navigation-toggle").click((function(t){"left"!==e.state().state&&e.open()})),c()("#app-navigation-toggle").keypress((function(t){"left"===e.state().state?e.close():e.open()})),c()("#app-navigation").delegate("a, :button","click",(function(t){var n=c()(t.target);n.is(".app-navigation-noclose")||n.closest(".app-navigation-noclose").length||n.is(".app-navigation-entry-utils-menu-button")||n.closest(".app-navigation-entry-utils-menu-button").length||n.is(".add-new")||n.closest(".add-new").length||n.is("#app-settings")||n.closest("#app-settings").length||e.close()}));var s=!1,l=!0,A=!1;Jt.allowNavigationBarSlideGesture=function(){l=!0,A&&(e.enable(),s=!0,A=!1)},Jt.disallowNavigationBarSlideGesture=function(){l=!1,s&&(e.disable(!0),s=!1,A=!0)};var p=function(){c()(window).width()>1024?(e.close(),e.disable(),s=!1,A=!1):l?(e.enable(),s=!0,A=!1):A=!0};c()(window).resize(h.ZP.debounce(p,250)),p()}setInterval((function(){c()(".live-relative-timestamp").each((function(){var t=parseInt(c()(this).attr("data-timestamp"),10);c()(this).text(Nt()(t).fromNow())}))}),3e4),Ut.init()},tn=(o(49226),o(41704),o(78312),o(22634),o(3682)),en=o(25108);c().prototype.tooltip=(Xe=c().prototype.tooltip,function(t){try{return Xe.call(this,t)}catch(e){if(e instanceof TypeError&&"destroy"===t)return void 0===window.TESTING&&en.error("Deprecated call $.tooltip('destroy') has been deprecated and should be removed"),Xe.call(this,"dispose");if(e instanceof TypeError&&"fixTitle"===t)return void 0===window.TESTING&&en.error("Deprecated call $.tooltip('fixTitle') has been deprecated and should be removed"),Xe.call(this,"_fixTitle")}});var nn=o(42152),on=o.n(nn),an=o(99560),rn=o.n(an),sn=(o(18553),o(34140),o(75693),o(99205),o(38554),/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/gi);function ln(t){return this.formatLinksRich(t)}function cn(t){return this.formatLinksPlain(t)}function un(t){return t.replace(sn,(function(t,e,n,i,o){var a=i;return n?"http://"===n&&(a=n+i):n="https://",e+''+a+""+o}))}function dn(t){var e=c()("").html(t);return e.find("a").each((function(){var t=c()(this);t.html(t.attr("href"))})),e.html()}var An=o(25108);function pn(e){var n=(e=e||{}).dismiss||{};c().ajax({type:"GET",url:e.url||(0,d.generateOcsUrl)("core/whatsnew?format=json"),success:e.success||function(e,i,o){!function(e,n,i,o){if(An.debug("querying Whats New data was successful: "+n),An.debug(e),200===i.status){var a,r,s,l,c=document.createElement("div");c.classList.add("popovermenu","open","whatsNewPopover","menu-left");var u=document.createElement("ul");for(var d in a=document.createElement("li"),(r=document.createElement("span")).className="menuitem",(s=document.createElement("span")).innerText=t("core","New in")+" "+e.ocs.data.product,s.className="caption",r.appendChild(s),(l=document.createElement("span")).className="icon-close",l.onclick=function(){fn(e.ocs.data.version,o)},r.appendChild(l),a.appendChild(r),u.appendChild(a),e.ocs.data.whatsNew.regular){var A=e.ocs.data.whatsNew.regular[d];a=document.createElement("li"),(r=document.createElement("span")).className="menuitem",(l=document.createElement("span")).className="icon-checkmark",r.appendChild(l),(s=document.createElement("p")).innerHTML=h.ZP.escape(A),r.appendChild(s),a.appendChild(r),u.appendChild(a)}h.ZP.isUndefined(e.ocs.data.changelogURL)||(a=document.createElement("li"),(r=document.createElement("a")).href=e.ocs.data.changelogURL,r.rel="noreferrer noopener",r.target="_blank",(l=document.createElement("span")).className="icon-link",r.appendChild(l),(s=document.createElement("span")).innerText=t("core","View changelog"),r.appendChild(s),a.appendChild(r),u.appendChild(a)),c.appendChild(u),document.body.appendChild(c)}}(e,i,o,n)},error:e.error||hn})}function fn(t,e){e=e||{},c().ajax({type:"POST",url:e.url||(0,d.generateOcsUrl)("core/whatsnew"),data:{version:encodeURIComponent(t)},success:e.success||mn,error:e.error||gn}),c()(".whatsNewPopover").remove()}function hn(t,e,n){An.debug("querying Whats New Data resulted in an error: "+e+n),An.debug(t)}function mn(t){}function gn(t){An.debug("dismissing Whats New data resulted in an error: "+t)}var vn,Cn,bn,wn={disableKeyboardShortcuts:function(){return(0,Vt.j)("theming","shortcutsDisabled",!1)},setPageHeading:function(t){var e=document.getElementById("page-heading-level-1");e&&(e.textContent=t)}},yn=o(95573),xn=o.n(yn),kn={},Pn={},En={},Bn={loadScript:function(t,e){var n=t+e;return Object.prototype.hasOwnProperty.call(Pn,n)?Promise.resolve():(Pn[n]=!0,new Promise((function(n,i){var o=OC.filePath(t,"js",e),a=document.createElement("script");a.src=o,a.setAttribute("nonce",btoa(OC.requestToken)),a.onload=function(){return n()},a.onerror=function(){return i(new Error("Failed to load script from ".concat(o)))},document.head.appendChild(a)})))},loadStylesheet:function(t,e){var n=t+e;return Object.prototype.hasOwnProperty.call(En,n)?Promise.resolve():(En[n]=!0,new Promise((function(n,i){var o=OC.filePath(t,"css",e),a=document.createElement("link");a.href=o,a.type="text/css",a.rel="stylesheet",a.onload=function(){return n()},a.onerror=function(){return i(new Error("Failed to load stylesheet from ".concat(o)))},document.head.appendChild(a)})))}},On={success:function(t,e){return(0,m.s$)(t,e)},warning:function(t,e){return(0,m.K2)(t,e)},error:function(t,e){return(0,m.x2)(t,e)},info:function(t,e){return(0,m.JQ)(t,e)},message:function(t,e){return(0,m.PV)(t,e)}},Tn={Accessibility:wn,AppConfig:a,Collaboration:{registerType:function(t,e){kn[t]=e},trigger:function(t){return kn[t].action()},getTypes:function(){return Object.keys(kn)},getIcon:function(t){return kn[t].typeIconClass||""},getLabel:function(t){return xn()(kn[t].typeString||t)},getLink:function(t,e){return void 0!==kn[t]?kn[t].link(e):""}},Comments:r,InitialState:{loadState:Vt.j},Loader:Bn,Toast:On,WhatsNew:s},Dn=o(25108),In=function(){void 0===window.TESTING&&Dn.warn.apply(Dn,arguments)},jn=function(t,e,n){(Array.isArray(t)?t:[t]).forEach((function(t){void 0!==window[t]&&delete window[t],Object.defineProperty(window,t,{get:function(){return In(n?"".concat(t," is deprecated: ").concat(n):"".concat(t," is deprecated")),e()}})}))};window._=h.ZP,jn(["$","jQuery"],(function(){return c()}),"The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own."),jn("autosize",(function(){return tn.Z}),"please ship your own, this will be removed in Nextcloud 20"),jn("Backbone",(function(){return z()}),"please ship your own, this will be removed in Nextcloud 20"),jn(["Clipboard","ClipboardJS"],(function(){return on()}),"please ship your own, this will be removed in Nextcloud 20"),window.dav=S.dav,jn("Handlebars",(function(){return It()}),"please ship your own, this will be removed in Nextcloud 20"),jn("md5",(function(){return rn()}),"please ship your own, this will be removed in Nextcloud 20"),jn("moment",(function(){return Nt()}),"please ship your own, this will be removed in Nextcloud 20"),window.OC=Jt,jn("initCore",(function(){return $e}),"this is an internal function"),jn("oc_appswebroots",(function(){return Jt.appswebroots}),"use OC.appswebroots instead, this will be removed in Nextcloud 20"),jn("oc_config",(function(){return Jt.config}),"use OC.config instead, this will be removed in Nextcloud 20"),jn("oc_current_user",(function(){return Jt.getCurrentUser().uid}),"use OC.getCurrentUser().uid instead, this will be removed in Nextcloud 20"),jn("oc_debug",(function(){return Jt.debug}),"use OC.debug instead, this will be removed in Nextcloud 20"),jn("oc_defaults",(function(){return Jt.theme}),"use OC.theme instead, this will be removed in Nextcloud 20"),jn("oc_isadmin",Jt.isUserAdmin,"use OC.isUserAdmin() instead, this will be removed in Nextcloud 20"),jn("oc_requesttoken",(function(){return bt()}),"use OC.requestToken instead, this will be removed in Nextcloud 20"),jn("oc_webroot",(function(){return Jt.webroot}),"use OC.getRootPath() instead, this will be removed in Nextcloud 20"),jn("OCDialogs",(function(){return Jt.dialogs}),"use OC.dialogs instead, this will be removed in Nextcloud 20"),window.OCP=Tn,window.OCA=st,c().fn.select2=(vn=c().fn.select2,"select2",19,Cn=vn,bn=function(){return In("The ".concat("select2"," library is deprecated! It will be removed in nextcloud ").concat(19,".")),Cn.apply(this,arguments)},Object.assign(bn,Cn),bn),window.t=h.ZP.bind(Jt.L10N.translate,Jt.L10N),window.n=h.ZP.bind(Jt.L10N.translatePlural,Jt.L10N),c().fn.avatar=function(t,e,n,i,o,a){var r=function(t){t.imageplaceholder("?"),t.css("background-color","#b9b9b9")};if(void 0!==t&&(t=String(t)),void 0!==a&&(a=String(a)),void 0===e&&(e=this.height()>0?this.height():this.data("size")>0?this.data("size"):64),this.height(e),this.width(e),void 0===t){if(void 0===this.data("user"))return void r(this);t=this.data("user")}t=String(t).replace(/\//g,"");var s,l=this;s=t===Jt.getCurrentUser().uid?Jt.generateUrl("/avatar/{user}/{size}?v={version}",{user:t,size:Math.ceil(e*window.devicePixelRatio),version:oc_userconfig.avatar.version}):Jt.generateUrl("/avatar/{user}/{size}",{user:t,size:Math.ceil(e*window.devicePixelRatio)});var c=new Image;c.onload=function(){l.clearimageplaceholder(),l.append(c),"function"==typeof o&&o()},c.onerror=function(){l.clearimageplaceholder(),void 0!==a?l.imageplaceholder(t,a):r(l),"function"==typeof o&&o()},e<32?l.addClass("icon-loading-small"):l.addClass("icon-loading"),c.width=e,c.height=e,c.src=s,c.alt=""};var _n=o(47078);c().fn.contactsMenu=function(e,n,i){if(-1!==[0,4,6].indexOf(n)){var o=this;i.append('