@btc-vision/transaction 1.7.25 → 1.7.27
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/browser/_version.d.ts +1 -1
- package/browser/btc-vision-bitcoin.js +2326 -1928
- package/browser/index.js +456 -443
- package/browser/noble-curves.js +1045 -1016
- package/browser/noble-hashes.js +841 -776
- package/browser/vendors.js +11416 -15797
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/_version.ts +1 -1
- package/src/crypto/crypto-browser.js +9 -16
- package/vite.config.browser.ts +30 -29
- package/browser/bip39.js +0 -204
- package/browser/bitcoin-utils.js +0 -3172
- package/browser/btc-vision-bip32.js +0 -805
- package/browser/btc-vision-logger.js +0 -86
- package/browser/btc-vision-post-quantum.js +0 -542
- package/browser/polyfills.js +0 -4952
- package/browser/scure-base.js +0 -410
- package/cjs/package.json +0 -3
- package/webpack.config.js +0 -220
package/browser/polyfills.js
DELETED
|
@@ -1,4952 +0,0 @@
|
|
|
1
|
-
import { f as Ot, g as Lt, h as pt, i as Mt, j as Ut, k as Nt, l as Pt, m as jt, n as Ct } from "./vendors.js";
|
|
2
|
-
function Dt(c) {
|
|
3
|
-
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
4
|
-
}
|
|
5
|
-
var dt = { exports: {} }, Me = dt.exports = {}, qe, xe;
|
|
6
|
-
function Nr() {
|
|
7
|
-
throw new Error("setTimeout has not been defined");
|
|
8
|
-
}
|
|
9
|
-
function Pr() {
|
|
10
|
-
throw new Error("clearTimeout has not been defined");
|
|
11
|
-
}
|
|
12
|
-
(function() {
|
|
13
|
-
try {
|
|
14
|
-
typeof setTimeout == "function" ? qe = setTimeout : qe = Nr;
|
|
15
|
-
} catch {
|
|
16
|
-
qe = Nr;
|
|
17
|
-
}
|
|
18
|
-
try {
|
|
19
|
-
typeof clearTimeout == "function" ? xe = clearTimeout : xe = Pr;
|
|
20
|
-
} catch {
|
|
21
|
-
xe = Pr;
|
|
22
|
-
}
|
|
23
|
-
})();
|
|
24
|
-
function yt(c) {
|
|
25
|
-
if (qe === setTimeout)
|
|
26
|
-
return setTimeout(c, 0);
|
|
27
|
-
if ((qe === Nr || !qe) && setTimeout)
|
|
28
|
-
return qe = setTimeout, setTimeout(c, 0);
|
|
29
|
-
try {
|
|
30
|
-
return qe(c, 0);
|
|
31
|
-
} catch {
|
|
32
|
-
try {
|
|
33
|
-
return qe.call(null, c, 0);
|
|
34
|
-
} catch {
|
|
35
|
-
return qe.call(this, c, 0);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function kt(c) {
|
|
40
|
-
if (xe === clearTimeout)
|
|
41
|
-
return clearTimeout(c);
|
|
42
|
-
if ((xe === Pr || !xe) && clearTimeout)
|
|
43
|
-
return xe = clearTimeout, clearTimeout(c);
|
|
44
|
-
try {
|
|
45
|
-
return xe(c);
|
|
46
|
-
} catch {
|
|
47
|
-
try {
|
|
48
|
-
return xe.call(null, c);
|
|
49
|
-
} catch {
|
|
50
|
-
return xe.call(this, c);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
var We = [], Ke = !1, Ye, nr = -1;
|
|
55
|
-
function qt() {
|
|
56
|
-
!Ke || !Ye || (Ke = !1, Ye.length ? We = Ye.concat(We) : nr = -1, We.length && gt());
|
|
57
|
-
}
|
|
58
|
-
function gt() {
|
|
59
|
-
if (!Ke) {
|
|
60
|
-
var c = yt(qt);
|
|
61
|
-
Ke = !0;
|
|
62
|
-
for (var v = We.length; v; ) {
|
|
63
|
-
for (Ye = We, We = []; ++nr < v; )
|
|
64
|
-
Ye && Ye[nr].run();
|
|
65
|
-
nr = -1, v = We.length;
|
|
66
|
-
}
|
|
67
|
-
Ye = null, Ke = !1, kt(c);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
Me.nextTick = function(c) {
|
|
71
|
-
var v = new Array(arguments.length - 1);
|
|
72
|
-
if (arguments.length > 1)
|
|
73
|
-
for (var C = 1; C < arguments.length; C++)
|
|
74
|
-
v[C - 1] = arguments[C];
|
|
75
|
-
We.push(new wt(c, v)), We.length === 1 && !Ke && yt(gt);
|
|
76
|
-
};
|
|
77
|
-
function wt(c, v) {
|
|
78
|
-
this.fun = c, this.array = v;
|
|
79
|
-
}
|
|
80
|
-
wt.prototype.run = function() {
|
|
81
|
-
this.fun.apply(null, this.array);
|
|
82
|
-
};
|
|
83
|
-
Me.title = "browser";
|
|
84
|
-
Me.browser = !0;
|
|
85
|
-
Me.env = {};
|
|
86
|
-
Me.argv = [];
|
|
87
|
-
Me.version = "";
|
|
88
|
-
Me.versions = {};
|
|
89
|
-
function He() {
|
|
90
|
-
}
|
|
91
|
-
Me.on = He;
|
|
92
|
-
Me.addListener = He;
|
|
93
|
-
Me.once = He;
|
|
94
|
-
Me.off = He;
|
|
95
|
-
Me.removeListener = He;
|
|
96
|
-
Me.removeAllListeners = He;
|
|
97
|
-
Me.emit = He;
|
|
98
|
-
Me.prependListener = He;
|
|
99
|
-
Me.prependOnceListener = He;
|
|
100
|
-
Me.listeners = function(c) {
|
|
101
|
-
return [];
|
|
102
|
-
};
|
|
103
|
-
Me.binding = function(c) {
|
|
104
|
-
throw new Error("process.binding is not supported");
|
|
105
|
-
};
|
|
106
|
-
Me.cwd = function() {
|
|
107
|
-
return "/";
|
|
108
|
-
};
|
|
109
|
-
Me.chdir = function(c) {
|
|
110
|
-
throw new Error("process.chdir is not supported");
|
|
111
|
-
};
|
|
112
|
-
Me.umask = function() {
|
|
113
|
-
return 0;
|
|
114
|
-
};
|
|
115
|
-
var xt = dt.exports;
|
|
116
|
-
const pe = /* @__PURE__ */ Dt(xt);
|
|
117
|
-
var fr = {}, kr;
|
|
118
|
-
function ir() {
|
|
119
|
-
return kr || (kr = 1, (function(c) {
|
|
120
|
-
Object.defineProperties(c, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } });
|
|
121
|
-
var v = {}, C = {};
|
|
122
|
-
C.byteLength = l, C.toByteArray = D, C.fromByteArray = Q;
|
|
123
|
-
for (var q = [], J = [], h = typeof Uint8Array < "u" ? Uint8Array : Array, y = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", M = 0, g = y.length; M < g; ++M)
|
|
124
|
-
q[M] = y[M], J[y.charCodeAt(M)] = M;
|
|
125
|
-
J[45] = 62, J[95] = 63;
|
|
126
|
-
function j(S) {
|
|
127
|
-
var O = S.length;
|
|
128
|
-
if (O % 4 > 0)
|
|
129
|
-
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
130
|
-
var w = S.indexOf("=");
|
|
131
|
-
w === -1 && (w = O);
|
|
132
|
-
var b = w === O ? 0 : 4 - w % 4;
|
|
133
|
-
return [w, b];
|
|
134
|
-
}
|
|
135
|
-
function l(S) {
|
|
136
|
-
var O = j(S), w = O[0], b = O[1];
|
|
137
|
-
return (w + b) * 3 / 4 - b;
|
|
138
|
-
}
|
|
139
|
-
function x(S, O, w) {
|
|
140
|
-
return (O + w) * 3 / 4 - w;
|
|
141
|
-
}
|
|
142
|
-
function D(S) {
|
|
143
|
-
var O, w = j(S), b = w[0], T = w[1], U = new h(x(S, b, T)), P = 0, K = T > 0 ? b - 4 : b, re;
|
|
144
|
-
for (re = 0; re < K; re += 4)
|
|
145
|
-
O = J[S.charCodeAt(re)] << 18 | J[S.charCodeAt(re + 1)] << 12 | J[S.charCodeAt(re + 2)] << 6 | J[S.charCodeAt(re + 3)], U[P++] = O >> 16 & 255, U[P++] = O >> 8 & 255, U[P++] = O & 255;
|
|
146
|
-
return T === 2 && (O = J[S.charCodeAt(re)] << 2 | J[S.charCodeAt(re + 1)] >> 4, U[P++] = O & 255), T === 1 && (O = J[S.charCodeAt(re)] << 10 | J[S.charCodeAt(re + 1)] << 4 | J[S.charCodeAt(re + 2)] >> 2, U[P++] = O >> 8 & 255, U[P++] = O & 255), U;
|
|
147
|
-
}
|
|
148
|
-
function Z(S) {
|
|
149
|
-
return q[S >> 18 & 63] + q[S >> 12 & 63] + q[S >> 6 & 63] + q[S & 63];
|
|
150
|
-
}
|
|
151
|
-
function z(S, O, w) {
|
|
152
|
-
for (var b, T = [], U = O; U < w; U += 3)
|
|
153
|
-
b = (S[U] << 16 & 16711680) + (S[U + 1] << 8 & 65280) + (S[U + 2] & 255), T.push(Z(b));
|
|
154
|
-
return T.join("");
|
|
155
|
-
}
|
|
156
|
-
function Q(S) {
|
|
157
|
-
for (var O, w = S.length, b = w % 3, T = [], U = 16383, P = 0, K = w - b; P < K; P += U)
|
|
158
|
-
T.push(z(S, P, P + U > K ? K : P + U));
|
|
159
|
-
return b === 1 ? (O = S[w - 1], T.push(
|
|
160
|
-
q[O >> 2] + q[O << 4 & 63] + "=="
|
|
161
|
-
)) : b === 2 && (O = (S[w - 2] << 8) + S[w - 1], T.push(
|
|
162
|
-
q[O >> 10] + q[O >> 4 & 63] + q[O << 2 & 63] + "="
|
|
163
|
-
)), T.join("");
|
|
164
|
-
}
|
|
165
|
-
var X = {};
|
|
166
|
-
X.read = function(S, O, w, b, T) {
|
|
167
|
-
var U, P, K = T * 8 - b - 1, re = (1 << K) - 1, fe = re >> 1, R = -7, ge = w ? T - 1 : 0, me = w ? -1 : 1, Ee = S[O + ge];
|
|
168
|
-
for (ge += me, U = Ee & (1 << -R) - 1, Ee >>= -R, R += K; R > 0; U = U * 256 + S[O + ge], ge += me, R -= 8)
|
|
169
|
-
;
|
|
170
|
-
for (P = U & (1 << -R) - 1, U >>= -R, R += b; R > 0; P = P * 256 + S[O + ge], ge += me, R -= 8)
|
|
171
|
-
;
|
|
172
|
-
if (U === 0)
|
|
173
|
-
U = 1 - fe;
|
|
174
|
-
else {
|
|
175
|
-
if (U === re)
|
|
176
|
-
return P ? NaN : (Ee ? -1 : 1) * (1 / 0);
|
|
177
|
-
P = P + Math.pow(2, b), U = U - fe;
|
|
178
|
-
}
|
|
179
|
-
return (Ee ? -1 : 1) * P * Math.pow(2, U - b);
|
|
180
|
-
}, X.write = function(S, O, w, b, T, U) {
|
|
181
|
-
var P, K, re, fe = U * 8 - T - 1, R = (1 << fe) - 1, ge = R >> 1, me = T === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, Ee = b ? 0 : U - 1, Te = b ? 1 : -1, Ue = O < 0 || O === 0 && 1 / O < 0 ? 1 : 0;
|
|
182
|
-
for (O = Math.abs(O), isNaN(O) || O === 1 / 0 ? (K = isNaN(O) ? 1 : 0, P = R) : (P = Math.floor(Math.log(O) / Math.LN2), O * (re = Math.pow(2, -P)) < 1 && (P--, re *= 2), P + ge >= 1 ? O += me / re : O += me * Math.pow(2, 1 - ge), O * re >= 2 && (P++, re /= 2), P + ge >= R ? (K = 0, P = R) : P + ge >= 1 ? (K = (O * re - 1) * Math.pow(2, T), P = P + ge) : (K = O * Math.pow(2, ge - 1) * Math.pow(2, T), P = 0)); T >= 8; S[w + Ee] = K & 255, Ee += Te, K /= 256, T -= 8)
|
|
183
|
-
;
|
|
184
|
-
for (P = P << T | K, fe += T; fe > 0; S[w + Ee] = P & 255, Ee += Te, P /= 256, fe -= 8)
|
|
185
|
-
;
|
|
186
|
-
S[w + Ee - Te] |= Ue * 128;
|
|
187
|
-
};
|
|
188
|
-
(function(S) {
|
|
189
|
-
const O = C, w = X, b = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
190
|
-
S.Buffer = R, S.SlowBuffer = F, S.INSPECT_MAX_BYTES = 50;
|
|
191
|
-
const T = 2147483647;
|
|
192
|
-
S.kMaxLength = T;
|
|
193
|
-
const { Uint8Array: U, ArrayBuffer: P, SharedArrayBuffer: K } = globalThis;
|
|
194
|
-
R.TYPED_ARRAY_SUPPORT = re(), !R.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
195
|
-
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
196
|
-
);
|
|
197
|
-
function re() {
|
|
198
|
-
try {
|
|
199
|
-
const o = new U(1), r = { foo: function() {
|
|
200
|
-
return 42;
|
|
201
|
-
} };
|
|
202
|
-
return Object.setPrototypeOf(r, U.prototype), Object.setPrototypeOf(o, r), o.foo() === 42;
|
|
203
|
-
} catch {
|
|
204
|
-
return !1;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
Object.defineProperty(R.prototype, "parent", {
|
|
208
|
-
enumerable: !0,
|
|
209
|
-
get: function() {
|
|
210
|
-
if (R.isBuffer(this))
|
|
211
|
-
return this.buffer;
|
|
212
|
-
}
|
|
213
|
-
}), Object.defineProperty(R.prototype, "offset", {
|
|
214
|
-
enumerable: !0,
|
|
215
|
-
get: function() {
|
|
216
|
-
if (R.isBuffer(this))
|
|
217
|
-
return this.byteOffset;
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
function fe(o) {
|
|
221
|
-
if (o > T)
|
|
222
|
-
throw new RangeError('The value "' + o + '" is invalid for option "size"');
|
|
223
|
-
const r = new U(o);
|
|
224
|
-
return Object.setPrototypeOf(r, R.prototype), r;
|
|
225
|
-
}
|
|
226
|
-
function R(o, r, n) {
|
|
227
|
-
if (typeof o == "number") {
|
|
228
|
-
if (typeof r == "string")
|
|
229
|
-
throw new TypeError(
|
|
230
|
-
'The "string" argument must be of type string. Received type number'
|
|
231
|
-
);
|
|
232
|
-
return Te(o);
|
|
233
|
-
}
|
|
234
|
-
return ge(o, r, n);
|
|
235
|
-
}
|
|
236
|
-
R.poolSize = 8192;
|
|
237
|
-
function ge(o, r, n) {
|
|
238
|
-
if (typeof o == "string")
|
|
239
|
-
return Ue(o, r);
|
|
240
|
-
if (P.isView(o))
|
|
241
|
-
return Ae(o);
|
|
242
|
-
if (o == null)
|
|
243
|
-
throw new TypeError(
|
|
244
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof o
|
|
245
|
-
);
|
|
246
|
-
if (ke(o, P) || o && ke(o.buffer, P) || typeof K < "u" && (ke(o, K) || o && ke(o.buffer, K)))
|
|
247
|
-
return Ne(o, r, n);
|
|
248
|
-
if (typeof o == "number")
|
|
249
|
-
throw new TypeError(
|
|
250
|
-
'The "value" argument must not be of type number. Received type number'
|
|
251
|
-
);
|
|
252
|
-
const f = o.valueOf && o.valueOf();
|
|
253
|
-
if (f != null && f !== o)
|
|
254
|
-
return R.from(f, r, n);
|
|
255
|
-
const m = Pe(o);
|
|
256
|
-
if (m) return m;
|
|
257
|
-
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof o[Symbol.toPrimitive] == "function")
|
|
258
|
-
return R.from(o[Symbol.toPrimitive]("string"), r, n);
|
|
259
|
-
throw new TypeError(
|
|
260
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof o
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
R.from = function(o, r, n) {
|
|
264
|
-
return ge(o, r, n);
|
|
265
|
-
}, Object.setPrototypeOf(R.prototype, U.prototype), Object.setPrototypeOf(R, U);
|
|
266
|
-
function me(o) {
|
|
267
|
-
if (typeof o != "number")
|
|
268
|
-
throw new TypeError('"size" argument must be of type number');
|
|
269
|
-
if (o < 0)
|
|
270
|
-
throw new RangeError('The value "' + o + '" is invalid for option "size"');
|
|
271
|
-
}
|
|
272
|
-
function Ee(o, r, n) {
|
|
273
|
-
return me(o), o <= 0 ? fe(o) : r !== void 0 ? typeof n == "string" ? fe(o).fill(r, n) : fe(o).fill(r) : fe(o);
|
|
274
|
-
}
|
|
275
|
-
R.alloc = function(o, r, n) {
|
|
276
|
-
return Ee(o, r, n);
|
|
277
|
-
};
|
|
278
|
-
function Te(o) {
|
|
279
|
-
return me(o), fe(o < 0 ? 0 : L(o) | 0);
|
|
280
|
-
}
|
|
281
|
-
R.allocUnsafe = function(o) {
|
|
282
|
-
return Te(o);
|
|
283
|
-
}, R.allocUnsafeSlow = function(o) {
|
|
284
|
-
return Te(o);
|
|
285
|
-
};
|
|
286
|
-
function Ue(o, r) {
|
|
287
|
-
if ((typeof r != "string" || r === "") && (r = "utf8"), !R.isEncoding(r))
|
|
288
|
-
throw new TypeError("Unknown encoding: " + r);
|
|
289
|
-
const n = H(o, r) | 0;
|
|
290
|
-
let f = fe(n);
|
|
291
|
-
const m = f.write(o, r);
|
|
292
|
-
return m !== n && (f = f.slice(0, m)), f;
|
|
293
|
-
}
|
|
294
|
-
function Re(o) {
|
|
295
|
-
const r = o.length < 0 ? 0 : L(o.length) | 0, n = fe(r);
|
|
296
|
-
for (let f = 0; f < r; f += 1)
|
|
297
|
-
n[f] = o[f] & 255;
|
|
298
|
-
return n;
|
|
299
|
-
}
|
|
300
|
-
function Ae(o) {
|
|
301
|
-
if (ke(o, U)) {
|
|
302
|
-
const r = new U(o);
|
|
303
|
-
return Ne(r.buffer, r.byteOffset, r.byteLength);
|
|
304
|
-
}
|
|
305
|
-
return Re(o);
|
|
306
|
-
}
|
|
307
|
-
function Ne(o, r, n) {
|
|
308
|
-
if (r < 0 || o.byteLength < r)
|
|
309
|
-
throw new RangeError('"offset" is outside of buffer bounds');
|
|
310
|
-
if (o.byteLength < r + (n || 0))
|
|
311
|
-
throw new RangeError('"length" is outside of buffer bounds');
|
|
312
|
-
let f;
|
|
313
|
-
return r === void 0 && n === void 0 ? f = new U(o) : n === void 0 ? f = new U(o, r) : f = new U(o, r, n), Object.setPrototypeOf(f, R.prototype), f;
|
|
314
|
-
}
|
|
315
|
-
function Pe(o) {
|
|
316
|
-
if (R.isBuffer(o)) {
|
|
317
|
-
const r = L(o.length) | 0, n = fe(r);
|
|
318
|
-
return n.length === 0 || o.copy(n, 0, 0, r), n;
|
|
319
|
-
}
|
|
320
|
-
if (o.length !== void 0)
|
|
321
|
-
return typeof o.length != "number" || ar(o.length) ? fe(0) : Re(o);
|
|
322
|
-
if (o.type === "Buffer" && Array.isArray(o.data))
|
|
323
|
-
return Re(o.data);
|
|
324
|
-
}
|
|
325
|
-
function L(o) {
|
|
326
|
-
if (o >= T)
|
|
327
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + T.toString(16) + " bytes");
|
|
328
|
-
return o | 0;
|
|
329
|
-
}
|
|
330
|
-
function F(o) {
|
|
331
|
-
return +o != o && (o = 0), R.alloc(+o);
|
|
332
|
-
}
|
|
333
|
-
R.isBuffer = function(r) {
|
|
334
|
-
return r != null && r._isBuffer === !0 && r !== R.prototype;
|
|
335
|
-
}, R.compare = function(r, n) {
|
|
336
|
-
if (ke(r, U) && (r = R.from(r, r.offset, r.byteLength)), ke(n, U) && (n = R.from(n, n.offset, n.byteLength)), !R.isBuffer(r) || !R.isBuffer(n))
|
|
337
|
-
throw new TypeError(
|
|
338
|
-
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
339
|
-
);
|
|
340
|
-
if (r === n) return 0;
|
|
341
|
-
let f = r.length, m = n.length;
|
|
342
|
-
for (let N = 0, V = Math.min(f, m); N < V; ++N)
|
|
343
|
-
if (r[N] !== n[N]) {
|
|
344
|
-
f = r[N], m = n[N];
|
|
345
|
-
break;
|
|
346
|
-
}
|
|
347
|
-
return f < m ? -1 : m < f ? 1 : 0;
|
|
348
|
-
}, R.isEncoding = function(r) {
|
|
349
|
-
switch (String(r).toLowerCase()) {
|
|
350
|
-
case "hex":
|
|
351
|
-
case "utf8":
|
|
352
|
-
case "utf-8":
|
|
353
|
-
case "ascii":
|
|
354
|
-
case "latin1":
|
|
355
|
-
case "binary":
|
|
356
|
-
case "base64":
|
|
357
|
-
case "ucs2":
|
|
358
|
-
case "ucs-2":
|
|
359
|
-
case "utf16le":
|
|
360
|
-
case "utf-16le":
|
|
361
|
-
return !0;
|
|
362
|
-
default:
|
|
363
|
-
return !1;
|
|
364
|
-
}
|
|
365
|
-
}, R.concat = function(r, n) {
|
|
366
|
-
if (!Array.isArray(r))
|
|
367
|
-
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
368
|
-
if (r.length === 0)
|
|
369
|
-
return R.alloc(0);
|
|
370
|
-
let f;
|
|
371
|
-
if (n === void 0)
|
|
372
|
-
for (n = 0, f = 0; f < r.length; ++f)
|
|
373
|
-
n += r[f].length;
|
|
374
|
-
const m = R.allocUnsafe(n);
|
|
375
|
-
let N = 0;
|
|
376
|
-
for (f = 0; f < r.length; ++f) {
|
|
377
|
-
let V = r[f];
|
|
378
|
-
if (ke(V, U))
|
|
379
|
-
N + V.length > m.length ? (R.isBuffer(V) || (V = R.from(V)), V.copy(m, N)) : U.prototype.set.call(
|
|
380
|
-
m,
|
|
381
|
-
V,
|
|
382
|
-
N
|
|
383
|
-
);
|
|
384
|
-
else if (R.isBuffer(V))
|
|
385
|
-
V.copy(m, N);
|
|
386
|
-
else
|
|
387
|
-
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
388
|
-
N += V.length;
|
|
389
|
-
}
|
|
390
|
-
return m;
|
|
391
|
-
};
|
|
392
|
-
function H(o, r) {
|
|
393
|
-
if (R.isBuffer(o))
|
|
394
|
-
return o.length;
|
|
395
|
-
if (P.isView(o) || ke(o, P))
|
|
396
|
-
return o.byteLength;
|
|
397
|
-
if (typeof o != "string")
|
|
398
|
-
throw new TypeError(
|
|
399
|
-
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof o
|
|
400
|
-
);
|
|
401
|
-
const n = o.length, f = arguments.length > 2 && arguments[2] === !0;
|
|
402
|
-
if (!f && n === 0) return 0;
|
|
403
|
-
let m = !1;
|
|
404
|
-
for (; ; )
|
|
405
|
-
switch (r) {
|
|
406
|
-
case "ascii":
|
|
407
|
-
case "latin1":
|
|
408
|
-
case "binary":
|
|
409
|
-
return n;
|
|
410
|
-
case "utf8":
|
|
411
|
-
case "utf-8":
|
|
412
|
-
return ye(o).length;
|
|
413
|
-
case "ucs2":
|
|
414
|
-
case "ucs-2":
|
|
415
|
-
case "utf16le":
|
|
416
|
-
case "utf-16le":
|
|
417
|
-
return n * 2;
|
|
418
|
-
case "hex":
|
|
419
|
-
return n >>> 1;
|
|
420
|
-
case "base64":
|
|
421
|
-
return be(o).length;
|
|
422
|
-
default:
|
|
423
|
-
if (m)
|
|
424
|
-
return f ? -1 : ye(o).length;
|
|
425
|
-
r = ("" + r).toLowerCase(), m = !0;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
R.byteLength = H;
|
|
429
|
-
function ue(o, r, n) {
|
|
430
|
-
let f = !1;
|
|
431
|
-
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((n === void 0 || n > this.length) && (n = this.length), n <= 0) || (n >>>= 0, r >>>= 0, n <= r))
|
|
432
|
-
return "";
|
|
433
|
-
for (o || (o = "utf8"); ; )
|
|
434
|
-
switch (o) {
|
|
435
|
-
case "hex":
|
|
436
|
-
return Ce(this, r, n);
|
|
437
|
-
case "utf8":
|
|
438
|
-
case "utf-8":
|
|
439
|
-
return de(this, r, n);
|
|
440
|
-
case "ascii":
|
|
441
|
-
return je(this, r, n);
|
|
442
|
-
case "latin1":
|
|
443
|
-
case "binary":
|
|
444
|
-
return G(this, r, n);
|
|
445
|
-
case "base64":
|
|
446
|
-
return te(this, r, n);
|
|
447
|
-
case "ucs2":
|
|
448
|
-
case "ucs-2":
|
|
449
|
-
case "utf16le":
|
|
450
|
-
case "utf-16le":
|
|
451
|
-
return Ge(this, r, n);
|
|
452
|
-
default:
|
|
453
|
-
if (f) throw new TypeError("Unknown encoding: " + o);
|
|
454
|
-
o = (o + "").toLowerCase(), f = !0;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
R.prototype._isBuffer = !0;
|
|
458
|
-
function E(o, r, n) {
|
|
459
|
-
const f = o[r];
|
|
460
|
-
o[r] = o[n], o[n] = f;
|
|
461
|
-
}
|
|
462
|
-
R.prototype.swap16 = function() {
|
|
463
|
-
const r = this.length;
|
|
464
|
-
if (r % 2 !== 0)
|
|
465
|
-
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
466
|
-
for (let n = 0; n < r; n += 2)
|
|
467
|
-
E(this, n, n + 1);
|
|
468
|
-
return this;
|
|
469
|
-
}, R.prototype.swap32 = function() {
|
|
470
|
-
const r = this.length;
|
|
471
|
-
if (r % 4 !== 0)
|
|
472
|
-
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
473
|
-
for (let n = 0; n < r; n += 4)
|
|
474
|
-
E(this, n, n + 3), E(this, n + 1, n + 2);
|
|
475
|
-
return this;
|
|
476
|
-
}, R.prototype.swap64 = function() {
|
|
477
|
-
const r = this.length;
|
|
478
|
-
if (r % 8 !== 0)
|
|
479
|
-
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
480
|
-
for (let n = 0; n < r; n += 8)
|
|
481
|
-
E(this, n, n + 7), E(this, n + 1, n + 6), E(this, n + 2, n + 5), E(this, n + 3, n + 4);
|
|
482
|
-
return this;
|
|
483
|
-
}, R.prototype.toString = function() {
|
|
484
|
-
const r = this.length;
|
|
485
|
-
return r === 0 ? "" : arguments.length === 0 ? de(this, 0, r) : ue.apply(this, arguments);
|
|
486
|
-
}, R.prototype.toLocaleString = R.prototype.toString, R.prototype.equals = function(r) {
|
|
487
|
-
if (!R.isBuffer(r)) throw new TypeError("Argument must be a Buffer");
|
|
488
|
-
return this === r ? !0 : R.compare(this, r) === 0;
|
|
489
|
-
}, R.prototype.inspect = function() {
|
|
490
|
-
let r = "";
|
|
491
|
-
const n = S.INSPECT_MAX_BYTES;
|
|
492
|
-
return r = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (r += " ... "), "<Buffer " + r + ">";
|
|
493
|
-
}, b && (R.prototype[b] = R.prototype.inspect), R.prototype.compare = function(r, n, f, m, N) {
|
|
494
|
-
if (ke(r, U) && (r = R.from(r, r.offset, r.byteLength)), !R.isBuffer(r))
|
|
495
|
-
throw new TypeError(
|
|
496
|
-
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
|
|
497
|
-
);
|
|
498
|
-
if (n === void 0 && (n = 0), f === void 0 && (f = r ? r.length : 0), m === void 0 && (m = 0), N === void 0 && (N = this.length), n < 0 || f > r.length || m < 0 || N > this.length)
|
|
499
|
-
throw new RangeError("out of range index");
|
|
500
|
-
if (m >= N && n >= f)
|
|
501
|
-
return 0;
|
|
502
|
-
if (m >= N)
|
|
503
|
-
return -1;
|
|
504
|
-
if (n >= f)
|
|
505
|
-
return 1;
|
|
506
|
-
if (n >>>= 0, f >>>= 0, m >>>= 0, N >>>= 0, this === r) return 0;
|
|
507
|
-
let V = N - m, he = f - n;
|
|
508
|
-
const Oe = Math.min(V, he), Se = this.slice(m, N), Le = r.slice(n, f);
|
|
509
|
-
for (let _e = 0; _e < Oe; ++_e)
|
|
510
|
-
if (Se[_e] !== Le[_e]) {
|
|
511
|
-
V = Se[_e], he = Le[_e];
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
return V < he ? -1 : he < V ? 1 : 0;
|
|
515
|
-
};
|
|
516
|
-
function _(o, r, n, f, m) {
|
|
517
|
-
if (o.length === 0) return -1;
|
|
518
|
-
if (typeof n == "string" ? (f = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, ar(n) && (n = m ? 0 : o.length - 1), n < 0 && (n = o.length + n), n >= o.length) {
|
|
519
|
-
if (m) return -1;
|
|
520
|
-
n = o.length - 1;
|
|
521
|
-
} else if (n < 0)
|
|
522
|
-
if (m) n = 0;
|
|
523
|
-
else return -1;
|
|
524
|
-
if (typeof r == "string" && (r = R.from(r, f)), R.isBuffer(r))
|
|
525
|
-
return r.length === 0 ? -1 : k(o, r, n, f, m);
|
|
526
|
-
if (typeof r == "number")
|
|
527
|
-
return r = r & 255, typeof U.prototype.indexOf == "function" ? m ? U.prototype.indexOf.call(o, r, n) : U.prototype.lastIndexOf.call(o, r, n) : k(o, [r], n, f, m);
|
|
528
|
-
throw new TypeError("val must be string, number or Buffer");
|
|
529
|
-
}
|
|
530
|
-
function k(o, r, n, f, m) {
|
|
531
|
-
let N = 1, V = o.length, he = r.length;
|
|
532
|
-
if (f !== void 0 && (f = String(f).toLowerCase(), f === "ucs2" || f === "ucs-2" || f === "utf16le" || f === "utf-16le")) {
|
|
533
|
-
if (o.length < 2 || r.length < 2)
|
|
534
|
-
return -1;
|
|
535
|
-
N = 2, V /= 2, he /= 2, n /= 2;
|
|
536
|
-
}
|
|
537
|
-
function Oe(Le, _e) {
|
|
538
|
-
return N === 1 ? Le[_e] : Le.readUInt16BE(_e * N);
|
|
539
|
-
}
|
|
540
|
-
let Se;
|
|
541
|
-
if (m) {
|
|
542
|
-
let Le = -1;
|
|
543
|
-
for (Se = n; Se < V; Se++)
|
|
544
|
-
if (Oe(o, Se) === Oe(r, Le === -1 ? 0 : Se - Le)) {
|
|
545
|
-
if (Le === -1 && (Le = Se), Se - Le + 1 === he) return Le * N;
|
|
546
|
-
} else
|
|
547
|
-
Le !== -1 && (Se -= Se - Le), Le = -1;
|
|
548
|
-
} else
|
|
549
|
-
for (n + he > V && (n = V - he), Se = n; Se >= 0; Se--) {
|
|
550
|
-
let Le = !0;
|
|
551
|
-
for (let _e = 0; _e < he; _e++)
|
|
552
|
-
if (Oe(o, Se + _e) !== Oe(r, _e)) {
|
|
553
|
-
Le = !1;
|
|
554
|
-
break;
|
|
555
|
-
}
|
|
556
|
-
if (Le) return Se;
|
|
557
|
-
}
|
|
558
|
-
return -1;
|
|
559
|
-
}
|
|
560
|
-
R.prototype.includes = function(r, n, f) {
|
|
561
|
-
return this.indexOf(r, n, f) !== -1;
|
|
562
|
-
}, R.prototype.indexOf = function(r, n, f) {
|
|
563
|
-
return _(this, r, n, f, !0);
|
|
564
|
-
}, R.prototype.lastIndexOf = function(r, n, f) {
|
|
565
|
-
return _(this, r, n, f, !1);
|
|
566
|
-
};
|
|
567
|
-
function $(o, r, n, f) {
|
|
568
|
-
n = Number(n) || 0;
|
|
569
|
-
const m = o.length - n;
|
|
570
|
-
f ? (f = Number(f), f > m && (f = m)) : f = m;
|
|
571
|
-
const N = r.length;
|
|
572
|
-
f > N / 2 && (f = N / 2);
|
|
573
|
-
let V;
|
|
574
|
-
for (V = 0; V < f; ++V) {
|
|
575
|
-
const he = parseInt(r.substr(V * 2, 2), 16);
|
|
576
|
-
if (ar(he)) return V;
|
|
577
|
-
o[n + V] = he;
|
|
578
|
-
}
|
|
579
|
-
return V;
|
|
580
|
-
}
|
|
581
|
-
function ie(o, r, n, f) {
|
|
582
|
-
return Qe(ye(r, o.length - n), o, n, f);
|
|
583
|
-
}
|
|
584
|
-
function u(o, r, n, f) {
|
|
585
|
-
return Qe(we(r), o, n, f);
|
|
586
|
-
}
|
|
587
|
-
function s(o, r, n, f) {
|
|
588
|
-
return Qe(be(r), o, n, f);
|
|
589
|
-
}
|
|
590
|
-
function Y(o, r, n, f) {
|
|
591
|
-
return Qe(ve(r, o.length - n), o, n, f);
|
|
592
|
-
}
|
|
593
|
-
R.prototype.write = function(r, n, f, m) {
|
|
594
|
-
if (n === void 0)
|
|
595
|
-
m = "utf8", f = this.length, n = 0;
|
|
596
|
-
else if (f === void 0 && typeof n == "string")
|
|
597
|
-
m = n, f = this.length, n = 0;
|
|
598
|
-
else if (isFinite(n))
|
|
599
|
-
n = n >>> 0, isFinite(f) ? (f = f >>> 0, m === void 0 && (m = "utf8")) : (m = f, f = void 0);
|
|
600
|
-
else
|
|
601
|
-
throw new Error(
|
|
602
|
-
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
603
|
-
);
|
|
604
|
-
const N = this.length - n;
|
|
605
|
-
if ((f === void 0 || f > N) && (f = N), r.length > 0 && (f < 0 || n < 0) || n > this.length)
|
|
606
|
-
throw new RangeError("Attempt to write outside buffer bounds");
|
|
607
|
-
m || (m = "utf8");
|
|
608
|
-
let V = !1;
|
|
609
|
-
for (; ; )
|
|
610
|
-
switch (m) {
|
|
611
|
-
case "hex":
|
|
612
|
-
return $(this, r, n, f);
|
|
613
|
-
case "utf8":
|
|
614
|
-
case "utf-8":
|
|
615
|
-
return ie(this, r, n, f);
|
|
616
|
-
case "ascii":
|
|
617
|
-
case "latin1":
|
|
618
|
-
case "binary":
|
|
619
|
-
return u(this, r, n, f);
|
|
620
|
-
case "base64":
|
|
621
|
-
return s(this, r, n, f);
|
|
622
|
-
case "ucs2":
|
|
623
|
-
case "ucs-2":
|
|
624
|
-
case "utf16le":
|
|
625
|
-
case "utf-16le":
|
|
626
|
-
return Y(this, r, n, f);
|
|
627
|
-
default:
|
|
628
|
-
if (V) throw new TypeError("Unknown encoding: " + m);
|
|
629
|
-
m = ("" + m).toLowerCase(), V = !0;
|
|
630
|
-
}
|
|
631
|
-
}, R.prototype.toJSON = function() {
|
|
632
|
-
return {
|
|
633
|
-
type: "Buffer",
|
|
634
|
-
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
function te(o, r, n) {
|
|
638
|
-
return r === 0 && n === o.length ? O.fromByteArray(o) : O.fromByteArray(o.slice(r, n));
|
|
639
|
-
}
|
|
640
|
-
function de(o, r, n) {
|
|
641
|
-
n = Math.min(o.length, n);
|
|
642
|
-
const f = [];
|
|
643
|
-
let m = r;
|
|
644
|
-
for (; m < n; ) {
|
|
645
|
-
const N = o[m];
|
|
646
|
-
let V = null, he = N > 239 ? 4 : N > 223 ? 3 : N > 191 ? 2 : 1;
|
|
647
|
-
if (m + he <= n) {
|
|
648
|
-
let Oe, Se, Le, _e;
|
|
649
|
-
switch (he) {
|
|
650
|
-
case 1:
|
|
651
|
-
N < 128 && (V = N);
|
|
652
|
-
break;
|
|
653
|
-
case 2:
|
|
654
|
-
Oe = o[m + 1], (Oe & 192) === 128 && (_e = (N & 31) << 6 | Oe & 63, _e > 127 && (V = _e));
|
|
655
|
-
break;
|
|
656
|
-
case 3:
|
|
657
|
-
Oe = o[m + 1], Se = o[m + 2], (Oe & 192) === 128 && (Se & 192) === 128 && (_e = (N & 15) << 12 | (Oe & 63) << 6 | Se & 63, _e > 2047 && (_e < 55296 || _e > 57343) && (V = _e));
|
|
658
|
-
break;
|
|
659
|
-
case 4:
|
|
660
|
-
Oe = o[m + 1], Se = o[m + 2], Le = o[m + 3], (Oe & 192) === 128 && (Se & 192) === 128 && (Le & 192) === 128 && (_e = (N & 15) << 18 | (Oe & 63) << 12 | (Se & 63) << 6 | Le & 63, _e > 65535 && _e < 1114112 && (V = _e));
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
V === null ? (V = 65533, he = 1) : V > 65535 && (V -= 65536, f.push(V >>> 10 & 1023 | 55296), V = 56320 | V & 1023), f.push(V), m += he;
|
|
664
|
-
}
|
|
665
|
-
return ce(f);
|
|
666
|
-
}
|
|
667
|
-
const ae = 4096;
|
|
668
|
-
function ce(o) {
|
|
669
|
-
const r = o.length;
|
|
670
|
-
if (r <= ae)
|
|
671
|
-
return String.fromCharCode.apply(String, o);
|
|
672
|
-
let n = "", f = 0;
|
|
673
|
-
for (; f < r; )
|
|
674
|
-
n += String.fromCharCode.apply(
|
|
675
|
-
String,
|
|
676
|
-
o.slice(f, f += ae)
|
|
677
|
-
);
|
|
678
|
-
return n;
|
|
679
|
-
}
|
|
680
|
-
function je(o, r, n) {
|
|
681
|
-
let f = "";
|
|
682
|
-
n = Math.min(o.length, n);
|
|
683
|
-
for (let m = r; m < n; ++m)
|
|
684
|
-
f += String.fromCharCode(o[m] & 127);
|
|
685
|
-
return f;
|
|
686
|
-
}
|
|
687
|
-
function G(o, r, n) {
|
|
688
|
-
let f = "";
|
|
689
|
-
n = Math.min(o.length, n);
|
|
690
|
-
for (let m = r; m < n; ++m)
|
|
691
|
-
f += String.fromCharCode(o[m]);
|
|
692
|
-
return f;
|
|
693
|
-
}
|
|
694
|
-
function Ce(o, r, n) {
|
|
695
|
-
const f = o.length;
|
|
696
|
-
(!r || r < 0) && (r = 0), (!n || n < 0 || n > f) && (n = f);
|
|
697
|
-
let m = "";
|
|
698
|
-
for (let N = r; N < n; ++N)
|
|
699
|
-
m += It[o[N]];
|
|
700
|
-
return m;
|
|
701
|
-
}
|
|
702
|
-
function Ge(o, r, n) {
|
|
703
|
-
const f = o.slice(r, n);
|
|
704
|
-
let m = "";
|
|
705
|
-
for (let N = 0; N < f.length - 1; N += 2)
|
|
706
|
-
m += String.fromCharCode(f[N] + f[N + 1] * 256);
|
|
707
|
-
return m;
|
|
708
|
-
}
|
|
709
|
-
R.prototype.slice = function(r, n) {
|
|
710
|
-
const f = this.length;
|
|
711
|
-
r = ~~r, n = n === void 0 ? f : ~~n, r < 0 ? (r += f, r < 0 && (r = 0)) : r > f && (r = f), n < 0 ? (n += f, n < 0 && (n = 0)) : n > f && (n = f), n < r && (n = r);
|
|
712
|
-
const m = this.subarray(r, n);
|
|
713
|
-
return Object.setPrototypeOf(m, R.prototype), m;
|
|
714
|
-
};
|
|
715
|
-
function Be(o, r, n) {
|
|
716
|
-
if (o % 1 !== 0 || o < 0) throw new RangeError("offset is not uint");
|
|
717
|
-
if (o + r > n) throw new RangeError("Trying to access beyond buffer length");
|
|
718
|
-
}
|
|
719
|
-
R.prototype.readUintLE = R.prototype.readUIntLE = function(r, n, f) {
|
|
720
|
-
r = r >>> 0, n = n >>> 0, f || Be(r, n, this.length);
|
|
721
|
-
let m = this[r], N = 1, V = 0;
|
|
722
|
-
for (; ++V < n && (N *= 256); )
|
|
723
|
-
m += this[r + V] * N;
|
|
724
|
-
return m;
|
|
725
|
-
}, R.prototype.readUintBE = R.prototype.readUIntBE = function(r, n, f) {
|
|
726
|
-
r = r >>> 0, n = n >>> 0, f || Be(r, n, this.length);
|
|
727
|
-
let m = this[r + --n], N = 1;
|
|
728
|
-
for (; n > 0 && (N *= 256); )
|
|
729
|
-
m += this[r + --n] * N;
|
|
730
|
-
return m;
|
|
731
|
-
}, R.prototype.readUint8 = R.prototype.readUInt8 = function(r, n) {
|
|
732
|
-
return r = r >>> 0, n || Be(r, 1, this.length), this[r];
|
|
733
|
-
}, R.prototype.readUint16LE = R.prototype.readUInt16LE = function(r, n) {
|
|
734
|
-
return r = r >>> 0, n || Be(r, 2, this.length), this[r] | this[r + 1] << 8;
|
|
735
|
-
}, R.prototype.readUint16BE = R.prototype.readUInt16BE = function(r, n) {
|
|
736
|
-
return r = r >>> 0, n || Be(r, 2, this.length), this[r] << 8 | this[r + 1];
|
|
737
|
-
}, R.prototype.readUint32LE = R.prototype.readUInt32LE = function(r, n) {
|
|
738
|
-
return r = r >>> 0, n || Be(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
|
|
739
|
-
}, R.prototype.readUint32BE = R.prototype.readUInt32BE = function(r, n) {
|
|
740
|
-
return r = r >>> 0, n || Be(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
|
|
741
|
-
}, R.prototype.readBigUInt64LE = Ve(function(r) {
|
|
742
|
-
r = r >>> 0, p(r, "offset");
|
|
743
|
-
const n = this[r], f = this[r + 7];
|
|
744
|
-
(n === void 0 || f === void 0) && I(r, this.length - 8);
|
|
745
|
-
const m = n + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, N = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + f * 2 ** 24;
|
|
746
|
-
return BigInt(m) + (BigInt(N) << BigInt(32));
|
|
747
|
-
}), R.prototype.readBigUInt64BE = Ve(function(r) {
|
|
748
|
-
r = r >>> 0, p(r, "offset");
|
|
749
|
-
const n = this[r], f = this[r + 7];
|
|
750
|
-
(n === void 0 || f === void 0) && I(r, this.length - 8);
|
|
751
|
-
const m = n * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], N = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + f;
|
|
752
|
-
return (BigInt(m) << BigInt(32)) + BigInt(N);
|
|
753
|
-
}), R.prototype.readIntLE = function(r, n, f) {
|
|
754
|
-
r = r >>> 0, n = n >>> 0, f || Be(r, n, this.length);
|
|
755
|
-
let m = this[r], N = 1, V = 0;
|
|
756
|
-
for (; ++V < n && (N *= 256); )
|
|
757
|
-
m += this[r + V] * N;
|
|
758
|
-
return N *= 128, m >= N && (m -= Math.pow(2, 8 * n)), m;
|
|
759
|
-
}, R.prototype.readIntBE = function(r, n, f) {
|
|
760
|
-
r = r >>> 0, n = n >>> 0, f || Be(r, n, this.length);
|
|
761
|
-
let m = n, N = 1, V = this[r + --m];
|
|
762
|
-
for (; m > 0 && (N *= 256); )
|
|
763
|
-
V += this[r + --m] * N;
|
|
764
|
-
return N *= 128, V >= N && (V -= Math.pow(2, 8 * n)), V;
|
|
765
|
-
}, R.prototype.readInt8 = function(r, n) {
|
|
766
|
-
return r = r >>> 0, n || Be(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
|
|
767
|
-
}, R.prototype.readInt16LE = function(r, n) {
|
|
768
|
-
r = r >>> 0, n || Be(r, 2, this.length);
|
|
769
|
-
const f = this[r] | this[r + 1] << 8;
|
|
770
|
-
return f & 32768 ? f | 4294901760 : f;
|
|
771
|
-
}, R.prototype.readInt16BE = function(r, n) {
|
|
772
|
-
r = r >>> 0, n || Be(r, 2, this.length);
|
|
773
|
-
const f = this[r + 1] | this[r] << 8;
|
|
774
|
-
return f & 32768 ? f | 4294901760 : f;
|
|
775
|
-
}, R.prototype.readInt32LE = function(r, n) {
|
|
776
|
-
return r = r >>> 0, n || Be(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
|
|
777
|
-
}, R.prototype.readInt32BE = function(r, n) {
|
|
778
|
-
return r = r >>> 0, n || Be(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
|
|
779
|
-
}, R.prototype.readBigInt64LE = Ve(function(r) {
|
|
780
|
-
r = r >>> 0, p(r, "offset");
|
|
781
|
-
const n = this[r], f = this[r + 7];
|
|
782
|
-
(n === void 0 || f === void 0) && I(r, this.length - 8);
|
|
783
|
-
const m = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (f << 24);
|
|
784
|
-
return (BigInt(m) << BigInt(32)) + BigInt(n + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24);
|
|
785
|
-
}), R.prototype.readBigInt64BE = Ve(function(r) {
|
|
786
|
-
r = r >>> 0, p(r, "offset");
|
|
787
|
-
const n = this[r], f = this[r + 7];
|
|
788
|
-
(n === void 0 || f === void 0) && I(r, this.length - 8);
|
|
789
|
-
const m = (n << 24) + // Overflow
|
|
790
|
-
this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r];
|
|
791
|
-
return (BigInt(m) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + f);
|
|
792
|
-
}), R.prototype.readFloatLE = function(r, n) {
|
|
793
|
-
return r = r >>> 0, n || Be(r, 4, this.length), w.read(this, r, !0, 23, 4);
|
|
794
|
-
}, R.prototype.readFloatBE = function(r, n) {
|
|
795
|
-
return r = r >>> 0, n || Be(r, 4, this.length), w.read(this, r, !1, 23, 4);
|
|
796
|
-
}, R.prototype.readDoubleLE = function(r, n) {
|
|
797
|
-
return r = r >>> 0, n || Be(r, 8, this.length), w.read(this, r, !0, 52, 8);
|
|
798
|
-
}, R.prototype.readDoubleBE = function(r, n) {
|
|
799
|
-
return r = r >>> 0, n || Be(r, 8, this.length), w.read(this, r, !1, 52, 8);
|
|
800
|
-
};
|
|
801
|
-
function Ie(o, r, n, f, m, N) {
|
|
802
|
-
if (!R.isBuffer(o)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
803
|
-
if (r > m || r < N) throw new RangeError('"value" argument is out of bounds');
|
|
804
|
-
if (n + f > o.length) throw new RangeError("Index out of range");
|
|
805
|
-
}
|
|
806
|
-
R.prototype.writeUintLE = R.prototype.writeUIntLE = function(r, n, f, m) {
|
|
807
|
-
if (r = +r, n = n >>> 0, f = f >>> 0, !m) {
|
|
808
|
-
const he = Math.pow(2, 8 * f) - 1;
|
|
809
|
-
Ie(this, r, n, f, he, 0);
|
|
810
|
-
}
|
|
811
|
-
let N = 1, V = 0;
|
|
812
|
-
for (this[n] = r & 255; ++V < f && (N *= 256); )
|
|
813
|
-
this[n + V] = r / N & 255;
|
|
814
|
-
return n + f;
|
|
815
|
-
}, R.prototype.writeUintBE = R.prototype.writeUIntBE = function(r, n, f, m) {
|
|
816
|
-
if (r = +r, n = n >>> 0, f = f >>> 0, !m) {
|
|
817
|
-
const he = Math.pow(2, 8 * f) - 1;
|
|
818
|
-
Ie(this, r, n, f, he, 0);
|
|
819
|
-
}
|
|
820
|
-
let N = f - 1, V = 1;
|
|
821
|
-
for (this[n + N] = r & 255; --N >= 0 && (V *= 256); )
|
|
822
|
-
this[n + N] = r / V & 255;
|
|
823
|
-
return n + f;
|
|
824
|
-
}, R.prototype.writeUint8 = R.prototype.writeUInt8 = function(r, n, f) {
|
|
825
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 1, 255, 0), this[n] = r & 255, n + 1;
|
|
826
|
-
}, R.prototype.writeUint16LE = R.prototype.writeUInt16LE = function(r, n, f) {
|
|
827
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 2, 65535, 0), this[n] = r & 255, this[n + 1] = r >>> 8, n + 2;
|
|
828
|
-
}, R.prototype.writeUint16BE = R.prototype.writeUInt16BE = function(r, n, f) {
|
|
829
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 2, 65535, 0), this[n] = r >>> 8, this[n + 1] = r & 255, n + 2;
|
|
830
|
-
}, R.prototype.writeUint32LE = R.prototype.writeUInt32LE = function(r, n, f) {
|
|
831
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 4, 4294967295, 0), this[n + 3] = r >>> 24, this[n + 2] = r >>> 16, this[n + 1] = r >>> 8, this[n] = r & 255, n + 4;
|
|
832
|
-
}, R.prototype.writeUint32BE = R.prototype.writeUInt32BE = function(r, n, f) {
|
|
833
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 4, 4294967295, 0), this[n] = r >>> 24, this[n + 1] = r >>> 16, this[n + 2] = r >>> 8, this[n + 3] = r & 255, n + 4;
|
|
834
|
-
};
|
|
835
|
-
function B(o, r, n, f, m) {
|
|
836
|
-
a(r, f, m, o, n, 7);
|
|
837
|
-
let N = Number(r & BigInt(4294967295));
|
|
838
|
-
o[n++] = N, N = N >> 8, o[n++] = N, N = N >> 8, o[n++] = N, N = N >> 8, o[n++] = N;
|
|
839
|
-
let V = Number(r >> BigInt(32) & BigInt(4294967295));
|
|
840
|
-
return o[n++] = V, V = V >> 8, o[n++] = V, V = V >> 8, o[n++] = V, V = V >> 8, o[n++] = V, n;
|
|
841
|
-
}
|
|
842
|
-
function A(o, r, n, f, m) {
|
|
843
|
-
a(r, f, m, o, n, 7);
|
|
844
|
-
let N = Number(r & BigInt(4294967295));
|
|
845
|
-
o[n + 7] = N, N = N >> 8, o[n + 6] = N, N = N >> 8, o[n + 5] = N, N = N >> 8, o[n + 4] = N;
|
|
846
|
-
let V = Number(r >> BigInt(32) & BigInt(4294967295));
|
|
847
|
-
return o[n + 3] = V, V = V >> 8, o[n + 2] = V, V = V >> 8, o[n + 1] = V, V = V >> 8, o[n] = V, n + 8;
|
|
848
|
-
}
|
|
849
|
-
R.prototype.writeBigUInt64LE = Ve(function(r, n = 0) {
|
|
850
|
-
return B(this, r, n, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
851
|
-
}), R.prototype.writeBigUInt64BE = Ve(function(r, n = 0) {
|
|
852
|
-
return A(this, r, n, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
853
|
-
}), R.prototype.writeIntLE = function(r, n, f, m) {
|
|
854
|
-
if (r = +r, n = n >>> 0, !m) {
|
|
855
|
-
const Oe = Math.pow(2, 8 * f - 1);
|
|
856
|
-
Ie(this, r, n, f, Oe - 1, -Oe);
|
|
857
|
-
}
|
|
858
|
-
let N = 0, V = 1, he = 0;
|
|
859
|
-
for (this[n] = r & 255; ++N < f && (V *= 256); )
|
|
860
|
-
r < 0 && he === 0 && this[n + N - 1] !== 0 && (he = 1), this[n + N] = (r / V >> 0) - he & 255;
|
|
861
|
-
return n + f;
|
|
862
|
-
}, R.prototype.writeIntBE = function(r, n, f, m) {
|
|
863
|
-
if (r = +r, n = n >>> 0, !m) {
|
|
864
|
-
const Oe = Math.pow(2, 8 * f - 1);
|
|
865
|
-
Ie(this, r, n, f, Oe - 1, -Oe);
|
|
866
|
-
}
|
|
867
|
-
let N = f - 1, V = 1, he = 0;
|
|
868
|
-
for (this[n + N] = r & 255; --N >= 0 && (V *= 256); )
|
|
869
|
-
r < 0 && he === 0 && this[n + N + 1] !== 0 && (he = 1), this[n + N] = (r / V >> 0) - he & 255;
|
|
870
|
-
return n + f;
|
|
871
|
-
}, R.prototype.writeInt8 = function(r, n, f) {
|
|
872
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[n] = r & 255, n + 1;
|
|
873
|
-
}, R.prototype.writeInt16LE = function(r, n, f) {
|
|
874
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 2, 32767, -32768), this[n] = r & 255, this[n + 1] = r >>> 8, n + 2;
|
|
875
|
-
}, R.prototype.writeInt16BE = function(r, n, f) {
|
|
876
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 2, 32767, -32768), this[n] = r >>> 8, this[n + 1] = r & 255, n + 2;
|
|
877
|
-
}, R.prototype.writeInt32LE = function(r, n, f) {
|
|
878
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 4, 2147483647, -2147483648), this[n] = r & 255, this[n + 1] = r >>> 8, this[n + 2] = r >>> 16, this[n + 3] = r >>> 24, n + 4;
|
|
879
|
-
}, R.prototype.writeInt32BE = function(r, n, f) {
|
|
880
|
-
return r = +r, n = n >>> 0, f || Ie(this, r, n, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[n] = r >>> 24, this[n + 1] = r >>> 16, this[n + 2] = r >>> 8, this[n + 3] = r & 255, n + 4;
|
|
881
|
-
}, R.prototype.writeBigInt64LE = Ve(function(r, n = 0) {
|
|
882
|
-
return B(this, r, n, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
883
|
-
}), R.prototype.writeBigInt64BE = Ve(function(r, n = 0) {
|
|
884
|
-
return A(this, r, n, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
885
|
-
});
|
|
886
|
-
function ee(o, r, n, f, m, N) {
|
|
887
|
-
if (n + f > o.length) throw new RangeError("Index out of range");
|
|
888
|
-
if (n < 0) throw new RangeError("Index out of range");
|
|
889
|
-
}
|
|
890
|
-
function oe(o, r, n, f, m) {
|
|
891
|
-
return r = +r, n = n >>> 0, m || ee(o, r, n, 4), w.write(o, r, n, f, 23, 4), n + 4;
|
|
892
|
-
}
|
|
893
|
-
R.prototype.writeFloatLE = function(r, n, f) {
|
|
894
|
-
return oe(this, r, n, !0, f);
|
|
895
|
-
}, R.prototype.writeFloatBE = function(r, n, f) {
|
|
896
|
-
return oe(this, r, n, !1, f);
|
|
897
|
-
};
|
|
898
|
-
function ne(o, r, n, f, m) {
|
|
899
|
-
return r = +r, n = n >>> 0, m || ee(o, r, n, 8), w.write(o, r, n, f, 52, 8), n + 8;
|
|
900
|
-
}
|
|
901
|
-
R.prototype.writeDoubleLE = function(r, n, f) {
|
|
902
|
-
return ne(this, r, n, !0, f);
|
|
903
|
-
}, R.prototype.writeDoubleBE = function(r, n, f) {
|
|
904
|
-
return ne(this, r, n, !1, f);
|
|
905
|
-
}, R.prototype.copy = function(r, n, f, m) {
|
|
906
|
-
if (!R.isBuffer(r)) throw new TypeError("argument should be a Buffer");
|
|
907
|
-
if (f || (f = 0), !m && m !== 0 && (m = this.length), n >= r.length && (n = r.length), n || (n = 0), m > 0 && m < f && (m = f), m === f || r.length === 0 || this.length === 0) return 0;
|
|
908
|
-
if (n < 0)
|
|
909
|
-
throw new RangeError("targetStart out of bounds");
|
|
910
|
-
if (f < 0 || f >= this.length) throw new RangeError("Index out of range");
|
|
911
|
-
if (m < 0) throw new RangeError("sourceEnd out of bounds");
|
|
912
|
-
m > this.length && (m = this.length), r.length - n < m - f && (m = r.length - n + f);
|
|
913
|
-
const N = m - f;
|
|
914
|
-
return this === r && typeof U.prototype.copyWithin == "function" ? this.copyWithin(n, f, m) : U.prototype.set.call(
|
|
915
|
-
r,
|
|
916
|
-
this.subarray(f, m),
|
|
917
|
-
n
|
|
918
|
-
), N;
|
|
919
|
-
}, R.prototype.fill = function(r, n, f, m) {
|
|
920
|
-
if (typeof r == "string") {
|
|
921
|
-
if (typeof n == "string" ? (m = n, n = 0, f = this.length) : typeof f == "string" && (m = f, f = this.length), m !== void 0 && typeof m != "string")
|
|
922
|
-
throw new TypeError("encoding must be a string");
|
|
923
|
-
if (typeof m == "string" && !R.isEncoding(m))
|
|
924
|
-
throw new TypeError("Unknown encoding: " + m);
|
|
925
|
-
if (r.length === 1) {
|
|
926
|
-
const V = r.charCodeAt(0);
|
|
927
|
-
(m === "utf8" && V < 128 || m === "latin1") && (r = V);
|
|
928
|
-
}
|
|
929
|
-
} else typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r));
|
|
930
|
-
if (n < 0 || this.length < n || this.length < f)
|
|
931
|
-
throw new RangeError("Out of range index");
|
|
932
|
-
if (f <= n)
|
|
933
|
-
return this;
|
|
934
|
-
n = n >>> 0, f = f === void 0 ? this.length : f >>> 0, r || (r = 0);
|
|
935
|
-
let N;
|
|
936
|
-
if (typeof r == "number")
|
|
937
|
-
for (N = n; N < f; ++N)
|
|
938
|
-
this[N] = r;
|
|
939
|
-
else {
|
|
940
|
-
const V = R.isBuffer(r) ? r : R.from(r, m), he = V.length;
|
|
941
|
-
if (he === 0)
|
|
942
|
-
throw new TypeError('The value "' + r + '" is invalid for argument "value"');
|
|
943
|
-
for (N = 0; N < f - n; ++N)
|
|
944
|
-
this[N + n] = V[N % he];
|
|
945
|
-
}
|
|
946
|
-
return this;
|
|
947
|
-
};
|
|
948
|
-
const se = {};
|
|
949
|
-
function i(o, r, n) {
|
|
950
|
-
se[o] = class extends n {
|
|
951
|
-
constructor() {
|
|
952
|
-
super(), Object.defineProperty(this, "message", {
|
|
953
|
-
value: r.apply(this, arguments),
|
|
954
|
-
writable: !0,
|
|
955
|
-
configurable: !0
|
|
956
|
-
}), this.name = `${this.name} [${o}]`, this.stack, delete this.name;
|
|
957
|
-
}
|
|
958
|
-
get code() {
|
|
959
|
-
return o;
|
|
960
|
-
}
|
|
961
|
-
set code(m) {
|
|
962
|
-
Object.defineProperty(this, "code", {
|
|
963
|
-
configurable: !0,
|
|
964
|
-
enumerable: !0,
|
|
965
|
-
value: m,
|
|
966
|
-
writable: !0
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
|
-
toString() {
|
|
970
|
-
return `${this.name} [${o}]: ${this.message}`;
|
|
971
|
-
}
|
|
972
|
-
};
|
|
973
|
-
}
|
|
974
|
-
i(
|
|
975
|
-
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
976
|
-
function(o) {
|
|
977
|
-
return o ? `${o} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
978
|
-
},
|
|
979
|
-
RangeError
|
|
980
|
-
), i(
|
|
981
|
-
"ERR_INVALID_ARG_TYPE",
|
|
982
|
-
function(o, r) {
|
|
983
|
-
return `The "${o}" argument must be of type number. Received type ${typeof r}`;
|
|
984
|
-
},
|
|
985
|
-
TypeError
|
|
986
|
-
), i(
|
|
987
|
-
"ERR_OUT_OF_RANGE",
|
|
988
|
-
function(o, r, n) {
|
|
989
|
-
let f = `The value of "${o}" is out of range.`, m = n;
|
|
990
|
-
return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? m = e(String(n)) : typeof n == "bigint" && (m = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (m = e(m)), m += "n"), f += ` It must be ${r}. Received ${m}`, f;
|
|
991
|
-
},
|
|
992
|
-
RangeError
|
|
993
|
-
);
|
|
994
|
-
function e(o) {
|
|
995
|
-
let r = "", n = o.length;
|
|
996
|
-
const f = o[0] === "-" ? 1 : 0;
|
|
997
|
-
for (; n >= f + 4; n -= 3)
|
|
998
|
-
r = `_${o.slice(n - 3, n)}${r}`;
|
|
999
|
-
return `${o.slice(0, n)}${r}`;
|
|
1000
|
-
}
|
|
1001
|
-
function t(o, r, n) {
|
|
1002
|
-
p(r, "offset"), (o[r] === void 0 || o[r + n] === void 0) && I(r, o.length - (n + 1));
|
|
1003
|
-
}
|
|
1004
|
-
function a(o, r, n, f, m, N) {
|
|
1005
|
-
if (o > n || o < r) {
|
|
1006
|
-
const V = typeof r == "bigint" ? "n" : "";
|
|
1007
|
-
let he;
|
|
1008
|
-
throw r === 0 || r === BigInt(0) ? he = `>= 0${V} and < 2${V} ** ${(N + 1) * 8}${V}` : he = `>= -(2${V} ** ${(N + 1) * 8 - 1}${V}) and < 2 ** ${(N + 1) * 8 - 1}${V}`, new se.ERR_OUT_OF_RANGE("value", he, o);
|
|
1009
|
-
}
|
|
1010
|
-
t(f, m, N);
|
|
1011
|
-
}
|
|
1012
|
-
function p(o, r) {
|
|
1013
|
-
if (typeof o != "number")
|
|
1014
|
-
throw new se.ERR_INVALID_ARG_TYPE(r, "number", o);
|
|
1015
|
-
}
|
|
1016
|
-
function I(o, r, n) {
|
|
1017
|
-
throw Math.floor(o) !== o ? (p(o, n), new se.ERR_OUT_OF_RANGE("offset", "an integer", o)) : r < 0 ? new se.ERR_BUFFER_OUT_OF_BOUNDS() : new se.ERR_OUT_OF_RANGE(
|
|
1018
|
-
"offset",
|
|
1019
|
-
`>= 0 and <= ${r}`,
|
|
1020
|
-
o
|
|
1021
|
-
);
|
|
1022
|
-
}
|
|
1023
|
-
const W = /[^+/0-9A-Za-z-_]/g;
|
|
1024
|
-
function le(o) {
|
|
1025
|
-
if (o = o.split("=")[0], o = o.trim().replace(W, ""), o.length < 2) return "";
|
|
1026
|
-
for (; o.length % 4 !== 0; )
|
|
1027
|
-
o = o + "=";
|
|
1028
|
-
return o;
|
|
1029
|
-
}
|
|
1030
|
-
function ye(o, r) {
|
|
1031
|
-
r = r || 1 / 0;
|
|
1032
|
-
let n;
|
|
1033
|
-
const f = o.length;
|
|
1034
|
-
let m = null;
|
|
1035
|
-
const N = [];
|
|
1036
|
-
for (let V = 0; V < f; ++V) {
|
|
1037
|
-
if (n = o.charCodeAt(V), n > 55295 && n < 57344) {
|
|
1038
|
-
if (!m) {
|
|
1039
|
-
if (n > 56319) {
|
|
1040
|
-
(r -= 3) > -1 && N.push(239, 191, 189);
|
|
1041
|
-
continue;
|
|
1042
|
-
} else if (V + 1 === f) {
|
|
1043
|
-
(r -= 3) > -1 && N.push(239, 191, 189);
|
|
1044
|
-
continue;
|
|
1045
|
-
}
|
|
1046
|
-
m = n;
|
|
1047
|
-
continue;
|
|
1048
|
-
}
|
|
1049
|
-
if (n < 56320) {
|
|
1050
|
-
(r -= 3) > -1 && N.push(239, 191, 189), m = n;
|
|
1051
|
-
continue;
|
|
1052
|
-
}
|
|
1053
|
-
n = (m - 55296 << 10 | n - 56320) + 65536;
|
|
1054
|
-
} else m && (r -= 3) > -1 && N.push(239, 191, 189);
|
|
1055
|
-
if (m = null, n < 128) {
|
|
1056
|
-
if ((r -= 1) < 0) break;
|
|
1057
|
-
N.push(n);
|
|
1058
|
-
} else if (n < 2048) {
|
|
1059
|
-
if ((r -= 2) < 0) break;
|
|
1060
|
-
N.push(
|
|
1061
|
-
n >> 6 | 192,
|
|
1062
|
-
n & 63 | 128
|
|
1063
|
-
);
|
|
1064
|
-
} else if (n < 65536) {
|
|
1065
|
-
if ((r -= 3) < 0) break;
|
|
1066
|
-
N.push(
|
|
1067
|
-
n >> 12 | 224,
|
|
1068
|
-
n >> 6 & 63 | 128,
|
|
1069
|
-
n & 63 | 128
|
|
1070
|
-
);
|
|
1071
|
-
} else if (n < 1114112) {
|
|
1072
|
-
if ((r -= 4) < 0) break;
|
|
1073
|
-
N.push(
|
|
1074
|
-
n >> 18 | 240,
|
|
1075
|
-
n >> 12 & 63 | 128,
|
|
1076
|
-
n >> 6 & 63 | 128,
|
|
1077
|
-
n & 63 | 128
|
|
1078
|
-
);
|
|
1079
|
-
} else
|
|
1080
|
-
throw new Error("Invalid code point");
|
|
1081
|
-
}
|
|
1082
|
-
return N;
|
|
1083
|
-
}
|
|
1084
|
-
function we(o) {
|
|
1085
|
-
const r = [];
|
|
1086
|
-
for (let n = 0; n < o.length; ++n)
|
|
1087
|
-
r.push(o.charCodeAt(n) & 255);
|
|
1088
|
-
return r;
|
|
1089
|
-
}
|
|
1090
|
-
function ve(o, r) {
|
|
1091
|
-
let n, f, m;
|
|
1092
|
-
const N = [];
|
|
1093
|
-
for (let V = 0; V < o.length && !((r -= 2) < 0); ++V)
|
|
1094
|
-
n = o.charCodeAt(V), f = n >> 8, m = n % 256, N.push(m), N.push(f);
|
|
1095
|
-
return N;
|
|
1096
|
-
}
|
|
1097
|
-
function be(o) {
|
|
1098
|
-
return O.toByteArray(le(o));
|
|
1099
|
-
}
|
|
1100
|
-
function Qe(o, r, n, f) {
|
|
1101
|
-
let m;
|
|
1102
|
-
for (m = 0; m < f && !(m + n >= r.length || m >= o.length); ++m)
|
|
1103
|
-
r[m + n] = o[m];
|
|
1104
|
-
return m;
|
|
1105
|
-
}
|
|
1106
|
-
function ke(o, r) {
|
|
1107
|
-
return o instanceof r || o != null && o.constructor != null && o.constructor.name != null && o.constructor.name === r.name;
|
|
1108
|
-
}
|
|
1109
|
-
function ar(o) {
|
|
1110
|
-
return o !== o;
|
|
1111
|
-
}
|
|
1112
|
-
const It = (function() {
|
|
1113
|
-
const o = "0123456789abcdef", r = new Array(256);
|
|
1114
|
-
for (let n = 0; n < 16; ++n) {
|
|
1115
|
-
const f = n * 16;
|
|
1116
|
-
for (let m = 0; m < 16; ++m)
|
|
1117
|
-
r[f + m] = o[n] + o[m];
|
|
1118
|
-
}
|
|
1119
|
-
return r;
|
|
1120
|
-
})();
|
|
1121
|
-
function Ve(o) {
|
|
1122
|
-
return typeof BigInt > "u" ? Tt : o;
|
|
1123
|
-
}
|
|
1124
|
-
function Tt() {
|
|
1125
|
-
throw new Error("BigInt not supported");
|
|
1126
|
-
}
|
|
1127
|
-
})(v);
|
|
1128
|
-
const d = v.Buffer;
|
|
1129
|
-
c.Blob = v.Blob, c.BlobOptions = v.BlobOptions, c.Buffer = v.Buffer, c.File = v.File, c.FileOptions = v.FileOptions, c.INSPECT_MAX_BYTES = v.INSPECT_MAX_BYTES, c.SlowBuffer = v.SlowBuffer, c.TranscodeEncoding = v.TranscodeEncoding, c.atob = v.atob, c.btoa = v.btoa, c.constants = v.constants, c.default = d, c.isAscii = v.isAscii, c.isUtf8 = v.isUtf8, c.kMaxLength = v.kMaxLength, c.kStringMaxLength = v.kStringMaxLength, c.resolveObjectURL = v.resolveObjectURL, c.transcode = v.transcode;
|
|
1130
|
-
})(fr)), fr;
|
|
1131
|
-
}
|
|
1132
|
-
var $e = { exports: {} }, qr;
|
|
1133
|
-
function bt() {
|
|
1134
|
-
if (qr) return $e.exports;
|
|
1135
|
-
qr = 1;
|
|
1136
|
-
var c = typeof Reflect == "object" ? Reflect : null, v = c && typeof c.apply == "function" ? c.apply : function(b, T, U) {
|
|
1137
|
-
return Function.prototype.apply.call(b, T, U);
|
|
1138
|
-
}, C;
|
|
1139
|
-
c && typeof c.ownKeys == "function" ? C = c.ownKeys : Object.getOwnPropertySymbols ? C = function(b) {
|
|
1140
|
-
return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b));
|
|
1141
|
-
} : C = function(b) {
|
|
1142
|
-
return Object.getOwnPropertyNames(b);
|
|
1143
|
-
};
|
|
1144
|
-
function q(w) {
|
|
1145
|
-
console && console.warn && console.warn(w);
|
|
1146
|
-
}
|
|
1147
|
-
var J = Number.isNaN || function(b) {
|
|
1148
|
-
return b !== b;
|
|
1149
|
-
};
|
|
1150
|
-
function h() {
|
|
1151
|
-
h.init.call(this);
|
|
1152
|
-
}
|
|
1153
|
-
$e.exports = h, $e.exports.once = d, h.EventEmitter = h, h.prototype._events = void 0, h.prototype._eventsCount = 0, h.prototype._maxListeners = void 0;
|
|
1154
|
-
var y = 10;
|
|
1155
|
-
function M(w) {
|
|
1156
|
-
if (typeof w != "function")
|
|
1157
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof w);
|
|
1158
|
-
}
|
|
1159
|
-
Object.defineProperty(h, "defaultMaxListeners", {
|
|
1160
|
-
enumerable: !0,
|
|
1161
|
-
get: function() {
|
|
1162
|
-
return y;
|
|
1163
|
-
},
|
|
1164
|
-
set: function(w) {
|
|
1165
|
-
if (typeof w != "number" || w < 0 || J(w))
|
|
1166
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + w + ".");
|
|
1167
|
-
y = w;
|
|
1168
|
-
}
|
|
1169
|
-
}), h.init = function() {
|
|
1170
|
-
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
1171
|
-
}, h.prototype.setMaxListeners = function(b) {
|
|
1172
|
-
if (typeof b != "number" || b < 0 || J(b))
|
|
1173
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + b + ".");
|
|
1174
|
-
return this._maxListeners = b, this;
|
|
1175
|
-
};
|
|
1176
|
-
function g(w) {
|
|
1177
|
-
return w._maxListeners === void 0 ? h.defaultMaxListeners : w._maxListeners;
|
|
1178
|
-
}
|
|
1179
|
-
h.prototype.getMaxListeners = function() {
|
|
1180
|
-
return g(this);
|
|
1181
|
-
}, h.prototype.emit = function(b) {
|
|
1182
|
-
for (var T = [], U = 1; U < arguments.length; U++) T.push(arguments[U]);
|
|
1183
|
-
var P = b === "error", K = this._events;
|
|
1184
|
-
if (K !== void 0)
|
|
1185
|
-
P = P && K.error === void 0;
|
|
1186
|
-
else if (!P)
|
|
1187
|
-
return !1;
|
|
1188
|
-
if (P) {
|
|
1189
|
-
var re;
|
|
1190
|
-
if (T.length > 0 && (re = T[0]), re instanceof Error)
|
|
1191
|
-
throw re;
|
|
1192
|
-
var fe = new Error("Unhandled error." + (re ? " (" + re.message + ")" : ""));
|
|
1193
|
-
throw fe.context = re, fe;
|
|
1194
|
-
}
|
|
1195
|
-
var R = K[b];
|
|
1196
|
-
if (R === void 0)
|
|
1197
|
-
return !1;
|
|
1198
|
-
if (typeof R == "function")
|
|
1199
|
-
v(R, this, T);
|
|
1200
|
-
else
|
|
1201
|
-
for (var ge = R.length, me = z(R, ge), U = 0; U < ge; ++U)
|
|
1202
|
-
v(me[U], this, T);
|
|
1203
|
-
return !0;
|
|
1204
|
-
};
|
|
1205
|
-
function j(w, b, T, U) {
|
|
1206
|
-
var P, K, re;
|
|
1207
|
-
if (M(T), K = w._events, K === void 0 ? (K = w._events = /* @__PURE__ */ Object.create(null), w._eventsCount = 0) : (K.newListener !== void 0 && (w.emit(
|
|
1208
|
-
"newListener",
|
|
1209
|
-
b,
|
|
1210
|
-
T.listener ? T.listener : T
|
|
1211
|
-
), K = w._events), re = K[b]), re === void 0)
|
|
1212
|
-
re = K[b] = T, ++w._eventsCount;
|
|
1213
|
-
else if (typeof re == "function" ? re = K[b] = U ? [T, re] : [re, T] : U ? re.unshift(T) : re.push(T), P = g(w), P > 0 && re.length > P && !re.warned) {
|
|
1214
|
-
re.warned = !0;
|
|
1215
|
-
var fe = new Error("Possible EventEmitter memory leak detected. " + re.length + " " + String(b) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1216
|
-
fe.name = "MaxListenersExceededWarning", fe.emitter = w, fe.type = b, fe.count = re.length, q(fe);
|
|
1217
|
-
}
|
|
1218
|
-
return w;
|
|
1219
|
-
}
|
|
1220
|
-
h.prototype.addListener = function(b, T) {
|
|
1221
|
-
return j(this, b, T, !1);
|
|
1222
|
-
}, h.prototype.on = h.prototype.addListener, h.prototype.prependListener = function(b, T) {
|
|
1223
|
-
return j(this, b, T, !0);
|
|
1224
|
-
};
|
|
1225
|
-
function l() {
|
|
1226
|
-
if (!this.fired)
|
|
1227
|
-
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
1228
|
-
}
|
|
1229
|
-
function x(w, b, T) {
|
|
1230
|
-
var U = { fired: !1, wrapFn: void 0, target: w, type: b, listener: T }, P = l.bind(U);
|
|
1231
|
-
return P.listener = T, U.wrapFn = P, P;
|
|
1232
|
-
}
|
|
1233
|
-
h.prototype.once = function(b, T) {
|
|
1234
|
-
return M(T), this.on(b, x(this, b, T)), this;
|
|
1235
|
-
}, h.prototype.prependOnceListener = function(b, T) {
|
|
1236
|
-
return M(T), this.prependListener(b, x(this, b, T)), this;
|
|
1237
|
-
}, h.prototype.removeListener = function(b, T) {
|
|
1238
|
-
var U, P, K, re, fe;
|
|
1239
|
-
if (M(T), P = this._events, P === void 0)
|
|
1240
|
-
return this;
|
|
1241
|
-
if (U = P[b], U === void 0)
|
|
1242
|
-
return this;
|
|
1243
|
-
if (U === T || U.listener === T)
|
|
1244
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete P[b], P.removeListener && this.emit("removeListener", b, U.listener || T));
|
|
1245
|
-
else if (typeof U != "function") {
|
|
1246
|
-
for (K = -1, re = U.length - 1; re >= 0; re--)
|
|
1247
|
-
if (U[re] === T || U[re].listener === T) {
|
|
1248
|
-
fe = U[re].listener, K = re;
|
|
1249
|
-
break;
|
|
1250
|
-
}
|
|
1251
|
-
if (K < 0)
|
|
1252
|
-
return this;
|
|
1253
|
-
K === 0 ? U.shift() : Q(U, K), U.length === 1 && (P[b] = U[0]), P.removeListener !== void 0 && this.emit("removeListener", b, fe || T);
|
|
1254
|
-
}
|
|
1255
|
-
return this;
|
|
1256
|
-
}, h.prototype.off = h.prototype.removeListener, h.prototype.removeAllListeners = function(b) {
|
|
1257
|
-
var T, U, P;
|
|
1258
|
-
if (U = this._events, U === void 0)
|
|
1259
|
-
return this;
|
|
1260
|
-
if (U.removeListener === void 0)
|
|
1261
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : U[b] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete U[b]), this;
|
|
1262
|
-
if (arguments.length === 0) {
|
|
1263
|
-
var K = Object.keys(U), re;
|
|
1264
|
-
for (P = 0; P < K.length; ++P)
|
|
1265
|
-
re = K[P], re !== "removeListener" && this.removeAllListeners(re);
|
|
1266
|
-
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
1267
|
-
}
|
|
1268
|
-
if (T = U[b], typeof T == "function")
|
|
1269
|
-
this.removeListener(b, T);
|
|
1270
|
-
else if (T !== void 0)
|
|
1271
|
-
for (P = T.length - 1; P >= 0; P--)
|
|
1272
|
-
this.removeListener(b, T[P]);
|
|
1273
|
-
return this;
|
|
1274
|
-
};
|
|
1275
|
-
function D(w, b, T) {
|
|
1276
|
-
var U = w._events;
|
|
1277
|
-
if (U === void 0)
|
|
1278
|
-
return [];
|
|
1279
|
-
var P = U[b];
|
|
1280
|
-
return P === void 0 ? [] : typeof P == "function" ? T ? [P.listener || P] : [P] : T ? X(P) : z(P, P.length);
|
|
1281
|
-
}
|
|
1282
|
-
h.prototype.listeners = function(b) {
|
|
1283
|
-
return D(this, b, !0);
|
|
1284
|
-
}, h.prototype.rawListeners = function(b) {
|
|
1285
|
-
return D(this, b, !1);
|
|
1286
|
-
}, h.listenerCount = function(w, b) {
|
|
1287
|
-
return typeof w.listenerCount == "function" ? w.listenerCount(b) : Z.call(w, b);
|
|
1288
|
-
}, h.prototype.listenerCount = Z;
|
|
1289
|
-
function Z(w) {
|
|
1290
|
-
var b = this._events;
|
|
1291
|
-
if (b !== void 0) {
|
|
1292
|
-
var T = b[w];
|
|
1293
|
-
if (typeof T == "function")
|
|
1294
|
-
return 1;
|
|
1295
|
-
if (T !== void 0)
|
|
1296
|
-
return T.length;
|
|
1297
|
-
}
|
|
1298
|
-
return 0;
|
|
1299
|
-
}
|
|
1300
|
-
h.prototype.eventNames = function() {
|
|
1301
|
-
return this._eventsCount > 0 ? C(this._events) : [];
|
|
1302
|
-
};
|
|
1303
|
-
function z(w, b) {
|
|
1304
|
-
for (var T = new Array(b), U = 0; U < b; ++U)
|
|
1305
|
-
T[U] = w[U];
|
|
1306
|
-
return T;
|
|
1307
|
-
}
|
|
1308
|
-
function Q(w, b) {
|
|
1309
|
-
for (; b + 1 < w.length; b++)
|
|
1310
|
-
w[b] = w[b + 1];
|
|
1311
|
-
w.pop();
|
|
1312
|
-
}
|
|
1313
|
-
function X(w) {
|
|
1314
|
-
for (var b = new Array(w.length), T = 0; T < b.length; ++T)
|
|
1315
|
-
b[T] = w[T].listener || w[T];
|
|
1316
|
-
return b;
|
|
1317
|
-
}
|
|
1318
|
-
function d(w, b) {
|
|
1319
|
-
return new Promise(function(T, U) {
|
|
1320
|
-
function P(re) {
|
|
1321
|
-
w.removeListener(b, K), U(re);
|
|
1322
|
-
}
|
|
1323
|
-
function K() {
|
|
1324
|
-
typeof w.removeListener == "function" && w.removeListener("error", P), T([].slice.call(arguments));
|
|
1325
|
-
}
|
|
1326
|
-
O(w, b, K, { once: !0 }), b !== "error" && S(w, P, { once: !0 });
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
function S(w, b, T) {
|
|
1330
|
-
typeof w.on == "function" && O(w, "error", b, T);
|
|
1331
|
-
}
|
|
1332
|
-
function O(w, b, T, U) {
|
|
1333
|
-
if (typeof w.on == "function")
|
|
1334
|
-
U.once ? w.once(b, T) : w.on(b, T);
|
|
1335
|
-
else if (typeof w.addEventListener == "function")
|
|
1336
|
-
w.addEventListener(b, function P(K) {
|
|
1337
|
-
U.once && w.removeEventListener(b, P), T(K);
|
|
1338
|
-
});
|
|
1339
|
-
else
|
|
1340
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof w);
|
|
1341
|
-
}
|
|
1342
|
-
return $e.exports;
|
|
1343
|
-
}
|
|
1344
|
-
var er = { exports: {} }, sr = {}, lr = {}, xr;
|
|
1345
|
-
function Ft() {
|
|
1346
|
-
return xr || (xr = 1, (function(c) {
|
|
1347
|
-
var v = /* @__PURE__ */ Lt(), C = Ot(), q = /* @__PURE__ */ Mt(), J = /* @__PURE__ */ pt();
|
|
1348
|
-
function h(G) {
|
|
1349
|
-
return G.call.bind(G);
|
|
1350
|
-
}
|
|
1351
|
-
var y = typeof BigInt < "u", M = typeof Symbol < "u", g = h(Object.prototype.toString), j = h(Number.prototype.valueOf), l = h(String.prototype.valueOf), x = h(Boolean.prototype.valueOf);
|
|
1352
|
-
if (y)
|
|
1353
|
-
var D = h(BigInt.prototype.valueOf);
|
|
1354
|
-
if (M)
|
|
1355
|
-
var Z = h(Symbol.prototype.valueOf);
|
|
1356
|
-
function z(G, Ce) {
|
|
1357
|
-
if (typeof G != "object")
|
|
1358
|
-
return !1;
|
|
1359
|
-
try {
|
|
1360
|
-
return Ce(G), !0;
|
|
1361
|
-
} catch {
|
|
1362
|
-
return !1;
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
c.isArgumentsObject = v, c.isGeneratorFunction = C, c.isTypedArray = J;
|
|
1366
|
-
function Q(G) {
|
|
1367
|
-
return typeof Promise < "u" && G instanceof Promise || G !== null && typeof G == "object" && typeof G.then == "function" && typeof G.catch == "function";
|
|
1368
|
-
}
|
|
1369
|
-
c.isPromise = Q;
|
|
1370
|
-
function X(G) {
|
|
1371
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(G) : J(G) || F(G);
|
|
1372
|
-
}
|
|
1373
|
-
c.isArrayBufferView = X;
|
|
1374
|
-
function d(G) {
|
|
1375
|
-
return q(G) === "Uint8Array";
|
|
1376
|
-
}
|
|
1377
|
-
c.isUint8Array = d;
|
|
1378
|
-
function S(G) {
|
|
1379
|
-
return q(G) === "Uint8ClampedArray";
|
|
1380
|
-
}
|
|
1381
|
-
c.isUint8ClampedArray = S;
|
|
1382
|
-
function O(G) {
|
|
1383
|
-
return q(G) === "Uint16Array";
|
|
1384
|
-
}
|
|
1385
|
-
c.isUint16Array = O;
|
|
1386
|
-
function w(G) {
|
|
1387
|
-
return q(G) === "Uint32Array";
|
|
1388
|
-
}
|
|
1389
|
-
c.isUint32Array = w;
|
|
1390
|
-
function b(G) {
|
|
1391
|
-
return q(G) === "Int8Array";
|
|
1392
|
-
}
|
|
1393
|
-
c.isInt8Array = b;
|
|
1394
|
-
function T(G) {
|
|
1395
|
-
return q(G) === "Int16Array";
|
|
1396
|
-
}
|
|
1397
|
-
c.isInt16Array = T;
|
|
1398
|
-
function U(G) {
|
|
1399
|
-
return q(G) === "Int32Array";
|
|
1400
|
-
}
|
|
1401
|
-
c.isInt32Array = U;
|
|
1402
|
-
function P(G) {
|
|
1403
|
-
return q(G) === "Float32Array";
|
|
1404
|
-
}
|
|
1405
|
-
c.isFloat32Array = P;
|
|
1406
|
-
function K(G) {
|
|
1407
|
-
return q(G) === "Float64Array";
|
|
1408
|
-
}
|
|
1409
|
-
c.isFloat64Array = K;
|
|
1410
|
-
function re(G) {
|
|
1411
|
-
return q(G) === "BigInt64Array";
|
|
1412
|
-
}
|
|
1413
|
-
c.isBigInt64Array = re;
|
|
1414
|
-
function fe(G) {
|
|
1415
|
-
return q(G) === "BigUint64Array";
|
|
1416
|
-
}
|
|
1417
|
-
c.isBigUint64Array = fe;
|
|
1418
|
-
function R(G) {
|
|
1419
|
-
return g(G) === "[object Map]";
|
|
1420
|
-
}
|
|
1421
|
-
R.working = typeof Map < "u" && R(/* @__PURE__ */ new Map());
|
|
1422
|
-
function ge(G) {
|
|
1423
|
-
return typeof Map > "u" ? !1 : R.working ? R(G) : G instanceof Map;
|
|
1424
|
-
}
|
|
1425
|
-
c.isMap = ge;
|
|
1426
|
-
function me(G) {
|
|
1427
|
-
return g(G) === "[object Set]";
|
|
1428
|
-
}
|
|
1429
|
-
me.working = typeof Set < "u" && me(/* @__PURE__ */ new Set());
|
|
1430
|
-
function Ee(G) {
|
|
1431
|
-
return typeof Set > "u" ? !1 : me.working ? me(G) : G instanceof Set;
|
|
1432
|
-
}
|
|
1433
|
-
c.isSet = Ee;
|
|
1434
|
-
function Te(G) {
|
|
1435
|
-
return g(G) === "[object WeakMap]";
|
|
1436
|
-
}
|
|
1437
|
-
Te.working = typeof WeakMap < "u" && Te(/* @__PURE__ */ new WeakMap());
|
|
1438
|
-
function Ue(G) {
|
|
1439
|
-
return typeof WeakMap > "u" ? !1 : Te.working ? Te(G) : G instanceof WeakMap;
|
|
1440
|
-
}
|
|
1441
|
-
c.isWeakMap = Ue;
|
|
1442
|
-
function Re(G) {
|
|
1443
|
-
return g(G) === "[object WeakSet]";
|
|
1444
|
-
}
|
|
1445
|
-
Re.working = typeof WeakSet < "u" && Re(/* @__PURE__ */ new WeakSet());
|
|
1446
|
-
function Ae(G) {
|
|
1447
|
-
return Re(G);
|
|
1448
|
-
}
|
|
1449
|
-
c.isWeakSet = Ae;
|
|
1450
|
-
function Ne(G) {
|
|
1451
|
-
return g(G) === "[object ArrayBuffer]";
|
|
1452
|
-
}
|
|
1453
|
-
Ne.working = typeof ArrayBuffer < "u" && Ne(new ArrayBuffer());
|
|
1454
|
-
function Pe(G) {
|
|
1455
|
-
return typeof ArrayBuffer > "u" ? !1 : Ne.working ? Ne(G) : G instanceof ArrayBuffer;
|
|
1456
|
-
}
|
|
1457
|
-
c.isArrayBuffer = Pe;
|
|
1458
|
-
function L(G) {
|
|
1459
|
-
return g(G) === "[object DataView]";
|
|
1460
|
-
}
|
|
1461
|
-
L.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && L(new DataView(new ArrayBuffer(1), 0, 1));
|
|
1462
|
-
function F(G) {
|
|
1463
|
-
return typeof DataView > "u" ? !1 : L.working ? L(G) : G instanceof DataView;
|
|
1464
|
-
}
|
|
1465
|
-
c.isDataView = F;
|
|
1466
|
-
var H = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
1467
|
-
function ue(G) {
|
|
1468
|
-
return g(G) === "[object SharedArrayBuffer]";
|
|
1469
|
-
}
|
|
1470
|
-
function E(G) {
|
|
1471
|
-
return typeof H > "u" ? !1 : (typeof ue.working > "u" && (ue.working = ue(new H())), ue.working ? ue(G) : G instanceof H);
|
|
1472
|
-
}
|
|
1473
|
-
c.isSharedArrayBuffer = E;
|
|
1474
|
-
function _(G) {
|
|
1475
|
-
return g(G) === "[object AsyncFunction]";
|
|
1476
|
-
}
|
|
1477
|
-
c.isAsyncFunction = _;
|
|
1478
|
-
function k(G) {
|
|
1479
|
-
return g(G) === "[object Map Iterator]";
|
|
1480
|
-
}
|
|
1481
|
-
c.isMapIterator = k;
|
|
1482
|
-
function $(G) {
|
|
1483
|
-
return g(G) === "[object Set Iterator]";
|
|
1484
|
-
}
|
|
1485
|
-
c.isSetIterator = $;
|
|
1486
|
-
function ie(G) {
|
|
1487
|
-
return g(G) === "[object Generator]";
|
|
1488
|
-
}
|
|
1489
|
-
c.isGeneratorObject = ie;
|
|
1490
|
-
function u(G) {
|
|
1491
|
-
return g(G) === "[object WebAssembly.Module]";
|
|
1492
|
-
}
|
|
1493
|
-
c.isWebAssemblyCompiledModule = u;
|
|
1494
|
-
function s(G) {
|
|
1495
|
-
return z(G, j);
|
|
1496
|
-
}
|
|
1497
|
-
c.isNumberObject = s;
|
|
1498
|
-
function Y(G) {
|
|
1499
|
-
return z(G, l);
|
|
1500
|
-
}
|
|
1501
|
-
c.isStringObject = Y;
|
|
1502
|
-
function te(G) {
|
|
1503
|
-
return z(G, x);
|
|
1504
|
-
}
|
|
1505
|
-
c.isBooleanObject = te;
|
|
1506
|
-
function de(G) {
|
|
1507
|
-
return y && z(G, D);
|
|
1508
|
-
}
|
|
1509
|
-
c.isBigIntObject = de;
|
|
1510
|
-
function ae(G) {
|
|
1511
|
-
return M && z(G, Z);
|
|
1512
|
-
}
|
|
1513
|
-
c.isSymbolObject = ae;
|
|
1514
|
-
function ce(G) {
|
|
1515
|
-
return s(G) || Y(G) || te(G) || de(G) || ae(G);
|
|
1516
|
-
}
|
|
1517
|
-
c.isBoxedPrimitive = ce;
|
|
1518
|
-
function je(G) {
|
|
1519
|
-
return typeof Uint8Array < "u" && (Pe(G) || E(G));
|
|
1520
|
-
}
|
|
1521
|
-
c.isAnyArrayBuffer = je, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(G) {
|
|
1522
|
-
Object.defineProperty(c, G, {
|
|
1523
|
-
enumerable: !1,
|
|
1524
|
-
value: function() {
|
|
1525
|
-
throw new Error(G + " is not supported in userland");
|
|
1526
|
-
}
|
|
1527
|
-
});
|
|
1528
|
-
});
|
|
1529
|
-
})(lr)), lr;
|
|
1530
|
-
}
|
|
1531
|
-
var jr = {}, or = {};
|
|
1532
|
-
or.byteLength = Gt;
|
|
1533
|
-
or.toByteArray = Yt;
|
|
1534
|
-
or.fromByteArray = Xt;
|
|
1535
|
-
var Fe = [], De = [], Wt = typeof Uint8Array < "u" ? Uint8Array : Array, cr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1536
|
-
for (var Xe = 0, Ht = cr.length; Xe < Ht; ++Xe)
|
|
1537
|
-
Fe[Xe] = cr[Xe], De[cr.charCodeAt(Xe)] = Xe;
|
|
1538
|
-
De[45] = 62;
|
|
1539
|
-
De[95] = 63;
|
|
1540
|
-
function mt(c) {
|
|
1541
|
-
var v = c.length;
|
|
1542
|
-
if (v % 4 > 0)
|
|
1543
|
-
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
1544
|
-
var C = c.indexOf("=");
|
|
1545
|
-
C === -1 && (C = v);
|
|
1546
|
-
var q = C === v ? 0 : 4 - C % 4;
|
|
1547
|
-
return [C, q];
|
|
1548
|
-
}
|
|
1549
|
-
function Gt(c) {
|
|
1550
|
-
var v = mt(c), C = v[0], q = v[1];
|
|
1551
|
-
return (C + q) * 3 / 4 - q;
|
|
1552
|
-
}
|
|
1553
|
-
function Vt(c, v, C) {
|
|
1554
|
-
return (v + C) * 3 / 4 - C;
|
|
1555
|
-
}
|
|
1556
|
-
function Yt(c) {
|
|
1557
|
-
var v, C = mt(c), q = C[0], J = C[1], h = new Wt(Vt(c, q, J)), y = 0, M = J > 0 ? q - 4 : q, g;
|
|
1558
|
-
for (g = 0; g < M; g += 4)
|
|
1559
|
-
v = De[c.charCodeAt(g)] << 18 | De[c.charCodeAt(g + 1)] << 12 | De[c.charCodeAt(g + 2)] << 6 | De[c.charCodeAt(g + 3)], h[y++] = v >> 16 & 255, h[y++] = v >> 8 & 255, h[y++] = v & 255;
|
|
1560
|
-
return J === 2 && (v = De[c.charCodeAt(g)] << 2 | De[c.charCodeAt(g + 1)] >> 4, h[y++] = v & 255), J === 1 && (v = De[c.charCodeAt(g)] << 10 | De[c.charCodeAt(g + 1)] << 4 | De[c.charCodeAt(g + 2)] >> 2, h[y++] = v >> 8 & 255, h[y++] = v & 255), h;
|
|
1561
|
-
}
|
|
1562
|
-
function zt(c) {
|
|
1563
|
-
return Fe[c >> 18 & 63] + Fe[c >> 12 & 63] + Fe[c >> 6 & 63] + Fe[c & 63];
|
|
1564
|
-
}
|
|
1565
|
-
function Jt(c, v, C) {
|
|
1566
|
-
for (var q, J = [], h = v; h < C; h += 3)
|
|
1567
|
-
q = (c[h] << 16 & 16711680) + (c[h + 1] << 8 & 65280) + (c[h + 2] & 255), J.push(zt(q));
|
|
1568
|
-
return J.join("");
|
|
1569
|
-
}
|
|
1570
|
-
function Xt(c) {
|
|
1571
|
-
for (var v, C = c.length, q = C % 3, J = [], h = 16383, y = 0, M = C - q; y < M; y += h)
|
|
1572
|
-
J.push(Jt(c, y, y + h > M ? M : y + h));
|
|
1573
|
-
return q === 1 ? (v = c[C - 1], J.push(
|
|
1574
|
-
Fe[v >> 2] + Fe[v << 4 & 63] + "=="
|
|
1575
|
-
)) : q === 2 && (v = (c[C - 2] << 8) + c[C - 1], J.push(
|
|
1576
|
-
Fe[v >> 10] + Fe[v >> 4 & 63] + Fe[v << 2 & 63] + "="
|
|
1577
|
-
)), J.join("");
|
|
1578
|
-
}
|
|
1579
|
-
var Cr = {};
|
|
1580
|
-
Cr.read = function(c, v, C, q, J) {
|
|
1581
|
-
var h, y, M = J * 8 - q - 1, g = (1 << M) - 1, j = g >> 1, l = -7, x = C ? J - 1 : 0, D = C ? -1 : 1, Z = c[v + x];
|
|
1582
|
-
for (x += D, h = Z & (1 << -l) - 1, Z >>= -l, l += M; l > 0; h = h * 256 + c[v + x], x += D, l -= 8)
|
|
1583
|
-
;
|
|
1584
|
-
for (y = h & (1 << -l) - 1, h >>= -l, l += q; l > 0; y = y * 256 + c[v + x], x += D, l -= 8)
|
|
1585
|
-
;
|
|
1586
|
-
if (h === 0)
|
|
1587
|
-
h = 1 - j;
|
|
1588
|
-
else {
|
|
1589
|
-
if (h === g)
|
|
1590
|
-
return y ? NaN : (Z ? -1 : 1) * (1 / 0);
|
|
1591
|
-
y = y + Math.pow(2, q), h = h - j;
|
|
1592
|
-
}
|
|
1593
|
-
return (Z ? -1 : 1) * y * Math.pow(2, h - q);
|
|
1594
|
-
};
|
|
1595
|
-
Cr.write = function(c, v, C, q, J, h) {
|
|
1596
|
-
var y, M, g, j = h * 8 - J - 1, l = (1 << j) - 1, x = l >> 1, D = J === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, Z = q ? 0 : h - 1, z = q ? 1 : -1, Q = v < 0 || v === 0 && 1 / v < 0 ? 1 : 0;
|
|
1597
|
-
for (v = Math.abs(v), isNaN(v) || v === 1 / 0 ? (M = isNaN(v) ? 1 : 0, y = l) : (y = Math.floor(Math.log(v) / Math.LN2), v * (g = Math.pow(2, -y)) < 1 && (y--, g *= 2), y + x >= 1 ? v += D / g : v += D * Math.pow(2, 1 - x), v * g >= 2 && (y++, g /= 2), y + x >= l ? (M = 0, y = l) : y + x >= 1 ? (M = (v * g - 1) * Math.pow(2, J), y = y + x) : (M = v * Math.pow(2, x - 1) * Math.pow(2, J), y = 0)); J >= 8; c[C + Z] = M & 255, Z += z, M /= 256, J -= 8)
|
|
1598
|
-
;
|
|
1599
|
-
for (y = y << J | M, j += J; j > 0; c[C + Z] = y & 255, Z += z, y /= 256, j -= 8)
|
|
1600
|
-
;
|
|
1601
|
-
c[C + Z - z] |= Q * 128;
|
|
1602
|
-
};
|
|
1603
|
-
(function(c) {
|
|
1604
|
-
const v = or, C = Cr, q = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
1605
|
-
c.Buffer = l, c.SlowBuffer = b, c.INSPECT_MAX_BYTES = 50;
|
|
1606
|
-
const J = 2147483647;
|
|
1607
|
-
c.kMaxLength = J;
|
|
1608
|
-
const { Uint8Array: h, ArrayBuffer: y, SharedArrayBuffer: M } = globalThis;
|
|
1609
|
-
l.TYPED_ARRAY_SUPPORT = g(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
1610
|
-
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
1611
|
-
);
|
|
1612
|
-
function g() {
|
|
1613
|
-
try {
|
|
1614
|
-
const i = new h(1), e = { foo: function() {
|
|
1615
|
-
return 42;
|
|
1616
|
-
} };
|
|
1617
|
-
return Object.setPrototypeOf(e, h.prototype), Object.setPrototypeOf(i, e), i.foo() === 42;
|
|
1618
|
-
} catch {
|
|
1619
|
-
return !1;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
Object.defineProperty(l.prototype, "parent", {
|
|
1623
|
-
enumerable: !0,
|
|
1624
|
-
get: function() {
|
|
1625
|
-
if (l.isBuffer(this))
|
|
1626
|
-
return this.buffer;
|
|
1627
|
-
}
|
|
1628
|
-
}), Object.defineProperty(l.prototype, "offset", {
|
|
1629
|
-
enumerable: !0,
|
|
1630
|
-
get: function() {
|
|
1631
|
-
if (l.isBuffer(this))
|
|
1632
|
-
return this.byteOffset;
|
|
1633
|
-
}
|
|
1634
|
-
});
|
|
1635
|
-
function j(i) {
|
|
1636
|
-
if (i > J)
|
|
1637
|
-
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
1638
|
-
const e = new h(i);
|
|
1639
|
-
return Object.setPrototypeOf(e, l.prototype), e;
|
|
1640
|
-
}
|
|
1641
|
-
function l(i, e, t) {
|
|
1642
|
-
if (typeof i == "number") {
|
|
1643
|
-
if (typeof e == "string")
|
|
1644
|
-
throw new TypeError(
|
|
1645
|
-
'The "string" argument must be of type string. Received type number'
|
|
1646
|
-
);
|
|
1647
|
-
return z(i);
|
|
1648
|
-
}
|
|
1649
|
-
return x(i, e, t);
|
|
1650
|
-
}
|
|
1651
|
-
l.poolSize = 8192;
|
|
1652
|
-
function x(i, e, t) {
|
|
1653
|
-
if (typeof i == "string")
|
|
1654
|
-
return Q(i, e);
|
|
1655
|
-
if (y.isView(i))
|
|
1656
|
-
return d(i);
|
|
1657
|
-
if (i == null)
|
|
1658
|
-
throw new TypeError(
|
|
1659
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
1660
|
-
);
|
|
1661
|
-
if (A(i, y) || i && A(i.buffer, y) || typeof M < "u" && (A(i, M) || i && A(i.buffer, M)))
|
|
1662
|
-
return S(i, e, t);
|
|
1663
|
-
if (typeof i == "number")
|
|
1664
|
-
throw new TypeError(
|
|
1665
|
-
'The "value" argument must not be of type number. Received type number'
|
|
1666
|
-
);
|
|
1667
|
-
const a = i.valueOf && i.valueOf();
|
|
1668
|
-
if (a != null && a !== i)
|
|
1669
|
-
return l.from(a, e, t);
|
|
1670
|
-
const p = O(i);
|
|
1671
|
-
if (p) return p;
|
|
1672
|
-
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
|
|
1673
|
-
return l.from(i[Symbol.toPrimitive]("string"), e, t);
|
|
1674
|
-
throw new TypeError(
|
|
1675
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
1676
|
-
);
|
|
1677
|
-
}
|
|
1678
|
-
l.from = function(i, e, t) {
|
|
1679
|
-
return x(i, e, t);
|
|
1680
|
-
}, Object.setPrototypeOf(l.prototype, h.prototype), Object.setPrototypeOf(l, h);
|
|
1681
|
-
function D(i) {
|
|
1682
|
-
if (typeof i != "number")
|
|
1683
|
-
throw new TypeError('"size" argument must be of type number');
|
|
1684
|
-
if (i < 0)
|
|
1685
|
-
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
1686
|
-
}
|
|
1687
|
-
function Z(i, e, t) {
|
|
1688
|
-
return D(i), i <= 0 ? j(i) : e !== void 0 ? typeof t == "string" ? j(i).fill(e, t) : j(i).fill(e) : j(i);
|
|
1689
|
-
}
|
|
1690
|
-
l.alloc = function(i, e, t) {
|
|
1691
|
-
return Z(i, e, t);
|
|
1692
|
-
};
|
|
1693
|
-
function z(i) {
|
|
1694
|
-
return D(i), j(i < 0 ? 0 : w(i) | 0);
|
|
1695
|
-
}
|
|
1696
|
-
l.allocUnsafe = function(i) {
|
|
1697
|
-
return z(i);
|
|
1698
|
-
}, l.allocUnsafeSlow = function(i) {
|
|
1699
|
-
return z(i);
|
|
1700
|
-
};
|
|
1701
|
-
function Q(i, e) {
|
|
1702
|
-
if ((typeof e != "string" || e === "") && (e = "utf8"), !l.isEncoding(e))
|
|
1703
|
-
throw new TypeError("Unknown encoding: " + e);
|
|
1704
|
-
const t = T(i, e) | 0;
|
|
1705
|
-
let a = j(t);
|
|
1706
|
-
const p = a.write(i, e);
|
|
1707
|
-
return p !== t && (a = a.slice(0, p)), a;
|
|
1708
|
-
}
|
|
1709
|
-
function X(i) {
|
|
1710
|
-
const e = i.length < 0 ? 0 : w(i.length) | 0, t = j(e);
|
|
1711
|
-
for (let a = 0; a < e; a += 1)
|
|
1712
|
-
t[a] = i[a] & 255;
|
|
1713
|
-
return t;
|
|
1714
|
-
}
|
|
1715
|
-
function d(i) {
|
|
1716
|
-
if (A(i, h)) {
|
|
1717
|
-
const e = new h(i);
|
|
1718
|
-
return S(e.buffer, e.byteOffset, e.byteLength);
|
|
1719
|
-
}
|
|
1720
|
-
return X(i);
|
|
1721
|
-
}
|
|
1722
|
-
function S(i, e, t) {
|
|
1723
|
-
if (e < 0 || i.byteLength < e)
|
|
1724
|
-
throw new RangeError('"offset" is outside of buffer bounds');
|
|
1725
|
-
if (i.byteLength < e + (t || 0))
|
|
1726
|
-
throw new RangeError('"length" is outside of buffer bounds');
|
|
1727
|
-
let a;
|
|
1728
|
-
return e === void 0 && t === void 0 ? a = new h(i) : t === void 0 ? a = new h(i, e) : a = new h(i, e, t), Object.setPrototypeOf(a, l.prototype), a;
|
|
1729
|
-
}
|
|
1730
|
-
function O(i) {
|
|
1731
|
-
if (l.isBuffer(i)) {
|
|
1732
|
-
const e = w(i.length) | 0, t = j(e);
|
|
1733
|
-
return t.length === 0 || i.copy(t, 0, 0, e), t;
|
|
1734
|
-
}
|
|
1735
|
-
if (i.length !== void 0)
|
|
1736
|
-
return typeof i.length != "number" || ee(i.length) ? j(0) : X(i);
|
|
1737
|
-
if (i.type === "Buffer" && Array.isArray(i.data))
|
|
1738
|
-
return X(i.data);
|
|
1739
|
-
}
|
|
1740
|
-
function w(i) {
|
|
1741
|
-
if (i >= J)
|
|
1742
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + J.toString(16) + " bytes");
|
|
1743
|
-
return i | 0;
|
|
1744
|
-
}
|
|
1745
|
-
function b(i) {
|
|
1746
|
-
return +i != i && (i = 0), l.alloc(+i);
|
|
1747
|
-
}
|
|
1748
|
-
l.isBuffer = function(e) {
|
|
1749
|
-
return e != null && e._isBuffer === !0 && e !== l.prototype;
|
|
1750
|
-
}, l.compare = function(e, t) {
|
|
1751
|
-
if (A(e, h) && (e = l.from(e, e.offset, e.byteLength)), A(t, h) && (t = l.from(t, t.offset, t.byteLength)), !l.isBuffer(e) || !l.isBuffer(t))
|
|
1752
|
-
throw new TypeError(
|
|
1753
|
-
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
1754
|
-
);
|
|
1755
|
-
if (e === t) return 0;
|
|
1756
|
-
let a = e.length, p = t.length;
|
|
1757
|
-
for (let I = 0, W = Math.min(a, p); I < W; ++I)
|
|
1758
|
-
if (e[I] !== t[I]) {
|
|
1759
|
-
a = e[I], p = t[I];
|
|
1760
|
-
break;
|
|
1761
|
-
}
|
|
1762
|
-
return a < p ? -1 : p < a ? 1 : 0;
|
|
1763
|
-
}, l.isEncoding = function(e) {
|
|
1764
|
-
switch (String(e).toLowerCase()) {
|
|
1765
|
-
case "hex":
|
|
1766
|
-
case "utf8":
|
|
1767
|
-
case "utf-8":
|
|
1768
|
-
case "ascii":
|
|
1769
|
-
case "latin1":
|
|
1770
|
-
case "binary":
|
|
1771
|
-
case "base64":
|
|
1772
|
-
case "ucs2":
|
|
1773
|
-
case "ucs-2":
|
|
1774
|
-
case "utf16le":
|
|
1775
|
-
case "utf-16le":
|
|
1776
|
-
return !0;
|
|
1777
|
-
default:
|
|
1778
|
-
return !1;
|
|
1779
|
-
}
|
|
1780
|
-
}, l.concat = function(e, t) {
|
|
1781
|
-
if (!Array.isArray(e))
|
|
1782
|
-
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
1783
|
-
if (e.length === 0)
|
|
1784
|
-
return l.alloc(0);
|
|
1785
|
-
let a;
|
|
1786
|
-
if (t === void 0)
|
|
1787
|
-
for (t = 0, a = 0; a < e.length; ++a)
|
|
1788
|
-
t += e[a].length;
|
|
1789
|
-
const p = l.allocUnsafe(t);
|
|
1790
|
-
let I = 0;
|
|
1791
|
-
for (a = 0; a < e.length; ++a) {
|
|
1792
|
-
let W = e[a];
|
|
1793
|
-
if (A(W, h))
|
|
1794
|
-
I + W.length > p.length ? (l.isBuffer(W) || (W = l.from(W)), W.copy(p, I)) : h.prototype.set.call(
|
|
1795
|
-
p,
|
|
1796
|
-
W,
|
|
1797
|
-
I
|
|
1798
|
-
);
|
|
1799
|
-
else if (l.isBuffer(W))
|
|
1800
|
-
W.copy(p, I);
|
|
1801
|
-
else
|
|
1802
|
-
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
1803
|
-
I += W.length;
|
|
1804
|
-
}
|
|
1805
|
-
return p;
|
|
1806
|
-
};
|
|
1807
|
-
function T(i, e) {
|
|
1808
|
-
if (l.isBuffer(i))
|
|
1809
|
-
return i.length;
|
|
1810
|
-
if (y.isView(i) || A(i, y))
|
|
1811
|
-
return i.byteLength;
|
|
1812
|
-
if (typeof i != "string")
|
|
1813
|
-
throw new TypeError(
|
|
1814
|
-
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof i
|
|
1815
|
-
);
|
|
1816
|
-
const t = i.length, a = arguments.length > 2 && arguments[2] === !0;
|
|
1817
|
-
if (!a && t === 0) return 0;
|
|
1818
|
-
let p = !1;
|
|
1819
|
-
for (; ; )
|
|
1820
|
-
switch (e) {
|
|
1821
|
-
case "ascii":
|
|
1822
|
-
case "latin1":
|
|
1823
|
-
case "binary":
|
|
1824
|
-
return t;
|
|
1825
|
-
case "utf8":
|
|
1826
|
-
case "utf-8":
|
|
1827
|
-
return Ce(i).length;
|
|
1828
|
-
case "ucs2":
|
|
1829
|
-
case "ucs-2":
|
|
1830
|
-
case "utf16le":
|
|
1831
|
-
case "utf-16le":
|
|
1832
|
-
return t * 2;
|
|
1833
|
-
case "hex":
|
|
1834
|
-
return t >>> 1;
|
|
1835
|
-
case "base64":
|
|
1836
|
-
return Ie(i).length;
|
|
1837
|
-
default:
|
|
1838
|
-
if (p)
|
|
1839
|
-
return a ? -1 : Ce(i).length;
|
|
1840
|
-
e = ("" + e).toLowerCase(), p = !0;
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
l.byteLength = T;
|
|
1844
|
-
function U(i, e, t) {
|
|
1845
|
-
let a = !1;
|
|
1846
|
-
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
|
|
1847
|
-
return "";
|
|
1848
|
-
for (i || (i = "utf8"); ; )
|
|
1849
|
-
switch (i) {
|
|
1850
|
-
case "hex":
|
|
1851
|
-
return L(this, e, t);
|
|
1852
|
-
case "utf8":
|
|
1853
|
-
case "utf-8":
|
|
1854
|
-
return Ue(this, e, t);
|
|
1855
|
-
case "ascii":
|
|
1856
|
-
return Ne(this, e, t);
|
|
1857
|
-
case "latin1":
|
|
1858
|
-
case "binary":
|
|
1859
|
-
return Pe(this, e, t);
|
|
1860
|
-
case "base64":
|
|
1861
|
-
return Te(this, e, t);
|
|
1862
|
-
case "ucs2":
|
|
1863
|
-
case "ucs-2":
|
|
1864
|
-
case "utf16le":
|
|
1865
|
-
case "utf-16le":
|
|
1866
|
-
return F(this, e, t);
|
|
1867
|
-
default:
|
|
1868
|
-
if (a) throw new TypeError("Unknown encoding: " + i);
|
|
1869
|
-
i = (i + "").toLowerCase(), a = !0;
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
l.prototype._isBuffer = !0;
|
|
1873
|
-
function P(i, e, t) {
|
|
1874
|
-
const a = i[e];
|
|
1875
|
-
i[e] = i[t], i[t] = a;
|
|
1876
|
-
}
|
|
1877
|
-
l.prototype.swap16 = function() {
|
|
1878
|
-
const e = this.length;
|
|
1879
|
-
if (e % 2 !== 0)
|
|
1880
|
-
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
1881
|
-
for (let t = 0; t < e; t += 2)
|
|
1882
|
-
P(this, t, t + 1);
|
|
1883
|
-
return this;
|
|
1884
|
-
}, l.prototype.swap32 = function() {
|
|
1885
|
-
const e = this.length;
|
|
1886
|
-
if (e % 4 !== 0)
|
|
1887
|
-
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
1888
|
-
for (let t = 0; t < e; t += 4)
|
|
1889
|
-
P(this, t, t + 3), P(this, t + 1, t + 2);
|
|
1890
|
-
return this;
|
|
1891
|
-
}, l.prototype.swap64 = function() {
|
|
1892
|
-
const e = this.length;
|
|
1893
|
-
if (e % 8 !== 0)
|
|
1894
|
-
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
1895
|
-
for (let t = 0; t < e; t += 8)
|
|
1896
|
-
P(this, t, t + 7), P(this, t + 1, t + 6), P(this, t + 2, t + 5), P(this, t + 3, t + 4);
|
|
1897
|
-
return this;
|
|
1898
|
-
}, l.prototype.toString = function() {
|
|
1899
|
-
const e = this.length;
|
|
1900
|
-
return e === 0 ? "" : arguments.length === 0 ? Ue(this, 0, e) : U.apply(this, arguments);
|
|
1901
|
-
}, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(e) {
|
|
1902
|
-
if (!l.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
|
|
1903
|
-
return this === e ? !0 : l.compare(this, e) === 0;
|
|
1904
|
-
}, l.prototype.inspect = function() {
|
|
1905
|
-
let e = "";
|
|
1906
|
-
const t = c.INSPECT_MAX_BYTES;
|
|
1907
|
-
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
|
|
1908
|
-
}, q && (l.prototype[q] = l.prototype.inspect), l.prototype.compare = function(e, t, a, p, I) {
|
|
1909
|
-
if (A(e, h) && (e = l.from(e, e.offset, e.byteLength)), !l.isBuffer(e))
|
|
1910
|
-
throw new TypeError(
|
|
1911
|
-
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
1912
|
-
);
|
|
1913
|
-
if (t === void 0 && (t = 0), a === void 0 && (a = e ? e.length : 0), p === void 0 && (p = 0), I === void 0 && (I = this.length), t < 0 || a > e.length || p < 0 || I > this.length)
|
|
1914
|
-
throw new RangeError("out of range index");
|
|
1915
|
-
if (p >= I && t >= a)
|
|
1916
|
-
return 0;
|
|
1917
|
-
if (p >= I)
|
|
1918
|
-
return -1;
|
|
1919
|
-
if (t >= a)
|
|
1920
|
-
return 1;
|
|
1921
|
-
if (t >>>= 0, a >>>= 0, p >>>= 0, I >>>= 0, this === e) return 0;
|
|
1922
|
-
let W = I - p, le = a - t;
|
|
1923
|
-
const ye = Math.min(W, le), we = this.slice(p, I), ve = e.slice(t, a);
|
|
1924
|
-
for (let be = 0; be < ye; ++be)
|
|
1925
|
-
if (we[be] !== ve[be]) {
|
|
1926
|
-
W = we[be], le = ve[be];
|
|
1927
|
-
break;
|
|
1928
|
-
}
|
|
1929
|
-
return W < le ? -1 : le < W ? 1 : 0;
|
|
1930
|
-
};
|
|
1931
|
-
function K(i, e, t, a, p) {
|
|
1932
|
-
if (i.length === 0) return -1;
|
|
1933
|
-
if (typeof t == "string" ? (a = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, ee(t) && (t = p ? 0 : i.length - 1), t < 0 && (t = i.length + t), t >= i.length) {
|
|
1934
|
-
if (p) return -1;
|
|
1935
|
-
t = i.length - 1;
|
|
1936
|
-
} else if (t < 0)
|
|
1937
|
-
if (p) t = 0;
|
|
1938
|
-
else return -1;
|
|
1939
|
-
if (typeof e == "string" && (e = l.from(e, a)), l.isBuffer(e))
|
|
1940
|
-
return e.length === 0 ? -1 : re(i, e, t, a, p);
|
|
1941
|
-
if (typeof e == "number")
|
|
1942
|
-
return e = e & 255, typeof h.prototype.indexOf == "function" ? p ? h.prototype.indexOf.call(i, e, t) : h.prototype.lastIndexOf.call(i, e, t) : re(i, [e], t, a, p);
|
|
1943
|
-
throw new TypeError("val must be string, number or Buffer");
|
|
1944
|
-
}
|
|
1945
|
-
function re(i, e, t, a, p) {
|
|
1946
|
-
let I = 1, W = i.length, le = e.length;
|
|
1947
|
-
if (a !== void 0 && (a = String(a).toLowerCase(), a === "ucs2" || a === "ucs-2" || a === "utf16le" || a === "utf-16le")) {
|
|
1948
|
-
if (i.length < 2 || e.length < 2)
|
|
1949
|
-
return -1;
|
|
1950
|
-
I = 2, W /= 2, le /= 2, t /= 2;
|
|
1951
|
-
}
|
|
1952
|
-
function ye(ve, be) {
|
|
1953
|
-
return I === 1 ? ve[be] : ve.readUInt16BE(be * I);
|
|
1954
|
-
}
|
|
1955
|
-
let we;
|
|
1956
|
-
if (p) {
|
|
1957
|
-
let ve = -1;
|
|
1958
|
-
for (we = t; we < W; we++)
|
|
1959
|
-
if (ye(i, we) === ye(e, ve === -1 ? 0 : we - ve)) {
|
|
1960
|
-
if (ve === -1 && (ve = we), we - ve + 1 === le) return ve * I;
|
|
1961
|
-
} else
|
|
1962
|
-
ve !== -1 && (we -= we - ve), ve = -1;
|
|
1963
|
-
} else
|
|
1964
|
-
for (t + le > W && (t = W - le), we = t; we >= 0; we--) {
|
|
1965
|
-
let ve = !0;
|
|
1966
|
-
for (let be = 0; be < le; be++)
|
|
1967
|
-
if (ye(i, we + be) !== ye(e, be)) {
|
|
1968
|
-
ve = !1;
|
|
1969
|
-
break;
|
|
1970
|
-
}
|
|
1971
|
-
if (ve) return we;
|
|
1972
|
-
}
|
|
1973
|
-
return -1;
|
|
1974
|
-
}
|
|
1975
|
-
l.prototype.includes = function(e, t, a) {
|
|
1976
|
-
return this.indexOf(e, t, a) !== -1;
|
|
1977
|
-
}, l.prototype.indexOf = function(e, t, a) {
|
|
1978
|
-
return K(this, e, t, a, !0);
|
|
1979
|
-
}, l.prototype.lastIndexOf = function(e, t, a) {
|
|
1980
|
-
return K(this, e, t, a, !1);
|
|
1981
|
-
};
|
|
1982
|
-
function fe(i, e, t, a) {
|
|
1983
|
-
t = Number(t) || 0;
|
|
1984
|
-
const p = i.length - t;
|
|
1985
|
-
a ? (a = Number(a), a > p && (a = p)) : a = p;
|
|
1986
|
-
const I = e.length;
|
|
1987
|
-
a > I / 2 && (a = I / 2);
|
|
1988
|
-
let W;
|
|
1989
|
-
for (W = 0; W < a; ++W) {
|
|
1990
|
-
const le = parseInt(e.substr(W * 2, 2), 16);
|
|
1991
|
-
if (ee(le)) return W;
|
|
1992
|
-
i[t + W] = le;
|
|
1993
|
-
}
|
|
1994
|
-
return W;
|
|
1995
|
-
}
|
|
1996
|
-
function R(i, e, t, a) {
|
|
1997
|
-
return B(Ce(e, i.length - t), i, t, a);
|
|
1998
|
-
}
|
|
1999
|
-
function ge(i, e, t, a) {
|
|
2000
|
-
return B(Ge(e), i, t, a);
|
|
2001
|
-
}
|
|
2002
|
-
function me(i, e, t, a) {
|
|
2003
|
-
return B(Ie(e), i, t, a);
|
|
2004
|
-
}
|
|
2005
|
-
function Ee(i, e, t, a) {
|
|
2006
|
-
return B(Be(e, i.length - t), i, t, a);
|
|
2007
|
-
}
|
|
2008
|
-
l.prototype.write = function(e, t, a, p) {
|
|
2009
|
-
if (t === void 0)
|
|
2010
|
-
p = "utf8", a = this.length, t = 0;
|
|
2011
|
-
else if (a === void 0 && typeof t == "string")
|
|
2012
|
-
p = t, a = this.length, t = 0;
|
|
2013
|
-
else if (isFinite(t))
|
|
2014
|
-
t = t >>> 0, isFinite(a) ? (a = a >>> 0, p === void 0 && (p = "utf8")) : (p = a, a = void 0);
|
|
2015
|
-
else
|
|
2016
|
-
throw new Error(
|
|
2017
|
-
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
2018
|
-
);
|
|
2019
|
-
const I = this.length - t;
|
|
2020
|
-
if ((a === void 0 || a > I) && (a = I), e.length > 0 && (a < 0 || t < 0) || t > this.length)
|
|
2021
|
-
throw new RangeError("Attempt to write outside buffer bounds");
|
|
2022
|
-
p || (p = "utf8");
|
|
2023
|
-
let W = !1;
|
|
2024
|
-
for (; ; )
|
|
2025
|
-
switch (p) {
|
|
2026
|
-
case "hex":
|
|
2027
|
-
return fe(this, e, t, a);
|
|
2028
|
-
case "utf8":
|
|
2029
|
-
case "utf-8":
|
|
2030
|
-
return R(this, e, t, a);
|
|
2031
|
-
case "ascii":
|
|
2032
|
-
case "latin1":
|
|
2033
|
-
case "binary":
|
|
2034
|
-
return ge(this, e, t, a);
|
|
2035
|
-
case "base64":
|
|
2036
|
-
return me(this, e, t, a);
|
|
2037
|
-
case "ucs2":
|
|
2038
|
-
case "ucs-2":
|
|
2039
|
-
case "utf16le":
|
|
2040
|
-
case "utf-16le":
|
|
2041
|
-
return Ee(this, e, t, a);
|
|
2042
|
-
default:
|
|
2043
|
-
if (W) throw new TypeError("Unknown encoding: " + p);
|
|
2044
|
-
p = ("" + p).toLowerCase(), W = !0;
|
|
2045
|
-
}
|
|
2046
|
-
}, l.prototype.toJSON = function() {
|
|
2047
|
-
return {
|
|
2048
|
-
type: "Buffer",
|
|
2049
|
-
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
2050
|
-
};
|
|
2051
|
-
};
|
|
2052
|
-
function Te(i, e, t) {
|
|
2053
|
-
return e === 0 && t === i.length ? v.fromByteArray(i) : v.fromByteArray(i.slice(e, t));
|
|
2054
|
-
}
|
|
2055
|
-
function Ue(i, e, t) {
|
|
2056
|
-
t = Math.min(i.length, t);
|
|
2057
|
-
const a = [];
|
|
2058
|
-
let p = e;
|
|
2059
|
-
for (; p < t; ) {
|
|
2060
|
-
const I = i[p];
|
|
2061
|
-
let W = null, le = I > 239 ? 4 : I > 223 ? 3 : I > 191 ? 2 : 1;
|
|
2062
|
-
if (p + le <= t) {
|
|
2063
|
-
let ye, we, ve, be;
|
|
2064
|
-
switch (le) {
|
|
2065
|
-
case 1:
|
|
2066
|
-
I < 128 && (W = I);
|
|
2067
|
-
break;
|
|
2068
|
-
case 2:
|
|
2069
|
-
ye = i[p + 1], (ye & 192) === 128 && (be = (I & 31) << 6 | ye & 63, be > 127 && (W = be));
|
|
2070
|
-
break;
|
|
2071
|
-
case 3:
|
|
2072
|
-
ye = i[p + 1], we = i[p + 2], (ye & 192) === 128 && (we & 192) === 128 && (be = (I & 15) << 12 | (ye & 63) << 6 | we & 63, be > 2047 && (be < 55296 || be > 57343) && (W = be));
|
|
2073
|
-
break;
|
|
2074
|
-
case 4:
|
|
2075
|
-
ye = i[p + 1], we = i[p + 2], ve = i[p + 3], (ye & 192) === 128 && (we & 192) === 128 && (ve & 192) === 128 && (be = (I & 15) << 18 | (ye & 63) << 12 | (we & 63) << 6 | ve & 63, be > 65535 && be < 1114112 && (W = be));
|
|
2076
|
-
}
|
|
2077
|
-
}
|
|
2078
|
-
W === null ? (W = 65533, le = 1) : W > 65535 && (W -= 65536, a.push(W >>> 10 & 1023 | 55296), W = 56320 | W & 1023), a.push(W), p += le;
|
|
2079
|
-
}
|
|
2080
|
-
return Ae(a);
|
|
2081
|
-
}
|
|
2082
|
-
const Re = 4096;
|
|
2083
|
-
function Ae(i) {
|
|
2084
|
-
const e = i.length;
|
|
2085
|
-
if (e <= Re)
|
|
2086
|
-
return String.fromCharCode.apply(String, i);
|
|
2087
|
-
let t = "", a = 0;
|
|
2088
|
-
for (; a < e; )
|
|
2089
|
-
t += String.fromCharCode.apply(
|
|
2090
|
-
String,
|
|
2091
|
-
i.slice(a, a += Re)
|
|
2092
|
-
);
|
|
2093
|
-
return t;
|
|
2094
|
-
}
|
|
2095
|
-
function Ne(i, e, t) {
|
|
2096
|
-
let a = "";
|
|
2097
|
-
t = Math.min(i.length, t);
|
|
2098
|
-
for (let p = e; p < t; ++p)
|
|
2099
|
-
a += String.fromCharCode(i[p] & 127);
|
|
2100
|
-
return a;
|
|
2101
|
-
}
|
|
2102
|
-
function Pe(i, e, t) {
|
|
2103
|
-
let a = "";
|
|
2104
|
-
t = Math.min(i.length, t);
|
|
2105
|
-
for (let p = e; p < t; ++p)
|
|
2106
|
-
a += String.fromCharCode(i[p]);
|
|
2107
|
-
return a;
|
|
2108
|
-
}
|
|
2109
|
-
function L(i, e, t) {
|
|
2110
|
-
const a = i.length;
|
|
2111
|
-
(!e || e < 0) && (e = 0), (!t || t < 0 || t > a) && (t = a);
|
|
2112
|
-
let p = "";
|
|
2113
|
-
for (let I = e; I < t; ++I)
|
|
2114
|
-
p += oe[i[I]];
|
|
2115
|
-
return p;
|
|
2116
|
-
}
|
|
2117
|
-
function F(i, e, t) {
|
|
2118
|
-
const a = i.slice(e, t);
|
|
2119
|
-
let p = "";
|
|
2120
|
-
for (let I = 0; I < a.length - 1; I += 2)
|
|
2121
|
-
p += String.fromCharCode(a[I] + a[I + 1] * 256);
|
|
2122
|
-
return p;
|
|
2123
|
-
}
|
|
2124
|
-
l.prototype.slice = function(e, t) {
|
|
2125
|
-
const a = this.length;
|
|
2126
|
-
e = ~~e, t = t === void 0 ? a : ~~t, e < 0 ? (e += a, e < 0 && (e = 0)) : e > a && (e = a), t < 0 ? (t += a, t < 0 && (t = 0)) : t > a && (t = a), t < e && (t = e);
|
|
2127
|
-
const p = this.subarray(e, t);
|
|
2128
|
-
return Object.setPrototypeOf(p, l.prototype), p;
|
|
2129
|
-
};
|
|
2130
|
-
function H(i, e, t) {
|
|
2131
|
-
if (i % 1 !== 0 || i < 0) throw new RangeError("offset is not uint");
|
|
2132
|
-
if (i + e > t) throw new RangeError("Trying to access beyond buffer length");
|
|
2133
|
-
}
|
|
2134
|
-
l.prototype.readUintLE = l.prototype.readUIntLE = function(e, t, a) {
|
|
2135
|
-
e = e >>> 0, t = t >>> 0, a || H(e, t, this.length);
|
|
2136
|
-
let p = this[e], I = 1, W = 0;
|
|
2137
|
-
for (; ++W < t && (I *= 256); )
|
|
2138
|
-
p += this[e + W] * I;
|
|
2139
|
-
return p;
|
|
2140
|
-
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(e, t, a) {
|
|
2141
|
-
e = e >>> 0, t = t >>> 0, a || H(e, t, this.length);
|
|
2142
|
-
let p = this[e + --t], I = 1;
|
|
2143
|
-
for (; t > 0 && (I *= 256); )
|
|
2144
|
-
p += this[e + --t] * I;
|
|
2145
|
-
return p;
|
|
2146
|
-
}, l.prototype.readUint8 = l.prototype.readUInt8 = function(e, t) {
|
|
2147
|
-
return e = e >>> 0, t || H(e, 1, this.length), this[e];
|
|
2148
|
-
}, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(e, t) {
|
|
2149
|
-
return e = e >>> 0, t || H(e, 2, this.length), this[e] | this[e + 1] << 8;
|
|
2150
|
-
}, l.prototype.readUint16BE = l.prototype.readUInt16BE = function(e, t) {
|
|
2151
|
-
return e = e >>> 0, t || H(e, 2, this.length), this[e] << 8 | this[e + 1];
|
|
2152
|
-
}, l.prototype.readUint32LE = l.prototype.readUInt32LE = function(e, t) {
|
|
2153
|
-
return e = e >>> 0, t || H(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
|
|
2154
|
-
}, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(e, t) {
|
|
2155
|
-
return e = e >>> 0, t || H(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
|
|
2156
|
-
}, l.prototype.readBigUInt64LE = ne(function(e) {
|
|
2157
|
-
e = e >>> 0, ae(e, "offset");
|
|
2158
|
-
const t = this[e], a = this[e + 7];
|
|
2159
|
-
(t === void 0 || a === void 0) && ce(e, this.length - 8);
|
|
2160
|
-
const p = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, I = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + a * 2 ** 24;
|
|
2161
|
-
return BigInt(p) + (BigInt(I) << BigInt(32));
|
|
2162
|
-
}), l.prototype.readBigUInt64BE = ne(function(e) {
|
|
2163
|
-
e = e >>> 0, ae(e, "offset");
|
|
2164
|
-
const t = this[e], a = this[e + 7];
|
|
2165
|
-
(t === void 0 || a === void 0) && ce(e, this.length - 8);
|
|
2166
|
-
const p = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], I = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + a;
|
|
2167
|
-
return (BigInt(p) << BigInt(32)) + BigInt(I);
|
|
2168
|
-
}), l.prototype.readIntLE = function(e, t, a) {
|
|
2169
|
-
e = e >>> 0, t = t >>> 0, a || H(e, t, this.length);
|
|
2170
|
-
let p = this[e], I = 1, W = 0;
|
|
2171
|
-
for (; ++W < t && (I *= 256); )
|
|
2172
|
-
p += this[e + W] * I;
|
|
2173
|
-
return I *= 128, p >= I && (p -= Math.pow(2, 8 * t)), p;
|
|
2174
|
-
}, l.prototype.readIntBE = function(e, t, a) {
|
|
2175
|
-
e = e >>> 0, t = t >>> 0, a || H(e, t, this.length);
|
|
2176
|
-
let p = t, I = 1, W = this[e + --p];
|
|
2177
|
-
for (; p > 0 && (I *= 256); )
|
|
2178
|
-
W += this[e + --p] * I;
|
|
2179
|
-
return I *= 128, W >= I && (W -= Math.pow(2, 8 * t)), W;
|
|
2180
|
-
}, l.prototype.readInt8 = function(e, t) {
|
|
2181
|
-
return e = e >>> 0, t || H(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
2182
|
-
}, l.prototype.readInt16LE = function(e, t) {
|
|
2183
|
-
e = e >>> 0, t || H(e, 2, this.length);
|
|
2184
|
-
const a = this[e] | this[e + 1] << 8;
|
|
2185
|
-
return a & 32768 ? a | 4294901760 : a;
|
|
2186
|
-
}, l.prototype.readInt16BE = function(e, t) {
|
|
2187
|
-
e = e >>> 0, t || H(e, 2, this.length);
|
|
2188
|
-
const a = this[e + 1] | this[e] << 8;
|
|
2189
|
-
return a & 32768 ? a | 4294901760 : a;
|
|
2190
|
-
}, l.prototype.readInt32LE = function(e, t) {
|
|
2191
|
-
return e = e >>> 0, t || H(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
|
|
2192
|
-
}, l.prototype.readInt32BE = function(e, t) {
|
|
2193
|
-
return e = e >>> 0, t || H(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
|
|
2194
|
-
}, l.prototype.readBigInt64LE = ne(function(e) {
|
|
2195
|
-
e = e >>> 0, ae(e, "offset");
|
|
2196
|
-
const t = this[e], a = this[e + 7];
|
|
2197
|
-
(t === void 0 || a === void 0) && ce(e, this.length - 8);
|
|
2198
|
-
const p = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (a << 24);
|
|
2199
|
-
return (BigInt(p) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
|
|
2200
|
-
}), l.prototype.readBigInt64BE = ne(function(e) {
|
|
2201
|
-
e = e >>> 0, ae(e, "offset");
|
|
2202
|
-
const t = this[e], a = this[e + 7];
|
|
2203
|
-
(t === void 0 || a === void 0) && ce(e, this.length - 8);
|
|
2204
|
-
const p = (t << 24) + // Overflow
|
|
2205
|
-
this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
|
|
2206
|
-
return (BigInt(p) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + a);
|
|
2207
|
-
}), l.prototype.readFloatLE = function(e, t) {
|
|
2208
|
-
return e = e >>> 0, t || H(e, 4, this.length), C.read(this, e, !0, 23, 4);
|
|
2209
|
-
}, l.prototype.readFloatBE = function(e, t) {
|
|
2210
|
-
return e = e >>> 0, t || H(e, 4, this.length), C.read(this, e, !1, 23, 4);
|
|
2211
|
-
}, l.prototype.readDoubleLE = function(e, t) {
|
|
2212
|
-
return e = e >>> 0, t || H(e, 8, this.length), C.read(this, e, !0, 52, 8);
|
|
2213
|
-
}, l.prototype.readDoubleBE = function(e, t) {
|
|
2214
|
-
return e = e >>> 0, t || H(e, 8, this.length), C.read(this, e, !1, 52, 8);
|
|
2215
|
-
};
|
|
2216
|
-
function ue(i, e, t, a, p, I) {
|
|
2217
|
-
if (!l.isBuffer(i)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
2218
|
-
if (e > p || e < I) throw new RangeError('"value" argument is out of bounds');
|
|
2219
|
-
if (t + a > i.length) throw new RangeError("Index out of range");
|
|
2220
|
-
}
|
|
2221
|
-
l.prototype.writeUintLE = l.prototype.writeUIntLE = function(e, t, a, p) {
|
|
2222
|
-
if (e = +e, t = t >>> 0, a = a >>> 0, !p) {
|
|
2223
|
-
const le = Math.pow(2, 8 * a) - 1;
|
|
2224
|
-
ue(this, e, t, a, le, 0);
|
|
2225
|
-
}
|
|
2226
|
-
let I = 1, W = 0;
|
|
2227
|
-
for (this[t] = e & 255; ++W < a && (I *= 256); )
|
|
2228
|
-
this[t + W] = e / I & 255;
|
|
2229
|
-
return t + a;
|
|
2230
|
-
}, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(e, t, a, p) {
|
|
2231
|
-
if (e = +e, t = t >>> 0, a = a >>> 0, !p) {
|
|
2232
|
-
const le = Math.pow(2, 8 * a) - 1;
|
|
2233
|
-
ue(this, e, t, a, le, 0);
|
|
2234
|
-
}
|
|
2235
|
-
let I = a - 1, W = 1;
|
|
2236
|
-
for (this[t + I] = e & 255; --I >= 0 && (W *= 256); )
|
|
2237
|
-
this[t + I] = e / W & 255;
|
|
2238
|
-
return t + a;
|
|
2239
|
-
}, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(e, t, a) {
|
|
2240
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
|
|
2241
|
-
}, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(e, t, a) {
|
|
2242
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
|
|
2243
|
-
}, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(e, t, a) {
|
|
2244
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
|
|
2245
|
-
}, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(e, t, a) {
|
|
2246
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
|
|
2247
|
-
}, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(e, t, a) {
|
|
2248
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
2249
|
-
};
|
|
2250
|
-
function E(i, e, t, a, p) {
|
|
2251
|
-
de(e, a, p, i, t, 7);
|
|
2252
|
-
let I = Number(e & BigInt(4294967295));
|
|
2253
|
-
i[t++] = I, I = I >> 8, i[t++] = I, I = I >> 8, i[t++] = I, I = I >> 8, i[t++] = I;
|
|
2254
|
-
let W = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2255
|
-
return i[t++] = W, W = W >> 8, i[t++] = W, W = W >> 8, i[t++] = W, W = W >> 8, i[t++] = W, t;
|
|
2256
|
-
}
|
|
2257
|
-
function _(i, e, t, a, p) {
|
|
2258
|
-
de(e, a, p, i, t, 7);
|
|
2259
|
-
let I = Number(e & BigInt(4294967295));
|
|
2260
|
-
i[t + 7] = I, I = I >> 8, i[t + 6] = I, I = I >> 8, i[t + 5] = I, I = I >> 8, i[t + 4] = I;
|
|
2261
|
-
let W = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2262
|
-
return i[t + 3] = W, W = W >> 8, i[t + 2] = W, W = W >> 8, i[t + 1] = W, W = W >> 8, i[t] = W, t + 8;
|
|
2263
|
-
}
|
|
2264
|
-
l.prototype.writeBigUInt64LE = ne(function(e, t = 0) {
|
|
2265
|
-
return E(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2266
|
-
}), l.prototype.writeBigUInt64BE = ne(function(e, t = 0) {
|
|
2267
|
-
return _(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2268
|
-
}), l.prototype.writeIntLE = function(e, t, a, p) {
|
|
2269
|
-
if (e = +e, t = t >>> 0, !p) {
|
|
2270
|
-
const ye = Math.pow(2, 8 * a - 1);
|
|
2271
|
-
ue(this, e, t, a, ye - 1, -ye);
|
|
2272
|
-
}
|
|
2273
|
-
let I = 0, W = 1, le = 0;
|
|
2274
|
-
for (this[t] = e & 255; ++I < a && (W *= 256); )
|
|
2275
|
-
e < 0 && le === 0 && this[t + I - 1] !== 0 && (le = 1), this[t + I] = (e / W >> 0) - le & 255;
|
|
2276
|
-
return t + a;
|
|
2277
|
-
}, l.prototype.writeIntBE = function(e, t, a, p) {
|
|
2278
|
-
if (e = +e, t = t >>> 0, !p) {
|
|
2279
|
-
const ye = Math.pow(2, 8 * a - 1);
|
|
2280
|
-
ue(this, e, t, a, ye - 1, -ye);
|
|
2281
|
-
}
|
|
2282
|
-
let I = a - 1, W = 1, le = 0;
|
|
2283
|
-
for (this[t + I] = e & 255; --I >= 0 && (W *= 256); )
|
|
2284
|
-
e < 0 && le === 0 && this[t + I + 1] !== 0 && (le = 1), this[t + I] = (e / W >> 0) - le & 255;
|
|
2285
|
-
return t + a;
|
|
2286
|
-
}, l.prototype.writeInt8 = function(e, t, a) {
|
|
2287
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
|
|
2288
|
-
}, l.prototype.writeInt16LE = function(e, t, a) {
|
|
2289
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
|
|
2290
|
-
}, l.prototype.writeInt16BE = function(e, t, a) {
|
|
2291
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
|
|
2292
|
-
}, l.prototype.writeInt32LE = function(e, t, a) {
|
|
2293
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
|
|
2294
|
-
}, l.prototype.writeInt32BE = function(e, t, a) {
|
|
2295
|
-
return e = +e, t = t >>> 0, a || ue(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
2296
|
-
}, l.prototype.writeBigInt64LE = ne(function(e, t = 0) {
|
|
2297
|
-
return E(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2298
|
-
}), l.prototype.writeBigInt64BE = ne(function(e, t = 0) {
|
|
2299
|
-
return _(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2300
|
-
});
|
|
2301
|
-
function k(i, e, t, a, p, I) {
|
|
2302
|
-
if (t + a > i.length) throw new RangeError("Index out of range");
|
|
2303
|
-
if (t < 0) throw new RangeError("Index out of range");
|
|
2304
|
-
}
|
|
2305
|
-
function $(i, e, t, a, p) {
|
|
2306
|
-
return e = +e, t = t >>> 0, p || k(i, e, t, 4), C.write(i, e, t, a, 23, 4), t + 4;
|
|
2307
|
-
}
|
|
2308
|
-
l.prototype.writeFloatLE = function(e, t, a) {
|
|
2309
|
-
return $(this, e, t, !0, a);
|
|
2310
|
-
}, l.prototype.writeFloatBE = function(e, t, a) {
|
|
2311
|
-
return $(this, e, t, !1, a);
|
|
2312
|
-
};
|
|
2313
|
-
function ie(i, e, t, a, p) {
|
|
2314
|
-
return e = +e, t = t >>> 0, p || k(i, e, t, 8), C.write(i, e, t, a, 52, 8), t + 8;
|
|
2315
|
-
}
|
|
2316
|
-
l.prototype.writeDoubleLE = function(e, t, a) {
|
|
2317
|
-
return ie(this, e, t, !0, a);
|
|
2318
|
-
}, l.prototype.writeDoubleBE = function(e, t, a) {
|
|
2319
|
-
return ie(this, e, t, !1, a);
|
|
2320
|
-
}, l.prototype.copy = function(e, t, a, p) {
|
|
2321
|
-
if (!l.isBuffer(e)) throw new TypeError("argument should be a Buffer");
|
|
2322
|
-
if (a || (a = 0), !p && p !== 0 && (p = this.length), t >= e.length && (t = e.length), t || (t = 0), p > 0 && p < a && (p = a), p === a || e.length === 0 || this.length === 0) return 0;
|
|
2323
|
-
if (t < 0)
|
|
2324
|
-
throw new RangeError("targetStart out of bounds");
|
|
2325
|
-
if (a < 0 || a >= this.length) throw new RangeError("Index out of range");
|
|
2326
|
-
if (p < 0) throw new RangeError("sourceEnd out of bounds");
|
|
2327
|
-
p > this.length && (p = this.length), e.length - t < p - a && (p = e.length - t + a);
|
|
2328
|
-
const I = p - a;
|
|
2329
|
-
return this === e && typeof h.prototype.copyWithin == "function" ? this.copyWithin(t, a, p) : h.prototype.set.call(
|
|
2330
|
-
e,
|
|
2331
|
-
this.subarray(a, p),
|
|
2332
|
-
t
|
|
2333
|
-
), I;
|
|
2334
|
-
}, l.prototype.fill = function(e, t, a, p) {
|
|
2335
|
-
if (typeof e == "string") {
|
|
2336
|
-
if (typeof t == "string" ? (p = t, t = 0, a = this.length) : typeof a == "string" && (p = a, a = this.length), p !== void 0 && typeof p != "string")
|
|
2337
|
-
throw new TypeError("encoding must be a string");
|
|
2338
|
-
if (typeof p == "string" && !l.isEncoding(p))
|
|
2339
|
-
throw new TypeError("Unknown encoding: " + p);
|
|
2340
|
-
if (e.length === 1) {
|
|
2341
|
-
const W = e.charCodeAt(0);
|
|
2342
|
-
(p === "utf8" && W < 128 || p === "latin1") && (e = W);
|
|
2343
|
-
}
|
|
2344
|
-
} else typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
|
|
2345
|
-
if (t < 0 || this.length < t || this.length < a)
|
|
2346
|
-
throw new RangeError("Out of range index");
|
|
2347
|
-
if (a <= t)
|
|
2348
|
-
return this;
|
|
2349
|
-
t = t >>> 0, a = a === void 0 ? this.length : a >>> 0, e || (e = 0);
|
|
2350
|
-
let I;
|
|
2351
|
-
if (typeof e == "number")
|
|
2352
|
-
for (I = t; I < a; ++I)
|
|
2353
|
-
this[I] = e;
|
|
2354
|
-
else {
|
|
2355
|
-
const W = l.isBuffer(e) ? e : l.from(e, p), le = W.length;
|
|
2356
|
-
if (le === 0)
|
|
2357
|
-
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
2358
|
-
for (I = 0; I < a - t; ++I)
|
|
2359
|
-
this[I + t] = W[I % le];
|
|
2360
|
-
}
|
|
2361
|
-
return this;
|
|
2362
|
-
};
|
|
2363
|
-
const u = {};
|
|
2364
|
-
function s(i, e, t) {
|
|
2365
|
-
u[i] = class extends t {
|
|
2366
|
-
constructor() {
|
|
2367
|
-
super(), Object.defineProperty(this, "message", {
|
|
2368
|
-
value: e.apply(this, arguments),
|
|
2369
|
-
writable: !0,
|
|
2370
|
-
configurable: !0
|
|
2371
|
-
}), this.name = `${this.name} [${i}]`, this.stack, delete this.name;
|
|
2372
|
-
}
|
|
2373
|
-
get code() {
|
|
2374
|
-
return i;
|
|
2375
|
-
}
|
|
2376
|
-
set code(p) {
|
|
2377
|
-
Object.defineProperty(this, "code", {
|
|
2378
|
-
configurable: !0,
|
|
2379
|
-
enumerable: !0,
|
|
2380
|
-
value: p,
|
|
2381
|
-
writable: !0
|
|
2382
|
-
});
|
|
2383
|
-
}
|
|
2384
|
-
toString() {
|
|
2385
|
-
return `${this.name} [${i}]: ${this.message}`;
|
|
2386
|
-
}
|
|
2387
|
-
};
|
|
2388
|
-
}
|
|
2389
|
-
s(
|
|
2390
|
-
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
2391
|
-
function(i) {
|
|
2392
|
-
return i ? `${i} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
2393
|
-
},
|
|
2394
|
-
RangeError
|
|
2395
|
-
), s(
|
|
2396
|
-
"ERR_INVALID_ARG_TYPE",
|
|
2397
|
-
function(i, e) {
|
|
2398
|
-
return `The "${i}" argument must be of type number. Received type ${typeof e}`;
|
|
2399
|
-
},
|
|
2400
|
-
TypeError
|
|
2401
|
-
), s(
|
|
2402
|
-
"ERR_OUT_OF_RANGE",
|
|
2403
|
-
function(i, e, t) {
|
|
2404
|
-
let a = `The value of "${i}" is out of range.`, p = t;
|
|
2405
|
-
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? p = Y(String(t)) : typeof t == "bigint" && (p = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (p = Y(p)), p += "n"), a += ` It must be ${e}. Received ${p}`, a;
|
|
2406
|
-
},
|
|
2407
|
-
RangeError
|
|
2408
|
-
);
|
|
2409
|
-
function Y(i) {
|
|
2410
|
-
let e = "", t = i.length;
|
|
2411
|
-
const a = i[0] === "-" ? 1 : 0;
|
|
2412
|
-
for (; t >= a + 4; t -= 3)
|
|
2413
|
-
e = `_${i.slice(t - 3, t)}${e}`;
|
|
2414
|
-
return `${i.slice(0, t)}${e}`;
|
|
2415
|
-
}
|
|
2416
|
-
function te(i, e, t) {
|
|
2417
|
-
ae(e, "offset"), (i[e] === void 0 || i[e + t] === void 0) && ce(e, i.length - (t + 1));
|
|
2418
|
-
}
|
|
2419
|
-
function de(i, e, t, a, p, I) {
|
|
2420
|
-
if (i > t || i < e) {
|
|
2421
|
-
const W = typeof e == "bigint" ? "n" : "";
|
|
2422
|
-
let le;
|
|
2423
|
-
throw e === 0 || e === BigInt(0) ? le = `>= 0${W} and < 2${W} ** ${(I + 1) * 8}${W}` : le = `>= -(2${W} ** ${(I + 1) * 8 - 1}${W}) and < 2 ** ${(I + 1) * 8 - 1}${W}`, new u.ERR_OUT_OF_RANGE("value", le, i);
|
|
2424
|
-
}
|
|
2425
|
-
te(a, p, I);
|
|
2426
|
-
}
|
|
2427
|
-
function ae(i, e) {
|
|
2428
|
-
if (typeof i != "number")
|
|
2429
|
-
throw new u.ERR_INVALID_ARG_TYPE(e, "number", i);
|
|
2430
|
-
}
|
|
2431
|
-
function ce(i, e, t) {
|
|
2432
|
-
throw Math.floor(i) !== i ? (ae(i, t), new u.ERR_OUT_OF_RANGE("offset", "an integer", i)) : e < 0 ? new u.ERR_BUFFER_OUT_OF_BOUNDS() : new u.ERR_OUT_OF_RANGE(
|
|
2433
|
-
"offset",
|
|
2434
|
-
`>= 0 and <= ${e}`,
|
|
2435
|
-
i
|
|
2436
|
-
);
|
|
2437
|
-
}
|
|
2438
|
-
const je = /[^+/0-9A-Za-z-_]/g;
|
|
2439
|
-
function G(i) {
|
|
2440
|
-
if (i = i.split("=")[0], i = i.trim().replace(je, ""), i.length < 2) return "";
|
|
2441
|
-
for (; i.length % 4 !== 0; )
|
|
2442
|
-
i = i + "=";
|
|
2443
|
-
return i;
|
|
2444
|
-
}
|
|
2445
|
-
function Ce(i, e) {
|
|
2446
|
-
e = e || 1 / 0;
|
|
2447
|
-
let t;
|
|
2448
|
-
const a = i.length;
|
|
2449
|
-
let p = null;
|
|
2450
|
-
const I = [];
|
|
2451
|
-
for (let W = 0; W < a; ++W) {
|
|
2452
|
-
if (t = i.charCodeAt(W), t > 55295 && t < 57344) {
|
|
2453
|
-
if (!p) {
|
|
2454
|
-
if (t > 56319) {
|
|
2455
|
-
(e -= 3) > -1 && I.push(239, 191, 189);
|
|
2456
|
-
continue;
|
|
2457
|
-
} else if (W + 1 === a) {
|
|
2458
|
-
(e -= 3) > -1 && I.push(239, 191, 189);
|
|
2459
|
-
continue;
|
|
2460
|
-
}
|
|
2461
|
-
p = t;
|
|
2462
|
-
continue;
|
|
2463
|
-
}
|
|
2464
|
-
if (t < 56320) {
|
|
2465
|
-
(e -= 3) > -1 && I.push(239, 191, 189), p = t;
|
|
2466
|
-
continue;
|
|
2467
|
-
}
|
|
2468
|
-
t = (p - 55296 << 10 | t - 56320) + 65536;
|
|
2469
|
-
} else p && (e -= 3) > -1 && I.push(239, 191, 189);
|
|
2470
|
-
if (p = null, t < 128) {
|
|
2471
|
-
if ((e -= 1) < 0) break;
|
|
2472
|
-
I.push(t);
|
|
2473
|
-
} else if (t < 2048) {
|
|
2474
|
-
if ((e -= 2) < 0) break;
|
|
2475
|
-
I.push(
|
|
2476
|
-
t >> 6 | 192,
|
|
2477
|
-
t & 63 | 128
|
|
2478
|
-
);
|
|
2479
|
-
} else if (t < 65536) {
|
|
2480
|
-
if ((e -= 3) < 0) break;
|
|
2481
|
-
I.push(
|
|
2482
|
-
t >> 12 | 224,
|
|
2483
|
-
t >> 6 & 63 | 128,
|
|
2484
|
-
t & 63 | 128
|
|
2485
|
-
);
|
|
2486
|
-
} else if (t < 1114112) {
|
|
2487
|
-
if ((e -= 4) < 0) break;
|
|
2488
|
-
I.push(
|
|
2489
|
-
t >> 18 | 240,
|
|
2490
|
-
t >> 12 & 63 | 128,
|
|
2491
|
-
t >> 6 & 63 | 128,
|
|
2492
|
-
t & 63 | 128
|
|
2493
|
-
);
|
|
2494
|
-
} else
|
|
2495
|
-
throw new Error("Invalid code point");
|
|
2496
|
-
}
|
|
2497
|
-
return I;
|
|
2498
|
-
}
|
|
2499
|
-
function Ge(i) {
|
|
2500
|
-
const e = [];
|
|
2501
|
-
for (let t = 0; t < i.length; ++t)
|
|
2502
|
-
e.push(i.charCodeAt(t) & 255);
|
|
2503
|
-
return e;
|
|
2504
|
-
}
|
|
2505
|
-
function Be(i, e) {
|
|
2506
|
-
let t, a, p;
|
|
2507
|
-
const I = [];
|
|
2508
|
-
for (let W = 0; W < i.length && !((e -= 2) < 0); ++W)
|
|
2509
|
-
t = i.charCodeAt(W), a = t >> 8, p = t % 256, I.push(p), I.push(a);
|
|
2510
|
-
return I;
|
|
2511
|
-
}
|
|
2512
|
-
function Ie(i) {
|
|
2513
|
-
return v.toByteArray(G(i));
|
|
2514
|
-
}
|
|
2515
|
-
function B(i, e, t, a) {
|
|
2516
|
-
let p;
|
|
2517
|
-
for (p = 0; p < a && !(p + t >= e.length || p >= i.length); ++p)
|
|
2518
|
-
e[p + t] = i[p];
|
|
2519
|
-
return p;
|
|
2520
|
-
}
|
|
2521
|
-
function A(i, e) {
|
|
2522
|
-
return i instanceof e || i != null && i.constructor != null && i.constructor.name != null && i.constructor.name === e.name;
|
|
2523
|
-
}
|
|
2524
|
-
function ee(i) {
|
|
2525
|
-
return i !== i;
|
|
2526
|
-
}
|
|
2527
|
-
const oe = (function() {
|
|
2528
|
-
const i = "0123456789abcdef", e = new Array(256);
|
|
2529
|
-
for (let t = 0; t < 16; ++t) {
|
|
2530
|
-
const a = t * 16;
|
|
2531
|
-
for (let p = 0; p < 16; ++p)
|
|
2532
|
-
e[a + p] = i[t] + i[p];
|
|
2533
|
-
}
|
|
2534
|
-
return e;
|
|
2535
|
-
})();
|
|
2536
|
-
function ne(i) {
|
|
2537
|
-
return typeof BigInt > "u" ? se : i;
|
|
2538
|
-
}
|
|
2539
|
-
function se() {
|
|
2540
|
-
throw new Error("BigInt not supported");
|
|
2541
|
-
}
|
|
2542
|
-
})(jr);
|
|
2543
|
-
const Kt = jr.Buffer, cn = jr.Buffer;
|
|
2544
|
-
var hr, Fr;
|
|
2545
|
-
function Zt() {
|
|
2546
|
-
return Fr || (Fr = 1, hr = function(v) {
|
|
2547
|
-
return v instanceof Kt;
|
|
2548
|
-
}), hr;
|
|
2549
|
-
}
|
|
2550
|
-
var Wr;
|
|
2551
|
-
function ur() {
|
|
2552
|
-
return Wr || (Wr = 1, (function(c) {
|
|
2553
|
-
var v = Object.getOwnPropertyDescriptors || function(F) {
|
|
2554
|
-
for (var H = Object.keys(F), ue = {}, E = 0; E < H.length; E++)
|
|
2555
|
-
ue[H[E]] = Object.getOwnPropertyDescriptor(F, H[E]);
|
|
2556
|
-
return ue;
|
|
2557
|
-
}, C = /%[sdj%]/g;
|
|
2558
|
-
c.format = function(L) {
|
|
2559
|
-
if (!b(L)) {
|
|
2560
|
-
for (var F = [], H = 0; H < arguments.length; H++)
|
|
2561
|
-
F.push(y(arguments[H]));
|
|
2562
|
-
return F.join(" ");
|
|
2563
|
-
}
|
|
2564
|
-
for (var H = 1, ue = arguments, E = ue.length, _ = String(L).replace(C, function($) {
|
|
2565
|
-
if ($ === "%%") return "%";
|
|
2566
|
-
if (H >= E) return $;
|
|
2567
|
-
switch ($) {
|
|
2568
|
-
case "%s":
|
|
2569
|
-
return String(ue[H++]);
|
|
2570
|
-
case "%d":
|
|
2571
|
-
return Number(ue[H++]);
|
|
2572
|
-
case "%j":
|
|
2573
|
-
try {
|
|
2574
|
-
return JSON.stringify(ue[H++]);
|
|
2575
|
-
} catch {
|
|
2576
|
-
return "[Circular]";
|
|
2577
|
-
}
|
|
2578
|
-
default:
|
|
2579
|
-
return $;
|
|
2580
|
-
}
|
|
2581
|
-
}), k = ue[H]; H < E; k = ue[++H])
|
|
2582
|
-
S(k) || !K(k) ? _ += " " + k : _ += " " + y(k);
|
|
2583
|
-
return _;
|
|
2584
|
-
}, c.deprecate = function(L, F) {
|
|
2585
|
-
if (typeof pe < "u" && pe.noDeprecation === !0)
|
|
2586
|
-
return L;
|
|
2587
|
-
if (typeof pe > "u")
|
|
2588
|
-
return function() {
|
|
2589
|
-
return c.deprecate(L, F).apply(this, arguments);
|
|
2590
|
-
};
|
|
2591
|
-
var H = !1;
|
|
2592
|
-
function ue() {
|
|
2593
|
-
if (!H) {
|
|
2594
|
-
if (pe.throwDeprecation)
|
|
2595
|
-
throw new Error(F);
|
|
2596
|
-
pe.traceDeprecation ? console.trace(F) : console.error(F), H = !0;
|
|
2597
|
-
}
|
|
2598
|
-
return L.apply(this, arguments);
|
|
2599
|
-
}
|
|
2600
|
-
return ue;
|
|
2601
|
-
};
|
|
2602
|
-
var q = {}, J = /^$/;
|
|
2603
|
-
if (pe.env.NODE_DEBUG) {
|
|
2604
|
-
var h = pe.env.NODE_DEBUG;
|
|
2605
|
-
h = h.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), J = new RegExp("^" + h + "$", "i");
|
|
2606
|
-
}
|
|
2607
|
-
c.debuglog = function(L) {
|
|
2608
|
-
if (L = L.toUpperCase(), !q[L])
|
|
2609
|
-
if (J.test(L)) {
|
|
2610
|
-
var F = pe.pid;
|
|
2611
|
-
q[L] = function() {
|
|
2612
|
-
var H = c.format.apply(c, arguments);
|
|
2613
|
-
console.error("%s %d: %s", L, F, H);
|
|
2614
|
-
};
|
|
2615
|
-
} else
|
|
2616
|
-
q[L] = function() {
|
|
2617
|
-
};
|
|
2618
|
-
return q[L];
|
|
2619
|
-
};
|
|
2620
|
-
function y(L, F) {
|
|
2621
|
-
var H = {
|
|
2622
|
-
seen: [],
|
|
2623
|
-
stylize: g
|
|
2624
|
-
};
|
|
2625
|
-
return arguments.length >= 3 && (H.depth = arguments[2]), arguments.length >= 4 && (H.colors = arguments[3]), d(F) ? H.showHidden = F : F && c._extend(H, F), U(H.showHidden) && (H.showHidden = !1), U(H.depth) && (H.depth = 2), U(H.colors) && (H.colors = !1), U(H.customInspect) && (H.customInspect = !0), H.colors && (H.stylize = M), l(H, L, H.depth);
|
|
2626
|
-
}
|
|
2627
|
-
c.inspect = y, y.colors = {
|
|
2628
|
-
bold: [1, 22],
|
|
2629
|
-
italic: [3, 23],
|
|
2630
|
-
underline: [4, 24],
|
|
2631
|
-
inverse: [7, 27],
|
|
2632
|
-
white: [37, 39],
|
|
2633
|
-
grey: [90, 39],
|
|
2634
|
-
black: [30, 39],
|
|
2635
|
-
blue: [34, 39],
|
|
2636
|
-
cyan: [36, 39],
|
|
2637
|
-
green: [32, 39],
|
|
2638
|
-
magenta: [35, 39],
|
|
2639
|
-
red: [31, 39],
|
|
2640
|
-
yellow: [33, 39]
|
|
2641
|
-
}, y.styles = {
|
|
2642
|
-
special: "cyan",
|
|
2643
|
-
number: "yellow",
|
|
2644
|
-
boolean: "yellow",
|
|
2645
|
-
undefined: "grey",
|
|
2646
|
-
null: "bold",
|
|
2647
|
-
string: "green",
|
|
2648
|
-
date: "magenta",
|
|
2649
|
-
// "name": intentionally not styling
|
|
2650
|
-
regexp: "red"
|
|
2651
|
-
};
|
|
2652
|
-
function M(L, F) {
|
|
2653
|
-
var H = y.styles[F];
|
|
2654
|
-
return H ? "\x1B[" + y.colors[H][0] + "m" + L + "\x1B[" + y.colors[H][1] + "m" : L;
|
|
2655
|
-
}
|
|
2656
|
-
function g(L, F) {
|
|
2657
|
-
return L;
|
|
2658
|
-
}
|
|
2659
|
-
function j(L) {
|
|
2660
|
-
var F = {};
|
|
2661
|
-
return L.forEach(function(H, ue) {
|
|
2662
|
-
F[H] = !0;
|
|
2663
|
-
}), F;
|
|
2664
|
-
}
|
|
2665
|
-
function l(L, F, H) {
|
|
2666
|
-
if (L.customInspect && F && R(F.inspect) && // Filter out the util module, it's inspect function is special
|
|
2667
|
-
F.inspect !== c.inspect && // Also filter out any prototype objects using the circular check.
|
|
2668
|
-
!(F.constructor && F.constructor.prototype === F)) {
|
|
2669
|
-
var ue = F.inspect(H, L);
|
|
2670
|
-
return b(ue) || (ue = l(L, ue, H)), ue;
|
|
2671
|
-
}
|
|
2672
|
-
var E = x(L, F);
|
|
2673
|
-
if (E)
|
|
2674
|
-
return E;
|
|
2675
|
-
var _ = Object.keys(F), k = j(_);
|
|
2676
|
-
if (L.showHidden && (_ = Object.getOwnPropertyNames(F)), fe(F) && (_.indexOf("message") >= 0 || _.indexOf("description") >= 0))
|
|
2677
|
-
return D(F);
|
|
2678
|
-
if (_.length === 0) {
|
|
2679
|
-
if (R(F)) {
|
|
2680
|
-
var $ = F.name ? ": " + F.name : "";
|
|
2681
|
-
return L.stylize("[Function" + $ + "]", "special");
|
|
2682
|
-
}
|
|
2683
|
-
if (P(F))
|
|
2684
|
-
return L.stylize(RegExp.prototype.toString.call(F), "regexp");
|
|
2685
|
-
if (re(F))
|
|
2686
|
-
return L.stylize(Date.prototype.toString.call(F), "date");
|
|
2687
|
-
if (fe(F))
|
|
2688
|
-
return D(F);
|
|
2689
|
-
}
|
|
2690
|
-
var ie = "", u = !1, s = ["{", "}"];
|
|
2691
|
-
if (X(F) && (u = !0, s = ["[", "]"]), R(F)) {
|
|
2692
|
-
var Y = F.name ? ": " + F.name : "";
|
|
2693
|
-
ie = " [Function" + Y + "]";
|
|
2694
|
-
}
|
|
2695
|
-
if (P(F) && (ie = " " + RegExp.prototype.toString.call(F)), re(F) && (ie = " " + Date.prototype.toUTCString.call(F)), fe(F) && (ie = " " + D(F)), _.length === 0 && (!u || F.length == 0))
|
|
2696
|
-
return s[0] + ie + s[1];
|
|
2697
|
-
if (H < 0)
|
|
2698
|
-
return P(F) ? L.stylize(RegExp.prototype.toString.call(F), "regexp") : L.stylize("[Object]", "special");
|
|
2699
|
-
L.seen.push(F);
|
|
2700
|
-
var te;
|
|
2701
|
-
return u ? te = Z(L, F, H, k, _) : te = _.map(function(de) {
|
|
2702
|
-
return z(L, F, H, k, de, u);
|
|
2703
|
-
}), L.seen.pop(), Q(te, ie, s);
|
|
2704
|
-
}
|
|
2705
|
-
function x(L, F) {
|
|
2706
|
-
if (U(F))
|
|
2707
|
-
return L.stylize("undefined", "undefined");
|
|
2708
|
-
if (b(F)) {
|
|
2709
|
-
var H = "'" + JSON.stringify(F).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
2710
|
-
return L.stylize(H, "string");
|
|
2711
|
-
}
|
|
2712
|
-
if (w(F))
|
|
2713
|
-
return L.stylize("" + F, "number");
|
|
2714
|
-
if (d(F))
|
|
2715
|
-
return L.stylize("" + F, "boolean");
|
|
2716
|
-
if (S(F))
|
|
2717
|
-
return L.stylize("null", "null");
|
|
2718
|
-
}
|
|
2719
|
-
function D(L) {
|
|
2720
|
-
return "[" + Error.prototype.toString.call(L) + "]";
|
|
2721
|
-
}
|
|
2722
|
-
function Z(L, F, H, ue, E) {
|
|
2723
|
-
for (var _ = [], k = 0, $ = F.length; k < $; ++k)
|
|
2724
|
-
Re(F, String(k)) ? _.push(z(
|
|
2725
|
-
L,
|
|
2726
|
-
F,
|
|
2727
|
-
H,
|
|
2728
|
-
ue,
|
|
2729
|
-
String(k),
|
|
2730
|
-
!0
|
|
2731
|
-
)) : _.push("");
|
|
2732
|
-
return E.forEach(function(ie) {
|
|
2733
|
-
ie.match(/^\d+$/) || _.push(z(
|
|
2734
|
-
L,
|
|
2735
|
-
F,
|
|
2736
|
-
H,
|
|
2737
|
-
ue,
|
|
2738
|
-
ie,
|
|
2739
|
-
!0
|
|
2740
|
-
));
|
|
2741
|
-
}), _;
|
|
2742
|
-
}
|
|
2743
|
-
function z(L, F, H, ue, E, _) {
|
|
2744
|
-
var k, $, ie;
|
|
2745
|
-
if (ie = Object.getOwnPropertyDescriptor(F, E) || { value: F[E] }, ie.get ? ie.set ? $ = L.stylize("[Getter/Setter]", "special") : $ = L.stylize("[Getter]", "special") : ie.set && ($ = L.stylize("[Setter]", "special")), Re(ue, E) || (k = "[" + E + "]"), $ || (L.seen.indexOf(ie.value) < 0 ? (S(H) ? $ = l(L, ie.value, null) : $ = l(L, ie.value, H - 1), $.indexOf(`
|
|
2746
|
-
`) > -1 && (_ ? $ = $.split(`
|
|
2747
|
-
`).map(function(u) {
|
|
2748
|
-
return " " + u;
|
|
2749
|
-
}).join(`
|
|
2750
|
-
`).slice(2) : $ = `
|
|
2751
|
-
` + $.split(`
|
|
2752
|
-
`).map(function(u) {
|
|
2753
|
-
return " " + u;
|
|
2754
|
-
}).join(`
|
|
2755
|
-
`))) : $ = L.stylize("[Circular]", "special")), U(k)) {
|
|
2756
|
-
if (_ && E.match(/^\d+$/))
|
|
2757
|
-
return $;
|
|
2758
|
-
k = JSON.stringify("" + E), k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (k = k.slice(1, -1), k = L.stylize(k, "name")) : (k = k.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), k = L.stylize(k, "string"));
|
|
2759
|
-
}
|
|
2760
|
-
return k + ": " + $;
|
|
2761
|
-
}
|
|
2762
|
-
function Q(L, F, H) {
|
|
2763
|
-
var ue = L.reduce(function(E, _) {
|
|
2764
|
-
return _.indexOf(`
|
|
2765
|
-
`) >= 0, E + _.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
2766
|
-
}, 0);
|
|
2767
|
-
return ue > 60 ? H[0] + (F === "" ? "" : F + `
|
|
2768
|
-
`) + " " + L.join(`,
|
|
2769
|
-
`) + " " + H[1] : H[0] + F + " " + L.join(", ") + " " + H[1];
|
|
2770
|
-
}
|
|
2771
|
-
c.types = Ft();
|
|
2772
|
-
function X(L) {
|
|
2773
|
-
return Array.isArray(L);
|
|
2774
|
-
}
|
|
2775
|
-
c.isArray = X;
|
|
2776
|
-
function d(L) {
|
|
2777
|
-
return typeof L == "boolean";
|
|
2778
|
-
}
|
|
2779
|
-
c.isBoolean = d;
|
|
2780
|
-
function S(L) {
|
|
2781
|
-
return L === null;
|
|
2782
|
-
}
|
|
2783
|
-
c.isNull = S;
|
|
2784
|
-
function O(L) {
|
|
2785
|
-
return L == null;
|
|
2786
|
-
}
|
|
2787
|
-
c.isNullOrUndefined = O;
|
|
2788
|
-
function w(L) {
|
|
2789
|
-
return typeof L == "number";
|
|
2790
|
-
}
|
|
2791
|
-
c.isNumber = w;
|
|
2792
|
-
function b(L) {
|
|
2793
|
-
return typeof L == "string";
|
|
2794
|
-
}
|
|
2795
|
-
c.isString = b;
|
|
2796
|
-
function T(L) {
|
|
2797
|
-
return typeof L == "symbol";
|
|
2798
|
-
}
|
|
2799
|
-
c.isSymbol = T;
|
|
2800
|
-
function U(L) {
|
|
2801
|
-
return L === void 0;
|
|
2802
|
-
}
|
|
2803
|
-
c.isUndefined = U;
|
|
2804
|
-
function P(L) {
|
|
2805
|
-
return K(L) && me(L) === "[object RegExp]";
|
|
2806
|
-
}
|
|
2807
|
-
c.isRegExp = P, c.types.isRegExp = P;
|
|
2808
|
-
function K(L) {
|
|
2809
|
-
return typeof L == "object" && L !== null;
|
|
2810
|
-
}
|
|
2811
|
-
c.isObject = K;
|
|
2812
|
-
function re(L) {
|
|
2813
|
-
return K(L) && me(L) === "[object Date]";
|
|
2814
|
-
}
|
|
2815
|
-
c.isDate = re, c.types.isDate = re;
|
|
2816
|
-
function fe(L) {
|
|
2817
|
-
return K(L) && (me(L) === "[object Error]" || L instanceof Error);
|
|
2818
|
-
}
|
|
2819
|
-
c.isError = fe, c.types.isNativeError = fe;
|
|
2820
|
-
function R(L) {
|
|
2821
|
-
return typeof L == "function";
|
|
2822
|
-
}
|
|
2823
|
-
c.isFunction = R;
|
|
2824
|
-
function ge(L) {
|
|
2825
|
-
return L === null || typeof L == "boolean" || typeof L == "number" || typeof L == "string" || typeof L == "symbol" || // ES6 symbol
|
|
2826
|
-
typeof L > "u";
|
|
2827
|
-
}
|
|
2828
|
-
c.isPrimitive = ge, c.isBuffer = Zt();
|
|
2829
|
-
function me(L) {
|
|
2830
|
-
return Object.prototype.toString.call(L);
|
|
2831
|
-
}
|
|
2832
|
-
function Ee(L) {
|
|
2833
|
-
return L < 10 ? "0" + L.toString(10) : L.toString(10);
|
|
2834
|
-
}
|
|
2835
|
-
var Te = [
|
|
2836
|
-
"Jan",
|
|
2837
|
-
"Feb",
|
|
2838
|
-
"Mar",
|
|
2839
|
-
"Apr",
|
|
2840
|
-
"May",
|
|
2841
|
-
"Jun",
|
|
2842
|
-
"Jul",
|
|
2843
|
-
"Aug",
|
|
2844
|
-
"Sep",
|
|
2845
|
-
"Oct",
|
|
2846
|
-
"Nov",
|
|
2847
|
-
"Dec"
|
|
2848
|
-
];
|
|
2849
|
-
function Ue() {
|
|
2850
|
-
var L = /* @__PURE__ */ new Date(), F = [
|
|
2851
|
-
Ee(L.getHours()),
|
|
2852
|
-
Ee(L.getMinutes()),
|
|
2853
|
-
Ee(L.getSeconds())
|
|
2854
|
-
].join(":");
|
|
2855
|
-
return [L.getDate(), Te[L.getMonth()], F].join(" ");
|
|
2856
|
-
}
|
|
2857
|
-
c.log = function() {
|
|
2858
|
-
console.log("%s - %s", Ue(), c.format.apply(c, arguments));
|
|
2859
|
-
}, c.inherits = ze(), c._extend = function(L, F) {
|
|
2860
|
-
if (!F || !K(F)) return L;
|
|
2861
|
-
for (var H = Object.keys(F), ue = H.length; ue--; )
|
|
2862
|
-
L[H[ue]] = F[H[ue]];
|
|
2863
|
-
return L;
|
|
2864
|
-
};
|
|
2865
|
-
function Re(L, F) {
|
|
2866
|
-
return Object.prototype.hasOwnProperty.call(L, F);
|
|
2867
|
-
}
|
|
2868
|
-
var Ae = typeof Symbol < "u" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0;
|
|
2869
|
-
c.promisify = function(F) {
|
|
2870
|
-
if (typeof F != "function")
|
|
2871
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
2872
|
-
if (Ae && F[Ae]) {
|
|
2873
|
-
var H = F[Ae];
|
|
2874
|
-
if (typeof H != "function")
|
|
2875
|
-
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
2876
|
-
return Object.defineProperty(H, Ae, {
|
|
2877
|
-
value: H,
|
|
2878
|
-
enumerable: !1,
|
|
2879
|
-
writable: !1,
|
|
2880
|
-
configurable: !0
|
|
2881
|
-
}), H;
|
|
2882
|
-
}
|
|
2883
|
-
function H() {
|
|
2884
|
-
for (var ue, E, _ = new Promise(function(ie, u) {
|
|
2885
|
-
ue = ie, E = u;
|
|
2886
|
-
}), k = [], $ = 0; $ < arguments.length; $++)
|
|
2887
|
-
k.push(arguments[$]);
|
|
2888
|
-
k.push(function(ie, u) {
|
|
2889
|
-
ie ? E(ie) : ue(u);
|
|
2890
|
-
});
|
|
2891
|
-
try {
|
|
2892
|
-
F.apply(this, k);
|
|
2893
|
-
} catch (ie) {
|
|
2894
|
-
E(ie);
|
|
2895
|
-
}
|
|
2896
|
-
return _;
|
|
2897
|
-
}
|
|
2898
|
-
return Object.setPrototypeOf(H, Object.getPrototypeOf(F)), Ae && Object.defineProperty(H, Ae, {
|
|
2899
|
-
value: H,
|
|
2900
|
-
enumerable: !1,
|
|
2901
|
-
writable: !1,
|
|
2902
|
-
configurable: !0
|
|
2903
|
-
}), Object.defineProperties(
|
|
2904
|
-
H,
|
|
2905
|
-
v(F)
|
|
2906
|
-
);
|
|
2907
|
-
}, c.promisify.custom = Ae;
|
|
2908
|
-
function Ne(L, F) {
|
|
2909
|
-
if (!L) {
|
|
2910
|
-
var H = new Error("Promise was rejected with a falsy value");
|
|
2911
|
-
H.reason = L, L = H;
|
|
2912
|
-
}
|
|
2913
|
-
return F(L);
|
|
2914
|
-
}
|
|
2915
|
-
function Pe(L) {
|
|
2916
|
-
if (typeof L != "function")
|
|
2917
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
2918
|
-
function F() {
|
|
2919
|
-
for (var H = [], ue = 0; ue < arguments.length; ue++)
|
|
2920
|
-
H.push(arguments[ue]);
|
|
2921
|
-
var E = H.pop();
|
|
2922
|
-
if (typeof E != "function")
|
|
2923
|
-
throw new TypeError("The last argument must be of type Function");
|
|
2924
|
-
var _ = this, k = function() {
|
|
2925
|
-
return E.apply(_, arguments);
|
|
2926
|
-
};
|
|
2927
|
-
L.apply(this, H).then(
|
|
2928
|
-
function($) {
|
|
2929
|
-
pe.nextTick(k.bind(null, null, $));
|
|
2930
|
-
},
|
|
2931
|
-
function($) {
|
|
2932
|
-
pe.nextTick(Ne.bind(null, $, k));
|
|
2933
|
-
}
|
|
2934
|
-
);
|
|
2935
|
-
}
|
|
2936
|
-
return Object.setPrototypeOf(F, Object.getPrototypeOf(L)), Object.defineProperties(
|
|
2937
|
-
F,
|
|
2938
|
-
v(L)
|
|
2939
|
-
), F;
|
|
2940
|
-
}
|
|
2941
|
-
c.callbackify = Pe;
|
|
2942
|
-
})(sr)), sr;
|
|
2943
|
-
}
|
|
2944
|
-
var rr = { exports: {} }, Hr;
|
|
2945
|
-
function Qt() {
|
|
2946
|
-
return Hr || (Hr = 1, typeof Object.create == "function" ? rr.exports = function(v, C) {
|
|
2947
|
-
C && (v.super_ = C, v.prototype = Object.create(C.prototype, {
|
|
2948
|
-
constructor: {
|
|
2949
|
-
value: v,
|
|
2950
|
-
enumerable: !1,
|
|
2951
|
-
writable: !0,
|
|
2952
|
-
configurable: !0
|
|
2953
|
-
}
|
|
2954
|
-
}));
|
|
2955
|
-
} : rr.exports = function(v, C) {
|
|
2956
|
-
if (C) {
|
|
2957
|
-
v.super_ = C;
|
|
2958
|
-
var q = function() {
|
|
2959
|
-
};
|
|
2960
|
-
q.prototype = C.prototype, v.prototype = new q(), v.prototype.constructor = v;
|
|
2961
|
-
}
|
|
2962
|
-
}), rr.exports;
|
|
2963
|
-
}
|
|
2964
|
-
var Gr;
|
|
2965
|
-
function ze() {
|
|
2966
|
-
if (Gr) return er.exports;
|
|
2967
|
-
Gr = 1;
|
|
2968
|
-
try {
|
|
2969
|
-
var c = ur();
|
|
2970
|
-
if (typeof c.inherits != "function") throw "";
|
|
2971
|
-
er.exports = c.inherits;
|
|
2972
|
-
} catch {
|
|
2973
|
-
er.exports = Qt();
|
|
2974
|
-
}
|
|
2975
|
-
return er.exports;
|
|
2976
|
-
}
|
|
2977
|
-
var pr, Vr;
|
|
2978
|
-
function Et() {
|
|
2979
|
-
return Vr || (Vr = 1, pr = on()), pr;
|
|
2980
|
-
}
|
|
2981
|
-
var dr, Yr;
|
|
2982
|
-
function $t() {
|
|
2983
|
-
if (Yr) return dr;
|
|
2984
|
-
Yr = 1;
|
|
2985
|
-
function c(z, Q) {
|
|
2986
|
-
var X = Object.keys(z);
|
|
2987
|
-
if (Object.getOwnPropertySymbols) {
|
|
2988
|
-
var d = Object.getOwnPropertySymbols(z);
|
|
2989
|
-
Q && (d = d.filter(function(S) {
|
|
2990
|
-
return Object.getOwnPropertyDescriptor(z, S).enumerable;
|
|
2991
|
-
})), X.push.apply(X, d);
|
|
2992
|
-
}
|
|
2993
|
-
return X;
|
|
2994
|
-
}
|
|
2995
|
-
function v(z) {
|
|
2996
|
-
for (var Q = 1; Q < arguments.length; Q++) {
|
|
2997
|
-
var X = arguments[Q] != null ? arguments[Q] : {};
|
|
2998
|
-
Q % 2 ? c(Object(X), !0).forEach(function(d) {
|
|
2999
|
-
C(z, d, X[d]);
|
|
3000
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(z, Object.getOwnPropertyDescriptors(X)) : c(Object(X)).forEach(function(d) {
|
|
3001
|
-
Object.defineProperty(z, d, Object.getOwnPropertyDescriptor(X, d));
|
|
3002
|
-
});
|
|
3003
|
-
}
|
|
3004
|
-
return z;
|
|
3005
|
-
}
|
|
3006
|
-
function C(z, Q, X) {
|
|
3007
|
-
return Q = y(Q), Q in z ? Object.defineProperty(z, Q, { value: X, enumerable: !0, configurable: !0, writable: !0 }) : z[Q] = X, z;
|
|
3008
|
-
}
|
|
3009
|
-
function q(z, Q) {
|
|
3010
|
-
if (!(z instanceof Q))
|
|
3011
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3012
|
-
}
|
|
3013
|
-
function J(z, Q) {
|
|
3014
|
-
for (var X = 0; X < Q.length; X++) {
|
|
3015
|
-
var d = Q[X];
|
|
3016
|
-
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(z, y(d.key), d);
|
|
3017
|
-
}
|
|
3018
|
-
}
|
|
3019
|
-
function h(z, Q, X) {
|
|
3020
|
-
return Q && J(z.prototype, Q), Object.defineProperty(z, "prototype", { writable: !1 }), z;
|
|
3021
|
-
}
|
|
3022
|
-
function y(z) {
|
|
3023
|
-
var Q = M(z, "string");
|
|
3024
|
-
return typeof Q == "symbol" ? Q : String(Q);
|
|
3025
|
-
}
|
|
3026
|
-
function M(z, Q) {
|
|
3027
|
-
if (typeof z != "object" || z === null) return z;
|
|
3028
|
-
var X = z[Symbol.toPrimitive];
|
|
3029
|
-
if (X !== void 0) {
|
|
3030
|
-
var d = X.call(z, Q);
|
|
3031
|
-
if (typeof d != "object") return d;
|
|
3032
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3033
|
-
}
|
|
3034
|
-
return String(z);
|
|
3035
|
-
}
|
|
3036
|
-
var g = ir(), j = g.Buffer, l = ur(), x = l.inspect, D = x && x.custom || "inspect";
|
|
3037
|
-
function Z(z, Q, X) {
|
|
3038
|
-
j.prototype.copy.call(z, Q, X);
|
|
3039
|
-
}
|
|
3040
|
-
return dr = /* @__PURE__ */ (function() {
|
|
3041
|
-
function z() {
|
|
3042
|
-
q(this, z), this.head = null, this.tail = null, this.length = 0;
|
|
3043
|
-
}
|
|
3044
|
-
return h(z, [{
|
|
3045
|
-
key: "push",
|
|
3046
|
-
value: function(X) {
|
|
3047
|
-
var d = {
|
|
3048
|
-
data: X,
|
|
3049
|
-
next: null
|
|
3050
|
-
};
|
|
3051
|
-
this.length > 0 ? this.tail.next = d : this.head = d, this.tail = d, ++this.length;
|
|
3052
|
-
}
|
|
3053
|
-
}, {
|
|
3054
|
-
key: "unshift",
|
|
3055
|
-
value: function(X) {
|
|
3056
|
-
var d = {
|
|
3057
|
-
data: X,
|
|
3058
|
-
next: this.head
|
|
3059
|
-
};
|
|
3060
|
-
this.length === 0 && (this.tail = d), this.head = d, ++this.length;
|
|
3061
|
-
}
|
|
3062
|
-
}, {
|
|
3063
|
-
key: "shift",
|
|
3064
|
-
value: function() {
|
|
3065
|
-
if (this.length !== 0) {
|
|
3066
|
-
var X = this.head.data;
|
|
3067
|
-
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, X;
|
|
3068
|
-
}
|
|
3069
|
-
}
|
|
3070
|
-
}, {
|
|
3071
|
-
key: "clear",
|
|
3072
|
-
value: function() {
|
|
3073
|
-
this.head = this.tail = null, this.length = 0;
|
|
3074
|
-
}
|
|
3075
|
-
}, {
|
|
3076
|
-
key: "join",
|
|
3077
|
-
value: function(X) {
|
|
3078
|
-
if (this.length === 0) return "";
|
|
3079
|
-
for (var d = this.head, S = "" + d.data; d = d.next; ) S += X + d.data;
|
|
3080
|
-
return S;
|
|
3081
|
-
}
|
|
3082
|
-
}, {
|
|
3083
|
-
key: "concat",
|
|
3084
|
-
value: function(X) {
|
|
3085
|
-
if (this.length === 0) return j.alloc(0);
|
|
3086
|
-
for (var d = j.allocUnsafe(X >>> 0), S = this.head, O = 0; S; )
|
|
3087
|
-
Z(S.data, d, O), O += S.data.length, S = S.next;
|
|
3088
|
-
return d;
|
|
3089
|
-
}
|
|
3090
|
-
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
3091
|
-
}, {
|
|
3092
|
-
key: "consume",
|
|
3093
|
-
value: function(X, d) {
|
|
3094
|
-
var S;
|
|
3095
|
-
return X < this.head.data.length ? (S = this.head.data.slice(0, X), this.head.data = this.head.data.slice(X)) : X === this.head.data.length ? S = this.shift() : S = d ? this._getString(X) : this._getBuffer(X), S;
|
|
3096
|
-
}
|
|
3097
|
-
}, {
|
|
3098
|
-
key: "first",
|
|
3099
|
-
value: function() {
|
|
3100
|
-
return this.head.data;
|
|
3101
|
-
}
|
|
3102
|
-
// Consumes a specified amount of characters from the buffered data.
|
|
3103
|
-
}, {
|
|
3104
|
-
key: "_getString",
|
|
3105
|
-
value: function(X) {
|
|
3106
|
-
var d = this.head, S = 1, O = d.data;
|
|
3107
|
-
for (X -= O.length; d = d.next; ) {
|
|
3108
|
-
var w = d.data, b = X > w.length ? w.length : X;
|
|
3109
|
-
if (b === w.length ? O += w : O += w.slice(0, X), X -= b, X === 0) {
|
|
3110
|
-
b === w.length ? (++S, d.next ? this.head = d.next : this.head = this.tail = null) : (this.head = d, d.data = w.slice(b));
|
|
3111
|
-
break;
|
|
3112
|
-
}
|
|
3113
|
-
++S;
|
|
3114
|
-
}
|
|
3115
|
-
return this.length -= S, O;
|
|
3116
|
-
}
|
|
3117
|
-
// Consumes a specified amount of bytes from the buffered data.
|
|
3118
|
-
}, {
|
|
3119
|
-
key: "_getBuffer",
|
|
3120
|
-
value: function(X) {
|
|
3121
|
-
var d = j.allocUnsafe(X), S = this.head, O = 1;
|
|
3122
|
-
for (S.data.copy(d), X -= S.data.length; S = S.next; ) {
|
|
3123
|
-
var w = S.data, b = X > w.length ? w.length : X;
|
|
3124
|
-
if (w.copy(d, d.length - X, 0, b), X -= b, X === 0) {
|
|
3125
|
-
b === w.length ? (++O, S.next ? this.head = S.next : this.head = this.tail = null) : (this.head = S, S.data = w.slice(b));
|
|
3126
|
-
break;
|
|
3127
|
-
}
|
|
3128
|
-
++O;
|
|
3129
|
-
}
|
|
3130
|
-
return this.length -= O, d;
|
|
3131
|
-
}
|
|
3132
|
-
// Make sure the linked list only shows the minimal necessary information.
|
|
3133
|
-
}, {
|
|
3134
|
-
key: D,
|
|
3135
|
-
value: function(X, d) {
|
|
3136
|
-
return x(this, v(v({}, d), {}, {
|
|
3137
|
-
// Only inspect one level.
|
|
3138
|
-
depth: 0,
|
|
3139
|
-
// It should not recurse.
|
|
3140
|
-
customInspect: !1
|
|
3141
|
-
}));
|
|
3142
|
-
}
|
|
3143
|
-
}]), z;
|
|
3144
|
-
})(), dr;
|
|
3145
|
-
}
|
|
3146
|
-
var yr, zr;
|
|
3147
|
-
function _t() {
|
|
3148
|
-
if (zr) return yr;
|
|
3149
|
-
zr = 1;
|
|
3150
|
-
function c(y, M) {
|
|
3151
|
-
var g = this, j = this._readableState && this._readableState.destroyed, l = this._writableState && this._writableState.destroyed;
|
|
3152
|
-
return j || l ? (M ? M(y) : y && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, pe.nextTick(J, this, y)) : pe.nextTick(J, this, y)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(y || null, function(x) {
|
|
3153
|
-
!M && x ? g._writableState ? g._writableState.errorEmitted ? pe.nextTick(C, g) : (g._writableState.errorEmitted = !0, pe.nextTick(v, g, x)) : pe.nextTick(v, g, x) : M ? (pe.nextTick(C, g), M(x)) : pe.nextTick(C, g);
|
|
3154
|
-
}), this);
|
|
3155
|
-
}
|
|
3156
|
-
function v(y, M) {
|
|
3157
|
-
J(y, M), C(y);
|
|
3158
|
-
}
|
|
3159
|
-
function C(y) {
|
|
3160
|
-
y._writableState && !y._writableState.emitClose || y._readableState && !y._readableState.emitClose || y.emit("close");
|
|
3161
|
-
}
|
|
3162
|
-
function q() {
|
|
3163
|
-
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
|
|
3164
|
-
}
|
|
3165
|
-
function J(y, M) {
|
|
3166
|
-
y.emit("error", M);
|
|
3167
|
-
}
|
|
3168
|
-
function h(y, M) {
|
|
3169
|
-
var g = y._readableState, j = y._writableState;
|
|
3170
|
-
g && g.autoDestroy || j && j.autoDestroy ? y.destroy(M) : y.emit("error", M);
|
|
3171
|
-
}
|
|
3172
|
-
return yr = {
|
|
3173
|
-
destroy: c,
|
|
3174
|
-
undestroy: q,
|
|
3175
|
-
errorOrDestroy: h
|
|
3176
|
-
}, yr;
|
|
3177
|
-
}
|
|
3178
|
-
var gr = {}, Jr;
|
|
3179
|
-
function Je() {
|
|
3180
|
-
if (Jr) return gr;
|
|
3181
|
-
Jr = 1;
|
|
3182
|
-
const c = {};
|
|
3183
|
-
function v(y, M, g) {
|
|
3184
|
-
g || (g = Error);
|
|
3185
|
-
function j(x, D, Z) {
|
|
3186
|
-
return typeof M == "string" ? M : M(x, D, Z);
|
|
3187
|
-
}
|
|
3188
|
-
class l extends g {
|
|
3189
|
-
constructor(D, Z, z) {
|
|
3190
|
-
super(j(D, Z, z));
|
|
3191
|
-
}
|
|
3192
|
-
}
|
|
3193
|
-
l.prototype.name = g.name, l.prototype.code = y, c[y] = l;
|
|
3194
|
-
}
|
|
3195
|
-
function C(y, M) {
|
|
3196
|
-
if (Array.isArray(y)) {
|
|
3197
|
-
const g = y.length;
|
|
3198
|
-
return y = y.map((j) => String(j)), g > 2 ? `one of ${M} ${y.slice(0, g - 1).join(", ")}, or ` + y[g - 1] : g === 2 ? `one of ${M} ${y[0]} or ${y[1]}` : `of ${M} ${y[0]}`;
|
|
3199
|
-
} else
|
|
3200
|
-
return `of ${M} ${String(y)}`;
|
|
3201
|
-
}
|
|
3202
|
-
function q(y, M, g) {
|
|
3203
|
-
return y.substr(0, M.length) === M;
|
|
3204
|
-
}
|
|
3205
|
-
function J(y, M, g) {
|
|
3206
|
-
return (g === void 0 || g > y.length) && (g = y.length), y.substring(g - M.length, g) === M;
|
|
3207
|
-
}
|
|
3208
|
-
function h(y, M, g) {
|
|
3209
|
-
return typeof g != "number" && (g = 0), g + M.length > y.length ? !1 : y.indexOf(M, g) !== -1;
|
|
3210
|
-
}
|
|
3211
|
-
return v("ERR_INVALID_OPT_VALUE", function(y, M) {
|
|
3212
|
-
return 'The value "' + M + '" is invalid for option "' + y + '"';
|
|
3213
|
-
}, TypeError), v("ERR_INVALID_ARG_TYPE", function(y, M, g) {
|
|
3214
|
-
let j;
|
|
3215
|
-
typeof M == "string" && q(M, "not ") ? (j = "must not be", M = M.replace(/^not /, "")) : j = "must be";
|
|
3216
|
-
let l;
|
|
3217
|
-
if (J(y, " argument"))
|
|
3218
|
-
l = `The ${y} ${j} ${C(M, "type")}`;
|
|
3219
|
-
else {
|
|
3220
|
-
const x = h(y, ".") ? "property" : "argument";
|
|
3221
|
-
l = `The "${y}" ${x} ${j} ${C(M, "type")}`;
|
|
3222
|
-
}
|
|
3223
|
-
return l += `. Received type ${typeof g}`, l;
|
|
3224
|
-
}, TypeError), v("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), v("ERR_METHOD_NOT_IMPLEMENTED", function(y) {
|
|
3225
|
-
return "The " + y + " method is not implemented";
|
|
3226
|
-
}), v("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), v("ERR_STREAM_DESTROYED", function(y) {
|
|
3227
|
-
return "Cannot call " + y + " after a stream was destroyed";
|
|
3228
|
-
}), v("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), v("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), v("ERR_STREAM_WRITE_AFTER_END", "write after end"), v("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), v("ERR_UNKNOWN_ENCODING", function(y) {
|
|
3229
|
-
return "Unknown encoding: " + y;
|
|
3230
|
-
}, TypeError), v("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), gr.codes = c, gr;
|
|
3231
|
-
}
|
|
3232
|
-
var wr, Xr;
|
|
3233
|
-
function Bt() {
|
|
3234
|
-
if (Xr) return wr;
|
|
3235
|
-
Xr = 1;
|
|
3236
|
-
var c = Je().codes.ERR_INVALID_OPT_VALUE;
|
|
3237
|
-
function v(q, J, h) {
|
|
3238
|
-
return q.highWaterMark != null ? q.highWaterMark : J ? q[h] : null;
|
|
3239
|
-
}
|
|
3240
|
-
function C(q, J, h, y) {
|
|
3241
|
-
var M = v(J, y, h);
|
|
3242
|
-
if (M != null) {
|
|
3243
|
-
if (!(isFinite(M) && Math.floor(M) === M) || M < 0) {
|
|
3244
|
-
var g = y ? h : "highWaterMark";
|
|
3245
|
-
throw new c(g, M);
|
|
3246
|
-
}
|
|
3247
|
-
return Math.floor(M);
|
|
3248
|
-
}
|
|
3249
|
-
return q.objectMode ? 16 : 16 * 1024;
|
|
3250
|
-
}
|
|
3251
|
-
return wr = {
|
|
3252
|
-
getHighWaterMark: C
|
|
3253
|
-
}, wr;
|
|
3254
|
-
}
|
|
3255
|
-
var br, Kr;
|
|
3256
|
-
function vt() {
|
|
3257
|
-
if (Kr) return br;
|
|
3258
|
-
Kr = 1, br = P;
|
|
3259
|
-
function c(E) {
|
|
3260
|
-
var _ = this;
|
|
3261
|
-
this.next = null, this.entry = null, this.finish = function() {
|
|
3262
|
-
ue(_, E);
|
|
3263
|
-
};
|
|
3264
|
-
}
|
|
3265
|
-
var v;
|
|
3266
|
-
P.WritableState = T;
|
|
3267
|
-
var C = {
|
|
3268
|
-
deprecate: Ut()
|
|
3269
|
-
}, q = Et(), J = ir().Buffer, h = (typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
3270
|
-
};
|
|
3271
|
-
function y(E) {
|
|
3272
|
-
return J.from(E);
|
|
3273
|
-
}
|
|
3274
|
-
function M(E) {
|
|
3275
|
-
return J.isBuffer(E) || E instanceof h;
|
|
3276
|
-
}
|
|
3277
|
-
var g = _t(), j = Bt(), l = j.getHighWaterMark, x = Je().codes, D = x.ERR_INVALID_ARG_TYPE, Z = x.ERR_METHOD_NOT_IMPLEMENTED, z = x.ERR_MULTIPLE_CALLBACK, Q = x.ERR_STREAM_CANNOT_PIPE, X = x.ERR_STREAM_DESTROYED, d = x.ERR_STREAM_NULL_VALUES, S = x.ERR_STREAM_WRITE_AFTER_END, O = x.ERR_UNKNOWN_ENCODING, w = g.errorOrDestroy;
|
|
3278
|
-
ze()(P, q);
|
|
3279
|
-
function b() {
|
|
3280
|
-
}
|
|
3281
|
-
function T(E, _, k) {
|
|
3282
|
-
v = v || Ze(), E = E || {}, typeof k != "boolean" && (k = _ instanceof v), this.objectMode = !!E.objectMode, k && (this.objectMode = this.objectMode || !!E.writableObjectMode), this.highWaterMark = l(this, E, "writableHighWaterMark", k), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
3283
|
-
var $ = E.decodeStrings === !1;
|
|
3284
|
-
this.decodeStrings = !$, this.defaultEncoding = E.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ie) {
|
|
3285
|
-
Te(_, ie);
|
|
3286
|
-
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = E.emitClose !== !1, this.autoDestroy = !!E.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new c(this);
|
|
3287
|
-
}
|
|
3288
|
-
T.prototype.getBuffer = function() {
|
|
3289
|
-
for (var _ = this.bufferedRequest, k = []; _; )
|
|
3290
|
-
k.push(_), _ = _.next;
|
|
3291
|
-
return k;
|
|
3292
|
-
}, (function() {
|
|
3293
|
-
try {
|
|
3294
|
-
Object.defineProperty(T.prototype, "buffer", {
|
|
3295
|
-
get: C.deprecate(function() {
|
|
3296
|
-
return this.getBuffer();
|
|
3297
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
3298
|
-
});
|
|
3299
|
-
} catch {
|
|
3300
|
-
}
|
|
3301
|
-
})();
|
|
3302
|
-
var U;
|
|
3303
|
-
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (U = Function.prototype[Symbol.hasInstance], Object.defineProperty(P, Symbol.hasInstance, {
|
|
3304
|
-
value: function(_) {
|
|
3305
|
-
return U.call(this, _) ? !0 : this !== P ? !1 : _ && _._writableState instanceof T;
|
|
3306
|
-
}
|
|
3307
|
-
})) : U = function(_) {
|
|
3308
|
-
return _ instanceof this;
|
|
3309
|
-
};
|
|
3310
|
-
function P(E) {
|
|
3311
|
-
v = v || Ze();
|
|
3312
|
-
var _ = this instanceof v;
|
|
3313
|
-
if (!_ && !U.call(P, this)) return new P(E);
|
|
3314
|
-
this._writableState = new T(E, this, _), this.writable = !0, E && (typeof E.write == "function" && (this._write = E.write), typeof E.writev == "function" && (this._writev = E.writev), typeof E.destroy == "function" && (this._destroy = E.destroy), typeof E.final == "function" && (this._final = E.final)), q.call(this);
|
|
3315
|
-
}
|
|
3316
|
-
P.prototype.pipe = function() {
|
|
3317
|
-
w(this, new Q());
|
|
3318
|
-
};
|
|
3319
|
-
function K(E, _) {
|
|
3320
|
-
var k = new S();
|
|
3321
|
-
w(E, k), pe.nextTick(_, k);
|
|
3322
|
-
}
|
|
3323
|
-
function re(E, _, k, $) {
|
|
3324
|
-
var ie;
|
|
3325
|
-
return k === null ? ie = new d() : typeof k != "string" && !_.objectMode && (ie = new D("chunk", ["string", "Buffer"], k)), ie ? (w(E, ie), pe.nextTick($, ie), !1) : !0;
|
|
3326
|
-
}
|
|
3327
|
-
P.prototype.write = function(E, _, k) {
|
|
3328
|
-
var $ = this._writableState, ie = !1, u = !$.objectMode && M(E);
|
|
3329
|
-
return u && !J.isBuffer(E) && (E = y(E)), typeof _ == "function" && (k = _, _ = null), u ? _ = "buffer" : _ || (_ = $.defaultEncoding), typeof k != "function" && (k = b), $.ending ? K(this, k) : (u || re(this, $, E, k)) && ($.pendingcb++, ie = R(this, $, u, E, _, k)), ie;
|
|
3330
|
-
}, P.prototype.cork = function() {
|
|
3331
|
-
this._writableState.corked++;
|
|
3332
|
-
}, P.prototype.uncork = function() {
|
|
3333
|
-
var E = this._writableState;
|
|
3334
|
-
E.corked && (E.corked--, !E.writing && !E.corked && !E.bufferProcessing && E.bufferedRequest && Ae(this, E));
|
|
3335
|
-
}, P.prototype.setDefaultEncoding = function(_) {
|
|
3336
|
-
if (typeof _ == "string" && (_ = _.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((_ + "").toLowerCase()) > -1)) throw new O(_);
|
|
3337
|
-
return this._writableState.defaultEncoding = _, this;
|
|
3338
|
-
}, Object.defineProperty(P.prototype, "writableBuffer", {
|
|
3339
|
-
// making it explicit this property is not enumerable
|
|
3340
|
-
// because otherwise some prototype manipulation in
|
|
3341
|
-
// userland will fail
|
|
3342
|
-
enumerable: !1,
|
|
3343
|
-
get: function() {
|
|
3344
|
-
return this._writableState && this._writableState.getBuffer();
|
|
3345
|
-
}
|
|
3346
|
-
});
|
|
3347
|
-
function fe(E, _, k) {
|
|
3348
|
-
return !E.objectMode && E.decodeStrings !== !1 && typeof _ == "string" && (_ = J.from(_, k)), _;
|
|
3349
|
-
}
|
|
3350
|
-
Object.defineProperty(P.prototype, "writableHighWaterMark", {
|
|
3351
|
-
// making it explicit this property is not enumerable
|
|
3352
|
-
// because otherwise some prototype manipulation in
|
|
3353
|
-
// userland will fail
|
|
3354
|
-
enumerable: !1,
|
|
3355
|
-
get: function() {
|
|
3356
|
-
return this._writableState.highWaterMark;
|
|
3357
|
-
}
|
|
3358
|
-
});
|
|
3359
|
-
function R(E, _, k, $, ie, u) {
|
|
3360
|
-
if (!k) {
|
|
3361
|
-
var s = fe(_, $, ie);
|
|
3362
|
-
$ !== s && (k = !0, ie = "buffer", $ = s);
|
|
3363
|
-
}
|
|
3364
|
-
var Y = _.objectMode ? 1 : $.length;
|
|
3365
|
-
_.length += Y;
|
|
3366
|
-
var te = _.length < _.highWaterMark;
|
|
3367
|
-
if (te || (_.needDrain = !0), _.writing || _.corked) {
|
|
3368
|
-
var de = _.lastBufferedRequest;
|
|
3369
|
-
_.lastBufferedRequest = {
|
|
3370
|
-
chunk: $,
|
|
3371
|
-
encoding: ie,
|
|
3372
|
-
isBuf: k,
|
|
3373
|
-
callback: u,
|
|
3374
|
-
next: null
|
|
3375
|
-
}, de ? de.next = _.lastBufferedRequest : _.bufferedRequest = _.lastBufferedRequest, _.bufferedRequestCount += 1;
|
|
3376
|
-
} else
|
|
3377
|
-
ge(E, _, !1, Y, $, ie, u);
|
|
3378
|
-
return te;
|
|
3379
|
-
}
|
|
3380
|
-
function ge(E, _, k, $, ie, u, s) {
|
|
3381
|
-
_.writelen = $, _.writecb = s, _.writing = !0, _.sync = !0, _.destroyed ? _.onwrite(new X("write")) : k ? E._writev(ie, _.onwrite) : E._write(ie, u, _.onwrite), _.sync = !1;
|
|
3382
|
-
}
|
|
3383
|
-
function me(E, _, k, $, ie) {
|
|
3384
|
-
--_.pendingcb, k ? (pe.nextTick(ie, $), pe.nextTick(F, E, _), E._writableState.errorEmitted = !0, w(E, $)) : (ie($), E._writableState.errorEmitted = !0, w(E, $), F(E, _));
|
|
3385
|
-
}
|
|
3386
|
-
function Ee(E) {
|
|
3387
|
-
E.writing = !1, E.writecb = null, E.length -= E.writelen, E.writelen = 0;
|
|
3388
|
-
}
|
|
3389
|
-
function Te(E, _) {
|
|
3390
|
-
var k = E._writableState, $ = k.sync, ie = k.writecb;
|
|
3391
|
-
if (typeof ie != "function") throw new z();
|
|
3392
|
-
if (Ee(k), _) me(E, k, $, _, ie);
|
|
3393
|
-
else {
|
|
3394
|
-
var u = Ne(k) || E.destroyed;
|
|
3395
|
-
!u && !k.corked && !k.bufferProcessing && k.bufferedRequest && Ae(E, k), $ ? pe.nextTick(Ue, E, k, u, ie) : Ue(E, k, u, ie);
|
|
3396
|
-
}
|
|
3397
|
-
}
|
|
3398
|
-
function Ue(E, _, k, $) {
|
|
3399
|
-
k || Re(E, _), _.pendingcb--, $(), F(E, _);
|
|
3400
|
-
}
|
|
3401
|
-
function Re(E, _) {
|
|
3402
|
-
_.length === 0 && _.needDrain && (_.needDrain = !1, E.emit("drain"));
|
|
3403
|
-
}
|
|
3404
|
-
function Ae(E, _) {
|
|
3405
|
-
_.bufferProcessing = !0;
|
|
3406
|
-
var k = _.bufferedRequest;
|
|
3407
|
-
if (E._writev && k && k.next) {
|
|
3408
|
-
var $ = _.bufferedRequestCount, ie = new Array($), u = _.corkedRequestsFree;
|
|
3409
|
-
u.entry = k;
|
|
3410
|
-
for (var s = 0, Y = !0; k; )
|
|
3411
|
-
ie[s] = k, k.isBuf || (Y = !1), k = k.next, s += 1;
|
|
3412
|
-
ie.allBuffers = Y, ge(E, _, !0, _.length, ie, "", u.finish), _.pendingcb++, _.lastBufferedRequest = null, u.next ? (_.corkedRequestsFree = u.next, u.next = null) : _.corkedRequestsFree = new c(_), _.bufferedRequestCount = 0;
|
|
3413
|
-
} else {
|
|
3414
|
-
for (; k; ) {
|
|
3415
|
-
var te = k.chunk, de = k.encoding, ae = k.callback, ce = _.objectMode ? 1 : te.length;
|
|
3416
|
-
if (ge(E, _, !1, ce, te, de, ae), k = k.next, _.bufferedRequestCount--, _.writing)
|
|
3417
|
-
break;
|
|
3418
|
-
}
|
|
3419
|
-
k === null && (_.lastBufferedRequest = null);
|
|
3420
|
-
}
|
|
3421
|
-
_.bufferedRequest = k, _.bufferProcessing = !1;
|
|
3422
|
-
}
|
|
3423
|
-
P.prototype._write = function(E, _, k) {
|
|
3424
|
-
k(new Z("_write()"));
|
|
3425
|
-
}, P.prototype._writev = null, P.prototype.end = function(E, _, k) {
|
|
3426
|
-
var $ = this._writableState;
|
|
3427
|
-
return typeof E == "function" ? (k = E, E = null, _ = null) : typeof _ == "function" && (k = _, _ = null), E != null && this.write(E, _), $.corked && ($.corked = 1, this.uncork()), $.ending || H(this, $, k), this;
|
|
3428
|
-
}, Object.defineProperty(P.prototype, "writableLength", {
|
|
3429
|
-
// making it explicit this property is not enumerable
|
|
3430
|
-
// because otherwise some prototype manipulation in
|
|
3431
|
-
// userland will fail
|
|
3432
|
-
enumerable: !1,
|
|
3433
|
-
get: function() {
|
|
3434
|
-
return this._writableState.length;
|
|
3435
|
-
}
|
|
3436
|
-
});
|
|
3437
|
-
function Ne(E) {
|
|
3438
|
-
return E.ending && E.length === 0 && E.bufferedRequest === null && !E.finished && !E.writing;
|
|
3439
|
-
}
|
|
3440
|
-
function Pe(E, _) {
|
|
3441
|
-
E._final(function(k) {
|
|
3442
|
-
_.pendingcb--, k && w(E, k), _.prefinished = !0, E.emit("prefinish"), F(E, _);
|
|
3443
|
-
});
|
|
3444
|
-
}
|
|
3445
|
-
function L(E, _) {
|
|
3446
|
-
!_.prefinished && !_.finalCalled && (typeof E._final == "function" && !_.destroyed ? (_.pendingcb++, _.finalCalled = !0, pe.nextTick(Pe, E, _)) : (_.prefinished = !0, E.emit("prefinish")));
|
|
3447
|
-
}
|
|
3448
|
-
function F(E, _) {
|
|
3449
|
-
var k = Ne(_);
|
|
3450
|
-
if (k && (L(E, _), _.pendingcb === 0 && (_.finished = !0, E.emit("finish"), _.autoDestroy))) {
|
|
3451
|
-
var $ = E._readableState;
|
|
3452
|
-
(!$ || $.autoDestroy && $.endEmitted) && E.destroy();
|
|
3453
|
-
}
|
|
3454
|
-
return k;
|
|
3455
|
-
}
|
|
3456
|
-
function H(E, _, k) {
|
|
3457
|
-
_.ending = !0, F(E, _), k && (_.finished ? pe.nextTick(k) : E.once("finish", k)), _.ended = !0, E.writable = !1;
|
|
3458
|
-
}
|
|
3459
|
-
function ue(E, _, k) {
|
|
3460
|
-
var $ = E.entry;
|
|
3461
|
-
for (E.entry = null; $; ) {
|
|
3462
|
-
var ie = $.callback;
|
|
3463
|
-
_.pendingcb--, ie(k), $ = $.next;
|
|
3464
|
-
}
|
|
3465
|
-
_.corkedRequestsFree.next = E;
|
|
3466
|
-
}
|
|
3467
|
-
return Object.defineProperty(P.prototype, "destroyed", {
|
|
3468
|
-
// making it explicit this property is not enumerable
|
|
3469
|
-
// because otherwise some prototype manipulation in
|
|
3470
|
-
// userland will fail
|
|
3471
|
-
enumerable: !1,
|
|
3472
|
-
get: function() {
|
|
3473
|
-
return this._writableState === void 0 ? !1 : this._writableState.destroyed;
|
|
3474
|
-
},
|
|
3475
|
-
set: function(_) {
|
|
3476
|
-
this._writableState && (this._writableState.destroyed = _);
|
|
3477
|
-
}
|
|
3478
|
-
}), P.prototype.destroy = g.destroy, P.prototype._undestroy = g.undestroy, P.prototype._destroy = function(E, _) {
|
|
3479
|
-
_(E);
|
|
3480
|
-
}, br;
|
|
3481
|
-
}
|
|
3482
|
-
var mr, Zr;
|
|
3483
|
-
function Ze() {
|
|
3484
|
-
if (Zr) return mr;
|
|
3485
|
-
Zr = 1;
|
|
3486
|
-
var c = Object.keys || function(j) {
|
|
3487
|
-
var l = [];
|
|
3488
|
-
for (var x in j) l.push(x);
|
|
3489
|
-
return l;
|
|
3490
|
-
};
|
|
3491
|
-
mr = y;
|
|
3492
|
-
var v = Rt(), C = vt();
|
|
3493
|
-
ze()(y, v);
|
|
3494
|
-
for (var q = c(C.prototype), J = 0; J < q.length; J++) {
|
|
3495
|
-
var h = q[J];
|
|
3496
|
-
y.prototype[h] || (y.prototype[h] = C.prototype[h]);
|
|
3497
|
-
}
|
|
3498
|
-
function y(j) {
|
|
3499
|
-
if (!(this instanceof y)) return new y(j);
|
|
3500
|
-
v.call(this, j), C.call(this, j), this.allowHalfOpen = !0, j && (j.readable === !1 && (this.readable = !1), j.writable === !1 && (this.writable = !1), j.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", M)));
|
|
3501
|
-
}
|
|
3502
|
-
Object.defineProperty(y.prototype, "writableHighWaterMark", {
|
|
3503
|
-
// making it explicit this property is not enumerable
|
|
3504
|
-
// because otherwise some prototype manipulation in
|
|
3505
|
-
// userland will fail
|
|
3506
|
-
enumerable: !1,
|
|
3507
|
-
get: function() {
|
|
3508
|
-
return this._writableState.highWaterMark;
|
|
3509
|
-
}
|
|
3510
|
-
}), Object.defineProperty(y.prototype, "writableBuffer", {
|
|
3511
|
-
// making it explicit this property is not enumerable
|
|
3512
|
-
// because otherwise some prototype manipulation in
|
|
3513
|
-
// userland will fail
|
|
3514
|
-
enumerable: !1,
|
|
3515
|
-
get: function() {
|
|
3516
|
-
return this._writableState && this._writableState.getBuffer();
|
|
3517
|
-
}
|
|
3518
|
-
}), Object.defineProperty(y.prototype, "writableLength", {
|
|
3519
|
-
// making it explicit this property is not enumerable
|
|
3520
|
-
// because otherwise some prototype manipulation in
|
|
3521
|
-
// userland will fail
|
|
3522
|
-
enumerable: !1,
|
|
3523
|
-
get: function() {
|
|
3524
|
-
return this._writableState.length;
|
|
3525
|
-
}
|
|
3526
|
-
});
|
|
3527
|
-
function M() {
|
|
3528
|
-
this._writableState.ended || pe.nextTick(g, this);
|
|
3529
|
-
}
|
|
3530
|
-
function g(j) {
|
|
3531
|
-
j.end();
|
|
3532
|
-
}
|
|
3533
|
-
return Object.defineProperty(y.prototype, "destroyed", {
|
|
3534
|
-
// making it explicit this property is not enumerable
|
|
3535
|
-
// because otherwise some prototype manipulation in
|
|
3536
|
-
// userland will fail
|
|
3537
|
-
enumerable: !1,
|
|
3538
|
-
get: function() {
|
|
3539
|
-
return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
|
|
3540
|
-
},
|
|
3541
|
-
set: function(l) {
|
|
3542
|
-
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = l, this._writableState.destroyed = l);
|
|
3543
|
-
}
|
|
3544
|
-
}), mr;
|
|
3545
|
-
}
|
|
3546
|
-
var Er = {}, tr = { exports: {} };
|
|
3547
|
-
var Qr;
|
|
3548
|
-
function St() {
|
|
3549
|
-
return Qr || (Qr = 1, (function(c, v) {
|
|
3550
|
-
var C = ir(), q = C.Buffer;
|
|
3551
|
-
function J(y, M) {
|
|
3552
|
-
for (var g in y)
|
|
3553
|
-
M[g] = y[g];
|
|
3554
|
-
}
|
|
3555
|
-
q.from && q.alloc && q.allocUnsafe && q.allocUnsafeSlow ? c.exports = C : (J(C, v), v.Buffer = h);
|
|
3556
|
-
function h(y, M, g) {
|
|
3557
|
-
return q(y, M, g);
|
|
3558
|
-
}
|
|
3559
|
-
h.prototype = Object.create(q.prototype), J(q, h), h.from = function(y, M, g) {
|
|
3560
|
-
if (typeof y == "number")
|
|
3561
|
-
throw new TypeError("Argument must not be a number");
|
|
3562
|
-
return q(y, M, g);
|
|
3563
|
-
}, h.alloc = function(y, M, g) {
|
|
3564
|
-
if (typeof y != "number")
|
|
3565
|
-
throw new TypeError("Argument must be a number");
|
|
3566
|
-
var j = q(y);
|
|
3567
|
-
return M !== void 0 ? typeof g == "string" ? j.fill(M, g) : j.fill(M) : j.fill(0), j;
|
|
3568
|
-
}, h.allocUnsafe = function(y) {
|
|
3569
|
-
if (typeof y != "number")
|
|
3570
|
-
throw new TypeError("Argument must be a number");
|
|
3571
|
-
return q(y);
|
|
3572
|
-
}, h.allocUnsafeSlow = function(y) {
|
|
3573
|
-
if (typeof y != "number")
|
|
3574
|
-
throw new TypeError("Argument must be a number");
|
|
3575
|
-
return C.SlowBuffer(y);
|
|
3576
|
-
};
|
|
3577
|
-
})(tr, tr.exports)), tr.exports;
|
|
3578
|
-
}
|
|
3579
|
-
var $r;
|
|
3580
|
-
function et() {
|
|
3581
|
-
if ($r) return Er;
|
|
3582
|
-
$r = 1;
|
|
3583
|
-
var c = St().Buffer, v = c.isEncoding || function(d) {
|
|
3584
|
-
switch (d = "" + d, d && d.toLowerCase()) {
|
|
3585
|
-
case "hex":
|
|
3586
|
-
case "utf8":
|
|
3587
|
-
case "utf-8":
|
|
3588
|
-
case "ascii":
|
|
3589
|
-
case "binary":
|
|
3590
|
-
case "base64":
|
|
3591
|
-
case "ucs2":
|
|
3592
|
-
case "ucs-2":
|
|
3593
|
-
case "utf16le":
|
|
3594
|
-
case "utf-16le":
|
|
3595
|
-
case "raw":
|
|
3596
|
-
return !0;
|
|
3597
|
-
default:
|
|
3598
|
-
return !1;
|
|
3599
|
-
}
|
|
3600
|
-
};
|
|
3601
|
-
function C(d) {
|
|
3602
|
-
if (!d) return "utf8";
|
|
3603
|
-
for (var S; ; )
|
|
3604
|
-
switch (d) {
|
|
3605
|
-
case "utf8":
|
|
3606
|
-
case "utf-8":
|
|
3607
|
-
return "utf8";
|
|
3608
|
-
case "ucs2":
|
|
3609
|
-
case "ucs-2":
|
|
3610
|
-
case "utf16le":
|
|
3611
|
-
case "utf-16le":
|
|
3612
|
-
return "utf16le";
|
|
3613
|
-
case "latin1":
|
|
3614
|
-
case "binary":
|
|
3615
|
-
return "latin1";
|
|
3616
|
-
case "base64":
|
|
3617
|
-
case "ascii":
|
|
3618
|
-
case "hex":
|
|
3619
|
-
return d;
|
|
3620
|
-
default:
|
|
3621
|
-
if (S) return;
|
|
3622
|
-
d = ("" + d).toLowerCase(), S = !0;
|
|
3623
|
-
}
|
|
3624
|
-
}
|
|
3625
|
-
function q(d) {
|
|
3626
|
-
var S = C(d);
|
|
3627
|
-
if (typeof S != "string" && (c.isEncoding === v || !v(d))) throw new Error("Unknown encoding: " + d);
|
|
3628
|
-
return S || d;
|
|
3629
|
-
}
|
|
3630
|
-
Er.StringDecoder = J;
|
|
3631
|
-
function J(d) {
|
|
3632
|
-
this.encoding = q(d);
|
|
3633
|
-
var S;
|
|
3634
|
-
switch (this.encoding) {
|
|
3635
|
-
case "utf16le":
|
|
3636
|
-
this.text = x, this.end = D, S = 4;
|
|
3637
|
-
break;
|
|
3638
|
-
case "utf8":
|
|
3639
|
-
this.fillLast = g, S = 4;
|
|
3640
|
-
break;
|
|
3641
|
-
case "base64":
|
|
3642
|
-
this.text = Z, this.end = z, S = 3;
|
|
3643
|
-
break;
|
|
3644
|
-
default:
|
|
3645
|
-
this.write = Q, this.end = X;
|
|
3646
|
-
return;
|
|
3647
|
-
}
|
|
3648
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = c.allocUnsafe(S);
|
|
3649
|
-
}
|
|
3650
|
-
J.prototype.write = function(d) {
|
|
3651
|
-
if (d.length === 0) return "";
|
|
3652
|
-
var S, O;
|
|
3653
|
-
if (this.lastNeed) {
|
|
3654
|
-
if (S = this.fillLast(d), S === void 0) return "";
|
|
3655
|
-
O = this.lastNeed, this.lastNeed = 0;
|
|
3656
|
-
} else
|
|
3657
|
-
O = 0;
|
|
3658
|
-
return O < d.length ? S ? S + this.text(d, O) : this.text(d, O) : S || "";
|
|
3659
|
-
}, J.prototype.end = l, J.prototype.text = j, J.prototype.fillLast = function(d) {
|
|
3660
|
-
if (this.lastNeed <= d.length)
|
|
3661
|
-
return d.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
3662
|
-
d.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, d.length), this.lastNeed -= d.length;
|
|
3663
|
-
};
|
|
3664
|
-
function h(d) {
|
|
3665
|
-
return d <= 127 ? 0 : d >> 5 === 6 ? 2 : d >> 4 === 14 ? 3 : d >> 3 === 30 ? 4 : d >> 6 === 2 ? -1 : -2;
|
|
3666
|
-
}
|
|
3667
|
-
function y(d, S, O) {
|
|
3668
|
-
var w = S.length - 1;
|
|
3669
|
-
if (w < O) return 0;
|
|
3670
|
-
var b = h(S[w]);
|
|
3671
|
-
return b >= 0 ? (b > 0 && (d.lastNeed = b - 1), b) : --w < O || b === -2 ? 0 : (b = h(S[w]), b >= 0 ? (b > 0 && (d.lastNeed = b - 2), b) : --w < O || b === -2 ? 0 : (b = h(S[w]), b >= 0 ? (b > 0 && (b === 2 ? b = 0 : d.lastNeed = b - 3), b) : 0));
|
|
3672
|
-
}
|
|
3673
|
-
function M(d, S, O) {
|
|
3674
|
-
if ((S[0] & 192) !== 128)
|
|
3675
|
-
return d.lastNeed = 0, "�";
|
|
3676
|
-
if (d.lastNeed > 1 && S.length > 1) {
|
|
3677
|
-
if ((S[1] & 192) !== 128)
|
|
3678
|
-
return d.lastNeed = 1, "�";
|
|
3679
|
-
if (d.lastNeed > 2 && S.length > 2 && (S[2] & 192) !== 128)
|
|
3680
|
-
return d.lastNeed = 2, "�";
|
|
3681
|
-
}
|
|
3682
|
-
}
|
|
3683
|
-
function g(d) {
|
|
3684
|
-
var S = this.lastTotal - this.lastNeed, O = M(this, d);
|
|
3685
|
-
if (O !== void 0) return O;
|
|
3686
|
-
if (this.lastNeed <= d.length)
|
|
3687
|
-
return d.copy(this.lastChar, S, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
3688
|
-
d.copy(this.lastChar, S, 0, d.length), this.lastNeed -= d.length;
|
|
3689
|
-
}
|
|
3690
|
-
function j(d, S) {
|
|
3691
|
-
var O = y(this, d, S);
|
|
3692
|
-
if (!this.lastNeed) return d.toString("utf8", S);
|
|
3693
|
-
this.lastTotal = O;
|
|
3694
|
-
var w = d.length - (O - this.lastNeed);
|
|
3695
|
-
return d.copy(this.lastChar, 0, w), d.toString("utf8", S, w);
|
|
3696
|
-
}
|
|
3697
|
-
function l(d) {
|
|
3698
|
-
var S = d && d.length ? this.write(d) : "";
|
|
3699
|
-
return this.lastNeed ? S + "�" : S;
|
|
3700
|
-
}
|
|
3701
|
-
function x(d, S) {
|
|
3702
|
-
if ((d.length - S) % 2 === 0) {
|
|
3703
|
-
var O = d.toString("utf16le", S);
|
|
3704
|
-
if (O) {
|
|
3705
|
-
var w = O.charCodeAt(O.length - 1);
|
|
3706
|
-
if (w >= 55296 && w <= 56319)
|
|
3707
|
-
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = d[d.length - 2], this.lastChar[1] = d[d.length - 1], O.slice(0, -1);
|
|
3708
|
-
}
|
|
3709
|
-
return O;
|
|
3710
|
-
}
|
|
3711
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = d[d.length - 1], d.toString("utf16le", S, d.length - 1);
|
|
3712
|
-
}
|
|
3713
|
-
function D(d) {
|
|
3714
|
-
var S = d && d.length ? this.write(d) : "";
|
|
3715
|
-
if (this.lastNeed) {
|
|
3716
|
-
var O = this.lastTotal - this.lastNeed;
|
|
3717
|
-
return S + this.lastChar.toString("utf16le", 0, O);
|
|
3718
|
-
}
|
|
3719
|
-
return S;
|
|
3720
|
-
}
|
|
3721
|
-
function Z(d, S) {
|
|
3722
|
-
var O = (d.length - S) % 3;
|
|
3723
|
-
return O === 0 ? d.toString("base64", S) : (this.lastNeed = 3 - O, this.lastTotal = 3, O === 1 ? this.lastChar[0] = d[d.length - 1] : (this.lastChar[0] = d[d.length - 2], this.lastChar[1] = d[d.length - 1]), d.toString("base64", S, d.length - O));
|
|
3724
|
-
}
|
|
3725
|
-
function z(d) {
|
|
3726
|
-
var S = d && d.length ? this.write(d) : "";
|
|
3727
|
-
return this.lastNeed ? S + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : S;
|
|
3728
|
-
}
|
|
3729
|
-
function Q(d) {
|
|
3730
|
-
return d.toString(this.encoding);
|
|
3731
|
-
}
|
|
3732
|
-
function X(d) {
|
|
3733
|
-
return d && d.length ? this.write(d) : "";
|
|
3734
|
-
}
|
|
3735
|
-
return Er;
|
|
3736
|
-
}
|
|
3737
|
-
var _r, rt;
|
|
3738
|
-
function Dr() {
|
|
3739
|
-
if (rt) return _r;
|
|
3740
|
-
rt = 1;
|
|
3741
|
-
var c = Je().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
3742
|
-
function v(h) {
|
|
3743
|
-
var y = !1;
|
|
3744
|
-
return function() {
|
|
3745
|
-
if (!y) {
|
|
3746
|
-
y = !0;
|
|
3747
|
-
for (var M = arguments.length, g = new Array(M), j = 0; j < M; j++)
|
|
3748
|
-
g[j] = arguments[j];
|
|
3749
|
-
h.apply(this, g);
|
|
3750
|
-
}
|
|
3751
|
-
};
|
|
3752
|
-
}
|
|
3753
|
-
function C() {
|
|
3754
|
-
}
|
|
3755
|
-
function q(h) {
|
|
3756
|
-
return h.setHeader && typeof h.abort == "function";
|
|
3757
|
-
}
|
|
3758
|
-
function J(h, y, M) {
|
|
3759
|
-
if (typeof y == "function") return J(h, null, y);
|
|
3760
|
-
y || (y = {}), M = v(M || C);
|
|
3761
|
-
var g = y.readable || y.readable !== !1 && h.readable, j = y.writable || y.writable !== !1 && h.writable, l = function() {
|
|
3762
|
-
h.writable || D();
|
|
3763
|
-
}, x = h._writableState && h._writableState.finished, D = function() {
|
|
3764
|
-
j = !1, x = !0, g || M.call(h);
|
|
3765
|
-
}, Z = h._readableState && h._readableState.endEmitted, z = function() {
|
|
3766
|
-
g = !1, Z = !0, j || M.call(h);
|
|
3767
|
-
}, Q = function(O) {
|
|
3768
|
-
M.call(h, O);
|
|
3769
|
-
}, X = function() {
|
|
3770
|
-
var O;
|
|
3771
|
-
if (g && !Z)
|
|
3772
|
-
return (!h._readableState || !h._readableState.ended) && (O = new c()), M.call(h, O);
|
|
3773
|
-
if (j && !x)
|
|
3774
|
-
return (!h._writableState || !h._writableState.ended) && (O = new c()), M.call(h, O);
|
|
3775
|
-
}, d = function() {
|
|
3776
|
-
h.req.on("finish", D);
|
|
3777
|
-
};
|
|
3778
|
-
return q(h) ? (h.on("complete", D), h.on("abort", X), h.req ? d() : h.on("request", d)) : j && !h._writableState && (h.on("end", l), h.on("close", l)), h.on("end", z), h.on("finish", D), y.error !== !1 && h.on("error", Q), h.on("close", X), function() {
|
|
3779
|
-
h.removeListener("complete", D), h.removeListener("abort", X), h.removeListener("request", d), h.req && h.req.removeListener("finish", D), h.removeListener("end", l), h.removeListener("close", l), h.removeListener("finish", D), h.removeListener("end", z), h.removeListener("error", Q), h.removeListener("close", X);
|
|
3780
|
-
};
|
|
3781
|
-
}
|
|
3782
|
-
return _r = J, _r;
|
|
3783
|
-
}
|
|
3784
|
-
var Br, tt;
|
|
3785
|
-
function en() {
|
|
3786
|
-
if (tt) return Br;
|
|
3787
|
-
tt = 1;
|
|
3788
|
-
var c;
|
|
3789
|
-
function v(O, w, b) {
|
|
3790
|
-
return w = C(w), w in O ? Object.defineProperty(O, w, { value: b, enumerable: !0, configurable: !0, writable: !0 }) : O[w] = b, O;
|
|
3791
|
-
}
|
|
3792
|
-
function C(O) {
|
|
3793
|
-
var w = q(O, "string");
|
|
3794
|
-
return typeof w == "symbol" ? w : String(w);
|
|
3795
|
-
}
|
|
3796
|
-
function q(O, w) {
|
|
3797
|
-
if (typeof O != "object" || O === null) return O;
|
|
3798
|
-
var b = O[Symbol.toPrimitive];
|
|
3799
|
-
if (b !== void 0) {
|
|
3800
|
-
var T = b.call(O, w);
|
|
3801
|
-
if (typeof T != "object") return T;
|
|
3802
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3803
|
-
}
|
|
3804
|
-
return (w === "string" ? String : Number)(O);
|
|
3805
|
-
}
|
|
3806
|
-
var J = Dr(), h = /* @__PURE__ */ Symbol("lastResolve"), y = /* @__PURE__ */ Symbol("lastReject"), M = /* @__PURE__ */ Symbol("error"), g = /* @__PURE__ */ Symbol("ended"), j = /* @__PURE__ */ Symbol("lastPromise"), l = /* @__PURE__ */ Symbol("handlePromise"), x = /* @__PURE__ */ Symbol("stream");
|
|
3807
|
-
function D(O, w) {
|
|
3808
|
-
return {
|
|
3809
|
-
value: O,
|
|
3810
|
-
done: w
|
|
3811
|
-
};
|
|
3812
|
-
}
|
|
3813
|
-
function Z(O) {
|
|
3814
|
-
var w = O[h];
|
|
3815
|
-
if (w !== null) {
|
|
3816
|
-
var b = O[x].read();
|
|
3817
|
-
b !== null && (O[j] = null, O[h] = null, O[y] = null, w(D(b, !1)));
|
|
3818
|
-
}
|
|
3819
|
-
}
|
|
3820
|
-
function z(O) {
|
|
3821
|
-
pe.nextTick(Z, O);
|
|
3822
|
-
}
|
|
3823
|
-
function Q(O, w) {
|
|
3824
|
-
return function(b, T) {
|
|
3825
|
-
O.then(function() {
|
|
3826
|
-
if (w[g]) {
|
|
3827
|
-
b(D(void 0, !0));
|
|
3828
|
-
return;
|
|
3829
|
-
}
|
|
3830
|
-
w[l](b, T);
|
|
3831
|
-
}, T);
|
|
3832
|
-
};
|
|
3833
|
-
}
|
|
3834
|
-
var X = Object.getPrototypeOf(function() {
|
|
3835
|
-
}), d = Object.setPrototypeOf((c = {
|
|
3836
|
-
get stream() {
|
|
3837
|
-
return this[x];
|
|
3838
|
-
},
|
|
3839
|
-
next: function() {
|
|
3840
|
-
var w = this, b = this[M];
|
|
3841
|
-
if (b !== null)
|
|
3842
|
-
return Promise.reject(b);
|
|
3843
|
-
if (this[g])
|
|
3844
|
-
return Promise.resolve(D(void 0, !0));
|
|
3845
|
-
if (this[x].destroyed)
|
|
3846
|
-
return new Promise(function(K, re) {
|
|
3847
|
-
pe.nextTick(function() {
|
|
3848
|
-
w[M] ? re(w[M]) : K(D(void 0, !0));
|
|
3849
|
-
});
|
|
3850
|
-
});
|
|
3851
|
-
var T = this[j], U;
|
|
3852
|
-
if (T)
|
|
3853
|
-
U = new Promise(Q(T, this));
|
|
3854
|
-
else {
|
|
3855
|
-
var P = this[x].read();
|
|
3856
|
-
if (P !== null)
|
|
3857
|
-
return Promise.resolve(D(P, !1));
|
|
3858
|
-
U = new Promise(this[l]);
|
|
3859
|
-
}
|
|
3860
|
-
return this[j] = U, U;
|
|
3861
|
-
}
|
|
3862
|
-
}, v(c, Symbol.asyncIterator, function() {
|
|
3863
|
-
return this;
|
|
3864
|
-
}), v(c, "return", function() {
|
|
3865
|
-
var w = this;
|
|
3866
|
-
return new Promise(function(b, T) {
|
|
3867
|
-
w[x].destroy(null, function(U) {
|
|
3868
|
-
if (U) {
|
|
3869
|
-
T(U);
|
|
3870
|
-
return;
|
|
3871
|
-
}
|
|
3872
|
-
b(D(void 0, !0));
|
|
3873
|
-
});
|
|
3874
|
-
});
|
|
3875
|
-
}), c), X), S = function(w) {
|
|
3876
|
-
var b, T = Object.create(d, (b = {}, v(b, x, {
|
|
3877
|
-
value: w,
|
|
3878
|
-
writable: !0
|
|
3879
|
-
}), v(b, h, {
|
|
3880
|
-
value: null,
|
|
3881
|
-
writable: !0
|
|
3882
|
-
}), v(b, y, {
|
|
3883
|
-
value: null,
|
|
3884
|
-
writable: !0
|
|
3885
|
-
}), v(b, M, {
|
|
3886
|
-
value: null,
|
|
3887
|
-
writable: !0
|
|
3888
|
-
}), v(b, g, {
|
|
3889
|
-
value: w._readableState.endEmitted,
|
|
3890
|
-
writable: !0
|
|
3891
|
-
}), v(b, l, {
|
|
3892
|
-
value: function(P, K) {
|
|
3893
|
-
var re = T[x].read();
|
|
3894
|
-
re ? (T[j] = null, T[h] = null, T[y] = null, P(D(re, !1))) : (T[h] = P, T[y] = K);
|
|
3895
|
-
},
|
|
3896
|
-
writable: !0
|
|
3897
|
-
}), b));
|
|
3898
|
-
return T[j] = null, J(w, function(U) {
|
|
3899
|
-
if (U && U.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
3900
|
-
var P = T[y];
|
|
3901
|
-
P !== null && (T[j] = null, T[h] = null, T[y] = null, P(U)), T[M] = U;
|
|
3902
|
-
return;
|
|
3903
|
-
}
|
|
3904
|
-
var K = T[h];
|
|
3905
|
-
K !== null && (T[j] = null, T[h] = null, T[y] = null, K(D(void 0, !0))), T[g] = !0;
|
|
3906
|
-
}), w.on("readable", z.bind(null, T)), T;
|
|
3907
|
-
};
|
|
3908
|
-
return Br = S, Br;
|
|
3909
|
-
}
|
|
3910
|
-
var vr, nt;
|
|
3911
|
-
function rn() {
|
|
3912
|
-
if (nt) return vr;
|
|
3913
|
-
nt = 1;
|
|
3914
|
-
function c(j, l, x, D, Z, z, Q) {
|
|
3915
|
-
try {
|
|
3916
|
-
var X = j[z](Q), d = X.value;
|
|
3917
|
-
} catch (S) {
|
|
3918
|
-
x(S);
|
|
3919
|
-
return;
|
|
3920
|
-
}
|
|
3921
|
-
X.done ? l(d) : Promise.resolve(d).then(D, Z);
|
|
3922
|
-
}
|
|
3923
|
-
function v(j) {
|
|
3924
|
-
return function() {
|
|
3925
|
-
var l = this, x = arguments;
|
|
3926
|
-
return new Promise(function(D, Z) {
|
|
3927
|
-
var z = j.apply(l, x);
|
|
3928
|
-
function Q(d) {
|
|
3929
|
-
c(z, D, Z, Q, X, "next", d);
|
|
3930
|
-
}
|
|
3931
|
-
function X(d) {
|
|
3932
|
-
c(z, D, Z, Q, X, "throw", d);
|
|
3933
|
-
}
|
|
3934
|
-
Q(void 0);
|
|
3935
|
-
});
|
|
3936
|
-
};
|
|
3937
|
-
}
|
|
3938
|
-
function C(j, l) {
|
|
3939
|
-
var x = Object.keys(j);
|
|
3940
|
-
if (Object.getOwnPropertySymbols) {
|
|
3941
|
-
var D = Object.getOwnPropertySymbols(j);
|
|
3942
|
-
l && (D = D.filter(function(Z) {
|
|
3943
|
-
return Object.getOwnPropertyDescriptor(j, Z).enumerable;
|
|
3944
|
-
})), x.push.apply(x, D);
|
|
3945
|
-
}
|
|
3946
|
-
return x;
|
|
3947
|
-
}
|
|
3948
|
-
function q(j) {
|
|
3949
|
-
for (var l = 1; l < arguments.length; l++) {
|
|
3950
|
-
var x = arguments[l] != null ? arguments[l] : {};
|
|
3951
|
-
l % 2 ? C(Object(x), !0).forEach(function(D) {
|
|
3952
|
-
J(j, D, x[D]);
|
|
3953
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(j, Object.getOwnPropertyDescriptors(x)) : C(Object(x)).forEach(function(D) {
|
|
3954
|
-
Object.defineProperty(j, D, Object.getOwnPropertyDescriptor(x, D));
|
|
3955
|
-
});
|
|
3956
|
-
}
|
|
3957
|
-
return j;
|
|
3958
|
-
}
|
|
3959
|
-
function J(j, l, x) {
|
|
3960
|
-
return l = h(l), l in j ? Object.defineProperty(j, l, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : j[l] = x, j;
|
|
3961
|
-
}
|
|
3962
|
-
function h(j) {
|
|
3963
|
-
var l = y(j, "string");
|
|
3964
|
-
return typeof l == "symbol" ? l : String(l);
|
|
3965
|
-
}
|
|
3966
|
-
function y(j, l) {
|
|
3967
|
-
if (typeof j != "object" || j === null) return j;
|
|
3968
|
-
var x = j[Symbol.toPrimitive];
|
|
3969
|
-
if (x !== void 0) {
|
|
3970
|
-
var D = x.call(j, l);
|
|
3971
|
-
if (typeof D != "object") return D;
|
|
3972
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3973
|
-
}
|
|
3974
|
-
return (l === "string" ? String : Number)(j);
|
|
3975
|
-
}
|
|
3976
|
-
var M = Je().codes.ERR_INVALID_ARG_TYPE;
|
|
3977
|
-
function g(j, l, x) {
|
|
3978
|
-
var D;
|
|
3979
|
-
if (l && typeof l.next == "function")
|
|
3980
|
-
D = l;
|
|
3981
|
-
else if (l && l[Symbol.asyncIterator]) D = l[Symbol.asyncIterator]();
|
|
3982
|
-
else if (l && l[Symbol.iterator]) D = l[Symbol.iterator]();
|
|
3983
|
-
else throw new M("iterable", ["Iterable"], l);
|
|
3984
|
-
var Z = new j(q({
|
|
3985
|
-
objectMode: !0
|
|
3986
|
-
}, x)), z = !1;
|
|
3987
|
-
Z._read = function() {
|
|
3988
|
-
z || (z = !0, Q());
|
|
3989
|
-
};
|
|
3990
|
-
function Q() {
|
|
3991
|
-
return X.apply(this, arguments);
|
|
3992
|
-
}
|
|
3993
|
-
function X() {
|
|
3994
|
-
return X = v(function* () {
|
|
3995
|
-
try {
|
|
3996
|
-
var d = yield D.next(), S = d.value, O = d.done;
|
|
3997
|
-
O ? Z.push(null) : Z.push(yield S) ? Q() : z = !1;
|
|
3998
|
-
} catch (w) {
|
|
3999
|
-
Z.destroy(w);
|
|
4000
|
-
}
|
|
4001
|
-
}), X.apply(this, arguments);
|
|
4002
|
-
}
|
|
4003
|
-
return Z;
|
|
4004
|
-
}
|
|
4005
|
-
return vr = g, vr;
|
|
4006
|
-
}
|
|
4007
|
-
var Sr, it;
|
|
4008
|
-
function Rt() {
|
|
4009
|
-
if (it) return Sr;
|
|
4010
|
-
it = 1, Sr = K;
|
|
4011
|
-
var c;
|
|
4012
|
-
K.ReadableState = P, bt().EventEmitter;
|
|
4013
|
-
var v = function(s, Y) {
|
|
4014
|
-
return s.listeners(Y).length;
|
|
4015
|
-
}, C = Et(), q = ir().Buffer, J = (typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
4016
|
-
};
|
|
4017
|
-
function h(u) {
|
|
4018
|
-
return q.from(u);
|
|
4019
|
-
}
|
|
4020
|
-
function y(u) {
|
|
4021
|
-
return q.isBuffer(u) || u instanceof J;
|
|
4022
|
-
}
|
|
4023
|
-
var M = ur(), g;
|
|
4024
|
-
M && M.debuglog ? g = M.debuglog("stream") : g = function() {
|
|
4025
|
-
};
|
|
4026
|
-
var j = $t(), l = _t(), x = Bt(), D = x.getHighWaterMark, Z = Je().codes, z = Z.ERR_INVALID_ARG_TYPE, Q = Z.ERR_STREAM_PUSH_AFTER_EOF, X = Z.ERR_METHOD_NOT_IMPLEMENTED, d = Z.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, S, O, w;
|
|
4027
|
-
ze()(K, C);
|
|
4028
|
-
var b = l.errorOrDestroy, T = ["error", "close", "destroy", "pause", "resume"];
|
|
4029
|
-
function U(u, s, Y) {
|
|
4030
|
-
if (typeof u.prependListener == "function") return u.prependListener(s, Y);
|
|
4031
|
-
!u._events || !u._events[s] ? u.on(s, Y) : Array.isArray(u._events[s]) ? u._events[s].unshift(Y) : u._events[s] = [Y, u._events[s]];
|
|
4032
|
-
}
|
|
4033
|
-
function P(u, s, Y) {
|
|
4034
|
-
c = c || Ze(), u = u || {}, typeof Y != "boolean" && (Y = s instanceof c), this.objectMode = !!u.objectMode, Y && (this.objectMode = this.objectMode || !!u.readableObjectMode), this.highWaterMark = D(this, u, "readableHighWaterMark", Y), this.buffer = new j(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = u.emitClose !== !1, this.autoDestroy = !!u.autoDestroy, this.destroyed = !1, this.defaultEncoding = u.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, u.encoding && (S || (S = et().StringDecoder), this.decoder = new S(u.encoding), this.encoding = u.encoding);
|
|
4035
|
-
}
|
|
4036
|
-
function K(u) {
|
|
4037
|
-
if (c = c || Ze(), !(this instanceof K)) return new K(u);
|
|
4038
|
-
var s = this instanceof c;
|
|
4039
|
-
this._readableState = new P(u, this, s), this.readable = !0, u && (typeof u.read == "function" && (this._read = u.read), typeof u.destroy == "function" && (this._destroy = u.destroy)), C.call(this);
|
|
4040
|
-
}
|
|
4041
|
-
Object.defineProperty(K.prototype, "destroyed", {
|
|
4042
|
-
// making it explicit this property is not enumerable
|
|
4043
|
-
// because otherwise some prototype manipulation in
|
|
4044
|
-
// userland will fail
|
|
4045
|
-
enumerable: !1,
|
|
4046
|
-
get: function() {
|
|
4047
|
-
return this._readableState === void 0 ? !1 : this._readableState.destroyed;
|
|
4048
|
-
},
|
|
4049
|
-
set: function(s) {
|
|
4050
|
-
this._readableState && (this._readableState.destroyed = s);
|
|
4051
|
-
}
|
|
4052
|
-
}), K.prototype.destroy = l.destroy, K.prototype._undestroy = l.undestroy, K.prototype._destroy = function(u, s) {
|
|
4053
|
-
s(u);
|
|
4054
|
-
}, K.prototype.push = function(u, s) {
|
|
4055
|
-
var Y = this._readableState, te;
|
|
4056
|
-
return Y.objectMode ? te = !0 : typeof u == "string" && (s = s || Y.defaultEncoding, s !== Y.encoding && (u = q.from(u, s), s = ""), te = !0), re(this, u, s, !1, te);
|
|
4057
|
-
}, K.prototype.unshift = function(u) {
|
|
4058
|
-
return re(this, u, null, !0, !1);
|
|
4059
|
-
};
|
|
4060
|
-
function re(u, s, Y, te, de) {
|
|
4061
|
-
g("readableAddChunk", s);
|
|
4062
|
-
var ae = u._readableState;
|
|
4063
|
-
if (s === null)
|
|
4064
|
-
ae.reading = !1, Te(u, ae);
|
|
4065
|
-
else {
|
|
4066
|
-
var ce;
|
|
4067
|
-
if (de || (ce = R(ae, s)), ce)
|
|
4068
|
-
b(u, ce);
|
|
4069
|
-
else if (ae.objectMode || s && s.length > 0)
|
|
4070
|
-
if (typeof s != "string" && !ae.objectMode && Object.getPrototypeOf(s) !== q.prototype && (s = h(s)), te)
|
|
4071
|
-
ae.endEmitted ? b(u, new d()) : fe(u, ae, s, !0);
|
|
4072
|
-
else if (ae.ended)
|
|
4073
|
-
b(u, new Q());
|
|
4074
|
-
else {
|
|
4075
|
-
if (ae.destroyed)
|
|
4076
|
-
return !1;
|
|
4077
|
-
ae.reading = !1, ae.decoder && !Y ? (s = ae.decoder.write(s), ae.objectMode || s.length !== 0 ? fe(u, ae, s, !1) : Ae(u, ae)) : fe(u, ae, s, !1);
|
|
4078
|
-
}
|
|
4079
|
-
else te || (ae.reading = !1, Ae(u, ae));
|
|
4080
|
-
}
|
|
4081
|
-
return !ae.ended && (ae.length < ae.highWaterMark || ae.length === 0);
|
|
4082
|
-
}
|
|
4083
|
-
function fe(u, s, Y, te) {
|
|
4084
|
-
s.flowing && s.length === 0 && !s.sync ? (s.awaitDrain = 0, u.emit("data", Y)) : (s.length += s.objectMode ? 1 : Y.length, te ? s.buffer.unshift(Y) : s.buffer.push(Y), s.needReadable && Ue(u)), Ae(u, s);
|
|
4085
|
-
}
|
|
4086
|
-
function R(u, s) {
|
|
4087
|
-
var Y;
|
|
4088
|
-
return !y(s) && typeof s != "string" && s !== void 0 && !u.objectMode && (Y = new z("chunk", ["string", "Buffer", "Uint8Array"], s)), Y;
|
|
4089
|
-
}
|
|
4090
|
-
K.prototype.isPaused = function() {
|
|
4091
|
-
return this._readableState.flowing === !1;
|
|
4092
|
-
}, K.prototype.setEncoding = function(u) {
|
|
4093
|
-
S || (S = et().StringDecoder);
|
|
4094
|
-
var s = new S(u);
|
|
4095
|
-
this._readableState.decoder = s, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
4096
|
-
for (var Y = this._readableState.buffer.head, te = ""; Y !== null; )
|
|
4097
|
-
te += s.write(Y.data), Y = Y.next;
|
|
4098
|
-
return this._readableState.buffer.clear(), te !== "" && this._readableState.buffer.push(te), this._readableState.length = te.length, this;
|
|
4099
|
-
};
|
|
4100
|
-
var ge = 1073741824;
|
|
4101
|
-
function me(u) {
|
|
4102
|
-
return u >= ge ? u = ge : (u--, u |= u >>> 1, u |= u >>> 2, u |= u >>> 4, u |= u >>> 8, u |= u >>> 16, u++), u;
|
|
4103
|
-
}
|
|
4104
|
-
function Ee(u, s) {
|
|
4105
|
-
return u <= 0 || s.length === 0 && s.ended ? 0 : s.objectMode ? 1 : u !== u ? s.flowing && s.length ? s.buffer.head.data.length : s.length : (u > s.highWaterMark && (s.highWaterMark = me(u)), u <= s.length ? u : s.ended ? s.length : (s.needReadable = !0, 0));
|
|
4106
|
-
}
|
|
4107
|
-
K.prototype.read = function(u) {
|
|
4108
|
-
g("read", u), u = parseInt(u, 10);
|
|
4109
|
-
var s = this._readableState, Y = u;
|
|
4110
|
-
if (u !== 0 && (s.emittedReadable = !1), u === 0 && s.needReadable && ((s.highWaterMark !== 0 ? s.length >= s.highWaterMark : s.length > 0) || s.ended))
|
|
4111
|
-
return g("read: emitReadable", s.length, s.ended), s.length === 0 && s.ended ? k(this) : Ue(this), null;
|
|
4112
|
-
if (u = Ee(u, s), u === 0 && s.ended)
|
|
4113
|
-
return s.length === 0 && k(this), null;
|
|
4114
|
-
var te = s.needReadable;
|
|
4115
|
-
g("need readable", te), (s.length === 0 || s.length - u < s.highWaterMark) && (te = !0, g("length less than watermark", te)), s.ended || s.reading ? (te = !1, g("reading or ended", te)) : te && (g("do read"), s.reading = !0, s.sync = !0, s.length === 0 && (s.needReadable = !0), this._read(s.highWaterMark), s.sync = !1, s.reading || (u = Ee(Y, s)));
|
|
4116
|
-
var de;
|
|
4117
|
-
return u > 0 ? de = _(u, s) : de = null, de === null ? (s.needReadable = s.length <= s.highWaterMark, u = 0) : (s.length -= u, s.awaitDrain = 0), s.length === 0 && (s.ended || (s.needReadable = !0), Y !== u && s.ended && k(this)), de !== null && this.emit("data", de), de;
|
|
4118
|
-
};
|
|
4119
|
-
function Te(u, s) {
|
|
4120
|
-
if (g("onEofChunk"), !s.ended) {
|
|
4121
|
-
if (s.decoder) {
|
|
4122
|
-
var Y = s.decoder.end();
|
|
4123
|
-
Y && Y.length && (s.buffer.push(Y), s.length += s.objectMode ? 1 : Y.length);
|
|
4124
|
-
}
|
|
4125
|
-
s.ended = !0, s.sync ? Ue(u) : (s.needReadable = !1, s.emittedReadable || (s.emittedReadable = !0, Re(u)));
|
|
4126
|
-
}
|
|
4127
|
-
}
|
|
4128
|
-
function Ue(u) {
|
|
4129
|
-
var s = u._readableState;
|
|
4130
|
-
g("emitReadable", s.needReadable, s.emittedReadable), s.needReadable = !1, s.emittedReadable || (g("emitReadable", s.flowing), s.emittedReadable = !0, pe.nextTick(Re, u));
|
|
4131
|
-
}
|
|
4132
|
-
function Re(u) {
|
|
4133
|
-
var s = u._readableState;
|
|
4134
|
-
g("emitReadable_", s.destroyed, s.length, s.ended), !s.destroyed && (s.length || s.ended) && (u.emit("readable"), s.emittedReadable = !1), s.needReadable = !s.flowing && !s.ended && s.length <= s.highWaterMark, E(u);
|
|
4135
|
-
}
|
|
4136
|
-
function Ae(u, s) {
|
|
4137
|
-
s.readingMore || (s.readingMore = !0, pe.nextTick(Ne, u, s));
|
|
4138
|
-
}
|
|
4139
|
-
function Ne(u, s) {
|
|
4140
|
-
for (; !s.reading && !s.ended && (s.length < s.highWaterMark || s.flowing && s.length === 0); ) {
|
|
4141
|
-
var Y = s.length;
|
|
4142
|
-
if (g("maybeReadMore read 0"), u.read(0), Y === s.length)
|
|
4143
|
-
break;
|
|
4144
|
-
}
|
|
4145
|
-
s.readingMore = !1;
|
|
4146
|
-
}
|
|
4147
|
-
K.prototype._read = function(u) {
|
|
4148
|
-
b(this, new X("_read()"));
|
|
4149
|
-
}, K.prototype.pipe = function(u, s) {
|
|
4150
|
-
var Y = this, te = this._readableState;
|
|
4151
|
-
switch (te.pipesCount) {
|
|
4152
|
-
case 0:
|
|
4153
|
-
te.pipes = u;
|
|
4154
|
-
break;
|
|
4155
|
-
case 1:
|
|
4156
|
-
te.pipes = [te.pipes, u];
|
|
4157
|
-
break;
|
|
4158
|
-
default:
|
|
4159
|
-
te.pipes.push(u);
|
|
4160
|
-
break;
|
|
4161
|
-
}
|
|
4162
|
-
te.pipesCount += 1, g("pipe count=%d opts=%j", te.pipesCount, s);
|
|
4163
|
-
var de = (!s || s.end !== !1) && u !== pe.stdout && u !== pe.stderr, ae = de ? je : ee;
|
|
4164
|
-
te.endEmitted ? pe.nextTick(ae) : Y.once("end", ae), u.on("unpipe", ce);
|
|
4165
|
-
function ce(oe, ne) {
|
|
4166
|
-
g("onunpipe"), oe === Y && ne && ne.hasUnpiped === !1 && (ne.hasUnpiped = !0, Ge());
|
|
4167
|
-
}
|
|
4168
|
-
function je() {
|
|
4169
|
-
g("onend"), u.end();
|
|
4170
|
-
}
|
|
4171
|
-
var G = Pe(Y);
|
|
4172
|
-
u.on("drain", G);
|
|
4173
|
-
var Ce = !1;
|
|
4174
|
-
function Ge() {
|
|
4175
|
-
g("cleanup"), u.removeListener("close", B), u.removeListener("finish", A), u.removeListener("drain", G), u.removeListener("error", Ie), u.removeListener("unpipe", ce), Y.removeListener("end", je), Y.removeListener("end", ee), Y.removeListener("data", Be), Ce = !0, te.awaitDrain && (!u._writableState || u._writableState.needDrain) && G();
|
|
4176
|
-
}
|
|
4177
|
-
Y.on("data", Be);
|
|
4178
|
-
function Be(oe) {
|
|
4179
|
-
g("ondata");
|
|
4180
|
-
var ne = u.write(oe);
|
|
4181
|
-
g("dest.write", ne), ne === !1 && ((te.pipesCount === 1 && te.pipes === u || te.pipesCount > 1 && ie(te.pipes, u) !== -1) && !Ce && (g("false write response, pause", te.awaitDrain), te.awaitDrain++), Y.pause());
|
|
4182
|
-
}
|
|
4183
|
-
function Ie(oe) {
|
|
4184
|
-
g("onerror", oe), ee(), u.removeListener("error", Ie), v(u, "error") === 0 && b(u, oe);
|
|
4185
|
-
}
|
|
4186
|
-
U(u, "error", Ie);
|
|
4187
|
-
function B() {
|
|
4188
|
-
u.removeListener("finish", A), ee();
|
|
4189
|
-
}
|
|
4190
|
-
u.once("close", B);
|
|
4191
|
-
function A() {
|
|
4192
|
-
g("onfinish"), u.removeListener("close", B), ee();
|
|
4193
|
-
}
|
|
4194
|
-
u.once("finish", A);
|
|
4195
|
-
function ee() {
|
|
4196
|
-
g("unpipe"), Y.unpipe(u);
|
|
4197
|
-
}
|
|
4198
|
-
return u.emit("pipe", Y), te.flowing || (g("pipe resume"), Y.resume()), u;
|
|
4199
|
-
};
|
|
4200
|
-
function Pe(u) {
|
|
4201
|
-
return function() {
|
|
4202
|
-
var Y = u._readableState;
|
|
4203
|
-
g("pipeOnDrain", Y.awaitDrain), Y.awaitDrain && Y.awaitDrain--, Y.awaitDrain === 0 && v(u, "data") && (Y.flowing = !0, E(u));
|
|
4204
|
-
};
|
|
4205
|
-
}
|
|
4206
|
-
K.prototype.unpipe = function(u) {
|
|
4207
|
-
var s = this._readableState, Y = {
|
|
4208
|
-
hasUnpiped: !1
|
|
4209
|
-
};
|
|
4210
|
-
if (s.pipesCount === 0) return this;
|
|
4211
|
-
if (s.pipesCount === 1)
|
|
4212
|
-
return u && u !== s.pipes ? this : (u || (u = s.pipes), s.pipes = null, s.pipesCount = 0, s.flowing = !1, u && u.emit("unpipe", this, Y), this);
|
|
4213
|
-
if (!u) {
|
|
4214
|
-
var te = s.pipes, de = s.pipesCount;
|
|
4215
|
-
s.pipes = null, s.pipesCount = 0, s.flowing = !1;
|
|
4216
|
-
for (var ae = 0; ae < de; ae++) te[ae].emit("unpipe", this, {
|
|
4217
|
-
hasUnpiped: !1
|
|
4218
|
-
});
|
|
4219
|
-
return this;
|
|
4220
|
-
}
|
|
4221
|
-
var ce = ie(s.pipes, u);
|
|
4222
|
-
return ce === -1 ? this : (s.pipes.splice(ce, 1), s.pipesCount -= 1, s.pipesCount === 1 && (s.pipes = s.pipes[0]), u.emit("unpipe", this, Y), this);
|
|
4223
|
-
}, K.prototype.on = function(u, s) {
|
|
4224
|
-
var Y = C.prototype.on.call(this, u, s), te = this._readableState;
|
|
4225
|
-
return u === "data" ? (te.readableListening = this.listenerCount("readable") > 0, te.flowing !== !1 && this.resume()) : u === "readable" && !te.endEmitted && !te.readableListening && (te.readableListening = te.needReadable = !0, te.flowing = !1, te.emittedReadable = !1, g("on readable", te.length, te.reading), te.length ? Ue(this) : te.reading || pe.nextTick(F, this)), Y;
|
|
4226
|
-
}, K.prototype.addListener = K.prototype.on, K.prototype.removeListener = function(u, s) {
|
|
4227
|
-
var Y = C.prototype.removeListener.call(this, u, s);
|
|
4228
|
-
return u === "readable" && pe.nextTick(L, this), Y;
|
|
4229
|
-
}, K.prototype.removeAllListeners = function(u) {
|
|
4230
|
-
var s = C.prototype.removeAllListeners.apply(this, arguments);
|
|
4231
|
-
return (u === "readable" || u === void 0) && pe.nextTick(L, this), s;
|
|
4232
|
-
};
|
|
4233
|
-
function L(u) {
|
|
4234
|
-
var s = u._readableState;
|
|
4235
|
-
s.readableListening = u.listenerCount("readable") > 0, s.resumeScheduled && !s.paused ? s.flowing = !0 : u.listenerCount("data") > 0 && u.resume();
|
|
4236
|
-
}
|
|
4237
|
-
function F(u) {
|
|
4238
|
-
g("readable nexttick read 0"), u.read(0);
|
|
4239
|
-
}
|
|
4240
|
-
K.prototype.resume = function() {
|
|
4241
|
-
var u = this._readableState;
|
|
4242
|
-
return u.flowing || (g("resume"), u.flowing = !u.readableListening, H(this, u)), u.paused = !1, this;
|
|
4243
|
-
};
|
|
4244
|
-
function H(u, s) {
|
|
4245
|
-
s.resumeScheduled || (s.resumeScheduled = !0, pe.nextTick(ue, u, s));
|
|
4246
|
-
}
|
|
4247
|
-
function ue(u, s) {
|
|
4248
|
-
g("resume", s.reading), s.reading || u.read(0), s.resumeScheduled = !1, u.emit("resume"), E(u), s.flowing && !s.reading && u.read(0);
|
|
4249
|
-
}
|
|
4250
|
-
K.prototype.pause = function() {
|
|
4251
|
-
return g("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (g("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
4252
|
-
};
|
|
4253
|
-
function E(u) {
|
|
4254
|
-
var s = u._readableState;
|
|
4255
|
-
for (g("flow", s.flowing); s.flowing && u.read() !== null; ) ;
|
|
4256
|
-
}
|
|
4257
|
-
K.prototype.wrap = function(u) {
|
|
4258
|
-
var s = this, Y = this._readableState, te = !1;
|
|
4259
|
-
u.on("end", function() {
|
|
4260
|
-
if (g("wrapped end"), Y.decoder && !Y.ended) {
|
|
4261
|
-
var ce = Y.decoder.end();
|
|
4262
|
-
ce && ce.length && s.push(ce);
|
|
4263
|
-
}
|
|
4264
|
-
s.push(null);
|
|
4265
|
-
}), u.on("data", function(ce) {
|
|
4266
|
-
if (g("wrapped data"), Y.decoder && (ce = Y.decoder.write(ce)), !(Y.objectMode && ce == null) && !(!Y.objectMode && (!ce || !ce.length))) {
|
|
4267
|
-
var je = s.push(ce);
|
|
4268
|
-
je || (te = !0, u.pause());
|
|
4269
|
-
}
|
|
4270
|
-
});
|
|
4271
|
-
for (var de in u)
|
|
4272
|
-
this[de] === void 0 && typeof u[de] == "function" && (this[de] = /* @__PURE__ */ (function(je) {
|
|
4273
|
-
return function() {
|
|
4274
|
-
return u[je].apply(u, arguments);
|
|
4275
|
-
};
|
|
4276
|
-
})(de));
|
|
4277
|
-
for (var ae = 0; ae < T.length; ae++)
|
|
4278
|
-
u.on(T[ae], this.emit.bind(this, T[ae]));
|
|
4279
|
-
return this._read = function(ce) {
|
|
4280
|
-
g("wrapped _read", ce), te && (te = !1, u.resume());
|
|
4281
|
-
}, this;
|
|
4282
|
-
}, typeof Symbol == "function" && (K.prototype[Symbol.asyncIterator] = function() {
|
|
4283
|
-
return O === void 0 && (O = en()), O(this);
|
|
4284
|
-
}), Object.defineProperty(K.prototype, "readableHighWaterMark", {
|
|
4285
|
-
// making it explicit this property is not enumerable
|
|
4286
|
-
// because otherwise some prototype manipulation in
|
|
4287
|
-
// userland will fail
|
|
4288
|
-
enumerable: !1,
|
|
4289
|
-
get: function() {
|
|
4290
|
-
return this._readableState.highWaterMark;
|
|
4291
|
-
}
|
|
4292
|
-
}), Object.defineProperty(K.prototype, "readableBuffer", {
|
|
4293
|
-
// making it explicit this property is not enumerable
|
|
4294
|
-
// because otherwise some prototype manipulation in
|
|
4295
|
-
// userland will fail
|
|
4296
|
-
enumerable: !1,
|
|
4297
|
-
get: function() {
|
|
4298
|
-
return this._readableState && this._readableState.buffer;
|
|
4299
|
-
}
|
|
4300
|
-
}), Object.defineProperty(K.prototype, "readableFlowing", {
|
|
4301
|
-
// making it explicit this property is not enumerable
|
|
4302
|
-
// because otherwise some prototype manipulation in
|
|
4303
|
-
// userland will fail
|
|
4304
|
-
enumerable: !1,
|
|
4305
|
-
get: function() {
|
|
4306
|
-
return this._readableState.flowing;
|
|
4307
|
-
},
|
|
4308
|
-
set: function(s) {
|
|
4309
|
-
this._readableState && (this._readableState.flowing = s);
|
|
4310
|
-
}
|
|
4311
|
-
}), K._fromList = _, Object.defineProperty(K.prototype, "readableLength", {
|
|
4312
|
-
// making it explicit this property is not enumerable
|
|
4313
|
-
// because otherwise some prototype manipulation in
|
|
4314
|
-
// userland will fail
|
|
4315
|
-
enumerable: !1,
|
|
4316
|
-
get: function() {
|
|
4317
|
-
return this._readableState.length;
|
|
4318
|
-
}
|
|
4319
|
-
});
|
|
4320
|
-
function _(u, s) {
|
|
4321
|
-
if (s.length === 0) return null;
|
|
4322
|
-
var Y;
|
|
4323
|
-
return s.objectMode ? Y = s.buffer.shift() : !u || u >= s.length ? (s.decoder ? Y = s.buffer.join("") : s.buffer.length === 1 ? Y = s.buffer.first() : Y = s.buffer.concat(s.length), s.buffer.clear()) : Y = s.buffer.consume(u, s.decoder), Y;
|
|
4324
|
-
}
|
|
4325
|
-
function k(u) {
|
|
4326
|
-
var s = u._readableState;
|
|
4327
|
-
g("endReadable", s.endEmitted), s.endEmitted || (s.ended = !0, pe.nextTick($, s, u));
|
|
4328
|
-
}
|
|
4329
|
-
function $(u, s) {
|
|
4330
|
-
if (g("endReadableNT", u.endEmitted, u.length), !u.endEmitted && u.length === 0 && (u.endEmitted = !0, s.readable = !1, s.emit("end"), u.autoDestroy)) {
|
|
4331
|
-
var Y = s._writableState;
|
|
4332
|
-
(!Y || Y.autoDestroy && Y.finished) && s.destroy();
|
|
4333
|
-
}
|
|
4334
|
-
}
|
|
4335
|
-
typeof Symbol == "function" && (K.from = function(u, s) {
|
|
4336
|
-
return w === void 0 && (w = rn()), w(K, u, s);
|
|
4337
|
-
});
|
|
4338
|
-
function ie(u, s) {
|
|
4339
|
-
for (var Y = 0, te = u.length; Y < te; Y++)
|
|
4340
|
-
if (u[Y] === s) return Y;
|
|
4341
|
-
return -1;
|
|
4342
|
-
}
|
|
4343
|
-
return Sr;
|
|
4344
|
-
}
|
|
4345
|
-
var Rr, ot;
|
|
4346
|
-
function At() {
|
|
4347
|
-
if (ot) return Rr;
|
|
4348
|
-
ot = 1, Rr = M;
|
|
4349
|
-
var c = Je().codes, v = c.ERR_METHOD_NOT_IMPLEMENTED, C = c.ERR_MULTIPLE_CALLBACK, q = c.ERR_TRANSFORM_ALREADY_TRANSFORMING, J = c.ERR_TRANSFORM_WITH_LENGTH_0, h = Ze();
|
|
4350
|
-
ze()(M, h);
|
|
4351
|
-
function y(l, x) {
|
|
4352
|
-
var D = this._transformState;
|
|
4353
|
-
D.transforming = !1;
|
|
4354
|
-
var Z = D.writecb;
|
|
4355
|
-
if (Z === null)
|
|
4356
|
-
return this.emit("error", new C());
|
|
4357
|
-
D.writechunk = null, D.writecb = null, x != null && this.push(x), Z(l);
|
|
4358
|
-
var z = this._readableState;
|
|
4359
|
-
z.reading = !1, (z.needReadable || z.length < z.highWaterMark) && this._read(z.highWaterMark);
|
|
4360
|
-
}
|
|
4361
|
-
function M(l) {
|
|
4362
|
-
if (!(this instanceof M)) return new M(l);
|
|
4363
|
-
h.call(this, l), this._transformState = {
|
|
4364
|
-
afterTransform: y.bind(this),
|
|
4365
|
-
needTransform: !1,
|
|
4366
|
-
transforming: !1,
|
|
4367
|
-
writecb: null,
|
|
4368
|
-
writechunk: null,
|
|
4369
|
-
writeencoding: null
|
|
4370
|
-
}, this._readableState.needReadable = !0, this._readableState.sync = !1, l && (typeof l.transform == "function" && (this._transform = l.transform), typeof l.flush == "function" && (this._flush = l.flush)), this.on("prefinish", g);
|
|
4371
|
-
}
|
|
4372
|
-
function g() {
|
|
4373
|
-
var l = this;
|
|
4374
|
-
typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(x, D) {
|
|
4375
|
-
j(l, x, D);
|
|
4376
|
-
}) : j(this, null, null);
|
|
4377
|
-
}
|
|
4378
|
-
M.prototype.push = function(l, x) {
|
|
4379
|
-
return this._transformState.needTransform = !1, h.prototype.push.call(this, l, x);
|
|
4380
|
-
}, M.prototype._transform = function(l, x, D) {
|
|
4381
|
-
D(new v("_transform()"));
|
|
4382
|
-
}, M.prototype._write = function(l, x, D) {
|
|
4383
|
-
var Z = this._transformState;
|
|
4384
|
-
if (Z.writecb = D, Z.writechunk = l, Z.writeencoding = x, !Z.transforming) {
|
|
4385
|
-
var z = this._readableState;
|
|
4386
|
-
(Z.needTransform || z.needReadable || z.length < z.highWaterMark) && this._read(z.highWaterMark);
|
|
4387
|
-
}
|
|
4388
|
-
}, M.prototype._read = function(l) {
|
|
4389
|
-
var x = this._transformState;
|
|
4390
|
-
x.writechunk !== null && !x.transforming ? (x.transforming = !0, this._transform(x.writechunk, x.writeencoding, x.afterTransform)) : x.needTransform = !0;
|
|
4391
|
-
}, M.prototype._destroy = function(l, x) {
|
|
4392
|
-
h.prototype._destroy.call(this, l, function(D) {
|
|
4393
|
-
x(D);
|
|
4394
|
-
});
|
|
4395
|
-
};
|
|
4396
|
-
function j(l, x, D) {
|
|
4397
|
-
if (x) return l.emit("error", x);
|
|
4398
|
-
if (D != null && l.push(D), l._writableState.length) throw new J();
|
|
4399
|
-
if (l._transformState.transforming) throw new q();
|
|
4400
|
-
return l.push(null);
|
|
4401
|
-
}
|
|
4402
|
-
return Rr;
|
|
4403
|
-
}
|
|
4404
|
-
var Ar, ut;
|
|
4405
|
-
function tn() {
|
|
4406
|
-
if (ut) return Ar;
|
|
4407
|
-
ut = 1, Ar = v;
|
|
4408
|
-
var c = At();
|
|
4409
|
-
ze()(v, c);
|
|
4410
|
-
function v(C) {
|
|
4411
|
-
if (!(this instanceof v)) return new v(C);
|
|
4412
|
-
c.call(this, C);
|
|
4413
|
-
}
|
|
4414
|
-
return v.prototype._transform = function(C, q, J) {
|
|
4415
|
-
J(null, C);
|
|
4416
|
-
}, Ar;
|
|
4417
|
-
}
|
|
4418
|
-
var Ir, at;
|
|
4419
|
-
function nn() {
|
|
4420
|
-
if (at) return Ir;
|
|
4421
|
-
at = 1;
|
|
4422
|
-
var c;
|
|
4423
|
-
function v(D) {
|
|
4424
|
-
var Z = !1;
|
|
4425
|
-
return function() {
|
|
4426
|
-
Z || (Z = !0, D.apply(void 0, arguments));
|
|
4427
|
-
};
|
|
4428
|
-
}
|
|
4429
|
-
var C = Je().codes, q = C.ERR_MISSING_ARGS, J = C.ERR_STREAM_DESTROYED;
|
|
4430
|
-
function h(D) {
|
|
4431
|
-
if (D) throw D;
|
|
4432
|
-
}
|
|
4433
|
-
function y(D) {
|
|
4434
|
-
return D.setHeader && typeof D.abort == "function";
|
|
4435
|
-
}
|
|
4436
|
-
function M(D, Z, z, Q) {
|
|
4437
|
-
Q = v(Q);
|
|
4438
|
-
var X = !1;
|
|
4439
|
-
D.on("close", function() {
|
|
4440
|
-
X = !0;
|
|
4441
|
-
}), c === void 0 && (c = Dr()), c(D, {
|
|
4442
|
-
readable: Z,
|
|
4443
|
-
writable: z
|
|
4444
|
-
}, function(S) {
|
|
4445
|
-
if (S) return Q(S);
|
|
4446
|
-
X = !0, Q();
|
|
4447
|
-
});
|
|
4448
|
-
var d = !1;
|
|
4449
|
-
return function(S) {
|
|
4450
|
-
if (!X && !d) {
|
|
4451
|
-
if (d = !0, y(D)) return D.abort();
|
|
4452
|
-
if (typeof D.destroy == "function") return D.destroy();
|
|
4453
|
-
Q(S || new J("pipe"));
|
|
4454
|
-
}
|
|
4455
|
-
};
|
|
4456
|
-
}
|
|
4457
|
-
function g(D) {
|
|
4458
|
-
D();
|
|
4459
|
-
}
|
|
4460
|
-
function j(D, Z) {
|
|
4461
|
-
return D.pipe(Z);
|
|
4462
|
-
}
|
|
4463
|
-
function l(D) {
|
|
4464
|
-
return !D.length || typeof D[D.length - 1] != "function" ? h : D.pop();
|
|
4465
|
-
}
|
|
4466
|
-
function x() {
|
|
4467
|
-
for (var D = arguments.length, Z = new Array(D), z = 0; z < D; z++)
|
|
4468
|
-
Z[z] = arguments[z];
|
|
4469
|
-
var Q = l(Z);
|
|
4470
|
-
if (Array.isArray(Z[0]) && (Z = Z[0]), Z.length < 2)
|
|
4471
|
-
throw new q("streams");
|
|
4472
|
-
var X, d = Z.map(function(S, O) {
|
|
4473
|
-
var w = O < Z.length - 1, b = O > 0;
|
|
4474
|
-
return M(S, w, b, function(T) {
|
|
4475
|
-
X || (X = T), T && d.forEach(g), !w && (d.forEach(g), Q(X));
|
|
4476
|
-
});
|
|
4477
|
-
});
|
|
4478
|
-
return Z.reduce(j);
|
|
4479
|
-
}
|
|
4480
|
-
return Ir = x, Ir;
|
|
4481
|
-
}
|
|
4482
|
-
var Tr, ft;
|
|
4483
|
-
function on() {
|
|
4484
|
-
if (ft) return Tr;
|
|
4485
|
-
ft = 1, Tr = C;
|
|
4486
|
-
var c = bt().EventEmitter, v = ze();
|
|
4487
|
-
v(C, c), C.Readable = Rt(), C.Writable = vt(), C.Duplex = Ze(), C.Transform = At(), C.PassThrough = tn(), C.finished = Dr(), C.pipeline = nn(), C.Stream = C;
|
|
4488
|
-
function C() {
|
|
4489
|
-
c.call(this);
|
|
4490
|
-
}
|
|
4491
|
-
return C.prototype.pipe = function(q, J) {
|
|
4492
|
-
var h = this;
|
|
4493
|
-
function y(Z) {
|
|
4494
|
-
q.writable && q.write(Z) === !1 && h.pause && h.pause();
|
|
4495
|
-
}
|
|
4496
|
-
h.on("data", y);
|
|
4497
|
-
function M() {
|
|
4498
|
-
h.readable && h.resume && h.resume();
|
|
4499
|
-
}
|
|
4500
|
-
q.on("drain", M), !q._isStdio && (!J || J.end !== !1) && (h.on("end", j), h.on("close", l));
|
|
4501
|
-
var g = !1;
|
|
4502
|
-
function j() {
|
|
4503
|
-
g || (g = !0, q.end());
|
|
4504
|
-
}
|
|
4505
|
-
function l() {
|
|
4506
|
-
g || (g = !0, typeof q.destroy == "function" && q.destroy());
|
|
4507
|
-
}
|
|
4508
|
-
function x(Z) {
|
|
4509
|
-
if (D(), c.listenerCount(this, "error") === 0)
|
|
4510
|
-
throw Z;
|
|
4511
|
-
}
|
|
4512
|
-
h.on("error", x), q.on("error", x);
|
|
4513
|
-
function D() {
|
|
4514
|
-
h.removeListener("data", y), q.removeListener("drain", M), h.removeListener("end", j), h.removeListener("close", l), h.removeListener("error", x), q.removeListener("error", x), h.removeListener("end", D), h.removeListener("close", D), q.removeListener("close", D);
|
|
4515
|
-
}
|
|
4516
|
-
return h.on("end", D), h.on("close", D), q.on("close", D), q.emit("pipe", h), q;
|
|
4517
|
-
}, Tr;
|
|
4518
|
-
}
|
|
4519
|
-
var Or, st;
|
|
4520
|
-
function hn() {
|
|
4521
|
-
if (st) return Or;
|
|
4522
|
-
st = 1;
|
|
4523
|
-
function c(B, A) {
|
|
4524
|
-
return h(B) || J(B, A) || C(B, A) || v();
|
|
4525
|
-
}
|
|
4526
|
-
function v() {
|
|
4527
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4528
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4529
|
-
}
|
|
4530
|
-
function C(B, A) {
|
|
4531
|
-
if (B) {
|
|
4532
|
-
if (typeof B == "string") return q(B, A);
|
|
4533
|
-
var ee = Object.prototype.toString.call(B).slice(8, -1);
|
|
4534
|
-
if (ee === "Object" && B.constructor && (ee = B.constructor.name), ee === "Map" || ee === "Set") return Array.from(B);
|
|
4535
|
-
if (ee === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee)) return q(B, A);
|
|
4536
|
-
}
|
|
4537
|
-
}
|
|
4538
|
-
function q(B, A) {
|
|
4539
|
-
(A == null || A > B.length) && (A = B.length);
|
|
4540
|
-
for (var ee = 0, oe = new Array(A); ee < A; ee++) oe[ee] = B[ee];
|
|
4541
|
-
return oe;
|
|
4542
|
-
}
|
|
4543
|
-
function J(B, A) {
|
|
4544
|
-
var ee = B == null ? null : typeof Symbol < "u" && B[Symbol.iterator] || B["@@iterator"];
|
|
4545
|
-
if (ee != null) {
|
|
4546
|
-
var oe, ne, se, i, e = [], t = !0, a = !1;
|
|
4547
|
-
try {
|
|
4548
|
-
if (se = (ee = ee.call(B)).next, A !== 0) for (; !(t = (oe = se.call(ee)).done) && (e.push(oe.value), e.length !== A); t = !0) ;
|
|
4549
|
-
} catch (p) {
|
|
4550
|
-
a = !0, ne = p;
|
|
4551
|
-
} finally {
|
|
4552
|
-
try {
|
|
4553
|
-
if (!t && ee.return != null && (i = ee.return(), Object(i) !== i)) return;
|
|
4554
|
-
} finally {
|
|
4555
|
-
if (a) throw ne;
|
|
4556
|
-
}
|
|
4557
|
-
}
|
|
4558
|
-
return e;
|
|
4559
|
-
}
|
|
4560
|
-
}
|
|
4561
|
-
function h(B) {
|
|
4562
|
-
if (Array.isArray(B)) return B;
|
|
4563
|
-
}
|
|
4564
|
-
function y(B) {
|
|
4565
|
-
"@babel/helpers - typeof";
|
|
4566
|
-
return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
4567
|
-
return typeof A;
|
|
4568
|
-
} : function(A) {
|
|
4569
|
-
return A && typeof Symbol == "function" && A.constructor === Symbol && A !== Symbol.prototype ? "symbol" : typeof A;
|
|
4570
|
-
}, y(B);
|
|
4571
|
-
}
|
|
4572
|
-
var M = /a/g.flags !== void 0, g = function(A) {
|
|
4573
|
-
var ee = [];
|
|
4574
|
-
return A.forEach(function(oe) {
|
|
4575
|
-
return ee.push(oe);
|
|
4576
|
-
}), ee;
|
|
4577
|
-
}, j = function(A) {
|
|
4578
|
-
var ee = [];
|
|
4579
|
-
return A.forEach(function(oe, ne) {
|
|
4580
|
-
return ee.push([ne, oe]);
|
|
4581
|
-
}), ee;
|
|
4582
|
-
}, l = Object.is ? Object.is : Nt(), x = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() {
|
|
4583
|
-
return [];
|
|
4584
|
-
}, D = Number.isNaN ? Number.isNaN : Pt();
|
|
4585
|
-
function Z(B) {
|
|
4586
|
-
return B.call.bind(B);
|
|
4587
|
-
}
|
|
4588
|
-
var z = Z(Object.prototype.hasOwnProperty), Q = Z(Object.prototype.propertyIsEnumerable), X = Z(Object.prototype.toString), d = ur().types, S = d.isAnyArrayBuffer, O = d.isArrayBufferView, w = d.isDate, b = d.isMap, T = d.isRegExp, U = d.isSet, P = d.isNativeError, K = d.isBoxedPrimitive, re = d.isNumberObject, fe = d.isStringObject, R = d.isBooleanObject, ge = d.isBigIntObject, me = d.isSymbolObject, Ee = d.isFloat32Array, Te = d.isFloat64Array;
|
|
4589
|
-
function Ue(B) {
|
|
4590
|
-
if (B.length === 0 || B.length > 10) return !0;
|
|
4591
|
-
for (var A = 0; A < B.length; A++) {
|
|
4592
|
-
var ee = B.charCodeAt(A);
|
|
4593
|
-
if (ee < 48 || ee > 57) return !0;
|
|
4594
|
-
}
|
|
4595
|
-
return B.length === 10 && B >= Math.pow(2, 32);
|
|
4596
|
-
}
|
|
4597
|
-
function Re(B) {
|
|
4598
|
-
return Object.keys(B).filter(Ue).concat(x(B).filter(Object.prototype.propertyIsEnumerable.bind(B)));
|
|
4599
|
-
}
|
|
4600
|
-
function Ae(B, A) {
|
|
4601
|
-
if (B === A)
|
|
4602
|
-
return 0;
|
|
4603
|
-
for (var ee = B.length, oe = A.length, ne = 0, se = Math.min(ee, oe); ne < se; ++ne)
|
|
4604
|
-
if (B[ne] !== A[ne]) {
|
|
4605
|
-
ee = B[ne], oe = A[ne];
|
|
4606
|
-
break;
|
|
4607
|
-
}
|
|
4608
|
-
return ee < oe ? -1 : oe < ee ? 1 : 0;
|
|
4609
|
-
}
|
|
4610
|
-
var Ne = !0, Pe = !1, L = 0, F = 1, H = 2, ue = 3;
|
|
4611
|
-
function E(B, A) {
|
|
4612
|
-
return M ? B.source === A.source && B.flags === A.flags : RegExp.prototype.toString.call(B) === RegExp.prototype.toString.call(A);
|
|
4613
|
-
}
|
|
4614
|
-
function _(B, A) {
|
|
4615
|
-
if (B.byteLength !== A.byteLength)
|
|
4616
|
-
return !1;
|
|
4617
|
-
for (var ee = 0; ee < B.byteLength; ee++)
|
|
4618
|
-
if (B[ee] !== A[ee])
|
|
4619
|
-
return !1;
|
|
4620
|
-
return !0;
|
|
4621
|
-
}
|
|
4622
|
-
function k(B, A) {
|
|
4623
|
-
return B.byteLength !== A.byteLength ? !1 : Ae(new Uint8Array(B.buffer, B.byteOffset, B.byteLength), new Uint8Array(A.buffer, A.byteOffset, A.byteLength)) === 0;
|
|
4624
|
-
}
|
|
4625
|
-
function $(B, A) {
|
|
4626
|
-
return B.byteLength === A.byteLength && Ae(new Uint8Array(B), new Uint8Array(A)) === 0;
|
|
4627
|
-
}
|
|
4628
|
-
function ie(B, A) {
|
|
4629
|
-
return re(B) ? re(A) && l(Number.prototype.valueOf.call(B), Number.prototype.valueOf.call(A)) : fe(B) ? fe(A) && String.prototype.valueOf.call(B) === String.prototype.valueOf.call(A) : R(B) ? R(A) && Boolean.prototype.valueOf.call(B) === Boolean.prototype.valueOf.call(A) : ge(B) ? ge(A) && BigInt.prototype.valueOf.call(B) === BigInt.prototype.valueOf.call(A) : me(A) && Symbol.prototype.valueOf.call(B) === Symbol.prototype.valueOf.call(A);
|
|
4630
|
-
}
|
|
4631
|
-
function u(B, A, ee, oe) {
|
|
4632
|
-
if (B === A)
|
|
4633
|
-
return B !== 0 ? !0 : ee ? l(B, A) : !0;
|
|
4634
|
-
if (ee) {
|
|
4635
|
-
if (y(B) !== "object")
|
|
4636
|
-
return typeof B == "number" && D(B) && D(A);
|
|
4637
|
-
if (y(A) !== "object" || B === null || A === null || Object.getPrototypeOf(B) !== Object.getPrototypeOf(A))
|
|
4638
|
-
return !1;
|
|
4639
|
-
} else {
|
|
4640
|
-
if (B === null || y(B) !== "object")
|
|
4641
|
-
return A === null || y(A) !== "object" ? B == A : !1;
|
|
4642
|
-
if (A === null || y(A) !== "object")
|
|
4643
|
-
return !1;
|
|
4644
|
-
}
|
|
4645
|
-
var ne = X(B), se = X(A);
|
|
4646
|
-
if (ne !== se)
|
|
4647
|
-
return !1;
|
|
4648
|
-
if (Array.isArray(B)) {
|
|
4649
|
-
if (B.length !== A.length)
|
|
4650
|
-
return !1;
|
|
4651
|
-
var i = Re(B), e = Re(A);
|
|
4652
|
-
return i.length !== e.length ? !1 : Y(B, A, ee, oe, F, i);
|
|
4653
|
-
}
|
|
4654
|
-
if (ne === "[object Object]" && (!b(B) && b(A) || !U(B) && U(A)))
|
|
4655
|
-
return !1;
|
|
4656
|
-
if (w(B)) {
|
|
4657
|
-
if (!w(A) || Date.prototype.getTime.call(B) !== Date.prototype.getTime.call(A))
|
|
4658
|
-
return !1;
|
|
4659
|
-
} else if (T(B)) {
|
|
4660
|
-
if (!T(A) || !E(B, A))
|
|
4661
|
-
return !1;
|
|
4662
|
-
} else if (P(B) || B instanceof Error) {
|
|
4663
|
-
if (B.message !== A.message || B.name !== A.name)
|
|
4664
|
-
return !1;
|
|
4665
|
-
} else if (O(B)) {
|
|
4666
|
-
if (!ee && (Ee(B) || Te(B))) {
|
|
4667
|
-
if (!_(B, A))
|
|
4668
|
-
return !1;
|
|
4669
|
-
} else if (!k(B, A))
|
|
4670
|
-
return !1;
|
|
4671
|
-
var t = Re(B), a = Re(A);
|
|
4672
|
-
return t.length !== a.length ? !1 : Y(B, A, ee, oe, L, t);
|
|
4673
|
-
} else {
|
|
4674
|
-
if (U(B))
|
|
4675
|
-
return !U(A) || B.size !== A.size ? !1 : Y(B, A, ee, oe, H);
|
|
4676
|
-
if (b(B))
|
|
4677
|
-
return !b(A) || B.size !== A.size ? !1 : Y(B, A, ee, oe, ue);
|
|
4678
|
-
if (S(B)) {
|
|
4679
|
-
if (!$(B, A))
|
|
4680
|
-
return !1;
|
|
4681
|
-
} else if (K(B) && !ie(B, A))
|
|
4682
|
-
return !1;
|
|
4683
|
-
}
|
|
4684
|
-
return Y(B, A, ee, oe, L);
|
|
4685
|
-
}
|
|
4686
|
-
function s(B, A) {
|
|
4687
|
-
return A.filter(function(ee) {
|
|
4688
|
-
return Q(B, ee);
|
|
4689
|
-
});
|
|
4690
|
-
}
|
|
4691
|
-
function Y(B, A, ee, oe, ne, se) {
|
|
4692
|
-
if (arguments.length === 5) {
|
|
4693
|
-
se = Object.keys(B);
|
|
4694
|
-
var i = Object.keys(A);
|
|
4695
|
-
if (se.length !== i.length)
|
|
4696
|
-
return !1;
|
|
4697
|
-
}
|
|
4698
|
-
for (var e = 0; e < se.length; e++)
|
|
4699
|
-
if (!z(A, se[e]))
|
|
4700
|
-
return !1;
|
|
4701
|
-
if (ee && arguments.length === 5) {
|
|
4702
|
-
var t = x(B);
|
|
4703
|
-
if (t.length !== 0) {
|
|
4704
|
-
var a = 0;
|
|
4705
|
-
for (e = 0; e < t.length; e++) {
|
|
4706
|
-
var p = t[e];
|
|
4707
|
-
if (Q(B, p)) {
|
|
4708
|
-
if (!Q(A, p))
|
|
4709
|
-
return !1;
|
|
4710
|
-
se.push(p), a++;
|
|
4711
|
-
} else if (Q(A, p))
|
|
4712
|
-
return !1;
|
|
4713
|
-
}
|
|
4714
|
-
var I = x(A);
|
|
4715
|
-
if (t.length !== I.length && s(A, I).length !== a)
|
|
4716
|
-
return !1;
|
|
4717
|
-
} else {
|
|
4718
|
-
var W = x(A);
|
|
4719
|
-
if (W.length !== 0 && s(A, W).length !== 0)
|
|
4720
|
-
return !1;
|
|
4721
|
-
}
|
|
4722
|
-
}
|
|
4723
|
-
if (se.length === 0 && (ne === L || ne === F && B.length === 0 || B.size === 0))
|
|
4724
|
-
return !0;
|
|
4725
|
-
if (oe === void 0)
|
|
4726
|
-
oe = {
|
|
4727
|
-
val1: /* @__PURE__ */ new Map(),
|
|
4728
|
-
val2: /* @__PURE__ */ new Map(),
|
|
4729
|
-
position: 0
|
|
4730
|
-
};
|
|
4731
|
-
else {
|
|
4732
|
-
var le = oe.val1.get(B);
|
|
4733
|
-
if (le !== void 0) {
|
|
4734
|
-
var ye = oe.val2.get(A);
|
|
4735
|
-
if (ye !== void 0)
|
|
4736
|
-
return le === ye;
|
|
4737
|
-
}
|
|
4738
|
-
oe.position++;
|
|
4739
|
-
}
|
|
4740
|
-
oe.val1.set(B, oe.position), oe.val2.set(A, oe.position);
|
|
4741
|
-
var we = Ge(B, A, ee, se, oe, ne);
|
|
4742
|
-
return oe.val1.delete(B), oe.val2.delete(A), we;
|
|
4743
|
-
}
|
|
4744
|
-
function te(B, A, ee, oe) {
|
|
4745
|
-
for (var ne = g(B), se = 0; se < ne.length; se++) {
|
|
4746
|
-
var i = ne[se];
|
|
4747
|
-
if (u(A, i, ee, oe))
|
|
4748
|
-
return B.delete(i), !0;
|
|
4749
|
-
}
|
|
4750
|
-
return !1;
|
|
4751
|
-
}
|
|
4752
|
-
function de(B) {
|
|
4753
|
-
switch (y(B)) {
|
|
4754
|
-
case "undefined":
|
|
4755
|
-
return null;
|
|
4756
|
-
case "object":
|
|
4757
|
-
return;
|
|
4758
|
-
case "symbol":
|
|
4759
|
-
return !1;
|
|
4760
|
-
case "string":
|
|
4761
|
-
B = +B;
|
|
4762
|
-
// Loose equal entries exist only if the string is possible to convert to
|
|
4763
|
-
// a regular number and not NaN.
|
|
4764
|
-
// Fall through
|
|
4765
|
-
case "number":
|
|
4766
|
-
if (D(B))
|
|
4767
|
-
return !1;
|
|
4768
|
-
}
|
|
4769
|
-
return !0;
|
|
4770
|
-
}
|
|
4771
|
-
function ae(B, A, ee) {
|
|
4772
|
-
var oe = de(ee);
|
|
4773
|
-
return oe ?? (A.has(oe) && !B.has(oe));
|
|
4774
|
-
}
|
|
4775
|
-
function ce(B, A, ee, oe, ne) {
|
|
4776
|
-
var se = de(ee);
|
|
4777
|
-
if (se != null)
|
|
4778
|
-
return se;
|
|
4779
|
-
var i = A.get(se);
|
|
4780
|
-
return i === void 0 && !A.has(se) || !u(oe, i, !1, ne) ? !1 : !B.has(se) && u(oe, i, !1, ne);
|
|
4781
|
-
}
|
|
4782
|
-
function je(B, A, ee, oe) {
|
|
4783
|
-
for (var ne = null, se = g(B), i = 0; i < se.length; i++) {
|
|
4784
|
-
var e = se[i];
|
|
4785
|
-
if (y(e) === "object" && e !== null)
|
|
4786
|
-
ne === null && (ne = /* @__PURE__ */ new Set()), ne.add(e);
|
|
4787
|
-
else if (!A.has(e)) {
|
|
4788
|
-
if (ee || !ae(B, A, e))
|
|
4789
|
-
return !1;
|
|
4790
|
-
ne === null && (ne = /* @__PURE__ */ new Set()), ne.add(e);
|
|
4791
|
-
}
|
|
4792
|
-
}
|
|
4793
|
-
if (ne !== null) {
|
|
4794
|
-
for (var t = g(A), a = 0; a < t.length; a++) {
|
|
4795
|
-
var p = t[a];
|
|
4796
|
-
if (y(p) === "object" && p !== null) {
|
|
4797
|
-
if (!te(ne, p, ee, oe)) return !1;
|
|
4798
|
-
} else if (!ee && !B.has(p) && !te(ne, p, ee, oe))
|
|
4799
|
-
return !1;
|
|
4800
|
-
}
|
|
4801
|
-
return ne.size === 0;
|
|
4802
|
-
}
|
|
4803
|
-
return !0;
|
|
4804
|
-
}
|
|
4805
|
-
function G(B, A, ee, oe, ne, se) {
|
|
4806
|
-
for (var i = g(B), e = 0; e < i.length; e++) {
|
|
4807
|
-
var t = i[e];
|
|
4808
|
-
if (u(ee, t, ne, se) && u(oe, A.get(t), ne, se))
|
|
4809
|
-
return B.delete(t), !0;
|
|
4810
|
-
}
|
|
4811
|
-
return !1;
|
|
4812
|
-
}
|
|
4813
|
-
function Ce(B, A, ee, oe) {
|
|
4814
|
-
for (var ne = null, se = j(B), i = 0; i < se.length; i++) {
|
|
4815
|
-
var e = c(se[i], 2), t = e[0], a = e[1];
|
|
4816
|
-
if (y(t) === "object" && t !== null)
|
|
4817
|
-
ne === null && (ne = /* @__PURE__ */ new Set()), ne.add(t);
|
|
4818
|
-
else {
|
|
4819
|
-
var p = A.get(t);
|
|
4820
|
-
if (p === void 0 && !A.has(t) || !u(a, p, ee, oe)) {
|
|
4821
|
-
if (ee || !ce(B, A, t, a, oe)) return !1;
|
|
4822
|
-
ne === null && (ne = /* @__PURE__ */ new Set()), ne.add(t);
|
|
4823
|
-
}
|
|
4824
|
-
}
|
|
4825
|
-
}
|
|
4826
|
-
if (ne !== null) {
|
|
4827
|
-
for (var I = j(A), W = 0; W < I.length; W++) {
|
|
4828
|
-
var le = c(I[W], 2), ye = le[0], we = le[1];
|
|
4829
|
-
if (y(ye) === "object" && ye !== null) {
|
|
4830
|
-
if (!G(ne, B, ye, we, ee, oe)) return !1;
|
|
4831
|
-
} else if (!ee && (!B.has(ye) || !u(B.get(ye), we, !1, oe)) && !G(ne, B, ye, we, !1, oe))
|
|
4832
|
-
return !1;
|
|
4833
|
-
}
|
|
4834
|
-
return ne.size === 0;
|
|
4835
|
-
}
|
|
4836
|
-
return !0;
|
|
4837
|
-
}
|
|
4838
|
-
function Ge(B, A, ee, oe, ne, se) {
|
|
4839
|
-
var i = 0;
|
|
4840
|
-
if (se === H) {
|
|
4841
|
-
if (!je(B, A, ee, ne))
|
|
4842
|
-
return !1;
|
|
4843
|
-
} else if (se === ue) {
|
|
4844
|
-
if (!Ce(B, A, ee, ne))
|
|
4845
|
-
return !1;
|
|
4846
|
-
} else if (se === F)
|
|
4847
|
-
for (; i < B.length; i++)
|
|
4848
|
-
if (z(B, i)) {
|
|
4849
|
-
if (!z(A, i) || !u(B[i], A[i], ee, ne))
|
|
4850
|
-
return !1;
|
|
4851
|
-
} else {
|
|
4852
|
-
if (z(A, i))
|
|
4853
|
-
return !1;
|
|
4854
|
-
for (var e = Object.keys(B); i < e.length; i++) {
|
|
4855
|
-
var t = e[i];
|
|
4856
|
-
if (!z(A, t) || !u(B[t], A[t], ee, ne))
|
|
4857
|
-
return !1;
|
|
4858
|
-
}
|
|
4859
|
-
return e.length === Object.keys(A).length;
|
|
4860
|
-
}
|
|
4861
|
-
for (i = 0; i < oe.length; i++) {
|
|
4862
|
-
var a = oe[i];
|
|
4863
|
-
if (!u(B[a], A[a], ee, ne))
|
|
4864
|
-
return !1;
|
|
4865
|
-
}
|
|
4866
|
-
return !0;
|
|
4867
|
-
}
|
|
4868
|
-
function Be(B, A) {
|
|
4869
|
-
return u(B, A, Pe);
|
|
4870
|
-
}
|
|
4871
|
-
function Ie(B, A) {
|
|
4872
|
-
return u(B, A, Ne);
|
|
4873
|
-
}
|
|
4874
|
-
return Or = {
|
|
4875
|
-
isDeepEqual: Be,
|
|
4876
|
-
isDeepStrictEqual: Ie
|
|
4877
|
-
}, Or;
|
|
4878
|
-
}
|
|
4879
|
-
var Lr, lt;
|
|
4880
|
-
function un() {
|
|
4881
|
-
if (lt) return Lr;
|
|
4882
|
-
lt = 1;
|
|
4883
|
-
var c = {}.toString;
|
|
4884
|
-
return Lr = Array.isArray || function(v) {
|
|
4885
|
-
return c.call(v) == "[object Array]";
|
|
4886
|
-
}, Lr;
|
|
4887
|
-
}
|
|
4888
|
-
var Mr, ct;
|
|
4889
|
-
function an() {
|
|
4890
|
-
if (ct) return Mr;
|
|
4891
|
-
ct = 1;
|
|
4892
|
-
var c = /* @__PURE__ */ Ct(), v = /* @__PURE__ */ jt(), C = v("TypedArray.prototype.buffer", !0), q = /* @__PURE__ */ pt();
|
|
4893
|
-
return Mr = C || function(h) {
|
|
4894
|
-
if (!q(h))
|
|
4895
|
-
throw new c("Not a Typed Array");
|
|
4896
|
-
return h.buffer;
|
|
4897
|
-
}, Mr;
|
|
4898
|
-
}
|
|
4899
|
-
var Ur, ht;
|
|
4900
|
-
function pn() {
|
|
4901
|
-
if (ht) return Ur;
|
|
4902
|
-
ht = 1;
|
|
4903
|
-
var c = St().Buffer, v = un(), C = /* @__PURE__ */ an(), q = ArrayBuffer.isView || function(g) {
|
|
4904
|
-
try {
|
|
4905
|
-
return C(g), !0;
|
|
4906
|
-
} catch {
|
|
4907
|
-
return !1;
|
|
4908
|
-
}
|
|
4909
|
-
}, J = typeof Uint8Array < "u", h = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", y = h && (c.prototype instanceof Uint8Array || c.TYPED_ARRAY_SUPPORT);
|
|
4910
|
-
return Ur = function(g, j) {
|
|
4911
|
-
if (c.isBuffer(g))
|
|
4912
|
-
return g.constructor && !("isBuffer" in g) ? c.from(g) : g;
|
|
4913
|
-
if (typeof g == "string")
|
|
4914
|
-
return c.from(g, j);
|
|
4915
|
-
if (h && q(g)) {
|
|
4916
|
-
if (g.byteLength === 0)
|
|
4917
|
-
return c.alloc(0);
|
|
4918
|
-
if (y) {
|
|
4919
|
-
var l = c.from(g.buffer, g.byteOffset, g.byteLength);
|
|
4920
|
-
if (l.byteLength === g.byteLength)
|
|
4921
|
-
return l;
|
|
4922
|
-
}
|
|
4923
|
-
var x = g instanceof Uint8Array ? g : new Uint8Array(g.buffer, g.byteOffset, g.byteLength), D = c.from(x);
|
|
4924
|
-
if (D.length === g.byteLength)
|
|
4925
|
-
return D;
|
|
4926
|
-
}
|
|
4927
|
-
if (J && g instanceof Uint8Array)
|
|
4928
|
-
return c.from(g);
|
|
4929
|
-
var Z = v(g);
|
|
4930
|
-
if (Z)
|
|
4931
|
-
for (var z = 0; z < g.length; z += 1) {
|
|
4932
|
-
var Q = g[z];
|
|
4933
|
-
if (typeof Q != "number" || Q < 0 || Q > 255 || ~~Q !== Q)
|
|
4934
|
-
throw new RangeError("Array items must be numbers in the range 0-255.");
|
|
4935
|
-
}
|
|
4936
|
-
if (Z || c.isBuffer(g) && g.constructor && typeof g.constructor.isBuffer == "function" && g.constructor.isBuffer(g))
|
|
4937
|
-
return c.from(g);
|
|
4938
|
-
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
4939
|
-
}, Ur;
|
|
4940
|
-
}
|
|
4941
|
-
export {
|
|
4942
|
-
Kt as B,
|
|
4943
|
-
cn as a,
|
|
4944
|
-
ur as b,
|
|
4945
|
-
hn as c,
|
|
4946
|
-
ir as d,
|
|
4947
|
-
on as e,
|
|
4948
|
-
pn as f,
|
|
4949
|
-
ze as g,
|
|
4950
|
-
pe as p,
|
|
4951
|
-
St as r
|
|
4952
|
-
};
|