(()=>{"use strict";vare,t={5924:(e,t,i)=>{varn=i(92457),r=i(53529),s=i(53334),o=i(43627),a=i(71089),l=i(63814);i(44719),i(36117);constu=null===(d=(0,n.HW)())?(0,r.YK)().setApp("files").build():(0,r.YK)().setApp("files").setUid(d.uid).build();vard,h=(e=>(e.DEFAULT="default",e.HIDDEN="hidden",e))(h||{});classc{_action;constructor(e){this.validateAction(e),this._action=e}getid(){returnthis._action.id}getdisplayName(){returnthis._action.displayName}gettitle(){returnthis._action.title}geticonSvgInline(){returnthis._action.iconSvgInline}getenabled(){returnthis._action.enabled}getexec(){returnthis._action.exec}getexecBatch(){returnthis._action.execBatch}getorder(){returnthis._action.order}getparent(){returnthis._action.parent}getdefault(){returnthis._action.default}getinline(){returnthis._action.inline}getrenderInline(){returnthis._action.renderInline}validateAction(e){if(!e.id||"string"!=typeofe.id)thrownewError("Invalid id");if(!e.displayName||"function"!=typeofe.displayName)thrownewError("Invalid displayName function");if("title"ine&&"function"!=typeofe.title)thrownewError("Invalid title function");if(!e.iconSvgInline||"function"!=typeofe.iconSvgInline)thrownewError("Invalid iconSvgInline function");if(!e.exec||"function"!=typeofe.exec)thrownewError("Invalid exec function");if("enabled"ine&&"function"!=typeofe.enabled)thrownewError("Invalid enabled function");if("execBatch"ine&&"function"!=typeofe.execBatch)thrownewError("Invalid execBatch function");if("order"ine&&"number"!=typeofe.order)thrownewError("Invalid order");if("parent"ine&&"string"!=typeofe.parent)thrownewError("Invalid parent");if(e.default&&!Object.values(h).includes(e.default))thrownewError("Invalid default");if("inline"ine&&"function"!=typeofe.inline)thrownewError("Invalid inline function");if("renderInline"ine&&"function"!=typeofe.renderInline)thrownewError("Invalid renderInline function")}}constp=function(e){typeofwindow._nc_fileactions>"u"&&(window._nc_fileactions=[],u.debug("FileActions initialized")),window._nc_fileactions.find((t=>t.id===e.id))?u.error(`FileAction ${e.id} already registered`,{action:e}):window._nc_fileactions.push(e)};varf=(e=>(e[e.NONE=0]="NONE",e[e.CREATE=4]="CREATE",e[e.READ=1]="READ",e[e.UPDATE=2]="UPDATE",e[e.DELETE=8]="DELETE",e[e.SHARE=16]="SHARE",e[e.ALL=31]="ALL",e))(f||{});constg=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],m={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},w=function(e,t={nc:"http://nextcloud.org/ns"}){typeofwindow._nc_dav_properties>"u"&&(window._nc_dav_properties=[...g],window._nc_dav_namespaces={...m});consti={...window._nc_dav_namespaces,...t};returnwindow._nc_dav_properties.find((t=>t===e))?(u.warn(`${e} already registered`,{prop:e}),!1):e.startsWith("<")||2!==e.split(":").length?(u.error(`${e} is not valid. See example: 'oc:fileid'`,{prop:e}),!1):i[e.split(":")[0]]?(window._nc_dav_properties.push(e),window._nc_dav_namespaces=i,!0):(u.error(`${e} namespace unknown`,{prop:e,namespaces:i}),!1)};varv=(e=>(e.Folder="folder",e.File="file",e))(v||{});constb=function(e,t){returnnull!==e.match(t)},y=(e,t)=>{if(e.id&&"number"!=typeofe.id)thrownewError("Invalid id type of value");if(!e.source)thrownewError("Missing mandatory source");try{newURL(e.source)}catch{thrownewError("Invalid source format, source must be a valid URL")}if(!e.source.startsWith("http"))thrownewError("Invalid source format, only http(s) is supported");if(e.mtime&&!(e.mtimeinstanceofDate))thrownewError("Invalid mtime type");if(e.crtime&&!(e.crtimeinstanceofDate))thrownewError("Invalid crtime type");if(!e.mime||"string"!=typeofe.mime||!e.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))thrownewError("Missing or invalid mandatory mime");if("size"ine&&"number"!=