mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
2 lines
No EOL
43 KiB
JavaScript
2 lines
No EOL
43 KiB
JavaScript
(()=>{var e,t,r,n={5428(e,t,r){"use strict";var n,o,a,s,i=r(21777),c=r(36520),h=r(380),l=r(20005),u=r(53334),p=r(65606);function d(){if(o)return n;o=1;const e="object"==typeof p&&p.env&&p.env.NODE_DEBUG&&/\bsemver\b/i.test(p.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return n=e}function f(){if(s)return a;s=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return a={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}}Object.freeze({DEFAULT:"default",HIDDEN:"hidden"});var m,E,g,w,I,v,A,b,R,O,y,T,L,N={exports:{}};function $(){if(A)return v;A=1;const e=d(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=f(),{safeRe:n,t:o}=(m||(m=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=f(),a=d(),s=(t=e.exports={}).re=[],i=t.safeRe=[],c=t.src=[],h=t.safeSrc=[],l=t.t={};let u=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",o],[p,n]],E=(e,t,r)=>{const n=(e=>{for(const[t,r]of m)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=u++;a(e,o,t),l[e]=o,c[o]=t,h[o]=n,s[o]=new RegExp(t,r?"g":void 0),i[o]=new RegExp(n,r?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),E("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${p}+`),E("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),E("FULL",`^${c[l.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),E("LOOSE",`^${c[l.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),E("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),E("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),E("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),E("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`),E("COERCERTL",c[l.COERCE],!0),E("COERCERTLFULL",c[l.COERCEFULL],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",E("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",E("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(N,N.exports)),N.exports),a=function(){if(g)return E;g=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return E=r=>r?"object"!=typeof r?e:r:t}(),{compareIdentifiers:s}=function(){if(I)return w;I=1;const e=/^[0-9]+$/,t=(t,r)=>{if("number"==typeof t&&"number"==typeof r)return t===r?0:t<r?-1:1;const n=e.test(t),o=e.test(r);return n&&o&&(t=+t,r=+r),t===r?0:n&&!o?-1:o&&!n?1:t<r?-1:1};return w={compareIdentifiers:t,rcompareIdentifiers:(e,r)=>t(r,e)}}();class i{constructor(s,c){if(c=a(c),s instanceof i){if(s.loose===!!c.loose&&s.includePrerelease===!!c.includePrerelease)return s;s=s.version}else if("string"!=typeof s)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const h=s.trim().match(c.loose?n[o.LOOSE]:n[o.FULL]);if(!h)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<r)return t}return e}):this.prerelease=[],this.build=h[5]?h[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 i)){if("string"==typeof t&&t===this.version)return 0;t=new i(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof i||(e=new i(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(t){if(t instanceof i||(t=new i(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 r=0;do{const n=this.prerelease[r],o=t.prerelease[r];if(e("prerelease compare",r,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return s(n,o)}while(++r)}compareBuild(t){t instanceof i||(t=new i(t,this.options));let r=0;do{const n=this.build[r],o=t.build[r];if(e("build compare",r,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return s(n,o)}while(++r)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===s(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return v=i}!function(){if(R)return b;R=1;const e=$();b=(t,r)=>new e(t,r).major}(),function(){if(L)return T;L=1;const e=function(){if(y)return O;y=1;const e=$();return O=(t,r,n=!1)=>{if(t instanceof e)return t;try{return new e(t,r)}catch(e){if(!n)return null;throw e}}}();T=(t,r)=>{const n=e(t,r);return n?n.version:null}}(),h.m,Object.freeze({UploadFromDevice:0,CreateNew:1,Other:2}),Object.freeze({ReservedName:"reserved name",Character:"character",Extension:"extension"}),Error,Object.freeze({Name:"basename",Modified:"mtime",Size:"size"});var C=r(81222),S=r(26422),U=r(10810),P=r(85471),D=r(51651),x=r(96689),k=r(35906);let H,F;P.Ay.use(U.R2),r.nc=(0,i.aV)();const M="comments_files-sidebar-tab";var _;(0,C.C)("comments","activityEnabled",!1)&&void 0!==OCA?.Activity?.registerSidebarAction?window.addEventListener("DOMContentLoaded",function(){window.OCA.Activity.registerSidebarAction({mount:async(e,{node:t,reload:n})=>{const o=(0,U.Ey)();if(!H){const{default:e}=await Promise.all([r.e(4208),r.e(3556),r.e(4906)]).then(r.bind(r,44906));H=P.Ay.extend(e)}F=new H({el:e,pinia:o,propsData:{reloadCallback:n,resourceId:t.fileid}}),x.A.info("Comments plugin mounted in Activity sidebar action",{node:t})},unmount:()=>{F&&F.$destroy()}}),window.OCA.Activity.registerSidebarEntries(async({node:e,limit:t,offset:n})=>{const{data:o}=await(0,k.v)({resourceType:"files",resourceId:e.fileid},{limit:t,offset:n??0});x.A.debug("Loaded comments",{node:e,comments:o});const{default:a}=await Promise.all([r.e(4208),r.e(3556),r.e(7039)]).then(r.bind(r,57039)),s=P.Ay.extend(a);return o.map(t=>({_CommentsViewInstance:void 0,timestamp:(0,D.A)(t.props?.creationDateTime).toDate().getTime(),mount(r,{reload:n}){this._CommentsViewInstance=new s({el:r,propsData:{comment:t,resourceId:e.fileid,reloadCallback:n}})},unmount(){this._CommentsViewInstance?.$destroy()}}))}),window.OCA.Activity.registerSidebarFilter(e=>"comments"!==e.type),x.A.info("Comments plugin registered for Activity sidebar action")}):(function(e){if("object"!=typeof e)throw new Error("Sidebar tab is not an object");if(!e.id||"string"!=typeof e.id||e.id!==CSS.escape(e.id))throw new Error("Sidebar tabs need to have an id conforming to the HTML id attribute specifications");if(!e.tagName||"string"!=typeof e.tagName)throw new Error("Sidebar tabs need to have the tagName name set");if(!e.tagName.match(/^[a-z][a-z0-9-_]+$/))throw new Error('Sidebar tab "tagName" is invalid');if(!e.displayName||"string"!=typeof e.displayName)throw new Error("Sidebar tabs need to have a name set");if("string"!=typeof e.iconSvgInline||!(0,l.A)(e.iconSvgInline))throw new Error("Sidebar tabs need to have an valid SVG icon");if("number"!=typeof e.order)throw new Error("Sidebar tabs need to have a numeric order set");if(e.enabled&&"function"!=typeof e.enabled)throw new Error('Sidebar tab "enabled" is not a function');if(e.onInit&&"function"!=typeof e.onInit)throw new Error('Sidebar tab "onInit" is not a function')}(_={id:"comments",displayName:(0,u.t)("comments","Comments"),iconSvgInline:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>',order:50,tagName:M,async onInit(){const{default:e}=await Promise.all([r.e(4208),r.e(3556),r.e(8124)]).then(r.bind(r,38124));P.Ay.use(U.R2),P.Ay.mixin({pinia:(0,U.Ey)()});const t=(0,S.A)(P.Ay,e);Object.defineProperty(t.prototype,"attachShadow",{value(){return this}}),Object.defineProperty(t.prototype,"shadowRoot",{get(){return this}}),window.customElements.define(M,t)}}),window._nc_files_sidebar_tabs??=new Map,window._nc_files_sidebar_tabs.has(_.id)?c.l.warn(`Sidebar tab with id "${_.id}" already registered. Skipping.`):(window._nc_files_sidebar_tabs.set(_.id,_),c.l.debug(`New sidebar tab with id "${_.id}" registered.`)))},7815(e,t,r){"use strict";r.d(t,{K:()=>o});var n=r(90176);function o(e){try{const[t]=e.multistatus.response,{propstat:{prop:{"quota-used-bytes":r,"quota-available-bytes":o}}}=t;return void 0!==r&&void 0!==o?{used:parseInt(String(r),10),available:(0,n.i5)(o)}:null}catch(e){}return null}},10524(e,t,r){"use strict";r.d(t,{p:()=>i});var n=r(85394),o=r(36236),a=r(89062),s=r(29999);async function i(e,t,r={}){const i=(0,a.H)({url:(0,n.oq)(e.remoteURL,(0,o.O0)(t)),method:"OPTIONS"},e,r),c=await(0,a.E)(i,e);try{(0,s.HT)(e,c)}catch(e){throw e}return{compliance:(c.headers.get("DAV")??"").split(",").map(e=>e.trim()),server:c.headers.get("Server")??""}}},11083(e,t,r){var n=r(11568),o=r(88835),a=e.exports;for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);function i(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}a.request=function(e,t){return e=i(e),n.request.call(this,e,t)},a.get=function(e,t){return e=i(e),n.get.call(this,e,t)}},11568(e,t,r){var n=r(55537),o=r(6917),a=r(57510),s=r(86866),i=r(88835),c=t;c.request=function(e,t){e="string"==typeof e?i.parse(e):a(e);var r=-1===globalThis.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||r,s=e.hostname||e.host,c=e.port,h=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(c?":"+c:"")+h,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var l=new n(e);return t&&l.on("response",t),l},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=n,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=s,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},17003(e,t,r){"use strict";r.d(t,{e:()=>o});var n=r(63814);function o(){return(0,n.dC)("dav/comments")}},17601(e,t,r){"use strict";r.d(t,{G:()=>s});var n=r(93028),o=r(11163),a=r(78049);class s extends Error{constructor(e,t){const r=[...arguments],{options:n,shortMessage:s}=(0,a.W)(r);let i=s;if(n.cause&&(i=`${i}: ${n.cause.message}`),super(i),this.message=i,n.name&&"string"==typeof n.name?this.name=n.name:this.name=(0,o.z)(),n.cause&&Object.defineProperty(this,"_cause",{value:n.cause}),Object.defineProperty(this,"_info",{value:{}}),n.info&&"object"==typeof n.info&&Object.assign(this._info,n.info),Error.captureStackTrace){const e=n.constructorOpt||this.constructor;Error.captureStackTrace(this,e)}}static cause(e){return(0,n.t)(e),e._cause&&(0,n.b)(e._cause)?e._cause:null}static fullStack(e){(0,n.t)(e);const t=s.cause(e);return t?`${e.stack}\ncaused by: ${s.fullStack(t)}`:e.stack??""}static info(e){(0,n.t)(e);const t={},r=s.cause(e);return r&&Object.assign(t,s.info(r)),e._info&&Object.assign(t,e._info),t}toString(){let e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e=`${e}: ${this.message}`),e}}},17658(e,t,r){"use strict";r.d(t,{F:()=>d,b:()=>f});var n=r(42294),o=r(85394),a=r(36236),s=r(57221),i=r(22921),c=r(89062),h=r(29999),l=r(38374),u=r(62045).hp;const p=e=>e;async function d(e,t,r={}){const{format:s="binary"}=r;if("binary"!==s&&"text"!==s)throw new n.GU({info:{code:l.O4.InvalidOutputFormat}},`Invalid output format: ${s}`);return"text"===s?async function(e,t,r={}){const n=(0,c.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[p]},e,r),s=await(0,c.E)(n,e);(0,h.HT)(e,s);const i=await s.text();return(0,h.hq)(s,i,r.details)}(e,t,r):async function(e,t,r={}){const n=(0,c.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"GET"},e,r),s=await(0,c.E)(n,e);let l;return(0,h.HT)(e,s),l=(0,i.HZ)()||(0,i.lV)()?await s.arrayBuffer():u.from(await s.arrayBuffer()),(0,h.hq)(s,l,r.details)}(e,t,r)}function f(e,t){let r=(0,o.oq)(e.remoteURL,(0,a.O0)(t));const i=/^https:/i.test(r)?"https":"http";switch(e.authType){case l.hT.None:break;case l.hT.Password:{const t=e.headers.Authorization.replace(/^Basic /i,"").trim(),n=(0,s.Ey)(t);r=r.replace(/^https?:\/\//,`${i}://${n}@`);break}default:throw new n.GU({info:{code:l.O4.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${e.authType}`)}return r}},19396(e,t,r){"use strict";r.d(t,{V:()=>o});var n=r(57221);function o(e,t){return`Basic ${(0,n.nk)(`${e}:${t}`)}`}},27562(e,t,r){"use strict";r.d(t,{A:()=>o,o:()=>s});var n=r(14113);function o(e){return new n.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(a({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function a(e,t){const r={...e};for(const e in r)r.hasOwnProperty(e)&&(r[e]&&"object"==typeof r[e]&&-1===e.indexOf(":")?(r[`${t}:${e}`]=a(r[e],t),delete r[e]):!1===/^@_/.test(e)&&(r[`${t}:${e}`]=r[e],delete r[e]));return r}function s(e){return new n.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(e)}},28161(e,t,r){"use strict";r.d(t,{c:()=>c});var n=r(85394),o=r(36236),a=r(89062),s=r(29999),i=r(84830);async function c(e,t,r={}){if(!0===r.recursive)return async function(e,t,r={}){const n=(0,o.xi)((0,o.qb)(t));n.sort((e,t)=>e.length>t.length?1:t.length>e.length?-1:0);let a=!1;for(const o of n)if(a)await c(e,o,{...r,recursive:!1});else try{if("directory"!==(await(0,i.z)(e,o)).type)throw new Error(`Path includes a file: ${t}`)}catch(t){if(404!==t.status)throw t;a=!0,await c(e,o,{...r,recursive:!1})}}(e,t,r);const h=(0,a.H)({url:(0,n.oq)(e.remoteURL,(u=(0,o.O0)(t),u.endsWith("/")?u:u+"/")),method:"MKCOL"},e,r),l=await(0,a.E)(h,e);var u;(0,s.HT)(e,l)}},30047(e,t,r){"use strict";r.d(t,{g:()=>d,w:()=>f});var n=r(42294),o=r(88310),a=r(57221),s=r(85394),i=r(36236),c=r(71922),h=r(22921),l=r(89062),u=r(29999),p=r(38374);async function d(e,t,r,n={}){const{contentLength:a=!0,overwrite:p=!0}=n,d={"Content-Type":"application/octet-stream"};!(0,h.HZ)()&&!(0,h.lV)()&&void 0!==o&&void 0!==o?.Readable&&r instanceof o.Readable||!1===a||(d["Content-Length"]="number"==typeof a?`${a}`:`${(0,c.J)(r)}`),p||(d["If-None-Match"]="*");const f=(0,l.H)({url:(0,s.oq)(e.remoteURL,(0,i.O0)(t)),method:"PUT",headers:d,data:r},e,n),m=await(0,l.E)(f,e);try{(0,u.HT)(e,m)}catch(e){const t=e;if(412!==t.status||p)throw t;return!1}return!0}function f(e,t){let r=`${(0,s.oq)(e.remoteURL,(0,i.O0)(t))}?Content-Type=application/octet-stream`;const o=/^https:/i.test(r)?"https":"http";switch(e.authType){case p.hT.None:break;case p.hT.Password:{const t=e.headers.Authorization.replace(/^Basic /i,"").trim(),n=(0,a.Ey)(t);r=r.replace(/^https?:\/\//,`${o}://${n}@`);break}default:throw new n.GU({info:{code:p.O4.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${e.authType}`)}return r}},35550(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(21777),o=r(82415),a=r(17003);const s=(0,o.UU)((0,a.e)());function i(e){s.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:e??""})}(0,n.zo)(i),i((0,n.do)());const c=s},35906(e,t,r){"use strict";r.d(t,{e:()=>i,v:()=>c});var n=r(82415),o=r(29999),a=r(90176),s=r(35550);const i=20;async function c({resourceType:e,resourceId:t},r){const c=["",e,t].join("/"),h=r.datetime?`<oc:datetime>${r.datetime.toISOString()}</oc:datetime>`:"",l=await s.A.customRequest(c,{method:"REPORT",data:`<?xml version="1.0"?>\n\t\t\t<oc:filter-comments\n\t\t\t\txmlns:d="DAV:"\n\t\t\t\txmlns:oc="http://owncloud.org/ns"\n\t\t\t\txmlns:nc="http://nextcloud.org/ns"\n\t\t\t\txmlns:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<oc:limit>${r.limit??i}</oc:limit>\n\t\t\t\t<oc:offset>${r.offset||0}</oc:offset>\n\t\t\t\t${h}\n\t\t\t</oc:filter-comments>`,...r}),u=await l.text(),p=function(e,t=!1){const{multistatus:{response:r}}=e;return r.map(e=>{const r=e.propstat.prop;return(0,a.ch)(r,r.id.toString(),t)})}(await(0,n.h4)(u),!0);return(0,o.hq)(l,p,!0)}},36942(e,t,r){"use strict";r.d(t,{e:()=>c});var n=r(42294),o=r(90036),a=r(19396),s=r(89793),i=r(38374);function c(e,t,r,c,h){switch(e.authType){case i.hT.Auto:t&&r&&(e.headers.Authorization=(0,a.V)(t,r));break;case i.hT.Digest:e.digest=(0,o.C8)(t,r,h);break;case i.hT.None:break;case i.hT.Password:e.headers.Authorization=(0,a.V)(t,r);break;case i.hT.Token:e.headers.Authorization=(0,s.O)(c);break;default:throw new n.GU({info:{code:i.O4.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}}},39299(e,t,r){"use strict";r.d(t,{P:()=>i});var n=r(88310),o=r(47397),a=r(53850),s=r(22921);function i(e){if(!(0,s.HZ)()&&!(0,s.lV)()&&e instanceof n.Readable)return[e,{}];if("string"==typeof e)return[e,{}];if((0,a.P)(e))return[e,{}];if((0,o.m)(e))return[e,{}];if(e&&"object"==typeof e)return[JSON.stringify(e),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof e)}},39615(e,t,r){"use strict";r.d(t,{T:()=>u,s:()=>l});var n=r(26602),o=r(85394),a=r(36236),s=r(27562),i=r(89062),c=r(29999);const h="Infinite, Second-4100000000";async function l(e,t,r={}){const{refreshToken:l,timeout:u=h}=r,p={Accept:"text/plain,application/xml",Timeout:u};l&&(p.If=l);const d=(0,i.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"LOCK",headers:p,data:(0,s.A)(e.contactHref)},e,r),f=await(0,i.E)(d,e);(0,c.HT)(e,f);const m=await f.text(),E=(0,s.o)(m),g=n.get(E,"prop.lockdiscovery.activelock.locktoken.href"),w=n.get(E,"prop.lockdiscovery.activelock.timeout");if(!g)throw(0,c.YQ)(f,"No lock token received: ");return{token:g,serverTimeout:w}}async function u(e,t,r,n={}){const s=(0,i.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n),h=await(0,i.E)(s,e);if((0,c.HT)(e,h),204!==h.status&&200!==h.status)throw(0,c.YQ)(h)}},42634(){},47397(e,t,r){"use strict";r.d(t,{m:()=>a});const n="function"==typeof ArrayBuffer,{toString:o}=Object.prototype;function a(e){return n&&(e instanceof ArrayBuffer||"[object ArrayBuffer]"===o.call(e))}},50335(e,t,r){"use strict";r.d(t,{m:()=>i});var n=r(85394),o=r(36236),a=r(89062),s=r(29999);async function i(e,t,r,i={}){const c=(0,a.H)({url:(0,n.oq)(e.remoteURL,(0,o.O0)(t)),method:"COPY",headers:{Destination:(0,n.oq)(e.remoteURL,(0,o.O0)(r)),Overwrite:!1===i.overwrite?"F":"T",Depth:i.shallow?"0":"infinity"}},e,i),h=await(0,a.E)(c,e);(0,s.HT)(e,h)}},57221(e,t,r){"use strict";r.d(t,{Ey:()=>o,nk:()=>a});var n=r(85914);function o(e){return n.decode(e)}function a(e){return n.encode(e)}r(29602)},59169(){},61160(e,t,r){"use strict";var n=r(92063),o=r(73992),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,h=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(e){return(e||"").toString().replace(a,"")}var p=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d={hash:1,query:1};function f(e){var t,r=("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new g(unescape(e.pathname),{});else if("string"===o)for(t in n=new g(e,{}),d)delete n[t];else if("object"===o){for(t in e)t in d||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=i.test(e.href))}return n}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function E(e,t){e=(e=u(e)).replace(s,""),t=t||{};var r,n=h.exec(e),o=n[1]?n[1].toLowerCase():"",a=!!n[2],i=!!n[3],c=0;return a?i?(r=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(r=n[2]+n[4],c=n[2].length):i?(r=n[3]+n[4],c=n[3].length):r=n[4],"file:"===o?c>=2&&(r=r.slice(2)):m(o)?r=n[4]:o?a&&(r=r.slice(2)):c>=2&&m(t.protocol)&&(r=n[4]),{protocol:o,slashes:a||m(o),slashesCount:c,rest:r}}function g(e,t,r){if(e=(e=u(e)).replace(s,""),!(this instanceof g))return new g(e,t,r);var a,i,c,h,d,w,I=p.slice(),v=typeof t,A=this,b=0;for("object"!==v&&"string"!==v&&(r=t,t=null),r&&"function"!=typeof r&&(r=o.parse),a=!(i=E(e||"",t=f(t))).protocol&&!i.slashes,A.slashes=i.slashes||a&&t.slashes,A.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||l.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!m(A.protocol)))&&(I[3]=[/(.*)/,"pathname"]);b<I.length;b++)"function"!=typeof(h=I[b])?(c=h[0],w=h[1],c!=c?A[w]=e:"string"==typeof c?~(d="@"===c?e.lastIndexOf(c):e.indexOf(c))&&("number"==typeof h[2]?(A[w]=e.slice(0,d),e=e.slice(d+h[2])):(A[w]=e.slice(d),e=e.slice(0,d))):(d=c.exec(e))&&(A[w]=d[1],e=e.slice(0,d.index)),A[w]=A[w]||a&&h[3]&&t[w]||"",h[4]&&(A[w]=A[w].toLowerCase())):e=h(e,A);r&&(A.query=r(A.query)),a&&t.slashes&&"/"!==A.pathname.charAt(0)&&(""!==A.pathname||""!==t.pathname)&&(A.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],a=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(a=!0),r.splice(n,1),s--);return a&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(A.pathname,t.pathname)),"/"!==A.pathname.charAt(0)&&m(A.protocol)&&(A.pathname="/"+A.pathname),n(A.port,A.protocol)||(A.host=A.hostname,A.port=""),A.username=A.password="",A.auth&&(~(d=A.auth.indexOf(":"))?(A.username=A.auth.slice(0,d),A.username=encodeURIComponent(decodeURIComponent(A.username)),A.password=A.auth.slice(d+1),A.password=encodeURIComponent(decodeURIComponent(A.password))):A.username=encodeURIComponent(decodeURIComponent(A.auth)),A.auth=A.password?A.username+":"+A.password:A.username),A.origin="file:"!==A.protocol&&m(A.protocol)&&A.host?A.protocol+"//"+A.host:"null",A.href=A.toString()}g.prototype={set:function(e,t,r){var a=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||o.parse)(t)),a[e]=t;break;case"port":a[e]=t,n(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,c.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!r;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";a[e]=t.charAt(0)!==s?s+t:t}else a[e]=t;break;case"username":case"password":a[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(a.username=t.slice(0,i),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(i+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var h=0;h<p.length;h++){var l=p[h];l[4]&&(a[l[1]]=a[l[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin="file:"!==a.protocol&&m(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,r=this,n=r.host,a=r.protocol;a&&":"!==a.charAt(a.length-1)&&(a+=":");var s=a+(r.protocol&&r.slashes||m(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):"file:"!==r.protocol&&m(r.protocol)&&!n&&"/"!==r.pathname&&(s+="@"),(":"===n[n.length-1]||c.test(r.hostname)&&!r.port)&&(n+=":"),s+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(s+=r.hash),s}},g.extractProtocol=E,g.location=f,g.trimLeft=u,g.qs=o,e.exports=g},63779(){},67691(e,t){"use strict";t.d=function(e){if(!e)return 0;for(var t=(e=e.toString()).length,r=e.length;r--;){var n=e.charCodeAt(r);56320<=n&&n<=57343&&r--,127<n&&n<=2047?t++:2047<n&&n<=65535&&(t+=2)}return t}},68476(e,t,r){"use strict";r.d(t,{V:()=>h,o:()=>l});var n=r(88310),o=r(85394),a=r(36236),s=r(89062),i=r(29999);const c=()=>{};function h(e,t,r={}){const c=new(0,n.PassThrough);return async function(e,t,r={}){const n={};if("object"==typeof r.range&&"number"==typeof r.range.start){let e=`bytes=${r.range.start}-`;"number"==typeof r.range.end&&(e=`${e}${r.range.end}`),n.Range=e}const c=(0,s.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"GET",headers:n},e,r),h=await(0,s.E)(c,e);if((0,i.HT)(e,h),n.Range&&206!==h.status){const e=new Error(`Invalid response code for partial request: ${h.status}`);throw e.status=h.status,e}return r.callback&&setTimeout(()=>{r.callback(h)},0),h.body}(e,t,r).then(e=>{e.pipe(c)}).catch(e=>{c.emit("error",e)}),c}function l(e,t,r={},h=c){const l=new(0,n.PassThrough),u={};!1===r.overwrite&&(u["If-None-Match"]="*");const p=(0,s.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"PUT",headers:u,data:l,maxRedirects:0},e,r);return(0,s.E)(p,e).then(t=>(0,i.HT)(e,t)).then(e=>{setTimeout(()=>{h(e)},0)}).catch(e=>{l.emit("error",e)}),l}},71922(e,t,r){"use strict";r.d(t,{J:()=>c});var n=r(42294),o=r(67691),a=r(47397),s=r(53850),i=r(38374);function c(e){if((0,a.m)(e))return e.byteLength;if((0,s.P)(e))return e.length;if("string"==typeof e)return(0,o.d)(e);throw new n.GU({info:{code:i.O4.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}},74419(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(12692),o=r(85394),a=r(36236),s=r(90176),i=r(89062),c=r(29999);async function h(e,t,r={}){const h=(0,i.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r),l=await(0,i.E)(h,e);(0,c.HT)(e,l);const u=await l.text();if(!u)throw new Error("Failed parsing directory contents: Empty response");const p=await(0,s.h4)(u),d=(0,a.dU)(t);let f=function(e,t,r,i=!1,c=!1){const h=n.join(t,"/"),{multistatus:{response:l}}=e,u=l.map(e=>{const t=(0,o.S8)(e.href),{propstat:{prop:r}}=e,c="/"===h?decodeURIComponent((0,a.qb)(t)):(0,a.qb)(n.relative(decodeURIComponent(h),decodeURIComponent(t)));return(0,s.ch)(r,c,i)});return c?u:u.filter(e=>e.basename&&("file"===e.type||e.filename!==r.replace(/\/$/,"")))}(p,(0,a.dU)(e.remoteBasePath||e.remotePath),d,r.details,r.includeSelf);return r.glob&&(f=(0,c.eh)(f,r.glob)),(0,c.hq)(l,f,r.details)}},75892(e,t,r){"use strict";r.d(t,{t:()=>o});var n=r(84830);async function o(e,t,r={}){try{return await(0,n.z)(e,t,r),!0}catch(e){if(404===e.status)return!1;throw e}}},76374(e,t,r){"use strict";r.d(t,{J:()=>i});var n=r(85394),o=r(36236),a=r(89062),s=r(29999);async function i(e,t,r){r.url||(r.url=(0,n.oq)(e.remoteURL,(0,o.O0)(t)));const i=(0,a.H)(r,e,{}),c=await(0,a.E)(i,e);return(0,s.HT)(e,c),c}},77087(e,t,r){"use strict";r.d(t,{m:()=>i});var n=r(85394),o=r(36236),a=r(89062),s=r(29999);async function i(e,t,r,i={}){const c=(0,a.H)({url:(0,n.oq)(e.remoteURL,(0,o.O0)(t)),method:"MOVE",headers:{Destination:(0,n.oq)(e.remoteURL,(0,o.O0)(r)),Overwrite:!1===i.overwrite?"F":"T"}},e,i),h=await(0,a.E)(c,e);(0,s.HT)(e,h)}},77101(e,t,r){"use strict";r.d(t,{W:()=>i});var n=r(85394),o=r(36236),a=r(89062),s=r(29999);async function i(e,t,r={}){const i=(0,a.H)({url:(0,n.oq)(e.remoteURL,(0,o.O0)(t)),method:"DELETE"},e,r),c=await(0,a.E)(i,e);(0,s.HT)(e,c)}},77199(){},80156(e,t,r){"use strict";r.d(t,{T:()=>c});var n=r(90176),o=r(85394),a=r(36236),s=r(89062),i=r(29999);async function c(e,t,r={}){const{details:c=!1}=r,h=(0,s.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r),l=await(0,s.E)(h,e);(0,i.HT)(e,l);const u=await l.text(),p=await(0,n.h4)(u),d=(0,n.KA)(p,t,c);return(0,i.hq)(l,d,c)}},81838(e,t,r){"use strict";r.d(t,{V:()=>l});var n=r(42294),o=r(85394),a=r(36236),s=r(89062),i=r(29999),c=r(10524),h=r(38374);async function l(e,t,r,l,u,p={}){const d=await(0,c.p)(e,t,p);if(d.compliance.includes("sabredav-partialupdate"))return await async function(e,t,r,c,l,u={}){if(r>c||r<0)throw new n.GU({info:{code:h.O4.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const p={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(c-r+1),"X-Update-Range":`bytes=${r}-${c}`},d=(0,s.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"PATCH",headers:p,data:l},e,u),f=await(0,s.E)(d,e);(0,i.HT)(e,f)}(e,t,r,l,u,p);if(d.server.includes("Apache")&&d.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return await async function(e,t,r,c,l,u={}){if(r>c||r<0)throw new n.GU({info:{code:h.O4.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const p={"Content-Type":"application/octet-stream","Content-Length":""+(c-r+1),"Content-Range":`bytes ${r}-${c}/*`},d=(0,s.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"PUT",headers:p,data:l},e,u),f=await(0,s.E)(d,e);(0,i.HT)(e,f)}(e,t,r,l,u,p);throw new n.GU({info:{code:h.O4.NotSupported}},"Not supported")}},82415(e,t,r){"use strict";r.d(t,{UU:()=>n.U,h4:()=>o.h4});var n=r(84997),o=(r(38374),r(90176));r(29999)},84830(e,t,r){"use strict";r.d(t,{z:()=>c});var n=r(90176),o=r(85394),a=r(36236),s=r(89062),i=r(29999);async function c(e,t,r={}){const{details:c=!1}=r,h=(0,s.H)({url:(0,o.oq)(e.remoteURL,(0,a.O0)(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r),l=await(0,s.E)(h,e);(0,i.HT)(e,l);const u=await l.text(),p=await(0,n.h4)(u),d=(0,n.ky)(p,t,c);return(0,i.hq)(l,d,c)}},84997(e,t,r){"use strict";r.d(t,{U:()=>R});var n=r(85394),o=r(36942),a=r(50335),s=r(28161),i=r(68476),c=r(76374),h=r(77101),l=r(75892),u=r(74419),p=r(17658),d=r(39615),f=r(86772),m=r(84830),E=r(80156),g=r(77087),w=r(30047),I=r(81838),v=r(10524),A=r(38374);const b="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function R(e,t={}){const{authType:r=null,remoteBasePath:R,contactHref:O=b,ha1:y,headers:T={},httpAgent:L,httpsAgent:N,password:$,token:C,username:S,withCredentials:U}=t;let P=r;P||(P=S||$?A.hT.Password:A.hT.None);const D={authType:P,remoteBasePath:R,contactHref:O,ha1:y,headers:Object.assign({},T),httpAgent:L,httpsAgent:N,password:$,remotePath:(0,n.wB)(e),remoteURL:e,token:C,username:S,withCredentials:U};return(0,o.e)(D,S,$,C,y),{copyFile:(e,t,r)=>(0,a.m)(D,e,t,r),createDirectory:(e,t)=>(0,s.c)(D,e,t),createReadStream:(e,t)=>(0,i.V)(D,e,t),createWriteStream:(e,t,r)=>(0,i.o)(D,e,t,r),customRequest:(e,t)=>(0,c.J)(D,e,t),deleteFile:(e,t)=>(0,h.W)(D,e,t),exists:(e,t)=>(0,l.t)(D,e,t),getDirectoryContents:(e,t)=>(0,u.A)(D,e,t),getFileContents:(e,t)=>(0,p.F)(D,e,t),getFileDownloadLink:e=>(0,p.b)(D,e),getFileUploadLink:e=>(0,w.w)(D,e),getHeaders:()=>Object.assign({},D.headers),getQuota:e=>(0,f.T)(D,e),lock:(e,t)=>(0,d.s)(D,e,t),moveFile:(e,t,r)=>(0,g.m)(D,e,t,r),putFileContents:(e,t,r)=>(0,w.g)(D,e,t,r),partialUpdateFileContents:(e,t,r,n,o)=>(0,I.V)(D,e,t,r,n,o),getDAVCompliance:e=>(0,v.p)(D,e),search:(e,t)=>(0,E.T)(D,e,t),setHeaders:e=>{D.headers=Object.assign({},e)},stat:(e,t)=>(0,m.z)(D,e,t),unlock:(e,t,r)=>(0,d.T)(D,e,t,r)}}},85394(e,t,r){"use strict";r.d(t,{S8:()=>h,oq:()=>c,wB:()=>i});var n=r(61160),o=r(42294),a=r(406),s=r(36236);function i(e){let t=new n(e).pathname;return t.length<=0&&(t="/"),(0,s.qb)(t)}function c(...e){return(0,a.A)(e.reduce((e,t,r)=>((0===r||"/"!==t||"/"===t&&"/"!==e[e.length-1])&&e.push(t),e),[]))}function h(e){try{return e.replace(/^https?:\/\/[^\/]+/,"")}catch(e){throw new o.GU(e,"Failed normalising HREF")}}},85914(e,t,r){var n;e=r.nmd(e),function(){var o=(e&&e.exports,"object"==typeof globalThis&&globalThis);o.global!==o&&o.window;var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new a(e)},i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,h={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,r,n,o,a=e.length%3,c="",h=-1,l=e.length-a;++h<l;)t=e.charCodeAt(h)<<16,r=e.charCodeAt(++h)<<8,n=e.charCodeAt(++h),c+=i.charAt((o=t+r+n)>>18&63)+i.charAt(o>>12&63)+i.charAt(o>>6&63)+i.charAt(63&o);return 2==a?(t=e.charCodeAt(h)<<8,r=e.charCodeAt(++h),c+=i.charAt((o=t+r)>>10)+i.charAt(o>>4&63)+i.charAt(o<<2&63)+"="):1==a&&(o=e.charCodeAt(h),c+=i.charAt(o>>2)+i.charAt(o<<4&63)+"=="),c},decode:function(e){var t=(e=String(e).replace(c,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var r,n,o=0,a="",h=-1;++h<t;)n=i.indexOf(e.charAt(h)),r=o%4?64*r+n:n,o++%4&&(a+=String.fromCharCode(255&r>>(-2*o&6)));return a},version:"1.0.0"};void 0===(n=function(){return h}.call(t,r,t,e))||(e.exports=n)}()},86772(e,t,r){"use strict";r.d(t,{T:()=>c});var n=r(89062),o=r(29999),a=r(90176),s=r(85394),i=r(7815);async function c(e,t={}){const r=t.path||"/",c=(0,n.H)({url:(0,s.oq)(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t),h=await(0,n.E)(c,e);(0,o.HT)(e,h);const l=await h.text(),u=await(0,a.h4)(l),p=(0,i.K)(u);return(0,o.hq)(h,p,t.details)}},86833(){},89062(e,t,r){"use strict";r.d(t,{E:()=>m,H:()=>f});var n=r(11568),o=r(11083),a=r(97192),s=r(84819),i=r(22921),c=r(90036),h=r(79275),l=r(79605),u=r(39299),p=r(38374),d=r(36942);function f(e,t,r){const n=(0,h.q)(e);return n.headers=(0,l.l)(t.headers,n.headers||{},r.headers||{}),void 0!==r.data&&(n.data=r.data),r.signal&&(n.signal=r.signal),t.httpAgent&&(n.httpAgent=t.httpAgent),t.httpsAgent&&(n.httpsAgent=t.httpsAgent),t.digest&&(n._digest=t.digest),"boolean"==typeof t.withCredentials&&(n.withCredentials=t.withCredentials),n}async function m(e,t){return t.authType===p.hT.Auto?async function(e,t){const r=await g(e);return r.ok?(t.authType=p.hT.Password,r):401==r.status&&(0,c.oD)(r)?(t.authType=p.hT.Digest,(0,d.e)(t,t.username,t.password,void 0,void 0),e._digest=t.digest,E(e)):r}(e,t):e._digest?E(e):g(e)}async function E(e){const t=e._digest;delete e._digest,t.hasDigestAuth&&(e=(0,h.h)(e,{headers:{Authorization:(0,c.XX)(e,t)}}));const r=await g(e);if(401==r.status){if(t.hasDigestAuth=(0,c.Wb)(r,t),t.hasDigestAuth){e=(0,h.h)(e,{headers:{Authorization:(0,c.XX)(e,t)}});const r=await g(e);return 401==r.status?t.hasDigestAuth=!1:t.nc++,r}}else t.nc++;return r}function g(e){const t=(0,s.G)();return t.patchInline("request",e=>t.patchInline("fetch",a.hd,e.url,function(e){let t={};const r={method:e.method};if(e.headers&&(t=(0,l.l)(t,e.headers)),void 0!==e.data){const[n,o]=(0,u.P)(e.data);r.body=n,t=(0,l.l)(t,o)}return e.signal&&(r.signal=e.signal),e.withCredentials&&(r.credentials="include"),(0,i.HZ)()||(0,i.lV)()||(e.httpAgent||e.httpsAgent)&&(r.agent=t=>"http:"===t.protocol?e.httpAgent||new n.Agent:e.httpsAgent||new o.Agent),r.headers=t,r}(e)),e)}},90036(e,t,r){"use strict";r.d(t,{C8:()=>a,Wb:()=>i,XX:()=>s,oD:()=>c});var n=r(83503),o=r(35658);function a(e,t,r){return{username:e,password:t,ha1:r,nc:0,algorithm:"md5",hasDigestAuth:!1}}function s(e,t){const r=e.url.replace("//",""),a=-1==r.indexOf("/")?"/":r.slice(r.indexOf("/")),s=e.method?e.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",c=`00000000${t.nc}`.slice(-8),h=(0,o.M)(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),l=n(`${s}:${a}`),u=n(i?`${h}:${t.nonce}:${c}:${t.cnonce}:${i}:${l}`:`${h}:${t.nonce}:${l}`),p={username:t.username,realm:t.realm,nonce:t.nonce,uri:a,qop:i,response:u,nc:c,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},d=[];for(const e in p)p[e]&&("qop"===e||"nc"===e||"algorithm"===e?d.push(`${e}=${p[e]}`):d.push(`${e}="${p[e]}"`));return`Digest ${d.join(", ")}`}function i(e,t){if(!c(e))return!1;const r=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const n=e.headers&&e.headers.get("www-authenticate")||"",o=r.exec(n);if(!o)break;t[o[1]]=o[2]||o[3]}return t.nc+=1,t.cnonce=function(){let e="";for(let t=0;t<32;++t)e=`${e}${"abcdef0123456789"[Math.floor(16*Math.random())]}`;return e}(),!0}function c(e){return"digest"===(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()}},96689(e,t,r){"use strict";r.d(t,{A:()=>n});const n=(0,r(35947).YK)().setApp("comments").detectUser().build()}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=n,e=[],a.O=(t,r,n,o)=>{if(!r){var s=1/0;for(l=0;l<e.length;l++){for(var[r,n,o]=e[l],i=!0,c=0;c<r.length;c++)(!1&o||s>=o)&&Object.keys(a.O).every(e=>a.O[e](r[c]))?r.splice(c--,1):(i=!1,o<s&&(s=o));if(i){e.splice(l--,1);var h=n();void 0!==h&&(t=h)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[r,n,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,r)=>(a.f[r](e,t),t),[])),a.u=e=>e+"-"+e+".js?v="+{2251:"4257477cac9387ca3d84",2710:"0c2e26891ac1c05900e0",3556:"920f98152ec7950e8055",4471:"9b3c8620f038b7593241",4508:"c6a3c65fcdfeb529b236",4906:"494ff510a1379d42d106",5528:"650daf404ceec1fec7cd",5862:"580b9c2e231a9169a12f",7004:"da5a822695a273d4d2eb",7039:"9800c2c4f93af8d9465e",7394:"5b773f16893ed80e0246",7859:"cd6f48c919ca307639eb",8124:"7273b44251b9ce503f49",8453:"0ad2c9a35eee895d5980"}[e],a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="nextcloud-ui-legacy:",a.l=(e,n,o,s)=>{if(t[e])t[e].push(n);else{var i,c;if(void 0!==o)for(var h=document.getElementsByTagName("script"),l=0;l<h.length;l++){var u=h[l];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+o){i=u;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",a.nc&&i.setAttribute("nonce",a.nc),i.setAttribute("data-webpack",r+o),i.src=e),t[e]=[n];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(n)),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=2122,(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={2122:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var s=a.p+a.u(t),i=new Error;a.l(s,r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",i.name="ChunkLoadError",i.type=o,i.request=s,n[1](i)}},"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[s,i,c]=r,h=0;if(s.some(t=>0!==e[t])){for(n in i)a.o(i,n)&&(a.m[n]=i[n]);if(c)var l=c(a)}for(t&&t(r);h<s.length;h++)o=s[h],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(l)},r=globalThis.webpackChunknextcloud_ui_legacy=globalThis.webpackChunknextcloud_ui_legacy||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0;var s=a.O(void 0,[4208],()=>a(5428));s=a.O(s)})();
|
|
//# sourceMappingURL=comments-comments-tab.js.map?v=15baacfba80ffe721ada
|