').addClass("crumb");if(n){var i=n.split("/");c().each(i,(function(t,n){if(""===(n=i.pop()))return!1;e.$dirTree.prepend(o.octemplate({dir:i.join("/")+"/"+n,name:n}))}))}o.octemplate({dir:"",name:""},{escapeFunction:null}).prependTo(this.$dirTree)},_handleTreeListSelect:function(t,e){var n=t.data,o=c()(t.target).closest(".crumb").data("dir");n._fillFilePicker(o,e);var i=t.target.closest(".oc-dialog"),a=c()(".primary",i);this._changeButtonsText(e,o.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 o=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"),o.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")?o.prop("disabled",!1):o.prop("disabled",!0))},_changeButtonsText:function(e,n){var o=""===n?t("core","Copy"):t("core","Copy to {folder}",{folder:n}),i=""===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(o);break;case this.FILEPICKER_TYPE_MOVE:a.text(i);break;case this.FILEPICKER_TYPE_COPY_MOVE:a.eq(0).text(o),a.eq(1).text(i)}}},dt=ut,At=(st=document,lt=u.j8,ct=st.getElementsByTagName("head")[0].getAttribute("data-requesttoken"),{getToken:function(){return ct},setToken:function(t){lt("csrf-token-update",{token:ct=t})}}),pt=At.getToken,ft=At.setToken,ht=function t(e,n){var o,i,a="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},n)for(o in n)a+=o+"="+encodeURIComponent(n[o])+"&";if(a+="requesttoken="+encodeURIComponent(pt()),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(),i="&",-1===e.indexOf("?")&&(i="?"),this.iframe.attr("src",e+i+"fallback=true&fallback_id="+t.iframeCount+"&"+a),c()("body").append(this.iframe),this.useFallBack=!0,t.iframeCount++}else i="&",-1===e.indexOf("?")&&(i="?"),this.source=new EventSource(e+i+a),this.source.onmessage=function(t){for(var e=0;e18e5},requirePasswordConfirmation:function(e,n,o){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:""},a=f.ZP.extend(i,n),r=this;this.requiresPasswordConfirmation()&&Lt.dialogs.prompt(a.text,a.title,(function(t,e){t&&""!==e?r._confirmPassword(e,a):f.ZP.isFunction(o)&&o()}),!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 o=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(o.callback)&&o.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),Lt.PasswordConfirmation.requirePasswordConfirmation(o.callback,n)}})}},Tt=window._theme||{},It={_handlers:[],_pushState:function(t,e,n){var o;if(o="string"==typeof t?t:Lt.buildQueryString(t),window.history.pushState){if(e=e||location.pathname+"?"+o,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"]'),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=Lt.parseQueryString(this._decodeQuery(e))),(t=f.ZP.extend(t||{},Lt.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=Lt.parseQueryString(e):e||(e=this.parseUrlQuery()||{});for(var n=0;n="0"&&e<="9";r!==a&&(n[++i]="",a=r),n[i]+=e,o++}return n}var _t={History:It,humanFileSize:i(91770).sS,computerFileSize:function(t){if("string"!=typeof t)return null;var e=t.toLowerCase().trim(),n=null,o=e.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===o?null:(n=parseFloat(e),isFinite(n)?(o[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[o[5]]),n=Math.round(n)):null)},formatDate:function(t,e){return void 0===window.TESTING&&console.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),e=e||"LLL",Ot()(t).format(e)},relativeModifiedDate:function(e){void 0===window.TESTING&&console.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");var n=Ot()().diff(Ot()(e));return n>=0&&n<45e3?t("core","seconds ago"):Ot()(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 o=t.offsetWidth;return n===o&&(o=e.clientWidth),document.body.removeChild(e),this._scrollBarWidth=n-o,this._scrollBarWidth},stripTime:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},naturalSortCompare:function(t,e){var n,o=jt(t),i=jt(e);for(n=0;o[n]&&i[n];n++)if(o[n]!==i[n]){var a=Number(o[n]),r=Number(i[n]);return a==o[n]&&r==i[n]?a-r:o[n].localeCompare(i[n],Lt.getLanguage())}return o.length-i.length},waitFor:function(t,e){!function n(){!0!==t()&&setTimeout(n,e)}()},isCookieSetToValue:function(t,e){for(var n=document.cookie.split(";"),o=0;o!$_",fileIsBlacklisted:function(t){return!!t.match(R.blacklist_files_regex)},addScript:function(t,e,n){var o;console.warn("OC.addScript is deprecated, use OCP.Loader.loadScript instead");var i=(0,d.generateFilePath)(t,"js",e+".js");return A[i]?n&&n():(o=c().Deferred(),c().getScript(i,(function(){return o.resolve()})),A[i]=o),A[i]},addStyle:function(t,e){console.warn("OC.addStyle is deprecated, use OCP.Loader.loadStylesheet instead");var n=(0,d.generateFilePath)(t,"css",e+".css");-1===p.indexOf(n)&&(p.push(n),document.createStyleSheet?document.createStyleSheet(n):(e=c()(''),c()("head").append(e)))},Apps:C,AppConfig:B,appConfig:E,appSettings:function(e){if(console.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 o=c()("#appsettings");if(0===o.length)throw{name:"MissingDOMElement",message:'There has be be an element with id "appsettings" for the popup to show.'};var i=c()("#appsettings_popup");if(0===i.length&&(c()("body").prepend(''),(i=c()("#appsettings_popup")).addClass(o.hasClass("topright")?"topright":"bottomleft")),i.is(":visible"))i.hide().remove();else{var a=o.hasClass("topright")?"up":"left";c().get((0,d.generateFilePath)(n.appid,"",n.scriptName),(function(e){i.html(e).ready((function(){if(i.prepend('
'+t("core","Settings")+'
').show(),i.find(".close").bind("click",(function(){i.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:O,Backbone:L,ContactsMenu:q,config:R,currentUser:V,dialogs:dt,EventSource:mt,getCurrentUser:function(){return{uid:V,displayName:J}},isUserAdmin:function(){return wt},L10N:Pt,_ajaxConnectionLostHandler:g,_processAjaxError:function(t){(0!==t.status||"abort"!==t.statusText&&"timeout"!==t.statusText&&!Lt._reloadCalled)&&(f.ZP.contains([302,303,307,401],t.status)&&Lt.currentUser?setTimeout((function(){if(!Lt._userIsNavigatingAway&&!Lt._reloadCalled){var t=0,e=setInterval((function(){m.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",5-t)),t>=5&&(clearInterval(e),Lt.reload()),t++}),1e3);Lt._reloadCalled=!0}}),100):0===t.status&&setTimeout((function(){Lt._userIsNavigatingAway||Lt._reloadCalled||Lt._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 console.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,gt.getCapabilities)()},hideMenus:bt,registerMenu:function(t,e,n,o){e.addClass("menu");var i="A"===t.prop("tagName")||"BUTTON"===t.prop("tagName");t.on(i?"click.menu":"click.menu keyup.menu",(function(i){i.preventDefault(),i.key&&"Enter"!==i.key||(e.is(vt)?bt():(vt&&bt(),!0===o&&e.parent().addClass("openedMenu"),t.attr("aria-expanded",!0),e.slideToggle(50,n),vt=e,Ct=t))}))},showMenu:function(t,e,n){e.is(vt)||(bt(),vt=e,Ct=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(vt)&&bt(),t.off("click.menu").removeClass("menutoggle"),e.removeClass("menu")},basename:F.EZ,encodePath:F.Ec,dirname:F.XX,isSamePath:F.Mg,joinPaths:F.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:kt.aj,getLocale:kt.Kd,getLanguage:kt.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,o,i={};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&&(o=decodeURIComponent(n[0]))&&(i[o]=n.length>1?decodeURIComponent(n[1]):null)}return i},msg:Et,Notification:m,PasswordConfirmation:Dt,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 o=this.getPlugins(t),i=0;i0?" ("+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}}},Ce=ve,be=i(9572),we={};we.styleTagTransform=ce(),we.setAttributes=ae(),we.insert=oe().bind(null,"head"),we.domAPI=ee(),we.insertStyleElement=se(),$t()(be.Z,we),be.Z&&be.Z.locals&&be.Z.locals;var ye=(0,Ae.Z)(Ce,(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,"44a795f6",null).exports,xe=i(75925),ke=i.n(xe),Pe=i(64192),Ee=i.n(Pe),Be=(0,Ft.j)("core","versionHash",""),Oe={name:"UserMenuEntry",components:{NcLoadingIcon:Ee()},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(Be)}},methods:{handleClick:function(){this.loading=!0}}},De=i(88951),Te={};Te.styleTagTransform=ce(),Te.setAttributes=ae(),Te.insert=oe().bind(null,"head"),Te.domAPI=ee(),Te.insertStyleElement=se(),$t()(De.Z,Te),De.Z&&De.Z.locals&&De.Z.locals;var Ie=(0,Ae.Z)(Oe,(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),je=Ie.exports,_e=(0,Ft.j)("core","settingsNavEntries",[]),ze={name:"UserMenu",components:{NcAvatar:ke(),NcHeaderMenu:Jt(),UserMenuEntry:je},data:function(){var t;return{settingsNavEntries:_e,userId:null===(t=(0,Rt.ts)())||void 0===t?void 0:t.uid}},mounted:function(){(0,u.j8)("core:user-menu:mounted")}},Se=i(71445),Ne={};Ne.styleTagTransform=ce(),Ne.setAttributes=ae(),Ne.insert=oe().bind(null,"head"),Ne.domAPI=ee(),Ne.insertStyleElement=se(),$t()(Se.Z,Ne),Se.Z&&Se.Z.locals&&Se.Z.locals;var Ue=(0,Ae.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,Me={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"},Le=Lt.getLocale();Object.prototype.hasOwnProperty.call(Me,Le)&&(Le=Me[Le]),Ot().locale(Le);var Fe,Re=function(){var t;if(c()(window).on("unload.main",(function(){Lt._unloadCalled=!0})),c()(window).on("beforeunload.main",(function(){setTimeout((function(){Lt._userIsNavigatingAway=!0,setTimeout((function(){Lt._unloadCalled||(Lt._userIsNavigatingAway=!1)}),1e4)}),1)})),c()(document).on("ajaxError.main",(function(t,e,n){n&&n.allowAuthErrors||Lt._processAjaxError(e)})),function(){if(function(){try{Ht=(0,Ft.j)("core","config")}catch(t){Ht=Lt.config}}(),function(){if(Ht.auto_logout&&(0,Rt.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*Ht.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 o=e.open,i=e.close,a=function(){n||"closed"!==e.state().state||o("left")},r=function(){n||"closed"===e.state().state||i()};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;Lt.allowNavigationBarSlideGesture=function(){l=!0,A&&(e.enable(),s=!0,A=!1)},Lt.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(Ot()(t).fromNow())}))}),3e4),Dt.init()},Qe=(i(49226),i(41704),i(78312),i(22634),i(3682));c().prototype.tooltip=(Fe=c().prototype.tooltip,function(t){try{return Fe.call(this,t)}catch(e){if(e instanceof TypeError&&"destroy"===t)return void 0===window.TESTING&&console.error("Deprecated call $.tooltip('destroy') has been deprecated and should be removed"),Fe.call(this,"dispose");if(e instanceof TypeError&&"fixTitle"===t)return void 0===window.TESTING&&console.error("Deprecated call $.tooltip('fixTitle') has been deprecated and should be removed"),Fe.call(this,"_fixTitle")}});var Ge=i(42152),He=i.n(Ge),Ke=i(99560),Ze=i.n(Ke),Ye=(i(18553),i(34140),i(75693),i(99205),i(38554),/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/gi);function qe(t){return this.formatLinksRich(t)}function We(t){return this.formatLinksPlain(t)}function Je(t){return t.replace(Ye,(function(t,e,n,o,i){var a=o;return n?"http://"===n&&(a=n+o):n="https://",e+''+a+""+i}))}function Ve(t){var e=c()("").html(t);return e.find("a").each((function(){var t=c()(this);t.html(t.attr("href"))})),e.html()}function Xe(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,o,i){!function(e,n,o,i){if(console.debug("querying Whats New data was successful: "+n),console.debug(e),200===o.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(){$e(e.ocs.data.version,i)},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,o,i,n)},error:e.error||tn})}function $e(t,e){e=e||{},c().ajax({type:"POST",url:e.url||(0,d.generateOcsUrl)("core/whatsnew"),data:{version:encodeURIComponent(t)},success:e.success||en,error:e.error||nn}),c()(".whatsNewPopover").remove()}function tn(t,e,n){console.debug("querying Whats New Data resulted in an error: "+e+n),console.debug(t)}function en(t){}function nn(t){console.debug("dismissing Whats New data resulted in an error: "+t)}var on,an,rn,sn,ln={disableKeyboardShortcuts:function(){return(0,Ft.j)("theming","shortcutsDisabled",!1)}},cn=i(95573),un=i.n(cn),dn={},An={},pn={},fn={loadScript:function(t,e){var n=t+e;return Object.prototype.hasOwnProperty.call(An,n)?Promise.resolve():(An[n]=!0,new Promise((function(n,o){var i=OC.filePath(t,"js",e),a=document.createElement("script");a.src=i,a.setAttribute("nonce",btoa(OC.requestToken)),a.onload=function(){return n()},a.onerror=function(){return o(new Error("Failed to load script from ".concat(i)))},document.head.appendChild(a)})))},loadStylesheet:function(t,e){var n=t+e;return Object.prototype.hasOwnProperty.call(pn,n)?Promise.resolve():(pn[n]=!0,new Promise((function(n,o){var i=OC.filePath(t,"css",e),a=document.createElement("link");a.href=i,a.type="text/css",a.rel="stylesheet",a.onload=function(){return n()},a.onerror=function(){return o(new Error("Failed to load stylesheet from ".concat(i)))},document.head.appendChild(a)})))}},hn={success:function(t,e){return(0,h.s$)(t,e)},warning:function(t,e){return(0,h.K2)(t,e)},error:function(t,e){return(0,h.x2)(t,e)},info:function(t,e){return(0,h.JQ)(t,e)},message:function(t,e){return(0,h.PV)(t,e)}},mn={Accessibility:ln,AppConfig:a,Collaboration:{registerType:function(t,e){dn[t]=e},trigger:function(t){return dn[t].action()},getTypes:function(){return Object.keys(dn)},getIcon:function(t){return dn[t].typeIconClass||""},getLabel:function(t){return un()(dn[t].typeString||t)},getLink:function(t,e){return void 0!==dn[t]?dn[t].link(e):""}},Comments:r,InitialState:{loadState:Ft.j},Loader:fn,Toast:hn,WhatsNew:s},gn=function(){void 0===window.TESTING&&console.warn.apply(console,arguments)},vn=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 gn(n?"".concat(t," is deprecated: ").concat(n):"".concat(t," is deprecated")),e()}})}))};window._=f.ZP,vn(["$","jQuery"],(function(){return c()}),"The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own."),vn("autosize",(function(){return Qe.Z}),"please ship your own, this will be removed in Nextcloud 20"),vn("Backbone",(function(){return T()}),"please ship your own, this will be removed in Nextcloud 20"),vn(["Clipboard","ClipboardJS"],(function(){return He()}),"please ship your own, this will be removed in Nextcloud 20"),window.dav=I.dav,vn("Handlebars",(function(){return xt()}),"please ship your own, this will be removed in Nextcloud 20"),vn("md5",(function(){return Ze()}),"please ship your own, this will be removed in Nextcloud 20"),vn("moment",(function(){return Ot()}),"please ship your own, this will be removed in Nextcloud 20"),window.OC=Lt,vn("initCore",(function(){return Re}),"this is an internal function"),vn("oc_appswebroots",(function(){return Lt.appswebroots}),"use OC.appswebroots instead, this will be removed in Nextcloud 20"),vn("oc_config",(function(){return Lt.config}),"use OC.config instead, this will be removed in Nextcloud 20"),vn("oc_current_user",(function(){return Lt.getCurrentUser().uid}),"use OC.getCurrentUser().uid instead, this will be removed in Nextcloud 20"),vn("oc_debug",(function(){return Lt.debug}),"use OC.debug instead, this will be removed in Nextcloud 20"),vn("oc_defaults",(function(){return Lt.theme}),"use OC.theme instead, this will be removed in Nextcloud 20"),vn("oc_isadmin",Lt.isUserAdmin,"use OC.isUserAdmin() instead, this will be removed in Nextcloud 20"),vn("oc_requesttoken",(function(){return pt()}),"use OC.requestToken instead, this will be removed in Nextcloud 20"),vn("oc_webroot",(function(){return Lt.webroot}),"use OC.getRootPath() instead, this will be removed in Nextcloud 20"),vn("OCDialogs",(function(){return Lt.dialogs}),"use OC.dialogs instead, this will be removed in Nextcloud 20"),window.OCP=mn,window.OCA=et,c().fn.select2=(on=c().fn.select2,an="select2",19,rn=on,sn=function(){return gn("The ".concat(an," library is deprecated! It will be removed in nextcloud ").concat(19,".")),rn.apply(this,arguments)},Object.assign(sn,rn),sn),window.t=f.ZP.bind(Lt.L10N.translate,Lt.L10N),window.n=f.ZP.bind(Lt.L10N.translatePlural,Lt.L10N),c().fn.avatar=function(t,e,n,o,i,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===Lt.getCurrentUser().uid?Lt.generateUrl("/avatar/{user}/{size}?v={version}",{user:t,size:Math.ceil(e*window.devicePixelRatio),version:oc_userconfig.avatar.version}):Lt.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 i&&i()},c.onerror=function(){l.clearimageplaceholder(),void 0!==a?l.imageplaceholder(t,a):r(l),"function"==typeof i&&i()},e<32?l.addClass("icon-loading-small"):l.addClass("icon-loading"),c.width=e,c.height=e,c.src=s,c.alt=""};var Cn=i(47078);c().fn.contactsMenu=function(e,n,o){if(-1!==[0,4,6].indexOf(n)){var i=this;o.append('