1
2
|
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[5810],{35810:(e,t,n)=>{n.d(t,{Al:()=>i.r,By:()=>v,CP:()=>i.k,E6:()=>O,Gg:()=>m,H4:()=>i.c,KT:()=>y,L3:()=>ve,My:()=>F,PY:()=>i.b,Q$:()=>i.e,R3:()=>i.n,Ss:()=>H,Up:()=>N,VI:()=>T,VL:()=>i.l,VP:()=>M,VX:()=>i.j,Y9:()=>_,Yc:()=>i.i,ZH:()=>i.q,a7:()=>d,aX:()=>i.P,bP:()=>i.N,bh:()=>$,cZ:()=>Ae,di:()=>b,g5:()=>I,gj:()=>Oe,hY:()=>h,lJ:()=>i.d,lT:()=>D,m1:()=>Re,m9:()=>f,nF:()=>A,pt:()=>i.F,qK:()=>g,sR:()=>be,ur:()=>P,v7:()=>C,vd:()=>i.s,yC:()=>w,zI:()=>i.t,zj:()=>ye});var i=n(36585),r=n(87485),o=n(43627),a=n(53334),s=n(380),c=n(83141),l=n(62045).hp,u=n(65606),d=(e=>(e[e.UploadFromDevice=0]="UploadFromDevice",e[e.CreateNew=1]="CreateNew",e[e.Other=2]="Other",e))(d||{});class E{_entries=[];registerEntry(e){this.validateEntry(e),e.category=e.category??1,this._entries.push(e)}unregisterEntry(e){const t="string"==typeof e?this.getEntryIndex(e):this.getEntryIndex(e.id);-1!==t?this._entries.splice(t,1):i.o.warn("Entry not found, nothing removed",{entry:e,entries:this.getEntries()})}getEntries(e){return e?this._entries.filter((t=>"function"!=typeof t.enabled||t.enabled(e))):this._entries}getEntryIndex(e){return this._entries.findIndex((t=>t.id===e))}validateEntry(e){if(!e.id||!e.displayName||!e.iconSvgInline&&!e.iconClass||!e.handler)throw new Error("Invalid entry");if("string"!=typeof e.id||"string"!=typeof e.displayName)throw new Error("Invalid id or displayName property");if(e.iconClass&&"string"!=typeof e.iconClass||e.iconSvgInline&&"string"!=typeof e.iconSvgInline)throw new Error("Invalid icon provided");if(void 0!==e.enabled&&"function"!=typeof e.enabled)throw new Error("Invalid enabled property");if("function"!=typeof e.handler)throw new Error("Invalid handler property");if("order"in e&&"number"!=typeof e.order)throw new Error("Invalid order property");if(-1!==this.getEntryIndex(e.id))throw new Error("Duplicate entry")}}const p=function(){return void 0===window._nc_newfilemenu&&(window._nc_newfilemenu=new E,i.o.debug("NewFileMenu initialized")),window._nc_newfilemenu};var f=(e=>(e.DEFAULT="default",e.HIDDEN="hidden",e))(f||{});class h{_action;constructor(e){this.validateAction(e),this._action=e}get id(){return this._action.id}get displayName(){return this._action.displayName}get title(){return this._action.title}get iconSvgInline(){return this._action.iconSvgInline}get enabled(){return this._action.enabled}get exec(){return this._action.exec}get execBatch(){return this._action.execBatch}get order(){return this._action.order}get parent(){return this._action.parent}get default(){return this._action.default}get destructive(){return this._action.destructive}get inline(){return this._action.inline}get renderInline(){return this._action.renderInline}validateAction(e){if(!e.id||"string"!=typeof e.id)throw new Error("Invalid id");if(!e.displayName||"function"!=typeof e.displayName)throw new Error("Invalid displayName function");if("title"in e&&"function"!=typeof e.title)throw new Error("Invalid title function");if(!e.iconSvgInline||"function"!=typeof e.iconSvgInline)throw new Error("Invalid iconSvgInline function");if(!e.exec||"function"!=typeof e.exec)throw new Error("Invalid exec function");if("enabled"in e&&"function"!=typeof e.enabled)throw new Error("Invalid enabled function");if("execBatch"in e&&"function"!=typeof e.execBatch)throw new Error("Invalid execBatch function");if("order"in e&&"number"!=typeof e.order)throw new Error("Invalid order");if(void 0!==e.destructive&&"boolean"!=typeof e.destructive)throw new Error("Invalid destructive flag");if("parent"in e&&"string"!=typeof e.parent)throw new Error("Invalid parent");if(e.default&&!Object.values(f).includes(e.default))throw new Error("Invalid default");if("inline"in e&&"function"!=typeof e.inline)throw new Error("Invalid inline function");if("renderInline"in e&&"function"!=typeof e.renderInline)throw new Error("Invalid renderInline function")}}const m=function(e){void 0===window._nc_fileactions&&(window._nc_fileactions=[],i.o.debug("FileActions initialized")),window._nc_fileactions.find((t=>t.id===e.id))?i.o.error(`FileAction ${e.id} already registered`,{action:e}):window._nc_fileactions.push(e)},g=function(){return void 0===window._nc_fileactions&&(window._nc_fileactions=[],i.o.debug("FileActions initialized")),window._nc_fileactions};class T{_action;constructor(e){this.validateAction(e),this._action=e}get id(){return this._action.id}get displayName(){return this._action.displayName}get iconSvgInline(){return this._action.iconSvgInline}get order(){return this._action.order}get enabled(){return this._action.enabled}get exec(){return this._action.exec}validateAction(e){if(!e.id||"string"!=typeof e.id)throw new Error("Invalid id");if(!e.displayName||"function"!=typeof e.displayName)throw new Error("Invalid displayName function");if("iconSvgInline"in e&&"function"!=typeof e.iconSvgInline)throw new Error("Invalid iconSvgInline function");if("order"in e&&"number"!=typeof e.order)throw new Error("Invalid order");if("enabled"in e&&"function"!=typeof e.enabled)throw new Error("Invalid enabled function");if(!e.exec||"function"!=typeof e.exec)throw new Error("Invalid exec function")}}const w=e=>{void 0===window._nc_filelistactions&&(window._nc_filelistactions=[]),window._nc_filelistactions.find((t=>t.id===e.id))?i.o.error(`FileListAction with id "${e.id}" is already registered`,{action:e}):window._nc_filelistactions.push(e)},I=()=>(void 0===window._nc_filelistactions&&(window._nc_filelistactions=[]),window._nc_filelistactions);class _{_header;constructor(e){this.validateHeader(e),this._header=e}get id(){return this._header.id}get order(){return this._header.order}get enabled(){return this._header.enabled}get render(){return this._header.render}get updated(){return this._header.updated}validateHeader(e){if(!e.id||!e.render||!e.updated)throw new Error("Invalid header: id, render and updated are required");if("string"!=typeof e.id)throw new Error("Invalid id property");if(void 0!==e.enabled&&"function"!=typeof e.enabled)throw new Error("Invalid enabled property");if(e.render&&"function"!=typeof e.render)throw new Error("Invalid render property");if(e.updated&&"function"!=typeof e.updated)throw new Error("Invalid updated property")}}const N=function(e){void 0===window._nc_filelistheader&&(window._nc_filelistheader=[],i.o.debug("FileListHeaders initialized")),window._nc_filelistheader.find((t=>t.id===e.id))?i.o.error(`Header ${e.id} already registered`,{header:e}):window._nc_filelistheader.push(e)},v=function(){return void 0===window._nc_filelistheader&&(window._nc_filelistheader=[],i.o.debug("FileListHeaders initialized")),window._nc_filelistheader};var A=(e=>(e.ReservedName="reserved name",e.Character="character",e.Extension="extension",e))(A||{});class b extends Error{constructor(e){super(`Invalid ${e.reason} '${e.segment}' in filename '${e.filename}'`,{cause:e})}get filename(){return this.cause.filename}get reason(){return this.cause.reason}get segment(){return this.cause.segment}}function y(e){const t=(0,r.F)().files,n=t.forbidden_filename_characters??window._oc_config?.forbidden_filenames_characters??["/","\\"];for(const t of n)if(e.includes(t))throw new b({segment:t,reason:"character",filename:e});if(e=e.toLocaleLowerCase(),(t.forbidden_filenames??[".htaccess"]).includes(e))throw new b({filename:e,segment:e,reason:"reserved name"});const i=e.indexOf(".",1),o=e.substring(0,-1===i?void 0:i);if((t.forbidden_filename_basenames??[]).includes(o))throw new b({filename:e,segment:o,reason:"reserved name"});const a=t.forbidden_filename_extensions??[".part",".filepart"];for(const t of a)if(e.length>t.length&&e.endsWith(t))throw new b({segment:t,reason:"extension",filename:e})}function O(e,t,n){const i={suffix:e=>`(${e})`,ignoreFileExtension:!1,...n};let r=e,a=1;for(;t.includes(r);){const t=i.ignoreFileExtension?"":(0,o.extname)(e);r=`${(0,o.basename)(e,t)} ${i.suffix(a++)}${t}`}return r}const R=["B","KB","MB","GB","TB","PB"],L=["B","KiB","MiB","GiB","TiB","PiB"];function C(e,t=!1,n=!1,i=!1){n=n&&!i,"string"==typeof e&&(e=Number(e));let r=e>0?Math.floor(Math.log(e)/Math.log(i?1e3:1024)):0;r=Math.min((n?L.length:R.length)-1,r);const o=n?L[r]:R[r];let s=(e/Math.pow(i?1e3:1024,r)).toFixed(1);return!0===t&&0===r?("0.0"!==s?"< 1 ":"0 ")+(n?L[1]:R[1]):(s=r<2?parseFloat(s).toFixed(0):parseFloat(s).toLocaleString((0,a.lO)()),s+" "+o)}function D(e,t=!1){try{e=`${e}`.toLocaleLowerCase().replaceAll(/\s+/g,"").replaceAll(",",".")}catch(e){return null}const n=e.match(/^([0-9]*(\.[0-9]*)?)([kmgtp]?)(i?)b?$/);if(null===n||"."===n[1]||""===n[1])return null;const i=`${n[1]}`,r="i"===n[4]||t?1024:1e3;return Math.round(Number.parseFloat(i)*r**{"":0,k:1,m:2,g:3,t:4,p:5,e:6}[n[3]])}function S(e){return e instanceof Date?e.toISOString():String(e)}function F(e,t,n){n=n??[];const i=(t=t??[e=>e]).map(((e,t)=>"asc"===(n[t]??"asc")?1:-1)),r=Intl.Collator([(0,a.Z0)(),(0,a.lO)()],{numeric:!0,usage:"sort"});return[...e].sort(((e,n)=>{for(const[o,a]of t.entries()){const t=r.compare(S(a(e)),S(a(n)));if(0!==t)return t*i[o]}return 0}))}function P(e,t={}){const n={sortingMode:"basename",sortingOrder:"asc",...t};return F(e,[...n.sortFavoritesFirst?[e=>1!==e.attributes?.favorite]:[],...n.sortFoldersFirst?[e=>"folder"!==e.type]:[],..."basename"!==n.sortingMode?[e=>e[n.sortingMode]]:[],e=>{return(t=e.displayname||e.attributes?.displayname||e.basename||"").lastIndexOf(".")>0?t.slice(0,t.lastIndexOf(".")):t;var t},e=>e.basename],[...n.sortFavoritesFirst?["asc"]:[],...n.sortFoldersFirst?["asc"]:[],..."mtime"===n.sortingMode?["asc"===n.sortingOrder?"desc":"asc"]:[],..."mtime"!==n.sortingMode&&"basename"!==n.sortingMode?[n.sortingOrder]:[],n.sortingOrder,n.sortingOrder])}class x extends(/^(2(573|766|882)|1171|1873|5102|5928)$/.test(n.j)?s.m:null){_views=[];_currentView=null;register(e){if(this._views.find((t=>t.id===e.id)))throw new Error(`View id ${e.id} is already registered`);this._views.push(e),this.dispatchTypedEvent("update",new CustomEvent("update"))}remove(e){const t=this._views.findIndex((t=>t.id===e));-1!==t&&(this._views.splice(t,1),this.dispatchTypedEvent("update",new CustomEvent("update")))}setActive(e){this._currentView=e;const t=new CustomEvent("updateActive",{detail:e});this.dispatchTypedEvent("updateActive",t)}get active(){return this._currentView}get views(){return this._views}}const $=function(){return void 0===window._nc_navigation&&(window._nc_navigation=new x,i.o.debug("Navigation service initialized")),window._nc_navigation};class M{_column;constructor(e){U(e),this._column=e}get id(){return this._column.id}get title(){return this._column.title}get render(){return this._column.render}get sort(){return this._column.sort}get summary(){return this._column.summary}}const U=function(e){if(!e.id||"string"!=typeof e.id)throw new Error("A column id is required");if(!e.title||"string"!=typeof e.title)throw new Error("A column title is required");if(!e.render||"function"!=typeof e.render)throw new Error("A render function is required");if(e.sort&&"function"!=typeof e.sort)throw new Error("Column sortFunction must be a function");if(e.summary&&"function"!=typeof e.summary)throw new Error("Column summary must be a function");return!0};function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B,V={},X=(B||(B=1,function(e){e.parser=function(e,t){return new i(e,t)},e.SAXParser=i,e.SAXStream=o,e.createStream=function(e,t){return new o(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(t,r){if(!(this instanceof i))return new i(t,r);var o=this;!function(e){for(var t=0,i=n.length;t<i;t++)e[n[t]]=""}(o),o.q=o.c="",o.bufferCheckPosition=e.MAX_BUFFER_LENGTH,o.opt=r||{},o.opt.lowercase=o.opt.lowercase||o.opt.lowercasetags,o.looseCase=o.opt.lowercase?"toLowerCase":"toUpperCase",o.tags=[],o.closed=o.closedRoot=o.sawRoot=!1,o.tag=o.error=null,o.strict=!!t,o.noscript=!(!t&&!o.opt.noscript),o.state=b.BEGIN,o.strictEntities=o.opt.strictEntities,o.ENTITIES=o.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),o.attribList=[],o.opt.xmlns&&(o.ns=Object.create(E)),void 0===o.opt.unquotedAttributeValues&&(o.opt.unquotedAttributeValues=!t),o.trackPosition=!1!==o.opt.position,o.trackPosition&&(o.position=o.line=o.column=0),O(o,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),i.prototype={end:function(){S(this)},write:function(t){var i=this;if(this.error)throw this.error;if(i.closed)return D(i,"Cannot write after close. Assign an onready handler.");if(null===t)return S(i);"object"==typeof t&&(t=t.toString());for(var r=0,o="";o=V(t,r++),i.c=o,o;)switch(i.trackPosition&&(i.position++,"\n"===o?(i.line++,i.column=0):i.column++),i.state){case b.BEGIN:if(i.state=b.BEGIN_WHITESPACE,"\ufeff"===o)continue;B(i,o);continue;case b.BEGIN_WHITESPACE:B(i,o);continue;case b.TEXT:if(i.sawRoot&&!i.closedRoot){for(var c=r-1;o&&"<"!==o&&"&"!==o;)(o=V(t,r++))&&i.trackPosition&&(i.position++,"\n"===o?(i.line++,i.column=0):i.column++);i.textNode+=t.substring(c,r-1)}"<"!==o||i.sawRoot&&i.closedRoot&&!i.strict?(g(o)||i.sawRoot&&!i.closedRoot||F(i,"Text data outside of root node."),"&"===o?i.state=b.TEXT_ENTITY:i.textNode+=o):(i.state=b.OPEN_WAKA,i.startTagPosition=i.position);continue;case b.SCRIPT:"<"===o?i.state=b.SCRIPT_ENDING:i.script+=o;continue;case b.SCRIPT_ENDING:"/"===o?i.state=b.CLOSE_TAG:(i.script+="<"+o,i.state=b.SCRIPT);continue;case b.OPEN_WAKA:if("!"===o)i.state=b.SGML_DECL,i.sgmlDecl="";else if(g(o));else if(I(p,o))i.state=b.OPEN_TAG,i.tagName=o;else if("/"===o)i.state=b.CLOSE_TAG,i.tagName="";else if("?"===o)i.state=b.PROC_INST,i.procInstName=i.procInstBody="";else{if(F(i,"Unencoded <"),i.startTagPosition+1<i.position){var l=i.position-i.startTagPosition;o=new Array(l).join(" ")+o}i.textNode+="<"+o,i.state=b.TEXT}continue;case b.SGML_DECL:if(i.sgmlDecl+o==="--"){i.state=b.COMMENT,i.comment="",i.sgmlDecl="";continue}i.doctype&&!0!==i.doctype&&i.sgmlDecl?(i.state=b.DOCTYPE_DTD,i.doctype+="<!"+i.sgmlDecl+o,i.sgmlDecl=""):(i.sgmlDecl+o).toUpperCase()===a?(R(i,"onopencdata"),i.state=b.CDATA,i.sgmlDecl="",i.cdata=""):(i.sgmlDecl+o).toUpperCase()===s?(i.state=b.DOCTYPE,(i.doctype||i.sawRoot)&&F(i,"Inappropriately located doctype declaration"),i.doctype="",i.sgmlDecl=""):">"===o?(R(i,"onsgmldeclaration",i.sgmlDecl),i.sgmlDecl="",i.state=b.TEXT):T(o)?(i.state=b.SGML_DECL_QUOTED,i.sgmlDecl+=o):i.sgmlDecl+=o;continue;case b.SGML_DECL_QUOTED:o===i.q&&(i.state=b.SGML_DECL,i.q=""),i.sgmlDecl+=o;continue;case b.DOCTYPE:">"===o?(i.state=b.TEXT,R(i,"ondoctype",i.doctype),i.doctype=!0):(i.doctype+=o,"["===o?i.state=b.DOCTYPE_DTD:T(o)&&(i.state=b.DOCTYPE_QUOTED,i.q=o));continue;case b.DOCTYPE_QUOTED:i.doctype+=o,o===i.q&&(i.q="",i.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:"]"===o?(i.doctype+=o,i.state=b.DOCTYPE):"<"===o?(i.state=b.OPEN_WAKA,i.startTagPosition=i.position):T(o)?(i.doctype+=o,i.state=b.DOCTYPE_DTD_QUOTED,i.q=o):i.doctype+=o;continue;case b.DOCTYPE_DTD_QUOTED:i.doctype+=o,o===i.q&&(i.state=b.DOCTYPE_DTD,i.q="");continue;case b.COMMENT:"-"===o?i.state=b.COMMENT_ENDING:i.comment+=o;continue;case b.COMMENT_ENDING:"-"===o?(i.state=b.COMMENT_ENDED,i.comment=C(i.opt,i.comment),i.comment&&R(i,"oncomment",i.comment),i.comment=""):(i.comment+="-"+o,i.state=b.COMMENT);continue;case b.COMMENT_ENDED:">"!==o?(F(i,"Malformed comment"),i.comment+="--"+o,i.state=b.COMMENT):i.doctype&&!0!==i.doctype?i.state=b.DOCTYPE_DTD:i.state=b.TEXT;continue;case b.CDATA:"]"===o?i.state=b.CDATA_ENDING:i.cdata+=o;continue;case b.CDATA_ENDING:"]"===o?i.state=b.CDATA_ENDING_2:(i.cdata+="]"+o,i.state=b.CDATA);continue;case b.CDATA_ENDING_2:">"===o?(i.cdata&&R(i,"oncdata",i.cdata),R(i,"onclosecdata"),i.cdata="",i.state=b.TEXT):"]"===o?i.cdata+="]":(i.cdata+="]]"+o,i.state=b.CDATA);continue;case b.PROC_INST:"?"===o?i.state=b.PROC_INST_ENDING:g(o)?i.state=b.PROC_INST_BODY:i.procInstName+=o;continue;case b.PROC_INST_BODY:if(!i.procInstBody&&g(o))continue;"?"===o?i.state=b.PROC_INST_ENDING:i.procInstBody+=o;continue;case b.PROC_INST_ENDING:">"===o?(R(i,"onprocessinginstruction",{name:i.procInstName,body:i.procInstBody}),i.procInstName=i.procInstBody="",i.state=b.TEXT):(i.procInstBody+="?"+o,i.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:I(f,o)?i.tagName+=o:(P(i),">"===o?M(i):"/"===o?i.state=b.OPEN_TAG_SLASH:(g(o)||F(i,"Invalid character in tag name"),i.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:">"===o?(M(i,!0),U(i)):(F(i,"Forward-slash in opening tag not followed by >"),i.state=b.ATTRIB);continue;case b.ATTRIB:if(g(o))continue;">"===o?M(i):"/"===o?i.state=b.OPEN_TAG_SLASH:I(p,o)?(i.attribName=o,i.attribValue="",i.state=b.ATTRIB_NAME):F(i,"Invalid attribute name");continue;case b.ATTRIB_NAME:"="===o?i.state=b.ATTRIB_VALUE:">"===o?(F(i,"Attribute without value"),i.attribValue=i.attribName,$(i),M(i)):g(o)?i.state=b.ATTRIB_NAME_SAW_WHITE:I(f,o)?i.attribName+=o:F(i,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if("="===o)i.state=b.ATTRIB_VALUE;else{if(g(o))continue;F(i,"Attribute without value"),i.tag.attributes[i.attribName]="",i.attribValue="",R(i,"onattribute",{name:i.attribName,value:""}),i.attribName="",">"===o?M(i):I(p,o)?(i.attribName=o,i.state=b.ATTRIB_NAME):(F(i,"Invalid attribute name"),i.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(g(o))continue;T(o)?(i.q=o,i.state=b.ATTRIB_VALUE_QUOTED):(i.opt.unquotedAttributeValues||D(i,"Unquoted attribute value"),i.state=b.ATTRIB_VALUE_UNQUOTED,i.attribValue=o);continue;case b.ATTRIB_VALUE_QUOTED:if(o!==i.q){"&"===o?i.state=b.ATTRIB_VALUE_ENTITY_Q:i.attribValue+=o;continue}$(i),i.q="",i.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:g(o)?i.state=b.ATTRIB:">"===o?M(i):"/"===o?i.state=b.OPEN_TAG_SLASH:I(p,o)?(F(i,"No whitespace between attributes"),i.attribName=o,i.attribValue="",i.state=b.ATTRIB_NAME):F(i,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!w(o)){"&"===o?i.state=b.ATTRIB_VALUE_ENTITY_U:i.attribValue+=o;continue}$(i),">"===o?M(i):i.state=b.ATTRIB;continue;case b.CLOSE_TAG:if(i.tagName)">"===o?U(i):I(f,o)?i.tagName+=o:i.script?(i.script+="</"+i.tagName,i.tagName="",i.state=b.SCRIPT):(g(o)||F(i,"Invalid tagname in closing tag"),i.state=b.CLOSE_TAG_SAW_WHITE);else{if(g(o))continue;_(p,o)?i.script?(i.script+="</"+o,i.state=b.SCRIPT):F(i,"Invalid tagname in closing tag."):i.tagName=o}continue;case b.CLOSE_TAG_SAW_WHITE:if(g(o))continue;">"===o?U(i):F(i,"Invalid characters in closing tag");continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var u,d;switch(i.state){case b.TEXT_ENTITY:u=b.TEXT,d="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:u=b.ATTRIB_VALUE_QUOTED,d="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:u=b.ATTRIB_VALUE_UNQUOTED,d="attribValue"}if(";"===o){var E=G(i);i.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(E)?(i.entity="",i.state=u,i.write(E)):(i[d]+=E,i.entity="",i.state=u)}else I(i.entity.length?m:h,o)?i.entity+=o:(F(i,"Invalid character in entity name"),i[d]+="&"+i.entity+o,i.entity="",i.state=u);continue;default:throw new Error(i,"Unknown state: "+i.state)}return i.position>=i.bufferCheckPosition&&function(t){for(var i=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,o=0,a=n.length;o<a;o++){var s=t[n[o]].length;if(s>i)switch(n[o]){case"textNode":L(t);break;case"cdata":R(t,"oncdata",t.cdata),t.cdata="";break;case"script":R(t,"onscript",t.script),t.script="";break;default:D(t,"Max buffer length exceeded: "+n[o])}r=Math.max(r,s)}var c=e.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=c+t.position}(i),i},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;L(e=this),""!==e.cdata&&(R(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(R(e,"onscript",e.script),e.script="")}};try{t=require("stream").Stream}catch(e){t=function(){}}t||(t=function(){});var r=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function o(e,n){if(!(this instanceof o))return new o(e,n);t.apply(this),this._parser=new i(e,n),this.writable=!0,this.readable=!0;var a=this;this._parser.onend=function(){a.emit("end")},this._parser.onerror=function(e){a.emit("error",e),a._parser.error=null},this._decoder=null,r.forEach((function(e){Object.defineProperty(a,"on"+e,{get:function(){return a._parser["on"+e]},set:function(t){if(!t)return a.removeAllListeners(e),a._parser["on"+e]=t,t;a.on(e,t)},enumerable:!0,configurable:!1})}))}o.prototype=Object.create(t.prototype,{constructor:{value:o}}),o.prototype.write=function(e){if("function"==typeof l&&"function"==typeof l.isBuffer&&l.isBuffer(e)){if(!this._decoder){var t=c.I;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},o.prototype.on=function(e,n){var i=this;return i._parser["on"+e]||-1===r.indexOf(e)||(i._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),i.emit.apply(i,t)}),t.prototype.on.call(i,e,n)};var a="[CDATA[",s="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/2000/xmlns/",E={xml:u,xmlns:d},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,h=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function T(e){return'"'===e||"'"===e}function w(e){return">"===e||g(e)}function I(e,t){return e.test(t)}function _(e,t){return!I(e,t)}var N,v,A,b=0;for(var y in e.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var n=e.ENTITIES[t],i="number"==typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=i})),e.STATE)e.STATE[e.STATE[y]]=y;function O(e,t,n){e[t]&&e[t](n)}function R(e,t,n){e.textNode&&L(e),O(e,t,n)}function L(e){e.textNode=C(e.opt,e.textNode),e.textNode&&O(e,"ontext",e.textNode),e.textNode=""}function C(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function D(e,t){return L(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,O(e,"onerror",t),e}function S(e){return e.sawRoot&&!e.closedRoot&&F(e,"Unclosed root tag"),e.state!==b.BEGIN&&e.state!==b.BEGIN_WHITESPACE&&e.state!==b.TEXT&&D(e,"Unexpected end"),L(e),e.c="",e.closed=!0,O(e,"onend"),i.call(e,e.strict,e.opt),e}function F(e,t){if("object"!=typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&D(e,t)}function P(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,R(e,"onopentagstart",n)}function x(e,t){var n=e.indexOf(":")<0?["",e]:e.split(":"),i=n[0],r=n[1];return t&&"xmlns"===e&&(i="xmlns",r=""),{prefix:i,local:r}}function $(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=x(e.attribName,!0),n=t.prefix,i=t.local;if("xmlns"===n)if("xml"===i&&e.attribValue!==u)F(e,"xml: prefix must be bound to "+u+"\nActual: "+e.attribValue);else if("xmlns"===i&&e.attribValue!==d)F(e,"xmlns: prefix must be bound to "+d+"\nActual: "+e.attribValue);else{var r=e.tag,o=e.tags[e.tags.length-1]||e;r.ns===o.ns&&(r.ns=Object.create(o.ns)),r.ns[i]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,R(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function M(e,t){if(e.opt.xmlns){var n=e.tag,i=x(e.tagName);n.prefix=i.prefix,n.local=i.local,n.uri=n.ns[i.prefix]||"",n.prefix&&!n.uri&&(F(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=i.prefix);var r=e.tags[e.tags.length-1]||e;n.ns&&r.ns!==n.ns&&Object.keys(n.ns).forEach((function(t){R(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var o=0,a=e.attribList.length;o<a;o++){var s=e.attribList[o],c=s[0],l=s[1],u=x(c,!0),d=u.prefix,E=u.local,p=""===d?"":n.ns[d]||"",f={name:c,value:l,prefix:d,local:E,uri:p};d&&"xmlns"!==d&&!p&&(F(e,"Unbound namespace prefix: "+JSON.stringify(d)),f.uri=d),e.tag.attributes[c]=f,R(e,"onattribute",f)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),R(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=b.TEXT:e.state=b.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function U(e){if(!e.tagName)return F(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=b.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=b.SCRIPT);R(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var i=n;t--&&e.tags[t].name!==i;)F(e,"Unexpected close tag");if(t<0)return F(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=b.TEXT);e.tagName=n;for(var r=e.tags.length;r-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,R(e,"onclosetag",e.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach((function(t){var n=o.ns[t];R(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=b.TEXT}function G(e){var t,n=e.entity,i=n.toLowerCase(),r="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[i]?e.ENTITIES[i]:("#"===(n=i).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),r=(t=parseInt(n,16)).toString(16)):(n=n.slice(1),r=(t=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(t)||r.toLowerCase()!==n?(F(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function B(e,t){"<"===t?(e.state=b.OPEN_WAKA,e.startTagPosition=e.position):g(t)||(F(e,"Non-whitespace before first tag."),e.textNode=t,e.state=b.TEXT)}function V(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}b=e.STATE,String.fromCodePoint||(N=String.fromCharCode,v=Math.floor,A=function(){var e,t,n=[],i=-1,r=arguments.length;if(!r)return"";for(var o="";++i<r;){var a=Number(arguments[i]);if(!isFinite(a)||a<0||a>1114111||v(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(e=55296+((a-=65536)>>10),t=a%1024+56320,n.push(e,t)),(i+1===r||n.length>16384)&&(o+=N.apply(null,n),n.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A)}(V)),V);const j=/^(2(573|766|882)|1171|1873|5102|5928)$/.test(n.j)?G(X):null,k={"http://www.w3.org/2000/svg":{ext:"svg",mime:"image/svg+xml"},"http://www.w3.org/1999/xhtml":{ext:"xhtml",mime:"application/xhtml+xml"},"http://www.opengis.net/kml/2.2":{ext:"kml",mime:"application/vnd.google-earth.kml+xml"},"http://www.opengis.net/gml":{ext:"gml",mime:"application/gml+xml"}},Y={rss:{ext:"rss",mime:"application/rss+xml"},"score-partwise":{ext:"musicxml",mime:"application/vnd.recordare.musicxml+xml"},svg:{ext:"svg",mime:"image/svg+xml"}};class q{constructor(e){this.options=e??{},this.firstTag=!0,this.onEnd=!1,this.parser=j.parser(!0,{xmlns:!0}),this.nesting=0,this.parser.onerror=e=>{e.message.startsWith("Invalid character entity")||(this.fileType=void 0,this.onEnd=!0)},this.parser.onopentag=e=>{++this.nesting,this.firstTag&&!this.onEnd&&(this.firstTag=!1,e.uri?this.fileType=k[e.uri]:e.name&&(this.fileType=Y[e.name.toLowerCase()]),this.fileType&&!this.options.fullScan&&(this.onEnd=!0))},this.parser.onclosetag=()=>{--this.nesting}}write(e){this.parser.write(e)}close(){this.parser.close(),this.onEnd=!0}isValid(){return 0===this.nesting}}class H{_view;constructor(e){W(e),this._view=e}get id(){return this._view.id}get name(){return this._view.name}get caption(){return this._view.caption}get emptyTitle(){return this._view.emptyTitle}get emptyCaption(){return this._view.emptyCaption}get getContents(){return this._view.getContents}get hidden(){return this._view.hidden}get icon(){return this._view.icon}set icon(e){this._view.icon=e}get order(){return this._view.order}set order(e){this._view.order=e}get params(){return this._view.params}set params(e){this._view.params=e}get columns(){return this._view.columns}get emptyView(){return this._view.emptyView}get parent(){return this._view.parent}get sticky(){return this._view.sticky}get expanded(){return this._view.expanded}set expanded(e){this._view.expanded=e}get defaultSortKey(){return this._view.defaultSortKey}get loadChildViews(){return this._view.loadChildViews}}const W=function(e){if(!e.id||"string"!=typeof e.id)throw new Error("View id is required and must be a string");if(!e.name||"string"!=typeof e.name)throw new Error("View name is required and must be a string");if("caption"in e&&"string"!=typeof e.caption)throw new Error("View caption must be a string");if(!e.getContents||"function"!=typeof e.getContents)throw new Error("View getContents is required and must be a function");if("hidden"in e&&"boolean"!=typeof e.hidden)throw new Error("View hidden must be a boolean");if(!e.icon||"string"!=typeof e.icon||!function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(0===(e=e.trim()).length)return!1;const t=new q;return t.write(e),t.isValid()&&"svg"===t.fileType?.ext}(e.icon))throw new Error("View icon is required and must be a valid svg string");if("order"in e&&"number"!=typeof e.order)throw new Error("View order must be a number");if(e.columns&&e.columns.forEach((e=>{if(!(e instanceof M))throw new Error("View columns must be an array of Column. Invalid column found")})),e.emptyView&&"function"!=typeof e.emptyView)throw new Error("View emptyView must be a function");if(e.parent&&"string"!=typeof e.parent)throw new Error("View parent must be a string");if("sticky"in e&&"boolean"!=typeof e.sticky)throw new Error("View sticky must be a boolean");if("expanded"in e&&"boolean"!=typeof e.expanded)throw new Error("View expanded must be a boolean");if(e.defaultSortKey&&"string"!=typeof e.defaultSortKey)throw new Error("View defaultSortKey must be a string");if(e.loadChildViews&&"function"!=typeof e.loadChildViews)throw new Error("View loadChildViews must be a function");return!0};var z,Q,K,Z;function J(){if(Q)return z;Q=1;const e="object"==typeof u&&u.env&&u.env.NODE_DEBUG&&/\bsemver\b/i.test(u.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return z=e}function ee(){if(Z)return K;Z=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return K={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}var te,ne,ie,re,oe,ae,se,ce,le,ue,de,Ee={exports:{}};function pe(){if(se)return ae;se=1;const e=J(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=ee(),{safeRe:i,t:r}=(te||(te=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:r}=ee(),o=J(),a=(t=e.exports={}).re=[],s=t.safeRe=[],c=t.src=[],l=t.t={};let u=0;const d="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",r],[d,i]],p=(e,t,n)=>{const i=(e=>{for(const[t,n]of E)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),r=u++;o(e,r,t),l[e]=r,c[r]=t,a[r]=new RegExp(t,n?"g":void 0),s[r]=new RegExp(i,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),p("FULL",`^${c[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),p("LOOSE",`^${c[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),p("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",c[l.COERCE],!0),p("COERCERTLFULL",c[l.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Ee,Ee.exports)),Ee.exports),o=function(){if(ie)return ne;ie=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return ne=n=>n?"object"!=typeof n?e:n:t}(),{compareIdentifiers:a}=function(){if(oe)return re;oe=1;const e=/^[0-9]+$/,t=(t,n)=>{const i=e.test(t),r=e.test(n);return i&&r&&(t=+t,n=+n),t===n?0:i&&!r?-1:r&&!i?1:t<n?-1:1};return re={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}();class s{constructor(a,c){if(c=o(c),a instanceof s){if(a.loose===!!c.loose&&a.includePrerelease===!!c.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",a,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const l=a.trim().match(c.loose?i[r.LOOSE]:i[r.FULL]);if(!l)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const i=this.prerelease[n],r=t.prerelease[n];if(e("prerelease compare",n,i,r),void 0===i&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===i)return-1;if(i!==r)return a(i,r)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const i=this.build[n],r=t.build[n];if(e("build compare",n,i,r),void 0===i&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===i)return-1;if(i!==r)return a(i,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===n&&(i=[t]),0===a(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ae=s}var fe=function(){if(de)return ue;de=1;const e=function(){if(le)return ce;le=1;const e=pe();return ce=(t,n,i=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(e){if(!i)return null;throw e}}}();return ue=(t,n)=>{const i=e(t,n);return i?i.version:null}}();const he=/^(1171|5928)$/.test(n.j)?G(fe):null;var me,ge,Te=function(){if(ge)return me;ge=1;const e=pe();return me=(t,n)=>new e(t,n).major}();const we=/^(1171|5928)$/.test(n.j)?G(Te):null;class Ie{bus;constructor(e){"function"==typeof e.getVersion&&he(e.getVersion())?we(e.getVersion())!==we(this.getVersion())&&console.warn("Proxying an event bus of version "+e.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=e}getVersion(){return"3.3.2"}subscribe(e,t){this.bus.subscribe(e,t)}unsubscribe(e,t){this.bus.unsubscribe(e,t)}emit(e,...t){this.bus.emit(e,...t)}}class _e{handlers=new Map;getVersion(){return"3.3.2"}subscribe(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).concat(t))}unsubscribe(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).filter((e=>e!==t)))}emit(e,...t){(this.handlers.get(e)||[]).forEach((e=>{try{e(t[0])}catch(e){console.error("could not invoke event listener",e)}}))}}let Ne=null;class ve extends s.m{id;order;constructor(e,t=100){super(),this.id=e,this.order=t}filter(e){throw new Error("Not implemented")}updateChips(e){this.dispatchTypedEvent("update:chips",new CustomEvent("update:chips",{detail:e}))}filterUpdated(){this.dispatchTypedEvent("update:filter",new CustomEvent("update:filter"))}}function Ae(e){if(window._nc_filelist_filters||(window._nc_filelist_filters=new Map),window._nc_filelist_filters.has(e.id))throw new Error(`File list filter "${e.id}" already registered`);window._nc_filelist_filters.set(e.id,e),function(e,...t){(null!==Ne?Ne:"undefined"==typeof window?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),Ne=void 0!==window?._nc_event_bus?new Ie(window._nc_event_bus):window._nc_event_bus=new _e,Ne)).emit(e,...t)}("files:filter:added",e)}function be(){return window._nc_filelist_filters?[...window._nc_filelist_filters.values()]:[]}const ye=function(e){return p().registerEntry(e)},Oe=function(e){return p().unregisterEntry(e)},Re=function(e){return p().getEntries(e).sort(((e,t)=>void 0!==e.order&&void 0!==t.order&&e.order!==t.order?e.order-t.order:e.displayName.localeCompare(t.displayName,void 0,{numeric:!0,sensitivity:"base"})))}}}]);
//# sourceMappingURL=5810-5810.js.map?v=f63f10359069f886ce52
|