@genome-spy/app 0.37.4 → 0.38.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/__vite-browser-external-ENoMJThg.js +8 -0
- package/dist/index-2VmK8MLN.js +1074 -0
- package/dist/index-2mPD1sXi.js +1372 -0
- package/dist/index-5BtgVTyz.js +515 -0
- package/dist/index-DD9IXliq.js +4050 -0
- package/dist/index-JuiSQXKu.js +501 -0
- package/dist/index-Nre2aQhT.js +2190 -0
- package/dist/index-UyB03NDZ.js +29302 -0
- package/dist/index-bYeOjUJA.js +638 -0
- package/dist/index-tnhTL94V.js +279 -0
- package/dist/index-yisZrslf.js +72 -0
- package/dist/index.es.js +9 -0
- package/dist/index.js +285 -307
- package/dist/long-WDeGicRf.js +2382 -0
- package/dist/remoteFile-1ad_qGwi.js +96 -0
- package/package.json +10 -9
@@ -0,0 +1,1074 @@
|
|
1
|
+
import { g as _r } from "./index-UyB03NDZ.js";
|
2
|
+
function Sr(c, f) {
|
3
|
+
for (var s = 0; s < f.length; s++) {
|
4
|
+
const w = f[s];
|
5
|
+
if (typeof w != "string" && !Array.isArray(w)) {
|
6
|
+
for (const y in w)
|
7
|
+
if (y !== "default" && !(y in c)) {
|
8
|
+
const l = Object.getOwnPropertyDescriptor(w, y);
|
9
|
+
l && Object.defineProperty(c, y, l.get ? l : {
|
10
|
+
enumerable: !0,
|
11
|
+
get: () => w[y]
|
12
|
+
});
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
|
17
|
+
}
|
18
|
+
var V = {}, j = {};
|
19
|
+
j.byteLength = Nr;
|
20
|
+
j.toByteArray = kr;
|
21
|
+
j.fromByteArray = Pr;
|
22
|
+
var _ = [], R = [], Lr = typeof Uint8Array < "u" ? Uint8Array : Array, H = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
23
|
+
for (var k = 0, br = H.length; k < br; ++k)
|
24
|
+
_[k] = H[k], R[H.charCodeAt(k)] = k;
|
25
|
+
R["-".charCodeAt(0)] = 62;
|
26
|
+
R["_".charCodeAt(0)] = 63;
|
27
|
+
function hr(c) {
|
28
|
+
var f = c.length;
|
29
|
+
if (f % 4 > 0)
|
30
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
31
|
+
var s = c.indexOf("=");
|
32
|
+
s === -1 && (s = f);
|
33
|
+
var w = s === f ? 0 : 4 - s % 4;
|
34
|
+
return [s, w];
|
35
|
+
}
|
36
|
+
function Nr(c) {
|
37
|
+
var f = hr(c), s = f[0], w = f[1];
|
38
|
+
return (s + w) * 3 / 4 - w;
|
39
|
+
}
|
40
|
+
function Mr(c, f, s) {
|
41
|
+
return (f + s) * 3 / 4 - s;
|
42
|
+
}
|
43
|
+
function kr(c) {
|
44
|
+
var f, s = hr(c), w = s[0], y = s[1], l = new Lr(Mr(c, w, y)), p = 0, o = y > 0 ? w - 4 : w, B;
|
45
|
+
for (B = 0; B < o; B += 4)
|
46
|
+
f = R[c.charCodeAt(B)] << 18 | R[c.charCodeAt(B + 1)] << 12 | R[c.charCodeAt(B + 2)] << 6 | R[c.charCodeAt(B + 3)], l[p++] = f >> 16 & 255, l[p++] = f >> 8 & 255, l[p++] = f & 255;
|
47
|
+
return y === 2 && (f = R[c.charCodeAt(B)] << 2 | R[c.charCodeAt(B + 1)] >> 4, l[p++] = f & 255), y === 1 && (f = R[c.charCodeAt(B)] << 10 | R[c.charCodeAt(B + 1)] << 4 | R[c.charCodeAt(B + 2)] >> 2, l[p++] = f >> 8 & 255, l[p++] = f & 255), l;
|
48
|
+
}
|
49
|
+
function Dr(c) {
|
50
|
+
return _[c >> 18 & 63] + _[c >> 12 & 63] + _[c >> 6 & 63] + _[c & 63];
|
51
|
+
}
|
52
|
+
function $r(c, f, s) {
|
53
|
+
for (var w, y = [], l = f; l < s; l += 3)
|
54
|
+
w = (c[l] << 16 & 16711680) + (c[l + 1] << 8 & 65280) + (c[l + 2] & 255), y.push(Dr(w));
|
55
|
+
return y.join("");
|
56
|
+
}
|
57
|
+
function Pr(c) {
|
58
|
+
for (var f, s = c.length, w = s % 3, y = [], l = 16383, p = 0, o = s - w; p < o; p += l)
|
59
|
+
y.push($r(c, p, p + l > o ? o : p + l));
|
60
|
+
return w === 1 ? (f = c[s - 1], y.push(
|
61
|
+
_[f >> 2] + _[f << 4 & 63] + "=="
|
62
|
+
)) : w === 2 && (f = (c[s - 2] << 8) + c[s - 1], y.push(
|
63
|
+
_[f >> 10] + _[f >> 4 & 63] + _[f << 2 & 63] + "="
|
64
|
+
)), y.join("");
|
65
|
+
}
|
66
|
+
var X = {};
|
67
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
68
|
+
X.read = function(c, f, s, w, y) {
|
69
|
+
var l, p, o = y * 8 - w - 1, B = (1 << o) - 1, T = B >> 1, I = -7, F = s ? y - 1 : 0, S = s ? -1 : 1, A = c[f + F];
|
70
|
+
for (F += S, l = A & (1 << -I) - 1, A >>= -I, I += o; I > 0; l = l * 256 + c[f + F], F += S, I -= 8)
|
71
|
+
;
|
72
|
+
for (p = l & (1 << -I) - 1, l >>= -I, I += w; I > 0; p = p * 256 + c[f + F], F += S, I -= 8)
|
73
|
+
;
|
74
|
+
if (l === 0)
|
75
|
+
l = 1 - T;
|
76
|
+
else {
|
77
|
+
if (l === B)
|
78
|
+
return p ? NaN : (A ? -1 : 1) * (1 / 0);
|
79
|
+
p = p + Math.pow(2, w), l = l - T;
|
80
|
+
}
|
81
|
+
return (A ? -1 : 1) * p * Math.pow(2, l - w);
|
82
|
+
};
|
83
|
+
X.write = function(c, f, s, w, y, l) {
|
84
|
+
var p, o, B, T = l * 8 - y - 1, I = (1 << T) - 1, F = I >> 1, S = y === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, A = w ? 0 : l - 1, D = w ? 1 : -1, $ = f < 0 || f === 0 && 1 / f < 0 ? 1 : 0;
|
85
|
+
for (f = Math.abs(f), isNaN(f) || f === 1 / 0 ? (o = isNaN(f) ? 1 : 0, p = I) : (p = Math.floor(Math.log(f) / Math.LN2), f * (B = Math.pow(2, -p)) < 1 && (p--, B *= 2), p + F >= 1 ? f += S / B : f += S * Math.pow(2, 1 - F), f * B >= 2 && (p++, B /= 2), p + F >= I ? (o = 0, p = I) : p + F >= 1 ? (o = (f * B - 1) * Math.pow(2, y), p = p + F) : (o = f * Math.pow(2, F - 1) * Math.pow(2, y), p = 0)); y >= 8; c[s + A] = o & 255, A += D, o /= 256, y -= 8)
|
86
|
+
;
|
87
|
+
for (p = p << y | o, T += y; T > 0; c[s + A] = p & 255, A += D, p /= 256, T -= 8)
|
88
|
+
;
|
89
|
+
c[s + A - D] |= $ * 128;
|
90
|
+
};
|
91
|
+
/*!
|
92
|
+
* The buffer module from node.js, for the browser.
|
93
|
+
*
|
94
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
95
|
+
* @license MIT
|
96
|
+
*/
|
97
|
+
(function(c) {
|
98
|
+
const f = j, s = X, w = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
99
|
+
c.Buffer = o, c.SlowBuffer = cr, c.INSPECT_MAX_BYTES = 50;
|
100
|
+
const y = 2147483647;
|
101
|
+
c.kMaxLength = y, o.TYPED_ARRAY_SUPPORT = l(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
102
|
+
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
103
|
+
);
|
104
|
+
function l() {
|
105
|
+
try {
|
106
|
+
const i = new Uint8Array(1), r = { foo: function() {
|
107
|
+
return 42;
|
108
|
+
} };
|
109
|
+
return Object.setPrototypeOf(r, Uint8Array.prototype), Object.setPrototypeOf(i, r), i.foo() === 42;
|
110
|
+
} catch {
|
111
|
+
return !1;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
Object.defineProperty(o.prototype, "parent", {
|
115
|
+
enumerable: !0,
|
116
|
+
get: function() {
|
117
|
+
if (o.isBuffer(this))
|
118
|
+
return this.buffer;
|
119
|
+
}
|
120
|
+
}), Object.defineProperty(o.prototype, "offset", {
|
121
|
+
enumerable: !0,
|
122
|
+
get: function() {
|
123
|
+
if (o.isBuffer(this))
|
124
|
+
return this.byteOffset;
|
125
|
+
}
|
126
|
+
});
|
127
|
+
function p(i) {
|
128
|
+
if (i > y)
|
129
|
+
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
130
|
+
const r = new Uint8Array(i);
|
131
|
+
return Object.setPrototypeOf(r, o.prototype), r;
|
132
|
+
}
|
133
|
+
function o(i, r, t) {
|
134
|
+
if (typeof i == "number") {
|
135
|
+
if (typeof r == "string")
|
136
|
+
throw new TypeError(
|
137
|
+
'The "string" argument must be of type string. Received type number'
|
138
|
+
);
|
139
|
+
return F(i);
|
140
|
+
}
|
141
|
+
return B(i, r, t);
|
142
|
+
}
|
143
|
+
o.poolSize = 8192;
|
144
|
+
function B(i, r, t) {
|
145
|
+
if (typeof i == "string")
|
146
|
+
return S(i, r);
|
147
|
+
if (ArrayBuffer.isView(i))
|
148
|
+
return D(i);
|
149
|
+
if (i == null)
|
150
|
+
throw new TypeError(
|
151
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
152
|
+
);
|
153
|
+
if (C(i, ArrayBuffer) || i && C(i.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (C(i, SharedArrayBuffer) || i && C(i.buffer, SharedArrayBuffer)))
|
154
|
+
return $(i, r, t);
|
155
|
+
if (typeof i == "number")
|
156
|
+
throw new TypeError(
|
157
|
+
'The "value" argument must not be of type number. Received type number'
|
158
|
+
);
|
159
|
+
const n = i.valueOf && i.valueOf();
|
160
|
+
if (n != null && n !== i)
|
161
|
+
return o.from(n, r, t);
|
162
|
+
const e = fr(i);
|
163
|
+
if (e)
|
164
|
+
return e;
|
165
|
+
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
|
166
|
+
return o.from(i[Symbol.toPrimitive]("string"), r, t);
|
167
|
+
throw new TypeError(
|
168
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
169
|
+
);
|
170
|
+
}
|
171
|
+
o.from = function(i, r, t) {
|
172
|
+
return B(i, r, t);
|
173
|
+
}, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
|
174
|
+
function T(i) {
|
175
|
+
if (typeof i != "number")
|
176
|
+
throw new TypeError('"size" argument must be of type number');
|
177
|
+
if (i < 0)
|
178
|
+
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
179
|
+
}
|
180
|
+
function I(i, r, t) {
|
181
|
+
return T(i), i <= 0 ? p(i) : r !== void 0 ? typeof t == "string" ? p(i).fill(r, t) : p(i).fill(r) : p(i);
|
182
|
+
}
|
183
|
+
o.alloc = function(i, r, t) {
|
184
|
+
return I(i, r, t);
|
185
|
+
};
|
186
|
+
function F(i) {
|
187
|
+
return T(i), p(i < 0 ? 0 : G(i) | 0);
|
188
|
+
}
|
189
|
+
o.allocUnsafe = function(i) {
|
190
|
+
return F(i);
|
191
|
+
}, o.allocUnsafeSlow = function(i) {
|
192
|
+
return F(i);
|
193
|
+
};
|
194
|
+
function S(i, r) {
|
195
|
+
if ((typeof r != "string" || r === "") && (r = "utf8"), !o.isEncoding(r))
|
196
|
+
throw new TypeError("Unknown encoding: " + r);
|
197
|
+
const t = z(i, r) | 0;
|
198
|
+
let n = p(t);
|
199
|
+
const e = n.write(i, r);
|
200
|
+
return e !== t && (n = n.slice(0, e)), n;
|
201
|
+
}
|
202
|
+
function A(i) {
|
203
|
+
const r = i.length < 0 ? 0 : G(i.length) | 0, t = p(r);
|
204
|
+
for (let n = 0; n < r; n += 1)
|
205
|
+
t[n] = i[n] & 255;
|
206
|
+
return t;
|
207
|
+
}
|
208
|
+
function D(i) {
|
209
|
+
if (C(i, Uint8Array)) {
|
210
|
+
const r = new Uint8Array(i);
|
211
|
+
return $(r.buffer, r.byteOffset, r.byteLength);
|
212
|
+
}
|
213
|
+
return A(i);
|
214
|
+
}
|
215
|
+
function $(i, r, t) {
|
216
|
+
if (r < 0 || i.byteLength < r)
|
217
|
+
throw new RangeError('"offset" is outside of buffer bounds');
|
218
|
+
if (i.byteLength < r + (t || 0))
|
219
|
+
throw new RangeError('"length" is outside of buffer bounds');
|
220
|
+
let n;
|
221
|
+
return r === void 0 && t === void 0 ? n = new Uint8Array(i) : t === void 0 ? n = new Uint8Array(i, r) : n = new Uint8Array(i, r, t), Object.setPrototypeOf(n, o.prototype), n;
|
222
|
+
}
|
223
|
+
function fr(i) {
|
224
|
+
if (o.isBuffer(i)) {
|
225
|
+
const r = G(i.length) | 0, t = p(r);
|
226
|
+
return t.length === 0 || i.copy(t, 0, 0, r), t;
|
227
|
+
}
|
228
|
+
if (i.length !== void 0)
|
229
|
+
return typeof i.length != "number" || q(i.length) ? p(0) : A(i);
|
230
|
+
if (i.type === "Buffer" && Array.isArray(i.data))
|
231
|
+
return A(i.data);
|
232
|
+
}
|
233
|
+
function G(i) {
|
234
|
+
if (i >= y)
|
235
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + y.toString(16) + " bytes");
|
236
|
+
return i | 0;
|
237
|
+
}
|
238
|
+
function cr(i) {
|
239
|
+
return +i != i && (i = 0), o.alloc(+i);
|
240
|
+
}
|
241
|
+
o.isBuffer = function(r) {
|
242
|
+
return r != null && r._isBuffer === !0 && r !== o.prototype;
|
243
|
+
}, o.compare = function(r, t) {
|
244
|
+
if (C(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), C(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(r) || !o.isBuffer(t))
|
245
|
+
throw new TypeError(
|
246
|
+
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
247
|
+
);
|
248
|
+
if (r === t)
|
249
|
+
return 0;
|
250
|
+
let n = r.length, e = t.length;
|
251
|
+
for (let u = 0, h = Math.min(n, e); u < h; ++u)
|
252
|
+
if (r[u] !== t[u]) {
|
253
|
+
n = r[u], e = t[u];
|
254
|
+
break;
|
255
|
+
}
|
256
|
+
return n < e ? -1 : e < n ? 1 : 0;
|
257
|
+
}, o.isEncoding = function(r) {
|
258
|
+
switch (String(r).toLowerCase()) {
|
259
|
+
case "hex":
|
260
|
+
case "utf8":
|
261
|
+
case "utf-8":
|
262
|
+
case "ascii":
|
263
|
+
case "latin1":
|
264
|
+
case "binary":
|
265
|
+
case "base64":
|
266
|
+
case "ucs2":
|
267
|
+
case "ucs-2":
|
268
|
+
case "utf16le":
|
269
|
+
case "utf-16le":
|
270
|
+
return !0;
|
271
|
+
default:
|
272
|
+
return !1;
|
273
|
+
}
|
274
|
+
}, o.concat = function(r, t) {
|
275
|
+
if (!Array.isArray(r))
|
276
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
277
|
+
if (r.length === 0)
|
278
|
+
return o.alloc(0);
|
279
|
+
let n;
|
280
|
+
if (t === void 0)
|
281
|
+
for (t = 0, n = 0; n < r.length; ++n)
|
282
|
+
t += r[n].length;
|
283
|
+
const e = o.allocUnsafe(t);
|
284
|
+
let u = 0;
|
285
|
+
for (n = 0; n < r.length; ++n) {
|
286
|
+
let h = r[n];
|
287
|
+
if (C(h, Uint8Array))
|
288
|
+
u + h.length > e.length ? (o.isBuffer(h) || (h = o.from(h)), h.copy(e, u)) : Uint8Array.prototype.set.call(
|
289
|
+
e,
|
290
|
+
h,
|
291
|
+
u
|
292
|
+
);
|
293
|
+
else if (o.isBuffer(h))
|
294
|
+
h.copy(e, u);
|
295
|
+
else
|
296
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
297
|
+
u += h.length;
|
298
|
+
}
|
299
|
+
return e;
|
300
|
+
};
|
301
|
+
function z(i, r) {
|
302
|
+
if (o.isBuffer(i))
|
303
|
+
return i.length;
|
304
|
+
if (ArrayBuffer.isView(i) || C(i, ArrayBuffer))
|
305
|
+
return i.byteLength;
|
306
|
+
if (typeof i != "string")
|
307
|
+
throw new TypeError(
|
308
|
+
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof i
|
309
|
+
);
|
310
|
+
const t = i.length, n = arguments.length > 2 && arguments[2] === !0;
|
311
|
+
if (!n && t === 0)
|
312
|
+
return 0;
|
313
|
+
let e = !1;
|
314
|
+
for (; ; )
|
315
|
+
switch (r) {
|
316
|
+
case "ascii":
|
317
|
+
case "latin1":
|
318
|
+
case "binary":
|
319
|
+
return t;
|
320
|
+
case "utf8":
|
321
|
+
case "utf-8":
|
322
|
+
return W(i).length;
|
323
|
+
case "ucs2":
|
324
|
+
case "ucs-2":
|
325
|
+
case "utf16le":
|
326
|
+
case "utf-16le":
|
327
|
+
return t * 2;
|
328
|
+
case "hex":
|
329
|
+
return t >>> 1;
|
330
|
+
case "base64":
|
331
|
+
return ur(i).length;
|
332
|
+
default:
|
333
|
+
if (e)
|
334
|
+
return n ? -1 : W(i).length;
|
335
|
+
r = ("" + r).toLowerCase(), e = !0;
|
336
|
+
}
|
337
|
+
}
|
338
|
+
o.byteLength = z;
|
339
|
+
function pr(i, r, t) {
|
340
|
+
let n = !1;
|
341
|
+
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, r >>>= 0, t <= r))
|
342
|
+
return "";
|
343
|
+
for (i || (i = "utf8"); ; )
|
344
|
+
switch (i) {
|
345
|
+
case "hex":
|
346
|
+
return gr(this, r, t);
|
347
|
+
case "utf8":
|
348
|
+
case "utf-8":
|
349
|
+
return Z(this, r, t);
|
350
|
+
case "ascii":
|
351
|
+
return Er(this, r, t);
|
352
|
+
case "latin1":
|
353
|
+
case "binary":
|
354
|
+
return dr(this, r, t);
|
355
|
+
case "base64":
|
356
|
+
return xr(this, r, t);
|
357
|
+
case "ucs2":
|
358
|
+
case "ucs-2":
|
359
|
+
case "utf16le":
|
360
|
+
case "utf-16le":
|
361
|
+
return mr(this, r, t);
|
362
|
+
default:
|
363
|
+
if (n)
|
364
|
+
throw new TypeError("Unknown encoding: " + i);
|
365
|
+
i = (i + "").toLowerCase(), n = !0;
|
366
|
+
}
|
367
|
+
}
|
368
|
+
o.prototype._isBuffer = !0;
|
369
|
+
function b(i, r, t) {
|
370
|
+
const n = i[r];
|
371
|
+
i[r] = i[t], i[t] = n;
|
372
|
+
}
|
373
|
+
o.prototype.swap16 = function() {
|
374
|
+
const r = this.length;
|
375
|
+
if (r % 2 !== 0)
|
376
|
+
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
377
|
+
for (let t = 0; t < r; t += 2)
|
378
|
+
b(this, t, t + 1);
|
379
|
+
return this;
|
380
|
+
}, o.prototype.swap32 = function() {
|
381
|
+
const r = this.length;
|
382
|
+
if (r % 4 !== 0)
|
383
|
+
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
384
|
+
for (let t = 0; t < r; t += 4)
|
385
|
+
b(this, t, t + 3), b(this, t + 1, t + 2);
|
386
|
+
return this;
|
387
|
+
}, o.prototype.swap64 = function() {
|
388
|
+
const r = this.length;
|
389
|
+
if (r % 8 !== 0)
|
390
|
+
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
391
|
+
for (let t = 0; t < r; t += 8)
|
392
|
+
b(this, t, t + 7), b(this, t + 1, t + 6), b(this, t + 2, t + 5), b(this, t + 3, t + 4);
|
393
|
+
return this;
|
394
|
+
}, o.prototype.toString = function() {
|
395
|
+
const r = this.length;
|
396
|
+
return r === 0 ? "" : arguments.length === 0 ? Z(this, 0, r) : pr.apply(this, arguments);
|
397
|
+
}, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(r) {
|
398
|
+
if (!o.isBuffer(r))
|
399
|
+
throw new TypeError("Argument must be a Buffer");
|
400
|
+
return this === r ? !0 : o.compare(this, r) === 0;
|
401
|
+
}, o.prototype.inspect = function() {
|
402
|
+
let r = "";
|
403
|
+
const t = c.INSPECT_MAX_BYTES;
|
404
|
+
return r = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (r += " ... "), "<Buffer " + r + ">";
|
405
|
+
}, w && (o.prototype[w] = o.prototype.inspect), o.prototype.compare = function(r, t, n, e, u) {
|
406
|
+
if (C(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), !o.isBuffer(r))
|
407
|
+
throw new TypeError(
|
408
|
+
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
|
409
|
+
);
|
410
|
+
if (t === void 0 && (t = 0), n === void 0 && (n = r ? r.length : 0), e === void 0 && (e = 0), u === void 0 && (u = this.length), t < 0 || n > r.length || e < 0 || u > this.length)
|
411
|
+
throw new RangeError("out of range index");
|
412
|
+
if (e >= u && t >= n)
|
413
|
+
return 0;
|
414
|
+
if (e >= u)
|
415
|
+
return -1;
|
416
|
+
if (t >= n)
|
417
|
+
return 1;
|
418
|
+
if (t >>>= 0, n >>>= 0, e >>>= 0, u >>>= 0, this === r)
|
419
|
+
return 0;
|
420
|
+
let h = u - e, a = n - t;
|
421
|
+
const d = Math.min(h, a), E = this.slice(e, u), g = r.slice(t, n);
|
422
|
+
for (let x = 0; x < d; ++x)
|
423
|
+
if (E[x] !== g[x]) {
|
424
|
+
h = E[x], a = g[x];
|
425
|
+
break;
|
426
|
+
}
|
427
|
+
return h < a ? -1 : a < h ? 1 : 0;
|
428
|
+
};
|
429
|
+
function J(i, r, t, n, e) {
|
430
|
+
if (i.length === 0)
|
431
|
+
return -1;
|
432
|
+
if (typeof t == "string" ? (n = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, q(t) && (t = e ? 0 : i.length - 1), t < 0 && (t = i.length + t), t >= i.length) {
|
433
|
+
if (e)
|
434
|
+
return -1;
|
435
|
+
t = i.length - 1;
|
436
|
+
} else if (t < 0)
|
437
|
+
if (e)
|
438
|
+
t = 0;
|
439
|
+
else
|
440
|
+
return -1;
|
441
|
+
if (typeof r == "string" && (r = o.from(r, n)), o.isBuffer(r))
|
442
|
+
return r.length === 0 ? -1 : K(i, r, t, n, e);
|
443
|
+
if (typeof r == "number")
|
444
|
+
return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? e ? Uint8Array.prototype.indexOf.call(i, r, t) : Uint8Array.prototype.lastIndexOf.call(i, r, t) : K(i, [r], t, n, e);
|
445
|
+
throw new TypeError("val must be string, number or Buffer");
|
446
|
+
}
|
447
|
+
function K(i, r, t, n, e) {
|
448
|
+
let u = 1, h = i.length, a = r.length;
|
449
|
+
if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
|
450
|
+
if (i.length < 2 || r.length < 2)
|
451
|
+
return -1;
|
452
|
+
u = 2, h /= 2, a /= 2, t /= 2;
|
453
|
+
}
|
454
|
+
function d(g, x) {
|
455
|
+
return u === 1 ? g[x] : g.readUInt16BE(x * u);
|
456
|
+
}
|
457
|
+
let E;
|
458
|
+
if (e) {
|
459
|
+
let g = -1;
|
460
|
+
for (E = t; E < h; E++)
|
461
|
+
if (d(i, E) === d(r, g === -1 ? 0 : E - g)) {
|
462
|
+
if (g === -1 && (g = E), E - g + 1 === a)
|
463
|
+
return g * u;
|
464
|
+
} else
|
465
|
+
g !== -1 && (E -= E - g), g = -1;
|
466
|
+
} else
|
467
|
+
for (t + a > h && (t = h - a), E = t; E >= 0; E--) {
|
468
|
+
let g = !0;
|
469
|
+
for (let x = 0; x < a; x++)
|
470
|
+
if (d(i, E + x) !== d(r, x)) {
|
471
|
+
g = !1;
|
472
|
+
break;
|
473
|
+
}
|
474
|
+
if (g)
|
475
|
+
return E;
|
476
|
+
}
|
477
|
+
return -1;
|
478
|
+
}
|
479
|
+
o.prototype.includes = function(r, t, n) {
|
480
|
+
return this.indexOf(r, t, n) !== -1;
|
481
|
+
}, o.prototype.indexOf = function(r, t, n) {
|
482
|
+
return J(this, r, t, n, !0);
|
483
|
+
}, o.prototype.lastIndexOf = function(r, t, n) {
|
484
|
+
return J(this, r, t, n, !1);
|
485
|
+
};
|
486
|
+
function sr(i, r, t, n) {
|
487
|
+
t = Number(t) || 0;
|
488
|
+
const e = i.length - t;
|
489
|
+
n ? (n = Number(n), n > e && (n = e)) : n = e;
|
490
|
+
const u = r.length;
|
491
|
+
n > u / 2 && (n = u / 2);
|
492
|
+
let h;
|
493
|
+
for (h = 0; h < n; ++h) {
|
494
|
+
const a = parseInt(r.substr(h * 2, 2), 16);
|
495
|
+
if (q(a))
|
496
|
+
return h;
|
497
|
+
i[t + h] = a;
|
498
|
+
}
|
499
|
+
return h;
|
500
|
+
}
|
501
|
+
function lr(i, r, t, n) {
|
502
|
+
return O(W(r, i.length - t), i, t, n);
|
503
|
+
}
|
504
|
+
function ar(i, r, t, n) {
|
505
|
+
return O(Ur(r), i, t, n);
|
506
|
+
}
|
507
|
+
function yr(i, r, t, n) {
|
508
|
+
return O(ur(r), i, t, n);
|
509
|
+
}
|
510
|
+
function wr(i, r, t, n) {
|
511
|
+
return O(Rr(r, i.length - t), i, t, n);
|
512
|
+
}
|
513
|
+
o.prototype.write = function(r, t, n, e) {
|
514
|
+
if (t === void 0)
|
515
|
+
e = "utf8", n = this.length, t = 0;
|
516
|
+
else if (n === void 0 && typeof t == "string")
|
517
|
+
e = t, n = this.length, t = 0;
|
518
|
+
else if (isFinite(t))
|
519
|
+
t = t >>> 0, isFinite(n) ? (n = n >>> 0, e === void 0 && (e = "utf8")) : (e = n, n = void 0);
|
520
|
+
else
|
521
|
+
throw new Error(
|
522
|
+
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
523
|
+
);
|
524
|
+
const u = this.length - t;
|
525
|
+
if ((n === void 0 || n > u) && (n = u), r.length > 0 && (n < 0 || t < 0) || t > this.length)
|
526
|
+
throw new RangeError("Attempt to write outside buffer bounds");
|
527
|
+
e || (e = "utf8");
|
528
|
+
let h = !1;
|
529
|
+
for (; ; )
|
530
|
+
switch (e) {
|
531
|
+
case "hex":
|
532
|
+
return sr(this, r, t, n);
|
533
|
+
case "utf8":
|
534
|
+
case "utf-8":
|
535
|
+
return lr(this, r, t, n);
|
536
|
+
case "ascii":
|
537
|
+
case "latin1":
|
538
|
+
case "binary":
|
539
|
+
return ar(this, r, t, n);
|
540
|
+
case "base64":
|
541
|
+
return yr(this, r, t, n);
|
542
|
+
case "ucs2":
|
543
|
+
case "ucs-2":
|
544
|
+
case "utf16le":
|
545
|
+
case "utf-16le":
|
546
|
+
return wr(this, r, t, n);
|
547
|
+
default:
|
548
|
+
if (h)
|
549
|
+
throw new TypeError("Unknown encoding: " + e);
|
550
|
+
e = ("" + e).toLowerCase(), h = !0;
|
551
|
+
}
|
552
|
+
}, o.prototype.toJSON = function() {
|
553
|
+
return {
|
554
|
+
type: "Buffer",
|
555
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
556
|
+
};
|
557
|
+
};
|
558
|
+
function xr(i, r, t) {
|
559
|
+
return r === 0 && t === i.length ? f.fromByteArray(i) : f.fromByteArray(i.slice(r, t));
|
560
|
+
}
|
561
|
+
function Z(i, r, t) {
|
562
|
+
t = Math.min(i.length, t);
|
563
|
+
const n = [];
|
564
|
+
let e = r;
|
565
|
+
for (; e < t; ) {
|
566
|
+
const u = i[e];
|
567
|
+
let h = null, a = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
|
568
|
+
if (e + a <= t) {
|
569
|
+
let d, E, g, x;
|
570
|
+
switch (a) {
|
571
|
+
case 1:
|
572
|
+
u < 128 && (h = u);
|
573
|
+
break;
|
574
|
+
case 2:
|
575
|
+
d = i[e + 1], (d & 192) === 128 && (x = (u & 31) << 6 | d & 63, x > 127 && (h = x));
|
576
|
+
break;
|
577
|
+
case 3:
|
578
|
+
d = i[e + 1], E = i[e + 2], (d & 192) === 128 && (E & 192) === 128 && (x = (u & 15) << 12 | (d & 63) << 6 | E & 63, x > 2047 && (x < 55296 || x > 57343) && (h = x));
|
579
|
+
break;
|
580
|
+
case 4:
|
581
|
+
d = i[e + 1], E = i[e + 2], g = i[e + 3], (d & 192) === 128 && (E & 192) === 128 && (g & 192) === 128 && (x = (u & 15) << 18 | (d & 63) << 12 | (E & 63) << 6 | g & 63, x > 65535 && x < 1114112 && (h = x));
|
582
|
+
}
|
583
|
+
}
|
584
|
+
h === null ? (h = 65533, a = 1) : h > 65535 && (h -= 65536, n.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), n.push(h), e += a;
|
585
|
+
}
|
586
|
+
return Br(n);
|
587
|
+
}
|
588
|
+
const Q = 4096;
|
589
|
+
function Br(i) {
|
590
|
+
const r = i.length;
|
591
|
+
if (r <= Q)
|
592
|
+
return String.fromCharCode.apply(String, i);
|
593
|
+
let t = "", n = 0;
|
594
|
+
for (; n < r; )
|
595
|
+
t += String.fromCharCode.apply(
|
596
|
+
String,
|
597
|
+
i.slice(n, n += Q)
|
598
|
+
);
|
599
|
+
return t;
|
600
|
+
}
|
601
|
+
function Er(i, r, t) {
|
602
|
+
let n = "";
|
603
|
+
t = Math.min(i.length, t);
|
604
|
+
for (let e = r; e < t; ++e)
|
605
|
+
n += String.fromCharCode(i[e] & 127);
|
606
|
+
return n;
|
607
|
+
}
|
608
|
+
function dr(i, r, t) {
|
609
|
+
let n = "";
|
610
|
+
t = Math.min(i.length, t);
|
611
|
+
for (let e = r; e < t; ++e)
|
612
|
+
n += String.fromCharCode(i[e]);
|
613
|
+
return n;
|
614
|
+
}
|
615
|
+
function gr(i, r, t) {
|
616
|
+
const n = i.length;
|
617
|
+
(!r || r < 0) && (r = 0), (!t || t < 0 || t > n) && (t = n);
|
618
|
+
let e = "";
|
619
|
+
for (let u = r; u < t; ++u)
|
620
|
+
e += Tr[i[u]];
|
621
|
+
return e;
|
622
|
+
}
|
623
|
+
function mr(i, r, t) {
|
624
|
+
const n = i.slice(r, t);
|
625
|
+
let e = "";
|
626
|
+
for (let u = 0; u < n.length - 1; u += 2)
|
627
|
+
e += String.fromCharCode(n[u] + n[u + 1] * 256);
|
628
|
+
return e;
|
629
|
+
}
|
630
|
+
o.prototype.slice = function(r, t) {
|
631
|
+
const n = this.length;
|
632
|
+
r = ~~r, t = t === void 0 ? n : ~~t, r < 0 ? (r += n, r < 0 && (r = 0)) : r > n && (r = n), t < 0 ? (t += n, t < 0 && (t = 0)) : t > n && (t = n), t < r && (t = r);
|
633
|
+
const e = this.subarray(r, t);
|
634
|
+
return Object.setPrototypeOf(e, o.prototype), e;
|
635
|
+
};
|
636
|
+
function m(i, r, t) {
|
637
|
+
if (i % 1 !== 0 || i < 0)
|
638
|
+
throw new RangeError("offset is not uint");
|
639
|
+
if (i + r > t)
|
640
|
+
throw new RangeError("Trying to access beyond buffer length");
|
641
|
+
}
|
642
|
+
o.prototype.readUintLE = o.prototype.readUIntLE = function(r, t, n) {
|
643
|
+
r = r >>> 0, t = t >>> 0, n || m(r, t, this.length);
|
644
|
+
let e = this[r], u = 1, h = 0;
|
645
|
+
for (; ++h < t && (u *= 256); )
|
646
|
+
e += this[r + h] * u;
|
647
|
+
return e;
|
648
|
+
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(r, t, n) {
|
649
|
+
r = r >>> 0, t = t >>> 0, n || m(r, t, this.length);
|
650
|
+
let e = this[r + --t], u = 1;
|
651
|
+
for (; t > 0 && (u *= 256); )
|
652
|
+
e += this[r + --t] * u;
|
653
|
+
return e;
|
654
|
+
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(r, t) {
|
655
|
+
return r = r >>> 0, t || m(r, 1, this.length), this[r];
|
656
|
+
}, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(r, t) {
|
657
|
+
return r = r >>> 0, t || m(r, 2, this.length), this[r] | this[r + 1] << 8;
|
658
|
+
}, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(r, t) {
|
659
|
+
return r = r >>> 0, t || m(r, 2, this.length), this[r] << 8 | this[r + 1];
|
660
|
+
}, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(r, t) {
|
661
|
+
return r = r >>> 0, t || m(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
|
662
|
+
}, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(r, t) {
|
663
|
+
return r = r >>> 0, t || m(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
|
664
|
+
}, o.prototype.readBigUInt64LE = L(function(r) {
|
665
|
+
r = r >>> 0, M(r, "offset");
|
666
|
+
const t = this[r], n = this[r + 7];
|
667
|
+
(t === void 0 || n === void 0) && P(r, this.length - 8);
|
668
|
+
const e = t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, u = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + n * 2 ** 24;
|
669
|
+
return BigInt(e) + (BigInt(u) << BigInt(32));
|
670
|
+
}), o.prototype.readBigUInt64BE = L(function(r) {
|
671
|
+
r = r >>> 0, M(r, "offset");
|
672
|
+
const t = this[r], n = this[r + 7];
|
673
|
+
(t === void 0 || n === void 0) && P(r, this.length - 8);
|
674
|
+
const e = t * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], u = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n;
|
675
|
+
return (BigInt(e) << BigInt(32)) + BigInt(u);
|
676
|
+
}), o.prototype.readIntLE = function(r, t, n) {
|
677
|
+
r = r >>> 0, t = t >>> 0, n || m(r, t, this.length);
|
678
|
+
let e = this[r], u = 1, h = 0;
|
679
|
+
for (; ++h < t && (u *= 256); )
|
680
|
+
e += this[r + h] * u;
|
681
|
+
return u *= 128, e >= u && (e -= Math.pow(2, 8 * t)), e;
|
682
|
+
}, o.prototype.readIntBE = function(r, t, n) {
|
683
|
+
r = r >>> 0, t = t >>> 0, n || m(r, t, this.length);
|
684
|
+
let e = t, u = 1, h = this[r + --e];
|
685
|
+
for (; e > 0 && (u *= 256); )
|
686
|
+
h += this[r + --e] * u;
|
687
|
+
return u *= 128, h >= u && (h -= Math.pow(2, 8 * t)), h;
|
688
|
+
}, o.prototype.readInt8 = function(r, t) {
|
689
|
+
return r = r >>> 0, t || m(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
|
690
|
+
}, o.prototype.readInt16LE = function(r, t) {
|
691
|
+
r = r >>> 0, t || m(r, 2, this.length);
|
692
|
+
const n = this[r] | this[r + 1] << 8;
|
693
|
+
return n & 32768 ? n | 4294901760 : n;
|
694
|
+
}, o.prototype.readInt16BE = function(r, t) {
|
695
|
+
r = r >>> 0, t || m(r, 2, this.length);
|
696
|
+
const n = this[r + 1] | this[r] << 8;
|
697
|
+
return n & 32768 ? n | 4294901760 : n;
|
698
|
+
}, o.prototype.readInt32LE = function(r, t) {
|
699
|
+
return r = r >>> 0, t || m(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
|
700
|
+
}, o.prototype.readInt32BE = function(r, t) {
|
701
|
+
return r = r >>> 0, t || m(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
|
702
|
+
}, o.prototype.readBigInt64LE = L(function(r) {
|
703
|
+
r = r >>> 0, M(r, "offset");
|
704
|
+
const t = this[r], n = this[r + 7];
|
705
|
+
(t === void 0 || n === void 0) && P(r, this.length - 8);
|
706
|
+
const e = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (n << 24);
|
707
|
+
return (BigInt(e) << BigInt(32)) + BigInt(t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24);
|
708
|
+
}), o.prototype.readBigInt64BE = L(function(r) {
|
709
|
+
r = r >>> 0, M(r, "offset");
|
710
|
+
const t = this[r], n = this[r + 7];
|
711
|
+
(t === void 0 || n === void 0) && P(r, this.length - 8);
|
712
|
+
const e = (t << 24) + // Overflow
|
713
|
+
this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r];
|
714
|
+
return (BigInt(e) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n);
|
715
|
+
}), o.prototype.readFloatLE = function(r, t) {
|
716
|
+
return r = r >>> 0, t || m(r, 4, this.length), s.read(this, r, !0, 23, 4);
|
717
|
+
}, o.prototype.readFloatBE = function(r, t) {
|
718
|
+
return r = r >>> 0, t || m(r, 4, this.length), s.read(this, r, !1, 23, 4);
|
719
|
+
}, o.prototype.readDoubleLE = function(r, t) {
|
720
|
+
return r = r >>> 0, t || m(r, 8, this.length), s.read(this, r, !0, 52, 8);
|
721
|
+
}, o.prototype.readDoubleBE = function(r, t) {
|
722
|
+
return r = r >>> 0, t || m(r, 8, this.length), s.read(this, r, !1, 52, 8);
|
723
|
+
};
|
724
|
+
function U(i, r, t, n, e, u) {
|
725
|
+
if (!o.isBuffer(i))
|
726
|
+
throw new TypeError('"buffer" argument must be a Buffer instance');
|
727
|
+
if (r > e || r < u)
|
728
|
+
throw new RangeError('"value" argument is out of bounds');
|
729
|
+
if (t + n > i.length)
|
730
|
+
throw new RangeError("Index out of range");
|
731
|
+
}
|
732
|
+
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(r, t, n, e) {
|
733
|
+
if (r = +r, t = t >>> 0, n = n >>> 0, !e) {
|
734
|
+
const a = Math.pow(2, 8 * n) - 1;
|
735
|
+
U(this, r, t, n, a, 0);
|
736
|
+
}
|
737
|
+
let u = 1, h = 0;
|
738
|
+
for (this[t] = r & 255; ++h < n && (u *= 256); )
|
739
|
+
this[t + h] = r / u & 255;
|
740
|
+
return t + n;
|
741
|
+
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(r, t, n, e) {
|
742
|
+
if (r = +r, t = t >>> 0, n = n >>> 0, !e) {
|
743
|
+
const a = Math.pow(2, 8 * n) - 1;
|
744
|
+
U(this, r, t, n, a, 0);
|
745
|
+
}
|
746
|
+
let u = n - 1, h = 1;
|
747
|
+
for (this[t + u] = r & 255; --u >= 0 && (h *= 256); )
|
748
|
+
this[t + u] = r / h & 255;
|
749
|
+
return t + n;
|
750
|
+
}, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(r, t, n) {
|
751
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 1, 255, 0), this[t] = r & 255, t + 1;
|
752
|
+
}, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(r, t, n) {
|
753
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 2, 65535, 0), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
|
754
|
+
}, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(r, t, n) {
|
755
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 2, 65535, 0), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
|
756
|
+
}, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(r, t, n) {
|
757
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 4, 4294967295, 0), this[t + 3] = r >>> 24, this[t + 2] = r >>> 16, this[t + 1] = r >>> 8, this[t] = r & 255, t + 4;
|
758
|
+
}, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(r, t, n) {
|
759
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 4, 4294967295, 0), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
|
760
|
+
};
|
761
|
+
function v(i, r, t, n, e) {
|
762
|
+
or(r, n, e, i, t, 7);
|
763
|
+
let u = Number(r & BigInt(4294967295));
|
764
|
+
i[t++] = u, u = u >> 8, i[t++] = u, u = u >> 8, i[t++] = u, u = u >> 8, i[t++] = u;
|
765
|
+
let h = Number(r >> BigInt(32) & BigInt(4294967295));
|
766
|
+
return i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, t;
|
767
|
+
}
|
768
|
+
function rr(i, r, t, n, e) {
|
769
|
+
or(r, n, e, i, t, 7);
|
770
|
+
let u = Number(r & BigInt(4294967295));
|
771
|
+
i[t + 7] = u, u = u >> 8, i[t + 6] = u, u = u >> 8, i[t + 5] = u, u = u >> 8, i[t + 4] = u;
|
772
|
+
let h = Number(r >> BigInt(32) & BigInt(4294967295));
|
773
|
+
return i[t + 3] = h, h = h >> 8, i[t + 2] = h, h = h >> 8, i[t + 1] = h, h = h >> 8, i[t] = h, t + 8;
|
774
|
+
}
|
775
|
+
o.prototype.writeBigUInt64LE = L(function(r, t = 0) {
|
776
|
+
return v(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
777
|
+
}), o.prototype.writeBigUInt64BE = L(function(r, t = 0) {
|
778
|
+
return rr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
779
|
+
}), o.prototype.writeIntLE = function(r, t, n, e) {
|
780
|
+
if (r = +r, t = t >>> 0, !e) {
|
781
|
+
const d = Math.pow(2, 8 * n - 1);
|
782
|
+
U(this, r, t, n, d - 1, -d);
|
783
|
+
}
|
784
|
+
let u = 0, h = 1, a = 0;
|
785
|
+
for (this[t] = r & 255; ++u < n && (h *= 256); )
|
786
|
+
r < 0 && a === 0 && this[t + u - 1] !== 0 && (a = 1), this[t + u] = (r / h >> 0) - a & 255;
|
787
|
+
return t + n;
|
788
|
+
}, o.prototype.writeIntBE = function(r, t, n, e) {
|
789
|
+
if (r = +r, t = t >>> 0, !e) {
|
790
|
+
const d = Math.pow(2, 8 * n - 1);
|
791
|
+
U(this, r, t, n, d - 1, -d);
|
792
|
+
}
|
793
|
+
let u = n - 1, h = 1, a = 0;
|
794
|
+
for (this[t + u] = r & 255; --u >= 0 && (h *= 256); )
|
795
|
+
r < 0 && a === 0 && this[t + u + 1] !== 0 && (a = 1), this[t + u] = (r / h >> 0) - a & 255;
|
796
|
+
return t + n;
|
797
|
+
}, o.prototype.writeInt8 = function(r, t, n) {
|
798
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[t] = r & 255, t + 1;
|
799
|
+
}, o.prototype.writeInt16LE = function(r, t, n) {
|
800
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 2, 32767, -32768), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
|
801
|
+
}, o.prototype.writeInt16BE = function(r, t, n) {
|
802
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 2, 32767, -32768), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
|
803
|
+
}, o.prototype.writeInt32LE = function(r, t, n) {
|
804
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 4, 2147483647, -2147483648), this[t] = r & 255, this[t + 1] = r >>> 8, this[t + 2] = r >>> 16, this[t + 3] = r >>> 24, t + 4;
|
805
|
+
}, o.prototype.writeInt32BE = function(r, t, n) {
|
806
|
+
return r = +r, t = t >>> 0, n || U(this, r, t, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
|
807
|
+
}, o.prototype.writeBigInt64LE = L(function(r, t = 0) {
|
808
|
+
return v(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
809
|
+
}), o.prototype.writeBigInt64BE = L(function(r, t = 0) {
|
810
|
+
return rr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
811
|
+
});
|
812
|
+
function tr(i, r, t, n, e, u) {
|
813
|
+
if (t + n > i.length)
|
814
|
+
throw new RangeError("Index out of range");
|
815
|
+
if (t < 0)
|
816
|
+
throw new RangeError("Index out of range");
|
817
|
+
}
|
818
|
+
function ir(i, r, t, n, e) {
|
819
|
+
return r = +r, t = t >>> 0, e || tr(i, r, t, 4), s.write(i, r, t, n, 23, 4), t + 4;
|
820
|
+
}
|
821
|
+
o.prototype.writeFloatLE = function(r, t, n) {
|
822
|
+
return ir(this, r, t, !0, n);
|
823
|
+
}, o.prototype.writeFloatBE = function(r, t, n) {
|
824
|
+
return ir(this, r, t, !1, n);
|
825
|
+
};
|
826
|
+
function nr(i, r, t, n, e) {
|
827
|
+
return r = +r, t = t >>> 0, e || tr(i, r, t, 8), s.write(i, r, t, n, 52, 8), t + 8;
|
828
|
+
}
|
829
|
+
o.prototype.writeDoubleLE = function(r, t, n) {
|
830
|
+
return nr(this, r, t, !0, n);
|
831
|
+
}, o.prototype.writeDoubleBE = function(r, t, n) {
|
832
|
+
return nr(this, r, t, !1, n);
|
833
|
+
}, o.prototype.copy = function(r, t, n, e) {
|
834
|
+
if (!o.isBuffer(r))
|
835
|
+
throw new TypeError("argument should be a Buffer");
|
836
|
+
if (n || (n = 0), !e && e !== 0 && (e = this.length), t >= r.length && (t = r.length), t || (t = 0), e > 0 && e < n && (e = n), e === n || r.length === 0 || this.length === 0)
|
837
|
+
return 0;
|
838
|
+
if (t < 0)
|
839
|
+
throw new RangeError("targetStart out of bounds");
|
840
|
+
if (n < 0 || n >= this.length)
|
841
|
+
throw new RangeError("Index out of range");
|
842
|
+
if (e < 0)
|
843
|
+
throw new RangeError("sourceEnd out of bounds");
|
844
|
+
e > this.length && (e = this.length), r.length - t < e - n && (e = r.length - t + n);
|
845
|
+
const u = e - n;
|
846
|
+
return this === r && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(t, n, e) : Uint8Array.prototype.set.call(
|
847
|
+
r,
|
848
|
+
this.subarray(n, e),
|
849
|
+
t
|
850
|
+
), u;
|
851
|
+
}, o.prototype.fill = function(r, t, n, e) {
|
852
|
+
if (typeof r == "string") {
|
853
|
+
if (typeof t == "string" ? (e = t, t = 0, n = this.length) : typeof n == "string" && (e = n, n = this.length), e !== void 0 && typeof e != "string")
|
854
|
+
throw new TypeError("encoding must be a string");
|
855
|
+
if (typeof e == "string" && !o.isEncoding(e))
|
856
|
+
throw new TypeError("Unknown encoding: " + e);
|
857
|
+
if (r.length === 1) {
|
858
|
+
const h = r.charCodeAt(0);
|
859
|
+
(e === "utf8" && h < 128 || e === "latin1") && (r = h);
|
860
|
+
}
|
861
|
+
} else
|
862
|
+
typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r));
|
863
|
+
if (t < 0 || this.length < t || this.length < n)
|
864
|
+
throw new RangeError("Out of range index");
|
865
|
+
if (n <= t)
|
866
|
+
return this;
|
867
|
+
t = t >>> 0, n = n === void 0 ? this.length : n >>> 0, r || (r = 0);
|
868
|
+
let u;
|
869
|
+
if (typeof r == "number")
|
870
|
+
for (u = t; u < n; ++u)
|
871
|
+
this[u] = r;
|
872
|
+
else {
|
873
|
+
const h = o.isBuffer(r) ? r : o.from(r, e), a = h.length;
|
874
|
+
if (a === 0)
|
875
|
+
throw new TypeError('The value "' + r + '" is invalid for argument "value"');
|
876
|
+
for (u = 0; u < n - t; ++u)
|
877
|
+
this[u + t] = h[u % a];
|
878
|
+
}
|
879
|
+
return this;
|
880
|
+
};
|
881
|
+
const N = {};
|
882
|
+
function Y(i, r, t) {
|
883
|
+
N[i] = class extends t {
|
884
|
+
constructor() {
|
885
|
+
super(), Object.defineProperty(this, "message", {
|
886
|
+
value: r.apply(this, arguments),
|
887
|
+
writable: !0,
|
888
|
+
configurable: !0
|
889
|
+
}), this.name = `${this.name} [${i}]`, this.stack, delete this.name;
|
890
|
+
}
|
891
|
+
get code() {
|
892
|
+
return i;
|
893
|
+
}
|
894
|
+
set code(e) {
|
895
|
+
Object.defineProperty(this, "code", {
|
896
|
+
configurable: !0,
|
897
|
+
enumerable: !0,
|
898
|
+
value: e,
|
899
|
+
writable: !0
|
900
|
+
});
|
901
|
+
}
|
902
|
+
toString() {
|
903
|
+
return `${this.name} [${i}]: ${this.message}`;
|
904
|
+
}
|
905
|
+
};
|
906
|
+
}
|
907
|
+
Y(
|
908
|
+
"ERR_BUFFER_OUT_OF_BOUNDS",
|
909
|
+
function(i) {
|
910
|
+
return i ? `${i} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
911
|
+
},
|
912
|
+
RangeError
|
913
|
+
), Y(
|
914
|
+
"ERR_INVALID_ARG_TYPE",
|
915
|
+
function(i, r) {
|
916
|
+
return `The "${i}" argument must be of type number. Received type ${typeof r}`;
|
917
|
+
},
|
918
|
+
TypeError
|
919
|
+
), Y(
|
920
|
+
"ERR_OUT_OF_RANGE",
|
921
|
+
function(i, r, t) {
|
922
|
+
let n = `The value of "${i}" is out of range.`, e = t;
|
923
|
+
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? e = er(String(t)) : typeof t == "bigint" && (e = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (e = er(e)), e += "n"), n += ` It must be ${r}. Received ${e}`, n;
|
924
|
+
},
|
925
|
+
RangeError
|
926
|
+
);
|
927
|
+
function er(i) {
|
928
|
+
let r = "", t = i.length;
|
929
|
+
const n = i[0] === "-" ? 1 : 0;
|
930
|
+
for (; t >= n + 4; t -= 3)
|
931
|
+
r = `_${i.slice(t - 3, t)}${r}`;
|
932
|
+
return `${i.slice(0, t)}${r}`;
|
933
|
+
}
|
934
|
+
function Ir(i, r, t) {
|
935
|
+
M(r, "offset"), (i[r] === void 0 || i[r + t] === void 0) && P(r, i.length - (t + 1));
|
936
|
+
}
|
937
|
+
function or(i, r, t, n, e, u) {
|
938
|
+
if (i > t || i < r) {
|
939
|
+
const h = typeof r == "bigint" ? "n" : "";
|
940
|
+
let a;
|
941
|
+
throw u > 3 ? r === 0 || r === BigInt(0) ? a = `>= 0${h} and < 2${h} ** ${(u + 1) * 8}${h}` : a = `>= -(2${h} ** ${(u + 1) * 8 - 1}${h}) and < 2 ** ${(u + 1) * 8 - 1}${h}` : a = `>= ${r}${h} and <= ${t}${h}`, new N.ERR_OUT_OF_RANGE("value", a, i);
|
942
|
+
}
|
943
|
+
Ir(n, e, u);
|
944
|
+
}
|
945
|
+
function M(i, r) {
|
946
|
+
if (typeof i != "number")
|
947
|
+
throw new N.ERR_INVALID_ARG_TYPE(r, "number", i);
|
948
|
+
}
|
949
|
+
function P(i, r, t) {
|
950
|
+
throw Math.floor(i) !== i ? (M(i, t), new N.ERR_OUT_OF_RANGE(t || "offset", "an integer", i)) : r < 0 ? new N.ERR_BUFFER_OUT_OF_BOUNDS() : new N.ERR_OUT_OF_RANGE(
|
951
|
+
t || "offset",
|
952
|
+
`>= ${t ? 1 : 0} and <= ${r}`,
|
953
|
+
i
|
954
|
+
);
|
955
|
+
}
|
956
|
+
const Fr = /[^+/0-9A-Za-z-_]/g;
|
957
|
+
function Ar(i) {
|
958
|
+
if (i = i.split("=")[0], i = i.trim().replace(Fr, ""), i.length < 2)
|
959
|
+
return "";
|
960
|
+
for (; i.length % 4 !== 0; )
|
961
|
+
i = i + "=";
|
962
|
+
return i;
|
963
|
+
}
|
964
|
+
function W(i, r) {
|
965
|
+
r = r || 1 / 0;
|
966
|
+
let t;
|
967
|
+
const n = i.length;
|
968
|
+
let e = null;
|
969
|
+
const u = [];
|
970
|
+
for (let h = 0; h < n; ++h) {
|
971
|
+
if (t = i.charCodeAt(h), t > 55295 && t < 57344) {
|
972
|
+
if (!e) {
|
973
|
+
if (t > 56319) {
|
974
|
+
(r -= 3) > -1 && u.push(239, 191, 189);
|
975
|
+
continue;
|
976
|
+
} else if (h + 1 === n) {
|
977
|
+
(r -= 3) > -1 && u.push(239, 191, 189);
|
978
|
+
continue;
|
979
|
+
}
|
980
|
+
e = t;
|
981
|
+
continue;
|
982
|
+
}
|
983
|
+
if (t < 56320) {
|
984
|
+
(r -= 3) > -1 && u.push(239, 191, 189), e = t;
|
985
|
+
continue;
|
986
|
+
}
|
987
|
+
t = (e - 55296 << 10 | t - 56320) + 65536;
|
988
|
+
} else
|
989
|
+
e && (r -= 3) > -1 && u.push(239, 191, 189);
|
990
|
+
if (e = null, t < 128) {
|
991
|
+
if ((r -= 1) < 0)
|
992
|
+
break;
|
993
|
+
u.push(t);
|
994
|
+
} else if (t < 2048) {
|
995
|
+
if ((r -= 2) < 0)
|
996
|
+
break;
|
997
|
+
u.push(
|
998
|
+
t >> 6 | 192,
|
999
|
+
t & 63 | 128
|
1000
|
+
);
|
1001
|
+
} else if (t < 65536) {
|
1002
|
+
if ((r -= 3) < 0)
|
1003
|
+
break;
|
1004
|
+
u.push(
|
1005
|
+
t >> 12 | 224,
|
1006
|
+
t >> 6 & 63 | 128,
|
1007
|
+
t & 63 | 128
|
1008
|
+
);
|
1009
|
+
} else if (t < 1114112) {
|
1010
|
+
if ((r -= 4) < 0)
|
1011
|
+
break;
|
1012
|
+
u.push(
|
1013
|
+
t >> 18 | 240,
|
1014
|
+
t >> 12 & 63 | 128,
|
1015
|
+
t >> 6 & 63 | 128,
|
1016
|
+
t & 63 | 128
|
1017
|
+
);
|
1018
|
+
} else
|
1019
|
+
throw new Error("Invalid code point");
|
1020
|
+
}
|
1021
|
+
return u;
|
1022
|
+
}
|
1023
|
+
function Ur(i) {
|
1024
|
+
const r = [];
|
1025
|
+
for (let t = 0; t < i.length; ++t)
|
1026
|
+
r.push(i.charCodeAt(t) & 255);
|
1027
|
+
return r;
|
1028
|
+
}
|
1029
|
+
function Rr(i, r) {
|
1030
|
+
let t, n, e;
|
1031
|
+
const u = [];
|
1032
|
+
for (let h = 0; h < i.length && !((r -= 2) < 0); ++h)
|
1033
|
+
t = i.charCodeAt(h), n = t >> 8, e = t % 256, u.push(e), u.push(n);
|
1034
|
+
return u;
|
1035
|
+
}
|
1036
|
+
function ur(i) {
|
1037
|
+
return f.toByteArray(Ar(i));
|
1038
|
+
}
|
1039
|
+
function O(i, r, t, n) {
|
1040
|
+
let e;
|
1041
|
+
for (e = 0; e < n && !(e + t >= r.length || e >= i.length); ++e)
|
1042
|
+
r[e + t] = i[e];
|
1043
|
+
return e;
|
1044
|
+
}
|
1045
|
+
function C(i, r) {
|
1046
|
+
return i instanceof r || i != null && i.constructor != null && i.constructor.name != null && i.constructor.name === r.name;
|
1047
|
+
}
|
1048
|
+
function q(i) {
|
1049
|
+
return i !== i;
|
1050
|
+
}
|
1051
|
+
const Tr = function() {
|
1052
|
+
const i = "0123456789abcdef", r = new Array(256);
|
1053
|
+
for (let t = 0; t < 16; ++t) {
|
1054
|
+
const n = t * 16;
|
1055
|
+
for (let e = 0; e < 16; ++e)
|
1056
|
+
r[n + e] = i[t] + i[e];
|
1057
|
+
}
|
1058
|
+
return r;
|
1059
|
+
}();
|
1060
|
+
function L(i) {
|
1061
|
+
return typeof BigInt > "u" ? Cr : i;
|
1062
|
+
}
|
1063
|
+
function Cr() {
|
1064
|
+
throw new Error("BigInt not supported");
|
1065
|
+
}
|
1066
|
+
})(V);
|
1067
|
+
const Or = /* @__PURE__ */ _r(V), Yr = /* @__PURE__ */ Sr({
|
1068
|
+
__proto__: null,
|
1069
|
+
default: Or
|
1070
|
+
}, [V]);
|
1071
|
+
export {
|
1072
|
+
V as b,
|
1073
|
+
Yr as i
|
1074
|
+
};
|