@gardenfi/core 0.2.0-beta.99 → 0.3.0-beta.2
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 +5 -5
- package/dist/index.js +194 -197
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +0 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -144,7 +144,7 @@ function oo(e, { dir: t, size: r = 32 } = {}) {
|
|
|
144
144
|
}
|
|
145
145
|
const ao = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
146
146
|
function W(e, t = {}) {
|
|
147
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
147
|
+
return typeof e == "number" || typeof e == "bigint" ? Ci(e, t) : typeof e == "string" ? co(e, t) : typeof e == "boolean" ? fo(e, t) : Qe(e, t);
|
|
148
148
|
}
|
|
149
149
|
function fo(e, t = {}) {
|
|
150
150
|
const r = `0x${Number(e)}`;
|
|
@@ -157,7 +157,7 @@ function Qe(e, t = {}) {
|
|
|
157
157
|
const n = `0x${r}`;
|
|
158
158
|
return typeof t.size == "number" ? (Tt(n, { size: t.size }), Rt(n, { dir: "right", size: t.size })) : n;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Ci(e, t = {}) {
|
|
161
161
|
const { signed: r, size: n } = t, i = BigInt(e);
|
|
162
162
|
let a;
|
|
163
163
|
n ? r ? a = (1n << BigInt(n) * 8n - 1n) - 1n : a = 2n ** (BigInt(n) * 8n) - 1n : typeof e == "number" && (a = BigInt(Number.MAX_SAFE_INTEGER));
|
|
@@ -181,7 +181,7 @@ function co(e, t = {}) {
|
|
|
181
181
|
return Qe(r, t);
|
|
182
182
|
}
|
|
183
183
|
const lo = /* @__PURE__ */ new TextEncoder();
|
|
184
|
-
function
|
|
184
|
+
function ki(e, t = {}) {
|
|
185
185
|
return typeof e == "number" || typeof e == "bigint" ? po(e, t) : typeof e == "boolean" ? ho(e, t) : Kt(e) ? at(e, t) : Li(e, t);
|
|
186
186
|
}
|
|
187
187
|
function ho(e, t = {}) {
|
|
@@ -219,7 +219,7 @@ function at(e, t = {}) {
|
|
|
219
219
|
return a;
|
|
220
220
|
}
|
|
221
221
|
function po(e, t) {
|
|
222
|
-
const r =
|
|
222
|
+
const r = Ci(e, t);
|
|
223
223
|
return at(r);
|
|
224
224
|
}
|
|
225
225
|
function Li(e, t = {}) {
|
|
@@ -571,14 +571,14 @@ function Po(e) {
|
|
|
571
571
|
return t.map(([n, i]) => ` ${`${n}:`.padEnd(r + 1)} ${i}`).join(`
|
|
572
572
|
`);
|
|
573
573
|
}
|
|
574
|
-
class
|
|
574
|
+
class Co extends X {
|
|
575
575
|
constructor({ v: t }) {
|
|
576
576
|
super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
|
|
577
577
|
name: "InvalidLegacyVError"
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
class
|
|
581
|
+
class ko extends X {
|
|
582
582
|
constructor({ transaction: t }) {
|
|
583
583
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
584
584
|
metaMessages: [
|
|
@@ -834,7 +834,7 @@ class Go extends Ho {
|
|
|
834
834
|
}
|
|
835
835
|
const jo = /* @__PURE__ */ zi(() => new Go());
|
|
836
836
|
function Wo(e, t) {
|
|
837
|
-
return jo(Kt(e, { strict: !1 }) ?
|
|
837
|
+
return jo(Kt(e, { strict: !1 }) ? ki(e) : e);
|
|
838
838
|
}
|
|
839
839
|
function qo(e) {
|
|
840
840
|
const { commitment: t, version: r = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), i = Wo(t);
|
|
@@ -1116,7 +1116,7 @@ class En extends Hi {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
const pa = (e, t, r) => zi(() => new En(t, e, r)), ba = /* @__PURE__ */ pa(1, 136, 256 / 8);
|
|
1118
1118
|
function ya(e, t) {
|
|
1119
|
-
return ba(Kt(e, { strict: !1 }) ?
|
|
1119
|
+
return ba(Kt(e, { strict: !1 }) ? ki(e) : e);
|
|
1120
1120
|
}
|
|
1121
1121
|
const $r = /* @__PURE__ */ new Ki(8192);
|
|
1122
1122
|
function ga(e, t) {
|
|
@@ -1233,7 +1233,7 @@ function Aa(e) {
|
|
|
1233
1233
|
return "eip1559";
|
|
1234
1234
|
if (typeof e.gasPrice < "u")
|
|
1235
1235
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
1236
|
-
throw new
|
|
1236
|
+
throw new ko({ transaction: e });
|
|
1237
1237
|
}
|
|
1238
1238
|
function Ar(e) {
|
|
1239
1239
|
if (!e || e.length === 0)
|
|
@@ -1252,7 +1252,7 @@ function Ar(e) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
function Ia(e, t) {
|
|
1254
1254
|
const r = Aa(e);
|
|
1255
|
-
return r === "eip1559" ? Pa(e, t) : r === "eip2930" ?
|
|
1255
|
+
return r === "eip1559" ? Pa(e, t) : r === "eip2930" ? Ca(e, t) : r === "eip4844" ? Ta(e, t) : r === "eip7702" ? Ra(e, t) : ka(e, t);
|
|
1256
1256
|
}
|
|
1257
1257
|
function Ra(e, t) {
|
|
1258
1258
|
const { authorizationList: r, chainId: n, gas: i, nonce: a, to: f, value: u, maxFeePerGas: l, maxPriorityFeePerGas: b, accessList: m, data: g } = e;
|
|
@@ -1280,14 +1280,14 @@ function Ta(e, t) {
|
|
|
1280
1280
|
Ea(e);
|
|
1281
1281
|
let v = e.blobVersionedHashes, A = e.sidecars;
|
|
1282
1282
|
if (e.blobs && (typeof v > "u" || typeof A > "u")) {
|
|
1283
|
-
const L = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((S) => Qe(S)),
|
|
1283
|
+
const L = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((S) => Qe(S)), k = e.kzg, O = Mi({
|
|
1284
1284
|
blobs: L,
|
|
1285
|
-
kzg:
|
|
1285
|
+
kzg: k
|
|
1286
1286
|
});
|
|
1287
1287
|
if (typeof v > "u" && (v = Vo({
|
|
1288
1288
|
commitments: O
|
|
1289
1289
|
})), typeof A > "u") {
|
|
1290
|
-
const S = Di({ blobs: L, commitments: O, kzg:
|
|
1290
|
+
const S = Di({ blobs: L, commitments: O, kzg: k });
|
|
1291
1291
|
A = Qo({ blobs: L, commitments: O, proofs: S });
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
@@ -1304,16 +1304,16 @@ function Ta(e, t) {
|
|
|
1304
1304
|
u ? W(u) : "0x",
|
|
1305
1305
|
v ?? [],
|
|
1306
1306
|
...Jt(e, t)
|
|
1307
|
-
], T = [],
|
|
1307
|
+
], T = [], C = [], F = [];
|
|
1308
1308
|
if (A)
|
|
1309
1309
|
for (let L = 0; L < A.length; L++) {
|
|
1310
|
-
const { blob:
|
|
1311
|
-
T.push(
|
|
1310
|
+
const { blob: k, commitment: O, proof: S } = A[L];
|
|
1311
|
+
T.push(k), C.push(O), F.push(S);
|
|
1312
1312
|
}
|
|
1313
1313
|
return Yt([
|
|
1314
1314
|
"0x03",
|
|
1315
1315
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
1316
|
-
ft(A ? [P, T,
|
|
1316
|
+
ft(A ? [P, T, C, F] : P)
|
|
1317
1317
|
]);
|
|
1318
1318
|
}
|
|
1319
1319
|
function Pa(e, t) {
|
|
@@ -1336,7 +1336,7 @@ function Pa(e, t) {
|
|
|
1336
1336
|
ft(v)
|
|
1337
1337
|
]);
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function Ca(e, t) {
|
|
1340
1340
|
const { chainId: r, gas: n, data: i, nonce: a, to: f, value: u, accessList: l, gasPrice: b } = e;
|
|
1341
1341
|
Ba(e);
|
|
1342
1342
|
const m = Ar(l), g = [
|
|
@@ -1355,7 +1355,7 @@ function ka(e, t) {
|
|
|
1355
1355
|
ft(g)
|
|
1356
1356
|
]);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function ka(e, t) {
|
|
1359
1359
|
const { chainId: r = 0, gas: n, data: i, nonce: a, to: f, value: u, gasPrice: l } = e;
|
|
1360
1360
|
Sa(e);
|
|
1361
1361
|
let b = [
|
|
@@ -1374,7 +1374,7 @@ function Ca(e, t) {
|
|
|
1374
1374
|
return BigInt(r * 2) + BigInt(35n + t.v - 27n);
|
|
1375
1375
|
const A = 27n + (t.v === 27n ? 0n : 1n);
|
|
1376
1376
|
if (t.v !== A)
|
|
1377
|
-
throw new
|
|
1377
|
+
throw new Co({ v: t.v });
|
|
1378
1378
|
return A;
|
|
1379
1379
|
})(), g = dr(t.r), v = dr(t.s);
|
|
1380
1380
|
b = [
|
|
@@ -1806,7 +1806,6 @@ function El(e, t) {
|
|
|
1806
1806
|
return !1;
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
|
-
const Bl = () => (console.log("React Hooks"), "React Hooks");
|
|
1810
1809
|
var te = /* @__PURE__ */ ((e) => (e.Created = "Created", e.Matched = "Matched", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.CounterPartyInitiateDetected = "CounterPartyInitiateDetected", e.CounterPartyInitiated = "CounterPartyInitiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.CounterPartyRedeemDetected = "CounterPartyRedeemDetected", e.CounterPartyRedeemed = "CounterPartyRedeemed", e.Completed = "Completed", e.CounterPartySwapExpired = "CounterPartySwapExpired", e.Expired = "Expired", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.CounterPartyRefundDetected = "CounterPartyRefundDetected", e.CounterPartyRefunded = "CounterPartyRefunded", e.Cancelled = "Cancelled", e.DeadLineExceeded = "DeadLineExceeded", e))(te || {}), re = /* @__PURE__ */ ((e) => (e.Idle = "Idle", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.Expired = "Expired", e))(re || {});
|
|
1811
1810
|
const Zi = (e, t, r) => {
|
|
1812
1811
|
const n = Jn(
|
|
@@ -1843,7 +1842,7 @@ const Zi = (e, t, r) => {
|
|
|
1843
1842
|
if (t > r) return re.Expired;
|
|
1844
1843
|
}
|
|
1845
1844
|
return e.initiate_tx_hash ? Number(e.initiate_block_number) ? re.Initiated : re.InitiateDetected : re.Idle;
|
|
1846
|
-
},
|
|
1845
|
+
}, Bl = (e, t, r) => {
|
|
1847
1846
|
const n = Zi(
|
|
1848
1847
|
e,
|
|
1849
1848
|
t,
|
|
@@ -2781,7 +2780,7 @@ class cf {
|
|
|
2781
2780
|
delete this.cache[`${r}_${t.create_order.create_id}`];
|
|
2782
2781
|
}
|
|
2783
2782
|
}
|
|
2784
|
-
class
|
|
2783
|
+
class Sl {
|
|
2785
2784
|
constructor(t) {
|
|
2786
2785
|
if (this.eventListeners = /* @__PURE__ */ new Map(), this.getOrderThreshold = 20, this.useRelay = !0, this.orderBook = new Ys({
|
|
2787
2786
|
url: t.orderbookURl,
|
|
@@ -2795,7 +2794,6 @@ class Al {
|
|
|
2795
2794
|
this.useRelay = t;
|
|
2796
2795
|
}
|
|
2797
2796
|
async swap(t) {
|
|
2798
|
-
console.log("swap params :", t);
|
|
2799
2797
|
const r = await this.validateAndFillParams(t);
|
|
2800
2798
|
if (r.error) return N(r.error);
|
|
2801
2799
|
const { sendAddress: n, receiveAddress: i, timelock: a } = r.val;
|
|
@@ -2862,7 +2860,7 @@ class Al {
|
|
|
2862
2860
|
if (i < a)
|
|
2863
2861
|
return N("Send amount should be greater than receive amount");
|
|
2864
2862
|
const f = Js(t.fromAsset.chain);
|
|
2865
|
-
return
|
|
2863
|
+
return f ? ue({
|
|
2866
2864
|
sendAddress: r.val,
|
|
2867
2865
|
receiveAddress: n.val,
|
|
2868
2866
|
timelock: t.timelock ?? f
|
|
@@ -3176,7 +3174,7 @@ class Al {
|
|
|
3176
3174
|
return n;
|
|
3177
3175
|
}
|
|
3178
3176
|
}
|
|
3179
|
-
class
|
|
3177
|
+
class Al {
|
|
3180
3178
|
constructor(t, r) {
|
|
3181
3179
|
this.url = new yn("/blocknumber/" + r, t);
|
|
3182
3180
|
}
|
|
@@ -3380,7 +3378,7 @@ function gf() {
|
|
|
3380
3378
|
function T(S) {
|
|
3381
3379
|
return (S & 255) === S;
|
|
3382
3380
|
}
|
|
3383
|
-
function
|
|
3381
|
+
function C(S) {
|
|
3384
3382
|
return (S & 65535) === S;
|
|
3385
3383
|
}
|
|
3386
3384
|
function F(S) {
|
|
@@ -3389,7 +3387,7 @@ function gf() {
|
|
|
3389
3387
|
function L(S) {
|
|
3390
3388
|
return typeof S == "number" && S >= 0 && S <= m && Math.floor(S) === S;
|
|
3391
3389
|
}
|
|
3392
|
-
var
|
|
3390
|
+
var k = {
|
|
3393
3391
|
ArrayN: a,
|
|
3394
3392
|
Buffer: r,
|
|
3395
3393
|
BufferN: f,
|
|
@@ -3403,15 +3401,15 @@ function gf() {
|
|
|
3403
3401
|
Range: b,
|
|
3404
3402
|
StringN: l,
|
|
3405
3403
|
UInt8: T,
|
|
3406
|
-
UInt16:
|
|
3404
|
+
UInt16: C,
|
|
3407
3405
|
UInt32: F,
|
|
3408
3406
|
UInt53: L
|
|
3409
3407
|
};
|
|
3410
|
-
for (var O in
|
|
3411
|
-
|
|
3408
|
+
for (var O in k)
|
|
3409
|
+
k[O].toJSON = (function(S) {
|
|
3412
3410
|
return S;
|
|
3413
3411
|
}).bind(null, O);
|
|
3414
|
-
return Gr =
|
|
3412
|
+
return Gr = k, Gr;
|
|
3415
3413
|
}
|
|
3416
3414
|
var Xt = ss, he = Sn, Me = Xt.tfJSON, os = Xt.TfTypeError, as = Xt.TfPropertyTypeError, Dt = Xt.tfSubError, mf = Xt.getValueTypeName, De = {
|
|
3417
3415
|
arrayOf: function(t, r) {
|
|
@@ -3767,7 +3765,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
3767
3765
|
return m(c, s, o);
|
|
3768
3766
|
};
|
|
3769
3767
|
function g(c) {
|
|
3770
|
-
return b(c), f(c < 0 ? 0 :
|
|
3768
|
+
return b(c), f(c < 0 ? 0 : C(c) | 0);
|
|
3771
3769
|
}
|
|
3772
3770
|
u.allocUnsafe = function(c) {
|
|
3773
3771
|
return g(c);
|
|
@@ -3783,7 +3781,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
3783
3781
|
return y !== o && (h = h.slice(0, y)), h;
|
|
3784
3782
|
}
|
|
3785
3783
|
function A(c) {
|
|
3786
|
-
const s = c.length < 0 ? 0 :
|
|
3784
|
+
const s = c.length < 0 ? 0 : C(c.length) | 0, o = f(s);
|
|
3787
3785
|
for (let h = 0; h < s; h += 1)
|
|
3788
3786
|
o[h] = c[h] & 255;
|
|
3789
3787
|
return o;
|
|
@@ -3805,7 +3803,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
3805
3803
|
}
|
|
3806
3804
|
function T(c) {
|
|
3807
3805
|
if (u.isBuffer(c)) {
|
|
3808
|
-
const s =
|
|
3806
|
+
const s = C(c.length) | 0, o = f(s);
|
|
3809
3807
|
return o.length === 0 || c.copy(o, 0, 0, s), o;
|
|
3810
3808
|
}
|
|
3811
3809
|
if (c.length !== void 0)
|
|
@@ -3813,7 +3811,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
3813
3811
|
if (c.type === "Buffer" && Array.isArray(c.data))
|
|
3814
3812
|
return A(c.data);
|
|
3815
3813
|
}
|
|
3816
|
-
function
|
|
3814
|
+
function C(c) {
|
|
3817
3815
|
if (c >= i)
|
|
3818
3816
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + i.toString(16) + " bytes");
|
|
3819
3817
|
return c | 0;
|
|
@@ -3909,7 +3907,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
3909
3907
|
case "hex":
|
|
3910
3908
|
return o >>> 1;
|
|
3911
3909
|
case "base64":
|
|
3912
|
-
return
|
|
3910
|
+
return kt(c).length;
|
|
3913
3911
|
default:
|
|
3914
3912
|
if (y)
|
|
3915
3913
|
return h ? -1 : V(c).length;
|
|
@@ -3917,14 +3915,14 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
3917
3915
|
}
|
|
3918
3916
|
}
|
|
3919
3917
|
u.byteLength = L;
|
|
3920
|
-
function
|
|
3918
|
+
function k(c, s, o) {
|
|
3921
3919
|
let h = !1;
|
|
3922
3920
|
if ((s === void 0 || s < 0) && (s = 0), s > this.length || ((o === void 0 || o > this.length) && (o = this.length), o <= 0) || (o >>>= 0, s >>>= 0, o <= s))
|
|
3923
3921
|
return "";
|
|
3924
3922
|
for (c || (c = "utf8"); ; )
|
|
3925
3923
|
switch (c) {
|
|
3926
3924
|
case "hex":
|
|
3927
|
-
return
|
|
3925
|
+
return Ce(this, s, o);
|
|
3928
3926
|
case "utf8":
|
|
3929
3927
|
case "utf-8":
|
|
3930
3928
|
return ve(this, s, o);
|
|
@@ -3973,7 +3971,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
3973
3971
|
return this;
|
|
3974
3972
|
}, u.prototype.toString = function() {
|
|
3975
3973
|
const s = this.length;
|
|
3976
|
-
return s === 0 ? "" : arguments.length === 0 ? ve(this, 0, s) :
|
|
3974
|
+
return s === 0 ? "" : arguments.length === 0 ? ve(this, 0, s) : k.apply(this, arguments);
|
|
3977
3975
|
}, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(s) {
|
|
3978
3976
|
if (!u.isBuffer(s)) throw new TypeError("Argument must be a Buffer");
|
|
3979
3977
|
return this === s ? !0 : u.compare(this, s) === 0;
|
|
@@ -4076,7 +4074,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
4076
4074
|
return yt(qe(s), c, o, h);
|
|
4077
4075
|
}
|
|
4078
4076
|
function Te(c, s, o, h) {
|
|
4079
|
-
return yt(
|
|
4077
|
+
return yt(kt(s), c, o, h);
|
|
4080
4078
|
}
|
|
4081
4079
|
function ze(c, s, o, h) {
|
|
4082
4080
|
return yt(bt(s, c.length - o), c, o, h);
|
|
@@ -4182,7 +4180,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
4182
4180
|
h += String.fromCharCode(c[y]);
|
|
4183
4181
|
return h;
|
|
4184
4182
|
}
|
|
4185
|
-
function
|
|
4183
|
+
function Ce(c, s, o) {
|
|
4186
4184
|
const h = c.length;
|
|
4187
4185
|
(!s || s < 0) && (s = 0), (!o || o < 0 || o > h) && (o = h);
|
|
4188
4186
|
let y = "";
|
|
@@ -4585,7 +4583,7 @@ Rn.write = function(e, t, r, n, i, a) {
|
|
|
4585
4583
|
o = c.charCodeAt(E), h = o >> 8, y = o % 256, x.push(y), x.push(h);
|
|
4586
4584
|
return x;
|
|
4587
4585
|
}
|
|
4588
|
-
function
|
|
4586
|
+
function kt(c) {
|
|
4589
4587
|
return t.toByteArray(j(c));
|
|
4590
4588
|
}
|
|
4591
4589
|
function yt(c, s, o, h) {
|
|
@@ -4652,8 +4650,8 @@ function Tf() {
|
|
|
4652
4650
|
Use Chrome, Firefox or Internet Explorer 11`);
|
|
4653
4651
|
}
|
|
4654
4652
|
var Pf = xe.Buffer, wr = Xe.crypto || Xe.msCrypto;
|
|
4655
|
-
wr && wr.getRandomValues ? an.exports =
|
|
4656
|
-
function
|
|
4653
|
+
wr && wr.getRandomValues ? an.exports = Cf : an.exports = Tf;
|
|
4654
|
+
function Cf(e, t) {
|
|
4657
4655
|
if (e > Rf) throw new RangeError("requested too many random bytes");
|
|
4658
4656
|
var r = Pf.allocUnsafe(e);
|
|
4659
4657
|
if (e > 0)
|
|
@@ -4666,7 +4664,7 @@ function kf(e, t) {
|
|
|
4666
4664
|
t(null, r);
|
|
4667
4665
|
}) : r;
|
|
4668
4666
|
}
|
|
4669
|
-
var
|
|
4667
|
+
var kf = an.exports, un = { exports: {} };
|
|
4670
4668
|
typeof Object.create == "function" ? un.exports = function(t, r) {
|
|
4671
4669
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
4672
4670
|
constructor: {
|
|
@@ -4919,20 +4917,20 @@ function Hf() {
|
|
|
4919
4917
|
function e(B, P) {
|
|
4920
4918
|
var T = Object.keys(B);
|
|
4921
4919
|
if (Object.getOwnPropertySymbols) {
|
|
4922
|
-
var
|
|
4923
|
-
P && (
|
|
4920
|
+
var C = Object.getOwnPropertySymbols(B);
|
|
4921
|
+
P && (C = C.filter(function(F) {
|
|
4924
4922
|
return Object.getOwnPropertyDescriptor(B, F).enumerable;
|
|
4925
|
-
})), T.push.apply(T,
|
|
4923
|
+
})), T.push.apply(T, C);
|
|
4926
4924
|
}
|
|
4927
4925
|
return T;
|
|
4928
4926
|
}
|
|
4929
4927
|
function t(B) {
|
|
4930
4928
|
for (var P = 1; P < arguments.length; P++) {
|
|
4931
4929
|
var T = arguments[P] != null ? arguments[P] : {};
|
|
4932
|
-
P % 2 ? e(Object(T), !0).forEach(function(
|
|
4933
|
-
r(B,
|
|
4934
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(B, Object.getOwnPropertyDescriptors(T)) : e(Object(T)).forEach(function(
|
|
4935
|
-
Object.defineProperty(B,
|
|
4930
|
+
P % 2 ? e(Object(T), !0).forEach(function(C) {
|
|
4931
|
+
r(B, C, T[C]);
|
|
4932
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(B, Object.getOwnPropertyDescriptors(T)) : e(Object(T)).forEach(function(C) {
|
|
4933
|
+
Object.defineProperty(B, C, Object.getOwnPropertyDescriptor(T, C));
|
|
4936
4934
|
});
|
|
4937
4935
|
}
|
|
4938
4936
|
return B;
|
|
@@ -4946,8 +4944,8 @@ function Hf() {
|
|
|
4946
4944
|
}
|
|
4947
4945
|
function i(B, P) {
|
|
4948
4946
|
for (var T = 0; T < P.length; T++) {
|
|
4949
|
-
var
|
|
4950
|
-
|
|
4947
|
+
var C = P[T];
|
|
4948
|
+
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(B, f(C.key), C);
|
|
4951
4949
|
}
|
|
4952
4950
|
}
|
|
4953
4951
|
function a(B, P, T) {
|
|
@@ -4961,8 +4959,8 @@ function Hf() {
|
|
|
4961
4959
|
if (typeof B != "object" || B === null) return B;
|
|
4962
4960
|
var T = B[Symbol.toPrimitive];
|
|
4963
4961
|
if (T !== void 0) {
|
|
4964
|
-
var
|
|
4965
|
-
if (typeof
|
|
4962
|
+
var C = T.call(B, P || "default");
|
|
4963
|
+
if (typeof C != "object") return C;
|
|
4966
4964
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4967
4965
|
}
|
|
4968
4966
|
return (P === "string" ? String : Number)(B);
|
|
@@ -4978,20 +4976,20 @@ function Hf() {
|
|
|
4978
4976
|
return a(B, [{
|
|
4979
4977
|
key: "push",
|
|
4980
4978
|
value: function(T) {
|
|
4981
|
-
var
|
|
4979
|
+
var C = {
|
|
4982
4980
|
data: T,
|
|
4983
4981
|
next: null
|
|
4984
4982
|
};
|
|
4985
|
-
this.length > 0 ? this.tail.next =
|
|
4983
|
+
this.length > 0 ? this.tail.next = C : this.head = C, this.tail = C, ++this.length;
|
|
4986
4984
|
}
|
|
4987
4985
|
}, {
|
|
4988
4986
|
key: "unshift",
|
|
4989
4987
|
value: function(T) {
|
|
4990
|
-
var
|
|
4988
|
+
var C = {
|
|
4991
4989
|
data: T,
|
|
4992
4990
|
next: this.head
|
|
4993
4991
|
};
|
|
4994
|
-
this.length === 0 && (this.tail =
|
|
4992
|
+
this.length === 0 && (this.tail = C), this.head = C, ++this.length;
|
|
4995
4993
|
}
|
|
4996
4994
|
}, {
|
|
4997
4995
|
key: "shift",
|
|
@@ -5010,23 +5008,23 @@ function Hf() {
|
|
|
5010
5008
|
key: "join",
|
|
5011
5009
|
value: function(T) {
|
|
5012
5010
|
if (this.length === 0) return "";
|
|
5013
|
-
for (var
|
|
5011
|
+
for (var C = this.head, F = "" + C.data; C = C.next; ) F += T + C.data;
|
|
5014
5012
|
return F;
|
|
5015
5013
|
}
|
|
5016
5014
|
}, {
|
|
5017
5015
|
key: "concat",
|
|
5018
5016
|
value: function(T) {
|
|
5019
5017
|
if (this.length === 0) return b.alloc(0);
|
|
5020
|
-
for (var
|
|
5021
|
-
A(F.data,
|
|
5022
|
-
return
|
|
5018
|
+
for (var C = b.allocUnsafe(T >>> 0), F = this.head, L = 0; F; )
|
|
5019
|
+
A(F.data, C, L), L += F.data.length, F = F.next;
|
|
5020
|
+
return C;
|
|
5023
5021
|
}
|
|
5024
5022
|
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
5025
5023
|
}, {
|
|
5026
5024
|
key: "consume",
|
|
5027
|
-
value: function(T,
|
|
5025
|
+
value: function(T, C) {
|
|
5028
5026
|
var F;
|
|
5029
|
-
return T < this.head.data.length ? (F = this.head.data.slice(0, T), this.head.data = this.head.data.slice(T)) : T === this.head.data.length ? F = this.shift() : F =
|
|
5027
|
+
return T < this.head.data.length ? (F = this.head.data.slice(0, T), this.head.data = this.head.data.slice(T)) : T === this.head.data.length ? F = this.shift() : F = C ? this._getString(T) : this._getBuffer(T), F;
|
|
5030
5028
|
}
|
|
5031
5029
|
}, {
|
|
5032
5030
|
key: "first",
|
|
@@ -5037,11 +5035,11 @@ function Hf() {
|
|
|
5037
5035
|
}, {
|
|
5038
5036
|
key: "_getString",
|
|
5039
5037
|
value: function(T) {
|
|
5040
|
-
var
|
|
5041
|
-
for (T -= L.length;
|
|
5042
|
-
var
|
|
5043
|
-
if (O ===
|
|
5044
|
-
O ===
|
|
5038
|
+
var C = this.head, F = 1, L = C.data;
|
|
5039
|
+
for (T -= L.length; C = C.next; ) {
|
|
5040
|
+
var k = C.data, O = T > k.length ? k.length : T;
|
|
5041
|
+
if (O === k.length ? L += k : L += k.slice(0, T), T -= O, T === 0) {
|
|
5042
|
+
O === k.length ? (++F, C.next ? this.head = C.next : this.head = this.tail = null) : (this.head = C, C.data = k.slice(O));
|
|
5045
5043
|
break;
|
|
5046
5044
|
}
|
|
5047
5045
|
++F;
|
|
@@ -5052,22 +5050,22 @@ function Hf() {
|
|
|
5052
5050
|
}, {
|
|
5053
5051
|
key: "_getBuffer",
|
|
5054
5052
|
value: function(T) {
|
|
5055
|
-
var
|
|
5056
|
-
for (F.data.copy(
|
|
5057
|
-
var
|
|
5058
|
-
if (
|
|
5059
|
-
O ===
|
|
5053
|
+
var C = b.allocUnsafe(T), F = this.head, L = 1;
|
|
5054
|
+
for (F.data.copy(C), T -= F.data.length; F = F.next; ) {
|
|
5055
|
+
var k = F.data, O = T > k.length ? k.length : T;
|
|
5056
|
+
if (k.copy(C, C.length - T, 0, O), T -= O, T === 0) {
|
|
5057
|
+
O === k.length ? (++L, F.next ? this.head = F.next : this.head = this.tail = null) : (this.head = F, F.data = k.slice(O));
|
|
5060
5058
|
break;
|
|
5061
5059
|
}
|
|
5062
5060
|
++L;
|
|
5063
5061
|
}
|
|
5064
|
-
return this.length -= L,
|
|
5062
|
+
return this.length -= L, C;
|
|
5065
5063
|
}
|
|
5066
5064
|
// Make sure the linked list only shows the minimal necessary information.
|
|
5067
5065
|
}, {
|
|
5068
5066
|
key: v,
|
|
5069
|
-
value: function(T,
|
|
5070
|
-
return g(this, t(t({},
|
|
5067
|
+
value: function(T, C) {
|
|
5068
|
+
return g(this, t(t({}, C), {}, {
|
|
5071
5069
|
// Only inspect one level.
|
|
5072
5070
|
depth: 0,
|
|
5073
5071
|
// It should not recurse.
|
|
@@ -5235,7 +5233,7 @@ function vs() {
|
|
|
5235
5233
|
function u(w) {
|
|
5236
5234
|
return i.isBuffer(w) || w instanceof a;
|
|
5237
5235
|
}
|
|
5238
|
-
var l = _s, b = xs, m = b.getHighWaterMark, g = dt.codes, v = g.ERR_INVALID_ARG_TYPE, A = g.ERR_METHOD_NOT_IMPLEMENTED, B = g.ERR_MULTIPLE_CALLBACK, P = g.ERR_STREAM_CANNOT_PIPE, T = g.ERR_STREAM_DESTROYED,
|
|
5236
|
+
var l = _s, b = xs, m = b.getHighWaterMark, g = dt.codes, v = g.ERR_INVALID_ARG_TYPE, A = g.ERR_METHOD_NOT_IMPLEMENTED, B = g.ERR_MULTIPLE_CALLBACK, P = g.ERR_STREAM_CANNOT_PIPE, T = g.ERR_STREAM_DESTROYED, C = g.ERR_STREAM_NULL_VALUES, F = g.ERR_STREAM_WRITE_AFTER_END, L = g.ERR_UNKNOWN_ENCODING, k = l.errorOrDestroy;
|
|
5239
5237
|
de(M, n);
|
|
5240
5238
|
function O() {
|
|
5241
5239
|
}
|
|
@@ -5275,15 +5273,15 @@ function vs() {
|
|
|
5275
5273
|
this._writableState = new S(w, this, _), this.writable = !0, w && (typeof w.write == "function" && (this._write = w.write), typeof w.writev == "function" && (this._writev = w.writev), typeof w.destroy == "function" && (this._destroy = w.destroy), typeof w.final == "function" && (this._final = w.final)), n.call(this);
|
|
5276
5274
|
}
|
|
5277
5275
|
M.prototype.pipe = function() {
|
|
5278
|
-
|
|
5276
|
+
k(this, new P());
|
|
5279
5277
|
};
|
|
5280
5278
|
function $(w, _) {
|
|
5281
5279
|
var R = new F();
|
|
5282
|
-
|
|
5280
|
+
k(w, R), process.nextTick(_, R);
|
|
5283
5281
|
}
|
|
5284
5282
|
function se(w, _, R, D) {
|
|
5285
5283
|
var G;
|
|
5286
|
-
return R === null ? G = new
|
|
5284
|
+
return R === null ? G = new C() : typeof R != "string" && !_.objectMode && (G = new v("chunk", ["string", "Buffer"], R)), G ? (k(w, G), process.nextTick(D, G), !1) : !0;
|
|
5287
5285
|
}
|
|
5288
5286
|
M.prototype.write = function(w, _, R) {
|
|
5289
5287
|
var D = this._writableState, G = !1, d = !D.objectMode && u(w);
|
|
@@ -5292,7 +5290,7 @@ function vs() {
|
|
|
5292
5290
|
this._writableState.corked++;
|
|
5293
5291
|
}, M.prototype.uncork = function() {
|
|
5294
5292
|
var w = this._writableState;
|
|
5295
|
-
w.corked && (w.corked--, !w.writing && !w.corked && !w.bufferProcessing && w.bufferedRequest &&
|
|
5293
|
+
w.corked && (w.corked--, !w.writing && !w.corked && !w.bufferProcessing && w.bufferedRequest && Ce(this, w));
|
|
5296
5294
|
}, M.prototype.setDefaultEncoding = function(_) {
|
|
5297
5295
|
if (typeof _ == "string" && (_ = _.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((_ + "").toLowerCase()) > -1)) throw new L(_);
|
|
5298
5296
|
return this._writableState.defaultEncoding = _, this;
|
|
@@ -5342,7 +5340,7 @@ function vs() {
|
|
|
5342
5340
|
_.writelen = D, _.writecb = p, _.writing = !0, _.sync = !0, _.destroyed ? _.onwrite(new T("write")) : R ? w._writev(G, _.onwrite) : w._write(G, d, _.onwrite), _.sync = !1;
|
|
5343
5341
|
}
|
|
5344
5342
|
function ve(w, _, R, D, G) {
|
|
5345
|
-
--_.pendingcb, R ? (process.nextTick(G, D), process.nextTick(Be, w, _), w._writableState.errorEmitted = !0,
|
|
5343
|
+
--_.pendingcb, R ? (process.nextTick(G, D), process.nextTick(Be, w, _), w._writableState.errorEmitted = !0, k(w, D)) : (G(D), w._writableState.errorEmitted = !0, k(w, D), Be(w, _));
|
|
5346
5344
|
}
|
|
5347
5345
|
function Ee(w) {
|
|
5348
5346
|
w.writing = !1, w.writecb = null, w.length -= w.writelen, w.writelen = 0;
|
|
@@ -5353,7 +5351,7 @@ function vs() {
|
|
|
5353
5351
|
if (Ee(R), _) ve(w, R, D, _, G);
|
|
5354
5352
|
else {
|
|
5355
5353
|
var d = je(R) || w.destroyed;
|
|
5356
|
-
!d && !R.corked && !R.bufferProcessing && R.bufferedRequest &&
|
|
5354
|
+
!d && !R.corked && !R.bufferProcessing && R.bufferedRequest && Ce(w, R), D ? process.nextTick(Pe, w, R, d, G) : Pe(w, R, d, G);
|
|
5357
5355
|
}
|
|
5358
5356
|
}
|
|
5359
5357
|
function Pe(w, _, R, D) {
|
|
@@ -5362,7 +5360,7 @@ function vs() {
|
|
|
5362
5360
|
function Ge(w, _) {
|
|
5363
5361
|
_.length === 0 && _.needDrain && (_.needDrain = !1, w.emit("drain"));
|
|
5364
5362
|
}
|
|
5365
|
-
function
|
|
5363
|
+
function Ce(w, _) {
|
|
5366
5364
|
_.bufferProcessing = !0;
|
|
5367
5365
|
var R = _.bufferedRequest;
|
|
5368
5366
|
if (w._writev && R && R.next) {
|
|
@@ -5400,7 +5398,7 @@ function vs() {
|
|
|
5400
5398
|
}
|
|
5401
5399
|
function Q(w, _) {
|
|
5402
5400
|
w._final(function(R) {
|
|
5403
|
-
_.pendingcb--, R &&
|
|
5401
|
+
_.pendingcb--, R && k(w, R), _.prefinished = !0, w.emit("prefinish"), Be(w, _);
|
|
5404
5402
|
});
|
|
5405
5403
|
}
|
|
5406
5404
|
function oe(w, _) {
|
|
@@ -5504,7 +5502,7 @@ function It() {
|
|
|
5504
5502
|
}
|
|
5505
5503
|
}), Yr;
|
|
5506
5504
|
}
|
|
5507
|
-
var xr = {},
|
|
5505
|
+
var xr = {}, Cn = xe.Buffer, fi = Cn.isEncoding || function(e) {
|
|
5508
5506
|
switch (e = "" + e, e && e.toLowerCase()) {
|
|
5509
5507
|
case "hex":
|
|
5510
5508
|
case "utf8":
|
|
@@ -5548,7 +5546,7 @@ function eu(e) {
|
|
|
5548
5546
|
}
|
|
5549
5547
|
function tu(e) {
|
|
5550
5548
|
var t = eu(e);
|
|
5551
|
-
if (typeof t != "string" && (
|
|
5549
|
+
if (typeof t != "string" && (Cn.isEncoding === fi || !fi(e))) throw new Error("Unknown encoding: " + e);
|
|
5552
5550
|
return t || e;
|
|
5553
5551
|
}
|
|
5554
5552
|
xr.StringDecoder = Qt;
|
|
@@ -5569,7 +5567,7 @@ function Qt(e) {
|
|
|
5569
5567
|
this.write = lu, this.end = hu;
|
|
5570
5568
|
return;
|
|
5571
5569
|
}
|
|
5572
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar =
|
|
5570
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = Cn.allocUnsafe(t);
|
|
5573
5571
|
}
|
|
5574
5572
|
Qt.prototype.write = function(e) {
|
|
5575
5573
|
if (e.length === 0) return "";
|
|
@@ -5700,63 +5698,63 @@ function Es(e, t, r) {
|
|
|
5700
5698
|
e.removeListener("complete", u), e.removeListener("abort", g), e.removeListener("request", v), e.req && e.req.removeListener("finish", u), e.removeListener("end", a), e.removeListener("close", a), e.removeListener("finish", u), e.removeListener("end", b), e.removeListener("error", m), e.removeListener("close", g);
|
|
5701
5699
|
};
|
|
5702
5700
|
}
|
|
5703
|
-
var
|
|
5701
|
+
var kn = Es, Xr, ci;
|
|
5704
5702
|
function yu() {
|
|
5705
5703
|
if (ci) return Xr;
|
|
5706
5704
|
ci = 1;
|
|
5707
5705
|
var e;
|
|
5708
|
-
function t(L,
|
|
5709
|
-
return
|
|
5706
|
+
function t(L, k, O) {
|
|
5707
|
+
return k = r(k), k in L ? Object.defineProperty(L, k, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : L[k] = O, L;
|
|
5710
5708
|
}
|
|
5711
5709
|
function r(L) {
|
|
5712
|
-
var
|
|
5713
|
-
return typeof
|
|
5710
|
+
var k = n(L, "string");
|
|
5711
|
+
return typeof k == "symbol" ? k : String(k);
|
|
5714
5712
|
}
|
|
5715
|
-
function n(L,
|
|
5713
|
+
function n(L, k) {
|
|
5716
5714
|
if (typeof L != "object" || L === null) return L;
|
|
5717
5715
|
var O = L[Symbol.toPrimitive];
|
|
5718
5716
|
if (O !== void 0) {
|
|
5719
|
-
var S = O.call(L,
|
|
5717
|
+
var S = O.call(L, k || "default");
|
|
5720
5718
|
if (typeof S != "object") return S;
|
|
5721
5719
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5722
5720
|
}
|
|
5723
|
-
return (
|
|
5721
|
+
return (k === "string" ? String : Number)(L);
|
|
5724
5722
|
}
|
|
5725
|
-
var i =
|
|
5726
|
-
function v(L,
|
|
5723
|
+
var i = kn, a = Symbol("lastResolve"), f = Symbol("lastReject"), u = Symbol("error"), l = Symbol("ended"), b = Symbol("lastPromise"), m = Symbol("handlePromise"), g = Symbol("stream");
|
|
5724
|
+
function v(L, k) {
|
|
5727
5725
|
return {
|
|
5728
5726
|
value: L,
|
|
5729
|
-
done:
|
|
5727
|
+
done: k
|
|
5730
5728
|
};
|
|
5731
5729
|
}
|
|
5732
5730
|
function A(L) {
|
|
5733
|
-
var
|
|
5734
|
-
if (
|
|
5731
|
+
var k = L[a];
|
|
5732
|
+
if (k !== null) {
|
|
5735
5733
|
var O = L[g].read();
|
|
5736
|
-
O !== null && (L[b] = null, L[a] = null, L[f] = null,
|
|
5734
|
+
O !== null && (L[b] = null, L[a] = null, L[f] = null, k(v(O, !1)));
|
|
5737
5735
|
}
|
|
5738
5736
|
}
|
|
5739
5737
|
function B(L) {
|
|
5740
5738
|
process.nextTick(A, L);
|
|
5741
5739
|
}
|
|
5742
|
-
function P(L,
|
|
5740
|
+
function P(L, k) {
|
|
5743
5741
|
return function(O, S) {
|
|
5744
5742
|
L.then(function() {
|
|
5745
|
-
if (
|
|
5743
|
+
if (k[l]) {
|
|
5746
5744
|
O(v(void 0, !0));
|
|
5747
5745
|
return;
|
|
5748
5746
|
}
|
|
5749
|
-
|
|
5747
|
+
k[m](O, S);
|
|
5750
5748
|
}, S);
|
|
5751
5749
|
};
|
|
5752
5750
|
}
|
|
5753
5751
|
var T = Object.getPrototypeOf(function() {
|
|
5754
|
-
}),
|
|
5752
|
+
}), C = Object.setPrototypeOf((e = {
|
|
5755
5753
|
get stream() {
|
|
5756
5754
|
return this[g];
|
|
5757
5755
|
},
|
|
5758
5756
|
next: function() {
|
|
5759
|
-
var
|
|
5757
|
+
var k = this, O = this[u];
|
|
5760
5758
|
if (O !== null)
|
|
5761
5759
|
return Promise.reject(O);
|
|
5762
5760
|
if (this[l])
|
|
@@ -5764,7 +5762,7 @@ function yu() {
|
|
|
5764
5762
|
if (this[g].destroyed)
|
|
5765
5763
|
return new Promise(function($, se) {
|
|
5766
5764
|
process.nextTick(function() {
|
|
5767
|
-
|
|
5765
|
+
k[u] ? se(k[u]) : $(v(void 0, !0));
|
|
5768
5766
|
});
|
|
5769
5767
|
});
|
|
5770
5768
|
var S = this[b], z;
|
|
@@ -5781,9 +5779,9 @@ function yu() {
|
|
|
5781
5779
|
}, t(e, Symbol.asyncIterator, function() {
|
|
5782
5780
|
return this;
|
|
5783
5781
|
}), t(e, "return", function() {
|
|
5784
|
-
var
|
|
5782
|
+
var k = this;
|
|
5785
5783
|
return new Promise(function(O, S) {
|
|
5786
|
-
|
|
5784
|
+
k[g].destroy(null, function(z) {
|
|
5787
5785
|
if (z) {
|
|
5788
5786
|
S(z);
|
|
5789
5787
|
return;
|
|
@@ -5791,9 +5789,9 @@ function yu() {
|
|
|
5791
5789
|
O(v(void 0, !0));
|
|
5792
5790
|
});
|
|
5793
5791
|
});
|
|
5794
|
-
}), e), T), F = function(
|
|
5795
|
-
var O, S = Object.create(
|
|
5796
|
-
value:
|
|
5792
|
+
}), e), T), F = function(k) {
|
|
5793
|
+
var O, S = Object.create(C, (O = {}, t(O, g, {
|
|
5794
|
+
value: k,
|
|
5797
5795
|
writable: !0
|
|
5798
5796
|
}), t(O, a, {
|
|
5799
5797
|
value: null,
|
|
@@ -5805,7 +5803,7 @@ function yu() {
|
|
|
5805
5803
|
value: null,
|
|
5806
5804
|
writable: !0
|
|
5807
5805
|
}), t(O, l, {
|
|
5808
|
-
value:
|
|
5806
|
+
value: k._readableState.endEmitted,
|
|
5809
5807
|
writable: !0
|
|
5810
5808
|
}), t(O, m, {
|
|
5811
5809
|
value: function(M, $) {
|
|
@@ -5814,7 +5812,7 @@ function yu() {
|
|
|
5814
5812
|
},
|
|
5815
5813
|
writable: !0
|
|
5816
5814
|
}), O));
|
|
5817
|
-
return S[b] = null, i(
|
|
5815
|
+
return S[b] = null, i(k, function(z) {
|
|
5818
5816
|
if (z && z.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
5819
5817
|
var M = S[f];
|
|
5820
5818
|
M !== null && (S[b] = null, S[a] = null, S[f] = null, M(z)), S[u] = z;
|
|
@@ -5822,7 +5820,7 @@ function yu() {
|
|
|
5822
5820
|
}
|
|
5823
5821
|
var $ = S[a];
|
|
5824
5822
|
$ !== null && (S[b] = null, S[a] = null, S[f] = null, $(v(void 0, !0))), S[l] = !0;
|
|
5825
|
-
}),
|
|
5823
|
+
}), k.on("readable", B.bind(null, S)), S;
|
|
5826
5824
|
};
|
|
5827
5825
|
return Xr = F, Xr;
|
|
5828
5826
|
}
|
|
@@ -5851,7 +5849,7 @@ function Bs() {
|
|
|
5851
5849
|
var u = Pn, l;
|
|
5852
5850
|
u && u.debuglog ? l = u.debuglog("stream") : l = function() {
|
|
5853
5851
|
};
|
|
5854
|
-
var b = Hf(), m = _s, g = xs, v = g.getHighWaterMark, A = dt.codes, B = A.ERR_INVALID_ARG_TYPE, P = A.ERR_STREAM_PUSH_AFTER_EOF, T = A.ERR_METHOD_NOT_IMPLEMENTED,
|
|
5852
|
+
var b = Hf(), m = _s, g = xs, v = g.getHighWaterMark, A = dt.codes, B = A.ERR_INVALID_ARG_TYPE, P = A.ERR_STREAM_PUSH_AFTER_EOF, T = A.ERR_METHOD_NOT_IMPLEMENTED, C = A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, F, L, k;
|
|
5855
5853
|
de($, r);
|
|
5856
5854
|
var O = m.errorOrDestroy, S = ["error", "close", "destroy", "pause", "resume"];
|
|
5857
5855
|
function z(d, p, I) {
|
|
@@ -5896,20 +5894,20 @@ function Bs() {
|
|
|
5896
5894
|
O(d, V);
|
|
5897
5895
|
else if (j.objectMode || p && p.length > 0)
|
|
5898
5896
|
if (typeof p != "string" && !j.objectMode && Object.getPrototypeOf(p) !== n.prototype && (p = a(p)), U)
|
|
5899
|
-
j.endEmitted ? O(d, new
|
|
5897
|
+
j.endEmitted ? O(d, new C()) : Te(d, j, p, !0);
|
|
5900
5898
|
else if (j.ended)
|
|
5901
5899
|
O(d, new P());
|
|
5902
5900
|
else {
|
|
5903
5901
|
if (j.destroyed)
|
|
5904
5902
|
return !1;
|
|
5905
|
-
j.reading = !1, j.decoder && !I ? (p = j.decoder.write(p), j.objectMode || p.length !== 0 ? Te(d, j, p, !1) :
|
|
5903
|
+
j.reading = !1, j.decoder && !I ? (p = j.decoder.write(p), j.objectMode || p.length !== 0 ? Te(d, j, p, !1) : Ce(d, j)) : Te(d, j, p, !1);
|
|
5906
5904
|
}
|
|
5907
|
-
else U || (j.reading = !1,
|
|
5905
|
+
else U || (j.reading = !1, Ce(d, j));
|
|
5908
5906
|
}
|
|
5909
5907
|
return !j.ended && (j.length < j.highWaterMark || j.length === 0);
|
|
5910
5908
|
}
|
|
5911
5909
|
function Te(d, p, I, U) {
|
|
5912
|
-
p.flowing && p.length === 0 && !p.sync ? (p.awaitDrain = 0, d.emit("data", I)) : (p.length += p.objectMode ? 1 : I.length, U ? p.buffer.unshift(I) : p.buffer.push(I), p.needReadable && Pe(d)),
|
|
5910
|
+
p.flowing && p.length === 0 && !p.sync ? (p.awaitDrain = 0, d.emit("data", I)) : (p.length += p.objectMode ? 1 : I.length, U ? p.buffer.unshift(I) : p.buffer.push(I), p.needReadable && Pe(d)), Ce(d, p);
|
|
5913
5911
|
}
|
|
5914
5912
|
function ze(d, p) {
|
|
5915
5913
|
var I;
|
|
@@ -5961,7 +5959,7 @@ function Bs() {
|
|
|
5961
5959
|
var p = d._readableState;
|
|
5962
5960
|
l("emitReadable_", p.destroyed, p.length, p.ended), !p.destroyed && (p.length || p.ended) && (d.emit("readable"), p.emittedReadable = !1), p.needReadable = !p.flowing && !p.ended && p.length <= p.highWaterMark, w(d);
|
|
5963
5961
|
}
|
|
5964
|
-
function
|
|
5962
|
+
function Ce(d, p) {
|
|
5965
5963
|
p.readingMore || (p.readingMore = !0, process.nextTick(je, d, p));
|
|
5966
5964
|
}
|
|
5967
5965
|
function je(d, p) {
|
|
@@ -5998,15 +5996,15 @@ function Bs() {
|
|
|
5998
5996
|
}
|
|
5999
5997
|
var bt = Q(I);
|
|
6000
5998
|
d.on("drain", bt);
|
|
6001
|
-
var
|
|
5999
|
+
var kt = !1;
|
|
6002
6000
|
function yt() {
|
|
6003
|
-
l("cleanup"), d.removeListener("close", Lt), d.removeListener("finish", Ae), d.removeListener("drain", bt), d.removeListener("error", rt), d.removeListener("unpipe", V), I.removeListener("end", qe), I.removeListener("end", nt), I.removeListener("data", Se),
|
|
6001
|
+
l("cleanup"), d.removeListener("close", Lt), d.removeListener("finish", Ae), d.removeListener("drain", bt), d.removeListener("error", rt), d.removeListener("unpipe", V), I.removeListener("end", qe), I.removeListener("end", nt), I.removeListener("data", Se), kt = !0, U.awaitDrain && (!d._writableState || d._writableState.needDrain) && bt();
|
|
6004
6002
|
}
|
|
6005
6003
|
I.on("data", Se);
|
|
6006
6004
|
function Se(c) {
|
|
6007
6005
|
l("ondata");
|
|
6008
6006
|
var s = d.write(c);
|
|
6009
|
-
l("dest.write", s), s === !1 && ((U.pipesCount === 1 && U.pipes === d || U.pipesCount > 1 && G(U.pipes, d) !== -1) && !
|
|
6007
|
+
l("dest.write", s), s === !1 && ((U.pipesCount === 1 && U.pipes === d || U.pipesCount > 1 && G(U.pipes, d) !== -1) && !kt && (l("false write response, pause", U.awaitDrain), U.awaitDrain++), I.pause());
|
|
6010
6008
|
}
|
|
6011
6009
|
function rt(c) {
|
|
6012
6010
|
l("onerror", c), nt(), d.removeListener("error", rt), t(d, "error") === 0 && O(d, c);
|
|
@@ -6161,7 +6159,7 @@ function Bs() {
|
|
|
6161
6159
|
}
|
|
6162
6160
|
}
|
|
6163
6161
|
typeof Symbol == "function" && ($.from = function(d, p) {
|
|
6164
|
-
return
|
|
6162
|
+
return k === void 0 && (k = gu()), k($, d, p);
|
|
6165
6163
|
});
|
|
6166
6164
|
function G(d, p) {
|
|
6167
6165
|
for (var I = 0, U = d.length; I < U; I++)
|
|
@@ -6255,7 +6253,7 @@ function Tu(e, t, r, n) {
|
|
|
6255
6253
|
var i = !1;
|
|
6256
6254
|
e.on("close", function() {
|
|
6257
6255
|
i = !0;
|
|
6258
|
-
}), en === void 0 && (en =
|
|
6256
|
+
}), en === void 0 && (en = kn), en(e, {
|
|
6259
6257
|
readable: t,
|
|
6260
6258
|
writable: r
|
|
6261
6259
|
}, function(f) {
|
|
@@ -6277,13 +6275,13 @@ function bi(e) {
|
|
|
6277
6275
|
function Pu(e, t) {
|
|
6278
6276
|
return e.pipe(t);
|
|
6279
6277
|
}
|
|
6280
|
-
function
|
|
6278
|
+
function Cu(e) {
|
|
6281
6279
|
return !e.length || typeof e[e.length - 1] != "function" ? pi : e.pop();
|
|
6282
6280
|
}
|
|
6283
|
-
function
|
|
6281
|
+
function ku() {
|
|
6284
6282
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
6285
6283
|
t[r] = arguments[r];
|
|
6286
|
-
var n =
|
|
6284
|
+
var n = Cu(t);
|
|
6287
6285
|
if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
|
|
6288
6286
|
throw new Au("streams");
|
|
6289
6287
|
var i, a = t.map(function(f, u) {
|
|
@@ -6294,9 +6292,9 @@ function Cu() {
|
|
|
6294
6292
|
});
|
|
6295
6293
|
return t.reduce(Pu);
|
|
6296
6294
|
}
|
|
6297
|
-
var Lu =
|
|
6295
|
+
var Lu = ku;
|
|
6298
6296
|
(function(e, t) {
|
|
6299
|
-
t = e.exports = Bs(), t.Stream = t, t.Readable = t, t.Writable = vs(), t.Duplex = It(), t.Transform = Ss, t.PassThrough = Bu, t.finished =
|
|
6297
|
+
t = e.exports = Bs(), t.Stream = t, t.Readable = t, t.Writable = vs(), t.Duplex = It(), t.Transform = Ss, t.PassThrough = Bu, t.finished = kn, t.pipeline = Lu;
|
|
6300
6298
|
})(cn, cn.exports);
|
|
6301
6299
|
var Rs = cn.exports, vr = xe.Buffer, Ts = Rs.Transform, Fu = de;
|
|
6302
6300
|
function Ou(e, t) {
|
|
@@ -6352,44 +6350,44 @@ Ze.prototype._digest = function() {
|
|
|
6352
6350
|
throw new Error("_digest is not implemented");
|
|
6353
6351
|
};
|
|
6354
6352
|
var Uu = Ze, Nu = de, Ps = Uu, Mu = xe.Buffer, Du = new Array(16);
|
|
6355
|
-
function
|
|
6353
|
+
function Cr() {
|
|
6356
6354
|
Ps.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
|
|
6357
6355
|
}
|
|
6358
|
-
Nu(
|
|
6359
|
-
|
|
6356
|
+
Nu(Cr, Ps);
|
|
6357
|
+
Cr.prototype._update = function() {
|
|
6360
6358
|
for (var e = Du, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
|
|
6361
6359
|
var r = this._a, n = this._b, i = this._c, a = this._d;
|
|
6362
6360
|
r = pe(r, n, i, a, e[0], 3614090360, 7), a = pe(a, r, n, i, e[1], 3905402710, 12), i = pe(i, a, r, n, e[2], 606105819, 17), n = pe(n, i, a, r, e[3], 3250441966, 22), r = pe(r, n, i, a, e[4], 4118548399, 7), a = pe(a, r, n, i, e[5], 1200080426, 12), i = pe(i, a, r, n, e[6], 2821735955, 17), n = pe(n, i, a, r, e[7], 4249261313, 22), r = pe(r, n, i, a, e[8], 1770035416, 7), a = pe(a, r, n, i, e[9], 2336552879, 12), i = pe(i, a, r, n, e[10], 4294925233, 17), n = pe(n, i, a, r, e[11], 2304563134, 22), r = pe(r, n, i, a, e[12], 1804603682, 7), a = pe(a, r, n, i, e[13], 4254626195, 12), i = pe(i, a, r, n, e[14], 2792965006, 17), n = pe(n, i, a, r, e[15], 1236535329, 22), r = be(r, n, i, a, e[1], 4129170786, 5), a = be(a, r, n, i, e[6], 3225465664, 9), i = be(i, a, r, n, e[11], 643717713, 14), n = be(n, i, a, r, e[0], 3921069994, 20), r = be(r, n, i, a, e[5], 3593408605, 5), a = be(a, r, n, i, e[10], 38016083, 9), i = be(i, a, r, n, e[15], 3634488961, 14), n = be(n, i, a, r, e[4], 3889429448, 20), r = be(r, n, i, a, e[9], 568446438, 5), a = be(a, r, n, i, e[14], 3275163606, 9), i = be(i, a, r, n, e[3], 4107603335, 14), n = be(n, i, a, r, e[8], 1163531501, 20), r = be(r, n, i, a, e[13], 2850285829, 5), a = be(a, r, n, i, e[2], 4243563512, 9), i = be(i, a, r, n, e[7], 1735328473, 14), n = be(n, i, a, r, e[12], 2368359562, 20), r = ye(r, n, i, a, e[5], 4294588738, 4), a = ye(a, r, n, i, e[8], 2272392833, 11), i = ye(i, a, r, n, e[11], 1839030562, 16), n = ye(n, i, a, r, e[14], 4259657740, 23), r = ye(r, n, i, a, e[1], 2763975236, 4), a = ye(a, r, n, i, e[4], 1272893353, 11), i = ye(i, a, r, n, e[7], 4139469664, 16), n = ye(n, i, a, r, e[10], 3200236656, 23), r = ye(r, n, i, a, e[13], 681279174, 4), a = ye(a, r, n, i, e[0], 3936430074, 11), i = ye(i, a, r, n, e[3], 3572445317, 16), n = ye(n, i, a, r, e[6], 76029189, 23), r = ye(r, n, i, a, e[9], 3654602809, 4), a = ye(a, r, n, i, e[12], 3873151461, 11), i = ye(i, a, r, n, e[15], 530742520, 16), n = ye(n, i, a, r, e[2], 3299628645, 23), r = ge(r, n, i, a, e[0], 4096336452, 6), a = ge(a, r, n, i, e[7], 1126891415, 10), i = ge(i, a, r, n, e[14], 2878612391, 15), n = ge(n, i, a, r, e[5], 4237533241, 21), r = ge(r, n, i, a, e[12], 1700485571, 6), a = ge(a, r, n, i, e[3], 2399980690, 10), i = ge(i, a, r, n, e[10], 4293915773, 15), n = ge(n, i, a, r, e[1], 2240044497, 21), r = ge(r, n, i, a, e[8], 1873313359, 6), a = ge(a, r, n, i, e[15], 4264355552, 10), i = ge(i, a, r, n, e[6], 2734768916, 15), n = ge(n, i, a, r, e[13], 1309151649, 21), r = ge(r, n, i, a, e[4], 4149444226, 6), a = ge(a, r, n, i, e[11], 3174756917, 10), i = ge(i, a, r, n, e[2], 718787259, 15), n = ge(n, i, a, r, e[9], 3951481745, 21), this._a = this._a + r | 0, this._b = this._b + n | 0, this._c = this._c + i | 0, this._d = this._d + a | 0;
|
|
6363
6361
|
};
|
|
6364
|
-
|
|
6362
|
+
Cr.prototype._digest = function() {
|
|
6365
6363
|
this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
|
|
6366
6364
|
var e = Mu.allocUnsafe(16);
|
|
6367
6365
|
return e.writeInt32LE(this._a, 0), e.writeInt32LE(this._b, 4), e.writeInt32LE(this._c, 8), e.writeInt32LE(this._d, 12), e;
|
|
6368
6366
|
};
|
|
6369
|
-
function
|
|
6367
|
+
function kr(e, t) {
|
|
6370
6368
|
return e << t | e >>> 32 - t;
|
|
6371
6369
|
}
|
|
6372
6370
|
function pe(e, t, r, n, i, a, f) {
|
|
6373
|
-
return
|
|
6371
|
+
return kr(e + (t & r | ~t & n) + i + a | 0, f) + t | 0;
|
|
6374
6372
|
}
|
|
6375
6373
|
function be(e, t, r, n, i, a, f) {
|
|
6376
|
-
return
|
|
6374
|
+
return kr(e + (t & n | r & ~n) + i + a | 0, f) + t | 0;
|
|
6377
6375
|
}
|
|
6378
6376
|
function ye(e, t, r, n, i, a, f) {
|
|
6379
|
-
return
|
|
6377
|
+
return kr(e + (t ^ r ^ n) + i + a | 0, f) + t | 0;
|
|
6380
6378
|
}
|
|
6381
6379
|
function ge(e, t, r, n, i, a, f) {
|
|
6382
|
-
return
|
|
6380
|
+
return kr(e + (r ^ (t | ~n)) + i + a | 0, f) + t | 0;
|
|
6383
6381
|
}
|
|
6384
|
-
var $u =
|
|
6382
|
+
var $u = Cr, Er = xe.Buffer, Cs = Rs.Transform, Hu = de;
|
|
6385
6383
|
function zu(e, t) {
|
|
6386
6384
|
if (!Er.isBuffer(e) && typeof e != "string")
|
|
6387
6385
|
throw new TypeError(t + " must be a string or a buffer");
|
|
6388
6386
|
}
|
|
6389
6387
|
function et(e) {
|
|
6390
|
-
|
|
6388
|
+
Cs.call(this), this._block = Er.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
|
|
6391
6389
|
}
|
|
6392
|
-
Hu(et,
|
|
6390
|
+
Hu(et, Cs);
|
|
6393
6391
|
et.prototype._transform = function(e, t, r) {
|
|
6394
6392
|
var n = null;
|
|
6395
6393
|
try {
|
|
@@ -6434,7 +6432,7 @@ et.prototype.digest = function(e) {
|
|
|
6434
6432
|
et.prototype._digest = function() {
|
|
6435
6433
|
throw new Error("_digest is not implemented");
|
|
6436
6434
|
};
|
|
6437
|
-
var Gu = et, tn = Pt.Buffer, ju = de,
|
|
6435
|
+
var Gu = et, tn = Pt.Buffer, ju = de, ks = Gu, Wu = new Array(16), $t = [
|
|
6438
6436
|
0,
|
|
6439
6437
|
1,
|
|
6440
6438
|
2,
|
|
@@ -6760,9 +6758,9 @@ var Gu = et, tn = Pt.Buffer, ju = de, Cs = Gu, Wu = new Array(16), $t = [
|
|
|
6760
6758
|
11
|
|
6761
6759
|
], jt = [0, 1518500249, 1859775393, 2400959708, 2840853838], Wt = [1352829926, 1548603684, 1836072691, 2053994217, 0];
|
|
6762
6760
|
function Lr() {
|
|
6763
|
-
|
|
6761
|
+
ks.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
|
|
6764
6762
|
}
|
|
6765
|
-
ju(Lr,
|
|
6763
|
+
ju(Lr, ks);
|
|
6766
6764
|
Lr.prototype._update = function() {
|
|
6767
6765
|
for (var e = Wu, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
|
|
6768
6766
|
for (var r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = this._a | 0, l = this._b | 0, b = this._c | 0, m = this._d | 0, g = this._e | 0, v = 0; v < 80; v += 1) {
|
|
@@ -6825,7 +6823,7 @@ Fr.prototype.digest = function(e) {
|
|
|
6825
6823
|
Fr.prototype._update = function() {
|
|
6826
6824
|
throw new Error("_update must be implemented by subclass");
|
|
6827
6825
|
};
|
|
6828
|
-
var
|
|
6826
|
+
var Ct = Fr, Vu = de, Os = Ct, Ku = xe.Buffer, Yu = [
|
|
6829
6827
|
1518500249,
|
|
6830
6828
|
1859775393,
|
|
6831
6829
|
-1894007588,
|
|
@@ -6860,7 +6858,7 @@ Zt.prototype._hash = function() {
|
|
|
6860
6858
|
var e = Ku.allocUnsafe(20);
|
|
6861
6859
|
return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
|
|
6862
6860
|
};
|
|
6863
|
-
var ec = Zt, tc = de, Us =
|
|
6861
|
+
var ec = Zt, tc = de, Us = Ct, rc = xe.Buffer, nc = [
|
|
6864
6862
|
1518500249,
|
|
6865
6863
|
1859775393,
|
|
6866
6864
|
-1894007588,
|
|
@@ -6898,7 +6896,7 @@ er.prototype._hash = function() {
|
|
|
6898
6896
|
var e = rc.allocUnsafe(20);
|
|
6899
6897
|
return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
|
|
6900
6898
|
};
|
|
6901
|
-
var uc = er, cc = de, Ns =
|
|
6899
|
+
var uc = er, cc = de, Ns = Ct, lc = xe.Buffer, hc = [
|
|
6902
6900
|
1116352408,
|
|
6903
6901
|
1899447441,
|
|
6904
6902
|
3049323471,
|
|
@@ -7002,7 +7000,7 @@ tr.prototype._hash = function() {
|
|
|
7002
7000
|
var e = lc.allocUnsafe(32);
|
|
7003
7001
|
return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e.writeInt32BE(this._h, 28), e;
|
|
7004
7002
|
};
|
|
7005
|
-
var Ms = tr, wc = de, xc = Ms, vc =
|
|
7003
|
+
var Ms = tr, wc = de, xc = Ms, vc = Ct, Ec = xe.Buffer, Bc = new Array(64);
|
|
7006
7004
|
function Or() {
|
|
7007
7005
|
this.init(), this._w = Bc, vc.call(this, 64, 56);
|
|
7008
7006
|
}
|
|
@@ -7014,7 +7012,7 @@ Or.prototype._hash = function() {
|
|
|
7014
7012
|
var e = Ec.allocUnsafe(28);
|
|
7015
7013
|
return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e;
|
|
7016
7014
|
};
|
|
7017
|
-
var Sc = Or, Ac = de, Ds =
|
|
7015
|
+
var Sc = Or, Ac = de, Ds = Ct, Ic = xe.Buffer, xi = [
|
|
7018
7016
|
1116352408,
|
|
7019
7017
|
3609767458,
|
|
7020
7018
|
1899447441,
|
|
@@ -7201,32 +7199,32 @@ function Tc(e, t) {
|
|
|
7201
7199
|
function Pc(e, t) {
|
|
7202
7200
|
return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ (e >>> 7 | t << 25);
|
|
7203
7201
|
}
|
|
7204
|
-
function
|
|
7202
|
+
function Cc(e, t) {
|
|
7205
7203
|
return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ e >>> 6;
|
|
7206
7204
|
}
|
|
7207
|
-
function
|
|
7205
|
+
function kc(e, t) {
|
|
7208
7206
|
return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ (e >>> 6 | t << 26);
|
|
7209
7207
|
}
|
|
7210
7208
|
function ce(e, t) {
|
|
7211
7209
|
return e >>> 0 < t >>> 0 ? 1 : 0;
|
|
7212
7210
|
}
|
|
7213
7211
|
rr.prototype._update = function(e) {
|
|
7214
|
-
for (var t = this._w, r = this._ah | 0, n = this._bh | 0, i = this._ch | 0, a = this._dh | 0, f = this._eh | 0, u = this._fh | 0, l = this._gh | 0, b = this._hh | 0, m = this._al | 0, g = this._bl | 0, v = this._cl | 0, A = this._dl | 0, B = this._el | 0, P = this._fl | 0, T = this._gl | 0,
|
|
7212
|
+
for (var t = this._w, r = this._ah | 0, n = this._bh | 0, i = this._ch | 0, a = this._dh | 0, f = this._eh | 0, u = this._fh | 0, l = this._gh | 0, b = this._hh | 0, m = this._al | 0, g = this._bl | 0, v = this._cl | 0, A = this._dl | 0, B = this._el | 0, P = this._fl | 0, T = this._gl | 0, C = this._hl | 0, F = 0; F < 32; F += 2)
|
|
7215
7213
|
t[F] = e.readInt32BE(F * 4), t[F + 1] = e.readInt32BE(F * 4 + 4);
|
|
7216
7214
|
for (; F < 160; F += 2) {
|
|
7217
|
-
var L = t[F - 30],
|
|
7218
|
-
L = t[F - 2 * 2],
|
|
7219
|
-
var z =
|
|
7215
|
+
var L = t[F - 30], k = t[F - 15 * 2 + 1], O = Tc(L, k), S = Pc(k, L);
|
|
7216
|
+
L = t[F - 2 * 2], k = t[F - 2 * 2 + 1];
|
|
7217
|
+
var z = Cc(L, k), M = kc(k, L), $ = t[F - 7 * 2], se = t[F - 7 * 2 + 1], Te = t[F - 16 * 2], ze = t[F - 16 * 2 + 1], ae = S + se | 0, ve = O + $ + ce(ae, S) | 0;
|
|
7220
7218
|
ae = ae + M | 0, ve = ve + z + ce(ae, M) | 0, ae = ae + ze | 0, ve = ve + Te + ce(ae, ze) | 0, t[F] = ve, t[F + 1] = ae;
|
|
7221
7219
|
}
|
|
7222
7220
|
for (var Ee = 0; Ee < 160; Ee += 2) {
|
|
7223
7221
|
ve = t[Ee], ae = t[Ee + 1];
|
|
7224
|
-
var tt = Ei(r, n, i), Pe = Ei(m, g, v), Ge = Bi(r, m),
|
|
7222
|
+
var tt = Ei(r, n, i), Pe = Ei(m, g, v), Ge = Bi(r, m), Ce = Bi(m, r), je = Si(f, B), Q = Si(B, f), oe = xi[Ee], Be = xi[Ee + 1], We = vi(f, u, l), Ue = vi(B, P, T), w = C + Q | 0, _ = b + je + ce(w, C) | 0;
|
|
7225
7223
|
w = w + Ue | 0, _ = _ + We + ce(w, Ue) | 0, w = w + Be | 0, _ = _ + oe + ce(w, Be) | 0, w = w + ae | 0, _ = _ + ve + ce(w, ae) | 0;
|
|
7226
|
-
var R =
|
|
7227
|
-
b = l,
|
|
7224
|
+
var R = Ce + Pe | 0, D = Ge + tt + ce(R, Ce) | 0;
|
|
7225
|
+
b = l, C = T, l = u, T = P, u = f, P = B, B = A + w | 0, f = a + _ + ce(B, A) | 0, a = i, A = v, i = n, v = g, n = r, g = m, m = w + R | 0, r = _ + D + ce(m, w) | 0;
|
|
7228
7226
|
}
|
|
7229
|
-
this._al = this._al + m | 0, this._bl = this._bl + g | 0, this._cl = this._cl + v | 0, this._dl = this._dl + A | 0, this._el = this._el + B | 0, this._fl = this._fl + P | 0, this._gl = this._gl + T | 0, this._hl = this._hl +
|
|
7227
|
+
this._al = this._al + m | 0, this._bl = this._bl + g | 0, this._cl = this._cl + v | 0, this._dl = this._dl + A | 0, this._el = this._el + B | 0, this._fl = this._fl + P | 0, this._gl = this._gl + T | 0, this._hl = this._hl + C | 0, this._ah = this._ah + r + ce(this._al, m) | 0, this._bh = this._bh + n + ce(this._bl, g) | 0, this._ch = this._ch + i + ce(this._cl, v) | 0, this._dh = this._dh + a + ce(this._dl, A) | 0, this._eh = this._eh + f + ce(this._el, B) | 0, this._fh = this._fh + u + ce(this._fl, P) | 0, this._gh = this._gh + l + ce(this._gl, T) | 0, this._hh = this._hh + b + ce(this._hl, C) | 0;
|
|
7230
7228
|
};
|
|
7231
7229
|
rr.prototype._hash = function() {
|
|
7232
7230
|
var e = Ic.allocUnsafe(64);
|
|
@@ -7235,7 +7233,7 @@ rr.prototype._hash = function() {
|
|
|
7235
7233
|
}
|
|
7236
7234
|
return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), t(this._gh, this._gl, 48), t(this._hh, this._hl, 56), e;
|
|
7237
7235
|
};
|
|
7238
|
-
var $s = rr, Lc = de, Fc = $s, Oc =
|
|
7236
|
+
var $s = rr, Lc = de, Fc = $s, Oc = Ct, Uc = xe.Buffer, Nc = new Array(160);
|
|
7239
7237
|
function Ur() {
|
|
7240
7238
|
this.init(), this._w = Nc, Oc.call(this, 128, 112);
|
|
7241
7239
|
}
|
|
@@ -7263,27 +7261,27 @@ pt.sha256 = Ms;
|
|
|
7263
7261
|
pt.sha384 = Mc;
|
|
7264
7262
|
pt.sha512 = $s;
|
|
7265
7263
|
var Dc = Ls.exports, Hs = xe.Buffer, zs = Pn.Transform, $c = xr.StringDecoder, Hc = de;
|
|
7266
|
-
function
|
|
7264
|
+
function ke(e) {
|
|
7267
7265
|
zs.call(this), this.hashMode = typeof e == "string", this.hashMode ? this[e] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
|
|
7268
7266
|
}
|
|
7269
|
-
Hc(
|
|
7270
|
-
|
|
7267
|
+
Hc(ke, zs);
|
|
7268
|
+
ke.prototype.update = function(e, t, r) {
|
|
7271
7269
|
typeof e == "string" && (e = Hs.from(e, t));
|
|
7272
7270
|
var n = this._update(e);
|
|
7273
7271
|
return this.hashMode ? this : (r && (n = this._toString(n, r)), n);
|
|
7274
7272
|
};
|
|
7275
|
-
|
|
7273
|
+
ke.prototype.setAutoPadding = function() {
|
|
7276
7274
|
};
|
|
7277
|
-
|
|
7275
|
+
ke.prototype.getAuthTag = function() {
|
|
7278
7276
|
throw new Error("trying to get auth tag in unsupported state");
|
|
7279
7277
|
};
|
|
7280
|
-
|
|
7278
|
+
ke.prototype.setAuthTag = function() {
|
|
7281
7279
|
throw new Error("trying to set auth tag in unsupported state");
|
|
7282
7280
|
};
|
|
7283
|
-
|
|
7281
|
+
ke.prototype.setAAD = function() {
|
|
7284
7282
|
throw new Error("trying to set aad in unsupported state");
|
|
7285
7283
|
};
|
|
7286
|
-
|
|
7284
|
+
ke.prototype._transform = function(e, t, r) {
|
|
7287
7285
|
var n;
|
|
7288
7286
|
try {
|
|
7289
7287
|
this.hashMode ? this._update(e) : this.push(this._update(e));
|
|
@@ -7293,7 +7291,7 @@ Ce.prototype._transform = function(e, t, r) {
|
|
|
7293
7291
|
r(n);
|
|
7294
7292
|
}
|
|
7295
7293
|
};
|
|
7296
|
-
|
|
7294
|
+
ke.prototype._flush = function(e) {
|
|
7297
7295
|
var t;
|
|
7298
7296
|
try {
|
|
7299
7297
|
this.push(this.__final());
|
|
@@ -7302,16 +7300,16 @@ Ce.prototype._flush = function(e) {
|
|
|
7302
7300
|
}
|
|
7303
7301
|
e(t);
|
|
7304
7302
|
};
|
|
7305
|
-
|
|
7303
|
+
ke.prototype._finalOrDigest = function(e) {
|
|
7306
7304
|
var t = this.__final() || Hs.alloc(0);
|
|
7307
7305
|
return e && (t = this._toString(t, e, !0)), t;
|
|
7308
7306
|
};
|
|
7309
|
-
|
|
7307
|
+
ke.prototype._toString = function(e, t, r) {
|
|
7310
7308
|
if (this._decoder || (this._decoder = new $c(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
|
|
7311
7309
|
var n = this._decoder.write(e);
|
|
7312
7310
|
return r && (n += this._decoder.end()), n;
|
|
7313
7311
|
};
|
|
7314
|
-
var zc =
|
|
7312
|
+
var zc = ke, Gc = de, jc = $u, Wc = qu, qc = Dc, Gs = zc;
|
|
7315
7313
|
function Nr(e) {
|
|
7316
7314
|
Gs.call(this, "digest"), this._hash = e;
|
|
7317
7315
|
}
|
|
@@ -7342,12 +7340,12 @@ function Kc(e) {
|
|
|
7342
7340
|
throw new TypeError("Expected Buffer");
|
|
7343
7341
|
if (A.length === 0)
|
|
7344
7342
|
return "";
|
|
7345
|
-
for (var B = 0, P = 0, T = 0,
|
|
7343
|
+
for (var B = 0, P = 0, T = 0, C = A.length; T !== C && A[T] === 0; )
|
|
7346
7344
|
T++, B++;
|
|
7347
|
-
for (var F = (
|
|
7348
|
-
for (var
|
|
7349
|
-
|
|
7350
|
-
if (
|
|
7345
|
+
for (var F = (C - T) * b + 1 >>> 0, L = new Uint8Array(F); T !== C; ) {
|
|
7346
|
+
for (var k = A[T], O = 0, S = F - 1; (k !== 0 || O < P) && S !== -1; S--, O++)
|
|
7347
|
+
k += 256 * L[S] >>> 0, L[S] = k % f >>> 0, k = k / f >>> 0;
|
|
7348
|
+
if (k !== 0)
|
|
7351
7349
|
throw new Error("Non-zero carry");
|
|
7352
7350
|
P = O, T++;
|
|
7353
7351
|
}
|
|
@@ -7364,21 +7362,21 @@ function Kc(e) {
|
|
|
7364
7362
|
return ur.alloc(0);
|
|
7365
7363
|
for (var B = 0, P = 0, T = 0; A[B] === u; )
|
|
7366
7364
|
P++, B++;
|
|
7367
|
-
for (var
|
|
7365
|
+
for (var C = (A.length - B) * l + 1 >>> 0, F = new Uint8Array(C); B < A.length; ) {
|
|
7368
7366
|
var L = t[A.charCodeAt(B)];
|
|
7369
7367
|
if (L === 255)
|
|
7370
7368
|
return;
|
|
7371
|
-
for (var
|
|
7369
|
+
for (var k = 0, O = C - 1; (L !== 0 || k < T) && O !== -1; O--, k++)
|
|
7372
7370
|
L += f * F[O] >>> 0, F[O] = L % 256 >>> 0, L = L / 256 >>> 0;
|
|
7373
7371
|
if (L !== 0)
|
|
7374
7372
|
throw new Error("Non-zero carry");
|
|
7375
|
-
T =
|
|
7373
|
+
T = k, B++;
|
|
7376
7374
|
}
|
|
7377
|
-
for (var S =
|
|
7375
|
+
for (var S = C - T; S !== C && F[S] === 0; )
|
|
7378
7376
|
S++;
|
|
7379
|
-
var z = ur.allocUnsafe(P + (
|
|
7377
|
+
var z = ur.allocUnsafe(P + (C - S));
|
|
7380
7378
|
z.fill(0, 0, P);
|
|
7381
|
-
for (var M = P; S !==
|
|
7379
|
+
for (var M = P; S !== C; )
|
|
7382
7380
|
z[M++] = F[S++];
|
|
7383
7381
|
return z;
|
|
7384
7382
|
}
|
|
@@ -7667,7 +7665,7 @@ Object.defineProperty(St, "__esModule", { value: !0 });
|
|
|
7667
7665
|
St.ECPairFactory = St.networks = void 0;
|
|
7668
7666
|
const pn = At;
|
|
7669
7667
|
St.networks = pn;
|
|
7670
|
-
const _e = rs, fl =
|
|
7668
|
+
const _e = rs, fl = kf, Ii = ol, ul = Mr, nn = _e.typeforce.maybe(
|
|
7671
7669
|
_e.typeforce.compile({
|
|
7672
7670
|
compressed: _e.maybe(_e.Boolean),
|
|
7673
7671
|
network: _e.maybe(_e.Network)
|
|
@@ -7862,7 +7860,7 @@ class bn {
|
|
|
7862
7860
|
return r.fromPrivateKey(f).sign(Buffer.from(it(a), "hex")).toString("hex");
|
|
7863
7861
|
}
|
|
7864
7862
|
}
|
|
7865
|
-
class
|
|
7863
|
+
class Rl {
|
|
7866
7864
|
constructor(t) {
|
|
7867
7865
|
this.quoteUrl = new yn("/quote", t);
|
|
7868
7866
|
}
|
|
@@ -7921,23 +7919,22 @@ class Tl {
|
|
|
7921
7919
|
}
|
|
7922
7920
|
}
|
|
7923
7921
|
export {
|
|
7924
|
-
|
|
7922
|
+
Al as BlockNumberFetcher,
|
|
7925
7923
|
nf as EvmRelay,
|
|
7926
|
-
|
|
7924
|
+
Sl as Garden,
|
|
7927
7925
|
le as OrderActions,
|
|
7928
7926
|
te as OrderStatus,
|
|
7929
7927
|
Zi as ParseOrderStatus,
|
|
7930
7928
|
Jn as ParseSwapStatus,
|
|
7931
|
-
|
|
7929
|
+
Rl as Quote,
|
|
7932
7930
|
bn as SecretManager,
|
|
7933
7931
|
re as SwapStatus,
|
|
7934
7932
|
ef as constructOrderPair,
|
|
7935
7933
|
Qa as evmToViemChainMap,
|
|
7936
7934
|
tf as filterDeadlineExpiredOrders,
|
|
7937
7935
|
gr as isExpired,
|
|
7938
|
-
|
|
7936
|
+
Bl as parseAction,
|
|
7939
7937
|
es as parseActionFromStatus,
|
|
7940
7938
|
vl as switchOrAddNetwork,
|
|
7941
|
-
Bl as testForReactHooks,
|
|
7942
7939
|
El as validateBTCAddress
|
|
7943
7940
|
};
|