@opencloud-eu/web-client 7.2.0 → 7.3.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.
- package/dist/{axios-Dwm7CNmg.js → axios-DvF8YTlk.js} +37 -37
- package/dist/{dist-B2vdwwII.js → dist-CeGfU4rJ.js} +3 -2
- package/dist/{generated-CDEuOcXT.js → generated-FCm3SbzB.js} +1 -1
- package/dist/{graph-D6GY6HvL.js → graph-CppzmKYd.js} +2 -2
- package/dist/{helpers-BMMUdKkY.js → helpers-MRfkPTnV.js} +11 -12
- package/dist/{ocs-BwWCZeaA.js → ocs-gQyxMolJ.js} +392 -1409
- package/dist/{ox-S6JjEpPN.js → ox-DIaYdpxw.js} +6 -7
- package/dist/src/helpers/resource/types.d.ts +1 -1
- package/dist/src/sse/index.d.ts +6 -0
- package/dist/{toString-BCd-H1lr.js → toString-B4UEwRgf.js} +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.js +1 -1
- package/dist/web-client/ox.js +1 -1
- package/dist/web-client/sse.js +5 -6
- package/dist/web-client/webdav.js +2 -2
- package/dist/web-client.js +12 -9
- package/dist/{webdav-Di0erpeX.js → webdav-BMoGCm4T.js} +30 -25
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./dist-
|
|
1
|
+
import { t as e } from "./dist-CeGfU4rJ.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-
|
|
3
|
+
import { a as n, n as r, s as i, t as a } from "./toString-B4UEwRgf.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) {
|
|
@@ -84,10 +84,10 @@ var v = (e, t) => {
|
|
|
84
84
|
};
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js
|
|
87
|
-
function
|
|
87
|
+
function re(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
|
|
90
|
+
function y(e, t = "") {
|
|
91
91
|
if (typeof e != "number") {
|
|
92
92
|
let n = t && `"${t}" `;
|
|
93
93
|
throw TypeError(`${n}expected number, got ${typeof e}`);
|
|
@@ -97,50 +97,50 @@ function b(e, t = "") {
|
|
|
97
97
|
throw RangeError(`${n}expected integer >= 0, got ${e}`);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
let r =
|
|
100
|
+
function b(e, t, n = "") {
|
|
101
|
+
let r = re(e), i = e?.length, a = t !== void 0;
|
|
102
102
|
if (!r || a && i !== t) {
|
|
103
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
104
|
throw r ? RangeError(l) : TypeError(l);
|
|
105
105
|
}
|
|
106
106
|
return e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function x(e) {
|
|
109
109
|
if (typeof e != "function" || typeof e.create != "function") throw TypeError("Hash must wrapped by utils.createHasher");
|
|
110
|
-
if (
|
|
110
|
+
if (y(e.outputLen), y(e.blockLen), e.outputLen < 1) throw Error("\"outputLen\" must be >= 1");
|
|
111
111
|
if (e.blockLen < 1) throw Error("\"blockLen\" must be >= 1");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function S(e, t = !0) {
|
|
114
114
|
if (e.destroyed) throw Error("Hash instance has been destroyed");
|
|
115
115
|
if (t && e.finished) throw Error("Hash#digest() has already been called");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function ie(e, t) {
|
|
118
|
+
b(e, void 0, "digestInto() output");
|
|
119
119
|
let n = t.outputLen;
|
|
120
120
|
if (e.length < n) throw RangeError("\"digestInto() output\" expected to be of length >=" + n);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function C(...e) {
|
|
123
123
|
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function w(e) {
|
|
126
126
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ae(e) {
|
|
129
129
|
if (typeof e != "string") throw TypeError("string expected");
|
|
130
130
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
return typeof e == "string" ?
|
|
132
|
+
function oe(e, t = "") {
|
|
133
|
+
return typeof e == "string" ? ae(e) : b(e, void 0, t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function se(e, t) {
|
|
136
136
|
if (t !== void 0 && {}.toString.call(t) !== "[object Object]") throw TypeError("options must be object or undefined");
|
|
137
137
|
return Object.assign(e, t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function ce(e, t = {}) {
|
|
140
140
|
let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
|
|
141
141
|
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
142
|
}
|
|
143
|
-
var
|
|
143
|
+
var le = (e) => ({ oid: Uint8Array.from([
|
|
144
144
|
6,
|
|
145
145
|
9,
|
|
146
146
|
96,
|
|
@@ -152,7 +152,7 @@ var se = (e) => ({ oid: Uint8Array.from([
|
|
|
152
152
|
4,
|
|
153
153
|
2,
|
|
154
154
|
e
|
|
155
|
-
]) }),
|
|
155
|
+
]) }), ue = class {
|
|
156
156
|
oHash;
|
|
157
157
|
iHash;
|
|
158
158
|
blockLen;
|
|
@@ -161,20 +161,20 @@ var se = (e) => ({ oid: Uint8Array.from([
|
|
|
161
161
|
finished = !1;
|
|
162
162
|
destroyed = !1;
|
|
163
163
|
constructor(e, t) {
|
|
164
|
-
if (
|
|
164
|
+
if (x(e), b(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("Expected instance of class which extends utils.Hash");
|
|
165
165
|
this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
|
|
166
166
|
let n = this.blockLen, r = new Uint8Array(n);
|
|
167
167
|
r.set(t.length > n ? e.create().update(t).digest() : t);
|
|
168
168
|
for (let e = 0; e < r.length; e++) r[e] ^= 54;
|
|
169
169
|
this.iHash.update(r), this.oHash = e.create();
|
|
170
170
|
for (let e = 0; e < r.length; e++) r[e] ^= 106;
|
|
171
|
-
this.oHash.update(r),
|
|
171
|
+
this.oHash.update(r), C(r);
|
|
172
172
|
}
|
|
173
173
|
update(e) {
|
|
174
|
-
return
|
|
174
|
+
return S(this), this.iHash.update(e), this;
|
|
175
175
|
}
|
|
176
176
|
digestInto(e) {
|
|
177
|
-
|
|
177
|
+
S(this), ie(e, this), this.finished = !0;
|
|
178
178
|
let t = e.subarray(0, this.outputLen);
|
|
179
179
|
this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
|
|
180
180
|
}
|
|
@@ -193,22 +193,22 @@ var se = (e) => ({ oid: Uint8Array.from([
|
|
|
193
193
|
destroy() {
|
|
194
194
|
this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
|
|
195
195
|
}
|
|
196
|
-
},
|
|
197
|
-
let e = ((e, t, n) => new
|
|
198
|
-
return e.create = (e, t) => new
|
|
196
|
+
}, de = /* @__PURE__ */ (() => {
|
|
197
|
+
let e = ((e, t, n) => new ue(e, t).update(n).digest());
|
|
198
|
+
return e.create = (e, t) => new ue(e, t), e;
|
|
199
199
|
})();
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/pbkdf2.js
|
|
202
|
-
function
|
|
203
|
-
|
|
204
|
-
let { c: i, dkLen: a, asyncTick: o } =
|
|
202
|
+
function fe(e, t, n, r) {
|
|
203
|
+
x(e);
|
|
204
|
+
let { c: i, dkLen: a, asyncTick: o } = se({
|
|
205
205
|
dkLen: 32,
|
|
206
206
|
asyncTick: 10
|
|
207
207
|
}, r);
|
|
208
|
-
if (
|
|
208
|
+
if (y(i, "c"), y(a, "dkLen"), y(o, "asyncTick"), i < 1) throw Error("iterations (c) must be >= 1");
|
|
209
209
|
if (a < 1) throw Error("\"dkLen\" must be >= 1");
|
|
210
210
|
if (a > (2 ** 32 - 1) * e.outputLen) throw Error("derived key too long");
|
|
211
|
-
let s =
|
|
211
|
+
let s = oe(t, "password"), c = oe(n, "salt"), l = new Uint8Array(a), u = de.create(e, s);
|
|
212
212
|
return {
|
|
213
213
|
c: i,
|
|
214
214
|
dkLen: a,
|
|
@@ -218,11 +218,11 @@ function ue(e, t, n, r) {
|
|
|
218
218
|
PRFSalt: u._cloneInto().update(c)
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
return e.destroy(), t.destroy(), r && r.destroy(),
|
|
221
|
+
function pe(e, t, n, r, i) {
|
|
222
|
+
return e.destroy(), t.destroy(), r && r.destroy(), C(i), n;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
let { c: i, dkLen: a, DK: o, PRF: s, PRFSalt: c } =
|
|
224
|
+
function me(e, t, n, r) {
|
|
225
|
+
let { c: i, dkLen: a, DK: o, PRF: s, PRFSalt: c } = fe(e, t, n, r), l, u = /* @__PURE__ */ new Uint8Array(4), d = w(u), f = new Uint8Array(s.outputLen);
|
|
226
226
|
for (let e = 1, t = 0; t < a; e++, t += s.outputLen) {
|
|
227
227
|
let n = o.subarray(t, t + s.outputLen);
|
|
228
228
|
d.setInt32(0, e, !1), (l = c._cloneInto(l)).update(u).digestInto(f), n.set(f.subarray(0, n.length));
|
|
@@ -231,11 +231,11 @@ function fe(e, t, n, r) {
|
|
|
231
231
|
for (let e = 0; e < n.length; e++) n[e] ^= f[e];
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
return
|
|
234
|
+
return pe(s, c, o, l, f);
|
|
235
235
|
}
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_md.js
|
|
238
|
-
var
|
|
238
|
+
var he = class {
|
|
239
239
|
blockLen;
|
|
240
240
|
outputLen;
|
|
241
241
|
canXOF = !1;
|
|
@@ -248,15 +248,15 @@ var pe = class {
|
|
|
248
248
|
pos = 0;
|
|
249
249
|
destroyed = !1;
|
|
250
250
|
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 =
|
|
251
|
+
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = w(this.buffer);
|
|
252
252
|
}
|
|
253
253
|
update(e) {
|
|
254
|
-
|
|
254
|
+
S(this), b(e);
|
|
255
255
|
let { view: t, buffer: n, blockLen: r } = this, i = e.length;
|
|
256
256
|
for (let a = 0; a < i;) {
|
|
257
257
|
let o = Math.min(r - this.pos, i - a);
|
|
258
258
|
if (o === r) {
|
|
259
|
-
let t =
|
|
259
|
+
let t = w(e);
|
|
260
260
|
for (; r <= i - a; a += r) this.process(t, a);
|
|
261
261
|
continue;
|
|
262
262
|
}
|
|
@@ -265,12 +265,12 @@ var pe = class {
|
|
|
265
265
|
return this.length += e.length, this.roundClean(), this;
|
|
266
266
|
}
|
|
267
267
|
digestInto(e) {
|
|
268
|
-
|
|
268
|
+
S(this), ie(e, this), this.finished = !0;
|
|
269
269
|
let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
|
|
270
|
-
t[a++] = 128,
|
|
270
|
+
t[a++] = 128, C(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
|
|
271
271
|
for (let e = a; e < r; e++) t[e] = 0;
|
|
272
272
|
n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
273
|
-
let o =
|
|
273
|
+
let o = w(e), s = this.outputLen;
|
|
274
274
|
if (s % 4) throw Error("_sha2: outputLen must be aligned to 32bit");
|
|
275
275
|
let c = s / 4, l = this.get();
|
|
276
276
|
if (c > l.length) throw Error("_sha2: outputLen bigger than state");
|
|
@@ -290,7 +290,7 @@ var pe = class {
|
|
|
290
290
|
clone() {
|
|
291
291
|
return this._cloneInto();
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, T = /* @__PURE__ */ Uint32Array.from([
|
|
294
294
|
1779033703,
|
|
295
295
|
4089235720,
|
|
296
296
|
3144134277,
|
|
@@ -307,33 +307,33 @@ var pe = class {
|
|
|
307
307
|
4215389547,
|
|
308
308
|
1541459225,
|
|
309
309
|
327033209
|
|
310
|
-
]),
|
|
311
|
-
function
|
|
310
|
+
]), E = /* @__PURE__ */ BigInt(2 ** 32 - 1), ge = /* @__PURE__ */ BigInt(32);
|
|
311
|
+
function _e(e, t = !1) {
|
|
312
312
|
return t ? {
|
|
313
|
-
h: Number(e &
|
|
314
|
-
l: Number(e >>
|
|
313
|
+
h: Number(e & E),
|
|
314
|
+
l: Number(e >> ge & E)
|
|
315
315
|
} : {
|
|
316
|
-
h: Number(e >>
|
|
317
|
-
l: Number(e &
|
|
316
|
+
h: Number(e >> ge & E) | 0,
|
|
317
|
+
l: Number(e & E) | 0
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function ve(e, t = !1) {
|
|
321
321
|
let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
|
|
322
322
|
for (let a = 0; a < n; a++) {
|
|
323
|
-
let { h: n, l: o } =
|
|
323
|
+
let { h: n, l: o } = _e(e[a], t);
|
|
324
324
|
[r[a], i[a]] = [n, o];
|
|
325
325
|
}
|
|
326
326
|
return [r, i];
|
|
327
327
|
}
|
|
328
|
-
var
|
|
329
|
-
function
|
|
328
|
+
var ye = (e, t, n) => e >>> n, be = (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;
|
|
329
|
+
function j(e, t, n, r) {
|
|
330
330
|
let i = (t >>> 0) + (r >>> 0);
|
|
331
331
|
return {
|
|
332
332
|
h: e + n + (i / 2 ** 32 | 0) | 0,
|
|
333
333
|
l: i | 0
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var xe = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Se = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, Ce = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), we = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Te = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), Ee = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, De = /* @__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))), Oe = De[0], ke = De[1], M = /* @__PURE__ */ new Uint32Array(80), N = /* @__PURE__ */ new Uint32Array(80), Ae = class extends he {
|
|
337
337
|
constructor(e) {
|
|
338
338
|
super(128, e, 16, !1);
|
|
339
339
|
}
|
|
@@ -362,51 +362,51 @@ var ye = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), be = (e, t, n, r) => t
|
|
|
362
362
|
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
363
|
}
|
|
364
364
|
process(e, t) {
|
|
365
|
-
for (let n = 0; n < 16; n++, t += 4)
|
|
365
|
+
for (let n = 0; n < 16; n++, t += 4) M[n] = e.getUint32(t), N[n] = e.getUint32(t += 4);
|
|
366
366
|
for (let e = 16; e < 80; e++) {
|
|
367
|
-
let t =
|
|
368
|
-
|
|
367
|
+
let t = M[e - 15] | 0, n = N[e - 15] | 0, r = D(t, n, 1) ^ D(t, n, 8) ^ ye(t, n, 7), i = O(t, n, 1) ^ O(t, n, 8) ^ be(t, n, 7), a = M[e - 2] | 0, o = N[e - 2] | 0, s = D(a, o, 19) ^ k(a, o, 61) ^ ye(a, o, 6), c = Ce(i, O(a, o, 19) ^ A(a, o, 61) ^ be(a, o, 6), N[e - 7], N[e - 16]), l = we(c, r, s, M[e - 7], M[e - 16]);
|
|
368
|
+
M[e] = l | 0, N[e] = c | 0;
|
|
369
369
|
}
|
|
370
370
|
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
371
|
for (let e = 0; e < 80; e++) {
|
|
372
|
-
let t =
|
|
373
|
-
g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} =
|
|
374
|
-
let
|
|
375
|
-
n =
|
|
372
|
+
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 = Te(_, ee, ne, ke[e], N[e]), re = Ee(v, g, t, te, Oe[e], M[e]), y = v | 0, b = D(n, r, 28) ^ k(n, r, 34) ^ k(n, r, 39), x = O(n, r, 28) ^ A(n, r, 34) ^ A(n, r, 39), S = n & i ^ n & o ^ i & o, ie = 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} = j(c | 0, l | 0, re | 0, y | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
|
|
374
|
+
let C = xe(y, x, ie);
|
|
375
|
+
n = Se(C, re, b, S), r = C | 0;
|
|
376
376
|
}
|
|
377
|
-
({h: n, l: r} =
|
|
377
|
+
({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
378
|
}
|
|
379
379
|
roundClean() {
|
|
380
|
-
|
|
380
|
+
C(M, N);
|
|
381
381
|
}
|
|
382
382
|
destroy() {
|
|
383
|
-
this.destroyed = !0,
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
Ah =
|
|
387
|
-
Al =
|
|
388
|
-
Bh =
|
|
389
|
-
Bl =
|
|
390
|
-
Ch =
|
|
391
|
-
Cl =
|
|
392
|
-
Dh =
|
|
393
|
-
Dl =
|
|
394
|
-
Eh =
|
|
395
|
-
El =
|
|
396
|
-
Fh =
|
|
397
|
-
Fl =
|
|
398
|
-
Gh =
|
|
399
|
-
Gl =
|
|
400
|
-
Hh =
|
|
401
|
-
Hl =
|
|
383
|
+
this.destroyed = !0, C(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
384
|
+
}
|
|
385
|
+
}, je = class extends Ae {
|
|
386
|
+
Ah = T[0] | 0;
|
|
387
|
+
Al = T[1] | 0;
|
|
388
|
+
Bh = T[2] | 0;
|
|
389
|
+
Bl = T[3] | 0;
|
|
390
|
+
Ch = T[4] | 0;
|
|
391
|
+
Cl = T[5] | 0;
|
|
392
|
+
Dh = T[6] | 0;
|
|
393
|
+
Dl = T[7] | 0;
|
|
394
|
+
Eh = T[8] | 0;
|
|
395
|
+
El = T[9] | 0;
|
|
396
|
+
Fh = T[10] | 0;
|
|
397
|
+
Fl = T[11] | 0;
|
|
398
|
+
Gh = T[12] | 0;
|
|
399
|
+
Gl = T[13] | 0;
|
|
400
|
+
Hh = T[14] | 0;
|
|
401
|
+
Hl = T[15] | 0;
|
|
402
402
|
constructor() {
|
|
403
403
|
super(64);
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, Me = /* @__PURE__ */ ce(() => new je(), /* @__PURE__ */ le(3)), Ne = (t, n, r, i) => e.from(me(Me, t, n, {
|
|
406
406
|
c: r,
|
|
407
407
|
dkLen: i
|
|
408
|
-
})),
|
|
409
|
-
function
|
|
408
|
+
})), Pe = /* @__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 Fe(e, t) {
|
|
410
410
|
let n = [], r = t.exec(e);
|
|
411
411
|
for (; r;) {
|
|
412
412
|
let i = [];
|
|
@@ -417,13 +417,13 @@ function Ne(e, t) {
|
|
|
417
417
|
}
|
|
418
418
|
return n;
|
|
419
419
|
}
|
|
420
|
-
var
|
|
421
|
-
return
|
|
420
|
+
var Ie = function(e) {
|
|
421
|
+
return Pe.exec(e) != null;
|
|
422
422
|
};
|
|
423
|
-
function
|
|
423
|
+
function Le(e) {
|
|
424
424
|
return e !== void 0;
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var P = [
|
|
427
427
|
"hasOwnProperty",
|
|
428
428
|
"toString",
|
|
429
429
|
"valueOf",
|
|
@@ -431,102 +431,104 @@ var Ie = [
|
|
|
431
431
|
"__defineSetter__",
|
|
432
432
|
"__lookupGetter__",
|
|
433
433
|
"__lookupSetter__"
|
|
434
|
-
],
|
|
434
|
+
], Re = [
|
|
435
435
|
"__proto__",
|
|
436
436
|
"constructor",
|
|
437
437
|
"prototype"
|
|
438
|
-
],
|
|
438
|
+
], ze = {
|
|
439
439
|
allowBooleanAttributes: !1,
|
|
440
440
|
unpairedTags: []
|
|
441
441
|
};
|
|
442
|
-
function
|
|
443
|
-
t = Object.assign({},
|
|
442
|
+
function Be(e, t) {
|
|
443
|
+
t = Object.assign({}, ze, t);
|
|
444
444
|
let n = [], r = !1, i = !1;
|
|
445
445
|
e[0] === "" && (e = e.substr(1));
|
|
446
446
|
for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
|
|
447
|
-
if (a += 2, a =
|
|
447
|
+
if (a += 2, a = He(e, a), a.err) return a;
|
|
448
448
|
} else if (e[a] === "<") {
|
|
449
449
|
let o = a;
|
|
450
450
|
if (a++, e[a] === "!") {
|
|
451
|
-
a =
|
|
451
|
+
a = Ue(e, a);
|
|
452
452
|
continue;
|
|
453
|
-
}
|
|
453
|
+
}
|
|
454
|
+
{
|
|
454
455
|
let s = !1;
|
|
455
456
|
e[a] === "/" && (s = !0, a++);
|
|
456
457
|
let c = "";
|
|
457
458
|
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--), !
|
|
459
|
+
if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !Qe(c)) {
|
|
459
460
|
let t;
|
|
460
|
-
return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.",
|
|
461
|
+
return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", F("InvalidTag", t, I(e, a));
|
|
461
462
|
}
|
|
462
|
-
let l =
|
|
463
|
-
if (l === !1) return
|
|
463
|
+
let l = Ke(e, a);
|
|
464
|
+
if (l === !1) return F("InvalidAttr", "Attributes for '" + c + "' have open quote.", I(e, a));
|
|
464
465
|
let u = l.value;
|
|
465
466
|
if (a = l.index, u[u.length - 1] === "/") {
|
|
466
467
|
let n = a - u.length;
|
|
467
468
|
u = u.substring(0, u.length - 1);
|
|
468
|
-
let i =
|
|
469
|
+
let i = Je(u, t);
|
|
469
470
|
if (i === !0) r = !0;
|
|
470
|
-
else return
|
|
471
|
+
else return F(i.err.code, i.err.msg, I(e, n + i.err.line));
|
|
471
472
|
} else if (s) {
|
|
472
|
-
if (!l.tagClosed) return
|
|
473
|
-
if (u.trim().length > 0) return
|
|
474
|
-
if (n.length === 0) return
|
|
473
|
+
if (!l.tagClosed) return F("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", I(e, a));
|
|
474
|
+
if (u.trim().length > 0) return F("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", I(e, o));
|
|
475
|
+
if (n.length === 0) return F("InvalidTag", "Closing tag '" + c + "' has not been opened.", I(e, o));
|
|
475
476
|
{
|
|
476
477
|
let t = n.pop();
|
|
477
478
|
if (c !== t.tagName) {
|
|
478
|
-
let n =
|
|
479
|
-
return
|
|
479
|
+
let n = I(e, t.tagStartPos);
|
|
480
|
+
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
481
|
}
|
|
481
482
|
n.length == 0 && (i = !0);
|
|
482
483
|
}
|
|
483
484
|
} else {
|
|
484
|
-
let s =
|
|
485
|
-
if (s !== !0) return
|
|
486
|
-
if (i === !0) return
|
|
485
|
+
let s = Je(u, t);
|
|
486
|
+
if (s !== !0) return F(s.err.code, s.err.msg, I(e, a - u.length + s.err.line));
|
|
487
|
+
if (i === !0) return F("InvalidXml", "Multiple possible root nodes found.", I(e, a));
|
|
487
488
|
t.unpairedTags.indexOf(c) !== -1 || n.push({
|
|
488
489
|
tagName: c,
|
|
489
490
|
tagStartPos: o
|
|
490
491
|
}), r = !0;
|
|
491
492
|
}
|
|
492
493
|
for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
|
|
493
|
-
a++, a =
|
|
494
|
+
a++, a = Ue(e, a);
|
|
494
495
|
continue;
|
|
495
496
|
} else if (e[a + 1] === "?") {
|
|
496
|
-
if (a =
|
|
497
|
+
if (a = He(e, ++a), a.err) return a;
|
|
497
498
|
} else break;
|
|
498
499
|
else if (e[a] === "&") {
|
|
499
|
-
let t =
|
|
500
|
-
if (t == -1) return
|
|
500
|
+
let t = Xe(e, a);
|
|
501
|
+
if (t == -1) return F("InvalidChar", "char '&' is not expected.", I(e, a));
|
|
501
502
|
a = t;
|
|
502
|
-
} else if (i === !0 && !
|
|
503
|
+
} else if (i === !0 && !Ve(e[a])) return F("InvalidXml", "Extra text at the end", I(e, a));
|
|
503
504
|
e[a] === "<" && a--;
|
|
504
505
|
}
|
|
505
506
|
} else {
|
|
506
|
-
if (
|
|
507
|
-
return
|
|
507
|
+
if (Ve(e[a])) continue;
|
|
508
|
+
return F("InvalidChar", "char '" + e[a] + "' is not expected.", I(e, a));
|
|
508
509
|
}
|
|
509
|
-
return r ? n.length == 1 ?
|
|
510
|
+
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
511
|
line: 1,
|
|
511
512
|
col: 1
|
|
512
|
-
}) : !0 :
|
|
513
|
+
}) : !0 : F("InvalidXml", "Start tag expected.", 1);
|
|
513
514
|
}
|
|
514
|
-
function
|
|
515
|
+
function Ve(e) {
|
|
515
516
|
return e === " " || e === " " || e === "\n" || e === "\r";
|
|
516
517
|
}
|
|
517
|
-
function
|
|
518
|
+
function He(e, t) {
|
|
518
519
|
let n = t;
|
|
519
520
|
for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
|
|
520
521
|
let r = e.substr(n, t - n);
|
|
521
|
-
if (t > 5 && r === "xml") return
|
|
522
|
+
if (t > 5 && r === "xml") return F("InvalidXml", "XML declaration allowed only at the start of the document.", I(e, t));
|
|
522
523
|
if (e[t] == "?" && e[t + 1] == ">") {
|
|
523
524
|
t++;
|
|
524
525
|
break;
|
|
525
|
-
}
|
|
526
|
+
}
|
|
527
|
+
continue;
|
|
526
528
|
}
|
|
527
529
|
return t;
|
|
528
530
|
}
|
|
529
|
-
function
|
|
531
|
+
function Ue(e, t) {
|
|
530
532
|
if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
|
|
531
533
|
for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
|
|
532
534
|
t += 2;
|
|
@@ -544,11 +546,11 @@ function He(e, t) {
|
|
|
544
546
|
}
|
|
545
547
|
return t;
|
|
546
548
|
}
|
|
547
|
-
var
|
|
548
|
-
function
|
|
549
|
+
var We = "\"", Ge = "'";
|
|
550
|
+
function Ke(e, t) {
|
|
549
551
|
let n = "", r = "", i = !1;
|
|
550
552
|
for (; t < e.length; t++) {
|
|
551
|
-
if (e[t] ===
|
|
553
|
+
if (e[t] === We || e[t] === Ge) r === "" ? r = e[t] : r !== e[t] || (r = "");
|
|
552
554
|
else if (e[t] === ">" && r === "") {
|
|
553
555
|
i = !0;
|
|
554
556
|
break;
|
|
@@ -561,21 +563,21 @@ function Ge(e, t) {
|
|
|
561
563
|
tagClosed: i
|
|
562
564
|
};
|
|
563
565
|
}
|
|
564
|
-
var
|
|
565
|
-
function
|
|
566
|
-
let n =
|
|
566
|
+
var qe = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
|
|
567
|
+
function Je(e, t) {
|
|
568
|
+
let n = Fe(e, qe), r = {};
|
|
567
569
|
for (let e = 0; e < n.length; e++) {
|
|
568
|
-
if (n[e][1].length === 0) return
|
|
569
|
-
if (n[e][3] !== void 0 && n[e][4] === void 0) return
|
|
570
|
-
if (n[e][3] === void 0 && !t.allowBooleanAttributes) return
|
|
570
|
+
if (n[e][1].length === 0) return F("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", L(n[e]));
|
|
571
|
+
if (n[e][3] !== void 0 && n[e][4] === void 0) return F("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", L(n[e]));
|
|
572
|
+
if (n[e][3] === void 0 && !t.allowBooleanAttributes) return F("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", L(n[e]));
|
|
571
573
|
let i = n[e][2];
|
|
572
|
-
if (!
|
|
574
|
+
if (!Ze(i)) return F("InvalidAttr", "Attribute '" + i + "' is an invalid name.", L(n[e]));
|
|
573
575
|
if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
|
|
574
|
-
else return
|
|
576
|
+
else return F("InvalidAttr", "Attribute '" + i + "' is repeated.", L(n[e]));
|
|
575
577
|
}
|
|
576
578
|
return !0;
|
|
577
579
|
}
|
|
578
|
-
function
|
|
580
|
+
function Ye(e, t) {
|
|
579
581
|
let n = /\d/;
|
|
580
582
|
for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
|
|
581
583
|
if (e[t] === ";") return t;
|
|
@@ -583,9 +585,9 @@ function Je(e, t) {
|
|
|
583
585
|
}
|
|
584
586
|
return -1;
|
|
585
587
|
}
|
|
586
|
-
function
|
|
588
|
+
function Xe(e, t) {
|
|
587
589
|
if (t++, e[t] === ";") return -1;
|
|
588
|
-
if (e[t] === "#") return t++,
|
|
590
|
+
if (e[t] === "#") return t++, Ye(e, t);
|
|
589
591
|
let n = 0;
|
|
590
592
|
for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
|
|
591
593
|
if (e[t] === ";") break;
|
|
@@ -593,7 +595,7 @@ function Ye(e, t) {
|
|
|
593
595
|
}
|
|
594
596
|
return t;
|
|
595
597
|
}
|
|
596
|
-
function
|
|
598
|
+
function F(e, t, n) {
|
|
597
599
|
return { err: {
|
|
598
600
|
code: e,
|
|
599
601
|
msg: t,
|
|
@@ -601,949 +603,25 @@ function I(e, t, n) {
|
|
|
601
603
|
col: n.col
|
|
602
604
|
} };
|
|
603
605
|
}
|
|
604
|
-
function Xe(e) {
|
|
605
|
-
return Pe(e);
|
|
606
|
-
}
|
|
607
606
|
function Ze(e) {
|
|
608
|
-
return
|
|
607
|
+
return Ie(e);
|
|
609
608
|
}
|
|
610
|
-
function
|
|
609
|
+
function Qe(e) {
|
|
610
|
+
return Ie(e);
|
|
611
|
+
}
|
|
612
|
+
function I(e, t) {
|
|
611
613
|
let n = e.substring(0, t).split(/\r?\n/);
|
|
612
614
|
return {
|
|
613
615
|
line: n.length,
|
|
614
616
|
col: n[n.length - 1].length + 1
|
|
615
617
|
};
|
|
616
618
|
}
|
|
617
|
-
function
|
|
619
|
+
function L(e) {
|
|
618
620
|
return e.startIndex + e[1].length;
|
|
619
621
|
}
|
|
620
622
|
//#endregion
|
|
621
|
-
//#region ../../node_modules/.pnpm/@nodable+entities@
|
|
622
|
-
var
|
|
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 = {
|
|
623
|
+
//#region ../../node_modules/.pnpm/@nodable+entities@3.0.0/node_modules/@nodable/entities/src/entities.js
|
|
624
|
+
var $e = {
|
|
1547
625
|
cent: "¢",
|
|
1548
626
|
pound: "£",
|
|
1549
627
|
curren: "¤",
|
|
@@ -1559,112 +637,13 @@ var Qe = {
|
|
|
1559
637
|
won: "₩",
|
|
1560
638
|
yuan: "¥",
|
|
1561
639
|
cedil: "¸"
|
|
1562
|
-
},
|
|
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 = {
|
|
640
|
+
}, et = {
|
|
1662
641
|
amp: "&",
|
|
1663
642
|
apos: "'",
|
|
1664
643
|
gt: ">",
|
|
1665
644
|
lt: "<",
|
|
1666
645
|
quot: "\""
|
|
1667
|
-
},
|
|
646
|
+
}, tt = {
|
|
1668
647
|
nbsp: "\xA0",
|
|
1669
648
|
copy: "©",
|
|
1670
649
|
reg: "®",
|
|
@@ -1685,17 +664,17 @@ var dt = {
|
|
|
1685
664
|
frac12: "½",
|
|
1686
665
|
frac14: "¼",
|
|
1687
666
|
frac34: "¾"
|
|
1688
|
-
},
|
|
667
|
+
}, R = Object.freeze({
|
|
1689
668
|
ALLOW: "allow",
|
|
1690
669
|
BLOCK: "block",
|
|
1691
670
|
THROW: "throw"
|
|
1692
|
-
}),
|
|
1693
|
-
function
|
|
671
|
+
}), nt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
|
|
672
|
+
function rt(e) {
|
|
1694
673
|
if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
|
|
1695
|
-
for (let t of e) if (
|
|
674
|
+
for (let t of e) if (nt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
|
|
1696
675
|
return e;
|
|
1697
676
|
}
|
|
1698
|
-
function
|
|
677
|
+
function z(...e) {
|
|
1699
678
|
let t = Object.create(null);
|
|
1700
679
|
for (let n of e) if (n) for (let e of Object.keys(n)) {
|
|
1701
680
|
let r = n[e];
|
|
@@ -1707,65 +686,65 @@ function B(...e) {
|
|
|
1707
686
|
}
|
|
1708
687
|
return t;
|
|
1709
688
|
}
|
|
1710
|
-
var
|
|
1711
|
-
function
|
|
1712
|
-
return !e || e ===
|
|
689
|
+
var B = "external", V = "base", H = "all";
|
|
690
|
+
function it(e) {
|
|
691
|
+
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
692
|
}
|
|
1714
|
-
var
|
|
693
|
+
var U = Object.freeze({
|
|
1715
694
|
allow: 0,
|
|
1716
695
|
leave: 1,
|
|
1717
696
|
remove: 2,
|
|
1718
697
|
throw: 3
|
|
1719
|
-
}),
|
|
698
|
+
}), at = /* @__PURE__ */ new Set([
|
|
1720
699
|
9,
|
|
1721
700
|
10,
|
|
1722
701
|
13
|
|
1723
702
|
]);
|
|
1724
|
-
function
|
|
703
|
+
function ot(e) {
|
|
1725
704
|
if (!e) return {
|
|
1726
705
|
xmlVersion: 1,
|
|
1727
|
-
onLevel:
|
|
1728
|
-
nullLevel:
|
|
706
|
+
onLevel: U.allow,
|
|
707
|
+
nullLevel: U.remove
|
|
1729
708
|
};
|
|
1730
|
-
let t = e.xmlVersion === 1.1 ? 1.1 : 1, n =
|
|
709
|
+
let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = U[e.onNCR] ?? U.allow, r = U[e.nullNCR] ?? U.remove;
|
|
1731
710
|
return {
|
|
1732
711
|
xmlVersion: t,
|
|
1733
712
|
onLevel: n,
|
|
1734
|
-
nullLevel: Math.max(r,
|
|
713
|
+
nullLevel: Math.max(r, U.remove)
|
|
1735
714
|
};
|
|
1736
715
|
}
|
|
1737
|
-
var
|
|
716
|
+
var st = class {
|
|
1738
717
|
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 =
|
|
1740
|
-
let t =
|
|
718
|
+
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 = it(this._limit.applyLimitsTo ?? B), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = z(et, 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 : []);
|
|
719
|
+
let t = ot(e.ncr);
|
|
1741
720
|
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
721
|
}
|
|
1743
722
|
_applyRegistrationHook(e, t, n, r) {
|
|
1744
723
|
if (!e) return !0;
|
|
1745
724
|
let i = e(t, n);
|
|
1746
|
-
if (i ===
|
|
1747
|
-
if (i ===
|
|
725
|
+
if (i === R.BLOCK) return !1;
|
|
726
|
+
if (i === R.THROW) throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);
|
|
1748
727
|
return !0;
|
|
1749
728
|
}
|
|
1750
729
|
setExternalEntities(e) {
|
|
1751
|
-
if (e) for (let t of Object.keys(e))
|
|
730
|
+
if (e) for (let t of Object.keys(e)) rt(t);
|
|
1752
731
|
if (!this._onExternalEntity) {
|
|
1753
|
-
this._externalMap =
|
|
732
|
+
this._externalMap = z(e);
|
|
1754
733
|
return;
|
|
1755
734
|
}
|
|
1756
|
-
let t =
|
|
735
|
+
let t = z(e), n = Object.create(null);
|
|
1757
736
|
for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onExternalEntity, e, r, "external") && (n[e] = r);
|
|
1758
737
|
this._externalMap = n;
|
|
1759
738
|
}
|
|
1760
739
|
addExternalEntity(e, t) {
|
|
1761
|
-
|
|
740
|
+
rt(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
|
|
1762
741
|
}
|
|
1763
742
|
addInputEntities(e) {
|
|
1764
743
|
if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
|
|
1765
|
-
this._inputMap =
|
|
744
|
+
this._inputMap = z(e);
|
|
1766
745
|
return;
|
|
1767
746
|
}
|
|
1768
|
-
let t =
|
|
747
|
+
let t = z(e), n = Object.create(null);
|
|
1769
748
|
for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onInputEntity, e, r, "input") && (n[e] = r);
|
|
1770
749
|
this._inputMap = n;
|
|
1771
750
|
}
|
|
@@ -1795,7 +774,7 @@ var vt = class {
|
|
|
1795
774
|
continue;
|
|
1796
775
|
}
|
|
1797
776
|
let u, d;
|
|
1798
|
-
if (this._removeSet.has(l)) u = "", d === void 0 && (d =
|
|
777
|
+
if (this._removeSet.has(l)) u = "", d === void 0 && (d = B);
|
|
1799
778
|
else if (this._leaveSet.has(l)) {
|
|
1800
779
|
a++;
|
|
1801
780
|
continue;
|
|
@@ -1805,7 +784,7 @@ var vt = class {
|
|
|
1805
784
|
a++;
|
|
1806
785
|
continue;
|
|
1807
786
|
}
|
|
1808
|
-
u = e, d =
|
|
787
|
+
u = e, d = V;
|
|
1809
788
|
} else {
|
|
1810
789
|
let e = this._resolveName(l);
|
|
1811
790
|
u = e?.value, d = e?.tier;
|
|
@@ -1827,31 +806,31 @@ var vt = class {
|
|
|
1827
806
|
return this._postCheck(l, t);
|
|
1828
807
|
}
|
|
1829
808
|
_tierCounts(e) {
|
|
1830
|
-
return this._limitTiers.has(
|
|
809
|
+
return this._limitTiers.has(H) ? !0 : this._limitTiers.has(e);
|
|
1831
810
|
}
|
|
1832
811
|
_resolveName(e) {
|
|
1833
812
|
if (e in this._inputMap) return {
|
|
1834
813
|
value: this._inputMap[e],
|
|
1835
|
-
tier:
|
|
814
|
+
tier: B
|
|
1836
815
|
};
|
|
1837
816
|
if (e in this._externalMap) return {
|
|
1838
817
|
value: this._externalMap[e],
|
|
1839
|
-
tier:
|
|
818
|
+
tier: B
|
|
1840
819
|
};
|
|
1841
820
|
if (e in this._baseMap) return {
|
|
1842
821
|
value: this._baseMap[e],
|
|
1843
|
-
tier:
|
|
822
|
+
tier: V
|
|
1844
823
|
};
|
|
1845
824
|
}
|
|
1846
825
|
_classifyNCR(e) {
|
|
1847
|
-
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !
|
|
826
|
+
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !at.has(e) ? U.remove : -1;
|
|
1848
827
|
}
|
|
1849
828
|
_applyNCRAction(e, t, n) {
|
|
1850
829
|
switch (e) {
|
|
1851
|
-
case
|
|
1852
|
-
case
|
|
1853
|
-
case
|
|
1854
|
-
case
|
|
830
|
+
case U.allow: return String.fromCodePoint(n);
|
|
831
|
+
case U.remove: return "";
|
|
832
|
+
case U.leave: return;
|
|
833
|
+
case U.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
|
|
1855
834
|
default: return String.fromCodePoint(n);
|
|
1856
835
|
}
|
|
1857
836
|
}
|
|
@@ -1859,11 +838,11 @@ var vt = class {
|
|
|
1859
838
|
let t = e.charCodeAt(1), n;
|
|
1860
839
|
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
840
|
let r = this._classifyNCR(n);
|
|
1862
|
-
if (!this._numericAllowed && r <
|
|
841
|
+
if (!this._numericAllowed && r < U.remove) return;
|
|
1863
842
|
let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
|
|
1864
843
|
return this._applyNCRAction(i, e, n);
|
|
1865
844
|
}
|
|
1866
|
-
},
|
|
845
|
+
}, ct = (e) => P.includes(e) ? "__" + e : e, lt = {
|
|
1867
846
|
preserveOrder: !1,
|
|
1868
847
|
attributeNamePrefix: "@_",
|
|
1869
848
|
attributesGroupName: !1,
|
|
@@ -1906,14 +885,14 @@ var vt = class {
|
|
|
1906
885
|
maxNestedTags: 100,
|
|
1907
886
|
strictReservedNames: !0,
|
|
1908
887
|
jPath: !0,
|
|
1909
|
-
onDangerousProperty:
|
|
888
|
+
onDangerousProperty: ct
|
|
1910
889
|
};
|
|
1911
|
-
function
|
|
890
|
+
function ut(e, t) {
|
|
1912
891
|
if (typeof e != "string") return;
|
|
1913
892
|
let n = e.toLowerCase();
|
|
1914
|
-
if (
|
|
893
|
+
if (P.some((e) => n === e.toLowerCase()) || Re.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
1915
894
|
}
|
|
1916
|
-
function
|
|
895
|
+
function dt(e, t) {
|
|
1917
896
|
return typeof e == "boolean" ? {
|
|
1918
897
|
enabled: e,
|
|
1919
898
|
maxEntitySize: 1e4,
|
|
@@ -1934,10 +913,10 @@ function St(e, t) {
|
|
|
1934
913
|
allowedTags: e.allowedTags ?? null,
|
|
1935
914
|
tagFilter: e.tagFilter ?? null,
|
|
1936
915
|
appliesTo: e.appliesTo ?? "all"
|
|
1937
|
-
} :
|
|
916
|
+
} : dt(!0);
|
|
1938
917
|
}
|
|
1939
|
-
var
|
|
1940
|
-
let t = Object.assign({},
|
|
918
|
+
var ft = function(e) {
|
|
919
|
+
let t = Object.assign({}, lt, e), n = [
|
|
1941
920
|
{
|
|
1942
921
|
value: t.attributeNamePrefix,
|
|
1943
922
|
name: "attributeNamePrefix"
|
|
@@ -1959,9 +938,9 @@ var Ct = function(e) {
|
|
|
1959
938
|
name: "commentPropName"
|
|
1960
939
|
}
|
|
1961
940
|
];
|
|
1962
|
-
for (let { value: e, name: t } of n) e &&
|
|
1963
|
-
return t.onDangerousProperty === null && (t.onDangerousProperty =
|
|
1964
|
-
},
|
|
941
|
+
for (let { value: e, name: t } of n) e && ut(e, t);
|
|
942
|
+
return t.onDangerousProperty === null && (t.onDangerousProperty = ct), t.processEntities = dt(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;
|
|
943
|
+
}, pt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", W = class {
|
|
1965
944
|
constructor(e) {
|
|
1966
945
|
this.tagname = e, this.child = [], this[":@"] = Object.create(null);
|
|
1967
946
|
}
|
|
@@ -1972,12 +951,12 @@ var Ct = function(e) {
|
|
|
1972
951
|
e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
|
|
1973
952
|
[e.tagname]: e.child,
|
|
1974
953
|
":@": e[":@"]
|
|
1975
|
-
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][
|
|
954
|
+
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][pt] = { startIndex: t });
|
|
1976
955
|
}
|
|
1977
956
|
static getMetaDataSymbol() {
|
|
1978
|
-
return
|
|
957
|
+
return pt;
|
|
1979
958
|
}
|
|
1980
|
-
},
|
|
959
|
+
}, mt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�", ht = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", gt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", _t = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\-\\.\\d·̀-ͯ҇‿-⁀", G = (e, t, n = "") => {
|
|
1981
960
|
let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
|
|
1982
961
|
return {
|
|
1983
962
|
name: RegExp(`^[${e}][${t}]*$`, n),
|
|
@@ -1986,15 +965,15 @@ var Ct = function(e) {
|
|
|
1986
965
|
nmToken: RegExp(`^[${t}]+$`, n),
|
|
1987
966
|
nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
|
|
1988
967
|
};
|
|
1989
|
-
},
|
|
968
|
+
}, vt = G(mt, ht), yt = G(gt, _t, "u"), bt = G(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), xt = (e = "1.0", t = !1) => t ? bt : e === "1.1" ? yt : vt, St = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => xt(t, n).qName.test(e), Ct = [
|
|
1990
969
|
"name",
|
|
1991
970
|
"ncName",
|
|
1992
971
|
"qName",
|
|
1993
972
|
"nmToken",
|
|
1994
973
|
"nmTokens"
|
|
1995
|
-
],
|
|
1996
|
-
if (!
|
|
1997
|
-
let i =
|
|
974
|
+
], wt = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
|
|
975
|
+
if (!Ct.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Ct.join(", ")}`);
|
|
976
|
+
let i = xt(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
1998
977
|
let t = a.get(e);
|
|
1999
978
|
if (t !== void 0) return t;
|
|
2000
979
|
let n = i.test(e);
|
|
@@ -2003,7 +982,7 @@ var Ct = function(e) {
|
|
|
2003
982
|
return o.reset = () => {
|
|
2004
983
|
a = /* @__PURE__ */ new Map();
|
|
2005
984
|
}, o;
|
|
2006
|
-
},
|
|
985
|
+
}, Tt = class {
|
|
2007
986
|
constructor(e, t) {
|
|
2008
987
|
this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
|
|
2009
988
|
}
|
|
@@ -2016,23 +995,23 @@ var Ct = function(e) {
|
|
|
2016
995
|
t += 9;
|
|
2017
996
|
let i = 1, a = !1, o = !1, s = "";
|
|
2018
997
|
for (; t < e.length; t++) if (e[t] === "<" && !o) {
|
|
2019
|
-
if (a &&
|
|
998
|
+
if (a && q(e, "!ENTITY", t)) {
|
|
2020
999
|
t += 7;
|
|
2021
1000
|
let i, a;
|
|
2022
1001
|
if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
|
|
2023
1002
|
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
1003
|
n[i] = a, r++;
|
|
2025
1004
|
}
|
|
2026
|
-
} else if (a &&
|
|
1005
|
+
} else if (a && q(e, "!ELEMENT", t)) {
|
|
2027
1006
|
t += 8;
|
|
2028
1007
|
let { index: n } = this.readElementExp(e, t + 1);
|
|
2029
1008
|
t = n;
|
|
2030
|
-
} else if (a &&
|
|
2031
|
-
else if (a &&
|
|
1009
|
+
} else if (a && q(e, "!ATTLIST", t)) t += 8;
|
|
1010
|
+
else if (a && q(e, "!NOTATION", t)) {
|
|
2032
1011
|
t += 9;
|
|
2033
1012
|
let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
|
|
2034
1013
|
t = n;
|
|
2035
|
-
} else if (
|
|
1014
|
+
} else if (q(e, "!--", t)) o = !0;
|
|
2036
1015
|
else throw Error("Invalid DOCTYPE");
|
|
2037
1016
|
i++, s = "";
|
|
2038
1017
|
} else if (e[t] === ">") {
|
|
@@ -2046,11 +1025,11 @@ var Ct = function(e) {
|
|
|
2046
1025
|
};
|
|
2047
1026
|
}
|
|
2048
1027
|
readEntityExp(e, t) {
|
|
2049
|
-
t =
|
|
1028
|
+
t = K(e, t);
|
|
2050
1029
|
let n = t;
|
|
2051
1030
|
for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
|
|
2052
1031
|
let r = e.substring(n, t);
|
|
2053
|
-
if (
|
|
1032
|
+
if (J(r, { xmlVersion: this.xmlVersion }), t = K(e, t), !this.suppressValidationErr) {
|
|
2054
1033
|
if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
|
|
2055
1034
|
if (e[t] === "%") throw Error("Parameter entities are not supported");
|
|
2056
1035
|
}
|
|
@@ -2063,16 +1042,16 @@ var Ct = function(e) {
|
|
|
2063
1042
|
];
|
|
2064
1043
|
}
|
|
2065
1044
|
readNotationExp(e, t) {
|
|
2066
|
-
t =
|
|
1045
|
+
t = K(e, t);
|
|
2067
1046
|
let n = t;
|
|
2068
1047
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2069
1048
|
let r = e.substring(n, t);
|
|
2070
|
-
!this.suppressValidationErr &&
|
|
1049
|
+
!this.suppressValidationErr && J(r, { xmlVersion: this.xmlVersion }), t = K(e, t);
|
|
2071
1050
|
let i = e.substring(t, t + 6).toUpperCase();
|
|
2072
1051
|
if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
|
|
2073
|
-
t += i.length, t =
|
|
1052
|
+
t += i.length, t = K(e, t);
|
|
2074
1053
|
let a = null, o = null;
|
|
2075
|
-
if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t =
|
|
1054
|
+
if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = K(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
|
|
2076
1055
|
else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
|
|
2077
1056
|
return {
|
|
2078
1057
|
notationName: r,
|
|
@@ -2091,15 +1070,15 @@ var Ct = function(e) {
|
|
|
2091
1070
|
return t++, [t, r];
|
|
2092
1071
|
}
|
|
2093
1072
|
readElementExp(e, t) {
|
|
2094
|
-
t =
|
|
1073
|
+
t = K(e, t);
|
|
2095
1074
|
let n = t;
|
|
2096
1075
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2097
1076
|
let r = e.substring(n, t);
|
|
2098
|
-
if (!this.suppressValidationErr && !
|
|
2099
|
-
t =
|
|
1077
|
+
if (!this.suppressValidationErr && !St(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
|
|
1078
|
+
t = K(e, t);
|
|
2100
1079
|
let i = "";
|
|
2101
|
-
if (e[t] === "E" &&
|
|
2102
|
-
else if (e[t] === "A" &&
|
|
1080
|
+
if (e[t] === "E" && q(e, "MPTY", t)) t += 4;
|
|
1081
|
+
else if (e[t] === "A" && q(e, "NY", t)) t += 2;
|
|
2103
1082
|
else if (e[t] === "(") {
|
|
2104
1083
|
t++;
|
|
2105
1084
|
let n = t;
|
|
@@ -2113,25 +1092,25 @@ var Ct = function(e) {
|
|
|
2113
1092
|
};
|
|
2114
1093
|
}
|
|
2115
1094
|
readAttlistExp(e, t) {
|
|
2116
|
-
t =
|
|
1095
|
+
t = K(e, t);
|
|
2117
1096
|
let n = t;
|
|
2118
1097
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2119
1098
|
let r = e.substring(n, t);
|
|
2120
|
-
for (
|
|
1099
|
+
for (J(r, { xmlVersion: this.xmlVersion }), t = K(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
|
|
2121
1100
|
let i = e.substring(n, t);
|
|
2122
|
-
if (!
|
|
2123
|
-
t =
|
|
1101
|
+
if (!J(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
|
|
1102
|
+
t = K(e, t);
|
|
2124
1103
|
let a = "";
|
|
2125
1104
|
if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
|
|
2126
|
-
if (a = "NOTATION", t += 8, t =
|
|
1105
|
+
if (a = "NOTATION", t += 8, t = K(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
|
|
2127
1106
|
t++;
|
|
2128
1107
|
let n = [];
|
|
2129
1108
|
for (; t < e.length && e[t] !== ")";) {
|
|
2130
1109
|
let r = t;
|
|
2131
1110
|
for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
|
|
2132
1111
|
let i = e.substring(r, t);
|
|
2133
|
-
if (i = i.trim(), !
|
|
2134
|
-
n.push(i), e[t] === "|" && (t++, t =
|
|
1112
|
+
if (i = i.trim(), !J(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
|
|
1113
|
+
n.push(i), e[t] === "|" && (t++, t = K(e, t));
|
|
2135
1114
|
}
|
|
2136
1115
|
if (e[t] !== ")") throw Error("Unterminated list of notations");
|
|
2137
1116
|
t++, a += " (" + n.join("|") + ")";
|
|
@@ -2149,7 +1128,7 @@ var Ct = function(e) {
|
|
|
2149
1128
|
"NMTOKENS"
|
|
2150
1129
|
].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
|
|
2151
1130
|
}
|
|
2152
|
-
t =
|
|
1131
|
+
t = K(e, t);
|
|
2153
1132
|
let o = "";
|
|
2154
1133
|
return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
|
|
2155
1134
|
elementName: r,
|
|
@@ -2159,21 +1138,21 @@ var Ct = function(e) {
|
|
|
2159
1138
|
index: t
|
|
2160
1139
|
};
|
|
2161
1140
|
}
|
|
2162
|
-
},
|
|
1141
|
+
}, K = (e, t) => {
|
|
2163
1142
|
for (; t < e.length && /\s/.test(e[t]);) t++;
|
|
2164
1143
|
return t;
|
|
2165
1144
|
};
|
|
2166
|
-
function
|
|
1145
|
+
function q(e, t, n) {
|
|
2167
1146
|
for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
|
|
2168
1147
|
return !0;
|
|
2169
1148
|
}
|
|
2170
|
-
function
|
|
2171
|
-
if (
|
|
1149
|
+
function J(e, t) {
|
|
1150
|
+
if (St(e, { xmlVersion: t })) return e;
|
|
2172
1151
|
throw Error(`Invalid entity name ${e}`);
|
|
2173
1152
|
}
|
|
2174
1153
|
//#endregion
|
|
2175
1154
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
|
|
2176
|
-
var
|
|
1155
|
+
var Et = [
|
|
2177
1156
|
48,
|
|
2178
1157
|
1632,
|
|
2179
1158
|
1776,
|
|
@@ -2235,26 +1214,26 @@ var Lt = [
|
|
|
2235
1214
|
124144,
|
|
2236
1215
|
125264,
|
|
2237
1216
|
130032
|
|
2238
|
-
],
|
|
2239
|
-
for (let e of
|
|
1217
|
+
], Y = /* @__PURE__ */ new Map(), Dt = 65535, Ot = 1632, kt = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
|
|
1218
|
+
for (let e of Et) for (let t = 0; t < 10; t++) {
|
|
2240
1219
|
let n = e + t;
|
|
2241
|
-
n <=
|
|
1220
|
+
n <= Dt ? kt[n - Ot] = t : Y.set(n, t);
|
|
2242
1221
|
}
|
|
2243
1222
|
//#endregion
|
|
2244
1223
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
|
|
2245
|
-
var
|
|
1224
|
+
var At = 48, jt = 57, Mt = 45, X = /* @__PURE__ */ new Set([
|
|
2246
1225
|
8722,
|
|
2247
1226
|
65293,
|
|
2248
1227
|
65123
|
|
2249
1228
|
]);
|
|
2250
|
-
function
|
|
1229
|
+
function Nt(e) {
|
|
2251
1230
|
if (typeof e != "string") return e;
|
|
2252
1231
|
let t = e.length;
|
|
2253
1232
|
if (t === 0) return e;
|
|
2254
1233
|
let n = -1;
|
|
2255
1234
|
for (let r = 0; r < t; r++) {
|
|
2256
1235
|
let i = e.charCodeAt(r);
|
|
2257
|
-
if (!(i >=
|
|
1236
|
+
if (!(i >= At && i <= jt || i === Mt)) {
|
|
2258
1237
|
if (i < 1632) {
|
|
2259
1238
|
if (X.has(i)) {
|
|
2260
1239
|
n = r;
|
|
@@ -2267,7 +1246,7 @@ function Gt(e) {
|
|
|
2267
1246
|
let t = e.charCodeAt(r + 1);
|
|
2268
1247
|
if (t >= 56320 && t <= 57343) {
|
|
2269
1248
|
let e = 65536 + (i - 55296 << 10) + (t - 56320);
|
|
2270
|
-
if (
|
|
1249
|
+
if (Y.has(e)) {
|
|
2271
1250
|
n = r;
|
|
2272
1251
|
break;
|
|
2273
1252
|
}
|
|
@@ -2275,7 +1254,7 @@ function Gt(e) {
|
|
|
2275
1254
|
}
|
|
2276
1255
|
continue;
|
|
2277
1256
|
}
|
|
2278
|
-
if (
|
|
1257
|
+
if (kt[i - 1632] !== 255 || X.has(i)) {
|
|
2279
1258
|
n = r;
|
|
2280
1259
|
break;
|
|
2281
1260
|
}
|
|
@@ -2286,7 +1265,7 @@ function Gt(e) {
|
|
|
2286
1265
|
n > 0 && r.push(e.slice(0, n));
|
|
2287
1266
|
for (let i = n; i < t; i++) {
|
|
2288
1267
|
let n = e.charCodeAt(i);
|
|
2289
|
-
if (n >=
|
|
1268
|
+
if (n >= At && n <= jt || n === Mt) {
|
|
2290
1269
|
r.push(e[i]);
|
|
2291
1270
|
continue;
|
|
2292
1271
|
}
|
|
@@ -2298,7 +1277,7 @@ function Gt(e) {
|
|
|
2298
1277
|
if (i + 1 < t) {
|
|
2299
1278
|
let t = e.charCodeAt(i + 1);
|
|
2300
1279
|
if (t >= 56320 && t <= 57343) {
|
|
2301
|
-
let e = 65536 + (n - 55296 << 10) + (t - 56320), a =
|
|
1280
|
+
let e = 65536 + (n - 55296 << 10) + (t - 56320), a = Y.get(e);
|
|
2302
1281
|
if (a !== void 0) {
|
|
2303
1282
|
r.push(String.fromCharCode(a + 48)), i++;
|
|
2304
1283
|
continue;
|
|
@@ -2312,14 +1291,14 @@ function Gt(e) {
|
|
|
2312
1291
|
r.push("-");
|
|
2313
1292
|
continue;
|
|
2314
1293
|
}
|
|
2315
|
-
let a =
|
|
1294
|
+
let a = kt[n - Ot];
|
|
2316
1295
|
r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
|
|
2317
1296
|
}
|
|
2318
1297
|
return r.join("");
|
|
2319
1298
|
}
|
|
2320
1299
|
//#endregion
|
|
2321
1300
|
//#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
|
|
2322
|
-
var
|
|
1301
|
+
var Pt = /^[-+]?0x[a-fA-F0-9]+$/, Ft = /^0b[01]+$/, It = /^0o[0-7]+$/, Lt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Rt = {
|
|
2323
1302
|
hex: !0,
|
|
2324
1303
|
binary: !1,
|
|
2325
1304
|
octal: !1,
|
|
@@ -2329,20 +1308,20 @@ var Kt = /^[-+]?0x[a-fA-F0-9]+$/, qt = /^0b[01]+$/, Jt = /^0o[0-7]+$/, Yt = /^([
|
|
|
2329
1308
|
infinity: "original",
|
|
2330
1309
|
unicode: !1
|
|
2331
1310
|
};
|
|
2332
|
-
function
|
|
2333
|
-
if (t = Object.assign({},
|
|
1311
|
+
function zt(e, t = {}) {
|
|
1312
|
+
if (t = Object.assign({}, Rt, t), !e || typeof e != "string") return e;
|
|
2334
1313
|
let n = e.trim();
|
|
2335
1314
|
if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
|
|
2336
|
-
if (n === "0" || t.unicode && (n =
|
|
2337
|
-
if (t.hex &&
|
|
2338
|
-
if (t.binary &&
|
|
2339
|
-
if (t.octal &&
|
|
2340
|
-
if (!isFinite(n)) return
|
|
2341
|
-
if (n.includes("e") || n.includes("E")) return
|
|
2342
|
-
{
|
|
2343
|
-
let r =
|
|
1315
|
+
if (n === "0" || t.unicode && (n = Nt(n), n === "0")) return 0;
|
|
1316
|
+
if (t.hex && Pt.test(n)) return Ut(n, 16);
|
|
1317
|
+
if (t.binary && Ft.test(n)) return Ut(n, 2);
|
|
1318
|
+
if (t.octal && It.test(n)) return Ut(n, 8);
|
|
1319
|
+
if (!isFinite(n)) return Wt(e, Number(n), t);
|
|
1320
|
+
if (n.includes("e") || n.includes("E")) return Vt(e, n, t);
|
|
1321
|
+
{
|
|
1322
|
+
let r = Lt.exec(n);
|
|
2344
1323
|
if (r) {
|
|
2345
|
-
let i = r[1] || "", a = r[2], o =
|
|
1324
|
+
let i = r[1] || "", a = r[2], o = Ht(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
|
|
2346
1325
|
if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
|
|
2347
1326
|
{
|
|
2348
1327
|
let r = Number(n), s = String(r);
|
|
@@ -2352,29 +1331,31 @@ function Zt(e, t = {}) {
|
|
|
2352
1331
|
let c = a ? o : n;
|
|
2353
1332
|
return a ? c === s || i + c === s ? r : e : c === s || c === i + s ? r : e;
|
|
2354
1333
|
}
|
|
2355
|
-
}
|
|
1334
|
+
}
|
|
1335
|
+
return e;
|
|
2356
1336
|
}
|
|
2357
1337
|
}
|
|
2358
|
-
var
|
|
2359
|
-
function
|
|
1338
|
+
var Bt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
1339
|
+
function Vt(e, t, n) {
|
|
2360
1340
|
if (!n.eNotation) return e;
|
|
2361
|
-
let r = t.match(
|
|
1341
|
+
let r = t.match(Bt);
|
|
2362
1342
|
if (r) {
|
|
2363
1343
|
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
1344
|
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
|
-
}
|
|
1345
|
+
}
|
|
1346
|
+
return e;
|
|
2366
1347
|
}
|
|
2367
|
-
function
|
|
1348
|
+
function Ht(e) {
|
|
2368
1349
|
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;
|
|
2369
1350
|
}
|
|
2370
|
-
function
|
|
1351
|
+
function Ut(e, t) {
|
|
2371
1352
|
let n = e.trim();
|
|
2372
1353
|
if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
|
|
2373
1354
|
if (Number.parseInt) return Number.parseInt(e, t);
|
|
2374
1355
|
if (window && window.parseInt) return window.parseInt(e, t);
|
|
2375
1356
|
throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
2376
1357
|
}
|
|
2377
|
-
function
|
|
1358
|
+
function Wt(e, t, n) {
|
|
2378
1359
|
let r = t === Infinity;
|
|
2379
1360
|
switch (n.infinity.toLowerCase()) {
|
|
2380
1361
|
case "null": return null;
|
|
@@ -2384,15 +1365,15 @@ function nn(e, t, n) {
|
|
|
2384
1365
|
}
|
|
2385
1366
|
}
|
|
2386
1367
|
//#endregion
|
|
2387
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2388
|
-
function
|
|
1368
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
1369
|
+
function Gt(e) {
|
|
2389
1370
|
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
2390
1371
|
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
2391
1372
|
} : () => !1;
|
|
2392
1373
|
}
|
|
2393
1374
|
//#endregion
|
|
2394
1375
|
//#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
|
|
2395
|
-
var
|
|
1376
|
+
var Kt = class {
|
|
2396
1377
|
constructor(e, t = {}, n) {
|
|
2397
1378
|
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
1379
|
}
|
|
@@ -2448,7 +1429,7 @@ var an = class {
|
|
|
2448
1429
|
toString() {
|
|
2449
1430
|
return this.pattern;
|
|
2450
1431
|
}
|
|
2451
|
-
},
|
|
1432
|
+
}, qt = class {
|
|
2452
1433
|
constructor() {
|
|
2453
1434
|
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
1435
|
}
|
|
@@ -2506,7 +1487,7 @@ var an = class {
|
|
|
2506
1487
|
for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
|
|
2507
1488
|
return null;
|
|
2508
1489
|
}
|
|
2509
|
-
},
|
|
1490
|
+
}, Jt = class {
|
|
2510
1491
|
constructor(e) {
|
|
2511
1492
|
this._matcher = e;
|
|
2512
1493
|
}
|
|
@@ -2563,9 +1544,9 @@ var an = class {
|
|
|
2563
1544
|
matchesAny(e) {
|
|
2564
1545
|
return e.matchesAny(this._matcher);
|
|
2565
1546
|
}
|
|
2566
|
-
},
|
|
1547
|
+
}, Yt = class {
|
|
2567
1548
|
constructor(e = {}) {
|
|
2568
|
-
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new
|
|
1549
|
+
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new Jt(this), this._keptAttrs = [];
|
|
2569
1550
|
}
|
|
2570
1551
|
push(e, t = null, n = null, r = null) {
|
|
2571
1552
|
this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
|
|
@@ -2716,7 +1697,7 @@ var an = class {
|
|
|
2716
1697
|
readOnly() {
|
|
2717
1698
|
return this._view;
|
|
2718
1699
|
}
|
|
2719
|
-
},
|
|
1700
|
+
}, Xt = [
|
|
2720
1701
|
{
|
|
2721
1702
|
id: "html-script-open",
|
|
2722
1703
|
description: "<script opening tag",
|
|
@@ -2802,7 +1783,7 @@ var an = class {
|
|
|
2802
1783
|
description: "<form tag — can be used for phishing / credential harvesting injection",
|
|
2803
1784
|
pattern: /<form[\s>/]/i
|
|
2804
1785
|
}
|
|
2805
|
-
],
|
|
1786
|
+
], Zt = [
|
|
2806
1787
|
{
|
|
2807
1788
|
id: "xml-cdata-injection",
|
|
2808
1789
|
description: "CDATA section injection: <![CDATA[ breaks out of text node context",
|
|
@@ -2863,7 +1844,7 @@ var an = class {
|
|
|
2863
1844
|
description: "?> closes an enclosing processing instruction",
|
|
2864
1845
|
pattern: /\?>/
|
|
2865
1846
|
}
|
|
2866
|
-
],
|
|
1847
|
+
], Qt = [
|
|
2867
1848
|
{
|
|
2868
1849
|
id: "svg-script-element",
|
|
2869
1850
|
description: "<script element inside SVG executes JavaScript",
|
|
@@ -2929,7 +1910,7 @@ var an = class {
|
|
|
2929
1910
|
description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
|
|
2930
1911
|
pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
|
|
2931
1912
|
}
|
|
2932
|
-
],
|
|
1913
|
+
], $t = [
|
|
2933
1914
|
{
|
|
2934
1915
|
id: "sql-block-comment-open",
|
|
2935
1916
|
description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
|
|
@@ -3005,7 +1986,7 @@ var an = class {
|
|
|
3005
1986
|
description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
|
|
3006
1987
|
pattern: /\bINFORMATION_SCHEMA\b/i
|
|
3007
1988
|
}
|
|
3008
|
-
],
|
|
1989
|
+
], en = [
|
|
3009
1990
|
{
|
|
3010
1991
|
id: "shell-path-traversal-unix",
|
|
3011
1992
|
description: "Unix path traversal: ../ — climbing the directory tree",
|
|
@@ -3096,7 +2077,7 @@ var an = class {
|
|
|
3096
2077
|
description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
|
|
3097
2078
|
pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
|
|
3098
2079
|
}
|
|
3099
|
-
],
|
|
2080
|
+
], tn = [
|
|
3100
2081
|
{
|
|
3101
2082
|
id: "redos-nested-quantifier-plus",
|
|
3102
2083
|
description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
|
|
@@ -3137,7 +2118,7 @@ var an = class {
|
|
|
3137
2118
|
description: "Long alternation with many similar branches — polynomial backtracking risk",
|
|
3138
2119
|
pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
|
|
3139
2120
|
}
|
|
3140
|
-
], Z = "[\"'\\s]*:",
|
|
2121
|
+
], Z = "[\"'\\s]*:", nn = [
|
|
3141
2122
|
{
|
|
3142
2123
|
id: "nosql-where-operator",
|
|
3143
2124
|
description: "$where — executes arbitrary JavaScript server-side in MongoDB",
|
|
@@ -3218,7 +2199,7 @@ var an = class {
|
|
|
3218
2199
|
description: "[\"__proto__\"] — bracket-notation prototype pollution",
|
|
3219
2200
|
pattern: /\[["']__proto__["']\]/
|
|
3220
2201
|
}
|
|
3221
|
-
],
|
|
2202
|
+
], rn = [
|
|
3222
2203
|
{
|
|
3223
2204
|
id: "log-crlf-injection",
|
|
3224
2205
|
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
@@ -3279,7 +2260,7 @@ var an = class {
|
|
|
3279
2260
|
description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
|
|
3280
2261
|
pattern: /\x1b\[/
|
|
3281
2262
|
}
|
|
3282
|
-
],
|
|
2263
|
+
], an = [
|
|
3283
2264
|
{
|
|
3284
2265
|
id: "sql-line-comment",
|
|
3285
2266
|
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
@@ -3295,22 +2276,22 @@ var an = class {
|
|
|
3295
2276
|
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
3296
2277
|
pattern: /\b0x[0-9a-f]{4,}/i
|
|
3297
2278
|
}
|
|
3298
|
-
],
|
|
3299
|
-
|
|
3300
|
-
HTML:
|
|
3301
|
-
XML:
|
|
3302
|
-
SVG:
|
|
3303
|
-
SQL:
|
|
3304
|
-
"SQL-STRICT":
|
|
3305
|
-
SHELL:
|
|
3306
|
-
REDOS:
|
|
3307
|
-
NOSQL:
|
|
3308
|
-
LOG:
|
|
2279
|
+
], on = [...$t, ...an];
|
|
2280
|
+
Xt.label = "HTML", Zt.label = "XML", Qt.label = "SVG", $t.label = "SQL", on.label = "SQL-STRICT", en.label = "SHELL", tn.label = "REDOS", nn.label = "NOSQL", rn.label = "LOG", Object.freeze({
|
|
2281
|
+
HTML: Xt,
|
|
2282
|
+
XML: Zt,
|
|
2283
|
+
SVG: Qt,
|
|
2284
|
+
SQL: $t,
|
|
2285
|
+
"SQL-STRICT": on,
|
|
2286
|
+
SHELL: en,
|
|
2287
|
+
REDOS: tn,
|
|
2288
|
+
NOSQL: nn,
|
|
2289
|
+
LOG: rn
|
|
3309
2290
|
});
|
|
3310
|
-
function
|
|
2291
|
+
function sn(e) {
|
|
3311
2292
|
if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
|
|
3312
2293
|
}
|
|
3313
|
-
function
|
|
2294
|
+
function cn(e) {
|
|
3314
2295
|
if (!(e instanceof RegExp)) {
|
|
3315
2296
|
if (Array.isArray(e)) {
|
|
3316
2297
|
if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
|
|
@@ -3322,7 +2303,7 @@ function bn(e) {
|
|
|
3322
2303
|
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
2304
|
}
|
|
3324
2305
|
}
|
|
3325
|
-
function
|
|
2306
|
+
function ln(e) {
|
|
3326
2307
|
return e instanceof RegExp ? {
|
|
3327
2308
|
lists: null,
|
|
3328
2309
|
regex: e
|
|
@@ -3334,7 +2315,7 @@ function xn(e) {
|
|
|
3334
2315
|
regex: null
|
|
3335
2316
|
};
|
|
3336
2317
|
}
|
|
3337
|
-
function
|
|
2318
|
+
function un(e, t) {
|
|
3338
2319
|
let n = t.label ?? "CUSTOM";
|
|
3339
2320
|
for (let r of t) if (r.pattern.test(e)) return {
|
|
3340
2321
|
context: n,
|
|
@@ -3344,16 +2325,16 @@ function Sn(e, t) {
|
|
|
3344
2325
|
};
|
|
3345
2326
|
return null;
|
|
3346
2327
|
}
|
|
3347
|
-
function
|
|
3348
|
-
|
|
3349
|
-
let { lists: n, regex: r } =
|
|
2328
|
+
function dn(e, t) {
|
|
2329
|
+
sn(e), cn(t);
|
|
2330
|
+
let { lists: n, regex: r } = ln(t);
|
|
3350
2331
|
if (r) return r.test(e);
|
|
3351
|
-
for (let t of n) if (
|
|
2332
|
+
for (let t of n) if (un(e, t) !== null) return !0;
|
|
3352
2333
|
return !1;
|
|
3353
2334
|
}
|
|
3354
2335
|
//#endregion
|
|
3355
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
3356
|
-
function
|
|
2336
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
2337
|
+
function fn(e, t) {
|
|
3357
2338
|
if (!e) return {};
|
|
3358
2339
|
let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
|
|
3359
2340
|
if (!n) return {};
|
|
@@ -3364,7 +2345,7 @@ function wn(e, t) {
|
|
|
3364
2345
|
} else r[e] = n[e];
|
|
3365
2346
|
return r;
|
|
3366
2347
|
}
|
|
3367
|
-
function
|
|
2348
|
+
function pn(e) {
|
|
3368
2349
|
if (!e || typeof e != "string") return;
|
|
3369
2350
|
let t = e.indexOf(":");
|
|
3370
2351
|
if (t !== -1 && t > 0) {
|
|
@@ -3372,14 +2353,14 @@ function Tn(e) {
|
|
|
3372
2353
|
if (n !== "xmlns") return n;
|
|
3373
2354
|
}
|
|
3374
2355
|
}
|
|
3375
|
-
var
|
|
2356
|
+
var mn = class {
|
|
3376
2357
|
constructor(e, t) {
|
|
3377
|
-
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml =
|
|
3378
|
-
let n = { ...
|
|
2358
|
+
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = yn, this.parseTextData = hn, this.resolveNameSpace = gn, this.buildAttributesMap = vn, this.isItStopNode = Cn, this.replaceEntitiesValue = xn, this.readStopNodeData = Dn, this.saveTextToParentTag = Sn, this.addChild = bn, this.ignoreAttributesFn = Gt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
|
|
2359
|
+
let n = { ...et };
|
|
3379
2360
|
this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
|
|
3380
|
-
...
|
|
3381
|
-
|
|
3382
|
-
}), this.entityDecoder = new
|
|
2361
|
+
...tt,
|
|
2362
|
+
...$e
|
|
2363
|
+
}), this.entityDecoder = new st({
|
|
3383
2364
|
namedEntities: {
|
|
3384
2365
|
...n,
|
|
3385
2366
|
...t
|
|
@@ -3390,27 +2371,27 @@ var En = class {
|
|
|
3390
2371
|
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
3391
2372
|
applyLimitsTo: this.options.processEntities.appliesTo
|
|
3392
2373
|
},
|
|
3393
|
-
onInputEntity: (e, t) =>
|
|
3394
|
-
})), this.matcher = new
|
|
2374
|
+
onInputEntity: (e, t) => dn(t, [Xt, Zt]) ? R.BLOCK : R.ALLOW
|
|
2375
|
+
})), this.matcher = new Yt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new qt();
|
|
3395
2376
|
let r = this.options.stopNodes;
|
|
3396
2377
|
if (r && r.length > 0) {
|
|
3397
2378
|
for (let e = 0; e < r.length; e++) {
|
|
3398
2379
|
let t = r[e];
|
|
3399
|
-
typeof t == "string" ? this.stopNodeExpressionsSet.add(new
|
|
2380
|
+
typeof t == "string" ? this.stopNodeExpressionsSet.add(new Kt(t)) : t instanceof Kt && this.stopNodeExpressionsSet.add(t);
|
|
3400
2381
|
}
|
|
3401
2382
|
this.stopNodeExpressionsSet.seal();
|
|
3402
2383
|
}
|
|
3403
2384
|
}
|
|
3404
2385
|
};
|
|
3405
|
-
function
|
|
2386
|
+
function hn(e, t, n, r, i, a, o) {
|
|
3406
2387
|
let s = this.options;
|
|
3407
2388
|
if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
|
|
3408
2389
|
o || (e = this.replaceEntitiesValue(e, t, n));
|
|
3409
2390
|
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 ?
|
|
2391
|
+
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? On(e, s.parseTagValue, s.numberParseOptions) : e;
|
|
3411
2392
|
}
|
|
3412
2393
|
}
|
|
3413
|
-
function
|
|
2394
|
+
function gn(e) {
|
|
3414
2395
|
if (this.options.removeNSPrefix) {
|
|
3415
2396
|
let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
|
|
3416
2397
|
if (t[0] === "xmlns") return "";
|
|
@@ -3418,11 +2399,11 @@ function On(e) {
|
|
|
3418
2399
|
}
|
|
3419
2400
|
return e;
|
|
3420
2401
|
}
|
|
3421
|
-
var
|
|
3422
|
-
function
|
|
2402
|
+
var _n = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
|
|
2403
|
+
function vn(e, t, n, r = !1) {
|
|
3423
2404
|
let i = this.options;
|
|
3424
2405
|
if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
|
|
3425
|
-
let r =
|
|
2406
|
+
let r = Fe(e, _n), a = r.length, o = {}, s = Array(a), c = !1, l = {};
|
|
3426
2407
|
for (let e = 0; e < a; e++) {
|
|
3427
2408
|
let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
|
|
3428
2409
|
if (t.length && a !== void 0) {
|
|
@@ -3436,9 +2417,9 @@ function An(e, t, n, r = !1) {
|
|
|
3436
2417
|
let t = this.resolveNameSpace(r[e][1]);
|
|
3437
2418
|
if (this.ignoreAttributesFn(t, u)) continue;
|
|
3438
2419
|
let n = i.attributeNamePrefix + t;
|
|
3439
|
-
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n =
|
|
2420
|
+
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = An(n, i), r[e][4] !== void 0) {
|
|
3440
2421
|
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] =
|
|
2422
|
+
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = On(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
|
|
3442
2423
|
} else i.allowBooleanAttributes && (o[n] = !0, d = !0);
|
|
3443
2424
|
}
|
|
3444
2425
|
if (!d) return;
|
|
@@ -3449,11 +2430,11 @@ function An(e, t, n, r = !1) {
|
|
|
3449
2430
|
return o;
|
|
3450
2431
|
}
|
|
3451
2432
|
}
|
|
3452
|
-
var
|
|
2433
|
+
var yn = function(e) {
|
|
3453
2434
|
e = e.replace(/\r\n?/g, "\n");
|
|
3454
|
-
let t = new
|
|
3455
|
-
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3456
|
-
let i = this.options, a = new
|
|
2435
|
+
let t = new W("!xml"), n = t, r = "";
|
|
2436
|
+
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
|
|
2437
|
+
let i = this.options, a = new Tt(i.processEntities), o = e.length;
|
|
3457
2438
|
for (let s = 0; s < o; s++) if (e[s] === "<") {
|
|
3458
2439
|
let c = e.charCodeAt(s + 1);
|
|
3459
2440
|
if (c === 47) {
|
|
@@ -3462,12 +2443,12 @@ var jn = function(e) {
|
|
|
3462
2443
|
let e = a.indexOf(":");
|
|
3463
2444
|
e !== -1 && (a = a.substr(e + 1));
|
|
3464
2445
|
}
|
|
3465
|
-
a =
|
|
2446
|
+
a = kn(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
|
|
3466
2447
|
let o = this.matcher.getCurrentTag();
|
|
3467
2448
|
if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
|
|
3468
2449
|
o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
|
|
3469
2450
|
} else if (c === 63) {
|
|
3470
|
-
let t =
|
|
2451
|
+
let t = En(e, s, !1, "?>");
|
|
3471
2452
|
if (!t) throw Error("Pi Tag is not closed.");
|
|
3472
2453
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
3473
2454
|
let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
|
|
@@ -3476,7 +2457,7 @@ var jn = function(e) {
|
|
|
3476
2457
|
this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
|
|
3477
2458
|
}
|
|
3478
2459
|
if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
|
|
3479
|
-
let e = new
|
|
2460
|
+
let e = new W(t.tagName);
|
|
3480
2461
|
e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
|
|
3481
2462
|
}
|
|
3482
2463
|
s = t.closeIndex + 1;
|
|
@@ -3488,6 +2469,8 @@ var jn = function(e) {
|
|
|
3488
2469
|
}
|
|
3489
2470
|
s = t;
|
|
3490
2471
|
} else if (c === 33 && e.charCodeAt(s + 2) === 68) {
|
|
2472
|
+
if (this.doctypefound) throw Error("Multiple DOCTYPE declarations found.");
|
|
2473
|
+
this.doctypefound = !0;
|
|
3491
2474
|
let t = a.readDocType(e, s);
|
|
3492
2475
|
this.entityDecoder.addInputEntities(t.entities), s = t.i;
|
|
3493
2476
|
} else if (c === 33 && e.charCodeAt(s + 2) === 91) {
|
|
@@ -3496,20 +2479,20 @@ var jn = function(e) {
|
|
|
3496
2479
|
let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
|
|
3497
2480
|
o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
|
|
3498
2481
|
} else {
|
|
3499
|
-
let a =
|
|
2482
|
+
let a = En(e, s, i.removeNSPrefix);
|
|
3500
2483
|
if (!a) {
|
|
3501
2484
|
let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
|
|
3502
2485
|
throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
|
|
3503
2486
|
}
|
|
3504
2487
|
let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
|
|
3505
|
-
if ({tagName: c, tagExp: u} =
|
|
2488
|
+
if ({tagName: c, tagExp: u} = kn(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
2489
|
n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
|
|
3507
2490
|
let p = n;
|
|
3508
2491
|
p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
|
|
3509
2492
|
let m = !1;
|
|
3510
2493
|
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
2494
|
let h = null, g;
|
|
3512
|
-
g =
|
|
2495
|
+
g = pn(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && fn(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
|
|
3513
2496
|
let _ = s;
|
|
3514
2497
|
if (this.isCurrentNodeStopNode) {
|
|
3515
2498
|
let t = "";
|
|
@@ -3520,19 +2503,19 @@ var jn = function(e) {
|
|
|
3520
2503
|
if (!n) throw Error(`Unexpected end of ${l}`);
|
|
3521
2504
|
s = n.i, t = n.tagContent;
|
|
3522
2505
|
}
|
|
3523
|
-
let r = new
|
|
2506
|
+
let r = new W(c);
|
|
3524
2507
|
h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
|
|
3525
2508
|
} else {
|
|
3526
2509
|
if (m) {
|
|
3527
|
-
({tagName: c, tagExp: u} =
|
|
3528
|
-
let e = new
|
|
2510
|
+
({tagName: c, tagExp: u} = kn(i.transformTagName, c, u, i));
|
|
2511
|
+
let e = new W(c);
|
|
3529
2512
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
|
|
3530
2513
|
} else if (i.unpairedTagsSet.has(c)) {
|
|
3531
|
-
let e = new
|
|
2514
|
+
let e = new W(c);
|
|
3532
2515
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
|
|
3533
2516
|
continue;
|
|
3534
2517
|
} else {
|
|
3535
|
-
let e = new
|
|
2518
|
+
let e = new W(c);
|
|
3536
2519
|
if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
3537
2520
|
this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
|
|
3538
2521
|
}
|
|
@@ -3542,12 +2525,12 @@ var jn = function(e) {
|
|
|
3542
2525
|
} else r += e[s];
|
|
3543
2526
|
return t.child;
|
|
3544
2527
|
};
|
|
3545
|
-
function
|
|
2528
|
+
function bn(e, t, n, r) {
|
|
3546
2529
|
this.options.captureMetaData || (r = void 0);
|
|
3547
2530
|
let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
|
|
3548
2531
|
a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
|
|
3549
2532
|
}
|
|
3550
|
-
function
|
|
2533
|
+
function xn(e, t, n) {
|
|
3551
2534
|
let r = this.options.processEntities;
|
|
3552
2535
|
if (!r || !r.enabled) return e;
|
|
3553
2536
|
if (r.allowedTags) {
|
|
@@ -3560,13 +2543,13 @@ function Nn(e, t, n) {
|
|
|
3560
2543
|
}
|
|
3561
2544
|
return this.entityDecoder.decode(e);
|
|
3562
2545
|
}
|
|
3563
|
-
function
|
|
2546
|
+
function Sn(e, t, n, r) {
|
|
3564
2547
|
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
2548
|
}
|
|
3566
|
-
function
|
|
2549
|
+
function Cn() {
|
|
3567
2550
|
return this.stopNodeExpressionsSet.size !== 0 && this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
3568
2551
|
}
|
|
3569
|
-
function
|
|
2552
|
+
function wn(e, t, n = ">") {
|
|
3570
2553
|
let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
|
|
3571
2554
|
for (let n = t; n < i; n++) {
|
|
3572
2555
|
let t = e.charCodeAt(n);
|
|
@@ -3589,13 +2572,13 @@ function Q(e, t, n, r) {
|
|
|
3589
2572
|
if (i === -1) throw Error(r);
|
|
3590
2573
|
return i + t.length - 1;
|
|
3591
2574
|
}
|
|
3592
|
-
function
|
|
2575
|
+
function Tn(e, t, n, r) {
|
|
3593
2576
|
let i = e.indexOf(t, n);
|
|
3594
2577
|
if (i === -1) throw Error(r);
|
|
3595
2578
|
return i;
|
|
3596
2579
|
}
|
|
3597
|
-
function
|
|
3598
|
-
let i =
|
|
2580
|
+
function En(e, t, n, r = ">") {
|
|
2581
|
+
let i = wn(e, t + 1, r);
|
|
3599
2582
|
if (!i) return;
|
|
3600
2583
|
let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
|
|
3601
2584
|
s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
|
|
@@ -3612,12 +2595,12 @@ function Rn(e, t, n, r = ">") {
|
|
|
3612
2595
|
rawTagName: u
|
|
3613
2596
|
};
|
|
3614
2597
|
}
|
|
3615
|
-
function
|
|
2598
|
+
function Dn(e, t, n) {
|
|
3616
2599
|
let r = n, i = 1, a = e.length;
|
|
3617
2600
|
for (; n < a; n++) if (e[n] === "<") {
|
|
3618
2601
|
let a = e.charCodeAt(n + 1);
|
|
3619
2602
|
if (a === 47) {
|
|
3620
|
-
let a =
|
|
2603
|
+
let a = Tn(e, ">", n, `${t} is not closed`);
|
|
3621
2604
|
if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
|
|
3622
2605
|
tagContent: e.substring(r, n),
|
|
3623
2606
|
i: a
|
|
@@ -3627,36 +2610,36 @@ function zn(e, t, n) {
|
|
|
3627
2610
|
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = Q(e, "-->", n + 3, "StopNode is not closed.");
|
|
3628
2611
|
else if (a === 33 && e.charCodeAt(n + 2) === 91) n = Q(e, "]]>", n, "StopNode is not closed.") - 2;
|
|
3629
2612
|
else {
|
|
3630
|
-
let r =
|
|
2613
|
+
let r = En(e, n, !1);
|
|
3631
2614
|
r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
|
|
3632
2615
|
}
|
|
3633
2616
|
}
|
|
3634
2617
|
}
|
|
3635
|
-
function
|
|
2618
|
+
function On(e, t, n) {
|
|
3636
2619
|
if (t && typeof e == "string") {
|
|
3637
2620
|
let t = e.trim();
|
|
3638
|
-
return t === "true" || t !== "false" &&
|
|
3639
|
-
}
|
|
3640
|
-
|
|
2621
|
+
return t === "true" || t !== "false" && zt(e, n);
|
|
2622
|
+
}
|
|
2623
|
+
return Le(e) ? e : "";
|
|
3641
2624
|
}
|
|
3642
|
-
function
|
|
2625
|
+
function kn(e, t, n, r) {
|
|
3643
2626
|
if (e) {
|
|
3644
2627
|
let r = e(t);
|
|
3645
2628
|
n === t && (n = r), t = r;
|
|
3646
2629
|
}
|
|
3647
|
-
return t =
|
|
2630
|
+
return t = An(t, r), {
|
|
3648
2631
|
tagName: t,
|
|
3649
2632
|
tagExp: n
|
|
3650
2633
|
};
|
|
3651
2634
|
}
|
|
3652
|
-
function
|
|
3653
|
-
if (
|
|
3654
|
-
return
|
|
2635
|
+
function An(e, t) {
|
|
2636
|
+
if (Re.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
2637
|
+
return P.includes(e) ? t.onDangerousProperty(e) : e;
|
|
3655
2638
|
}
|
|
3656
2639
|
//#endregion
|
|
3657
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
3658
|
-
var $ =
|
|
3659
|
-
function
|
|
2640
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
2641
|
+
var $ = W.getMetaDataSymbol();
|
|
2642
|
+
function jn(e, t) {
|
|
3660
2643
|
if (!e || typeof e != "object") return {};
|
|
3661
2644
|
if (!t) return e;
|
|
3662
2645
|
let n = {};
|
|
@@ -3666,67 +2649,67 @@ function Un(e, t) {
|
|
|
3666
2649
|
} else n[r] = e[r];
|
|
3667
2650
|
return n;
|
|
3668
2651
|
}
|
|
3669
|
-
function
|
|
3670
|
-
return
|
|
2652
|
+
function Mn(e, t, n, r) {
|
|
2653
|
+
return Nn(e, t, n, r);
|
|
3671
2654
|
}
|
|
3672
|
-
function
|
|
2655
|
+
function Nn(e, t, n, r) {
|
|
3673
2656
|
let i, a = {};
|
|
3674
2657
|
for (let o = 0; o < e.length; o++) {
|
|
3675
|
-
let s = e[o], c =
|
|
2658
|
+
let s = e[o], c = Pn(s);
|
|
3676
2659
|
if (c !== void 0 && c !== t.textNodeName) {
|
|
3677
|
-
let e =
|
|
2660
|
+
let e = jn(s[":@"] || {}, t.attributeNamePrefix);
|
|
3678
2661
|
n.push(c, e);
|
|
3679
2662
|
}
|
|
3680
2663
|
if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
|
|
3681
2664
|
else if (c === void 0) continue;
|
|
3682
2665
|
else if (s[c]) {
|
|
3683
|
-
let e =
|
|
3684
|
-
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ?
|
|
2666
|
+
let e = Nn(s[c], t, n, r), i = In(e, t);
|
|
2667
|
+
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? Fn(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);
|
|
3685
2668
|
else {
|
|
3686
2669
|
let n = t.jPath ? r.toString() : r;
|
|
3687
|
-
t.isArray(c, n, i) ?
|
|
2670
|
+
a[c] = t.isArray(c, n, i) ? [e] : e;
|
|
3688
2671
|
}
|
|
3689
2672
|
c !== void 0 && c !== t.textNodeName && n.pop();
|
|
3690
2673
|
}
|
|
3691
2674
|
}
|
|
3692
2675
|
return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
|
|
3693
2676
|
}
|
|
3694
|
-
function
|
|
2677
|
+
function Pn(e) {
|
|
3695
2678
|
let t = Object.keys(e);
|
|
3696
2679
|
for (let e = 0; e < t.length; e++) {
|
|
3697
2680
|
let n = t[e];
|
|
3698
2681
|
if (n !== ":@") return n;
|
|
3699
2682
|
}
|
|
3700
2683
|
}
|
|
3701
|
-
function
|
|
2684
|
+
function Fn(e, t, n, r) {
|
|
3702
2685
|
if (t) {
|
|
3703
2686
|
let i = Object.keys(t), a = i.length;
|
|
3704
2687
|
for (let o = 0; o < a; o++) {
|
|
3705
2688
|
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) ?
|
|
2689
|
+
e[a] = r.isArray(a, c, !0, !0) ? [t[a]] : t[a];
|
|
3707
2690
|
}
|
|
3708
2691
|
}
|
|
3709
2692
|
}
|
|
3710
|
-
function
|
|
2693
|
+
function In(e, t) {
|
|
3711
2694
|
let { textNodeName: n } = t, r = Object.keys(e).length;
|
|
3712
2695
|
return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
|
|
3713
2696
|
}
|
|
3714
2697
|
//#endregion
|
|
3715
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
3716
|
-
var
|
|
2698
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
2699
|
+
var Ln = class {
|
|
3717
2700
|
constructor(e) {
|
|
3718
|
-
this.externalEntities = {}, this.options =
|
|
2701
|
+
this.externalEntities = {}, this.options = ft(e);
|
|
3719
2702
|
}
|
|
3720
2703
|
parse(e, t) {
|
|
3721
2704
|
if (typeof e != "string" && e.toString) e = e.toString();
|
|
3722
2705
|
else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
|
|
3723
2706
|
if (t) {
|
|
3724
2707
|
t === !0 && (t = {});
|
|
3725
|
-
let n =
|
|
2708
|
+
let n = Be(e, t);
|
|
3726
2709
|
if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
|
|
3727
2710
|
}
|
|
3728
|
-
let n = new
|
|
3729
|
-
return this.options.preserveOrder || r === void 0 ? r :
|
|
2711
|
+
let n = new mn(this.options, this.externalEntities), r = n.parseXml(e);
|
|
2712
|
+
return this.options.preserveOrder || r === void 0 ? r : Mn(r, this.options, n.matcher, n.readonlyMatcher);
|
|
3730
2713
|
}
|
|
3731
2714
|
addEntity(e, t) {
|
|
3732
2715
|
if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
|
|
@@ -3735,9 +2718,9 @@ var Yn = class {
|
|
|
3735
2718
|
this.externalEntities[e] = t;
|
|
3736
2719
|
}
|
|
3737
2720
|
static getMetaDataSymbol() {
|
|
3738
|
-
return
|
|
2721
|
+
return W.getMetaDataSymbol();
|
|
3739
2722
|
}
|
|
3740
|
-
},
|
|
2723
|
+
}, Rn = class {
|
|
3741
2724
|
axiosClient;
|
|
3742
2725
|
baseURI;
|
|
3743
2726
|
xmlParser;
|
|
@@ -3747,7 +2730,7 @@ var Yn = class {
|
|
|
3747
2730
|
HASH_LENGTH = 32;
|
|
3748
2731
|
ITERATION_COUNT = 1e4;
|
|
3749
2732
|
constructor({ axiosClient: e, baseURI: t }) {
|
|
3750
|
-
this.axiosClient = e, this.baseURI = t, this.xmlParser = new
|
|
2733
|
+
this.axiosClient = e, this.baseURI = t, this.xmlParser = new Ln();
|
|
3751
2734
|
}
|
|
3752
2735
|
async signUrl(e, t) {
|
|
3753
2736
|
let n = new URL(e);
|
|
@@ -3761,16 +2744,16 @@ var Yn = class {
|
|
|
3761
2744
|
return this.signingKey = n.ocs.data["signing-key"], this.signingKey;
|
|
3762
2745
|
}
|
|
3763
2746
|
async createHashedKey(e) {
|
|
3764
|
-
return
|
|
2747
|
+
return Ne(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
|
|
3765
2748
|
}
|
|
3766
|
-
},
|
|
2749
|
+
}, zn = (e, t) => {
|
|
3767
2750
|
let n = new URL(e);
|
|
3768
2751
|
n.pathname = [
|
|
3769
2752
|
...n.pathname.split("/"),
|
|
3770
2753
|
"ocs",
|
|
3771
2754
|
"v1.php"
|
|
3772
2755
|
].filter(Boolean).join("/");
|
|
3773
|
-
let r = n.href, i = v(r, t), a = new
|
|
2756
|
+
let r = n.href, i = v(r, t), a = new Rn({
|
|
3774
2757
|
baseURI: e,
|
|
3775
2758
|
axiosClient: t
|
|
3776
2759
|
});
|
|
@@ -3780,4 +2763,4 @@ var Yn = class {
|
|
|
3780
2763
|
};
|
|
3781
2764
|
};
|
|
3782
2765
|
//#endregion
|
|
3783
|
-
export {
|
|
2766
|
+
export { wt as a, Kt as i, Ln as n, v as o, Yt as r, zn as t };
|