');if(n){var a=n.split("/");c().each(a,(function(t,e){if(""===(e=a.pop()))return!1;o.prepend(i.octemplate({dir:a.join("/")+"/"+e,name:e}))}))}i.octemplate({dir:"",name:t("core","Home"),classList:"icon-home"},{escapeFunction:null}).addClass("crumb svg crumbhome").prependTo(o),this.$dirTree.find("> nav").prepend(o)},_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)}}},mt=ft,gt=(At=document,pt=u.j8,ht=At.getElementsByTagName("head")[0].getAttribute("data-requesttoken"),{getToken:function(){return ht},setToken:function(t){pt("csrf-token-update",{token:ht=t})}}),vt=gt.getToken,Ct=gt.setToken,bt=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(vt()),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=f.ZP.extend(o,n),r=this;this.requiresPasswordConfirmation()&&qt.dialogs.prompt(a.text,a.title,(function(t,e){t&&""!==e?r._confirmPassword(e,a):f.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)}t.find(".oc-dialog-buttonrow").addClass("aside");var n=t.find("button");n.eq(0).hide(),n.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,f.ZP.isFunction(i.callback)&&i.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),qt.PasswordConfirmation.requirePasswordConfirmation(i.callback,n)}})}},St=window._theme||{},Ut={_handlers:[],_pushState:function(t,e,n){var i;if(i="string"==typeof t?t:qt.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=qt.parseQueryString(this._decodeQuery(e))),(t=f.ZP.extend(t||{},qt.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,f.ZP.isString(e)?e=qt.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 Rt={History:Ut,humanFileSize:Mt.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&&Lt.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),e=e||"LLL",zt()(t).format(e)},relativeModifiedDate:function(e){void 0===window.TESTING&&Lt.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");var n=zt()().diff(zt()(e));return n>=0&&n<45e3?t("core","seconds ago"):zt()(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=Ft(t),o=Ft(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],qt.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(G.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===h.indexOf(n)&&(h.push(n),document.createStyleSheet?document.createStyleSheet(n):(e=c()(''),c()("head").append(e)))},AppConfig:B,appConfig:E,appSettings:function(e){if(O.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:T,Backbone:R,ContactsMenu:V,config:G,currentUser:tt,dialogs:mt,EventSource:wt,getCurrentUser:function(){return{uid:tt,displayName:$}},isUserAdmin:function(){return Bt},L10N:It,_ajaxConnectionLostHandler:C,_processAjaxError:function(t){(0!==t.status||"abort"!==t.statusText&&"timeout"!==t.statusText&&!qt._reloadCalled)&&(f.ZP.contains([302,303,307,401],t.status)&&qt.currentUser?setTimeout((function(){if(!qt._userIsNavigatingAway&&!qt._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),qt.reload()),t++}),1e3);qt._reloadCalled=!0}}),100):0===t.status&&setTimeout((function(){qt._userIsNavigatingAway||qt._reloadCalled||qt._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 xt.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,yt.getCapabilities)()},hideMenus:Et,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(kt)?Et():(kt&&Et(),!0===i&&e.parent().addClass("openedMenu"),t.attr("aria-expanded",!0),e.slideToggle(50,n),kt=e,Pt=t))}))},showMenu:function(t,e,n){e.is(kt)||(Et(),kt=e,Pt=t,e.trigger(new(c().Event)("beforeShow")),e.show(),e.trigger(new(c().Event)("afterShow")),f.ZP.isFunction(n)&&n())},unregisterMenu:function(t,e){e.is(kt)&&Et(),t.off("click.menu").removeClass("menutoggle"),e.removeClass("menu")},basename:Q.EZ,encodePath:Q.Ec,dirname:Q.XX,isSamePath:Q.Mg,joinPaths:Q.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:Dt.aj,getLocale:Dt.Kd,getLanguage:Dt.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:jt,Notification:v,PasswordConfirmation:Nt,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}}},Te=o(24149),De={};De.styleTagTransform=Ce(),De.setAttributes=fe(),De.insert=pe().bind(null,"head"),De.domAPI=de(),De.insertStyleElement=ge(),ce()(Te.Z,De),Te.Z&&Te.Z.locals&&Te.Z.locals;var Ie=(0,ye.Z)(Oe,(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,"253d6665",null).exports,je=o(75925),_e=o.n(je),ze=o(64192),Ne=o.n(ze),Se=(0,Wt.j)("core","versionHash",""),Ue={name:"UserMenuEntry",components:{NcLoadingIcon:Ne()},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(Se)}},methods:{handleClick:function(){this.loading=!0}}},Me=o(88951),Le={};Le.styleTagTransform=Ce(),Le.setAttributes=fe(),Le.insert=pe().bind(null,"head"),Le.domAPI=de(),Le.insertStyleElement=ge(),ce()(Me.Z,Le),Me.Z&&Me.Z.locals&&Me.Z.locals;var Fe=(0,ye.Z)(Ue,(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),Re=Fe.exports,Qe=(0,Wt.j)("core","settingsNavEntries",[]),Ge={name:"UserMenu",components:{NcAvatar:_e(),NcHeaderMenu:re(),UserMenuEntry:Re},data:function(){var t;return{settingsNavEntries:Qe,userId:null===(t=(0,Jt.ts)())||void 0===t?void 0:t.uid}},mounted:function(){(0,u.j8)("core:user-menu:mounted")}},He=o(71445),Ke={};Ke.styleTagTransform=Ce(),Ke.setAttributes=fe(),Ke.insert=pe().bind(null,"head"),Ke.domAPI=de(),Ke.insertStyleElement=ge(),ce()(He.Z,Ke),He.Z&&He.Z.locals&&He.Z.locals;var Ze=(0,ye.Z)(Ge,(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,Ye={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"},qe=qt.getLocale();Object.prototype.hasOwnProperty.call(Ye,qe)&&(qe=Ye[qe]),zt().locale(qe);var We,Je=function(){var t;if(c()(window).on("unload.main",(function(){qt._unloadCalled=!0})),c()(window).on("beforeunload.main",(function(){setTimeout((function(){qt._userIsNavigatingAway=!0,setTimeout((function(){qt._unloadCalled||(qt._userIsNavigatingAway=!1)}),1e4)}),1)})),c()(document).on("ajaxError.main",(function(t,e,n){n&&n.allowAuthErrors||qt._processAjaxError(e)})),function(){if(function(){try{te=(0,Wt.j)("core","config")}catch(t){te=qt.config}}(),function(){if(te.auto_logout&&(0,Jt.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)})),setInterval((function(){var e=Date.now()-1e3*te.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(){f.ZP.defer(a)},e.close=function(){f.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;qt.allowNavigationBarSlideGesture=function(){l=!0,A&&(e.enable(),s=!0,A=!1)},qt.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(f.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(zt()(t).fromNow())}))}),3e4),Nt.init()},Ve=(o(49226),o(41704),o(78312),o(22634),o(3682)),Xe=o(25108);c().prototype.tooltip=(We=c().prototype.tooltip,function(t){try{return We.call(this,t)}catch(e){if(e instanceof TypeError&&"destroy"===t)return void 0===window.TESTING&&Xe.error("Deprecated call $.tooltip('destroy') has been deprecated and should be removed"),We.call(this,"dispose");if(e instanceof TypeError&&"fixTitle"===t)return void 0===window.TESTING&&Xe.error("Deprecated call $.tooltip('fixTitle') has been deprecated and should be removed"),We.call(this,"_fixTitle")}});var $e=o(42152),tn=o.n($e),en=o(99560),nn=o.n(en),on=(o(18553),o(34140),o(75693),o(99205),o(38554),/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/gi);function an(t){return this.formatLinksRich(t)}function rn(t){return this.formatLinksPlain(t)}function sn(t){return t.replace(on,(function(t,e,n,i,o){var a=i;return n?"http://"===n&&(a=n+i):n="https://",e+''+a+""+o}))}function ln(t){var e=c()("").html(t);return e.find("a").each((function(){var t=c()(this);t.html(t.attr("href"))})),e.html()}var cn=o(25108);function un(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(cn.debug("querying Whats New data was successful: "+n),cn.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(){dn(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=f.ZP.escape(A),r.appendChild(s),a.appendChild(r),u.appendChild(a)}f.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||An})}function dn(t,e){e=e||{},c().ajax({type:"POST",url:e.url||(0,d.generateOcsUrl)("core/whatsnew"),data:{version:encodeURIComponent(t)},success:e.success||pn,error:e.error||hn}),c()(".whatsNewPopover").remove()}function An(t,e,n){cn.debug("querying Whats New Data resulted in an error: "+e+n),cn.debug(t)}function pn(t){}function hn(t){cn.debug("dismissing Whats New data resulted in an error: "+t)}var fn,mn,gn,vn,Cn={disableKeyboardShortcuts:function(){return(0,Wt.j)("theming","shortcutsDisabled",!1)},setPageHeading:function(t){var e=document.getElementById("page-heading-level-1");e&&(e.textContent=t)}},bn=o(95573),wn=o.n(bn),yn={},xn={},kn={},Pn={loadScript:function(t,e){var n=t+e;return Object.prototype.hasOwnProperty.call(xn,n)?Promise.resolve():(xn[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(kn,n)?Promise.resolve():(kn[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)})))}},En={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)}},Bn={Accessibility:Cn,AppConfig:a,Collaboration:{registerType:function(t,e){yn[t]=e},trigger:function(t){return yn[t].action()},getTypes:function(){return Object.keys(yn)},getIcon:function(t){return yn[t].typeIconClass||""},getLabel:function(t){return wn()(yn[t].typeString||t)},getLink:function(t,e){return void 0!==yn[t]?yn[t].link(e):""}},Comments:r,InitialState:{loadState:Wt.j},Loader:Pn,Toast:En,WhatsNew:s},On=o(25108),Tn=function(){void 0===window.TESTING&&On.warn.apply(On,arguments)},Dn=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 Tn(n?"".concat(t," is deprecated: ").concat(n):"".concat(t," is deprecated")),e()}})}))};window._=f.ZP,Dn(["$","jQuery"],(function(){return c()}),"The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own."),Dn("autosize",(function(){return Ve.Z}),"please ship your own, this will be removed in Nextcloud 20"),Dn("Backbone",(function(){return I()}),"please ship your own, this will be removed in Nextcloud 20"),Dn(["Clipboard","ClipboardJS"],(function(){return tn()}),"please ship your own, this will be removed in Nextcloud 20"),window.dav=j.dav,Dn("Handlebars",(function(){return Tt()}),"please ship your own, this will be removed in Nextcloud 20"),Dn("md5",(function(){return nn()}),"please ship your own, this will be removed in Nextcloud 20"),Dn("moment",(function(){return zt()}),"please ship your own, this will be removed in Nextcloud 20"),window.OC=qt,Dn("initCore",(function(){return Je}),"this is an internal function"),Dn("oc_appswebroots",(function(){return qt.appswebroots}),"use OC.appswebroots instead, this will be removed in Nextcloud 20"),Dn("oc_config",(function(){return qt.config}),"use OC.config instead, this will be removed in Nextcloud 20"),Dn("oc_current_user",(function(){return qt.getCurrentUser().uid}),"use OC.getCurrentUser().uid instead, this will be removed in Nextcloud 20"),Dn("oc_debug",(function(){return qt.debug}),"use OC.debug instead, this will be removed in Nextcloud 20"),Dn("oc_defaults",(function(){return qt.theme}),"use OC.theme instead, this will be removed in Nextcloud 20"),Dn("oc_isadmin",qt.isUserAdmin,"use OC.isUserAdmin() instead, this will be removed in Nextcloud 20"),Dn("oc_requesttoken",(function(){return vt()}),"use OC.requestToken instead, this will be removed in Nextcloud 20"),Dn("oc_webroot",(function(){return qt.webroot}),"use OC.getRootPath() instead, this will be removed in Nextcloud 20"),Dn("OCDialogs",(function(){return qt.dialogs}),"use OC.dialogs instead, this will be removed in Nextcloud 20"),window.OCP=Bn,window.OCA=at,c().fn.select2=(fn=c().fn.select2,mn="select2",19,gn=fn,vn=function(){return Tn("The ".concat(mn," library is deprecated! It will be removed in nextcloud ").concat(19,".")),gn.apply(this,arguments)},Object.assign(vn,gn),vn),window.t=f.ZP.bind(qt.L10N.translate,qt.L10N),window.n=f.ZP.bind(qt.L10N.translatePlural,qt.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===qt.getCurrentUser().uid?qt.generateUrl("/avatar/{user}/{size}?v={version}",{user:t,size:Math.ceil(e*window.devicePixelRatio),version:oc_userconfig.avatar.version}):qt.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 In=o(47078);c().fn.contactsMenu=function(e,n,i){if(-1!==[0,4,6].indexOf(n)){var o=this;i.append('