@opencloud-eu/web-client 7.2.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { t as e } from "./dist-B2vdwwII.js";
1
+ import { t as e } from "./dist-Ciqaw6jy.js";
2
2
  import { t } from "./urlJoin-_pUL1TUx.js";
3
- import { a as n, n as r, s as i, t as a } from "./toString-BCd-H1lr.js";
3
+ import { a as n, n as r, s as i, t as a } from "./toString-Y_fh2BSJ.js";
4
4
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
5
5
  var o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/;
6
6
  function c(e, t) {
@@ -46,7 +46,7 @@ function g(e, t) {
46
46
  }
47
47
  //#endregion
48
48
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
49
- var _ = Infinity;
49
+ var _ = 1 / 0;
50
50
  function ee(e) {
51
51
  if (typeof e == "string" || i(e)) return e;
52
52
  var t = e + "";
@@ -83,64 +83,61 @@ var v = (e, t) => {
83
83
  } };
84
84
  };
85
85
  //#endregion
86
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js
86
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/utils.js
87
87
  function y(e) {
88
88
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in e && e.BYTES_PER_ELEMENT === 1;
89
89
  }
90
- function b(e, t = "") {
91
- if (typeof e != "number") {
92
- let n = t && `"${t}" `;
93
- throw TypeError(`${n}expected number, got ${typeof e}`);
94
- }
95
- if (!Number.isSafeInteger(e) || e < 0) {
96
- let n = t && `"${t}" `;
97
- throw RangeError(`${n}expected integer >= 0, got ${e}`);
98
- }
99
- }
100
- function x(e, t, n = "") {
101
- let r = y(e), i = e?.length, a = t !== void 0;
102
- if (!r || a && i !== t) {
103
- let o = n && `"${n}" `, s = a ? ` of length ${t}` : "", c = r ? `length=${i}` : `type=${typeof e}`, l = o + "expected Uint8Array" + s + ", got " + c;
104
- throw r ? RangeError(l) : TypeError(l);
105
- }
90
+ var b = (e) => e ? `"${e}" ` : "";
91
+ function x(e, t = "") {
92
+ if (typeof e != "number") throw TypeError(b(t) + "expected number, got " + typeof e);
93
+ if (!Number.isSafeInteger(e) || e < 0) throw RangeError(b(t) + "expected integer >= 0, got " + e);
106
94
  return e;
107
95
  }
108
- function S(e) {
109
- if (typeof e != "function" || typeof e.create != "function") throw TypeError("Hash must wrapped by utils.createHasher");
110
- if (b(e.outputLen), b(e.blockLen), e.outputLen < 1) throw Error("\"outputLen\" must be >= 1");
111
- if (e.blockLen < 1) throw Error("\"blockLen\" must be >= 1");
96
+ function S(e, t, n = "") {
97
+ if (y(e) && (t === void 0 || e.length === t)) return e;
98
+ t !== void 0 && x(t, "length");
99
+ let r = y(e), i = t === void 0 ? "" : ` of length ${t}`, a = r ? `length=${e.length}` : `type=${typeof e}`, o = b(n) + "expected Uint8Array" + i + ", got " + a;
100
+ throw r ? RangeError(o) : TypeError(o);
112
101
  }
102
+ function re(e) {
103
+ if (typeof e != "function" || typeof e.create != "function") throw TypeError("expected hash wrapped by utils.createHasher");
104
+ if (x(e.outputLen), x(e.blockLen), e.outputLen < 1 || e.blockLen < 1) throw Error("hash blockLen / outputLen must be >= 1");
105
+ }
106
+ var ie = (e, t) => {
107
+ if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError((t === "object" ? "" : `"${t}" `) + "expected object, got type=" + typeof e);
108
+ };
113
109
  function C(e, t = !0) {
114
- if (e.destroyed) throw Error("Hash instance has been destroyed");
115
- if (t && e.finished) throw Error("Hash#digest() has already been called");
110
+ if (e.destroyed) throw Error("hash was destroyed");
111
+ if (t && e.finished) throw Error("digest() was already called");
116
112
  }
117
- function w(e, t) {
118
- x(e, void 0, "digestInto() output");
113
+ function ae(e, t) {
114
+ S(e, void 0, "output");
119
115
  let n = t.outputLen;
120
- if (e.length < n) throw RangeError("\"digestInto() output\" expected to be of length >=" + n);
116
+ if (!(e.length >= n)) throw RangeError("\"output\" expected length >= " + n);
121
117
  }
122
- function T(...e) {
118
+ function w(...e) {
123
119
  for (let t = 0; t < e.length; t++) e[t].fill(0);
124
120
  }
125
- function E(e) {
121
+ function T(e) {
126
122
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
127
123
  }
128
- function re(e) {
124
+ function oe(e) {
129
125
  if (typeof e != "string") throw TypeError("string expected");
130
126
  return new Uint8Array(new TextEncoder().encode(e));
131
127
  }
132
- function ie(e, t = "") {
133
- return typeof e == "string" ? re(e) : x(e, void 0, t);
128
+ function se(e, t = "") {
129
+ return typeof e == "string" ? oe(e) : S(e, void 0, t);
134
130
  }
135
- function ae(e, t) {
136
- if (t !== void 0 && {}.toString.call(t) !== "[object Object]") throw TypeError("options must be object or undefined");
137
- return Object.assign(e, t);
131
+ function ce(e, t, n = "opts") {
132
+ return ie(e, "defaults"), t !== void 0 && ie(t, n), Object.assign(e, t);
138
133
  }
139
- function oe(e, t = {}) {
134
+ function le(e, t = {}) {
135
+ if (typeof e != "function") throw TypeError("\"hashCons\" expected function, got type=" + typeof e);
136
+ t = ce({}, t, "info");
140
137
  let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
141
138
  return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
142
139
  }
143
- var se = (e) => ({ oid: Uint8Array.from([
140
+ var ue = (e) => ({ oid: Uint8Array.from([
144
141
  6,
145
142
  9,
146
143
  96,
@@ -152,7 +149,7 @@ var se = (e) => ({ oid: Uint8Array.from([
152
149
  4,
153
150
  2,
154
151
  e
155
- ]) }), ce = class {
152
+ ]) }), de = class {
156
153
  oHash;
157
154
  iHash;
158
155
  blockLen;
@@ -161,20 +158,20 @@ var se = (e) => ({ oid: Uint8Array.from([
161
158
  finished = !1;
162
159
  destroyed = !1;
163
160
  constructor(e, t) {
164
- if (S(e), x(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("Expected instance of class which extends utils.Hash");
161
+ if (re(e), S(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("expected Hash instance");
165
162
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
166
163
  let n = this.blockLen, r = new Uint8Array(n);
167
164
  r.set(t.length > n ? e.create().update(t).digest() : t);
168
165
  for (let e = 0; e < r.length; e++) r[e] ^= 54;
169
166
  this.iHash.update(r), this.oHash = e.create();
170
167
  for (let e = 0; e < r.length; e++) r[e] ^= 106;
171
- this.oHash.update(r), T(r);
168
+ this.oHash.update(r), w(r);
172
169
  }
173
170
  update(e) {
174
171
  return C(this), this.iHash.update(e), this;
175
172
  }
176
173
  digestInto(e) {
177
- C(this), w(e, this), this.finished = !0;
174
+ C(this), ae(e, this), this.finished = !0;
178
175
  let t = e.subarray(0, this.outputLen);
179
176
  this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
180
177
  }
@@ -184,8 +181,8 @@ var se = (e) => ({ oid: Uint8Array.from([
184
181
  }
185
182
  _cloneInto(e) {
186
183
  e ||= Object.create(Object.getPrototypeOf(this), {});
187
- let { oHash: t, iHash: n, finished: r, destroyed: i, blockLen: a, outputLen: o } = this;
188
- return e = e, e.finished = r, e.destroyed = i, e.blockLen = a, e.outputLen = o, e.oHash = t._cloneInto(e.oHash), e.iHash = n._cloneInto(e.iHash), e;
184
+ let { oHash: t, iHash: n, finished: r, destroyed: i, blockLen: a, outputLen: o, canXOF: s } = this;
185
+ return e = e, e.finished = r, e.destroyed = i, e.blockLen = a, e.outputLen = o, e.canXOF = s, e.oHash = t._cloneInto(e.oHash), e.iHash = n._cloneInto(e.iHash), e;
189
186
  }
190
187
  clone() {
191
188
  return this._cloneInto();
@@ -193,49 +190,88 @@ var se = (e) => ({ oid: Uint8Array.from([
193
190
  destroy() {
194
191
  this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
195
192
  }
196
- }, le = /* @__PURE__ */ (() => {
197
- let e = ((e, t, n) => new ce(e, t).update(n).digest());
198
- return e.create = (e, t) => new ce(e, t), e;
193
+ }, fe = /* @__PURE__ */ (() => {
194
+ let e = ((e, t, n) => new de(e, t).update(n).digest());
195
+ return e.create = (e, t) => new de(e, t), e;
199
196
  })();
200
197
  //#endregion
201
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/pbkdf2.js
202
- function ue(e, t, n, r) {
203
- S(e);
204
- let { c: i, dkLen: a, asyncTick: o } = ae({
198
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/pbkdf2.js
199
+ function pe(e, t, n, r) {
200
+ re(e);
201
+ let { c: i, dkLen: a, asyncTick: o } = ce({
205
202
  dkLen: 32,
206
203
  asyncTick: 10
207
204
  }, r);
208
- if (b(i, "c"), b(a, "dkLen"), b(o, "asyncTick"), i < 1) throw Error("iterations (c) must be >= 1");
205
+ if (x(i, "c"), x(a, "dkLen"), x(o, "asyncTick"), i < 1) throw Error("\"c\" (iterations) must be >= 1");
209
206
  if (a < 1) throw Error("\"dkLen\" must be >= 1");
210
207
  if (a > (2 ** 32 - 1) * e.outputLen) throw Error("derived key too long");
211
- let s = ie(t, "password"), c = ie(n, "salt"), l = new Uint8Array(a), u = le.create(e, s);
208
+ let s = se(t, "password"), c = se(n, "salt"), l = new Uint8Array(a), { iHash: u, oHash: d, outputLen: f } = fe.create(e, s);
212
209
  return {
213
210
  c: i,
214
211
  dkLen: a,
215
212
  asyncTick: o,
216
213
  DK: l,
217
- PRF: u,
218
- PRFSalt: u._cloneInto().update(c)
214
+ outputLen: f,
215
+ eng: me(u, d, c, new Uint8Array(f))
219
216
  };
220
217
  }
221
- function de(e, t, n, r, i) {
222
- return e.destroy(), t.destroy(), r && r.destroy(), T(i), n;
223
- }
224
- function fe(e, t, n, r) {
225
- let { c: i, dkLen: a, DK: o, PRF: s, PRFSalt: c } = ue(e, t, n, r), l, u = /* @__PURE__ */ new Uint8Array(4), d = E(u), f = new Uint8Array(s.outputLen);
226
- for (let e = 1, t = 0; t < a; e++, t += s.outputLen) {
227
- let n = o.subarray(t, t + s.outputLen);
228
- d.setInt32(0, e, !1), (l = c._cloneInto(l)).update(u).digestInto(f), n.set(f.subarray(0, n.length));
229
- for (let e = 1; e < i; e++) {
230
- s._cloneInto(l).update(f).digestInto(f);
231
- for (let e = 0; e < n.length; e++) n[e] ^= f[e];
232
- }
218
+ function me(e, t, n, r) {
219
+ let i = /* @__PURE__ */ new Uint8Array(4), a = T(i), o = e._cloneInto().update(n), s = t._cloneInto(), c = e._cloneInto, l = t._cloneInto;
220
+ return {
221
+ u1: (e, n) => {
222
+ 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));
223
+ },
224
+ rounds: (n, i) => {
225
+ for (let a = 1; a < n; a++) {
226
+ c.call(e, s).update(r).digestInto(r), l.call(t, s).update(r).digestInto(r);
227
+ for (let e = 0; e < i.length; e++) i[e] ^= r[e];
228
+ }
229
+ },
230
+ output: (n) => (e.destroy(), t.destroy(), o.destroy(), s.destroy(), w(r), n)
231
+ };
232
+ }
233
+ function he(e, t, n, r) {
234
+ let { c: i, dkLen: a, DK: o, outputLen: s, eng: c } = pe(e, t, n, r);
235
+ for (let e = 1, t = 0; t < a; e++, t += s) {
236
+ let n = o.subarray(t, t + s);
237
+ c.u1(e, n), c.rounds(i, n);
233
238
  }
234
- return de(s, c, o, l, f);
239
+ return c.output(o);
235
240
  }
236
241
  //#endregion
237
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_md.js
238
- var pe = class {
242
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/_u64.js
243
+ var E = /* @__PURE__ */ BigInt(2 ** 32 - 1), ge = /* @__PURE__ */ BigInt(32);
244
+ function _e(e, t = !1) {
245
+ return t ? {
246
+ h: Number(e & E),
247
+ l: Number(e >> ge & E)
248
+ } : {
249
+ h: Number(e >> ge & E) | 0,
250
+ l: Number(e & E) | 0
251
+ };
252
+ }
253
+ function ve(e, t = !1) {
254
+ let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
255
+ for (let a = 0; a < n; a++) {
256
+ let { h: n, l: o } = _e(e[a], t);
257
+ [r[a], i[a]] = [n, o];
258
+ }
259
+ return [r, i];
260
+ }
261
+ var ye = (e) => e / 2 ** 32 | 0, be = (e) => e >>> 0;
262
+ function xe(e, t, n, r) {
263
+ let i = ye(n), a = be(n);
264
+ e.setUint32(t, r ? a : i, r), e.setUint32(t + 4, r ? i : a, r);
265
+ }
266
+ var Se = (e, t, n) => e >>> n, Ce = (e, t, n) => e << 32 - n | t >>> n, D = (e, t, n) => e >>> n | t << 32 - n, O = (e, t, n) => e << 32 - n | t >>> n, k = (e, t, n) => e << 64 - n | t >>> n - 32, A = (e, t, n) => e >>> n - 32 | t << 64 - n;
267
+ function j(e, t, n, r) {
268
+ let i = (t >>> 0) + (r >>> 0);
269
+ return {
270
+ h: e + n + (i / 2 ** 32 | 0) | 0,
271
+ l: i | 0
272
+ };
273
+ }
274
+ var we = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Te = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, Ee = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), De = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Oe = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), ke = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Ae = class {
239
275
  blockLen;
240
276
  outputLen;
241
277
  canXOF = !1;
@@ -248,32 +284,29 @@ var pe = class {
248
284
  pos = 0;
249
285
  destroyed = !1;
250
286
  constructor(e, t, n, r) {
251
- this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = E(this.buffer);
287
+ this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = T(this.buffer);
252
288
  }
253
289
  update(e) {
254
- C(this), x(e);
255
- let { view: t, buffer: n, blockLen: r } = this, i = e.length;
256
- for (let a = 0; a < i;) {
257
- let o = Math.min(r - this.pos, i - a);
258
- if (o === r) {
259
- let t = E(e);
260
- for (; r <= i - a; a += r) this.process(t, a);
290
+ C(this), S(e);
291
+ let { view: t, buffer: n, blockLen: r } = this, i = e.length, a = !1;
292
+ for (let o = 0; o < i;) {
293
+ let s = Math.min(r - this.pos, i - o);
294
+ if (s === r) {
295
+ let t = T(e);
296
+ for (; r <= i - o; o += r) this.process(t, o);
297
+ a = !0;
261
298
  continue;
262
299
  }
263
- n.set(e.subarray(a, a + o), this.pos), this.pos += o, a += o, this.pos === r && (this.process(t, 0), this.pos = 0);
300
+ 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);
264
301
  }
265
- return this.length += e.length, this.roundClean(), this;
302
+ return this.length += e.length, a && this.roundClean(), this;
266
303
  }
267
304
  digestInto(e) {
268
- C(this), w(e, this), this.finished = !0;
305
+ C(this), ae(e, this), this.finished = !0;
269
306
  let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
270
- t[a++] = 128, T(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
271
- for (let e = a; e < r; e++) t[e] = 0;
272
- n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
273
- let o = E(e), s = this.outputLen;
274
- if (s % 4) throw Error("_sha2: outputLen must be aligned to 32bit");
275
- let c = s / 4, l = this.get();
276
- if (c > l.length) throw Error("_sha2: outputLen bigger than state");
307
+ t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)), xe(n, r - 8, this.length * 8, i), this.process(n, 0), this.roundClean();
308
+ let o = e === t ? n : T(e), s = this.outputLen, c = s / 4, l = this.get();
309
+ if (s % 4 || c > l.length) throw Error("invalid outputLen");
277
310
  for (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);
278
311
  }
279
312
  digest() {
@@ -282,15 +315,14 @@ var pe = class {
282
315
  let n = e.slice(0, t);
283
316
  return this.destroy(), n;
284
317
  }
285
- _cloneInto(e) {
286
- e ||= new this.constructor(), e.set(...this.get());
287
- let { blockLen: t, buffer: n, length: r, finished: i, destroyed: a, pos: o } = this;
288
- return e.destroyed = a, e.finished = i, e.length = r, e.pos = o, r % t && e.buffer.set(n), e;
318
+ _cloneIntoMeta(e) {
319
+ let { buffer: t, length: n, finished: r, destroyed: i, pos: a } = this;
320
+ return e.destroyed = i, e.finished = r, e.length = n, e.pos = a, a && e.buffer.set(t), e;
289
321
  }
290
322
  clone() {
291
323
  return this._cloneInto();
292
324
  }
293
- }, D = /* @__PURE__ */ Uint32Array.from([
325
+ }, je = /* @__PURE__ */ Uint32Array.from([
294
326
  1779033703,
295
327
  4089235720,
296
328
  3144134277,
@@ -307,35 +339,25 @@ var pe = class {
307
339
  4215389547,
308
340
  1541459225,
309
341
  327033209
310
- ]), O = /* @__PURE__ */ BigInt(2 ** 32 - 1), me = /* @__PURE__ */ BigInt(32);
311
- function he(e, t = !1) {
312
- return t ? {
313
- h: Number(e & O),
314
- l: Number(e >> me & O)
315
- } : {
316
- h: Number(e >> me & O) | 0,
317
- l: Number(e & O) | 0
318
- };
319
- }
320
- function ge(e, t = !1) {
321
- let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
322
- for (let a = 0; a < n; a++) {
323
- let { h: n, l: o } = he(e[a], t);
324
- [r[a], i[a]] = [n, o];
325
- }
326
- return [r, i];
327
- }
328
- var _e = (e, t, n) => e >>> n, ve = (e, t, n) => e << 32 - n | t >>> n, k = (e, t, n) => e >>> n | t << 32 - n, A = (e, t, n) => e << 32 - n | t >>> n, j = (e, t, n) => e << 64 - n | t >>> n - 32, M = (e, t, n) => e >>> n - 32 | t << 64 - n;
329
- function N(e, t, n, r) {
330
- let i = (t >>> 0) + (r >>> 0);
331
- return {
332
- h: e + n + (i / 2 ** 32 | 0) | 0,
333
- l: i | 0
334
- };
335
- }
336
- var ye = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), be = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, xe = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Se = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Ce = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), we = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Te = /* @__PURE__ */ ge((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), Ee = Te[0], De = Te[1], P = /* @__PURE__ */ new Uint32Array(80), F = /* @__PURE__ */ new Uint32Array(80), Oe = class extends pe {
337
- constructor(e) {
338
- super(128, e, 16, !1);
342
+ ]), Me = /* @__PURE__ */ ve((/* @__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))), Ne = Me[0], Pe = Me[1], M = /* @__PURE__ */ new Uint32Array(80), N = /* @__PURE__ */ new Uint32Array(80), Fe = class extends Ae {
343
+ Ah = 0;
344
+ Al = 0;
345
+ Bh = 0;
346
+ Bl = 0;
347
+ Ch = 0;
348
+ Cl = 0;
349
+ Dh = 0;
350
+ Dl = 0;
351
+ Eh = 0;
352
+ El = 0;
353
+ Fh = 0;
354
+ Fl = 0;
355
+ Gh = 0;
356
+ Gl = 0;
357
+ Hh = 0;
358
+ Hl = 0;
359
+ constructor(e, t) {
360
+ super(128, e, 16, !1), this.Ah = t[0] | 0, this.Al = t[1] | 0, this.Bh = t[2] | 0, this.Bl = t[3] | 0, this.Ch = t[4] | 0, this.Cl = t[5] | 0, this.Dh = t[6] | 0, this.Dl = t[7] | 0, this.Eh = t[8] | 0, this.El = t[9] | 0, this.Fh = t[10] | 0, this.Fl = t[11] | 0, this.Gh = t[12] | 0, this.Gl = t[13] | 0, this.Hh = t[14] | 0, this.Hl = t[15] | 0;
339
361
  }
340
362
  get() {
341
363
  let { Ah: e, Al: t, Bh: n, Bl: r, Ch: i, Cl: a, Dh: o, Dl: s, Eh: c, El: l, Fh: u, Fl: d, Gh: f, Gl: p, Hh: m, Hl: h } = this;
@@ -361,52 +383,39 @@ var ye = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), be = (e, t, n, r) => t
361
383
  set(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
362
384
  this.Ah = e | 0, this.Al = t | 0, this.Bh = n | 0, this.Bl = r | 0, this.Ch = i | 0, this.Cl = a | 0, this.Dh = o | 0, this.Dl = s | 0, this.Eh = c | 0, this.El = l | 0, this.Fh = u | 0, this.Fl = d | 0, this.Gh = f | 0, this.Gl = p | 0, this.Hh = m | 0, this.Hl = h | 0;
363
385
  }
386
+ _cloneInto(e) {
387
+ return (e ||= new this.constructor()).set(...this.get()), this._cloneIntoMeta(e);
388
+ }
364
389
  process(e, t) {
365
- for (let n = 0; n < 16; n++, t += 4) P[n] = e.getUint32(t), F[n] = e.getUint32(t += 4);
390
+ for (let n = 0; n < 16; n++, t += 4) M[n] = e.getUint32(t), N[n] = e.getUint32(t += 4);
366
391
  for (let e = 16; e < 80; e++) {
367
- let t = P[e - 15] | 0, n = F[e - 15] | 0, r = k(t, n, 1) ^ k(t, n, 8) ^ _e(t, n, 7), i = A(t, n, 1) ^ A(t, n, 8) ^ ve(t, n, 7), a = P[e - 2] | 0, o = F[e - 2] | 0, s = k(a, o, 19) ^ j(a, o, 61) ^ _e(a, o, 6), c = xe(i, A(a, o, 19) ^ M(a, o, 61) ^ ve(a, o, 6), F[e - 7], F[e - 16]);
368
- P[e] = Se(c, r, s, P[e - 7], P[e - 16]) | 0, F[e] = c | 0;
392
+ let t = M[e - 15] | 0, n = N[e - 15] | 0, r = D(t, n, 1) ^ D(t, n, 8) ^ Se(t, n, 7), i = O(t, n, 1) ^ O(t, n, 8) ^ Ce(t, n, 7), a = M[e - 2] | 0, o = N[e - 2] | 0, s = D(a, o, 19) ^ k(a, o, 61) ^ Se(a, o, 6), c = Ee(i, O(a, o, 19) ^ A(a, o, 61) ^ Ce(a, o, 6), N[e - 7], N[e - 16]), l = De(c, r, s, M[e - 7], M[e - 16]);
393
+ M[e] = l | 0, N[e] = c | 0;
369
394
  }
370
395
  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;
371
396
  for (let e = 0; e < 80; e++) {
372
- let t = k(u, d, 14) ^ k(u, d, 18) ^ j(u, d, 41), ee = A(u, d, 14) ^ A(u, d, 18) ^ M(u, d, 41), te = u & f ^ ~u & m, ne = d & p ^ ~d & h, v = Ce(_, ee, ne, De[e], F[e]), y = we(v, g, t, te, Ee[e], P[e]), b = v | 0, x = k(n, r, 28) ^ j(n, r, 34) ^ j(n, r, 39), S = A(n, r, 28) ^ M(n, r, 34) ^ M(n, r, 39), C = n & i ^ n & o ^ i & o, w = r & a ^ r & s ^ a & s;
373
- g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = N(c | 0, l | 0, y | 0, b | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
374
- let T = ye(b, S, w);
375
- n = be(T, y, x, C), r = T | 0;
397
+ let t = D(u, d, 14) ^ D(u, d, 18) ^ k(u, d, 41), ee = O(u, d, 14) ^ O(u, d, 18) ^ A(u, d, 41), te = u & f ^ ~u & m, ne = d & p ^ ~d & h, v = Oe(_, ee, ne, Pe[e], N[e]), y = ke(v, g, t, te, Ne[e], M[e]), b = v | 0, x = D(n, r, 28) ^ k(n, r, 34) ^ k(n, r, 39), S = O(n, r, 28) ^ A(n, r, 34) ^ A(n, r, 39), re = n & i ^ n & o ^ i & o, ie = r & a ^ r & s ^ a & s;
398
+ g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = j(c | 0, l | 0, y | 0, b | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
399
+ let C = we(b, S, ie);
400
+ n = Te(C, y, x, re), r = C | 0;
376
401
  }
377
- ({h: n, l: r} = N(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = N(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = N(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = N(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = N(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = N(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = N(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = N(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, _);
402
+ ({h: n, l: r} = j(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = j(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = j(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = j(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = j(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = j(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = j(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = j(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, _);
378
403
  }
379
404
  roundClean() {
380
- T(P, F);
405
+ w(M, N);
381
406
  }
382
407
  destroy() {
383
- this.destroyed = !0, T(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
384
- }
385
- }, ke = class extends Oe {
386
- Ah = D[0] | 0;
387
- Al = D[1] | 0;
388
- Bh = D[2] | 0;
389
- Bl = D[3] | 0;
390
- Ch = D[4] | 0;
391
- Cl = D[5] | 0;
392
- Dh = D[6] | 0;
393
- Dl = D[7] | 0;
394
- Eh = D[8] | 0;
395
- El = D[9] | 0;
396
- Fh = D[10] | 0;
397
- Fl = D[11] | 0;
398
- Gh = D[12] | 0;
399
- Gl = D[13] | 0;
400
- Hh = D[14] | 0;
401
- Hl = D[15] | 0;
408
+ this.destroyed = !0, w(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
409
+ }
410
+ }, Ie = class extends Fe {
402
411
  constructor() {
403
- super(64);
412
+ super(64, je);
404
413
  }
405
- }, Ae = /* @__PURE__ */ oe(() => new ke(), /* @__PURE__ */ se(3)), je = (t, n, r, i) => e.from(fe(Ae, t, n, {
414
+ }, Le = /* @__PURE__ */ le(() => new Ie(), /* @__PURE__ */ ue(3)), Re = (t, n, r, i) => e.from(he(Le, t, n, {
406
415
  c: r,
407
416
  dkLen: i
408
- })), Me = /* @__PURE__ */ RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
409
- function Ne(e, t) {
417
+ })), ze = /* @__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]*$");
418
+ function Be(e, t) {
410
419
  let n = [], r = t.exec(e);
411
420
  for (; r;) {
412
421
  let i = [];
@@ -417,13 +426,13 @@ function Ne(e, t) {
417
426
  }
418
427
  return n;
419
428
  }
420
- var Pe = function(e) {
421
- return Me.exec(e) != null;
429
+ var Ve = function(e) {
430
+ return ze.exec(e) != null;
422
431
  };
423
- function Fe(e) {
432
+ function He(e) {
424
433
  return e !== void 0;
425
434
  }
426
- var Ie = [
435
+ var P = [
427
436
  "hasOwnProperty",
428
437
  "toString",
429
438
  "valueOf",
@@ -431,102 +440,106 @@ var Ie = [
431
440
  "__defineSetter__",
432
441
  "__lookupGetter__",
433
442
  "__lookupSetter__"
434
- ], Le = [
443
+ ], Ue = [
435
444
  "__proto__",
436
445
  "constructor",
437
446
  "prototype"
438
- ], Re = {
447
+ ], We = {
439
448
  allowBooleanAttributes: !1,
440
449
  unpairedTags: []
441
450
  };
442
- function ze(e, t) {
443
- t = Object.assign({}, Re, t);
451
+ function Ge(e, t) {
452
+ t = Object.assign({}, We, t);
444
453
  let n = [], r = !1, i = !1;
445
454
  e[0] === "" && (e = e.substr(1));
446
455
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
447
- if (a += 2, a = Ve(e, a), a.err) return a;
456
+ if (a += 2, a = qe(e, a), a.err) return a;
448
457
  } else if (e[a] === "<") {
449
458
  let o = a;
450
459
  if (a++, e[a] === "!") {
451
- a = He(e, a);
460
+ a = Je(e, a);
452
461
  continue;
453
- } else {
462
+ }
463
+ {
454
464
  let s = !1;
455
465
  e[a] === "/" && (s = !0, a++);
456
466
  let c = "";
457
467
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
458
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !Ze(c)) {
468
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !rt(c)) {
459
469
  let t;
460
- return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", I("InvalidTag", t, L(e, a));
470
+ return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", F("InvalidTag", t, I(e, a));
461
471
  }
462
- let l = Ge(e, a);
463
- if (l === !1) return I("InvalidAttr", "Attributes for '" + c + "' have open quote.", L(e, a));
472
+ let l = Ze(e, a);
473
+ if (l === !1) return F("InvalidAttr", "Attributes for '" + c + "' have open quote.", I(e, a));
464
474
  let u = l.value;
465
475
  if (a = l.index, u[u.length - 1] === "/") {
466
476
  let n = a - u.length;
467
477
  u = u.substring(0, u.length - 1);
468
- let i = qe(u, t);
478
+ let i = $e(u, t);
469
479
  if (i === !0) r = !0;
470
- else return I(i.err.code, i.err.msg, L(e, n + i.err.line));
480
+ else return F(i.err.code, i.err.msg, I(e, n + i.err.line));
471
481
  } else if (s) {
472
- if (!l.tagClosed) return I("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", L(e, a));
473
- if (u.trim().length > 0) return I("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", L(e, o));
474
- if (n.length === 0) return I("InvalidTag", "Closing tag '" + c + "' has not been opened.", L(e, o));
482
+ if (!l.tagClosed) return F("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", I(e, a));
483
+ if (u.trim().length > 0) return F("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", I(e, o));
484
+ if (n.length === 0) return F("InvalidTag", "Closing tag '" + c + "' has not been opened.", I(e, o));
475
485
  {
476
486
  let t = n.pop();
477
487
  if (c !== t.tagName) {
478
- let n = L(e, t.tagStartPos);
479
- return I("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", L(e, o));
488
+ let n = I(e, t.tagStartPos);
489
+ return F("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", I(e, o));
480
490
  }
481
491
  n.length == 0 && (i = !0);
482
492
  }
483
493
  } else {
484
- let s = qe(u, t);
485
- if (s !== !0) return I(s.err.code, s.err.msg, L(e, a - u.length + s.err.line));
486
- if (i === !0) return I("InvalidXml", "Multiple possible root nodes found.", L(e, a));
494
+ let s = $e(u, t);
495
+ if (s !== !0) return F(s.err.code, s.err.msg, I(e, a - u.length + s.err.line));
496
+ if (i === !0) return F("InvalidXml", "Multiple possible root nodes found.", I(e, a));
487
497
  t.unpairedTags.indexOf(c) !== -1 || n.push({
488
498
  tagName: c,
489
499
  tagStartPos: o
490
500
  }), r = !0;
491
501
  }
492
- for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
493
- a++, a = He(e, a);
494
- continue;
495
- } else if (e[a + 1] === "?") {
496
- if (a = Ve(e, ++a), a.err) return a;
497
- } else break;
498
- else if (e[a] === "&") {
499
- let t = Ye(e, a);
500
- if (t == -1) return I("InvalidChar", "char '&' is not expected.", L(e, a));
502
+ for (a++; a < e.length; a++) if (e[a] === "<") {
503
+ if (e[a + 1] === "!") {
504
+ a++, a = Je(e, a);
505
+ continue;
506
+ }
507
+ if (e[a + 1] === "?") {
508
+ if (a = qe(e, ++a), a.err) return a;
509
+ } else break;
510
+ } else if (e[a] === "&") {
511
+ let t = tt(e, a);
512
+ if (t == -1) return F("InvalidChar", "char '&' is not expected.", I(e, a));
501
513
  a = t;
502
- } else if (i === !0 && !Be(e[a])) return I("InvalidXml", "Extra text at the end", L(e, a));
514
+ } else if (i === !0 && !Ke(e[a])) return F("InvalidXml", "Extra text at the end", I(e, a));
503
515
  e[a] === "<" && a--;
504
516
  }
505
517
  } else {
506
- if (Be(e[a])) continue;
507
- return I("InvalidChar", "char '" + e[a] + "' is not expected.", L(e, a));
518
+ if (Ke(e[a])) continue;
519
+ return F("InvalidChar", "char '" + e[a] + "' is not expected.", I(e, a));
508
520
  }
509
- return r ? n.length == 1 ? I("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", L(e, n[0].tagStartPos)) : n.length > 0 ? I("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
521
+ return r ? n.length == 1 ? F("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", I(e, n[0].tagStartPos)) : n.length > 0 ? F("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
510
522
  line: 1,
511
523
  col: 1
512
- }) : !0 : I("InvalidXml", "Start tag expected.", 1);
524
+ }) : !0 : F("InvalidXml", "Start tag expected.", 1);
513
525
  }
514
- function Be(e) {
526
+ function Ke(e) {
515
527
  return e === " " || e === " " || e === "\n" || e === "\r";
516
528
  }
517
- function Ve(e, t) {
529
+ function qe(e, t) {
518
530
  let n = t;
519
531
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
520
532
  let r = e.substr(n, t - n);
521
- if (t > 5 && r === "xml") return I("InvalidXml", "XML declaration allowed only at the start of the document.", L(e, t));
533
+ if (t > 5 && r === "xml") return F("InvalidXml", "XML declaration allowed only at the start of the document.", I(e, t));
522
534
  if (e[t] == "?" && e[t + 1] == ">") {
523
535
  t++;
524
536
  break;
525
- } else continue;
537
+ }
538
+ continue;
526
539
  }
527
540
  return t;
528
541
  }
529
- function He(e, t) {
542
+ function Je(e, t) {
530
543
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
531
544
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
532
545
  t += 2;
@@ -544,11 +557,11 @@ function He(e, t) {
544
557
  }
545
558
  return t;
546
559
  }
547
- var Ue = "\"", We = "'";
548
- function Ge(e, t) {
560
+ var Ye = "\"", Xe = "'";
561
+ function Ze(e, t) {
549
562
  let n = "", r = "", i = !1;
550
563
  for (; t < e.length; t++) {
551
- if (e[t] === Ue || e[t] === We) r === "" ? r = e[t] : r !== e[t] || (r = "");
564
+ if (e[t] === Ye || e[t] === Xe) r === "" ? r = e[t] : r !== e[t] || (r = "");
552
565
  else if (e[t] === ">" && r === "") {
553
566
  i = !0;
554
567
  break;
@@ -561,21 +574,21 @@ function Ge(e, t) {
561
574
  tagClosed: i
562
575
  };
563
576
  }
564
- var Ke = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
565
- function qe(e, t) {
566
- let n = Ne(e, Ke), r = {};
577
+ var Qe = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
578
+ function $e(e, t) {
579
+ let n = Be(e, Qe), r = {};
567
580
  for (let e = 0; e < n.length; e++) {
568
- if (n[e][1].length === 0) return I("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", R(n[e]));
569
- if (n[e][3] !== void 0 && n[e][4] === void 0) return I("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", R(n[e]));
570
- if (n[e][3] === void 0 && !t.allowBooleanAttributes) return I("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", R(n[e]));
581
+ if (n[e][1].length === 0) return F("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", L(n[e]));
582
+ if (n[e][3] !== void 0 && n[e][4] === void 0) return F("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", L(n[e]));
583
+ if (n[e][3] === void 0 && !t.allowBooleanAttributes) return F("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", L(n[e]));
571
584
  let i = n[e][2];
572
- if (!Xe(i)) return I("InvalidAttr", "Attribute '" + i + "' is an invalid name.", R(n[e]));
585
+ if (!nt(i)) return F("InvalidAttr", "Attribute '" + i + "' is an invalid name.", L(n[e]));
573
586
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
574
- else return I("InvalidAttr", "Attribute '" + i + "' is repeated.", R(n[e]));
587
+ else return F("InvalidAttr", "Attribute '" + i + "' is repeated.", L(n[e]));
575
588
  }
576
589
  return !0;
577
590
  }
578
- function Je(e, t) {
591
+ function et(e, t) {
579
592
  let n = /\d/;
580
593
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
581
594
  if (e[t] === ";") return t;
@@ -583,9 +596,9 @@ function Je(e, t) {
583
596
  }
584
597
  return -1;
585
598
  }
586
- function Ye(e, t) {
599
+ function tt(e, t) {
587
600
  if (t++, e[t] === ";") return -1;
588
- if (e[t] === "#") return t++, Je(e, t);
601
+ if (e[t] === "#") return t++, et(e, t);
589
602
  let n = 0;
590
603
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
591
604
  if (e[t] === ";") break;
@@ -593,7 +606,7 @@ function Ye(e, t) {
593
606
  }
594
607
  return t;
595
608
  }
596
- function I(e, t, n) {
609
+ function F(e, t, n) {
597
610
  return { err: {
598
611
  code: e,
599
612
  msg: t,
@@ -601,949 +614,25 @@ function I(e, t, n) {
601
614
  col: n.col
602
615
  } };
603
616
  }
604
- function Xe(e) {
605
- return Pe(e);
617
+ function nt(e) {
618
+ return Ve(e);
606
619
  }
607
- function Ze(e) {
608
- return Pe(e);
620
+ function rt(e) {
621
+ return Ve(e);
609
622
  }
610
- function L(e, t) {
623
+ function I(e, t) {
611
624
  let n = e.substring(0, t).split(/\r?\n/);
612
625
  return {
613
626
  line: n.length,
614
627
  col: n[n.length - 1].length + 1
615
628
  };
616
629
  }
617
- function R(e) {
630
+ function L(e) {
618
631
  return e.startIndex + e[1].length;
619
632
  }
620
633
  //#endregion
621
- //#region ../../node_modules/.pnpm/@nodable+entities@2.2.0/node_modules/@nodable/entities/src/entities.js
622
- var Qe = {
623
- amp: "&",
624
- AMP: "&",
625
- lt: "<",
626
- LT: "<",
627
- gt: ">",
628
- GT: ">",
629
- quot: "\"",
630
- QUOT: "\"",
631
- apos: "'",
632
- lsquo: "‘",
633
- rsquo: "’",
634
- ldquo: "“",
635
- rdquo: "”",
636
- lsquor: "‚",
637
- rsquor: "’",
638
- ldquor: "„",
639
- bdquo: "„",
640
- comma: ",",
641
- period: ".",
642
- colon: ":",
643
- semi: ";",
644
- excl: "!",
645
- quest: "?",
646
- num: "#",
647
- dollar: "$",
648
- percent: "%",
649
- ast: "*",
650
- commat: "@",
651
- lowbar: "_",
652
- verbar: "|",
653
- vert: "|",
654
- sol: "/",
655
- bsol: "\\",
656
- lbrace: "{",
657
- rbrace: "}",
658
- lbrack: "[",
659
- rbrack: "]",
660
- lpar: "(",
661
- rpar: ")",
662
- nbsp: "\xA0",
663
- iexcl: "¡",
664
- cent: "¢",
665
- pound: "£",
666
- curren: "¤",
667
- yen: "¥",
668
- brvbar: "¦",
669
- sect: "§",
670
- uml: "¨",
671
- copy: "©",
672
- COPY: "©",
673
- ordf: "ª",
674
- laquo: "«",
675
- not: "¬",
676
- shy: "­",
677
- reg: "®",
678
- REG: "®",
679
- macr: "¯",
680
- deg: "°",
681
- plusmn: "±",
682
- sup2: "²",
683
- sup3: "³",
684
- acute: "´",
685
- micro: "µ",
686
- para: "¶",
687
- middot: "·",
688
- cedil: "¸",
689
- sup1: "¹",
690
- ordm: "º",
691
- raquo: "»",
692
- frac14: "¼",
693
- frac12: "½",
694
- half: "½",
695
- frac34: "¾",
696
- iquest: "¿",
697
- times: "×",
698
- div: "÷",
699
- divide: "÷"
700
- }, $e = {
701
- Agrave: "À",
702
- agrave: "à",
703
- Aacute: "Á",
704
- aacute: "á",
705
- Acirc: "Â",
706
- acirc: "â",
707
- Atilde: "Ã",
708
- atilde: "ã",
709
- Auml: "Ä",
710
- auml: "ä",
711
- Aring: "Å",
712
- aring: "å",
713
- AElig: "Æ",
714
- aelig: "æ",
715
- Ccedil: "Ç",
716
- ccedil: "ç",
717
- Egrave: "È",
718
- egrave: "è",
719
- Eacute: "É",
720
- eacute: "é",
721
- Ecirc: "Ê",
722
- ecirc: "ê",
723
- Euml: "Ë",
724
- euml: "ë",
725
- Igrave: "Ì",
726
- igrave: "ì",
727
- Iacute: "Í",
728
- iacute: "í",
729
- Icirc: "Î",
730
- icirc: "î",
731
- Iuml: "Ï",
732
- iuml: "ï",
733
- ETH: "Ð",
734
- eth: "ð",
735
- Ntilde: "Ñ",
736
- ntilde: "ñ",
737
- Ograve: "Ò",
738
- ograve: "ò",
739
- Oacute: "Ó",
740
- oacute: "ó",
741
- Ocirc: "Ô",
742
- ocirc: "ô",
743
- Otilde: "Õ",
744
- otilde: "õ",
745
- Ouml: "Ö",
746
- ouml: "ö",
747
- Oslash: "Ø",
748
- oslash: "ø",
749
- Ugrave: "Ù",
750
- ugrave: "ù",
751
- Uacute: "Ú",
752
- uacute: "ú",
753
- Ucirc: "Û",
754
- ucirc: "û",
755
- Uuml: "Ü",
756
- uuml: "ü",
757
- Yacute: "Ý",
758
- yacute: "ý",
759
- THORN: "Þ",
760
- thorn: "þ",
761
- szlig: "ß",
762
- yuml: "ÿ",
763
- Yuml: "Ÿ"
764
- }, et = {
765
- Amacr: "Ā",
766
- amacr: "ā",
767
- Abreve: "Ă",
768
- abreve: "ă",
769
- Aogon: "Ą",
770
- aogon: "ą",
771
- Cacute: "Ć",
772
- cacute: "ć",
773
- Ccirc: "Ĉ",
774
- ccirc: "ĉ",
775
- Cdot: "Ċ",
776
- cdot: "ċ",
777
- Ccaron: "Č",
778
- ccaron: "č",
779
- Dcaron: "Ď",
780
- dcaron: "ď",
781
- Dstrok: "Đ",
782
- dstrok: "đ",
783
- Emacr: "Ē",
784
- emacr: "ē",
785
- Ecaron: "Ě",
786
- ecaron: "ě",
787
- Edot: "Ė",
788
- edot: "ė",
789
- Eogon: "Ę",
790
- eogon: "ę",
791
- Gcirc: "Ĝ",
792
- gcirc: "ĝ",
793
- Gbreve: "Ğ",
794
- gbreve: "ğ",
795
- Gdot: "Ġ",
796
- gdot: "ġ",
797
- Gcedil: "Ģ",
798
- Hcirc: "Ĥ",
799
- hcirc: "ĥ",
800
- Hstrok: "Ħ",
801
- hstrok: "ħ",
802
- Itilde: "Ĩ",
803
- itilde: "ĩ",
804
- Imacr: "Ī",
805
- imacr: "ī",
806
- Iogon: "Į",
807
- iogon: "į",
808
- Idot: "İ",
809
- IJlig: "IJ",
810
- ijlig: "ij",
811
- Jcirc: "Ĵ",
812
- jcirc: "ĵ",
813
- Kcedil: "Ķ",
814
- kcedil: "ķ",
815
- kgreen: "ĸ",
816
- Lacute: "Ĺ",
817
- lacute: "ĺ",
818
- Lcedil: "Ļ",
819
- lcedil: "ļ",
820
- Lcaron: "Ľ",
821
- lcaron: "ľ",
822
- Lmidot: "Ŀ",
823
- lmidot: "ŀ",
824
- Lstrok: "Ł",
825
- lstrok: "ł",
826
- Nacute: "Ń",
827
- nacute: "ń",
828
- Ncaron: "Ň",
829
- ncaron: "ň",
830
- Ncedil: "Ņ",
831
- ncedil: "ņ",
832
- ENG: "Ŋ",
833
- eng: "ŋ",
834
- Omacr: "Ō",
835
- omacr: "ō",
836
- Odblac: "Ő",
837
- odblac: "ő",
838
- OElig: "Œ",
839
- oelig: "œ",
840
- Racute: "Ŕ",
841
- racute: "ŕ",
842
- Rcaron: "Ř",
843
- rcaron: "ř",
844
- Rcedil: "Ŗ",
845
- rcedil: "ŗ",
846
- Sacute: "Ś",
847
- sacute: "ś",
848
- Scirc: "Ŝ",
849
- scirc: "ŝ",
850
- Scedil: "Ş",
851
- scedil: "ş",
852
- Scaron: "Š",
853
- scaron: "š",
854
- Tcedil: "Ţ",
855
- tcedil: "ţ",
856
- Tcaron: "Ť",
857
- tcaron: "ť",
858
- Tstrok: "Ŧ",
859
- tstrok: "ŧ",
860
- Utilde: "Ũ",
861
- utilde: "ũ",
862
- Umacr: "Ū",
863
- umacr: "ū",
864
- Ubreve: "Ŭ",
865
- ubreve: "ŭ",
866
- Uring: "Ů",
867
- uring: "ů",
868
- Udblac: "Ű",
869
- udblac: "ű",
870
- Uogon: "Ų",
871
- uogon: "ų",
872
- Wcirc: "Ŵ",
873
- wcirc: "ŵ",
874
- Ycirc: "Ŷ",
875
- ycirc: "ŷ",
876
- Zacute: "Ź",
877
- zacute: "ź",
878
- Zdot: "Ż",
879
- zdot: "ż",
880
- Zcaron: "Ž",
881
- zcaron: "ž"
882
- }, tt = {
883
- Alpha: "Α",
884
- alpha: "α",
885
- Beta: "Β",
886
- beta: "β",
887
- Gamma: "Γ",
888
- gamma: "γ",
889
- Delta: "Δ",
890
- delta: "δ",
891
- Epsilon: "Ε",
892
- epsilon: "ε",
893
- epsiv: "ϵ",
894
- varepsilon: "ϵ",
895
- Zeta: "Ζ",
896
- zeta: "ζ",
897
- Eta: "Η",
898
- eta: "η",
899
- Theta: "Θ",
900
- theta: "θ",
901
- thetasym: "ϑ",
902
- vartheta: "ϑ",
903
- Iota: "Ι",
904
- iota: "ι",
905
- Kappa: "Κ",
906
- kappa: "κ",
907
- kappav: "ϰ",
908
- varkappa: "ϰ",
909
- Lambda: "Λ",
910
- lambda: "λ",
911
- Mu: "Μ",
912
- mu: "μ",
913
- Nu: "Ν",
914
- nu: "ν",
915
- Xi: "Ξ",
916
- xi: "ξ",
917
- Omicron: "Ο",
918
- omicron: "ο",
919
- Pi: "Π",
920
- pi: "π",
921
- piv: "ϖ",
922
- varpi: "ϖ",
923
- Rho: "Ρ",
924
- rho: "ρ",
925
- rhov: "ϱ",
926
- varrho: "ϱ",
927
- Sigma: "Σ",
928
- sigma: "σ",
929
- sigmaf: "ς",
930
- sigmav: "ς",
931
- varsigma: "ς",
932
- Tau: "Τ",
933
- tau: "τ",
934
- Upsilon: "Υ",
935
- upsilon: "υ",
936
- upsi: "υ",
937
- Upsi: "ϒ",
938
- upsih: "ϒ",
939
- Phi: "Φ",
940
- phi: "φ",
941
- phiv: "ϕ",
942
- varphi: "ϕ",
943
- Chi: "Χ",
944
- chi: "χ",
945
- Psi: "Ψ",
946
- psi: "ψ",
947
- Omega: "Ω",
948
- omega: "ω",
949
- ohm: "Ω",
950
- Gammad: "Ϝ",
951
- gammad: "ϝ",
952
- digamma: "ϝ"
953
- }, nt = {
954
- Afr: "𝔄",
955
- afr: "𝔞",
956
- Acy: "А",
957
- acy: "а",
958
- Bcy: "Б",
959
- bcy: "б",
960
- Vcy: "В",
961
- vcy: "в",
962
- Gcy: "Г",
963
- gcy: "г",
964
- Dcy: "Д",
965
- dcy: "д",
966
- IEcy: "Е",
967
- iecy: "е",
968
- IOcy: "Ё",
969
- iocy: "ё",
970
- ZHcy: "Ж",
971
- zhcy: "ж",
972
- Zcy: "З",
973
- zcy: "з",
974
- Icy: "И",
975
- icy: "и",
976
- Jcy: "Й",
977
- jcy: "й",
978
- Kcy: "К",
979
- kcy: "к",
980
- Lcy: "Л",
981
- lcy: "л",
982
- Mcy: "М",
983
- mcy: "м",
984
- Ncy: "Н",
985
- ncy: "н",
986
- Ocy: "О",
987
- ocy: "о",
988
- Pcy: "П",
989
- pcy: "п",
990
- Rcy: "Р",
991
- rcy: "р",
992
- Scy: "С",
993
- scy: "с",
994
- Tcy: "Т",
995
- tcy: "т",
996
- Ucy: "У",
997
- ucy: "у",
998
- Fcy: "Ф",
999
- fcy: "ф",
1000
- KHcy: "Х",
1001
- khcy: "х",
1002
- TScy: "Ц",
1003
- tscy: "ц",
1004
- CHcy: "Ч",
1005
- chcy: "ч",
1006
- SHcy: "Ш",
1007
- shcy: "ш",
1008
- SHCHcy: "Щ",
1009
- shchcy: "щ",
1010
- HARDcy: "Ъ",
1011
- hardcy: "ъ",
1012
- Ycy: "Ы",
1013
- ycy: "ы",
1014
- SOFTcy: "Ь",
1015
- softcy: "ь",
1016
- Ecy: "Э",
1017
- ecy: "э",
1018
- YUcy: "Ю",
1019
- yucy: "ю",
1020
- YAcy: "Я",
1021
- yacy: "я",
1022
- DJcy: "Ђ",
1023
- djcy: "ђ",
1024
- GJcy: "Ѓ",
1025
- gjcy: "ѓ",
1026
- Jukcy: "Є",
1027
- jukcy: "є",
1028
- DScy: "Ѕ",
1029
- dscy: "ѕ",
1030
- Iukcy: "І",
1031
- iukcy: "і",
1032
- YIcy: "Ї",
1033
- yicy: "ї",
1034
- Jsercy: "Ј",
1035
- jsercy: "ј",
1036
- LJcy: "Љ",
1037
- ljcy: "љ",
1038
- NJcy: "Њ",
1039
- njcy: "њ",
1040
- TSHcy: "Ћ",
1041
- tshcy: "ћ",
1042
- KJcy: "Ќ",
1043
- kjcy: "ќ",
1044
- Ubrcy: "Ў",
1045
- ubrcy: "ў",
1046
- DZcy: "Џ",
1047
- dzcy: "џ"
1048
- }, rt = {
1049
- plus: "+",
1050
- pm: "±",
1051
- times: "×",
1052
- div: "÷",
1053
- divide: "÷",
1054
- sdot: "⋅",
1055
- star: "☆",
1056
- starf: "★",
1057
- bigstar: "★",
1058
- lowast: "∗",
1059
- ast: "*",
1060
- midast: "*",
1061
- compfn: "∘",
1062
- smallcircle: "∘",
1063
- bullet: "•",
1064
- bull: "•",
1065
- nbsp: "\xA0",
1066
- hellip: "…",
1067
- mldr: "…",
1068
- prime: "′",
1069
- Prime: "″",
1070
- tprime: "‴",
1071
- bprime: "‵",
1072
- backprime: "‵",
1073
- minus: "−",
1074
- minusd: "∸",
1075
- dotminus: "∸",
1076
- plusdo: "∔",
1077
- dotplus: "∔",
1078
- plusmn: "±",
1079
- minusplus: "∓",
1080
- mnplus: "∓",
1081
- mp: "∓",
1082
- setminus: "∖",
1083
- smallsetminus: "∖",
1084
- Backslash: "∖",
1085
- setmn: "∖",
1086
- ssetmn: "∖",
1087
- lowbar: "_",
1088
- verbar: "|",
1089
- vert: "|",
1090
- VerticalLine: "|",
1091
- colon: ":",
1092
- Colon: "∷",
1093
- Proportion: "∷",
1094
- ratio: "∶",
1095
- equals: "=",
1096
- ne: "≠",
1097
- nequiv: "≢",
1098
- equiv: "≡",
1099
- Congruent: "≡",
1100
- sim: "∼",
1101
- thicksim: "∼",
1102
- thksim: "∼",
1103
- sime: "≃",
1104
- simeq: "≃",
1105
- TildeEqual: "≃",
1106
- asymp: "≈",
1107
- approx: "≈",
1108
- thickapprox: "≈",
1109
- thkap: "≈",
1110
- TildeTilde: "≈",
1111
- ncong: "≇",
1112
- cong: "≅",
1113
- TildeFullEqual: "≅",
1114
- asympeq: "≍",
1115
- CupCap: "≍",
1116
- bump: "≎",
1117
- Bumpeq: "≎",
1118
- HumpDownHump: "≎",
1119
- bumpe: "≏",
1120
- bumpeq: "≏",
1121
- HumpEqual: "≏",
1122
- le: "≤",
1123
- LessEqual: "≤",
1124
- ge: "≥",
1125
- GreaterEqual: "≥",
1126
- lesseqgtr: "⋚",
1127
- lesseqqgtr: "⪋",
1128
- greater: ">",
1129
- less: "<"
1130
- }, it = {
1131
- alefsym: "ℵ",
1132
- aleph: "ℵ",
1133
- beth: "ℶ",
1134
- gimel: "ℷ",
1135
- daleth: "ℸ",
1136
- forall: "∀",
1137
- ForAll: "∀",
1138
- part: "∂",
1139
- PartialD: "∂",
1140
- exist: "∃",
1141
- Exists: "∃",
1142
- nexist: "∄",
1143
- nexists: "∄",
1144
- empty: "∅",
1145
- emptyset: "∅",
1146
- emptyv: "∅",
1147
- varnothing: "∅",
1148
- nabla: "∇",
1149
- Del: "∇",
1150
- isin: "∈",
1151
- isinv: "∈",
1152
- in: "∈",
1153
- Element: "∈",
1154
- notin: "∉",
1155
- notinva: "∉",
1156
- ni: "∋",
1157
- niv: "∋",
1158
- SuchThat: "∋",
1159
- ReverseElement: "∋",
1160
- notni: "∌",
1161
- notniva: "∌",
1162
- prod: "∏",
1163
- Product: "∏",
1164
- coprod: "∐",
1165
- Coproduct: "∐",
1166
- sum: "∑",
1167
- Sum: "∑",
1168
- minus: "−",
1169
- mp: "∓",
1170
- plusdo: "∔",
1171
- dotplus: "∔",
1172
- setminus: "∖",
1173
- lowast: "∗",
1174
- radic: "√",
1175
- Sqrt: "√",
1176
- prop: "∝",
1177
- propto: "∝",
1178
- Proportional: "∝",
1179
- varpropto: "∝",
1180
- infin: "∞",
1181
- infintie: "⧝",
1182
- ang: "∠",
1183
- angle: "∠",
1184
- angmsd: "∡",
1185
- measuredangle: "∡",
1186
- angsph: "∢",
1187
- mid: "∣",
1188
- VerticalBar: "∣",
1189
- nmid: "∤",
1190
- nsmid: "∤",
1191
- npar: "∦",
1192
- parallel: "∥",
1193
- spar: "∥",
1194
- nparallel: "∦",
1195
- nspar: "∦",
1196
- and: "∧",
1197
- wedge: "∧",
1198
- or: "∨",
1199
- vee: "∨",
1200
- cap: "∩",
1201
- cup: "∪",
1202
- int: "∫",
1203
- Integral: "∫",
1204
- conint: "∮",
1205
- ContourIntegral: "∮",
1206
- Conint: "∯",
1207
- DoubleContourIntegral: "∯",
1208
- Cconint: "∰",
1209
- there4: "∴",
1210
- therefore: "∴",
1211
- Therefore: "∴",
1212
- becaus: "∵",
1213
- because: "∵",
1214
- Because: "∵",
1215
- ratio: "∶",
1216
- Proportion: "∷",
1217
- minusd: "∸",
1218
- dotminus: "∸",
1219
- mDDot: "∺",
1220
- homtht: "∻",
1221
- sim: "∼",
1222
- bsimg: "∽",
1223
- backsim: "∽",
1224
- ac: "∾",
1225
- mstpos: "∾",
1226
- acd: "∿",
1227
- VerticalTilde: "≀",
1228
- wr: "≀",
1229
- wreath: "≀",
1230
- nsime: "≄",
1231
- nsimeq: "≄",
1232
- ncong: "≇",
1233
- simne: "≆",
1234
- ncongdot: "⩭̸",
1235
- ngsim: "≵",
1236
- nsim: "≁",
1237
- napprox: "≉",
1238
- nap: "≉",
1239
- ngeq: "≱",
1240
- nge: "≱",
1241
- nleq: "≰",
1242
- nle: "≰",
1243
- ngtr: "≯",
1244
- ngt: "≯",
1245
- nless: "≮",
1246
- nlt: "≮",
1247
- nprec: "⊀",
1248
- npr: "⊀",
1249
- nsucc: "⊁",
1250
- nsc: "⊁"
1251
- }, at = {
1252
- larr: "←",
1253
- leftarrow: "←",
1254
- LeftArrow: "←",
1255
- uarr: "↑",
1256
- uparrow: "↑",
1257
- UpArrow: "↑",
1258
- rarr: "→",
1259
- rightarrow: "→",
1260
- RightArrow: "→",
1261
- darr: "↓",
1262
- downarrow: "↓",
1263
- DownArrow: "↓",
1264
- harr: "↔",
1265
- leftrightarrow: "↔",
1266
- LeftRightArrow: "↔",
1267
- varr: "↕",
1268
- updownarrow: "↕",
1269
- UpDownArrow: "↕",
1270
- nwarr: "↖",
1271
- nwarrow: "↖",
1272
- UpperLeftArrow: "↖",
1273
- nearr: "↗",
1274
- nearrow: "↗",
1275
- UpperRightArrow: "↗",
1276
- searr: "↘",
1277
- searrow: "↘",
1278
- LowerRightArrow: "↘",
1279
- swarr: "↙",
1280
- swarrow: "↙",
1281
- LowerLeftArrow: "↙",
1282
- lArr: "⇐",
1283
- Leftarrow: "⇐",
1284
- uArr: "⇑",
1285
- Uparrow: "⇑",
1286
- rArr: "⇒",
1287
- Rightarrow: "⇒",
1288
- dArr: "⇓",
1289
- Downarrow: "⇓",
1290
- hArr: "⇔",
1291
- Leftrightarrow: "⇔",
1292
- iff: "⇔",
1293
- vArr: "⇕",
1294
- Updownarrow: "⇕",
1295
- lAarr: "⇚",
1296
- Lleftarrow: "⇚",
1297
- rAarr: "⇛",
1298
- Rrightarrow: "⇛",
1299
- lrarr: "⇆",
1300
- leftrightarrows: "⇆",
1301
- rlarr: "⇄",
1302
- rightleftarrows: "⇄",
1303
- lrhar: "⇋",
1304
- leftrightharpoons: "⇋",
1305
- ReverseEquilibrium: "⇋",
1306
- rlhar: "⇌",
1307
- rightleftharpoons: "⇌",
1308
- Equilibrium: "⇌",
1309
- udarr: "⇅",
1310
- UpArrowDownArrow: "⇅",
1311
- duarr: "⇵",
1312
- DownArrowUpArrow: "⇵",
1313
- llarr: "⇇",
1314
- leftleftarrows: "⇇",
1315
- rrarr: "⇉",
1316
- rightrightarrows: "⇉",
1317
- ddarr: "⇊",
1318
- downdownarrows: "⇊",
1319
- har: "↽",
1320
- lhard: "↽",
1321
- leftharpoondown: "↽",
1322
- lharu: "↼",
1323
- leftharpoonup: "↼",
1324
- rhard: "⇁",
1325
- rightharpoondown: "⇁",
1326
- rharu: "⇀",
1327
- rightharpoonup: "⇀",
1328
- lsh: "↰",
1329
- Lsh: "↰",
1330
- rsh: "↱",
1331
- Rsh: "↱",
1332
- ldsh: "↲",
1333
- rdsh: "↳",
1334
- hookleftarrow: "↩",
1335
- hookrightarrow: "↪",
1336
- mapstoleft: "↤",
1337
- mapstoup: "↥",
1338
- map: "↦",
1339
- mapsto: "↦",
1340
- mapstodown: "↧",
1341
- crarr: "↵",
1342
- nleftarrow: "↚",
1343
- nleftrightarrow: "↮",
1344
- nrightarrow: "↛",
1345
- nrarr: "↛",
1346
- larrtl: "↢",
1347
- rarrtl: "↣",
1348
- leftarrowtail: "↢",
1349
- rightarrowtail: "↣",
1350
- twoheadleftarrow: "↞",
1351
- twoheadrightarrow: "↠",
1352
- Larr: "↞",
1353
- Rarr: "↠",
1354
- larrhk: "↩",
1355
- rarrhk: "↪",
1356
- larrlp: "↫",
1357
- looparrowleft: "↫",
1358
- rarrlp: "↬",
1359
- looparrowright: "↬",
1360
- harrw: "↭",
1361
- leftrightsquigarrow: "↭",
1362
- nrarrw: "↝̸",
1363
- rarrw: "↝",
1364
- rightsquigarrow: "↝",
1365
- larrbfs: "⤟",
1366
- rarrbfs: "⤠",
1367
- nvHarr: "⤄",
1368
- nvlArr: "⤂",
1369
- nvrArr: "⤃",
1370
- larrfs: "⤝",
1371
- rarrfs: "⤞",
1372
- Map: "⤅",
1373
- larrsim: "⥳",
1374
- rarrsim: "⥴",
1375
- harrcir: "⥈",
1376
- Uarrocir: "⥉",
1377
- lurdshar: "⥊",
1378
- ldrdhar: "⥧",
1379
- ldrushar: "⥋",
1380
- rdldhar: "⥩",
1381
- lrhard: "⥭",
1382
- uharr: "↾",
1383
- uharl: "↿",
1384
- dharr: "⇂",
1385
- dharl: "⇃",
1386
- Uarr: "↟",
1387
- Darr: "↡",
1388
- zigrarr: "⇝",
1389
- nwArr: "⇖",
1390
- neArr: "⇗",
1391
- seArr: "⇘",
1392
- swArr: "⇙",
1393
- nharr: "↮",
1394
- nhArr: "⇎",
1395
- nlarr: "↚",
1396
- nlArr: "⇍",
1397
- nrArr: "⇏",
1398
- larrb: "⇤",
1399
- LeftArrowBar: "⇤",
1400
- rarrb: "⇥",
1401
- RightArrowBar: "⇥"
1402
- }, ot = {
1403
- square: "□",
1404
- Square: "□",
1405
- squ: "□",
1406
- squf: "▪",
1407
- squarf: "▪",
1408
- blacksquar: "▪",
1409
- blacksquare: "▪",
1410
- FilledVerySmallSquare: "▪",
1411
- blk34: "▓",
1412
- blk12: "▒",
1413
- blk14: "░",
1414
- block: "█",
1415
- srect: "▭",
1416
- rect: "▭",
1417
- sdot: "⋅",
1418
- sdotb: "⊡",
1419
- dotsquare: "⊡",
1420
- triangle: "▵",
1421
- tri: "▵",
1422
- trine: "▵",
1423
- utri: "▵",
1424
- triangledown: "▿",
1425
- dtri: "▿",
1426
- tridown: "▿",
1427
- triangleleft: "◃",
1428
- ltri: "◃",
1429
- triangleright: "▹",
1430
- rtri: "▹",
1431
- blacktriangle: "▴",
1432
- utrif: "▴",
1433
- blacktriangledown: "▾",
1434
- dtrif: "▾",
1435
- blacktriangleleft: "◂",
1436
- ltrif: "◂",
1437
- blacktriangleright: "▸",
1438
- rtrif: "▸",
1439
- loz: "◊",
1440
- lozenge: "◊",
1441
- blacklozenge: "⧫",
1442
- lozf: "⧫",
1443
- bigcirc: "◯",
1444
- xcirc: "◯",
1445
- circ: "ˆ",
1446
- Circle: "○",
1447
- cir: "○",
1448
- o: "○",
1449
- bullet: "•",
1450
- bull: "•",
1451
- hellip: "…",
1452
- mldr: "…",
1453
- nldr: "‥",
1454
- boxh: "─",
1455
- HorizontalLine: "─",
1456
- boxv: "│",
1457
- boxdr: "┌",
1458
- boxdl: "┐",
1459
- boxur: "└",
1460
- boxul: "┘",
1461
- boxvr: "├",
1462
- boxvl: "┤",
1463
- boxhd: "┬",
1464
- boxhu: "┴",
1465
- boxvh: "┼",
1466
- boxH: "═",
1467
- boxV: "║",
1468
- boxdR: "╒",
1469
- boxDr: "╓",
1470
- boxDR: "╔",
1471
- boxDl: "╕",
1472
- boxdL: "╖",
1473
- boxDL: "╗",
1474
- boxuR: "╘",
1475
- boxUr: "╙",
1476
- boxUR: "╚",
1477
- boxUl: "╜",
1478
- boxuL: "╛",
1479
- boxUL: "╝",
1480
- boxvR: "╞",
1481
- boxVr: "╟",
1482
- boxVR: "╠",
1483
- boxVl: "╢",
1484
- boxvL: "╡",
1485
- boxVL: "╣",
1486
- boxHd: "╤",
1487
- boxhD: "╥",
1488
- boxHD: "╦",
1489
- boxHu: "╧",
1490
- boxhU: "╨",
1491
- boxHU: "╩",
1492
- boxvH: "╪",
1493
- boxVh: "╫",
1494
- boxVH: "╬"
1495
- }, st = {
1496
- excl: "!",
1497
- iexcl: "¡",
1498
- brvbar: "¦",
1499
- sect: "§",
1500
- uml: "¨",
1501
- copy: "©",
1502
- ordf: "ª",
1503
- laquo: "«",
1504
- not: "¬",
1505
- shy: "­",
1506
- reg: "®",
1507
- macr: "¯",
1508
- deg: "°",
1509
- plusmn: "±",
1510
- sup2: "²",
1511
- sup3: "³",
1512
- acute: "´",
1513
- micro: "µ",
1514
- para: "¶",
1515
- middot: "·",
1516
- cedil: "¸",
1517
- sup1: "¹",
1518
- ordm: "º",
1519
- raquo: "»",
1520
- frac14: "¼",
1521
- frac12: "½",
1522
- frac34: "¾",
1523
- iquest: "¿",
1524
- nbsp: "\xA0",
1525
- comma: ",",
1526
- period: ".",
1527
- colon: ":",
1528
- semi: ";",
1529
- vert: "|",
1530
- Verbar: "‖",
1531
- verbar: "|",
1532
- dblac: "˝",
1533
- circ: "ˆ",
1534
- caron: "ˇ",
1535
- breve: "˘",
1536
- dot: "˙",
1537
- ring: "˚",
1538
- ogon: "˛",
1539
- tilde: "˜",
1540
- DiacriticalGrave: "`",
1541
- DiacriticalAcute: "´",
1542
- DiacriticalTilde: "˜",
1543
- DiacriticalDot: "˙",
1544
- DiacriticalDoubleAcute: "˝",
1545
- grave: "`"
1546
- }, ct = {
634
+ //#region ../../node_modules/.pnpm/@nodable+entities@3.0.0/node_modules/@nodable/entities/src/entities.js
635
+ var it = {
1547
636
  cent: "¢",
1548
637
  pound: "£",
1549
638
  curren: "¤",
@@ -1559,112 +648,13 @@ var Qe = {
1559
648
  won: "₩",
1560
649
  yuan: "¥",
1561
650
  cedil: "¸"
1562
- }, lt = {
1563
- frac12: "½",
1564
- half: "½",
1565
- frac13: "⅓",
1566
- frac14: "¼",
1567
- frac15: "⅕",
1568
- frac16: "⅙",
1569
- frac18: "⅛",
1570
- frac23: "⅔",
1571
- frac25: "⅖",
1572
- frac34: "¾",
1573
- frac35: "⅗",
1574
- frac38: "⅜",
1575
- frac45: "⅘",
1576
- frac56: "⅚",
1577
- frac58: "⅝",
1578
- frac78: "⅞",
1579
- frasl: "⁄"
1580
- }, ut = {
1581
- trade: "™",
1582
- TRADE: "™",
1583
- telrec: "⌕",
1584
- target: "⌖",
1585
- ulcorn: "⌜",
1586
- ulcorner: "⌜",
1587
- urcorn: "⌝",
1588
- urcorner: "⌝",
1589
- dlcorn: "⌞",
1590
- llcorner: "⌞",
1591
- drcorn: "⌟",
1592
- lrcorner: "⌟",
1593
- intercal: "⊺",
1594
- intcal: "⊺",
1595
- oplus: "⊕",
1596
- CirclePlus: "⊕",
1597
- ominus: "⊖",
1598
- CircleMinus: "⊖",
1599
- otimes: "⊗",
1600
- CircleTimes: "⊗",
1601
- osol: "⊘",
1602
- odot: "⊙",
1603
- CircleDot: "⊙",
1604
- oast: "⊛",
1605
- circledast: "⊛",
1606
- odash: "⊝",
1607
- circleddash: "⊝",
1608
- ocirc: "⊚",
1609
- circledcirc: "⊚",
1610
- boxplus: "⊞",
1611
- plusb: "⊞",
1612
- boxminus: "⊟",
1613
- minusb: "⊟",
1614
- boxtimes: "⊠",
1615
- timesb: "⊠",
1616
- boxdot: "⊡",
1617
- sdotb: "⊡",
1618
- veebar: "⊻",
1619
- vee: "∨",
1620
- barvee: "⊽",
1621
- and: "∧",
1622
- wedge: "∧",
1623
- Cap: "⋒",
1624
- Cup: "⋓",
1625
- Fork: "⋔",
1626
- pitchfork: "⋔",
1627
- epar: "⋕",
1628
- ltlarr: "⥶",
1629
- nvap: "≍⃒",
1630
- nvsim: "∼⃒",
1631
- nvge: "≥⃒",
1632
- nvle: "≤⃒",
1633
- nvlt: "<⃒",
1634
- nvgt: ">⃒",
1635
- nvltrie: "⊴⃒",
1636
- nvrtrie: "⊵⃒",
1637
- Vdash: "⊩",
1638
- dashv: "⊣",
1639
- vDash: "⊨",
1640
- Vvdash: "⊪",
1641
- nvdash: "⊬",
1642
- nvDash: "⊭",
1643
- nVdash: "⊮",
1644
- nVDash: "⊯"
1645
- };
1646
- ({
1647
- ...Qe,
1648
- ...$e,
1649
- ...et,
1650
- ...tt,
1651
- ...nt,
1652
- ...rt,
1653
- ...it,
1654
- ...at,
1655
- ...ot,
1656
- ...st,
1657
- ...ct,
1658
- ...lt,
1659
- ...ut
1660
- });
1661
- var dt = {
651
+ }, at = {
1662
652
  amp: "&",
1663
653
  apos: "'",
1664
654
  gt: ">",
1665
655
  lt: "<",
1666
656
  quot: "\""
1667
- }, ft = {
657
+ }, ot = {
1668
658
  nbsp: "\xA0",
1669
659
  copy: "©",
1670
660
  reg: "®",
@@ -1685,17 +675,17 @@ var dt = {
1685
675
  frac12: "½",
1686
676
  frac14: "¼",
1687
677
  frac34: "¾"
1688
- }, z = Object.freeze({
678
+ }, R = Object.freeze({
1689
679
  ALLOW: "allow",
1690
680
  BLOCK: "block",
1691
681
  THROW: "throw"
1692
- }), pt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1693
- function mt(e) {
682
+ }), st = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
683
+ function ct(e) {
1694
684
  if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
1695
- for (let t of e) if (pt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
685
+ for (let t of e) if (st.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1696
686
  return e;
1697
687
  }
1698
- function B(...e) {
688
+ function z(...e) {
1699
689
  let t = Object.create(null);
1700
690
  for (let n of e) if (n) for (let e of Object.keys(n)) {
1701
691
  let r = n[e];
@@ -1707,65 +697,65 @@ function B(...e) {
1707
697
  }
1708
698
  return t;
1709
699
  }
1710
- var V = "external", H = "base", U = "all";
1711
- function ht(e) {
1712
- return !e || e === V ? /* @__PURE__ */ new Set([V]) : e === U ? /* @__PURE__ */ new Set([U]) : e === H ? /* @__PURE__ */ new Set([H]) : Array.isArray(e) ? new Set(e) : /* @__PURE__ */ new Set([V]);
700
+ var B = "external", V = "base", H = "all";
701
+ function lt(e) {
702
+ return !e || e === B ? /* @__PURE__ */ new Set([B]) : e === H ? /* @__PURE__ */ new Set([H]) : e === V ? /* @__PURE__ */ new Set([V]) : Array.isArray(e) ? new Set(e) : /* @__PURE__ */ new Set([B]);
1713
703
  }
1714
- var W = Object.freeze({
704
+ var U = Object.freeze({
1715
705
  allow: 0,
1716
706
  leave: 1,
1717
707
  remove: 2,
1718
708
  throw: 3
1719
- }), gt = /* @__PURE__ */ new Set([
709
+ }), ut = /* @__PURE__ */ new Set([
1720
710
  9,
1721
711
  10,
1722
712
  13
1723
713
  ]);
1724
- function _t(e) {
714
+ function dt(e) {
1725
715
  if (!e) return {
1726
716
  xmlVersion: 1,
1727
- onLevel: W.allow,
1728
- nullLevel: W.remove
717
+ onLevel: U.allow,
718
+ nullLevel: U.remove
1729
719
  };
1730
- let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = W[e.onNCR] ?? W.allow, r = W[e.nullNCR] ?? W.remove;
720
+ let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = U[e.onNCR] ?? U.allow, r = U[e.nullNCR] ?? U.remove;
1731
721
  return {
1732
722
  xmlVersion: t,
1733
723
  onLevel: n,
1734
- nullLevel: Math.max(r, W.remove)
724
+ nullLevel: Math.max(r, U.remove)
1735
725
  };
1736
726
  }
1737
- var vt = class {
727
+ var ft = class {
1738
728
  constructor(e = {}) {
1739
- this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ht(this._limit.applyLimitsTo ?? V), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = B(dt, 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 : []);
1740
- let t = _t(e.ncr);
729
+ 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 = lt(this._limit.applyLimitsTo ?? B), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = z(at, 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 : []);
730
+ let t = dt(e.ncr);
1741
731
  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;
1742
732
  }
1743
733
  _applyRegistrationHook(e, t, n, r) {
1744
734
  if (!e) return !0;
1745
735
  let i = e(t, n);
1746
- if (i === z.BLOCK) return !1;
1747
- if (i === z.THROW) throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);
736
+ if (i === R.BLOCK) return !1;
737
+ if (i === R.THROW) throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);
1748
738
  return !0;
1749
739
  }
1750
740
  setExternalEntities(e) {
1751
- if (e) for (let t of Object.keys(e)) mt(t);
741
+ if (e) for (let t of Object.keys(e)) ct(t);
1752
742
  if (!this._onExternalEntity) {
1753
- this._externalMap = B(e);
743
+ this._externalMap = z(e);
1754
744
  return;
1755
745
  }
1756
- let t = B(e), n = Object.create(null);
746
+ let t = z(e), n = Object.create(null);
1757
747
  for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onExternalEntity, e, r, "external") && (n[e] = r);
1758
748
  this._externalMap = n;
1759
749
  }
1760
750
  addExternalEntity(e, t) {
1761
- mt(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
751
+ ct(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1762
752
  }
1763
753
  addInputEntities(e) {
1764
754
  if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
1765
- this._inputMap = B(e);
755
+ this._inputMap = z(e);
1766
756
  return;
1767
757
  }
1768
- let t = B(e), n = Object.create(null);
758
+ let t = z(e), n = Object.create(null);
1769
759
  for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onInputEntity, e, r, "input") && (n[e] = r);
1770
760
  this._inputMap = n;
1771
761
  }
@@ -1795,7 +785,7 @@ var vt = class {
1795
785
  continue;
1796
786
  }
1797
787
  let u, d;
1798
- if (this._removeSet.has(l)) u = "", d === void 0 && (d = V);
788
+ if (this._removeSet.has(l)) u = "", d === void 0 && (d = B);
1799
789
  else if (this._leaveSet.has(l)) {
1800
790
  a++;
1801
791
  continue;
@@ -1805,7 +795,7 @@ var vt = class {
1805
795
  a++;
1806
796
  continue;
1807
797
  }
1808
- u = e, d = H;
798
+ u = e, d = V;
1809
799
  } else {
1810
800
  let e = this._resolveName(l);
1811
801
  u = e?.value, d = e?.tier;
@@ -1827,31 +817,31 @@ var vt = class {
1827
817
  return this._postCheck(l, t);
1828
818
  }
1829
819
  _tierCounts(e) {
1830
- return this._limitTiers.has(U) ? !0 : this._limitTiers.has(e);
820
+ return this._limitTiers.has(H) ? !0 : this._limitTiers.has(e);
1831
821
  }
1832
822
  _resolveName(e) {
1833
823
  if (e in this._inputMap) return {
1834
824
  value: this._inputMap[e],
1835
- tier: V
825
+ tier: B
1836
826
  };
1837
827
  if (e in this._externalMap) return {
1838
828
  value: this._externalMap[e],
1839
- tier: V
829
+ tier: B
1840
830
  };
1841
831
  if (e in this._baseMap) return {
1842
832
  value: this._baseMap[e],
1843
- tier: H
833
+ tier: V
1844
834
  };
1845
835
  }
1846
836
  _classifyNCR(e) {
1847
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !gt.has(e) ? W.remove : -1;
837
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !ut.has(e) ? U.remove : -1;
1848
838
  }
1849
839
  _applyNCRAction(e, t, n) {
1850
840
  switch (e) {
1851
- case W.allow: return String.fromCodePoint(n);
1852
- case W.remove: return "";
1853
- case W.leave: return;
1854
- case W.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
841
+ case U.allow: return String.fromCodePoint(n);
842
+ case U.remove: return "";
843
+ case U.leave: return;
844
+ case U.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1855
845
  default: return String.fromCodePoint(n);
1856
846
  }
1857
847
  }
@@ -1859,11 +849,11 @@ var vt = class {
1859
849
  let t = e.charCodeAt(1), n;
1860
850
  if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
1861
851
  let r = this._classifyNCR(n);
1862
- if (!this._numericAllowed && r < W.remove) return;
852
+ if (!this._numericAllowed && r < U.remove) return;
1863
853
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
1864
854
  return this._applyNCRAction(i, e, n);
1865
855
  }
1866
- }, yt = (e) => Ie.includes(e) ? "__" + e : e, bt = {
856
+ }, pt = (e) => P.includes(e) ? "__" + e : e, mt = {
1867
857
  preserveOrder: !1,
1868
858
  attributeNamePrefix: "@_",
1869
859
  attributesGroupName: !1,
@@ -1906,14 +896,14 @@ var vt = class {
1906
896
  maxNestedTags: 100,
1907
897
  strictReservedNames: !0,
1908
898
  jPath: !0,
1909
- onDangerousProperty: yt
899
+ onDangerousProperty: pt
1910
900
  };
1911
- function xt(e, t) {
901
+ function ht(e, t) {
1912
902
  if (typeof e != "string") return;
1913
903
  let n = e.toLowerCase();
1914
- if (Ie.some((e) => n === e.toLowerCase()) || Le.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
904
+ if (P.some((e) => n === e.toLowerCase()) || Ue.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1915
905
  }
1916
- function St(e, t) {
906
+ function gt(e, t) {
1917
907
  return typeof e == "boolean" ? {
1918
908
  enabled: e,
1919
909
  maxEntitySize: 1e4,
@@ -1934,10 +924,10 @@ function St(e, t) {
1934
924
  allowedTags: e.allowedTags ?? null,
1935
925
  tagFilter: e.tagFilter ?? null,
1936
926
  appliesTo: e.appliesTo ?? "all"
1937
- } : St(!0);
927
+ } : gt(!0);
1938
928
  }
1939
- var Ct = function(e) {
1940
- let t = Object.assign({}, bt, e), n = [
929
+ var _t = function(e) {
930
+ let t = Object.assign({}, mt, e), n = [
1941
931
  {
1942
932
  value: t.attributeNamePrefix,
1943
933
  name: "attributeNamePrefix"
@@ -1959,9 +949,9 @@ var Ct = function(e) {
1959
949
  name: "commentPropName"
1960
950
  }
1961
951
  ];
1962
- for (let { value: e, name: t } of n) e && xt(e, t);
1963
- return t.onDangerousProperty === null && (t.onDangerousProperty = yt), t.processEntities = St(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1964
- }, wt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", G = class {
952
+ for (let { value: e, name: t } of n) e && ht(e, t);
953
+ return t.onDangerousProperty === null && (t.onDangerousProperty = pt), t.processEntities = gt(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;
954
+ }, W = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", G = class {
1965
955
  constructor(e) {
1966
956
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
1967
957
  }
@@ -1972,12 +962,19 @@ var Ct = function(e) {
1972
962
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
1973
963
  [e.tagname]: e.child,
1974
964
  ":@": e[":@"]
1975
- }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][wt] = { startIndex: t });
965
+ }) : this.child.push({ [e.tagname]: e.child }), this.addStartIndex(t);
966
+ }
967
+ addStartIndex(e) {
968
+ e !== void 0 && (this.child[this.child.length - 1][W] = { startIndex: e });
969
+ }
970
+ addEndIndex(e) {
971
+ let t = this.child[this.child.length - 1];
972
+ t !== void 0 && t[W] !== void 0 && t[W].endIndex === void 0 && (t[W].endIndex = e);
1976
973
  }
1977
974
  static getMetaDataSymbol() {
1978
- return wt;
975
+ return W;
1979
976
  }
1980
- }, Tt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Et = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Dt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ot = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", K = (e, t, n = "") => {
977
+ }, vt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", yt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", bt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", xt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", K = (e, t, n = "") => {
1981
978
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1982
979
  return {
1983
980
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -1986,15 +983,15 @@ var Ct = function(e) {
1986
983
  nmToken: RegExp(`^[${t}]+$`, n),
1987
984
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1988
985
  };
1989
- }, kt = K(Tt, Et), At = K(Dt, Ot, "u"), jt = K(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Mt = (e = "1.0", t = !1) => t ? jt : e === "1.1" ? At : kt, Nt = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Mt(t, n).qName.test(e), Pt = [
986
+ }, St = K(vt, yt), Ct = K(bt, xt, "u"), wt = K(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Tt = (e = "1.0", t = !1) => t ? wt : e === "1.1" ? Ct : St, Et = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Tt(t, n).qName.test(e), Dt = [
1990
987
  "name",
1991
988
  "ncName",
1992
989
  "qName",
1993
990
  "nmToken",
1994
991
  "nmTokens"
1995
- ], Ft = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1996
- if (!Pt.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Pt.join(", ")}`);
1997
- let i = Mt(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
992
+ ], Ot = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
993
+ if (!Dt.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Dt.join(", ")}`);
994
+ let i = Tt(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1998
995
  let t = a.get(e);
1999
996
  if (t !== void 0) return t;
2000
997
  let n = i.test(e);
@@ -2003,7 +1000,7 @@ var Ct = function(e) {
2003
1000
  return o.reset = () => {
2004
1001
  a = /* @__PURE__ */ new Map();
2005
1002
  }, o;
2006
- }, It = class {
1003
+ }, kt = class {
2007
1004
  constructor(e, t) {
2008
1005
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
2009
1006
  }
@@ -2014,31 +1011,41 @@ var Ct = function(e) {
2014
1011
  let n = Object.create(null), r = 0;
2015
1012
  if (e[t + 3] === "O" && e[t + 4] === "C" && e[t + 5] === "T" && e[t + 6] === "Y" && e[t + 7] === "P" && e[t + 8] === "E") {
2016
1013
  t += 9;
2017
- let i = 1, a = !1, o = !1, s = "";
2018
- for (; t < e.length; t++) if (e[t] === "<" && !o) {
2019
- if (a && J(e, "!ENTITY", t)) {
2020
- t += 7;
2021
- let i, a;
2022
- if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
2023
- 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})`);
2024
- n[i] = a, r++;
2025
- }
2026
- } else if (a && J(e, "!ELEMENT", t)) {
2027
- t += 8;
2028
- let { index: n } = this.readElementExp(e, t + 1);
2029
- t = n;
2030
- } else if (a && J(e, "!ATTLIST", t)) t += 8;
2031
- else if (a && J(e, "!NOTATION", t)) {
2032
- t += 9;
2033
- let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
2034
- t = n;
2035
- } else if (J(e, "!--", t)) o = !0;
2036
- else throw Error("Invalid DOCTYPE");
2037
- i++, s = "";
2038
- } else if (e[t] === ">") {
2039
- if (o ? e[t - 1] === "-" && e[t - 2] === "-" && (o = !1, i--) : i--, i === 0) break;
2040
- } else e[t] === "[" ? a = !0 : s += e[t];
2041
- if (i !== 0) throw Error("Unclosed DOCTYPE");
1014
+ let i = 1, a = !1, o = !1, s = null, c = "";
1015
+ for (; t < e.length; t++) {
1016
+ if (s !== null) {
1017
+ e[t] === s && (s = null), c += e[t];
1018
+ continue;
1019
+ }
1020
+ if (!a && !o && (e[t] === "\"" || e[t] === "'")) {
1021
+ s = e[t], c += e[t];
1022
+ continue;
1023
+ }
1024
+ if (e[t] === "<" && !o) {
1025
+ if (a && J(e, "!ENTITY", t)) {
1026
+ t += 7;
1027
+ let i, a;
1028
+ if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
1029
+ 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})`);
1030
+ n[i] = a, r++;
1031
+ }
1032
+ } else if (a && J(e, "!ELEMENT", t)) {
1033
+ t += 8;
1034
+ let { index: n } = this.readElementExp(e, t + 1);
1035
+ t = n;
1036
+ } else if (a && J(e, "!ATTLIST", t)) t += 8;
1037
+ else if (a && J(e, "!NOTATION", t)) {
1038
+ t += 9;
1039
+ let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
1040
+ t = n;
1041
+ } else if (J(e, "!--", t)) o = !0;
1042
+ else throw Error("Invalid DOCTYPE");
1043
+ i++, c = "";
1044
+ } else if (e[t] === ">") {
1045
+ if (o ? e[t - 1] === "-" && e[t - 2] === "-" && (o = !1, i--) : i--, i === 0) break;
1046
+ } else e[t] === "[" ? a = !0 : c += e[t];
1047
+ }
1048
+ if (s !== null || i !== 0) throw Error("Unclosed DOCTYPE");
2042
1049
  } else throw Error("Invalid Tag instead of DOCTYPE");
2043
1050
  return {
2044
1051
  entities: n,
@@ -2095,7 +1102,7 @@ var Ct = function(e) {
2095
1102
  let n = t;
2096
1103
  for (; t < e.length && !/\s/.test(e[t]);) t++;
2097
1104
  let r = e.substring(n, t);
2098
- if (!this.suppressValidationErr && !Nt(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1105
+ if (!this.suppressValidationErr && !Et(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
2099
1106
  t = q(e, t);
2100
1107
  let i = "";
2101
1108
  if (e[t] === "E" && J(e, "MPTY", t)) t += 4;
@@ -2168,12 +1175,12 @@ function J(e, t, n) {
2168
1175
  return !0;
2169
1176
  }
2170
1177
  function Y(e, t) {
2171
- if (Nt(e, { xmlVersion: t })) return e;
1178
+ if (Et(e, { xmlVersion: t })) return e;
2172
1179
  throw Error(`Invalid entity name ${e}`);
2173
1180
  }
2174
1181
  //#endregion
2175
1182
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
2176
- var Lt = [
1183
+ var At = [
2177
1184
  48,
2178
1185
  1632,
2179
1186
  1776,
@@ -2235,28 +1242,28 @@ var Lt = [
2235
1242
  124144,
2236
1243
  125264,
2237
1244
  130032
2238
- ], Rt = /* @__PURE__ */ new Map(), zt = 65535, Bt = 1632, Vt = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
2239
- for (let e of Lt) for (let t = 0; t < 10; t++) {
1245
+ ], X = /* @__PURE__ */ new Map(), jt = 65535, Mt = 1632, Nt = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
1246
+ for (let e of At) for (let t = 0; t < 10; t++) {
2240
1247
  let n = e + t;
2241
- n <= zt ? Vt[n - Bt] = t : Rt.set(n, t);
1248
+ n <= jt ? Nt[n - Mt] = t : X.set(n, t);
2242
1249
  }
2243
1250
  //#endregion
2244
1251
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
2245
- var Ht = 48, Ut = 57, Wt = 45, X = /* @__PURE__ */ new Set([
1252
+ var Pt = 48, Ft = 57, It = 45, Z = /* @__PURE__ */ new Set([
2246
1253
  8722,
2247
1254
  65293,
2248
1255
  65123
2249
1256
  ]);
2250
- function Gt(e) {
1257
+ function Lt(e) {
2251
1258
  if (typeof e != "string") return e;
2252
1259
  let t = e.length;
2253
1260
  if (t === 0) return e;
2254
1261
  let n = -1;
2255
1262
  for (let r = 0; r < t; r++) {
2256
1263
  let i = e.charCodeAt(r);
2257
- if (!(i >= Ht && i <= Ut || i === Wt)) {
1264
+ if (!(i >= Pt && i <= Ft || i === It)) {
2258
1265
  if (i < 1632) {
2259
- if (X.has(i)) {
1266
+ if (Z.has(i)) {
2260
1267
  n = r;
2261
1268
  break;
2262
1269
  }
@@ -2267,7 +1274,7 @@ function Gt(e) {
2267
1274
  let t = e.charCodeAt(r + 1);
2268
1275
  if (t >= 56320 && t <= 57343) {
2269
1276
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
2270
- if (Rt.has(e)) {
1277
+ if (X.has(e)) {
2271
1278
  n = r;
2272
1279
  break;
2273
1280
  }
@@ -2275,7 +1282,7 @@ function Gt(e) {
2275
1282
  }
2276
1283
  continue;
2277
1284
  }
2278
- if (Vt[i - 1632] !== 255 || X.has(i)) {
1285
+ if (Nt[i - 1632] !== 255 || Z.has(i)) {
2279
1286
  n = r;
2280
1287
  break;
2281
1288
  }
@@ -2286,19 +1293,19 @@ function Gt(e) {
2286
1293
  n > 0 && r.push(e.slice(0, n));
2287
1294
  for (let i = n; i < t; i++) {
2288
1295
  let n = e.charCodeAt(i);
2289
- if (n >= Ht && n <= Ut || n === Wt) {
1296
+ if (n >= Pt && n <= Ft || n === It) {
2290
1297
  r.push(e[i]);
2291
1298
  continue;
2292
1299
  }
2293
1300
  if (n < 1632) {
2294
- r.push(X.has(n) ? "-" : e[i]);
1301
+ r.push(Z.has(n) ? "-" : e[i]);
2295
1302
  continue;
2296
1303
  }
2297
1304
  if (n >= 55296 && n <= 56319) {
2298
1305
  if (i + 1 < t) {
2299
1306
  let t = e.charCodeAt(i + 1);
2300
1307
  if (t >= 56320 && t <= 57343) {
2301
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = Rt.get(e);
1308
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = X.get(e);
2302
1309
  if (a !== void 0) {
2303
1310
  r.push(String.fromCharCode(a + 48)), i++;
2304
1311
  continue;
@@ -2308,18 +1315,18 @@ function Gt(e) {
2308
1315
  r.push(e[i]);
2309
1316
  continue;
2310
1317
  }
2311
- if (X.has(n)) {
1318
+ if (Z.has(n)) {
2312
1319
  r.push("-");
2313
1320
  continue;
2314
1321
  }
2315
- let a = Vt[n - Bt];
1322
+ let a = Nt[n - Mt];
2316
1323
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
2317
1324
  }
2318
1325
  return r.join("");
2319
1326
  }
2320
1327
  //#endregion
2321
- //#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
2322
- var Kt = /^[-+]?0x[a-fA-F0-9]+$/, qt = /^0b[01]+$/, Jt = /^0o[0-7]+$/, Yt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Xt = {
1328
+ //#region ../../node_modules/.pnpm/strnum@2.4.2/node_modules/strnum/strnum.js
1329
+ var Rt = /^[-+]?0x[a-fA-F0-9]+$/, zt = /^0b[01]+$/, Bt = /^0o[0-7]+$/, Vt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Ht = {
2323
1330
  hex: !0,
2324
1331
  binary: !1,
2325
1332
  octal: !1,
@@ -2329,20 +1336,20 @@ var Kt = /^[-+]?0x[a-fA-F0-9]+$/, qt = /^0b[01]+$/, Jt = /^0o[0-7]+$/, Yt = /^([
2329
1336
  infinity: "original",
2330
1337
  unicode: !1
2331
1338
  };
2332
- function Zt(e, t = {}) {
2333
- if (t = Object.assign({}, Xt, t), !e || typeof e != "string") return e;
1339
+ function Ut(e, t = {}) {
1340
+ if (t = Object.assign({}, Ht, t), !e || typeof e != "string") return e;
2334
1341
  let n = e.trim();
2335
1342
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2336
- if (n === "0" || t.unicode && (n = Gt(n), n === "0")) return 0;
2337
- if (t.hex && Kt.test(n)) return tn(n, 16);
2338
- if (t.binary && qt.test(n)) return tn(n, 2);
2339
- if (t.octal && Jt.test(n)) return tn(n, 8);
2340
- if (!isFinite(n)) return nn(e, Number(n), t);
2341
- if (n.includes("e") || n.includes("E")) return $t(e, n, t);
2342
- {
2343
- let r = Yt.exec(n);
1343
+ if (n === "0" || t.unicode && (n = Lt(n), n === "0")) return 0;
1344
+ if (t.hex && Rt.test(n)) return qt(n, 16);
1345
+ if (t.binary && zt.test(n)) return qt(n, 2);
1346
+ if (t.octal && Bt.test(n)) return qt(n, 8);
1347
+ if (!isFinite(n)) return Jt(e, Number(n), t);
1348
+ if (n.includes("e") || n.includes("E")) return Gt(e, n, t);
1349
+ {
1350
+ let r = Vt.exec(n);
2344
1351
  if (r) {
2345
- let i = r[1] || "", a = r[2], o = en(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
1352
+ let i = r[1] || "", a = r[2], o = Kt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2346
1353
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
2347
1354
  {
2348
1355
  let r = Number(n), s = String(r);
@@ -2352,29 +1359,36 @@ function Zt(e, t = {}) {
2352
1359
  let c = a ? o : n;
2353
1360
  return a ? c === s || i + c === s ? r : e : c === s || c === i + s ? r : e;
2354
1361
  }
2355
- } else return e;
1362
+ }
1363
+ return e;
2356
1364
  }
2357
1365
  }
2358
- var Qt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2359
- function $t(e, t, n) {
1366
+ var Wt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
1367
+ function Gt(e, t, n) {
2360
1368
  if (!n.eNotation) return e;
2361
- let r = t.match(Qt);
1369
+ let r = t.match(Wt);
2362
1370
  if (r) {
2363
1371
  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;
2364
1372
  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);
2365
- } else return e;
1373
+ }
1374
+ return e;
2366
1375
  }
2367
- function en(e) {
2368
- return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
1376
+ function Kt(e) {
1377
+ if (e && e.indexOf(".") !== -1) {
1378
+ let t = e.length;
1379
+ for (; t > 0 && e.charCodeAt(t - 1) === 48;) t--;
1380
+ return e = e.slice(0, t), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e;
1381
+ }
1382
+ return e;
2369
1383
  }
2370
- function tn(e, t) {
1384
+ function qt(e, t) {
2371
1385
  let n = e.trim();
2372
1386
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2373
1387
  if (Number.parseInt) return Number.parseInt(e, t);
2374
1388
  if (window && window.parseInt) return window.parseInt(e, t);
2375
1389
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2376
1390
  }
2377
- function nn(e, t, n) {
1391
+ function Jt(e, t, n) {
2378
1392
  let r = t === Infinity;
2379
1393
  switch (n.infinity.toLowerCase()) {
2380
1394
  case "null": return null;
@@ -2384,15 +1398,15 @@ function nn(e, t, n) {
2384
1398
  }
2385
1399
  }
2386
1400
  //#endregion
2387
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2388
- function rn(e) {
1401
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
1402
+ function Yt(e) {
2389
1403
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2390
1404
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2391
1405
  } : () => !1;
2392
1406
  }
2393
1407
  //#endregion
2394
1408
  //#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
2395
- var an = class {
1409
+ var Xt = class {
2396
1410
  constructor(e, t = {}, n) {
2397
1411
  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);
2398
1412
  }
@@ -2423,10 +1437,12 @@ var an = class {
2423
1437
  ].includes(n) || /^nth\(\d+\)$/.test(n) ? (s = t, c = n) : s = o;
2424
1438
  } else s = o;
2425
1439
  if (!s) throw Error(`Invalid segment pattern: ${e}`);
2426
- if (t.tag = s, a && (t.namespace = a), n) if (n.includes("=")) {
2427
- let e = n.indexOf("=");
2428
- t.attrName = n.substring(0, e).trim(), t.attrValue = n.substring(e + 1).trim();
2429
- } else t.attrName = n.trim();
1440
+ if (t.tag = s, a && (t.namespace = a), n) {
1441
+ if (n.includes("=")) {
1442
+ let e = n.indexOf("=");
1443
+ t.attrName = n.substring(0, e).trim(), t.attrValue = n.substring(e + 1).trim();
1444
+ } else t.attrName = n.trim();
1445
+ }
2430
1446
  if (c) {
2431
1447
  let e = c.match(/^nth\((\d+)\)$/);
2432
1448
  e ? (t.position = "nth", t.positionValue = parseInt(e[1], 10)) : t.position = c;
@@ -2448,7 +1464,7 @@ var an = class {
2448
1464
  toString() {
2449
1465
  return this.pattern;
2450
1466
  }
2451
- }, on = class {
1467
+ }, Zt = class {
2452
1468
  constructor() {
2453
1469
  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;
2454
1470
  }
@@ -2506,7 +1522,7 @@ var an = class {
2506
1522
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2507
1523
  return null;
2508
1524
  }
2509
- }, sn = class {
1525
+ }, Qt = class {
2510
1526
  constructor(e) {
2511
1527
  this._matcher = e;
2512
1528
  }
@@ -2563,9 +1579,9 @@ var an = class {
2563
1579
  matchesAny(e) {
2564
1580
  return e.matchesAny(this._matcher);
2565
1581
  }
2566
- }, cn = class {
1582
+ }, $t = class {
2567
1583
  constructor(e = {}) {
2568
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new sn(this), this._keptAttrs = [];
1584
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new Qt(this), this._keptAttrs = [];
2569
1585
  }
2570
1586
  push(e, t = null, n = null, r = null) {
2571
1587
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2716,7 +1732,7 @@ var an = class {
2716
1732
  readOnly() {
2717
1733
  return this._view;
2718
1734
  }
2719
- }, ln = [
1735
+ }, en = [
2720
1736
  {
2721
1737
  id: "html-script-open",
2722
1738
  description: "<script opening tag",
@@ -2802,7 +1818,7 @@ var an = class {
2802
1818
  description: "<form tag — can be used for phishing / credential harvesting injection",
2803
1819
  pattern: /<form[\s>/]/i
2804
1820
  }
2805
- ], un = [
1821
+ ], tn = [
2806
1822
  {
2807
1823
  id: "xml-cdata-injection",
2808
1824
  description: "CDATA section injection: <![CDATA[ breaks out of text node context",
@@ -2863,7 +1879,7 @@ var an = class {
2863
1879
  description: "?> closes an enclosing processing instruction",
2864
1880
  pattern: /\?>/
2865
1881
  }
2866
- ], dn = [
1882
+ ], nn = [
2867
1883
  {
2868
1884
  id: "svg-script-element",
2869
1885
  description: "<script element inside SVG executes JavaScript",
@@ -2929,7 +1945,7 @@ var an = class {
2929
1945
  description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
2930
1946
  pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
2931
1947
  }
2932
- ], fn = [
1948
+ ], rn = [
2933
1949
  {
2934
1950
  id: "sql-block-comment-open",
2935
1951
  description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
@@ -3005,7 +2021,7 @@ var an = class {
3005
2021
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
3006
2022
  pattern: /\bINFORMATION_SCHEMA\b/i
3007
2023
  }
3008
- ], pn = [
2024
+ ], an = [
3009
2025
  {
3010
2026
  id: "shell-path-traversal-unix",
3011
2027
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -3096,7 +2112,7 @@ var an = class {
3096
2112
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
3097
2113
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
3098
2114
  }
3099
- ], mn = [
2115
+ ], on = [
3100
2116
  {
3101
2117
  id: "redos-nested-quantifier-plus",
3102
2118
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -3137,71 +2153,71 @@ var an = class {
3137
2153
  description: "Long alternation with many similar branches — polynomial backtracking risk",
3138
2154
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
3139
2155
  }
3140
- ], Z = "[\"'\\s]*:", hn = [
2156
+ ], Q = "[\"'\\s]*:", sn = [
3141
2157
  {
3142
2158
  id: "nosql-where-operator",
3143
2159
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
3144
- pattern: RegExp(`\\$where${Z}`, "i")
2160
+ pattern: RegExp(`\\$where${Q}`, "i")
3145
2161
  },
3146
2162
  {
3147
2163
  id: "nosql-ne-operator",
3148
2164
  description: "$ne — \"not equal\" operator used to bypass equality checks",
3149
- pattern: RegExp(`\\$ne${Z}`, "i")
2165
+ pattern: RegExp(`\\$ne${Q}`, "i")
3150
2166
  },
3151
2167
  {
3152
2168
  id: "nosql-gt-operator",
3153
2169
  description: "$gt — \"greater than\" used to bypass password/value checks",
3154
- pattern: RegExp(`\\$gte?${Z}`, "i")
2170
+ pattern: RegExp(`\\$gte?${Q}`, "i")
3155
2171
  },
3156
2172
  {
3157
2173
  id: "nosql-lt-operator",
3158
2174
  description: "$lt / $lte — \"less than\" bypass variants",
3159
- pattern: RegExp(`\\$lte?${Z}`, "i")
2175
+ pattern: RegExp(`\\$lte?${Q}`, "i")
3160
2176
  },
3161
2177
  {
3162
2178
  id: "nosql-regex-operator",
3163
2179
  description: "$regex — can be used to extract data character by character (blind injection)",
3164
- pattern: RegExp(`\\$regex${Z}`, "i")
2180
+ pattern: RegExp(`\\$regex${Q}`, "i")
3165
2181
  },
3166
2182
  {
3167
2183
  id: "nosql-or-operator",
3168
2184
  description: "$or — logical OR; used to create always-true conditions",
3169
- pattern: RegExp(`\\$or${Z}\\s*\\[`, "i")
2185
+ pattern: RegExp(`\\$or${Q}\\s*\\[`, "i")
3170
2186
  },
3171
2187
  {
3172
2188
  id: "nosql-and-operator",
3173
2189
  description: "$and — logical AND operator injection",
3174
- pattern: RegExp(`\\$and${Z}\\s*\\[`, "i")
2190
+ pattern: RegExp(`\\$and${Q}\\s*\\[`, "i")
3175
2191
  },
3176
2192
  {
3177
2193
  id: "nosql-nor-operator",
3178
2194
  description: "$nor — logical NOR operator injection",
3179
- pattern: RegExp(`\\$nor${Z}\\s*\\[`, "i")
2195
+ pattern: RegExp(`\\$nor${Q}\\s*\\[`, "i")
3180
2196
  },
3181
2197
  {
3182
2198
  id: "nosql-exists-operator",
3183
2199
  description: "$exists — can enumerate fields to determine schema",
3184
- pattern: RegExp(`\\$exists${Z}`, "i")
2200
+ pattern: RegExp(`\\$exists${Q}`, "i")
3185
2201
  },
3186
2202
  {
3187
2203
  id: "nosql-in-operator",
3188
2204
  description: "$in — matches any value in a list; can enumerate values",
3189
- pattern: RegExp(`\\$in${Z}\\s*\\[`, "i")
2205
+ pattern: RegExp(`\\$in${Q}\\s*\\[`, "i")
3190
2206
  },
3191
2207
  {
3192
2208
  id: "nosql-expr-operator",
3193
2209
  description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
3194
- pattern: RegExp(`\\$expr${Z}`, "i")
2210
+ pattern: RegExp(`\\$expr${Q}`, "i")
3195
2211
  },
3196
2212
  {
3197
2213
  id: "nosql-function-operator",
3198
2214
  description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
3199
- pattern: RegExp(`\\$function${Z}`, "i")
2215
+ pattern: RegExp(`\\$function${Q}`, "i")
3200
2216
  },
3201
2217
  {
3202
2218
  id: "nosql-accumulator-operator",
3203
2219
  description: "$accumulator — custom aggregation with arbitrary JS execution",
3204
- pattern: RegExp(`\\$accumulator${Z}`, "i")
2220
+ pattern: RegExp(`\\$accumulator${Q}`, "i")
3205
2221
  },
3206
2222
  {
3207
2223
  id: "nosql-proto-pollution",
@@ -3218,7 +2234,7 @@ var an = class {
3218
2234
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
3219
2235
  pattern: /\[["']__proto__["']\]/
3220
2236
  }
3221
- ], gn = [
2237
+ ], cn = [
3222
2238
  {
3223
2239
  id: "log-crlf-injection",
3224
2240
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -3279,7 +2295,7 @@ var an = class {
3279
2295
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
3280
2296
  pattern: /\x1b\[/
3281
2297
  }
3282
- ], _n = [
2298
+ ], ln = [
3283
2299
  {
3284
2300
  id: "sql-line-comment",
3285
2301
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -3295,22 +2311,22 @@ var an = class {
3295
2311
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
3296
2312
  pattern: /\b0x[0-9a-f]{4,}/i
3297
2313
  }
3298
- ], vn = [...fn, ..._n];
3299
- ln.label = "HTML", un.label = "XML", dn.label = "SVG", fn.label = "SQL", vn.label = "SQL-STRICT", pn.label = "SHELL", mn.label = "REDOS", hn.label = "NOSQL", gn.label = "LOG", Object.freeze({
3300
- HTML: ln,
3301
- XML: un,
3302
- SVG: dn,
3303
- SQL: fn,
3304
- "SQL-STRICT": vn,
3305
- SHELL: pn,
3306
- REDOS: mn,
3307
- NOSQL: hn,
3308
- LOG: gn
2314
+ ], un = [...rn, ...ln];
2315
+ en.label = "HTML", tn.label = "XML", nn.label = "SVG", rn.label = "SQL", un.label = "SQL-STRICT", an.label = "SHELL", on.label = "REDOS", sn.label = "NOSQL", cn.label = "LOG", Object.freeze({
2316
+ HTML: en,
2317
+ XML: tn,
2318
+ SVG: nn,
2319
+ SQL: rn,
2320
+ "SQL-STRICT": un,
2321
+ SHELL: an,
2322
+ REDOS: on,
2323
+ NOSQL: sn,
2324
+ LOG: cn
3309
2325
  });
3310
- function yn(e) {
2326
+ function dn(e) {
3311
2327
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
3312
2328
  }
3313
- function bn(e) {
2329
+ function fn(e) {
3314
2330
  if (!(e instanceof RegExp)) {
3315
2331
  if (Array.isArray(e)) {
3316
2332
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -3322,7 +2338,7 @@ function bn(e) {
3322
2338
  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}`);
3323
2339
  }
3324
2340
  }
3325
- function xn(e) {
2341
+ function pn(e) {
3326
2342
  return e instanceof RegExp ? {
3327
2343
  lists: null,
3328
2344
  regex: e
@@ -3334,7 +2350,7 @@ function xn(e) {
3334
2350
  regex: null
3335
2351
  };
3336
2352
  }
3337
- function Sn(e, t) {
2353
+ function mn(e, t) {
3338
2354
  let n = t.label ?? "CUSTOM";
3339
2355
  for (let r of t) if (r.pattern.test(e)) return {
3340
2356
  context: n,
@@ -3344,16 +2360,16 @@ function Sn(e, t) {
3344
2360
  };
3345
2361
  return null;
3346
2362
  }
3347
- function Cn(e, t) {
3348
- yn(e), bn(t);
3349
- let { lists: n, regex: r } = xn(t);
2363
+ function hn(e, t) {
2364
+ dn(e), fn(t);
2365
+ let { lists: n, regex: r } = pn(t);
3350
2366
  if (r) return r.test(e);
3351
- for (let t of n) if (Sn(e, t) !== null) return !0;
2367
+ for (let t of n) if (mn(e, t) !== null) return !0;
3352
2368
  return !1;
3353
2369
  }
3354
2370
  //#endregion
3355
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3356
- function wn(e, t) {
2371
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
2372
+ function gn(e, t) {
3357
2373
  if (!e) return {};
3358
2374
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
3359
2375
  if (!n) return {};
@@ -3364,7 +2380,7 @@ function wn(e, t) {
3364
2380
  } else r[e] = n[e];
3365
2381
  return r;
3366
2382
  }
3367
- function Tn(e) {
2383
+ function _n(e) {
3368
2384
  if (!e || typeof e != "string") return;
3369
2385
  let t = e.indexOf(":");
3370
2386
  if (t !== -1 && t > 0) {
@@ -3372,14 +2388,14 @@ function Tn(e) {
3372
2388
  if (n !== "xmlns") return n;
3373
2389
  }
3374
2390
  }
3375
- var En = class {
2391
+ var vn = class {
3376
2392
  constructor(e, t) {
3377
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = jn, this.parseTextData = Dn, this.resolveNameSpace = On, this.buildAttributesMap = An, this.isItStopNode = Fn, this.replaceEntitiesValue = Nn, this.readStopNodeData = zn, this.saveTextToParentTag = Pn, this.addChild = Mn, this.ignoreAttributesFn = rn(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3378
- let n = { ...dt };
2393
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Cn, this.parseTextData = yn, this.resolveNameSpace = bn, this.buildAttributesMap = Sn, this.isItStopNode = Dn, this.replaceEntitiesValue = Tn, this.readStopNodeData = jn, this.saveTextToParentTag = En, this.addChild = wn, this.ignoreAttributesFn = Yt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
2394
+ let n = { ...at };
3379
2395
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
3380
- ...ft,
3381
- ...ct
3382
- }), this.entityDecoder = new vt({
2396
+ ...ot,
2397
+ ...it
2398
+ }), this.entityDecoder = new ft({
3383
2399
  namedEntities: {
3384
2400
  ...n,
3385
2401
  ...t
@@ -3390,27 +2406,27 @@ var En = class {
3390
2406
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
3391
2407
  applyLimitsTo: this.options.processEntities.appliesTo
3392
2408
  },
3393
- onInputEntity: (e, t) => Cn(t, [ln, un]) ? z.BLOCK : z.ALLOW
3394
- })), this.matcher = new cn(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new on();
2409
+ onInputEntity: (e, t) => hn(t, [en, tn]) ? R.BLOCK : R.ALLOW
2410
+ })), this.matcher = new $t(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new Zt();
3395
2411
  let r = this.options.stopNodes;
3396
2412
  if (r && r.length > 0) {
3397
2413
  for (let e = 0; e < r.length; e++) {
3398
2414
  let t = r[e];
3399
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new an(t)) : t instanceof an && this.stopNodeExpressionsSet.add(t);
2415
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new Xt(t)) : t instanceof Xt && this.stopNodeExpressionsSet.add(t);
3400
2416
  }
3401
2417
  this.stopNodeExpressionsSet.seal();
3402
2418
  }
3403
2419
  }
3404
2420
  };
3405
- function Dn(e, t, n, r, i, a, o) {
2421
+ function yn(e, t, n, r, i, a, o) {
3406
2422
  let s = this.options;
3407
2423
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
3408
2424
  o || (e = this.replaceEntitiesValue(e, t, n));
3409
2425
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
3410
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Bn(e, s.parseTagValue, s.numberParseOptions) : e;
2426
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Mn(e, s.parseTagValue, s.numberParseOptions) : e;
3411
2427
  }
3412
2428
  }
3413
- function On(e) {
2429
+ function bn(e) {
3414
2430
  if (this.options.removeNSPrefix) {
3415
2431
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
3416
2432
  if (t[0] === "xmlns") return "";
@@ -3418,11 +2434,11 @@ function On(e) {
3418
2434
  }
3419
2435
  return e;
3420
2436
  }
3421
- var kn = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3422
- function An(e, t, n, r = !1) {
2437
+ var xn = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2438
+ function Sn(e, t, n, r = !1) {
3423
2439
  let i = this.options;
3424
2440
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
3425
- let r = Ne(e, kn), a = r.length, o = {}, s = Array(a), c = !1, l = {};
2441
+ let r = Be(e, xn), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3426
2442
  for (let e = 0; e < a; e++) {
3427
2443
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
3428
2444
  if (t.length && a !== void 0) {
@@ -3436,10 +2452,12 @@ function An(e, t, n, r = !1) {
3436
2452
  let t = this.resolveNameSpace(r[e][1]);
3437
2453
  if (this.ignoreAttributesFn(t, u)) continue;
3438
2454
  let n = i.attributeNamePrefix + t;
3439
- if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Hn(n, i), r[e][4] !== void 0) {
3440
- let r = s[e], a = i.attributeValueProcessor(t, r, u);
3441
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Bn(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
3442
- } else i.allowBooleanAttributes && (o[n] = !0, d = !0);
2455
+ if (t.length) {
2456
+ if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Pn(n, i), r[e][4] !== void 0) {
2457
+ let r = s[e], a = i.attributeValueProcessor(t, r, u);
2458
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Mn(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
2459
+ } else i.allowBooleanAttributes && (o[n] = !0, d = !0);
2460
+ }
3443
2461
  }
3444
2462
  if (!d) return;
3445
2463
  if (i.attributesGroupName && !i.preserveOrder) {
@@ -3449,25 +2467,25 @@ function An(e, t, n, r = !1) {
3449
2467
  return o;
3450
2468
  }
3451
2469
  }
3452
- var jn = function(e) {
2470
+ var Cn = function(e) {
3453
2471
  e = e.replace(/\r\n?/g, "\n");
3454
2472
  let t = new G("!xml"), n = t, r = "";
3455
- this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
3456
- let i = this.options, a = new It(i.processEntities), o = e.length;
2473
+ this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
2474
+ let i = this.options, a = new kt(i.processEntities), o = e.length;
3457
2475
  for (let s = 0; s < o; s++) if (e[s] === "<") {
3458
2476
  let c = e.charCodeAt(s + 1);
3459
2477
  if (c === 47) {
3460
- let t = Q(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
2478
+ let a = $(e, ">", s, "Closing Tag is not closed."), o = e.substring(s + 2, a).trim();
3461
2479
  if (i.removeNSPrefix) {
3462
- let e = a.indexOf(":");
3463
- e !== -1 && (a = a.substr(e + 1));
2480
+ let e = o.indexOf(":");
2481
+ e !== -1 && (o = o.substr(e + 1));
3464
2482
  }
3465
- a = Vn(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3466
- let o = this.matcher.getCurrentTag();
3467
- if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
3468
- o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
2483
+ o = Nn(i.transformTagName, o, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
2484
+ let c = this.matcher.getCurrentTag();
2485
+ if (o && i.unpairedTagsSet.has(o)) throw Error(`Unpaired tag can not be used as closing tag: </${o}>`);
2486
+ 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;
3469
2487
  } else if (c === 63) {
3470
- let t = Rn(e, s, !1, "?>");
2488
+ let t = An(e, s, !1, "?>");
3471
2489
  if (!t) throw Error("Pi Tag is not closed.");
3472
2490
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3473
2491
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -3477,39 +2495,41 @@ var jn = function(e) {
3477
2495
  }
3478
2496
  if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
3479
2497
  let e = new G(t.tagName);
3480
- e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
2498
+ 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);
3481
2499
  }
3482
2500
  s = t.closeIndex + 1;
3483
2501
  } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
3484
- let t = Q(e, "-->", s + 4, "Comment is not closed.");
2502
+ let t = $(e, "-->", s + 4, "Comment is not closed.");
3485
2503
  if (i.commentPropName) {
3486
2504
  let a = e.substring(s + 4, t - 2);
3487
2505
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
3488
2506
  }
3489
2507
  s = t;
3490
2508
  } else if (c === 33 && e.charCodeAt(s + 2) === 68) {
2509
+ if (this.doctypefound) throw Error("Multiple DOCTYPE declarations found.");
2510
+ this.doctypefound = !0;
3491
2511
  let t = a.readDocType(e, s);
3492
2512
  this.entityDecoder.addInputEntities(t.entities), s = t.i;
3493
2513
  } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
3494
- let t = Q(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
2514
+ let t = $(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
3495
2515
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
3496
2516
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
3497
2517
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
3498
2518
  } else {
3499
- let a = Rn(e, s, i.removeNSPrefix);
2519
+ let a = An(e, s, i.removeNSPrefix);
3500
2520
  if (!a) {
3501
2521
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
3502
2522
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
3503
2523
  }
3504
2524
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
3505
- if ({tagName: c, tagExp: u} = Vn(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}`);
2525
+ if ({tagName: c, tagExp: u} = Nn(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}`);
3506
2526
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
3507
2527
  let p = n;
3508
2528
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
3509
2529
  let m = !1;
3510
2530
  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);
3511
2531
  let h = null, g;
3512
- g = Tn(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && wn(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
2532
+ g = _n(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && gn(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3513
2533
  let _ = s;
3514
2534
  if (this.isCurrentNodeStopNode) {
3515
2535
  let t = "";
@@ -3521,15 +2541,15 @@ var jn = function(e) {
3521
2541
  s = n.i, t = n.tagContent;
3522
2542
  }
3523
2543
  let r = new G(c);
3524
- h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
2544
+ 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);
3525
2545
  } else {
3526
2546
  if (m) {
3527
- ({tagName: c, tagExp: u} = Vn(i.transformTagName, c, u, i));
2547
+ ({tagName: c, tagExp: u} = Nn(i.transformTagName, c, u, i));
3528
2548
  let e = new G(c);
3529
- h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
2549
+ h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), i.captureMetaData && n.addEndIndex(f + 1), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
3530
2550
  } else if (i.unpairedTagsSet.has(c)) {
3531
2551
  let e = new G(c);
3532
- h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
2552
+ 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;
3533
2553
  continue;
3534
2554
  } else {
3535
2555
  let e = new G(c);
@@ -3542,12 +2562,12 @@ var jn = function(e) {
3542
2562
  } else r += e[s];
3543
2563
  return t.child;
3544
2564
  };
3545
- function Mn(e, t, n, r) {
2565
+ function wn(e, t, n, r) {
3546
2566
  this.options.captureMetaData || (r = void 0);
3547
2567
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
3548
2568
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
3549
2569
  }
3550
- function Nn(e, t, n) {
2570
+ function Tn(e, t, n) {
3551
2571
  let r = this.options.processEntities;
3552
2572
  if (!r || !r.enabled) return e;
3553
2573
  if (r.allowedTags) {
@@ -3560,42 +2580,43 @@ function Nn(e, t, n) {
3560
2580
  }
3561
2581
  return this.entityDecoder.decode(e);
3562
2582
  }
3563
- function Pn(e, t, n, r) {
2583
+ function En(e, t, n, r) {
3564
2584
  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;
3565
2585
  }
3566
- function Fn() {
2586
+ function Dn() {
3567
2587
  return this.stopNodeExpressionsSet.size !== 0 && this.matcher.matchesAny(this.stopNodeExpressionsSet);
3568
2588
  }
3569
- function In(e, t, n = ">") {
2589
+ function On(e, t, n = ">") {
3570
2590
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
3571
2591
  for (let n = t; n < i; n++) {
3572
2592
  let t = e.charCodeAt(n);
3573
2593
  if (r) t === r && (r = 0);
3574
2594
  else if (t === 34 || t === 39) r = t;
3575
- else if (t === a) if (o !== -1) {
3576
- if (e.charCodeAt(n + 1) === o) return s += e.substring(c, n), {
2595
+ else if (t === a) {
2596
+ if (o !== -1) {
2597
+ if (e.charCodeAt(n + 1) === o) return s += e.substring(c, n), {
2598
+ data: s,
2599
+ index: n
2600
+ };
2601
+ } else return s += e.substring(c, n), {
3577
2602
  data: s,
3578
2603
  index: n
3579
2604
  };
3580
- } else return s += e.substring(c, n), {
3581
- data: s,
3582
- index: n
3583
- };
3584
- else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
2605
+ } else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
3585
2606
  }
3586
2607
  }
3587
- function Q(e, t, n, r) {
2608
+ function $(e, t, n, r) {
3588
2609
  let i = e.indexOf(t, n);
3589
2610
  if (i === -1) throw Error(r);
3590
2611
  return i + t.length - 1;
3591
2612
  }
3592
- function Ln(e, t, n, r) {
2613
+ function kn(e, t, n, r) {
3593
2614
  let i = e.indexOf(t, n);
3594
2615
  if (i === -1) throw Error(r);
3595
2616
  return i;
3596
2617
  }
3597
- function Rn(e, t, n, r = ">") {
3598
- let i = In(e, t + 1, r);
2618
+ function An(e, t, n, r = ">") {
2619
+ let i = On(e, t + 1, r);
3599
2620
  if (!i) return;
3600
2621
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
3601
2622
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -3612,51 +2633,51 @@ function Rn(e, t, n, r = ">") {
3612
2633
  rawTagName: u
3613
2634
  };
3614
2635
  }
3615
- function zn(e, t, n) {
2636
+ function jn(e, t, n) {
3616
2637
  let r = n, i = 1, a = e.length;
3617
2638
  for (; n < a; n++) if (e[n] === "<") {
3618
2639
  let a = e.charCodeAt(n + 1);
3619
2640
  if (a === 47) {
3620
- let a = Ln(e, ">", n, `${t} is not closed`);
2641
+ let a = kn(e, ">", n, `${t} is not closed`);
3621
2642
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
3622
2643
  tagContent: e.substring(r, n),
3623
2644
  i: a
3624
2645
  };
3625
2646
  n = a;
3626
- } else if (a === 63) n = Q(e, "?>", n + 1, "StopNode is not closed.");
3627
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = Q(e, "-->", n + 3, "StopNode is not closed.");
3628
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = Q(e, "]]>", n, "StopNode is not closed.") - 2;
2647
+ } else if (a === 63) n = $(e, "?>", n + 1, "StopNode is not closed.");
2648
+ else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = $(e, "-->", n + 3, "StopNode is not closed.");
2649
+ else if (a === 33 && e.charCodeAt(n + 2) === 91) n = $(e, "]]>", n, "StopNode is not closed.") - 2;
3629
2650
  else {
3630
- let r = Rn(e, n, !1);
2651
+ let r = An(e, n, !1);
3631
2652
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
3632
2653
  }
3633
2654
  }
3634
2655
  }
3635
- function Bn(e, t, n) {
2656
+ function Mn(e, t, n) {
3636
2657
  if (t && typeof e == "string") {
3637
2658
  let t = e.trim();
3638
- return t === "true" || t !== "false" && Zt(e, n);
3639
- } else if (Fe(e)) return e;
3640
- else return "";
2659
+ return t === "true" || t !== "false" && Ut(e, n);
2660
+ }
2661
+ return He(e) ? e : "";
3641
2662
  }
3642
- function Vn(e, t, n, r) {
2663
+ function Nn(e, t, n, r) {
3643
2664
  if (e) {
3644
2665
  let r = e(t);
3645
2666
  n === t && (n = r), t = r;
3646
2667
  }
3647
- return t = Hn(t, r), {
2668
+ return t = Pn(t, r), {
3648
2669
  tagName: t,
3649
2670
  tagExp: n
3650
2671
  };
3651
2672
  }
3652
- function Hn(e, t) {
3653
- if (Le.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3654
- return Ie.includes(e) ? t.onDangerousProperty(e) : e;
2673
+ function Pn(e, t) {
2674
+ if (Ue.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
2675
+ return P.includes(e) ? t.onDangerousProperty(e) : e;
3655
2676
  }
3656
2677
  //#endregion
3657
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3658
- var $ = G.getMetaDataSymbol();
3659
- function Un(e, t) {
2678
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
2679
+ var Fn = G.getMetaDataSymbol();
2680
+ function In(e, t) {
3660
2681
  if (!e || typeof e != "object") return {};
3661
2682
  if (!t) return e;
3662
2683
  let n = {};
@@ -3666,67 +2687,67 @@ function Un(e, t) {
3666
2687
  } else n[r] = e[r];
3667
2688
  return n;
3668
2689
  }
3669
- function Wn(e, t, n, r) {
3670
- return Gn(e, t, n, r);
2690
+ function Ln(e, t, n, r) {
2691
+ return Rn(e, t, n, r);
3671
2692
  }
3672
- function Gn(e, t, n, r) {
2693
+ function Rn(e, t, n, r) {
3673
2694
  let i, a = {};
3674
2695
  for (let o = 0; o < e.length; o++) {
3675
- let s = e[o], c = Kn(s);
2696
+ let s = e[o], c = zn(s);
3676
2697
  if (c !== void 0 && c !== t.textNodeName) {
3677
- let e = Un(s[":@"] || {}, t.attributeNamePrefix);
2698
+ let e = In(s[":@"] || {}, t.attributeNamePrefix);
3678
2699
  n.push(c, e);
3679
2700
  }
3680
2701
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
3681
2702
  else if (c === void 0) continue;
3682
2703
  else if (s[c]) {
3683
- let e = Gn(s[c], t, n, r), i = Jn(e, t);
3684
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? qn(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[$] !== void 0 && typeof e == "object" && e && (e[$] = s[$]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
2704
+ let e = Rn(s[c], t, n, r), i = Vn(e, t);
2705
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? Bn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[Fn] !== void 0 && typeof e == "object" && e && (e[Fn] = s[Fn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3685
2706
  else {
3686
2707
  let n = t.jPath ? r.toString() : r;
3687
- t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
2708
+ a[c] = t.isArray(c, n, i) ? [e] : e;
3688
2709
  }
3689
2710
  c !== void 0 && c !== t.textNodeName && n.pop();
3690
2711
  }
3691
2712
  }
3692
2713
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
3693
2714
  }
3694
- function Kn(e) {
2715
+ function zn(e) {
3695
2716
  let t = Object.keys(e);
3696
2717
  for (let e = 0; e < t.length; e++) {
3697
2718
  let n = t[e];
3698
2719
  if (n !== ":@") return n;
3699
2720
  }
3700
2721
  }
3701
- function qn(e, t, n, r) {
2722
+ function Bn(e, t, n, r) {
3702
2723
  if (t) {
3703
2724
  let i = Object.keys(t), a = i.length;
3704
2725
  for (let o = 0; o < a; o++) {
3705
2726
  let a = i[o], s = a.startsWith(r.attributeNamePrefix) ? a.substring(r.attributeNamePrefix.length) : a, c = r.jPath ? n.toString() + "." + s : n;
3706
- r.isArray(a, c, !0, !0) ? e[a] = [t[a]] : e[a] = t[a];
2727
+ e[a] = r.isArray(a, c, !0, !0) ? [t[a]] : t[a];
3707
2728
  }
3708
2729
  }
3709
2730
  }
3710
- function Jn(e, t) {
2731
+ function Vn(e, t) {
3711
2732
  let { textNodeName: n } = t, r = Object.keys(e).length;
3712
2733
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
3713
2734
  }
3714
2735
  //#endregion
3715
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3716
- var Yn = class {
2736
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
2737
+ var Hn = class {
3717
2738
  constructor(e) {
3718
- this.externalEntities = {}, this.options = Ct(e);
2739
+ this.externalEntities = {}, this.options = _t(e);
3719
2740
  }
3720
2741
  parse(e, t) {
3721
2742
  if (typeof e != "string" && e.toString) e = e.toString();
3722
2743
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
3723
2744
  if (t) {
3724
2745
  t === !0 && (t = {});
3725
- let n = ze(e, t);
2746
+ let n = Ge(e, t);
3726
2747
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
3727
2748
  }
3728
- let n = new En(this.options, this.externalEntities), r = n.parseXml(e);
3729
- return this.options.preserveOrder || r === void 0 ? r : Wn(r, this.options, n.matcher, n.readonlyMatcher);
2749
+ let n = new vn(this.options, this.externalEntities), r = n.parseXml(e);
2750
+ return this.options.preserveOrder || r === void 0 ? r : Ln(r, this.options, n.matcher, n.readonlyMatcher);
3730
2751
  }
3731
2752
  addEntity(e, t) {
3732
2753
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -3737,7 +2758,7 @@ var Yn = class {
3737
2758
  static getMetaDataSymbol() {
3738
2759
  return G.getMetaDataSymbol();
3739
2760
  }
3740
- }, Xn = class {
2761
+ }, Un = class {
3741
2762
  axiosClient;
3742
2763
  baseURI;
3743
2764
  xmlParser;
@@ -3747,7 +2768,7 @@ var Yn = class {
3747
2768
  HASH_LENGTH = 32;
3748
2769
  ITERATION_COUNT = 1e4;
3749
2770
  constructor({ axiosClient: e, baseURI: t }) {
3750
- this.axiosClient = e, this.baseURI = t, this.xmlParser = new Yn();
2771
+ this.axiosClient = e, this.baseURI = t, this.xmlParser = new Hn();
3751
2772
  }
3752
2773
  async signUrl(e, t) {
3753
2774
  let n = new URL(e);
@@ -3761,16 +2782,16 @@ var Yn = class {
3761
2782
  return this.signingKey = n.ocs.data["signing-key"], this.signingKey;
3762
2783
  }
3763
2784
  async createHashedKey(e) {
3764
- return je(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
2785
+ return Re(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
3765
2786
  }
3766
- }, Zn = (e, t) => {
2787
+ }, Wn = (e, t) => {
3767
2788
  let n = new URL(e);
3768
2789
  n.pathname = [
3769
2790
  ...n.pathname.split("/"),
3770
2791
  "ocs",
3771
2792
  "v1.php"
3772
2793
  ].filter(Boolean).join("/");
3773
- let r = n.href, i = v(r, t), a = new Xn({
2794
+ let r = n.href, i = v(r, t), a = new Un({
3774
2795
  baseURI: e,
3775
2796
  axiosClient: t
3776
2797
  });
@@ -3780,4 +2801,4 @@ var Yn = class {
3780
2801
  };
3781
2802
  };
3782
2803
  //#endregion
3783
- export { Ft as a, an as i, Yn as n, v as o, cn as r, Zn as t };
2804
+ export { Ot as a, Xt as i, Hn as n, v as o, $t as r, Wn as t };