!function(){vart,e={11090:function(t,e,r){"use strict";varn=r(31352),i=r(77958),o=r(17499),a=r(62520),s=r(79753);r(14596),r(26721);constu=null===(c=(0,i.ts)())?(0,o.IY)().setApp("files").build():(0,o.IY)().setApp("files").setUid(c.uid).build();varc,l=(t=>(t.DEFAULT="default",t.HIDDEN="hidden",t))(l||{});classh{_action;constructor(t){this.validateAction(t),this._action=t}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}getdefault(){returnthis._action.default}getinline(){returnthis._action.inline}getrenderInline(){returnthis._action.renderInline}validateAction(t){if(!t.id||"string"!=typeoft.id)thrownewError("Invalid id");if(!t.displayName||"function"!=typeoft.displayName)thrownewError("Invalid displayName function");if("title"int&&"function"!=typeoft.title)thrownewError("Invalid title function");if(!t.iconSvgInline||"function"!=typeoft.iconSvgInline)thrownewError("Invalid iconSvgInline function");if(!t.exec||"function"!=typeoft.exec)thrownewError("Invalid exec function");if("enabled"int&&"function"!=typeoft.enabled)thrownewError("Invalid enabled function");if("execBatch"int&&"function"!=typeoft.execBatch)thrownewError("Invalid execBatch function");if("order"int&&"number"!=typeoft.order)thrownewError("Invalid order");if(t.default&&!Object.values(l).includes(t.default))thrownewError("Invalid default");if("inline"int&&"function"!=typeoft.inline)thrownewError("Invalid inline function");if("renderInline"int&&"function"!=typeoft.renderInline)thrownewError("Invalid renderInline function")}}constf=function(t){typeofwindow._nc_fileactions>"u"&&(window._nc_fileactions=[],u.debug("FileActions initialized")),window._nc_fileactions.find((e=>e.id===t.id))?u.error(`FileAction ${t.id} already registered`,{action:t}):window._nc_fileactions.push(t)};vard=(t=>(t[t.NONE=0]="NONE",t[t.CREATE=4]="CREATE",t[t.READ=1]="READ",t[t.UPDATE=2]="UPDATE",t[t.DELETE=8]="DELETE",t[t.SHARE=16]="SHARE",t[t.ALL=31]="ALL",t))(d||{}),p=(t=>(t.Folder="folder",t.File="file",t))(p||{});constv=function(t,e){returnnull!==t.match(e)},g=(t,e)=>{if(t.id&&"number"!=typeoft.id)thrownewError("Invalid id type of value");if(!t.source)thrownewError("Missing mandatory source");try{newURL(t.source)}catch{thrownewError("Invalid source format, source must be a valid URL")}if(!t.source.startsWith("http"))thrownewError("Invalid source format, only http(s) is supported");if(t.mtime&&!(t.mtimeinstanceofDate))thrownewError("Invalid mtime type");if(t.crtime&&!(t.crtimeinstanceofDate))thrownewError("Invalid crtime type");if(!t.mime||"string"!=typeoft.mime||!t.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))thrownewError("Missing or invalid mandatory mime");if("size"int&&"number"!=typeoft.size&&void0!==t.size)thrownewError("Invalid size type");if("permissions"int&&void0!==t.permissions&&!("number"==typeoft.permissions&&t.permissions>=d.NONE&&t.permissions<=d.ALL))thrownewError("Invalid permissions");if(t.owner&&null!==t.owner&&"string"!=typeoft.owner)thrownewError("Invalid owner type");if(t.attributes&&"object"!=typeoft.attributes)thrownewError("Invalid attributes type");if(t.root&&"string"!=typeoft.root)thrownewError("Invalid root type");if(t.root&&!t.root.startsWith("/"))thrownewError("Root must start with a leading slash");if(t.root&&!t.source.includes(t.root))thrownewError("Root must be part of the source");if(t.root&&v(t.source,e)){constr=t.source.match(e)[0];if(!t.source.includes((0,a.join)(r,t.root)))thrownewError("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(y).includes(t.status))thrownewError("Status must be a valid NodeStatus")};vary=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(y||{});classm{_data;_attributes;_knownDavService=/(