@opencloud-eu/web-client 7.0.1 → 7.1.2

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,5 +1,5 @@
1
- import { t as e } from "./dist-D0YulRs6.js";
2
- import { a as t, n, s as r, t as i, u as a } from "./toString-DkamdJp-.js";
1
+ import { t as e } from "./dist-DXLl1XQj.js";
2
+ import { a as t, n, s as r, t as i, u as a } from "./toString-DIrlTUQN.js";
3
3
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
4
4
  var o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/;
5
5
  function c(e, n) {
@@ -124,7 +124,6 @@ function T(...e) {
124
124
  function E(e) {
125
125
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
126
126
  }
127
- new Uint8Array(new Uint32Array([287454020]).buffer)[0], typeof Uint8Array.from([]).toHex == "function" && Uint8Array.fromHex;
128
127
  function re(e) {
129
128
  if (typeof e != "string") throw TypeError("string expected");
130
129
  return new Uint8Array(new TextEncoder().encode(e));
@@ -333,7 +332,7 @@ function N(e, t, n, r) {
333
332
  l: i | 0
334
333
  };
335
334
  }
336
- var ye = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), be = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, xe = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Se = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Ce = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), we = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Te = ge((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), Ee = Te[0], De = Te[1], P = /* @__PURE__ */ new Uint32Array(80), F = /* @__PURE__ */ new Uint32Array(80), Oe = class extends pe {
335
+ var ye = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), be = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, xe = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Se = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Ce = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), we = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Te = /* @__PURE__ */ ge((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), Ee = Te[0], De = Te[1], P = /* @__PURE__ */ new Uint32Array(80), F = /* @__PURE__ */ new Uint32Array(80), Oe = class extends pe {
337
336
  constructor(e) {
338
337
  super(128, e, 16, !1);
339
338
  }
@@ -405,10 +404,8 @@ var ye = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), be = (e, t, n, r) => t
405
404
  }, Ae = /* @__PURE__ */ oe(() => new ke(), /* @__PURE__ */ se(3)), je = (t, n, r, i) => e.from(fe(Ae, t, n, {
406
405
  c: r,
407
406
  dkLen: i
408
- })), Me = ":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";
409
- Me + "";
410
- var Ne = "[" + Me + "][: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]*", Pe = RegExp("^" + Ne + "$");
411
- function Fe(e, t) {
407
+ })), Me = /* @__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]*$");
408
+ function Ne(e, t) {
412
409
  let n = [], r = t.exec(e);
413
410
  for (; r;) {
414
411
  let i = [];
@@ -419,10 +416,10 @@ function Fe(e, t) {
419
416
  }
420
417
  return n;
421
418
  }
422
- var Ie = function(e) {
423
- return Pe.exec(e) != null;
419
+ var Pe = function(e) {
420
+ return Me.exec(e) != null;
424
421
  };
425
- function Le(e) {
422
+ function Fe(e) {
426
423
  return e !== void 0;
427
424
  }
428
425
  var I = [
@@ -433,41 +430,41 @@ var I = [
433
430
  "__defineSetter__",
434
431
  "__lookupGetter__",
435
432
  "__lookupSetter__"
436
- ], Re = [
433
+ ], Ie = [
437
434
  "__proto__",
438
435
  "constructor",
439
436
  "prototype"
440
- ], ze = {
437
+ ], Le = {
441
438
  allowBooleanAttributes: !1,
442
439
  unpairedTags: []
443
440
  };
444
- function Be(e, t) {
445
- t = Object.assign({}, ze, t);
441
+ function Re(e, t) {
442
+ t = Object.assign({}, Le, t);
446
443
  let n = [], r = !1, i = !1;
447
444
  e[0] === "" && (e = e.substr(1));
448
445
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
449
- if (a += 2, a = He(e, a), a.err) return a;
446
+ if (a += 2, a = Be(e, a), a.err) return a;
450
447
  } else if (e[a] === "<") {
451
448
  let o = a;
452
449
  if (a++, e[a] === "!") {
453
- a = Ue(e, a);
450
+ a = Ve(e, a);
454
451
  continue;
455
452
  } else {
456
453
  let s = !1;
457
454
  e[a] === "/" && (s = !0, a++);
458
455
  let c = "";
459
456
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
460
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !Qe(c)) {
457
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !Xe(c)) {
461
458
  let t;
462
459
  return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", L("InvalidTag", t, R(e, a));
463
460
  }
464
- let l = Ke(e, a);
461
+ let l = We(e, a);
465
462
  if (l === !1) return L("InvalidAttr", "Attributes for '" + c + "' have open quote.", R(e, a));
466
463
  let u = l.value;
467
464
  if (a = l.index, u[u.length - 1] === "/") {
468
465
  let n = a - u.length;
469
466
  u = u.substring(0, u.length - 1);
470
- let i = Je(u, t);
467
+ let i = Ke(u, t);
471
468
  if (i === !0) r = !0;
472
469
  else return L(i.err.code, i.err.msg, R(e, n + i.err.line));
473
470
  } else if (s) {
@@ -483,7 +480,7 @@ function Be(e, t) {
483
480
  n.length == 0 && (i = !0);
484
481
  }
485
482
  } else {
486
- let s = Je(u, t);
483
+ let s = Ke(u, t);
487
484
  if (s !== !0) return L(s.err.code, s.err.msg, R(e, a - u.length + s.err.line));
488
485
  if (i === !0) return L("InvalidXml", "Multiple possible root nodes found.", R(e, a));
489
486
  t.unpairedTags.indexOf(c) !== -1 || n.push({
@@ -492,20 +489,20 @@ function Be(e, t) {
492
489
  }), r = !0;
493
490
  }
494
491
  for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
495
- a++, a = Ue(e, a);
492
+ a++, a = Ve(e, a);
496
493
  continue;
497
494
  } else if (e[a + 1] === "?") {
498
- if (a = He(e, ++a), a.err) return a;
495
+ if (a = Be(e, ++a), a.err) return a;
499
496
  } else break;
500
497
  else if (e[a] === "&") {
501
- let t = Xe(e, a);
498
+ let t = Je(e, a);
502
499
  if (t == -1) return L("InvalidChar", "char '&' is not expected.", R(e, a));
503
500
  a = t;
504
- } else if (i === !0 && !Ve(e[a])) return L("InvalidXml", "Extra text at the end", R(e, a));
501
+ } else if (i === !0 && !ze(e[a])) return L("InvalidXml", "Extra text at the end", R(e, a));
505
502
  e[a] === "<" && a--;
506
503
  }
507
504
  } else {
508
- if (Ve(e[a])) continue;
505
+ if (ze(e[a])) continue;
509
506
  return L("InvalidChar", "char '" + e[a] + "' is not expected.", R(e, a));
510
507
  }
511
508
  return r ? n.length == 1 ? L("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", R(e, n[0].tagStartPos)) : n.length > 0 ? L("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
@@ -513,10 +510,10 @@ function Be(e, t) {
513
510
  col: 1
514
511
  }) : !0 : L("InvalidXml", "Start tag expected.", 1);
515
512
  }
516
- function Ve(e) {
513
+ function ze(e) {
517
514
  return e === " " || e === " " || e === "\n" || e === "\r";
518
515
  }
519
- function He(e, t) {
516
+ function Be(e, t) {
520
517
  let n = t;
521
518
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
522
519
  let r = e.substr(n, t - n);
@@ -528,7 +525,7 @@ function He(e, t) {
528
525
  }
529
526
  return t;
530
527
  }
531
- function Ue(e, t) {
528
+ function Ve(e, t) {
532
529
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
533
530
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
534
531
  t += 2;
@@ -546,11 +543,11 @@ function Ue(e, t) {
546
543
  }
547
544
  return t;
548
545
  }
549
- var We = "\"", Ge = "'";
550
- function Ke(e, t) {
546
+ var He = "\"", Ue = "'";
547
+ function We(e, t) {
551
548
  let n = "", r = "", i = !1;
552
549
  for (; t < e.length; t++) {
553
- if (e[t] === We || e[t] === Ge) r === "" ? r = e[t] : r !== e[t] || (r = "");
550
+ if (e[t] === He || e[t] === Ue) r === "" ? r = e[t] : r !== e[t] || (r = "");
554
551
  else if (e[t] === ">" && r === "") {
555
552
  i = !0;
556
553
  break;
@@ -563,21 +560,21 @@ function Ke(e, t) {
563
560
  tagClosed: i
564
561
  } : !1;
565
562
  }
566
- var qe = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
567
- function Je(e, t) {
568
- let n = Fe(e, qe), r = {};
563
+ var Ge = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
564
+ function Ke(e, t) {
565
+ let n = Ne(e, Ge), r = {};
569
566
  for (let e = 0; e < n.length; e++) {
570
567
  if (n[e][1].length === 0) return L("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", z(n[e]));
571
568
  if (n[e][3] !== void 0 && n[e][4] === void 0) return L("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", z(n[e]));
572
569
  if (n[e][3] === void 0 && !t.allowBooleanAttributes) return L("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", z(n[e]));
573
570
  let i = n[e][2];
574
- if (!Ze(i)) return L("InvalidAttr", "Attribute '" + i + "' is an invalid name.", z(n[e]));
571
+ if (!Ye(i)) return L("InvalidAttr", "Attribute '" + i + "' is an invalid name.", z(n[e]));
575
572
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
576
573
  else return L("InvalidAttr", "Attribute '" + i + "' is repeated.", z(n[e]));
577
574
  }
578
575
  return !0;
579
576
  }
580
- function Ye(e, t) {
577
+ function qe(e, t) {
581
578
  let n = /\d/;
582
579
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
583
580
  if (e[t] === ";") return t;
@@ -585,9 +582,9 @@ function Ye(e, t) {
585
582
  }
586
583
  return -1;
587
584
  }
588
- function Xe(e, t) {
585
+ function Je(e, t) {
589
586
  if (t++, e[t] === ";") return -1;
590
- if (e[t] === "#") return t++, Ye(e, t);
587
+ if (e[t] === "#") return t++, qe(e, t);
591
588
  let n = 0;
592
589
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
593
590
  if (e[t] === ";") break;
@@ -603,11 +600,11 @@ function L(e, t, n) {
603
600
  col: n.col
604
601
  } };
605
602
  }
606
- function Ze(e) {
607
- return Ie(e);
603
+ function Ye(e) {
604
+ return Pe(e);
608
605
  }
609
- function Qe(e) {
610
- return Ie(e);
606
+ function Xe(e) {
607
+ return Pe(e);
611
608
  }
612
609
  function R(e, t) {
613
610
  let n = e.substring(0, t).split(/\r?\n/);
@@ -621,7 +618,7 @@ function z(e) {
621
618
  }
622
619
  //#endregion
623
620
  //#region ../../node_modules/.pnpm/@nodable+entities@2.1.0/node_modules/@nodable/entities/src/entities.js
624
- var $e = {
621
+ var Ze = {
625
622
  amp: "&",
626
623
  AMP: "&",
627
624
  lt: "<",
@@ -700,7 +697,7 @@ var $e = {
700
697
  times: "×",
701
698
  div: "÷",
702
699
  divide: "÷"
703
- }, et = {
700
+ }, Qe = {
704
701
  Agrave: "À",
705
702
  agrave: "à",
706
703
  Aacute: "Á",
@@ -764,7 +761,7 @@ var $e = {
764
761
  szlig: "ß",
765
762
  yuml: "ÿ",
766
763
  Yuml: "Ÿ"
767
- }, tt = {
764
+ }, $e = {
768
765
  Amacr: "Ā",
769
766
  amacr: "ā",
770
767
  Abreve: "Ă",
@@ -882,7 +879,7 @@ var $e = {
882
879
  zdot: "ż",
883
880
  Zcaron: "Ž",
884
881
  zcaron: "ž"
885
- }, nt = {
882
+ }, et = {
886
883
  Alpha: "Α",
887
884
  alpha: "α",
888
885
  Beta: "Β",
@@ -953,7 +950,7 @@ var $e = {
953
950
  Gammad: "Ϝ",
954
951
  gammad: "ϝ",
955
952
  digamma: "ϝ"
956
- }, rt = {
953
+ }, tt = {
957
954
  Afr: "𝔄",
958
955
  afr: "𝔞",
959
956
  Acy: "А",
@@ -1048,7 +1045,7 @@ var $e = {
1048
1045
  ubrcy: "ў",
1049
1046
  DZcy: "Џ",
1050
1047
  dzcy: "џ"
1051
- }, it = {
1048
+ }, nt = {
1052
1049
  plus: "+",
1053
1050
  minus: "−",
1054
1051
  mnplus: "∓",
@@ -1137,7 +1134,7 @@ var $e = {
1137
1134
  lesseqqgtr: "⪋",
1138
1135
  greater: ">",
1139
1136
  less: "<"
1140
- }, at = {
1137
+ }, rt = {
1141
1138
  alefsym: "ℵ",
1142
1139
  aleph: "ℵ",
1143
1140
  beth: "ℶ",
@@ -1259,7 +1256,7 @@ var $e = {
1259
1256
  npr: "⊀",
1260
1257
  nsucc: "⊁",
1261
1258
  nsc: "⊁"
1262
- }, ot = {
1259
+ }, it = {
1263
1260
  larr: "←",
1264
1261
  leftarrow: "←",
1265
1262
  LeftArrow: "←",
@@ -1416,7 +1413,7 @@ var $e = {
1416
1413
  LeftArrowBar: "⇤",
1417
1414
  rarrb: "⇥",
1418
1415
  RightArrowBar: "⇥"
1419
- }, st = {
1416
+ }, at = {
1420
1417
  square: "□",
1421
1418
  Square: "□",
1422
1419
  squ: "□",
@@ -1509,7 +1506,7 @@ var $e = {
1509
1506
  boxvH: "╪",
1510
1507
  boxVh: "╫",
1511
1508
  boxVH: "╬"
1512
- }, ct = {
1509
+ }, ot = {
1513
1510
  excl: "!",
1514
1511
  iexcl: "¡",
1515
1512
  brvbar: "¦",
@@ -1561,7 +1558,7 @@ var $e = {
1561
1558
  DiacriticalDoubleAcute: "˝",
1562
1559
  grave: "`",
1563
1560
  acute: "´"
1564
- }, lt = {
1561
+ }, st = {
1565
1562
  cent: "¢",
1566
1563
  pound: "£",
1567
1564
  curren: "¤",
@@ -1578,7 +1575,7 @@ var $e = {
1578
1575
  won: "₩",
1579
1576
  yuan: "¥",
1580
1577
  cedil: "¸"
1581
- }, ut = {
1578
+ }, ct = {
1582
1579
  frac12: "½",
1583
1580
  half: "½",
1584
1581
  frac13: "⅓",
@@ -1596,7 +1593,7 @@ var $e = {
1596
1593
  frac58: "⅝",
1597
1594
  frac78: "⅞",
1598
1595
  frasl: "⁄"
1599
- }, dt = {
1596
+ }, lt = {
1600
1597
  trade: "™",
1601
1598
  TRADE: "™",
1602
1599
  telrec: "⌕",
@@ -1664,6 +1661,8 @@ var $e = {
1664
1661
  nVDash: "⊯"
1665
1662
  };
1666
1663
  ({
1664
+ ...Ze,
1665
+ ...Qe,
1667
1666
  ...$e,
1668
1667
  ...et,
1669
1668
  ...tt,
@@ -1674,17 +1673,15 @@ var $e = {
1674
1673
  ...ot,
1675
1674
  ...st,
1676
1675
  ...ct,
1677
- ...lt,
1678
- ...ut,
1679
- ...dt
1676
+ ...lt
1680
1677
  });
1681
- var ft = {
1678
+ var ut = {
1682
1679
  amp: "&",
1683
1680
  apos: "'",
1684
1681
  gt: ">",
1685
1682
  lt: "<",
1686
1683
  quot: "\""
1687
- }, pt = {
1684
+ }, dt = {
1688
1685
  nbsp: "\xA0",
1689
1686
  copy: "©",
1690
1687
  reg: "®",
@@ -1705,10 +1702,10 @@ var ft = {
1705
1702
  frac12: "½",
1706
1703
  frac14: "¼",
1707
1704
  frac34: "¾"
1708
- }, mt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1709
- function ht(e) {
1705
+ }, ft = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1706
+ function pt(e) {
1710
1707
  if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
1711
- for (let t of e) if (mt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1708
+ for (let t of e) if (ft.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1712
1709
  return e;
1713
1710
  }
1714
1711
  function B(...e) {
@@ -1723,45 +1720,45 @@ function B(...e) {
1723
1720
  }
1724
1721
  return t;
1725
1722
  }
1726
- var V = "external", H = "base", U = "all";
1727
- function gt(e) {
1728
- return !e || e === V ? new Set([V]) : e === U ? new Set([U]) : e === H ? new Set([H]) : Array.isArray(e) ? new Set(e) : new Set([V]);
1723
+ var V = "external", H = "base", mt = "all";
1724
+ function ht(e) {
1725
+ return !e || e === V ? new Set([V]) : e === mt ? new Set([mt]) : e === H ? new Set([H]) : Array.isArray(e) ? new Set(e) : new Set([V]);
1729
1726
  }
1730
- var W = Object.freeze({
1727
+ var U = Object.freeze({
1731
1728
  allow: 0,
1732
1729
  leave: 1,
1733
1730
  remove: 2,
1734
1731
  throw: 3
1735
- }), _t = new Set([
1732
+ }), gt = new Set([
1736
1733
  9,
1737
1734
  10,
1738
1735
  13
1739
1736
  ]);
1740
- function vt(e) {
1737
+ function _t(e) {
1741
1738
  if (!e) return {
1742
1739
  xmlVersion: 1,
1743
- onLevel: W.allow,
1744
- nullLevel: W.remove
1740
+ onLevel: U.allow,
1741
+ nullLevel: U.remove
1745
1742
  };
1746
- let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = W[e.onNCR] ?? W.allow, r = W[e.nullNCR] ?? W.remove;
1743
+ let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = U[e.onNCR] ?? U.allow, r = U[e.nullNCR] ?? U.remove;
1747
1744
  return {
1748
1745
  xmlVersion: t,
1749
1746
  onLevel: n,
1750
- nullLevel: Math.max(r, W.remove)
1747
+ nullLevel: Math.max(r, U.remove)
1751
1748
  };
1752
1749
  }
1753
- var yt = class {
1750
+ var vt = class {
1754
1751
  constructor(e = {}) {
1755
- this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = gt(this._limit.applyLimitsTo ?? V), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = B(ft, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1756
- let t = vt(e.ncr);
1752
+ this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ht(this._limit.applyLimitsTo ?? V), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = B(ut, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1753
+ let t = _t(e.ncr);
1757
1754
  this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel;
1758
1755
  }
1759
1756
  setExternalEntities(e) {
1760
- if (e) for (let t of Object.keys(e)) ht(t);
1757
+ if (e) for (let t of Object.keys(e)) pt(t);
1761
1758
  this._externalMap = B(e);
1762
1759
  }
1763
1760
  addExternalEntity(e, t) {
1764
- ht(e), typeof t == "string" && t.indexOf("&") === -1 && (this._externalMap[e] = t);
1761
+ pt(e), typeof t == "string" && t.indexOf("&") === -1 && (this._externalMap[e] = t);
1765
1762
  }
1766
1763
  addInputEntities(e) {
1767
1764
  this._totalExpansions = 0, this._expandedLength = 0, this._inputMap = B(e);
@@ -1824,7 +1821,7 @@ var yt = class {
1824
1821
  return this._postCheck(l, t);
1825
1822
  }
1826
1823
  _tierCounts(e) {
1827
- return this._limitTiers.has(U) ? !0 : this._limitTiers.has(e);
1824
+ return this._limitTiers.has(mt) ? !0 : this._limitTiers.has(e);
1828
1825
  }
1829
1826
  _resolveName(e) {
1830
1827
  if (e in this._inputMap) return {
@@ -1841,14 +1838,14 @@ var yt = class {
1841
1838
  };
1842
1839
  }
1843
1840
  _classifyNCR(e) {
1844
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !_t.has(e) ? W.remove : -1;
1841
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !gt.has(e) ? U.remove : -1;
1845
1842
  }
1846
1843
  _applyNCRAction(e, t, n) {
1847
1844
  switch (e) {
1848
- case W.allow: return String.fromCodePoint(n);
1849
- case W.remove: return "";
1850
- case W.leave: return;
1851
- case W.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1845
+ case U.allow: return String.fromCodePoint(n);
1846
+ case U.remove: return "";
1847
+ case U.leave: return;
1848
+ case U.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1852
1849
  default: return String.fromCodePoint(n);
1853
1850
  }
1854
1851
  }
@@ -1856,11 +1853,11 @@ var yt = class {
1856
1853
  let t = e.charCodeAt(1), n;
1857
1854
  if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
1858
1855
  let r = this._classifyNCR(n);
1859
- if (!this._numericAllowed && r < W.remove) return;
1856
+ if (!this._numericAllowed && r < U.remove) return;
1860
1857
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
1861
1858
  return this._applyNCRAction(i, e, n);
1862
1859
  }
1863
- }, bt = (e) => I.includes(e) ? "__" + e : e, xt = {
1860
+ }, yt = (e) => I.includes(e) ? "__" + e : e, bt = {
1864
1861
  preserveOrder: !1,
1865
1862
  attributeNamePrefix: "@_",
1866
1863
  attributesGroupName: !1,
@@ -1902,14 +1899,14 @@ var yt = class {
1902
1899
  maxNestedTags: 100,
1903
1900
  strictReservedNames: !0,
1904
1901
  jPath: !0,
1905
- onDangerousProperty: bt
1902
+ onDangerousProperty: yt
1906
1903
  };
1907
- function St(e, t) {
1904
+ function xt(e, t) {
1908
1905
  if (typeof e != "string") return;
1909
1906
  let n = e.toLowerCase();
1910
- if (I.some((e) => n === e.toLowerCase()) || Re.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1907
+ if (I.some((e) => n === e.toLowerCase()) || Ie.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1911
1908
  }
1912
- function Ct(e, t) {
1909
+ function St(e, t) {
1913
1910
  return typeof e == "boolean" ? {
1914
1911
  enabled: e,
1915
1912
  maxEntitySize: 1e4,
@@ -1930,10 +1927,10 @@ function Ct(e, t) {
1930
1927
  allowedTags: e.allowedTags ?? null,
1931
1928
  tagFilter: e.tagFilter ?? null,
1932
1929
  appliesTo: e.appliesTo ?? "all"
1933
- } : Ct(!0);
1930
+ } : St(!0);
1934
1931
  }
1935
- var wt = function(e) {
1936
- let t = Object.assign({}, xt, e), n = [
1932
+ var Ct = function(e) {
1933
+ let t = Object.assign({}, bt, e), n = [
1937
1934
  {
1938
1935
  value: t.attributeNamePrefix,
1939
1936
  name: "attributeNamePrefix"
@@ -1955,9 +1952,9 @@ var wt = function(e) {
1955
1952
  name: "commentPropName"
1956
1953
  }
1957
1954
  ];
1958
- for (let { value: e, name: t } of n) e && St(e, t);
1959
- return t.onDangerousProperty === null && (t.onDangerousProperty = bt), t.processEntities = Ct(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1960
- }, Tt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", G = class {
1955
+ for (let { value: e, name: t } of n) e && xt(e, t);
1956
+ return t.onDangerousProperty === null && (t.onDangerousProperty = yt), t.processEntities = St(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1957
+ }, wt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", W = class {
1961
1958
  constructor(e) {
1962
1959
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
1963
1960
  }
@@ -1968,12 +1965,12 @@ var wt = function(e) {
1968
1965
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
1969
1966
  [e.tagname]: e.child,
1970
1967
  ":@": e[":@"]
1971
- }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Tt] = { startIndex: t });
1968
+ }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][wt] = { startIndex: t });
1972
1969
  }
1973
1970
  static getMetaDataSymbol() {
1974
- return Tt;
1971
+ return wt;
1975
1972
  }
1976
- }, Et = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Dt = Et + "\\-\\.\\d·̀-ͯ‿-⁀", Ot = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", kt = Ot + "\\-\\.\\d·̀-ͯ҇‿-⁀", At = (e, t, n = "") => {
1973
+ }, Tt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Et = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Dt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ot = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", kt = (e, t, n = "") => {
1977
1974
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1978
1975
  return {
1979
1976
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1982,7 +1979,7 @@ var wt = function(e) {
1982
1979
  nmToken: RegExp(`^[${t}]+$`, n),
1983
1980
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1984
1981
  };
1985
- }, jt = At(Et, Dt), Mt = At(Ot, kt, "u"), Nt = (e = "1.0") => e === "1.1" ? Mt : jt, K = (e, { xmlVersion: t = "1.0" } = {}) => Nt(t).qName.test(e), Pt = class {
1982
+ }, At = kt(Tt, Et), jt = kt(Dt, Ot, "u"), Mt = (e = "1.0") => e === "1.1" ? jt : At, G = (e, { xmlVersion: t = "1.0" } = {}) => Mt(t).qName.test(e), Nt = class {
1986
1983
  constructor(e, t) {
1987
1984
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1988
1985
  }
@@ -1995,23 +1992,23 @@ var wt = function(e) {
1995
1992
  t += 9;
1996
1993
  let i = 1, a = !1, o = !1, s = "";
1997
1994
  for (; t < e.length; t++) if (e[t] === "<" && !o) {
1998
- if (a && J(e, "!ENTITY", t)) {
1995
+ if (a && q(e, "!ENTITY", t)) {
1999
1996
  t += 7;
2000
1997
  let i, a;
2001
1998
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
2002
1999
  if (this.options.enabled !== !1 && this.options.maxEntityCount != null && r >= this.options.maxEntityCount) throw Error(`Entity count (${r + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
2003
2000
  n[i] = a, r++;
2004
2001
  }
2005
- } else if (a && J(e, "!ELEMENT", t)) {
2002
+ } else if (a && q(e, "!ELEMENT", t)) {
2006
2003
  t += 8;
2007
2004
  let { index: n } = this.readElementExp(e, t + 1);
2008
2005
  t = n;
2009
- } else if (a && J(e, "!ATTLIST", t)) t += 8;
2010
- else if (a && J(e, "!NOTATION", t)) {
2006
+ } else if (a && q(e, "!ATTLIST", t)) t += 8;
2007
+ else if (a && q(e, "!NOTATION", t)) {
2011
2008
  t += 9;
2012
2009
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
2013
2010
  t = n;
2014
- } else if (J(e, "!--", t)) o = !0;
2011
+ } else if (q(e, "!--", t)) o = !0;
2015
2012
  else throw Error("Invalid DOCTYPE");
2016
2013
  i++, s = "";
2017
2014
  } else if (e[t] === ">") {
@@ -2025,11 +2022,11 @@ var wt = function(e) {
2025
2022
  };
2026
2023
  }
2027
2024
  readEntityExp(e, t) {
2028
- t = q(e, t);
2025
+ t = K(e, t);
2029
2026
  let n = t;
2030
2027
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
2031
2028
  let r = e.substring(n, t);
2032
- if (Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t), !this.suppressValidationErr) {
2029
+ if (J(r, { xmlVersion: this.xmlVersion }), t = K(e, t), !this.suppressValidationErr) {
2033
2030
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
2034
2031
  if (e[t] === "%") throw Error("Parameter entities are not supported");
2035
2032
  }
@@ -2042,16 +2039,16 @@ var wt = function(e) {
2042
2039
  ];
2043
2040
  }
2044
2041
  readNotationExp(e, t) {
2045
- t = q(e, t);
2042
+ t = K(e, t);
2046
2043
  let n = t;
2047
2044
  for (; t < e.length && !/\s/.test(e[t]);) t++;
2048
2045
  let r = e.substring(n, t);
2049
- !this.suppressValidationErr && Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t);
2046
+ !this.suppressValidationErr && J(r, { xmlVersion: this.xmlVersion }), t = K(e, t);
2050
2047
  let i = e.substring(t, t + 6).toUpperCase();
2051
2048
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
2052
- t += i.length, t = q(e, t);
2049
+ t += i.length, t = K(e, t);
2053
2050
  let a = null, o = null;
2054
- if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = q(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
2051
+ if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = K(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
2055
2052
  else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
2056
2053
  return {
2057
2054
  notationName: r,
@@ -2070,15 +2067,15 @@ var wt = function(e) {
2070
2067
  return t++, [t, r];
2071
2068
  }
2072
2069
  readElementExp(e, t) {
2073
- t = q(e, t);
2070
+ t = K(e, t);
2074
2071
  let n = t;
2075
2072
  for (; t < e.length && !/\s/.test(e[t]);) t++;
2076
2073
  let r = e.substring(n, t);
2077
- if (!this.suppressValidationErr && !K(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
2078
- t = q(e, t);
2074
+ if (!this.suppressValidationErr && !G(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
2075
+ t = K(e, t);
2079
2076
  let i = "";
2080
- if (e[t] === "E" && J(e, "MPTY", t)) t += 4;
2081
- else if (e[t] === "A" && J(e, "NY", t)) t += 2;
2077
+ if (e[t] === "E" && q(e, "MPTY", t)) t += 4;
2078
+ else if (e[t] === "A" && q(e, "NY", t)) t += 2;
2082
2079
  else if (e[t] === "(") {
2083
2080
  t++;
2084
2081
  let n = t;
@@ -2092,25 +2089,25 @@ var wt = function(e) {
2092
2089
  };
2093
2090
  }
2094
2091
  readAttlistExp(e, t) {
2095
- t = q(e, t);
2092
+ t = K(e, t);
2096
2093
  let n = t;
2097
2094
  for (; t < e.length && !/\s/.test(e[t]);) t++;
2098
2095
  let r = e.substring(n, t);
2099
- for (Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
2096
+ for (J(r, { xmlVersion: this.xmlVersion }), t = K(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
2100
2097
  let i = e.substring(n, t);
2101
- if (!Y(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
2102
- t = q(e, t);
2098
+ if (!J(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
2099
+ t = K(e, t);
2103
2100
  let a = "";
2104
2101
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
2105
- if (a = "NOTATION", t += 8, t = q(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
2102
+ if (a = "NOTATION", t += 8, t = K(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
2106
2103
  t++;
2107
2104
  let n = [];
2108
2105
  for (; t < e.length && e[t] !== ")";) {
2109
2106
  let r = t;
2110
2107
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
2111
2108
  let i = e.substring(r, t);
2112
- if (i = i.trim(), !Y(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
2113
- n.push(i), e[t] === "|" && (t++, t = q(e, t));
2109
+ if (i = i.trim(), !J(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
2110
+ n.push(i), e[t] === "|" && (t++, t = K(e, t));
2114
2111
  }
2115
2112
  if (e[t] !== ")") throw Error("Unterminated list of notations");
2116
2113
  t++, a += " (" + n.join("|") + ")";
@@ -2128,7 +2125,7 @@ var wt = function(e) {
2128
2125
  "NMTOKENS"
2129
2126
  ].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
2130
2127
  }
2131
- t = q(e, t);
2128
+ t = K(e, t);
2132
2129
  let o = "";
2133
2130
  return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
2134
2131
  elementName: r,
@@ -2138,21 +2135,21 @@ var wt = function(e) {
2138
2135
  index: t
2139
2136
  };
2140
2137
  }
2141
- }, q = (e, t) => {
2138
+ }, K = (e, t) => {
2142
2139
  for (; t < e.length && /\s/.test(e[t]);) t++;
2143
2140
  return t;
2144
2141
  };
2145
- function J(e, t, n) {
2142
+ function q(e, t, n) {
2146
2143
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
2147
2144
  return !0;
2148
2145
  }
2149
- function Y(e, t) {
2150
- if (K(e, { xmlVersion: t })) return e;
2146
+ function J(e, t) {
2147
+ if (G(e, { xmlVersion: t })) return e;
2151
2148
  throw Error(`Invalid entity name ${e}`);
2152
2149
  }
2153
2150
  //#endregion
2154
2151
  //#region ../../node_modules/.pnpm/strnum@2.3.0/node_modules/strnum/strnum.js
2155
- var Ft = /^[-+]?0x[a-fA-F0-9]+$/, It = /^0b[01]+$/, Lt = /^0o[0-7]+$/, Rt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, zt = {
2152
+ var Pt = /^[-+]?0x[a-fA-F0-9]+$/, Ft = /^0b[01]+$/, It = /^0o[0-7]+$/, Lt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Rt = {
2156
2153
  hex: !0,
2157
2154
  binary: !1,
2158
2155
  octal: !1,
@@ -2161,20 +2158,20 @@ var Ft = /^[-+]?0x[a-fA-F0-9]+$/, It = /^0b[01]+$/, Lt = /^0o[0-7]+$/, Rt = /^([
2161
2158
  eNotation: !0,
2162
2159
  infinity: "original"
2163
2160
  };
2164
- function Bt(e, t = {}) {
2165
- if (t = Object.assign({}, zt, t), !e || typeof e != "string") return e;
2161
+ function zt(e, t = {}) {
2162
+ if (t = Object.assign({}, Rt, t), !e || typeof e != "string") return e;
2166
2163
  let n = e.trim();
2167
2164
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2168
2165
  if (n === "0") return 0;
2169
- if (t.hex && Ft.test(n)) return X(n, 16);
2170
- if (t.binary && It.test(n)) return X(n, 2);
2171
- if (t.octal && Lt.test(n)) return X(n, 8);
2172
- if (!isFinite(n)) return Wt(e, Number(n), t);
2173
- if (n.includes("e") || n.includes("E")) return Ht(e, n, t);
2166
+ if (t.hex && Pt.test(n)) return Y(n, 16);
2167
+ if (t.binary && Ft.test(n)) return Y(n, 2);
2168
+ if (t.octal && It.test(n)) return Y(n, 8);
2169
+ if (!isFinite(n)) return Ut(e, Number(n), t);
2170
+ if (n.includes("e") || n.includes("E")) return Vt(e, n, t);
2174
2171
  {
2175
- let r = Rt.exec(n);
2172
+ let r = Lt.exec(n);
2176
2173
  if (r) {
2177
- let i = r[1] || "", a = r[2], o = Ut(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2174
+ let i = r[1] || "", a = r[2], o = Ht(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2178
2175
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
2179
2176
  {
2180
2177
  let r = Number(n), s = String(r);
@@ -2187,26 +2184,26 @@ function Bt(e, t = {}) {
2187
2184
  } else return e;
2188
2185
  }
2189
2186
  }
2190
- var Vt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2191
- function Ht(e, t, n) {
2187
+ var Bt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2188
+ function Vt(e, t, n) {
2192
2189
  if (!n.eNotation) return e;
2193
- let r = t.match(Vt);
2190
+ let r = t.match(Bt);
2194
2191
  if (r) {
2195
2192
  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;
2196
2193
  return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
2197
2194
  } else return e;
2198
2195
  }
2199
- function Ut(e) {
2196
+ function Ht(e) {
2200
2197
  return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
2201
2198
  }
2202
- function X(e, t) {
2199
+ function Y(e, t) {
2203
2200
  let n = e.trim();
2204
2201
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2205
2202
  if (Number.parseInt) return Number.parseInt(e, t);
2206
2203
  if (window && window.parseInt) return window.parseInt(e, t);
2207
2204
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2208
2205
  }
2209
- function Wt(e, t, n) {
2206
+ function Ut(e, t, n) {
2210
2207
  let r = t === Infinity;
2211
2208
  switch (n.infinity.toLowerCase()) {
2212
2209
  case "null": return null;
@@ -2217,14 +2214,14 @@ function Wt(e, t, n) {
2217
2214
  }
2218
2215
  //#endregion
2219
2216
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2220
- function Gt(e) {
2217
+ function Wt(e) {
2221
2218
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2222
2219
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2223
2220
  } : () => !1;
2224
2221
  }
2225
2222
  //#endregion
2226
2223
  //#region ../../node_modules/.pnpm/path-expression-matcher@1.5.0/node_modules/path-expression-matcher/src/Expression.js
2227
- var Z = class {
2224
+ var X = class {
2228
2225
  constructor(e, t = {}, n) {
2229
2226
  this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
2230
2227
  }
@@ -2280,7 +2277,7 @@ var Z = class {
2280
2277
  toString() {
2281
2278
  return this.pattern;
2282
2279
  }
2283
- }, Kt = class {
2280
+ }, Gt = class {
2284
2281
  constructor() {
2285
2282
  this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
2286
2283
  }
@@ -2327,7 +2324,7 @@ var Z = class {
2327
2324
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2328
2325
  return null;
2329
2326
  }
2330
- }, qt = class {
2327
+ }, Kt = class {
2331
2328
  constructor(e) {
2332
2329
  this._matcher = e;
2333
2330
  }
@@ -2378,9 +2375,9 @@ var Z = class {
2378
2375
  matchesAny(e) {
2379
2376
  return e.matchesAny(this._matcher);
2380
2377
  }
2381
- }, Jt = class {
2378
+ }, qt = class {
2382
2379
  constructor(e = {}) {
2383
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new qt(this);
2380
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new Kt(this);
2384
2381
  }
2385
2382
  push(e, t = null, n = null) {
2386
2383
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2504,7 +2501,7 @@ var Z = class {
2504
2501
  };
2505
2502
  //#endregion
2506
2503
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
2507
- function Yt(e, t) {
2504
+ function Jt(e, t) {
2508
2505
  if (!e) return {};
2509
2506
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
2510
2507
  if (!n) return {};
@@ -2515,7 +2512,7 @@ function Yt(e, t) {
2515
2512
  } else r[e] = n[e];
2516
2513
  return r;
2517
2514
  }
2518
- function Xt(e) {
2515
+ function Yt(e) {
2519
2516
  if (!e || typeof e != "string") return;
2520
2517
  let t = e.indexOf(":");
2521
2518
  if (t !== -1 && t > 0) {
@@ -2523,14 +2520,14 @@ function Xt(e) {
2523
2520
  if (n !== "xmlns") return n;
2524
2521
  }
2525
2522
  }
2526
- var Zt = class {
2523
+ var Xt = class {
2527
2524
  constructor(e, t) {
2528
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = nn, this.parseTextData = Qt, this.resolveNameSpace = $t, this.buildAttributesMap = tn, this.isItStopNode = sn, this.replaceEntitiesValue = an, this.readStopNodeData = un, this.saveTextToParentTag = on, this.addChild = rn, this.ignoreAttributesFn = Gt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
2529
- let n = { ...ft };
2525
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = tn, this.parseTextData = Zt, this.resolveNameSpace = Qt, this.buildAttributesMap = en, this.isItStopNode = on, this.replaceEntitiesValue = rn, this.readStopNodeData = ln, this.saveTextToParentTag = an, this.addChild = nn, this.ignoreAttributesFn = Wt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
2526
+ let n = { ...ut };
2530
2527
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
2531
- ...pt,
2532
- ...lt
2533
- }), this.entityDecoder = new yt({
2528
+ ...dt,
2529
+ ...st
2530
+ }), this.entityDecoder = new vt({
2534
2531
  namedEntities: {
2535
2532
  ...n,
2536
2533
  ...t
@@ -2541,26 +2538,26 @@ var Zt = class {
2541
2538
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
2542
2539
  applyLimitsTo: this.options.processEntities.appliesTo
2543
2540
  }
2544
- })), this.matcher = new Jt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new Kt();
2541
+ })), this.matcher = new qt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new Gt();
2545
2542
  let r = this.options.stopNodes;
2546
2543
  if (r && r.length > 0) {
2547
2544
  for (let e = 0; e < r.length; e++) {
2548
2545
  let t = r[e];
2549
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new Z(t)) : t instanceof Z && this.stopNodeExpressionsSet.add(t);
2546
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new X(t)) : t instanceof X && this.stopNodeExpressionsSet.add(t);
2550
2547
  }
2551
2548
  this.stopNodeExpressionsSet.seal();
2552
2549
  }
2553
2550
  }
2554
2551
  };
2555
- function Qt(e, t, n, r, i, a, o) {
2552
+ function Zt(e, t, n, r, i, a, o) {
2556
2553
  let s = this.options;
2557
2554
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
2558
2555
  o || (e = this.replaceEntitiesValue(e, t, n));
2559
2556
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
2560
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? dn(e, s.parseTagValue, s.numberParseOptions) : e;
2557
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? un(e, s.parseTagValue, s.numberParseOptions) : e;
2561
2558
  }
2562
2559
  }
2563
- function $t(e) {
2560
+ function Qt(e) {
2564
2561
  if (this.options.removeNSPrefix) {
2565
2562
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
2566
2563
  if (t[0] === "xmlns") return "";
@@ -2568,11 +2565,11 @@ function $t(e) {
2568
2565
  }
2569
2566
  return e;
2570
2567
  }
2571
- var en = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2572
- function tn(e, t, n, r = !1) {
2568
+ var $t = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2569
+ function en(e, t, n, r = !1) {
2573
2570
  let i = this.options;
2574
2571
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
2575
- let r = Fe(e, en), a = r.length, o = {}, s = Array(a), c = !1, l = {};
2572
+ let r = Ne(e, $t), a = r.length, o = {}, s = Array(a), c = !1, l = {};
2576
2573
  for (let e = 0; e < a; e++) {
2577
2574
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
2578
2575
  if (t.length && a !== void 0) {
@@ -2586,9 +2583,9 @@ function tn(e, t, n, r = !1) {
2586
2583
  let t = this.resolveNameSpace(r[e][1]);
2587
2584
  if (this.ignoreAttributesFn(t, u)) continue;
2588
2585
  let n = i.attributeNamePrefix + t;
2589
- if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = pn(n, i), r[e][4] !== void 0) {
2586
+ if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = dn(n, i), r[e][4] !== void 0) {
2590
2587
  let r = s[e], a = i.attributeValueProcessor(t, r, u);
2591
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = dn(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
2588
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = un(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
2592
2589
  } else i.allowBooleanAttributes && (o[n] = !0, d = !0);
2593
2590
  }
2594
2591
  if (!d) return;
@@ -2599,25 +2596,25 @@ function tn(e, t, n, r = !1) {
2599
2596
  return o;
2600
2597
  }
2601
2598
  }
2602
- var nn = function(e) {
2599
+ var tn = function(e) {
2603
2600
  e = e.replace(/\r\n?/g, "\n");
2604
- let t = new G("!xml"), n = t, r = "";
2601
+ let t = new W("!xml"), n = t, r = "";
2605
2602
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
2606
- let i = this.options, a = new Pt(i.processEntities), o = e.length;
2603
+ let i = this.options, a = new Nt(i.processEntities), o = e.length;
2607
2604
  for (let s = 0; s < o; s++) if (e[s] === "<") {
2608
2605
  let c = e.charCodeAt(s + 1);
2609
2606
  if (c === 47) {
2610
- let t = Q(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
2607
+ let t = Z(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
2611
2608
  if (i.removeNSPrefix) {
2612
2609
  let e = a.indexOf(":");
2613
2610
  e !== -1 && (a = a.substr(e + 1));
2614
2611
  }
2615
- a = fn(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
2612
+ a = $(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
2616
2613
  let o = this.matcher.getCurrentTag();
2617
2614
  if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
2618
2615
  o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
2619
2616
  } else if (c === 63) {
2620
- let t = $(e, s, !1, "?>");
2617
+ let t = Q(e, s, !1, "?>");
2621
2618
  if (!t) throw Error("Pi Tag is not closed.");
2622
2619
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
2623
2620
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -2626,12 +2623,12 @@ var nn = function(e) {
2626
2623
  this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
2627
2624
  }
2628
2625
  if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
2629
- let e = new G(t.tagName);
2626
+ let e = new W(t.tagName);
2630
2627
  e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
2631
2628
  }
2632
2629
  s = t.closeIndex + 1;
2633
2630
  } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
2634
- let t = Q(e, "-->", s + 4, "Comment is not closed.");
2631
+ let t = Z(e, "-->", s + 4, "Comment is not closed.");
2635
2632
  if (i.commentPropName) {
2636
2633
  let a = e.substring(s + 4, t - 2);
2637
2634
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
@@ -2641,25 +2638,25 @@ var nn = function(e) {
2641
2638
  let t = a.readDocType(e, s);
2642
2639
  this.entityDecoder.addInputEntities(t.entities), s = t.i;
2643
2640
  } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
2644
- let t = Q(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
2641
+ let t = Z(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
2645
2642
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
2646
2643
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
2647
2644
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
2648
2645
  } else {
2649
- let a = $(e, s, i.removeNSPrefix);
2646
+ let a = Q(e, s, i.removeNSPrefix);
2650
2647
  if (!a) {
2651
2648
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
2652
2649
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
2653
2650
  }
2654
2651
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
2655
- if ({tagName: c, tagExp: u} = fn(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
2652
+ if ({tagName: c, tagExp: u} = $(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
2656
2653
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
2657
2654
  let p = n;
2658
2655
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
2659
2656
  let m = !1;
2660
2657
  u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
2661
2658
  let h = null, g;
2662
- g = Xt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Yt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
2659
+ g = Yt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Jt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
2663
2660
  let _ = s;
2664
2661
  if (this.isCurrentNodeStopNode) {
2665
2662
  let t = "";
@@ -2670,19 +2667,19 @@ var nn = function(e) {
2670
2667
  if (!n) throw Error(`Unexpected end of ${l}`);
2671
2668
  s = n.i, t = n.tagContent;
2672
2669
  }
2673
- let r = new G(c);
2670
+ let r = new W(c);
2674
2671
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
2675
2672
  } else {
2676
2673
  if (m) {
2677
- ({tagName: c, tagExp: u} = fn(i.transformTagName, c, u, i));
2678
- let e = new G(c);
2674
+ ({tagName: c, tagExp: u} = $(i.transformTagName, c, u, i));
2675
+ let e = new W(c);
2679
2676
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
2680
2677
  } else if (i.unpairedTagsSet.has(c)) {
2681
- let e = new G(c);
2678
+ let e = new W(c);
2682
2679
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
2683
2680
  continue;
2684
2681
  } else {
2685
- let e = new G(c);
2682
+ let e = new W(c);
2686
2683
  if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
2687
2684
  this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
2688
2685
  }
@@ -2692,12 +2689,12 @@ var nn = function(e) {
2692
2689
  } else r += e[s];
2693
2690
  return t.child;
2694
2691
  };
2695
- function rn(e, t, n, r) {
2692
+ function nn(e, t, n, r) {
2696
2693
  this.options.captureMetaData || (r = void 0);
2697
2694
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
2698
2695
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
2699
2696
  }
2700
- function an(e, t, n) {
2697
+ function rn(e, t, n) {
2701
2698
  let r = this.options.processEntities;
2702
2699
  if (!r || !r.enabled) return e;
2703
2700
  if (r.allowedTags) {
@@ -2710,13 +2707,13 @@ function an(e, t, n) {
2710
2707
  }
2711
2708
  return this.entityDecoder.decode(e);
2712
2709
  }
2713
- function on(e, t, n, r) {
2710
+ function an(e, t, n, r) {
2714
2711
  return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
2715
2712
  }
2716
- function sn() {
2713
+ function on() {
2717
2714
  return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
2718
2715
  }
2719
- function cn(e, t, n = ">") {
2716
+ function sn(e, t, n = ">") {
2720
2717
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
2721
2718
  for (let n = t; n < i; n++) {
2722
2719
  let t = e.charCodeAt(n);
@@ -2734,18 +2731,18 @@ function cn(e, t, n = ">") {
2734
2731
  else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
2735
2732
  }
2736
2733
  }
2737
- function Q(e, t, n, r) {
2734
+ function Z(e, t, n, r) {
2738
2735
  let i = e.indexOf(t, n);
2739
2736
  if (i === -1) throw Error(r);
2740
2737
  return i + t.length - 1;
2741
2738
  }
2742
- function ln(e, t, n, r) {
2739
+ function cn(e, t, n, r) {
2743
2740
  let i = e.indexOf(t, n);
2744
2741
  if (i === -1) throw Error(r);
2745
2742
  return i;
2746
2743
  }
2747
- function $(e, t, n, r = ">") {
2748
- let i = cn(e, t + 1, r);
2744
+ function Q(e, t, n, r = ">") {
2745
+ let i = sn(e, t + 1, r);
2749
2746
  if (!i) return;
2750
2747
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
2751
2748
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -2762,51 +2759,51 @@ function $(e, t, n, r = ">") {
2762
2759
  rawTagName: u
2763
2760
  };
2764
2761
  }
2765
- function un(e, t, n) {
2762
+ function ln(e, t, n) {
2766
2763
  let r = n, i = 1, a = e.length;
2767
2764
  for (; n < a; n++) if (e[n] === "<") {
2768
2765
  let a = e.charCodeAt(n + 1);
2769
2766
  if (a === 47) {
2770
- let a = ln(e, ">", n, `${t} is not closed`);
2767
+ let a = cn(e, ">", n, `${t} is not closed`);
2771
2768
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
2772
2769
  tagContent: e.substring(r, n),
2773
2770
  i: a
2774
2771
  };
2775
2772
  n = a;
2776
- } else if (a === 63) n = Q(e, "?>", n + 1, "StopNode is not closed.");
2777
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = Q(e, "-->", n + 3, "StopNode is not closed.");
2778
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = Q(e, "]]>", n, "StopNode is not closed.") - 2;
2773
+ } else if (a === 63) n = Z(e, "?>", n + 1, "StopNode is not closed.");
2774
+ else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = Z(e, "-->", n + 3, "StopNode is not closed.");
2775
+ else if (a === 33 && e.charCodeAt(n + 2) === 91) n = Z(e, "]]>", n, "StopNode is not closed.") - 2;
2779
2776
  else {
2780
- let r = $(e, n, !1);
2777
+ let r = Q(e, n, !1);
2781
2778
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
2782
2779
  }
2783
2780
  }
2784
2781
  }
2785
- function dn(e, t, n) {
2782
+ function un(e, t, n) {
2786
2783
  if (t && typeof e == "string") {
2787
2784
  let t = e.trim();
2788
- return t === "true" ? !0 : t === "false" ? !1 : Bt(e, n);
2789
- } else if (Le(e)) return e;
2785
+ return t === "true" ? !0 : t === "false" ? !1 : zt(e, n);
2786
+ } else if (Fe(e)) return e;
2790
2787
  else return "";
2791
2788
  }
2792
- function fn(e, t, n, r) {
2789
+ function $(e, t, n, r) {
2793
2790
  if (e) {
2794
2791
  let r = e(t);
2795
2792
  n === t && (n = r), t = r;
2796
2793
  }
2797
- return t = pn(t, r), {
2794
+ return t = dn(t, r), {
2798
2795
  tagName: t,
2799
2796
  tagExp: n
2800
2797
  };
2801
2798
  }
2802
- function pn(e, t) {
2803
- if (Re.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
2799
+ function dn(e, t) {
2800
+ if (Ie.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
2804
2801
  return I.includes(e) ? t.onDangerousProperty(e) : e;
2805
2802
  }
2806
2803
  //#endregion
2807
2804
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
2808
- var mn = G.getMetaDataSymbol();
2809
- function hn(e, t) {
2805
+ var fn = W.getMetaDataSymbol();
2806
+ function pn(e, t) {
2810
2807
  if (!e || typeof e != "object") return {};
2811
2808
  if (!t) return e;
2812
2809
  let n = {};
@@ -2816,22 +2813,22 @@ function hn(e, t) {
2816
2813
  } else n[r] = e[r];
2817
2814
  return n;
2818
2815
  }
2819
- function gn(e, t, n, r) {
2820
- return _n(e, t, n, r);
2816
+ function mn(e, t, n, r) {
2817
+ return hn(e, t, n, r);
2821
2818
  }
2822
- function _n(e, t, n, r) {
2819
+ function hn(e, t, n, r) {
2823
2820
  let i, a = {};
2824
2821
  for (let o = 0; o < e.length; o++) {
2825
- let s = e[o], c = vn(s);
2822
+ let s = e[o], c = gn(s);
2826
2823
  if (c !== void 0 && c !== t.textNodeName) {
2827
- let e = hn(s[":@"] || {}, t.attributeNamePrefix);
2824
+ let e = pn(s[":@"] || {}, t.attributeNamePrefix);
2828
2825
  n.push(c, e);
2829
2826
  }
2830
2827
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
2831
2828
  else if (c === void 0) continue;
2832
2829
  else if (s[c]) {
2833
- let e = _n(s[c], t, n, r), i = bn(e, t);
2834
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? yn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[mn] !== void 0 && typeof e == "object" && e && (e[mn] = s[mn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
2830
+ let e = hn(s[c], t, n, r), i = vn(e, t);
2831
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? _n(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[fn] !== void 0 && typeof e == "object" && e && (e[fn] = s[fn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
2835
2832
  else {
2836
2833
  let n = t.jPath ? r.toString() : r;
2837
2834
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -2841,14 +2838,14 @@ function _n(e, t, n, r) {
2841
2838
  }
2842
2839
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
2843
2840
  }
2844
- function vn(e) {
2841
+ function gn(e) {
2845
2842
  let t = Object.keys(e);
2846
2843
  for (let e = 0; e < t.length; e++) {
2847
2844
  let n = t[e];
2848
2845
  if (n !== ":@") return n;
2849
2846
  }
2850
2847
  }
2851
- function yn(e, t, n, r) {
2848
+ function _n(e, t, n, r) {
2852
2849
  if (t) {
2853
2850
  let i = Object.keys(t), a = i.length;
2854
2851
  for (let o = 0; o < a; o++) {
@@ -2857,26 +2854,26 @@ function yn(e, t, n, r) {
2857
2854
  }
2858
2855
  }
2859
2856
  }
2860
- function bn(e, t) {
2857
+ function vn(e, t) {
2861
2858
  let { textNodeName: n } = t, r = Object.keys(e).length;
2862
2859
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
2863
2860
  }
2864
2861
  //#endregion
2865
2862
  //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
2866
- var xn = class {
2863
+ var yn = class {
2867
2864
  constructor(e) {
2868
- this.externalEntities = {}, this.options = wt(e);
2865
+ this.externalEntities = {}, this.options = Ct(e);
2869
2866
  }
2870
2867
  parse(e, t) {
2871
2868
  if (typeof e != "string" && e.toString) e = e.toString();
2872
2869
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
2873
2870
  if (t) {
2874
2871
  t === !0 && (t = {});
2875
- let n = Be(e, t);
2872
+ let n = Re(e, t);
2876
2873
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
2877
2874
  }
2878
- let n = new Zt(this.options, this.externalEntities), r = n.parseXml(e);
2879
- return this.options.preserveOrder || r === void 0 ? r : gn(r, this.options, n.matcher, n.readonlyMatcher);
2875
+ let n = new Xt(this.options, this.externalEntities), r = n.parseXml(e);
2876
+ return this.options.preserveOrder || r === void 0 ? r : mn(r, this.options, n.matcher, n.readonlyMatcher);
2880
2877
  }
2881
2878
  addEntity(e, t) {
2882
2879
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -2885,9 +2882,9 @@ var xn = class {
2885
2882
  this.externalEntities[e] = t;
2886
2883
  }
2887
2884
  static getMetaDataSymbol() {
2888
- return G.getMetaDataSymbol();
2885
+ return W.getMetaDataSymbol();
2889
2886
  }
2890
- }, Sn = class {
2887
+ }, bn = class {
2891
2888
  axiosClient;
2892
2889
  baseURI;
2893
2890
  xmlParser;
@@ -2897,7 +2894,7 @@ var xn = class {
2897
2894
  HASH_LENGTH = 32;
2898
2895
  ITERATION_COUNT = 1e4;
2899
2896
  constructor({ axiosClient: e, baseURI: t }) {
2900
- this.axiosClient = e, this.baseURI = t, this.xmlParser = new xn();
2897
+ this.axiosClient = e, this.baseURI = t, this.xmlParser = new yn();
2901
2898
  }
2902
2899
  async signUrl(e, t) {
2903
2900
  let n = new URL(e);
@@ -2913,14 +2910,14 @@ var xn = class {
2913
2910
  async createHashedKey(e) {
2914
2911
  return je(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
2915
2912
  }
2916
- }, Cn = (e, t) => {
2913
+ }, xn = (e, t) => {
2917
2914
  let n = new URL(e);
2918
2915
  n.pathname = [
2919
2916
  ...n.pathname.split("/"),
2920
2917
  "ocs",
2921
2918
  "v1.php"
2922
2919
  ].filter(Boolean).join("/");
2923
- let r = n.href, i = v(r, t), a = new Sn({
2920
+ let r = n.href, i = v(r, t), a = new bn({
2924
2921
  baseURI: e,
2925
2922
  axiosClient: t
2926
2923
  });
@@ -2930,4 +2927,4 @@ var xn = class {
2930
2927
  };
2931
2928
  };
2932
2929
  //#endregion
2933
- export { K as a, Z as i, xn as n, v as o, Jt as r, Cn as t };
2930
+ export { G as a, X as i, yn as n, v as o, qt as r, xn as t };