@swapkit/wallet-keystore 1.0.0-rc.13 → 1.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +324 -326
- package/package.json +9 -9
- package/src/keystore.ts +6 -7
package/dist/index.es.js
CHANGED
|
@@ -354,7 +354,7 @@ no.write = function(t, e, r, i, a, n) {
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
s.prototype._isBuffer = !0;
|
|
357
|
-
function
|
|
357
|
+
function X(M, p, y) {
|
|
358
358
|
const B = M[p];
|
|
359
359
|
M[p] = M[y], M[y] = B;
|
|
360
360
|
}
|
|
@@ -363,21 +363,21 @@ no.write = function(t, e, r, i, a, n) {
|
|
|
363
363
|
if (p % 2 !== 0)
|
|
364
364
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
365
365
|
for (let y = 0; y < p; y += 2)
|
|
366
|
-
|
|
366
|
+
X(this, y, y + 1);
|
|
367
367
|
return this;
|
|
368
368
|
}, s.prototype.swap32 = function() {
|
|
369
369
|
const p = this.length;
|
|
370
370
|
if (p % 4 !== 0)
|
|
371
371
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
372
372
|
for (let y = 0; y < p; y += 4)
|
|
373
|
-
|
|
373
|
+
X(this, y, y + 3), X(this, y + 1, y + 2);
|
|
374
374
|
return this;
|
|
375
375
|
}, s.prototype.swap64 = function() {
|
|
376
376
|
const p = this.length;
|
|
377
377
|
if (p % 8 !== 0)
|
|
378
378
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
379
379
|
for (let y = 0; y < p; y += 8)
|
|
380
|
-
|
|
380
|
+
X(this, y, y + 7), X(this, y + 1, y + 6), X(this, y + 2, y + 5), X(this, y + 3, y + 4);
|
|
381
381
|
return this;
|
|
382
382
|
}, s.prototype.toString = function() {
|
|
383
383
|
const p = this.length;
|
|
@@ -650,13 +650,13 @@ no.write = function(t, e, r, i, a, n) {
|
|
|
650
650
|
}, s.prototype.readUint32BE = s.prototype.readUInt32BE = function(p, y) {
|
|
651
651
|
return p = p >>> 0, y || m(p, 4, this.length), this[p] * 16777216 + (this[p + 1] << 16 | this[p + 2] << 8 | this[p + 3]);
|
|
652
652
|
}, s.prototype.readBigUInt64LE = Te(function(p) {
|
|
653
|
-
p = p >>> 0,
|
|
653
|
+
p = p >>> 0, Z(p, "offset");
|
|
654
654
|
const y = this[p], B = this[p + 7];
|
|
655
655
|
(y === void 0 || B === void 0) && J(p, this.length - 8);
|
|
656
656
|
const F = y + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 + this[++p] * 2 ** 24, H = this[++p] + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 + B * 2 ** 24;
|
|
657
657
|
return BigInt(F) + (BigInt(H) << BigInt(32));
|
|
658
658
|
}), s.prototype.readBigUInt64BE = Te(function(p) {
|
|
659
|
-
p = p >>> 0,
|
|
659
|
+
p = p >>> 0, Z(p, "offset");
|
|
660
660
|
const y = this[p], B = this[p + 7];
|
|
661
661
|
(y === void 0 || B === void 0) && J(p, this.length - 8);
|
|
662
662
|
const F = y * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 + this[++p], H = this[++p] * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 + B;
|
|
@@ -688,13 +688,13 @@ no.write = function(t, e, r, i, a, n) {
|
|
|
688
688
|
}, s.prototype.readInt32BE = function(p, y) {
|
|
689
689
|
return p = p >>> 0, y || m(p, 4, this.length), this[p] << 24 | this[p + 1] << 16 | this[p + 2] << 8 | this[p + 3];
|
|
690
690
|
}, s.prototype.readBigInt64LE = Te(function(p) {
|
|
691
|
-
p = p >>> 0,
|
|
691
|
+
p = p >>> 0, Z(p, "offset");
|
|
692
692
|
const y = this[p], B = this[p + 7];
|
|
693
693
|
(y === void 0 || B === void 0) && J(p, this.length - 8);
|
|
694
694
|
const F = this[p + 4] + this[p + 5] * 2 ** 8 + this[p + 6] * 2 ** 16 + (B << 24);
|
|
695
695
|
return (BigInt(F) << BigInt(32)) + BigInt(y + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 + this[++p] * 2 ** 24);
|
|
696
696
|
}), s.prototype.readBigInt64BE = Te(function(p) {
|
|
697
|
-
p = p >>> 0,
|
|
697
|
+
p = p >>> 0, Z(p, "offset");
|
|
698
698
|
const y = this[p], B = this[p + 7];
|
|
699
699
|
(y === void 0 || B === void 0) && J(p, this.length - 8);
|
|
700
700
|
const F = (y << 24) + // Overflow
|
|
@@ -920,7 +920,7 @@ no.write = function(t, e, r, i, a, n) {
|
|
|
920
920
|
return `${M.slice(0, y)}${p}`;
|
|
921
921
|
}
|
|
922
922
|
function k(M, p, y) {
|
|
923
|
-
|
|
923
|
+
Z(p, "offset"), (M[p] === void 0 || M[p + y] === void 0) && J(p, M.length - (y + 1));
|
|
924
924
|
}
|
|
925
925
|
function R(M, p, y, B, F, H) {
|
|
926
926
|
if (M > y || M < p) {
|
|
@@ -930,12 +930,12 @@ no.write = function(t, e, r, i, a, n) {
|
|
|
930
930
|
}
|
|
931
931
|
k(B, F, H);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Z(M, p) {
|
|
934
934
|
if (typeof M != "number")
|
|
935
935
|
throw new z.ERR_INVALID_ARG_TYPE(p, "number", M);
|
|
936
936
|
}
|
|
937
937
|
function J(M, p, y) {
|
|
938
|
-
throw Math.floor(M) !== M ? (
|
|
938
|
+
throw Math.floor(M) !== M ? (Z(M, y), new z.ERR_OUT_OF_RANGE(y || "offset", "an integer", M)) : p < 0 ? new z.ERR_BUFFER_OUT_OF_BOUNDS() : new z.ERR_OUT_OF_RANGE(
|
|
939
939
|
y || "offset",
|
|
940
940
|
`>= ${y ? 1 : 0} and <= ${p}`,
|
|
941
941
|
M
|
|
@@ -3641,13 +3641,13 @@ function P0(t, e, r, i, a) {
|
|
|
3641
3641
|
const n = k0(r, e, i, a);
|
|
3642
3642
|
return ao(n, t), T0(n);
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function Zu(t, e, r, i, a) {
|
|
3645
3645
|
const n = P0(t, e, r, i, a);
|
|
3646
3646
|
return jn.toHex(n);
|
|
3647
3647
|
}
|
|
3648
|
-
var
|
|
3648
|
+
var Xu = {
|
|
3649
3649
|
blake2b: P0,
|
|
3650
|
-
blake2bHex:
|
|
3650
|
+
blake2bHex: Zu,
|
|
3651
3651
|
blake2bInit: k0,
|
|
3652
3652
|
blake2bUpdate: ao,
|
|
3653
3653
|
blake2bFinal: T0
|
|
@@ -3893,18 +3893,18 @@ var ed = {
|
|
|
3893
3893
|
blake2sUpdate: fo,
|
|
3894
3894
|
blake2sFinal: U0
|
|
3895
3895
|
};
|
|
3896
|
-
const Yi =
|
|
3896
|
+
const Yi = Xu, Zi = ed;
|
|
3897
3897
|
var Ga = {
|
|
3898
3898
|
blake2b: Yi.blake2b,
|
|
3899
3899
|
blake2bHex: Yi.blake2bHex,
|
|
3900
3900
|
blake2bInit: Yi.blake2bInit,
|
|
3901
3901
|
blake2bUpdate: Yi.blake2bUpdate,
|
|
3902
3902
|
blake2bFinal: Yi.blake2bFinal,
|
|
3903
|
-
blake2s:
|
|
3904
|
-
blake2sHex:
|
|
3905
|
-
blake2sInit:
|
|
3906
|
-
blake2sUpdate:
|
|
3907
|
-
blake2sFinal:
|
|
3903
|
+
blake2s: Zi.blake2s,
|
|
3904
|
+
blake2sHex: Zi.blake2sHex,
|
|
3905
|
+
blake2sInit: Zi.blake2sInit,
|
|
3906
|
+
blake2sUpdate: Zi.blake2sUpdate,
|
|
3907
|
+
blake2sFinal: Zi.blake2sFinal
|
|
3908
3908
|
}, Be = {}, Nf = { exports: {} }, Uf = { exports: {} };
|
|
3909
3909
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3910
3910
|
(function(t, e) {
|
|
@@ -4199,7 +4199,7 @@ function V0(t, e, r, i) {
|
|
|
4199
4199
|
else
|
|
4200
4200
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
4201
4201
|
}
|
|
4202
|
-
var G0 = oo.exports, W0 = G0.EventEmitter, so = {}, Y0 = {},
|
|
4202
|
+
var G0 = oo.exports, W0 = G0.EventEmitter, so = {}, Y0 = {}, Z0 = function() {
|
|
4203
4203
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
4204
4204
|
return !1;
|
|
4205
4205
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -4222,9 +4222,9 @@ var G0 = oo.exports, W0 = G0.EventEmitter, so = {}, Y0 = {}, X0 = function() {
|
|
|
4222
4222
|
return !1;
|
|
4223
4223
|
}
|
|
4224
4224
|
return !0;
|
|
4225
|
-
}, ud =
|
|
4225
|
+
}, ud = Z0, co = function() {
|
|
4226
4226
|
return ud() && !!Symbol.toStringTag;
|
|
4227
|
-
}, rs = typeof Symbol < "u" && Symbol, dd =
|
|
4227
|
+
}, rs = typeof Symbol < "u" && Symbol, dd = Z0, ld = function() {
|
|
4228
4228
|
return typeof rs != "function" || typeof Symbol != "function" || typeof rs("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : dd();
|
|
4229
4229
|
}, is = {
|
|
4230
4230
|
foo: {}
|
|
@@ -4254,9 +4254,9 @@ var G0 = oo.exports, W0 = G0.EventEmitter, so = {}, Y0 = {}, X0 = function() {
|
|
|
4254
4254
|
x.prototype = r.prototype, a.prototype = new x(), x.prototype = null;
|
|
4255
4255
|
}
|
|
4256
4256
|
return a;
|
|
4257
|
-
}, wd = gd, ho = Function.prototype.bind || wd, _d = ho, xd = _d.call(Function.call, Object.prototype.hasOwnProperty), Pe, Ri = SyntaxError,
|
|
4257
|
+
}, wd = gd, ho = Function.prototype.bind || wd, _d = ho, xd = _d.call(Function.call, Object.prototype.hasOwnProperty), Pe, Ri = SyntaxError, X0 = Function, Mi = TypeError, Za = function(t) {
|
|
4258
4258
|
try {
|
|
4259
|
-
return
|
|
4259
|
+
return X0('"use strict"; return (' + t + ").constructor;")();
|
|
4260
4260
|
} catch {
|
|
4261
4261
|
}
|
|
4262
4262
|
}, fi = Object.getOwnPropertyDescriptor;
|
|
@@ -4266,19 +4266,19 @@ if (fi)
|
|
|
4266
4266
|
} catch {
|
|
4267
4267
|
fi = null;
|
|
4268
4268
|
}
|
|
4269
|
-
var
|
|
4269
|
+
var Xa = function() {
|
|
4270
4270
|
throw new Mi();
|
|
4271
4271
|
}, Sd = fi ? function() {
|
|
4272
4272
|
try {
|
|
4273
|
-
return arguments.callee,
|
|
4273
|
+
return arguments.callee, Xa;
|
|
4274
4274
|
} catch {
|
|
4275
4275
|
try {
|
|
4276
4276
|
return fi(arguments, "callee").get;
|
|
4277
4277
|
} catch {
|
|
4278
|
-
return
|
|
4278
|
+
return Xa;
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
|
-
}() :
|
|
4281
|
+
}() : Xa, mi = ld(), Ed = bd(), ut = Object.getPrototypeOf || (Ed ? function(t) {
|
|
4282
4282
|
return t.__proto__;
|
|
4283
4283
|
} : null), wi = {}, Md = typeof Uint8Array > "u" || !ut ? Pe : ut(Uint8Array), oi = {
|
|
4284
4284
|
"%AggregateError%": typeof AggregateError > "u" ? Pe : AggregateError,
|
|
@@ -4308,7 +4308,7 @@ var Za = function() {
|
|
|
4308
4308
|
"%Float32Array%": typeof Float32Array > "u" ? Pe : Float32Array,
|
|
4309
4309
|
"%Float64Array%": typeof Float64Array > "u" ? Pe : Float64Array,
|
|
4310
4310
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Pe : FinalizationRegistry,
|
|
4311
|
-
"%Function%":
|
|
4311
|
+
"%Function%": X0,
|
|
4312
4312
|
"%GeneratorFunction%": wi,
|
|
4313
4313
|
"%Int8Array%": typeof Int8Array > "u" ? Pe : Int8Array,
|
|
4314
4314
|
"%Int16Array%": typeof Int16Array > "u" ? Pe : Int16Array,
|
|
@@ -4359,11 +4359,11 @@ if (ut)
|
|
|
4359
4359
|
var Bd = function t(e) {
|
|
4360
4360
|
var r;
|
|
4361
4361
|
if (e === "%AsyncFunction%")
|
|
4362
|
-
r =
|
|
4362
|
+
r = Za("async function () {}");
|
|
4363
4363
|
else if (e === "%GeneratorFunction%")
|
|
4364
|
-
r =
|
|
4364
|
+
r = Za("function* () {}");
|
|
4365
4365
|
else if (e === "%AsyncGeneratorFunction%")
|
|
4366
|
-
r =
|
|
4366
|
+
r = Za("async function* () {}");
|
|
4367
4367
|
else if (e === "%AsyncGenerator%") {
|
|
4368
4368
|
var i = t("%AsyncGeneratorFunction%");
|
|
4369
4369
|
i && (r = i.prototype);
|
|
@@ -4565,7 +4565,7 @@ var Kd = /^\s*class\b/, qf = function(e) {
|
|
|
4565
4565
|
} catch {
|
|
4566
4566
|
return !1;
|
|
4567
4567
|
}
|
|
4568
|
-
}, zn = Object.prototype.toString, Vd = "[object Object]", Gd = "[object Function]", Wd = "[object GeneratorFunction]", Yd = "[object HTMLAllCollection]",
|
|
4568
|
+
}, zn = Object.prototype.toString, Vd = "[object Object]", Gd = "[object Function]", Wd = "[object GeneratorFunction]", Yd = "[object HTMLAllCollection]", Zd = "[object HTML document.all class]", Xd = "[object HTMLCollection]", Jd = typeof Symbol == "function" && !!Symbol.toStringTag, Qd = !(0 in [,]), Hf = function() {
|
|
4569
4569
|
return !1;
|
|
4570
4570
|
};
|
|
4571
4571
|
if (typeof document == "object") {
|
|
@@ -4574,7 +4574,7 @@ if (typeof document == "object") {
|
|
|
4574
4574
|
if ((Qd || !e) && (typeof e > "u" || typeof e == "object"))
|
|
4575
4575
|
try {
|
|
4576
4576
|
var r = zn.call(e);
|
|
4577
|
-
return (r === Yd || r ===
|
|
4577
|
+
return (r === Yd || r === Zd || r === Xd || r === Vd) && e("") == null;
|
|
4578
4578
|
} catch {
|
|
4579
4579
|
}
|
|
4580
4580
|
return !1;
|
|
@@ -4733,10 +4733,10 @@ var vl = function(e) {
|
|
|
4733
4733
|
return i(Y) === "Uint32Array";
|
|
4734
4734
|
}
|
|
4735
4735
|
t.isUint32Array = V;
|
|
4736
|
-
function
|
|
4736
|
+
function X(Y) {
|
|
4737
4737
|
return i(Y) === "Int8Array";
|
|
4738
4738
|
}
|
|
4739
|
-
t.isInt8Array =
|
|
4739
|
+
t.isInt8Array = X;
|
|
4740
4740
|
function ee(Y) {
|
|
4741
4741
|
return i(Y) === "Int16Array";
|
|
4742
4742
|
}
|
|
@@ -4841,10 +4841,10 @@ var vl = function(e) {
|
|
|
4841
4841
|
return C(Y, x);
|
|
4842
4842
|
}
|
|
4843
4843
|
t.isNumberObject = R;
|
|
4844
|
-
function
|
|
4844
|
+
function Z(Y) {
|
|
4845
4845
|
return C(Y, _);
|
|
4846
4846
|
}
|
|
4847
|
-
t.isStringObject =
|
|
4847
|
+
t.isStringObject = Z;
|
|
4848
4848
|
function J(Y) {
|
|
4849
4849
|
return C(Y, A);
|
|
4850
4850
|
}
|
|
@@ -4858,7 +4858,7 @@ var vl = function(e) {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
t.isSymbolObject = oe;
|
|
4860
4860
|
function ce(Y) {
|
|
4861
|
-
return R(Y) ||
|
|
4861
|
+
return R(Y) || Z(Y) || J(Y) || ae(Y) || oe(Y);
|
|
4862
4862
|
}
|
|
4863
4863
|
t.isBoxedPrimitive = ce;
|
|
4864
4864
|
function he(Y) {
|
|
@@ -4883,7 +4883,7 @@ var wl = function(e) {
|
|
|
4883
4883
|
return G;
|
|
4884
4884
|
}, r = /%[sdj%]/g;
|
|
4885
4885
|
t.format = function(h) {
|
|
4886
|
-
if (!
|
|
4886
|
+
if (!X(h)) {
|
|
4887
4887
|
for (var S = [], j = 0; j < arguments.length; j++)
|
|
4888
4888
|
S.push(o(arguments[j]));
|
|
4889
4889
|
return S.join(" ");
|
|
@@ -4996,7 +4996,7 @@ var wl = function(e) {
|
|
|
4996
4996
|
S.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
4997
4997
|
!(S.constructor && S.constructor.prototype === S)) {
|
|
4998
4998
|
var G = S.inspect(j, h);
|
|
4999
|
-
return
|
|
4999
|
+
return X(G) || (G = _(h, G, j)), G;
|
|
5000
5000
|
}
|
|
5001
5001
|
var O = A(h, S);
|
|
5002
5002
|
if (O)
|
|
@@ -5018,8 +5018,8 @@ var wl = function(e) {
|
|
|
5018
5018
|
}
|
|
5019
5019
|
var te = "", k = !1, R = ["{", "}"];
|
|
5020
5020
|
if (P(S) && (k = !0, R = ["[", "]"]), l(S)) {
|
|
5021
|
-
var
|
|
5022
|
-
te = " [Function" +
|
|
5021
|
+
var Z = S.name ? ": " + S.name : "";
|
|
5022
|
+
te = " [Function" + Z + "]";
|
|
5023
5023
|
}
|
|
5024
5024
|
if (ie(S) && (te = " " + RegExp.prototype.toString.call(S)), me(S) && (te = " " + Date.prototype.toUTCString.call(S)), D(S) && (te = " " + I(S)), U.length === 0 && (!k || S.length == 0))
|
|
5025
5025
|
return R[0] + te + R[1];
|
|
@@ -5034,7 +5034,7 @@ var wl = function(e) {
|
|
|
5034
5034
|
function A(h, S) {
|
|
5035
5035
|
if (ne(S))
|
|
5036
5036
|
return h.stylize("undefined", "undefined");
|
|
5037
|
-
if (
|
|
5037
|
+
if (X(S)) {
|
|
5038
5038
|
var j = "'" + JSON.stringify(S).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
5039
5039
|
return h.stylize(j, "string");
|
|
5040
5040
|
}
|
|
@@ -5118,10 +5118,10 @@ var wl = function(e) {
|
|
|
5118
5118
|
return typeof h == "number";
|
|
5119
5119
|
}
|
|
5120
5120
|
t.isNumber = V;
|
|
5121
|
-
function
|
|
5121
|
+
function X(h) {
|
|
5122
5122
|
return typeof h == "string";
|
|
5123
5123
|
}
|
|
5124
|
-
t.isString =
|
|
5124
|
+
t.isString = X;
|
|
5125
5125
|
function ee(h) {
|
|
5126
5126
|
return typeof h == "symbol";
|
|
5127
5127
|
}
|
|
@@ -5403,9 +5403,9 @@ function _l() {
|
|
|
5403
5403
|
value: function(P) {
|
|
5404
5404
|
var N = this.head, L = 1, q = N.data;
|
|
5405
5405
|
for (P -= q.length; N = N.next; ) {
|
|
5406
|
-
var V = N.data,
|
|
5407
|
-
if (
|
|
5408
|
-
|
|
5406
|
+
var V = N.data, X = P > V.length ? V.length : P;
|
|
5407
|
+
if (X === V.length ? q += V : q += V.slice(0, P), P -= X, P === 0) {
|
|
5408
|
+
X === V.length ? (++L, N.next ? this.head = N.next : this.head = this.tail = null) : (this.head = N, N.data = V.slice(X));
|
|
5409
5409
|
break;
|
|
5410
5410
|
}
|
|
5411
5411
|
++L;
|
|
@@ -5418,9 +5418,9 @@ function _l() {
|
|
|
5418
5418
|
value: function(P) {
|
|
5419
5419
|
var N = x.allocUnsafe(P), L = this.head, q = 1;
|
|
5420
5420
|
for (L.data.copy(N), P -= L.data.length; L = L.next; ) {
|
|
5421
|
-
var V = L.data,
|
|
5422
|
-
if (V.copy(N, N.length - P, 0,
|
|
5423
|
-
|
|
5421
|
+
var V = L.data, X = P > V.length ? V.length : P;
|
|
5422
|
+
if (V.copy(N, N.length - P, 0, X), P -= X, P === 0) {
|
|
5423
|
+
X === V.length ? (++q, L.next ? this.head = L.next : this.head = this.tail = null) : (this.head = L, L.data = V.slice(X));
|
|
5424
5424
|
break;
|
|
5425
5425
|
}
|
|
5426
5426
|
++q;
|
|
@@ -5603,7 +5603,7 @@ function dc() {
|
|
|
5603
5603
|
}
|
|
5604
5604
|
var b = cc, x = uc, _ = x.getHighWaterMark, A = li.codes, I = A.ERR_INVALID_ARG_TYPE, T = A.ERR_METHOD_NOT_IMPLEMENTED, C = A.ERR_MULTIPLE_CALLBACK, $ = A.ERR_STREAM_CANNOT_PIPE, P = A.ERR_STREAM_DESTROYED, N = A.ERR_STREAM_NULL_VALUES, L = A.ERR_STREAM_WRITE_AFTER_END, q = A.ERR_UNKNOWN_ENCODING, V = b.errorOrDestroy;
|
|
5605
5605
|
Re(ie, i);
|
|
5606
|
-
function
|
|
5606
|
+
function X() {
|
|
5607
5607
|
}
|
|
5608
5608
|
function ee(O, U, z) {
|
|
5609
5609
|
e = e || ki(), O = O || {}, typeof z != "boolean" && (z = U instanceof e), this.objectMode = !!O.objectMode, z && (this.objectMode = this.objectMode || !!O.writableObjectMode), this.highWaterMark = _(this, O, "writableHighWaterMark", z), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
@@ -5654,7 +5654,7 @@ function dc() {
|
|
|
5654
5654
|
}
|
|
5655
5655
|
ie.prototype.write = function(O, U, z) {
|
|
5656
5656
|
var W = this._writableState, te = !1, k = !W.objectMode && s(O);
|
|
5657
|
-
return k && !a.isBuffer(O) && (O = o(O)), typeof U == "function" && (z = U, U = null), k ? U = "buffer" : U || (U = W.defaultEncoding), typeof z != "function" && (z =
|
|
5657
|
+
return k && !a.isBuffer(O) && (O = o(O)), typeof U == "function" && (z = U, U = null), k ? U = "buffer" : U || (U = W.defaultEncoding), typeof z != "function" && (z = X), W.ending ? Q(this, z) : (k || me(this, W, O, z)) && (W.pendingcb++, te = l(this, W, k, O, U, z)), te;
|
|
5658
5658
|
}, ie.prototype.cork = function() {
|
|
5659
5659
|
this._writableState.corked++;
|
|
5660
5660
|
}, ie.prototype.uncork = function() {
|
|
@@ -5690,8 +5690,8 @@ function dc() {
|
|
|
5690
5690
|
var R = D(U, W, te);
|
|
5691
5691
|
W !== R && (z = !0, te = "buffer", W = R);
|
|
5692
5692
|
}
|
|
5693
|
-
var
|
|
5694
|
-
U.length +=
|
|
5693
|
+
var Z = U.objectMode ? 1 : W.length;
|
|
5694
|
+
U.length += Z;
|
|
5695
5695
|
var J = U.length < U.highWaterMark;
|
|
5696
5696
|
if (J || (U.needDrain = !0), U.writing || U.corked) {
|
|
5697
5697
|
var ae = U.lastBufferedRequest;
|
|
@@ -5703,7 +5703,7 @@ function dc() {
|
|
|
5703
5703
|
next: null
|
|
5704
5704
|
}, ae ? ae.next = U.lastBufferedRequest : U.bufferedRequest = U.lastBufferedRequest, U.bufferedRequestCount += 1;
|
|
5705
5705
|
} else
|
|
5706
|
-
u(O, U, !1,
|
|
5706
|
+
u(O, U, !1, Z, W, te, k);
|
|
5707
5707
|
return J;
|
|
5708
5708
|
}
|
|
5709
5709
|
function u(O, U, z, W, te, k, R) {
|
|
@@ -5738,9 +5738,9 @@ function dc() {
|
|
|
5738
5738
|
if (O._writev && z && z.next) {
|
|
5739
5739
|
var W = U.bufferedRequestCount, te = new Array(W), k = U.corkedRequestsFree;
|
|
5740
5740
|
k.entry = z;
|
|
5741
|
-
for (var R = 0,
|
|
5742
|
-
te[R] = z, z.isBuf || (
|
|
5743
|
-
te.allBuffers =
|
|
5741
|
+
for (var R = 0, Z = !0; z; )
|
|
5742
|
+
te[R] = z, z.isBuf || (Z = !1), z = z.next, R += 1;
|
|
5743
|
+
te.allBuffers = Z, u(O, U, !0, U.length, te, "", k.finish), U.pendingcb++, U.lastBufferedRequest = null, k.next ? (U.corkedRequestsFree = k.next, k.next = null) : U.corkedRequestsFree = new t(U), U.bufferedRequestCount = 0;
|
|
5744
5744
|
} else {
|
|
5745
5745
|
for (; z; ) {
|
|
5746
5746
|
var J = z.chunk, ae = z.encoding, oe = z.callback, ce = U.objectMode ? 1 : J.length;
|
|
@@ -6083,13 +6083,13 @@ function lc(t, e, r) {
|
|
|
6083
6083
|
};
|
|
6084
6084
|
}
|
|
6085
6085
|
var vo = lc, cf, bs;
|
|
6086
|
-
function
|
|
6086
|
+
function Zl() {
|
|
6087
6087
|
if (bs)
|
|
6088
6088
|
return cf;
|
|
6089
6089
|
bs = 1;
|
|
6090
6090
|
var t;
|
|
6091
|
-
function e(q, V,
|
|
6092
|
-
return V = r(V), V in q ? Object.defineProperty(q, V, { value:
|
|
6091
|
+
function e(q, V, X) {
|
|
6092
|
+
return V = r(V), V in q ? Object.defineProperty(q, V, { value: X, enumerable: !0, configurable: !0, writable: !0 }) : q[V] = X, q;
|
|
6093
6093
|
}
|
|
6094
6094
|
function r(q) {
|
|
6095
6095
|
var V = i(q, "string");
|
|
@@ -6098,9 +6098,9 @@ function Xl() {
|
|
|
6098
6098
|
function i(q, V) {
|
|
6099
6099
|
if (typeof q != "object" || q === null)
|
|
6100
6100
|
return q;
|
|
6101
|
-
var
|
|
6102
|
-
if (
|
|
6103
|
-
var ee =
|
|
6101
|
+
var X = q[Symbol.toPrimitive];
|
|
6102
|
+
if (X !== void 0) {
|
|
6103
|
+
var ee = X.call(q, V || "default");
|
|
6104
6104
|
if (typeof ee != "object")
|
|
6105
6105
|
return ee;
|
|
6106
6106
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -6117,21 +6117,21 @@ function Xl() {
|
|
|
6117
6117
|
function T(q) {
|
|
6118
6118
|
var V = q[n];
|
|
6119
6119
|
if (V !== null) {
|
|
6120
|
-
var
|
|
6121
|
-
|
|
6120
|
+
var X = q[A].read();
|
|
6121
|
+
X !== null && (q[x] = null, q[n] = null, q[o] = null, V(I(X, !1)));
|
|
6122
6122
|
}
|
|
6123
6123
|
}
|
|
6124
6124
|
function C(q) {
|
|
6125
6125
|
re.process.nextTick(T, q);
|
|
6126
6126
|
}
|
|
6127
6127
|
function $(q, V) {
|
|
6128
|
-
return function(
|
|
6128
|
+
return function(X, ee) {
|
|
6129
6129
|
q.then(function() {
|
|
6130
6130
|
if (V[b]) {
|
|
6131
|
-
|
|
6131
|
+
X(I(void 0, !0));
|
|
6132
6132
|
return;
|
|
6133
6133
|
}
|
|
6134
|
-
V[_](
|
|
6134
|
+
V[_](X, ee);
|
|
6135
6135
|
}, ee);
|
|
6136
6136
|
};
|
|
6137
6137
|
}
|
|
@@ -6141,9 +6141,9 @@ function Xl() {
|
|
|
6141
6141
|
return this[A];
|
|
6142
6142
|
},
|
|
6143
6143
|
next: function() {
|
|
6144
|
-
var V = this,
|
|
6145
|
-
if (
|
|
6146
|
-
return Promise.reject(
|
|
6144
|
+
var V = this, X = this[s];
|
|
6145
|
+
if (X !== null)
|
|
6146
|
+
return Promise.reject(X);
|
|
6147
6147
|
if (this[b])
|
|
6148
6148
|
return Promise.resolve(I(void 0, !0));
|
|
6149
6149
|
if (this[A].destroyed)
|
|
@@ -6167,38 +6167,38 @@ function Xl() {
|
|
|
6167
6167
|
return this;
|
|
6168
6168
|
}), e(t, "return", function() {
|
|
6169
6169
|
var V = this;
|
|
6170
|
-
return new Promise(function(
|
|
6170
|
+
return new Promise(function(X, ee) {
|
|
6171
6171
|
V[A].destroy(null, function(ne) {
|
|
6172
6172
|
if (ne) {
|
|
6173
6173
|
ee(ne);
|
|
6174
6174
|
return;
|
|
6175
6175
|
}
|
|
6176
|
-
|
|
6176
|
+
X(I(void 0, !0));
|
|
6177
6177
|
});
|
|
6178
6178
|
});
|
|
6179
6179
|
}), t), P), L = function(V) {
|
|
6180
|
-
var
|
|
6180
|
+
var X, ee = Object.create(N, (X = {}, e(X, A, {
|
|
6181
6181
|
value: V,
|
|
6182
6182
|
writable: !0
|
|
6183
|
-
}), e(
|
|
6183
|
+
}), e(X, n, {
|
|
6184
6184
|
value: null,
|
|
6185
6185
|
writable: !0
|
|
6186
|
-
}), e(
|
|
6186
|
+
}), e(X, o, {
|
|
6187
6187
|
value: null,
|
|
6188
6188
|
writable: !0
|
|
6189
|
-
}), e(
|
|
6189
|
+
}), e(X, s, {
|
|
6190
6190
|
value: null,
|
|
6191
6191
|
writable: !0
|
|
6192
|
-
}), e(
|
|
6192
|
+
}), e(X, b, {
|
|
6193
6193
|
value: V._readableState.endEmitted,
|
|
6194
6194
|
writable: !0
|
|
6195
|
-
}), e(
|
|
6195
|
+
}), e(X, _, {
|
|
6196
6196
|
value: function(ie, Q) {
|
|
6197
6197
|
var me = ee[A].read();
|
|
6198
6198
|
me ? (ee[x] = null, ee[n] = null, ee[o] = null, ie(I(me, !1))) : (ee[n] = ie, ee[o] = Q);
|
|
6199
6199
|
},
|
|
6200
6200
|
writable: !0
|
|
6201
|
-
}),
|
|
6201
|
+
}), X));
|
|
6202
6202
|
return ee[x] = null, a(V, function(ne) {
|
|
6203
6203
|
if (ne && ne.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
6204
6204
|
var ie = ee[o];
|
|
@@ -6212,7 +6212,7 @@ function Xl() {
|
|
|
6212
6212
|
return cf = L, cf;
|
|
6213
6213
|
}
|
|
6214
6214
|
var hf, vs;
|
|
6215
|
-
function
|
|
6215
|
+
function Xl() {
|
|
6216
6216
|
return vs || (vs = 1, hf = function() {
|
|
6217
6217
|
throw new Error("Readable.from is not available in the browser");
|
|
6218
6218
|
}), hf;
|
|
@@ -6224,8 +6224,8 @@ function pc() {
|
|
|
6224
6224
|
ys = 1, uf = Q;
|
|
6225
6225
|
var t;
|
|
6226
6226
|
Q.ReadableState = ie, G0.EventEmitter;
|
|
6227
|
-
var e = function(R,
|
|
6228
|
-
return R.listeners(
|
|
6227
|
+
var e = function(R, Z) {
|
|
6228
|
+
return R.listeners(Z).length;
|
|
6229
6229
|
}, r = W0, i = dr.Buffer, a = (typeof Oe < "u" ? Oe : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
6230
6230
|
};
|
|
6231
6231
|
function n(k) {
|
|
@@ -6239,14 +6239,14 @@ function pc() {
|
|
|
6239
6239
|
};
|
|
6240
6240
|
var x = _l(), _ = cc, A = uc, I = A.getHighWaterMark, T = li.codes, C = T.ERR_INVALID_ARG_TYPE, $ = T.ERR_STREAM_PUSH_AFTER_EOF, P = T.ERR_METHOD_NOT_IMPLEMENTED, N = T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, L, q, V;
|
|
6241
6241
|
Re(Q, r);
|
|
6242
|
-
var
|
|
6243
|
-
function ne(k, R,
|
|
6242
|
+
var X = _.errorOrDestroy, ee = ["error", "close", "destroy", "pause", "resume"];
|
|
6243
|
+
function ne(k, R, Z) {
|
|
6244
6244
|
if (typeof k.prependListener == "function")
|
|
6245
|
-
return k.prependListener(R,
|
|
6246
|
-
!k._events || !k._events[R] ? k.on(R,
|
|
6245
|
+
return k.prependListener(R, Z);
|
|
6246
|
+
!k._events || !k._events[R] ? k.on(R, Z) : Array.isArray(k._events[R]) ? k._events[R].unshift(Z) : k._events[R] = [Z, k._events[R]];
|
|
6247
6247
|
}
|
|
6248
|
-
function ie(k, R,
|
|
6249
|
-
t = t || ki(), k = k || {}, typeof
|
|
6248
|
+
function ie(k, R, Z) {
|
|
6249
|
+
t = t || ki(), k = k || {}, typeof Z != "boolean" && (Z = R instanceof t), this.objectMode = !!k.objectMode, Z && (this.objectMode = this.objectMode || !!k.readableObjectMode), this.highWaterMark = I(this, k, "readableHighWaterMark", Z), this.buffer = new x(), 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 = k.emitClose !== !1, this.autoDestroy = !!k.autoDestroy, this.destroyed = !1, this.defaultEncoding = k.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, k.encoding && (L || (L = na.StringDecoder), this.decoder = new L(k.encoding), this.encoding = k.encoding);
|
|
6250
6250
|
}
|
|
6251
6251
|
function Q(k) {
|
|
6252
6252
|
if (t = t || ki(), !(this instanceof Q))
|
|
@@ -6268,12 +6268,12 @@ function pc() {
|
|
|
6268
6268
|
}), Q.prototype.destroy = _.destroy, Q.prototype._undestroy = _.undestroy, Q.prototype._destroy = function(k, R) {
|
|
6269
6269
|
R(k);
|
|
6270
6270
|
}, Q.prototype.push = function(k, R) {
|
|
6271
|
-
var
|
|
6272
|
-
return
|
|
6271
|
+
var Z = this._readableState, J;
|
|
6272
|
+
return Z.objectMode ? J = !0 : typeof k == "string" && (R = R || Z.defaultEncoding, R !== Z.encoding && (k = i.from(k, R), R = ""), J = !0), me(this, k, R, !1, J);
|
|
6273
6273
|
}, Q.prototype.unshift = function(k) {
|
|
6274
6274
|
return me(this, k, null, !0, !1);
|
|
6275
6275
|
};
|
|
6276
|
-
function me(k, R,
|
|
6276
|
+
function me(k, R, Z, J, ae) {
|
|
6277
6277
|
b("readableAddChunk", R);
|
|
6278
6278
|
var oe = k._readableState;
|
|
6279
6279
|
if (R === null)
|
|
@@ -6281,28 +6281,28 @@ function pc() {
|
|
|
6281
6281
|
else {
|
|
6282
6282
|
var ce;
|
|
6283
6283
|
if (ae || (ce = l(oe, R)), ce)
|
|
6284
|
-
|
|
6284
|
+
X(k, ce);
|
|
6285
6285
|
else if (oe.objectMode || R && R.length > 0)
|
|
6286
6286
|
if (typeof R != "string" && !oe.objectMode && Object.getPrototypeOf(R) !== i.prototype && (R = n(R)), J)
|
|
6287
|
-
oe.endEmitted ?
|
|
6287
|
+
oe.endEmitted ? X(k, new N()) : D(k, oe, R, !0);
|
|
6288
6288
|
else if (oe.ended)
|
|
6289
|
-
|
|
6289
|
+
X(k, new $());
|
|
6290
6290
|
else {
|
|
6291
6291
|
if (oe.destroyed)
|
|
6292
6292
|
return !1;
|
|
6293
|
-
oe.reading = !1, oe.decoder && !
|
|
6293
|
+
oe.reading = !1, oe.decoder && !Z ? (R = oe.decoder.write(R), oe.objectMode || R.length !== 0 ? D(k, oe, R, !1) : g(k, oe)) : D(k, oe, R, !1);
|
|
6294
6294
|
}
|
|
6295
6295
|
else
|
|
6296
6296
|
J || (oe.reading = !1, g(k, oe));
|
|
6297
6297
|
}
|
|
6298
6298
|
return !oe.ended && (oe.length < oe.highWaterMark || oe.length === 0);
|
|
6299
6299
|
}
|
|
6300
|
-
function D(k, R,
|
|
6301
|
-
R.flowing && R.length === 0 && !R.sync ? (R.awaitDrain = 0, k.emit("data",
|
|
6300
|
+
function D(k, R, Z, J) {
|
|
6301
|
+
R.flowing && R.length === 0 && !R.sync ? (R.awaitDrain = 0, k.emit("data", Z)) : (R.length += R.objectMode ? 1 : Z.length, J ? R.buffer.unshift(Z) : R.buffer.push(Z), R.needReadable && w(k)), g(k, R);
|
|
6302
6302
|
}
|
|
6303
6303
|
function l(k, R) {
|
|
6304
|
-
var
|
|
6305
|
-
return !o(R) && typeof R != "string" && R !== void 0 && !k.objectMode && (
|
|
6304
|
+
var Z;
|
|
6305
|
+
return !o(R) && typeof R != "string" && R !== void 0 && !k.objectMode && (Z = new C("chunk", ["string", "Buffer", "Uint8Array"], R)), Z;
|
|
6306
6306
|
}
|
|
6307
6307
|
Q.prototype.isPaused = function() {
|
|
6308
6308
|
return this._readableState.flowing === !1;
|
|
@@ -6310,8 +6310,8 @@ function pc() {
|
|
|
6310
6310
|
L || (L = na.StringDecoder);
|
|
6311
6311
|
var R = new L(k);
|
|
6312
6312
|
this._readableState.decoder = R, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
6313
|
-
for (var
|
|
6314
|
-
J += R.write(
|
|
6313
|
+
for (var Z = this._readableState.buffer.head, J = ""; Z !== null; )
|
|
6314
|
+
J += R.write(Z.data), Z = Z.next;
|
|
6315
6315
|
return this._readableState.buffer.clear(), J !== "" && this._readableState.buffer.push(J), this._readableState.length = J.length, this;
|
|
6316
6316
|
};
|
|
6317
6317
|
var u = 1073741824;
|
|
@@ -6323,21 +6323,21 @@ function pc() {
|
|
|
6323
6323
|
}
|
|
6324
6324
|
Q.prototype.read = function(k) {
|
|
6325
6325
|
b("read", k), k = parseInt(k, 10);
|
|
6326
|
-
var R = this._readableState,
|
|
6326
|
+
var R = this._readableState, Z = k;
|
|
6327
6327
|
if (k !== 0 && (R.emittedReadable = !1), k === 0 && R.needReadable && ((R.highWaterMark !== 0 ? R.length >= R.highWaterMark : R.length > 0) || R.ended))
|
|
6328
6328
|
return b("read: emitReadable", R.length, R.ended), R.length === 0 && R.ended ? z(this) : w(this), null;
|
|
6329
6329
|
if (k = c(k, R), k === 0 && R.ended)
|
|
6330
6330
|
return R.length === 0 && z(this), null;
|
|
6331
6331
|
var J = R.needReadable;
|
|
6332
|
-
b("need readable", J), (R.length === 0 || R.length - k < R.highWaterMark) && (J = !0, b("length less than watermark", J)), R.ended || R.reading ? (J = !1, b("reading or ended", J)) : J && (b("do read"), R.reading = !0, R.sync = !0, R.length === 0 && (R.needReadable = !0), this._read(R.highWaterMark), R.sync = !1, R.reading || (k = c(
|
|
6332
|
+
b("need readable", J), (R.length === 0 || R.length - k < R.highWaterMark) && (J = !0, b("length less than watermark", J)), R.ended || R.reading ? (J = !1, b("reading or ended", J)) : J && (b("do read"), R.reading = !0, R.sync = !0, R.length === 0 && (R.needReadable = !0), this._read(R.highWaterMark), R.sync = !1, R.reading || (k = c(Z, R)));
|
|
6333
6333
|
var ae;
|
|
6334
|
-
return k > 0 ? ae = U(k, R) : ae = null, ae === null ? (R.needReadable = R.length <= R.highWaterMark, k = 0) : (R.length -= k, R.awaitDrain = 0), R.length === 0 && (R.ended || (R.needReadable = !0),
|
|
6334
|
+
return k > 0 ? ae = U(k, R) : ae = null, ae === null ? (R.needReadable = R.length <= R.highWaterMark, k = 0) : (R.length -= k, R.awaitDrain = 0), R.length === 0 && (R.ended || (R.needReadable = !0), Z !== k && R.ended && z(this)), ae !== null && this.emit("data", ae), ae;
|
|
6335
6335
|
};
|
|
6336
6336
|
function v(k, R) {
|
|
6337
6337
|
if (b("onEofChunk"), !R.ended) {
|
|
6338
6338
|
if (R.decoder) {
|
|
6339
|
-
var
|
|
6340
|
-
|
|
6339
|
+
var Z = R.decoder.end();
|
|
6340
|
+
Z && Z.length && (R.buffer.push(Z), R.length += R.objectMode ? 1 : Z.length);
|
|
6341
6341
|
}
|
|
6342
6342
|
R.ended = !0, R.sync ? w(k) : (R.needReadable = !1, R.emittedReadable || (R.emittedReadable = !0, E(k)));
|
|
6343
6343
|
}
|
|
@@ -6355,16 +6355,16 @@ function pc() {
|
|
|
6355
6355
|
}
|
|
6356
6356
|
function d(k, R) {
|
|
6357
6357
|
for (; !R.reading && !R.ended && (R.length < R.highWaterMark || R.flowing && R.length === 0); ) {
|
|
6358
|
-
var
|
|
6359
|
-
if (b("maybeReadMore read 0"), k.read(0),
|
|
6358
|
+
var Z = R.length;
|
|
6359
|
+
if (b("maybeReadMore read 0"), k.read(0), Z === R.length)
|
|
6360
6360
|
break;
|
|
6361
6361
|
}
|
|
6362
6362
|
R.readingMore = !1;
|
|
6363
6363
|
}
|
|
6364
6364
|
Q.prototype._read = function(k) {
|
|
6365
|
-
|
|
6365
|
+
X(this, new P("_read()"));
|
|
6366
6366
|
}, Q.prototype.pipe = function(k, R) {
|
|
6367
|
-
var
|
|
6367
|
+
var Z = this, J = this._readableState;
|
|
6368
6368
|
switch (J.pipesCount) {
|
|
6369
6369
|
case 0:
|
|
6370
6370
|
J.pipes = k;
|
|
@@ -6378,27 +6378,27 @@ function pc() {
|
|
|
6378
6378
|
}
|
|
6379
6379
|
J.pipesCount += 1, b("pipe count=%d opts=%j", J.pipesCount, R);
|
|
6380
6380
|
var ae = (!R || R.end !== !1) && k !== re.process.stdout && k !== re.process.stderr, oe = ae ? he : Le;
|
|
6381
|
-
J.endEmitted ? re.process.nextTick(oe) :
|
|
6381
|
+
J.endEmitted ? re.process.nextTick(oe) : Z.once("end", oe), k.on("unpipe", ce);
|
|
6382
6382
|
function ce(M, p) {
|
|
6383
|
-
b("onunpipe"), M ===
|
|
6383
|
+
b("onunpipe"), M === Z && p && p.hasUnpiped === !1 && (p.hasUnpiped = !0, le());
|
|
6384
6384
|
}
|
|
6385
6385
|
function he() {
|
|
6386
6386
|
b("onend"), k.end();
|
|
6387
6387
|
}
|
|
6388
|
-
var Y = m(
|
|
6388
|
+
var Y = m(Z);
|
|
6389
6389
|
k.on("drain", Y);
|
|
6390
6390
|
var Ne = !1;
|
|
6391
6391
|
function le() {
|
|
6392
|
-
b("cleanup"), k.removeListener("close", pe), k.removeListener("finish", Te), k.removeListener("drain", Y), k.removeListener("error", Ue), k.removeListener("unpipe", ce),
|
|
6392
|
+
b("cleanup"), k.removeListener("close", pe), k.removeListener("finish", Te), k.removeListener("drain", Y), k.removeListener("error", Ue), k.removeListener("unpipe", ce), Z.removeListener("end", he), Z.removeListener("end", Le), Z.removeListener("data", ke), Ne = !0, J.awaitDrain && (!k._writableState || k._writableState.needDrain) && Y();
|
|
6393
6393
|
}
|
|
6394
|
-
|
|
6394
|
+
Z.on("data", ke);
|
|
6395
6395
|
function ke(M) {
|
|
6396
6396
|
b("ondata");
|
|
6397
6397
|
var p = k.write(M);
|
|
6398
|
-
b("dest.write", p), p === !1 && ((J.pipesCount === 1 && J.pipes === k || J.pipesCount > 1 && te(J.pipes, k) !== -1) && !Ne && (b("false write response, pause", J.awaitDrain), J.awaitDrain++),
|
|
6398
|
+
b("dest.write", p), p === !1 && ((J.pipesCount === 1 && J.pipes === k || J.pipesCount > 1 && te(J.pipes, k) !== -1) && !Ne && (b("false write response, pause", J.awaitDrain), J.awaitDrain++), Z.pause());
|
|
6399
6399
|
}
|
|
6400
6400
|
function Ue(M) {
|
|
6401
|
-
b("onerror", M), Le(), k.removeListener("error", Ue), e(k, "error") === 0 &&
|
|
6401
|
+
b("onerror", M), Le(), k.removeListener("error", Ue), e(k, "error") === 0 && X(k, M);
|
|
6402
6402
|
}
|
|
6403
6403
|
ne(k, "error", Ue);
|
|
6404
6404
|
function pe() {
|
|
@@ -6410,24 +6410,24 @@ function pc() {
|
|
|
6410
6410
|
}
|
|
6411
6411
|
k.once("finish", Te);
|
|
6412
6412
|
function Le() {
|
|
6413
|
-
b("unpipe"),
|
|
6413
|
+
b("unpipe"), Z.unpipe(k);
|
|
6414
6414
|
}
|
|
6415
|
-
return k.emit("pipe",
|
|
6415
|
+
return k.emit("pipe", Z), J.flowing || (b("pipe resume"), Z.resume()), k;
|
|
6416
6416
|
};
|
|
6417
6417
|
function m(k) {
|
|
6418
6418
|
return function() {
|
|
6419
|
-
var
|
|
6420
|
-
b("pipeOnDrain",
|
|
6419
|
+
var Z = k._readableState;
|
|
6420
|
+
b("pipeOnDrain", Z.awaitDrain), Z.awaitDrain && Z.awaitDrain--, Z.awaitDrain === 0 && e(k, "data") && (Z.flowing = !0, O(k));
|
|
6421
6421
|
};
|
|
6422
6422
|
}
|
|
6423
6423
|
Q.prototype.unpipe = function(k) {
|
|
6424
|
-
var R = this._readableState,
|
|
6424
|
+
var R = this._readableState, Z = {
|
|
6425
6425
|
hasUnpiped: !1
|
|
6426
6426
|
};
|
|
6427
6427
|
if (R.pipesCount === 0)
|
|
6428
6428
|
return this;
|
|
6429
6429
|
if (R.pipesCount === 1)
|
|
6430
|
-
return k && k !== R.pipes ? this : (k || (k = R.pipes), R.pipes = null, R.pipesCount = 0, R.flowing = !1, k && k.emit("unpipe", this,
|
|
6430
|
+
return k && k !== R.pipes ? this : (k || (k = R.pipes), R.pipes = null, R.pipesCount = 0, R.flowing = !1, k && k.emit("unpipe", this, Z), this);
|
|
6431
6431
|
if (!k) {
|
|
6432
6432
|
var J = R.pipes, ae = R.pipesCount;
|
|
6433
6433
|
R.pipes = null, R.pipesCount = 0, R.flowing = !1;
|
|
@@ -6438,13 +6438,13 @@ function pc() {
|
|
|
6438
6438
|
return this;
|
|
6439
6439
|
}
|
|
6440
6440
|
var ce = te(R.pipes, k);
|
|
6441
|
-
return ce === -1 ? this : (R.pipes.splice(ce, 1), R.pipesCount -= 1, R.pipesCount === 1 && (R.pipes = R.pipes[0]), k.emit("unpipe", this,
|
|
6441
|
+
return ce === -1 ? this : (R.pipes.splice(ce, 1), R.pipesCount -= 1, R.pipesCount === 1 && (R.pipes = R.pipes[0]), k.emit("unpipe", this, Z), this);
|
|
6442
6442
|
}, Q.prototype.on = function(k, R) {
|
|
6443
|
-
var
|
|
6444
|
-
return k === "data" ? (J.readableListening = this.listenerCount("readable") > 0, J.flowing !== !1 && this.resume()) : k === "readable" && !J.endEmitted && !J.readableListening && (J.readableListening = J.needReadable = !0, J.flowing = !1, J.emittedReadable = !1, b("on readable", J.length, J.reading), J.length ? w(this) : J.reading || re.process.nextTick(S, this)),
|
|
6443
|
+
var Z = r.prototype.on.call(this, k, R), J = this._readableState;
|
|
6444
|
+
return k === "data" ? (J.readableListening = this.listenerCount("readable") > 0, J.flowing !== !1 && this.resume()) : k === "readable" && !J.endEmitted && !J.readableListening && (J.readableListening = J.needReadable = !0, J.flowing = !1, J.emittedReadable = !1, b("on readable", J.length, J.reading), J.length ? w(this) : J.reading || re.process.nextTick(S, this)), Z;
|
|
6445
6445
|
}, Q.prototype.addListener = Q.prototype.on, Q.prototype.removeListener = function(k, R) {
|
|
6446
|
-
var
|
|
6447
|
-
return k === "readable" && re.process.nextTick(h, this),
|
|
6446
|
+
var Z = r.prototype.removeListener.call(this, k, R);
|
|
6447
|
+
return k === "readable" && re.process.nextTick(h, this), Z;
|
|
6448
6448
|
}, Q.prototype.removeAllListeners = function(k) {
|
|
6449
6449
|
var R = r.prototype.removeAllListeners.apply(this, arguments);
|
|
6450
6450
|
return (k === "readable" || k === void 0) && re.process.nextTick(h, this), R;
|
|
@@ -6475,15 +6475,15 @@ function pc() {
|
|
|
6475
6475
|
;
|
|
6476
6476
|
}
|
|
6477
6477
|
Q.prototype.wrap = function(k) {
|
|
6478
|
-
var R = this,
|
|
6478
|
+
var R = this, Z = this._readableState, J = !1;
|
|
6479
6479
|
k.on("end", function() {
|
|
6480
|
-
if (b("wrapped end"),
|
|
6481
|
-
var ce =
|
|
6480
|
+
if (b("wrapped end"), Z.decoder && !Z.ended) {
|
|
6481
|
+
var ce = Z.decoder.end();
|
|
6482
6482
|
ce && ce.length && R.push(ce);
|
|
6483
6483
|
}
|
|
6484
6484
|
R.push(null);
|
|
6485
6485
|
}), k.on("data", function(ce) {
|
|
6486
|
-
if (b("wrapped data"),
|
|
6486
|
+
if (b("wrapped data"), Z.decoder && (ce = Z.decoder.write(ce)), !(Z.objectMode && ce == null) && !(!Z.objectMode && (!ce || !ce.length))) {
|
|
6487
6487
|
var he = R.push(ce);
|
|
6488
6488
|
he || (J = !0, k.pause());
|
|
6489
6489
|
}
|
|
@@ -6500,7 +6500,7 @@ function pc() {
|
|
|
6500
6500
|
b("wrapped _read", ce), J && (J = !1, k.resume());
|
|
6501
6501
|
}, this;
|
|
6502
6502
|
}, typeof Symbol == "function" && (Q.prototype[Symbol.asyncIterator] = function() {
|
|
6503
|
-
return q === void 0 && (q =
|
|
6503
|
+
return q === void 0 && (q = Zl()), q(this);
|
|
6504
6504
|
}), Object.defineProperty(Q.prototype, "readableHighWaterMark", {
|
|
6505
6505
|
// making it explicit this property is not enumerable
|
|
6506
6506
|
// because otherwise some prototype manipulation in
|
|
@@ -6540,8 +6540,8 @@ function pc() {
|
|
|
6540
6540
|
function U(k, R) {
|
|
6541
6541
|
if (R.length === 0)
|
|
6542
6542
|
return null;
|
|
6543
|
-
var
|
|
6544
|
-
return R.objectMode ?
|
|
6543
|
+
var Z;
|
|
6544
|
+
return R.objectMode ? Z = R.buffer.shift() : !k || k >= R.length ? (R.decoder ? Z = R.buffer.join("") : R.buffer.length === 1 ? Z = R.buffer.first() : Z = R.buffer.concat(R.length), R.buffer.clear()) : Z = R.buffer.consume(k, R.decoder), Z;
|
|
6545
6545
|
}
|
|
6546
6546
|
function z(k) {
|
|
6547
6547
|
var R = k._readableState;
|
|
@@ -6549,17 +6549,17 @@ function pc() {
|
|
|
6549
6549
|
}
|
|
6550
6550
|
function W(k, R) {
|
|
6551
6551
|
if (b("endReadableNT", k.endEmitted, k.length), !k.endEmitted && k.length === 0 && (k.endEmitted = !0, R.readable = !1, R.emit("end"), k.autoDestroy)) {
|
|
6552
|
-
var
|
|
6553
|
-
(!
|
|
6552
|
+
var Z = R._writableState;
|
|
6553
|
+
(!Z || Z.autoDestroy && Z.finished) && R.destroy();
|
|
6554
6554
|
}
|
|
6555
6555
|
}
|
|
6556
6556
|
typeof Symbol == "function" && (Q.from = function(k, R) {
|
|
6557
|
-
return V === void 0 && (V =
|
|
6557
|
+
return V === void 0 && (V = Xl()), V(Q, k, R);
|
|
6558
6558
|
});
|
|
6559
6559
|
function te(k, R) {
|
|
6560
|
-
for (var
|
|
6561
|
-
if (k[
|
|
6562
|
-
return
|
|
6560
|
+
for (var Z = 0, J = k.length; Z < J; Z++)
|
|
6561
|
+
if (k[Z] === R)
|
|
6562
|
+
return Z;
|
|
6563
6563
|
return -1;
|
|
6564
6564
|
}
|
|
6565
6565
|
return uf;
|
|
@@ -6790,7 +6790,7 @@ function St(t, e, r, i, a, n, o) {
|
|
|
6790
6790
|
function Et(t, e, r, i, a, n, o) {
|
|
6791
6791
|
return ya(t + (r ^ (e | ~i)) + a + n | 0, o) + e | 0;
|
|
6792
6792
|
}
|
|
6793
|
-
var mo = va, lf = dr.Buffer, g1 = Re, _c = gc, w1 = new Array(16),
|
|
6793
|
+
var mo = va, lf = dr.Buffer, g1 = Re, _c = gc, w1 = new Array(16), Xi = [
|
|
6794
6794
|
0,
|
|
6795
6795
|
1,
|
|
6796
6796
|
2,
|
|
@@ -7124,7 +7124,7 @@ ma.prototype._update = function() {
|
|
|
7124
7124
|
t[e] = this._block.readInt32LE(e * 4);
|
|
7125
7125
|
for (var r = this._a | 0, i = this._b | 0, a = this._c | 0, n = this._d | 0, o = this._e | 0, s = this._a | 0, b = this._b | 0, x = this._c | 0, _ = this._d | 0, A = this._e | 0, I = 0; I < 80; I += 1) {
|
|
7126
7126
|
var T, C;
|
|
7127
|
-
I < 16 ? (T = _s(r, i, a, n, o, t[
|
|
7127
|
+
I < 16 ? (T = _s(r, i, a, n, o, t[Xi[I]], tn[0], Qi[I]), C = Ms(s, b, x, _, A, t[Ji[I]], rn[0], en[I])) : I < 32 ? (T = xs(r, i, a, n, o, t[Xi[I]], tn[1], Qi[I]), C = Es(s, b, x, _, A, t[Ji[I]], rn[1], en[I])) : I < 48 ? (T = Ss(r, i, a, n, o, t[Xi[I]], tn[2], Qi[I]), C = Ss(s, b, x, _, A, t[Ji[I]], rn[2], en[I])) : I < 64 ? (T = Es(r, i, a, n, o, t[Xi[I]], tn[3], Qi[I]), C = xs(s, b, x, _, A, t[Ji[I]], rn[3], en[I])) : (T = Ms(r, i, a, n, o, t[Xi[I]], tn[4], Qi[I]), C = _s(s, b, x, _, A, t[Ji[I]], rn[4], en[I])), r = o, o = n, n = ci(a, 10), a = i, i = T, s = A, A = _, _ = ci(x, 10), x = b, b = C;
|
|
7128
7128
|
}
|
|
7129
7129
|
var $ = this._b + a + _ | 0;
|
|
7130
7130
|
this._b = this._c + n + A | 0, this._c = this._d + o + s | 0, this._d = this._e + r + b | 0, this._e = this._a + i + x | 0, this._a = $;
|
|
@@ -7365,16 +7365,16 @@ _n.prototype._hash = function() {
|
|
|
7365
7365
|
var t = $1.allocUnsafe(32);
|
|
7366
7366
|
return t.writeInt32BE(this._a, 0), t.writeInt32BE(this._b, 4), t.writeInt32BE(this._c, 8), t.writeInt32BE(this._d, 12), t.writeInt32BE(this._e, 16), t.writeInt32BE(this._f, 20), t.writeInt32BE(this._g, 24), t.writeInt32BE(this._h, 28), t;
|
|
7367
7367
|
};
|
|
7368
|
-
var Bc = _n, W1 = Re, Y1 = Bc,
|
|
7368
|
+
var Bc = _n, W1 = Re, Y1 = Bc, Z1 = ji, X1 = Ie.Buffer, J1 = new Array(64);
|
|
7369
7369
|
function wa() {
|
|
7370
|
-
this.init(), this._w = J1,
|
|
7370
|
+
this.init(), this._w = J1, Z1.call(this, 64, 56);
|
|
7371
7371
|
}
|
|
7372
7372
|
W1(wa, Y1);
|
|
7373
7373
|
wa.prototype.init = function() {
|
|
7374
7374
|
return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this;
|
|
7375
7375
|
};
|
|
7376
7376
|
wa.prototype._hash = function() {
|
|
7377
|
-
var t =
|
|
7377
|
+
var t = X1.allocUnsafe(28);
|
|
7378
7378
|
return t.writeInt32BE(this._a, 0), t.writeInt32BE(this._b, 4), t.writeInt32BE(this._c, 8), t.writeInt32BE(this._d, 12), t.writeInt32BE(this._e, 16), t.writeInt32BE(this._f, 20), t.writeInt32BE(this._g, 24), t;
|
|
7379
7379
|
};
|
|
7380
7380
|
var Q1 = wa, ep = Re, Ic = ji, tp = Ie.Buffer, As = [
|
|
@@ -7577,9 +7577,9 @@ xn.prototype._update = function(t) {
|
|
|
7577
7577
|
for (var e = this._w, r = this._ah | 0, i = this._bh | 0, a = this._ch | 0, n = this._dh | 0, o = this._eh | 0, s = this._fh | 0, b = this._gh | 0, x = this._hh | 0, _ = this._al | 0, A = this._bl | 0, I = this._cl | 0, T = this._dl | 0, C = this._el | 0, $ = this._fl | 0, P = this._gl | 0, N = this._hl | 0, L = 0; L < 32; L += 2)
|
|
7578
7578
|
e[L] = t.readInt32BE(L * 4), e[L + 1] = t.readInt32BE(L * 4 + 4);
|
|
7579
7579
|
for (; L < 160; L += 2) {
|
|
7580
|
-
var q = e[L - 30], V = e[L - 15 * 2 + 1],
|
|
7580
|
+
var q = e[L - 30], V = e[L - 15 * 2 + 1], X = ip(q, V), ee = np(V, q);
|
|
7581
7581
|
q = e[L - 2 * 2], V = e[L - 2 * 2 + 1];
|
|
7582
|
-
var ne = ap(q, V), ie = fp(V, q), Q = e[L - 7 * 2], me = e[L - 7 * 2 + 1], D = e[L - 16 * 2], l = e[L - 16 * 2 + 1], u = ee + me | 0, f =
|
|
7582
|
+
var ne = ap(q, V), ie = fp(V, q), Q = e[L - 7 * 2], me = e[L - 7 * 2 + 1], D = e[L - 16 * 2], l = e[L - 16 * 2 + 1], u = ee + me | 0, f = X + Q + ht(u, ee) | 0;
|
|
7583
7583
|
u = u + ie | 0, f = f + ne + ht(u, ie) | 0, u = u + l | 0, f = f + D + ht(u, l) | 0, e[L] = f, e[L + 1] = u;
|
|
7584
7584
|
}
|
|
7585
7585
|
for (var c = 0; c < 160; c += 2) {
|
|
@@ -7627,27 +7627,27 @@ pi.sha256 = Bc;
|
|
|
7627
7627
|
pi.sha384 = dp;
|
|
7628
7628
|
pi.sha512 = Rc;
|
|
7629
7629
|
var wo = xc.exports, kc = Ie.Buffer, Tc = yo.Transform, lp = na.StringDecoder, pp = Re;
|
|
7630
|
-
function
|
|
7630
|
+
function Xt(t) {
|
|
7631
7631
|
Tc.call(this), this.hashMode = typeof t == "string", this.hashMode ? this[t] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
|
|
7632
7632
|
}
|
|
7633
|
-
pp(
|
|
7634
|
-
|
|
7633
|
+
pp(Xt, Tc);
|
|
7634
|
+
Xt.prototype.update = function(t, e, r) {
|
|
7635
7635
|
typeof t == "string" && (t = kc.from(t, e));
|
|
7636
7636
|
var i = this._update(t);
|
|
7637
7637
|
return this.hashMode ? this : (r && (i = this._toString(i, r)), i);
|
|
7638
7638
|
};
|
|
7639
|
-
|
|
7639
|
+
Xt.prototype.setAutoPadding = function() {
|
|
7640
7640
|
};
|
|
7641
|
-
|
|
7641
|
+
Xt.prototype.getAuthTag = function() {
|
|
7642
7642
|
throw new Error("trying to get auth tag in unsupported state");
|
|
7643
7643
|
};
|
|
7644
|
-
|
|
7644
|
+
Xt.prototype.setAuthTag = function() {
|
|
7645
7645
|
throw new Error("trying to set auth tag in unsupported state");
|
|
7646
7646
|
};
|
|
7647
|
-
|
|
7647
|
+
Xt.prototype.setAAD = function() {
|
|
7648
7648
|
throw new Error("trying to set aad in unsupported state");
|
|
7649
7649
|
};
|
|
7650
|
-
|
|
7650
|
+
Xt.prototype._transform = function(t, e, r) {
|
|
7651
7651
|
var i;
|
|
7652
7652
|
try {
|
|
7653
7653
|
this.hashMode ? this._update(t) : this.push(this._update(t));
|
|
@@ -7657,7 +7657,7 @@ Zt.prototype._transform = function(t, e, r) {
|
|
|
7657
7657
|
r(i);
|
|
7658
7658
|
}
|
|
7659
7659
|
};
|
|
7660
|
-
|
|
7660
|
+
Xt.prototype._flush = function(t) {
|
|
7661
7661
|
var e;
|
|
7662
7662
|
try {
|
|
7663
7663
|
this.push(this.__final());
|
|
@@ -7666,17 +7666,17 @@ Zt.prototype._flush = function(t) {
|
|
|
7666
7666
|
}
|
|
7667
7667
|
t(e);
|
|
7668
7668
|
};
|
|
7669
|
-
|
|
7669
|
+
Xt.prototype._finalOrDigest = function(t) {
|
|
7670
7670
|
var e = this.__final() || kc.alloc(0);
|
|
7671
7671
|
return t && (e = this._toString(e, t, !0)), e;
|
|
7672
7672
|
};
|
|
7673
|
-
|
|
7673
|
+
Xt.prototype._toString = function(t, e, r) {
|
|
7674
7674
|
if (this._decoder || (this._decoder = new lp(e), this._encoding = e), this._encoding !== e)
|
|
7675
7675
|
throw new Error("can't switch encodings");
|
|
7676
7676
|
var i = this._decoder.write(t);
|
|
7677
7677
|
return r && (i += this._decoder.end()), i;
|
|
7678
7678
|
};
|
|
7679
|
-
var Dr =
|
|
7679
|
+
var Dr = Xt, bp = Re, vp = mo, yp = go, mp = wo, Pc = Dr;
|
|
7680
7680
|
function xa(t) {
|
|
7681
7681
|
Pc.call(this, "digest"), this._hash = t;
|
|
7682
7682
|
}
|
|
@@ -7965,7 +7965,7 @@ var qc = Gp, Hc = Ie.Buffer, Wp = Lc, Ds = $c, Os = qc, Cs = Fc, On, un = Oe.cry
|
|
|
7965
7965
|
"sha-512": "SHA-512",
|
|
7966
7966
|
sha512: "SHA-512"
|
|
7967
7967
|
}, bf = [];
|
|
7968
|
-
function
|
|
7968
|
+
function Zp(t) {
|
|
7969
7969
|
if (Oe.process && !Oe.process.browser || !un || !un.importKey || !un.deriveBits)
|
|
7970
7970
|
return Promise.resolve(!1);
|
|
7971
7971
|
if (bf[t] !== void 0)
|
|
@@ -8002,7 +8002,7 @@ function zc(t, e, r, i, a) {
|
|
|
8002
8002
|
return Hc.from(n);
|
|
8003
8003
|
});
|
|
8004
8004
|
}
|
|
8005
|
-
function
|
|
8005
|
+
function Xp(t, e) {
|
|
8006
8006
|
t.then(function(r) {
|
|
8007
8007
|
Wf()(function() {
|
|
8008
8008
|
e(null, r);
|
|
@@ -8030,7 +8030,7 @@ var Jp = function(t, e, r, i, a, n) {
|
|
|
8030
8030
|
}
|
|
8031
8031
|
if (Wp(r, i), t = Cs(t, Ds, "Password"), e = Cs(e, Ds, "Salt"), typeof n != "function")
|
|
8032
8032
|
throw new Error("No callback provided to pbkdf2");
|
|
8033
|
-
Zp(
|
|
8033
|
+
Xp(Zp(o).then(function(s) {
|
|
8034
8034
|
return s ? zc(t, e, r, i, o) : Os(t, e, r, i, a);
|
|
8035
8035
|
}), n);
|
|
8036
8036
|
};
|
|
@@ -8914,7 +8914,7 @@ fa._update = function(e, r, i, a) {
|
|
|
8914
8914
|
s[b] = e[r + b];
|
|
8915
8915
|
}
|
|
8916
8916
|
};
|
|
8917
|
-
var ob = qt, sb = Re,
|
|
8917
|
+
var ob = qt, sb = Re, Zc = _o, Rr = Wc;
|
|
8918
8918
|
function cb(t, e) {
|
|
8919
8919
|
ob.equal(e.length, 24, "Invalid key length");
|
|
8920
8920
|
var r = e.slice(0, 8), i = e.slice(8, 16), a = e.slice(16, 24);
|
|
@@ -8929,11 +8929,11 @@ function cb(t, e) {
|
|
|
8929
8929
|
];
|
|
8930
8930
|
}
|
|
8931
8931
|
function hi(t) {
|
|
8932
|
-
|
|
8932
|
+
Zc.call(this, t);
|
|
8933
8933
|
var e = new cb(this.type, this.options.key);
|
|
8934
8934
|
this._edeState = e;
|
|
8935
8935
|
}
|
|
8936
|
-
sb(hi,
|
|
8936
|
+
sb(hi, Zc);
|
|
8937
8937
|
var hb = hi;
|
|
8938
8938
|
hi.create = function(e) {
|
|
8939
8939
|
return new hi(e);
|
|
@@ -8949,7 +8949,7 @@ qi.Cipher = _o;
|
|
|
8949
8949
|
qi.DES = Wc;
|
|
8950
8950
|
qi.CBC = Yc;
|
|
8951
8951
|
qi.EDE = hb;
|
|
8952
|
-
var
|
|
8952
|
+
var Xc = Dr, br = qi, ub = Re, ri = Ie.Buffer, bn = {
|
|
8953
8953
|
"des-ede3-cbc": br.CBC.instantiate(br.EDE),
|
|
8954
8954
|
"des-ede3": br.EDE,
|
|
8955
8955
|
"des-ede-cbc": br.CBC.instantiate(br.EDE),
|
|
@@ -8960,9 +8960,9 @@ var Zc = Dr, br = qi, ub = Re, ri = Ie.Buffer, bn = {
|
|
|
8960
8960
|
bn.des = bn["des-cbc"];
|
|
8961
8961
|
bn.des3 = bn["des-ede3-cbc"];
|
|
8962
8962
|
var db = Ma;
|
|
8963
|
-
ub(Ma,
|
|
8963
|
+
ub(Ma, Xc);
|
|
8964
8964
|
function Ma(t) {
|
|
8965
|
-
|
|
8965
|
+
Xc.call(this);
|
|
8966
8966
|
var e = t.mode.toLowerCase(), r = bn[e], i;
|
|
8967
8967
|
t.decrypt ? i = "decrypt" : i = "encrypt";
|
|
8968
8968
|
var a = t.key;
|
|
@@ -9030,20 +9030,20 @@ eh.encrypt = function(t, e, r) {
|
|
|
9030
9030
|
a[n] = pb(t, e[n], r);
|
|
9031
9031
|
return a;
|
|
9032
9032
|
};
|
|
9033
|
-
var th = {},
|
|
9033
|
+
var th = {}, Zn = Ie.Buffer;
|
|
9034
9034
|
function bb(t, e, r) {
|
|
9035
9035
|
for (var i, a = -1, n = 8, o = 0, s, b; ++a < n; )
|
|
9036
9036
|
i = t._cipher.encryptBlock(t._prev), s = e & 1 << 7 - a ? 128 : 0, b = i[0] ^ s, o += (b & 128) >> a % 8, t._prev = vb(t._prev, r ? s : b);
|
|
9037
9037
|
return o;
|
|
9038
9038
|
}
|
|
9039
9039
|
function vb(t, e) {
|
|
9040
|
-
var r = t.length, i = -1, a =
|
|
9041
|
-
for (t =
|
|
9040
|
+
var r = t.length, i = -1, a = Zn.allocUnsafe(t.length);
|
|
9041
|
+
for (t = Zn.concat([t, Zn.from([e])]); ++i < r; )
|
|
9042
9042
|
a[i] = t[i] << 1 | t[i + 1] >> 7;
|
|
9043
9043
|
return a;
|
|
9044
9044
|
}
|
|
9045
9045
|
th.encrypt = function(t, e, r) {
|
|
9046
|
-
for (var i = e.length, a =
|
|
9046
|
+
for (var i = e.length, a = Zn.allocUnsafe(i), n = -1; ++n < i; )
|
|
9047
9047
|
a[n] = bb(t, e[n], r);
|
|
9048
9048
|
return a;
|
|
9049
9049
|
};
|
|
@@ -9057,7 +9057,7 @@ rh.encrypt = function(t, e) {
|
|
|
9057
9057
|
var r = t._cache.slice(0, e.length);
|
|
9058
9058
|
return t._cache = t._cache.slice(e.length), yb(e, r);
|
|
9059
9059
|
};
|
|
9060
|
-
var
|
|
9060
|
+
var Zf = {};
|
|
9061
9061
|
function gb(t) {
|
|
9062
9062
|
for (var e = t.length, r; e--; )
|
|
9063
9063
|
if (r = t.readUInt8(e), r === 255)
|
|
@@ -9073,7 +9073,7 @@ function xb(t) {
|
|
|
9073
9073
|
return _b(t._prev), e;
|
|
9074
9074
|
}
|
|
9075
9075
|
var vf = 16;
|
|
9076
|
-
|
|
9076
|
+
Zf.encrypt = function(t, e) {
|
|
9077
9077
|
var r = Math.ceil(e.length / vf), i = t._cache.length;
|
|
9078
9078
|
t._cache = $s.concat([
|
|
9079
9079
|
t._cache,
|
|
@@ -9284,12 +9284,12 @@ var Ab = {
|
|
|
9284
9284
|
CFB8: eh,
|
|
9285
9285
|
CFB1: th,
|
|
9286
9286
|
OFB: rh,
|
|
9287
|
-
CTR:
|
|
9288
|
-
GCM:
|
|
9289
|
-
},
|
|
9290
|
-
for (var Fs in
|
|
9291
|
-
|
|
9292
|
-
var Mo =
|
|
9287
|
+
CTR: Zf,
|
|
9288
|
+
GCM: Zf
|
|
9289
|
+
}, Xn = nh;
|
|
9290
|
+
for (var Fs in Xn)
|
|
9291
|
+
Xn[Fs].module = Ab[Xn[Fs].mode];
|
|
9292
|
+
var Mo = Xn, Mn = {}, oa = Ie.Buffer;
|
|
9293
9293
|
function Ao(t) {
|
|
9294
9294
|
oa.isBuffer(t) || (t = oa.from(t));
|
|
9295
9295
|
for (var e = t.length / 4 | 0, r = new Array(e), i = 0; i < e; i++)
|
|
@@ -9543,9 +9543,9 @@ function Gb(t, e) {
|
|
|
9543
9543
|
}
|
|
9544
9544
|
xo.createCipheriv = ph;
|
|
9545
9545
|
xo.createCipher = Gb;
|
|
9546
|
-
var Bo = {}, Wb = ch, Pi = Ie.Buffer, bh = Mo, Yb = uh, vh = Dr,
|
|
9546
|
+
var Bo = {}, Wb = ch, Pi = Ie.Buffer, bh = Mo, Yb = uh, vh = Dr, Zb = Mn, Xb = Ba, Jb = Re;
|
|
9547
9547
|
function In(t, e, r) {
|
|
9548
|
-
vh.call(this), this._cache = new Ra(), this._last = void 0, this._cipher = new
|
|
9548
|
+
vh.call(this), this._cache = new Ra(), this._last = void 0, this._cipher = new Zb.AES(e), this._prev = Pi.from(r), this._mode = t, this._autopadding = !0;
|
|
9549
9549
|
}
|
|
9550
9550
|
Jb(In, vh);
|
|
9551
9551
|
In.prototype._update = function(t) {
|
|
@@ -9607,7 +9607,7 @@ function e2(t, e) {
|
|
|
9607
9607
|
var r = bh[t.toLowerCase()];
|
|
9608
9608
|
if (!r)
|
|
9609
9609
|
throw new TypeError("invalid suite type");
|
|
9610
|
-
var i =
|
|
9610
|
+
var i = Xb(e, !1, r.key, r.iv);
|
|
9611
9611
|
return yh(t, i.key, i.iv);
|
|
9612
9612
|
}
|
|
9613
9613
|
Bo.createDecipher = e2;
|
|
@@ -10127,46 +10127,46 @@ Ro.exports;
|
|
|
10127
10127
|
return g !== 0 ? u.words[d] = g | 0 : u.length--, u.strip();
|
|
10128
10128
|
}
|
|
10129
10129
|
var $ = function(l, u, f) {
|
|
10130
|
-
var c = l.words, v = u.words, w = f.words, E = 0, g, d, m, h = c[0] | 0, S = h & 8191, j = h >>> 13, G = c[1] | 0, O = G & 8191, U = G >>> 13, z = c[2] | 0, W = z & 8191, te = z >>> 13, k = c[3] | 0, R = k & 8191,
|
|
10130
|
+
var c = l.words, v = u.words, w = f.words, E = 0, g, d, m, h = c[0] | 0, S = h & 8191, j = h >>> 13, G = c[1] | 0, O = G & 8191, U = G >>> 13, z = c[2] | 0, W = z & 8191, te = z >>> 13, k = c[3] | 0, R = k & 8191, Z = k >>> 13, J = c[4] | 0, ae = J & 8191, oe = J >>> 13, ce = c[5] | 0, he = ce & 8191, Y = ce >>> 13, Ne = c[6] | 0, le = Ne & 8191, ke = Ne >>> 13, Ue = c[7] | 0, pe = Ue & 8191, Te = Ue >>> 13, Le = c[8] | 0, M = Le & 8191, p = Le >>> 13, y = c[9] | 0, B = y & 8191, F = y >>> 13, H = v[0] | 0, K = H & 8191, se = H >>> 13, be = v[1] | 0, fe = be & 8191, ve = be >>> 13, ue = v[2] | 0, ge = ue & 8191, ze = ue >>> 13, Ke = v[3] | 0, we = Ke & 8191, Ve = Ke >>> 13, Ge = v[4] | 0, _e = Ge & 8191, We = Ge >>> 13, Ye = v[5] | 0, xe = Ye & 8191, Ze = Ye >>> 13, Xe = v[6] | 0, Se = Xe & 8191, Je = Xe >>> 13, Qe = v[7] | 0, Ee = Qe & 8191, et = Qe >>> 13, tt = v[8] | 0, Me = tt & 8191, rt = tt >>> 13, it = v[9] | 0, Ae = it & 8191, nt = it >>> 13;
|
|
10131
10131
|
f.negative = l.negative ^ u.negative, f.length = 19, g = Math.imul(S, K), d = Math.imul(S, se), d = d + Math.imul(j, K) | 0, m = Math.imul(j, se);
|
|
10132
10132
|
var qe = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10133
10133
|
E = (m + (d >>> 13) | 0) + (qe >>> 26) | 0, qe &= 67108863, g = Math.imul(O, K), d = Math.imul(O, se), d = d + Math.imul(U, K) | 0, m = Math.imul(U, se), g = g + Math.imul(S, fe) | 0, d = d + Math.imul(S, ve) | 0, d = d + Math.imul(j, fe) | 0, m = m + Math.imul(j, ve) | 0;
|
|
10134
10134
|
var He = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10135
10135
|
E = (m + (d >>> 13) | 0) + (He >>> 26) | 0, He &= 67108863, g = Math.imul(W, K), d = Math.imul(W, se), d = d + Math.imul(te, K) | 0, m = Math.imul(te, se), g = g + Math.imul(O, fe) | 0, d = d + Math.imul(O, ve) | 0, d = d + Math.imul(U, fe) | 0, m = m + Math.imul(U, ve) | 0, g = g + Math.imul(S, ge) | 0, d = d + Math.imul(S, ze) | 0, d = d + Math.imul(j, ge) | 0, m = m + Math.imul(j, ze) | 0;
|
|
10136
10136
|
var Cr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10137
|
-
E = (m + (d >>> 13) | 0) + (Cr >>> 26) | 0, Cr &= 67108863, g = Math.imul(R, K), d = Math.imul(R, se), d = d + Math.imul(
|
|
10137
|
+
E = (m + (d >>> 13) | 0) + (Cr >>> 26) | 0, Cr &= 67108863, g = Math.imul(R, K), d = Math.imul(R, se), d = d + Math.imul(Z, K) | 0, m = Math.imul(Z, se), g = g + Math.imul(W, fe) | 0, d = d + Math.imul(W, ve) | 0, d = d + Math.imul(te, fe) | 0, m = m + Math.imul(te, ve) | 0, g = g + Math.imul(O, ge) | 0, d = d + Math.imul(O, ze) | 0, d = d + Math.imul(U, ge) | 0, m = m + Math.imul(U, ze) | 0, g = g + Math.imul(S, we) | 0, d = d + Math.imul(S, Ve) | 0, d = d + Math.imul(j, we) | 0, m = m + Math.imul(j, Ve) | 0;
|
|
10138
10138
|
var Nr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10139
|
-
E = (m + (d >>> 13) | 0) + (Nr >>> 26) | 0, Nr &= 67108863, g = Math.imul(ae, K), d = Math.imul(ae, se), d = d + Math.imul(oe, K) | 0, m = Math.imul(oe, se), g = g + Math.imul(R, fe) | 0, d = d + Math.imul(R, ve) | 0, d = d + Math.imul(
|
|
10139
|
+
E = (m + (d >>> 13) | 0) + (Nr >>> 26) | 0, Nr &= 67108863, g = Math.imul(ae, K), d = Math.imul(ae, se), d = d + Math.imul(oe, K) | 0, m = Math.imul(oe, se), g = g + Math.imul(R, fe) | 0, d = d + Math.imul(R, ve) | 0, d = d + Math.imul(Z, fe) | 0, m = m + Math.imul(Z, ve) | 0, g = g + Math.imul(W, ge) | 0, d = d + Math.imul(W, ze) | 0, d = d + Math.imul(te, ge) | 0, m = m + Math.imul(te, ze) | 0, g = g + Math.imul(O, we) | 0, d = d + Math.imul(O, Ve) | 0, d = d + Math.imul(U, we) | 0, m = m + Math.imul(U, Ve) | 0, g = g + Math.imul(S, _e) | 0, d = d + Math.imul(S, We) | 0, d = d + Math.imul(j, _e) | 0, m = m + Math.imul(j, We) | 0;
|
|
10140
10140
|
var Ur = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10141
|
-
E = (m + (d >>> 13) | 0) + (Ur >>> 26) | 0, Ur &= 67108863, g = Math.imul(he, K), d = Math.imul(he, se), d = d + Math.imul(Y, K) | 0, m = Math.imul(Y, se), g = g + Math.imul(ae, fe) | 0, d = d + Math.imul(ae, ve) | 0, d = d + Math.imul(oe, fe) | 0, m = m + Math.imul(oe, ve) | 0, g = g + Math.imul(R, ge) | 0, d = d + Math.imul(R, ze) | 0, d = d + Math.imul(
|
|
10141
|
+
E = (m + (d >>> 13) | 0) + (Ur >>> 26) | 0, Ur &= 67108863, g = Math.imul(he, K), d = Math.imul(he, se), d = d + Math.imul(Y, K) | 0, m = Math.imul(Y, se), g = g + Math.imul(ae, fe) | 0, d = d + Math.imul(ae, ve) | 0, d = d + Math.imul(oe, fe) | 0, m = m + Math.imul(oe, ve) | 0, g = g + Math.imul(R, ge) | 0, d = d + Math.imul(R, ze) | 0, d = d + Math.imul(Z, ge) | 0, m = m + Math.imul(Z, ze) | 0, g = g + Math.imul(W, we) | 0, d = d + Math.imul(W, Ve) | 0, d = d + Math.imul(te, we) | 0, m = m + Math.imul(te, Ve) | 0, g = g + Math.imul(O, _e) | 0, d = d + Math.imul(O, We) | 0, d = d + Math.imul(U, _e) | 0, m = m + Math.imul(U, We) | 0, g = g + Math.imul(S, xe) | 0, d = d + Math.imul(S, Ze) | 0, d = d + Math.imul(j, xe) | 0, m = m + Math.imul(j, Ze) | 0;
|
|
10142
10142
|
var Lr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10143
|
-
E = (m + (d >>> 13) | 0) + (Lr >>> 26) | 0, Lr &= 67108863, g = Math.imul(le, K), d = Math.imul(le, se), d = d + Math.imul(ke, K) | 0, m = Math.imul(ke, se), g = g + Math.imul(he, fe) | 0, d = d + Math.imul(he, ve) | 0, d = d + Math.imul(Y, fe) | 0, m = m + Math.imul(Y, ve) | 0, g = g + Math.imul(ae, ge) | 0, d = d + Math.imul(ae, ze) | 0, d = d + Math.imul(oe, ge) | 0, m = m + Math.imul(oe, ze) | 0, g = g + Math.imul(R, we) | 0, d = d + Math.imul(R, Ve) | 0, d = d + Math.imul(
|
|
10143
|
+
E = (m + (d >>> 13) | 0) + (Lr >>> 26) | 0, Lr &= 67108863, g = Math.imul(le, K), d = Math.imul(le, se), d = d + Math.imul(ke, K) | 0, m = Math.imul(ke, se), g = g + Math.imul(he, fe) | 0, d = d + Math.imul(he, ve) | 0, d = d + Math.imul(Y, fe) | 0, m = m + Math.imul(Y, ve) | 0, g = g + Math.imul(ae, ge) | 0, d = d + Math.imul(ae, ze) | 0, d = d + Math.imul(oe, ge) | 0, m = m + Math.imul(oe, ze) | 0, g = g + Math.imul(R, we) | 0, d = d + Math.imul(R, Ve) | 0, d = d + Math.imul(Z, we) | 0, m = m + Math.imul(Z, Ve) | 0, g = g + Math.imul(W, _e) | 0, d = d + Math.imul(W, We) | 0, d = d + Math.imul(te, _e) | 0, m = m + Math.imul(te, We) | 0, g = g + Math.imul(O, xe) | 0, d = d + Math.imul(O, Ze) | 0, d = d + Math.imul(U, xe) | 0, m = m + Math.imul(U, Ze) | 0, g = g + Math.imul(S, Se) | 0, d = d + Math.imul(S, Je) | 0, d = d + Math.imul(j, Se) | 0, m = m + Math.imul(j, Je) | 0;
|
|
10144
10144
|
var $r = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10145
|
-
E = (m + (d >>> 13) | 0) + ($r >>> 26) | 0, $r &= 67108863, g = Math.imul(pe, K), d = Math.imul(pe, se), d = d + Math.imul(Te, K) | 0, m = Math.imul(Te, se), g = g + Math.imul(le, fe) | 0, d = d + Math.imul(le, ve) | 0, d = d + Math.imul(ke, fe) | 0, m = m + Math.imul(ke, ve) | 0, g = g + Math.imul(he, ge) | 0, d = d + Math.imul(he, ze) | 0, d = d + Math.imul(Y, ge) | 0, m = m + Math.imul(Y, ze) | 0, g = g + Math.imul(ae, we) | 0, d = d + Math.imul(ae, Ve) | 0, d = d + Math.imul(oe, we) | 0, m = m + Math.imul(oe, Ve) | 0, g = g + Math.imul(R, _e) | 0, d = d + Math.imul(R, We) | 0, d = d + Math.imul(
|
|
10145
|
+
E = (m + (d >>> 13) | 0) + ($r >>> 26) | 0, $r &= 67108863, g = Math.imul(pe, K), d = Math.imul(pe, se), d = d + Math.imul(Te, K) | 0, m = Math.imul(Te, se), g = g + Math.imul(le, fe) | 0, d = d + Math.imul(le, ve) | 0, d = d + Math.imul(ke, fe) | 0, m = m + Math.imul(ke, ve) | 0, g = g + Math.imul(he, ge) | 0, d = d + Math.imul(he, ze) | 0, d = d + Math.imul(Y, ge) | 0, m = m + Math.imul(Y, ze) | 0, g = g + Math.imul(ae, we) | 0, d = d + Math.imul(ae, Ve) | 0, d = d + Math.imul(oe, we) | 0, m = m + Math.imul(oe, Ve) | 0, g = g + Math.imul(R, _e) | 0, d = d + Math.imul(R, We) | 0, d = d + Math.imul(Z, _e) | 0, m = m + Math.imul(Z, We) | 0, g = g + Math.imul(W, xe) | 0, d = d + Math.imul(W, Ze) | 0, d = d + Math.imul(te, xe) | 0, m = m + Math.imul(te, Ze) | 0, g = g + Math.imul(O, Se) | 0, d = d + Math.imul(O, Je) | 0, d = d + Math.imul(U, Se) | 0, m = m + Math.imul(U, Je) | 0, g = g + Math.imul(S, Ee) | 0, d = d + Math.imul(S, et) | 0, d = d + Math.imul(j, Ee) | 0, m = m + Math.imul(j, et) | 0;
|
|
10146
10146
|
var Fr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10147
|
-
E = (m + (d >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, g = Math.imul(M, K), d = Math.imul(M, se), d = d + Math.imul(p, K) | 0, m = Math.imul(p, se), g = g + Math.imul(pe, fe) | 0, d = d + Math.imul(pe, ve) | 0, d = d + Math.imul(Te, fe) | 0, m = m + Math.imul(Te, ve) | 0, g = g + Math.imul(le, ge) | 0, d = d + Math.imul(le, ze) | 0, d = d + Math.imul(ke, ge) | 0, m = m + Math.imul(ke, ze) | 0, g = g + Math.imul(he, we) | 0, d = d + Math.imul(he, Ve) | 0, d = d + Math.imul(Y, we) | 0, m = m + Math.imul(Y, Ve) | 0, g = g + Math.imul(ae, _e) | 0, d = d + Math.imul(ae, We) | 0, d = d + Math.imul(oe, _e) | 0, m = m + Math.imul(oe, We) | 0, g = g + Math.imul(R, xe) | 0, d = d + Math.imul(R,
|
|
10147
|
+
E = (m + (d >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, g = Math.imul(M, K), d = Math.imul(M, se), d = d + Math.imul(p, K) | 0, m = Math.imul(p, se), g = g + Math.imul(pe, fe) | 0, d = d + Math.imul(pe, ve) | 0, d = d + Math.imul(Te, fe) | 0, m = m + Math.imul(Te, ve) | 0, g = g + Math.imul(le, ge) | 0, d = d + Math.imul(le, ze) | 0, d = d + Math.imul(ke, ge) | 0, m = m + Math.imul(ke, ze) | 0, g = g + Math.imul(he, we) | 0, d = d + Math.imul(he, Ve) | 0, d = d + Math.imul(Y, we) | 0, m = m + Math.imul(Y, Ve) | 0, g = g + Math.imul(ae, _e) | 0, d = d + Math.imul(ae, We) | 0, d = d + Math.imul(oe, _e) | 0, m = m + Math.imul(oe, We) | 0, g = g + Math.imul(R, xe) | 0, d = d + Math.imul(R, Ze) | 0, d = d + Math.imul(Z, xe) | 0, m = m + Math.imul(Z, Ze) | 0, g = g + Math.imul(W, Se) | 0, d = d + Math.imul(W, Je) | 0, d = d + Math.imul(te, Se) | 0, m = m + Math.imul(te, Je) | 0, g = g + Math.imul(O, Ee) | 0, d = d + Math.imul(O, et) | 0, d = d + Math.imul(U, Ee) | 0, m = m + Math.imul(U, et) | 0, g = g + Math.imul(S, Me) | 0, d = d + Math.imul(S, rt) | 0, d = d + Math.imul(j, Me) | 0, m = m + Math.imul(j, rt) | 0;
|
|
10148
10148
|
var jr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10149
|
-
E = (m + (d >>> 13) | 0) + (jr >>> 26) | 0, jr &= 67108863, g = Math.imul(B, K), d = Math.imul(B, se), d = d + Math.imul(F, K) | 0, m = Math.imul(F, se), g = g + Math.imul(M, fe) | 0, d = d + Math.imul(M, ve) | 0, d = d + Math.imul(p, fe) | 0, m = m + Math.imul(p, ve) | 0, g = g + Math.imul(pe, ge) | 0, d = d + Math.imul(pe, ze) | 0, d = d + Math.imul(Te, ge) | 0, m = m + Math.imul(Te, ze) | 0, g = g + Math.imul(le, we) | 0, d = d + Math.imul(le, Ve) | 0, d = d + Math.imul(ke, we) | 0, m = m + Math.imul(ke, Ve) | 0, g = g + Math.imul(he, _e) | 0, d = d + Math.imul(he, We) | 0, d = d + Math.imul(Y, _e) | 0, m = m + Math.imul(Y, We) | 0, g = g + Math.imul(ae, xe) | 0, d = d + Math.imul(ae,
|
|
10149
|
+
E = (m + (d >>> 13) | 0) + (jr >>> 26) | 0, jr &= 67108863, g = Math.imul(B, K), d = Math.imul(B, se), d = d + Math.imul(F, K) | 0, m = Math.imul(F, se), g = g + Math.imul(M, fe) | 0, d = d + Math.imul(M, ve) | 0, d = d + Math.imul(p, fe) | 0, m = m + Math.imul(p, ve) | 0, g = g + Math.imul(pe, ge) | 0, d = d + Math.imul(pe, ze) | 0, d = d + Math.imul(Te, ge) | 0, m = m + Math.imul(Te, ze) | 0, g = g + Math.imul(le, we) | 0, d = d + Math.imul(le, Ve) | 0, d = d + Math.imul(ke, we) | 0, m = m + Math.imul(ke, Ve) | 0, g = g + Math.imul(he, _e) | 0, d = d + Math.imul(he, We) | 0, d = d + Math.imul(Y, _e) | 0, m = m + Math.imul(Y, We) | 0, g = g + Math.imul(ae, xe) | 0, d = d + Math.imul(ae, Ze) | 0, d = d + Math.imul(oe, xe) | 0, m = m + Math.imul(oe, Ze) | 0, g = g + Math.imul(R, Se) | 0, d = d + Math.imul(R, Je) | 0, d = d + Math.imul(Z, Se) | 0, m = m + Math.imul(Z, Je) | 0, g = g + Math.imul(W, Ee) | 0, d = d + Math.imul(W, et) | 0, d = d + Math.imul(te, Ee) | 0, m = m + Math.imul(te, et) | 0, g = g + Math.imul(O, Me) | 0, d = d + Math.imul(O, rt) | 0, d = d + Math.imul(U, Me) | 0, m = m + Math.imul(U, rt) | 0, g = g + Math.imul(S, Ae) | 0, d = d + Math.imul(S, nt) | 0, d = d + Math.imul(j, Ae) | 0, m = m + Math.imul(j, nt) | 0;
|
|
10150
10150
|
var qr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10151
|
-
E = (m + (d >>> 13) | 0) + (qr >>> 26) | 0, qr &= 67108863, g = Math.imul(B, fe), d = Math.imul(B, ve), d = d + Math.imul(F, fe) | 0, m = Math.imul(F, ve), g = g + Math.imul(M, ge) | 0, d = d + Math.imul(M, ze) | 0, d = d + Math.imul(p, ge) | 0, m = m + Math.imul(p, ze) | 0, g = g + Math.imul(pe, we) | 0, d = d + Math.imul(pe, Ve) | 0, d = d + Math.imul(Te, we) | 0, m = m + Math.imul(Te, Ve) | 0, g = g + Math.imul(le, _e) | 0, d = d + Math.imul(le, We) | 0, d = d + Math.imul(ke, _e) | 0, m = m + Math.imul(ke, We) | 0, g = g + Math.imul(he, xe) | 0, d = d + Math.imul(he,
|
|
10151
|
+
E = (m + (d >>> 13) | 0) + (qr >>> 26) | 0, qr &= 67108863, g = Math.imul(B, fe), d = Math.imul(B, ve), d = d + Math.imul(F, fe) | 0, m = Math.imul(F, ve), g = g + Math.imul(M, ge) | 0, d = d + Math.imul(M, ze) | 0, d = d + Math.imul(p, ge) | 0, m = m + Math.imul(p, ze) | 0, g = g + Math.imul(pe, we) | 0, d = d + Math.imul(pe, Ve) | 0, d = d + Math.imul(Te, we) | 0, m = m + Math.imul(Te, Ve) | 0, g = g + Math.imul(le, _e) | 0, d = d + Math.imul(le, We) | 0, d = d + Math.imul(ke, _e) | 0, m = m + Math.imul(ke, We) | 0, g = g + Math.imul(he, xe) | 0, d = d + Math.imul(he, Ze) | 0, d = d + Math.imul(Y, xe) | 0, m = m + Math.imul(Y, Ze) | 0, g = g + Math.imul(ae, Se) | 0, d = d + Math.imul(ae, Je) | 0, d = d + Math.imul(oe, Se) | 0, m = m + Math.imul(oe, Je) | 0, g = g + Math.imul(R, Ee) | 0, d = d + Math.imul(R, et) | 0, d = d + Math.imul(Z, Ee) | 0, m = m + Math.imul(Z, et) | 0, g = g + Math.imul(W, Me) | 0, d = d + Math.imul(W, rt) | 0, d = d + Math.imul(te, Me) | 0, m = m + Math.imul(te, rt) | 0, g = g + Math.imul(O, Ae) | 0, d = d + Math.imul(O, nt) | 0, d = d + Math.imul(U, Ae) | 0, m = m + Math.imul(U, nt) | 0;
|
|
10152
10152
|
var Hr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10153
|
-
E = (m + (d >>> 13) | 0) + (Hr >>> 26) | 0, Hr &= 67108863, g = Math.imul(B, ge), d = Math.imul(B, ze), d = d + Math.imul(F, ge) | 0, m = Math.imul(F, ze), g = g + Math.imul(M, we) | 0, d = d + Math.imul(M, Ve) | 0, d = d + Math.imul(p, we) | 0, m = m + Math.imul(p, Ve) | 0, g = g + Math.imul(pe, _e) | 0, d = d + Math.imul(pe, We) | 0, d = d + Math.imul(Te, _e) | 0, m = m + Math.imul(Te, We) | 0, g = g + Math.imul(le, xe) | 0, d = d + Math.imul(le,
|
|
10153
|
+
E = (m + (d >>> 13) | 0) + (Hr >>> 26) | 0, Hr &= 67108863, g = Math.imul(B, ge), d = Math.imul(B, ze), d = d + Math.imul(F, ge) | 0, m = Math.imul(F, ze), g = g + Math.imul(M, we) | 0, d = d + Math.imul(M, Ve) | 0, d = d + Math.imul(p, we) | 0, m = m + Math.imul(p, Ve) | 0, g = g + Math.imul(pe, _e) | 0, d = d + Math.imul(pe, We) | 0, d = d + Math.imul(Te, _e) | 0, m = m + Math.imul(Te, We) | 0, g = g + Math.imul(le, xe) | 0, d = d + Math.imul(le, Ze) | 0, d = d + Math.imul(ke, xe) | 0, m = m + Math.imul(ke, Ze) | 0, g = g + Math.imul(he, Se) | 0, d = d + Math.imul(he, Je) | 0, d = d + Math.imul(Y, Se) | 0, m = m + Math.imul(Y, Je) | 0, g = g + Math.imul(ae, Ee) | 0, d = d + Math.imul(ae, et) | 0, d = d + Math.imul(oe, Ee) | 0, m = m + Math.imul(oe, et) | 0, g = g + Math.imul(R, Me) | 0, d = d + Math.imul(R, rt) | 0, d = d + Math.imul(Z, Me) | 0, m = m + Math.imul(Z, rt) | 0, g = g + Math.imul(W, Ae) | 0, d = d + Math.imul(W, nt) | 0, d = d + Math.imul(te, Ae) | 0, m = m + Math.imul(te, nt) | 0;
|
|
10154
10154
|
var zr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10155
|
-
E = (m + (d >>> 13) | 0) + (zr >>> 26) | 0, zr &= 67108863, g = Math.imul(B, we), d = Math.imul(B, Ve), d = d + Math.imul(F, we) | 0, m = Math.imul(F, Ve), g = g + Math.imul(M, _e) | 0, d = d + Math.imul(M, We) | 0, d = d + Math.imul(p, _e) | 0, m = m + Math.imul(p, We) | 0, g = g + Math.imul(pe, xe) | 0, d = d + Math.imul(pe,
|
|
10155
|
+
E = (m + (d >>> 13) | 0) + (zr >>> 26) | 0, zr &= 67108863, g = Math.imul(B, we), d = Math.imul(B, Ve), d = d + Math.imul(F, we) | 0, m = Math.imul(F, Ve), g = g + Math.imul(M, _e) | 0, d = d + Math.imul(M, We) | 0, d = d + Math.imul(p, _e) | 0, m = m + Math.imul(p, We) | 0, g = g + Math.imul(pe, xe) | 0, d = d + Math.imul(pe, Ze) | 0, d = d + Math.imul(Te, xe) | 0, m = m + Math.imul(Te, Ze) | 0, g = g + Math.imul(le, Se) | 0, d = d + Math.imul(le, Je) | 0, d = d + Math.imul(ke, Se) | 0, m = m + Math.imul(ke, Je) | 0, g = g + Math.imul(he, Ee) | 0, d = d + Math.imul(he, et) | 0, d = d + Math.imul(Y, Ee) | 0, m = m + Math.imul(Y, et) | 0, g = g + Math.imul(ae, Me) | 0, d = d + Math.imul(ae, rt) | 0, d = d + Math.imul(oe, Me) | 0, m = m + Math.imul(oe, rt) | 0, g = g + Math.imul(R, Ae) | 0, d = d + Math.imul(R, nt) | 0, d = d + Math.imul(Z, Ae) | 0, m = m + Math.imul(Z, nt) | 0;
|
|
10156
10156
|
var Kr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10157
|
-
E = (m + (d >>> 13) | 0) + (Kr >>> 26) | 0, Kr &= 67108863, g = Math.imul(B, _e), d = Math.imul(B, We), d = d + Math.imul(F, _e) | 0, m = Math.imul(F, We), g = g + Math.imul(M, xe) | 0, d = d + Math.imul(M,
|
|
10157
|
+
E = (m + (d >>> 13) | 0) + (Kr >>> 26) | 0, Kr &= 67108863, g = Math.imul(B, _e), d = Math.imul(B, We), d = d + Math.imul(F, _e) | 0, m = Math.imul(F, We), g = g + Math.imul(M, xe) | 0, d = d + Math.imul(M, Ze) | 0, d = d + Math.imul(p, xe) | 0, m = m + Math.imul(p, Ze) | 0, g = g + Math.imul(pe, Se) | 0, d = d + Math.imul(pe, Je) | 0, d = d + Math.imul(Te, Se) | 0, m = m + Math.imul(Te, Je) | 0, g = g + Math.imul(le, Ee) | 0, d = d + Math.imul(le, et) | 0, d = d + Math.imul(ke, Ee) | 0, m = m + Math.imul(ke, et) | 0, g = g + Math.imul(he, Me) | 0, d = d + Math.imul(he, rt) | 0, d = d + Math.imul(Y, Me) | 0, m = m + Math.imul(Y, rt) | 0, g = g + Math.imul(ae, Ae) | 0, d = d + Math.imul(ae, nt) | 0, d = d + Math.imul(oe, Ae) | 0, m = m + Math.imul(oe, nt) | 0;
|
|
10158
10158
|
var Vr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10159
|
-
E = (m + (d >>> 13) | 0) + (Vr >>> 26) | 0, Vr &= 67108863, g = Math.imul(B, xe), d = Math.imul(B,
|
|
10159
|
+
E = (m + (d >>> 13) | 0) + (Vr >>> 26) | 0, Vr &= 67108863, g = Math.imul(B, xe), d = Math.imul(B, Ze), d = d + Math.imul(F, xe) | 0, m = Math.imul(F, Ze), g = g + Math.imul(M, Se) | 0, d = d + Math.imul(M, Je) | 0, d = d + Math.imul(p, Se) | 0, m = m + Math.imul(p, Je) | 0, g = g + Math.imul(pe, Ee) | 0, d = d + Math.imul(pe, et) | 0, d = d + Math.imul(Te, Ee) | 0, m = m + Math.imul(Te, et) | 0, g = g + Math.imul(le, Me) | 0, d = d + Math.imul(le, rt) | 0, d = d + Math.imul(ke, Me) | 0, m = m + Math.imul(ke, rt) | 0, g = g + Math.imul(he, Ae) | 0, d = d + Math.imul(he, nt) | 0, d = d + Math.imul(Y, Ae) | 0, m = m + Math.imul(Y, nt) | 0;
|
|
10160
10160
|
var Gr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10161
10161
|
E = (m + (d >>> 13) | 0) + (Gr >>> 26) | 0, Gr &= 67108863, g = Math.imul(B, Se), d = Math.imul(B, Je), d = d + Math.imul(F, Se) | 0, m = Math.imul(F, Je), g = g + Math.imul(M, Ee) | 0, d = d + Math.imul(M, et) | 0, d = d + Math.imul(p, Ee) | 0, m = m + Math.imul(p, et) | 0, g = g + Math.imul(pe, Me) | 0, d = d + Math.imul(pe, rt) | 0, d = d + Math.imul(Te, Me) | 0, m = m + Math.imul(Te, rt) | 0, g = g + Math.imul(le, Ae) | 0, d = d + Math.imul(le, nt) | 0, d = d + Math.imul(ke, Ae) | 0, m = m + Math.imul(ke, nt) | 0;
|
|
10162
10162
|
var Wr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10163
10163
|
E = (m + (d >>> 13) | 0) + (Wr >>> 26) | 0, Wr &= 67108863, g = Math.imul(B, Ee), d = Math.imul(B, et), d = d + Math.imul(F, Ee) | 0, m = Math.imul(F, et), g = g + Math.imul(M, Me) | 0, d = d + Math.imul(M, rt) | 0, d = d + Math.imul(p, Me) | 0, m = m + Math.imul(p, rt) | 0, g = g + Math.imul(pe, Ae) | 0, d = d + Math.imul(pe, nt) | 0, d = d + Math.imul(Te, Ae) | 0, m = m + Math.imul(Te, nt) | 0;
|
|
10164
10164
|
var Yr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10165
10165
|
E = (m + (d >>> 13) | 0) + (Yr >>> 26) | 0, Yr &= 67108863, g = Math.imul(B, Me), d = Math.imul(B, rt), d = d + Math.imul(F, Me) | 0, m = Math.imul(F, rt), g = g + Math.imul(M, Ae) | 0, d = d + Math.imul(M, nt) | 0, d = d + Math.imul(p, Ae) | 0, m = m + Math.imul(p, nt) | 0;
|
|
10166
|
-
var Xr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10167
|
-
E = (m + (d >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, g = Math.imul(B, Ae), d = Math.imul(B, nt), d = d + Math.imul(F, Ae) | 0, m = Math.imul(F, nt);
|
|
10168
10166
|
var Zr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10169
|
-
|
|
10167
|
+
E = (m + (d >>> 13) | 0) + (Zr >>> 26) | 0, Zr &= 67108863, g = Math.imul(B, Ae), d = Math.imul(B, nt), d = d + Math.imul(F, Ae) | 0, m = Math.imul(F, nt);
|
|
10168
|
+
var Xr = (E + g | 0) + ((d & 8191) << 13) | 0;
|
|
10169
|
+
return E = (m + (d >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, w[0] = qe, w[1] = He, w[2] = Cr, w[3] = Nr, w[4] = Ur, w[5] = Lr, w[6] = $r, w[7] = Fr, w[8] = jr, w[9] = qr, w[10] = Hr, w[11] = zr, w[12] = Kr, w[13] = Vr, w[14] = Gr, w[15] = Wr, w[16] = Yr, w[17] = Zr, w[18] = Xr, E !== 0 && (w[19] = E, f.length++), f;
|
|
10170
10170
|
};
|
|
10171
10171
|
Math.imul || ($ = C);
|
|
10172
10172
|
function P(D, l, u) {
|
|
@@ -10673,14 +10673,14 @@ Ro.exports;
|
|
|
10673
10673
|
}, V.prototype.imulK = function(l) {
|
|
10674
10674
|
return l.imul(this.k);
|
|
10675
10675
|
};
|
|
10676
|
-
function
|
|
10676
|
+
function X() {
|
|
10677
10677
|
V.call(
|
|
10678
10678
|
this,
|
|
10679
10679
|
"k256",
|
|
10680
10680
|
"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f"
|
|
10681
10681
|
);
|
|
10682
10682
|
}
|
|
10683
|
-
a(
|
|
10683
|
+
a(X, V), X.prototype.split = function(l, u) {
|
|
10684
10684
|
for (var f = 4194303, c = Math.min(l.length, 9), v = 0; v < c; v++)
|
|
10685
10685
|
u.words[v] = l.words[v];
|
|
10686
10686
|
if (u.length = c, l.length <= 9) {
|
|
@@ -10693,7 +10693,7 @@ Ro.exports;
|
|
|
10693
10693
|
l.words[v - 10] = (E & f) << 4 | w >>> 22, w = E;
|
|
10694
10694
|
}
|
|
10695
10695
|
w >>>= 22, l.words[v - 10] = w, w === 0 && l.length > 10 ? l.length -= 10 : l.length -= 9;
|
|
10696
|
-
},
|
|
10696
|
+
}, X.prototype.imulK = function(l) {
|
|
10697
10697
|
l.words[l.length] = 0, l.words[l.length + 1] = 0, l.length += 2;
|
|
10698
10698
|
for (var u = 0, f = 0; f < l.length; f++) {
|
|
10699
10699
|
var c = l.words[f] | 0;
|
|
@@ -10735,7 +10735,7 @@ Ro.exports;
|
|
|
10735
10735
|
return q[l];
|
|
10736
10736
|
var u;
|
|
10737
10737
|
if (l === "k256")
|
|
10738
|
-
u = new
|
|
10738
|
+
u = new X();
|
|
10739
10739
|
else if (l === "p224")
|
|
10740
10740
|
u = new ee();
|
|
10741
10741
|
else if (l === "p192")
|
|
@@ -10997,9 +10997,9 @@ function Ah() {
|
|
|
10997
10997
|
var N = 1048576, L = [];
|
|
10998
10998
|
L[0] = 2;
|
|
10999
10999
|
for (var q = 1, V = 3; V < N; V += 2) {
|
|
11000
|
-
for (var
|
|
11000
|
+
for (var X = Math.ceil(Math.sqrt(V)), ee = 0; ee < q && L[ee] <= X && V % L[ee] !== 0; ee++)
|
|
11001
11001
|
;
|
|
11002
|
-
q !== ee && L[ee] <=
|
|
11002
|
+
q !== ee && L[ee] <= X || (L[q++] = V);
|
|
11003
11003
|
}
|
|
11004
11004
|
return I = L, L;
|
|
11005
11005
|
}
|
|
@@ -11089,13 +11089,13 @@ function b2() {
|
|
|
11089
11089
|
if (P.isEven() || !b.simpleSieve || !b.fermatTest(P) || !r.test(P))
|
|
11090
11090
|
return V += 1, L === "02" || L === "05" ? V += 8 : V += 4, I[q] = V, V;
|
|
11091
11091
|
r.test(P.shrn(1)) || (V += 2);
|
|
11092
|
-
var
|
|
11092
|
+
var X;
|
|
11093
11093
|
switch (L) {
|
|
11094
11094
|
case "02":
|
|
11095
11095
|
P.mod(i).cmp(a) && (V += 8);
|
|
11096
11096
|
break;
|
|
11097
11097
|
case "05":
|
|
11098
|
-
|
|
11098
|
+
X = P.mod(n), X.cmp(o) && X.cmp(s) && (V += 8);
|
|
11099
11099
|
break;
|
|
11100
11100
|
default:
|
|
11101
11101
|
V += 4;
|
|
@@ -11624,7 +11624,7 @@ To.exports;
|
|
|
11624
11624
|
return m !== 0 ? c.words[h] = m | 0 : c.length--, c._strip();
|
|
11625
11625
|
}
|
|
11626
11626
|
var L = function(f, c, v) {
|
|
11627
|
-
var w = f.words, E = c.words, g = v.words, d = 0, m, h, S, j = w[0] | 0, G = j & 8191, O = j >>> 13, U = w[1] | 0, z = U & 8191, W = U >>> 13, te = w[2] | 0, k = te & 8191, R = te >>> 13,
|
|
11627
|
+
var w = f.words, E = c.words, g = v.words, d = 0, m, h, S, j = w[0] | 0, G = j & 8191, O = j >>> 13, U = w[1] | 0, z = U & 8191, W = U >>> 13, te = w[2] | 0, k = te & 8191, R = te >>> 13, Z = w[3] | 0, J = Z & 8191, ae = Z >>> 13, oe = w[4] | 0, ce = oe & 8191, he = oe >>> 13, Y = w[5] | 0, Ne = Y & 8191, le = Y >>> 13, ke = w[6] | 0, Ue = ke & 8191, pe = ke >>> 13, Te = w[7] | 0, Le = Te & 8191, M = Te >>> 13, p = w[8] | 0, y = p & 8191, B = p >>> 13, F = w[9] | 0, H = F & 8191, K = F >>> 13, se = E[0] | 0, be = se & 8191, fe = se >>> 13, ve = E[1] | 0, ue = ve & 8191, ge = ve >>> 13, ze = E[2] | 0, Ke = ze & 8191, we = ze >>> 13, Ve = E[3] | 0, Ge = Ve & 8191, _e = Ve >>> 13, We = E[4] | 0, Ye = We & 8191, xe = We >>> 13, Ze = E[5] | 0, Xe = Ze & 8191, Se = Ze >>> 13, Je = E[6] | 0, Qe = Je & 8191, Ee = Je >>> 13, et = E[7] | 0, tt = et & 8191, Me = et >>> 13, rt = E[8] | 0, it = rt & 8191, Ae = rt >>> 13, nt = E[9] | 0, qe = nt & 8191, He = nt >>> 13;
|
|
11628
11628
|
v.negative = f.negative ^ c.negative, v.length = 19, m = Math.imul(G, be), h = Math.imul(G, fe), h = h + Math.imul(O, be) | 0, S = Math.imul(O, fe);
|
|
11629
11629
|
var Cr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11630
11630
|
d = (S + (h >>> 13) | 0) + (Cr >>> 26) | 0, Cr &= 67108863, m = Math.imul(z, be), h = Math.imul(z, fe), h = h + Math.imul(W, be) | 0, S = Math.imul(W, fe), m = m + Math.imul(G, ue) | 0, h = h + Math.imul(G, ge) | 0, h = h + Math.imul(O, ue) | 0, S = S + Math.imul(O, ge) | 0;
|
|
@@ -11635,35 +11635,35 @@ To.exports;
|
|
|
11635
11635
|
var Lr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11636
11636
|
d = (S + (h >>> 13) | 0) + (Lr >>> 26) | 0, Lr &= 67108863, m = Math.imul(ce, be), h = Math.imul(ce, fe), h = h + Math.imul(he, be) | 0, S = Math.imul(he, fe), m = m + Math.imul(J, ue) | 0, h = h + Math.imul(J, ge) | 0, h = h + Math.imul(ae, ue) | 0, S = S + Math.imul(ae, ge) | 0, m = m + Math.imul(k, Ke) | 0, h = h + Math.imul(k, we) | 0, h = h + Math.imul(R, Ke) | 0, S = S + Math.imul(R, we) | 0, m = m + Math.imul(z, Ge) | 0, h = h + Math.imul(z, _e) | 0, h = h + Math.imul(W, Ge) | 0, S = S + Math.imul(W, _e) | 0, m = m + Math.imul(G, Ye) | 0, h = h + Math.imul(G, xe) | 0, h = h + Math.imul(O, Ye) | 0, S = S + Math.imul(O, xe) | 0;
|
|
11637
11637
|
var $r = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11638
|
-
d = (S + (h >>> 13) | 0) + ($r >>> 26) | 0, $r &= 67108863, m = Math.imul(Ne, be), h = Math.imul(Ne, fe), h = h + Math.imul(le, be) | 0, S = Math.imul(le, fe), m = m + Math.imul(ce, ue) | 0, h = h + Math.imul(ce, ge) | 0, h = h + Math.imul(he, ue) | 0, S = S + Math.imul(he, ge) | 0, m = m + Math.imul(J, Ke) | 0, h = h + Math.imul(J, we) | 0, h = h + Math.imul(ae, Ke) | 0, S = S + Math.imul(ae, we) | 0, m = m + Math.imul(k, Ge) | 0, h = h + Math.imul(k, _e) | 0, h = h + Math.imul(R, Ge) | 0, S = S + Math.imul(R, _e) | 0, m = m + Math.imul(z, Ye) | 0, h = h + Math.imul(z, xe) | 0, h = h + Math.imul(W, Ye) | 0, S = S + Math.imul(W, xe) | 0, m = m + Math.imul(G,
|
|
11638
|
+
d = (S + (h >>> 13) | 0) + ($r >>> 26) | 0, $r &= 67108863, m = Math.imul(Ne, be), h = Math.imul(Ne, fe), h = h + Math.imul(le, be) | 0, S = Math.imul(le, fe), m = m + Math.imul(ce, ue) | 0, h = h + Math.imul(ce, ge) | 0, h = h + Math.imul(he, ue) | 0, S = S + Math.imul(he, ge) | 0, m = m + Math.imul(J, Ke) | 0, h = h + Math.imul(J, we) | 0, h = h + Math.imul(ae, Ke) | 0, S = S + Math.imul(ae, we) | 0, m = m + Math.imul(k, Ge) | 0, h = h + Math.imul(k, _e) | 0, h = h + Math.imul(R, Ge) | 0, S = S + Math.imul(R, _e) | 0, m = m + Math.imul(z, Ye) | 0, h = h + Math.imul(z, xe) | 0, h = h + Math.imul(W, Ye) | 0, S = S + Math.imul(W, xe) | 0, m = m + Math.imul(G, Xe) | 0, h = h + Math.imul(G, Se) | 0, h = h + Math.imul(O, Xe) | 0, S = S + Math.imul(O, Se) | 0;
|
|
11639
11639
|
var Fr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11640
|
-
d = (S + (h >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, m = Math.imul(Ue, be), h = Math.imul(Ue, fe), h = h + Math.imul(pe, be) | 0, S = Math.imul(pe, fe), m = m + Math.imul(Ne, ue) | 0, h = h + Math.imul(Ne, ge) | 0, h = h + Math.imul(le, ue) | 0, S = S + Math.imul(le, ge) | 0, m = m + Math.imul(ce, Ke) | 0, h = h + Math.imul(ce, we) | 0, h = h + Math.imul(he, Ke) | 0, S = S + Math.imul(he, we) | 0, m = m + Math.imul(J, Ge) | 0, h = h + Math.imul(J, _e) | 0, h = h + Math.imul(ae, Ge) | 0, S = S + Math.imul(ae, _e) | 0, m = m + Math.imul(k, Ye) | 0, h = h + Math.imul(k, xe) | 0, h = h + Math.imul(R, Ye) | 0, S = S + Math.imul(R, xe) | 0, m = m + Math.imul(z,
|
|
11640
|
+
d = (S + (h >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, m = Math.imul(Ue, be), h = Math.imul(Ue, fe), h = h + Math.imul(pe, be) | 0, S = Math.imul(pe, fe), m = m + Math.imul(Ne, ue) | 0, h = h + Math.imul(Ne, ge) | 0, h = h + Math.imul(le, ue) | 0, S = S + Math.imul(le, ge) | 0, m = m + Math.imul(ce, Ke) | 0, h = h + Math.imul(ce, we) | 0, h = h + Math.imul(he, Ke) | 0, S = S + Math.imul(he, we) | 0, m = m + Math.imul(J, Ge) | 0, h = h + Math.imul(J, _e) | 0, h = h + Math.imul(ae, Ge) | 0, S = S + Math.imul(ae, _e) | 0, m = m + Math.imul(k, Ye) | 0, h = h + Math.imul(k, xe) | 0, h = h + Math.imul(R, Ye) | 0, S = S + Math.imul(R, xe) | 0, m = m + Math.imul(z, Xe) | 0, h = h + Math.imul(z, Se) | 0, h = h + Math.imul(W, Xe) | 0, S = S + Math.imul(W, Se) | 0, m = m + Math.imul(G, Qe) | 0, h = h + Math.imul(G, Ee) | 0, h = h + Math.imul(O, Qe) | 0, S = S + Math.imul(O, Ee) | 0;
|
|
11641
11641
|
var jr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11642
|
-
d = (S + (h >>> 13) | 0) + (jr >>> 26) | 0, jr &= 67108863, m = Math.imul(Le, be), h = Math.imul(Le, fe), h = h + Math.imul(M, be) | 0, S = Math.imul(M, fe), m = m + Math.imul(Ue, ue) | 0, h = h + Math.imul(Ue, ge) | 0, h = h + Math.imul(pe, ue) | 0, S = S + Math.imul(pe, ge) | 0, m = m + Math.imul(Ne, Ke) | 0, h = h + Math.imul(Ne, we) | 0, h = h + Math.imul(le, Ke) | 0, S = S + Math.imul(le, we) | 0, m = m + Math.imul(ce, Ge) | 0, h = h + Math.imul(ce, _e) | 0, h = h + Math.imul(he, Ge) | 0, S = S + Math.imul(he, _e) | 0, m = m + Math.imul(J, Ye) | 0, h = h + Math.imul(J, xe) | 0, h = h + Math.imul(ae, Ye) | 0, S = S + Math.imul(ae, xe) | 0, m = m + Math.imul(k,
|
|
11642
|
+
d = (S + (h >>> 13) | 0) + (jr >>> 26) | 0, jr &= 67108863, m = Math.imul(Le, be), h = Math.imul(Le, fe), h = h + Math.imul(M, be) | 0, S = Math.imul(M, fe), m = m + Math.imul(Ue, ue) | 0, h = h + Math.imul(Ue, ge) | 0, h = h + Math.imul(pe, ue) | 0, S = S + Math.imul(pe, ge) | 0, m = m + Math.imul(Ne, Ke) | 0, h = h + Math.imul(Ne, we) | 0, h = h + Math.imul(le, Ke) | 0, S = S + Math.imul(le, we) | 0, m = m + Math.imul(ce, Ge) | 0, h = h + Math.imul(ce, _e) | 0, h = h + Math.imul(he, Ge) | 0, S = S + Math.imul(he, _e) | 0, m = m + Math.imul(J, Ye) | 0, h = h + Math.imul(J, xe) | 0, h = h + Math.imul(ae, Ye) | 0, S = S + Math.imul(ae, xe) | 0, m = m + Math.imul(k, Xe) | 0, h = h + Math.imul(k, Se) | 0, h = h + Math.imul(R, Xe) | 0, S = S + Math.imul(R, Se) | 0, m = m + Math.imul(z, Qe) | 0, h = h + Math.imul(z, Ee) | 0, h = h + Math.imul(W, Qe) | 0, S = S + Math.imul(W, Ee) | 0, m = m + Math.imul(G, tt) | 0, h = h + Math.imul(G, Me) | 0, h = h + Math.imul(O, tt) | 0, S = S + Math.imul(O, Me) | 0;
|
|
11643
11643
|
var qr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11644
|
-
d = (S + (h >>> 13) | 0) + (qr >>> 26) | 0, qr &= 67108863, m = Math.imul(y, be), h = Math.imul(y, fe), h = h + Math.imul(B, be) | 0, S = Math.imul(B, fe), m = m + Math.imul(Le, ue) | 0, h = h + Math.imul(Le, ge) | 0, h = h + Math.imul(M, ue) | 0, S = S + Math.imul(M, ge) | 0, m = m + Math.imul(Ue, Ke) | 0, h = h + Math.imul(Ue, we) | 0, h = h + Math.imul(pe, Ke) | 0, S = S + Math.imul(pe, we) | 0, m = m + Math.imul(Ne, Ge) | 0, h = h + Math.imul(Ne, _e) | 0, h = h + Math.imul(le, Ge) | 0, S = S + Math.imul(le, _e) | 0, m = m + Math.imul(ce, Ye) | 0, h = h + Math.imul(ce, xe) | 0, h = h + Math.imul(he, Ye) | 0, S = S + Math.imul(he, xe) | 0, m = m + Math.imul(J,
|
|
11644
|
+
d = (S + (h >>> 13) | 0) + (qr >>> 26) | 0, qr &= 67108863, m = Math.imul(y, be), h = Math.imul(y, fe), h = h + Math.imul(B, be) | 0, S = Math.imul(B, fe), m = m + Math.imul(Le, ue) | 0, h = h + Math.imul(Le, ge) | 0, h = h + Math.imul(M, ue) | 0, S = S + Math.imul(M, ge) | 0, m = m + Math.imul(Ue, Ke) | 0, h = h + Math.imul(Ue, we) | 0, h = h + Math.imul(pe, Ke) | 0, S = S + Math.imul(pe, we) | 0, m = m + Math.imul(Ne, Ge) | 0, h = h + Math.imul(Ne, _e) | 0, h = h + Math.imul(le, Ge) | 0, S = S + Math.imul(le, _e) | 0, m = m + Math.imul(ce, Ye) | 0, h = h + Math.imul(ce, xe) | 0, h = h + Math.imul(he, Ye) | 0, S = S + Math.imul(he, xe) | 0, m = m + Math.imul(J, Xe) | 0, h = h + Math.imul(J, Se) | 0, h = h + Math.imul(ae, Xe) | 0, S = S + Math.imul(ae, Se) | 0, m = m + Math.imul(k, Qe) | 0, h = h + Math.imul(k, Ee) | 0, h = h + Math.imul(R, Qe) | 0, S = S + Math.imul(R, Ee) | 0, m = m + Math.imul(z, tt) | 0, h = h + Math.imul(z, Me) | 0, h = h + Math.imul(W, tt) | 0, S = S + Math.imul(W, Me) | 0, m = m + Math.imul(G, it) | 0, h = h + Math.imul(G, Ae) | 0, h = h + Math.imul(O, it) | 0, S = S + Math.imul(O, Ae) | 0;
|
|
11645
11645
|
var Hr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11646
|
-
d = (S + (h >>> 13) | 0) + (Hr >>> 26) | 0, Hr &= 67108863, m = Math.imul(H, be), h = Math.imul(H, fe), h = h + Math.imul(K, be) | 0, S = Math.imul(K, fe), m = m + Math.imul(y, ue) | 0, h = h + Math.imul(y, ge) | 0, h = h + Math.imul(B, ue) | 0, S = S + Math.imul(B, ge) | 0, m = m + Math.imul(Le, Ke) | 0, h = h + Math.imul(Le, we) | 0, h = h + Math.imul(M, Ke) | 0, S = S + Math.imul(M, we) | 0, m = m + Math.imul(Ue, Ge) | 0, h = h + Math.imul(Ue, _e) | 0, h = h + Math.imul(pe, Ge) | 0, S = S + Math.imul(pe, _e) | 0, m = m + Math.imul(Ne, Ye) | 0, h = h + Math.imul(Ne, xe) | 0, h = h + Math.imul(le, Ye) | 0, S = S + Math.imul(le, xe) | 0, m = m + Math.imul(ce,
|
|
11646
|
+
d = (S + (h >>> 13) | 0) + (Hr >>> 26) | 0, Hr &= 67108863, m = Math.imul(H, be), h = Math.imul(H, fe), h = h + Math.imul(K, be) | 0, S = Math.imul(K, fe), m = m + Math.imul(y, ue) | 0, h = h + Math.imul(y, ge) | 0, h = h + Math.imul(B, ue) | 0, S = S + Math.imul(B, ge) | 0, m = m + Math.imul(Le, Ke) | 0, h = h + Math.imul(Le, we) | 0, h = h + Math.imul(M, Ke) | 0, S = S + Math.imul(M, we) | 0, m = m + Math.imul(Ue, Ge) | 0, h = h + Math.imul(Ue, _e) | 0, h = h + Math.imul(pe, Ge) | 0, S = S + Math.imul(pe, _e) | 0, m = m + Math.imul(Ne, Ye) | 0, h = h + Math.imul(Ne, xe) | 0, h = h + Math.imul(le, Ye) | 0, S = S + Math.imul(le, xe) | 0, m = m + Math.imul(ce, Xe) | 0, h = h + Math.imul(ce, Se) | 0, h = h + Math.imul(he, Xe) | 0, S = S + Math.imul(he, Se) | 0, m = m + Math.imul(J, Qe) | 0, h = h + Math.imul(J, Ee) | 0, h = h + Math.imul(ae, Qe) | 0, S = S + Math.imul(ae, Ee) | 0, m = m + Math.imul(k, tt) | 0, h = h + Math.imul(k, Me) | 0, h = h + Math.imul(R, tt) | 0, S = S + Math.imul(R, Me) | 0, m = m + Math.imul(z, it) | 0, h = h + Math.imul(z, Ae) | 0, h = h + Math.imul(W, it) | 0, S = S + Math.imul(W, Ae) | 0, m = m + Math.imul(G, qe) | 0, h = h + Math.imul(G, He) | 0, h = h + Math.imul(O, qe) | 0, S = S + Math.imul(O, He) | 0;
|
|
11647
11647
|
var zr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11648
|
-
d = (S + (h >>> 13) | 0) + (zr >>> 26) | 0, zr &= 67108863, m = Math.imul(H, ue), h = Math.imul(H, ge), h = h + Math.imul(K, ue) | 0, S = Math.imul(K, ge), m = m + Math.imul(y, Ke) | 0, h = h + Math.imul(y, we) | 0, h = h + Math.imul(B, Ke) | 0, S = S + Math.imul(B, we) | 0, m = m + Math.imul(Le, Ge) | 0, h = h + Math.imul(Le, _e) | 0, h = h + Math.imul(M, Ge) | 0, S = S + Math.imul(M, _e) | 0, m = m + Math.imul(Ue, Ye) | 0, h = h + Math.imul(Ue, xe) | 0, h = h + Math.imul(pe, Ye) | 0, S = S + Math.imul(pe, xe) | 0, m = m + Math.imul(Ne,
|
|
11648
|
+
d = (S + (h >>> 13) | 0) + (zr >>> 26) | 0, zr &= 67108863, m = Math.imul(H, ue), h = Math.imul(H, ge), h = h + Math.imul(K, ue) | 0, S = Math.imul(K, ge), m = m + Math.imul(y, Ke) | 0, h = h + Math.imul(y, we) | 0, h = h + Math.imul(B, Ke) | 0, S = S + Math.imul(B, we) | 0, m = m + Math.imul(Le, Ge) | 0, h = h + Math.imul(Le, _e) | 0, h = h + Math.imul(M, Ge) | 0, S = S + Math.imul(M, _e) | 0, m = m + Math.imul(Ue, Ye) | 0, h = h + Math.imul(Ue, xe) | 0, h = h + Math.imul(pe, Ye) | 0, S = S + Math.imul(pe, xe) | 0, m = m + Math.imul(Ne, Xe) | 0, h = h + Math.imul(Ne, Se) | 0, h = h + Math.imul(le, Xe) | 0, S = S + Math.imul(le, Se) | 0, m = m + Math.imul(ce, Qe) | 0, h = h + Math.imul(ce, Ee) | 0, h = h + Math.imul(he, Qe) | 0, S = S + Math.imul(he, Ee) | 0, m = m + Math.imul(J, tt) | 0, h = h + Math.imul(J, Me) | 0, h = h + Math.imul(ae, tt) | 0, S = S + Math.imul(ae, Me) | 0, m = m + Math.imul(k, it) | 0, h = h + Math.imul(k, Ae) | 0, h = h + Math.imul(R, it) | 0, S = S + Math.imul(R, Ae) | 0, m = m + Math.imul(z, qe) | 0, h = h + Math.imul(z, He) | 0, h = h + Math.imul(W, qe) | 0, S = S + Math.imul(W, He) | 0;
|
|
11649
11649
|
var Kr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11650
|
-
d = (S + (h >>> 13) | 0) + (Kr >>> 26) | 0, Kr &= 67108863, m = Math.imul(H, Ke), h = Math.imul(H, we), h = h + Math.imul(K, Ke) | 0, S = Math.imul(K, we), m = m + Math.imul(y, Ge) | 0, h = h + Math.imul(y, _e) | 0, h = h + Math.imul(B, Ge) | 0, S = S + Math.imul(B, _e) | 0, m = m + Math.imul(Le, Ye) | 0, h = h + Math.imul(Le, xe) | 0, h = h + Math.imul(M, Ye) | 0, S = S + Math.imul(M, xe) | 0, m = m + Math.imul(Ue,
|
|
11650
|
+
d = (S + (h >>> 13) | 0) + (Kr >>> 26) | 0, Kr &= 67108863, m = Math.imul(H, Ke), h = Math.imul(H, we), h = h + Math.imul(K, Ke) | 0, S = Math.imul(K, we), m = m + Math.imul(y, Ge) | 0, h = h + Math.imul(y, _e) | 0, h = h + Math.imul(B, Ge) | 0, S = S + Math.imul(B, _e) | 0, m = m + Math.imul(Le, Ye) | 0, h = h + Math.imul(Le, xe) | 0, h = h + Math.imul(M, Ye) | 0, S = S + Math.imul(M, xe) | 0, m = m + Math.imul(Ue, Xe) | 0, h = h + Math.imul(Ue, Se) | 0, h = h + Math.imul(pe, Xe) | 0, S = S + Math.imul(pe, Se) | 0, m = m + Math.imul(Ne, Qe) | 0, h = h + Math.imul(Ne, Ee) | 0, h = h + Math.imul(le, Qe) | 0, S = S + Math.imul(le, Ee) | 0, m = m + Math.imul(ce, tt) | 0, h = h + Math.imul(ce, Me) | 0, h = h + Math.imul(he, tt) | 0, S = S + Math.imul(he, Me) | 0, m = m + Math.imul(J, it) | 0, h = h + Math.imul(J, Ae) | 0, h = h + Math.imul(ae, it) | 0, S = S + Math.imul(ae, Ae) | 0, m = m + Math.imul(k, qe) | 0, h = h + Math.imul(k, He) | 0, h = h + Math.imul(R, qe) | 0, S = S + Math.imul(R, He) | 0;
|
|
11651
11651
|
var Vr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11652
|
-
d = (S + (h >>> 13) | 0) + (Vr >>> 26) | 0, Vr &= 67108863, m = Math.imul(H, Ge), h = Math.imul(H, _e), h = h + Math.imul(K, Ge) | 0, S = Math.imul(K, _e), m = m + Math.imul(y, Ye) | 0, h = h + Math.imul(y, xe) | 0, h = h + Math.imul(B, Ye) | 0, S = S + Math.imul(B, xe) | 0, m = m + Math.imul(Le,
|
|
11652
|
+
d = (S + (h >>> 13) | 0) + (Vr >>> 26) | 0, Vr &= 67108863, m = Math.imul(H, Ge), h = Math.imul(H, _e), h = h + Math.imul(K, Ge) | 0, S = Math.imul(K, _e), m = m + Math.imul(y, Ye) | 0, h = h + Math.imul(y, xe) | 0, h = h + Math.imul(B, Ye) | 0, S = S + Math.imul(B, xe) | 0, m = m + Math.imul(Le, Xe) | 0, h = h + Math.imul(Le, Se) | 0, h = h + Math.imul(M, Xe) | 0, S = S + Math.imul(M, Se) | 0, m = m + Math.imul(Ue, Qe) | 0, h = h + Math.imul(Ue, Ee) | 0, h = h + Math.imul(pe, Qe) | 0, S = S + Math.imul(pe, Ee) | 0, m = m + Math.imul(Ne, tt) | 0, h = h + Math.imul(Ne, Me) | 0, h = h + Math.imul(le, tt) | 0, S = S + Math.imul(le, Me) | 0, m = m + Math.imul(ce, it) | 0, h = h + Math.imul(ce, Ae) | 0, h = h + Math.imul(he, it) | 0, S = S + Math.imul(he, Ae) | 0, m = m + Math.imul(J, qe) | 0, h = h + Math.imul(J, He) | 0, h = h + Math.imul(ae, qe) | 0, S = S + Math.imul(ae, He) | 0;
|
|
11653
11653
|
var Gr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11654
|
-
d = (S + (h >>> 13) | 0) + (Gr >>> 26) | 0, Gr &= 67108863, m = Math.imul(H, Ye), h = Math.imul(H, xe), h = h + Math.imul(K, Ye) | 0, S = Math.imul(K, xe), m = m + Math.imul(y,
|
|
11654
|
+
d = (S + (h >>> 13) | 0) + (Gr >>> 26) | 0, Gr &= 67108863, m = Math.imul(H, Ye), h = Math.imul(H, xe), h = h + Math.imul(K, Ye) | 0, S = Math.imul(K, xe), m = m + Math.imul(y, Xe) | 0, h = h + Math.imul(y, Se) | 0, h = h + Math.imul(B, Xe) | 0, S = S + Math.imul(B, Se) | 0, m = m + Math.imul(Le, Qe) | 0, h = h + Math.imul(Le, Ee) | 0, h = h + Math.imul(M, Qe) | 0, S = S + Math.imul(M, Ee) | 0, m = m + Math.imul(Ue, tt) | 0, h = h + Math.imul(Ue, Me) | 0, h = h + Math.imul(pe, tt) | 0, S = S + Math.imul(pe, Me) | 0, m = m + Math.imul(Ne, it) | 0, h = h + Math.imul(Ne, Ae) | 0, h = h + Math.imul(le, it) | 0, S = S + Math.imul(le, Ae) | 0, m = m + Math.imul(ce, qe) | 0, h = h + Math.imul(ce, He) | 0, h = h + Math.imul(he, qe) | 0, S = S + Math.imul(he, He) | 0;
|
|
11655
11655
|
var Wr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11656
|
-
d = (S + (h >>> 13) | 0) + (Wr >>> 26) | 0, Wr &= 67108863, m = Math.imul(H,
|
|
11656
|
+
d = (S + (h >>> 13) | 0) + (Wr >>> 26) | 0, Wr &= 67108863, m = Math.imul(H, Xe), h = Math.imul(H, Se), h = h + Math.imul(K, Xe) | 0, S = Math.imul(K, Se), m = m + Math.imul(y, Qe) | 0, h = h + Math.imul(y, Ee) | 0, h = h + Math.imul(B, Qe) | 0, S = S + Math.imul(B, Ee) | 0, m = m + Math.imul(Le, tt) | 0, h = h + Math.imul(Le, Me) | 0, h = h + Math.imul(M, tt) | 0, S = S + Math.imul(M, Me) | 0, m = m + Math.imul(Ue, it) | 0, h = h + Math.imul(Ue, Ae) | 0, h = h + Math.imul(pe, it) | 0, S = S + Math.imul(pe, Ae) | 0, m = m + Math.imul(Ne, qe) | 0, h = h + Math.imul(Ne, He) | 0, h = h + Math.imul(le, qe) | 0, S = S + Math.imul(le, He) | 0;
|
|
11657
11657
|
var Yr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11658
11658
|
d = (S + (h >>> 13) | 0) + (Yr >>> 26) | 0, Yr &= 67108863, m = Math.imul(H, Qe), h = Math.imul(H, Ee), h = h + Math.imul(K, Qe) | 0, S = Math.imul(K, Ee), m = m + Math.imul(y, tt) | 0, h = h + Math.imul(y, Me) | 0, h = h + Math.imul(B, tt) | 0, S = S + Math.imul(B, Me) | 0, m = m + Math.imul(Le, it) | 0, h = h + Math.imul(Le, Ae) | 0, h = h + Math.imul(M, it) | 0, S = S + Math.imul(M, Ae) | 0, m = m + Math.imul(Ue, qe) | 0, h = h + Math.imul(Ue, He) | 0, h = h + Math.imul(pe, qe) | 0, S = S + Math.imul(pe, He) | 0;
|
|
11659
|
-
var Xr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11660
|
-
d = (S + (h >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, m = Math.imul(H, tt), h = Math.imul(H, Me), h = h + Math.imul(K, tt) | 0, S = Math.imul(K, Me), m = m + Math.imul(y, it) | 0, h = h + Math.imul(y, Ae) | 0, h = h + Math.imul(B, it) | 0, S = S + Math.imul(B, Ae) | 0, m = m + Math.imul(Le, qe) | 0, h = h + Math.imul(Le, He) | 0, h = h + Math.imul(M, qe) | 0, S = S + Math.imul(M, He) | 0;
|
|
11661
11659
|
var Zr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11662
|
-
d = (S + (h >>> 13) | 0) + (Zr >>> 26) | 0, Zr &= 67108863, m = Math.imul(H,
|
|
11660
|
+
d = (S + (h >>> 13) | 0) + (Zr >>> 26) | 0, Zr &= 67108863, m = Math.imul(H, tt), h = Math.imul(H, Me), h = h + Math.imul(K, tt) | 0, S = Math.imul(K, Me), m = m + Math.imul(y, it) | 0, h = h + Math.imul(y, Ae) | 0, h = h + Math.imul(B, it) | 0, S = S + Math.imul(B, Ae) | 0, m = m + Math.imul(Le, qe) | 0, h = h + Math.imul(Le, He) | 0, h = h + Math.imul(M, qe) | 0, S = S + Math.imul(M, He) | 0;
|
|
11661
|
+
var Xr = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11662
|
+
d = (S + (h >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, m = Math.imul(H, it), h = Math.imul(H, Ae), h = h + Math.imul(K, it) | 0, S = Math.imul(K, Ae), m = m + Math.imul(y, qe) | 0, h = h + Math.imul(y, He) | 0, h = h + Math.imul(B, qe) | 0, S = S + Math.imul(B, He) | 0;
|
|
11663
11663
|
var za = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11664
11664
|
d = (S + (h >>> 13) | 0) + (za >>> 26) | 0, za &= 67108863, m = Math.imul(H, qe), h = Math.imul(H, He), h = h + Math.imul(K, qe) | 0, S = Math.imul(K, He);
|
|
11665
11665
|
var Ka = (d + m | 0) + ((h & 8191) << 13) | 0;
|
|
11666
|
-
return d = (S + (h >>> 13) | 0) + (Ka >>> 26) | 0, Ka &= 67108863, g[0] = Cr, g[1] = Nr, g[2] = Ur, g[3] = Lr, g[4] = $r, g[5] = Fr, g[6] = jr, g[7] = qr, g[8] = Hr, g[9] = zr, g[10] = Kr, g[11] = Vr, g[12] = Gr, g[13] = Wr, g[14] = Yr, g[15] =
|
|
11666
|
+
return d = (S + (h >>> 13) | 0) + (Ka >>> 26) | 0, Ka &= 67108863, g[0] = Cr, g[1] = Nr, g[2] = Ur, g[3] = Lr, g[4] = $r, g[5] = Fr, g[6] = jr, g[7] = qr, g[8] = Hr, g[9] = zr, g[10] = Kr, g[11] = Vr, g[12] = Gr, g[13] = Wr, g[14] = Yr, g[15] = Zr, g[16] = Xr, g[17] = za, g[18] = Ka, d !== 0 && (g[19] = d, v.length++), v;
|
|
11667
11667
|
};
|
|
11668
11668
|
Math.imul || (L = N);
|
|
11669
11669
|
function q(u, f, c) {
|
|
@@ -12090,7 +12090,7 @@ To.exports;
|
|
|
12090
12090
|
}, n.prototype.redPow = function(f) {
|
|
12091
12091
|
return i(this.red && !f.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, f);
|
|
12092
12092
|
};
|
|
12093
|
-
var
|
|
12093
|
+
var X = {
|
|
12094
12094
|
k256: null,
|
|
12095
12095
|
p224: null,
|
|
12096
12096
|
p192: null,
|
|
@@ -12172,8 +12172,8 @@ To.exports;
|
|
|
12172
12172
|
}
|
|
12173
12173
|
return c !== 0 && (f.words[f.length++] = c), f;
|
|
12174
12174
|
}, n._prime = function(f) {
|
|
12175
|
-
if (
|
|
12176
|
-
return
|
|
12175
|
+
if (X[f])
|
|
12176
|
+
return X[f];
|
|
12177
12177
|
var c;
|
|
12178
12178
|
if (f === "k256")
|
|
12179
12179
|
c = new ne();
|
|
@@ -12185,7 +12185,7 @@ To.exports;
|
|
|
12185
12185
|
c = new me();
|
|
12186
12186
|
else
|
|
12187
12187
|
throw new Error("Unknown prime " + f);
|
|
12188
|
-
return
|
|
12188
|
+
return X[f] = c, c;
|
|
12189
12189
|
};
|
|
12190
12190
|
function D(u) {
|
|
12191
12191
|
if (typeof u == "string") {
|
|
@@ -12563,7 +12563,7 @@ Or.prototype._wnafMulAdd = function(e, r, i, a, n) {
|
|
|
12563
12563
|
b[C][A] = N[(q + 1) * 3 + (V + 1)], b[$][A] = 0, s[C] = P;
|
|
12564
12564
|
}
|
|
12565
12565
|
}
|
|
12566
|
-
var
|
|
12566
|
+
var X = this.jpoint(null, null, null), ee = this._wnafT4;
|
|
12567
12567
|
for (_ = x; _ >= 0; _--) {
|
|
12568
12568
|
for (var ne = 0; _ >= 0; ) {
|
|
12569
12569
|
var ie = !0;
|
|
@@ -12573,16 +12573,16 @@ Or.prototype._wnafMulAdd = function(e, r, i, a, n) {
|
|
|
12573
12573
|
break;
|
|
12574
12574
|
ne++, _--;
|
|
12575
12575
|
}
|
|
12576
|
-
if (_ >= 0 && ne++,
|
|
12576
|
+
if (_ >= 0 && ne++, X = X.dblp(ne), _ < 0)
|
|
12577
12577
|
break;
|
|
12578
12578
|
for (A = 0; A < a; A++) {
|
|
12579
12579
|
var Q = ee[A];
|
|
12580
|
-
Q !== 0 && (Q > 0 ? I = s[A][Q - 1 >> 1] : Q < 0 && (I = s[A][-Q - 1 >> 1].neg()), I.type === "affine" ?
|
|
12580
|
+
Q !== 0 && (Q > 0 ? I = s[A][Q - 1 >> 1] : Q < 0 && (I = s[A][-Q - 1 >> 1].neg()), I.type === "affine" ? X = X.mixedAdd(I) : X = X.add(I));
|
|
12581
12581
|
}
|
|
12582
12582
|
}
|
|
12583
12583
|
for (_ = 0; _ < a; _++)
|
|
12584
12584
|
s[_] = null;
|
|
12585
|
-
return n ?
|
|
12585
|
+
return n ? X : X.toP();
|
|
12586
12586
|
};
|
|
12587
12587
|
function zt(t, e) {
|
|
12588
12588
|
this.curve = t, this.type = e, this.precomputed = null;
|
|
@@ -12715,8 +12715,8 @@ Kt.prototype._getEndoBasis = function(e) {
|
|
|
12715
12715
|
$ = N, a = i, i = N, s = n, n = L, b = o, o = V;
|
|
12716
12716
|
}
|
|
12717
12717
|
T = N.neg(), C = L;
|
|
12718
|
-
var
|
|
12719
|
-
return ee.cmp(
|
|
12718
|
+
var X = A.sqr().add(I.sqr()), ee = T.sqr().add(C.sqr());
|
|
12719
|
+
return ee.cmp(X) >= 0 && (T = x, C = _), A.negative && (A = A.neg(), I = I.neg()), T.negative && (T = T.neg(), C = C.neg()), [
|
|
12720
12720
|
{ a: A, b: I },
|
|
12721
12721
|
{ a: T, b: C }
|
|
12722
12722
|
];
|
|
@@ -13324,18 +13324,18 @@ function Y2(t, e, r, i) {
|
|
|
13324
13324
|
return n;
|
|
13325
13325
|
}
|
|
13326
13326
|
De.join32 = Y2;
|
|
13327
|
-
function
|
|
13327
|
+
function Z2(t, e) {
|
|
13328
13328
|
for (var r = new Array(t.length * 4), i = 0, a = 0; i < t.length; i++, a += 4) {
|
|
13329
13329
|
var n = t[i];
|
|
13330
13330
|
e === "big" ? (r[a] = n >>> 24, r[a + 1] = n >>> 16 & 255, r[a + 2] = n >>> 8 & 255, r[a + 3] = n & 255) : (r[a + 3] = n >>> 24, r[a + 2] = n >>> 16 & 255, r[a + 1] = n >>> 8 & 255, r[a] = n & 255);
|
|
13331
13331
|
}
|
|
13332
13332
|
return r;
|
|
13333
13333
|
}
|
|
13334
|
-
De.split32 =
|
|
13335
|
-
function
|
|
13334
|
+
De.split32 = Z2;
|
|
13335
|
+
function X2(t, e) {
|
|
13336
13336
|
return t >>> e | t << 32 - e;
|
|
13337
13337
|
}
|
|
13338
|
-
De.rotr32 =
|
|
13338
|
+
De.rotr32 = X2;
|
|
13339
13339
|
function J2(t, e) {
|
|
13340
13340
|
return t << e | t >>> 32 - e;
|
|
13341
13341
|
}
|
|
@@ -13623,7 +13623,7 @@ hr.prototype._update = function(e, r) {
|
|
|
13623
13623
|
hr.prototype._digest = function(e) {
|
|
13624
13624
|
return e === "hex" ? Oi.toHex32(this.h, "big") : Oi.split32(this.h, "big");
|
|
13625
13625
|
};
|
|
13626
|
-
var
|
|
13626
|
+
var Xf = De, Fh = $h;
|
|
13627
13627
|
function xr() {
|
|
13628
13628
|
if (!(this instanceof xr))
|
|
13629
13629
|
return new xr();
|
|
@@ -13638,14 +13638,14 @@ function xr() {
|
|
|
13638
13638
|
3204075428
|
|
13639
13639
|
];
|
|
13640
13640
|
}
|
|
13641
|
-
|
|
13641
|
+
Xf.inherits(xr, Fh);
|
|
13642
13642
|
var Lv = xr;
|
|
13643
13643
|
xr.blockSize = 512;
|
|
13644
13644
|
xr.outSize = 224;
|
|
13645
13645
|
xr.hmacStrength = 192;
|
|
13646
13646
|
xr.padLength = 64;
|
|
13647
13647
|
xr.prototype._digest = function(e) {
|
|
13648
|
-
return e === "hex" ?
|
|
13648
|
+
return e === "hex" ? Xf.toHex32(this.h.slice(0, 7), "big") : Xf.split32(this.h.slice(0, 7), "big");
|
|
13649
13649
|
};
|
|
13650
13650
|
var Rt = De, $v = Ki, Fv = qt, fr = Rt.rotr64_hi, or = Rt.rotr64_lo, jh = Rt.shr64_hi, qh = Rt.shr64_lo, Ir = Rt.sum64, Ef = Rt.sum64_hi, Mf = Rt.sum64_lo, jv = Rt.sum64_4_hi, qv = Rt.sum64_4_lo, Hv = Rt.sum64_5_hi, zv = Rt.sum64_5_lo, Hh = $v.BlockHash, Kv = [
|
|
13651
13651
|
1116352408,
|
|
@@ -13809,9 +13809,9 @@ var Rt = De, $v = Ki, Fv = qt, fr = Rt.rotr64_hi, or = Rt.rotr64_lo, jh = Rt.shr
|
|
|
13809
13809
|
1816402316,
|
|
13810
13810
|
1246189591
|
|
13811
13811
|
];
|
|
13812
|
-
function
|
|
13813
|
-
if (!(this instanceof
|
|
13814
|
-
return new
|
|
13812
|
+
function Zt() {
|
|
13813
|
+
if (!(this instanceof Zt))
|
|
13814
|
+
return new Zt();
|
|
13815
13815
|
Hh.call(this), this.h = [
|
|
13816
13816
|
1779033703,
|
|
13817
13817
|
4089235720,
|
|
@@ -13831,13 +13831,13 @@ function Xt() {
|
|
|
13831
13831
|
327033209
|
|
13832
13832
|
], this.k = Kv, this.W = new Array(160);
|
|
13833
13833
|
}
|
|
13834
|
-
Rt.inherits(
|
|
13835
|
-
var zh =
|
|
13836
|
-
|
|
13837
|
-
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
|
|
13834
|
+
Rt.inherits(Zt, Hh);
|
|
13835
|
+
var zh = Zt;
|
|
13836
|
+
Zt.blockSize = 1024;
|
|
13837
|
+
Zt.outSize = 512;
|
|
13838
|
+
Zt.hmacStrength = 192;
|
|
13839
|
+
Zt.padLength = 128;
|
|
13840
|
+
Zt.prototype._prepareBlock = function(e, r) {
|
|
13841
13841
|
for (var i = this.W, a = 0; a < 32; a++)
|
|
13842
13842
|
i[a] = e[r + a];
|
|
13843
13843
|
for (; a < i.length; a += 2) {
|
|
@@ -13863,13 +13863,13 @@ Xt.prototype._prepareBlock = function(e, r) {
|
|
|
13863
13863
|
);
|
|
13864
13864
|
}
|
|
13865
13865
|
};
|
|
13866
|
-
|
|
13866
|
+
Zt.prototype._update = function(e, r) {
|
|
13867
13867
|
this._prepareBlock(e, r);
|
|
13868
13868
|
var i = this.W, a = this.h[0], n = this.h[1], o = this.h[2], s = this.h[3], b = this.h[4], x = this.h[5], _ = this.h[6], A = this.h[7], I = this.h[8], T = this.h[9], C = this.h[10], $ = this.h[11], P = this.h[12], N = this.h[13], L = this.h[14], q = this.h[15];
|
|
13869
13869
|
Fv(this.k.length === i.length);
|
|
13870
13870
|
for (var V = 0; V < i.length; V += 2) {
|
|
13871
|
-
var
|
|
13872
|
-
|
|
13871
|
+
var X = L, ee = q, ne = Jv(I, T), ie = Qv(I, T), Q = Vv(I, T, C, $, P), me = Gv(I, T, C, $, P, N), D = this.k[V], l = this.k[V + 1], u = i[V], f = i[V + 1], c = Hv(
|
|
13872
|
+
X,
|
|
13873
13873
|
ee,
|
|
13874
13874
|
ne,
|
|
13875
13875
|
ie,
|
|
@@ -13880,7 +13880,7 @@ Xt.prototype._update = function(e, r) {
|
|
|
13880
13880
|
u,
|
|
13881
13881
|
f
|
|
13882
13882
|
), v = zv(
|
|
13883
|
-
|
|
13883
|
+
X,
|
|
13884
13884
|
ee,
|
|
13885
13885
|
ne,
|
|
13886
13886
|
ie,
|
|
@@ -13891,13 +13891,13 @@ Xt.prototype._update = function(e, r) {
|
|
|
13891
13891
|
u,
|
|
13892
13892
|
f
|
|
13893
13893
|
);
|
|
13894
|
-
|
|
13895
|
-
var w = Ef(
|
|
13894
|
+
X = Zv(a, n), ee = Xv(a, n), ne = Wv(a, n, o, s, b), ie = Yv(a, n, o, s, b, x);
|
|
13895
|
+
var w = Ef(X, ee, ne, ie), E = Mf(X, ee, ne, ie);
|
|
13896
13896
|
L = P, q = N, P = C, N = $, C = I, $ = T, I = Ef(_, A, c, v), T = Mf(A, A, c, v), _ = b, A = x, b = o, x = s, o = a, s = n, a = Ef(c, v, w, E), n = Mf(c, v, w, E);
|
|
13897
13897
|
}
|
|
13898
13898
|
Ir(this.h, 0, a, n), Ir(this.h, 2, o, s), Ir(this.h, 4, b, x), Ir(this.h, 6, _, A), Ir(this.h, 8, I, T), Ir(this.h, 10, C, $), Ir(this.h, 12, P, N), Ir(this.h, 14, L, q);
|
|
13899
13899
|
};
|
|
13900
|
-
|
|
13900
|
+
Zt.prototype._digest = function(e) {
|
|
13901
13901
|
return e === "hex" ? Rt.toHex32(this.h, "big") : Rt.split32(this.h, "big");
|
|
13902
13902
|
};
|
|
13903
13903
|
function Vv(t, e, r, i, a) {
|
|
@@ -13916,11 +13916,11 @@ function Yv(t, e, r, i, a, n) {
|
|
|
13916
13916
|
var o = e & i ^ e & n ^ i & n;
|
|
13917
13917
|
return o < 0 && (o += 4294967296), o;
|
|
13918
13918
|
}
|
|
13919
|
-
function
|
|
13919
|
+
function Zv(t, e) {
|
|
13920
13920
|
var r = fr(t, e, 28), i = fr(e, t, 2), a = fr(e, t, 7), n = r ^ i ^ a;
|
|
13921
13921
|
return n < 0 && (n += 4294967296), n;
|
|
13922
13922
|
}
|
|
13923
|
-
function
|
|
13923
|
+
function Xv(t, e) {
|
|
13924
13924
|
var r = or(t, e, 28), i = or(e, t, 2), a = or(e, t, 7), n = r ^ i ^ a;
|
|
13925
13925
|
return n < 0 && (n += 4294967296), n;
|
|
13926
13926
|
}
|
|
@@ -14379,9 +14379,9 @@ Ci.prototype.digest = function(e) {
|
|
|
14379
14379
|
var e = t;
|
|
14380
14380
|
e.utils = De, e.common = Ki, e.sha = Vi, e.ripemd = Vh, e.hmac = p6, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160;
|
|
14381
14381
|
})(Oa);
|
|
14382
|
-
var Af,
|
|
14382
|
+
var Af, Zs;
|
|
14383
14383
|
function b6() {
|
|
14384
|
-
return
|
|
14384
|
+
return Zs || (Zs = 1, Af = {
|
|
14385
14385
|
doubles: {
|
|
14386
14386
|
step: 4,
|
|
14387
14387
|
points: [
|
|
@@ -15423,7 +15423,7 @@ function Bf(t, e) {
|
|
|
15423
15423
|
a <<= 8, a |= t[o], a >>>= 0;
|
|
15424
15424
|
return a <= 127 ? !1 : (e.place = o, a);
|
|
15425
15425
|
}
|
|
15426
|
-
function
|
|
15426
|
+
function Xs(t) {
|
|
15427
15427
|
for (var e = 0, r = t.length - 1; !t[e] && !(t[e + 1] & 128) && e < r; )
|
|
15428
15428
|
e++;
|
|
15429
15429
|
return e === 0 ? t : t.slice(e);
|
|
@@ -15470,7 +15470,7 @@ function If(t, e) {
|
|
|
15470
15470
|
}
|
|
15471
15471
|
Na.prototype.toDER = function(e) {
|
|
15472
15472
|
var r = this.r.toArray(), i = this.s.toArray();
|
|
15473
|
-
for (r[0] & 128 && (r = [0].concat(r)), i[0] & 128 && (i = [0].concat(i)), r =
|
|
15473
|
+
for (r[0] & 128 && (r = [0].concat(r)), i[0] & 128 && (i = [0].concat(i)), r = Xs(r), i = Xs(i); !i[0] && !(i[1] & 128); )
|
|
15474
15474
|
i = i.slice(1);
|
|
15475
15475
|
var a = [2];
|
|
15476
15476
|
If(a, r.length), a = a.concat(r), a.push(2), If(a, i.length);
|
|
@@ -15525,13 +15525,13 @@ function E6() {
|
|
|
15525
15525
|
}), L = this.n.sub(new t(1)), q = 0; ; q++) {
|
|
15526
15526
|
var V = T.k ? T.k(q) : new t(N.generate(this.n.byteLength()));
|
|
15527
15527
|
if (V = this._truncateToN(V, !0), !(V.cmpn(1) <= 0 || V.cmp(L) >= 0)) {
|
|
15528
|
-
var
|
|
15529
|
-
if (!
|
|
15530
|
-
var ee =
|
|
15528
|
+
var X = this.g.mul(V);
|
|
15529
|
+
if (!X.isInfinity()) {
|
|
15530
|
+
var ee = X.getX(), ne = ee.umod(this.n);
|
|
15531
15531
|
if (ne.cmpn(0) !== 0) {
|
|
15532
15532
|
var ie = V.invm(this.n).mul(ne.mul(A.getPrivate()).iadd(_));
|
|
15533
15533
|
if (ie = ie.umod(this.n), ie.cmpn(0) !== 0) {
|
|
15534
|
-
var Q = (
|
|
15534
|
+
var Q = (X.getY().isOdd() ? 1 : 0) | (ee.cmp(ne) !== 0 ? 2 : 0);
|
|
15535
15535
|
return T.canonical && ie.cmp(this.nh) > 0 && (ie = this.n.sub(ie), Q ^= 1), new s({ r: ne, s: ie, recoveryParam: Q });
|
|
15536
15536
|
}
|
|
15537
15537
|
}
|
|
@@ -15551,8 +15551,8 @@ function E6() {
|
|
|
15551
15551
|
if ($.cmp(this.curve.p.umod(this.curve.n)) >= 0 && L)
|
|
15552
15552
|
throw new Error("Unable to find sencond key candinate");
|
|
15553
15553
|
L ? $ = this.curve.pointFromX($.add(this.curve.n), N) : $ = this.curve.pointFromX($, N);
|
|
15554
|
-
var q = _.r.invm(T), V = T.sub(C).mul(q).umod(T),
|
|
15555
|
-
return this.g.mulAdd(V, $,
|
|
15554
|
+
var q = _.r.invm(T), V = T.sub(C).mul(q).umod(T), X = P.mul(q).umod(T);
|
|
15555
|
+
return this.g.mulAdd(V, $, X);
|
|
15556
15556
|
}, b.prototype.getKeyRecoveryParam = function(x, _, A, I) {
|
|
15557
15557
|
if (_ = new s(_, I), _.recoveryParam !== null)
|
|
15558
15558
|
return _.recoveryParam;
|
|
@@ -15638,7 +15638,7 @@ vi.prototype.toBytes = function() {
|
|
|
15638
15638
|
vi.prototype.toHex = function() {
|
|
15639
15639
|
return Ua.encode(this.toBytes(), "hex").toUpperCase();
|
|
15640
15640
|
};
|
|
15641
|
-
var R6 = vi, k6 = Oa, T6 = Da, Ni = Dt, P6 = Ni.assert,
|
|
15641
|
+
var R6 = vi, k6 = Oa, T6 = Da, Ni = Dt, P6 = Ni.assert, Zh = Ni.parseBytes, Xh = M6, e0 = R6;
|
|
15642
15642
|
function kt(t) {
|
|
15643
15643
|
if (P6(t === "ed25519", "only tested with ed25519 so far"), !(this instanceof kt))
|
|
15644
15644
|
return new kt(t);
|
|
@@ -15646,12 +15646,12 @@ function kt(t) {
|
|
|
15646
15646
|
}
|
|
15647
15647
|
var D6 = kt;
|
|
15648
15648
|
kt.prototype.sign = function(e, r) {
|
|
15649
|
-
e =
|
|
15649
|
+
e = Zh(e);
|
|
15650
15650
|
var i = this.keyFromSecret(r), a = this.hashInt(i.messagePrefix(), e), n = this.g.mul(a), o = this.encodePoint(n), s = this.hashInt(o, i.pubBytes(), e).mul(i.priv()), b = a.add(s).umod(this.curve.n);
|
|
15651
15651
|
return this.makeSignature({ R: n, S: b, Rencoded: o });
|
|
15652
15652
|
};
|
|
15653
15653
|
kt.prototype.verify = function(e, r, i) {
|
|
15654
|
-
e =
|
|
15654
|
+
e = Zh(e), r = this.makeSignature(r);
|
|
15655
15655
|
var a = this.keyFromPublic(i), n = this.hashInt(r.Rencoded(), a.pubBytes(), e), o = this.g.mul(r.S()), s = r.R().add(a.pub().mul(n));
|
|
15656
15656
|
return s.eq(o);
|
|
15657
15657
|
};
|
|
@@ -15661,10 +15661,10 @@ kt.prototype.hashInt = function() {
|
|
|
15661
15661
|
return Ni.intFromLE(e.digest()).umod(this.curve.n);
|
|
15662
15662
|
};
|
|
15663
15663
|
kt.prototype.keyFromPublic = function(e) {
|
|
15664
|
-
return
|
|
15664
|
+
return Xh.fromPublic(this, e);
|
|
15665
15665
|
};
|
|
15666
15666
|
kt.prototype.keyFromSecret = function(e) {
|
|
15667
|
-
return
|
|
15667
|
+
return Xh.fromSecret(this, e);
|
|
15668
15668
|
};
|
|
15669
15669
|
kt.prototype.makeSignature = function(e) {
|
|
15670
15670
|
return e instanceof e0 ? e : new e0(this, e);
|
|
@@ -16613,7 +16613,7 @@ function Wo(t) {
|
|
|
16613
16613
|
Go.call(this, t), this.enc = "pem";
|
|
16614
16614
|
}
|
|
16615
16615
|
W6(Wo, Go);
|
|
16616
|
-
var
|
|
16616
|
+
var Z6 = Wo;
|
|
16617
16617
|
Wo.prototype.decode = function(e, r) {
|
|
16618
16618
|
const i = e.toString().split(/[\r\n]+/g), a = r.label.toUpperCase(), n = /^-----(BEGIN|END) ([^-]+)-----$/;
|
|
16619
16619
|
let o = -1, s = -1;
|
|
@@ -16640,7 +16640,7 @@ Wo.prototype.decode = function(e, r) {
|
|
|
16640
16640
|
};
|
|
16641
16641
|
(function(t) {
|
|
16642
16642
|
const e = t;
|
|
16643
|
-
e.der = au, e.pem =
|
|
16643
|
+
e.der = au, e.pem = Z6;
|
|
16644
16644
|
})(Ko);
|
|
16645
16645
|
(function(t) {
|
|
16646
16646
|
const e = Fo, r = Ko, i = Re, a = t;
|
|
@@ -16694,7 +16694,7 @@ var er = $o, n0 = er.define("Time", function() {
|
|
|
16694
16694
|
utcTime: this.utctime(),
|
|
16695
16695
|
generalTime: this.gentime()
|
|
16696
16696
|
});
|
|
16697
|
-
}),
|
|
16697
|
+
}), X6 = er.define("AttributeTypeValue", function() {
|
|
16698
16698
|
this.seq().obj(
|
|
16699
16699
|
this.key("type").objid(),
|
|
16700
16700
|
this.key("value").any()
|
|
@@ -16711,7 +16711,7 @@ var er = $o, n0 = er.define("Time", function() {
|
|
|
16711
16711
|
this.key("subjectPublicKey").bitstr()
|
|
16712
16712
|
);
|
|
16713
16713
|
}), Q6 = er.define("RelativeDistinguishedName", function() {
|
|
16714
|
-
this.setof(
|
|
16714
|
+
this.setof(X6);
|
|
16715
16715
|
}), ey = er.define("RDNSequence", function() {
|
|
16716
16716
|
this.seqof(Q6);
|
|
16717
16717
|
}), a0 = er.define("Name", function() {
|
|
@@ -16963,36 +16963,36 @@ function Ay() {
|
|
|
16963
16963
|
f0 = 1;
|
|
16964
16964
|
var t = Ie.Buffer, e = Nc, r = Do, i = Lo().ec, a = Po, n = qa, o = uu;
|
|
16965
16965
|
function s(P, N, L, q, V) {
|
|
16966
|
-
var
|
|
16967
|
-
if (
|
|
16966
|
+
var X = n(N);
|
|
16967
|
+
if (X.curve) {
|
|
16968
16968
|
if (q !== "ecdsa" && q !== "ecdsa/rsa")
|
|
16969
16969
|
throw new Error("wrong private key type");
|
|
16970
|
-
return b(P,
|
|
16971
|
-
} else if (
|
|
16970
|
+
return b(P, X);
|
|
16971
|
+
} else if (X.type === "dsa") {
|
|
16972
16972
|
if (q !== "dsa")
|
|
16973
16973
|
throw new Error("wrong private key type");
|
|
16974
|
-
return x(P,
|
|
16974
|
+
return x(P, X, L);
|
|
16975
16975
|
} else if (q !== "rsa" && q !== "ecdsa/rsa")
|
|
16976
16976
|
throw new Error("wrong private key type");
|
|
16977
16977
|
P = t.concat([V, P]);
|
|
16978
|
-
for (var ee =
|
|
16978
|
+
for (var ee = X.modulus.byteLength(), ne = [0, 1]; P.length + ne.length + 1 < ee; )
|
|
16979
16979
|
ne.push(255);
|
|
16980
16980
|
ne.push(0);
|
|
16981
16981
|
for (var ie = -1; ++ie < P.length; )
|
|
16982
16982
|
ne.push(P[ie]);
|
|
16983
|
-
var Q = r(ne,
|
|
16983
|
+
var Q = r(ne, X);
|
|
16984
16984
|
return Q;
|
|
16985
16985
|
}
|
|
16986
16986
|
function b(P, N) {
|
|
16987
16987
|
var L = o[N.curve.join(".")];
|
|
16988
16988
|
if (!L)
|
|
16989
16989
|
throw new Error("unknown curve " + N.curve.join("."));
|
|
16990
|
-
var q = new i(L), V = q.keyFromPrivate(N.privateKey),
|
|
16991
|
-
return t.from(
|
|
16990
|
+
var q = new i(L), V = q.keyFromPrivate(N.privateKey), X = V.sign(P);
|
|
16991
|
+
return t.from(X.toDER());
|
|
16992
16992
|
}
|
|
16993
16993
|
function x(P, N, L) {
|
|
16994
|
-
for (var q = N.params.priv_key, V = N.params.p,
|
|
16995
|
-
ie = C(
|
|
16994
|
+
for (var q = N.params.priv_key, V = N.params.p, X = N.params.q, ee = N.params.g, ne = new a(0), ie, Q = I(P, X).mod(X), me = !1, D = A(q, X, P, L); me === !1; )
|
|
16995
|
+
ie = C(X, D, L), ne = $(ee, ie, V, X), me = ie.invm(X).imul(Q.add(q.mul(ne))).mod(X), me.cmpn(0) === 0 && (me = !1, ne = new a(0));
|
|
16996
16996
|
return _(ne, me);
|
|
16997
16997
|
}
|
|
16998
16998
|
function _(P, N) {
|
|
@@ -17005,9 +17005,9 @@ function Ay() {
|
|
|
17005
17005
|
var V = t.alloc(N.byteLength() - P.length);
|
|
17006
17006
|
P = t.concat([V, P]);
|
|
17007
17007
|
}
|
|
17008
|
-
var
|
|
17008
|
+
var X = L.length, ee = T(L, N), ne = t.alloc(X);
|
|
17009
17009
|
ne.fill(1);
|
|
17010
|
-
var ie = t.alloc(
|
|
17010
|
+
var ie = t.alloc(X);
|
|
17011
17011
|
return ie = e(q, ie).update(ne).update(t.from([0])).update(P).update(ee).digest(), ne = e(q, ie).update(ne).digest(), ie = e(q, ie).update(ne).update(t.from([1])).update(P).update(ee).digest(), ne = e(q, ie).update(ne).digest(), { k: ie, v: ne };
|
|
17012
17012
|
}
|
|
17013
17013
|
function I(P, N) {
|
|
@@ -17079,8 +17079,8 @@ function By() {
|
|
|
17079
17079
|
function s(x, _, A) {
|
|
17080
17080
|
var I = A.data.p, T = A.data.q, C = A.data.g, $ = A.data.pub_key, P = i.signature.decode(x, "der"), N = P.s, L = P.r;
|
|
17081
17081
|
b(N, T), b(L, T);
|
|
17082
|
-
var q = e.mont(I), V = N.invm(T),
|
|
17083
|
-
return
|
|
17082
|
+
var q = e.mont(I), V = N.invm(T), X = C.toRed(q).redPow(new e(_).mul(V).mod(T)).fromRed().mul($.toRed(q).redPow(L.mul(V).mod(T)).fromRed()).mod(I).mod(T);
|
|
17083
|
+
return X.cmp(L) === 0;
|
|
17084
17084
|
}
|
|
17085
17085
|
function b(x, _) {
|
|
17086
17086
|
if (x.cmpn(0) <= 0)
|
|
@@ -17235,7 +17235,7 @@ var pu = function(e, r) {
|
|
|
17235
17235
|
function Dy(t, e) {
|
|
17236
17236
|
return Py.from(t.toRed(h0.mont(e.modulus)).redPow(new h0(e.publicExponent)).fromRed().toArray());
|
|
17237
17237
|
}
|
|
17238
|
-
var bu = Dy, Oy = qa, ro = Fi, Cy = Sn, u0 = lu, d0 = pu,
|
|
17238
|
+
var bu = Dy, Oy = qa, ro = Fi, Cy = Sn, u0 = lu, d0 = pu, Zo = pt, Ny = bu, Uy = Do, Wt = Ie.Buffer, Ly = function(e, r, i) {
|
|
17239
17239
|
var a;
|
|
17240
17240
|
e.padding ? a = e.padding : i ? a = 1 : a = 4;
|
|
17241
17241
|
var n = Oy(e), o;
|
|
@@ -17244,7 +17244,7 @@ var bu = Dy, Oy = qa, ro = Fi, Cy = Sn, u0 = lu, d0 = pu, Xo = pt, Ny = bu, Uy =
|
|
|
17244
17244
|
else if (a === 1)
|
|
17245
17245
|
o = Fy(n, r, i);
|
|
17246
17246
|
else if (a === 3) {
|
|
17247
|
-
if (o = new
|
|
17247
|
+
if (o = new Zo(r), o.cmp(n.modulus) >= 0)
|
|
17248
17248
|
throw new Error("data too long for modulus");
|
|
17249
17249
|
} else
|
|
17250
17250
|
throw new Error("unknown padding");
|
|
@@ -17255,14 +17255,14 @@ function $y(t, e) {
|
|
|
17255
17255
|
if (i > r - o - 2)
|
|
17256
17256
|
throw new Error("message too long");
|
|
17257
17257
|
var s = Wt.alloc(r - i - o - 2), b = r - n - 1, x = ro(n), _ = d0(Wt.concat([a, s, Wt.alloc(1, 1), e], b), u0(x, b)), A = d0(x, u0(_, n));
|
|
17258
|
-
return new
|
|
17258
|
+
return new Zo(Wt.concat([Wt.alloc(1), A, _], r));
|
|
17259
17259
|
}
|
|
17260
17260
|
function Fy(t, e, r) {
|
|
17261
17261
|
var i = e.length, a = t.modulus.byteLength();
|
|
17262
17262
|
if (i > a - 11)
|
|
17263
17263
|
throw new Error("message too long");
|
|
17264
17264
|
var n;
|
|
17265
|
-
return r ? n = Wt.alloc(a - i - 3, 255) : n = jy(a - i - 3), new
|
|
17265
|
+
return r ? n = Wt.alloc(a - i - 3, 255) : n = jy(a - i - 3), new Zo(Wt.concat([Wt.from([0, r ? 1 : 2]), n, Wt.alloc(1), e], a));
|
|
17266
17266
|
}
|
|
17267
17267
|
function jy(t) {
|
|
17268
17268
|
for (var e = Wt.allocUnsafe(t), r = 0, i = ro(t * 2), a = 0, n; r < t; )
|
|
@@ -17347,8 +17347,8 @@ function _u(t, e, r) {
|
|
|
17347
17347
|
if (t + e > r || t > mu)
|
|
17348
17348
|
throw new RangeError("buffer too small");
|
|
17349
17349
|
}
|
|
17350
|
-
io && io.getRandomValues || !re.process.browser ? (hn.randomFill =
|
|
17351
|
-
function
|
|
17350
|
+
io && io.getRandomValues || !re.process.browser ? (hn.randomFill = Zy, hn.randomFillSync = Xy) : (hn.randomFill = v0, hn.randomFillSync = v0);
|
|
17351
|
+
function Zy(t, e, r, i) {
|
|
17352
17352
|
if (!yu.isBuffer(t) && !(t instanceof Oe.Uint8Array))
|
|
17353
17353
|
throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
|
|
17354
17354
|
if (typeof e == "function")
|
|
@@ -17381,7 +17381,7 @@ function xu(t, e, r, i) {
|
|
|
17381
17381
|
var o = y0(r);
|
|
17382
17382
|
return o.copy(t, e), t;
|
|
17383
17383
|
}
|
|
17384
|
-
function
|
|
17384
|
+
function Xy(t, e, r) {
|
|
17385
17385
|
if (typeof e > "u" && (e = 0), !yu.isBuffer(t) && !(t instanceof Oe.Uint8Array))
|
|
17386
17386
|
throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
|
|
17387
17387
|
return wu(e, t.length), r === void 0 && (r = t.length - e), _u(r, e, t.length), xu(t, e, r);
|
|
@@ -17520,7 +17520,7 @@ const w0 = "aes-128-ctr", n3 = "pbkdf2", a3 = "hmac-sha256", f3 = 32, o3 = 26214
|
|
|
17520
17520
|
};
|
|
17521
17521
|
var de = /* @__PURE__ */ ((t) => (t.INVALID_INPUT_PARAMETERS = "1000", t.UNKNOWN_PROVIDERS = "1001", t.CANNOT_FIND_INBOUND_ADDRESS = "1002", t.NO_INBOUND_ADDRESSES = "1003", t.CHAIN_HALTED_OR_UNSUPPORTED = "1004", t.MISSING_INPUT_PARAMETER = "1005", t.INVALID_TYPE_GENERIC = "1100", t.INVALID_NUMBER_STRING = "1101", t.INVALID_NUMBER = "1102", t.INVALID_BOOLEAN = "1103", t.INVALID_OBJECT = "1104", t.INVALID_ARRAY = "1105", t.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", t.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", t.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", t.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", t.AFF_ADDRESS_TOO_LONG = "2004", t.AFF_BPS_INTEGER_0_100 = "2005", t.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", t.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", t.PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008", t.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", t.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", t.SOURCE_ADDRESS_SMART_CONTRACT = "2011", t.INVALID_PROVIDER = "2100", t.MISSING_CROSS_CHAIN_PROVIDER = "2101", t.MISSING_AVAX_PROVIDER = "2102", t.MISSING_BSC_PROVIDER = "2103", t.MISSING_ETH_PROVIDER = "2104", t.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", t.MISSING_ARB_PROVIDER = "2106", t.INVALID_CHAIN = "2200", t.INVALID_ASSET = "2201", t.INVALID_ASSET_IDENTIFIER = "2202", t.UNSUPPORTED_CHAIN = "2204", t.UNSUPPORTED_ASSET = "2203", t.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", t.INVALID_SOURCE_ADDRESS = "2300", t.INVALID_DESTINATION_ADDRESS = "2301", t.THORNODE_QUOTE_GENERIC_ERROR = "3000", t.NOT_ENOUGH_SYNTH_BALANCE = "3001", t.SYNTH_MINTING_CAP_REACHED = "3002", t.INVALID_QUOTE_MODE = "4000", t.NO_QUOTES = "4001", t.SERVICE_UNAVAILABLE_GENERIC = "5000", t.MISSING_GAS_DATA_GENERIC = "5100", t.MISSING_TOKEN_INFO_GENERIC = "5200", t.CANT_FIND_TOKEN_LIST = "5201", t.NO_PRICE = "5202", t.PRICE_IS_STALE = "5203", t.ADDRESS_NOT_WHITELISTED = "6000", t.ADDRESS_ALREADY_CLAIMED = "6001", t.TEMPORARY_ERROR = "9999", t))(de || {});
|
|
17522
17522
|
de.INVALID_INPUT_PARAMETERS + "", de.UNKNOWN_PROVIDERS + "", de.CANNOT_FIND_INBOUND_ADDRESS + "", de.NO_INBOUND_ADDRESSES + "", de.CHAIN_HALTED_OR_UNSUPPORTED + "", de.MISSING_INPUT_PARAMETER + "", de.INVALID_TYPE_GENERIC + "", de.INVALID_NUMBER_STRING + "", de.INVALID_NUMBER + "", de.INVALID_BOOLEAN + "", de.INVALID_OBJECT + "", de.INVALID_ARRAY + "", de.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", de.SELL_BUY_ASSETS_ARE_THE_SAME + "", de.MISSING_SOURCE_ADDRESS_FOR_SYNTH + "", de.AFF_ADDRESS_AND_BPS_OR_NEITHER + "", de.AFF_ADDRESS_TOO_LONG + "", de.AFF_BPS_INTEGER_0_100 + "", de.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN + "", de.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN + "", de.PREFERRED_PROFVIDER_NOT_SUPPORTED + "", de.DESTINATION_ADDRESS_SMART_CONTRACT + "", de.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", de.INVALID_PROVIDER + "", de.MISSING_CROSS_CHAIN_PROVIDER + "", de.MISSING_AVAX_PROVIDER + "", de.MISSING_BSC_PROVIDER + "", de.MISSING_ETH_PROVIDER + "", de.MISSING_ARB_PROVIDER + "", de.INVALID_PROVIDER_FOR_SWAP_OUT + "", de.INVALID_CHAIN + "", de.INVALID_ASSET + "", de.UNSUPPORTED_CHAIN + "", de.UNSUPPORTED_ASSET + "", de.UNSUPPORTED_ASSET_FOR_SWAPOUT + "", de.THORNODE_QUOTE_GENERIC_ERROR + "", de.INVALID_SOURCE_ADDRESS + "", de.INVALID_DESTINATION_ADDRESS + "", de.NOT_ENOUGH_SYNTH_BALANCE + "", de.SYNTH_MINTING_CAP_REACHED + "", de.INVALID_QUOTE_MODE + "", de.NO_QUOTES + "", de.SERVICE_UNAVAILABLE_GENERIC + "", de.MISSING_GAS_DATA_GENERIC + "", de.MISSING_TOKEN_INFO_GENERIC + "", de.CANT_FIND_TOKEN_LIST + "", de.NO_PRICE + "", de.PRICE_IS_STALE + "", de.ADDRESS_NOT_WHITELISTED + "", de.ADDRESS_ALREADY_CLAIMED + "";
|
|
17523
|
-
var at = /* @__PURE__ */ ((t) => (t.Arbitrum = "ARB", t.Avalanche = "AVAX", t.Binance = "BNB", t.BinanceSmartChain = "BSC", t.Bitcoin = "BTC", t.BitcoinCash = "BCH", t.Cosmos = "GAIA", t.Dogecoin = "DOGE", t.Ethereum = "ETH", t.Kujira = "KUJI", t.Litecoin = "LTC", t.Maya = "MAYA", t.Optimism = "OP", t.Polygon = "MATIC", t.THORChain = "THOR", t))(at || {}), Bu = /* @__PURE__ */ ((t) => (t.ARB = "m/44'/60'/0'/0", t.AVAX = "m/44'/60'/0'/0", t.BCH = "m/44'/145'/0'/0", t.BNB = "m/44'/714'/0'/0", t.BSC = "m/44'/60'/0'/0", t.BTC = "m/84'/0'/0'/0", t.DOGE = "m/44'/3'/0'/0", t.ETH = "m/44'/60'/0'/0", t.GAIA = "m/44'/118'/0'/0", t.KUJI = "m/44'/118'/0'/0", t.LTC = "m/84'/2'/0'/0", t.MATIC = "m/44'/60'/0'/0", t.MAYA = "m/44'/931'/0'/0", t.OP = "m/44'/60'/0'/0", t.THOR = "m/44'/931'/0'/0", t))(Bu || {}),
|
|
17523
|
+
var at = /* @__PURE__ */ ((t) => (t.Arbitrum = "ARB", t.Avalanche = "AVAX", t.Binance = "BNB", t.BinanceSmartChain = "BSC", t.Bitcoin = "BTC", t.BitcoinCash = "BCH", t.Cosmos = "GAIA", t.Dogecoin = "DOGE", t.Ethereum = "ETH", t.Kujira = "KUJI", t.Litecoin = "LTC", t.Maya = "MAYA", t.Optimism = "OP", t.Polygon = "MATIC", t.THORChain = "THOR", t))(at || {}), Bu = /* @__PURE__ */ ((t) => (t.ARB = "m/44'/60'/0'/0", t.AVAX = "m/44'/60'/0'/0", t.BCH = "m/44'/145'/0'/0", t.BNB = "m/44'/714'/0'/0", t.BSC = "m/44'/60'/0'/0", t.BTC = "m/84'/0'/0'/0", t.DOGE = "m/44'/3'/0'/0", t.ETH = "m/44'/60'/0'/0", t.GAIA = "m/44'/118'/0'/0", t.KUJI = "m/44'/118'/0'/0", t.LTC = "m/84'/2'/0'/0", t.MATIC = "m/44'/60'/0'/0", t.MAYA = "m/44'/931'/0'/0", t.OP = "m/44'/60'/0'/0", t.THOR = "m/44'/931'/0'/0", t))(Bu || {}), Xo = /* @__PURE__ */ ((t) => (t.Arbitrum = "42161", t.ArbitrumHex = "0xa4b1", t.Avalanche = "43114", t.AvalancheHex = "0xa86a", t.Binance = "Binance-Chain-Tigris", t.BinanceSmartChain = "56", t.BinanceSmartChainHex = "0x38", t.Bitcoin = "bitcoin", t.BitcoinCash = "bitcoincash", t.Cosmos = "cosmoshub-4", t.Dogecoin = "dogecoin", t.Kujira = "kaiyo-1", t.Ethereum = "1", t.EthereumHex = "0x1", t.Litecoin = "litecoin", t.Maya = "mayachain-mainnet-v1", t.MayaStagenet = "mayachain-stagenet-v1", t.Optimism = "10", t.OptimismHex = "0xa", t.Polygon = "137", t.PolygonHex = "0x89", t.THORChain = "thorchain-mainnet-v1", t.THORChainStagenet = "thorchain-stagenet-v2", t))(Xo || {}), Iu = /* @__PURE__ */ ((t) => (t.Arbitrum = "https://arb1.arbitrum.io/rpc", t.Avalanche = "https://node-router.thorswap.net/avalanche-c", t.Binance = "", t.BinanceSmartChain = "https://bsc-dataseed.binance.org", t.Bitcoin = "https://node-router.thorswap.net/bitcoin", t.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", t.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", t.Kujira = "https://rpc-kujira.synergynodes.com/", t.Dogecoin = "https://node-router.thorswap.net/dogecoin", t.Ethereum = "https://node-router.thorswap.net/ethereum", t.Litecoin = "https://node-router.thorswap.net/litecoin", t.Maya = "https://tendermint.mayachain.info", t.MayaStagenet = "https://stagenet.tendermint.mayachain.info", t.Optimism = "https://mainnet.optimism.io", t.Polygon = "https://polygon-rpc.com", t.THORChain = "https://rpc.thorswap.net", t.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", t))(Iu || {});
|
|
17524
17524
|
const Ha = Object.values(at), d3 = Object.keys(at), Jo = Ha.reduce(
|
|
17525
17525
|
(t, e) => {
|
|
17526
17526
|
const r = d3.find((i) => at[i] === e);
|
|
@@ -17529,7 +17529,7 @@ const Ha = Object.values(at), d3 = Object.keys(at), Jo = Ha.reduce(
|
|
|
17529
17529
|
{}
|
|
17530
17530
|
);
|
|
17531
17531
|
Ha.reduce(
|
|
17532
|
-
(t, e) => (t[e] =
|
|
17532
|
+
(t, e) => (t[e] = Xo[Jo[e]], t),
|
|
17533
17533
|
{}
|
|
17534
17534
|
);
|
|
17535
17535
|
Ha.reduce(
|
|
@@ -17539,7 +17539,7 @@ Ha.reduce(
|
|
|
17539
17539
|
Ha.reduce(
|
|
17540
17540
|
(t, e) => {
|
|
17541
17541
|
const r = `${Jo[e]}Hex`;
|
|
17542
|
-
return t[e] =
|
|
17542
|
+
return t[e] = Xo[r], t;
|
|
17543
17543
|
},
|
|
17544
17544
|
{}
|
|
17545
17545
|
);
|
|
@@ -17551,7 +17551,7 @@ const l3 = async ({
|
|
|
17551
17551
|
phrase: i,
|
|
17552
17552
|
ethplorerApiKey: a,
|
|
17553
17553
|
covalentApiKey: n,
|
|
17554
|
-
|
|
17554
|
+
blockchairApiKey: o,
|
|
17555
17555
|
index: s,
|
|
17556
17556
|
stagenet: b
|
|
17557
17557
|
}) => {
|
|
@@ -17574,8 +17574,6 @@ const l3 = async ({
|
|
|
17574
17574
|
};
|
|
17575
17575
|
}
|
|
17576
17576
|
case at.BitcoinCash: {
|
|
17577
|
-
if (!o)
|
|
17578
|
-
throw new Error("UTXO API key not found");
|
|
17579
17577
|
const { BCHToolbox: _ } = await import("@swapkit/toolbox-utxo"), A = _({ rpcUrl: e, apiKey: o, apiClient: t }), I = await A.createKeysForPath({ phrase: i, derivationPath: x }), T = A.getAddressFromKeys(I), C = async ({
|
|
17580
17578
|
builder: P,
|
|
17581
17579
|
utxos: N
|
|
@@ -17658,27 +17656,27 @@ const l3 = async ({
|
|
|
17658
17656
|
addChain: t,
|
|
17659
17657
|
apis: e,
|
|
17660
17658
|
rpcUrls: r,
|
|
17661
|
-
config: { covalentApiKey: i, ethplorerApiKey: a,
|
|
17662
|
-
}) => async (
|
|
17663
|
-
const
|
|
17664
|
-
const { address:
|
|
17665
|
-
index:
|
|
17666
|
-
chain:
|
|
17667
|
-
api: e[
|
|
17668
|
-
rpcUrl: r[
|
|
17659
|
+
config: { covalentApiKey: i, ethplorerApiKey: a, blockchairApiKey: n, utxoApiKey: o, stagenet: s }
|
|
17660
|
+
}) => async (b, x, _ = 0) => {
|
|
17661
|
+
const A = b.map(async (I) => {
|
|
17662
|
+
const { address: T, walletMethods: C } = await l3({
|
|
17663
|
+
index: _,
|
|
17664
|
+
chain: I,
|
|
17665
|
+
api: e[I],
|
|
17666
|
+
rpcUrl: r[I],
|
|
17669
17667
|
covalentApiKey: i,
|
|
17670
17668
|
ethplorerApiKey: a,
|
|
17671
|
-
phrase:
|
|
17672
|
-
|
|
17673
|
-
stagenet:
|
|
17669
|
+
phrase: x,
|
|
17670
|
+
blockchairApiKey: n || o,
|
|
17671
|
+
stagenet: s
|
|
17674
17672
|
});
|
|
17675
17673
|
t({
|
|
17676
|
-
chain:
|
|
17677
|
-
walletMethods:
|
|
17678
|
-
wallet: { address:
|
|
17674
|
+
chain: I,
|
|
17675
|
+
walletMethods: C,
|
|
17676
|
+
wallet: { address: T, balance: [], walletType: Ru.KEYSTORE }
|
|
17679
17677
|
});
|
|
17680
17678
|
});
|
|
17681
|
-
return await Promise.all(
|
|
17679
|
+
return await Promise.all(A), !0;
|
|
17682
17680
|
}, w3 = {
|
|
17683
17681
|
connectMethodName: "connectKeystore",
|
|
17684
17682
|
connect: p3
|