@opencloud-eu/web-client 8.2.1 → 8.2.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,28 +1,26 @@
1
- import { t as e } from "./urlJoin-_pUL1TUx.js";
2
- import { a as t, n, s as r, t as i } from "./toString-uorCN9F3.js";
3
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
1
+ import { a as e, n as t, s as n, t as r } from "./toString-DOYcT1Pn.js";
2
+ import { t as i } from "./urlJoin-ELOJmfWG.js";
3
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
4
4
  var a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, o = /^\w*$/;
5
- function s(e, n) {
6
- if (t(e)) return !1;
7
- var i = typeof e;
8
- return i == "number" || i == "symbol" || i == "boolean" || e == null || r(e) ? !0 : o.test(e) || !a.test(e) || n != null && e in Object(n);
5
+ function s(t, r) {
6
+ if (e(t)) return !1;
7
+ var i = typeof t;
8
+ return i == "number" || i == "symbol" || i == "boolean" || t == null || n(t) ? !0 : o.test(t) || !a.test(t) || r != null && t in Object(r);
9
9
  }
10
- //#endregion
11
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
10
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
12
11
  var c = "Expected a function";
13
- function l(e, t) {
14
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(c);
12
+ function l(e, n) {
13
+ if (typeof e != "function" || n != null && typeof n != "function") throw TypeError(c);
15
14
  var r = function() {
16
- var n = arguments, i = t ? t.apply(this, n) : n[0], a = r.cache;
15
+ var t = arguments, i = n ? n.apply(this, t) : t[0], a = r.cache;
17
16
  if (a.has(i)) return a.get(i);
18
- var o = e.apply(this, n);
17
+ var o = e.apply(this, t);
19
18
  return r.cache = a.set(i, o) || a, o;
20
19
  };
21
- return r.cache = new (l.Cache || n)(), r;
20
+ return r.cache = new (l.Cache || t)(), r;
22
21
  }
23
- l.Cache = n;
24
- //#endregion
25
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
22
+ l.Cache = t;
23
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
26
24
  var u = 500;
27
25
  function d(e) {
28
26
  var t = l(e, function(e) {
@@ -30,43 +28,37 @@ function d(e) {
30
28
  }), n = t.cache;
31
29
  return t;
32
30
  }
33
- //#endregion
34
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
31
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
35
32
  var f = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, p = /\\(\\)?/g, m = d(function(e) {
36
33
  var t = [];
37
34
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(f, function(e, n, r, i) {
38
35
  t.push(r ? i.replace(p, "$1") : n || e);
39
36
  }), t;
40
37
  });
41
- //#endregion
42
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
43
- function h(e, n) {
44
- return t(e) ? e : s(e, n) ? [e] : m(i(e));
38
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
39
+ function h(t, n) {
40
+ return e(t) ? t : s(t, n) ? [t] : m(r(t));
45
41
  }
46
- //#endregion
47
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
42
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
48
43
  var g = 1 / 0;
49
44
  function _(e) {
50
- if (typeof e == "string" || r(e)) return e;
45
+ if (typeof e == "string" || n(e)) return e;
51
46
  var t = e + "";
52
47
  return t == "0" && 1 / e == -g ? "-0" : t;
53
48
  }
54
- //#endregion
55
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
56
- function ee(e, t) {
49
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
50
+ function v(e, t) {
57
51
  t = h(t, e);
58
52
  for (var n = 0, r = t.length; e != null && n < r;) e = e[_(t[n++])];
59
53
  return n && n == r ? e : void 0;
60
54
  }
61
- //#endregion
62
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
63
- function te(e, t, n) {
64
- var r = e == null ? void 0 : ee(e, t);
55
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
56
+ function ee(e, t, n) {
57
+ var r = e == null ? void 0 : v(e, t);
65
58
  return r === void 0 ? n : r;
66
59
  }
67
- //#endregion
68
- //#region src/ocs/capabilities.ts
69
- var v = (e, t) => {
60
+ // src/ocs/capabilities.ts
61
+ var y = (e, t) => {
70
62
  let n = new URL(e);
71
63
  n.pathname = [
72
64
  ...n.pathname.split("/"),
@@ -75,16 +67,16 @@ var v = (e, t) => {
75
67
  ].filter(Boolean).join("/"), n.searchParams.append("format", "json");
76
68
  let r = n.href;
77
69
  return { async getCapabilities() {
78
- return te(await t.get(r), "data.ocs.data", {
70
+ return ee(await t.get(r), "data.ocs.data", {
79
71
  capabilities: null,
80
72
  version: null
81
73
  });
82
74
  } };
83
- }, y = {}, b = {};
84
- b.byteLength = ie, b.toByteArray = oe, b.fromByteArray = le;
85
- for (var x = [], S = [], C = typeof Uint8Array < "u" ? Uint8Array : Array, w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", T = 0, ne = w.length; T < ne; ++T) x[T] = w[T], S[w.charCodeAt(T)] = T;
86
- S[45] = 62, S[95] = 63;
87
- function re(e) {
75
+ }, b = {}, x = {};
76
+ x.byteLength = re, x.toByteArray = ae, x.fromByteArray = ce;
77
+ for (var S = [], C = [], w = typeof Uint8Array < "u" ? Uint8Array : Array, T = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", E = 0, te = T.length; E < te; ++E) S[E] = T[E], C[T.charCodeAt(E)] = E;
78
+ C[45] = 62, C[95] = 63;
79
+ function ne(e) {
88
80
  var t = e.length;
89
81
  if (t % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4");
90
82
  var n = e.indexOf("=");
@@ -92,30 +84,30 @@ function re(e) {
92
84
  var r = n === t ? 0 : 4 - n % 4;
93
85
  return [n, r];
94
86
  }
95
- function ie(e) {
96
- var t = re(e), n = t[0], r = t[1];
87
+ function re(e) {
88
+ var t = ne(e), n = t[0], r = t[1];
97
89
  return (n + r) * 3 / 4 - r;
98
90
  }
99
- function ae(e, t, n) {
91
+ function ie(e, t, n) {
100
92
  return (t + n) * 3 / 4 - n;
101
93
  }
102
- function oe(e) {
103
- for (var t, n = re(e), r = n[0], i = n[1], a = new C(ae(e, r, i)), o = 0, s = i > 0 ? r - 4 : r, c = 0; c < s; c += 4) t = S[e.charCodeAt(c)] << 18 | S[e.charCodeAt(c + 1)] << 12 | S[e.charCodeAt(c + 2)] << 6 | S[e.charCodeAt(c + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
104
- return i === 2 && (t = S[e.charCodeAt(c)] << 2 | S[e.charCodeAt(c + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = S[e.charCodeAt(c)] << 10 | S[e.charCodeAt(c + 1)] << 4 | S[e.charCodeAt(c + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
94
+ function ae(e) {
95
+ for (var t, n = ne(e), r = n[0], i = n[1], a = new w(ie(e, r, i)), o = 0, s = i > 0 ? r - 4 : r, c = 0; c < s; c += 4) t = C[e.charCodeAt(c)] << 18 | C[e.charCodeAt(c + 1)] << 12 | C[e.charCodeAt(c + 2)] << 6 | C[e.charCodeAt(c + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
96
+ return i === 2 && (t = C[e.charCodeAt(c)] << 2 | C[e.charCodeAt(c + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = C[e.charCodeAt(c)] << 10 | C[e.charCodeAt(c + 1)] << 4 | C[e.charCodeAt(c + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
105
97
  }
106
- function se(e) {
107
- return x[e >> 18 & 63] + x[e >> 12 & 63] + x[e >> 6 & 63] + x[e & 63];
98
+ function oe(e) {
99
+ return S[e >> 18 & 63] + S[e >> 12 & 63] + S[e >> 6 & 63] + S[e & 63];
108
100
  }
109
- function ce(e, t, n) {
110
- for (var r, i = [], a = t; a < n; a += 3) r = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(se(r));
101
+ function se(e, t, n) {
102
+ for (var r, i = [], a = t; a < n; a += 3) r = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(oe(r));
111
103
  return i.join("");
112
104
  }
113
- function le(e) {
114
- for (var t, n = e.length, r = n % 3, i = [], a = 16383, o = 0, s = n - r; o < s; o += a) i.push(ce(e, o, o + a > s ? s : o + a));
115
- return r === 1 ? (t = e[n - 1], i.push(x[t >> 2] + x[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(x[t >> 10] + x[t >> 4 & 63] + x[t << 2 & 63] + "=")), i.join("");
105
+ function ce(e) {
106
+ for (var t, n = e.length, r = n % 3, i = [], a = 16383, o = 0, s = n - r; o < s; o += a) i.push(se(e, o, o + a > s ? s : o + a));
107
+ return r === 1 ? (t = e[n - 1], i.push(S[t >> 2] + S[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(S[t >> 10] + S[t >> 4 & 63] + S[t << 2 & 63] + "=")), i.join("");
116
108
  }
117
- var ue = {};
118
- ue.read = function(e, t, n, r, i) {
109
+ var le = {};
110
+ le.read = function(e, t, n, r, i) {
119
111
  var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
120
112
  for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
121
113
  for (o = a & (1 << -u) - 1, a >>= -u, u += r; u > 0; o = o * 256 + e[t + d], d += f, u -= 8);
@@ -123,14 +115,14 @@ ue.read = function(e, t, n, r, i) {
123
115
  else if (a === c) return o ? NaN : (p ? -1 : 1) * Infinity;
124
116
  else o += 2 ** r, a -= l;
125
117
  return (p ? -1 : 1) * o * 2 ** (a - r);
126
- }, ue.write = function(e, t, n, r, i, a) {
118
+ }, le.write = function(e, t, n, r, i, a) {
127
119
  var o, s, c, l = a * 8 - i - 1, u = (1 << l) - 1, d = u >> 1, f = i === 23 ? 2 ** -24 - 2 ** -77 : 0, p = r ? 0 : a - 1, m = r ? 1 : -1, h = +(t < 0 || t === 0 && 1 / t < 0);
128
120
  for (t = Math.abs(t), isNaN(t) || t === Infinity ? (s = +!!isNaN(t), o = u) : (o = Math.floor(Math.log(t) / Math.LN2), t * (c = 2 ** -o) < 1 && (o--, c *= 2), o + d >= 1 ? t += f / c : t += f * 2 ** (1 - d), t * c >= 2 && (o++, c /= 2), o + d >= u ? (s = 0, o = u) : o + d >= 1 ? (s = (t * c - 1) * 2 ** i, o += d) : (s = t * 2 ** (d - 1) * 2 ** i, o = 0)); i >= 8; e[n + p] = s & 255, p += m, s /= 256, i -= 8);
129
121
  for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
130
122
  e[n + p - m] |= h * 128;
131
123
  }, (function(e) {
132
- let t = b, n = ue, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
133
- e.Buffer = u, e.SlowBuffer = y, e.INSPECT_MAX_BYTES = 50;
124
+ let t = x, n = le, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
125
+ e.Buffer = u, e.SlowBuffer = b, e.INSPECT_MAX_BYTES = 50;
134
126
  let i = 2147483647;
135
127
  e.kMaxLength = i;
136
128
  let { Uint8Array: a, ArrayBuffer: o, SharedArrayBuffer: s } = globalThis;
@@ -173,11 +165,11 @@ ue.read = function(e, t, n, r, i) {
173
165
  if (typeof e == "string") return h(e, t);
174
166
  if (o.isView(e)) return _(e);
175
167
  if (e == null) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
176
- if (L(e, o) || e && L(e.buffer, o) || s !== void 0 && (L(e, s) || e && L(e.buffer, s))) return ee(e, t, n);
168
+ if (I(e, o) || e && I(e.buffer, o) || s !== void 0 && (I(e, s) || e && I(e.buffer, s))) return v(e, t, n);
177
169
  if (typeof e == "number") throw TypeError("The \"value\" argument must not be of type number. Received type number");
178
170
  let r = e.valueOf && e.valueOf();
179
171
  if (r != null && r !== e) return u.from(r, t, n);
180
- let i = te(e);
172
+ let i = ee(e);
181
173
  if (i) return i;
182
174
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] == "function") return u.from(e[Symbol.toPrimitive]("string"), t, n);
183
175
  throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
@@ -196,7 +188,7 @@ ue.read = function(e, t, n, r, i) {
196
188
  return p(e, t, n);
197
189
  };
198
190
  function m(e) {
199
- return f(e), l(e < 0 ? 0 : v(e) | 0);
191
+ return f(e), l(e < 0 ? 0 : y(e) | 0);
200
192
  }
201
193
  u.allocUnsafe = function(e) {
202
194
  return m(e);
@@ -205,46 +197,46 @@ ue.read = function(e, t, n, r, i) {
205
197
  };
206
198
  function h(e, t) {
207
199
  if ((typeof t != "string" || t === "") && (t = "utf8"), !u.isEncoding(t)) throw TypeError("Unknown encoding: " + t);
208
- let n = x(e, t) | 0, r = l(n), i = r.write(e, t);
200
+ let n = S(e, t) | 0, r = l(n), i = r.write(e, t);
209
201
  return i !== n && (r = r.slice(0, i)), r;
210
202
  }
211
203
  function g(e) {
212
- let t = e.length < 0 ? 0 : v(e.length) | 0, n = l(t);
204
+ let t = e.length < 0 ? 0 : y(e.length) | 0, n = l(t);
213
205
  for (let r = 0; r < t; r += 1) n[r] = e[r] & 255;
214
206
  return n;
215
207
  }
216
208
  function _(e) {
217
- if (L(e, a)) {
209
+ if (I(e, a)) {
218
210
  let t = new a(e);
219
- return ee(t.buffer, t.byteOffset, t.byteLength);
211
+ return v(t.buffer, t.byteOffset, t.byteLength);
220
212
  }
221
213
  return g(e);
222
214
  }
223
- function ee(e, t, n) {
215
+ function v(e, t, n) {
224
216
  if (t < 0 || e.byteLength < t) throw RangeError("\"offset\" is outside of buffer bounds");
225
217
  if (e.byteLength < t + (n || 0)) throw RangeError("\"length\" is outside of buffer bounds");
226
218
  let r;
227
219
  return r = t === void 0 && n === void 0 ? new a(e) : n === void 0 ? new a(e, t) : new a(e, t, n), Object.setPrototypeOf(r, u.prototype), r;
228
220
  }
229
- function te(e) {
221
+ function ee(e) {
230
222
  if (u.isBuffer(e)) {
231
- let t = v(e.length) | 0, n = l(t);
223
+ let t = y(e.length) | 0, n = l(t);
232
224
  return n.length === 0 || e.copy(n, 0, 0, t), n;
233
225
  }
234
- if (e.length !== void 0) return typeof e.length != "number" || Ee(e.length) ? l(0) : g(e);
226
+ if (e.length !== void 0) return typeof e.length != "number" || De(e.length) ? l(0) : g(e);
235
227
  if (e.type === "Buffer" && Array.isArray(e.data)) return g(e.data);
236
228
  }
237
- function v(e) {
229
+ function y(e) {
238
230
  if (e >= i) throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + i.toString(16) + " bytes");
239
231
  return e | 0;
240
232
  }
241
- function y(e) {
233
+ function b(e) {
242
234
  return +e != e && (e = 0), u.alloc(+e);
243
235
  }
244
236
  u.isBuffer = function(e) {
245
237
  return e != null && e._isBuffer === !0 && e !== u.prototype;
246
238
  }, u.compare = function(e, t) {
247
- if (L(e, a) && (e = u.from(e, e.offset, e.byteLength)), L(t, a) && (t = u.from(t, t.offset, t.byteLength)), !u.isBuffer(e) || !u.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
239
+ if (I(e, a) && (e = u.from(e, e.offset, e.byteLength)), I(t, a) && (t = u.from(t, t.offset, t.byteLength)), !u.isBuffer(e) || !u.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
248
240
  if (e === t) return 0;
249
241
  let n = e.length, r = t.length;
250
242
  for (let i = 0, a = Math.min(n, r); i < a; ++i) if (e[i] !== t[i]) {
@@ -275,16 +267,16 @@ ue.read = function(e, t, n, r, i) {
275
267
  let r = u.allocUnsafe(t), i = 0;
276
268
  for (n = 0; n < e.length; ++n) {
277
269
  let t = e[n];
278
- if (L(t, a)) i + t.length > r.length ? (u.isBuffer(t) || (t = u.from(t)), t.copy(r, i)) : a.prototype.set.call(r, t, i);
270
+ if (I(t, a)) i + t.length > r.length ? (u.isBuffer(t) || (t = u.from(t)), t.copy(r, i)) : a.prototype.set.call(r, t, i);
279
271
  else if (u.isBuffer(t)) t.copy(r, i);
280
272
  else throw TypeError("\"list\" argument must be an Array of Buffers");
281
273
  i += t.length;
282
274
  }
283
275
  return r;
284
276
  };
285
- function x(e, t) {
277
+ function S(e, t) {
286
278
  if (u.isBuffer(e)) return e.length;
287
- if (o.isView(e) || L(e, o)) return e.byteLength;
279
+ if (o.isView(e) || I(e, o)) return e.byteLength;
288
280
  if (typeof e != "string") throw TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type " + typeof e);
289
281
  let n = e.length, r = arguments.length > 2 && arguments[2] === !0;
290
282
  if (!r && n === 0) return 0;
@@ -300,56 +292,56 @@ ue.read = function(e, t, n, r, i) {
300
292
  case "utf16le":
301
293
  case "utf-16le": return n * 2;
302
294
  case "hex": return n >>> 1;
303
- case "base64": return we(e).length;
295
+ case "base64": return Te(e).length;
304
296
  default:
305
297
  if (i) return r ? -1 : Se(e).length;
306
298
  t = ("" + t).toLowerCase(), i = !0;
307
299
  }
308
300
  }
309
- u.byteLength = x;
310
- function S(e, t, n) {
301
+ u.byteLength = S;
302
+ function C(e, t, n) {
311
303
  let r = !1;
312
304
  if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((n === void 0 || n > this.length) && (n = this.length), n <= 0) || (n >>>= 0, t >>>= 0, n <= t)) return "";
313
305
  for (e ||= "utf8";;) switch (e) {
314
- case "hex": return E(this, t, n);
306
+ case "hex": return D(this, t, n);
315
307
  case "utf8":
316
- case "utf-8": return ce(this, t, n);
317
- case "ascii": return fe(this, t, n);
308
+ case "utf-8": return se(this, t, n);
309
+ case "ascii": return de(this, t, n);
318
310
  case "latin1":
319
- case "binary": return pe(this, t, n);
320
- case "base64": return se(this, t, n);
311
+ case "binary": return fe(this, t, n);
312
+ case "base64": return oe(this, t, n);
321
313
  case "ucs2":
322
314
  case "ucs-2":
323
315
  case "utf16le":
324
- case "utf-16le": return me(this, t, n);
316
+ case "utf-16le": return pe(this, t, n);
325
317
  default:
326
318
  if (r) throw TypeError("Unknown encoding: " + e);
327
319
  e = (e + "").toLowerCase(), r = !0;
328
320
  }
329
321
  }
330
322
  u.prototype._isBuffer = !0;
331
- function C(e, t, n) {
323
+ function w(e, t, n) {
332
324
  let r = e[t];
333
325
  e[t] = e[n], e[n] = r;
334
326
  }
335
327
  u.prototype.swap16 = function() {
336
328
  let e = this.length;
337
329
  if (e % 2 != 0) throw RangeError("Buffer size must be a multiple of 16-bits");
338
- for (let t = 0; t < e; t += 2) C(this, t, t + 1);
330
+ for (let t = 0; t < e; t += 2) w(this, t, t + 1);
339
331
  return this;
340
332
  }, u.prototype.swap32 = function() {
341
333
  let e = this.length;
342
334
  if (e % 4 != 0) throw RangeError("Buffer size must be a multiple of 32-bits");
343
- for (let t = 0; t < e; t += 4) C(this, t, t + 3), C(this, t + 1, t + 2);
335
+ for (let t = 0; t < e; t += 4) w(this, t, t + 3), w(this, t + 1, t + 2);
344
336
  return this;
345
337
  }, u.prototype.swap64 = function() {
346
338
  let e = this.length;
347
339
  if (e % 8 != 0) throw RangeError("Buffer size must be a multiple of 64-bits");
348
- for (let t = 0; t < e; t += 8) C(this, t, t + 7), C(this, t + 1, t + 6), C(this, t + 2, t + 5), C(this, t + 3, t + 4);
340
+ for (let t = 0; t < e; t += 8) w(this, t, t + 7), w(this, t + 1, t + 6), w(this, t + 2, t + 5), w(this, t + 3, t + 4);
349
341
  return this;
350
342
  }, u.prototype.toString = function() {
351
343
  let e = this.length;
352
- return e === 0 ? "" : arguments.length === 0 ? ce(this, 0, e) : S.apply(this, arguments);
344
+ return e === 0 ? "" : arguments.length === 0 ? se(this, 0, e) : C.apply(this, arguments);
353
345
  }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(e) {
354
346
  if (!u.isBuffer(e)) throw TypeError("Argument must be a Buffer");
355
347
  return this === e || u.compare(this, e) === 0;
@@ -357,7 +349,7 @@ ue.read = function(e, t, n, r, i) {
357
349
  let t = "", n = e.INSPECT_MAX_BYTES;
358
350
  return t = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (t += " ... "), "<Buffer " + t + ">";
359
351
  }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(e, t, n, r, i) {
360
- if (L(e, a) && (e = u.from(e, e.offset, e.byteLength)), !u.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
352
+ if (I(e, a) && (e = u.from(e, e.offset, e.byteLength)), !u.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
361
353
  if (t === void 0 && (t = 0), n === void 0 && (n = e ? e.length : 0), r === void 0 && (r = 0), i === void 0 && (i = this.length), t < 0 || n > e.length || r < 0 || i > this.length) throw RangeError("out of range index");
362
354
  if (r >= i && t >= n) return 0;
363
355
  if (r >= i) return -1;
@@ -370,20 +362,20 @@ ue.read = function(e, t, n, r, i) {
370
362
  }
371
363
  return o < s ? -1 : +(s < o);
372
364
  };
373
- function w(e, t, n, r, i) {
365
+ function T(e, t, n, r, i) {
374
366
  if (e.length === 0) return -1;
375
- if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, Ee(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
367
+ if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, De(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
376
368
  if (i) return -1;
377
369
  n = e.length - 1;
378
370
  } else if (n < 0) {
379
371
  if (i) n = 0;
380
372
  else return -1;
381
373
  }
382
- if (typeof t == "string" && (t = u.from(t, r)), u.isBuffer(t)) return t.length === 0 ? -1 : T(e, t, n, r, i);
383
- if (typeof t == "number") return t &= 255, typeof a.prototype.indexOf == "function" ? i ? a.prototype.indexOf.call(e, t, n) : a.prototype.lastIndexOf.call(e, t, n) : T(e, [t], n, r, i);
374
+ if (typeof t == "string" && (t = u.from(t, r)), u.isBuffer(t)) return t.length === 0 ? -1 : E(e, t, n, r, i);
375
+ if (typeof t == "number") return t &= 255, typeof a.prototype.indexOf == "function" ? i ? a.prototype.indexOf.call(e, t, n) : a.prototype.lastIndexOf.call(e, t, n) : E(e, [t], n, r, i);
384
376
  throw TypeError("val must be string, number or Buffer");
385
377
  }
386
- function T(e, t, n, r, i) {
378
+ function E(e, t, n, r, i) {
387
379
  let a = 1, o = e.length, s = t.length;
388
380
  if (r !== void 0 && (r = String(r).toLowerCase(), r === "ucs2" || r === "ucs-2" || r === "utf16le" || r === "utf-16le")) {
389
381
  if (e.length < 2 || t.length < 2) return -1;
@@ -411,11 +403,11 @@ ue.read = function(e, t, n, r, i) {
411
403
  u.prototype.includes = function(e, t, n) {
412
404
  return this.indexOf(e, t, n) !== -1;
413
405
  }, u.prototype.indexOf = function(e, t, n) {
414
- return w(this, e, t, n, !0);
406
+ return T(this, e, t, n, !0);
415
407
  }, u.prototype.lastIndexOf = function(e, t, n) {
416
- return w(this, e, t, n, !1);
408
+ return T(this, e, t, n, !1);
417
409
  };
418
- function ne(e, t, n, r) {
410
+ function te(e, t, n, r) {
419
411
  n = Number(n) || 0;
420
412
  let i = e.length - n;
421
413
  r ? (r = Number(r), r > i && (r = i)) : r = i;
@@ -424,22 +416,22 @@ ue.read = function(e, t, n, r, i) {
424
416
  let o = 0;
425
417
  for (; o < r; ++o) {
426
418
  let r = parseInt(t.substr(o * 2, 2), 16);
427
- if (Ee(r)) return o;
419
+ if (De(r)) return o;
428
420
  e[n + o] = r;
429
421
  }
430
422
  return o;
431
423
  }
424
+ function ne(e, t, n, r) {
425
+ return Ee(Se(t, e.length - n), e, n, r);
426
+ }
432
427
  function re(e, t, n, r) {
433
- return Te(Se(t, e.length - n), e, n, r);
428
+ return Ee(Ce(t), e, n, r);
434
429
  }
435
430
  function ie(e, t, n, r) {
436
- return Te(I(t), e, n, r);
431
+ return Ee(Te(t), e, n, r);
437
432
  }
438
433
  function ae(e, t, n, r) {
439
- return Te(we(t), e, n, r);
440
- }
441
- function oe(e, t, n, r) {
442
- return Te(Ce(t, e.length - n), e, n, r);
434
+ return Ee(we(t, e.length - n), e, n, r);
443
435
  }
444
436
  u.prototype.write = function(e, t, n, r) {
445
437
  if (t === void 0) r = "utf8", n = this.length, t = 0;
@@ -451,17 +443,17 @@ ue.read = function(e, t, n, r, i) {
451
443
  r ||= "utf8";
452
444
  let a = !1;
453
445
  for (;;) switch (r) {
454
- case "hex": return ne(this, e, t, n);
446
+ case "hex": return te(this, e, t, n);
455
447
  case "utf8":
456
- case "utf-8": return re(this, e, t, n);
448
+ case "utf-8": return ne(this, e, t, n);
457
449
  case "ascii":
458
450
  case "latin1":
459
- case "binary": return ie(this, e, t, n);
460
- case "base64": return ae(this, e, t, n);
451
+ case "binary": return re(this, e, t, n);
452
+ case "base64": return ie(this, e, t, n);
461
453
  case "ucs2":
462
454
  case "ucs-2":
463
455
  case "utf16le":
464
- case "utf-16le": return oe(this, e, t, n);
456
+ case "utf-16le": return ae(this, e, t, n);
465
457
  default:
466
458
  if (a) throw TypeError("Unknown encoding: " + r);
467
459
  r = ("" + r).toLowerCase(), a = !0;
@@ -472,10 +464,10 @@ ue.read = function(e, t, n, r, i) {
472
464
  data: Array.prototype.slice.call(this._arr || this, 0)
473
465
  };
474
466
  };
475
- function se(e, n, r) {
467
+ function oe(e, n, r) {
476
468
  return n === 0 && r === e.length ? t.fromByteArray(e) : t.fromByteArray(e.slice(n, r));
477
469
  }
478
- function ce(e, t, n) {
470
+ function se(e, t, n) {
479
471
  n = Math.min(e.length, n);
480
472
  let r = [], i = t;
481
473
  for (; i < n;) {
@@ -497,36 +489,36 @@ ue.read = function(e, t, n, r, i) {
497
489
  }
498
490
  a === null ? (a = 65533, o = 1) : a > 65535 && (a -= 65536, r.push(a >>> 10 & 1023 | 55296), a = 56320 | a & 1023), r.push(a), i += o;
499
491
  }
500
- return de(r);
492
+ return ue(r);
501
493
  }
502
- let le = 4096;
503
- function de(e) {
494
+ let ce = 4096;
495
+ function ue(e) {
504
496
  let t = e.length;
505
- if (t <= le) return String.fromCharCode.apply(String, e);
497
+ if (t <= ce) return String.fromCharCode.apply(String, e);
506
498
  let n = "", r = 0;
507
- for (; r < t;) n += String.fromCharCode.apply(String, e.slice(r, r += le));
499
+ for (; r < t;) n += String.fromCharCode.apply(String, e.slice(r, r += ce));
508
500
  return n;
509
501
  }
510
- function fe(e, t, n) {
502
+ function de(e, t, n) {
511
503
  let r = "";
512
504
  n = Math.min(e.length, n);
513
505
  for (let i = t; i < n; ++i) r += String.fromCharCode(e[i] & 127);
514
506
  return r;
515
507
  }
516
- function pe(e, t, n) {
508
+ function fe(e, t, n) {
517
509
  let r = "";
518
510
  n = Math.min(e.length, n);
519
511
  for (let i = t; i < n; ++i) r += String.fromCharCode(e[i]);
520
512
  return r;
521
513
  }
522
- function E(e, t, n) {
514
+ function D(e, t, n) {
523
515
  let r = e.length;
524
516
  (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
525
517
  let i = "";
526
- for (let r = t; r < n; ++r) i += De[e[r]];
518
+ for (let r = t; r < n; ++r) i += Oe[e[r]];
527
519
  return i;
528
520
  }
529
- function me(e, t, n) {
521
+ function pe(e, t, n) {
530
522
  let r = e.slice(t, n), i = "";
531
523
  for (let e = 0; e < r.length - 1; e += 2) i += String.fromCharCode(r[e] + r[e + 1] * 256);
532
524
  return i;
@@ -537,88 +529,88 @@ ue.read = function(e, t, n, r, i) {
537
529
  let r = this.subarray(e, t);
538
530
  return Object.setPrototypeOf(r, u.prototype), r;
539
531
  };
540
- function D(e, t, n) {
532
+ function O(e, t, n) {
541
533
  if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint");
542
534
  if (e + t > n) throw RangeError("Trying to access beyond buffer length");
543
535
  }
544
536
  u.prototype.readUintLE = u.prototype.readUIntLE = function(e, t, n) {
545
- e >>>= 0, t >>>= 0, n || D(e, t, this.length);
537
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
546
538
  let r = this[e], i = 1, a = 0;
547
539
  for (; ++a < t && (i *= 256);) r += this[e + a] * i;
548
540
  return r;
549
541
  }, u.prototype.readUintBE = u.prototype.readUIntBE = function(e, t, n) {
550
- e >>>= 0, t >>>= 0, n || D(e, t, this.length);
542
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
551
543
  let r = this[e + --t], i = 1;
552
544
  for (; t > 0 && (i *= 256);) r += this[e + --t] * i;
553
545
  return r;
554
546
  }, u.prototype.readUint8 = u.prototype.readUInt8 = function(e, t) {
555
- return e >>>= 0, t || D(e, 1, this.length), this[e];
547
+ return e >>>= 0, t || O(e, 1, this.length), this[e];
556
548
  }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(e, t) {
557
- return e >>>= 0, t || D(e, 2, this.length), this[e] | this[e + 1] << 8;
549
+ return e >>>= 0, t || O(e, 2, this.length), this[e] | this[e + 1] << 8;
558
550
  }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(e, t) {
559
- return e >>>= 0, t || D(e, 2, this.length), this[e] << 8 | this[e + 1];
551
+ return e >>>= 0, t || O(e, 2, this.length), this[e] << 8 | this[e + 1];
560
552
  }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(e, t) {
561
- return e >>>= 0, t || D(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
553
+ return e >>>= 0, t || O(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
562
554
  }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(e, t) {
563
- return e >>>= 0, t || D(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
564
- }, u.prototype.readBigUInt64LE = R(function(e) {
555
+ return e >>>= 0, t || O(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
556
+ }, u.prototype.readBigUInt64LE = L(function(e) {
565
557
  e >>>= 0, P(e, "offset");
566
558
  let t = this[e], n = this[e + 7];
567
559
  (t === void 0 || n === void 0) && F(e, this.length - 8);
568
560
  let r = t + this[++e] * 256 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, i = this[++e] + this[++e] * 256 + this[++e] * 2 ** 16 + n * 2 ** 24;
569
561
  return BigInt(r) + (BigInt(i) << BigInt(32));
570
- }), u.prototype.readBigUInt64BE = R(function(e) {
562
+ }), u.prototype.readBigUInt64BE = L(function(e) {
571
563
  e >>>= 0, P(e, "offset");
572
564
  let t = this[e], n = this[e + 7];
573
565
  (t === void 0 || n === void 0) && F(e, this.length - 8);
574
566
  let r = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + this[++e], i = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + n;
575
567
  return (BigInt(r) << BigInt(32)) + BigInt(i);
576
568
  }), u.prototype.readIntLE = function(e, t, n) {
577
- e >>>= 0, t >>>= 0, n || D(e, t, this.length);
569
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
578
570
  let r = this[e], i = 1, a = 0;
579
571
  for (; ++a < t && (i *= 256);) r += this[e + a] * i;
580
572
  return i *= 128, r >= i && (r -= 2 ** (8 * t)), r;
581
573
  }, u.prototype.readIntBE = function(e, t, n) {
582
- e >>>= 0, t >>>= 0, n || D(e, t, this.length);
574
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
583
575
  let r = t, i = 1, a = this[e + --r];
584
576
  for (; r > 0 && (i *= 256);) a += this[e + --r] * i;
585
577
  return i *= 128, a >= i && (a -= 2 ** (8 * t)), a;
586
578
  }, u.prototype.readInt8 = function(e, t) {
587
- return e >>>= 0, t || D(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
579
+ return e >>>= 0, t || O(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
588
580
  }, u.prototype.readInt16LE = function(e, t) {
589
- e >>>= 0, t || D(e, 2, this.length);
581
+ e >>>= 0, t || O(e, 2, this.length);
590
582
  let n = this[e] | this[e + 1] << 8;
591
583
  return n & 32768 ? n | 4294901760 : n;
592
584
  }, u.prototype.readInt16BE = function(e, t) {
593
- e >>>= 0, t || D(e, 2, this.length);
585
+ e >>>= 0, t || O(e, 2, this.length);
594
586
  let n = this[e + 1] | this[e] << 8;
595
587
  return n & 32768 ? n | 4294901760 : n;
596
588
  }, u.prototype.readInt32LE = function(e, t) {
597
- return e >>>= 0, t || D(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
589
+ return e >>>= 0, t || O(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
598
590
  }, u.prototype.readInt32BE = function(e, t) {
599
- return e >>>= 0, t || D(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
600
- }, u.prototype.readBigInt64LE = R(function(e) {
591
+ return e >>>= 0, t || O(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
592
+ }, u.prototype.readBigInt64LE = L(function(e) {
601
593
  e >>>= 0, P(e, "offset");
602
594
  let t = this[e], n = this[e + 7];
603
595
  (t === void 0 || n === void 0) && F(e, this.length - 8);
604
596
  let r = this[e + 4] + this[e + 5] * 256 + this[e + 6] * 2 ** 16 + (n << 24);
605
597
  return (BigInt(r) << BigInt(32)) + BigInt(t + this[++e] * 256 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
606
- }), u.prototype.readBigInt64BE = R(function(e) {
598
+ }), u.prototype.readBigInt64BE = L(function(e) {
607
599
  e >>>= 0, P(e, "offset");
608
600
  let t = this[e], n = this[e + 7];
609
601
  (t === void 0 || n === void 0) && F(e, this.length - 8);
610
602
  let r = (t << 24) + this[++e] * 2 ** 16 + this[++e] * 256 + this[++e];
611
603
  return (BigInt(r) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + n);
612
604
  }), u.prototype.readFloatLE = function(e, t) {
613
- return e >>>= 0, t || D(e, 4, this.length), n.read(this, e, !0, 23, 4);
605
+ return e >>>= 0, t || O(e, 4, this.length), n.read(this, e, !0, 23, 4);
614
606
  }, u.prototype.readFloatBE = function(e, t) {
615
- return e >>>= 0, t || D(e, 4, this.length), n.read(this, e, !1, 23, 4);
607
+ return e >>>= 0, t || O(e, 4, this.length), n.read(this, e, !1, 23, 4);
616
608
  }, u.prototype.readDoubleLE = function(e, t) {
617
- return e >>>= 0, t || D(e, 8, this.length), n.read(this, e, !0, 52, 8);
609
+ return e >>>= 0, t || O(e, 8, this.length), n.read(this, e, !0, 52, 8);
618
610
  }, u.prototype.readDoubleBE = function(e, t) {
619
- return e >>>= 0, t || D(e, 8, this.length), n.read(this, e, !1, 52, 8);
611
+ return e >>>= 0, t || O(e, 8, this.length), n.read(this, e, !1, 52, 8);
620
612
  };
621
- function O(e, t, n, r, i, a) {
613
+ function k(e, t, n, r, i, a) {
622
614
  if (!u.isBuffer(e)) throw TypeError("\"buffer\" argument must be a Buffer instance");
623
615
  if (t > i || t < a) throw RangeError("\"value\" argument is out of bounds");
624
616
  if (n + r > e.length) throw RangeError("Index out of range");
@@ -626,7 +618,7 @@ ue.read = function(e, t, n, r, i) {
626
618
  u.prototype.writeUintLE = u.prototype.writeUIntLE = function(e, t, n, r) {
627
619
  if (e = +e, t >>>= 0, n >>>= 0, !r) {
628
620
  let r = 2 ** (8 * n) - 1;
629
- O(this, e, t, n, r, 0);
621
+ k(this, e, t, n, r, 0);
630
622
  }
631
623
  let i = 1, a = 0;
632
624
  for (this[t] = e & 255; ++a < n && (i *= 256);) this[t + a] = e / i & 255;
@@ -634,44 +626,44 @@ ue.read = function(e, t, n, r, i) {
634
626
  }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(e, t, n, r) {
635
627
  if (e = +e, t >>>= 0, n >>>= 0, !r) {
636
628
  let r = 2 ** (8 * n) - 1;
637
- O(this, e, t, n, r, 0);
629
+ k(this, e, t, n, r, 0);
638
630
  }
639
631
  let i = n - 1, a = 1;
640
632
  for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) this[t + i] = e / a & 255;
641
633
  return t + n;
642
634
  }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(e, t, n) {
643
- return e = +e, t >>>= 0, n || O(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
635
+ return e = +e, t >>>= 0, n || k(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
644
636
  }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(e, t, n) {
645
- return e = +e, t >>>= 0, n || O(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
637
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
646
638
  }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(e, t, n) {
647
- return e = +e, t >>>= 0, n || O(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
639
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
648
640
  }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(e, t, n) {
649
- return e = +e, t >>>= 0, n || O(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
641
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
650
642
  }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(e, t, n) {
651
- return e = +e, t >>>= 0, n || O(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
643
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
652
644
  };
653
- function he(e, t, n, r, i) {
645
+ function me(e, t, n, r, i) {
654
646
  ye(t, r, i, e, n, 7);
655
647
  let a = Number(t & BigInt(4294967295));
656
648
  e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a;
657
649
  let o = Number(t >> BigInt(32) & BigInt(4294967295));
658
650
  return e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, n;
659
651
  }
660
- function k(e, t, n, r, i) {
652
+ function A(e, t, n, r, i) {
661
653
  ye(t, r, i, e, n, 7);
662
654
  let a = Number(t & BigInt(4294967295));
663
655
  e[n + 7] = a, a >>= 8, e[n + 6] = a, a >>= 8, e[n + 5] = a, a >>= 8, e[n + 4] = a;
664
656
  let o = Number(t >> BigInt(32) & BigInt(4294967295));
665
657
  return e[n + 3] = o, o >>= 8, e[n + 2] = o, o >>= 8, e[n + 1] = o, o >>= 8, e[n] = o, n + 8;
666
658
  }
667
- u.prototype.writeBigUInt64LE = R(function(e, t = 0) {
668
- return he(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
669
- }), u.prototype.writeBigUInt64BE = R(function(e, t = 0) {
670
- return k(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
659
+ u.prototype.writeBigUInt64LE = L(function(e, t = 0) {
660
+ return me(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
661
+ }), u.prototype.writeBigUInt64BE = L(function(e, t = 0) {
662
+ return A(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
671
663
  }), u.prototype.writeIntLE = function(e, t, n, r) {
672
664
  if (e = +e, t >>>= 0, !r) {
673
665
  let r = 2 ** (8 * n - 1);
674
- O(this, e, t, n, r - 1, -r);
666
+ k(this, e, t, n, r - 1, -r);
675
667
  }
676
668
  let i = 0, a = 1, o = 0;
677
669
  for (this[t] = e & 255; ++i < n && (a *= 256);) e < 0 && o === 0 && this[t + i - 1] !== 0 && (o = 1), this[t + i] = (e / a | 0) - o & 255;
@@ -679,44 +671,44 @@ ue.read = function(e, t, n, r, i) {
679
671
  }, u.prototype.writeIntBE = function(e, t, n, r) {
680
672
  if (e = +e, t >>>= 0, !r) {
681
673
  let r = 2 ** (8 * n - 1);
682
- O(this, e, t, n, r - 1, -r);
674
+ k(this, e, t, n, r - 1, -r);
683
675
  }
684
676
  let i = n - 1, a = 1, o = 0;
685
677
  for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) e < 0 && o === 0 && this[t + i + 1] !== 0 && (o = 1), this[t + i] = (e / a | 0) - o & 255;
686
678
  return t + n;
687
679
  }, u.prototype.writeInt8 = function(e, t, n) {
688
- return e = +e, t >>>= 0, n || O(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
680
+ return e = +e, t >>>= 0, n || k(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
689
681
  }, u.prototype.writeInt16LE = function(e, t, n) {
690
- return e = +e, t >>>= 0, n || O(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
682
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
691
683
  }, u.prototype.writeInt16BE = function(e, t, n) {
692
- return e = +e, t >>>= 0, n || O(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
684
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
693
685
  }, u.prototype.writeInt32LE = function(e, t, n) {
694
- return e = +e, t >>>= 0, n || O(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
686
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
695
687
  }, u.prototype.writeInt32BE = function(e, t, n) {
696
- return e = +e, t >>>= 0, n || O(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
697
- }, u.prototype.writeBigInt64LE = R(function(e, t = 0) {
698
- return he(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
699
- }), u.prototype.writeBigInt64BE = R(function(e, t = 0) {
700
- return k(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
688
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
689
+ }, u.prototype.writeBigInt64LE = L(function(e, t = 0) {
690
+ return me(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
691
+ }), u.prototype.writeBigInt64BE = L(function(e, t = 0) {
692
+ return A(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
701
693
  });
702
- function ge(e, t, n, r, i, a) {
694
+ function he(e, t, n, r, i, a) {
703
695
  if (n + r > e.length || n < 0) throw RangeError("Index out of range");
704
696
  }
705
- function A(e, t, r, i, a) {
706
- return t = +t, r >>>= 0, a || ge(e, t, r, 4), n.write(e, t, r, i, 23, 4), r + 4;
697
+ function j(e, t, r, i, a) {
698
+ return t = +t, r >>>= 0, a || he(e, t, r, 4), n.write(e, t, r, i, 23, 4), r + 4;
707
699
  }
708
700
  u.prototype.writeFloatLE = function(e, t, n) {
709
- return A(this, e, t, !0, n);
701
+ return j(this, e, t, !0, n);
710
702
  }, u.prototype.writeFloatBE = function(e, t, n) {
711
- return A(this, e, t, !1, n);
703
+ return j(this, e, t, !1, n);
712
704
  };
713
- function j(e, t, r, i, a) {
714
- return t = +t, r >>>= 0, a || ge(e, t, r, 8), n.write(e, t, r, i, 52, 8), r + 8;
705
+ function M(e, t, r, i, a) {
706
+ return t = +t, r >>>= 0, a || he(e, t, r, 8), n.write(e, t, r, i, 52, 8), r + 8;
715
707
  }
716
708
  u.prototype.writeDoubleLE = function(e, t, n) {
717
- return j(this, e, t, !0, n);
709
+ return M(this, e, t, !0, n);
718
710
  }, u.prototype.writeDoubleBE = function(e, t, n) {
719
- return j(this, e, t, !1, n);
711
+ return M(this, e, t, !1, n);
720
712
  }, u.prototype.copy = function(e, t, n, r) {
721
713
  if (!u.isBuffer(e)) throw TypeError("argument should be a Buffer");
722
714
  if (n ||= 0, !r && r !== 0 && (r = this.length), t >= e.length && (t = e.length), t ||= 0, r > 0 && r < n && (r = n), r === n || e.length === 0 || this.length === 0) return 0;
@@ -747,9 +739,9 @@ ue.read = function(e, t, n, r, i) {
747
739
  }
748
740
  return this;
749
741
  };
750
- let M = {};
751
- function N(e, t, n) {
752
- M[e] = class extends n {
742
+ let N = {};
743
+ function ge(e, t, n) {
744
+ N[e] = class extends n {
753
745
  constructor() {
754
746
  super(), Object.defineProperty(this, "message", {
755
747
  value: t.apply(this, arguments),
@@ -773,11 +765,11 @@ ue.read = function(e, t, n, r, i) {
773
765
  }
774
766
  };
775
767
  }
776
- N("ERR_BUFFER_OUT_OF_BOUNDS", function(e) {
768
+ ge("ERR_BUFFER_OUT_OF_BOUNDS", function(e) {
777
769
  return e ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
778
- }, RangeError), N("ERR_INVALID_ARG_TYPE", function(e, t) {
770
+ }, RangeError), ge("ERR_INVALID_ARG_TYPE", function(e, t) {
779
771
  return `The "${e}" argument must be of type number. Received type ${typeof t}`;
780
- }, TypeError), N("ERR_OUT_OF_RANGE", function(e, t, n) {
772
+ }, TypeError), ge("ERR_OUT_OF_RANGE", function(e, t, n) {
781
773
  let r = `The value of "${e}" is out of range.`, i = n;
782
774
  return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? i = _e(String(n)) : typeof n == "bigint" && (i = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (i = _e(i)), i += "n"), r += ` It must be ${t}. Received ${i}`, r;
783
775
  }, RangeError);
@@ -792,15 +784,15 @@ ue.read = function(e, t, n, r, i) {
792
784
  function ye(e, t, n, r, i, a) {
793
785
  if (e > n || e < t) {
794
786
  let r = typeof t == "bigint" ? "n" : "", i;
795
- throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new M.ERR_OUT_OF_RANGE("value", i, e);
787
+ throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new N.ERR_OUT_OF_RANGE("value", i, e);
796
788
  }
797
789
  ve(r, i, a);
798
790
  }
799
791
  function P(e, t) {
800
- if (typeof e != "number") throw new M.ERR_INVALID_ARG_TYPE(t, "number", e);
792
+ if (typeof e != "number") throw new N.ERR_INVALID_ARG_TYPE(t, "number", e);
801
793
  }
802
794
  function F(e, t, n) {
803
- throw Math.floor(e) === e ? t < 0 ? new M.ERR_BUFFER_OUT_OF_BOUNDS() : new M.ERR_OUT_OF_RANGE(n || "offset", `>= ${+!!n} and <= ${t}`, e) : (P(e, n), new M.ERR_OUT_OF_RANGE(n || "offset", "an integer", e));
795
+ throw Math.floor(e) === e ? t < 0 ? new N.ERR_BUFFER_OUT_OF_BOUNDS() : new N.ERR_OUT_OF_RANGE(n || "offset", `>= ${+!!n} and <= ${t}`, e) : (P(e, n), new N.ERR_OUT_OF_RANGE(n || "offset", "an integer", e));
804
796
  }
805
797
  let be = /[^+/0-9A-Za-z-_]/g;
806
798
  function xe(e) {
@@ -843,31 +835,31 @@ ue.read = function(e, t, n, r, i) {
843
835
  }
844
836
  return a;
845
837
  }
846
- function I(e) {
838
+ function Ce(e) {
847
839
  let t = [];
848
840
  for (let n = 0; n < e.length; ++n) t.push(e.charCodeAt(n) & 255);
849
841
  return t;
850
842
  }
851
- function Ce(e, t) {
843
+ function we(e, t) {
852
844
  let n, r, i, a = [];
853
845
  for (let o = 0; o < e.length && !((t -= 2) < 0); ++o) n = e.charCodeAt(o), r = n >> 8, i = n % 256, a.push(i), a.push(r);
854
846
  return a;
855
847
  }
856
- function we(e) {
848
+ function Te(e) {
857
849
  return t.toByteArray(xe(e));
858
850
  }
859
- function Te(e, t, n, r) {
851
+ function Ee(e, t, n, r) {
860
852
  let i = 0;
861
853
  for (; i < r && !(i + n >= t.length || i >= e.length); ++i) t[i + n] = e[i];
862
854
  return i;
863
855
  }
864
- function L(e, t) {
856
+ function I(e, t) {
865
857
  return e instanceof t || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === t.name;
866
858
  }
867
- function Ee(e) {
859
+ function De(e) {
868
860
  return e !== e;
869
861
  }
870
- let De = (function() {
862
+ let Oe = (function() {
871
863
  let e = "0123456789abcdef", t = Array(256);
872
864
  for (let n = 0; n < 16; ++n) {
873
865
  let r = n * 16;
@@ -875,73 +867,72 @@ ue.read = function(e, t, n, r, i) {
875
867
  }
876
868
  return t;
877
869
  })();
878
- function R(e) {
879
- return typeof BigInt > "u" ? Oe : e;
870
+ function L(e) {
871
+ return typeof BigInt > "u" ? ke : e;
880
872
  }
881
- function Oe() {
873
+ function ke() {
882
874
  throw Error("BigInt not supported");
883
875
  }
884
- })(y);
885
- var de = y.Buffer;
886
- y.Blob, y.BlobOptions, y.Buffer, y.File, y.FileOptions, y.INSPECT_MAX_BYTES, y.SlowBuffer, y.TranscodeEncoding, y.atob, y.btoa, y.constants, y.isAscii, y.isUtf8, y.kMaxLength, y.kStringMaxLength, y.resolveObjectURL, y.transcode;
887
- //#endregion
888
- //#region ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/utils.js
889
- function fe(e) {
876
+ })(b);
877
+ var ue = b.Buffer;
878
+ b.Blob, b.BlobOptions, b.Buffer, b.File, b.FileOptions, b.INSPECT_MAX_BYTES, b.SlowBuffer, b.TranscodeEncoding, b.atob, b.btoa, b.constants, b.isAscii, b.isUtf8, b.kMaxLength, b.kStringMaxLength, b.resolveObjectURL, b.transcode;
879
+ // ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/utils.js
880
+ function de(e) {
890
881
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in e && e.BYTES_PER_ELEMENT === 1;
891
882
  }
892
- var pe = (e) => e ? `"${e}" ` : "";
893
- function E(e, t = "") {
894
- if (typeof e != "number") throw TypeError(pe(t) + "expected number, got " + typeof e);
895
- if (!Number.isSafeInteger(e) || e < 0) throw RangeError(pe(t) + "expected integer >= 0, got " + e);
883
+ var fe = (e) => e ? `"${e}" ` : "";
884
+ function D(e, t = "") {
885
+ if (typeof e != "number") throw TypeError(fe(t) + "expected number, got " + typeof e);
886
+ if (!Number.isSafeInteger(e) || e < 0) throw RangeError(fe(t) + "expected integer >= 0, got " + e);
896
887
  return e;
897
888
  }
898
- function me(e, t, n = "") {
899
- if (fe(e) && (t === void 0 || e.length === t)) return e;
900
- t !== void 0 && E(t, "length");
901
- let r = fe(e), i = t === void 0 ? "" : ` of length ${t}`, a = r ? `length=${e.length}` : `type=${typeof e}`, o = pe(n) + "expected Uint8Array" + i + ", got " + a;
889
+ function pe(e, t, n = "") {
890
+ if (de(e) && (t === void 0 || e.length === t)) return e;
891
+ t !== void 0 && D(t, "length");
892
+ let r = de(e), i = t === void 0 ? "" : ` of length ${t}`, a = r ? `length=${e.length}` : `type=${typeof e}`, o = fe(n) + "expected Uint8Array" + i + ", got " + a;
902
893
  throw r ? RangeError(o) : TypeError(o);
903
894
  }
904
- function D(e) {
895
+ function O(e) {
905
896
  if (typeof e != "function" || typeof e.create != "function") throw TypeError("expected hash wrapped by utils.createHasher");
906
- if (E(e.outputLen), E(e.blockLen), e.outputLen < 1 || e.blockLen < 1) throw Error("hash blockLen / outputLen must be >= 1");
897
+ if (D(e.outputLen), D(e.blockLen), e.outputLen < 1 || e.blockLen < 1) throw Error("hash blockLen / outputLen must be >= 1");
907
898
  }
908
- var O = (e, t) => {
899
+ var k = (e, t) => {
909
900
  if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError((t === "object" ? "" : `"${t}" `) + "expected object, got type=" + typeof e);
910
- }, he = (e, t) => {
911
- O(e, t);
901
+ }, me = (e, t) => {
902
+ k(e, t);
912
903
  let n = Object.getPrototypeOf(e);
913
904
  if (n !== Object.prototype && n !== null) throw TypeError(`"${t}" expected plain object`);
914
905
  if (Object.hasOwn(e, "__proto__")) throw TypeError(`"${t}.__proto__" is not allowed`);
915
906
  };
916
- function k(e, t = !0) {
907
+ function A(e, t = !0) {
917
908
  if (e.destroyed) throw Error("hash was destroyed");
918
909
  if (t && e.finished) throw Error("digest() was already called");
919
910
  }
920
- function ge(e, t) {
921
- me(e, void 0, "output");
911
+ function he(e, t) {
912
+ pe(e, void 0, "output");
922
913
  let n = t.outputLen;
923
914
  if (!(e.length >= n)) throw RangeError("\"output\" expected length >= " + n);
924
915
  }
925
- function A(...e) {
916
+ function j(...e) {
926
917
  for (let t = 0; t < e.length; t++) e[t].fill(0);
927
918
  }
928
- function j(e) {
919
+ function M(e) {
929
920
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
930
921
  }
931
- function M(e) {
922
+ function N(e) {
932
923
  if (typeof e != "string") throw TypeError("string expected");
933
924
  let t = new TextEncoder().encode(e);
934
925
  try {
935
926
  return new Uint8Array(t);
936
927
  } finally {
937
- A(t);
928
+ j(t);
938
929
  }
939
930
  }
940
- function N(e, t = "") {
941
- return typeof e == "string" ? M(e) : me(e, void 0, t);
931
+ function ge(e, t = "") {
932
+ return typeof e == "string" ? N(e) : pe(e, void 0, t);
942
933
  }
943
934
  function _e(e, t, n = "opts") {
944
- return he(e, "defaults"), t !== void 0 && he(t, n), Object.assign(Object.create(null), e, t);
935
+ return me(e, "defaults"), t !== void 0 && me(t, n), Object.assign(Object.create(null), e, t);
945
936
  }
946
937
  function ve(e, t = {}) {
947
938
  if (typeof e != "function") throw TypeError("\"hashCons\" expected function, got type=" + typeof e);
@@ -970,20 +961,20 @@ var ye = (e) => ({ oid: Uint8Array.from([
970
961
  finished = !1;
971
962
  destroyed = !1;
972
963
  constructor(e, t) {
973
- if (D(e), me(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("expected Hash instance");
964
+ if (O(e), pe(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("expected Hash instance");
974
965
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
975
966
  let n = this.blockLen, r = new Uint8Array(n);
976
967
  r.set(t.length > n ? e.create().update(t).digest() : t);
977
968
  for (let e = 0; e < r.length; e++) r[e] ^= 54;
978
969
  this.iHash.update(r), this.oHash = e.create();
979
970
  for (let e = 0; e < r.length; e++) r[e] ^= 106;
980
- this.oHash.update(r), A(r);
971
+ this.oHash.update(r), j(r);
981
972
  }
982
973
  update(e) {
983
- return k(this), this.iHash.update(e), this;
974
+ return A(this), this.iHash.update(e), this;
984
975
  }
985
976
  digestInto(e) {
986
- k(this), ge(e, this), this.finished = !0;
977
+ A(this), he(e, this), this.finished = !0;
987
978
  let t = e.subarray(0, this.outputLen);
988
979
  this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
989
980
  }
@@ -1006,20 +997,19 @@ var ye = (e) => ({ oid: Uint8Array.from([
1006
997
  let e = ((e, t, n) => new P(e, t).update(n).digest());
1007
998
  return e.create = (e, t) => new P(e, t), e;
1008
999
  })();
1009
- //#endregion
1010
- //#region ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/pbkdf2.js
1000
+ // ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/pbkdf2.js
1011
1001
  function be(e, t, n, r) {
1012
- D(e);
1002
+ O(e);
1013
1003
  let { c: i, dkLen: a, asyncTick: o } = _e({
1014
1004
  dkLen: 32,
1015
1005
  asyncTick: 10
1016
1006
  }, r);
1017
- if (E(i, "c"), E(a, "dkLen"), E(o, "asyncTick"), i < 1) throw Error("\"c\" (iterations) must be >= 1");
1007
+ if (D(i, "c"), D(a, "dkLen"), D(o, "asyncTick"), i < 1) throw Error("\"c\" (iterations) must be >= 1");
1018
1008
  if (a < 1) throw Error("\"dkLen\" must be >= 1");
1019
1009
  if (a > (2 ** 32 - 1) * e.outputLen) throw Error("derived key too long");
1020
- let s = N(t, "password");
1010
+ let s = ge(t, "password");
1021
1011
  try {
1022
- let t = N(n, "salt");
1012
+ let t = ge(n, "salt");
1023
1013
  try {
1024
1014
  let n = new Uint8Array(a), { iHash: r, oHash: c, outputLen: l } = F.create(e, s);
1025
1015
  return {
@@ -1031,14 +1021,14 @@ function be(e, t, n, r) {
1031
1021
  eng: xe(r, c, t, new Uint8Array(l))
1032
1022
  };
1033
1023
  } finally {
1034
- typeof n == "string" && A(t);
1024
+ typeof n == "string" && j(t);
1035
1025
  }
1036
1026
  } finally {
1037
- typeof t == "string" && A(s);
1027
+ typeof t == "string" && j(s);
1038
1028
  }
1039
1029
  }
1040
1030
  function xe(e, t, n, r) {
1041
- let i = /* @__PURE__ */ new Uint8Array(4), a = j(i), o = e._cloneInto().update(n), s = t._cloneInto(), c = e._cloneInto, l = t._cloneInto;
1031
+ let i = /* @__PURE__ */ new Uint8Array(4), a = M(i), o = e._cloneInto().update(n), s = t._cloneInto(), c = e._cloneInto, l = t._cloneInto;
1042
1032
  return {
1043
1033
  u1: (e, n) => {
1044
1034
  a.setInt32(0, e, !1), o._cloneInto(s).update(i).digestInto(r), t._cloneInto(s).update(r).digestInto(r), n.set(r.subarray(0, n.length));
@@ -1049,7 +1039,7 @@ function xe(e, t, n, r) {
1049
1039
  for (let e = 0; e < i.length; e++) i[e] ^= r[e];
1050
1040
  }
1051
1041
  },
1052
- output: (n) => (e.destroy(), t.destroy(), o.destroy(), s.destroy(), A(r), n)
1042
+ output: (n) => (e.destroy(), t.destroy(), o.destroy(), s.destroy(), j(r), n)
1053
1043
  };
1054
1044
  }
1055
1045
  function Se(e, t, n, r) {
@@ -1060,40 +1050,39 @@ function Se(e, t, n, r) {
1060
1050
  }
1061
1051
  return c.output(o);
1062
1052
  }
1063
- //#endregion
1064
- //#region ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js
1065
- var I = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ce = /* @__PURE__ */ BigInt(32);
1066
- function we(e, t = !1) {
1053
+ // ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js
1054
+ var Ce = /* @__PURE__ */ BigInt(2 ** 32 - 1), we = /* @__PURE__ */ BigInt(32);
1055
+ function Te(e, t = !1) {
1067
1056
  return t ? {
1068
- h: Number(e & I),
1069
- l: Number(e >> Ce & I)
1057
+ h: Number(e & Ce),
1058
+ l: Number(e >> we & Ce)
1070
1059
  } : {
1071
- h: Number(e >> Ce & I) | 0,
1072
- l: Number(e & I) | 0
1060
+ h: Number(e >> we & Ce) | 0,
1061
+ l: Number(e & Ce) | 0
1073
1062
  };
1074
1063
  }
1075
- function Te(e, t = !1) {
1064
+ function Ee(e, t = !1) {
1076
1065
  let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
1077
1066
  for (let a = 0; a < n; a++) {
1078
- let { h: n, l: o } = we(e[a], t);
1067
+ let { h: n, l: o } = Te(e[a], t);
1079
1068
  [r[a], i[a]] = [n, o];
1080
1069
  }
1081
1070
  return [r, i];
1082
1071
  }
1083
- var L = (e) => e / 2 ** 32 | 0, Ee = (e) => e >>> 0;
1084
- function De(e, t, n, r) {
1085
- let i = L(n), a = Ee(n);
1072
+ var I = (e) => e / 2 ** 32 | 0, De = (e) => e >>> 0;
1073
+ function Oe(e, t, n, r) {
1074
+ let i = I(n), a = De(n);
1086
1075
  e.setUint32(t, r ? a : i, r), e.setUint32(t + 4, r ? i : a, r);
1087
1076
  }
1088
- var R = (e, t, n) => e >>> n, Oe = (e, t, n) => e << 32 - n | t >>> n, z = (e, t, n) => e >>> n | t << 32 - n, B = (e, t, n) => e << 32 - n | t >>> n, ke = (e, t, n) => e << 64 - n | t >>> n - 32, Ae = (e, t, n) => e >>> n - 32 | t << 64 - n;
1089
- function V(e, t, n, r) {
1077
+ var L = (e, t, n) => e >>> n, ke = (e, t, n) => e << 32 - n | t >>> n, R = (e, t, n) => e >>> n | t << 32 - n, z = (e, t, n) => e << 32 - n | t >>> n, Ae = (e, t, n) => e << 64 - n | t >>> n - 32, je = (e, t, n) => e >>> n - 32 | t << 64 - n;
1078
+ function B(e, t, n, r) {
1090
1079
  let i = (t >>> 0) + (r >>> 0);
1091
1080
  return {
1092
1081
  h: e + n + (i / 2 ** 32 | 0) | 0,
1093
1082
  l: i | 0
1094
1083
  };
1095
1084
  }
1096
- var je = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Me = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, Ne = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Pe = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Fe = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), Ie = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Le = class {
1085
+ var Me = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Ne = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, Pe = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Fe = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Ie = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), Le = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Re = class {
1097
1086
  blockLen;
1098
1087
  outputLen;
1099
1088
  canXOF = !1;
@@ -1106,15 +1095,15 @@ var je = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Me = (e, t, n, r) => t
1106
1095
  pos = 0;
1107
1096
  destroyed = !1;
1108
1097
  constructor(e, t, n, r) {
1109
- this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = j(this.buffer);
1098
+ this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = M(this.buffer);
1110
1099
  }
1111
1100
  update(e) {
1112
- k(this), me(e);
1101
+ A(this), pe(e);
1113
1102
  let { view: t, buffer: n, blockLen: r } = this, i = e.length, a = !1;
1114
1103
  for (let o = 0; o < i;) {
1115
1104
  let s = Math.min(r - this.pos, i - o);
1116
1105
  if (s === r) {
1117
- let t = j(e);
1106
+ let t = M(e);
1118
1107
  for (; r <= i - o; o += r) this.process(t, o);
1119
1108
  a = !0;
1120
1109
  } else n.set(o === 0 && s === i ? e : e.subarray(o, o + s), this.pos), this.pos += s, o += s, this.pos === r && (this.process(t, 0), this.pos = 0, a = !0);
@@ -1122,10 +1111,10 @@ var je = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Me = (e, t, n, r) => t
1122
1111
  return this.length += e.length, a && this.roundClean(), this;
1123
1112
  }
1124
1113
  digestInto(e) {
1125
- k(this), ge(e, this), this.finished = !0;
1114
+ A(this), he(e, this), this.finished = !0;
1126
1115
  let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
1127
- t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)), De(n, r - 8, this.length * 8, i), this.process(n, 0), this.roundClean();
1128
- let o = e === t ? n : j(e), s = this.outputLen, c = s / 4, l = this.get();
1116
+ t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)), Oe(n, r - 8, this.length * 8, i), this.process(n, 0), this.roundClean();
1117
+ let o = e === t ? n : M(e), s = this.outputLen, c = s / 4, l = this.get();
1129
1118
  if (s % 4 || c > l.length) throw Error("invalid outputLen");
1130
1119
  for (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);
1131
1120
  }
@@ -1142,7 +1131,7 @@ var je = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Me = (e, t, n, r) => t
1142
1131
  clone() {
1143
1132
  return this._cloneInto();
1144
1133
  }
1145
- }, Re = /* @__PURE__ */ Uint32Array.from([
1134
+ }, ze = /* @__PURE__ */ Uint32Array.from([
1146
1135
  1779033703,
1147
1136
  4089235720,
1148
1137
  3144134277,
@@ -1159,7 +1148,7 @@ var je = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Me = (e, t, n, r) => t
1159
1148
  4215389547,
1160
1149
  1541459225,
1161
1150
  327033209
1162
- ]), ze = /* @__PURE__ */ Te((/* @__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))), Be = ze[0], Ve = ze[1], H = /* @__PURE__ */ new Uint32Array(80), U = /* @__PURE__ */ new Uint32Array(80), He = class extends Le {
1151
+ ]), Be = /* @__PURE__ */ Ee((/* @__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))), Ve = Be[0], He = Be[1], V = /* @__PURE__ */ new Uint32Array(80), H = /* @__PURE__ */ new Uint32Array(80), Ue = class extends Re {
1163
1152
  Ah = 0;
1164
1153
  Al = 0;
1165
1154
  Bh = 0;
@@ -1207,35 +1196,35 @@ var je = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Me = (e, t, n, r) => t
1207
1196
  return (e ||= new this.constructor()).set(...this.get()), this._cloneIntoMeta(e);
1208
1197
  }
1209
1198
  process(e, t) {
1210
- for (let n = 0; n < 16; n++, t += 4) H[n] = e.getUint32(t), U[n] = e.getUint32(t += 4);
1199
+ for (let n = 0; n < 16; n++, t += 4) V[n] = e.getUint32(t), H[n] = e.getUint32(t += 4);
1211
1200
  for (let e = 16; e < 80; e++) {
1212
- let t = H[e - 15] | 0, n = U[e - 15] | 0, r = z(t, n, 1) ^ z(t, n, 8) ^ R(t, n, 7), i = B(t, n, 1) ^ B(t, n, 8) ^ Oe(t, n, 7), a = H[e - 2] | 0, o = U[e - 2] | 0, s = z(a, o, 19) ^ ke(a, o, 61) ^ R(a, o, 6), c = Ne(i, B(a, o, 19) ^ Ae(a, o, 61) ^ Oe(a, o, 6), U[e - 7], U[e - 16]), l = Pe(c, r, s, H[e - 7], H[e - 16]);
1213
- H[e] = l | 0, U[e] = c | 0;
1201
+ let t = V[e - 15] | 0, n = H[e - 15] | 0, r = R(t, n, 1) ^ R(t, n, 8) ^ L(t, n, 7), i = z(t, n, 1) ^ z(t, n, 8) ^ ke(t, n, 7), a = V[e - 2] | 0, o = H[e - 2] | 0, s = R(a, o, 19) ^ Ae(a, o, 61) ^ L(a, o, 6), c = Pe(i, z(a, o, 19) ^ je(a, o, 61) ^ ke(a, o, 6), H[e - 7], H[e - 16]), l = Fe(c, r, s, V[e - 7], V[e - 16]);
1202
+ V[e] = l | 0, H[e] = c | 0;
1214
1203
  }
1215
1204
  let { Ah: n, Al: r, Bh: i, Bl: a, Ch: o, Cl: s, Dh: c, Dl: l, Eh: u, El: d, Fh: f, Fl: p, Gh: m, Gl: h, Hh: g, Hl: _ } = this;
1216
1205
  for (let e = 0; e < 80; e++) {
1217
- let t = z(u, d, 14) ^ z(u, d, 18) ^ ke(u, d, 41), ee = B(u, d, 14) ^ B(u, d, 18) ^ Ae(u, d, 41), te = u & f ^ ~u & m, v = d & p ^ ~d & h, y = Fe(_, ee, v, Ve[e], U[e]), b = Ie(y, g, t, te, Be[e], H[e]), x = y | 0, S = z(n, r, 28) ^ ke(n, r, 34) ^ ke(n, r, 39), C = B(n, r, 28) ^ Ae(n, r, 34) ^ Ae(n, r, 39), w = n & i ^ n & o ^ i & o, T = r & a ^ r & s ^ a & s;
1218
- g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = V(c | 0, l | 0, b | 0, x | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
1219
- let ne = je(x, C, T);
1220
- n = Me(ne, b, S, w), r = ne | 0;
1206
+ let t = R(u, d, 14) ^ R(u, d, 18) ^ Ae(u, d, 41), v = z(u, d, 14) ^ z(u, d, 18) ^ je(u, d, 41), ee = u & f ^ ~u & m, y = d & p ^ ~d & h, b = Ie(_, v, y, He[e], H[e]), x = Le(b, g, t, ee, Ve[e], V[e]), S = b | 0, C = R(n, r, 28) ^ Ae(n, r, 34) ^ Ae(n, r, 39), w = z(n, r, 28) ^ je(n, r, 34) ^ je(n, r, 39), T = n & i ^ n & o ^ i & o, E = r & a ^ r & s ^ a & s;
1207
+ g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = B(c | 0, l | 0, x | 0, S | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
1208
+ let te = Me(S, w, E);
1209
+ n = Ne(te, x, C, T), r = te | 0;
1221
1210
  }
1222
- ({h: n, l: r} = V(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = V(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = V(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = V(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = V(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = V(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = V(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = V(this.Hh | 0, this.Hl | 0, g | 0, _ | 0), this.set(n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _);
1211
+ ({h: n, l: r} = B(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = B(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = B(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = B(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = B(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = B(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = B(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = B(this.Hh | 0, this.Hl | 0, g | 0, _ | 0), this.set(n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _);
1223
1212
  }
1224
1213
  roundClean() {
1225
- A(H, U);
1214
+ j(V, H);
1226
1215
  }
1227
1216
  destroy() {
1228
- this.destroyed = !0, A(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1217
+ this.destroyed = !0, j(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1229
1218
  }
1230
- }, Ue = class extends He {
1219
+ }, We = class extends Ue {
1231
1220
  constructor() {
1232
- super(64, Re);
1221
+ super(64, ze);
1233
1222
  }
1234
- }, We = /* @__PURE__ */ ve(() => new Ue(), /* @__PURE__ */ ye(3)), Ge = (e, t, n, r) => de.from(Se(We, e, t, {
1223
+ }, Ge = /* @__PURE__ */ ve(() => new We(), /* @__PURE__ */ ye(3)), Ke = (e, t, n, r) => ue.from(Se(Ge, e, t, {
1235
1224
  c: n,
1236
1225
  dkLen: r
1237
- })), Ke = /* @__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]*$");
1238
- function qe(e, t) {
1226
+ })), qe = /* @__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]*$");
1227
+ function Je(e, t) {
1239
1228
  let n = [], r = t.exec(e);
1240
1229
  for (; r;) {
1241
1230
  let i = [];
@@ -1246,13 +1235,13 @@ function qe(e, t) {
1246
1235
  }
1247
1236
  return n;
1248
1237
  }
1249
- var Je = function(e) {
1250
- return Ke.exec(e) != null;
1238
+ var Ye = function(e) {
1239
+ return qe.exec(e) != null;
1251
1240
  };
1252
- function Ye(e) {
1241
+ function Xe(e) {
1253
1242
  return e !== void 0;
1254
1243
  }
1255
- var Xe = [
1244
+ var Ze = [
1256
1245
  "hasOwnProperty",
1257
1246
  "toString",
1258
1247
  "valueOf",
@@ -1260,24 +1249,24 @@ var Xe = [
1260
1249
  "__defineSetter__",
1261
1250
  "__lookupGetter__",
1262
1251
  "__lookupSetter__"
1263
- ], Ze = [
1252
+ ], Qe = [
1264
1253
  "__proto__",
1265
1254
  "constructor",
1266
1255
  "prototype"
1267
- ], Qe = {
1256
+ ], $e = {
1268
1257
  allowBooleanAttributes: !1,
1269
1258
  unpairedTags: []
1270
1259
  };
1271
- function $e(e, t) {
1272
- t = Object.assign({}, Qe, t);
1260
+ function et(e, t) {
1261
+ t = Object.assign({}, $e, t);
1273
1262
  let n = [], r = !1, i = !1;
1274
1263
  e[0] === "" && (e = e.substr(1));
1275
1264
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
1276
- if (a += 2, a = et(e, a), a.err) return a;
1265
+ if (a += 2, a = tt(e, a), a.err) return a;
1277
1266
  } else if (e[a] === "<") {
1278
1267
  let o = a;
1279
1268
  if (a++, e[a] === "!") {
1280
- a = tt(e, a);
1269
+ a = nt(e, a);
1281
1270
  continue;
1282
1271
  }
1283
1272
  {
@@ -1285,35 +1274,35 @@ function $e(e, t) {
1285
1274
  e[a] === "/" && (s = !0, a++);
1286
1275
  let c = "";
1287
1276
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
1288
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !ut(c)) {
1277
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !dt(c)) {
1289
1278
  let t;
1290
- return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", G("InvalidTag", t, K(e, a));
1279
+ return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", W("InvalidTag", t, G(e, a));
1291
1280
  }
1292
- let l = it(e, a);
1293
- if (l === !1) return G("InvalidAttr", "Attributes for '" + c + "' have open quote.", K(e, a));
1281
+ let l = at(e, a);
1282
+ if (l === !1) return W("InvalidAttr", "Attributes for '" + c + "' have open quote.", G(e, a));
1294
1283
  let u = l.value;
1295
1284
  if (a = l.index, u[u.length - 1] === "/") {
1296
1285
  let n = a - u.length;
1297
1286
  u = u.substring(0, u.length - 1);
1298
- let i = ot(u, t);
1287
+ let i = st(u, t);
1299
1288
  if (i === !0) r = !0;
1300
- else return G(i.err.code, i.err.msg, K(e, n + i.err.line));
1289
+ else return W(i.err.code, i.err.msg, G(e, n + i.err.line));
1301
1290
  } else if (s) {
1302
- if (!l.tagClosed) return G("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", K(e, a));
1303
- if (u.trim().length > 0) return G("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", K(e, o));
1304
- if (n.length === 0) return G("InvalidTag", "Closing tag '" + c + "' has not been opened.", K(e, o));
1291
+ if (!l.tagClosed) return W("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", G(e, a));
1292
+ if (u.trim().length > 0) return W("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", G(e, o));
1293
+ if (n.length === 0) return W("InvalidTag", "Closing tag '" + c + "' has not been opened.", G(e, o));
1305
1294
  {
1306
1295
  let t = n.pop();
1307
1296
  if (c !== t.tagName) {
1308
- let n = K(e, t.tagStartPos);
1309
- return G("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", K(e, o));
1297
+ let n = G(e, t.tagStartPos);
1298
+ return W("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", G(e, o));
1310
1299
  }
1311
1300
  n.length == 0 && (i = !0);
1312
1301
  }
1313
1302
  } else {
1314
- let s = ot(u, t);
1315
- if (s !== !0) return G(s.err.code, s.err.msg, K(e, a - u.length + s.err.line));
1316
- if (i === !0) return G("InvalidXml", "Multiple possible root nodes found.", K(e, a));
1303
+ let s = st(u, t);
1304
+ if (s !== !0) return W(s.err.code, s.err.msg, G(e, a - u.length + s.err.line));
1305
+ if (i === !0) return W("InvalidXml", "Multiple possible root nodes found.", G(e, a));
1317
1306
  t.unpairedTags.indexOf(c) !== -1 || n.push({
1318
1307
  tagName: c,
1319
1308
  tagStartPos: o
@@ -1321,36 +1310,36 @@ function $e(e, t) {
1321
1310
  }
1322
1311
  for (a++; a < e.length; a++) if (e[a] === "<") {
1323
1312
  if (e[a + 1] === "!") {
1324
- a++, a = tt(e, a);
1313
+ a++, a = nt(e, a);
1325
1314
  continue;
1326
1315
  }
1327
1316
  if (e[a + 1] === "?") {
1328
- if (a = et(e, ++a), a.err) return a;
1317
+ if (a = tt(e, ++a), a.err) return a;
1329
1318
  } else break;
1330
1319
  } else if (e[a] === "&") {
1331
- let t = ct(e, a);
1332
- if (t == -1) return G("InvalidChar", "char '&' is not expected.", K(e, a));
1320
+ let t = lt(e, a);
1321
+ if (t == -1) return W("InvalidChar", "char '&' is not expected.", G(e, a));
1333
1322
  a = t;
1334
- } else if (i === !0 && !W(e[a])) return G("InvalidXml", "Extra text at the end", K(e, a));
1323
+ } else if (i === !0 && !U(e[a])) return W("InvalidXml", "Extra text at the end", G(e, a));
1335
1324
  e[a] === "<" && a--;
1336
1325
  }
1337
1326
  } else {
1338
- if (W(e[a])) continue;
1339
- return G("InvalidChar", "char '" + e[a] + "' is not expected.", K(e, a));
1327
+ if (U(e[a])) continue;
1328
+ return W("InvalidChar", "char '" + e[a] + "' is not expected.", G(e, a));
1340
1329
  }
1341
- return r ? n.length == 1 ? G("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", K(e, n[0].tagStartPos)) : n.length > 0 ? G("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
1330
+ return r ? n.length == 1 ? W("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", G(e, n[0].tagStartPos)) : n.length > 0 ? W("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
1342
1331
  line: 1,
1343
1332
  col: 1
1344
- }) : !0 : G("InvalidXml", "Start tag expected.", 1);
1333
+ }) : !0 : W("InvalidXml", "Start tag expected.", 1);
1345
1334
  }
1346
- function W(e) {
1335
+ function U(e) {
1347
1336
  return e === " " || e === " " || e === "\n" || e === "\r";
1348
1337
  }
1349
- function et(e, t) {
1338
+ function tt(e, t) {
1350
1339
  let n = t;
1351
1340
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
1352
1341
  let r = e.substr(n, t - n);
1353
- if (t > 5 && r === "xml") return G("InvalidXml", "XML declaration allowed only at the start of the document.", K(e, t));
1342
+ if (t > 5 && r === "xml") return W("InvalidXml", "XML declaration allowed only at the start of the document.", G(e, t));
1354
1343
  if (e[t] == "?" && e[t + 1] == ">") {
1355
1344
  t++;
1356
1345
  break;
@@ -1359,7 +1348,7 @@ function et(e, t) {
1359
1348
  }
1360
1349
  return t;
1361
1350
  }
1362
- function tt(e, t) {
1351
+ function nt(e, t) {
1363
1352
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
1364
1353
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
1365
1354
  t += 2;
@@ -1377,11 +1366,11 @@ function tt(e, t) {
1377
1366
  }
1378
1367
  return t;
1379
1368
  }
1380
- var nt = "\"", rt = "'";
1381
- function it(e, t) {
1369
+ var rt = "\"", it = "'";
1370
+ function at(e, t) {
1382
1371
  let n = "", r = "", i = !1;
1383
1372
  for (; t < e.length; t++) {
1384
- if (e[t] === nt || e[t] === rt) r === "" ? r = e[t] : r !== e[t] || (r = "");
1373
+ if (e[t] === rt || e[t] === it) r === "" ? r = e[t] : r !== e[t] || (r = "");
1385
1374
  else if (e[t] === ">" && r === "") {
1386
1375
  i = !0;
1387
1376
  break;
@@ -1394,23 +1383,23 @@ function it(e, t) {
1394
1383
  tagClosed: i
1395
1384
  };
1396
1385
  }
1397
- function at(e) {
1386
+ function ot(e) {
1398
1387
  let t = [], n = e.length, r = 0;
1399
1388
  for (; r < n;) {
1400
1389
  let i = r;
1401
- for (; r < n && W(e[r]);) r++;
1390
+ for (; r < n && U(e[r]);) r++;
1402
1391
  if (r >= n) break;
1403
1392
  if (e[r] === "=") {
1404
1393
  r = i + 1;
1405
1394
  continue;
1406
1395
  }
1407
1396
  let a = e.slice(i, r), o = r;
1408
- for (; r < n && !W(e[r]) && e[r] !== "=";) r++;
1397
+ for (; r < n && !U(e[r]) && e[r] !== "=";) r++;
1409
1398
  let s = e.slice(o, r), c, l = r;
1410
- for (; l < n && W(e[l]);) l++;
1399
+ for (; l < n && U(e[l]);) l++;
1411
1400
  l < n && e[l] === "=" && (c = e.slice(r, l + 1), r = l + 1);
1412
1401
  let u, d, f = r;
1413
- for (; f < n && W(e[f]);) f++;
1402
+ for (; f < n && U(e[f]);) f++;
1414
1403
  if (f < n && (e[f] === "\"" || e[f] === "'")) {
1415
1404
  let t = f + 1, n = e.indexOf(e[f], t);
1416
1405
  n !== -1 && (u = e[f], d = e.slice(t, n), r = n + 1);
@@ -1420,20 +1409,20 @@ function at(e) {
1420
1409
  }
1421
1410
  return t;
1422
1411
  }
1423
- function ot(e, t) {
1424
- let n = at(e), r = {};
1412
+ function st(e, t) {
1413
+ let n = ot(e), r = {};
1425
1414
  for (let e = 0; e < n.length; e++) {
1426
- if (n[e][1].length === 0) return G("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", dt(n[e]));
1427
- if (n[e][3] !== void 0 && n[e][4] === void 0) return G("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", dt(n[e]));
1428
- if (n[e][3] === void 0 && !t.allowBooleanAttributes) return G("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", dt(n[e]));
1415
+ if (n[e][1].length === 0) return W("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", ft(n[e]));
1416
+ if (n[e][3] !== void 0 && n[e][4] === void 0) return W("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", ft(n[e]));
1417
+ if (n[e][3] === void 0 && !t.allowBooleanAttributes) return W("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", ft(n[e]));
1429
1418
  let i = n[e][2];
1430
- if (!lt(i)) return G("InvalidAttr", "Attribute '" + i + "' is an invalid name.", dt(n[e]));
1419
+ if (!ut(i)) return W("InvalidAttr", "Attribute '" + i + "' is an invalid name.", ft(n[e]));
1431
1420
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
1432
- else return G("InvalidAttr", "Attribute '" + i + "' is repeated.", dt(n[e]));
1421
+ else return W("InvalidAttr", "Attribute '" + i + "' is repeated.", ft(n[e]));
1433
1422
  }
1434
1423
  return !0;
1435
1424
  }
1436
- function st(e, t) {
1425
+ function ct(e, t) {
1437
1426
  let n = /\d/;
1438
1427
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
1439
1428
  if (e[t] === ";") return t;
@@ -1441,9 +1430,9 @@ function st(e, t) {
1441
1430
  }
1442
1431
  return -1;
1443
1432
  }
1444
- function ct(e, t) {
1433
+ function lt(e, t) {
1445
1434
  if (t++, e[t] === ";") return -1;
1446
- if (e[t] === "#") return t++, st(e, t);
1435
+ if (e[t] === "#") return t++, ct(e, t);
1447
1436
  let n = 0;
1448
1437
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
1449
1438
  if (e[t] === ";") break;
@@ -1451,7 +1440,7 @@ function ct(e, t) {
1451
1440
  }
1452
1441
  return t;
1453
1442
  }
1454
- function G(e, t, n) {
1443
+ function W(e, t, n) {
1455
1444
  return { err: {
1456
1445
  code: e,
1457
1446
  msg: t,
@@ -1459,25 +1448,24 @@ function G(e, t, n) {
1459
1448
  col: n.col
1460
1449
  } };
1461
1450
  }
1462
- function lt(e) {
1463
- return Je(e);
1464
- }
1465
1451
  function ut(e) {
1466
- return Je(e);
1452
+ return Ye(e);
1467
1453
  }
1468
- function K(e, t) {
1454
+ function dt(e) {
1455
+ return Ye(e);
1456
+ }
1457
+ function G(e, t) {
1469
1458
  let n = e.substring(0, t).split(/\r?\n/);
1470
1459
  return {
1471
1460
  line: n.length,
1472
1461
  col: n[n.length - 1].length + 1
1473
1462
  };
1474
1463
  }
1475
- function dt(e) {
1464
+ function ft(e) {
1476
1465
  return e.startIndex + e[1].length;
1477
1466
  }
1478
- //#endregion
1479
- //#region ../../node_modules/.pnpm/@nodable+entities@3.1.0/node_modules/@nodable/entities/src/entities.js
1480
- var ft = {
1467
+ // ../../node_modules/.pnpm/@nodable+entities@3.1.0/node_modules/@nodable/entities/src/entities.js
1468
+ var pt = {
1481
1469
  cent: "¢",
1482
1470
  pound: "£",
1483
1471
  curren: "¤",
@@ -1493,13 +1481,13 @@ var ft = {
1493
1481
  won: "₩",
1494
1482
  yuan: "¥",
1495
1483
  cedil: "¸"
1496
- }, pt = {
1484
+ }, mt = {
1497
1485
  amp: "&",
1498
1486
  apos: "'",
1499
1487
  gt: ">",
1500
1488
  lt: "<",
1501
1489
  quot: "\""
1502
- }, mt = {
1490
+ }, ht = {
1503
1491
  nbsp: "\xA0",
1504
1492
  copy: "©",
1505
1493
  reg: "®",
@@ -1520,17 +1508,17 @@ var ft = {
1520
1508
  frac12: "½",
1521
1509
  frac14: "¼",
1522
1510
  frac34: "¾"
1523
- }, ht = Object.freeze({
1511
+ }, gt = Object.freeze({
1524
1512
  ALLOW: "allow",
1525
1513
  BLOCK: "block",
1526
1514
  THROW: "throw"
1527
- }), gt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1528
- function _t(e) {
1515
+ }), _t = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1516
+ function vt(e) {
1529
1517
  if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
1530
- for (let t of e) if (gt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1518
+ for (let t of e) if (_t.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1531
1519
  return e;
1532
1520
  }
1533
- function vt(...e) {
1521
+ function yt(...e) {
1534
1522
  let t = Object.create(null);
1535
1523
  for (let n of e) if (n) for (let e of Object.keys(n)) {
1536
1524
  let r = n[e];
@@ -1542,65 +1530,65 @@ function vt(...e) {
1542
1530
  }
1543
1531
  return t;
1544
1532
  }
1545
- var q = "external", yt = "base", bt = "all";
1546
- function xt(e) {
1547
- return !e || e === q ? /* @__PURE__ */ new Set([q]) : e === bt ? /* @__PURE__ */ new Set([bt]) : e === yt ? /* @__PURE__ */ new Set([yt]) : Array.isArray(e) ? new Set(e) : /* @__PURE__ */ new Set([q]);
1533
+ var K = "external", bt = "base", xt = "all";
1534
+ function St(e) {
1535
+ return !e || e === K ? /* @__PURE__ */ new Set([K]) : e === xt ? /* @__PURE__ */ new Set([xt]) : e === bt ? /* @__PURE__ */ new Set([bt]) : Array.isArray(e) ? new Set(e) : /* @__PURE__ */ new Set([K]);
1548
1536
  }
1549
- var J = Object.freeze({
1537
+ var q = Object.freeze({
1550
1538
  allow: 0,
1551
1539
  leave: 1,
1552
1540
  remove: 2,
1553
1541
  throw: 3
1554
- }), St = /* @__PURE__ */ new Set([
1542
+ }), Ct = /* @__PURE__ */ new Set([
1555
1543
  9,
1556
1544
  10,
1557
1545
  13
1558
1546
  ]);
1559
- function Ct(e) {
1547
+ function wt(e) {
1560
1548
  if (!e) return {
1561
1549
  xmlVersion: 1,
1562
- onLevel: J.allow,
1563
- nullLevel: J.remove
1550
+ onLevel: q.allow,
1551
+ nullLevel: q.remove
1564
1552
  };
1565
- let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = J[e.onNCR] ?? J.allow, r = J[e.nullNCR] ?? J.remove;
1553
+ let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = q[e.onNCR] ?? q.allow, r = q[e.nullNCR] ?? q.remove;
1566
1554
  return {
1567
1555
  xmlVersion: t,
1568
1556
  onLevel: n,
1569
- nullLevel: Math.max(r, J.remove)
1557
+ nullLevel: Math.max(r, q.remove)
1570
1558
  };
1571
1559
  }
1572
- var wt = class {
1560
+ var Tt = class {
1573
1561
  constructor(e = {}) {
1574
- 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 = xt(this._limit.applyLimitsTo ?? q), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = vt(pt, 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 : []);
1575
- let t = Ct(e.ncr);
1562
+ 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 = St(this._limit.applyLimitsTo ?? K), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = yt(mt, 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 : []);
1563
+ let t = wt(e.ncr);
1576
1564
  this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel, this._onExternalEntity = typeof e.onExternalEntity == "function" ? e.onExternalEntity : null, this._onInputEntity = typeof e.onInputEntity == "function" ? e.onInputEntity : null;
1577
1565
  }
1578
1566
  _applyRegistrationHook(e, t, n, r) {
1579
1567
  if (!e) return !0;
1580
1568
  let i = e(t, n);
1581
- if (i === ht.BLOCK) return !1;
1582
- if (i === ht.THROW) throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);
1569
+ if (i === gt.BLOCK) return !1;
1570
+ if (i === gt.THROW) throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);
1583
1571
  return !0;
1584
1572
  }
1585
1573
  setExternalEntities(e) {
1586
- if (e) for (let t of Object.keys(e)) _t(t);
1574
+ if (e) for (let t of Object.keys(e)) vt(t);
1587
1575
  if (!this._onExternalEntity) {
1588
- this._externalMap = vt(e);
1576
+ this._externalMap = yt(e);
1589
1577
  return;
1590
1578
  }
1591
- let t = vt(e), n = Object.create(null);
1579
+ let t = yt(e), n = Object.create(null);
1592
1580
  for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onExternalEntity, e, r, "external") && (n[e] = r);
1593
1581
  this._externalMap = n;
1594
1582
  }
1595
1583
  addExternalEntity(e, t) {
1596
- _t(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1584
+ vt(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1597
1585
  }
1598
1586
  addInputEntities(e) {
1599
1587
  if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
1600
- this._inputMap = vt(e);
1588
+ this._inputMap = yt(e);
1601
1589
  return;
1602
1590
  }
1603
- let t = vt(e), n = Object.create(null);
1591
+ let t = yt(e), n = Object.create(null);
1604
1592
  for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onInputEntity, e, r, "input") && (n[e] = r);
1605
1593
  this._inputMap = n;
1606
1594
  }
@@ -1630,7 +1618,7 @@ var wt = class {
1630
1618
  continue;
1631
1619
  }
1632
1620
  let u, d;
1633
- if (this._removeSet.has(l)) u = "", d === void 0 && (d = q);
1621
+ if (this._removeSet.has(l)) u = "", d === void 0 && (d = K);
1634
1622
  else if (this._leaveSet.has(l)) {
1635
1623
  a++;
1636
1624
  continue;
@@ -1640,7 +1628,7 @@ var wt = class {
1640
1628
  a++;
1641
1629
  continue;
1642
1630
  }
1643
- u = e, d = yt;
1631
+ u = e, d = bt;
1644
1632
  } else {
1645
1633
  let e = this._resolveName(l);
1646
1634
  u = e?.value, d = e?.tier;
@@ -1659,31 +1647,31 @@ var wt = class {
1659
1647
  return this._postCheck(l, t);
1660
1648
  }
1661
1649
  _tierCounts(e) {
1662
- return this._limitTiers.has(bt) ? !0 : this._limitTiers.has(e);
1650
+ return this._limitTiers.has(xt) ? !0 : this._limitTiers.has(e);
1663
1651
  }
1664
1652
  _resolveName(e) {
1665
1653
  if (e in this._inputMap) return {
1666
1654
  value: this._inputMap[e],
1667
- tier: q
1655
+ tier: K
1668
1656
  };
1669
1657
  if (e in this._externalMap) return {
1670
1658
  value: this._externalMap[e],
1671
- tier: q
1659
+ tier: K
1672
1660
  };
1673
1661
  if (e in this._baseMap) return {
1674
1662
  value: this._baseMap[e],
1675
- tier: yt
1663
+ tier: bt
1676
1664
  };
1677
1665
  }
1678
1666
  _classifyNCR(e) {
1679
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !St.has(e) ? J.remove : -1;
1667
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !Ct.has(e) ? q.remove : -1;
1680
1668
  }
1681
1669
  _applyNCRAction(e, t, n) {
1682
1670
  switch (e) {
1683
- case J.allow: return String.fromCodePoint(n);
1684
- case J.remove: return "";
1685
- case J.leave: return;
1686
- case J.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1671
+ case q.allow: return String.fromCodePoint(n);
1672
+ case q.remove: return "";
1673
+ case q.leave: return;
1674
+ case q.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1687
1675
  default: return String.fromCodePoint(n);
1688
1676
  }
1689
1677
  }
@@ -1691,11 +1679,11 @@ var wt = class {
1691
1679
  let t = e.charCodeAt(1), n;
1692
1680
  if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
1693
1681
  let r = this._classifyNCR(n);
1694
- if (!this._numericAllowed && r < J.remove) return;
1682
+ if (!this._numericAllowed && r < q.remove) return;
1695
1683
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
1696
1684
  return this._applyNCRAction(i, e, n);
1697
1685
  }
1698
- }, Tt = (e) => Xe.includes(e) ? "__" + e : e, Et = {
1686
+ }, Et = (e) => Ze.includes(e) ? "__" + e : e, Dt = {
1699
1687
  preserveOrder: !1,
1700
1688
  attributeNamePrefix: "@_",
1701
1689
  attributesGroupName: !1,
@@ -1738,14 +1726,14 @@ var wt = class {
1738
1726
  maxNestedTags: 100,
1739
1727
  strictReservedNames: !0,
1740
1728
  jPath: !0,
1741
- onDangerousProperty: Tt
1729
+ onDangerousProperty: Et
1742
1730
  };
1743
- function Dt(e, t) {
1731
+ function Ot(e, t) {
1744
1732
  if (typeof e != "string") return;
1745
1733
  let n = e.toLowerCase();
1746
- if (Xe.some((e) => n === e.toLowerCase()) || Ze.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1734
+ if (Ze.some((e) => n === e.toLowerCase()) || Qe.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1747
1735
  }
1748
- function Ot(e, t) {
1736
+ function kt(e, t) {
1749
1737
  return typeof e == "boolean" ? {
1750
1738
  enabled: e,
1751
1739
  maxEntitySize: 1e4,
@@ -1766,10 +1754,10 @@ function Ot(e, t) {
1766
1754
  allowedTags: e.allowedTags ?? null,
1767
1755
  tagFilter: e.tagFilter ?? null,
1768
1756
  appliesTo: e.appliesTo ?? "all"
1769
- } : Ot(!0);
1757
+ } : kt(!0);
1770
1758
  }
1771
- var kt = function(e) {
1772
- let t = Object.assign({}, Et, e), n = [
1759
+ var At = function(e) {
1760
+ let t = Object.assign({}, Dt, e), n = [
1773
1761
  {
1774
1762
  value: t.attributeNamePrefix,
1775
1763
  name: "attributeNamePrefix"
@@ -1791,9 +1779,9 @@ var kt = function(e) {
1791
1779
  name: "commentPropName"
1792
1780
  }
1793
1781
  ];
1794
- for (let { value: e, name: t } of n) e && Dt(e, t);
1795
- return t.onDangerousProperty === null && (t.onDangerousProperty = Tt), t.processEntities = Ot(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;
1796
- }, At = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", Y = class {
1782
+ for (let { value: e, name: t } of n) e && Ot(e, t);
1783
+ return t.onDangerousProperty === null && (t.onDangerousProperty = Et), t.processEntities = kt(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;
1784
+ }, jt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", J = class {
1797
1785
  constructor(e) {
1798
1786
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
1799
1787
  }
@@ -1807,16 +1795,16 @@ var kt = function(e) {
1807
1795
  }) : this.child.push({ [e.tagname]: e.child }), this.addStartIndex(t);
1808
1796
  }
1809
1797
  addStartIndex(e) {
1810
- e !== void 0 && (this.child[this.child.length - 1][At] = { startIndex: e });
1798
+ e !== void 0 && (this.child[this.child.length - 1][jt] = { startIndex: e });
1811
1799
  }
1812
1800
  addEndIndex(e) {
1813
1801
  let t = this.child[this.child.length - 1];
1814
- t !== void 0 && t[At] !== void 0 && t[At].endIndex === void 0 && (t[At].endIndex = e);
1802
+ t !== void 0 && t[jt] !== void 0 && t[jt].endIndex === void 0 && (t[jt].endIndex = e);
1815
1803
  }
1816
1804
  static getMetaDataSymbol() {
1817
- return At;
1805
+ return jt;
1818
1806
  }
1819
- }, jt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Mt = jt + "\\-\\.\\d·̀-ͯ‿-⁀", Nt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Pt = Nt + "\\-\\.\\d·̀-ͯ҇‿-⁀", Ft = (e, t, n = "") => {
1807
+ }, Mt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Nt = Mt + "\\-\\.\\d·̀-ͯ‿-⁀", Pt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ft = Pt + "\\-\\.\\d·̀-ͯ҇‿-⁀", It = (e, t, n = "") => {
1820
1808
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1821
1809
  return {
1822
1810
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1825,15 +1813,15 @@ var kt = function(e) {
1825
1813
  nmToken: RegExp(`^[${t}]+$`, n),
1826
1814
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1827
1815
  };
1828
- }, It = Ft(jt, Mt), Lt = Ft(Nt, Pt, "u"), Rt = Ft(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), zt = (e = "1.0", t = !1) => t ? Rt : e === "1.1" ? Lt : It, Bt = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => zt(t, n).qName.test(e), Vt = [
1816
+ }, Lt = It(Mt, Nt), Rt = It(Pt, Ft, "u"), zt = It(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Bt = (e = "1.0", t = !1) => t ? zt : e === "1.1" ? Rt : Lt, Vt = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Bt(t, n).qName.test(e), Ht = [
1829
1817
  "name",
1830
1818
  "ncName",
1831
1819
  "qName",
1832
1820
  "nmToken",
1833
1821
  "nmTokens"
1834
- ], Ht = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1835
- if (!Vt.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Vt.join(", ")}`);
1836
- let i = zt(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1822
+ ], Ut = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1823
+ if (!Ht.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Ht.join(", ")}`);
1824
+ let i = Bt(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1837
1825
  let t = a.get(e);
1838
1826
  if (t !== void 0) return t;
1839
1827
  let n = i.test(e);
@@ -1842,7 +1830,7 @@ var kt = function(e) {
1842
1830
  return o.reset = () => {
1843
1831
  a = /* @__PURE__ */ new Map();
1844
1832
  }, o;
1845
- }, Ut = class {
1833
+ }, Wt = class {
1846
1834
  constructor(e, t) {
1847
1835
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1848
1836
  }
@@ -1857,23 +1845,23 @@ var kt = function(e) {
1857
1845
  for (; t < e.length; t++) if (s !== null) e[t] === s && (s = null), c += e[t];
1858
1846
  else if (!a && !o && (e[t] === "\"" || e[t] === "'")) s = e[t], c += e[t];
1859
1847
  else if (e[t] === "<" && !o) {
1860
- if (a && Z(e, "!ENTITY", t)) {
1848
+ if (a && X(e, "!ENTITY", t)) {
1861
1849
  t += 7;
1862
1850
  let i, a;
1863
1851
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
1864
1852
  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})`);
1865
1853
  n[i] = a, r++;
1866
1854
  }
1867
- } else if (a && Z(e, "!ELEMENT", t)) {
1855
+ } else if (a && X(e, "!ELEMENT", t)) {
1868
1856
  t += 8;
1869
1857
  let { index: n } = this.readElementExp(e, t + 1);
1870
1858
  t = n;
1871
- } else if (a && Z(e, "!ATTLIST", t)) t += 8;
1872
- else if (a && Z(e, "!NOTATION", t)) {
1859
+ } else if (a && X(e, "!ATTLIST", t)) t += 8;
1860
+ else if (a && X(e, "!NOTATION", t)) {
1873
1861
  t += 9;
1874
1862
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
1875
1863
  t = n;
1876
- } else if (Z(e, "!--", t)) o = !0;
1864
+ } else if (X(e, "!--", t)) o = !0;
1877
1865
  else throw Error("Invalid DOCTYPE");
1878
1866
  i++, c = "";
1879
1867
  } else if (e[t] === ">") {
@@ -1887,11 +1875,11 @@ var kt = function(e) {
1887
1875
  };
1888
1876
  }
1889
1877
  readEntityExp(e, t) {
1890
- t = X(e, t);
1878
+ t = Y(e, t);
1891
1879
  let n = t;
1892
1880
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
1893
1881
  let r = e.substring(n, t);
1894
- if (Wt(r, { xmlVersion: this.xmlVersion }), t = X(e, t), !this.suppressValidationErr) {
1882
+ if (Gt(r, { xmlVersion: this.xmlVersion }), t = Y(e, t), !this.suppressValidationErr) {
1895
1883
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
1896
1884
  if (e[t] === "%") throw Error("Parameter entities are not supported");
1897
1885
  }
@@ -1904,16 +1892,16 @@ var kt = function(e) {
1904
1892
  ];
1905
1893
  }
1906
1894
  readNotationExp(e, t) {
1907
- t = X(e, t);
1895
+ t = Y(e, t);
1908
1896
  let n = t;
1909
1897
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1910
1898
  let r = e.substring(n, t);
1911
- !this.suppressValidationErr && Wt(r, { xmlVersion: this.xmlVersion }), t = X(e, t);
1899
+ !this.suppressValidationErr && Gt(r, { xmlVersion: this.xmlVersion }), t = Y(e, t);
1912
1900
  let i = e.substring(t, t + 6).toUpperCase();
1913
1901
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
1914
- t += i.length, t = X(e, t);
1902
+ t += i.length, t = Y(e, t);
1915
1903
  let a = null, o = null;
1916
- if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = X(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1904
+ if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = Y(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1917
1905
  else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
1918
1906
  return {
1919
1907
  notationName: r,
@@ -1932,15 +1920,15 @@ var kt = function(e) {
1932
1920
  return t++, [t, r];
1933
1921
  }
1934
1922
  readElementExp(e, t) {
1935
- t = X(e, t);
1923
+ t = Y(e, t);
1936
1924
  let n = t;
1937
1925
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1938
1926
  let r = e.substring(n, t);
1939
- if (!this.suppressValidationErr && !Bt(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1940
- t = X(e, t);
1927
+ if (!this.suppressValidationErr && !Vt(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1928
+ t = Y(e, t);
1941
1929
  let i = "";
1942
- if (e[t] === "E" && Z(e, "MPTY", t)) t += 4;
1943
- else if (e[t] === "A" && Z(e, "NY", t)) t += 2;
1930
+ if (e[t] === "E" && X(e, "MPTY", t)) t += 4;
1931
+ else if (e[t] === "A" && X(e, "NY", t)) t += 2;
1944
1932
  else if (e[t] === "(") {
1945
1933
  t++;
1946
1934
  let n = t;
@@ -1954,25 +1942,25 @@ var kt = function(e) {
1954
1942
  };
1955
1943
  }
1956
1944
  readAttlistExp(e, t) {
1957
- t = X(e, t);
1945
+ t = Y(e, t);
1958
1946
  let n = t;
1959
1947
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1960
1948
  let r = e.substring(n, t);
1961
- for (Wt(r, { xmlVersion: this.xmlVersion }), t = X(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1949
+ for (Gt(r, { xmlVersion: this.xmlVersion }), t = Y(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1962
1950
  let i = e.substring(n, t);
1963
- if (!Wt(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1964
- t = X(e, t);
1951
+ if (!Gt(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1952
+ t = Y(e, t);
1965
1953
  let a = "";
1966
1954
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
1967
- if (a = "NOTATION", t += 8, t = X(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1955
+ if (a = "NOTATION", t += 8, t = Y(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1968
1956
  t++;
1969
1957
  let n = [];
1970
1958
  for (; t < e.length && e[t] !== ")";) {
1971
1959
  let r = t;
1972
1960
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
1973
1961
  let i = e.substring(r, t);
1974
- if (i = i.trim(), !Wt(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1975
- n.push(i), e[t] === "|" && (t++, t = X(e, t));
1962
+ if (i = i.trim(), !Gt(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1963
+ n.push(i), e[t] === "|" && (t++, t = Y(e, t));
1976
1964
  }
1977
1965
  if (e[t] !== ")") throw Error("Unterminated list of notations");
1978
1966
  t++, a += " (" + n.join("|") + ")";
@@ -1990,7 +1978,7 @@ var kt = function(e) {
1990
1978
  "NMTOKENS"
1991
1979
  ].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
1992
1980
  }
1993
- t = X(e, t);
1981
+ t = Y(e, t);
1994
1982
  let o = "";
1995
1983
  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"), {
1996
1984
  elementName: r,
@@ -2000,21 +1988,20 @@ var kt = function(e) {
2000
1988
  index: t
2001
1989
  };
2002
1990
  }
2003
- }, X = (e, t) => {
1991
+ }, Y = (e, t) => {
2004
1992
  for (; t < e.length && /\s/.test(e[t]);) t++;
2005
1993
  return t;
2006
1994
  };
2007
- function Z(e, t, n) {
1995
+ function X(e, t, n) {
2008
1996
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
2009
1997
  return !0;
2010
1998
  }
2011
- function Wt(e, t) {
2012
- if (Bt(e, { xmlVersion: t })) return e;
1999
+ function Gt(e, t) {
2000
+ if (Vt(e, { xmlVersion: t })) return e;
2013
2001
  throw Error(`Invalid entity name ${e}`);
2014
2002
  }
2015
- //#endregion
2016
- //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
2017
- var Gt = [
2003
+ // ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
2004
+ var Kt = [
2018
2005
  48,
2019
2006
  1632,
2020
2007
  1776,
@@ -2076,28 +2063,27 @@ var Gt = [
2076
2063
  124144,
2077
2064
  125264,
2078
2065
  130032
2079
- ], Kt = /* @__PURE__ */ new Map(), qt = 65535, Jt = 1632, Yt = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
2080
- for (let e of Gt) for (let t = 0; t < 10; t++) {
2066
+ ], qt = /* @__PURE__ */ new Map(), Jt = 65535, Yt = 1632, Xt = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
2067
+ for (let e of Kt) for (let t = 0; t < 10; t++) {
2081
2068
  let n = e + t;
2082
- n <= qt ? Yt[n - Jt] = t : Kt.set(n, t);
2069
+ n <= Jt ? Xt[n - Yt] = t : qt.set(n, t);
2083
2070
  }
2084
- //#endregion
2085
- //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
2086
- var Xt = 48, Zt = 57, Qt = 45, $t = /* @__PURE__ */ new Set([
2071
+ // ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
2072
+ var Zt = 48, Qt = 57, $t = 45, en = /* @__PURE__ */ new Set([
2087
2073
  8722,
2088
2074
  65293,
2089
2075
  65123
2090
2076
  ]);
2091
- function en(e) {
2077
+ function tn(e) {
2092
2078
  if (typeof e != "string") return e;
2093
2079
  let t = e.length;
2094
2080
  if (t === 0) return e;
2095
2081
  let n = -1;
2096
2082
  for (let r = 0; r < t; r++) {
2097
2083
  let i = e.charCodeAt(r);
2098
- if (!(i >= Xt && i <= Zt || i === Qt)) {
2084
+ if (!(i >= Zt && i <= Qt || i === $t)) {
2099
2085
  if (i < 1632) {
2100
- if ($t.has(i)) {
2086
+ if (en.has(i)) {
2101
2087
  n = r;
2102
2088
  break;
2103
2089
  }
@@ -2106,13 +2092,13 @@ function en(e) {
2106
2092
  let t = e.charCodeAt(r + 1);
2107
2093
  if (t >= 56320 && t <= 57343) {
2108
2094
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
2109
- if (Kt.has(e)) {
2095
+ if (qt.has(e)) {
2110
2096
  n = r;
2111
2097
  break;
2112
2098
  }
2113
2099
  }
2114
2100
  }
2115
- } else if (Yt[i - 1632] !== 255 || $t.has(i)) {
2101
+ } else if (Xt[i - 1632] !== 255 || en.has(i)) {
2116
2102
  n = r;
2117
2103
  break;
2118
2104
  }
@@ -2123,19 +2109,19 @@ function en(e) {
2123
2109
  n > 0 && r.push(e.slice(0, n));
2124
2110
  for (let i = n; i < t; i++) {
2125
2111
  let n = e.charCodeAt(i);
2126
- if (n >= Xt && n <= Zt || n === Qt) {
2112
+ if (n >= Zt && n <= Qt || n === $t) {
2127
2113
  r.push(e[i]);
2128
2114
  continue;
2129
2115
  }
2130
2116
  if (n < 1632) {
2131
- r.push($t.has(n) ? "-" : e[i]);
2117
+ r.push(en.has(n) ? "-" : e[i]);
2132
2118
  continue;
2133
2119
  }
2134
2120
  if (n >= 55296 && n <= 56319) {
2135
2121
  if (i + 1 < t) {
2136
2122
  let t = e.charCodeAt(i + 1);
2137
2123
  if (t >= 56320 && t <= 57343) {
2138
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = Kt.get(e);
2124
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = qt.get(e);
2139
2125
  if (a !== void 0) {
2140
2126
  r.push(String.fromCharCode(a + 48)), i++;
2141
2127
  continue;
@@ -2145,18 +2131,17 @@ function en(e) {
2145
2131
  r.push(e[i]);
2146
2132
  continue;
2147
2133
  }
2148
- if ($t.has(n)) {
2134
+ if (en.has(n)) {
2149
2135
  r.push("-");
2150
2136
  continue;
2151
2137
  }
2152
- let a = Yt[n - Jt];
2138
+ let a = Xt[n - Yt];
2153
2139
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
2154
2140
  }
2155
2141
  return r.join("");
2156
2142
  }
2157
- //#endregion
2158
- //#region ../../node_modules/.pnpm/strnum@2.4.2/node_modules/strnum/strnum.js
2159
- var tn = /^[-+]?0x[a-fA-F0-9]+$/, nn = /^0b[01]+$/, rn = /^0o[0-7]+$/, an = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, on = {
2143
+ // ../../node_modules/.pnpm/strnum@2.5.1/node_modules/strnum/strnum.js
2144
+ var nn = /^[-+]?0x[a-fA-F0-9]+$/, rn = /^0b[01]+$/, an = /^0o[0-7]+$/, on = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, sn = {
2160
2145
  hex: !0,
2161
2146
  binary: !1,
2162
2147
  octal: !1,
@@ -2166,20 +2151,23 @@ var tn = /^[-+]?0x[a-fA-F0-9]+$/, nn = /^0b[01]+$/, rn = /^0o[0-7]+$/, an = /^([
2166
2151
  infinity: "original",
2167
2152
  unicode: !1
2168
2153
  };
2169
- function sn(e, t = {}) {
2170
- if (t = Object.assign({}, on, t), !e || typeof e != "string") return e;
2154
+ function cn(e, t = {}) {
2155
+ if (t = Object.assign({}, sn, t), !e || typeof e != "string") return e;
2171
2156
  let n = e.trim();
2172
2157
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2173
- if (n === "0" || t.unicode && (n = en(n), n === "0")) return 0;
2174
- if (t.hex && tn.test(n)) return dn(n, 16);
2175
- if (t.binary && nn.test(n)) return dn(n, 2);
2176
- if (t.octal && rn.test(n)) return dn(n, 8);
2177
- if (!isFinite(n)) return fn(e, Number(n), t);
2178
- if (n.includes("e") || n.includes("E")) return ln(e, n, t);
2179
- {
2180
- let r = an.exec(n);
2158
+ if (n === "0" || t.unicode && (n = tn(n), n === "0")) return 0;
2159
+ if (t.hex && nn.test(n)) return fn(n, 16);
2160
+ if (t.binary && rn.test(n)) return fn(n, 2);
2161
+ if (t.octal && an.test(n)) return fn(n, 8);
2162
+ if (!isFinite(n)) {
2163
+ let r = Number(n);
2164
+ return Number.isNaN(r) ? e : pn(e, r, t);
2165
+ }
2166
+ if (n.includes("e") || n.includes("E")) return un(e, n, t);
2167
+ {
2168
+ let r = on.exec(n);
2181
2169
  if (r) {
2182
- let i = r[1] || "", a = r[2], o = un(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2170
+ let i = r[1] || "", a = r[2], o = dn(r[3]), s = i ? n[a.length + 1] === "." : n[a.length] === ".";
2183
2171
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
2184
2172
  {
2185
2173
  let r = Number(n), s = String(r);
@@ -2193,17 +2181,17 @@ function sn(e, t = {}) {
2193
2181
  return e;
2194
2182
  }
2195
2183
  }
2196
- var cn = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2197
- function ln(e, t, n) {
2184
+ var ln = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2185
+ function un(e, t, n) {
2198
2186
  if (!n.eNotation) return e;
2199
- let r = t.match(cn);
2187
+ let r = t.match(ln);
2200
2188
  if (r) {
2201
- 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;
2202
- 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);
2189
+ let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? t[o.length + 1] === a : t[o.length] === a;
2190
+ 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 ? Number(t) : e : Number(t);
2203
2191
  }
2204
2192
  return e;
2205
2193
  }
2206
- function un(e) {
2194
+ function dn(e) {
2207
2195
  if (e && e.indexOf(".") !== -1) {
2208
2196
  let t = e.length;
2209
2197
  for (; t > 0 && e.charCodeAt(t - 1) === 48;) t--;
@@ -2211,14 +2199,14 @@ function un(e) {
2211
2199
  }
2212
2200
  return e;
2213
2201
  }
2214
- function dn(e, t) {
2202
+ function fn(e, t) {
2215
2203
  let n = e.trim();
2216
2204
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2217
2205
  if (Number.parseInt) return Number.parseInt(e, t);
2218
2206
  if (window && window.parseInt) return window.parseInt(e, t);
2219
2207
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2220
2208
  }
2221
- function fn(e, t, n) {
2209
+ function pn(e, t, n) {
2222
2210
  let r = t === Infinity;
2223
2211
  switch (n.infinity.toLowerCase()) {
2224
2212
  case "null": return null;
@@ -2227,16 +2215,14 @@ function fn(e, t, n) {
2227
2215
  default: return e;
2228
2216
  }
2229
2217
  }
2230
- //#endregion
2231
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/ignoreAttributes.js
2232
- function pn(e) {
2218
+ // ../../node_modules/.pnpm/fast-xml-parser@5.12.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2219
+ function mn(e) {
2233
2220
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2234
2221
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2235
2222
  } : () => !1;
2236
2223
  }
2237
- //#endregion
2238
- //#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
2239
- var mn = class {
2224
+ // ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
2225
+ var hn = class {
2240
2226
  constructor(e, t = {}, n) {
2241
2227
  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);
2242
2228
  }
@@ -2294,7 +2280,7 @@ var mn = class {
2294
2280
  toString() {
2295
2281
  return this.pattern;
2296
2282
  }
2297
- }, hn = class {
2283
+ }, gn = class {
2298
2284
  constructor() {
2299
2285
  this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._deepByTerminalTag = /* @__PURE__ */ new Map(), this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
2300
2286
  }
@@ -2352,7 +2338,7 @@ var mn = class {
2352
2338
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2353
2339
  return null;
2354
2340
  }
2355
- }, gn = class {
2341
+ }, _n = class {
2356
2342
  constructor(e) {
2357
2343
  this._matcher = e;
2358
2344
  }
@@ -2409,9 +2395,9 @@ var mn = class {
2409
2395
  matchesAny(e) {
2410
2396
  return e.matchesAny(this._matcher);
2411
2397
  }
2412
- }, _n = class {
2398
+ }, vn = class {
2413
2399
  constructor(e = {}) {
2414
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new gn(this), this._keptAttrs = [];
2400
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new _n(this), this._keptAttrs = [];
2415
2401
  }
2416
2402
  push(e, t = null, n = null, r = null) {
2417
2403
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2562,7 +2548,7 @@ var mn = class {
2562
2548
  readOnly() {
2563
2549
  return this._view;
2564
2550
  }
2565
- }, vn = [
2551
+ }, yn = [
2566
2552
  {
2567
2553
  id: "html-script-open",
2568
2554
  description: "<script opening tag",
@@ -2648,7 +2634,7 @@ var mn = class {
2648
2634
  description: "<form tag — can be used for phishing / credential harvesting injection",
2649
2635
  pattern: /<form[\s>/]/i
2650
2636
  }
2651
- ], yn = [
2637
+ ], bn = [
2652
2638
  {
2653
2639
  id: "xml-cdata-injection",
2654
2640
  description: "CDATA section injection: <![CDATA[ breaks out of text node context",
@@ -2692,7 +2678,7 @@ var mn = class {
2692
2678
  {
2693
2679
  id: "xml-namespace-confusion",
2694
2680
  description: "xmlns: attribute injection — can redefine namespaces to confuse parsers",
2695
- pattern: /\bxmlns\s*(?::\w{1,40})?\s*=/i
2681
+ pattern: /\bxmlns(?::\w{1,40})?\s*=/i
2696
2682
  },
2697
2683
  {
2698
2684
  id: "xml-comment-injection",
@@ -2709,7 +2695,7 @@ var mn = class {
2709
2695
  description: "?> closes an enclosing processing instruction",
2710
2696
  pattern: /\?>/
2711
2697
  }
2712
- ], bn = [
2698
+ ], xn = [
2713
2699
  {
2714
2700
  id: "svg-script-element",
2715
2701
  description: "<script element inside SVG executes JavaScript",
@@ -2775,7 +2761,7 @@ var mn = class {
2775
2761
  description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
2776
2762
  pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
2777
2763
  }
2778
- ], xn = [
2764
+ ], Sn = [
2779
2765
  {
2780
2766
  id: "sql-block-comment-open",
2781
2767
  description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
@@ -2851,7 +2837,7 @@ var mn = class {
2851
2837
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
2852
2838
  pattern: /\bINFORMATION_SCHEMA\b/i
2853
2839
  }
2854
- ], Sn = [
2840
+ ], Cn = [
2855
2841
  {
2856
2842
  id: "shell-path-traversal-unix",
2857
2843
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -2942,7 +2928,7 @@ var mn = class {
2942
2928
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
2943
2929
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
2944
2930
  }
2945
- ], Cn = [
2931
+ ], wn = [
2946
2932
  {
2947
2933
  id: "redos-nested-quantifier-plus",
2948
2934
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -2983,71 +2969,71 @@ var mn = class {
2983
2969
  description: "Long alternation with many similar branches — polynomial backtracking risk",
2984
2970
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
2985
2971
  }
2986
- ], Q = "[\"'\\s]*:", wn = [
2972
+ ], Z = "[\"'\\s]*:", Tn = [
2987
2973
  {
2988
2974
  id: "nosql-where-operator",
2989
2975
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
2990
- pattern: RegExp(`\\$where${Q}`, "i")
2976
+ pattern: RegExp(`\\$where${Z}`, "i")
2991
2977
  },
2992
2978
  {
2993
2979
  id: "nosql-ne-operator",
2994
2980
  description: "$ne — \"not equal\" operator used to bypass equality checks",
2995
- pattern: RegExp(`\\$ne${Q}`, "i")
2981
+ pattern: RegExp(`\\$ne${Z}`, "i")
2996
2982
  },
2997
2983
  {
2998
2984
  id: "nosql-gt-operator",
2999
2985
  description: "$gt — \"greater than\" used to bypass password/value checks",
3000
- pattern: RegExp(`\\$gte?${Q}`, "i")
2986
+ pattern: RegExp(`\\$gte?${Z}`, "i")
3001
2987
  },
3002
2988
  {
3003
2989
  id: "nosql-lt-operator",
3004
2990
  description: "$lt / $lte — \"less than\" bypass variants",
3005
- pattern: RegExp(`\\$lte?${Q}`, "i")
2991
+ pattern: RegExp(`\\$lte?${Z}`, "i")
3006
2992
  },
3007
2993
  {
3008
2994
  id: "nosql-regex-operator",
3009
2995
  description: "$regex — can be used to extract data character by character (blind injection)",
3010
- pattern: RegExp(`\\$regex${Q}`, "i")
2996
+ pattern: RegExp(`\\$regex${Z}`, "i")
3011
2997
  },
3012
2998
  {
3013
2999
  id: "nosql-or-operator",
3014
3000
  description: "$or — logical OR; used to create always-true conditions",
3015
- pattern: RegExp(`\\$or${Q}\\s*\\[`, "i")
3001
+ pattern: RegExp(`\\$or${Z}\\s*\\[`, "i")
3016
3002
  },
3017
3003
  {
3018
3004
  id: "nosql-and-operator",
3019
3005
  description: "$and — logical AND operator injection",
3020
- pattern: RegExp(`\\$and${Q}\\s*\\[`, "i")
3006
+ pattern: RegExp(`\\$and${Z}\\s*\\[`, "i")
3021
3007
  },
3022
3008
  {
3023
3009
  id: "nosql-nor-operator",
3024
3010
  description: "$nor — logical NOR operator injection",
3025
- pattern: RegExp(`\\$nor${Q}\\s*\\[`, "i")
3011
+ pattern: RegExp(`\\$nor${Z}\\s*\\[`, "i")
3026
3012
  },
3027
3013
  {
3028
3014
  id: "nosql-exists-operator",
3029
3015
  description: "$exists — can enumerate fields to determine schema",
3030
- pattern: RegExp(`\\$exists${Q}`, "i")
3016
+ pattern: RegExp(`\\$exists${Z}`, "i")
3031
3017
  },
3032
3018
  {
3033
3019
  id: "nosql-in-operator",
3034
3020
  description: "$in — matches any value in a list; can enumerate values",
3035
- pattern: RegExp(`\\$in${Q}\\s*\\[`, "i")
3021
+ pattern: RegExp(`\\$in${Z}\\s*\\[`, "i")
3036
3022
  },
3037
3023
  {
3038
3024
  id: "nosql-expr-operator",
3039
3025
  description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
3040
- pattern: RegExp(`\\$expr${Q}`, "i")
3026
+ pattern: RegExp(`\\$expr${Z}`, "i")
3041
3027
  },
3042
3028
  {
3043
3029
  id: "nosql-function-operator",
3044
3030
  description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
3045
- pattern: RegExp(`\\$function${Q}`, "i")
3031
+ pattern: RegExp(`\\$function${Z}`, "i")
3046
3032
  },
3047
3033
  {
3048
3034
  id: "nosql-accumulator-operator",
3049
3035
  description: "$accumulator — custom aggregation with arbitrary JS execution",
3050
- pattern: RegExp(`\\$accumulator${Q}`, "i")
3036
+ pattern: RegExp(`\\$accumulator${Z}`, "i")
3051
3037
  },
3052
3038
  {
3053
3039
  id: "nosql-proto-pollution",
@@ -3064,7 +3050,7 @@ var mn = class {
3064
3050
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
3065
3051
  pattern: /\[["']__proto__["']\]/
3066
3052
  }
3067
- ], Tn = [
3053
+ ], En = [
3068
3054
  {
3069
3055
  id: "log-crlf-injection",
3070
3056
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -3125,7 +3111,7 @@ var mn = class {
3125
3111
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
3126
3112
  pattern: /\x1b\[/
3127
3113
  }
3128
- ], En = [
3114
+ ], Dn = [
3129
3115
  {
3130
3116
  id: "sql-line-comment",
3131
3117
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -3141,22 +3127,33 @@ var mn = class {
3141
3127
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
3142
3128
  pattern: /\b0x[0-9a-f]{4,}/i
3143
3129
  }
3144
- ], Dn = [...xn, ...En];
3145
- vn.label = "HTML", yn.label = "XML", bn.label = "SVG", xn.label = "SQL", Dn.label = "SQL-STRICT", Sn.label = "SHELL", Cn.label = "REDOS", wn.label = "NOSQL", Tn.label = "LOG", Object.freeze({
3146
- HTML: vn,
3147
- XML: yn,
3148
- SVG: bn,
3149
- SQL: xn,
3150
- "SQL-STRICT": Dn,
3151
- SHELL: Sn,
3152
- REDOS: Cn,
3153
- NOSQL: wn,
3154
- LOG: Tn
3130
+ ], On = [...Sn, ...Dn], kn = Object.freeze({
3131
+ colon: ":",
3132
+ Tab: " ",
3133
+ NewLine: "\n"
3134
+ }), An = /&(?:#[xX]0*([0-9a-fA-F]{1,6});?|#0*([0-9]{1,7});?|([a-zA-Z][a-zA-Z0-9]{1,15});)/g;
3135
+ function jn(e) {
3136
+ return e.indexOf("&") === -1 ? e : e.replace(An, (e, t, n, r) => {
3137
+ if (r !== void 0) return Object.prototype.hasOwnProperty.call(kn, r) ? kn[r] : e;
3138
+ let i = t === void 0 ? parseInt(n, 10) : parseInt(t, 16);
3139
+ return !Number.isFinite(i) || i > 1114111 ? e : String.fromCodePoint(i);
3140
+ });
3141
+ }
3142
+ yn.label = "HTML", bn.label = "XML", xn.label = "SVG", yn.decodeEntities = !0, bn.decodeEntities = !0, xn.decodeEntities = !0, Sn.label = "SQL", On.label = "SQL-STRICT", Cn.label = "SHELL", wn.label = "REDOS", Tn.label = "NOSQL", En.label = "LOG", Object.freeze({
3143
+ HTML: yn,
3144
+ XML: bn,
3145
+ SVG: xn,
3146
+ SQL: Sn,
3147
+ "SQL-STRICT": On,
3148
+ SHELL: Cn,
3149
+ REDOS: wn,
3150
+ NOSQL: Tn,
3151
+ LOG: En
3155
3152
  });
3156
- function On(e) {
3153
+ function Mn(e) {
3157
3154
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
3158
3155
  }
3159
- function kn(e) {
3156
+ function Nn(e) {
3160
3157
  if (!(e instanceof RegExp)) {
3161
3158
  if (Array.isArray(e)) {
3162
3159
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -3166,7 +3163,7 @@ function kn(e) {
3166
3163
  } else throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
3167
3164
  }
3168
3165
  }
3169
- function An(e) {
3166
+ function Pn(e) {
3170
3167
  return e instanceof RegExp ? {
3171
3168
  lists: null,
3172
3169
  regex: e
@@ -3178,26 +3175,30 @@ function An(e) {
3178
3175
  regex: null
3179
3176
  };
3180
3177
  }
3181
- function jn(e, t) {
3182
- let n = t.label ?? "CUSTOM";
3183
- for (let r of t) if (r.pattern.test(e)) return {
3178
+ function Fn(e, t) {
3179
+ if (!t.decodeEntities) return null;
3180
+ let n = jn(e);
3181
+ return n === e ? null : n;
3182
+ }
3183
+ function In(e, t) {
3184
+ let n = t.label ?? "CUSTOM", r = Fn(e, t);
3185
+ for (let i of t) if (i.pattern.test(e) || r !== null && i.pattern.test(r)) return {
3184
3186
  context: n,
3185
- id: r.id,
3186
- description: r.description,
3187
- pattern: r.pattern
3187
+ id: i.id,
3188
+ description: i.description,
3189
+ pattern: i.pattern
3188
3190
  };
3189
3191
  return null;
3190
3192
  }
3191
- function Mn(e, t) {
3192
- On(e), kn(t);
3193
- let { lists: n, regex: r } = An(t);
3193
+ function Ln(e, t) {
3194
+ Mn(e), Nn(t);
3195
+ let { lists: n, regex: r } = Pn(t);
3194
3196
  if (r) return r.test(e);
3195
- for (let t of n) if (jn(e, t) !== null) return !0;
3197
+ for (let t of n) if (In(e, t) !== null) return !0;
3196
3198
  return !1;
3197
3199
  }
3198
- //#endregion
3199
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3200
- function Nn(e, t) {
3200
+ // ../../node_modules/.pnpm/fast-xml-parser@5.12.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3201
+ function Rn(e, t) {
3201
3202
  if (!e) return {};
3202
3203
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
3203
3204
  if (!n) return {};
@@ -3208,7 +3209,7 @@ function Nn(e, t) {
3208
3209
  } else r[e] = n[e];
3209
3210
  return r;
3210
3211
  }
3211
- function Pn(e) {
3212
+ function zn(e) {
3212
3213
  if (!e || typeof e != "string") return;
3213
3214
  let t = e.indexOf(":");
3214
3215
  if (t !== -1 && t > 0) {
@@ -3216,14 +3217,14 @@ function Pn(e) {
3216
3217
  if (n !== "xmlns") return n;
3217
3218
  }
3218
3219
  }
3219
- var Fn = class {
3220
+ var Bn = class {
3220
3221
  constructor(e, t) {
3221
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Bn, this.parseTextData = In, this.resolveNameSpace = Ln, this.buildAttributesMap = zn, this.isItStopNode = Wn, this.replaceEntitiesValue = Hn, this.readStopNodeData = Jn, this.saveTextToParentTag = Un, this.addChild = Vn, this.ignoreAttributesFn = pn(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
3222
- let n = { ...pt };
3222
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Gn, this.parseTextData = Vn, this.resolveNameSpace = Hn, this.buildAttributesMap = Wn, this.isItStopNode = Yn, this.replaceEntitiesValue = qn, this.readStopNodeData = $n, this.saveTextToParentTag = Jn, this.addChild = Kn, this.ignoreAttributesFn = mn(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
3223
+ let n = { ...mt };
3223
3224
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
3224
- ...mt,
3225
- ...ft
3226
- }), this.entityDecoder = new wt({
3225
+ ...ht,
3226
+ ...pt
3227
+ }), this.entityDecoder = new Tt({
3227
3228
  namedEntities: {
3228
3229
  ...n,
3229
3230
  ...t
@@ -3234,27 +3235,27 @@ var Fn = class {
3234
3235
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
3235
3236
  applyLimitsTo: this.options.processEntities.appliesTo
3236
3237
  },
3237
- onInputEntity: (e, t) => Mn(t, [vn, yn]) ? ht.BLOCK : ht.ALLOW
3238
- })), this.matcher = new _n(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new hn();
3238
+ onInputEntity: (e, t) => Ln(t, [yn, bn]) ? gt.BLOCK : gt.ALLOW
3239
+ })), this.matcher = new vn(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new gn();
3239
3240
  let r = this.options.stopNodes;
3240
3241
  if (r && r.length > 0) {
3241
3242
  for (let e = 0; e < r.length; e++) {
3242
3243
  let t = r[e];
3243
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new mn(t)) : t instanceof mn && this.stopNodeExpressionsSet.add(t);
3244
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new hn(t)) : t instanceof hn && this.stopNodeExpressionsSet.add(t);
3244
3245
  }
3245
3246
  this.stopNodeExpressionsSet.seal();
3246
3247
  }
3247
3248
  }
3248
3249
  };
3249
- function In(e, t, n, r, i, a, o) {
3250
+ function Vn(e, t, n, r, i, a, o) {
3250
3251
  let s = this.options;
3251
3252
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
3252
3253
  o || (e = this.replaceEntitiesValue(e, t, n));
3253
3254
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
3254
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Yn(e, s.parseTagValue, s.numberParseOptions) : e;
3255
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? er(e, s.parseTagValue, s.numberParseOptions) : e;
3255
3256
  }
3256
3257
  }
3257
- function Ln(e) {
3258
+ function Hn(e) {
3258
3259
  if (this.options.removeNSPrefix) {
3259
3260
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
3260
3261
  if (t[0] === "xmlns") return "";
@@ -3262,11 +3263,11 @@ function Ln(e) {
3262
3263
  }
3263
3264
  return e;
3264
3265
  }
3265
- var Rn = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3266
- function zn(e, t, n, r = !1) {
3266
+ var Un = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3267
+ function Wn(e, t, n, r = !1) {
3267
3268
  let i = this.options;
3268
3269
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
3269
- let r = qe(e, Rn), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3270
+ let r = Je(e, Un), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3270
3271
  for (let e = 0; e < a; e++) {
3271
3272
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
3272
3273
  if (t.length && a !== void 0) {
@@ -3281,9 +3282,9 @@ function zn(e, t, n, r = !1) {
3281
3282
  if (this.ignoreAttributesFn(t, u)) continue;
3282
3283
  let n = i.attributeNamePrefix + t;
3283
3284
  if (t.length) {
3284
- if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zn(n, i), r[e][4] !== void 0) {
3285
+ if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = nr(n, i), r[e][4] !== void 0) {
3285
3286
  let r = s[e], a = i.attributeValueProcessor(t, r, u);
3286
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Yn(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
3287
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = er(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
3287
3288
  } else i.allowBooleanAttributes && (o[n] = !0, d = !0);
3288
3289
  }
3289
3290
  }
@@ -3295,107 +3296,118 @@ function zn(e, t, n, r = !1) {
3295
3296
  return o;
3296
3297
  }
3297
3298
  }
3298
- var Bn = function(e) {
3299
- e = e.replace(/\r\n?/g, "\n");
3300
- let t = new Y("!xml"), n = t, r = "";
3299
+ var Gn = function(e) {
3300
+ let t = this.options, n = t.captureMetaData ? [] : void 0;
3301
+ e = e.replace(/\r\n?/g, t.captureMetaData ? (e, t) => (e.length === 2 && n.push(t - n.length), "\n") : "\n");
3302
+ let r = new J("!xml"), i = r, a = "";
3301
3303
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
3302
- let i = this.options, a = new Ut(i.processEntities), o = e.length;
3303
- for (let s = 0; s < o; s++) if (e[s] === "<") {
3304
- let c = e.charCodeAt(s + 1);
3305
- if (c === 47) {
3306
- let a = $(e, ">", s, "Closing Tag is not closed."), o = e.substring(s + 2, a).trim();
3307
- if (i.removeNSPrefix) {
3308
- let e = o.indexOf(":");
3309
- e !== -1 && (o = o.substr(e + 1));
3304
+ let o = new Wt(t.processEntities), s = e.length;
3305
+ for (let c = 0; c < s; c++) if (e[c] === "<") {
3306
+ let l = e.charCodeAt(c + 1);
3307
+ if (l === 47) {
3308
+ let o = $(e, ">", c, "Closing Tag is not closed."), s = e.substring(c + 2, o).trim();
3309
+ if (t.removeNSPrefix) {
3310
+ let e = s.indexOf(":");
3311
+ e !== -1 && (s = s.substr(e + 1));
3310
3312
  }
3311
- o = Xn(i.transformTagName, o, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3312
- let c = this.matcher.getCurrentTag();
3313
- if (o && i.unpairedTagsSet.has(o)) throw Error(`Unpaired tag can not be used as closing tag: </${o}>`);
3314
- c && i.unpairedTagsSet.has(c) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop() || t, i.captureMetaData && n && n.addEndIndex(a + 1), r = "", s = a;
3315
- } else if (c === 63) {
3316
- let t = qn(e, s, !1, "?>");
3317
- if (!t) throw Error("Pi Tag is not closed.");
3318
- r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3319
- let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
3320
- if (o) {
3321
- let e = o[this.options.attributeNamePrefix + "version"];
3322
- this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
3313
+ s = tr(t.transformTagName, s, "", t).tagName, i && (a = this.saveTextToParentTag(a, i, this.readonlyMatcher));
3314
+ let l = this.matcher.getCurrentTag();
3315
+ if (s && t.unpairedTagsSet.has(s)) throw Error(`Unpaired tag can not be used as closing tag: </${s}>`);
3316
+ l && t.unpairedTagsSet.has(l) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, i = this.tagsNodeStack.pop() || r, t.captureMetaData && i && i.addEndIndex(Q(o + 1, n)), a = "", c = o;
3317
+ } else if (l === 63) {
3318
+ let r = Qn(e, c, !1, "?>");
3319
+ if (!r) throw Error("Pi Tag is not closed.");
3320
+ a = this.saveTextToParentTag(a, i, this.readonlyMatcher);
3321
+ let s = this.buildAttributesMap(r.tagExp, this.matcher, r.tagName, !0);
3322
+ if (s) {
3323
+ let e = s[this.options.attributeNamePrefix + "version"];
3324
+ this.entityDecoder.setXmlVersion(Number(e) || 1), o.setXmlVersion(Number(e) || 1);
3323
3325
  }
3324
- if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
3325
- let e = new Y(t.tagName);
3326
- e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s), i.captureMetaData && n.addEndIndex(t.closeIndex + 2);
3326
+ if (!(t.ignoreDeclaration && r.tagName === "?xml" || t.ignorePiTags)) {
3327
+ let e = new J(r.tagName);
3328
+ e.add(t.textNodeName, ""), r.tagName !== r.tagExp && r.attrExpPresent && t.ignoreAttributes !== !0 && (e[":@"] = s);
3329
+ let a = t.captureMetaData ? Q(c, n) : c;
3330
+ this.addChild(i, e, this.readonlyMatcher, a), t.captureMetaData && i.addEndIndex(Q(r.closeIndex + 2, n));
3327
3331
  }
3328
- s = t.closeIndex + 1;
3329
- } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
3330
- let t = $(e, "-->", s + 4, "Comment is not closed.");
3331
- if (i.commentPropName) {
3332
- let a = e.substring(s + 4, t - 2);
3333
- r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
3332
+ c = r.closeIndex + 1;
3333
+ } else if (l === 33 && e.charCodeAt(c + 2) === 45 && e.charCodeAt(c + 3) === 45) {
3334
+ let n = $(e, "-->", c + 4, "Comment is not closed.");
3335
+ if (t.commentPropName) {
3336
+ let r = e.substring(c + 4, n - 2);
3337
+ a = this.saveTextToParentTag(a, i, this.readonlyMatcher), i.add(t.commentPropName, [{ [t.textNodeName]: r }]);
3334
3338
  }
3335
- s = t;
3336
- } else if (c === 33 && e.charCodeAt(s + 2) === 68) {
3339
+ c = n;
3340
+ } else if (l === 33 && e.charCodeAt(c + 2) === 68) {
3337
3341
  if (this.doctypefound) throw Error("Multiple DOCTYPE declarations found.");
3338
3342
  this.doctypefound = !0;
3339
- let t = a.readDocType(e, s);
3340
- this.entityDecoder.addInputEntities(t.entities), s = t.i;
3341
- } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
3342
- let t = $(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3343
- r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3344
- let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3345
- o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
3343
+ let t = o.readDocType(e, c);
3344
+ this.entityDecoder.addInputEntities(t.entities), c = t.i;
3345
+ } else if (l === 33 && e.charCodeAt(c + 2) === 91) {
3346
+ let n = $(e, "]]>", c, "CDATA is not closed.") - 2, r = e.substring(c + 9, n);
3347
+ a = this.saveTextToParentTag(a, i, this.readonlyMatcher);
3348
+ let o = this.parseTextData(r, i.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3349
+ o ??= "", t.cdataPropName ? i.add(t.cdataPropName, [{ [t.textNodeName]: r }]) : i.add(t.textNodeName, o), c = n + 2;
3346
3350
  } else {
3347
- let a = qn(e, s, i.removeNSPrefix);
3348
- if (!a) {
3349
- let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
3350
- throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
3351
+ let o = Qn(e, c, t.removeNSPrefix);
3352
+ if (!o) {
3353
+ let t = e.substring(Math.max(0, c - 50), Math.min(s, c + 50));
3354
+ throw Error(`readTagExp returned undefined at position ${c}. Context: "${t}"`);
3351
3355
  }
3352
- let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
3353
- if ({tagName: c, tagExp: u} = Xn(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}`);
3354
- n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
3355
- let p = n;
3356
- p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
3357
- let m = !1;
3358
- 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);
3359
- let h = null, g;
3360
- g = Pn(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Nn(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3361
- let _ = s;
3356
+ let l = o.tagName, u = o.rawTagName, d = o.tagExp, f = o.attrExpPresent, p = o.closeIndex;
3357
+ if ({tagName: l, tagExp: d} = tr(t.transformTagName, l, d, t), t.strictReservedNames && (l === t.commentPropName || l === t.cdataPropName || l === t.textNodeName || l === t.attributesGroupName)) throw Error(`Invalid tag name: ${l}`);
3358
+ i && a && i.tagname !== "!xml" && (a = this.saveTextToParentTag(a, i, this.readonlyMatcher, !1));
3359
+ let m = i;
3360
+ m && t.unpairedTagsSet.has(m.tagname) && (i = this.tagsNodeStack.pop(), this.matcher.pop());
3361
+ let h = !1;
3362
+ d.length > 0 && d.lastIndexOf("/") === d.length - 1 && (h = !0, l[l.length - 1] === "/" ? (l = l.substr(0, l.length - 1), d = l) : d = d.substr(0, d.length - 1), f = l !== d);
3363
+ let g = null, _;
3364
+ _ = zn(u), l !== r.tagname && this.matcher.push(l, {}, _), l !== d && f && (g = this.buildAttributesMap(d, this.matcher, l), g && Rn(g, t)), l !== r.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3365
+ let v = t.captureMetaData ? Q(c, n) : c;
3362
3366
  if (this.isCurrentNodeStopNode) {
3363
- let t = "";
3364
- if (m) s = a.closeIndex;
3365
- else if (i.unpairedTagsSet.has(c)) s = a.closeIndex;
3367
+ let r = "";
3368
+ if (h) c = o.closeIndex;
3369
+ else if (t.unpairedTagsSet.has(l)) c = o.closeIndex;
3366
3370
  else {
3367
- let n = this.readStopNodeData(e, l, f + 1);
3368
- if (!n) throw Error(`Unexpected end of ${l}`);
3369
- s = n.i, t = n.tagContent;
3371
+ let t = this.readStopNodeData(e, u, p + 1);
3372
+ if (!t) throw Error(`Unexpected end of ${u}`);
3373
+ c = t.i, r = t.tagContent;
3370
3374
  }
3371
- let r = new Y(c);
3372
- h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _), i.captureMetaData && n.addEndIndex(s + 1);
3375
+ let a = new J(l);
3376
+ g && (a[":@"] = g), a.add(t.textNodeName, r), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(i, a, this.readonlyMatcher, v), t.captureMetaData && i.addEndIndex(Q(c + 1, n));
3373
3377
  } else {
3374
- if (m) {
3375
- ({tagName: c, tagExp: u} = Xn(i.transformTagName, c, u, i));
3376
- let e = new Y(c);
3377
- h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), i.captureMetaData && n.addEndIndex(f + 1), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3378
- } else if (i.unpairedTagsSet.has(c)) {
3379
- let e = new Y(c);
3380
- h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), i.captureMetaData && n.addEndIndex(a.closeIndex + 1), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
3378
+ if (h) {
3379
+ ({tagName: l, tagExp: d} = tr(t.transformTagName, l, d, t));
3380
+ let e = new J(l);
3381
+ g && (e[":@"] = g), this.addChild(i, e, this.readonlyMatcher, v), t.captureMetaData && i.addEndIndex(Q(p + 1, n)), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3382
+ } else if (t.unpairedTagsSet.has(l)) {
3383
+ let e = new J(l);
3384
+ g && (e[":@"] = g), this.addChild(i, e, this.readonlyMatcher, v), t.captureMetaData && i.addEndIndex(Q(o.closeIndex + 1, n)), this.matcher.pop(), this.isCurrentNodeStopNode = !1, c = o.closeIndex;
3381
3385
  continue;
3382
3386
  } else {
3383
- let e = new Y(c);
3384
- if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
3385
- this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
3387
+ let e = new J(l);
3388
+ if (this.tagsNodeStack.length > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
3389
+ this.tagsNodeStack.push(i), g && (e[":@"] = g), this.addChild(i, e, this.readonlyMatcher, v), i = e;
3386
3390
  }
3387
- r = "", s = f;
3391
+ a = "", c = p;
3388
3392
  }
3389
3393
  }
3390
- } else r += e[s];
3391
- return t.child;
3394
+ } else a += e[c];
3395
+ return r.child;
3392
3396
  };
3393
- function Vn(e, t, n, r) {
3397
+ function Q(e, t) {
3398
+ let n = 0, r = t.length;
3399
+ for (; n < r;) {
3400
+ let i = Math.floor((n + r) / 2);
3401
+ t[i] < e ? n = i + 1 : r = i;
3402
+ }
3403
+ return e + n;
3404
+ }
3405
+ function Kn(e, t, n, r) {
3394
3406
  this.options.captureMetaData || (r = void 0);
3395
3407
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
3396
3408
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
3397
3409
  }
3398
- function Hn(e, t, n) {
3410
+ function qn(e, t, n) {
3399
3411
  let r = this.options.processEntities;
3400
3412
  if (!r || !r.enabled) return e;
3401
3413
  if (r.allowedTags) {
@@ -3408,13 +3420,13 @@ function Hn(e, t, n) {
3408
3420
  }
3409
3421
  return this.entityDecoder.decode(e);
3410
3422
  }
3411
- function Un(e, t, n, r) {
3423
+ function Jn(e, t, n, r) {
3412
3424
  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;
3413
3425
  }
3414
- function Wn() {
3426
+ function Yn() {
3415
3427
  return this.stopNodeExpressionsSet.size !== 0 && this.matcher.matchesAny(this.stopNodeExpressionsSet);
3416
3428
  }
3417
- function Gn(e, t, n = ">") {
3429
+ function Xn(e, t, n = ">") {
3418
3430
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
3419
3431
  for (let n = t; n < i; n++) {
3420
3432
  let t = e.charCodeAt(n);
@@ -3438,13 +3450,13 @@ function $(e, t, n, r) {
3438
3450
  if (i === -1) throw Error(r);
3439
3451
  return i + t.length - 1;
3440
3452
  }
3441
- function Kn(e, t, n, r) {
3453
+ function Zn(e, t, n, r) {
3442
3454
  let i = e.indexOf(t, n);
3443
3455
  if (i === -1) throw Error(r);
3444
3456
  return i;
3445
3457
  }
3446
- function qn(e, t, n, r = ">") {
3447
- let i = Gn(e, t + 1, r);
3458
+ function Qn(e, t, n, r = ">") {
3459
+ let i = Xn(e, t + 1, r);
3448
3460
  if (!i) return;
3449
3461
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
3450
3462
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -3461,51 +3473,58 @@ function qn(e, t, n, r = ">") {
3461
3473
  rawTagName: u
3462
3474
  };
3463
3475
  }
3464
- function Jn(e, t, n) {
3465
- let r = n, i = 1, a = e.length;
3466
- for (; n < a; n++) if (e[n] === "<") {
3467
- let a = e.charCodeAt(n + 1);
3468
- if (a === 47) {
3469
- let a = Kn(e, ">", n, `${t} is not closed`);
3476
+ function $n(e, t, n) {
3477
+ let r = n, i = 1, a = !1, o = -1, s = e.length;
3478
+ for (; n < s; n++) if (e[n] === "<") {
3479
+ let s = e.charCodeAt(n + 1);
3480
+ if (s === 47) {
3481
+ let a = Zn(e, ">", n, `${t} is not closed`);
3470
3482
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
3471
3483
  tagContent: e.substring(r, n),
3472
3484
  i: a
3473
3485
  };
3474
3486
  n = a;
3475
- } else if (a === 63) n = $(e, "?>", n + 1, "StopNode is not closed.");
3476
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = $(e, "-->", n + 3, "StopNode is not closed.");
3477
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = $(e, "]]>", n, "StopNode is not closed.") - 2;
3487
+ } else if (s === 63) n = $(e, "?>", n + 1, "StopNode is not closed.");
3488
+ else if (s === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = $(e, "-->", n + 3, "StopNode is not closed.");
3489
+ else if (s === 33 && e.charCodeAt(n + 2) === 91) n = $(e, "]]>", n, "StopNode is not closed.") - 2;
3478
3490
  else {
3479
- let r = qn(e, n, !1);
3480
- r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
3491
+ let r = a ? void 0 : Qn(e, n, !1);
3492
+ if (r) r.tagName === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex;
3493
+ else {
3494
+ if (a = !0, o < n && (o = e.indexOf(">", n), o === -1)) return;
3495
+ let r = e.indexOf("<", n + 1);
3496
+ if (r === -1 || r > o) {
3497
+ let r = e.substring(n + 1, o), a = r.search(/\s/);
3498
+ (a === -1 ? r : r.substring(0, a)) === t && r[r.length - 1] !== "/" && i++, n = o;
3499
+ }
3500
+ }
3481
3501
  }
3482
3502
  }
3483
3503
  }
3484
- function Yn(e, t, n) {
3504
+ function er(e, t, n) {
3485
3505
  if (t && typeof e == "string") {
3486
3506
  let t = e.trim();
3487
- return t === "true" || t !== "false" && sn(e, n);
3507
+ return t === "true" || t !== "false" && cn(e, n);
3488
3508
  }
3489
- return Ye(e) ? e : "";
3509
+ return Xe(e) ? e : "";
3490
3510
  }
3491
- function Xn(e, t, n, r) {
3511
+ function tr(e, t, n, r) {
3492
3512
  if (e) {
3493
3513
  let r = e(t);
3494
3514
  n === t && (n = r), t = r;
3495
3515
  }
3496
- return t = Zn(t, r), {
3516
+ return t = nr(t, r), {
3497
3517
  tagName: t,
3498
3518
  tagExp: n
3499
3519
  };
3500
3520
  }
3501
- function Zn(e, t) {
3502
- if (Ze.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3503
- return Xe.includes(e) ? t.onDangerousProperty(e) : e;
3521
+ function nr(e, t) {
3522
+ if (Qe.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3523
+ return Ze.includes(e) ? t.onDangerousProperty(e) : e;
3504
3524
  }
3505
- //#endregion
3506
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3507
- var Qn = Y.getMetaDataSymbol();
3508
- function $n(e, t) {
3525
+ // ../../node_modules/.pnpm/fast-xml-parser@5.12.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3526
+ var rr = J.getMetaDataSymbol();
3527
+ function ir(e, t) {
3509
3528
  if (!e || typeof e != "object") return {};
3510
3529
  if (!t) return e;
3511
3530
  let n = {};
@@ -3515,22 +3534,22 @@ function $n(e, t) {
3515
3534
  } else n[r] = e[r];
3516
3535
  return n;
3517
3536
  }
3518
- function er(e, t, n, r) {
3519
- return tr(e, t, n, r);
3537
+ function ar(e, t, n, r) {
3538
+ return or(e, t, n, r);
3520
3539
  }
3521
- function tr(e, t, n, r) {
3540
+ function or(e, t, n, r) {
3522
3541
  let i, a = {};
3523
3542
  for (let o = 0; o < e.length; o++) {
3524
- let s = e[o], c = nr(s);
3543
+ let s = e[o], c = sr(s);
3525
3544
  if (c !== void 0 && c !== t.textNodeName) {
3526
- let e = $n(s[":@"] || {}, t.attributeNamePrefix);
3545
+ let e = ir(s[":@"] || {}, t.attributeNamePrefix);
3527
3546
  n.push(c, e);
3528
3547
  }
3529
3548
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
3530
3549
  else if (c === void 0) continue;
3531
3550
  else if (s[c]) {
3532
- let e = tr(s[c], t, n, r), i = ir(e, t);
3533
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? rr(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[Qn] !== void 0 && typeof e == "object" && e && (e[Qn] = s[Qn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3551
+ let e = or(s[c], t, n, r), i = lr(e, t);
3552
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? cr(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[rr] !== void 0 && typeof e == "object" && e && (e[rr] = s[rr]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3534
3553
  else {
3535
3554
  let n = t.jPath ? r.toString() : r;
3536
3555
  a[c] = t.isArray(c, n, i) ? [e] : e;
@@ -3540,14 +3559,14 @@ function tr(e, t, n, r) {
3540
3559
  }
3541
3560
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
3542
3561
  }
3543
- function nr(e) {
3562
+ function sr(e) {
3544
3563
  let t = Object.keys(e);
3545
3564
  for (let e = 0; e < t.length; e++) {
3546
3565
  let n = t[e];
3547
3566
  if (n !== ":@") return n;
3548
3567
  }
3549
3568
  }
3550
- function rr(e, t, n, r) {
3569
+ function cr(e, t, n, r) {
3551
3570
  if (t) {
3552
3571
  let i = Object.keys(t), a = i.length;
3553
3572
  for (let o = 0; o < a; o++) {
@@ -3556,26 +3575,25 @@ function rr(e, t, n, r) {
3556
3575
  }
3557
3576
  }
3558
3577
  }
3559
- function ir(e, t) {
3578
+ function lr(e, t) {
3560
3579
  let { textNodeName: n } = t, r = Object.keys(e).length;
3561
3580
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
3562
3581
  }
3563
- //#endregion
3564
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3565
- var ar = class {
3582
+ // ../../node_modules/.pnpm/fast-xml-parser@5.12.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3583
+ var ur = class {
3566
3584
  constructor(e) {
3567
- this.externalEntities = {}, this.options = kt(e);
3585
+ this.externalEntities = {}, this.options = At(e);
3568
3586
  }
3569
3587
  parse(e, t) {
3570
- if (typeof e != "string" && e.toString) e = e instanceof Uint8Array && !(de !== void 0 && de.isBuffer(e)) ? new TextDecoder("utf-8", { ignoreBOM: !0 }).decode(e) : e.toString();
3588
+ if (typeof e != "string" && e.toString) e = e instanceof Uint8Array && !(ue !== void 0 && ue.isBuffer(e)) ? new TextDecoder("utf-8", { ignoreBOM: !0 }).decode(e) : e.toString();
3571
3589
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
3572
3590
  if (t) {
3573
3591
  t === !0 && (t = {});
3574
- let n = $e(e, t);
3592
+ let n = et(e, t);
3575
3593
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3576
3594
  }
3577
- let n = new Fn(this.options, this.externalEntities), r = n.parseXml(e);
3578
- return this.options.preserveOrder || r === void 0 ? r : er(r, this.options, n.matcher, n.readonlyMatcher);
3595
+ let n = new Bn(this.options, this.externalEntities), r = n.parseXml(e);
3596
+ return this.options.preserveOrder || r === void 0 ? r : ar(r, this.options, n.matcher, n.readonlyMatcher);
3579
3597
  }
3580
3598
  addEntity(e, t) {
3581
3599
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -3584,9 +3602,9 @@ var ar = class {
3584
3602
  this.externalEntities[e] = t;
3585
3603
  }
3586
3604
  static getMetaDataSymbol() {
3587
- return Y.getMetaDataSymbol();
3605
+ return J.getMetaDataSymbol();
3588
3606
  }
3589
- }, or = class {
3607
+ }, dr = class {
3590
3608
  axiosClient;
3591
3609
  baseURI;
3592
3610
  xmlParser;
@@ -3596,7 +3614,7 @@ var ar = class {
3596
3614
  HASH_LENGTH = 32;
3597
3615
  ITERATION_COUNT = 1e4;
3598
3616
  constructor({ axiosClient: e, baseURI: t }) {
3599
- this.axiosClient = e, this.baseURI = t, this.xmlParser = new ar();
3617
+ this.axiosClient = e, this.baseURI = t, this.xmlParser = new ur();
3600
3618
  }
3601
3619
  async signUrl(e, t) {
3602
3620
  let n = new URL(e);
@@ -3606,20 +3624,20 @@ var ar = class {
3606
3624
  }
3607
3625
  async getSignKey() {
3608
3626
  if (this.signingKey) return this.signingKey;
3609
- let t = await this.axiosClient.get(e(this.baseURI, "ocs/v1.php/cloud/user/signing-key"), { headers: { "Content-Type": "application/x-www-form-urlencoded" } }), n = this.xmlParser.parse(t.data);
3610
- return this.signingKey = n.ocs.data["signing-key"], this.signingKey;
3627
+ let e = await this.axiosClient.get(i(this.baseURI, "ocs/v1.php/cloud/user/signing-key"), { headers: { "Content-Type": "application/x-www-form-urlencoded" } }), t = this.xmlParser.parse(e.data);
3628
+ return this.signingKey = t.ocs.data["signing-key"], this.signingKey;
3611
3629
  }
3612
3630
  async createHashedKey(e) {
3613
- return Ge(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
3631
+ return Ke(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
3614
3632
  }
3615
- }, sr = (e, t) => {
3633
+ }, fr = (e, t) => {
3616
3634
  let n = new URL(e);
3617
3635
  n.pathname = [
3618
3636
  ...n.pathname.split("/"),
3619
3637
  "ocs",
3620
3638
  "v1.php"
3621
3639
  ].filter(Boolean).join("/");
3622
- let r = n.href, i = v(r, t), a = new or({
3640
+ let r = n.href, i = y(r, t), a = new dr({
3623
3641
  baseURI: e,
3624
3642
  axiosClient: t
3625
3643
  });
@@ -3628,5 +3646,4 @@ var ar = class {
3628
3646
  signUrl: (e, t) => a.signUrl(e, t)
3629
3647
  };
3630
3648
  };
3631
- //#endregion
3632
- export { Ht as a, mn as i, ar as n, v as o, _n as r, sr as t };
3649
+ export { Ut as a, hn as i, ur as n, y as o, vn as r, fr as t };