@opencloud-eu/web-client 7.3.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,39 @@
1
- import { n as e, r as t, t as n } from "./axios-DvF8YTlk.js";
2
- import { n as r } from "./dist-CeGfU4rJ.js";
1
+ import { n as e, r as t, t as n } from "./axios-CAceQWl5.js";
2
+ import { n as r } from "./dist-Ciqaw6jy.js";
3
3
  import { t as i } from "./urlJoin-_pUL1TUx.js";
4
- import { E as a, G as o, K as s, M as c, N as l, U as u, _ as d, f } from "./helpers-MRfkPTnV.js";
5
- import { a as p, i as m, n as h, r as g, t as _ } from "./ocs-gQyxMolJ.js";
4
+ import { E as a, K as o, M as s, N as c, U as l, W as u, _ as d, f, q as p } from "./helpers-hr58GB0t.js";
5
+ import { a as m, i as h, n as g, r as _, t as v } from "./ocs-BupRjiCI.js";
6
6
  //#region src/utils/encodePath.ts
7
- var v = (e) => encodeURIComponent(e).split("%2F").join("/"), y = class extends Error {
7
+ var y = (e) => encodeURIComponent(e).split("%2F").join("/"), b = class extends Error {
8
8
  response;
9
9
  statusCode;
10
10
  constructor(e, t, n = null) {
11
11
  super(e), this.response = t, this.statusCode = n;
12
12
  }
13
- }, b = class extends y {
13
+ }, x = class extends b {
14
14
  errorCode;
15
15
  constructor(e, t, n, r = null) {
16
16
  super(e, n, r), this.errorCode = t;
17
17
  }
18
18
  };
19
19
  //#endregion
20
- //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
21
- function x(e) {
22
- return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
23
- }
20
+ //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.1/node_modules/fast-xml-builder/src/util.js
24
21
  function S(e) {
25
- return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
22
+ return typeof e == "number" && Object.is(e, -0) ? "-0" : String(e);
26
23
  }
27
24
  function C(e) {
28
- return String(e).replace(/"/g, "&quot;").replace(/'/g, "&apos;");
25
+ return S(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
26
+ }
27
+ function ee(e) {
28
+ return S(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
29
+ }
30
+ function w(e) {
31
+ return S(e).replace(/"/g, "&quot;").replace(/'/g, "&apos;");
29
32
  }
30
33
  //#endregion
31
- //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
32
- var ee = "\n";
33
- function te(e, t) {
34
+ //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.1/node_modules/fast-xml-builder/src/orderedJs2Xml.js
35
+ var te = "\n";
36
+ function ne(e, t) {
34
37
  if (!Array.isArray(e) || e.length === 0) return "1.0";
35
38
  let n = e[0];
36
39
  if (oe(n) === "?xml") {
@@ -42,99 +45,99 @@ function te(e, t) {
42
45
  }
43
46
  return "1.0";
44
47
  }
45
- function ne(e, t, n, r, i) {
48
+ function re(e, t, n, r, i) {
46
49
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
47
50
  isAttribute: t,
48
51
  matcher: r.readOnly()
49
52
  });
50
53
  }
51
- function re(e, t) {
54
+ function T(e, t) {
52
55
  let n = "";
53
- t.format && (n = ee);
56
+ t.format && (n = te);
54
57
  let r = [];
55
58
  if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
56
59
  let n = t.stopNodes[e];
57
- typeof n == "string" ? r.push(new m(n)) : n instanceof m && r.push(n);
60
+ typeof n == "string" ? r.push(new h(n)) : n instanceof h && r.push(n);
58
61
  }
59
- let i = te(e, t), a = p("qName", { xmlVersion: i }), o = new g();
60
- return ie(e, t, n, o, r, a);
62
+ let i = ne(e, t), a = m("qName", { xmlVersion: i }), o = new _();
63
+ return E(e, t, n, o, r, a);
61
64
  }
62
- function ie(e, t, n, r, i, a) {
65
+ function E(e, t, n, r, i, a) {
63
66
  let o = "", s = !1;
64
67
  if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
65
68
  if (!Array.isArray(e)) {
66
69
  if (e != null) {
67
- let n = e.toString();
68
- return n = ce(n, t), n;
70
+ let n = S(e);
71
+ return n = le(n, t), n;
69
72
  }
70
73
  return "";
71
74
  }
72
75
  for (let c = 0; c < e.length; c++) {
73
76
  let l = e[c], u = oe(l);
74
77
  if (u === void 0) continue;
75
- let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : ne(u, !1, t, r, a), f = w(l[":@"], t);
78
+ let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : re(u, !1, t, r, a), f = ie(l[":@"], t);
76
79
  r.push(d, f);
77
- let p = se(r, i);
80
+ let p = ce(r, i);
78
81
  if (d === t.textNodeName) {
79
82
  let e = l[u];
80
- p || (e = t.tagValueProcessor(d, e), e = ce(e, t)), s && (o += n), o += e, s = !1, r.pop();
83
+ p || (e = t.tagValueProcessor(d, e), e = le(e, t)), e = S(e), s && (o += n), o += e, s = !1, r.pop();
81
84
  continue;
82
85
  }
83
86
  if (d === t.cdataPropName) {
84
87
  s && (o += n);
85
- let e = l[u][0][t.textNodeName], i = S(e);
88
+ let e = l[u][0][t.textNodeName], i = ee(e);
86
89
  o += `<![CDATA[${i}]]>`, s = !1, r.pop();
87
90
  continue;
88
91
  }
89
92
  if (d === t.commentPropName) {
90
- let e = l[u][0][t.textNodeName], i = x(e);
93
+ let e = l[u][0][t.textNodeName], i = C(e);
91
94
  o += n + `<!--${i}-->`, s = !0, r.pop();
92
95
  continue;
93
96
  }
94
97
  if (d[0] === "?") {
95
- let e = E(l[":@"], t, p, r, a);
98
+ let e = se(l[":@"], t, p, r, a);
96
99
  o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
97
100
  continue;
98
101
  }
99
102
  let m = n;
100
103
  m !== "" && (m += t.indentBy);
101
- let h = n + `<${d}${E(l[":@"], t, p, r, a)}`, g;
102
- g = p ? T(l[u], t) : ie(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
104
+ let h = n + `<${d}${se(l[":@"], t, p, r, a)}`, g;
105
+ g = p ? ae(l[u], t) : E(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
103
106
  }
104
107
  return o;
105
108
  }
106
- function w(e, t) {
109
+ function ie(e, t) {
107
110
  if (!e || t.ignoreAttributes) return null;
108
111
  let n = {}, r = !1;
109
112
  for (let i in e) {
110
113
  if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
111
114
  let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
112
- n[a] = C(e[i]), r = !0;
115
+ n[a] = w(e[i]), r = !0;
113
116
  }
114
117
  return r ? n : null;
115
118
  }
116
- function T(e, t) {
117
- if (!Array.isArray(e)) return e == null ? "" : e.toString();
119
+ function ae(e, t) {
120
+ if (!Array.isArray(e)) return e == null ? "" : S(e);
118
121
  let n = "";
119
122
  for (let r = 0; r < e.length; r++) {
120
123
  let i = e[r], a = oe(i);
121
- if (a === t.textNodeName) n += i[a];
124
+ if (a === t.textNodeName) n += S(i[a]);
122
125
  else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
123
126
  else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
124
127
  else if (a && a[0] === "?") continue;
125
128
  else if (a) {
126
- let e = ae(i[":@"], t), r = T(i[a], t);
129
+ let e = D(i[":@"], t), r = ae(i[a], t);
127
130
  !r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
128
131
  }
129
132
  }
130
133
  return n;
131
134
  }
132
- function ae(e, t) {
135
+ function D(e, t) {
133
136
  let n = "";
134
137
  if (e && !t.ignoreAttributes) for (let r in e) {
135
138
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
136
139
  let i = e[r];
137
- i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${C(i)}"`;
140
+ i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${w(i)}"`;
138
141
  }
139
142
  return n;
140
143
  }
@@ -145,21 +148,21 @@ function oe(e) {
145
148
  if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
146
149
  }
147
150
  }
148
- function E(e, t, n, r, i) {
151
+ function se(e, t, n, r, i) {
149
152
  let a = "";
150
153
  if (e && !t.ignoreAttributes) for (let o in e) {
151
154
  if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
152
- let s = o.substr(t.attributeNamePrefix.length), c = n ? s : ne(s, !0, t, r, i), l;
153
- n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = ce(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${C(l)}"`;
155
+ let s = o.substr(t.attributeNamePrefix.length), c = n ? s : re(s, !0, t, r, i), l;
156
+ n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = le(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${w(l)}"`;
154
157
  }
155
158
  return a;
156
159
  }
157
- function se(e, t) {
160
+ function ce(e, t) {
158
161
  if (!t || t.length === 0) return !1;
159
162
  for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
160
163
  return !1;
161
164
  }
162
- function ce(e, t) {
165
+ function le(e, t) {
163
166
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
164
167
  let r = t.entities[n];
165
168
  e = e.replace(r.regex, r.val);
@@ -167,15 +170,15 @@ function ce(e, t) {
167
170
  return e;
168
171
  }
169
172
  //#endregion
170
- //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
171
- function le(e) {
173
+ //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.1/node_modules/fast-xml-builder/src/ignoreAttributes.js
174
+ function ue(e) {
172
175
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
173
176
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
174
177
  } : () => !1;
175
178
  }
176
179
  //#endregion
177
- //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
178
- var ue = {
180
+ //#region ../../node_modules/.pnpm/fast-xml-builder@1.3.1/node_modules/fast-xml-builder/src/fxb.js
181
+ var de = {
179
182
  attributeNamePrefix: "@_",
180
183
  attributesGroupName: !1,
181
184
  textNodeName: "#text",
@@ -224,18 +227,18 @@ var ue = {
224
227
  jPath: !0,
225
228
  sanitizeName: !1
226
229
  };
227
- function D(e) {
228
- if (this.options = Object.assign({}, ue, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
230
+ function O(e) {
231
+ if (this.options = Object.assign({}, de, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
229
232
  let t = this.options.stopNodes[e];
230
- typeof t == "string" ? this.stopNodeExpressions.push(new m(t)) : t instanceof m && this.stopNodeExpressions.push(t);
233
+ typeof t == "string" ? this.stopNodeExpressions.push(new h(t)) : t instanceof h && this.stopNodeExpressions.push(t);
231
234
  }
232
235
  this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
233
236
  return !1;
234
- } : (this.ignoreAttributesFn = le(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = he), this.processTextOrObjNode = pe, this.options.format ? (this.indentate = me, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
237
+ } : (this.ignoreAttributesFn = ue(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ge), this.processTextOrObjNode = me, this.options.format ? (this.indentate = he, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
235
238
  return "";
236
239
  }, this.tagEndChar = ">", this.newLine = "");
237
240
  }
238
- function de(e, t) {
241
+ function fe(e, t) {
239
242
  let n = e["?xml"];
240
243
  if (n && typeof n == "object") {
241
244
  if (t.attributesGroupName && n[t.attributesGroupName]) {
@@ -247,73 +250,78 @@ function de(e, t) {
247
250
  }
248
251
  return "1.0";
249
252
  }
250
- function fe(e, t, n, r, i) {
253
+ function pe(e, t, n, r, i) {
251
254
  return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
252
255
  isAttribute: t,
253
256
  matcher: r.readOnly()
254
257
  });
255
258
  }
256
- D.prototype.build = function(e) {
257
- if (this.options.preserveOrder) return re(e, this.options);
259
+ O.prototype.build = function(e) {
260
+ if (this.options.preserveOrder) return T(e, this.options);
258
261
  {
259
262
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
260
- let t = new g(), n = de(e, this.options), r = p("qName", { xmlVersion: n });
263
+ let t = new _(), n = fe(e, this.options), r = m("qName", { xmlVersion: n });
261
264
  return this.j2x(e, 0, t, r).val;
262
265
  }
263
- }, D.prototype.j2x = function(e, t, n, r) {
266
+ }, O.prototype.j2x = function(e, t, n, r) {
264
267
  let i = "", a = "";
265
268
  if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
266
269
  let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
267
270
  for (let c in e) {
268
271
  if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
269
- let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : fe(c, !1, this.options, n, r);
272
+ let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : pe(c, !1, this.options, n, r);
270
273
  if (e[c] === void 0) this.isAttribute(c) && (a += "");
271
274
  else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
272
275
  else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
273
276
  else if (typeof e[c] != "object") {
274
277
  let u = this.isAttribute(c);
275
278
  if (u && !this.ignoreAttributesFn(u, o)) {
276
- let t = fe(u, !0, this.options, n, r);
277
- i += this.buildAttrPairStr(t, "" + e[c], s);
278
- } else if (!u) if (c === this.options.textNodeName) {
279
- let t = this.options.tagValueProcessor(c, "" + e[c]);
280
- a += this.replaceEntitiesValue(t);
281
- } else {
282
- n.push(l);
283
- let r = this.checkStopNode(n);
284
- if (n.pop(), r) {
285
- let n = "" + e[c];
286
- a += n === "" ? this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : this.indentate(t) + "<" + l + ">" + n + "</" + l + this.tagEndChar;
287
- } else a += this.buildTextValNode(e[c], l, "", t, n);
279
+ let t = pe(u, !0, this.options, n, r);
280
+ i += this.buildAttrPairStr(t, S(e[c]), s);
281
+ } else if (!u) {
282
+ if (c === this.options.textNodeName) {
283
+ let t = this.options.tagValueProcessor(c, S(e[c]));
284
+ a += this.replaceEntitiesValue(t);
285
+ } else {
286
+ n.push(l);
287
+ let r = this.checkStopNode(n);
288
+ if (n.pop(), r) {
289
+ let n = S(e[c]);
290
+ a += n === "" ? this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : this.indentate(t) + "<" + l + ">" + n + "</" + l + this.tagEndChar;
291
+ } else a += this.buildTextValNode(e[c], l, "", t, n);
292
+ }
288
293
  }
289
294
  } else if (Array.isArray(e[c])) {
290
295
  let i = e[c].length, o = "", s = "";
291
296
  for (let u = 0; u < i; u++) {
292
297
  let i = e[c][u];
293
- if (i !== void 0) if (i === null) l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
294
- else if (typeof i == "object") if (this.options.oneListGroup) {
295
- n.push(l);
296
- let e = this.j2x(i, t + 1, n, r);
297
- n.pop(), o += e.val, this.options.attributesGroupName && i.hasOwnProperty(this.options.attributesGroupName) && (s += e.attrStr);
298
- } else o += this.processTextOrObjNode(i, l, t, n, r);
299
- else if (this.options.oneListGroup) {
300
- let e = this.options.tagValueProcessor(l, i);
301
- e = this.replaceEntitiesValue(e), o += e;
302
- } else {
303
- n.push(l);
304
- let e = this.checkStopNode(n);
305
- if (n.pop(), e) {
306
- let e = "" + i;
307
- o += e === "" ? this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : this.indentate(t) + "<" + l + ">" + e + "</" + l + this.tagEndChar;
308
- } else o += this.buildTextValNode(i, l, "", t, n);
298
+ if (i !== void 0) {
299
+ if (i === null) l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
300
+ else if (typeof i == "object") {
301
+ if (this.options.oneListGroup) {
302
+ n.push(l);
303
+ let e = this.j2x(i, t + 1, n, r);
304
+ n.pop(), o += e.val, this.options.attributesGroupName && i.hasOwnProperty(this.options.attributesGroupName) && (s += e.attrStr);
305
+ } else o += this.processTextOrObjNode(i, l, t, n, r);
306
+ } else if (this.options.oneListGroup) {
307
+ let e = this.options.tagValueProcessor(l, i);
308
+ e = this.replaceEntitiesValue(e), e = S(e), o += e;
309
+ } else {
310
+ n.push(l);
311
+ let e = this.checkStopNode(n);
312
+ if (n.pop(), e) {
313
+ let e = S(i);
314
+ o += e === "" ? this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : this.indentate(t) + "<" + l + ">" + e + "</" + l + this.tagEndChar;
315
+ } else o += this.buildTextValNode(i, l, "", t, n);
316
+ }
309
317
  }
310
318
  }
311
319
  this.options.oneListGroup && (o = this.buildObjectNode(o, l, s, t)), a += o;
312
320
  } else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
313
321
  let t = Object.keys(e[c]), a = t.length;
314
322
  for (let o = 0; o < a; o++) {
315
- let a = fe(t[o], !0, this.options, n, r);
316
- i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
323
+ let a = pe(t[o], !0, this.options, n, r);
324
+ i += this.buildAttrPairStr(a, S(e[c][t[o]]), s);
317
325
  }
318
326
  } else a += this.processTextOrObjNode(e[c], l, t, n, r);
319
327
  }
@@ -321,10 +329,10 @@ D.prototype.build = function(e) {
321
329
  attrStr: i,
322
330
  val: a
323
331
  };
324
- }, D.prototype.buildAttrPairStr = function(e, t, n) {
325
- return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + C(t) + "\"";
332
+ }, O.prototype.buildAttrPairStr = function(e, t, n) {
333
+ return n || (t = this.options.attributeValueProcessor(e, S(t)), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + w(t) + "\"";
326
334
  };
327
- function pe(e, t, n, r, i) {
335
+ function me(e, t, n, r, i) {
328
336
  let a = this.extractAttributes(e);
329
337
  if (r.push(t, a), this.checkStopNode(r)) {
330
338
  let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
@@ -333,7 +341,7 @@ function pe(e, t, n, r, i) {
333
341
  let o = this.j2x(e, n + 1, r, i);
334
342
  return r.pop(), t[0] === "?" ? this.buildTextValNode("", t, o.attrStr, n, r) : e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, o.attrStr, n, r) : this.buildObjectNode(o.val, t, o.attrStr, n);
335
343
  }
336
- D.prototype.extractAttributes = function(e) {
344
+ O.prototype.extractAttributes = function(e) {
337
345
  if (!e || typeof e != "object") return null;
338
346
  let t = {}, n = !1;
339
347
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -341,15 +349,15 @@ D.prototype.extractAttributes = function(e) {
341
349
  for (let e in r) {
342
350
  if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
343
351
  let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
344
- t[i] = C(r[e]), n = !0;
352
+ t[i] = w(r[e]), n = !0;
345
353
  }
346
354
  } else for (let r in e) {
347
355
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
348
356
  let i = this.isAttribute(r);
349
- i && (t[i] = C(e[r]), n = !0);
357
+ i && (t[i] = w(e[r]), n = !0);
350
358
  }
351
359
  return n ? t : null;
352
- }, D.prototype.buildRawContent = function(e) {
360
+ }, O.prototype.buildRawContent = function(e) {
353
361
  if (typeof e == "string") return e;
354
362
  if (typeof e != "object" || !e) return String(e);
355
363
  if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
@@ -370,7 +378,7 @@ D.prototype.extractAttributes = function(e) {
370
378
  } else t += `<${n}>${r}</${n}>`;
371
379
  }
372
380
  return t;
373
- }, D.prototype.buildAttributesForStopNode = function(e) {
381
+ }, O.prototype.buildAttributesForStopNode = function(e) {
374
382
  if (!e || typeof e != "object") return "";
375
383
  let t = "";
376
384
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -378,72 +386,72 @@ D.prototype.extractAttributes = function(e) {
378
386
  for (let e in n) {
379
387
  if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
380
388
  let r = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e, i = n[e];
381
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + C(i) + "\"";
389
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + w(i) + "\"";
382
390
  }
383
391
  } else for (let n in e) {
384
392
  if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
385
393
  let r = this.isAttribute(n);
386
394
  if (r) {
387
395
  let i = e[n];
388
- i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + C(i) + "\"";
396
+ i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + w(i) + "\"";
389
397
  }
390
398
  }
391
399
  return t;
392
- }, D.prototype.buildObjectNode = function(e, t, n, r) {
400
+ }, O.prototype.buildObjectNode = function(e, t, n, r) {
393
401
  if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
394
402
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
395
403
  {
396
404
  let i = "</" + t + this.tagEndChar, a = "";
397
- return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${x(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
405
+ return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${C(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
398
406
  }
399
- }, D.prototype.closeTag = function(e) {
407
+ }, O.prototype.closeTag = function(e) {
400
408
  let t = "";
401
409
  return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
402
- }, D.prototype.checkStopNode = function(e) {
410
+ }, O.prototype.checkStopNode = function(e) {
403
411
  if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
404
412
  for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
405
413
  return !1;
406
- }, D.prototype.buildTextValNode = function(e, t, n, r, i) {
414
+ }, O.prototype.buildTextValNode = function(e, t, n, r, i) {
407
415
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
408
- let t = S(e);
416
+ let t = ee(e);
409
417
  return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
410
418
  }
411
419
  if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
412
- let t = x(e);
420
+ let t = C(e);
413
421
  return this.indentate(r) + `<!--${t}-->` + this.newLine;
414
422
  }
415
423
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
416
424
  {
417
425
  let i = this.options.tagValueProcessor(t, e);
418
- return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
426
+ return i = this.replaceEntitiesValue(i), i = S(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
419
427
  }
420
- }, D.prototype.replaceEntitiesValue = function(e) {
428
+ }, O.prototype.replaceEntitiesValue = function(e) {
421
429
  if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
422
430
  let n = this.options.entities[t];
423
431
  e = e.replace(n.regex, n.val);
424
432
  }
425
433
  return e;
426
434
  };
427
- function me(e) {
435
+ function he(e) {
428
436
  return this.options.indentBy.repeat(e);
429
437
  }
430
- function he(e) {
438
+ function ge(e) {
431
439
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
432
440
  }
433
441
  //#endregion
434
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
435
- var ge = D, O = (e, { fileId: t, path: n, name: r }) => {
442
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
443
+ var _e = O, k = (e, { fileId: t, path: n, name: r }) => {
436
444
  if (n !== void 0) return i(e.webDavPath, n);
437
445
  if (t !== void 0) {
438
446
  if (a(e)) throw Error("public spaces need a path provided");
439
447
  return i("spaces", t, r || "");
440
448
  }
441
449
  return e.webDavPath;
442
- }, _e = (e, t) => ({ copyFiles(t, { path: n, fileId: r }, i, { path: a, parentFolderId: o, name: s }, { overwrite: c, ...l } = {}) {
443
- let u = O(t, {
450
+ }, ve = (e, t) => ({ copyFiles(t, { path: n, fileId: r }, i, { path: a, parentFolderId: o, name: s }, { overwrite: c, ...l } = {}) {
451
+ let u = k(t, {
444
452
  fileId: r,
445
453
  path: n
446
- }), d = O(i, {
454
+ }), d = k(i, {
447
455
  fileId: o,
448
456
  path: a,
449
457
  name: s
@@ -452,16 +460,16 @@ var ge = D, O = (e, { fileId: t, path: n, name: r }) => {
452
460
  overwrite: c || !1,
453
461
  ...l
454
462
  });
455
- } }), ve = (e, t, n) => ({ async createFolder(n, { path: r, parentFolderId: i, folderName: a, fetchFolder: o = !0, ...s }) {
456
- let c = O(n, {
463
+ } }), ye = (e, t, n) => ({ async createFolder(n, { path: r, parentFolderId: i, folderName: a, fetchFolder: o = !0, ...s }) {
464
+ let c = k(n, {
457
465
  fileId: i,
458
466
  path: r,
459
467
  name: a
460
468
  });
461
469
  if (await e.mkcol(c), o) return t.getFileInfo(n, { path: r }, s);
462
- } }), ye = (e, { axiosClient: t }) => ({ async getFileContents(n, { fileId: r, path: i }, { responseType: a = "text", noCache: o = !0, headers: s, ...c } = {}) {
470
+ } }), be = (e, { axiosClient: t }) => ({ async getFileContents(n, { fileId: r, path: i }, { responseType: a = "text", noCache: o = !0, headers: s, ...c } = {}) {
463
471
  try {
464
- let l = O(n, {
472
+ let l = k(n, {
465
473
  fileId: r,
466
474
  path: i
467
475
  }), u = await t.get(e.getFileUrl(l), {
@@ -483,107 +491,110 @@ var ge = D, O = (e, { fileId: t, path: n, name: r }) => {
483
491
  };
484
492
  } catch (e) {
485
493
  let { message: t, response: n } = e;
486
- throw new y(t, n, n.status);
494
+ throw new b(t, n, n.status);
487
495
  }
488
- } }), be = (e, t) => ({ async getFileInfo(t, n, r) {
496
+ } }), xe = (e, t) => ({ async getFileInfo(t, n, r) {
489
497
  return (await e.listFiles(t, n, {
490
498
  depth: 0,
491
499
  ...r
492
500
  })).resource;
493
- } }), xe = (e, t, n, { axiosClient: r, baseUrl: a }) => ({
494
- async getFileUrl(o, c, { disposition: l = "attachment", version: u = null, username: d = "", ...f }) {
495
- if (l === "inline") {
496
- let e = await t.getFileContents(o, c, {
501
+ } }), Se = (e, t, n, { axiosClient: r, baseUrl: a }) => ({
502
+ async getFileUrl(o, s, { disposition: c = "attachment", version: l = null, username: u = "", ...d }) {
503
+ if (c === "inline") {
504
+ let e = await t.getFileContents(o, s, {
497
505
  responseType: "blob",
498
- ...f
506
+ ...d
499
507
  });
500
508
  return URL.createObjectURL(e.body);
501
509
  }
502
- if (u) {
503
- if (!d) throw Error("username is required for URL signing");
504
- let t = e.getFileUrl(i("meta", c.fileId, "v", u));
505
- return await _(a, r).signUrl(t, d);
510
+ if (l) {
511
+ if (!u) throw Error("username is required for URL signing");
512
+ let t = e.getFileUrl(i("meta", s.fileId, "v", l));
513
+ return await v(a, r).signUrl(t, u);
506
514
  }
507
- if (c.downloadURL) return c.downloadURL;
508
- let { downloadURL: p } = await n.getFileInfo(o, c, { davProperties: [s.DownloadURL] });
509
- return p;
515
+ if (s.downloadURL) return s.downloadURL;
516
+ let { downloadURL: f } = await n.getFileInfo(o, s, { davProperties: [p.DownloadURL] });
517
+ return f;
510
518
  },
511
519
  revokeUrl: (e) => {
512
520
  e && e.startsWith("blob:") && URL.revokeObjectURL(e);
513
521
  }
514
- }), Se = (e, t) => ({ getPublicFileUrl(t, n) {
522
+ }), Ce = (e, t) => ({ getPublicFileUrl(t, n) {
515
523
  return e.getFileUrl(i("public-files", n));
516
- } }), Ce = (e, t, n) => ({ async listFiles(n, { path: r, fileId: u } = {}, { depth: p = 1, davProperties: m, isTrash: h = !1, ...g } = {}) {
517
- let _;
524
+ } }), we = (e, t, n) => ({ async listFiles(n, { path: r, fileId: l } = {}, { depth: u = 1, davProperties: m, extraProps: h = [], isTrash: g = !1, ..._ } = {}) {
525
+ let v = [...e.extraProps, ...h], y;
518
526
  if (a(n)) {
519
- _ = await e.propfind(i(n.webDavPath, r), {
520
- depth: p,
527
+ y = await e.propfind(i(n.webDavPath, r), {
528
+ depth: u,
521
529
  properties: m || o.PublicLink,
522
- ...g
523
- }), _.forEach((e) => {
530
+ extraProps: h,
531
+ ..._
532
+ }), y.forEach((e) => {
524
533
  e.filename = e.filename.split("/").slice(1).join("/");
525
- }), _.length === 1 && (_[0].filename = i(n.id, r, { leadingSlash: !0 })), _.forEach((e) => {
534
+ }), y.length === 1 && (y[0].filename = i(n.id, r, { leadingSlash: !0 })), y.forEach((e) => {
526
535
  e.filename = e.filename.split("/").slice(2).join("/");
527
536
  });
528
537
  let t = n.driveAlias.startsWith("ocm/") ? "ocm" : "public-link";
529
- if ((!r || r === "/") && p > 0 && t === "ocm" && _[0].props[s.PublicLinkItemType] === "file" && (_ = [{
538
+ if ((!r || r === "/") && u > 0 && t === "ocm" && y[0].props[p.PublicLinkItemType] === "file" && (y = [{
530
539
  basename: n.fileId,
531
540
  type: "directory",
532
541
  filename: "",
533
542
  props: {}
534
- }, ..._]), !r) {
535
- let [r, ...i] = _;
543
+ }, ...y]), !r) {
544
+ let [e, ...r] = y;
536
545
  return {
537
546
  resource: f({
538
- ...r,
547
+ ...e,
539
548
  id: n.id,
540
549
  driveAlias: n.driveAlias,
541
550
  webDavPath: n.webDavPath,
542
551
  publicLinkType: t
543
552
  }),
544
- children: i.map((t) => l(t, e.extraProps))
553
+ children: r.map((e) => c(e, v))
545
554
  };
546
555
  }
547
- let a = _.map((t) => l(t, e.extraProps));
556
+ let a = y.map((e) => c(e, v));
548
557
  return {
549
558
  resource: a[0],
550
559
  children: a.slice(1)
551
560
  };
552
561
  }
553
- let v = async () => {
554
- let e = await t.getPathForFileId(u);
562
+ let b = async () => {
563
+ let e = await t.getPathForFileId(l);
555
564
  return this.listFiles(n, { path: e }, {
556
- depth: p,
557
- davProperties: m
565
+ depth: u,
566
+ davProperties: m,
567
+ extraProps: h
558
568
  });
559
569
  };
560
570
  try {
561
571
  let t = "";
562
- if (t = h ? d(n.id) : O(n, {
563
- fileId: u,
572
+ if (t = g ? d(n.id) : k(n, {
573
+ fileId: l,
564
574
  path: r
565
- }), _ = await e.propfind(t, {
566
- depth: p,
575
+ }), y = await e.propfind(t, {
576
+ depth: u,
567
577
  properties: m || o.Default,
568
- ...g
569
- }), h) return {
570
- resource: l(_[0], e.extraProps),
571
- children: _.slice(1).map(c)
578
+ extraProps: h,
579
+ ..._
580
+ }), g) return {
581
+ resource: c(y[0], v),
582
+ children: y.slice(1).map(s)
572
583
  };
573
- let i = _.map((t) => l(t, e.extraProps)), a = u === n.id;
574
- return u && !a && i[0].fileId && u !== i[0].fileId ? v() : {
584
+ let i = y.map((e) => c(e, v)), a = l === n.id;
585
+ return l && !a && i[0].fileId && l !== i[0].fileId ? b() : {
575
586
  resource: i[0],
576
587
  children: i.slice(1)
577
588
  };
578
589
  } catch (e) {
579
- if (e.statusCode === 404 && u) return v();
590
+ if (e.statusCode === 404 && l) return b();
580
591
  throw e;
581
592
  }
582
- } }), we = (e, t) => ({ moveFiles(t, { path: n, fileId: r }, i, { path: a, parentFolderId: o, name: s }, { overwrite: c, ...l } = {}) {
583
- let u = O(t, {
593
+ } }), Te = (e, t) => ({ moveFiles(t, { path: n, fileId: r }, i, { path: a, parentFolderId: o, name: s }, { overwrite: c, ...l } = {}) {
594
+ let u = k(t, {
584
595
  fileId: r,
585
596
  path: n
586
- }), d = O(i, {
597
+ }), d = k(i, {
587
598
  fileId: o,
588
599
  path: a,
589
600
  name: s
@@ -592,8 +603,8 @@ var ge = D, O = (e, { fileId: t, path: n, name: r }) => {
592
603
  overwrite: c || !1,
593
604
  ...l
594
605
  });
595
- } }), Te = (e, t, n) => ({ async putFileContents(n, { fileName: r, path: i, parentFolderId: a, content: o = "", previousEntityTag: s = "", overwrite: c, onUploadProgress: l = null, ...u }) {
596
- let d = O(n, {
606
+ } }), Ee = (e, t, n) => ({ async putFileContents(n, { fileName: r, path: i, parentFolderId: a, content: o = "", previousEntityTag: s = "", overwrite: c, onUploadProgress: l = null, ...u }) {
607
+ let d = k(n, {
597
608
  fileId: a,
598
609
  name: r,
599
610
  path: i
@@ -607,49 +618,49 @@ var ge = D, O = (e, { fileId: t, path: n, name: r }) => {
607
618
  fileId: f.headers.get("Oc-Fileid"),
608
619
  path: i
609
620
  });
610
- } }), Ee = (e, t) => ({ deleteFile(t, { path: n, ...r }) {
621
+ } }), De = (e, t) => ({ deleteFile(t, { path: n, ...r }) {
611
622
  return e.delete(i(t.webDavPath, n), r);
612
- } }), De = (e, t) => ({ restoreFile(t, { id: n }, { path: r }, { overwrite: o, ...s } = {}) {
623
+ } }), Oe = (e, t) => ({ restoreFile(t, { id: n }, { path: r }, { overwrite: o, ...s } = {}) {
613
624
  if (a(t)) return;
614
625
  let c = i(t.webDavPath, r);
615
626
  return e.move(i(t.webDavTrashPath, n), c, {
616
627
  overwrite: o,
617
628
  ...s
618
629
  });
619
- } }), Oe = (e, t) => ({ restoreFileVersion(t, { parentFolderId: n, name: r, path: a }, o, s = {}) {
620
- let c = O(t, {
621
- path: a,
622
- fileId: n,
623
- name: r
624
- }), l = i("meta", n, "v", o, { leadingSlash: !0 }), u = i("files", c, { leadingSlash: !0 });
625
- return e.copy(l, u, s);
626
- } }), ke = (e, t) => ({ clearTrashBin(t, { id: n, ...r } = {}) {
630
+ } }), ke = (e, t) => ({ restoreFileVersion(t, { id: n, parentFolderId: r, name: a, path: o }, s, c = {}) {
631
+ let l = k(t, {
632
+ path: o,
633
+ fileId: r,
634
+ name: a
635
+ }), u = i("meta", n, "v", s, { leadingSlash: !0 }), d = i("files", l, { leadingSlash: !0 });
636
+ return e.copy(u, d, c);
637
+ } }), Ae = (e, t) => ({ clearTrashBin(t, { id: n, ...r } = {}) {
627
638
  let a = d(t.id);
628
639
  return n && (a = i(a, n)), e.delete(a, r);
629
- } }), Ae = (e, t) => ({ async search(t, { davProperties: n = o.Default, searchLimit: r, ...i }) {
630
- let { range: a, results: c } = await e.report("/spaces/", {
640
+ } }), je = (e, t) => ({ async search(t, { davProperties: n = o.Default, searchLimit: r, ...i }) {
641
+ let { range: a, results: s } = await e.report("/spaces/", {
631
642
  pattern: t,
632
643
  limit: r,
633
644
  properties: n,
634
645
  ...i
635
646
  });
636
647
  return {
637
- resources: c.map((t) => ({
638
- ...l(t, e.extraProps),
639
- highlights: t.props[s.Highlights] || ""
648
+ resources: s.map((t) => ({
649
+ ...c(t, e.extraProps),
650
+ highlights: t.props[p.Highlights] || ""
640
651
  })).filter((e, t, n) => n.findIndex((t) => t.id === e.id) === t),
641
652
  totalResults: a ? parseInt(a?.split("/")[1]) : null
642
653
  };
643
- } }), je = (e, t) => ({ async getPathForFileId(t, n = {}) {
654
+ } }), Me = (e, t) => ({ async getPathForFileId(t, n = {}) {
644
655
  return (await e.propfind(i("meta", t, { leadingSlash: !0 }), {
645
- properties: [s.MetaPathForUser],
656
+ properties: [p.MetaPathForUser],
646
657
  ...n
647
- }))[0].props[s.MetaPathForUser];
658
+ }))[0].props[p.MetaPathForUser];
648
659
  } });
649
660
  //#endregion
650
661
  //#region ../../node_modules/.pnpm/webdav@5.9.0/node_modules/webdav/dist/web/index.js
651
662
  e();
652
- var Me = {
663
+ var Ne = {
653
664
  2: (e) => {
654
665
  function t(e, t, i) {
655
666
  e instanceof RegExp && (e = n(e, i)), t instanceof RegExp && (t = n(t, i));
@@ -852,27 +863,27 @@ var Me = {
852
863
  return i.pre + _[0] + e;
853
864
  }));
854
865
  if (x) {
855
- var C = l(_[0]), ee = l(_[1]), te = Math.max(_[0].length, _[1].length), ne = _.length == 3 ? Math.abs(l(_[2])) : 1, re = m;
856
- ee < C && (ne *= -1, re = h);
857
- var ie = _.some(p);
866
+ var C = l(_[0]), ee = l(_[1]), w = Math.max(_[0].length, _[1].length), te = _.length == 3 ? Math.abs(l(_[2])) : 1, ne = m;
867
+ ee < C && (te *= -1, ne = h);
868
+ var re = _.some(p);
858
869
  v = [];
859
- for (var w = C; re(w, ee); w += ne) {
860
- var T;
861
- if (b) (T = String.fromCharCode(w)) === "\\" && (T = "");
862
- else if (T = String(w), ie) {
863
- var ae = te - T.length;
864
- if (ae > 0) {
865
- var oe = Array(ae + 1).join("0");
866
- T = w < 0 ? "-" + oe + T.slice(1) : oe + T;
870
+ for (var T = C; ne(T, ee); T += te) {
871
+ var E;
872
+ if (b) (E = String.fromCharCode(T)) === "\\" && (E = "");
873
+ else if (E = String(T), re) {
874
+ var ie = w - E.length;
875
+ if (ie > 0) {
876
+ var ae = Array(ie + 1).join("0");
877
+ E = T < 0 ? "-" + ae + E.slice(1) : ae + E;
867
878
  }
868
879
  }
869
- v.push(T);
880
+ v.push(E);
870
881
  }
871
882
  } else {
872
883
  v = [];
873
- for (var E = 0; E < _.length; E++) v.push.apply(v, g(_[E], !1));
884
+ for (var D = 0; D < _.length; D++) v.push.apply(v, g(_[D], !1));
874
885
  }
875
- for (E = 0; E < v.length; E++) for (c = 0; c < s.length; c++) u = a + v[E] + s[c], (!t || x || u) && n.push(u);
886
+ for (D = 0; D < v.length; D++) for (c = 0; c < s.length; c++) u = a + v[D] + s[c], (!t || x || u) && n.push(u);
876
887
  }
877
888
  return n;
878
889
  }
@@ -1316,40 +1327,40 @@ var Me = {
1316
1327
  ObjectPrototypeMutationError: o
1317
1328
  };
1318
1329
  }
1319
- }, Ne = {};
1320
- function k(e) {
1321
- var t = Ne[e];
1330
+ }, Pe = {};
1331
+ function A(e) {
1332
+ var t = Pe[e];
1322
1333
  if (t !== void 0) return t.exports;
1323
- var n = Ne[e] = {
1334
+ var n = Pe[e] = {
1324
1335
  id: e,
1325
1336
  loaded: !1,
1326
1337
  exports: {}
1327
1338
  };
1328
- return Me[e].call(n.exports, n, n.exports, k), n.loaded = !0, n.exports;
1339
+ return Ne[e].call(n.exports, n, n.exports, A), n.loaded = !0, n.exports;
1329
1340
  }
1330
- k.n = (e) => {
1341
+ A.n = (e) => {
1331
1342
  var t = e && e.__esModule ? () => e.default : () => e;
1332
- return k.d(t, { a: t }), t;
1333
- }, k.d = (e, t) => {
1334
- for (var n in t) k.o(t, n) && !k.o(e, n) && Object.defineProperty(e, n, {
1343
+ return A.d(t, { a: t }), t;
1344
+ }, A.d = (e, t) => {
1345
+ for (var n in t) A.o(t, n) && !A.o(e, n) && Object.defineProperty(e, n, {
1335
1346
  enumerable: !0,
1336
1347
  get: t[n]
1337
1348
  });
1338
- }, k.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), k.nmd = (e) => (e.paths = [], e.children ||= [], e);
1339
- var Pe = k(737), Fe = k.n(Pe);
1340
- function Ie(e) {
1341
- if (!Le(e)) throw Error("Parameter was not an error");
1342
- }
1349
+ }, A.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), A.nmd = (e) => (e.paths = [], e.children ||= [], e);
1350
+ var Fe = A(737), Ie = A.n(Fe);
1343
1351
  function Le(e) {
1352
+ if (!Re(e)) throw Error("Parameter was not an error");
1353
+ }
1354
+ function Re(e) {
1344
1355
  return !!e && typeof e == "object" && (t = e, Object.prototype.toString.call(t) === "[object Error]") || e instanceof Error;
1345
1356
  var t;
1346
1357
  }
1347
- var A = class e extends Error {
1358
+ var j = class e extends Error {
1348
1359
  constructor(e, t) {
1349
1360
  let { options: n, shortMessage: r } = function(e) {
1350
1361
  let t, n = "";
1351
1362
  if (e.length === 0) t = {};
1352
- else if (Le(e[0])) t = { cause: e[0] }, n = e.slice(1).join(" ") || "";
1363
+ else if (Re(e[0])) t = { cause: e[0] }, n = e.slice(1).join(" ") || "";
1353
1364
  else if (e[0] && typeof e[0] == "object") t = Object.assign({}, e[0]), n = e.slice(1).join(" ") || "";
1354
1365
  else {
1355
1366
  if (typeof e[0] != "string") throw Error("Invalid arguments passed to Layerr");
@@ -1366,15 +1377,15 @@ var A = class e extends Error {
1366
1377
  }
1367
1378
  }
1368
1379
  static cause(e) {
1369
- return Ie(e), e._cause && Le(e._cause) ? e._cause : null;
1380
+ return Le(e), e._cause && Re(e._cause) ? e._cause : null;
1370
1381
  }
1371
1382
  static fullStack(t) {
1372
- Ie(t);
1383
+ Le(t);
1373
1384
  let n = e.cause(t);
1374
1385
  return n ? `${t.stack}\ncaused by: ${e.fullStack(n)}` : t.stack ?? "";
1375
1386
  }
1376
1387
  static info(t) {
1377
- Ie(t);
1388
+ Le(t);
1378
1389
  let n = {}, r = e.cause(t);
1379
1390
  return r && Object.assign(n, e.info(r)), t._info && Object.assign(n, t._info), n;
1380
1391
  }
@@ -1382,27 +1393,27 @@ var A = class e extends Error {
1382
1393
  let e = this.name || this.constructor.name || this.constructor.prototype.name;
1383
1394
  return this.message && (e = `${e}: ${this.message}`), e;
1384
1395
  }
1385
- }, Re = k(47), ze = k.n(Re), Be = "__PATH_SEPARATOR_POSIX__", Ve = "__PATH_SEPARATOR_WINDOWS__";
1386
- function j(e) {
1396
+ }, ze = A(47), Be = A.n(ze), Ve = "__PATH_SEPARATOR_POSIX__", He = "__PATH_SEPARATOR_WINDOWS__";
1397
+ function M(e) {
1387
1398
  try {
1388
- let t = e.replace(/\//g, Be).replace(/\\\\/g, Ve);
1389
- return encodeURIComponent(t).split(Ve).join("\\\\").split(Be).join("/");
1399
+ let t = e.replace(/\//g, Ve).replace(/\\\\/g, He);
1400
+ return encodeURIComponent(t).split(He).join("\\\\").split(Ve).join("/");
1390
1401
  } catch (e) {
1391
- throw new A(e, "Failed encoding path");
1402
+ throw new j(e, "Failed encoding path");
1392
1403
  }
1393
1404
  }
1394
- function He(e) {
1405
+ function Ue(e) {
1395
1406
  return e.startsWith("/") ? e : "/" + e;
1396
1407
  }
1397
- function Ue(e) {
1408
+ function We(e) {
1398
1409
  let t = e;
1399
1410
  return t[0] !== "/" && (t = "/" + t), /^.+\/$/.test(t) && (t = t.substr(0, t.length - 1)), t;
1400
1411
  }
1401
- function We(e) {
1402
- let t = new (Fe())(e).pathname;
1403
- return t.length <= 0 && (t = "/"), Ue(t);
1412
+ function Ge(e) {
1413
+ let t = new (Ie())(e).pathname;
1414
+ return t.length <= 0 && (t = "/"), We(t);
1404
1415
  }
1405
- function M() {
1416
+ function N() {
1406
1417
  return function() {
1407
1418
  return function(e) {
1408
1419
  var t = [];
@@ -1419,12 +1430,12 @@ function M() {
1419
1430
  }(typeof arguments[0] == "object" ? arguments[0] : [].slice.call(arguments));
1420
1431
  }([...arguments].reduce(((e, t, n) => ((n === 0 || t !== "/" || t === "/" && e[e.length - 1] !== "/") && e.push(t), e)), []));
1421
1432
  }
1422
- var Ge = k(542), Ke = k.n(Ge);
1423
- function qe(e, t) {
1433
+ var Ke = A(542), qe = A.n(Ke);
1434
+ function Je(e, t) {
1424
1435
  let n = e.url.replace("//", ""), r = n.indexOf("/") == -1 ? "/" : n.slice(n.indexOf("/")), i = e.method ? e.method.toUpperCase() : "GET", a = !!/(^|,)\s*auth\s*($|,)/.test(t.qop) && "auth", o = `00000000${t.nc}`.slice(-8), s = function(e, t, n, r, i, a, o) {
1425
- let s = o || Ke()(`${t}:${n}:${r}`);
1426
- return e && e.toLowerCase() === "md5-sess" ? Ke()(`${s}:${i}:${a}`) : s;
1427
- }(t.algorithm, t.username, t.realm, t.password, t.nonce, t.cnonce, t.ha1), c = Ke()(`${i}:${r}`), l = a ? Ke()(`${s}:${t.nonce}:${o}:${t.cnonce}:${a}:${c}`) : Ke()(`${s}:${t.nonce}:${c}`), u = {
1436
+ let s = o || qe()(`${t}:${n}:${r}`);
1437
+ return e && e.toLowerCase() === "md5-sess" ? qe()(`${s}:${i}:${a}`) : s;
1438
+ }(t.algorithm, t.username, t.realm, t.password, t.nonce, t.cnonce, t.ha1), c = qe()(`${i}:${r}`), l = a ? qe()(`${s}:${t.nonce}:${o}:${t.cnonce}:${a}:${c}`) : qe()(`${s}:${t.nonce}:${c}`), u = {
1428
1439
  username: t.username,
1429
1440
  realm: t.realm,
1430
1441
  nonce: t.nonce,
@@ -1439,30 +1450,30 @@ function qe(e, t) {
1439
1450
  for (let e in u) u[e] && (e === "qop" || e === "nc" || e === "algorithm" ? d.push(`${e}=${u[e]}`) : d.push(`${e}="${u[e]}"`));
1440
1451
  return `Digest ${d.join(", ")}`;
1441
1452
  }
1442
- function Je(e) {
1453
+ function Ye(e) {
1443
1454
  return (e.headers && e.headers.get("www-authenticate") || "").split(/\s/)[0].toLowerCase() === "digest";
1444
1455
  }
1445
- var Ye = k(101), Xe = k.n(Ye);
1446
- function Ze(e) {
1447
- return Xe().decode(e);
1456
+ var Xe = A(101), Ze = A.n(Xe);
1457
+ function Qe(e) {
1458
+ return Ze().decode(e);
1448
1459
  }
1449
- function Qe(e, t) {
1460
+ function $e(e, t) {
1450
1461
  var n;
1451
- return `Basic ${n = `${e}:${t}`, Xe().encode(n)}`;
1462
+ return `Basic ${n = `${e}:${t}`, Ze().encode(n)}`;
1452
1463
  }
1453
- var $e = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : typeof window < "u" ? window : globalThis, et = $e.fetch.bind($e);
1454
- $e.Headers, $e.Request, $e.Response;
1455
- var N = function(e) {
1464
+ var et = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : typeof window < "u" ? window : globalThis, tt = et.fetch.bind(et);
1465
+ et.Headers, et.Request, et.Response;
1466
+ var P = function(e) {
1456
1467
  return e.Auto = "auto", e.Digest = "digest", e.None = "none", e.Password = "password", e.Token = "token", e;
1457
- }({}), P = function(e) {
1468
+ }({}), F = function(e) {
1458
1469
  return e.DataTypeNoLength = "data-type-no-length", e.InvalidAuthType = "invalid-auth-type", e.InvalidOutputFormat = "invalid-output-format", e.LinkUnsupportedAuthType = "link-unsupported-auth", e.InvalidUpdateRange = "invalid-update-range", e.NotSupported = "not-supported", e;
1459
1470
  }({});
1460
- function tt(e, t, n, r, i) {
1471
+ function nt(e, t, n, r, i) {
1461
1472
  switch (e.authType) {
1462
- case N.Auto:
1463
- t && n && (e.headers.Authorization = Qe(t, n));
1473
+ case P.Auto:
1474
+ t && n && (e.headers.Authorization = $e(t, n));
1464
1475
  break;
1465
- case N.Digest:
1476
+ case P.Digest:
1466
1477
  e.digest = function(e, t, n) {
1467
1478
  return {
1468
1479
  username: e,
@@ -1474,32 +1485,32 @@ function tt(e, t, n, r, i) {
1474
1485
  };
1475
1486
  }(t, n, i);
1476
1487
  break;
1477
- case N.None: break;
1478
- case N.Password:
1479
- e.headers.Authorization = Qe(t, n);
1488
+ case P.None: break;
1489
+ case P.Password:
1490
+ e.headers.Authorization = $e(t, n);
1480
1491
  break;
1481
- case N.Token:
1492
+ case P.Token:
1482
1493
  e.headers.Authorization = `${(a = r).token_type} ${a.access_token}`;
1483
1494
  break;
1484
- default: throw new A({ info: { code: P.InvalidAuthType } }, `Invalid auth type: ${e.authType}`);
1495
+ default: throw new j({ info: { code: F.InvalidAuthType } }, `Invalid auth type: ${e.authType}`);
1485
1496
  }
1486
1497
  var a;
1487
1498
  }
1488
- k(345), k(800);
1489
- var nt = "@@HOTPATCHER", rt = () => {};
1490
- function it(e) {
1499
+ A(345), A(800);
1500
+ var rt = "@@HOTPATCHER", it = () => {};
1501
+ function at(e) {
1491
1502
  return {
1492
1503
  original: e,
1493
1504
  methods: [e],
1494
1505
  final: !1
1495
1506
  };
1496
1507
  }
1497
- var at = class {
1508
+ var ot = class {
1498
1509
  constructor() {
1499
1510
  this._configuration = {
1500
1511
  registry: {},
1501
1512
  getEmptyAction: "null"
1502
- }, this.__type__ = nt;
1513
+ }, this.__type__ = rt;
1503
1514
  }
1504
1515
  get configuration() {
1505
1516
  return this._configuration;
@@ -1512,13 +1523,13 @@ var at = class {
1512
1523
  }
1513
1524
  control(e) {
1514
1525
  let t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
1515
- if (!e || e.__type__ !== nt) throw Error("Failed taking control of target HotPatcher instance: Invalid type or object");
1526
+ if (!e || e.__type__ !== rt) throw Error("Failed taking control of target HotPatcher instance: Invalid type or object");
1516
1527
  return Object.keys(e.configuration.registry).forEach(((n) => {
1517
1528
  this.configuration.registry.hasOwnProperty(n) ? t && (this.configuration.registry[n] = Object.assign({}, e.configuration.registry[n])) : this.configuration.registry[n] = Object.assign({}, e.configuration.registry[n]);
1518
1529
  })), e._configuration = this.configuration, this;
1519
1530
  }
1520
1531
  execute(e) {
1521
- return (this.get(e) || rt)(...[...arguments].slice(1));
1532
+ return (this.get(e) || it)(...[...arguments].slice(1));
1522
1533
  }
1523
1534
  get(e) {
1524
1535
  let t = this.configuration.registry[e];
@@ -1544,11 +1555,11 @@ var at = class {
1544
1555
  let { chain: n = !1 } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1545
1556
  if (this.configuration.registry[e] && this.configuration.registry[e].final) throw Error(`Failed patching '${e}': Method marked as being final`);
1546
1557
  if (typeof t != "function") throw Error(`Failed patching '${e}': Provided method is not a function`);
1547
- if (n) this.configuration.registry[e] ? this.configuration.registry[e].methods.push(t) : this.configuration.registry[e] = it(t);
1558
+ if (n) this.configuration.registry[e] ? this.configuration.registry[e].methods.push(t) : this.configuration.registry[e] = at(t);
1548
1559
  else if (this.isPatched(e)) {
1549
1560
  let { original: n } = this.configuration.registry[e];
1550
- this.configuration.registry[e] = Object.assign(it(t), { original: n });
1551
- } else this.configuration.registry[e] = it(t);
1561
+ this.configuration.registry[e] = Object.assign(at(t), { original: n });
1562
+ } else this.configuration.registry[e] = at(t);
1552
1563
  return this;
1553
1564
  }
1554
1565
  patchInline(e, t) {
@@ -1570,11 +1581,11 @@ var at = class {
1570
1581
  if (!this.configuration.registry.hasOwnProperty(e)) throw Error(`Failed marking '${e}' as final: No method found for key`);
1571
1582
  return this.configuration.registry[e].final = !0, this;
1572
1583
  }
1573
- }, ot = null;
1574
- function st() {
1575
- return ot ||= new at(), ot;
1584
+ }, st = null;
1585
+ function ct() {
1586
+ return st ||= new ot(), st;
1576
1587
  }
1577
- function ct(e) {
1588
+ function lt(e) {
1578
1589
  return function(e) {
1579
1590
  if (typeof e != "object" || !e || Object.prototype.toString.call(e) != "[object Object]") return !1;
1580
1591
  if (Object.getPrototypeOf(e) === null) return !0;
@@ -1583,27 +1594,27 @@ function ct(e) {
1583
1594
  return Object.getPrototypeOf(e) === t;
1584
1595
  }(e) ? Object.assign({}, e) : Object.setPrototypeOf(Object.assign({}, e), Object.getPrototypeOf(e));
1585
1596
  }
1586
- function lt() {
1597
+ function ut() {
1587
1598
  var e = [...arguments];
1588
1599
  let t = null, n = [...e];
1589
1600
  for (; n.length > 0;) {
1590
1601
  let e = n.shift();
1591
- t = t ? ut(t, e) : ct(e);
1602
+ t = t ? dt(t, e) : lt(e);
1592
1603
  }
1593
1604
  return t;
1594
1605
  }
1595
- function ut(e, t) {
1596
- let n = ct(e);
1606
+ function dt(e, t) {
1607
+ let n = lt(e);
1597
1608
  return Object.keys(t).forEach(((e) => {
1598
- n.hasOwnProperty(e) ? Array.isArray(t[e]) ? n[e] = Array.isArray(n[e]) ? [...n[e], ...t[e]] : [...t[e]] : typeof t[e] == "object" && t[e] ? n[e] = typeof n[e] == "object" && n[e] ? ut(n[e], t[e]) : ct(t[e]) : n[e] = t[e] : n[e] = t[e];
1609
+ n.hasOwnProperty(e) ? Array.isArray(t[e]) ? n[e] = Array.isArray(n[e]) ? [...n[e], ...t[e]] : [...t[e]] : typeof t[e] == "object" && t[e] ? n[e] = typeof n[e] == "object" && n[e] ? dt(n[e], t[e]) : lt(t[e]) : n[e] = t[e] : n[e] = t[e];
1599
1610
  })), n;
1600
1611
  }
1601
- function dt(e) {
1612
+ function ft(e) {
1602
1613
  let t = {};
1603
1614
  for (let n of e.keys()) t[n] = e.get(n);
1604
1615
  return t;
1605
1616
  }
1606
- function ft() {
1617
+ function pt() {
1607
1618
  var e = [...arguments];
1608
1619
  if (e.length === 0) return {};
1609
1620
  let t = {};
@@ -1612,15 +1623,15 @@ function ft() {
1612
1623
  t.hasOwnProperty(i) ? e[t[i]] = n[r] : (t[i] = r, e[r] = n[r]);
1613
1624
  })), e)), {});
1614
1625
  }
1615
- k(805);
1616
- var pt = typeof ArrayBuffer == "function", { toString: mt } = Object.prototype;
1617
- function ht(e) {
1618
- return pt && (e instanceof ArrayBuffer || mt.call(e) === "[object ArrayBuffer]");
1619
- }
1626
+ A(805);
1627
+ var mt = typeof ArrayBuffer == "function", { toString: ht } = Object.prototype;
1620
1628
  function gt(e) {
1621
- return e != null && e.constructor != null && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
1629
+ return mt && (e instanceof ArrayBuffer || ht.call(e) === "[object ArrayBuffer]");
1622
1630
  }
1623
1631
  function _t(e) {
1632
+ return e != null && e.constructor != null && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
1633
+ }
1634
+ function vt(e) {
1624
1635
  return function() {
1625
1636
  var t = [...arguments];
1626
1637
  try {
@@ -1630,18 +1641,18 @@ function _t(e) {
1630
1641
  }
1631
1642
  };
1632
1643
  }
1633
- function vt(e, t, n) {
1644
+ function yt(e, t, n) {
1634
1645
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
1635
1646
  }
1636
- var yt = _t((function(e) {
1647
+ var bt = vt((function(e) {
1637
1648
  let t = e._digest;
1638
- return delete e._digest, t.hasDigestAuth && (e = lt(e, { headers: { Authorization: qe(e, t) } })), vt(xt(e), (function(n) {
1649
+ return delete e._digest, t.hasDigestAuth && (e = ut(e, { headers: { Authorization: Je(e, t) } })), yt(St(e), (function(n) {
1639
1650
  let r = !1;
1640
1651
  return i = function(e) {
1641
1652
  return r ? e : n;
1642
1653
  }, (a = function() {
1643
1654
  if (n.status == 401) return t.hasDigestAuth = function(e, t) {
1644
- if (!Je(e)) return !1;
1655
+ if (!Ye(e)) return !1;
1645
1656
  let n = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;
1646
1657
  for (;;) {
1647
1658
  let r = e.headers && e.headers.get("www-authenticate") || "", i = n.exec(r);
@@ -1654,7 +1665,7 @@ var yt = _t((function(e) {
1654
1665
  return e;
1655
1666
  }(), !0;
1656
1667
  }(n, t), function() {
1657
- if (t.hasDigestAuth) return vt(xt(e = lt(e, { headers: { Authorization: qe(e, t) } })), (function(e) {
1668
+ if (t.hasDigestAuth) return yt(St(e = ut(e, { headers: { Authorization: Je(e, t) } })), (function(e) {
1658
1669
  return e.status == 401 ? t.hasDigestAuth = !1 : t.nc++, r = !0, e;
1659
1670
  }));
1660
1671
  }();
@@ -1662,36 +1673,36 @@ var yt = _t((function(e) {
1662
1673
  }()) && a.then ? a.then(i) : i(a);
1663
1674
  var i, a;
1664
1675
  }));
1665
- })), bt = _t((function(e, t) {
1666
- return vt(xt(e), (function(n) {
1667
- return n.ok ? (t.authType = N.Password, n) : n.status == 401 && Je(n) ? (t.authType = N.Digest, tt(t, t.username, t.password, void 0, void 0), e._digest = t.digest, yt(e)) : n;
1676
+ })), xt = vt((function(e, t) {
1677
+ return yt(St(e), (function(n) {
1678
+ return n.ok ? (t.authType = P.Password, n) : n.status == 401 && Ye(n) ? (t.authType = P.Digest, nt(t, t.username, t.password, void 0, void 0), e._digest = t.digest, bt(e)) : n;
1668
1679
  }));
1669
- })), F = _t((function(e, t) {
1670
- return t.authType === N.Auto ? bt(e, t) : e._digest ? yt(e) : xt(e);
1680
+ })), I = vt((function(e, t) {
1681
+ return t.authType === P.Auto ? xt(e, t) : e._digest ? bt(e) : St(e);
1671
1682
  }));
1672
- function I(e, t, n) {
1673
- let r = ct(e);
1674
- return r.headers = ft(t.headers, r.headers || {}, n.headers || {}), n.data !== void 0 && (r.data = n.data), n.signal && (r.signal = n.signal), t.httpAgent && (r.httpAgent = t.httpAgent), t.httpsAgent && (r.httpsAgent = t.httpsAgent), t.digest && (r._digest = t.digest), typeof t.withCredentials == "boolean" && (r.withCredentials = t.withCredentials), r;
1683
+ function L(e, t, n) {
1684
+ let r = lt(e);
1685
+ return r.headers = pt(t.headers, r.headers || {}, n.headers || {}), n.data !== void 0 && (r.data = n.data), n.signal && (r.signal = n.signal), t.httpAgent && (r.httpAgent = t.httpAgent), t.httpsAgent && (r.httpsAgent = t.httpsAgent), t.digest && (r._digest = t.digest), typeof t.withCredentials == "boolean" && (r.withCredentials = t.withCredentials), r;
1675
1686
  }
1676
- function xt(e) {
1677
- let t = st();
1678
- return t.patchInline("request", ((e) => t.patchInline("fetch", et, e.url, function(e) {
1687
+ function St(e) {
1688
+ let t = ct();
1689
+ return t.patchInline("request", ((e) => t.patchInline("fetch", tt, e.url, function(e) {
1679
1690
  let t = {}, n = { method: e.method };
1680
- if (e.headers && (t = ft(t, e.headers)), e.data !== void 0) {
1691
+ if (e.headers && (t = pt(t, e.headers)), e.data !== void 0) {
1681
1692
  let [r, i] = function(e) {
1682
- if (typeof e == "string" || gt(e) || ht(e)) return [e, {}];
1693
+ if (typeof e == "string" || _t(e) || gt(e)) return [e, {}];
1683
1694
  if (e && typeof e == "object") return [JSON.stringify(e), { "content-type": "application/json" }];
1684
1695
  throw Error("Unable to convert request body: Unexpected body type: " + typeof e);
1685
1696
  }(e.data);
1686
- n.body = r, t = ft(t, i);
1697
+ n.body = r, t = pt(t, i);
1687
1698
  }
1688
1699
  return e.signal && (n.signal = e.signal), e.withCredentials && (n.credentials = "include"), n.headers = t, n;
1689
1700
  }(e))), e);
1690
1701
  }
1691
- var St = k(285), Ct = (e) => {
1702
+ var Ct = A(285), wt = (e) => {
1692
1703
  if (typeof e != "string") throw TypeError("invalid pattern");
1693
1704
  if (e.length > 65536) throw TypeError("pattern is too long");
1694
- }, wt = {
1705
+ }, Tt = {
1695
1706
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0],
1696
1707
  "[:alpha:]": ["\\p{L}\\p{Nl}", !0],
1697
1708
  "[:ascii:]": ["\\x00-\\x7f", !1],
@@ -1710,7 +1721,7 @@ var St = k(285), Ct = (e) => {
1710
1721
  "[:upper:]": ["\\p{Lu}", !0],
1711
1722
  "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0],
1712
1723
  "[:xdigit:]": ["A-Fa-f0-9", !1]
1713
- }, Tt = (e) => e.replace(/[[\]\\-]/g, "\\$&"), Et = (e) => e.join(""), Dt = (e, t) => {
1724
+ }, Et = (e) => e.replace(/[[\]\\-]/g, "\\$&"), Dt = (e) => e.join(""), Ot = (e, t) => {
1714
1725
  let n = t;
1715
1726
  if (e.charAt(n) !== "[") throw Error("not in a brace expression");
1716
1727
  let r = [], i = [], a = n + 1, o = !1, s = !1, c = !1, l = !1, u = n, d = "";
@@ -1723,7 +1734,7 @@ var St = k(285), Ct = (e) => {
1723
1734
  }
1724
1735
  if (o = !0, t !== "\\" || c) {
1725
1736
  if (t === "[" && !c) {
1726
- for (let [t, [o, c, l]] of Object.entries(wt)) if (e.startsWith(t, a)) {
1737
+ for (let [t, [o, c, l]] of Object.entries(Tt)) if (e.startsWith(t, a)) {
1727
1738
  if (d) return [
1728
1739
  "$.",
1729
1740
  !1,
@@ -1734,7 +1745,7 @@ var St = k(285), Ct = (e) => {
1734
1745
  continue t;
1735
1746
  }
1736
1747
  }
1737
- c = !1, d ? (t > d ? r.push(Tt(d) + "-" + Tt(t)) : t === d && r.push(Tt(t)), d = "", a++) : e.startsWith("-]", a + 1) ? (r.push(Tt(t + "-")), a += 2) : e.startsWith("-", a + 1) ? (d = t, a += 2) : (r.push(Tt(t)), a++);
1748
+ c = !1, d ? (t > d ? r.push(Et(d) + "-" + Et(t)) : t === d && r.push(Et(t)), d = "", a++) : e.startsWith("-]", a + 1) ? (r.push(Et(t + "-")), a += 2) : e.startsWith("-", a + 1) ? (d = t, a += 2) : (r.push(Et(t)), a++);
1738
1749
  } else c = !0, a++;
1739
1750
  } else l = !0, a++;
1740
1751
  }
@@ -1757,23 +1768,23 @@ var St = k(285), Ct = (e) => {
1757
1768
  !1
1758
1769
  ];
1759
1770
  var f;
1760
- let p = "[" + (l ? "^" : "") + Et(r) + "]", m = "[" + (l ? "" : "^") + Et(i) + "]";
1771
+ let p = "[" + (l ? "^" : "") + Dt(r) + "]", m = "[" + (l ? "" : "^") + Dt(i) + "]";
1761
1772
  return [
1762
1773
  r.length && i.length ? "(" + p + "|" + m + ")" : r.length ? p : m,
1763
1774
  s,
1764
1775
  u - n,
1765
1776
  !0
1766
1777
  ];
1767
- }, Ot = function(e) {
1778
+ }, kt = function(e) {
1768
1779
  let { windowsPathsNoEscape: t = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1769
1780
  return t ? e.replace(/\[([^\/\\])\]/g, "$1") : e.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
1770
- }, kt = /* @__PURE__ */ new Set([
1781
+ }, At = /* @__PURE__ */ new Set([
1771
1782
  "!",
1772
1783
  "?",
1773
1784
  "+",
1774
1785
  "*",
1775
1786
  "@"
1776
- ]), At = (e) => kt.has(e), jt = "(?!\\.)", Mt = /* @__PURE__ */ new Set(["[", "."]), Nt = /* @__PURE__ */ new Set(["..", "."]), Pt = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), Ft = "[^/]", It = "[^/]*?", Lt = "[^/]+?", Rt = class e {
1787
+ ]), jt = (e) => At.has(e), Mt = "(?!\\.)", Nt = /* @__PURE__ */ new Set(["[", "."]), Pt = /* @__PURE__ */ new Set(["..", "."]), Ft = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), It = "[^/]", Lt = "[^/]*?", Rt = "[^/]+?", zt = class e {
1777
1788
  type;
1778
1789
  #e;
1779
1790
  #t;
@@ -1860,13 +1871,14 @@ var St = k(285), Ct = (e) => {
1860
1871
  let r = t.charAt(l++);
1861
1872
  if (a || r === "\\") a = !a, u += r;
1862
1873
  else if (o) l === s + 1 ? r !== "^" && r !== "!" || (c = !0) : r !== "]" || l === s + 2 && c || (o = !1), u += r;
1863
- else if (r !== "[") if (i.noext || !At(r) || t.charAt(l) !== "(") u += r;
1864
- else {
1865
- n.push(u), u = "";
1866
- let a = new e(r, n);
1867
- l = e.#f(t, a, l, i), n.push(a);
1868
- }
1869
- else o = !0, s = l, c = !1, u += r;
1874
+ else if (r !== "[") {
1875
+ if (i.noext || !jt(r) || t.charAt(l) !== "(") u += r;
1876
+ else {
1877
+ n.push(u), u = "";
1878
+ let a = new e(r, n);
1879
+ l = e.#f(t, a, l, i), n.push(a);
1880
+ }
1881
+ } else o = !0, s = l, c = !1, u += r;
1870
1882
  }
1871
1883
  return n.push(u), l;
1872
1884
  }
@@ -1875,15 +1887,16 @@ var St = k(285), Ct = (e) => {
1875
1887
  let r = t.charAt(l++);
1876
1888
  if (a || r === "\\") a = !a, f += r;
1877
1889
  else if (o) l === s + 1 ? r !== "^" && r !== "!" || (c = !0) : r !== "]" || l === s + 2 && c || (o = !1), f += r;
1878
- else if (r !== "[") if (At(r) && t.charAt(l) === "(") {
1879
- u.push(f), f = "";
1880
- let n = new e(r, u);
1881
- u.push(n), l = e.#f(t, n, l, i);
1882
- } else if (r !== "|") {
1883
- if (r === ")") return f === "" && n.#r.length === 0 && (n.#u = !0), u.push(f), f = "", n.push(...d, u), l;
1884
- f += r;
1885
- } else u.push(f), f = "", d.push(u), u = new e(null, n);
1886
- else o = !0, s = l, c = !1, f += r;
1890
+ else if (r !== "[") {
1891
+ if (jt(r) && t.charAt(l) === "(") {
1892
+ u.push(f), f = "";
1893
+ let n = new e(r, u);
1894
+ u.push(n), l = e.#f(t, n, l, i);
1895
+ } else if (r !== "|") {
1896
+ if (r === ")") return f === "" && n.#r.length === 0 && (n.#u = !0), u.push(f), f = "", n.push(...d, u), l;
1897
+ f += r;
1898
+ } else u.push(f), f = "", d.push(u), u = new e(null, n);
1899
+ } else o = !0, s = l, c = !1, f += r;
1887
1900
  }
1888
1901
  return n.type = null, n.#t = void 0, n.#r = [t.substring(r - 1)], l;
1889
1902
  }
@@ -1911,14 +1924,14 @@ var St = k(285), Ct = (e) => {
1911
1924
  let [i, a, o, s] = typeof n == "string" ? e.#m(n, this.#t, r) : n.toRegExpSource(t);
1912
1925
  return this.#t = this.#t || o, this.#n = this.#n || s, i;
1913
1926
  })).join(""), a = "";
1914
- if (this.isStart() && typeof this.#r[0] == "string" && (this.#r.length !== 1 || !Nt.has(this.#r[0]))) {
1915
- let e = Mt, r = n && e.has(i.charAt(0)) || i.startsWith("\\.") && e.has(i.charAt(2)) || i.startsWith("\\.\\.") && e.has(i.charAt(4)), o = !n && !t && e.has(i.charAt(0));
1916
- a = r ? "(?!(?:^|/)\\.\\.?(?:$|/))" : o ? jt : "";
1927
+ if (this.isStart() && typeof this.#r[0] == "string" && (this.#r.length !== 1 || !Pt.has(this.#r[0]))) {
1928
+ let e = Nt, r = n && e.has(i.charAt(0)) || i.startsWith("\\.") && e.has(i.charAt(2)) || i.startsWith("\\.\\.") && e.has(i.charAt(4)), o = !n && !t && e.has(i.charAt(0));
1929
+ a = r ? "(?!(?:^|/)\\.\\.?(?:$|/))" : o ? Mt : "";
1917
1930
  }
1918
1931
  let o = "";
1919
1932
  return this.isEnd() && this.#e.#s && this.#i?.type === "!" && (o = "(?:$|\\/)"), [
1920
1933
  a + i + o,
1921
- Ot(i),
1934
+ kt(i),
1922
1935
  this.#t = !!this.#t,
1923
1936
  this.#n
1924
1937
  ];
@@ -1928,7 +1941,7 @@ var St = k(285), Ct = (e) => {
1928
1941
  let e = this.toString();
1929
1942
  return this.#r = [e], this.type = null, this.#t = void 0, [
1930
1943
  e,
1931
- Ot(this.toString()),
1944
+ kt(this.toString()),
1932
1945
  !1,
1933
1946
  !1
1934
1947
  ];
@@ -1936,9 +1949,9 @@ var St = k(285), Ct = (e) => {
1936
1949
  let o = !r || t || n ? "" : this.#p(!0);
1937
1950
  o === a && (o = ""), o && (a = `(?:${a})(?:${o})*?`);
1938
1951
  let s = "";
1939
- return s = this.type === "!" && this.#u ? (this.isStart() && !n ? jt : "") + Lt : i + a + (this.type === "!" ? "))" + (!this.isStart() || n || t ? "" : jt) + "[^/]*?)" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && o ? ")" : this.type === "*" && o ? ")?" : `)${this.type}`), [
1952
+ return s = this.type === "!" && this.#u ? (this.isStart() && !n ? Mt : "") + Rt : i + a + (this.type === "!" ? "))" + (!this.isStart() || n || t ? "" : Mt) + "[^/]*?)" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && o ? ")" : this.type === "*" && o ? ")?" : `)${this.type}`), [
1940
1953
  s,
1941
- Ot(a),
1954
+ kt(a),
1942
1955
  this.#t = !!this.#t,
1943
1956
  this.#n
1944
1957
  ];
@@ -1954,120 +1967,120 @@ var St = k(285), Ct = (e) => {
1954
1967
  let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = !1, i = "", a = !1;
1955
1968
  for (let o = 0; o < e.length; o++) {
1956
1969
  let s = e.charAt(o);
1957
- if (r) r = !1, i += (Pt.has(s) ? "\\" : "") + s;
1970
+ if (r) r = !1, i += (Ft.has(s) ? "\\" : "") + s;
1958
1971
  else if (s !== "\\") {
1959
1972
  if (s === "[") {
1960
- let [n, r, s, c] = Dt(e, o);
1973
+ let [n, r, s, c] = Ot(e, o);
1961
1974
  if (s) {
1962
1975
  i += n, a ||= r, o += s - 1, t ||= c;
1963
1976
  continue;
1964
1977
  }
1965
1978
  }
1966
- s === "*" ? (i += n && e === "*" ? Lt : It, t = !0) : s === "?" ? (i += Ft, t = !0) : i += s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1979
+ s === "*" ? (i += n && e === "*" ? Rt : Lt, t = !0) : s === "?" ? (i += It, t = !0) : i += s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1967
1980
  } else o === e.length - 1 ? i += "\\\\" : r = !0;
1968
1981
  }
1969
1982
  return [
1970
1983
  i,
1971
- Ot(e),
1984
+ kt(e),
1972
1985
  !!t,
1973
1986
  a
1974
1987
  ];
1975
1988
  }
1976
- }, L = function(e, t) {
1989
+ }, R = function(e, t) {
1977
1990
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1978
- return Ct(t), !(!n.nocomment && t.charAt(0) === "#") && new ln(t, n).match(e);
1979
- }, zt = /^\*+([^+@!?\*\[\(]*)$/, Bt = (e) => (t) => !t.startsWith(".") && t.endsWith(e), Vt = (e) => (t) => t.endsWith(e), Ht = (e) => (e = e.toLowerCase(), (t) => !t.startsWith(".") && t.toLowerCase().endsWith(e)), Ut = (e) => (e = e.toLowerCase(), (t) => t.toLowerCase().endsWith(e)), Wt = /^\*+\.\*+$/, Gt = (e) => !e.startsWith(".") && e.includes("."), Kt = (e) => e !== "." && e !== ".." && e.includes("."), qt = /^\.\*+$/, Jt = (e) => e !== "." && e !== ".." && e.startsWith("."), Yt = /^\*+$/, Xt = (e) => e.length !== 0 && !e.startsWith("."), Zt = (e) => e.length !== 0 && e !== "." && e !== "..", Qt = /^\?+([^+@!?\*\[\(]*)?$/, $t = (e) => {
1980
- let [t, n = ""] = e, r = rn([t]);
1981
- return n ? (n = n.toLowerCase(), (e) => r(e) && e.toLowerCase().endsWith(n)) : r;
1982
- }, en = (e) => {
1991
+ return wt(t), !(!n.nocomment && t.charAt(0) === "#") && new un(t, n).match(e);
1992
+ }, Bt = /^\*+([^+@!?\*\[\(]*)$/, Vt = (e) => (t) => !t.startsWith(".") && t.endsWith(e), Ht = (e) => (t) => t.endsWith(e), Ut = (e) => (e = e.toLowerCase(), (t) => !t.startsWith(".") && t.toLowerCase().endsWith(e)), Wt = (e) => (e = e.toLowerCase(), (t) => t.toLowerCase().endsWith(e)), Gt = /^\*+\.\*+$/, Kt = (e) => !e.startsWith(".") && e.includes("."), qt = (e) => e !== "." && e !== ".." && e.includes("."), Jt = /^\.\*+$/, Yt = (e) => e !== "." && e !== ".." && e.startsWith("."), Xt = /^\*+$/, Zt = (e) => e.length !== 0 && !e.startsWith("."), Qt = (e) => e.length !== 0 && e !== "." && e !== "..", $t = /^\?+([^+@!?\*\[\(]*)?$/, en = (e) => {
1983
1993
  let [t, n = ""] = e, r = an([t]);
1984
1994
  return n ? (n = n.toLowerCase(), (e) => r(e) && e.toLowerCase().endsWith(n)) : r;
1985
1995
  }, tn = (e) => {
1986
- let [t, n = ""] = e, r = an([t]);
1987
- return n ? (e) => r(e) && e.endsWith(n) : r;
1996
+ let [t, n = ""] = e, r = on([t]);
1997
+ return n ? (n = n.toLowerCase(), (e) => r(e) && e.toLowerCase().endsWith(n)) : r;
1988
1998
  }, nn = (e) => {
1989
- let [t, n = ""] = e, r = rn([t]);
1999
+ let [t, n = ""] = e, r = on([t]);
1990
2000
  return n ? (e) => r(e) && e.endsWith(n) : r;
1991
2001
  }, rn = (e) => {
2002
+ let [t, n = ""] = e, r = an([t]);
2003
+ return n ? (e) => r(e) && e.endsWith(n) : r;
2004
+ }, an = (e) => {
1992
2005
  let [t] = e, n = t.length;
1993
2006
  return (e) => e.length === n && !e.startsWith(".");
1994
- }, an = (e) => {
2007
+ }, on = (e) => {
1995
2008
  let [t] = e, n = t.length;
1996
2009
  return (e) => e.length === n && e !== "." && e !== "..";
1997
- }, on = typeof t == "object" && t ? typeof t.env == "object" && t.env && t.env.__MINIMATCH_TESTING_PLATFORM__ || t.platform : "posix";
1998
- L.sep = on === "win32" ? "\\" : "/";
1999
- var R = Symbol("globstar **");
2000
- L.GLOBSTAR = R, L.filter = function(e) {
2010
+ }, sn = typeof t == "object" && t ? typeof t.env == "object" && t.env && t.env.__MINIMATCH_TESTING_PLATFORM__ || t.platform : "posix";
2011
+ R.sep = sn === "win32" ? "\\" : "/";
2012
+ var z = Symbol("globstar **");
2013
+ R.GLOBSTAR = z, R.filter = function(e) {
2001
2014
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2002
- return (n) => L(n, e, t);
2015
+ return (n) => R(n, e, t);
2003
2016
  };
2004
- var z = function(e) {
2017
+ var B = function(e) {
2005
2018
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2006
2019
  return Object.assign({}, e, t);
2007
2020
  };
2008
- L.defaults = (e) => {
2009
- if (!e || typeof e != "object" || !Object.keys(e).length) return L;
2010
- let t = L;
2021
+ R.defaults = (e) => {
2022
+ if (!e || typeof e != "object" || !Object.keys(e).length) return R;
2023
+ let t = R;
2011
2024
  return Object.assign((function(n, r) {
2012
- return t(n, r, z(e, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}));
2025
+ return t(n, r, B(e, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}));
2013
2026
  }), {
2014
2027
  Minimatch: class extends t.Minimatch {
2015
2028
  constructor(t) {
2016
- super(t, z(e, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}));
2029
+ super(t, B(e, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}));
2017
2030
  }
2018
2031
  static defaults(n) {
2019
- return t.defaults(z(e, n)).Minimatch;
2032
+ return t.defaults(B(e, n)).Minimatch;
2020
2033
  }
2021
2034
  },
2022
2035
  AST: class extends t.AST {
2023
2036
  constructor(t, n) {
2024
- super(t, n, z(e, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}));
2037
+ super(t, n, B(e, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}));
2025
2038
  }
2026
2039
  static fromGlob(n) {
2027
2040
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2028
- return t.AST.fromGlob(n, z(e, r));
2041
+ return t.AST.fromGlob(n, B(e, r));
2029
2042
  }
2030
2043
  },
2031
2044
  unescape: function(n) {
2032
2045
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2033
- return t.unescape(n, z(e, r));
2046
+ return t.unescape(n, B(e, r));
2034
2047
  },
2035
2048
  escape: function(n) {
2036
2049
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2037
- return t.escape(n, z(e, r));
2050
+ return t.escape(n, B(e, r));
2038
2051
  },
2039
2052
  filter: function(n) {
2040
2053
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2041
- return t.filter(n, z(e, r));
2054
+ return t.filter(n, B(e, r));
2042
2055
  },
2043
- defaults: (n) => t.defaults(z(e, n)),
2056
+ defaults: (n) => t.defaults(B(e, n)),
2044
2057
  makeRe: function(n) {
2045
2058
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2046
- return t.makeRe(n, z(e, r));
2059
+ return t.makeRe(n, B(e, r));
2047
2060
  },
2048
2061
  braceExpand: function(n) {
2049
2062
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2050
- return t.braceExpand(n, z(e, r));
2063
+ return t.braceExpand(n, B(e, r));
2051
2064
  },
2052
2065
  match: function(n, r) {
2053
2066
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2054
- return t.match(n, r, z(e, i));
2067
+ return t.match(n, r, B(e, i));
2055
2068
  },
2056
2069
  sep: t.sep,
2057
- GLOBSTAR: R
2070
+ GLOBSTAR: z
2058
2071
  });
2059
2072
  };
2060
- var sn = function(e) {
2073
+ var cn = function(e) {
2061
2074
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2062
- return Ct(e), t.nobrace || !/\{(?:(?!\{).)*\}/.test(e) ? [e] : St(e);
2075
+ return wt(e), t.nobrace || !/\{(?:(?!\{).)*\}/.test(e) ? [e] : Ct(e);
2063
2076
  };
2064
- L.braceExpand = sn, L.makeRe = function(e) {
2065
- return new ln(e, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).makeRe();
2066
- }, L.match = function(e, t) {
2067
- let n = new ln(t, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {});
2077
+ R.braceExpand = cn, R.makeRe = function(e) {
2078
+ return new un(e, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).makeRe();
2079
+ }, R.match = function(e, t) {
2080
+ let n = new un(t, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {});
2068
2081
  return e = e.filter(((e) => n.match(e))), n.options.nonull && !e.length && e.push(t), e;
2069
2082
  };
2070
- var cn = /[?*]|[+@!]\(.*?\)|\[|\]/, ln = class {
2083
+ var ln = /[?*]|[+@!]\(.*?\)|\[|\]/, un = class {
2071
2084
  options;
2072
2085
  set;
2073
2086
  pattern;
@@ -2087,7 +2100,7 @@ var cn = /[?*]|[+@!]\(.*?\)|\[|\]/, ln = class {
2087
2100
  regexp;
2088
2101
  constructor(e) {
2089
2102
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2090
- Ct(e), t ||= {}, this.options = t, this.pattern = e, this.platform = t.platform || on, this.isWindows = this.platform === "win32", this.windowsPathsNoEscape = !!t.windowsPathsNoEscape || !1 === t.allowWindowsEscape, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!t.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!t.nonegate, this.comment = !1, this.empty = !1, this.partial = !!t.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = t.windowsNoMagicRoot === void 0 ? !(!this.isWindows || !this.nocase) : t.windowsNoMagicRoot, this.globSet = [], this.globParts = [], this.set = [], this.make();
2103
+ wt(e), t ||= {}, this.options = t, this.pattern = e, this.platform = t.platform || sn, this.isWindows = this.platform === "win32", this.windowsPathsNoEscape = !!t.windowsPathsNoEscape || !1 === t.allowWindowsEscape, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!t.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!t.nonegate, this.comment = !1, this.empty = !1, this.partial = !!t.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = t.windowsNoMagicRoot === void 0 ? !(!this.isWindows || !this.nocase) : t.windowsNoMagicRoot, this.globSet = [], this.globParts = [], this.set = [], this.make();
2091
2104
  }
2092
2105
  hasMagic() {
2093
2106
  if (this.options.magicalBraces && this.set.length > 1) return !0;
@@ -2106,7 +2119,7 @@ var cn = /[?*]|[+@!]\(.*?\)|\[|\]/, ln = class {
2106
2119
  this.globParts = this.preprocess(n), this.debug(this.pattern, this.globParts);
2107
2120
  let r = this.globParts.map(((e, t, n) => {
2108
2121
  if (this.isWindows && this.windowsNoMagicRoot) {
2109
- let t = !(e[0] !== "" || e[1] !== "" || e[2] !== "?" && cn.test(e[2]) || cn.test(e[3])), n = /^[a-z]:/i.test(e[0]);
2122
+ let t = !(e[0] !== "" || e[1] !== "" || e[2] !== "?" && ln.test(e[2]) || ln.test(e[3])), n = /^[a-z]:/i.test(e[0]);
2110
2123
  if (t) return [...e.slice(0, 4), ...e.slice(4).map(((e) => this.parse(e)))];
2111
2124
  if (n) return [e[0], ...e.slice(1).map(((e) => this.parse(e)))];
2112
2125
  }
@@ -2243,7 +2256,7 @@ var cn = /[?*]|[+@!]\(.*?\)|\[|\]/, ln = class {
2243
2256
  this.debug("matchOne loop");
2244
2257
  var l = t[o], u = e[a];
2245
2258
  if (this.debug(t, l, u), !1 === l) return !1;
2246
- if (l === R) {
2259
+ if (l === z) {
2247
2260
  this.debug("GLOBSTAR", [
2248
2261
  t,
2249
2262
  l,
@@ -2274,16 +2287,16 @@ var cn = /[?*]|[+@!]\(.*?\)|\[|\]/, ln = class {
2274
2287
  throw Error("wtf?");
2275
2288
  }
2276
2289
  braceExpand() {
2277
- return sn(this.pattern, this.options);
2290
+ return cn(this.pattern, this.options);
2278
2291
  }
2279
2292
  parse(e) {
2280
- Ct(e);
2293
+ wt(e);
2281
2294
  let t = this.options;
2282
- if (e === "**") return R;
2295
+ if (e === "**") return z;
2283
2296
  if (e === "") return "";
2284
2297
  let n, r = null;
2285
- (n = e.match(Yt)) ? r = t.dot ? Zt : Xt : (n = e.match(zt)) ? r = (t.nocase ? t.dot ? Ut : Ht : t.dot ? Vt : Bt)(n[1]) : (n = e.match(Qt)) ? r = (t.nocase ? t.dot ? en : $t : t.dot ? tn : nn)(n) : (n = e.match(Wt)) ? r = t.dot ? Kt : Gt : (n = e.match(qt)) && (r = Jt);
2286
- let i = Rt.fromGlob(e, this.options).toMMPattern();
2298
+ (n = e.match(Xt)) ? r = t.dot ? Qt : Zt : (n = e.match(Bt)) ? r = (t.nocase ? t.dot ? Wt : Ut : t.dot ? Ht : Vt)(n[1]) : (n = e.match($t)) ? r = (t.nocase ? t.dot ? tn : en : t.dot ? nn : rn)(n) : (n = e.match(Gt)) ? r = t.dot ? qt : Kt : (n = e.match(Jt)) && (r = Yt);
2299
+ let i = zt.fromGlob(e, this.options).toMMPattern();
2287
2300
  return r && typeof i == "object" && Reflect.defineProperty(i, "test", { value: r }), i;
2288
2301
  }
2289
2302
  makeRe() {
@@ -2293,12 +2306,12 @@ var cn = /[?*]|[+@!]\(.*?\)|\[|\]/, ln = class {
2293
2306
  let t = this.options, n = t.noglobstar ? "[^/]*?" : t.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", r = new Set(t.nocase ? ["i"] : []), i = e.map(((e) => {
2294
2307
  let t = e.map(((e) => {
2295
2308
  if (e instanceof RegExp) for (let t of e.flags.split("")) r.add(t);
2296
- return typeof e == "string" ? e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : e === R ? R : e._src;
2309
+ return typeof e == "string" ? e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : e === z ? z : e._src;
2297
2310
  }));
2298
2311
  return t.forEach(((e, r) => {
2299
2312
  let i = t[r + 1], a = t[r - 1];
2300
- e === R && a !== R && (a === void 0 ? i !== void 0 && i !== R ? t[r + 1] = "(?:\\/|" + n + "\\/)?" + i : t[r] = n : i === void 0 ? t[r - 1] = a + "(?:\\/|" + n + ")?" : i !== R && (t[r - 1] = a + "(?:\\/|\\/" + n + "\\/)" + i, t[r + 1] = R));
2301
- })), t.filter(((e) => e !== R)).join("/");
2313
+ e === z && a !== z && (a === void 0 ? i !== void 0 && i !== z ? t[r + 1] = "(?:\\/|" + n + "\\/)?" + i : t[r] = n : i === void 0 ? t[r - 1] = a + "(?:\\/|" + n + ")?" : i !== z && (t[r - 1] = a + "(?:\\/|\\/" + n + "\\/)" + i, t[r + 1] = z));
2314
+ })), t.filter(((e) => e !== z)).join("/");
2302
2315
  })).join("|"), [a, o] = e.length > 1 ? ["(?:", ")"] : ["", ""];
2303
2316
  i = "^" + a + i + o + "$", this.negate && (i = "^(?!" + i + ").+$");
2304
2317
  try {
@@ -2331,53 +2344,53 @@ var cn = /[?*]|[+@!]\(.*?\)|\[|\]/, ln = class {
2331
2344
  return !n.flipNegate && this.negate;
2332
2345
  }
2333
2346
  static defaults(e) {
2334
- return L.defaults(e).Minimatch;
2347
+ return R.defaults(e).Minimatch;
2335
2348
  }
2336
2349
  };
2337
- function un(e) {
2350
+ function dn(e) {
2338
2351
  let t = /* @__PURE__ */ Error(`${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}Invalid response: ${e.status} ${e.statusText}`);
2339
2352
  return t.status = e.status, t.response = e, t;
2340
2353
  }
2341
- function B(e, t) {
2354
+ function V(e, t) {
2342
2355
  let { status: n } = t;
2343
2356
  if (n === 401 && e.digest) return t;
2344
- if (n >= 400) throw un(t);
2357
+ if (n >= 400) throw dn(t);
2345
2358
  return t;
2346
2359
  }
2347
- function V(e, t) {
2360
+ function H(e, t) {
2348
2361
  return arguments.length > 2 && arguments[2] !== void 0 && arguments[2] ? {
2349
2362
  data: t,
2350
- headers: e.headers ? dt(e.headers) : {},
2363
+ headers: e.headers ? ft(e.headers) : {},
2351
2364
  status: e.status,
2352
2365
  statusText: e.statusText
2353
2366
  } : t;
2354
2367
  }
2355
- L.AST = Rt, L.Minimatch = ln, L.escape = function(e) {
2368
+ R.AST = zt, R.Minimatch = un, R.escape = function(e) {
2356
2369
  let { windowsPathsNoEscape: t = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2357
2370
  return t ? e.replace(/[?*()[\]]/g, "[$&]") : e.replace(/[?*()[\]\\]/g, "\\$&");
2358
- }, L.unescape = Ot;
2359
- var dn = (fn = function(e, t, n) {
2360
- let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = I({
2361
- url: M(e.remoteURL, j(t)),
2371
+ }, R.unescape = kt;
2372
+ var fn = (pn = function(e, t, n) {
2373
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = L({
2374
+ url: N(e.remoteURL, M(t)),
2362
2375
  method: "COPY",
2363
2376
  headers: {
2364
- Destination: M(e.remoteURL, j(n)),
2377
+ Destination: N(e.remoteURL, M(n)),
2365
2378
  Overwrite: !1 === r.overwrite ? "F" : "T",
2366
2379
  Depth: r.shallow ? "0" : "infinity"
2367
2380
  }
2368
2381
  }, e, r);
2369
2382
  return o = function(t) {
2370
- B(e, t);
2371
- }, (a = F(i, e)) && a.then || (a = Promise.resolve(a)), o ? a.then(o) : a;
2383
+ V(e, t);
2384
+ }, (a = I(i, e)) && a.then || (a = Promise.resolve(a)), o ? a.then(o) : a;
2372
2385
  var a, o;
2373
2386
  }, function() {
2374
2387
  var e = [...arguments];
2375
2388
  try {
2376
- return Promise.resolve(fn.apply(this, e));
2389
+ return Promise.resolve(pn.apply(this, e));
2377
2390
  } catch (e) {
2378
2391
  return Promise.reject(e);
2379
2392
  }
2380
- }), fn, pn = {
2393
+ }), pn, mn = {
2381
2394
  preserveOrder: !1,
2382
2395
  attributeNamePrefix: "@_",
2383
2396
  attributesGroupName: !1,
@@ -2415,8 +2428,8 @@ var dn = (fn = function(e, t, n) {
2415
2428
  return e;
2416
2429
  },
2417
2430
  captureMetaData: !1
2418
- }, mn = /* @__PURE__ */ RegExp("^[: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][: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\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
2419
- function hn(e, t) {
2431
+ }, hn = /* @__PURE__ */ RegExp("^[: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][: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\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
2432
+ function gn(e, t) {
2420
2433
  let n = [], r = t.exec(e);
2421
2434
  for (; r;) {
2422
2435
  let i = [];
@@ -2427,9 +2440,9 @@ function hn(e, t) {
2427
2440
  }
2428
2441
  return n;
2429
2442
  }
2430
- var gn = function(e) {
2431
- return mn.exec(e) != null;
2432
- }, _n = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", H = class {
2443
+ var _n = function(e) {
2444
+ return hn.exec(e) != null;
2445
+ }, vn = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", U = class {
2433
2446
  constructor(e) {
2434
2447
  this.tagname = e, this.child = [], this[":@"] = {};
2435
2448
  }
@@ -2440,12 +2453,12 @@ var gn = function(e) {
2440
2453
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
2441
2454
  [e.tagname]: e.child,
2442
2455
  ":@": e[":@"]
2443
- }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][_n] = { startIndex: t });
2456
+ }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][vn] = { startIndex: t });
2444
2457
  }
2445
2458
  static getMetaDataSymbol() {
2446
- return _n;
2459
+ return vn;
2447
2460
  }
2448
- }, vn = class {
2461
+ }, yn = class {
2449
2462
  constructor(e) {
2450
2463
  this.suppressValidationErr = !e;
2451
2464
  }
@@ -2455,27 +2468,28 @@ var gn = function(e) {
2455
2468
  {
2456
2469
  t += 9;
2457
2470
  let r = 1, i = !1, a = !1, o = "";
2458
- for (; t < e.length; t++) if (e[t] !== "<" || a) if (e[t] === ">") {
2459
- if (a ? e[t - 1] === "-" && e[t - 2] === "-" && (a = !1, r--) : r--, r === 0) break;
2460
- } else e[t] === "[" ? i = !0 : o += e[t];
2461
- else {
2462
- if (i && W(e, "!ENTITY", t)) {
2471
+ for (; t < e.length; t++) if (e[t] !== "<" || a) {
2472
+ if (e[t] === ">") {
2473
+ if (a ? e[t - 1] === "-" && e[t - 2] === "-" && (a = !1, r--) : r--, r === 0) break;
2474
+ } else e[t] === "[" ? i = !0 : o += e[t];
2475
+ } else {
2476
+ if (i && G(e, "!ENTITY", t)) {
2463
2477
  let r, i;
2464
2478
  t += 7, [r, i, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), i.indexOf("&") === -1 && (n[r] = {
2465
2479
  regx: RegExp(`&${r};`, "g"),
2466
2480
  val: i
2467
2481
  });
2468
- } else if (i && W(e, "!ELEMENT", t)) {
2482
+ } else if (i && G(e, "!ELEMENT", t)) {
2469
2483
  t += 8;
2470
2484
  let { index: n } = this.readElementExp(e, t + 1);
2471
2485
  t = n;
2472
- } else if (i && W(e, "!ATTLIST", t)) t += 8;
2473
- else if (i && W(e, "!NOTATION", t)) {
2486
+ } else if (i && G(e, "!ATTLIST", t)) t += 8;
2487
+ else if (i && G(e, "!NOTATION", t)) {
2474
2488
  t += 9;
2475
2489
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
2476
2490
  t = n;
2477
2491
  } else {
2478
- if (!W(e, "!--", t)) throw Error("Invalid DOCTYPE");
2492
+ if (!G(e, "!--", t)) throw Error("Invalid DOCTYPE");
2479
2493
  a = !0;
2480
2494
  }
2481
2495
  r++, o = "";
@@ -2488,10 +2502,10 @@ var gn = function(e) {
2488
2502
  };
2489
2503
  }
2490
2504
  readEntityExp(e, t) {
2491
- t = U(e, t);
2505
+ t = W(e, t);
2492
2506
  let n = "";
2493
2507
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) n += e[t], t++;
2494
- if (yn(n), t = U(e, t), !this.suppressValidationErr) {
2508
+ if (bn(n), t = W(e, t), !this.suppressValidationErr) {
2495
2509
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
2496
2510
  if (e[t] === "%") throw Error("Parameter entities are not supported");
2497
2511
  }
@@ -2503,15 +2517,15 @@ var gn = function(e) {
2503
2517
  ];
2504
2518
  }
2505
2519
  readNotationExp(e, t) {
2506
- t = U(e, t);
2520
+ t = W(e, t);
2507
2521
  let n = "";
2508
2522
  for (; t < e.length && !/\s/.test(e[t]);) n += e[t], t++;
2509
- !this.suppressValidationErr && yn(n), t = U(e, t);
2523
+ !this.suppressValidationErr && bn(n), t = W(e, t);
2510
2524
  let r = e.substring(t, t + 6).toUpperCase();
2511
2525
  if (!this.suppressValidationErr && r !== "SYSTEM" && r !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${r}"`);
2512
- t += r.length, t = U(e, t);
2526
+ t += r.length, t = W(e, t);
2513
2527
  let i = null, a = null;
2514
- if (r === "PUBLIC") [t, i] = this.readIdentifierVal(e, t, "publicIdentifier"), e[t = U(e, t)] !== "\"" && e[t] !== "'" || ([t, a] = this.readIdentifierVal(e, t, "systemIdentifier"));
2528
+ if (r === "PUBLIC") [t, i] = this.readIdentifierVal(e, t, "publicIdentifier"), e[t = W(e, t)] !== "\"" && e[t] !== "'" || ([t, a] = this.readIdentifierVal(e, t, "systemIdentifier"));
2515
2529
  else if (r === "SYSTEM" && ([t, a] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !a)) throw Error("Missing mandatory system identifier for SYSTEM notation");
2516
2530
  return {
2517
2531
  notationName: n,
@@ -2528,13 +2542,13 @@ var gn = function(e) {
2528
2542
  return [++t, r];
2529
2543
  }
2530
2544
  readElementExp(e, t) {
2531
- t = U(e, t);
2545
+ t = W(e, t);
2532
2546
  let n = "";
2533
2547
  for (; t < e.length && !/\s/.test(e[t]);) n += e[t], t++;
2534
- if (!this.suppressValidationErr && !gn(n)) throw Error(`Invalid element name: "${n}"`);
2548
+ if (!this.suppressValidationErr && !_n(n)) throw Error(`Invalid element name: "${n}"`);
2535
2549
  let r = "";
2536
- if (e[t = U(e, t)] === "E" && W(e, "MPTY", t)) t += 4;
2537
- else if (e[t] === "A" && W(e, "NY", t)) t += 2;
2550
+ if (e[t = W(e, t)] === "E" && G(e, "MPTY", t)) t += 4;
2551
+ else if (e[t] === "A" && G(e, "NY", t)) t += 2;
2538
2552
  else if (e[t] === "(") {
2539
2553
  for (t++; t < e.length && e[t] !== ")";) r += e[t], t++;
2540
2554
  if (e[t] !== ")") throw Error("Unterminated content model");
@@ -2546,24 +2560,24 @@ var gn = function(e) {
2546
2560
  };
2547
2561
  }
2548
2562
  readAttlistExp(e, t) {
2549
- t = U(e, t);
2563
+ t = W(e, t);
2550
2564
  let n = "";
2551
2565
  for (; t < e.length && !/\s/.test(e[t]);) n += e[t], t++;
2552
- yn(n), t = U(e, t);
2566
+ bn(n), t = W(e, t);
2553
2567
  let r = "";
2554
2568
  for (; t < e.length && !/\s/.test(e[t]);) r += e[t], t++;
2555
- if (!yn(r)) throw Error(`Invalid attribute name: "${r}"`);
2556
- t = U(e, t);
2569
+ if (!bn(r)) throw Error(`Invalid attribute name: "${r}"`);
2570
+ t = W(e, t);
2557
2571
  let i = "";
2558
2572
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
2559
- if (i = "NOTATION", e[t = U(e, t += 8)] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
2573
+ if (i = "NOTATION", e[t = W(e, t += 8)] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
2560
2574
  t++;
2561
2575
  let n = [];
2562
2576
  for (; t < e.length && e[t] !== ")";) {
2563
2577
  let r = "";
2564
2578
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) r += e[t], t++;
2565
- if (r = r.trim(), !yn(r)) throw Error(`Invalid notation name: "${r}"`);
2566
- n.push(r), e[t] === "|" && (t++, t = U(e, t));
2579
+ if (r = r.trim(), !bn(r)) throw Error(`Invalid notation name: "${r}"`);
2580
+ n.push(r), e[t] === "|" && (t++, t = W(e, t));
2567
2581
  }
2568
2582
  if (e[t] !== ")") throw Error("Unterminated list of notations");
2569
2583
  t++, i += " (" + n.join("|") + ")";
@@ -2580,7 +2594,7 @@ var gn = function(e) {
2580
2594
  "NMTOKENS"
2581
2595
  ].includes(i.toUpperCase())) throw Error(`Invalid attribute type: "${i}"`);
2582
2596
  }
2583
- t = U(e, t);
2597
+ t = W(e, t);
2584
2598
  let a = "";
2585
2599
  return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (a = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (a = "#IMPLIED", t += 7) : [t, a] = this.readIdentifierVal(e, t, "ATTLIST"), {
2586
2600
  elementName: n,
@@ -2590,30 +2604,30 @@ var gn = function(e) {
2590
2604
  index: t
2591
2605
  };
2592
2606
  }
2593
- }, U = (e, t) => {
2607
+ }, W = (e, t) => {
2594
2608
  for (; t < e.length && /\s/.test(e[t]);) t++;
2595
2609
  return t;
2596
2610
  };
2597
- function W(e, t, n) {
2611
+ function G(e, t, n) {
2598
2612
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
2599
2613
  return !0;
2600
2614
  }
2601
- function yn(e) {
2602
- if (gn(e)) return e;
2615
+ function bn(e) {
2616
+ if (_n(e)) return e;
2603
2617
  throw Error(`Invalid entity name ${e}`);
2604
2618
  }
2605
- var bn = /^[-+]?0x[a-fA-F0-9]+$/, xn = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Sn = {
2619
+ var xn = /^[-+]?0x[a-fA-F0-9]+$/, Sn = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Cn = {
2606
2620
  hex: !0,
2607
2621
  leadingZeros: !0,
2608
2622
  decimalPoint: ".",
2609
2623
  eNotation: !0
2610
- }, Cn = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2611
- function wn(e) {
2624
+ }, wn = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2625
+ function Tn(e) {
2612
2626
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2613
2627
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2614
2628
  } : () => !1;
2615
2629
  }
2616
- var Tn = class {
2630
+ var En = class {
2617
2631
  constructor(e) {
2618
2632
  if (this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
2619
2633
  apos: {
@@ -2670,13 +2684,13 @@ var Tn = class {
2670
2684
  },
2671
2685
  num_dec: {
2672
2686
  regex: /&#([0-9]{1,7});/g,
2673
- val: (e, t) => zn(t, 10, "&#")
2687
+ val: (e, t) => Bn(t, 10, "&#")
2674
2688
  },
2675
2689
  num_hex: {
2676
2690
  regex: /&#x([0-9a-fA-F]{1,6});/g,
2677
- val: (e, t) => zn(t, 16, "&#x")
2691
+ val: (e, t) => Bn(t, 16, "&#x")
2678
2692
  }
2679
- }, this.addExternalEntities = En, this.parseXml = jn, this.parseTextData = Dn, this.resolveNameSpace = On, this.buildAttributesMap = An, this.isItStopNode = Fn, this.replaceEntitiesValue = Nn, this.readStopNodeData = Ln, this.saveTextToParentTag = Pn, this.addChild = Mn, this.ignoreAttributesFn = wn(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
2693
+ }, this.addExternalEntities = Dn, this.parseXml = Mn, this.parseTextData = On, this.resolveNameSpace = kn, this.buildAttributesMap = jn, this.isItStopNode = In, this.replaceEntitiesValue = Pn, this.readStopNodeData = Rn, this.saveTextToParentTag = Fn, this.addChild = Nn, this.ignoreAttributesFn = Tn(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
2680
2694
  this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
2681
2695
  for (let e = 0; e < this.options.stopNodes.length; e++) {
2682
2696
  let t = this.options.stopNodes[e];
@@ -2685,7 +2699,7 @@ var Tn = class {
2685
2699
  }
2686
2700
  }
2687
2701
  };
2688
- function En(e) {
2702
+ function Dn(e) {
2689
2703
  let t = Object.keys(e);
2690
2704
  for (let n = 0; n < t.length; n++) {
2691
2705
  let r = t[n];
@@ -2695,14 +2709,14 @@ function En(e) {
2695
2709
  };
2696
2710
  }
2697
2711
  }
2698
- function Dn(e, t, n, r, i, a, o) {
2712
+ function On(e, t, n, r, i, a, o) {
2699
2713
  if (e !== void 0 && (this.options.trimValues && !r && (e = e.trim()), e.length > 0)) {
2700
2714
  o || (e = this.replaceEntitiesValue(e));
2701
2715
  let r = this.options.tagValueProcessor(t, e, n, i, a);
2702
- return r == null ? e : typeof r != typeof e || r !== e ? r : this.options.trimValues || e.trim() === e ? Rn(e, this.options.parseTagValue, this.options.numberParseOptions) : e;
2716
+ return r == null ? e : typeof r != typeof e || r !== e ? r : this.options.trimValues || e.trim() === e ? zn(e, this.options.parseTagValue, this.options.numberParseOptions) : e;
2703
2717
  }
2704
2718
  }
2705
- function On(e) {
2719
+ function kn(e) {
2706
2720
  if (this.options.removeNSPrefix) {
2707
2721
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
2708
2722
  if (t[0] === "xmlns") return "";
@@ -2710,19 +2724,21 @@ function On(e) {
2710
2724
  }
2711
2725
  return e;
2712
2726
  }
2713
- var kn = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2714
- function An(e, t) {
2727
+ var An = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2728
+ function jn(e, t) {
2715
2729
  if (!0 !== this.options.ignoreAttributes && typeof e == "string") {
2716
- let n = hn(e, kn), r = n.length, i = {};
2730
+ let n = gn(e, An), r = n.length, i = {};
2717
2731
  for (let e = 0; e < r; e++) {
2718
2732
  let r = this.resolveNameSpace(n[e][1]);
2719
2733
  if (this.ignoreAttributesFn(r, t)) continue;
2720
2734
  let a = n[e][4], o = this.options.attributeNamePrefix + r;
2721
- if (r.length) if (this.options.transformAttributeName && (o = this.options.transformAttributeName(o)), o === "__proto__" && (o = "#__proto__"), a !== void 0) {
2722
- this.options.trimValues && (a = a.trim()), a = this.replaceEntitiesValue(a);
2723
- let e = this.options.attributeValueProcessor(r, a, t);
2724
- i[o] = e == null ? a : typeof e != typeof a || e !== a ? e : Rn(a, this.options.parseAttributeValue, this.options.numberParseOptions);
2725
- } else this.options.allowBooleanAttributes && (i[o] = !0);
2735
+ if (r.length) {
2736
+ if (this.options.transformAttributeName && (o = this.options.transformAttributeName(o)), o === "__proto__" && (o = "#__proto__"), a !== void 0) {
2737
+ this.options.trimValues && (a = a.trim()), a = this.replaceEntitiesValue(a);
2738
+ let e = this.options.attributeValueProcessor(r, a, t);
2739
+ i[o] = e == null ? a : typeof e != typeof a || e !== a ? e : zn(a, this.options.parseAttributeValue, this.options.numberParseOptions);
2740
+ } else this.options.allowBooleanAttributes && (i[o] = !0);
2741
+ }
2726
2742
  }
2727
2743
  if (!Object.keys(i).length) return;
2728
2744
  if (this.options.attributesGroupName) {
@@ -2732,88 +2748,89 @@ function An(e, t) {
2732
2748
  return i;
2733
2749
  }
2734
2750
  }
2735
- var jn = function(e) {
2751
+ var Mn = function(e) {
2736
2752
  e = e.replace(/\r\n?/g, "\n");
2737
- let t = new H("!xml"), n = t, r = "", i = "", a = new vn(this.options.processEntities);
2738
- for (let o = 0; o < e.length; o++) if (e[o] === "<") if (e[o + 1] === "/") {
2739
- let t = G(e, ">", o, "Closing Tag is not closed."), a = e.substring(o + 2, t).trim();
2740
- if (this.options.removeNSPrefix) {
2741
- let e = a.indexOf(":");
2742
- e !== -1 && (a = a.substr(e + 1));
2743
- }
2744
- this.options.transformTagName && (a = this.options.transformTagName(a)), n && (r = this.saveTextToParentTag(r, n, i));
2745
- let s = i.substring(i.lastIndexOf(".") + 1);
2746
- if (a && this.options.unpairedTags.indexOf(a) !== -1) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
2747
- let c = 0;
2748
- s && this.options.unpairedTags.indexOf(s) !== -1 ? (c = i.lastIndexOf(".", i.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : c = i.lastIndexOf("."), i = i.substring(0, c), n = this.tagsNodeStack.pop(), r = "", o = t;
2749
- } else if (e[o + 1] === "?") {
2750
- let t = In(e, o, !1, "?>");
2751
- if (!t) throw Error("Pi Tag is not closed.");
2752
- if (r = this.saveTextToParentTag(r, n, i), !(this.options.ignoreDeclaration && t.tagName === "?xml" || this.options.ignorePiTags)) {
2753
- let e = new H(t.tagName);
2754
- e.add(this.options.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && (e[":@"] = this.buildAttributesMap(t.tagExp, i)), this.addChild(n, e, i, o);
2755
- }
2756
- o = t.closeIndex + 1;
2757
- } else if (e.substr(o + 1, 3) === "!--") {
2758
- let t = G(e, "-->", o + 4, "Comment is not closed.");
2759
- if (this.options.commentPropName) {
2760
- let a = e.substring(o + 4, t - 2);
2761
- r = this.saveTextToParentTag(r, n, i), n.add(this.options.commentPropName, [{ [this.options.textNodeName]: a }]);
2762
- }
2763
- o = t;
2764
- } else if (e.substr(o + 1, 2) === "!D") {
2765
- let t = a.readDocType(e, o);
2766
- this.docTypeEntities = t.entities, o = t.i;
2767
- } else if (e.substr(o + 1, 2) === "![") {
2768
- let t = G(e, "]]>", o, "CDATA is not closed.") - 2, a = e.substring(o + 9, t);
2769
- r = this.saveTextToParentTag(r, n, i);
2770
- let s = this.parseTextData(a, n.tagname, i, !0, !1, !0, !0);
2771
- s ??= "", this.options.cdataPropName ? n.add(this.options.cdataPropName, [{ [this.options.textNodeName]: a }]) : n.add(this.options.textNodeName, s), o = t + 2;
2772
- } else {
2773
- let a = In(e, o, this.options.removeNSPrefix), s = a.tagName, c = a.rawTagName, l = a.tagExp, u = a.attrExpPresent, d = a.closeIndex;
2774
- if (this.options.transformTagName) {
2775
- let e = this.options.transformTagName(s);
2776
- l === s && (l = e), s = e;
2777
- }
2778
- n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, i, !1));
2779
- let f = n;
2780
- f && this.options.unpairedTags.indexOf(f.tagname) !== -1 && (n = this.tagsNodeStack.pop(), i = i.substring(0, i.lastIndexOf("."))), s !== t.tagname && (i += i ? "." + s : s);
2781
- let p = o;
2782
- if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, i, s)) {
2783
- let t = "";
2784
- if (l.length > 0 && l.lastIndexOf("/") === l.length - 1) s[s.length - 1] === "/" ? (s = s.substr(0, s.length - 1), i = i.substr(0, i.length - 1), l = s) : l = l.substr(0, l.length - 1), o = a.closeIndex;
2785
- else if (this.options.unpairedTags.indexOf(s) !== -1) o = a.closeIndex;
2786
- else {
2787
- let n = this.readStopNodeData(e, c, d + 1);
2788
- if (!n) throw Error(`Unexpected end of ${c}`);
2789
- o = n.i, t = n.tagContent;
2753
+ let t = new U("!xml"), n = t, r = "", i = "", a = new yn(this.options.processEntities);
2754
+ for (let o = 0; o < e.length; o++) if (e[o] === "<") {
2755
+ if (e[o + 1] === "/") {
2756
+ let t = K(e, ">", o, "Closing Tag is not closed."), a = e.substring(o + 2, t).trim();
2757
+ if (this.options.removeNSPrefix) {
2758
+ let e = a.indexOf(":");
2759
+ e !== -1 && (a = a.substr(e + 1));
2760
+ }
2761
+ this.options.transformTagName && (a = this.options.transformTagName(a)), n && (r = this.saveTextToParentTag(r, n, i));
2762
+ let s = i.substring(i.lastIndexOf(".") + 1);
2763
+ if (a && this.options.unpairedTags.indexOf(a) !== -1) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
2764
+ let c = 0;
2765
+ s && this.options.unpairedTags.indexOf(s) !== -1 ? (c = i.lastIndexOf(".", i.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : c = i.lastIndexOf("."), i = i.substring(0, c), n = this.tagsNodeStack.pop(), r = "", o = t;
2766
+ } else if (e[o + 1] === "?") {
2767
+ let t = Ln(e, o, !1, "?>");
2768
+ if (!t) throw Error("Pi Tag is not closed.");
2769
+ if (r = this.saveTextToParentTag(r, n, i), !(this.options.ignoreDeclaration && t.tagName === "?xml" || this.options.ignorePiTags)) {
2770
+ let e = new U(t.tagName);
2771
+ e.add(this.options.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && (e[":@"] = this.buildAttributesMap(t.tagExp, i)), this.addChild(n, e, i, o);
2772
+ }
2773
+ o = t.closeIndex + 1;
2774
+ } else if (e.substr(o + 1, 3) === "!--") {
2775
+ let t = K(e, "-->", o + 4, "Comment is not closed.");
2776
+ if (this.options.commentPropName) {
2777
+ let a = e.substring(o + 4, t - 2);
2778
+ r = this.saveTextToParentTag(r, n, i), n.add(this.options.commentPropName, [{ [this.options.textNodeName]: a }]);
2790
2779
  }
2791
- let r = new H(s);
2792
- s !== l && u && (r[":@"] = this.buildAttributesMap(l, i)), t &&= this.parseTextData(t, s, i, !0, u, !0, !0), i = i.substr(0, i.lastIndexOf(".")), r.add(this.options.textNodeName, t), this.addChild(n, r, i, p);
2780
+ o = t;
2781
+ } else if (e.substr(o + 1, 2) === "!D") {
2782
+ let t = a.readDocType(e, o);
2783
+ this.docTypeEntities = t.entities, o = t.i;
2784
+ } else if (e.substr(o + 1, 2) === "![") {
2785
+ let t = K(e, "]]>", o, "CDATA is not closed.") - 2, a = e.substring(o + 9, t);
2786
+ r = this.saveTextToParentTag(r, n, i);
2787
+ let s = this.parseTextData(a, n.tagname, i, !0, !1, !0, !0);
2788
+ s ??= "", this.options.cdataPropName ? n.add(this.options.cdataPropName, [{ [this.options.textNodeName]: a }]) : n.add(this.options.textNodeName, s), o = t + 2;
2793
2789
  } else {
2794
- if (l.length > 0 && l.lastIndexOf("/") === l.length - 1) {
2795
- if (s[s.length - 1] === "/" ? (s = s.substr(0, s.length - 1), i = i.substr(0, i.length - 1), l = s) : l = l.substr(0, l.length - 1), this.options.transformTagName) {
2796
- let e = this.options.transformTagName(s);
2797
- l === s && (l = e), s = e;
2790
+ let a = Ln(e, o, this.options.removeNSPrefix), s = a.tagName, c = a.rawTagName, l = a.tagExp, u = a.attrExpPresent, d = a.closeIndex;
2791
+ if (this.options.transformTagName) {
2792
+ let e = this.options.transformTagName(s);
2793
+ l === s && (l = e), s = e;
2794
+ }
2795
+ n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, i, !1));
2796
+ let f = n;
2797
+ f && this.options.unpairedTags.indexOf(f.tagname) !== -1 && (n = this.tagsNodeStack.pop(), i = i.substring(0, i.lastIndexOf("."))), s !== t.tagname && (i += i ? "." + s : s);
2798
+ let p = o;
2799
+ if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, i, s)) {
2800
+ let t = "";
2801
+ if (l.length > 0 && l.lastIndexOf("/") === l.length - 1) s[s.length - 1] === "/" ? (s = s.substr(0, s.length - 1), i = i.substr(0, i.length - 1), l = s) : l = l.substr(0, l.length - 1), o = a.closeIndex;
2802
+ else if (this.options.unpairedTags.indexOf(s) !== -1) o = a.closeIndex;
2803
+ else {
2804
+ let n = this.readStopNodeData(e, c, d + 1);
2805
+ if (!n) throw Error(`Unexpected end of ${c}`);
2806
+ o = n.i, t = n.tagContent;
2798
2807
  }
2799
- let e = new H(s);
2800
- s !== l && u && (e[":@"] = this.buildAttributesMap(l, i)), this.addChild(n, e, i, p), i = i.substr(0, i.lastIndexOf("."));
2808
+ let r = new U(s);
2809
+ s !== l && u && (r[":@"] = this.buildAttributesMap(l, i)), t &&= this.parseTextData(t, s, i, !0, u, !0, !0), i = i.substr(0, i.lastIndexOf(".")), r.add(this.options.textNodeName, t), this.addChild(n, r, i, p);
2801
2810
  } else {
2802
- let e = new H(s);
2803
- this.tagsNodeStack.push(n), s !== l && u && (e[":@"] = this.buildAttributesMap(l, i)), this.addChild(n, e, i, p), n = e;
2811
+ if (l.length > 0 && l.lastIndexOf("/") === l.length - 1) {
2812
+ if (s[s.length - 1] === "/" ? (s = s.substr(0, s.length - 1), i = i.substr(0, i.length - 1), l = s) : l = l.substr(0, l.length - 1), this.options.transformTagName) {
2813
+ let e = this.options.transformTagName(s);
2814
+ l === s && (l = e), s = e;
2815
+ }
2816
+ let e = new U(s);
2817
+ s !== l && u && (e[":@"] = this.buildAttributesMap(l, i)), this.addChild(n, e, i, p), i = i.substr(0, i.lastIndexOf("."));
2818
+ } else {
2819
+ let e = new U(s);
2820
+ this.tagsNodeStack.push(n), s !== l && u && (e[":@"] = this.buildAttributesMap(l, i)), this.addChild(n, e, i, p), n = e;
2821
+ }
2822
+ r = "", o = d;
2804
2823
  }
2805
- r = "", o = d;
2806
2824
  }
2807
- }
2808
- else r += e[o];
2825
+ } else r += e[o];
2809
2826
  return t.child;
2810
2827
  };
2811
- function Mn(e, t, n, r) {
2828
+ function Nn(e, t, n, r) {
2812
2829
  this.options.captureMetaData || (r = void 0);
2813
2830
  let i = this.options.updateTag(t.tagname, n, t[":@"]);
2814
2831
  !1 === i || (typeof i == "string" && (t.tagname = i), e.addChild(t, r));
2815
2832
  }
2816
- var Nn = function(e) {
2833
+ var Pn = function(e) {
2817
2834
  if (this.options.processEntities) {
2818
2835
  for (let t in this.docTypeEntities) {
2819
2836
  let n = this.docTypeEntities[t];
@@ -2831,18 +2848,18 @@ var Nn = function(e) {
2831
2848
  }
2832
2849
  return e;
2833
2850
  };
2834
- function Pn(e, t, n, r) {
2851
+ function Fn(e, t, n, r) {
2835
2852
  return e &&= (r === void 0 && (r = t.child.length === 0), (e = this.parseTextData(e, t.tagname, n, !1, !!t[":@"] && Object.keys(t[":@"]).length !== 0, r)) !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
2836
2853
  }
2837
- function Fn(e, t, n, r) {
2854
+ function In(e, t, n, r) {
2838
2855
  return !(!t || !t.has(r)) || !(!e || !e.has(n));
2839
2856
  }
2840
- function G(e, t, n, r) {
2857
+ function K(e, t, n, r) {
2841
2858
  let i = e.indexOf(t, n);
2842
2859
  if (i === -1) throw Error(r);
2843
2860
  return i + t.length - 1;
2844
2861
  }
2845
- function In(e, t, n) {
2862
+ function Ln(e, t, n) {
2846
2863
  let r = function(e, t) {
2847
2864
  let n, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ">", i = "";
2848
2865
  for (let a = t; a < e.length; a++) {
@@ -2874,33 +2891,35 @@ function In(e, t, n) {
2874
2891
  rawTagName: l
2875
2892
  };
2876
2893
  }
2877
- function Ln(e, t, n) {
2894
+ function Rn(e, t, n) {
2878
2895
  let r = n, i = 1;
2879
- for (; n < e.length; n++) if (e[n] === "<") if (e[n + 1] === "/") {
2880
- let a = G(e, ">", n, `${t} is not closed`);
2881
- if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
2882
- tagContent: e.substring(r, n),
2883
- i: a
2884
- };
2885
- n = a;
2886
- } else if (e[n + 1] === "?") n = G(e, "?>", n + 1, "StopNode is not closed.");
2887
- else if (e.substr(n + 1, 3) === "!--") n = G(e, "-->", n + 3, "StopNode is not closed.");
2888
- else if (e.substr(n + 1, 2) === "![") n = G(e, "]]>", n, "StopNode is not closed.") - 2;
2889
- else {
2890
- let r = In(e, n, ">");
2891
- r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
2896
+ for (; n < e.length; n++) if (e[n] === "<") {
2897
+ if (e[n + 1] === "/") {
2898
+ let a = K(e, ">", n, `${t} is not closed`);
2899
+ if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
2900
+ tagContent: e.substring(r, n),
2901
+ i: a
2902
+ };
2903
+ n = a;
2904
+ } else if (e[n + 1] === "?") n = K(e, "?>", n + 1, "StopNode is not closed.");
2905
+ else if (e.substr(n + 1, 3) === "!--") n = K(e, "-->", n + 3, "StopNode is not closed.");
2906
+ else if (e.substr(n + 1, 2) === "![") n = K(e, "]]>", n, "StopNode is not closed.") - 2;
2907
+ else {
2908
+ let r = Ln(e, n, ">");
2909
+ r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
2910
+ }
2892
2911
  }
2893
2912
  }
2894
- function Rn(e, t, n) {
2913
+ function zn(e, t, n) {
2895
2914
  if (t && typeof e == "string") {
2896
2915
  let t = e.trim();
2897
2916
  return t === "true" || t !== "false" && function(e) {
2898
2917
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2899
- if (t = Object.assign({}, Sn, t), !e || typeof e != "string") return e;
2918
+ if (t = Object.assign({}, Cn, t), !e || typeof e != "string") return e;
2900
2919
  let n = e.trim();
2901
2920
  if (t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2902
2921
  if (e === "0") return 0;
2903
- if (t.hex && bn.test(n)) return function(e) {
2922
+ if (t.hex && xn.test(n)) return function(e) {
2904
2923
  if (parseInt) return parseInt(e, 16);
2905
2924
  if (Number.parseInt) return Number.parseInt(e, 16);
2906
2925
  if (window && window.parseInt) return window.parseInt(e, 16);
@@ -2908,7 +2927,7 @@ function Rn(e, t, n) {
2908
2927
  }(n);
2909
2928
  if (n.includes("e") || n.includes("E")) return function(e, t, n) {
2910
2929
  if (!n.eNotation) return e;
2911
- let r = t.match(Cn);
2930
+ let r = t.match(wn);
2912
2931
  if (r) {
2913
2932
  let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
2914
2933
  return o.length > 1 && s ? e : o.length !== 1 || !r[3].startsWith(`.${a}`) && r[3][0] !== a ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
@@ -2916,7 +2935,7 @@ function Rn(e, t, n) {
2916
2935
  return e;
2917
2936
  }(e, n, t);
2918
2937
  {
2919
- let i = xn.exec(n);
2938
+ let i = Sn.exec(n);
2920
2939
  if (i) {
2921
2940
  let a = i[1] || "", o = i[2], s = ((r = i[3]) && r.indexOf(".") !== -1 && ((r = r.replace(/0+$/, "")) === "." ? r = "0" : r[0] === "." ? r = "0" + r : r[r.length - 1] === "." && (r = r.substring(0, r.length - 1))), r), c = a ? e[o.length + 1] === "." : e[o.length] === ".";
2922
2941
  if (!t.leadingZeros && (o.length > 1 || o.length === 1 && !c)) return e;
@@ -2936,37 +2955,37 @@ function Rn(e, t, n) {
2936
2955
  }
2937
2956
  return e === void 0 ? "" : e;
2938
2957
  }
2939
- function zn(e, t, n) {
2958
+ function Bn(e, t, n) {
2940
2959
  let r = Number.parseInt(e, t);
2941
2960
  return r >= 0 && r <= 1114111 ? String.fromCodePoint(r) : n + e + ";";
2942
2961
  }
2943
- var Bn = H.getMetaDataSymbol();
2944
- function Vn(e, t) {
2945
- return Hn(e, t);
2962
+ var Vn = U.getMetaDataSymbol();
2963
+ function Hn(e, t) {
2964
+ return Un(e, t);
2946
2965
  }
2947
- function Hn(e, t, n) {
2966
+ function Un(e, t, n) {
2948
2967
  let r, i = {};
2949
2968
  for (let a = 0; a < e.length; a++) {
2950
- let o = e[a], s = Un(o), c = "";
2969
+ let o = e[a], s = Wn(o), c = "";
2951
2970
  if (c = n === void 0 ? s : n + "." + s, s === t.textNodeName) r === void 0 ? r = o[s] : r += "" + o[s];
2952
2971
  else {
2953
2972
  if (s === void 0) continue;
2954
2973
  if (o[s]) {
2955
- let e = Hn(o[s], t, c), n = Gn(e, t);
2956
- o[Bn] !== void 0 && (e[Bn] = o[Bn]), o[":@"] ? Wn(e, o[":@"], c, t) : Object.keys(e).length !== 1 || e[t.textNodeName] === void 0 || t.alwaysCreateTextNode ? Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = "") : e = e[t.textNodeName], i[s] !== void 0 && i.hasOwnProperty(s) ? (Array.isArray(i[s]) || (i[s] = [i[s]]), i[s].push(e)) : i[s] = t.isArray(s, c, n) ? [e] : e;
2974
+ let e = Un(o[s], t, c), n = Kn(e, t);
2975
+ o[Vn] !== void 0 && (e[Vn] = o[Vn]), o[":@"] ? Gn(e, o[":@"], c, t) : Object.keys(e).length !== 1 || e[t.textNodeName] === void 0 || t.alwaysCreateTextNode ? Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = "") : e = e[t.textNodeName], i[s] !== void 0 && i.hasOwnProperty(s) ? (Array.isArray(i[s]) || (i[s] = [i[s]]), i[s].push(e)) : i[s] = t.isArray(s, c, n) ? [e] : e;
2957
2976
  }
2958
2977
  }
2959
2978
  }
2960
2979
  return typeof r == "string" ? r.length > 0 && (i[t.textNodeName] = r) : r !== void 0 && (i[t.textNodeName] = r), i;
2961
2980
  }
2962
- function Un(e) {
2981
+ function Wn(e) {
2963
2982
  let t = Object.keys(e);
2964
2983
  for (let e = 0; e < t.length; e++) {
2965
2984
  let n = t[e];
2966
2985
  if (n !== ":@") return n;
2967
2986
  }
2968
2987
  }
2969
- function Wn(e, t, n, r) {
2988
+ function Gn(e, t, n, r) {
2970
2989
  if (t) {
2971
2990
  let i = Object.keys(t), a = i.length;
2972
2991
  for (let o = 0; o < a; o++) {
@@ -2975,22 +2994,22 @@ function Wn(e, t, n, r) {
2975
2994
  }
2976
2995
  }
2977
2996
  }
2978
- function Gn(e, t) {
2997
+ function Kn(e, t) {
2979
2998
  let { textNodeName: n } = t, r = Object.keys(e).length;
2980
2999
  return r === 0 || !(r !== 1 || !e[n] && typeof e[n] != "boolean" && e[n] !== 0);
2981
3000
  }
2982
- var Kn = {
3001
+ var qn = {
2983
3002
  allowBooleanAttributes: !1,
2984
3003
  unpairedTags: []
2985
3004
  };
2986
- function qn(e) {
3005
+ function Jn(e) {
2987
3006
  return e === " " || e === " " || e === "\n" || e === "\r";
2988
3007
  }
2989
- function Jn(e, t) {
3008
+ function Yn(e, t) {
2990
3009
  let n = t;
2991
3010
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
2992
3011
  let r = e.substr(n, t - n);
2993
- if (t > 5 && r === "xml") return K("InvalidXml", "XML declaration allowed only at the start of the document.", q(e, t));
3012
+ if (t > 5 && r === "xml") return q("InvalidXml", "XML declaration allowed only at the start of the document.", J(e, t));
2994
3013
  if (e[t] == "?" && e[t + 1] == ">") {
2995
3014
  t++;
2996
3015
  break;
@@ -2998,7 +3017,7 @@ function Jn(e, t) {
2998
3017
  }
2999
3018
  return t;
3000
3019
  }
3001
- function Yn(e, t) {
3020
+ function Xn(e, t) {
3002
3021
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
3003
3022
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
3004
3023
  t += 2;
@@ -3016,7 +3035,7 @@ function Yn(e, t) {
3016
3035
  }
3017
3036
  return t;
3018
3037
  }
3019
- function Xn(e, t) {
3038
+ function Zn(e, t) {
3020
3039
  let n = "", r = "", i = !1;
3021
3040
  for (; t < e.length; t++) {
3022
3041
  if (e[t] === "\"" || e[t] === "'") r === "" ? r = e[t] : r !== e[t] || (r = "");
@@ -3032,21 +3051,21 @@ function Xn(e, t) {
3032
3051
  tagClosed: i
3033
3052
  };
3034
3053
  }
3035
- var Zn = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
3036
- function Qn(e, t) {
3037
- let n = hn(e, Zn), r = {};
3054
+ var Qn = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
3055
+ function $n(e, t) {
3056
+ let n = gn(e, Qn), r = {};
3038
3057
  for (let e = 0; e < n.length; e++) {
3039
- if (n[e][1].length === 0) return K("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", tr(n[e]));
3040
- if (n[e][3] !== void 0 && n[e][4] === void 0) return K("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", tr(n[e]));
3041
- if (n[e][3] === void 0 && !t.allowBooleanAttributes) return K("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", tr(n[e]));
3058
+ if (n[e][1].length === 0) return q("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", nr(n[e]));
3059
+ if (n[e][3] !== void 0 && n[e][4] === void 0) return q("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", nr(n[e]));
3060
+ if (n[e][3] === void 0 && !t.allowBooleanAttributes) return q("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", nr(n[e]));
3042
3061
  let i = n[e][2];
3043
- if (!er(i)) return K("InvalidAttr", "Attribute '" + i + "' is an invalid name.", tr(n[e]));
3044
- if (r.hasOwnProperty(i)) return K("InvalidAttr", "Attribute '" + i + "' is repeated.", tr(n[e]));
3062
+ if (!tr(i)) return q("InvalidAttr", "Attribute '" + i + "' is an invalid name.", nr(n[e]));
3063
+ if (r.hasOwnProperty(i)) return q("InvalidAttr", "Attribute '" + i + "' is repeated.", nr(n[e]));
3045
3064
  r[i] = 1;
3046
3065
  }
3047
3066
  return !0;
3048
3067
  }
3049
- function $n(e, t) {
3068
+ function er(e, t) {
3050
3069
  if (e[++t] === ";") return -1;
3051
3070
  if (e[t] === "#") return function(e, t) {
3052
3071
  let n = /\d/;
@@ -3063,7 +3082,7 @@ function $n(e, t) {
3063
3082
  }
3064
3083
  return t;
3065
3084
  }
3066
- function K(e, t, n) {
3085
+ function q(e, t, n) {
3067
3086
  return { err: {
3068
3087
  code: e,
3069
3088
  msg: t,
@@ -3071,23 +3090,23 @@ function K(e, t, n) {
3071
3090
  col: n.col
3072
3091
  } };
3073
3092
  }
3074
- function er(e) {
3075
- return gn(e);
3093
+ function tr(e) {
3094
+ return _n(e);
3076
3095
  }
3077
- function q(e, t) {
3096
+ function J(e, t) {
3078
3097
  let n = e.substring(0, t).split(/\r?\n/);
3079
3098
  return {
3080
3099
  line: n.length,
3081
3100
  col: n[n.length - 1].length + 1
3082
3101
  };
3083
3102
  }
3084
- function tr(e) {
3103
+ function nr(e) {
3085
3104
  return e.startIndex + e[1].length;
3086
3105
  }
3087
- var nr = class {
3106
+ var rr = class {
3088
3107
  constructor(e) {
3089
3108
  this.externalEntities = {}, this.options = function(e) {
3090
- return Object.assign({}, pn, e);
3109
+ return Object.assign({}, mn, e);
3091
3110
  }(e);
3092
3111
  }
3093
3112
  parse(e, t) {
@@ -3096,20 +3115,20 @@ var nr = class {
3096
3115
  if (t) {
3097
3116
  !0 === t && (t = {});
3098
3117
  let n = function(e, t) {
3099
- t = Object.assign({}, Kn, t);
3118
+ t = Object.assign({}, qn, t);
3100
3119
  let n = [], r = !1, i = !1;
3101
3120
  e[0] === "" && (e = e.substr(1));
3102
3121
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
3103
- if (a += 2, a = Jn(e, a), a.err) return a;
3122
+ if (a += 2, a = Yn(e, a), a.err) return a;
3104
3123
  } else {
3105
3124
  if (e[a] !== "<") {
3106
- if (qn(e[a])) continue;
3107
- return K("InvalidChar", "char '" + e[a] + "' is not expected.", q(e, a));
3125
+ if (Jn(e[a])) continue;
3126
+ return q("InvalidChar", "char '" + e[a] + "' is not expected.", J(e, a));
3108
3127
  }
3109
3128
  {
3110
3129
  let o = a;
3111
3130
  if (a++, e[a] === "!") {
3112
- a = Yn(e, a);
3131
+ a = Xn(e, a);
3113
3132
  continue;
3114
3133
  }
3115
3134
  {
@@ -3117,35 +3136,35 @@ var nr = class {
3117
3136
  e[a] === "/" && (s = !0, a++);
3118
3137
  let c = "";
3119
3138
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
3120
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !gn(c)) {
3139
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !_n(c)) {
3121
3140
  let t;
3122
- return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", K("InvalidTag", t, q(e, a));
3141
+ return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", q("InvalidTag", t, J(e, a));
3123
3142
  }
3124
- let l = Xn(e, a);
3125
- if (!1 === l) return K("InvalidAttr", "Attributes for '" + c + "' have open quote.", q(e, a));
3143
+ let l = Zn(e, a);
3144
+ if (!1 === l) return q("InvalidAttr", "Attributes for '" + c + "' have open quote.", J(e, a));
3126
3145
  let u = l.value;
3127
3146
  if (a = l.index, u[u.length - 1] === "/") {
3128
3147
  let n = a - u.length;
3129
3148
  u = u.substring(0, u.length - 1);
3130
- let i = Qn(u, t);
3131
- if (!0 !== i) return K(i.err.code, i.err.msg, q(e, n + i.err.line));
3149
+ let i = $n(u, t);
3150
+ if (!0 !== i) return q(i.err.code, i.err.msg, J(e, n + i.err.line));
3132
3151
  r = !0;
3133
3152
  } else if (s) {
3134
- if (!l.tagClosed) return K("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", q(e, a));
3135
- if (u.trim().length > 0) return K("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", q(e, o));
3136
- if (n.length === 0) return K("InvalidTag", "Closing tag '" + c + "' has not been opened.", q(e, o));
3153
+ if (!l.tagClosed) return q("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", J(e, a));
3154
+ if (u.trim().length > 0) return q("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", J(e, o));
3155
+ if (n.length === 0) return q("InvalidTag", "Closing tag '" + c + "' has not been opened.", J(e, o));
3137
3156
  {
3138
3157
  let t = n.pop();
3139
3158
  if (c !== t.tagName) {
3140
- let n = q(e, t.tagStartPos);
3141
- return K("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", q(e, o));
3159
+ let n = J(e, t.tagStartPos);
3160
+ return q("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", J(e, o));
3142
3161
  }
3143
3162
  n.length == 0 && (i = !0);
3144
3163
  }
3145
3164
  } else {
3146
- let s = Qn(u, t);
3147
- if (!0 !== s) return K(s.err.code, s.err.msg, q(e, a - u.length + s.err.line));
3148
- if (!0 === i) return K("InvalidXml", "Multiple possible root nodes found.", q(e, a));
3165
+ let s = $n(u, t);
3166
+ if (!0 !== s) return q(s.err.code, s.err.msg, J(e, a - u.length + s.err.line));
3167
+ if (!0 === i) return q("InvalidXml", "Multiple possible root nodes found.", J(e, a));
3149
3168
  t.unpairedTags.indexOf(c) !== -1 || n.push({
3150
3169
  tagName: c,
3151
3170
  tagStartPos: o
@@ -3153,31 +3172,31 @@ var nr = class {
3153
3172
  }
3154
3173
  for (a++; a < e.length; a++) if (e[a] === "<") {
3155
3174
  if (e[a + 1] === "!") {
3156
- a++, a = Yn(e, a);
3175
+ a++, a = Xn(e, a);
3157
3176
  continue;
3158
3177
  }
3159
3178
  if (e[a + 1] !== "?") break;
3160
- if (a = Jn(e, ++a), a.err) return a;
3179
+ if (a = Yn(e, ++a), a.err) return a;
3161
3180
  } else if (e[a] === "&") {
3162
- let t = $n(e, a);
3163
- if (t == -1) return K("InvalidChar", "char '&' is not expected.", q(e, a));
3181
+ let t = er(e, a);
3182
+ if (t == -1) return q("InvalidChar", "char '&' is not expected.", J(e, a));
3164
3183
  a = t;
3165
- } else if (!0 === i && !qn(e[a])) return K("InvalidXml", "Extra text at the end", q(e, a));
3184
+ } else if (!0 === i && !Jn(e[a])) return q("InvalidXml", "Extra text at the end", J(e, a));
3166
3185
  e[a] === "<" && a--;
3167
3186
  }
3168
3187
  }
3169
3188
  }
3170
- return r ? n.length == 1 ? K("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", q(e, n[0].tagStartPos)) : !(n.length > 0) || K("InvalidXml", "Invalid '" + JSON.stringify(n.map(((e) => e.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", {
3189
+ return r ? n.length == 1 ? q("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", J(e, n[0].tagStartPos)) : !(n.length > 0) || q("InvalidXml", "Invalid '" + JSON.stringify(n.map(((e) => e.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", {
3171
3190
  line: 1,
3172
3191
  col: 1
3173
- }) : K("InvalidXml", "Start tag expected.", 1);
3192
+ }) : q("InvalidXml", "Start tag expected.", 1);
3174
3193
  }(e, t);
3175
3194
  if (!0 !== n) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3176
3195
  }
3177
- let n = new Tn(this.options);
3196
+ let n = new En(this.options);
3178
3197
  n.addExternalEntities(this.externalEntities);
3179
3198
  let r = n.parseXml(e);
3180
- return this.options.preserveOrder || r === void 0 ? r : Vn(r, this.options);
3199
+ return this.options.preserveOrder || r === void 0 ? r : Hn(r, this.options);
3181
3200
  }
3182
3201
  addEntity(e, t) {
3183
3202
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -3186,36 +3205,36 @@ var nr = class {
3186
3205
  this.externalEntities[e] = t;
3187
3206
  }
3188
3207
  static getMetaDataSymbol() {
3189
- return H.getMetaDataSymbol();
3208
+ return U.getMetaDataSymbol();
3190
3209
  }
3191
- }, rr = k(829), J = k.n(rr), Y = function(e) {
3210
+ }, ir = A(829), Y = A.n(ir), X = function(e) {
3192
3211
  return e.Array = "array", e.Object = "object", e.Original = "original", e;
3193
- }(Y || {});
3194
- function ir(e, t) {
3212
+ }(X || {});
3213
+ function ar(e, t) {
3195
3214
  if (!e.endsWith("propstat.prop.displayname")) return t;
3196
3215
  }
3197
- function ar(e, t) {
3198
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Y.Original, r = J().get(e, t);
3216
+ function or(e, t) {
3217
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : X.Original, r = Y().get(e, t);
3199
3218
  return n === "array" && !1 === Array.isArray(r) ? [r] : n === "object" && Array.isArray(r) ? r[0] : r;
3200
3219
  }
3201
- function or(e, t) {
3220
+ function sr(e, t) {
3202
3221
  return t ??= {
3203
3222
  attributeNamePrefix: "@",
3204
3223
  attributeParsers: [],
3205
- tagParsers: [ir]
3224
+ tagParsers: [ar]
3206
3225
  }, new Promise(((n) => {
3207
3226
  n(function(e) {
3208
3227
  let { multistatus: t } = e;
3209
3228
  if (t === "") return { multistatus: { response: [] } };
3210
3229
  if (!t) throw Error("Invalid response: No root multistatus found");
3211
3230
  let n = { multistatus: Array.isArray(t) ? t[0] : t };
3212
- return J().set(n, "multistatus.response", ar(n, "multistatus.response", Y.Array)), J().set(n, "multistatus.response", J().get(n, "multistatus.response").map(((e) => function(e) {
3231
+ return Y().set(n, "multistatus.response", or(n, "multistatus.response", X.Array)), Y().set(n, "multistatus.response", Y().get(n, "multistatus.response").map(((e) => function(e) {
3213
3232
  let t = Object.assign({}, e);
3214
- return t.status ? J().set(t, "status", ar(t, "status", Y.Object)) : (J().set(t, "propstat", ar(t, "propstat", Y.Object)), J().set(t, "propstat.prop", ar(t, "propstat.prop", Y.Object))), t;
3233
+ return t.status ? Y().set(t, "status", or(t, "status", X.Object)) : (Y().set(t, "propstat", or(t, "propstat", X.Object)), Y().set(t, "propstat.prop", or(t, "propstat.prop", X.Object))), t;
3215
3234
  }(e)))), n;
3216
3235
  }(function(e) {
3217
3236
  let { attributeNamePrefix: t, attributeParsers: n, tagParsers: r } = e;
3218
- return new nr({
3237
+ return new rr({
3219
3238
  allowBooleanAttributes: !0,
3220
3239
  attributeNamePrefix: t,
3221
3240
  textNodeName: "text",
@@ -3243,10 +3262,10 @@ function or(e, t) {
3243
3262
  }(t).parse(e)));
3244
3263
  }));
3245
3264
  }
3246
- function sr(e, t) {
3265
+ function cr(e, t) {
3247
3266
  let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], { getlastmodified: r = null, getcontentlength: i = "0", resourcetype: a = null, getcontenttype: o = null, getetag: s = null } = e, c = a && typeof a == "object" && a.collection !== void 0 ? "directory" : "file", l = {
3248
3267
  filename: t,
3249
- basename: ze().basename(t),
3268
+ basename: Be().basename(t),
3250
3269
  lastmod: r,
3251
3270
  size: parseInt(i, 10),
3252
3271
  type: c,
@@ -3254,7 +3273,7 @@ function sr(e, t) {
3254
3273
  };
3255
3274
  return c === "file" && (l.mime = o && typeof o == "string" ? o.split(";")[0] : ""), n && (e.displayname !== void 0 && (e.displayname = String(e.displayname)), l.props = e), l;
3256
3275
  }
3257
- function cr(e, t) {
3276
+ function lr(e, t) {
3258
3277
  let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = null;
3259
3278
  try {
3260
3279
  e.multistatus.response[0].propstat && (r = e.multistatus.response[0]);
@@ -3265,9 +3284,9 @@ function cr(e, t) {
3265
3284
  let e = /* @__PURE__ */ Error(`Invalid response: ${l} ${c}`);
3266
3285
  throw e.status = l, e;
3267
3286
  }
3268
- return sr(i, Ue(t), n);
3287
+ return cr(i, We(t), n);
3269
3288
  }
3270
- function lr(e) {
3289
+ function ur(e) {
3271
3290
  switch (String(e)) {
3272
3291
  case "-3": return "unlimited";
3273
3292
  case "-2":
@@ -3275,10 +3294,10 @@ function lr(e) {
3275
3294
  default: return parseInt(String(e), 10);
3276
3295
  }
3277
3296
  }
3278
- function ur(e, t, n) {
3297
+ function dr(e, t, n) {
3279
3298
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
3280
3299
  }
3281
- var dr = function(e) {
3300
+ var fr = function(e) {
3282
3301
  return function() {
3283
3302
  var t = [...arguments];
3284
3303
  try {
@@ -3289,47 +3308,47 @@ var dr = function(e) {
3289
3308
  };
3290
3309
  }((function(e, t) {
3291
3310
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { details: r = !1 } = n;
3292
- return ur(F(I({
3293
- url: M(e.remoteURL, j(t)),
3311
+ return dr(I(L({
3312
+ url: N(e.remoteURL, M(t)),
3294
3313
  method: "PROPFIND",
3295
3314
  headers: {
3296
3315
  Accept: "text/plain,application/xml",
3297
3316
  Depth: "0"
3298
3317
  }
3299
3318
  }, e, n), e), (function(n) {
3300
- return B(e, n), ur(n.text(), (function(i) {
3301
- return ur(or(i, e.parsing), (function(e) {
3302
- return V(n, cr(e, t, r), r);
3319
+ return V(e, n), dr(n.text(), (function(i) {
3320
+ return dr(sr(i, e.parsing), (function(e) {
3321
+ return H(n, lr(e, t, r), r);
3303
3322
  }));
3304
3323
  }));
3305
3324
  }));
3306
3325
  }));
3307
- function fr(e, t, n) {
3326
+ function pr(e, t, n) {
3308
3327
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
3309
3328
  }
3310
- var pr = mr((function(e, t) {
3329
+ var mr = hr((function(e, t) {
3311
3330
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = function(e) {
3312
3331
  if (!e || e === "/") return [];
3313
3332
  let t = e, n = [];
3314
3333
  do
3315
- n.push(t), t = ze().dirname(t);
3334
+ n.push(t), t = Be().dirname(t);
3316
3335
  while (t && t !== "/");
3317
3336
  return n;
3318
- }(Ue(t));
3337
+ }(We(t));
3319
3338
  r.sort(((e, t) => e.length > t.length ? 1 : t.length > e.length ? -1 : 0));
3320
3339
  let i = !1;
3321
3340
  return function(e, t, n) {
3322
- if (typeof e[_r] == "function") {
3323
- var r, i, a, o = e[_r]();
3341
+ if (typeof e[vr] == "function") {
3342
+ var r, i, a, o = e[vr]();
3324
3343
  function n(e) {
3325
3344
  try {
3326
3345
  for (; !(r = o.next()).done;) if ((e = t(r.value)) && e.then) {
3327
- if (!vr(e)) return void e.then(n, a ||= X.bind(null, i = new Z(), 2));
3346
+ if (!br(e)) return void e.then(n, a ||= Z.bind(null, i = new yr(), 2));
3328
3347
  e = e.v;
3329
3348
  }
3330
- i ? X(i, 1, e) : i = e;
3349
+ i ? Z(i, 1, e) : i = e;
3331
3350
  } catch (e) {
3332
- X(i ||= new Z(), 2, e);
3351
+ Z(i ||= new yr(), 2, e);
3333
3352
  }
3334
3353
  }
3335
3354
  if (n(), o.return) {
@@ -3353,12 +3372,12 @@ var pr = mr((function(e, t) {
3353
3372
  return function o(s) {
3354
3373
  try {
3355
3374
  for (; ++a < e.length && (!n || !n());) if ((s = t(a)) && s.then) {
3356
- if (!vr(s)) return void s.then(o, i ||= X.bind(null, r = new Z(), 2));
3375
+ if (!br(s)) return void s.then(o, i ||= Z.bind(null, r = new yr(), 2));
3357
3376
  s = s.v;
3358
3377
  }
3359
- r ? X(r, 1, s) : r = s;
3378
+ r ? Z(r, 1, s) : r = s;
3360
3379
  } catch (e) {
3361
- X(r ||= new Z(), 2, e);
3380
+ Z(r ||= new yr(), 2, e);
3362
3381
  }
3363
3382
  }(), r;
3364
3383
  }(c, (function(e) {
@@ -3368,7 +3387,7 @@ var pr = mr((function(e, t) {
3368
3387
  return a = function() {
3369
3388
  return function(n, i) {
3370
3389
  try {
3371
- var a = fr(dr(e, r), (function(e) {
3390
+ var a = pr(fr(e, r), (function(e) {
3372
3391
  if (e.type !== "directory") throw Error(`Path includes a file: ${t}`);
3373
3392
  }));
3374
3393
  } catch (e) {
@@ -3378,7 +3397,7 @@ var pr = mr((function(e, t) {
3378
3397
  }(0, (function(t) {
3379
3398
  let a = t;
3380
3399
  return function() {
3381
- if (a.status === 404) return i = !0, gr(yr(e, r, {
3400
+ if (a.status === 404) return i = !0, _r(xr(e, r, {
3382
3401
  ...n,
3383
3402
  recursive: !1
3384
3403
  }));
@@ -3386,7 +3405,7 @@ var pr = mr((function(e, t) {
3386
3405
  }();
3387
3406
  }));
3388
3407
  }, (o = function() {
3389
- if (i) return gr(yr(e, r, {
3408
+ if (i) return _r(xr(e, r, {
3390
3409
  ...n,
3391
3410
  recursive: !1
3392
3411
  }));
@@ -3396,7 +3415,7 @@ var pr = mr((function(e, t) {
3396
3415
  return !1;
3397
3416
  }));
3398
3417
  }));
3399
- function mr(e) {
3418
+ function hr(e) {
3400
3419
  return function() {
3401
3420
  var t = [...arguments];
3402
3421
  try {
@@ -3406,24 +3425,24 @@ function mr(e) {
3406
3425
  }
3407
3426
  };
3408
3427
  }
3409
- function hr() {}
3410
- function gr(e, t) {
3411
- if (!t) return e && e.then ? e.then(hr) : Promise.resolve();
3428
+ function gr() {}
3429
+ function _r(e, t) {
3430
+ if (!t) return e && e.then ? e.then(gr) : Promise.resolve();
3412
3431
  }
3413
- var _r = typeof Symbol < "u" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
3414
- function X(e, t, n) {
3432
+ var vr = typeof Symbol < "u" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
3433
+ function Z(e, t, n) {
3415
3434
  if (!e.s) {
3416
- if (n instanceof Z) {
3417
- if (!n.s) return void (n.o = X.bind(null, e, t));
3435
+ if (n instanceof yr) {
3436
+ if (!n.s) return void (n.o = Z.bind(null, e, t));
3418
3437
  1 & t && (t = n.s), n = n.v;
3419
3438
  }
3420
- if (n && n.then) return void n.then(X.bind(null, e, t), X.bind(null, e, 2));
3439
+ if (n && n.then) return void n.then(Z.bind(null, e, t), Z.bind(null, e, 2));
3421
3440
  e.s = t, e.v = n;
3422
3441
  let r = e.o;
3423
3442
  r && r(e);
3424
3443
  }
3425
3444
  }
3426
- var Z = function() {
3445
+ var yr = function() {
3427
3446
  function e() {}
3428
3447
  return e.prototype.then = function(t, n) {
3429
3448
  let r = new e(), i = this.s;
@@ -3431,9 +3450,9 @@ var Z = function() {
3431
3450
  let e = 1 & i ? t : n;
3432
3451
  if (e) {
3433
3452
  try {
3434
- X(r, 1, e(this.v));
3453
+ Z(r, 1, e(this.v));
3435
3454
  } catch (e) {
3436
- X(r, 2, e);
3455
+ Z(r, 2, e);
3437
3456
  }
3438
3457
  return r;
3439
3458
  }
@@ -3442,28 +3461,28 @@ var Z = function() {
3442
3461
  return this.o = function(e) {
3443
3462
  try {
3444
3463
  let i = e.v;
3445
- 1 & e.s ? X(r, 1, t ? t(i) : i) : n ? X(r, 1, n(i)) : X(r, 2, i);
3464
+ 1 & e.s ? Z(r, 1, t ? t(i) : i) : n ? Z(r, 1, n(i)) : Z(r, 2, i);
3446
3465
  } catch (e) {
3447
- X(r, 2, e);
3466
+ Z(r, 2, e);
3448
3467
  }
3449
3468
  }, r;
3450
3469
  }, e;
3451
3470
  }();
3452
- function vr(e) {
3453
- return e instanceof Z && 1 & e.s;
3471
+ function br(e) {
3472
+ return e instanceof yr && 1 & e.s;
3454
3473
  }
3455
- var yr = mr((function(e, t) {
3474
+ var xr = hr((function(e, t) {
3456
3475
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3457
- if (!0 === n.recursive) return pr(e, t, n);
3458
- let r = I({
3459
- url: M(e.remoteURL, (i = j(t), i.endsWith("/") ? i : i + "/")),
3476
+ if (!0 === n.recursive) return mr(e, t, n);
3477
+ let r = L({
3478
+ url: N(e.remoteURL, (i = M(t), i.endsWith("/") ? i : i + "/")),
3460
3479
  method: "MKCOL"
3461
3480
  }, e, n);
3462
3481
  var i;
3463
- return fr(F(r, e), (function(t) {
3464
- B(e, t);
3482
+ return pr(I(r, e), (function(t) {
3483
+ V(e, t);
3465
3484
  }));
3466
- })), br = k(388), xr = k.n(br), Sr = function(e) {
3485
+ })), Sr = A(388), Cr = A.n(Sr), wr = function(e) {
3467
3486
  return function() {
3468
3487
  var t = [...arguments];
3469
3488
  try {
@@ -3478,22 +3497,22 @@ var yr = mr((function(e, t) {
3478
3497
  let e = `bytes=${n.range.start}-`;
3479
3498
  typeof n.range.end == "number" && (e = `${e}${n.range.end}`), r.Range = e;
3480
3499
  }
3481
- let i = I({
3482
- url: M(e.remoteURL, j(t)),
3500
+ let i = L({
3501
+ url: N(e.remoteURL, M(t)),
3483
3502
  method: "GET",
3484
3503
  headers: r
3485
3504
  }, e, n);
3486
3505
  return o = function(t) {
3487
- if (B(e, t), r.Range && t.status !== 206) {
3506
+ if (V(e, t), r.Range && t.status !== 206) {
3488
3507
  let e = /* @__PURE__ */ Error(`Invalid response code for partial request: ${t.status}`);
3489
3508
  throw e.status = t.status, e;
3490
3509
  }
3491
3510
  return n.callback && setTimeout((() => {
3492
3511
  n.callback(t);
3493
3512
  }), 0), t.body;
3494
- }, (a = F(i, e)) && a.then || (a = Promise.resolve(a)), o ? a.then(o) : a;
3513
+ }, (a = I(i, e)) && a.then || (a = Promise.resolve(a)), o ? a.then(o) : a;
3495
3514
  var a, o;
3496
- })), Cr = () => {}, wr = function(e) {
3515
+ })), Tr = () => {}, Er = function(e) {
3497
3516
  return function() {
3498
3517
  var t = [...arguments];
3499
3518
  try {
@@ -3503,13 +3522,13 @@ var yr = mr((function(e, t) {
3503
3522
  }
3504
3523
  };
3505
3524
  }((function(e, t, n) {
3506
- n.url ||= M(e.remoteURL, j(t));
3507
- let r = I(n, e, {});
3525
+ n.url ||= N(e.remoteURL, M(t));
3526
+ let r = L(n, e, {});
3508
3527
  return a = function(t) {
3509
- return B(e, t), t;
3510
- }, (i = F(r, e)) && i.then || (i = Promise.resolve(i)), a ? i.then(a) : i;
3528
+ return V(e, t), t;
3529
+ }, (i = I(r, e)) && i.then || (i = Promise.resolve(i)), a ? i.then(a) : i;
3511
3530
  var i, a;
3512
- })), Tr = function(e) {
3531
+ })), Dr = function(e) {
3513
3532
  return function() {
3514
3533
  var t = [...arguments];
3515
3534
  try {
@@ -3519,15 +3538,15 @@ var yr = mr((function(e, t) {
3519
3538
  }
3520
3539
  };
3521
3540
  }((function(e, t) {
3522
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = I({
3523
- url: M(e.remoteURL, j(t)),
3541
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = L({
3542
+ url: N(e.remoteURL, M(t)),
3524
3543
  method: "DELETE"
3525
3544
  }, e, n);
3526
3545
  return a = function(t) {
3527
- B(e, t);
3528
- }, (i = F(r, e)) && i.then || (i = Promise.resolve(i)), a ? i.then(a) : i;
3546
+ V(e, t);
3547
+ }, (i = I(r, e)) && i.then || (i = Promise.resolve(i)), a ? i.then(a) : i;
3529
3548
  var i, a;
3530
- })), Er = function(e) {
3549
+ })), Or = function(e) {
3531
3550
  return function() {
3532
3551
  var t = [...arguments];
3533
3552
  try {
@@ -3540,7 +3559,7 @@ var yr = mr((function(e, t) {
3540
3559
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3541
3560
  return function(r, i) {
3542
3561
  try {
3543
- var a = (o = dr(e, t, n), s = function() {
3562
+ var a = (o = fr(e, t, n), s = function() {
3544
3563
  return !0;
3545
3564
  }, c ? s ? s(o) : o : (o && o.then || (o = Promise.resolve(o)), s ? o.then(s) : o));
3546
3565
  } catch (e) {
@@ -3553,10 +3572,10 @@ var yr = mr((function(e, t) {
3553
3572
  throw e;
3554
3573
  }));
3555
3574
  }));
3556
- function Dr(e, t, n) {
3575
+ function kr(e, t, n) {
3557
3576
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
3558
3577
  }
3559
- var Or = function(e) {
3578
+ var Ar = function(e) {
3560
3579
  return function() {
3561
3580
  var t = [...arguments];
3562
3581
  try {
@@ -3567,38 +3586,38 @@ var Or = function(e) {
3567
3586
  };
3568
3587
  }((function(e, t) {
3569
3588
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3570
- return Dr(F(I({
3571
- url: M(e.remoteURL, j(t), "/"),
3589
+ return kr(I(L({
3590
+ url: N(e.remoteURL, M(t), "/"),
3572
3591
  method: "PROPFIND",
3573
3592
  headers: {
3574
3593
  Accept: "text/plain,application/xml",
3575
3594
  Depth: n.deep ? "infinity" : "1"
3576
3595
  }
3577
3596
  }, e, n), e), (function(r) {
3578
- return B(e, r), Dr(r.text(), (function(i) {
3597
+ return V(e, r), kr(r.text(), (function(i) {
3579
3598
  if (!i) throw Error("Failed parsing directory contents: Empty response");
3580
- return Dr(or(i, e.parsing), (function(i) {
3581
- let a = He(t), o = function(e, t, n) {
3582
- let r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], i = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], a = ze().join(t, "/"), { multistatus: { response: o } } = e, s = o.map(((e) => {
3599
+ return kr(sr(i, e.parsing), (function(i) {
3600
+ let a = Ue(t), o = function(e, t, n) {
3601
+ let r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], i = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], a = Be().join(t, "/"), { multistatus: { response: o } } = e, s = o.map(((e) => {
3583
3602
  let t = function(e) {
3584
3603
  try {
3585
3604
  return e.replace(/^https?:\/\/[^\/]+/, "");
3586
3605
  } catch (e) {
3587
- throw new A(e, "Failed normalising HREF");
3606
+ throw new j(e, "Failed normalising HREF");
3588
3607
  }
3589
3608
  }(e.href), { propstat: { prop: n } } = e;
3590
- return sr(n, a === "/" ? decodeURIComponent(Ue(t)) : Ue(ze().relative(decodeURIComponent(a), decodeURIComponent(t))), r);
3609
+ return cr(n, a === "/" ? decodeURIComponent(We(t)) : We(Be().relative(decodeURIComponent(a), decodeURIComponent(t))), r);
3591
3610
  }));
3592
3611
  return i ? s : s.filter(((e) => e.basename && (e.type === "file" || e.filename !== n.replace(/\/$/, ""))));
3593
- }(i, He(e.remoteBasePath || e.remotePath), a, n.details, n.includeSelf);
3612
+ }(i, Ue(e.remoteBasePath || e.remotePath), a, n.details, n.includeSelf);
3594
3613
  return n.glob && (o = function(e, t) {
3595
- return e.filter(((e) => L(e.filename, t, { matchBase: !0 })));
3596
- }(o, n.glob)), V(r, o, n.details);
3614
+ return e.filter(((e) => R(e.filename, t, { matchBase: !0 })));
3615
+ }(o, n.glob)), H(r, o, n.details);
3597
3616
  }));
3598
3617
  }));
3599
3618
  }));
3600
3619
  }));
3601
- function kr(e) {
3620
+ function jr(e) {
3602
3621
  return function() {
3603
3622
  var t = [...arguments];
3604
3623
  try {
@@ -3608,58 +3627,58 @@ function kr(e) {
3608
3627
  }
3609
3628
  };
3610
3629
  }
3611
- var Ar = kr((function(e, t) {
3630
+ var Mr = jr((function(e, t) {
3612
3631
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3613
- return jr(F(I({
3614
- url: M(e.remoteURL, j(t)),
3632
+ return Nr(I(L({
3633
+ url: N(e.remoteURL, M(t)),
3615
3634
  method: "GET",
3616
3635
  headers: { Accept: "text/plain" },
3617
- transformResponse: [Pr]
3636
+ transformResponse: [Ir]
3618
3637
  }, e, n), e), (function(t) {
3619
- return B(e, t), jr(t.text(), (function(e) {
3620
- return V(t, e, n.details);
3638
+ return V(e, t), Nr(t.text(), (function(e) {
3639
+ return H(t, e, n.details);
3621
3640
  }));
3622
3641
  }));
3623
3642
  }));
3624
- function jr(e, t, n) {
3643
+ function Nr(e, t, n) {
3625
3644
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
3626
3645
  }
3627
- var Mr = kr((function(e, t) {
3646
+ var Pr = jr((function(e, t) {
3628
3647
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3629
- return jr(F(I({
3630
- url: M(e.remoteURL, j(t)),
3648
+ return Nr(I(L({
3649
+ url: N(e.remoteURL, M(t)),
3631
3650
  method: "GET"
3632
3651
  }, e, n), e), (function(t) {
3633
3652
  let r;
3634
- return B(e, t), function(e, t) {
3653
+ return V(e, t), function(e, t) {
3635
3654
  var n = e();
3636
3655
  return n && n.then ? n.then(t) : t();
3637
3656
  }((function() {
3638
- return jr(t.arrayBuffer(), (function(e) {
3657
+ return Nr(t.arrayBuffer(), (function(e) {
3639
3658
  r = e;
3640
3659
  }));
3641
3660
  }), (function() {
3642
- return V(t, r, n.details);
3661
+ return H(t, r, n.details);
3643
3662
  }));
3644
3663
  }));
3645
- })), Nr = kr((function(e, t) {
3664
+ })), Fr = jr((function(e, t) {
3646
3665
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { format: r = "binary" } = n;
3647
- if (r !== "binary" && r !== "text") throw new A({ info: { code: P.InvalidOutputFormat } }, `Invalid output format: ${r}`);
3648
- return r === "text" ? Ar(e, t, n) : Mr(e, t, n);
3649
- })), Pr = (e) => e;
3650
- function Fr(e, t) {
3666
+ if (r !== "binary" && r !== "text") throw new j({ info: { code: F.InvalidOutputFormat } }, `Invalid output format: ${r}`);
3667
+ return r === "text" ? Mr(e, t, n) : Pr(e, t, n);
3668
+ })), Ir = (e) => e;
3669
+ function Lr(e, t) {
3651
3670
  let n = "";
3652
- return t.format && t.indentBy.length > 0 && (n = "\n"), Ir(e, t, "", n);
3671
+ return t.format && t.indentBy.length > 0 && (n = "\n"), Rr(e, t, "", n);
3653
3672
  }
3654
- function Ir(e, t, n, r) {
3673
+ function Rr(e, t, n, r) {
3655
3674
  let i = "", a = !1;
3656
3675
  for (let o = 0; o < e.length; o++) {
3657
- let s = e[o], c = Lr(s);
3676
+ let s = e[o], c = zr(s);
3658
3677
  if (c === void 0) continue;
3659
3678
  let l = "";
3660
3679
  if (l = n.length === 0 ? c : `${n}.${c}`, c === t.textNodeName) {
3661
3680
  let e = s[c];
3662
- zr(l, t) || (e = t.tagValueProcessor(c, e), e = Br(e, t)), a && (i += r), i += e, a = !1;
3681
+ Vr(l, t) || (e = t.tagValueProcessor(c, e), e = Hr(e, t)), a && (i += r), i += e, a = !1;
3663
3682
  continue;
3664
3683
  }
3665
3684
  if (c === t.cdataPropName) {
@@ -3671,46 +3690,46 @@ function Ir(e, t, n, r) {
3671
3690
  continue;
3672
3691
  }
3673
3692
  if (c[0] === "?") {
3674
- let e = Rr(s[":@"], t), n = c === "?xml" ? "" : r, o = s[c][0][t.textNodeName];
3693
+ let e = Br(s[":@"], t), n = c === "?xml" ? "" : r, o = s[c][0][t.textNodeName];
3675
3694
  o = o.length === 0 ? "" : " " + o, i += n + `<${c}${o}${e}?>`, a = !0;
3676
3695
  continue;
3677
3696
  }
3678
3697
  let u = r;
3679
3698
  u !== "" && (u += t.indentBy);
3680
- let d = r + `<${c}${Rr(s[":@"], t)}`, f = Ir(s[c], t, l, u);
3699
+ let d = r + `<${c}${Br(s[":@"], t)}`, f = Rr(s[c], t, l, u);
3681
3700
  t.unpairedTags.indexOf(c) === -1 ? f && f.length !== 0 || !t.suppressEmptyNode ? f && f.endsWith(">") ? i += d + `>${f}${r}</${c}>` : (i += d + ">", f && r !== "" && (f.includes("/>") || f.includes("</")) ? i += r + t.indentBy + f + r : i += f, i += `</${c}>`) : i += d + "/>" : t.suppressUnpairedNode ? i += d + ">" : i += d + "/>", a = !0;
3682
3701
  }
3683
3702
  return i;
3684
3703
  }
3685
- function Lr(e) {
3704
+ function zr(e) {
3686
3705
  let t = Object.keys(e);
3687
3706
  for (let n = 0; n < t.length; n++) {
3688
3707
  let r = t[n];
3689
3708
  if (e.hasOwnProperty(r) && r !== ":@") return r;
3690
3709
  }
3691
3710
  }
3692
- function Rr(e, t) {
3711
+ function Br(e, t) {
3693
3712
  let n = "";
3694
3713
  if (e && !t.ignoreAttributes) for (let r in e) {
3695
3714
  if (!e.hasOwnProperty(r)) continue;
3696
3715
  let i = t.attributeValueProcessor(r, e[r]);
3697
- i = Br(i, t), !0 === i && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${i}"`;
3716
+ i = Hr(i, t), !0 === i && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${i}"`;
3698
3717
  }
3699
3718
  return n;
3700
3719
  }
3701
- function zr(e, t) {
3720
+ function Vr(e, t) {
3702
3721
  let n = (e = e.substr(0, e.length - t.textNodeName.length - 1)).substr(e.lastIndexOf(".") + 1);
3703
3722
  for (let r in t.stopNodes) if (t.stopNodes[r] === e || t.stopNodes[r] === "*." + n) return !0;
3704
3723
  return !1;
3705
3724
  }
3706
- function Br(e, t) {
3725
+ function Hr(e, t) {
3707
3726
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
3708
3727
  let r = t.entities[n];
3709
3728
  e = e.replace(r.regex, r.val);
3710
3729
  }
3711
3730
  return e;
3712
3731
  }
3713
- var Vr = {
3732
+ var Ur = {
3714
3733
  attributeNamePrefix: "@_",
3715
3734
  attributesGroupName: !1,
3716
3735
  textNodeName: "#text",
@@ -3757,44 +3776,44 @@ var Vr = {
3757
3776
  oneListGroup: !1
3758
3777
  };
3759
3778
  function Q(e) {
3760
- this.options = Object.assign({}, Vr, e), !0 === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
3779
+ this.options = Object.assign({}, Ur, e), !0 === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
3761
3780
  return !1;
3762
- } : (this.ignoreAttributesFn = wn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Wr), this.processTextOrObjNode = Hr, this.options.format ? (this.indentate = Ur, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3781
+ } : (this.ignoreAttributesFn = Tn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Kr), this.processTextOrObjNode = Wr, this.options.format ? (this.indentate = Gr, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
3763
3782
  return "";
3764
3783
  }, this.tagEndChar = ">", this.newLine = "");
3765
3784
  }
3766
- function Hr(e, t, n, r) {
3785
+ function Wr(e, t, n, r) {
3767
3786
  let i = this.j2x(e, n + 1, r.concat(t));
3768
3787
  return e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, i.attrStr, n) : this.buildObjectNode(i.val, t, i.attrStr, n);
3769
3788
  }
3770
- function Ur(e) {
3789
+ function Gr(e) {
3771
3790
  return this.options.indentBy.repeat(e);
3772
3791
  }
3773
- function Wr(e) {
3792
+ function Kr(e) {
3774
3793
  return !(!e.startsWith(this.options.attributeNamePrefix) || e === this.options.textNodeName) && e.substr(this.attrPrefixLen);
3775
3794
  }
3776
- function Gr(e) {
3795
+ function qr(e) {
3777
3796
  return new Q({
3778
3797
  attributeNamePrefix: "@_",
3779
3798
  format: !0,
3780
3799
  ignoreAttributes: !1,
3781
3800
  suppressEmptyNode: !0
3782
- }).build(Kr({ lockinfo: {
3801
+ }).build(Jr({ lockinfo: {
3783
3802
  "@_xmlns:d": "DAV:",
3784
3803
  lockscope: { exclusive: {} },
3785
3804
  locktype: { write: {} },
3786
3805
  owner: { href: e }
3787
3806
  } }, "d"));
3788
3807
  }
3789
- function Kr(e, t) {
3808
+ function Jr(e, t) {
3790
3809
  let n = { ...e };
3791
- for (let e in n) n.hasOwnProperty(e) && (n[e] && typeof n[e] == "object" && e.indexOf(":") === -1 ? (n[`${t}:${e}`] = Kr(n[e], t), delete n[e]) : !1 === /^@_/.test(e) && (n[`${t}:${e}`] = n[e], delete n[e]));
3810
+ for (let e in n) n.hasOwnProperty(e) && (n[e] && typeof n[e] == "object" && e.indexOf(":") === -1 ? (n[`${t}:${e}`] = Jr(n[e], t), delete n[e]) : !1 === /^@_/.test(e) && (n[`${t}:${e}`] = n[e], delete n[e]));
3792
3811
  return n;
3793
3812
  }
3794
- function qr(e, t, n) {
3813
+ function Yr(e, t, n) {
3795
3814
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
3796
3815
  }
3797
- function Jr(e) {
3816
+ function Xr(e) {
3798
3817
  return function() {
3799
3818
  var t = [...arguments];
3800
3819
  try {
@@ -3805,38 +3824,45 @@ function Jr(e) {
3805
3824
  };
3806
3825
  }
3807
3826
  Q.prototype.build = function(e) {
3808
- return this.options.preserveOrder ? Fr(e, this.options) : (Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e }), this.j2x(e, 0, []).val);
3827
+ return this.options.preserveOrder ? Lr(e, this.options) : (Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e }), this.j2x(e, 0, []).val);
3809
3828
  }, Q.prototype.j2x = function(e, t, n) {
3810
3829
  let r = "", i = "", a = n.join(".");
3811
- for (let o in e) if (Object.prototype.hasOwnProperty.call(e, o)) if (e[o] === void 0) this.isAttribute(o) && (i += "");
3812
- else if (e[o] === null) this.isAttribute(o) || o === this.options.cdataPropName ? i += "" : o[0] === "?" ? i += this.indentate(t) + "<" + o + "?" + this.tagEndChar : i += this.indentate(t) + "<" + o + "/" + this.tagEndChar;
3813
- else if (e[o] instanceof Date) i += this.buildTextValNode(e[o], o, "", t);
3814
- else if (typeof e[o] != "object") {
3815
- let n = this.isAttribute(o);
3816
- if (n && !this.ignoreAttributesFn(n, a)) r += this.buildAttrPairStr(n, "" + e[o]);
3817
- else if (!n) if (o === this.options.textNodeName) {
3818
- let t = this.options.tagValueProcessor(o, "" + e[o]);
3819
- i += this.replaceEntitiesValue(t);
3820
- } else i += this.buildTextValNode(e[o], o, "", t);
3821
- } else if (Array.isArray(e[o])) {
3822
- let r = e[o].length, a = "", s = "";
3823
- for (let c = 0; c < r; c++) {
3824
- let r = e[o][c];
3825
- if (r !== void 0) if (r === null) o[0] === "?" ? i += this.indentate(t) + "<" + o + "?" + this.tagEndChar : i += this.indentate(t) + "<" + o + "/" + this.tagEndChar;
3826
- else if (typeof r == "object") if (this.options.oneListGroup) {
3827
- let e = this.j2x(r, t + 1, n.concat(o));
3828
- a += e.val, this.options.attributesGroupName && r.hasOwnProperty(this.options.attributesGroupName) && (s += e.attrStr);
3829
- } else a += this.processTextOrObjNode(r, o, t, n);
3830
- else if (this.options.oneListGroup) {
3831
- let e = this.options.tagValueProcessor(o, r);
3832
- e = this.replaceEntitiesValue(e), a += e;
3833
- } else a += this.buildTextValNode(r, o, "", t);
3834
- }
3835
- this.options.oneListGroup && (a = this.buildObjectNode(a, o, s, t)), i += a;
3836
- } else if (this.options.attributesGroupName && o === this.options.attributesGroupName) {
3837
- let t = Object.keys(e[o]), n = t.length;
3838
- for (let i = 0; i < n; i++) r += this.buildAttrPairStr(t[i], "" + e[o][t[i]]);
3839
- } else i += this.processTextOrObjNode(e[o], o, t, n);
3830
+ for (let o in e) if (Object.prototype.hasOwnProperty.call(e, o)) {
3831
+ if (e[o] === void 0) this.isAttribute(o) && (i += "");
3832
+ else if (e[o] === null) this.isAttribute(o) || o === this.options.cdataPropName ? i += "" : o[0] === "?" ? i += this.indentate(t) + "<" + o + "?" + this.tagEndChar : i += this.indentate(t) + "<" + o + "/" + this.tagEndChar;
3833
+ else if (e[o] instanceof Date) i += this.buildTextValNode(e[o], o, "", t);
3834
+ else if (typeof e[o] != "object") {
3835
+ let n = this.isAttribute(o);
3836
+ if (n && !this.ignoreAttributesFn(n, a)) r += this.buildAttrPairStr(n, "" + e[o]);
3837
+ else if (!n) {
3838
+ if (o === this.options.textNodeName) {
3839
+ let t = this.options.tagValueProcessor(o, "" + e[o]);
3840
+ i += this.replaceEntitiesValue(t);
3841
+ } else i += this.buildTextValNode(e[o], o, "", t);
3842
+ }
3843
+ } else if (Array.isArray(e[o])) {
3844
+ let r = e[o].length, a = "", s = "";
3845
+ for (let c = 0; c < r; c++) {
3846
+ let r = e[o][c];
3847
+ if (r !== void 0) {
3848
+ if (r === null) o[0] === "?" ? i += this.indentate(t) + "<" + o + "?" + this.tagEndChar : i += this.indentate(t) + "<" + o + "/" + this.tagEndChar;
3849
+ else if (typeof r == "object") {
3850
+ if (this.options.oneListGroup) {
3851
+ let e = this.j2x(r, t + 1, n.concat(o));
3852
+ a += e.val, this.options.attributesGroupName && r.hasOwnProperty(this.options.attributesGroupName) && (s += e.attrStr);
3853
+ } else a += this.processTextOrObjNode(r, o, t, n);
3854
+ } else if (this.options.oneListGroup) {
3855
+ let e = this.options.tagValueProcessor(o, r);
3856
+ e = this.replaceEntitiesValue(e), a += e;
3857
+ } else a += this.buildTextValNode(r, o, "", t);
3858
+ }
3859
+ }
3860
+ this.options.oneListGroup && (a = this.buildObjectNode(a, o, s, t)), i += a;
3861
+ } else if (this.options.attributesGroupName && o === this.options.attributesGroupName) {
3862
+ let t = Object.keys(e[o]), n = t.length;
3863
+ for (let i = 0; i < n; i++) r += this.buildAttrPairStr(t[i], "" + e[o][t[i]]);
3864
+ } else i += this.processTextOrObjNode(e[o], o, t, n);
3865
+ }
3840
3866
  return {
3841
3867
  attrStr: r,
3842
3868
  val: i
@@ -3867,45 +3893,45 @@ Q.prototype.build = function(e) {
3867
3893
  }
3868
3894
  return e;
3869
3895
  };
3870
- var Yr = Jr((function(e, t, n) {
3896
+ var Zr = Xr((function(e, t, n) {
3871
3897
  let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3872
- return qr(F(I({
3873
- url: M(e.remoteURL, j(t)),
3898
+ return Yr(I(L({
3899
+ url: N(e.remoteURL, M(t)),
3874
3900
  method: "UNLOCK",
3875
3901
  headers: { "Lock-Token": n }
3876
3902
  }, e, r), e), (function(t) {
3877
- if (B(e, t), t.status !== 204 && t.status !== 200) throw un(t);
3903
+ if (V(e, t), t.status !== 204 && t.status !== 200) throw dn(t);
3878
3904
  }));
3879
- })), Xr = Jr((function(e, t) {
3880
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { refreshToken: r, timeout: i = Zr } = n, a = {
3905
+ })), Qr = Xr((function(e, t) {
3906
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { refreshToken: r, timeout: i = $r } = n, a = {
3881
3907
  Accept: "text/plain,application/xml",
3882
3908
  Timeout: i
3883
3909
  };
3884
- return r && (a.If = r), qr(F(I({
3885
- url: M(e.remoteURL, j(t)),
3910
+ return r && (a.If = r), Yr(I(L({
3911
+ url: N(e.remoteURL, M(t)),
3886
3912
  method: "LOCK",
3887
3913
  headers: a,
3888
- data: Gr(e.contactHref)
3914
+ data: qr(e.contactHref)
3889
3915
  }, e, n), e), (function(t) {
3890
- return B(e, t), qr(t.text(), (function(e) {
3891
- let n = (a = e, new nr({
3916
+ return V(e, t), Yr(t.text(), (function(e) {
3917
+ let n = (a = e, new rr({
3892
3918
  removeNSPrefix: !0,
3893
3919
  parseAttributeValue: !0,
3894
3920
  parseTagValue: !0
3895
- }).parse(a)), r = J().get(n, "prop.lockdiscovery.activelock.locktoken.href"), i = J().get(n, "prop.lockdiscovery.activelock.timeout");
3921
+ }).parse(a)), r = Y().get(n, "prop.lockdiscovery.activelock.locktoken.href"), i = Y().get(n, "prop.lockdiscovery.activelock.timeout");
3896
3922
  var a;
3897
- if (!r) throw un(t, "No lock token received: ");
3923
+ if (!r) throw dn(t, "No lock token received: ");
3898
3924
  return {
3899
3925
  token: r,
3900
3926
  serverTimeout: i
3901
3927
  };
3902
3928
  }));
3903
3929
  }));
3904
- })), Zr = "Infinite, Second-4100000000";
3905
- function Qr(e, t, n) {
3930
+ })), $r = "Infinite, Second-4100000000";
3931
+ function ei(e, t, n) {
3906
3932
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
3907
3933
  }
3908
- var $r = function(e) {
3934
+ var ti = function(e) {
3909
3935
  return function() {
3910
3936
  var t = [...arguments];
3911
3937
  try {
@@ -3916,22 +3942,22 @@ var $r = function(e) {
3916
3942
  };
3917
3943
  }((function(e) {
3918
3944
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.path || "/";
3919
- return Qr(F(I({
3920
- url: M(e.remoteURL, n),
3945
+ return ei(I(L({
3946
+ url: N(e.remoteURL, n),
3921
3947
  method: "PROPFIND",
3922
3948
  headers: {
3923
3949
  Accept: "text/plain,application/xml",
3924
3950
  Depth: "0"
3925
3951
  }
3926
3952
  }, e, t), e), (function(n) {
3927
- return B(e, n), Qr(n.text(), (function(r) {
3928
- return Qr(or(r, e.parsing), (function(e) {
3929
- return V(n, function(e) {
3953
+ return V(e, n), ei(n.text(), (function(r) {
3954
+ return ei(sr(r, e.parsing), (function(e) {
3955
+ return H(n, function(e) {
3930
3956
  try {
3931
3957
  let [t] = e.multistatus.response, { propstat: { prop: { "quota-used-bytes": n, "quota-available-bytes": r } } } = t;
3932
3958
  return n !== void 0 && r !== void 0 ? {
3933
3959
  used: parseInt(String(n), 10),
3934
- available: lr(r)
3960
+ available: ur(r)
3935
3961
  } : null;
3936
3962
  } catch {}
3937
3963
  return null;
@@ -3940,10 +3966,10 @@ var $r = function(e) {
3940
3966
  }));
3941
3967
  }));
3942
3968
  }));
3943
- function ei(e, t, n) {
3969
+ function ni(e, t, n) {
3944
3970
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
3945
3971
  }
3946
- var ti = function(e) {
3972
+ var ri = function(e) {
3947
3973
  return function() {
3948
3974
  var t = [...arguments];
3949
3975
  try {
@@ -3954,31 +3980,31 @@ var ti = function(e) {
3954
3980
  };
3955
3981
  }((function(e, t) {
3956
3982
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { details: r = !1 } = n;
3957
- return ei(F(I({
3958
- url: M(e.remoteURL, j(t)),
3983
+ return ni(I(L({
3984
+ url: N(e.remoteURL, M(t)),
3959
3985
  method: "SEARCH",
3960
3986
  headers: {
3961
3987
  Accept: "text/plain,application/xml",
3962
3988
  "Content-Type": e.headers["Content-Type"] || "application/xml; charset=utf-8"
3963
3989
  }
3964
3990
  }, e, n), e), (function(n) {
3965
- return B(e, n), ei(n.text(), (function(i) {
3966
- return ei(or(i, e.parsing), (function(e) {
3967
- return V(n, function(e, t, n) {
3991
+ return V(e, n), ni(n.text(), (function(i) {
3992
+ return ni(sr(i, e.parsing), (function(e) {
3993
+ return H(n, function(e, t, n) {
3968
3994
  let r = {
3969
3995
  truncated: !1,
3970
3996
  results: []
3971
3997
  };
3972
- return r.truncated = e.multistatus.response.some(((e) => (e.status || e.propstat?.status).split(" ", 3)?.[1] === "507" && e.href.replace(/\/$/, "").endsWith(j(t).replace(/\/$/, "")))), e.multistatus.response.forEach(((e) => {
3998
+ return r.truncated = e.multistatus.response.some(((e) => (e.status || e.propstat?.status).split(" ", 3)?.[1] === "507" && e.href.replace(/\/$/, "").endsWith(M(t).replace(/\/$/, "")))), e.multistatus.response.forEach(((e) => {
3973
3999
  if (e.propstat === void 0) return;
3974
4000
  let t = e.href.split("/").map(decodeURIComponent).join("/");
3975
- r.results.push(sr(e.propstat.prop, t, n));
4001
+ r.results.push(cr(e.propstat.prop, t, n));
3976
4002
  })), r;
3977
4003
  }(e, t, r), r);
3978
4004
  }));
3979
4005
  }));
3980
4006
  }));
3981
- })), ni = function(e) {
4007
+ })), ii = function(e) {
3982
4008
  return function() {
3983
4009
  var t = [...arguments];
3984
4010
  try {
@@ -3988,26 +4014,26 @@ var ti = function(e) {
3988
4014
  }
3989
4015
  };
3990
4016
  }((function(e, t, n) {
3991
- let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = I({
3992
- url: M(e.remoteURL, j(t)),
4017
+ let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = L({
4018
+ url: N(e.remoteURL, M(t)),
3993
4019
  method: "MOVE",
3994
4020
  headers: {
3995
- Destination: M(e.remoteURL, j(n)),
4021
+ Destination: N(e.remoteURL, M(n)),
3996
4022
  Overwrite: !1 === r.overwrite ? "F" : "T"
3997
4023
  }
3998
4024
  }, e, r);
3999
4025
  return o = function(t) {
4000
- B(e, t);
4001
- }, (a = F(i, e)) && a.then || (a = Promise.resolve(a)), o ? a.then(o) : a;
4026
+ V(e, t);
4027
+ }, (a = I(i, e)) && a.then || (a = Promise.resolve(a)), o ? a.then(o) : a;
4002
4028
  var a, o;
4003
- })), ri = k(172);
4004
- function ii(e) {
4005
- if (ht(e)) return e.byteLength;
4006
- if (gt(e)) return e.length;
4007
- if (typeof e == "string") return (0, ri.d)(e);
4008
- throw new A({ info: { code: P.DataTypeNoLength } }, "Cannot calculate data length: Invalid type");
4029
+ })), ai = A(172);
4030
+ function oi(e) {
4031
+ if (gt(e)) return e.byteLength;
4032
+ if (_t(e)) return e.length;
4033
+ if (typeof e == "string") return (0, ai.d)(e);
4034
+ throw new j({ info: { code: F.DataTypeNoLength } }, "Cannot calculate data length: Invalid type");
4009
4035
  }
4010
- var ai = function(e) {
4036
+ var si = function(e) {
4011
4037
  return function() {
4012
4038
  var t = [...arguments];
4013
4039
  try {
@@ -4018,25 +4044,25 @@ var ai = function(e) {
4018
4044
  };
4019
4045
  }((function(e, t, n) {
4020
4046
  let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, { contentLength: i = !0, overwrite: a = !0 } = r, o = { "Content-Type": "application/octet-stream" };
4021
- !1 === i || (o["Content-Length"] = typeof i == "number" ? `${i}` : `${ii(n)}`), a || (o["If-None-Match"] = "*");
4022
- let s = I({
4023
- url: M(e.remoteURL, j(t)),
4047
+ !1 === i || (o["Content-Length"] = typeof i == "number" ? `${i}` : `${oi(n)}`), a || (o["If-None-Match"] = "*");
4048
+ let s = L({
4049
+ url: N(e.remoteURL, M(t)),
4024
4050
  method: "PUT",
4025
4051
  headers: o,
4026
4052
  data: n
4027
4053
  }, e, r);
4028
4054
  return l = function(t) {
4029
4055
  try {
4030
- B(e, t);
4056
+ V(e, t);
4031
4057
  } catch (e) {
4032
4058
  let t = e;
4033
4059
  if (t.status !== 412 || a) throw t;
4034
4060
  return !1;
4035
4061
  }
4036
4062
  return !0;
4037
- }, (c = F(s, e)) && c.then || (c = Promise.resolve(c)), l ? c.then(l) : c;
4063
+ }, (c = I(s, e)) && c.then || (c = Promise.resolve(c)), l ? c.then(l) : c;
4038
4064
  var c, l;
4039
- })), oi = function(e) {
4065
+ })), ci = function(e) {
4040
4066
  return function() {
4041
4067
  var t = [...arguments];
4042
4068
  try {
@@ -4046,13 +4072,13 @@ var ai = function(e) {
4046
4072
  }
4047
4073
  };
4048
4074
  }((function(e, t) {
4049
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = I({
4050
- url: M(e.remoteURL, j(t)),
4075
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = L({
4076
+ url: N(e.remoteURL, M(t)),
4051
4077
  method: "OPTIONS"
4052
4078
  }, e, n);
4053
4079
  return a = function(t) {
4054
4080
  try {
4055
- B(e, t);
4081
+ V(e, t);
4056
4082
  } catch (e) {
4057
4083
  throw e;
4058
4084
  }
@@ -4060,51 +4086,51 @@ var ai = function(e) {
4060
4086
  compliance: (t.headers.get("DAV") ?? "").split(",").map(((e) => e.trim())),
4061
4087
  server: t.headers.get("Server") ?? ""
4062
4088
  };
4063
- }, (i = F(r, e)) && i.then || (i = Promise.resolve(i)), a ? i.then(a) : i;
4089
+ }, (i = I(r, e)) && i.then || (i = Promise.resolve(i)), a ? i.then(a) : i;
4064
4090
  var i, a;
4065
4091
  }));
4066
- function si(e, t, n) {
4092
+ function li(e, t, n) {
4067
4093
  return n ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
4068
4094
  }
4069
- var ci = di((function(e, t, n, r, i) {
4095
+ var ui = pi((function(e, t, n, r, i) {
4070
4096
  let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
4071
- if (n > r || n < 0) throw new A({ info: { code: P.InvalidUpdateRange } }, `Invalid update range ${n} for partial update`);
4097
+ if (n > r || n < 0) throw new j({ info: { code: F.InvalidUpdateRange } }, `Invalid update range ${n} for partial update`);
4072
4098
  let o = {
4073
4099
  "Content-Type": "application/octet-stream",
4074
4100
  "Content-Length": "" + (r - n + 1),
4075
4101
  "Content-Range": `bytes ${n}-${r}/*`
4076
4102
  };
4077
- return si(F(I({
4078
- url: M(e.remoteURL, j(t)),
4103
+ return li(I(L({
4104
+ url: N(e.remoteURL, M(t)),
4079
4105
  method: "PUT",
4080
4106
  headers: o,
4081
4107
  data: i
4082
4108
  }, e, a), e), (function(t) {
4083
- B(e, t);
4109
+ V(e, t);
4084
4110
  }));
4085
4111
  }));
4086
- function li(e, t) {
4112
+ function di(e, t) {
4087
4113
  var n = e();
4088
4114
  return n && n.then ? n.then(t) : t(n);
4089
4115
  }
4090
- var ui = di((function(e, t, n, r, i) {
4116
+ var fi = pi((function(e, t, n, r, i) {
4091
4117
  let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
4092
- if (n > r || n < 0) throw new A({ info: { code: P.InvalidUpdateRange } }, `Invalid update range ${n} for partial update`);
4118
+ if (n > r || n < 0) throw new j({ info: { code: F.InvalidUpdateRange } }, `Invalid update range ${n} for partial update`);
4093
4119
  let o = {
4094
4120
  "Content-Type": "application/x-sabredav-partialupdate",
4095
4121
  "Content-Length": "" + (r - n + 1),
4096
4122
  "X-Update-Range": `bytes=${n}-${r}`
4097
4123
  };
4098
- return si(F(I({
4099
- url: M(e.remoteURL, j(t)),
4124
+ return li(I(L({
4125
+ url: N(e.remoteURL, M(t)),
4100
4126
  method: "PATCH",
4101
4127
  headers: o,
4102
4128
  data: i
4103
4129
  }, e, a), e), (function(t) {
4104
- B(e, t);
4130
+ V(e, t);
4105
4131
  }));
4106
4132
  }));
4107
- function di(e) {
4133
+ function pi(e) {
4108
4134
  return function() {
4109
4135
  var t = [...arguments];
4110
4136
  try {
@@ -4114,30 +4140,30 @@ function di(e) {
4114
4140
  }
4115
4141
  };
4116
4142
  }
4117
- var fi = di((function(e, t, n, r, i) {
4143
+ var mi = pi((function(e, t, n, r, i) {
4118
4144
  let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
4119
- return si(oi(e, t, a), (function(o) {
4145
+ return li(ci(e, t, a), (function(o) {
4120
4146
  let s = !1;
4121
- return li((function() {
4122
- if (o.compliance.includes("sabredav-partialupdate")) return si(ui(e, t, n, r, i, a), (function(e) {
4147
+ return di((function() {
4148
+ if (o.compliance.includes("sabredav-partialupdate")) return li(fi(e, t, n, r, i, a), (function(e) {
4123
4149
  return s = !0, e;
4124
4150
  }));
4125
4151
  }), (function(c) {
4126
4152
  let l = !1;
4127
- return s ? c : li((function() {
4128
- if (o.server.includes("Apache") && o.compliance.includes("<http://apache.org/dav/propset/fs/1>")) return si(ci(e, t, n, r, i, a), (function(e) {
4153
+ return s ? c : di((function() {
4154
+ if (o.server.includes("Apache") && o.compliance.includes("<http://apache.org/dav/propset/fs/1>")) return li(ui(e, t, n, r, i, a), (function(e) {
4129
4155
  return l = !0, e;
4130
4156
  }));
4131
4157
  }), (function(e) {
4132
4158
  if (l) return e;
4133
- throw new A({ info: { code: P.NotSupported } }, "Not supported");
4159
+ throw new j({ info: { code: F.NotSupported } }, "Not supported");
4134
4160
  }));
4135
4161
  }));
4136
4162
  }));
4137
- })), pi = "https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";
4138
- function mi(e) {
4139
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { authType: n = null, remoteBasePath: r, contactHref: i = pi, ha1: a, headers: o = {}, httpAgent: s, httpsAgent: c, password: l, token: u, username: d, withCredentials: f } = t, p = n;
4140
- p ||= d || l ? N.Password : N.None;
4163
+ })), hi = "https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";
4164
+ function gi(e) {
4165
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { authType: n = null, remoteBasePath: r, contactHref: i = hi, ha1: a, headers: o = {}, httpAgent: s, httpsAgent: c, password: l, token: u, username: d, withCredentials: f } = t, p = n;
4166
+ p ||= d || l ? P.Password : P.None;
4141
4167
  let m = {
4142
4168
  authType: p,
4143
4169
  remoteBasePath: r,
@@ -4150,34 +4176,34 @@ function mi(e) {
4150
4176
  parsing: {
4151
4177
  attributeNamePrefix: t.attributeNamePrefix ?? "@",
4152
4178
  attributeParsers: [],
4153
- tagParsers: [ir]
4179
+ tagParsers: [ar]
4154
4180
  },
4155
- remotePath: We(e),
4181
+ remotePath: Ge(e),
4156
4182
  remoteURL: e,
4157
4183
  token: u,
4158
4184
  username: d,
4159
4185
  withCredentials: f
4160
4186
  };
4161
- return tt(m, d, l, u, a), {
4162
- copyFile: (e, t, n) => dn(m, e, t, n),
4163
- createDirectory: (e, t) => yr(m, e, t),
4187
+ return nt(m, d, l, u, a), {
4188
+ copyFile: (e, t, n) => fn(m, e, t, n),
4189
+ createDirectory: (e, t) => xr(m, e, t),
4164
4190
  createReadStream: (e, t) => function(e, t) {
4165
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = new (xr()).PassThrough();
4166
- return Sr(e, t, n).then(((e) => {
4191
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = new (Cr()).PassThrough();
4192
+ return wr(e, t, n).then(((e) => {
4167
4193
  e.pipe(r);
4168
4194
  })).catch(((e) => {
4169
4195
  r.emit("error", e);
4170
4196
  })), r;
4171
4197
  }(m, e, t),
4172
4198
  createWriteStream: (e, t, n) => function(e, t) {
4173
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Cr, i = new (xr()).PassThrough(), a = {};
4174
- return !1 === n.overwrite && (a["If-None-Match"] = "*"), F(I({
4175
- url: M(e.remoteURL, j(t)),
4199
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Tr, i = new (Cr()).PassThrough(), a = {};
4200
+ return !1 === n.overwrite && (a["If-None-Match"] = "*"), I(L({
4201
+ url: N(e.remoteURL, M(t)),
4176
4202
  method: "PUT",
4177
4203
  headers: a,
4178
4204
  data: i,
4179
4205
  maxRedirects: 0
4180
- }, e, n), e).then(((t) => B(e, t))).then(((e) => {
4206
+ }, e, n), e).then(((t) => V(e, t))).then(((e) => {
4181
4207
  setTimeout((() => {
4182
4208
  r(e);
4183
4209
  }), 0);
@@ -4185,50 +4211,50 @@ function mi(e) {
4185
4211
  i.emit("error", e);
4186
4212
  })), i;
4187
4213
  }(m, e, t, n),
4188
- customRequest: (e, t) => wr(m, e, t),
4189
- deleteFile: (e, t) => Tr(m, e, t),
4190
- exists: (e, t) => Er(m, e, t),
4191
- getDirectoryContents: (e, t) => Or(m, e, t),
4192
- getFileContents: (e, t) => Nr(m, e, t),
4214
+ customRequest: (e, t) => Er(m, e, t),
4215
+ deleteFile: (e, t) => Dr(m, e, t),
4216
+ exists: (e, t) => Or(m, e, t),
4217
+ getDirectoryContents: (e, t) => Ar(m, e, t),
4218
+ getFileContents: (e, t) => Fr(m, e, t),
4193
4219
  getFileDownloadLink: (e) => function(e, t) {
4194
- let n = M(e.remoteURL, j(t)), r = /^https:/i.test(n) ? "https" : "http";
4220
+ let n = N(e.remoteURL, M(t)), r = /^https:/i.test(n) ? "https" : "http";
4195
4221
  switch (e.authType) {
4196
- case N.None: break;
4197
- case N.Password: {
4198
- let t = Ze(e.headers.Authorization.replace(/^Basic /i, "").trim());
4222
+ case P.None: break;
4223
+ case P.Password: {
4224
+ let t = Qe(e.headers.Authorization.replace(/^Basic /i, "").trim());
4199
4225
  n = n.replace(/^https?:\/\//, `${r}://${t}@`);
4200
4226
  break;
4201
4227
  }
4202
- default: throw new A({ info: { code: P.LinkUnsupportedAuthType } }, `Unsupported auth type for file link: ${e.authType}`);
4228
+ default: throw new j({ info: { code: F.LinkUnsupportedAuthType } }, `Unsupported auth type for file link: ${e.authType}`);
4203
4229
  }
4204
4230
  return n;
4205
4231
  }(m, e),
4206
4232
  getFileUploadLink: (e) => function(e, t) {
4207
- let n = `${M(e.remoteURL, j(t))}?Content-Type=application/octet-stream`, r = /^https:/i.test(n) ? "https" : "http";
4233
+ let n = `${N(e.remoteURL, M(t))}?Content-Type=application/octet-stream`, r = /^https:/i.test(n) ? "https" : "http";
4208
4234
  switch (e.authType) {
4209
- case N.None: break;
4210
- case N.Password: {
4211
- let t = Ze(e.headers.Authorization.replace(/^Basic /i, "").trim());
4235
+ case P.None: break;
4236
+ case P.Password: {
4237
+ let t = Qe(e.headers.Authorization.replace(/^Basic /i, "").trim());
4212
4238
  n = n.replace(/^https?:\/\//, `${r}://${t}@`);
4213
4239
  break;
4214
4240
  }
4215
- default: throw new A({ info: { code: P.LinkUnsupportedAuthType } }, `Unsupported auth type for file link: ${e.authType}`);
4241
+ default: throw new j({ info: { code: F.LinkUnsupportedAuthType } }, `Unsupported auth type for file link: ${e.authType}`);
4216
4242
  }
4217
4243
  return n;
4218
4244
  }(m, e),
4219
4245
  getHeaders: () => Object.assign({}, m.headers),
4220
- getQuota: (e) => $r(m, e),
4221
- lock: (e, t) => Xr(m, e, t),
4222
- moveFile: (e, t, n) => ni(m, e, t, n),
4223
- putFileContents: (e, t, n) => ai(m, e, t, n),
4224
- partialUpdateFileContents: (e, t, n, r, i) => fi(m, e, t, n, r, i),
4225
- getDAVCompliance: (e) => oi(m, e),
4226
- search: (e, t) => ti(m, e, t),
4246
+ getQuota: (e) => ti(m, e),
4247
+ lock: (e, t) => Qr(m, e, t),
4248
+ moveFile: (e, t, n) => ii(m, e, t, n),
4249
+ putFileContents: (e, t, n) => si(m, e, t, n),
4250
+ partialUpdateFileContents: (e, t, n, r, i) => mi(m, e, t, n, r, i),
4251
+ getDAVCompliance: (e) => ci(m, e),
4252
+ search: (e, t) => ri(m, e, t),
4227
4253
  setHeaders: (e) => {
4228
4254
  m.headers = Object.assign({}, e);
4229
4255
  },
4230
- stat: (e, t) => dr(m, e, t),
4231
- unlock: (e, t, n) => Yr(m, e, t, n),
4256
+ stat: (e, t) => fr(m, e, t),
4257
+ unlock: (e, t, n) => Zr(m, e, t, n),
4232
4258
  registerAttributeParser: (e) => {
4233
4259
  m.parsing.attributeParsers.push(e);
4234
4260
  },
@@ -4238,73 +4264,78 @@ function mi(e) {
4238
4264
  };
4239
4265
  }
4240
4266
  //#endregion
4241
- //#region ../../node_modules/.pnpm/uuid@14.0.1/node_modules/uuid/dist/stringify.js
4267
+ //#region ../../node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist/stringify.js
4242
4268
  var $ = [];
4243
4269
  for (let e = 0; e < 256; ++e) $.push((e + 256).toString(16).slice(1));
4244
- function hi(e, t = 0) {
4270
+ function _i(e, t = 0) {
4245
4271
  return ($[e[t + 0]] + $[e[t + 1]] + $[e[t + 2]] + $[e[t + 3]] + "-" + $[e[t + 4]] + $[e[t + 5]] + "-" + $[e[t + 6]] + $[e[t + 7]] + "-" + $[e[t + 8]] + $[e[t + 9]] + "-" + $[e[t + 10]] + $[e[t + 11]] + $[e[t + 12]] + $[e[t + 13]] + $[e[t + 14]] + $[e[t + 15]]).toLowerCase();
4246
4272
  }
4247
4273
  //#endregion
4248
- //#region ../../node_modules/.pnpm/uuid@14.0.1/node_modules/uuid/dist/rng.js
4249
- var gi = /* @__PURE__ */ new Uint8Array(16);
4250
- function _i() {
4251
- return crypto.getRandomValues(gi);
4274
+ //#region ../../node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist/rng.js
4275
+ var vi = /* @__PURE__ */ new Uint8Array(16);
4276
+ function yi() {
4277
+ return crypto.getRandomValues(vi);
4252
4278
  }
4253
4279
  //#endregion
4254
- //#region ../../node_modules/.pnpm/uuid@14.0.1/node_modules/uuid/dist/v4.js
4255
- function vi(e, t, n) {
4256
- return !t && !e && crypto.randomUUID ? crypto.randomUUID() : yi(e, t, n);
4280
+ //#region ../../node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist/v4.js
4281
+ function bi(e, t, n) {
4282
+ return !t && !e && crypto.randomUUID ? crypto.randomUUID() : xi(e, t, n);
4257
4283
  }
4258
- function yi(e, t, n) {
4284
+ function xi(e, t, n) {
4259
4285
  e ||= {};
4260
- let r = e.random ?? e.rng?.() ?? _i();
4286
+ let r = e.random ?? e.rng?.() ?? yi();
4261
4287
  if (r.length < 16) throw Error("Random bytes length must be >= 16");
4262
4288
  if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
4263
4289
  if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
4264
4290
  for (let e = 0; e < 16; ++e) t[n + e] = r[e];
4265
4291
  return t;
4266
4292
  }
4267
- return hi(r);
4293
+ return _i(r);
4268
4294
  }
4269
4295
  //#endregion
4270
4296
  //#region src/webdav/client/builders.ts
4271
- var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includes(e) ? [e, n || ""] : [o.DavNamespace.includes(e) ? `d:${e}` : `oc:${e}`, n || ""])), xi = (e = [], { pattern: t, filterRules: n, limit: r = 0, extraProps: i = [] }) => {
4297
+ var Si = (e) => {
4298
+ let t = Object.fromEntries(Object.entries(u).map(([e, t]) => [`@@xmlns:${e}`, t]));
4299
+ for (let n of e) {
4300
+ let [e] = n.split(":");
4301
+ e && e !== n && !(`@@xmlns:${e}` in t) && (t[`@@xmlns:${e}`] = e);
4302
+ }
4303
+ return t;
4304
+ }, Ci = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includes(e) ? [e, n || ""] : [o.DavNamespace.includes(e) ? `d:${e}` : `oc:${e}`, n || ""])), wi = (e = [], { pattern: t, filterRules: n, limit: r = 0, extraProps: i = [] }) => {
4272
4305
  let a = "d:propfind";
4273
4306
  t && (a = "oc:search-files"), n && (a = "oc:filter-files");
4274
4307
  let o = e.reduce((e, t) => Object.assign(e, { [t]: null }), {});
4275
4308
  for (let e of i) e in o || (o[e] = null);
4276
- let s = bi(o, i), c = { [a]: {
4309
+ let s = Ci(o, i), c = { [a]: {
4277
4310
  "d:prop": s,
4278
- "@@xmlns:d": "DAV:",
4279
- "@@xmlns:oc": "http://owncloud.org/ns",
4311
+ ...Si(i),
4280
4312
  ...t && { "oc:search": {
4281
4313
  "oc:pattern": t,
4282
4314
  "oc:limit": r
4283
4315
  } },
4284
- ...n && { "oc:filter-rules": bi(n, []) }
4316
+ ...n && { "oc:filter-rules": Ci(n, []) }
4285
4317
  } };
4286
- return new ge({
4318
+ return new _e({
4287
4319
  format: !0,
4288
4320
  ignoreAttributes: !1,
4289
4321
  attributeNamePrefix: "@@",
4290
4322
  suppressEmptyNode: !0
4291
4323
  }).build(c);
4292
- }, Si = (e) => {
4293
- let t = { "d:propertyupdate": {
4294
- "d:set": { "d:prop": bi(e, []) },
4295
- "@@xmlns:d": "DAV:",
4296
- "@@xmlns:oc": "http://owncloud.org/ns"
4324
+ }, Ti = (e, t = []) => {
4325
+ let n = { "d:propertyupdate": {
4326
+ "d:set": { "d:prop": Ci(e, t) },
4327
+ ...Si(t)
4297
4328
  } };
4298
- return new ge({
4329
+ return new _e({
4299
4330
  format: !0,
4300
4331
  ignoreAttributes: !1,
4301
4332
  attributeNamePrefix: "@@",
4302
4333
  suppressEmptyNode: !0
4303
- }).build(t);
4304
- }, Ci = (e) => {
4334
+ }).build(n);
4335
+ }, Ei = (e) => {
4305
4336
  let t = {}, n = e.get("tus-version");
4306
4337
  return n ? (t.version = n.split(","), e.get("tus-extension") && (t.extension = e.get("tus-extension").split(",")), e.get("tus-resumable") && (t.resumable = e.get("tus-resumable")), e.get("tus-max-size") && (t.maxSize = parseInt(e.get("tus-max-size"), 10)), t) : null;
4307
- }, wi = async (e) => {
4338
+ }, Di = async (e) => {
4308
4339
  let t = (e) => {
4309
4340
  let t = decodeURIComponent(e);
4310
4341
  return e?.startsWith("/dav/") ? i(t.replace("/dav/", ""), {
@@ -4312,15 +4343,15 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4312
4343
  trailingSlash: !1
4313
4344
  }) : t;
4314
4345
  };
4315
- return (await or(e)).multistatus.response.map(({ href: e, propstat: n }) => {
4346
+ return (await sr(e)).multistatus.response.map(({ href: e, propstat: n }) => {
4316
4347
  let r = {
4317
- ...sr(n.prop, t(e), !0),
4348
+ ...cr(n.prop, t(e), !0),
4318
4349
  processing: n.status === "HTTP/1.1 425 TOO EARLY"
4319
4350
  };
4320
4351
  return r.props.name && (r.props.name = r.props.name.toString()), r;
4321
4352
  });
4322
- }, Ti = (e) => {
4323
- let t = new h(), n = {
4353
+ }, Oi = (e) => {
4354
+ let t = new g(), n = {
4324
4355
  message: "Unknown error",
4325
4356
  errorCode: void 0
4326
4357
  };
@@ -4339,36 +4370,36 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4339
4370
  return n;
4340
4371
  }
4341
4372
  return n;
4342
- }, Ei = class {
4373
+ }, ki = class {
4343
4374
  client;
4344
4375
  davPath;
4345
4376
  headers;
4346
4377
  extraProps;
4347
4378
  constructor({ baseUrl: e, headers: t }) {
4348
- this.davPath = i(e, "dav"), this.client = mi(this.davPath, {}), this.headers = t, this.extraProps = [];
4379
+ this.davPath = i(e, "dav"), this.client = gi(this.davPath, {}), this.headers = t, this.extraProps = [];
4349
4380
  }
4350
4381
  mkcol(e, t = {}) {
4351
4382
  return this.request(e, {
4352
- method: u.mkcol,
4383
+ method: l.mkcol,
4353
4384
  ...t
4354
4385
  });
4355
4386
  }
4356
- async propfind(e, { depth: t = 1, properties: n = [], headers: r = {}, ...i } = {}) {
4357
- let a = {
4358
- ...r,
4387
+ async propfind(e, { depth: t = 1, properties: n = [], extraProps: r = [], headers: i = {}, ...a } = {}) {
4388
+ let o = {
4389
+ ...i,
4359
4390
  Depth: t.toString()
4360
- }, { body: o, result: s } = await this.request(e, {
4361
- method: u.propfind,
4362
- data: xi(n, { extraProps: this.extraProps }),
4363
- headers: a,
4364
- ...i
4391
+ }, { body: s, result: c } = await this.request(e, {
4392
+ method: l.propfind,
4393
+ data: wi(n, { extraProps: [...this.extraProps, ...r] }),
4394
+ headers: o,
4395
+ ...a
4365
4396
  });
4366
- return o?.length && (o[0].tusSupport = Ci(s.headers)), o;
4397
+ return s?.length && (s[0].tusSupport = Ei(c.headers)), s;
4367
4398
  }
4368
4399
  async report(e, { pattern: t = "", filterRules: n = null, limit: r = 30, properties: i, ...a } = {}) {
4369
4400
  let { body: o, result: s } = await this.request(e, {
4370
- method: u.report,
4371
- data: xi(i, {
4401
+ method: l.report,
4402
+ data: wi(i, {
4372
4403
  pattern: t,
4373
4404
  filterRules: n,
4374
4405
  limit: r,
@@ -4382,9 +4413,9 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4382
4413
  };
4383
4414
  }
4384
4415
  copy(e, t, { overwrite: n = !1, headers: r = {}, ...a } = {}) {
4385
- let o = i(this.davPath, v(t));
4416
+ let o = i(this.davPath, y(t));
4386
4417
  return this.request(e, {
4387
- method: u.copy,
4418
+ method: l.copy,
4388
4419
  headers: {
4389
4420
  ...r,
4390
4421
  Destination: o,
@@ -4394,9 +4425,9 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4394
4425
  });
4395
4426
  }
4396
4427
  move(e, t, { overwrite: n = !1, headers: r = {}, ...a } = {}) {
4397
- let o = i(this.davPath, v(t));
4428
+ let o = i(this.davPath, y(t));
4398
4429
  return this.request(e, {
4399
- method: u.move,
4430
+ method: l.move,
4400
4431
  headers: {
4401
4432
  ...r,
4402
4433
  Destination: o,
@@ -4408,7 +4439,7 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4408
4439
  put(e, t, { headers: n = {}, onUploadProgress: r, previousEntityTag: i, overwrite: a, ...o } = {}) {
4409
4440
  let s = { ...n };
4410
4441
  return i ? s["If-Match"] = i : a || (s["If-None-Match"] = "*"), this.request(e, {
4411
- method: u.put,
4442
+ method: l.put,
4412
4443
  data: t,
4413
4444
  headers: s,
4414
4445
  onUploadProgress: r,
@@ -4417,73 +4448,75 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4417
4448
  }
4418
4449
  delete(e, t = {}) {
4419
4450
  return this.request(e, {
4420
- method: u.delete,
4451
+ method: l.delete,
4421
4452
  ...t
4422
4453
  });
4423
4454
  }
4424
- propPatch(e, t, n = {}) {
4425
- let r = Si(t);
4455
+ propPatch(e, t, { extraProps: n = [], ...r } = {}) {
4456
+ let i = Ti(t, [...this.extraProps, ...n]);
4426
4457
  return this.request(e, {
4427
- method: u.proppatch,
4428
- data: r,
4429
- ...n
4458
+ method: l.proppatch,
4459
+ data: i,
4460
+ ...r
4430
4461
  });
4431
4462
  }
4432
4463
  getFileUrl(e) {
4433
- return i(this.davPath, v(e));
4464
+ return i(this.davPath, y(e));
4434
4465
  }
4435
4466
  buildHeaders(e = {}) {
4436
4467
  return {
4437
4468
  "Content-Type": "application/xml; charset=utf-8",
4438
4469
  "X-Requested-With": "XMLHttpRequest",
4439
- "X-Request-ID": vi(),
4470
+ "X-Request-ID": bi(),
4440
4471
  ...this.headers && { ...this.headers() },
4441
4472
  ...e
4442
4473
  };
4443
4474
  }
4444
4475
  async request(e, t) {
4445
- let n = i(this.davPath, v(e), { leadingSlash: !0 }), r = {
4476
+ let n = i(this.davPath, y(e), { leadingSlash: !0 }), r = {
4446
4477
  ...t,
4447
4478
  url: n,
4448
4479
  headers: this.buildHeaders(t.headers || {})
4449
4480
  };
4450
4481
  try {
4451
4482
  let e = await this.client.customRequest("", r), t;
4452
- return e.status === 207 && (t = await wi(await e.text())), {
4483
+ return e.status === 207 && (t = await Di(await e.text())), {
4453
4484
  body: t,
4454
4485
  status: e.status,
4455
4486
  result: e
4456
4487
  };
4457
4488
  } catch (e) {
4458
- let { response: t } = e, n = Ti(await t.text());
4459
- throw new b(n.message, n.errorCode, t, t.status);
4489
+ let { response: t } = e, n = Oi(await t.text());
4490
+ throw new x(n.message, n.errorCode, t, t.status);
4460
4491
  }
4461
4492
  }
4462
- }, Di = (e, t) => ({ async listFileVersions(t, n = {}) {
4493
+ }, Ai = (e, t) => ({ async listFileVersions(t, n = {}) {
4463
4494
  let [r, ...a] = await e.propfind(i("meta", t, "v", { leadingSlash: !0 }), n);
4464
- return a.map((t) => l(t, e.extraProps));
4465
- } }), Oi = (e, t) => ({ setFavorite(t, { path: n }, r, a = {}) {
4466
- let o = { [s.IsFavorite]: r ? "true" : "false" };
4495
+ return a.map((t) => c(t, e.extraProps));
4496
+ } }), ji = (e, t) => ({ setFavorite(t, { path: n }, r, a = {}) {
4497
+ let o = { [p.IsFavorite]: r ? "true" : "false" };
4467
4498
  return e.propPatch(i(t.webDavPath, n), o, a);
4468
- } }), ki = (e, t) => {
4499
+ } }), Mi = (e, t) => ({ setProperties(t, { path: n }, r, a = {}) {
4500
+ return e.propPatch(i(t.webDavPath, n), r, a);
4501
+ } }), Ni = (e, t) => {
4469
4502
  let r = n.create();
4470
4503
  t && r.interceptors.request.use((e) => (Object.assign(e.headers, t()), e));
4471
4504
  let i = {
4472
4505
  axiosClient: r,
4473
4506
  baseUrl: e,
4474
4507
  headers: t
4475
- }, a = new Ei({
4508
+ }, a = new ki({
4476
4509
  baseUrl: e,
4477
4510
  headers: t
4478
4511
  }), o = (e) => {
4479
4512
  a.extraProps.push(e);
4480
- }, s = je(a, i), { getPathForFileId: c } = s, l = Ce(a, s, i), { listFiles: u } = l, d = be(l, i), { getFileInfo: f } = d, { createFolder: p } = ve(a, d, i), m = ye(a, i), { getFileContents: h } = m, { putFileContents: g } = Te(a, d, i), { getFileUrl: _, revokeUrl: v } = xe(a, m, d, i), { getPublicFileUrl: y } = Se(a, i), { copyFiles: b } = _e(a, i), { moveFiles: x } = we(a, i), { deleteFile: S } = Ee(a, i), { restoreFile: C } = De(a, i), { listFileVersions: ee } = Di(a, i), { restoreFileVersion: te } = Oe(a, i), { clearTrashBin: ne } = ke(a, i), { search: re } = Ae(a, i), { setFavorite: ie } = Oi(a, i);
4513
+ }, s = Me(a, i), { getPathForFileId: c } = s, l = we(a, s, i), { listFiles: u } = l, d = xe(l, i), { getFileInfo: f } = d, { createFolder: p } = ye(a, d, i), m = be(a, i), { getFileContents: h } = m, { putFileContents: g } = Ee(a, d, i), { getFileUrl: _, revokeUrl: v } = Se(a, m, d, i), { getPublicFileUrl: y } = Ce(a, i), { copyFiles: b } = ve(a, i), { moveFiles: x } = Te(a, i), { deleteFile: S } = De(a, i), { restoreFile: C } = Oe(a, i), { listFileVersions: ee } = Ai(a, i), { restoreFileVersion: w } = ke(a, i), { clearTrashBin: te } = Ae(a, i), { search: ne } = je(a, i), { setFavorite: re } = ji(a, i), { setProperties: T } = Mi(a, i);
4481
4514
  return {
4482
4515
  copyFiles: b,
4483
4516
  createFolder: p,
4484
4517
  deleteFile: S,
4485
4518
  restoreFile: C,
4486
- restoreFileVersion: te,
4519
+ restoreFileVersion: w,
4487
4520
  getFileContents: h,
4488
4521
  getFileInfo: f,
4489
4522
  getFileUrl: _,
@@ -4494,11 +4527,12 @@ var bi = (e, t) => Object.fromEntries(Object.entries(e).map(([e, n]) => t.includ
4494
4527
  moveFiles: x,
4495
4528
  putFileContents: g,
4496
4529
  revokeUrl: v,
4497
- clearTrashBin: ne,
4498
- search: re,
4499
- setFavorite: ie,
4530
+ clearTrashBin: te,
4531
+ search: ne,
4532
+ setFavorite: re,
4533
+ setProperties: T,
4500
4534
  registerExtraProp: o
4501
4535
  };
4502
4536
  };
4503
4537
  //#endregion
4504
- export { v as i, b as n, y as r, ki as t };
4538
+ export { y as i, x as n, b as r, Ni as t };