@harbour-enterprises/superdoc 0.8.29 → 0.8.31
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/chunks/__vite-browser-external-ChNNClnV.cjs +1 -0
- package/dist/chunks/__vite-browser-external-YbutIfMq.es.js +7 -0
- package/dist/chunks/empty-DBAFSQIv.cjs +1 -0
- package/dist/chunks/empty-GlqisfcO.es.js +4 -0
- package/dist/chunks/{eventemitter3-BJmh1qdq.es.js → eventemitter3-C2H8juPb.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DS1WPZxT.cjs → eventemitter3-D38HWRLP.cjs} +1 -1
- package/dist/chunks/index-BXKGjuVW.cjs +1 -0
- package/dist/chunks/index-ByK1C9Ha.cjs +1 -0
- package/dist/chunks/index-CqRwYOdx.cjs +1 -0
- package/dist/chunks/index-DjLrg1eZ.es.js +1676 -0
- package/dist/chunks/index-Dwr47WtL.es.js +230 -0
- package/dist/chunks/index-dZKHAFXF.es.js +42 -0
- package/dist/chunks/jszip-ChlzEvf9.cjs +6 -0
- package/dist/chunks/jszip-DSGi1sNe.es.js +1071 -0
- package/dist/chunks/{super-editor.es-DOk_Y-T9.cjs → super-editor.es-DW8rMUBO.cjs} +86 -86
- package/dist/chunks/{@harbour-enterprises/super-editor-D1Xk5Yrd.es.js → super-editor.es-DiQ6ytI2.es.js} +6577 -6290
- package/dist/chunks/url-6Xu7gR4T.cjs +6 -0
- package/dist/chunks/url-BxDGAI6E.es.js +1475 -0
- package/dist/chunks/{vue-BEXwSXMc.es.js → vue-BDbTsTMu.es.js} +32 -32
- package/dist/chunks/xml-js-BAML2_fM.es.js +1757 -0
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts +3 -0
- package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts.map +1 -0
- package/dist/components/PdfViewer/pdfjs.d.ts +3 -0
- package/dist/components/PdfViewer/pdfjs.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/style.css +9 -9
- package/dist/super-editor/chunks/{converter-14D5Azcr.js → converter-BE8UkEHA.js} +13 -13
- package/dist/super-editor/chunks/{docx-zipper-DgX4zdaV.js → docx-zipper-B7iW1WqK.js} +1 -1
- package/dist/super-editor/chunks/{editor-CPMoG7gE.js → editor-D7e-8Caj.js} +3275 -2988
- package/dist/super-editor/chunks/{toolbar-BDRxH8WI.js → toolbar-C_A0zvKt.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +7 -7
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts +3 -0
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts.map +1 -0
- package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts +3 -0
- package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts.map +1 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +9 -9
- package/dist/superdoc.cjs +451 -161
- package/dist/superdoc.es.js +27781 -6827
- package/dist/superdoc.umd.js +4061 -3777
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/jszip-B3_nOU0X.es.js +0 -1028
- package/dist/chunks/jszip-O1Upj8hc.cjs +0 -6
- package/dist/chunks/xml-js-B-IG5FIb.cjs +0 -1
- package/dist/chunks/xml-js-DTu9DyCb.es.js +0 -2
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
var A = {
|
|
2
|
+
a: 7,
|
|
3
|
+
c: 6,
|
|
4
|
+
h: 1,
|
|
5
|
+
l: 2,
|
|
6
|
+
m: 2,
|
|
7
|
+
q: 4,
|
|
8
|
+
s: 4,
|
|
9
|
+
t: 2,
|
|
10
|
+
v: 1,
|
|
11
|
+
z: 0
|
|
12
|
+
}, V = /([astvzqmhlc])([^astvzqmhlc]*)/gi, Z = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;
|
|
13
|
+
function _(o) {
|
|
14
|
+
const n = o.match(Z);
|
|
15
|
+
return n ? n.map(Number) : [];
|
|
16
|
+
}
|
|
17
|
+
function U(o) {
|
|
18
|
+
const n = [], t = String(o).trim();
|
|
19
|
+
return t[0] !== "M" && t[0] !== "m" || t.replace(V, (l, r, a) => {
|
|
20
|
+
const s = _(a);
|
|
21
|
+
let c = r.toLowerCase(), i = r;
|
|
22
|
+
if (c === "m" && s.length > 2 && (n.push([i, ...s.splice(0, 2)]), c = "l", i = i === "m" ? "l" : "L"), s.length < A[c])
|
|
23
|
+
return "";
|
|
24
|
+
for (n.push([i, ...s.splice(0, A[c])]); s.length >= A[c] && s.length && A[c]; )
|
|
25
|
+
n.push([i, ...s.splice(0, A[c])]);
|
|
26
|
+
return "";
|
|
27
|
+
}), n;
|
|
28
|
+
}
|
|
29
|
+
function B(o, n) {
|
|
30
|
+
const t = o.x * Math.cos(n) - o.y * Math.sin(n), l = o.y * Math.cos(n) + o.x * Math.sin(n);
|
|
31
|
+
o.x = t, o.y = l;
|
|
32
|
+
}
|
|
33
|
+
function j(o, n, t) {
|
|
34
|
+
o.x += n, o.y += t;
|
|
35
|
+
}
|
|
36
|
+
function C(o, n) {
|
|
37
|
+
o.x *= n, o.y *= n;
|
|
38
|
+
}
|
|
39
|
+
var N = class S {
|
|
40
|
+
constructor(n) {
|
|
41
|
+
this.commands = [], n && n instanceof S ? this.commands.push(...n.commands) : n && (this.commands = U(n));
|
|
42
|
+
}
|
|
43
|
+
addPath(n) {
|
|
44
|
+
n && n instanceof S && this.commands.push(...n.commands);
|
|
45
|
+
}
|
|
46
|
+
moveTo(n, t) {
|
|
47
|
+
this.commands.push(["M", n, t]);
|
|
48
|
+
}
|
|
49
|
+
lineTo(n, t) {
|
|
50
|
+
this.commands.push(["L", n, t]);
|
|
51
|
+
}
|
|
52
|
+
arc(n, t, l, r, a, s) {
|
|
53
|
+
this.commands.push(["AC", n, t, l, r, a, !!s]);
|
|
54
|
+
}
|
|
55
|
+
arcTo(n, t, l, r, a) {
|
|
56
|
+
this.commands.push(["AT", n, t, l, r, a]);
|
|
57
|
+
}
|
|
58
|
+
ellipse(n, t, l, r, a, s, c, i) {
|
|
59
|
+
this.commands.push(["E", n, t, l, r, a, s, c, !!i]);
|
|
60
|
+
}
|
|
61
|
+
closePath() {
|
|
62
|
+
this.commands.push(["Z"]);
|
|
63
|
+
}
|
|
64
|
+
bezierCurveTo(n, t, l, r, a, s) {
|
|
65
|
+
this.commands.push(["C", n, t, l, r, a, s]);
|
|
66
|
+
}
|
|
67
|
+
quadraticCurveTo(n, t, l, r) {
|
|
68
|
+
this.commands.push(["Q", n, t, l, r]);
|
|
69
|
+
}
|
|
70
|
+
rect(n, t, l, r) {
|
|
71
|
+
this.commands.push(["R", n, t, l, r]);
|
|
72
|
+
}
|
|
73
|
+
roundRect(n, t, l, r, a) {
|
|
74
|
+
typeof a > "u" ? this.commands.push(["RR", n, t, l, r, 0]) : this.commands.push(["RR", n, t, l, r, a]);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function F(o, n) {
|
|
78
|
+
let t = 0, l = 0, r, a, s, c, i, u, k, q, L, z, $, G, E, p, f, w, I, b, R, d, Q, m = null, P = null, y = null, T = null, v = null, M = null;
|
|
79
|
+
o.beginPath();
|
|
80
|
+
for (let h = 0; h < n.length; ++h) {
|
|
81
|
+
b = n[h][0], b !== "S" && b !== "s" && b !== "C" && b !== "c" && (m = null, P = null), b !== "T" && b !== "t" && b !== "Q" && b !== "q" && (y = null, T = null);
|
|
82
|
+
let e;
|
|
83
|
+
switch (b) {
|
|
84
|
+
case "m":
|
|
85
|
+
case "M":
|
|
86
|
+
e = n[h], b === "m" ? (t += e[1], l += e[2]) : (t = e[1], l = e[2]), (b === "M" || !v) && (v = { x: t, y: l }), o.moveTo(t, l);
|
|
87
|
+
break;
|
|
88
|
+
case "l":
|
|
89
|
+
e = n[h], t += e[1], l += e[2], o.lineTo(t, l);
|
|
90
|
+
break;
|
|
91
|
+
case "L":
|
|
92
|
+
e = n[h], t = e[1], l = e[2], o.lineTo(t, l);
|
|
93
|
+
break;
|
|
94
|
+
case "H":
|
|
95
|
+
e = n[h], t = e[1], o.lineTo(t, l);
|
|
96
|
+
break;
|
|
97
|
+
case "h":
|
|
98
|
+
e = n[h], t += e[1], o.lineTo(t, l);
|
|
99
|
+
break;
|
|
100
|
+
case "V":
|
|
101
|
+
e = n[h], l = e[1], o.lineTo(t, l);
|
|
102
|
+
break;
|
|
103
|
+
case "v":
|
|
104
|
+
e = n[h], l += e[1], o.lineTo(t, l);
|
|
105
|
+
break;
|
|
106
|
+
case "a":
|
|
107
|
+
case "A":
|
|
108
|
+
if (e = n[h], M === null)
|
|
109
|
+
throw new Error("This should never happen");
|
|
110
|
+
b === "a" ? (t += e[6], l += e[7]) : (t = e[6], l = e[7]), p = e[1], f = e[2], k = e[3] * Math.PI / 180, s = !!e[4], c = !!e[5], i = { x: t, y: l }, u = {
|
|
111
|
+
x: (M.x - i.x) / 2,
|
|
112
|
+
y: (M.y - i.y) / 2
|
|
113
|
+
}, B(u, -k), q = u.x * u.x / (p * p) + u.y * u.y / (f * f), q > 1 && (q = Math.sqrt(q), p *= q, f *= q), R = {
|
|
114
|
+
x: p * u.y / f,
|
|
115
|
+
y: -(f * u.x) / p
|
|
116
|
+
}, L = p * p * f * f, z = p * p * u.y * u.y + f * f * u.x * u.x, c !== s ? C(R, Math.sqrt((L - z) / z) || 0) : C(R, -Math.sqrt((L - z) / z) || 0), a = Math.atan2((u.y - R.y) / f, (u.x - R.x) / p), r = Math.atan2(-(u.y + R.y) / f, -(u.x + R.x) / p), B(R, k), j(R, (i.x + M.x) / 2, (i.y + M.y) / 2), o.save(), o.translate(R.x, R.y), o.rotate(k), o.scale(p, f), o.arc(0, 0, 1, a, r, !c), o.restore();
|
|
117
|
+
break;
|
|
118
|
+
case "C":
|
|
119
|
+
e = n[h], m = e[3], P = e[4], t = e[5], l = e[6], o.bezierCurveTo(e[1], e[2], m, P, t, l);
|
|
120
|
+
break;
|
|
121
|
+
case "c":
|
|
122
|
+
e = n[h], o.bezierCurveTo(e[1] + t, e[2] + l, e[3] + t, e[4] + l, e[5] + t, e[6] + l), m = e[3] + t, P = e[4] + l, t += e[5], l += e[6];
|
|
123
|
+
break;
|
|
124
|
+
case "S":
|
|
125
|
+
e = n[h], (m === null || P === null) && (m = t, P = l), o.bezierCurveTo(2 * t - m, 2 * l - P, e[1], e[2], e[3], e[4]), m = e[1], P = e[2], t = e[3], l = e[4];
|
|
126
|
+
break;
|
|
127
|
+
case "s":
|
|
128
|
+
e = n[h], (m === null || P === null) && (m = t, P = l), o.bezierCurveTo(2 * t - m, 2 * l - P, e[1] + t, e[2] + l, e[3] + t, e[4] + l), m = e[1] + t, P = e[2] + l, t += e[3], l += e[4];
|
|
129
|
+
break;
|
|
130
|
+
case "Q":
|
|
131
|
+
e = n[h], y = e[1], T = e[2], t = e[3], l = e[4], o.quadraticCurveTo(y, T, t, l);
|
|
132
|
+
break;
|
|
133
|
+
case "q":
|
|
134
|
+
e = n[h], y = e[1] + t, T = e[2] + l, t += e[3], l += e[4], o.quadraticCurveTo(y, T, t, l);
|
|
135
|
+
break;
|
|
136
|
+
case "T":
|
|
137
|
+
e = n[h], (y === null || T === null) && (y = t, T = l), y = 2 * t - y, T = 2 * l - T, t = e[1], l = e[2], o.quadraticCurveTo(y, T, t, l);
|
|
138
|
+
break;
|
|
139
|
+
case "t":
|
|
140
|
+
e = n[h], (y === null || T === null) && (y = t, T = l), y = 2 * t - y, T = 2 * l - T, t += e[1], l += e[2], o.quadraticCurveTo(y, T, t, l);
|
|
141
|
+
break;
|
|
142
|
+
case "z":
|
|
143
|
+
case "Z":
|
|
144
|
+
v && (t = v.x, l = v.y), v = null, o.closePath();
|
|
145
|
+
break;
|
|
146
|
+
case "AC":
|
|
147
|
+
e = n[h], t = e[1], l = e[2], E = e[3], a = e[4], r = e[5], d = e[6], o.arc(t, l, E, a, r, d);
|
|
148
|
+
break;
|
|
149
|
+
case "AT":
|
|
150
|
+
e = n[h], $ = e[1], G = e[2], t = e[3], l = e[4], E = e[5], o.arcTo($, G, t, l, E);
|
|
151
|
+
break;
|
|
152
|
+
case "E":
|
|
153
|
+
e = n[h], t = e[1], l = e[2], p = e[3], f = e[4], k = e[5], a = e[6], r = e[7], d = e[8], o.save(), o.translate(t, l), o.rotate(k), o.scale(p, f), o.arc(0, 0, 1, a, r, d), o.restore();
|
|
154
|
+
break;
|
|
155
|
+
case "R":
|
|
156
|
+
e = n[h], t = e[1], l = e[2], w = e[3], I = e[4], v = { x: t, y: l }, o.rect(t, l, w, I);
|
|
157
|
+
break;
|
|
158
|
+
case "RR":
|
|
159
|
+
e = n[h], t = e[1], l = e[2], w = e[3], I = e[4], Q = e[5], v = { x: t, y: l }, o.roundRect(t, l, w, I, Q);
|
|
160
|
+
break;
|
|
161
|
+
default:
|
|
162
|
+
throw new Error(`Invalid path command: ${b}`);
|
|
163
|
+
}
|
|
164
|
+
M ? (M.x = t, M.y = l) : M = { x: t, y: l };
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function H(o, n, t, l, r = 0) {
|
|
168
|
+
if (typeof r == "number" && (r = [r]), Array.isArray(r)) {
|
|
169
|
+
if (r.length === 0 || r.length > 4)
|
|
170
|
+
throw new RangeError(
|
|
171
|
+
`Failed to execute 'roundRect' on '${this.constructor.name}': ${r.length} radii provided. Between one and four radii are necessary.`
|
|
172
|
+
);
|
|
173
|
+
r.forEach((k) => {
|
|
174
|
+
if (k < 0)
|
|
175
|
+
throw new RangeError(
|
|
176
|
+
`Failed to execute 'roundRect' on '${this.constructor.name}': Radius value ${k} is negative.`
|
|
177
|
+
);
|
|
178
|
+
});
|
|
179
|
+
} else
|
|
180
|
+
return;
|
|
181
|
+
if (r.length === 1 && r[0] === 0) {
|
|
182
|
+
this.rect(o, n, t, l);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const a = Math.min(t, l) / 2, s = Math.min(a, r[0]);
|
|
186
|
+
let c = s, i = s, u = s;
|
|
187
|
+
r.length === 2 && (c = Math.min(a, r[1]), u = c), r.length === 3 && (c = Math.min(a, r[1]), u = c, i = Math.min(a, r[2])), r.length === 4 && (c = Math.min(a, r[1]), i = Math.min(a, r[2]), u = Math.min(a, r[3])), this.moveTo(o, n + l - u), this.arcTo(o, n, o + s, n, s), this.arcTo(o + t, n, o + t, n + c, c), this.arcTo(o + t, n + l, o + t - i, n + l, i), this.arcTo(o, n + l, o, n + l - u, u), this.closePath();
|
|
188
|
+
}
|
|
189
|
+
function J(o) {
|
|
190
|
+
if (!o) return;
|
|
191
|
+
const n = o.prototype.clip, t = o.prototype.fill, l = o.prototype.stroke, r = o.prototype.isPointInPath;
|
|
192
|
+
o.prototype.clip = function(...s) {
|
|
193
|
+
if (s[0] instanceof N) {
|
|
194
|
+
const i = s[0], u = s[1] || "nonzero";
|
|
195
|
+
return F(this, i.commands), n.apply(this, [u]);
|
|
196
|
+
}
|
|
197
|
+
const c = s[0] || "nonzero";
|
|
198
|
+
return n.apply(this, [c]);
|
|
199
|
+
}, o.prototype.fill = function(...s) {
|
|
200
|
+
if (s[0] instanceof N) {
|
|
201
|
+
const i = s[0], u = s[1] || "nonzero";
|
|
202
|
+
return F(this, i.commands), t.apply(this, [u]);
|
|
203
|
+
}
|
|
204
|
+
const c = s[0] || "nonzero";
|
|
205
|
+
return t.apply(this, [c]);
|
|
206
|
+
}, o.prototype.stroke = function(s) {
|
|
207
|
+
s && F(this, s.commands), l.apply(this);
|
|
208
|
+
}, o.prototype.isPointInPath = function(...s) {
|
|
209
|
+
if (s[0] instanceof N) {
|
|
210
|
+
const c = s[0], i = s[1], u = s[2], k = s[3] || "nonzero";
|
|
211
|
+
return F(this, c.commands), r.apply(this, [i, u, k]);
|
|
212
|
+
}
|
|
213
|
+
return r.apply(this, s);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function K(o) {
|
|
217
|
+
o && !o.prototype.roundRect && (o.prototype.roundRect = H);
|
|
218
|
+
}
|
|
219
|
+
function O(o) {
|
|
220
|
+
o && !o.prototype.roundRect && (o.prototype.roundRect = H);
|
|
221
|
+
}
|
|
222
|
+
export {
|
|
223
|
+
N as Path2D,
|
|
224
|
+
J as applyPath2DToCanvasRenderingContext,
|
|
225
|
+
K as applyRoundRectToCanvasRenderingContext2D,
|
|
226
|
+
O as applyRoundRectToPath2D,
|
|
227
|
+
F as buildPath,
|
|
228
|
+
U as parsePath,
|
|
229
|
+
H as roundRect
|
|
230
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { g as u } from "./jszip-DSGi1sNe.es.js";
|
|
2
|
+
import { s as l, r as g } from "./index-DjLrg1eZ.es.js";
|
|
3
|
+
function h(i, o) {
|
|
4
|
+
for (var f = 0; f < o.length; f++) {
|
|
5
|
+
const r = o[f];
|
|
6
|
+
if (typeof r != "string" && !Array.isArray(r)) {
|
|
7
|
+
for (const e in r)
|
|
8
|
+
if (e !== "default" && !(e in i)) {
|
|
9
|
+
const n = Object.getOwnPropertyDescriptor(r, e);
|
|
10
|
+
n && Object.defineProperty(i, e, n.get ? n : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => r[e]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var c = { exports: {} };
|
|
20
|
+
(function(i) {
|
|
21
|
+
var o = l, f = g, r = i.exports;
|
|
22
|
+
for (var e in o)
|
|
23
|
+
o.hasOwnProperty(e) && (r[e] = o[e]);
|
|
24
|
+
r.request = function(t, s) {
|
|
25
|
+
return t = n(t), o.request.call(this, t, s);
|
|
26
|
+
}, r.get = function(t, s) {
|
|
27
|
+
return t = n(t), o.get.call(this, t, s);
|
|
28
|
+
};
|
|
29
|
+
function n(t) {
|
|
30
|
+
if (typeof t == "string" && (t = f.parse(t)), t.protocol || (t.protocol = "https:"), t.protocol !== "https:")
|
|
31
|
+
throw new Error('Protocol "' + t.protocol + '" not supported. Expected "https:"');
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
})(c);
|
|
35
|
+
var p = c.exports;
|
|
36
|
+
const d = /* @__PURE__ */ u(p), y = /* @__PURE__ */ h({
|
|
37
|
+
__proto__: null,
|
|
38
|
+
default: d
|
|
39
|
+
}, [p]);
|
|
40
|
+
export {
|
|
41
|
+
y as i
|
|
42
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require("./vue-Ckf0DkDN.cjs");var I={},j={};j.byteLength=kt;j.toByteArray=Pt;j.fromByteArray=jt;var _=[],b=[],Mt=typeof Uint8Array<"u"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var P=0,Nt=z.length;P<Nt;++P)_[P]=z[P],b[z.charCodeAt(P)]=P;b[45]=62;b[95]=63;function ht(f){var h=f.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=f.indexOf("=");l===-1&&(l=h);var y=l===h?0:4-l%4;return[l,y]}function kt(f){var h=ht(f),l=h[0],y=h[1];return(l+y)*3/4-y}function Dt(f,h,l){return(h+l)*3/4-l}function Pt(f){var h,l=ht(f),y=l[0],w=l[1],p=new Mt(Dt(f,y,w)),s=0,m=w>0?y-4:y,B;for(B=0;B<m;B+=4)h=b[f.charCodeAt(B)]<<18|b[f.charCodeAt(B+1)]<<12|b[f.charCodeAt(B+2)]<<6|b[f.charCodeAt(B+3)],p[s++]=h>>16&255,p[s++]=h>>8&255,p[s++]=h&255;return w===2&&(h=b[f.charCodeAt(B)]<<2|b[f.charCodeAt(B+1)]>>4,p[s++]=h&255),w===1&&(h=b[f.charCodeAt(B)]<<10|b[f.charCodeAt(B+1)]<<4|b[f.charCodeAt(B+2)]>>2,p[s++]=h>>8&255,p[s++]=h&255),p}function Ot(f){return _[f>>18&63]+_[f>>12&63]+_[f>>6&63]+_[f&63]}function $t(f,h,l){for(var y,w=[],p=h;p<l;p+=3)y=(f[p]<<16&16711680)+(f[p+1]<<8&65280)+(f[p+2]&255),w.push(Ot(y));return w.join("")}function jt(f){for(var h,l=f.length,y=l%3,w=[],p=16383,s=0,m=l-y;s<m;s+=p)w.push($t(f,s,s+p>m?m:s+p));return y===1?(h=f[l-1],w.push(_[h>>2]+_[h<<4&63]+"==")):y===2&&(h=(f[l-2]<<8)+f[l-1],w.push(_[h>>10]+_[h>>4&63]+_[h<<2&63]+"=")),w.join("")}var J={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */J.read=function(f,h,l,y,w){var p,s,m=w*8-y-1,B=(1<<m)-1,A=B>>1,o=-7,U=l?w-1:0,S=l?-1:1,R=f[h+U];for(U+=S,p=R&(1<<-o)-1,R>>=-o,o+=m;o>0;p=p*256+f[h+U],U+=S,o-=8);for(s=p&(1<<-o)-1,p>>=-o,o+=y;o>0;s=s*256+f[h+U],U+=S,o-=8);if(p===0)p=1-A;else{if(p===B)return s?NaN:(R?-1:1)*(1/0);s=s+Math.pow(2,y),p=p-A}return(R?-1:1)*s*Math.pow(2,p-y)};J.write=function(f,h,l,y,w,p){var s,m,B,A=p*8-w-1,o=(1<<A)-1,U=o>>1,S=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=y?0:p-1,M=y?1:-1,G=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(m=isNaN(h)?1:0,s=o):(s=Math.floor(Math.log(h)/Math.LN2),h*(B=Math.pow(2,-s))<1&&(s--,B*=2),s+U>=1?h+=S/B:h+=S*Math.pow(2,1-U),h*B>=2&&(s++,B/=2),s+U>=o?(m=0,s=o):s+U>=1?(m=(h*B-1)*Math.pow(2,w),s=s+U):(m=h*Math.pow(2,U-1)*Math.pow(2,w),s=0));w>=8;f[l+R]=m&255,R+=M,m/=256,w-=8);for(s=s<<w|m,A+=w;A>0;f[l+R]=s&255,R+=M,s/=256,A-=8);f[l+R-M]|=G*128};/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/(function(f){const h=j,l=J,y=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=o,f.SlowBuffer=at,f.INSPECT_MAX_BYTES=50;const w=2147483647;f.kMaxLength=w;const{Uint8Array:p,ArrayBuffer:s,SharedArrayBuffer:m}=globalThis;o.TYPED_ARRAY_SUPPORT=B(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function B(){try{const e=new p(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,p.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function A(e){if(e>w)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new p(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return M(e)}return U(e,t,r)}o.poolSize=8192;function U(e,t,r){if(typeof e=="string")return G(e,t);if(s.isView(e))return st(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,s)||e&&C(e.buffer,s)||typeof m<"u"&&(C(e,m)||e&&C(e.buffer,m)))return W(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,t,r);const i=lt(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,t,r){return U(e,t,r)},Object.setPrototypeOf(o.prototype,p.prototype),Object.setPrototypeOf(o,p);function S(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function R(e,t,r){return S(e),e<=0?A(e):t!==void 0?typeof r=="string"?A(e).fill(t,r):A(e).fill(t):A(e)}o.alloc=function(e,t,r){return R(e,t,r)};function M(e){return S(e),A(e<0?0:q(e)|0)}o.allocUnsafe=function(e){return M(e)},o.allocUnsafeSlow=function(e){return M(e)};function G(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=K(e,t)|0;let n=A(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Y(e){const t=e.length<0?0:q(e.length)|0,r=A(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function st(e){if(C(e,p)){const t=new p(e);return W(t.buffer,t.byteOffset,t.byteLength)}return Y(e)}function W(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new p(e):r===void 0?n=new p(e,t):n=new p(e,t,r),Object.setPrototypeOf(n,o.prototype),n}function lt(e){if(o.isBuffer(e)){const t=q(e.length)|0,r=A(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||V(e.length)?A(0):Y(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Y(e.data)}function q(e){if(e>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return e|0}function at(e){return+e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==o.prototype},o.compare=function(t,r){if(C(t,p)&&(t=o.from(t,t.offset,t.byteLength)),C(r,p)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(t)||!o.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let u=0,c=Math.min(n,i);u<c;++u)if(t[u]!==r[u]){n=t[u],i=r[u];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return o.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;const i=o.allocUnsafe(r);let u=0;for(n=0;n<t.length;++n){let c=t[n];if(C(c,p))u+c.length>i.length?(o.isBuffer(c)||(c=o.from(c)),c.copy(i,u)):p.prototype.set.call(i,c,u);else if(o.isBuffer(c))c.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=c.length}return i};function K(e,t){if(o.isBuffer(e))return e.length;if(s.isView(e)||C(e,s))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ft(e).length;default:if(i)return n?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}o.byteLength=K;function yt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return At(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return It(this,t,r);case"latin1":case"binary":return Ft(this,t,r);case"base64":return gt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}o.prototype._isBuffer=!0;function N(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}o.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)N(this,r,r+1);return this},o.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)N(this,r,r+3),N(this,r+1,r+2);return this},o.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)N(this,r,r+7),N(this,r+1,r+6),N(this,r+2,r+5),N(this,r+3,r+4);return this},o.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?v(this,0,t):yt.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:o.compare(this,t)===0},o.prototype.inspect=function(){let t="";const r=f.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},y&&(o.prototype[y]=o.prototype.inspect),o.prototype.compare=function(t,r,n,i,u){if(C(t,p)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),r<0||n>t.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&r>=n)return 0;if(i>=u)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,u>>>=0,this===t)return 0;let c=u-i,a=n-r;const E=Math.min(c,a),d=this.slice(i,u),g=t.slice(r,n);for(let x=0;x<E;++x)if(d[x]!==g[x]){c=d[x],a=g[x];break}return c<a?-1:a<c?1:0};function Z(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,V(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=o.from(t,n)),o.isBuffer(t))return t.length===0?-1:Q(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof p.prototype.indexOf=="function"?i?p.prototype.indexOf.call(e,t,r):p.prototype.lastIndexOf.call(e,t,r):Q(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Q(e,t,r,n,i){let u=1,c=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;u=2,c/=2,a/=2,r/=2}function E(g,x){return u===1?g[x]:g.readUInt16BE(x*u)}let d;if(i){let g=-1;for(d=r;d<c;d++)if(E(e,d)===E(t,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===a)return g*u}else g!==-1&&(d-=d-g),g=-1}else for(r+a>c&&(r=c-a),d=r;d>=0;d--){let g=!0;for(let x=0;x<a;x++)if(E(e,d+x)!==E(t,x)){g=!1;break}if(g)return d}return-1}o.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1},o.prototype.indexOf=function(t,r,n){return Z(this,t,r,n,!0)},o.prototype.lastIndexOf=function(t,r,n){return Z(this,t,r,n,!1)};function wt(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;const u=t.length;n>u/2&&(n=u/2);let c;for(c=0;c<n;++c){const a=parseInt(t.substr(c*2,2),16);if(V(a))return c;e[r+c]=a}return c}function xt(e,t,r,n){return $(H(t,e.length-r),e,r,n)}function Bt(e,t,r,n){return $(Ct(t),e,r,n)}function dt(e,t,r,n){return $(ft(t),e,r,n)}function Et(e,t,r,n){return $(_t(t,e.length-r),e,r,n)}o.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const u=this.length-r;if((n===void 0||n>u)&&(n=u),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let c=!1;for(;;)switch(i){case"hex":return wt(this,t,r,n);case"utf8":case"utf-8":return xt(this,t,r,n);case"ascii":case"latin1":case"binary":return Bt(this,t,r,n);case"base64":return dt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Et(this,t,r,n);default:if(c)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),c=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function gt(e,t,r){return t===0&&r===e.length?h.fromByteArray(e):h.fromByteArray(e.slice(t,r))}function v(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const u=e[i];let c=null,a=u>239?4:u>223?3:u>191?2:1;if(i+a<=r){let E,d,g,x;switch(a){case 1:u<128&&(c=u);break;case 2:E=e[i+1],(E&192)===128&&(x=(u&31)<<6|E&63,x>127&&(c=x));break;case 3:E=e[i+1],d=e[i+2],(E&192)===128&&(d&192)===128&&(x=(u&15)<<12|(E&63)<<6|d&63,x>2047&&(x<55296||x>57343)&&(c=x));break;case 4:E=e[i+1],d=e[i+2],g=e[i+3],(E&192)===128&&(d&192)===128&&(g&192)===128&&(x=(u&15)<<18|(E&63)<<12|(d&63)<<6|g&63,x>65535&&x<1114112&&(c=x))}}c===null?(c=65533,a=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c),i+=a}return mt(n)}const tt=4096;function mt(e){const t=e.length;if(t<=tt)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=tt));return r}function It(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Ft(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function At(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let u=t;u<r;++u)i+=St[e[u]];return i}function Ut(e,t,r){const n=e.slice(t,r);let i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}o.prototype.slice=function(t,r){const n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);const i=this.subarray(t,r);return Object.setPrototypeOf(i,o.prototype),i};function F(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||F(t,r,this.length);let i=this[t],u=1,c=0;for(;++c<r&&(u*=256);)i+=this[t+c]*u;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||F(t,r,this.length);let i=this[t+--r],u=1;for(;r>0&&(u*=256);)i+=this[t+--r]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=L(function(t){t=t>>>0,D(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&O(t,this.length-8);const i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,u=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))}),o.prototype.readBigUInt64BE=L(function(t){t=t>>>0,D(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&O(t,this.length-8);const i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],u=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(u)}),o.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||F(t,r,this.length);let i=this[t],u=1,c=0;for(;++c<r&&(u*=256);)i+=this[t+c]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*r)),i},o.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||F(t,r,this.length);let i=r,u=1,c=this[t+--i];for(;i>0&&(u*=256);)c+=this[t+--i]*u;return u*=128,c>=u&&(c-=Math.pow(2,8*r)),c},o.prototype.readInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},o.prototype.readInt16LE=function(t,r){t=t>>>0,r||F(t,2,this.length);const n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(t,r){t=t>>>0,r||F(t,2,this.length);const n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=L(function(t){t=t>>>0,D(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&O(t,this.length-8);const i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),o.prototype.readBigInt64BE=L(function(t){t=t>>>0,D(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&O(t,this.length-8);const i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)}),o.prototype.readFloatLE=function(t,r){return t=t>>>0,r||F(t,4,this.length),l.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,r){return t=t>>>0,r||F(t,4,this.length),l.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||F(t,8,this.length),l.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||F(t,8,this.length),l.read(this,t,!1,52,8)};function T(e,t,r,n,i,u){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<u)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){const a=Math.pow(2,8*n)-1;T(this,t,r,n,a,0)}let u=1,c=0;for(this[r]=t&255;++c<n&&(u*=256);)this[r+c]=t/u&255;return r+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){const a=Math.pow(2,8*n)-1;T(this,t,r,n,a,0)}let u=n-1,c=1;for(this[r+u]=t&255;--u>=0&&(c*=256);)this[r+u]=t/c&255;return r+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,1,255,0),this[r]=t&255,r+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function rt(e,t,r,n,i){ct(t,n,i,e,r,7);let u=Number(t&BigInt(4294967295));e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u;let c=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=c,c=c>>8,e[r++]=c,c=c>>8,e[r++]=c,c=c>>8,e[r++]=c,r}function et(e,t,r,n,i){ct(t,n,i,e,r,7);let u=Number(t&BigInt(4294967295));e[r+7]=u,u=u>>8,e[r+6]=u,u=u>>8,e[r+5]=u,u=u>>8,e[r+4]=u;let c=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=c,c=c>>8,e[r+2]=c,c=c>>8,e[r+1]=c,c=c>>8,e[r]=c,r+8}o.prototype.writeBigUInt64LE=L(function(t,r=0){return rt(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=L(function(t,r=0){return et(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){const E=Math.pow(2,8*n-1);T(this,t,r,n,E-1,-E)}let u=0,c=1,a=0;for(this[r]=t&255;++u<n&&(c*=256);)t<0&&a===0&&this[r+u-1]!==0&&(a=1),this[r+u]=(t/c>>0)-a&255;return r+n},o.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){const E=Math.pow(2,8*n-1);T(this,t,r,n,E-1,-E)}let u=n-1,c=1,a=0;for(this[r+u]=t&255;--u>=0&&(c*=256);)t<0&&a===0&&this[r+u+1]!==0&&(a=1),this[r+u]=(t/c>>0)-a&255;return r+n},o.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1},o.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2},o.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2},o.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},o.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||T(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4},o.prototype.writeBigInt64LE=L(function(t,r=0){return rt(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=L(function(t,r=0){return et(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(e,t,r,n,i,u){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function it(e,t,r,n,i){return t=+t,r=r>>>0,i||nt(e,t,r,4),l.write(e,t,r,n,23,4),r+4}o.prototype.writeFloatLE=function(t,r,n){return it(this,t,r,!0,n)},o.prototype.writeFloatBE=function(t,r,n){return it(this,t,r,!1,n)};function ot(e,t,r,n,i){return t=+t,r=r>>>0,i||nt(e,t,r,8),l.write(e,t,r,n,52,8),r+8}o.prototype.writeDoubleLE=function(t,r,n){return ot(this,t,r,!0,n)},o.prototype.writeDoubleBE=function(t,r,n){return ot(this,t,r,!1,n)},o.prototype.copy=function(t,r,n,i){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);const u=i-n;return this===t&&typeof p.prototype.copyWithin=="function"?this.copyWithin(r,n,i):p.prototype.set.call(t,this.subarray(n,i),r),u},o.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){const c=t.charCodeAt(0);(i==="utf8"&&c<128||i==="latin1")&&(t=c)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let u;if(typeof t=="number")for(u=r;u<n;++u)this[u]=t;else{const c=o.isBuffer(t)?t:o.from(t,i),a=c.length;if(a===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(u=0;u<n-r;++u)this[u+r]=c[u%a]}return this};const k={};function X(e,t,r){k[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}X("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),X("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),X("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=ut(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=ut(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ut(e){let t="",r=e.length;const n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Tt(e,t,r){D(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&O(t,e.length-(r+1))}function ct(e,t,r,n,i,u){if(e>r||e<t){const c=typeof t=="bigint"?"n":"";let a;throw t===0||t===BigInt(0)?a=`>= 0${c} and < 2${c} ** ${(u+1)*8}${c}`:a=`>= -(2${c} ** ${(u+1)*8-1}${c}) and < 2 ** ${(u+1)*8-1}${c}`,new k.ERR_OUT_OF_RANGE("value",a,e)}Tt(n,i,u)}function D(e,t){if(typeof e!="number")throw new k.ERR_INVALID_ARG_TYPE(t,"number",e)}function O(e,t,r){throw Math.floor(e)!==e?(D(e,r),new k.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new k.ERR_BUFFER_OUT_OF_BOUNDS:new k.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const Rt=/[^+/0-9A-Za-z-_]/g;function bt(e){if(e=e.split("=")[0],e=e.trim().replace(Rt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function H(e,t){t=t||1/0;let r;const n=e.length;let i=null;const u=[];for(let c=0;c<n;++c){if(r=e.charCodeAt(c),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&u.push(239,191,189);continue}else if(c+1===n){(t-=3)>-1&&u.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&u.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&u.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;u.push(r)}else if(r<2048){if((t-=2)<0)break;u.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;u.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return u}function Ct(e){const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function _t(e,t){let r,n,i;const u=[];for(let c=0;c<e.length&&!((t-=2)<0);++c)r=e.charCodeAt(c),n=r>>8,i=r%256,u.push(i),u.push(n);return u}function ft(e){return h.toByteArray(bt(e))}function $(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function C(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function V(e){return e!==e}const St=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function L(e){return typeof BigInt>"u"?Lt:e}function Lt(){throw new Error("BigInt not supported")}})(I);const pt=I.Buffer,Gt=I.Blob,Yt=I.BlobOptions,Wt=I.Buffer,qt=I.File,Xt=I.FileOptions,Ht=I.INSPECT_MAX_BYTES,Vt=I.SlowBuffer,zt=I.TranscodeEncoding,Jt=I.atob,Kt=I.btoa,Zt=I.constants,Qt=I.isAscii,vt=I.isUtf8,tr=I.kMaxLength,rr=I.kStringMaxLength,er=I.resolveObjectURL,nr=I.transcode,ir=Object.freeze(Object.defineProperty({__proto__:null,Blob:Gt,BlobOptions:Yt,Buffer:Wt,File:qt,FileOptions:Xt,INSPECT_MAX_BYTES:Ht,SlowBuffer:Vt,TranscodeEncoding:zt,atob:Jt,btoa:Kt,constants:Zt,default:pt,isAscii:Qt,isUtf8:vt,kMaxLength:tr,kStringMaxLength:rr,resolveObjectURL:er,transcode:nr},Symbol.toStringTag,{value:"Module"}));var or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}function cr(f){if(f.__esModule)return f;var h=f.default;if(typeof h=="function"){var l=function y(){return this instanceof y?Reflect.construct(h,arguments,this.constructor):h.apply(this,arguments)};l.prototype=h.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(f).forEach(function(y){var w=Object.getOwnPropertyDescriptor(f,y);Object.defineProperty(l,y,w.get?w:{enumerable:!0,get:function(){return f[y]}})}),l}exports.Buffer=pt;exports.commonjsGlobal=or;exports.dist=ir;exports.getAugmentedNamespace=cr;exports.getDefaultExportFromCjs=ur;
|