@orbs-network/spot-react 0.0.83 → 0.0.84
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/{ccip-C3uRf6DX.js → ccip-DMctUrv3.js} +1 -1
- package/dist/{index-DcxqFWqQ.js → index-BJ-auIxB.js} +561 -560
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-order.d.ts.map +1 -1
- package/dist/spot-react.js +1 -1
- package/dist/spot-react.umd.cjs +13 -13
- package/package.json +1 -1
|
@@ -1172,7 +1172,7 @@ function fb(e) {
|
|
|
1172
1172
|
suffix: ""
|
|
1173
1173
|
}, E = "0123456789abcdefghijklmnopqrstuvwxyz", v = !0;
|
|
1174
1174
|
function w(h, b) {
|
|
1175
|
-
var x,
|
|
1175
|
+
var x, T, I, B, D, k, P, U, F = this;
|
|
1176
1176
|
if (!(F instanceof w)) return new w(h, b);
|
|
1177
1177
|
if (b == null) {
|
|
1178
1178
|
if (h && h._isBigNumber === !0) {
|
|
@@ -1201,8 +1201,8 @@ function fb(e) {
|
|
|
1201
1201
|
} else
|
|
1202
1202
|
F.s = U.charCodeAt(0) === 45 ? (U = U.slice(1), -1) : 1;
|
|
1203
1203
|
for (x = E.slice(0, b), B = D = 0, P = U.length; D < P; D++)
|
|
1204
|
-
if (x.indexOf(
|
|
1205
|
-
if (
|
|
1204
|
+
if (x.indexOf(T = U.charAt(D)) < 0) {
|
|
1205
|
+
if (T == ".") {
|
|
1206
1206
|
if (D > B) {
|
|
1207
1207
|
B = P;
|
|
1208
1208
|
continue;
|
|
@@ -1283,20 +1283,20 @@ function fb(e) {
|
|
|
1283
1283
|
}, w.isBigNumber = function(h) {
|
|
1284
1284
|
if (!h || h._isBigNumber !== !0) return !1;
|
|
1285
1285
|
if (!w.DEBUG) return !0;
|
|
1286
|
-
var b, x,
|
|
1287
|
-
e: if ({}.toString.call(
|
|
1286
|
+
var b, x, T = h.c, I = h.e, B = h.s;
|
|
1287
|
+
e: if ({}.toString.call(T) == "[object Array]") {
|
|
1288
1288
|
if ((B === 1 || B === -1) && I >= -Pt && I <= Pt && I === vr(I)) {
|
|
1289
|
-
if (
|
|
1290
|
-
if (I === 0 &&
|
|
1289
|
+
if (T[0] === 0) {
|
|
1290
|
+
if (I === 0 && T.length === 1) return !0;
|
|
1291
1291
|
break e;
|
|
1292
1292
|
}
|
|
1293
|
-
if (b = (I + 1) % ve, b < 1 && (b += ve), String(
|
|
1294
|
-
for (b = 0; b <
|
|
1295
|
-
if (x =
|
|
1293
|
+
if (b = (I + 1) % ve, b < 1 && (b += ve), String(T[0]).length == b) {
|
|
1294
|
+
for (b = 0; b < T.length; b++)
|
|
1295
|
+
if (x = T[b], x < 0 || x >= Dr || x !== vr(x)) break e;
|
|
1296
1296
|
if (x !== 0) return !0;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
} else if (
|
|
1299
|
+
} else if (T === null && I === null && (B === null || B === 1 || B === -1))
|
|
1300
1300
|
return !0;
|
|
1301
1301
|
throw Error(Yt + "Invalid BigNumber: " + h);
|
|
1302
1302
|
}, w.maximum = w.max = function() {
|
|
@@ -1310,15 +1310,15 @@ function fb(e) {
|
|
|
1310
1310
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
1311
1311
|
};
|
|
1312
1312
|
return function(x) {
|
|
1313
|
-
var
|
|
1313
|
+
var T, I, B, D, k, P = 0, U = [], F = new w(a);
|
|
1314
1314
|
if (x == null ? x = o : lt(x, 0, Pt), D = td(x / ve), f)
|
|
1315
1315
|
if (crypto.getRandomValues) {
|
|
1316
|
-
for (
|
|
1317
|
-
k =
|
|
1316
|
+
for (T = crypto.getRandomValues(new Uint32Array(D *= 2)); P < D; )
|
|
1317
|
+
k = T[P] * 131072 + (T[P + 1] >>> 11), k >= 9e15 ? (I = crypto.getRandomValues(new Uint32Array(2)), T[P] = I[0], T[P + 1] = I[1]) : (U.push(k % 1e14), P += 2);
|
|
1318
1318
|
P = D / 2;
|
|
1319
1319
|
} else if (crypto.randomBytes) {
|
|
1320
|
-
for (
|
|
1321
|
-
k = (
|
|
1320
|
+
for (T = crypto.randomBytes(D *= 7); P < D; )
|
|
1321
|
+
k = (T[P] & 31) * 281474976710656 + T[P + 1] * 1099511627776 + T[P + 2] * 4294967296 + T[P + 3] * 16777216 + (T[P + 4] << 16) + (T[P + 5] << 8) + T[P + 6], k >= 9e15 ? crypto.randomBytes(7).copy(T, P) : (U.push(k % 1e14), P += 7);
|
|
1322
1322
|
P = D / 7;
|
|
1323
1323
|
} else
|
|
1324
1324
|
throw f = !1, Error(Yt + "crypto unavailable");
|
|
@@ -1340,22 +1340,22 @@ function fb(e) {
|
|
|
1340
1340
|
return x;
|
|
1341
1341
|
}, r = /* @__PURE__ */ (function() {
|
|
1342
1342
|
var h = "0123456789";
|
|
1343
|
-
function b(x,
|
|
1343
|
+
function b(x, T, I, B) {
|
|
1344
1344
|
for (var D, k = [0], P, U = 0, F = x.length; U < F; ) {
|
|
1345
|
-
for (P = k.length; P--; k[P] *=
|
|
1345
|
+
for (P = k.length; P--; k[P] *= T) ;
|
|
1346
1346
|
for (k[0] += B.indexOf(x.charAt(U++)), D = 0; D < k.length; D++)
|
|
1347
1347
|
k[D] > I - 1 && (k[D + 1] == null && (k[D + 1] = 0), k[D + 1] += k[D] / I | 0, k[D] %= I);
|
|
1348
1348
|
}
|
|
1349
1349
|
return k.reverse();
|
|
1350
1350
|
}
|
|
1351
|
-
return function(x,
|
|
1351
|
+
return function(x, T, I, B, D) {
|
|
1352
1352
|
var k, P, U, F, R, L, $, Z, pe = x.indexOf("."), be = o, ie = i;
|
|
1353
|
-
for (pe >= 0 && (F = y, y = 0, x = x.replace(".", ""), Z = new w(
|
|
1353
|
+
for (pe >= 0 && (F = y, y = 0, x = x.replace(".", ""), Z = new w(T), L = Z.pow(x.length - pe), y = F, Z.c = b(
|
|
1354
1354
|
gn(xr(L.c), L.e, "0"),
|
|
1355
1355
|
10,
|
|
1356
1356
|
I,
|
|
1357
1357
|
h
|
|
1358
|
-
), Z.e = Z.c.length), $ = b(x,
|
|
1358
|
+
), Z.e = Z.c.length), $ = b(x, T, I, D ? (k = E, h) : (k = h, E)), U = F = $.length; $[--F] == 0; $.pop()) ;
|
|
1359
1359
|
if (!$[0]) return k.charAt(0);
|
|
1360
1360
|
if (pe < 0 ? --U : (L.c = $, L.e = U, L.s = B, L = t(L, Z, be, ie, I), $ = L.c, R = L.r, U = L.e), P = U + be + 1, pe = $[P], F = I / 2, R = R || P < 0 || $[P + 1] != null, R = ie < 4 ? (pe != null || R) && (ie == 0 || ie == (L.s < 0 ? 3 : 2)) : pe > F || pe == F && (ie == 4 || R || ie == 6 && $[P - 1] & 1 || ie == (L.s < 0 ? 8 : 7)), P < 1 || !$[0])
|
|
1361
1361
|
x = R ? gn(k.charAt(1), -be, k.charAt(0)) : k.charAt(0);
|
|
@@ -1370,40 +1370,40 @@ function fb(e) {
|
|
|
1370
1370
|
return x;
|
|
1371
1371
|
};
|
|
1372
1372
|
})(), t = /* @__PURE__ */ (function() {
|
|
1373
|
-
function h(
|
|
1374
|
-
var D, k, P, U, F = 0, R =
|
|
1375
|
-
for (
|
|
1376
|
-
P =
|
|
1377
|
-
return F && (
|
|
1373
|
+
function h(T, I, B) {
|
|
1374
|
+
var D, k, P, U, F = 0, R = T.length, L = I % Zn, $ = I / Zn | 0;
|
|
1375
|
+
for (T = T.slice(); R--; )
|
|
1376
|
+
P = T[R] % Zn, U = T[R] / Zn | 0, D = $ * P + U * L, k = L * P + D % Zn * Zn + F, F = (k / B | 0) + (D / Zn | 0) + $ * U, T[R] = k % B;
|
|
1377
|
+
return F && (T = [F].concat(T)), T;
|
|
1378
1378
|
}
|
|
1379
|
-
function b(
|
|
1379
|
+
function b(T, I, B, D) {
|
|
1380
1380
|
var k, P;
|
|
1381
1381
|
if (B != D)
|
|
1382
1382
|
P = B > D ? 1 : -1;
|
|
1383
1383
|
else
|
|
1384
1384
|
for (k = P = 0; k < B; k++)
|
|
1385
|
-
if (
|
|
1386
|
-
P =
|
|
1385
|
+
if (T[k] != I[k]) {
|
|
1386
|
+
P = T[k] > I[k] ? 1 : -1;
|
|
1387
1387
|
break;
|
|
1388
1388
|
}
|
|
1389
1389
|
return P;
|
|
1390
1390
|
}
|
|
1391
|
-
function x(
|
|
1391
|
+
function x(T, I, B, D) {
|
|
1392
1392
|
for (var k = 0; B--; )
|
|
1393
|
-
|
|
1394
|
-
for (; !
|
|
1393
|
+
T[B] -= k, k = T[B] < I[B] ? 1 : 0, T[B] = k * D + T[B] - I[B];
|
|
1394
|
+
for (; !T[0] && T.length > 1; T.splice(0, 1)) ;
|
|
1395
1395
|
}
|
|
1396
|
-
return function(
|
|
1397
|
-
var P, U, F, R, L, $, Z, pe, be, ie, de, Be, K, xe, Ue, ze, st, Ae =
|
|
1396
|
+
return function(T, I, B, D, k) {
|
|
1397
|
+
var P, U, F, R, L, $, Z, pe, be, ie, de, Be, K, xe, Ue, ze, st, Ae = T.s == I.s ? 1 : -1, we = T.c, ye = I.c;
|
|
1398
1398
|
if (!we || !we[0] || !ye || !ye[0])
|
|
1399
1399
|
return new w(
|
|
1400
1400
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
1401
|
-
!
|
|
1401
|
+
!T.s || !I.s || (we ? ye && we[0] == ye[0] : !ye) ? NaN : (
|
|
1402
1402
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
1403
1403
|
we && we[0] == 0 || !ye ? Ae * 0 : Ae / 0
|
|
1404
1404
|
)
|
|
1405
1405
|
);
|
|
1406
|
-
for (pe = new w(Ae), be = pe.c = [], U =
|
|
1406
|
+
for (pe = new w(Ae), be = pe.c = [], U = T.e - I.e, Ae = B + U + 1, k || (k = Dr, U = Er(T.e / ve) - Er(I.e / ve), Ae = Ae / ve | 0), F = 0; ye[F] == (we[F] || 0); F++) ;
|
|
1407
1407
|
if (ye[F] > (we[F] || 0) && U--, Ae < 0)
|
|
1408
1408
|
be.push(1), R = !0;
|
|
1409
1409
|
else {
|
|
@@ -1432,35 +1432,35 @@ function fb(e) {
|
|
|
1432
1432
|
return pe;
|
|
1433
1433
|
};
|
|
1434
1434
|
})();
|
|
1435
|
-
function A(h, b, x,
|
|
1435
|
+
function A(h, b, x, T) {
|
|
1436
1436
|
var I, B, D, k, P;
|
|
1437
1437
|
if (x == null ? x = i : lt(x, 0, 8), !h.c) return h.toString();
|
|
1438
1438
|
if (I = h.c[0], D = h.e, b == null)
|
|
1439
|
-
P = xr(h.c), P =
|
|
1440
|
-
else if (h = N(new w(h), b, x), B = h.e, P = xr(h.c), k = P.length,
|
|
1439
|
+
P = xr(h.c), P = T == 1 || T == 2 && (D <= c || D >= l) ? Uc(P, D) : gn(P, D, "0");
|
|
1440
|
+
else if (h = N(new w(h), b, x), B = h.e, P = xr(h.c), k = P.length, T == 1 || T == 2 && (b <= B || B <= c)) {
|
|
1441
1441
|
for (; k < b; P += "0", k++) ;
|
|
1442
1442
|
P = Uc(P, B);
|
|
1443
|
-
} else if (b -= D + (
|
|
1443
|
+
} else if (b -= D + (T === 2 && B > D), P = gn(P, B, "0"), B + 1 > k) {
|
|
1444
1444
|
if (--b > 0) for (P += "."; b--; P += "0") ;
|
|
1445
1445
|
} else if (b += B - k, b > 0)
|
|
1446
1446
|
for (B + 1 == k && (P += "."); b--; P += "0") ;
|
|
1447
1447
|
return h.s < 0 && I ? "-" + P : P;
|
|
1448
1448
|
}
|
|
1449
1449
|
function C(h, b) {
|
|
1450
|
-
for (var x,
|
|
1451
|
-
|
|
1450
|
+
for (var x, T, I = 1, B = new w(h[0]); I < h.length; I++)
|
|
1451
|
+
T = new w(h[I]), (!T.s || (x = Us(B, T)) === b || x === 0 && B.s === b) && (B = T);
|
|
1452
1452
|
return B;
|
|
1453
1453
|
}
|
|
1454
1454
|
function O(h, b, x) {
|
|
1455
|
-
for (var
|
|
1456
|
-
for (I = b[0]; I >= 10; I /= 10,
|
|
1457
|
-
return (x =
|
|
1455
|
+
for (var T = 1, I = b.length; !b[--I]; b.pop()) ;
|
|
1456
|
+
for (I = b[0]; I >= 10; I /= 10, T++) ;
|
|
1457
|
+
return (x = T + x * ve - 1) > d ? h.c = h.e = null : x < u ? h.c = [h.e = 0] : (h.e = x, h.c = b), h;
|
|
1458
1458
|
}
|
|
1459
1459
|
n = /* @__PURE__ */ (function() {
|
|
1460
|
-
var h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, b = /^([^.]+)\.$/, x = /^\.([^.]+)$/,
|
|
1460
|
+
var h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, b = /^([^.]+)\.$/, x = /^\.([^.]+)$/, T = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
1461
1461
|
return function(B, D, k, P) {
|
|
1462
1462
|
var U, F = k ? D : D.replace(I, "");
|
|
1463
|
-
if (
|
|
1463
|
+
if (T.test(F))
|
|
1464
1464
|
B.s = isNaN(F) ? null : F < 0 ? -1 : 1;
|
|
1465
1465
|
else {
|
|
1466
1466
|
if (!k && (F = F.replace(h, function(R, L, $) {
|
|
@@ -1474,7 +1474,7 @@ function fb(e) {
|
|
|
1474
1474
|
B.c = B.e = null;
|
|
1475
1475
|
};
|
|
1476
1476
|
})();
|
|
1477
|
-
function N(h, b, x,
|
|
1477
|
+
function N(h, b, x, T) {
|
|
1478
1478
|
var I, B, D, k, P, U, F, R = h.c, L = nd;
|
|
1479
1479
|
if (R) {
|
|
1480
1480
|
e: {
|
|
@@ -1482,7 +1482,7 @@ function fb(e) {
|
|
|
1482
1482
|
if (B = b - I, B < 0)
|
|
1483
1483
|
B += ve, D = b, P = R[U = 0], F = vr(P / L[I - D - 1] % 10);
|
|
1484
1484
|
else if (U = td((B + 1) / ve), U >= R.length)
|
|
1485
|
-
if (
|
|
1485
|
+
if (T) {
|
|
1486
1486
|
for (; R.length <= U; R.push(0)) ;
|
|
1487
1487
|
P = F = 0, I = 1, B %= ve, D = B - ve + 1;
|
|
1488
1488
|
} else
|
|
@@ -1491,13 +1491,13 @@ function fb(e) {
|
|
|
1491
1491
|
for (P = k = R[U], I = 1; k >= 10; k /= 10, I++) ;
|
|
1492
1492
|
B %= ve, D = B - ve + I, F = D < 0 ? 0 : vr(P / L[I - D - 1] % 10);
|
|
1493
1493
|
}
|
|
1494
|
-
if (
|
|
1494
|
+
if (T = T || b < 0 || // Are there any non-zero digits after the rounding digit?
|
|
1495
1495
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
1496
1496
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
1497
|
-
R[U + 1] != null || (D < 0 ? P : P % L[I - D - 1]),
|
|
1497
|
+
R[U + 1] != null || (D < 0 ? P : P % L[I - D - 1]), T = x < 4 ? (F || T) && (x == 0 || x == (h.s < 0 ? 3 : 2)) : F > 5 || F == 5 && (x == 4 || T || x == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
1498
1498
|
(B > 0 ? D > 0 ? P / L[I - D] : 0 : R[U - 1]) % 10 & 1 || x == (h.s < 0 ? 8 : 7)), b < 1 || !R[0])
|
|
1499
|
-
return R.length = 0,
|
|
1500
|
-
if (B == 0 ? (R.length = U, k = 1, U--) : (R.length = U + 1, k = L[ve - B], R[U] = D > 0 ? vr(P / L[I - D] % L[D]) * k : 0),
|
|
1499
|
+
return R.length = 0, T ? (b -= h.e + 1, R[0] = L[(ve - b % ve) % ve], h.e = -b || 0) : R[0] = h.e = 0, h;
|
|
1500
|
+
if (B == 0 ? (R.length = U, k = 1, U--) : (R.length = U + 1, k = L[ve - B], R[U] = D > 0 ? vr(P / L[I - D] % L[D]) * k : 0), T)
|
|
1501
1501
|
for (; ; )
|
|
1502
1502
|
if (U == 0) {
|
|
1503
1503
|
for (B = 1, D = R[0]; D >= 10; D /= 10, B++) ;
|
|
@@ -1514,7 +1514,7 @@ function fb(e) {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
return h;
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function S(h) {
|
|
1518
1518
|
var b, x = h.e;
|
|
1519
1519
|
return x === null ? h.toString() : (b = xr(h.c), b = x <= c || x >= l ? Uc(b, x) : gn(b, x, "0"), h.s < 0 ? "-" + b : b);
|
|
1520
1520
|
}
|
|
@@ -1524,34 +1524,34 @@ function fb(e) {
|
|
|
1524
1524
|
}, s.comparedTo = function(h, b) {
|
|
1525
1525
|
return Us(this, new w(h, b));
|
|
1526
1526
|
}, s.decimalPlaces = s.dp = function(h, b) {
|
|
1527
|
-
var x,
|
|
1527
|
+
var x, T, I, B = this;
|
|
1528
1528
|
if (h != null)
|
|
1529
1529
|
return lt(h, 0, Pt), b == null ? b = i : lt(b, 0, 8), N(new w(B), h + B.e + 1, b);
|
|
1530
1530
|
if (!(x = B.c)) return null;
|
|
1531
|
-
if (
|
|
1532
|
-
return
|
|
1531
|
+
if (T = ((I = x.length - 1) - Er(this.e / ve)) * ve, I = x[I]) for (; I % 10 == 0; I /= 10, T--) ;
|
|
1532
|
+
return T < 0 && (T = 0), T;
|
|
1533
1533
|
}, s.dividedBy = s.div = function(h, b) {
|
|
1534
1534
|
return t(this, new w(h, b), o, i);
|
|
1535
1535
|
}, s.dividedToIntegerBy = s.idiv = function(h, b) {
|
|
1536
1536
|
return t(this, new w(h, b), 0, 1);
|
|
1537
1537
|
}, s.exponentiatedBy = s.pow = function(h, b) {
|
|
1538
|
-
var x,
|
|
1538
|
+
var x, T, I, B, D, k, P, U, F, R = this;
|
|
1539
1539
|
if (h = new w(h), h.c && !h.isInteger())
|
|
1540
|
-
throw Error(Yt + "Exponent not an integer: " +
|
|
1540
|
+
throw Error(Yt + "Exponent not an integer: " + S(h));
|
|
1541
1541
|
if (b != null && (b = new w(b)), k = h.e > 14, !R.c || !R.c[0] || R.c[0] == 1 && !R.e && R.c.length == 1 || !h.c || !h.c[0])
|
|
1542
|
-
return F = new w(Math.pow(+
|
|
1542
|
+
return F = new w(Math.pow(+S(R), k ? h.s * (2 - Fc(h)) : +S(h))), b ? F.mod(b) : F;
|
|
1543
1543
|
if (P = h.s < 0, b) {
|
|
1544
1544
|
if (b.c ? !b.c[0] : !b.s) return new w(NaN);
|
|
1545
|
-
|
|
1545
|
+
T = !P && R.isInteger() && b.isInteger(), T && (R = R.mod(b));
|
|
1546
1546
|
} else {
|
|
1547
1547
|
if (h.e > 9 && (R.e > 0 || R.e < -1 || (R.e == 0 ? R.c[0] > 1 || k && R.c[1] >= 24e7 : R.c[0] < 8e13 || k && R.c[0] <= 9999975e7)))
|
|
1548
1548
|
return B = R.s < 0 && Fc(h) ? -0 : 0, R.e > -1 && (B = 1 / B), new w(P ? 1 / B : B);
|
|
1549
1549
|
y && (B = td(y / ve + 2));
|
|
1550
1550
|
}
|
|
1551
|
-
for (k ? (x = new w(0.5), P && (h.s = 1), U = Fc(h)) : (I = Math.abs(+
|
|
1551
|
+
for (k ? (x = new w(0.5), P && (h.s = 1), U = Fc(h)) : (I = Math.abs(+S(h)), U = I % 2), F = new w(a); ; ) {
|
|
1552
1552
|
if (U) {
|
|
1553
1553
|
if (F = F.times(R), !F.c) break;
|
|
1554
|
-
B ? F.c.length > B && (F.c.length = B) :
|
|
1554
|
+
B ? F.c.length > B && (F.c.length = B) : T && (F = F.mod(b));
|
|
1555
1555
|
}
|
|
1556
1556
|
if (I) {
|
|
1557
1557
|
if (I = vr(I / 2), I === 0) break;
|
|
@@ -1559,12 +1559,12 @@ function fb(e) {
|
|
|
1559
1559
|
} else if (h = h.times(x), N(h, h.e + 1, 1), h.e > 14)
|
|
1560
1560
|
U = Fc(h);
|
|
1561
1561
|
else {
|
|
1562
|
-
if (I = +
|
|
1562
|
+
if (I = +S(h), I === 0) break;
|
|
1563
1563
|
U = I % 2;
|
|
1564
1564
|
}
|
|
1565
|
-
R = R.times(R), B ? R.c && R.c.length > B && (R.c.length = B) :
|
|
1565
|
+
R = R.times(R), B ? R.c && R.c.length > B && (R.c.length = B) : T && (R = R.mod(b));
|
|
1566
1566
|
}
|
|
1567
|
-
return
|
|
1567
|
+
return T ? F : (P && (F = a.div(F)), b ? F.mod(b) : B ? N(F, y, i, D) : F);
|
|
1568
1568
|
}, s.integerValue = function(h) {
|
|
1569
1569
|
var b = new w(this);
|
|
1570
1570
|
return h == null ? h = i : lt(h, 0, 8), N(b, b.e + 1, h);
|
|
@@ -1591,7 +1591,7 @@ function fb(e) {
|
|
|
1591
1591
|
}, s.isZero = function() {
|
|
1592
1592
|
return !!this.c && this.c[0] == 0;
|
|
1593
1593
|
}, s.minus = function(h, b) {
|
|
1594
|
-
var x,
|
|
1594
|
+
var x, T, I, B, D = this, k = D.s;
|
|
1595
1595
|
if (h = new w(h, b), b = h.s, !k || !b) return new w(NaN);
|
|
1596
1596
|
if (k != b)
|
|
1597
1597
|
return h.s = -b, D.plus(h);
|
|
@@ -1608,47 +1608,47 @@ function fb(e) {
|
|
|
1608
1608
|
for ((B = k < 0) ? (k = -k, I = F) : (U = P, I = R), I.reverse(), b = k; b--; I.push(0)) ;
|
|
1609
1609
|
I.reverse();
|
|
1610
1610
|
} else
|
|
1611
|
-
for (
|
|
1611
|
+
for (T = (B = (k = F.length) < (b = R.length)) ? k : b, k = b = 0; b < T; b++)
|
|
1612
1612
|
if (F[b] != R[b]) {
|
|
1613
1613
|
B = F[b] < R[b];
|
|
1614
1614
|
break;
|
|
1615
1615
|
}
|
|
1616
|
-
if (B && (I = F, F = R, R = I, h.s = -h.s), b = (
|
|
1617
|
-
for (b = Dr - 1;
|
|
1618
|
-
if (F[--
|
|
1619
|
-
for (x =
|
|
1620
|
-
--F[x], F[
|
|
1616
|
+
if (B && (I = F, F = R, R = I, h.s = -h.s), b = (T = R.length) - (x = F.length), b > 0) for (; b--; F[x++] = 0) ;
|
|
1617
|
+
for (b = Dr - 1; T > k; ) {
|
|
1618
|
+
if (F[--T] < R[T]) {
|
|
1619
|
+
for (x = T; x && !F[--x]; F[x] = b) ;
|
|
1620
|
+
--F[x], F[T] += Dr;
|
|
1621
1621
|
}
|
|
1622
|
-
F[
|
|
1622
|
+
F[T] -= R[T];
|
|
1623
1623
|
}
|
|
1624
1624
|
for (; F[0] == 0; F.splice(0, 1), --U) ;
|
|
1625
1625
|
return F[0] ? O(h, F, U) : (h.s = i == 3 ? -1 : 1, h.c = [h.e = 0], h);
|
|
1626
1626
|
}, s.modulo = s.mod = function(h, b) {
|
|
1627
|
-
var x,
|
|
1628
|
-
return h = new w(h, b), !I.c || !h.s || h.c && !h.c[0] ? new w(NaN) : !h.c || I.c && !I.c[0] ? new w(I) : (m == 9 ? (
|
|
1627
|
+
var x, T, I = this;
|
|
1628
|
+
return h = new w(h, b), !I.c || !h.s || h.c && !h.c[0] ? new w(NaN) : !h.c || I.c && !I.c[0] ? new w(I) : (m == 9 ? (T = h.s, h.s = 1, x = t(I, h, 0, 3), h.s = T, x.s *= T) : x = t(I, h, 0, m), h = I.minus(x.times(h)), !h.c[0] && m == 1 && (h.s = I.s), h);
|
|
1629
1629
|
}, s.multipliedBy = s.times = function(h, b) {
|
|
1630
|
-
var x,
|
|
1630
|
+
var x, T, I, B, D, k, P, U, F, R, L, $, Z, pe, be, ie = this, de = ie.c, Be = (h = new w(h, b)).c;
|
|
1631
1631
|
if (!de || !Be || !de[0] || !Be[0])
|
|
1632
1632
|
return !ie.s || !h.s || de && !de[0] && !Be || Be && !Be[0] && !de ? h.c = h.e = h.s = null : (h.s *= ie.s, !de || !Be ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
|
|
1633
|
-
for (
|
|
1633
|
+
for (T = Er(ie.e / ve) + Er(h.e / ve), h.s *= ie.s, P = de.length, R = Be.length, P < R && (Z = de, de = Be, Be = Z, I = P, P = R, R = I), I = P + R, Z = []; I--; Z.push(0)) ;
|
|
1634
1634
|
for (pe = Dr, be = Zn, I = R; --I >= 0; ) {
|
|
1635
1635
|
for (x = 0, L = Be[I] % be, $ = Be[I] / be | 0, D = P, B = I + D; B > I; )
|
|
1636
1636
|
U = de[--D] % be, F = de[D] / be | 0, k = $ * U + F * L, U = L * U + k % be * be + Z[B] + x, x = (U / pe | 0) + (k / be | 0) + $ * F, Z[B--] = U % pe;
|
|
1637
1637
|
Z[B] = x;
|
|
1638
1638
|
}
|
|
1639
|
-
return x ? ++
|
|
1639
|
+
return x ? ++T : Z.splice(0, 1), O(h, Z, T);
|
|
1640
1640
|
}, s.negated = function() {
|
|
1641
1641
|
var h = new w(this);
|
|
1642
1642
|
return h.s = -h.s || null, h;
|
|
1643
1643
|
}, s.plus = function(h, b) {
|
|
1644
|
-
var x,
|
|
1644
|
+
var x, T = this, I = T.s;
|
|
1645
1645
|
if (h = new w(h, b), b = h.s, !I || !b) return new w(NaN);
|
|
1646
1646
|
if (I != b)
|
|
1647
|
-
return h.s = -b,
|
|
1648
|
-
var B =
|
|
1647
|
+
return h.s = -b, T.minus(h);
|
|
1648
|
+
var B = T.e / ve, D = h.e / ve, k = T.c, P = h.c;
|
|
1649
1649
|
if (!B || !D) {
|
|
1650
1650
|
if (!k || !P) return new w(I / 0);
|
|
1651
|
-
if (!k[0] || !P[0]) return P[0] ? h : new w(k[0] ?
|
|
1651
|
+
if (!k[0] || !P[0]) return P[0] ? h : new w(k[0] ? T : I * 0);
|
|
1652
1652
|
}
|
|
1653
1653
|
if (B = Er(B), D = Er(D), k = k.slice(), I = B - D) {
|
|
1654
1654
|
for (I > 0 ? (D = B, x = P) : (I = -I, x = k), x.reverse(); I--; x.push(0)) ;
|
|
@@ -1658,30 +1658,30 @@ function fb(e) {
|
|
|
1658
1658
|
I = (k[--b] = k[b] + P[b] + I) / Dr | 0, k[b] = Dr === k[b] ? 0 : k[b] % Dr;
|
|
1659
1659
|
return I && (k = [I].concat(k), ++D), O(h, k, D);
|
|
1660
1660
|
}, s.precision = s.sd = function(h, b) {
|
|
1661
|
-
var x,
|
|
1661
|
+
var x, T, I, B = this;
|
|
1662
1662
|
if (h != null && h !== !!h)
|
|
1663
1663
|
return lt(h, 1, Pt), b == null ? b = i : lt(b, 0, 8), N(new w(B), h, b);
|
|
1664
1664
|
if (!(x = B.c)) return null;
|
|
1665
|
-
if (I = x.length - 1,
|
|
1666
|
-
for (; I % 10 == 0; I /= 10,
|
|
1667
|
-
for (I = x[0]; I >= 10; I /= 10,
|
|
1665
|
+
if (I = x.length - 1, T = I * ve + 1, I = x[I]) {
|
|
1666
|
+
for (; I % 10 == 0; I /= 10, T--) ;
|
|
1667
|
+
for (I = x[0]; I >= 10; I /= 10, T++) ;
|
|
1668
1668
|
}
|
|
1669
|
-
return h && B.e + 1 >
|
|
1669
|
+
return h && B.e + 1 > T && (T = B.e + 1), T;
|
|
1670
1670
|
}, s.shiftedBy = function(h) {
|
|
1671
1671
|
return lt(h, -rd, rd), this.times("1e" + h);
|
|
1672
1672
|
}, s.squareRoot = s.sqrt = function() {
|
|
1673
|
-
var h, b, x,
|
|
1673
|
+
var h, b, x, T, I, B = this, D = B.c, k = B.s, P = B.e, U = o + 4, F = new w("0.5");
|
|
1674
1674
|
if (k !== 1 || !D || !D[0])
|
|
1675
1675
|
return new w(!k || k < 0 && (!D || D[0]) ? NaN : D ? B : 1 / 0);
|
|
1676
|
-
if (k = Math.sqrt(+
|
|
1676
|
+
if (k = Math.sqrt(+S(B)), k == 0 || k == 1 / 0 ? (b = xr(D), (b.length + P) % 2 == 0 && (b += "0"), k = Math.sqrt(+b), P = Er((P + 1) / 2) - (P < 0 || P % 2), k == 1 / 0 ? b = "5e" + P : (b = k.toExponential(), b = b.slice(0, b.indexOf("e") + 1) + P), x = new w(b)) : x = new w(k + ""), x.c[0]) {
|
|
1677
1677
|
for (P = x.e, k = P + U, k < 3 && (k = 0); ; )
|
|
1678
1678
|
if (I = x, x = F.times(I.plus(t(B, I, U, 1))), xr(I.c).slice(0, k) === (b = xr(x.c)).slice(0, k))
|
|
1679
|
-
if (x.e < P && --k, b = b.slice(k - 3, k + 1), b == "9999" || !
|
|
1680
|
-
if (!
|
|
1679
|
+
if (x.e < P && --k, b = b.slice(k - 3, k + 1), b == "9999" || !T && b == "4999") {
|
|
1680
|
+
if (!T && (N(I, I.e + o + 2, 0), I.times(I).eq(B))) {
|
|
1681
1681
|
x = I;
|
|
1682
1682
|
break;
|
|
1683
1683
|
}
|
|
1684
|
-
U += 4, k += 4,
|
|
1684
|
+
U += 4, k += 4, T = 1;
|
|
1685
1685
|
} else {
|
|
1686
1686
|
(!+b || !+b.slice(1) && b.charAt(0) == "5") && (N(x, x.e + o + 2, 1), h = !x.times(x).eq(B));
|
|
1687
1687
|
break;
|
|
@@ -1693,42 +1693,42 @@ function fb(e) {
|
|
|
1693
1693
|
}, s.toFixed = function(h, b) {
|
|
1694
1694
|
return h != null && (lt(h, 0, Pt), h = h + this.e + 1), A(this, h, b);
|
|
1695
1695
|
}, s.toFormat = function(h, b, x) {
|
|
1696
|
-
var
|
|
1696
|
+
var T, I = this;
|
|
1697
1697
|
if (x == null)
|
|
1698
1698
|
h != null && b && typeof b == "object" ? (x = b, b = null) : h && typeof h == "object" ? (x = h, h = b = null) : x = g;
|
|
1699
1699
|
else if (typeof x != "object")
|
|
1700
1700
|
throw Error(Yt + "Argument not an object: " + x);
|
|
1701
|
-
if (
|
|
1702
|
-
var B, D =
|
|
1701
|
+
if (T = I.toFixed(h, b), I.c) {
|
|
1702
|
+
var B, D = T.split("."), k = +x.groupSize, P = +x.secondaryGroupSize, U = x.groupSeparator || "", F = D[0], R = D[1], L = I.s < 0, $ = L ? F.slice(1) : F, Z = $.length;
|
|
1703
1703
|
if (P && (B = k, k = P, P = B, Z -= B), k > 0 && Z > 0) {
|
|
1704
1704
|
for (B = Z % k || k, F = $.substr(0, B); B < Z; B += k) F += U + $.substr(B, k);
|
|
1705
1705
|
P > 0 && (F += U + $.slice(B)), L && (F = "-" + F);
|
|
1706
1706
|
}
|
|
1707
|
-
|
|
1707
|
+
T = R ? F + (x.decimalSeparator || "") + ((P = +x.fractionGroupSize) ? R.replace(
|
|
1708
1708
|
new RegExp("\\d{" + P + "}\\B", "g"),
|
|
1709
1709
|
"$&" + (x.fractionGroupSeparator || "")
|
|
1710
1710
|
) : R) : F;
|
|
1711
1711
|
}
|
|
1712
|
-
return (x.prefix || "") +
|
|
1712
|
+
return (x.prefix || "") + T + (x.suffix || "");
|
|
1713
1713
|
}, s.toFraction = function(h) {
|
|
1714
|
-
var b, x,
|
|
1714
|
+
var b, x, T, I, B, D, k, P, U, F, R, L, $ = this, Z = $.c;
|
|
1715
1715
|
if (h != null && (k = new w(h), !k.isInteger() && (k.c || k.s !== 1) || k.lt(a)))
|
|
1716
|
-
throw Error(Yt + "Argument " + (k.isInteger() ? "out of range: " : "not an integer: ") +
|
|
1716
|
+
throw Error(Yt + "Argument " + (k.isInteger() ? "out of range: " : "not an integer: ") + S(k));
|
|
1717
1717
|
if (!Z) return new w($);
|
|
1718
|
-
for (b = new w(a), U = x = new w(a),
|
|
1719
|
-
x =
|
|
1720
|
-
return I = t(h.minus(x),
|
|
1718
|
+
for (b = new w(a), U = x = new w(a), T = P = new w(a), L = xr(Z), B = b.e = L.length - $.e - 1, b.c[0] = nd[(D = B % ve) < 0 ? ve + D : D], h = !h || k.comparedTo(b) > 0 ? B > 0 ? b : U : k, D = d, d = 1 / 0, k = new w(L), P.c[0] = 0; F = t(k, b, 0, 1), I = x.plus(F.times(T)), I.comparedTo(h) != 1; )
|
|
1719
|
+
x = T, T = I, U = P.plus(F.times(I = U)), P = I, b = k.minus(F.times(I = b)), k = I;
|
|
1720
|
+
return I = t(h.minus(x), T, 0, 1), P = P.plus(I.times(U)), x = x.plus(I.times(T)), P.s = U.s = $.s, B = B * 2, R = t(U, T, B, i).minus($).abs().comparedTo(
|
|
1721
1721
|
t(P, x, B, i).minus($).abs()
|
|
1722
|
-
) < 1 ? [U,
|
|
1722
|
+
) < 1 ? [U, T] : [P, x], d = D, R;
|
|
1723
1723
|
}, s.toNumber = function() {
|
|
1724
|
-
return +
|
|
1724
|
+
return +S(this);
|
|
1725
1725
|
}, s.toPrecision = function(h, b) {
|
|
1726
1726
|
return h != null && lt(h, 1, Pt), A(this, h, b, 2);
|
|
1727
1727
|
}, s.toString = function(h) {
|
|
1728
|
-
var b, x = this,
|
|
1729
|
-
return I === null ?
|
|
1728
|
+
var b, x = this, T = x.s, I = x.e;
|
|
1729
|
+
return I === null ? T ? (b = "Infinity", T < 0 && (b = "-" + b)) : b = "NaN" : (h == null ? b = I <= c || I >= l ? Uc(xr(x.c), I) : gn(xr(x.c), I, "0") : h === 10 && v ? (x = N(new w(x), o + I + 1, i), b = gn(xr(x.c), x.e, "0")) : (lt(h, 2, E.length, "Base"), b = r(gn(xr(x.c), I, "0"), 10, h, T, !0)), T < 0 && x.c[0] && (b = "-" + b)), b;
|
|
1730
1730
|
}, s.valueOf = s.toJSON = function() {
|
|
1731
|
-
return
|
|
1731
|
+
return S(this);
|
|
1732
1732
|
}, s._isBigNumber = !0, s[Symbol.toStringTag] = "BigNumber", s[Symbol.for("nodejs.util.inspect.custom")] = s.valueOf, e != null && w.set(e), w;
|
|
1733
1733
|
}
|
|
1734
1734
|
function Er(e) {
|
|
@@ -2938,7 +2938,7 @@ const Yw = async ({
|
|
|
2938
2938
|
}) => (await Promise.all([
|
|
2939
2939
|
s ? Yw({ chainId: r, signal: e, page: t, limit: n, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
|
|
2940
2940
|
zw({ chainId: r, signal: e, account: a, exchange: s == null ? void 0 : s.adapter })
|
|
2941
|
-
]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Jw = "0.0.
|
|
2941
|
+
]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Jw = "0.0.84", e3 = {
|
|
2942
2942
|
version: Jw
|
|
2943
2943
|
};
|
|
2944
2944
|
var yo = class {
|
|
@@ -3527,12 +3527,12 @@ var Hs, ab, Pb = (ab = class {
|
|
|
3527
3527
|
});
|
|
3528
3528
|
}, a = () => {
|
|
3529
3529
|
const C = Cb(this.options, r), N = (() => {
|
|
3530
|
-
const
|
|
3530
|
+
const S = {
|
|
3531
3531
|
client: _(this, js),
|
|
3532
3532
|
queryKey: this.queryKey,
|
|
3533
3533
|
meta: this.meta
|
|
3534
3534
|
};
|
|
3535
|
-
return s(
|
|
3535
|
+
return s(S), S;
|
|
3536
3536
|
})();
|
|
3537
3537
|
return X(this, Vs, !1), this.options.persister ? this.options.persister(
|
|
3538
3538
|
C,
|
|
@@ -3828,8 +3828,8 @@ var Xt, Oe, Vi, Gt, Ws, Za, Pn, as, Wi, Xa, Qa, qs, Ks, os, Ja, qe, Yo, dp, pp,
|
|
|
3828
3828
|
const n = _(this, Oe), s = this.options, a = _(this, Gt), o = _(this, Ws), i = _(this, Za), l = t !== n ? t.state : _(this, Vi), { state: u } = t;
|
|
3829
3829
|
let d = { ...u }, f = !1, m;
|
|
3830
3830
|
if (r._optimisticResults) {
|
|
3831
|
-
const x = this.hasListeners(),
|
|
3832
|
-
(
|
|
3831
|
+
const x = this.hasListeners(), T = !x && Zm(t, r), I = x && Xm(t, n, r, s);
|
|
3832
|
+
(T || I) && (d = {
|
|
3833
3833
|
...d,
|
|
3834
3834
|
...Ib(u.data, t.options)
|
|
3835
3835
|
}), r._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
@@ -3889,7 +3889,7 @@ var Xt, Oe, Vi, Gt, Ws, Za, Pn, as, Wi, Xa, Qa, qs, Ks, os, Ja, qe, Yo, dp, pp,
|
|
|
3889
3889
|
if (this.options.experimental_prefetchInRender) {
|
|
3890
3890
|
const x = (B) => {
|
|
3891
3891
|
h.status === "error" ? B.reject(h.error) : h.data !== void 0 && B.resolve(h.data);
|
|
3892
|
-
},
|
|
3892
|
+
}, T = () => {
|
|
3893
3893
|
const B = X(this, Pn, h.promise = lp());
|
|
3894
3894
|
x(B);
|
|
3895
3895
|
}, I = _(this, Pn);
|
|
@@ -3898,10 +3898,10 @@ var Xt, Oe, Vi, Gt, Ws, Za, Pn, as, Wi, Xa, Qa, qs, Ks, os, Ja, qe, Yo, dp, pp,
|
|
|
3898
3898
|
t.queryHash === n.queryHash && x(I);
|
|
3899
3899
|
break;
|
|
3900
3900
|
case "fulfilled":
|
|
3901
|
-
(h.status === "error" || h.data !== I.value) &&
|
|
3901
|
+
(h.status === "error" || h.data !== I.value) && T();
|
|
3902
3902
|
break;
|
|
3903
3903
|
case "rejected":
|
|
3904
|
-
(h.status !== "error" || h.error !== I.reason) &&
|
|
3904
|
+
(h.status !== "error" || h.error !== I.reason) && T();
|
|
3905
3905
|
break;
|
|
3906
3906
|
}
|
|
3907
3907
|
}
|
|
@@ -4020,16 +4020,16 @@ function Qm(e) {
|
|
|
4020
4020
|
return Promise.reject();
|
|
4021
4021
|
if (C == null && A.pages.length)
|
|
4022
4022
|
return Promise.resolve(A);
|
|
4023
|
-
const
|
|
4024
|
-
const
|
|
4023
|
+
const S = (() => {
|
|
4024
|
+
const T = {
|
|
4025
4025
|
client: t.client,
|
|
4026
4026
|
queryKey: t.queryKey,
|
|
4027
4027
|
pageParam: C,
|
|
4028
4028
|
direction: O ? "backward" : "forward",
|
|
4029
4029
|
meta: t.options.meta
|
|
4030
4030
|
};
|
|
4031
|
-
return E(
|
|
4032
|
-
})(), h = await v(
|
|
4031
|
+
return E(T), T;
|
|
4032
|
+
})(), h = await v(S), { maxPages: b } = t.options, x = O ? c3 : i3;
|
|
4033
4033
|
return {
|
|
4034
4034
|
pages: x(A.pages, h, b),
|
|
4035
4035
|
pageParams: x(A.pageParams, C, b)
|
|
@@ -4121,7 +4121,7 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
|
|
|
4121
4121
|
this.execute(this.state.variables);
|
|
4122
4122
|
}
|
|
4123
4123
|
async execute(t) {
|
|
4124
|
-
var o, i, c, l, u, d, f, m, y, g, E, v, w, A, C, O, N,
|
|
4124
|
+
var o, i, c, l, u, d, f, m, y, g, E, v, w, A, C, O, N, S, h, b;
|
|
4125
4125
|
const r = () => {
|
|
4126
4126
|
Se(this, rn, ts).call(this, { type: "continue" });
|
|
4127
4127
|
}, n = {
|
|
@@ -4131,8 +4131,8 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
|
|
|
4131
4131
|
};
|
|
4132
4132
|
X(this, Ys, Sb({
|
|
4133
4133
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t, n) : Promise.reject(new Error("No mutationFn found")),
|
|
4134
|
-
onFail: (x,
|
|
4135
|
-
Se(this, rn, ts).call(this, { type: "failed", failureCount: x, error:
|
|
4134
|
+
onFail: (x, T) => {
|
|
4135
|
+
Se(this, rn, ts).call(this, { type: "failed", failureCount: x, error: T });
|
|
4136
4136
|
},
|
|
4137
4137
|
onPause: () => {
|
|
4138
4138
|
Se(this, rn, ts).call(this, { type: "pause" });
|
|
@@ -4154,14 +4154,14 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
|
|
|
4154
4154
|
this,
|
|
4155
4155
|
n
|
|
4156
4156
|
));
|
|
4157
|
-
const
|
|
4157
|
+
const T = await ((l = (c = this.options).onMutate) == null ? void 0 : l.call(
|
|
4158
4158
|
c,
|
|
4159
4159
|
t,
|
|
4160
4160
|
n
|
|
4161
4161
|
));
|
|
4162
|
-
|
|
4162
|
+
T !== this.state.context && Se(this, rn, ts).call(this, {
|
|
4163
4163
|
type: "pending",
|
|
4164
|
-
context:
|
|
4164
|
+
context: T,
|
|
4165
4165
|
variables: t,
|
|
4166
4166
|
isPaused: a
|
|
4167
4167
|
});
|
|
@@ -4211,7 +4211,7 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
|
|
|
4211
4211
|
t,
|
|
4212
4212
|
this.state.context,
|
|
4213
4213
|
n
|
|
4214
|
-
)), await ((
|
|
4214
|
+
)), await ((S = (N = _(this, jt).config).onSettled) == null ? void 0 : S.call(
|
|
4215
4215
|
N,
|
|
4216
4216
|
void 0,
|
|
4217
4217
|
x,
|
|
@@ -5029,7 +5029,7 @@ const rh = (e) => {
|
|
|
5029
5029
|
disclaimerAccepted: !0,
|
|
5030
5030
|
currentTime: Date.now(),
|
|
5031
5031
|
swapExecution: {}
|
|
5032
|
-
},
|
|
5032
|
+
}, J = G3((e, t) => ({
|
|
5033
5033
|
state: nh,
|
|
5034
5034
|
updateState: (r) => e((n) => ({ state: { ...n.state, ...r } })),
|
|
5035
5035
|
updateSwapExecution: (r) => e((n) => ({ state: { ...n.state, swapExecution: { ...n.state.swapExecution, ...r } } })),
|
|
@@ -9513,15 +9513,15 @@ class My extends Dy {
|
|
|
9513
9513
|
for (let A = 0; A < 16; A++, r += 4)
|
|
9514
9514
|
Jn[A] = t.getUint32(r), es[A] = t.getUint32(r += 4);
|
|
9515
9515
|
for (let A = 16; A < 80; A++) {
|
|
9516
|
-
const C = Jn[A - 15] | 0, O = es[A - 15] | 0, N = va(C, O, 1) ^ va(C, O, 8) ^ gh(C, O, 7),
|
|
9516
|
+
const C = Jn[A - 15] | 0, O = es[A - 15] | 0, N = va(C, O, 1) ^ va(C, O, 8) ^ gh(C, O, 7), S = Ea(C, O, 1) ^ Ea(C, O, 8) ^ xh(C, O, 7), h = Jn[A - 2] | 0, b = es[A - 2] | 0, x = va(h, b, 19) ^ _c(h, b, 61) ^ gh(h, b, 6), T = Ea(h, b, 19) ^ Mc(h, b, 61) ^ xh(h, b, 6), I = Tv(S, T, es[A - 7], es[A - 16]), B = Av(I, N, x, Jn[A - 7], Jn[A - 16]);
|
|
9517
9517
|
Jn[A] = B | 0, es[A] = I | 0;
|
|
9518
9518
|
}
|
|
9519
9519
|
let { Ah: n, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: u, Eh: d, El: f, Fh: m, Fl: y, Gh: g, Gl: E, Hh: v, Hl: w } = this;
|
|
9520
9520
|
for (let A = 0; A < 80; A++) {
|
|
9521
|
-
const C = va(d, f, 14) ^ va(d, f, 18) ^ _c(d, f, 41), O = Ea(d, f, 14) ^ Ea(d, f, 18) ^ Mc(d, f, 41), N = d & m ^ ~d & g,
|
|
9521
|
+
const C = va(d, f, 14) ^ va(d, f, 18) ^ _c(d, f, 41), O = Ea(d, f, 14) ^ Ea(d, f, 18) ^ Mc(d, f, 41), N = d & m ^ ~d & g, S = f & y ^ ~f & E, h = Sv(w, O, S, ik[A], es[A]), b = Pv(h, v, C, N, ok[A], Jn[A]), x = h | 0, T = va(n, s, 28) ^ _c(n, s, 34) ^ _c(n, s, 39), I = Ea(n, s, 28) ^ Mc(n, s, 34) ^ Mc(n, s, 39), B = n & a ^ n & i ^ a & i, D = s & o ^ s & c ^ o & c;
|
|
9522
9522
|
v = g | 0, w = E | 0, g = m | 0, E = y | 0, m = d | 0, y = f | 0, { h: d, l: f } = vn(l | 0, u | 0, b | 0, x | 0), l = i | 0, u = c | 0, i = a | 0, c = o | 0, a = n | 0, o = s | 0;
|
|
9523
9523
|
const k = kv(x, I, D);
|
|
9524
|
-
n = Cv(k, b,
|
|
9524
|
+
n = Cv(k, b, T, B), s = k | 0;
|
|
9525
9525
|
}
|
|
9526
9526
|
({ h: n, l: s } = vn(this.Ah | 0, this.Al | 0, n | 0, s | 0)), { h: a, l: o } = vn(this.Bh | 0, this.Bl | 0, a | 0, o | 0), { h: i, l: c } = vn(this.Ch | 0, this.Cl | 0, i | 0, c | 0), { h: l, l: u } = vn(this.Dh | 0, this.Dl | 0, l | 0, u | 0), { h: d, l: f } = vn(this.Eh | 0, this.El | 0, d | 0, f | 0), { h: m, l: y } = vn(this.Fh | 0, this.Fl | 0, m | 0, y | 0), { h: g, l: E } = vn(this.Gh | 0, this.Gl | 0, g | 0, E | 0), { h: v, l: w } = vn(this.Hh | 0, this.Hl | 0, v | 0, w | 0), this.set(n, s, a, o, i, c, l, u, d, f, m, y, g, E, v, w);
|
|
9527
9527
|
}
|
|
@@ -9657,7 +9657,7 @@ async function Cs(e) {
|
|
|
9657
9657
|
return pr(t);
|
|
9658
9658
|
}
|
|
9659
9659
|
async function Jf(e, t) {
|
|
9660
|
-
var h, b, x,
|
|
9660
|
+
var h, b, x, T, I;
|
|
9661
9661
|
const { account: r = e.account, accessList: n, authorizationList: s, chain: a = e.chain, blobVersionedHashes: o, blobs: i, data: c, gas: l, gasPrice: u, maxFeePerBlobGas: d, maxFeePerGas: f, maxPriorityFeePerGas: m, nonce: y, nonceManager: g, to: E, type: v, value: w, ...A } = t, C = await (async () => {
|
|
9662
9662
|
if (!r || !g || typeof y < "u")
|
|
9663
9663
|
return y;
|
|
@@ -9669,7 +9669,7 @@ async function Jf(e, t) {
|
|
|
9669
9669
|
});
|
|
9670
9670
|
})();
|
|
9671
9671
|
mn(t);
|
|
9672
|
-
const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format,
|
|
9672
|
+
const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, S = (O || Yr)({
|
|
9673
9673
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
9674
9674
|
...ma(A, { format: O }),
|
|
9675
9675
|
account: r ? Qe(r) : void 0,
|
|
@@ -9691,8 +9691,8 @@ async function Jf(e, t) {
|
|
|
9691
9691
|
try {
|
|
9692
9692
|
const B = await e.request({
|
|
9693
9693
|
method: "eth_fillTransaction",
|
|
9694
|
-
params: [
|
|
9695
|
-
}), k = (((
|
|
9694
|
+
params: [S]
|
|
9695
|
+
}), k = (((T = (x = a == null ? void 0 : a.formatters) == null ? void 0 : x.transaction) == null ? void 0 : T.format) || ha)(B.tx);
|
|
9696
9696
|
delete k.blockHash, delete k.blockNumber, delete k.r, delete k.s, delete k.transactionIndex, delete k.v, delete k.yParity, k.data = k.input, k.gas && (k.gas = t.gas ?? k.gas), k.gasPrice && (k.gasPrice = t.gasPrice ?? k.gasPrice), k.maxFeePerBlobGas && (k.maxFeePerBlobGas = t.maxFeePerBlobGas ?? k.maxFeePerBlobGas), k.maxFeePerGas && (k.maxFeePerGas = t.maxFeePerGas ?? k.maxFeePerGas), k.maxPriorityFeePerGas && (k.maxPriorityFeePerGas = t.maxPriorityFeePerGas ?? k.maxPriorityFeePerGas), k.nonce && (k.nonce = t.nonce ?? k.nonce);
|
|
9697
9697
|
const P = await (async () => {
|
|
9698
9698
|
var L, $;
|
|
@@ -9712,7 +9712,7 @@ async function Jf(e, t) {
|
|
|
9712
9712
|
return k.maxFeePerGas && !t.maxFeePerGas && (k.maxFeePerGas = R(k.maxFeePerGas)), k.gasPrice && !t.gasPrice && (k.gasPrice = R(k.gasPrice)), {
|
|
9713
9713
|
raw: B.raw,
|
|
9714
9714
|
transaction: {
|
|
9715
|
-
from:
|
|
9715
|
+
from: S.from,
|
|
9716
9716
|
...k
|
|
9717
9717
|
}
|
|
9718
9718
|
};
|
|
@@ -9754,36 +9754,36 @@ async function ac(e, t) {
|
|
|
9754
9754
|
const u = n && Qe(n);
|
|
9755
9755
|
let d = r.nonce;
|
|
9756
9756
|
if (o.includes("nonce") && typeof d > "u" && u && a) {
|
|
9757
|
-
const
|
|
9757
|
+
const S = await l();
|
|
9758
9758
|
d = await a.consume({
|
|
9759
9759
|
address: u.address,
|
|
9760
|
-
chainId:
|
|
9760
|
+
chainId: S,
|
|
9761
9761
|
client: e
|
|
9762
9762
|
});
|
|
9763
9763
|
}
|
|
9764
9764
|
i != null && i.fn && ((C = i.runAt) != null && C.includes("beforeFillTransaction")) && (r = await i.fn({ ...r, chain: s }, {
|
|
9765
9765
|
phase: "beforeFillTransaction"
|
|
9766
9766
|
}), d ?? (d = r.nonce));
|
|
9767
|
-
const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && r.kzg && r.blobs || fd.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof r.chainId != "number" || o.includes("nonce") && typeof d != "number" || o.includes("fees") && typeof r.gasPrice != "bigint" && (typeof r.maxFeePerGas != "bigint" || typeof r.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof r.gas != "bigint")) ? await se(e, Jf, "fillTransaction")({ ...r, nonce: d }).then((
|
|
9768
|
-
const { chainId: h, from: b, gas: x, gasPrice:
|
|
9767
|
+
const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && r.kzg && r.blobs || fd.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof r.chainId != "number" || o.includes("nonce") && typeof d != "number" || o.includes("fees") && typeof r.gasPrice != "bigint" && (typeof r.maxFeePerGas != "bigint" || typeof r.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof r.gas != "bigint")) ? await se(e, Jf, "fillTransaction")({ ...r, nonce: d }).then((S) => {
|
|
9768
|
+
const { chainId: h, from: b, gas: x, gasPrice: T, nonce: I, maxFeePerBlobGas: B, maxFeePerGas: D, maxPriorityFeePerGas: k, type: P, ...U } = S.transaction;
|
|
9769
9769
|
return fd.set(e.uid, !0), {
|
|
9770
9770
|
...r,
|
|
9771
9771
|
...b ? { from: b } : {},
|
|
9772
9772
|
...P ? { type: P } : {},
|
|
9773
9773
|
...typeof h < "u" ? { chainId: h } : {},
|
|
9774
9774
|
...typeof x < "u" ? { gas: x } : {},
|
|
9775
|
-
...typeof
|
|
9775
|
+
...typeof T < "u" ? { gasPrice: T } : {},
|
|
9776
9776
|
...typeof I < "u" ? { nonce: I } : {},
|
|
9777
9777
|
...typeof B < "u" ? { maxFeePerBlobGas: B } : {},
|
|
9778
9778
|
...typeof D < "u" ? { maxFeePerGas: D } : {},
|
|
9779
9779
|
...typeof k < "u" ? { maxPriorityFeePerGas: k } : {},
|
|
9780
9780
|
..."nonceKey" in U && typeof U.nonceKey < "u" ? { nonceKey: U.nonceKey } : {}
|
|
9781
9781
|
};
|
|
9782
|
-
}).catch((
|
|
9782
|
+
}).catch((S) => {
|
|
9783
9783
|
var x;
|
|
9784
|
-
const h =
|
|
9785
|
-
return h.name !== "TransactionExecutionError" || ((x = h.walk) == null ? void 0 : x.call(h, (
|
|
9786
|
-
const I =
|
|
9784
|
+
const h = S;
|
|
9785
|
+
return h.name !== "TransactionExecutionError" || ((x = h.walk) == null ? void 0 : x.call(h, (T) => {
|
|
9786
|
+
const I = T;
|
|
9787
9787
|
return I.name === "MethodNotFoundRpcError" || I.name === "MethodNotSupportedRpcError";
|
|
9788
9788
|
})) && fd.set(e.uid, !1), r;
|
|
9789
9789
|
}) : r;
|
|
@@ -9804,18 +9804,18 @@ async function ac(e, t) {
|
|
|
9804
9804
|
address: u.address,
|
|
9805
9805
|
blockTag: "pending"
|
|
9806
9806
|
})), (o.includes("blobVersionedHashes") || o.includes("sidecars")) && y && E) {
|
|
9807
|
-
const
|
|
9807
|
+
const S = Kf({ blobs: y, kzg: E });
|
|
9808
9808
|
if (o.includes("blobVersionedHashes")) {
|
|
9809
9809
|
const h = Ly({
|
|
9810
|
-
commitments:
|
|
9810
|
+
commitments: S,
|
|
9811
9811
|
to: "hex"
|
|
9812
9812
|
});
|
|
9813
9813
|
r.blobVersionedHashes = h;
|
|
9814
9814
|
}
|
|
9815
9815
|
if (o.includes("sidecars")) {
|
|
9816
|
-
const h = Yf({ blobs: y, commitments:
|
|
9816
|
+
const h = Yf({ blobs: y, commitments: S, kzg: E }), b = jy({
|
|
9817
9817
|
blobs: y,
|
|
9818
|
-
commitments:
|
|
9818
|
+
commitments: S,
|
|
9819
9819
|
proofs: h,
|
|
9820
9820
|
to: "hex"
|
|
9821
9821
|
});
|
|
@@ -9826,18 +9826,18 @@ async function ac(e, t) {
|
|
|
9826
9826
|
try {
|
|
9827
9827
|
r.type = Qf(r);
|
|
9828
9828
|
} catch {
|
|
9829
|
-
let
|
|
9830
|
-
if (typeof
|
|
9829
|
+
let S = Dh.get(e.uid);
|
|
9830
|
+
if (typeof S > "u") {
|
|
9831
9831
|
const h = await A();
|
|
9832
|
-
|
|
9832
|
+
S = typeof (h == null ? void 0 : h.baseFeePerGas) == "bigint", Dh.set(e.uid, S);
|
|
9833
9833
|
}
|
|
9834
|
-
r.type =
|
|
9834
|
+
r.type = S ? "eip1559" : "legacy";
|
|
9835
9835
|
}
|
|
9836
9836
|
if (o.includes("fees"))
|
|
9837
9837
|
if (r.type !== "legacy" && r.type !== "eip2930") {
|
|
9838
9838
|
if (typeof r.maxFeePerGas > "u" || typeof r.maxPriorityFeePerGas > "u") {
|
|
9839
|
-
const
|
|
9840
|
-
block:
|
|
9839
|
+
const S = await A(), { maxFeePerGas: h, maxPriorityFeePerGas: b } = await Rp(e, {
|
|
9840
|
+
block: S,
|
|
9841
9841
|
chain: s,
|
|
9842
9842
|
request: r
|
|
9843
9843
|
});
|
|
@@ -9851,8 +9851,8 @@ async function ac(e, t) {
|
|
|
9851
9851
|
if (typeof r.maxFeePerGas < "u" || typeof r.maxPriorityFeePerGas < "u")
|
|
9852
9852
|
throw new Gf();
|
|
9853
9853
|
if (typeof r.gasPrice > "u") {
|
|
9854
|
-
const
|
|
9855
|
-
block:
|
|
9854
|
+
const S = await A(), { gasPrice: h } = await Rp(e, {
|
|
9855
|
+
block: S,
|
|
9856
9856
|
chain: s,
|
|
9857
9857
|
request: r,
|
|
9858
9858
|
type: "legacy"
|
|
@@ -9886,14 +9886,14 @@ async function t0(e, t) {
|
|
|
9886
9886
|
}).catch(() => {
|
|
9887
9887
|
throw new z("`to` is required. Could not infer from `authorizationList`");
|
|
9888
9888
|
});
|
|
9889
|
-
})(), { accessList: u, authorizationList: d, blobs: f, blobVersionedHashes: m, blockNumber: y, blockTag: g, data: E, gas: v, gasPrice: w, maxFeePerBlobGas: A, maxFeePerGas: C, maxPriorityFeePerGas: O, nonce: N, value:
|
|
9889
|
+
})(), { accessList: u, authorizationList: d, blobs: f, blobVersionedHashes: m, blockNumber: y, blockTag: g, data: E, gas: v, gasPrice: w, maxFeePerBlobGas: A, maxFeePerGas: C, maxPriorityFeePerGas: O, nonce: N, value: S, stateOverride: h, ...b } = n ? await ac(e, {
|
|
9890
9890
|
...t,
|
|
9891
9891
|
parameters: a,
|
|
9892
9892
|
to: l
|
|
9893
9893
|
}) : t;
|
|
9894
9894
|
if (v && t.gas !== v)
|
|
9895
9895
|
return v;
|
|
9896
|
-
const
|
|
9896
|
+
const T = (typeof y == "bigint" ? V(y) : void 0) || g, I = Hf(h);
|
|
9897
9897
|
mn(t);
|
|
9898
9898
|
const B = (c = (i = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : i.transactionRequest) == null ? void 0 : c.format, k = (B || Yr)({
|
|
9899
9899
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
@@ -9910,15 +9910,15 @@ async function t0(e, t) {
|
|
|
9910
9910
|
maxPriorityFeePerGas: O,
|
|
9911
9911
|
nonce: N,
|
|
9912
9912
|
to: l,
|
|
9913
|
-
value:
|
|
9913
|
+
value: S
|
|
9914
9914
|
}, "estimateGas");
|
|
9915
9915
|
return BigInt(await e.request({
|
|
9916
9916
|
method: "eth_estimateGas",
|
|
9917
9917
|
params: I ? [
|
|
9918
9918
|
k,
|
|
9919
|
-
|
|
9919
|
+
T ?? e.experimental_blockTag ?? "latest",
|
|
9920
9920
|
I
|
|
9921
|
-
] :
|
|
9921
|
+
] : T ? [k, T] : [k]
|
|
9922
9922
|
}));
|
|
9923
9923
|
} catch (l) {
|
|
9924
9924
|
throw WE(l, {
|
|
@@ -11536,12 +11536,12 @@ function mg({ fn: e, id: t, shouldSplitBatch: r, wait: n = 0, sort: s }) {
|
|
|
11536
11536
|
}
|
|
11537
11537
|
async function gu(e, t) {
|
|
11538
11538
|
var B, D, k, P;
|
|
11539
|
-
const { account: r = e.account, authorizationList: n, batch: s = !!((B = e.batch) != null && B.multicall), blockNumber: a, blockTag: o = e.experimental_blockTag ?? "latest", accessList: i, blobs: c, blockOverrides: l, code: u, data: d, factory: f, factoryData: m, gas: y, gasPrice: g, maxFeePerBlobGas: E, maxFeePerGas: v, maxPriorityFeePerGas: w, nonce: A, to: C, value: O, stateOverride: N, ...
|
|
11539
|
+
const { account: r = e.account, authorizationList: n, batch: s = !!((B = e.batch) != null && B.multicall), blockNumber: a, blockTag: o = e.experimental_blockTag ?? "latest", accessList: i, blobs: c, blockOverrides: l, code: u, data: d, factory: f, factoryData: m, gas: y, gasPrice: g, maxFeePerBlobGas: E, maxFeePerGas: v, maxPriorityFeePerGas: w, nonce: A, to: C, value: O, stateOverride: N, ...S } = t, h = r ? Qe(r) : void 0;
|
|
11540
11540
|
if (u && (f || m))
|
|
11541
11541
|
throw new z("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
11542
11542
|
if (u && C)
|
|
11543
11543
|
throw new z("Cannot provide both `code` & `to` as parameters.");
|
|
11544
|
-
const b = u && d, x = f && m && C && d,
|
|
11544
|
+
const b = u && d, x = f && m && C && d, T = b || x, I = b ? hg({
|
|
11545
11545
|
code: u,
|
|
11546
11546
|
data: d
|
|
11547
11547
|
}) : x ? o7({
|
|
@@ -11554,7 +11554,7 @@ async function gu(e, t) {
|
|
|
11554
11554
|
mn(t);
|
|
11555
11555
|
const F = (typeof a == "bigint" ? V(a) : void 0) || o, R = l ? ig(l) : void 0, L = Hf(N), $ = (P = (k = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : k.transactionRequest) == null ? void 0 : P.format, pe = ($ || Yr)({
|
|
11556
11556
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
11557
|
-
...ma(
|
|
11557
|
+
...ma(S, { format: $ }),
|
|
11558
11558
|
accessList: i,
|
|
11559
11559
|
account: h,
|
|
11560
11560
|
authorizationList: n,
|
|
@@ -11566,7 +11566,7 @@ async function gu(e, t) {
|
|
|
11566
11566
|
maxFeePerGas: v,
|
|
11567
11567
|
maxPriorityFeePerGas: w,
|
|
11568
11568
|
nonce: A,
|
|
11569
|
-
to:
|
|
11569
|
+
to: T ? void 0 : C,
|
|
11570
11570
|
value: O
|
|
11571
11571
|
}, "call");
|
|
11572
11572
|
if (s && s7({ request: pe }) && !L && !R)
|
|
@@ -11592,10 +11592,10 @@ async function gu(e, t) {
|
|
|
11592
11592
|
});
|
|
11593
11593
|
return ie === "0x" ? { data: void 0 } : { data: ie };
|
|
11594
11594
|
} catch (U) {
|
|
11595
|
-
const F = i7(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-
|
|
11595
|
+
const F = i7(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-DMctUrv3.js");
|
|
11596
11596
|
if (e.ccipRead !== !1 && (F == null ? void 0 : F.slice(0, 10)) === L && C)
|
|
11597
11597
|
return { data: await R(e, { data: F, to: C }) };
|
|
11598
|
-
throw
|
|
11598
|
+
throw T && (F == null ? void 0 : F.slice(0, 10)) === "0x101bb98d" ? new ME({ factory: f }) : l0(U, {
|
|
11599
11599
|
...t,
|
|
11600
11600
|
account: h,
|
|
11601
11601
|
chain: e.chain
|
|
@@ -11876,7 +11876,7 @@ function h7(e, t) {
|
|
|
11876
11876
|
i !== void 0 && (A = i - 1n);
|
|
11877
11877
|
let C, O = !1;
|
|
11878
11878
|
const N = ko(async () => {
|
|
11879
|
-
var
|
|
11879
|
+
var S;
|
|
11880
11880
|
if (!O) {
|
|
11881
11881
|
try {
|
|
11882
11882
|
C = await se(e, gy, "createContractEventFilter")({
|
|
@@ -11916,7 +11916,7 @@ function h7(e, t) {
|
|
|
11916
11916
|
for (const b of h)
|
|
11917
11917
|
w.onLogs([b]);
|
|
11918
11918
|
} catch (h) {
|
|
11919
|
-
C && h instanceof xs && (O = !1), (
|
|
11919
|
+
C && h instanceof xs && (O = !1), (S = w.onError) == null || S.call(w, h);
|
|
11920
11920
|
}
|
|
11921
11921
|
}, {
|
|
11922
11922
|
emitOnBegin: !0,
|
|
@@ -11950,7 +11950,7 @@ function h7(e, t) {
|
|
|
11950
11950
|
abi: r,
|
|
11951
11951
|
eventName: o,
|
|
11952
11952
|
args: s
|
|
11953
|
-
}) : [], { unsubscribe:
|
|
11953
|
+
}) : [], { unsubscribe: S } = await O.subscribe({
|
|
11954
11954
|
params: ["logs", { address: n, topics: N }],
|
|
11955
11955
|
onData(h) {
|
|
11956
11956
|
var x;
|
|
@@ -11958,22 +11958,22 @@ function h7(e, t) {
|
|
|
11958
11958
|
return;
|
|
11959
11959
|
const b = h.result;
|
|
11960
11960
|
try {
|
|
11961
|
-
const { eventName:
|
|
11961
|
+
const { eventName: T, args: I } = Ml({
|
|
11962
11962
|
abi: r,
|
|
11963
11963
|
data: b.data,
|
|
11964
11964
|
topics: b.topics,
|
|
11965
11965
|
strict: f
|
|
11966
11966
|
}), B = un(b, {
|
|
11967
11967
|
args: I,
|
|
11968
|
-
eventName:
|
|
11968
|
+
eventName: T
|
|
11969
11969
|
});
|
|
11970
11970
|
C.onLogs([B]);
|
|
11971
|
-
} catch (
|
|
11971
|
+
} catch (T) {
|
|
11972
11972
|
let I, B;
|
|
11973
|
-
if (
|
|
11973
|
+
if (T instanceof _l || T instanceof If) {
|
|
11974
11974
|
if (f)
|
|
11975
11975
|
return;
|
|
11976
|
-
I =
|
|
11976
|
+
I = T.abiItem.name, B = (x = T.abiItem.inputs) == null ? void 0 : x.some((k) => !("name" in k && k.name));
|
|
11977
11977
|
}
|
|
11978
11978
|
const D = un(b, {
|
|
11979
11979
|
args: B ? [] : {},
|
|
@@ -11987,7 +11987,7 @@ function h7(e, t) {
|
|
|
11987
11987
|
(b = C.onError) == null || b.call(C, h);
|
|
11988
11988
|
}
|
|
11989
11989
|
});
|
|
11990
|
-
A =
|
|
11990
|
+
A = S, w || A();
|
|
11991
11991
|
} catch (O) {
|
|
11992
11992
|
c == null || c(O);
|
|
11993
11993
|
}
|
|
@@ -12050,9 +12050,9 @@ async function vu(e, t) {
|
|
|
12050
12050
|
});
|
|
12051
12051
|
})();
|
|
12052
12052
|
if ((v == null ? void 0 : v.type) === "json-rpc" || v === null) {
|
|
12053
|
-
let
|
|
12054
|
-
n !== null && (
|
|
12055
|
-
currentChainId:
|
|
12053
|
+
let S;
|
|
12054
|
+
n !== null && (S = await se(e, Cs, "getChainId")({}), d0({
|
|
12055
|
+
currentChainId: S,
|
|
12056
12056
|
chain: n
|
|
12057
12057
|
}));
|
|
12058
12058
|
const h = (C = (A = (w = e.chain) == null ? void 0 : w.formatters) == null ? void 0 : A.transactionRequest) == null ? void 0 : C.format, x = (h || Yr)({
|
|
@@ -12062,7 +12062,7 @@ async function vu(e, t) {
|
|
|
12062
12062
|
account: v,
|
|
12063
12063
|
authorizationList: a,
|
|
12064
12064
|
blobs: o,
|
|
12065
|
-
chainId:
|
|
12065
|
+
chainId: S,
|
|
12066
12066
|
data: i,
|
|
12067
12067
|
gas: c,
|
|
12068
12068
|
gasPrice: l,
|
|
@@ -12073,14 +12073,14 @@ async function vu(e, t) {
|
|
|
12073
12073
|
to: N,
|
|
12074
12074
|
type: y,
|
|
12075
12075
|
value: g
|
|
12076
|
-
}, "sendTransaction"),
|
|
12076
|
+
}, "sendTransaction"), T = wd.get(e.uid), I = T ? "wallet_sendTransaction" : "eth_sendTransaction";
|
|
12077
12077
|
try {
|
|
12078
12078
|
return await e.request({
|
|
12079
12079
|
method: I,
|
|
12080
12080
|
params: [x]
|
|
12081
12081
|
}, { retryCount: 0 });
|
|
12082
12082
|
} catch (B) {
|
|
12083
|
-
if (
|
|
12083
|
+
if (T === !1)
|
|
12084
12084
|
throw B;
|
|
12085
12085
|
const D = B;
|
|
12086
12086
|
if (D.name === "InvalidInputRpcError" || D.name === "InvalidParamsRpcError" || D.name === "MethodNotFoundRpcError" || D.name === "MethodNotSupportedRpcError")
|
|
@@ -12095,7 +12095,7 @@ async function vu(e, t) {
|
|
|
12095
12095
|
}
|
|
12096
12096
|
}
|
|
12097
12097
|
if ((v == null ? void 0 : v.type) === "local") {
|
|
12098
|
-
const
|
|
12098
|
+
const S = await se(e, ac, "prepareTransactionRequest")({
|
|
12099
12099
|
account: v,
|
|
12100
12100
|
accessList: s,
|
|
12101
12101
|
authorizationList: a,
|
|
@@ -12114,7 +12114,7 @@ async function vu(e, t) {
|
|
|
12114
12114
|
value: g,
|
|
12115
12115
|
...E,
|
|
12116
12116
|
to: N
|
|
12117
|
-
}), h = (O = n == null ? void 0 : n.serializers) == null ? void 0 : O.transaction, b = await v.signTransaction(
|
|
12117
|
+
}), h = (O = n == null ? void 0 : n.serializers) == null ? void 0 : O.transaction, b = await v.signTransaction(S, {
|
|
12118
12118
|
serializer: h
|
|
12119
12119
|
});
|
|
12120
12120
|
return await se(e, p0, "sendRawTransaction")({
|
|
@@ -12425,8 +12425,8 @@ function kg(e) {
|
|
|
12425
12425
|
function w(A) {
|
|
12426
12426
|
return (C) => {
|
|
12427
12427
|
const O = C(A);
|
|
12428
|
-
for (const
|
|
12429
|
-
delete O[
|
|
12428
|
+
for (const S in v)
|
|
12429
|
+
delete O[S];
|
|
12430
12430
|
const N = { ...A, ...O };
|
|
12431
12431
|
return Object.assign(N, { extend: w(N) });
|
|
12432
12432
|
};
|
|
@@ -12929,7 +12929,7 @@ async function Pg(e, t) {
|
|
|
12929
12929
|
const { account: r = e.account, blockNumber: n, blockTag: s = "latest", blobs: a, data: o, gas: i, gasPrice: c, maxFeePerBlobGas: l, maxFeePerGas: u, maxPriorityFeePerGas: d, to: f, value: m, ...y } = t, g = r ? Qe(r) : void 0;
|
|
12930
12930
|
try {
|
|
12931
12931
|
mn(t);
|
|
12932
|
-
const C = (typeof n == "bigint" ? V(n) : void 0) || s, O = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format,
|
|
12932
|
+
const C = (typeof n == "bigint" ? V(n) : void 0) || s, O = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, S = (O || Yr)({
|
|
12933
12933
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
12934
12934
|
...ma(y, { format: O }),
|
|
12935
12935
|
account: g,
|
|
@@ -12944,7 +12944,7 @@ async function Pg(e, t) {
|
|
|
12944
12944
|
value: m
|
|
12945
12945
|
}, "createAccessList"), h = await e.request({
|
|
12946
12946
|
method: "eth_createAccessList",
|
|
12947
|
-
params: [
|
|
12947
|
+
params: [S, C]
|
|
12948
12948
|
});
|
|
12949
12949
|
return {
|
|
12950
12950
|
accessList: h.accessList,
|
|
@@ -15359,8 +15359,8 @@ function O9(e) {
|
|
|
15359
15359
|
return { x: O, y: N };
|
|
15360
15360
|
});
|
|
15361
15361
|
function o(A) {
|
|
15362
|
-
const { a: C, b: O } = t, N = r.sqr(A),
|
|
15363
|
-
return r.add(r.add(
|
|
15362
|
+
const { a: C, b: O } = t, N = r.sqr(A), S = r.mul(N, A);
|
|
15363
|
+
return r.add(r.add(S, r.mul(A, C)), O);
|
|
15364
15364
|
}
|
|
15365
15365
|
function i(A, C) {
|
|
15366
15366
|
const O = r.sqr(C), N = o(A);
|
|
@@ -15375,7 +15375,7 @@ function O9(e) {
|
|
|
15375
15375
|
return o0(A, Bt, t.n);
|
|
15376
15376
|
}
|
|
15377
15377
|
function d(A) {
|
|
15378
|
-
const { allowedPrivateKeyLengths: C, nByteLength: O, wrapPrivateKey: N, n:
|
|
15378
|
+
const { allowedPrivateKeyLengths: C, nByteLength: O, wrapPrivateKey: N, n: S } = t;
|
|
15379
15379
|
if (C && typeof A != "bigint") {
|
|
15380
15380
|
if (ic(A) && (A = Si(A)), typeof A != "string" || !C.includes(A.length))
|
|
15381
15381
|
throw new Error("invalid private key");
|
|
@@ -15387,22 +15387,22 @@ function O9(e) {
|
|
|
15387
15387
|
} catch {
|
|
15388
15388
|
throw new Error("invalid private key, expected hex or " + O + " bytes, got " + typeof A);
|
|
15389
15389
|
}
|
|
15390
|
-
return N && (h = er(h,
|
|
15390
|
+
return N && (h = er(h, S)), Na("private key", h, Bt, S), h;
|
|
15391
15391
|
}
|
|
15392
15392
|
function f(A) {
|
|
15393
15393
|
if (!(A instanceof g))
|
|
15394
15394
|
throw new Error("ProjectivePoint expected");
|
|
15395
15395
|
}
|
|
15396
15396
|
const m = Nh((A, C) => {
|
|
15397
|
-
const { px: O, py: N, pz:
|
|
15398
|
-
if (r.eql(
|
|
15397
|
+
const { px: O, py: N, pz: S } = A;
|
|
15398
|
+
if (r.eql(S, r.ONE))
|
|
15399
15399
|
return { x: O, y: N };
|
|
15400
15400
|
const h = A.is0();
|
|
15401
|
-
C == null && (C = h ? r.ONE : r.inv(
|
|
15402
|
-
const b = r.mul(O, C), x = r.mul(N, C),
|
|
15401
|
+
C == null && (C = h ? r.ONE : r.inv(S));
|
|
15402
|
+
const b = r.mul(O, C), x = r.mul(N, C), T = r.mul(S, C);
|
|
15403
15403
|
if (h)
|
|
15404
15404
|
return { x: r.ZERO, y: r.ZERO };
|
|
15405
|
-
if (!r.eql(
|
|
15405
|
+
if (!r.eql(T, r.ONE))
|
|
15406
15406
|
throw new Error("invZ was invalid");
|
|
15407
15407
|
return { x: b, y: x };
|
|
15408
15408
|
}), y = Nh((A) => {
|
|
@@ -15438,8 +15438,8 @@ function O9(e) {
|
|
|
15438
15438
|
throw new Error("invalid affine point");
|
|
15439
15439
|
if (C instanceof g)
|
|
15440
15440
|
throw new Error("projective point not allowed");
|
|
15441
|
-
const
|
|
15442
|
-
return
|
|
15441
|
+
const S = (h) => r.eql(h, r.ZERO);
|
|
15442
|
+
return S(O) && S(N) ? g.ZERO : new g(O, N, r.ONE);
|
|
15443
15443
|
}
|
|
15444
15444
|
get x() {
|
|
15445
15445
|
return this.toAffine().x;
|
|
@@ -15455,7 +15455,7 @@ function O9(e) {
|
|
|
15455
15455
|
*/
|
|
15456
15456
|
static normalizeZ(C) {
|
|
15457
15457
|
const O = Jg(r, C.map((N) => N.pz));
|
|
15458
|
-
return C.map((N,
|
|
15458
|
+
return C.map((N, S) => N.toAffine(O[S])).map(g.fromAffine);
|
|
15459
15459
|
}
|
|
15460
15460
|
/**
|
|
15461
15461
|
* Converts hash string or Uint8Array to Point.
|
|
@@ -15492,8 +15492,8 @@ function O9(e) {
|
|
|
15492
15492
|
*/
|
|
15493
15493
|
equals(C) {
|
|
15494
15494
|
f(C);
|
|
15495
|
-
const { px: O, py: N, pz:
|
|
15496
|
-
return
|
|
15495
|
+
const { px: O, py: N, pz: S } = this, { px: h, py: b, pz: x } = C, T = r.eql(r.mul(O, x), r.mul(h, S)), I = r.eql(r.mul(N, x), r.mul(b, S));
|
|
15496
|
+
return T && I;
|
|
15497
15497
|
}
|
|
15498
15498
|
/**
|
|
15499
15499
|
* Flips point to one corresponding to (x, -y) in Affine coordinates.
|
|
@@ -15506,9 +15506,9 @@ function O9(e) {
|
|
|
15506
15506
|
// https://eprint.iacr.org/2015/1060, algorithm 3
|
|
15507
15507
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
15508
15508
|
double() {
|
|
15509
|
-
const { a: C, b: O } = t, N = r.mul(O, Id), { px:
|
|
15510
|
-
let x = r.ZERO,
|
|
15511
|
-
return P = r.add(P, P), I = r.mul(
|
|
15509
|
+
const { a: C, b: O } = t, N = r.mul(O, Id), { px: S, py: h, pz: b } = this;
|
|
15510
|
+
let x = r.ZERO, T = r.ZERO, I = r.ZERO, B = r.mul(S, S), D = r.mul(h, h), k = r.mul(b, b), P = r.mul(S, h);
|
|
15511
|
+
return P = r.add(P, P), I = r.mul(S, b), I = r.add(I, I), x = r.mul(C, I), T = r.mul(N, k), T = r.add(x, T), x = r.sub(D, T), T = r.add(D, T), T = r.mul(x, T), x = r.mul(P, x), I = r.mul(N, I), k = r.mul(C, k), P = r.sub(B, k), P = r.mul(C, P), P = r.add(P, I), I = r.add(B, B), B = r.add(I, B), B = r.add(B, k), B = r.mul(B, P), T = r.add(T, B), k = r.mul(h, b), k = r.add(k, k), B = r.mul(k, P), x = r.sub(x, B), I = r.mul(k, D), I = r.add(I, I), I = r.add(I, I), new g(x, T, I);
|
|
15512
15512
|
}
|
|
15513
15513
|
// Renes-Costello-Batina exception-free addition formula.
|
|
15514
15514
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -15516,13 +15516,13 @@ function O9(e) {
|
|
|
15516
15516
|
// Cost: 12M + 0S + 3*a + 3*b3 + 23add.
|
|
15517
15517
|
add(C) {
|
|
15518
15518
|
f(C);
|
|
15519
|
-
const { px: O, py: N, pz:
|
|
15520
|
-
let
|
|
15519
|
+
const { px: O, py: N, pz: S } = this, { px: h, py: b, pz: x } = C;
|
|
15520
|
+
let T = r.ZERO, I = r.ZERO, B = r.ZERO;
|
|
15521
15521
|
const D = t.a, k = r.mul(t.b, Id);
|
|
15522
|
-
let P = r.mul(O, h), U = r.mul(N, b), F = r.mul(
|
|
15523
|
-
R = r.mul(R, L), L = r.add(P, U), R = r.sub(R, L), L = r.add(O,
|
|
15522
|
+
let P = r.mul(O, h), U = r.mul(N, b), F = r.mul(S, x), R = r.add(O, N), L = r.add(h, b);
|
|
15523
|
+
R = r.mul(R, L), L = r.add(P, U), R = r.sub(R, L), L = r.add(O, S);
|
|
15524
15524
|
let $ = r.add(h, x);
|
|
15525
|
-
return L = r.mul(L, $), $ = r.add(P, F), L = r.sub(L, $), $ = r.add(N,
|
|
15525
|
+
return L = r.mul(L, $), $ = r.add(P, F), L = r.sub(L, $), $ = r.add(N, S), T = r.add(b, x), $ = r.mul($, T), T = r.add(U, F), $ = r.sub($, T), B = r.mul(D, L), T = r.mul(k, F), B = r.add(T, B), T = r.sub(U, B), B = r.add(U, B), I = r.mul(T, B), U = r.add(P, P), U = r.add(U, P), F = r.mul(D, F), L = r.mul(k, L), U = r.add(U, F), F = r.sub(P, F), F = r.mul(D, F), L = r.add(L, F), P = r.mul(U, L), I = r.add(I, P), P = r.mul($, L), T = r.mul(R, T), T = r.sub(T, P), P = r.mul(R, U), B = r.mul($, B), B = r.add(B, P), new g(T, I, B);
|
|
15526
15526
|
}
|
|
15527
15527
|
subtract(C) {
|
|
15528
15528
|
return this.add(C.negate());
|
|
@@ -15541,16 +15541,16 @@ function O9(e) {
|
|
|
15541
15541
|
multiplyUnsafe(C) {
|
|
15542
15542
|
const { endo: O, n: N } = t;
|
|
15543
15543
|
Na("scalar", C, Un, N);
|
|
15544
|
-
const
|
|
15544
|
+
const S = g.ZERO;
|
|
15545
15545
|
if (C === Un)
|
|
15546
|
-
return
|
|
15546
|
+
return S;
|
|
15547
15547
|
if (this.is0() || C === Bt)
|
|
15548
15548
|
return this;
|
|
15549
15549
|
if (!O || w.hasPrecomputes(this))
|
|
15550
15550
|
return w.wNAFCachedUnsafe(this, C, g.normalizeZ);
|
|
15551
|
-
let { k1neg: h, k1: b, k2neg: x, k2:
|
|
15552
|
-
for (; b > Un ||
|
|
15553
|
-
b & Bt && (I = I.add(D)),
|
|
15551
|
+
let { k1neg: h, k1: b, k2neg: x, k2: T } = O.splitScalar(C), I = S, B = S, D = this;
|
|
15552
|
+
for (; b > Un || T > Un; )
|
|
15553
|
+
b & Bt && (I = I.add(D)), T & Bt && (B = B.add(D)), D = D.double(), b >>= Bt, T >>= Bt;
|
|
15554
15554
|
return h && (I = I.negate()), x && (B = B.negate()), B = new g(r.mul(B.px, O.beta), B.py, B.pz), I.add(B);
|
|
15555
15555
|
}
|
|
15556
15556
|
/**
|
|
@@ -15565,16 +15565,16 @@ function O9(e) {
|
|
|
15565
15565
|
multiply(C) {
|
|
15566
15566
|
const { endo: O, n: N } = t;
|
|
15567
15567
|
Na("scalar", C, Bt, N);
|
|
15568
|
-
let
|
|
15568
|
+
let S, h;
|
|
15569
15569
|
if (O) {
|
|
15570
|
-
const { k1neg: b, k1: x, k2neg:
|
|
15570
|
+
const { k1neg: b, k1: x, k2neg: T, k2: I } = O.splitScalar(C);
|
|
15571
15571
|
let { p: B, f: D } = this.wNAF(x), { p: k, f: P } = this.wNAF(I);
|
|
15572
|
-
B = w.constTimeNegate(b, B), k = w.constTimeNegate(
|
|
15572
|
+
B = w.constTimeNegate(b, B), k = w.constTimeNegate(T, k), k = new g(r.mul(k.px, O.beta), k.py, k.pz), S = B.add(k), h = D.add(P);
|
|
15573
15573
|
} else {
|
|
15574
15574
|
const { p: b, f: x } = this.wNAF(C);
|
|
15575
|
-
|
|
15575
|
+
S = b, h = x;
|
|
15576
15576
|
}
|
|
15577
|
-
return g.normalizeZ([
|
|
15577
|
+
return g.normalizeZ([S, h])[0];
|
|
15578
15578
|
}
|
|
15579
15579
|
/**
|
|
15580
15580
|
* Efficiently calculate `aP + bQ`. Unsafe, can expose private key, if used incorrectly.
|
|
@@ -15583,7 +15583,7 @@ function O9(e) {
|
|
|
15583
15583
|
* @returns non-zero affine point
|
|
15584
15584
|
*/
|
|
15585
15585
|
multiplyAndAddUnsafe(C, O, N) {
|
|
15586
|
-
const
|
|
15586
|
+
const S = g.BASE, h = (x, T) => T === Un || T === Bt || !x.equals(S) ? x.multiplyUnsafe(T) : x.multiply(T), b = h(this, O).add(h(C, N));
|
|
15587
15587
|
return b.is0() ? void 0 : b;
|
|
15588
15588
|
}
|
|
15589
15589
|
// Converts Projective point to affine (x, y) coordinates.
|
|
@@ -15705,7 +15705,7 @@ function _9(e) {
|
|
|
15705
15705
|
return new v(this.r, this.s, P);
|
|
15706
15706
|
}
|
|
15707
15707
|
recoverPublicKey(P) {
|
|
15708
|
-
const { r: U, s: F, recovery: R } = this, L =
|
|
15708
|
+
const { r: U, s: F, recovery: R } = this, L = S(kr("msgHash", P));
|
|
15709
15709
|
if (R == null || ![0, 1, 2, 3].includes(R))
|
|
15710
15710
|
throw new Error("recovery id invalid");
|
|
15711
15711
|
const $ = R === 2 || R === 3 ? U + t.n : U;
|
|
@@ -15792,19 +15792,19 @@ function _9(e) {
|
|
|
15792
15792
|
throw new Error("input is too large");
|
|
15793
15793
|
const P = Xs(k), U = k.length * 8 - a;
|
|
15794
15794
|
return U > 0 ? P >> BigInt(U) : P;
|
|
15795
|
-
},
|
|
15795
|
+
}, S = t.bits2int_modN || function(k) {
|
|
15796
15796
|
return c(N(k));
|
|
15797
15797
|
}, h = fu(a);
|
|
15798
15798
|
function b(k) {
|
|
15799
15799
|
return Na("num < 2^" + a, k, Un, h), cc(k, s);
|
|
15800
15800
|
}
|
|
15801
|
-
function x(k, P, U =
|
|
15801
|
+
function x(k, P, U = T) {
|
|
15802
15802
|
if (["recovered", "canonical"].some((xe) => xe in U))
|
|
15803
15803
|
throw new Error("sign() legacy options not supported");
|
|
15804
15804
|
const { hash: F, randomBytes: R } = t;
|
|
15805
15805
|
let { lowS: L, prehash: $, extraEntropy: Z } = U;
|
|
15806
15806
|
L == null && (L = !0), k = kr("msgHash", k), s1(U), $ && (k = kr("prehashed msgHash", F(k)));
|
|
15807
|
-
const pe =
|
|
15807
|
+
const pe = S(k), be = d(P), ie = [b(be), b(pe)];
|
|
15808
15808
|
if (Z != null && Z !== !1) {
|
|
15809
15809
|
const xe = Z === !0 ? R(r.BYTES) : Z;
|
|
15810
15810
|
ie.push(kr("extraEntropy", xe));
|
|
@@ -15825,8 +15825,8 @@ function _9(e) {
|
|
|
15825
15825
|
}
|
|
15826
15826
|
return { seed: de, k2sig: K };
|
|
15827
15827
|
}
|
|
15828
|
-
const
|
|
15829
|
-
function B(k, P, U =
|
|
15828
|
+
const T = { lowS: t.lowS, prehash: !1 }, I = { lowS: t.lowS, prehash: !1 };
|
|
15829
|
+
function B(k, P, U = T) {
|
|
15830
15830
|
const { seed: F, k2sig: R } = x(k, P, U), L = t;
|
|
15831
15831
|
return vk(L.hash.outputLen, L.nByteLength, L.hmac)(F, R);
|
|
15832
15832
|
}
|
|
@@ -15861,7 +15861,7 @@ function _9(e) {
|
|
|
15861
15861
|
if (!ie || L && ie.hasHighS())
|
|
15862
15862
|
return !1;
|
|
15863
15863
|
$ && (P = t.hash(P));
|
|
15864
|
-
const { r: Be, s: K } = ie, xe =
|
|
15864
|
+
const { r: Be, s: K } = ie, xe = S(P), Ue = l(K), ze = c(xe * Ue), st = c(Be * Ue), Ae = (ye = u.BASE.multiplyAndAddUnsafe(de, ze, st)) == null ? void 0 : ye.toAffine();
|
|
15865
15865
|
return Ae ? c(Ae.x) === Be : !1;
|
|
15866
15866
|
}
|
|
15867
15867
|
return {
|
|
@@ -16300,9 +16300,9 @@ async function mT(e, t) {
|
|
|
16300
16300
|
})(), m = [[]];
|
|
16301
16301
|
let y = 0, g = 0;
|
|
16302
16302
|
for (let A = 0; A < l.length; A++) {
|
|
16303
|
-
const { abi: C, address: O, args: N, functionName:
|
|
16303
|
+
const { abi: C, address: O, args: N, functionName: S } = l[A];
|
|
16304
16304
|
try {
|
|
16305
|
-
const h = mr({ abi: C, args: N, functionName:
|
|
16305
|
+
const h = mr({ abi: C, args: N, functionName: S });
|
|
16306
16306
|
g += (h.length - 2) / 2, // Check if batching is enabled.
|
|
16307
16307
|
u > 0 && // Check if the current size of the batch exceeds the size limit.
|
|
16308
16308
|
g > u && // Check if the current chunk is not already empty.
|
|
@@ -16320,7 +16320,7 @@ async function mT(e, t) {
|
|
|
16320
16320
|
address: O,
|
|
16321
16321
|
args: N,
|
|
16322
16322
|
docsPath: "/docs/contract/multicall",
|
|
16323
|
-
functionName:
|
|
16323
|
+
functionName: S,
|
|
16324
16324
|
sender: r
|
|
16325
16325
|
});
|
|
16326
16326
|
if (!s)
|
|
@@ -16362,23 +16362,23 @@ async function mT(e, t) {
|
|
|
16362
16362
|
}
|
|
16363
16363
|
const O = C.value;
|
|
16364
16364
|
for (let N = 0; N < O.length; N++) {
|
|
16365
|
-
const { returnData:
|
|
16365
|
+
const { returnData: S, success: h } = O[N], { callData: b } = m[A][N], { abi: x, address: T, functionName: I, args: B } = l[v.length];
|
|
16366
16366
|
try {
|
|
16367
16367
|
if (b === "0x")
|
|
16368
16368
|
throw new Qi();
|
|
16369
16369
|
if (!h)
|
|
16370
|
-
throw new iu({ data:
|
|
16370
|
+
throw new iu({ data: S });
|
|
16371
16371
|
const D = ba({
|
|
16372
16372
|
abi: x,
|
|
16373
16373
|
args: B,
|
|
16374
|
-
data:
|
|
16374
|
+
data: S,
|
|
16375
16375
|
functionName: I
|
|
16376
16376
|
});
|
|
16377
16377
|
v.push(s ? { result: D, status: "success" } : D);
|
|
16378
16378
|
} catch (D) {
|
|
16379
16379
|
const k = aa(D, {
|
|
16380
16380
|
abi: x,
|
|
16381
|
-
address:
|
|
16381
|
+
address: T,
|
|
16382
16382
|
args: B,
|
|
16383
16383
|
docsPath: "/docs/contract/multicall",
|
|
16384
16384
|
functionName: I
|
|
@@ -16423,14 +16423,14 @@ async function Qp(e, t) {
|
|
|
16423
16423
|
})).map((f, m) => ({
|
|
16424
16424
|
...jf(f),
|
|
16425
16425
|
calls: f.calls.map((y, g) => {
|
|
16426
|
-
var x,
|
|
16427
|
-
const { abi: E, args: v, functionName: w, to: A } = s[m].calls[g], C = ((x = y.error) == null ? void 0 : x.data) ?? y.returnData, O = BigInt(y.gasUsed), N = (
|
|
16426
|
+
var x, T;
|
|
16427
|
+
const { abi: E, args: v, functionName: w, to: A } = s[m].calls[g], C = ((x = y.error) == null ? void 0 : x.data) ?? y.returnData, O = BigInt(y.gasUsed), N = (T = y.logs) == null ? void 0 : T.map((I) => un(I)), S = y.status === "0x1" ? "success" : "failure", h = E && S === "success" && C !== "0x" ? ba({
|
|
16428
16428
|
abi: E,
|
|
16429
16429
|
data: C,
|
|
16430
16430
|
functionName: w
|
|
16431
16431
|
}) : null, b = (() => {
|
|
16432
16432
|
var B;
|
|
16433
|
-
if (
|
|
16433
|
+
if (S === "success")
|
|
16434
16434
|
return;
|
|
16435
16435
|
let I;
|
|
16436
16436
|
if (((B = y.error) == null ? void 0 : B.data) === "0x" ? I = new Qi() : y.error && (I = new iu(y.error)), !!I)
|
|
@@ -16445,8 +16445,8 @@ async function Qp(e, t) {
|
|
|
16445
16445
|
data: C,
|
|
16446
16446
|
gasUsed: O,
|
|
16447
16447
|
logs: N,
|
|
16448
|
-
status:
|
|
16449
|
-
...
|
|
16448
|
+
status: S,
|
|
16449
|
+
...S === "success" ? {
|
|
16450
16450
|
result: h
|
|
16451
16451
|
} : {
|
|
16452
16452
|
error: b
|
|
@@ -16821,7 +16821,7 @@ async function CT(e, t) {
|
|
|
16821
16821
|
],
|
|
16822
16822
|
traceTransfers: i,
|
|
16823
16823
|
validation: c
|
|
16824
|
-
}), m = o ? f[2] : f[0], [y, g, , E, v, w, A, C] = o ? f : [], { calls: O, ...N } = m,
|
|
16824
|
+
}), m = o ? f[2] : f[0], [y, g, , E, v, w, A, C] = o ? f : [], { calls: O, ...N } = m, S = O.slice(0, -1) ?? [], h = (y == null ? void 0 : y.calls) ?? [], b = (g == null ? void 0 : g.calls) ?? [], x = [...h, ...b].map((F) => F.status === "success" ? Ne(F.data) : null), T = (E == null ? void 0 : E.calls) ?? [], I = (v == null ? void 0 : v.calls) ?? [], B = [...T, ...I].map((F) => F.status === "success" ? Ne(F.data) : null), D = ((w == null ? void 0 : w.calls) ?? []).map((F) => F.status === "success" ? F.result : null), k = ((C == null ? void 0 : C.calls) ?? []).map((F) => F.status === "success" ? F.result : null), P = ((A == null ? void 0 : A.calls) ?? []).map((F) => F.status === "success" ? F.result : null), U = [];
|
|
16825
16825
|
for (const [F, R] of B.entries()) {
|
|
16826
16826
|
const L = x[F];
|
|
16827
16827
|
if (typeof R != "bigint" || typeof L != "bigint")
|
|
@@ -16847,7 +16847,7 @@ async function CT(e, t) {
|
|
|
16847
16847
|
return {
|
|
16848
16848
|
assetChanges: U,
|
|
16849
16849
|
block: N,
|
|
16850
|
-
results:
|
|
16850
|
+
results: S
|
|
16851
16851
|
};
|
|
16852
16852
|
}
|
|
16853
16853
|
const h6 = "0x6492649264926492649264926492649264926492649264926492649264926492";
|
|
@@ -17145,7 +17145,7 @@ async function y6(e, t) {
|
|
|
17145
17145
|
poll: !0,
|
|
17146
17146
|
pollingInterval: u,
|
|
17147
17147
|
async onBlockNumber(N) {
|
|
17148
|
-
const
|
|
17148
|
+
const S = (b) => {
|
|
17149
17149
|
clearTimeout(C), E == null || E(), b(), g == null || g();
|
|
17150
17150
|
};
|
|
17151
17151
|
let h = N;
|
|
@@ -17154,7 +17154,7 @@ async function y6(e, t) {
|
|
|
17154
17154
|
if (m) {
|
|
17155
17155
|
if (n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n))
|
|
17156
17156
|
return;
|
|
17157
|
-
|
|
17157
|
+
S(() => O.resolve(m));
|
|
17158
17158
|
return;
|
|
17159
17159
|
}
|
|
17160
17160
|
if (r && !d && (y = !0, await zl(async () => {
|
|
@@ -17164,7 +17164,7 @@ async function y6(e, t) {
|
|
|
17164
17164
|
retryCount: o
|
|
17165
17165
|
}), y = !1), m = await se(e, Tl, "getTransactionReceipt")({ hash: s }), n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n))
|
|
17166
17166
|
return;
|
|
17167
|
-
|
|
17167
|
+
S(() => O.resolve(m));
|
|
17168
17168
|
} catch (b) {
|
|
17169
17169
|
if (b instanceof Ey || b instanceof ky) {
|
|
17170
17170
|
if (!d) {
|
|
@@ -17182,26 +17182,26 @@ async function y6(e, t) {
|
|
|
17182
17182
|
shouldRetry: ({ error: B }) => B instanceof Fy
|
|
17183
17183
|
});
|
|
17184
17184
|
y = !1;
|
|
17185
|
-
const
|
|
17186
|
-
if (!
|
|
17187
|
-
hash:
|
|
17185
|
+
const T = x.transactions.find(({ from: B, nonce: D }) => B === f.from && D === f.nonce);
|
|
17186
|
+
if (!T || (m = await se(e, Tl, "getTransactionReceipt")({
|
|
17187
|
+
hash: T.hash
|
|
17188
17188
|
}), n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n)))
|
|
17189
17189
|
return;
|
|
17190
17190
|
let I = "replaced";
|
|
17191
|
-
|
|
17191
|
+
T.to === f.to && T.value === f.value && T.input === f.input ? I = "repriced" : T.from === T.to && T.value === 0n && (I = "cancelled"), S(() => {
|
|
17192
17192
|
var B;
|
|
17193
17193
|
(B = O.onReplaced) == null || B.call(O, {
|
|
17194
17194
|
reason: I,
|
|
17195
17195
|
replacedTransaction: f,
|
|
17196
|
-
transaction:
|
|
17196
|
+
transaction: T,
|
|
17197
17197
|
transactionReceipt: m
|
|
17198
17198
|
}), O.resolve(m);
|
|
17199
17199
|
});
|
|
17200
17200
|
} catch (x) {
|
|
17201
|
-
|
|
17201
|
+
S(() => O.reject(x));
|
|
17202
17202
|
}
|
|
17203
17203
|
} else
|
|
17204
|
-
|
|
17204
|
+
S(() => O.reject(b));
|
|
17205
17205
|
}
|
|
17206
17206
|
}
|
|
17207
17207
|
});
|
|
@@ -17326,29 +17326,29 @@ function MT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
17326
17326
|
return;
|
|
17327
17327
|
}
|
|
17328
17328
|
try {
|
|
17329
|
-
let
|
|
17329
|
+
let S;
|
|
17330
17330
|
if (A)
|
|
17331
|
-
|
|
17331
|
+
S = await se(e, xu, "getFilterChanges")({ filter: A });
|
|
17332
17332
|
else {
|
|
17333
17333
|
const h = await se(e, dc, "getBlockNumber")({});
|
|
17334
|
-
w && w !== h ?
|
|
17334
|
+
w && w !== h ? S = await se(e, n0, "getLogs")({
|
|
17335
17335
|
address: t,
|
|
17336
17336
|
args: r,
|
|
17337
17337
|
event: s,
|
|
17338
17338
|
events: a,
|
|
17339
17339
|
fromBlock: w + 1n,
|
|
17340
17340
|
toBlock: h
|
|
17341
|
-
}) :
|
|
17341
|
+
}) : S = [], w = h;
|
|
17342
17342
|
}
|
|
17343
|
-
if (
|
|
17343
|
+
if (S.length === 0)
|
|
17344
17344
|
return;
|
|
17345
17345
|
if (n)
|
|
17346
|
-
v.onLogs(
|
|
17346
|
+
v.onLogs(S);
|
|
17347
17347
|
else
|
|
17348
|
-
for (const h of
|
|
17348
|
+
for (const h of S)
|
|
17349
17349
|
v.onLogs([h]);
|
|
17350
|
-
} catch (
|
|
17351
|
-
A &&
|
|
17350
|
+
} catch (S) {
|
|
17351
|
+
A && S instanceof xs && (C = !1), (N = v.onError) == null || N.call(v, S);
|
|
17352
17352
|
}
|
|
17353
17353
|
}, {
|
|
17354
17354
|
emitOnBegin: !0,
|
|
@@ -17364,15 +17364,15 @@ function MT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
17364
17364
|
try {
|
|
17365
17365
|
const w = (() => {
|
|
17366
17366
|
if (e.transport.type === "fallback") {
|
|
17367
|
-
const N = e.transport.transports.find((
|
|
17367
|
+
const N = e.transport.transports.find((S) => S.config.type === "webSocket" || S.config.type === "ipc");
|
|
17368
17368
|
return N ? N.value : e.transport;
|
|
17369
17369
|
}
|
|
17370
17370
|
return e.transport;
|
|
17371
17371
|
})(), A = a ?? (s ? [s] : void 0);
|
|
17372
17372
|
let C = [];
|
|
17373
|
-
A && (C = [A.flatMap((
|
|
17374
|
-
abi: [
|
|
17375
|
-
eventName:
|
|
17373
|
+
A && (C = [A.flatMap((S) => tc({
|
|
17374
|
+
abi: [S],
|
|
17375
|
+
eventName: S.name,
|
|
17376
17376
|
args: r
|
|
17377
17377
|
}))], s && (C = C[0]));
|
|
17378
17378
|
const { unsubscribe: O } = await w.subscribe({
|
|
@@ -17381,24 +17381,24 @@ function MT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
17381
17381
|
var h;
|
|
17382
17382
|
if (!E)
|
|
17383
17383
|
return;
|
|
17384
|
-
const
|
|
17384
|
+
const S = N.result;
|
|
17385
17385
|
try {
|
|
17386
17386
|
const { eventName: b, args: x } = Ml({
|
|
17387
17387
|
abi: A ?? [],
|
|
17388
|
-
data:
|
|
17389
|
-
topics:
|
|
17388
|
+
data: S.data,
|
|
17389
|
+
topics: S.topics,
|
|
17390
17390
|
strict: m
|
|
17391
|
-
}),
|
|
17392
|
-
c([
|
|
17391
|
+
}), T = un(S, { args: x, eventName: b });
|
|
17392
|
+
c([T]);
|
|
17393
17393
|
} catch (b) {
|
|
17394
|
-
let x,
|
|
17394
|
+
let x, T;
|
|
17395
17395
|
if (b instanceof _l || b instanceof If) {
|
|
17396
17396
|
if (d)
|
|
17397
17397
|
return;
|
|
17398
|
-
x = b.abiItem.name,
|
|
17398
|
+
x = b.abiItem.name, T = (h = b.abiItem.inputs) == null ? void 0 : h.some((B) => !("name" in B && B.name));
|
|
17399
17399
|
}
|
|
17400
|
-
const I = un(
|
|
17401
|
-
args:
|
|
17400
|
+
const I = un(S, {
|
|
17401
|
+
args: T ? [] : {},
|
|
17402
17402
|
eventName: x
|
|
17403
17403
|
});
|
|
17404
17404
|
c([I]);
|
|
@@ -17687,7 +17687,7 @@ async function QT(e, t) {
|
|
|
17687
17687
|
}
|
|
17688
17688
|
const Fd = new xo(128);
|
|
17689
17689
|
async function x6(e, t) {
|
|
17690
|
-
var O, N,
|
|
17690
|
+
var O, N, S, h;
|
|
17691
17691
|
const { account: r = e.account, chain: n = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: u, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: m, pollingInterval: y, throwOnReceiptRevert: g, type: E, value: v, ...w } = t, A = t.timeout ?? Math.max(((n == null ? void 0 : n.blockTime) ?? 0) * 3, 5e3);
|
|
17692
17692
|
if (typeof r > "u")
|
|
17693
17693
|
throw new qn({
|
|
@@ -17712,9 +17712,9 @@ async function x6(e, t) {
|
|
|
17712
17712
|
currentChainId: x,
|
|
17713
17713
|
chain: n
|
|
17714
17714
|
}));
|
|
17715
|
-
const
|
|
17715
|
+
const T = (S = (N = (O = e.chain) == null ? void 0 : O.formatters) == null ? void 0 : N.transactionRequest) == null ? void 0 : S.format, B = (T || Yr)({
|
|
17716
17716
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
17717
|
-
...ma(w, { format:
|
|
17717
|
+
...ma(w, { format: T }),
|
|
17718
17718
|
accessList: s,
|
|
17719
17719
|
account: C,
|
|
17720
17720
|
authorizationList: a,
|
|
@@ -17780,8 +17780,8 @@ async function x6(e, t) {
|
|
|
17780
17780
|
value: v,
|
|
17781
17781
|
...w,
|
|
17782
17782
|
to: b
|
|
17783
|
-
}),
|
|
17784
|
-
serializer:
|
|
17783
|
+
}), T = (h = n == null ? void 0 : n.serializers) == null ? void 0 : h.transaction, I = await C.signTransaction(x, {
|
|
17784
|
+
serializer: T
|
|
17785
17785
|
});
|
|
17786
17786
|
return await se(e, U0, "sendRawTransactionSync")({
|
|
17787
17787
|
serializedTransaction: I,
|
|
@@ -18014,7 +18014,7 @@ function d4(e, t = {}) {
|
|
|
18014
18014
|
methods: o,
|
|
18015
18015
|
name: i,
|
|
18016
18016
|
async request({ method: O, params: N }) {
|
|
18017
|
-
const
|
|
18017
|
+
const S = { method: O, params: N }, { schedule: h } = mg({
|
|
18018
18018
|
id: A,
|
|
18019
18019
|
wait: E,
|
|
18020
18020
|
shouldSplitBatch(I) {
|
|
@@ -18028,16 +18028,16 @@ function d4(e, t = {}) {
|
|
|
18028
18028
|
await C.request({
|
|
18029
18029
|
body: I
|
|
18030
18030
|
})
|
|
18031
|
-
], [{ error: x, result:
|
|
18031
|
+
], [{ error: x, result: T }] = await b(S);
|
|
18032
18032
|
if (d)
|
|
18033
|
-
return { error: x, result:
|
|
18033
|
+
return { error: x, result: T };
|
|
18034
18034
|
if (x)
|
|
18035
18035
|
throw new zf({
|
|
18036
|
-
body:
|
|
18036
|
+
body: S,
|
|
18037
18037
|
error: x,
|
|
18038
18038
|
url: A
|
|
18039
18039
|
});
|
|
18040
|
-
return
|
|
18040
|
+
return T;
|
|
18041
18041
|
},
|
|
18042
18042
|
retryCount: v,
|
|
18043
18043
|
retryDelay: u,
|
|
@@ -25961,7 +25961,7 @@ async function tU(e, t) {
|
|
|
25961
25961
|
try {
|
|
25962
25962
|
const { accessList: i, blockNumber: c, blockTag: l, data: u, gas: d, gasPrice: f, maxFeePerGas: m, maxPriorityFeePerGas: y, nonce: g, to: E, value: v, ...w } = t, C = (typeof c == "bigint" ? V(c) : void 0) || l;
|
|
25963
25963
|
mn(t);
|
|
25964
|
-
const O = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format,
|
|
25964
|
+
const O = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, S = (O || Yr)({
|
|
25965
25965
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
25966
25966
|
...ma(w, { format: O }),
|
|
25967
25967
|
account: n,
|
|
@@ -25976,7 +25976,7 @@ async function tU(e, t) {
|
|
|
25976
25976
|
value: v
|
|
25977
25977
|
}, "estimateGas"), { baseFeePerGas: h, gasLimit: b, priorityFeePerGas: x } = await e.request({
|
|
25978
25978
|
method: "linea_estimateGas",
|
|
25979
|
-
params: C ? [
|
|
25979
|
+
params: C ? [S, C] : [S]
|
|
25980
25980
|
});
|
|
25981
25981
|
return {
|
|
25982
25982
|
baseFeePerGas: BigInt(h),
|
|
@@ -32737,8 +32737,8 @@ function BR(e) {
|
|
|
32737
32737
|
if (Mr(a) && a !== "0x" && (A.gas = BigInt(a)), Mr(l) && (A.nonce = l === "0x" ? 0n : BigInt(l)), Mr(s) && s !== "0x" && (A.maxFeePerGas = BigInt(s)), Mr(n) && n !== "0x" && (A.maxPriorityFeePerGas = BigInt(n)), Mr(c) && (A.nonceKey = c === "0x" ? 0n : BigInt(c)), Mr(u) && u !== "0x" && (A.validBefore = Number(u)), Mr(d) && d !== "0x" && (A.validAfter = Number(d)), Mr(f) && f !== "0x" && (A.feeToken = f), o && o !== "0x") {
|
|
32738
32738
|
const O = o;
|
|
32739
32739
|
A.calls = O.map((N) => {
|
|
32740
|
-
const [
|
|
32741
|
-
return
|
|
32740
|
+
const [S, h, b] = N, x = {};
|
|
32741
|
+
return S && S !== "0x" && (x.to = S), h && h !== "0x" && (x.value = BigInt(h)), b && b !== "0x" && (x.data = b), x;
|
|
32742
32742
|
});
|
|
32743
32743
|
}
|
|
32744
32744
|
(i == null ? void 0 : i.length) !== 0 && i !== "0x" && (A.accessList = wR(i)), (y == null ? void 0 : y.length) !== 0 && y !== "0x" && (A.authorizationList = aR(y)), m !== "0x" && m !== void 0 && (m === "0x00" || Gl(m) ? A.feePayerSignature = null : A.feePayerSignature = G9(m)), v && (A.keyAuthorization = dR(v));
|
|
@@ -35853,7 +35853,7 @@ const sf = Yi({}), BL = new k3({
|
|
|
35853
35853
|
}
|
|
35854
35854
|
}), FL = (e) => {
|
|
35855
35855
|
var n, s, a;
|
|
35856
|
-
const t =
|
|
35856
|
+
const t = J((o) => o.updateState), r = J((o) => o.state.isMarketOrder);
|
|
35857
35857
|
return rs(() => {
|
|
35858
35858
|
setInterval(() => {
|
|
35859
35859
|
t({ currentTime: Date.now() });
|
|
@@ -35904,7 +35904,7 @@ const sf = Yi({}), BL = new k3({
|
|
|
35904
35904
|
value: a
|
|
35905
35905
|
};
|
|
35906
35906
|
}, [e, s, t, r, n]), OL = (e) => {
|
|
35907
|
-
const t =
|
|
35907
|
+
const t = J((l) => l.state.acceptedMarketPrice), { walletClient: r, publicClient: n } = Q(
|
|
35908
35908
|
() => SL(e.chainId, e.provider),
|
|
35909
35909
|
[e.chainId, e.provider]
|
|
35910
35910
|
), s = Q(
|
|
@@ -36215,7 +36215,7 @@ var HL = /* @__PURE__ */ $L();
|
|
|
36215
36215
|
//! license : MIT
|
|
36216
36216
|
//! momentjs.com
|
|
36217
36217
|
var X6;
|
|
36218
|
-
function
|
|
36218
|
+
function ee() {
|
|
36219
36219
|
return X6.apply(null, arguments);
|
|
36220
36220
|
}
|
|
36221
36221
|
function GL(e) {
|
|
@@ -36307,7 +36307,7 @@ function Du(e) {
|
|
|
36307
36307
|
var t = hn(NaN);
|
|
36308
36308
|
return e != null ? ds(Ce(t), e) : Ce(t).userInvalidated = !0, t;
|
|
36309
36309
|
}
|
|
36310
|
-
var k1 =
|
|
36310
|
+
var k1 = ee.momentProperties = [], $d = !1;
|
|
36311
36311
|
function V0(e, t) {
|
|
36312
36312
|
var r, n, s, a = k1.length;
|
|
36313
36313
|
if (Zt(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), Zt(t._i) || (e._i = t._i), Zt(t._f) || (e._f = t._f), Zt(t._l) || (e._l = t._l), Zt(t._strict) || (e._strict = t._strict), Zt(t._tzm) || (e._tzm = t._tzm), Zt(t._isUTC) || (e._isUTC = t._isUTC), Zt(t._offset) || (e._offset = t._offset), Zt(t._pf) || (e._pf = Ce(t)), Zt(t._locale) || (e._locale = t._locale), a > 0)
|
|
@@ -36316,18 +36316,18 @@ function V0(e, t) {
|
|
|
36316
36316
|
return e;
|
|
36317
36317
|
}
|
|
36318
36318
|
function gc(e) {
|
|
36319
|
-
V0(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), $d === !1 && ($d = !0,
|
|
36319
|
+
V0(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), $d === !1 && ($d = !0, ee.updateOffset(this), $d = !1);
|
|
36320
36320
|
}
|
|
36321
36321
|
function Wr(e) {
|
|
36322
36322
|
return e instanceof gc || e != null && e._isAMomentObject != null;
|
|
36323
36323
|
}
|
|
36324
36324
|
function J6(e) {
|
|
36325
|
-
|
|
36325
|
+
ee.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
36326
36326
|
}
|
|
36327
36327
|
function Ur(e, t) {
|
|
36328
36328
|
var r = !0;
|
|
36329
36329
|
return ds(function() {
|
|
36330
|
-
if (
|
|
36330
|
+
if (ee.deprecationHandler != null && ee.deprecationHandler(null, e), r) {
|
|
36331
36331
|
var n = [], s, a, o, i = arguments.length;
|
|
36332
36332
|
for (a = 0; a < i; a++) {
|
|
36333
36333
|
if (s = "", typeof arguments[a] == "object") {
|
|
@@ -36351,10 +36351,10 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
36351
36351
|
}
|
|
36352
36352
|
var C1 = {};
|
|
36353
36353
|
function e2(e, t) {
|
|
36354
|
-
|
|
36354
|
+
ee.deprecationHandler != null && ee.deprecationHandler(e, t), C1[e] || (J6(t), C1[e] = !0);
|
|
36355
36355
|
}
|
|
36356
|
-
|
|
36357
|
-
|
|
36356
|
+
ee.suppressDeprecationWarnings = !1;
|
|
36357
|
+
ee.deprecationHandler = null;
|
|
36358
36358
|
function bn(e) {
|
|
36359
36359
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
36360
36360
|
}
|
|
@@ -36643,10 +36643,10 @@ ae("YYYYY", Ru, _u);
|
|
|
36643
36643
|
ae("YYYYYY", Ru, _u);
|
|
36644
36644
|
Ze(["YYYYY", "YYYYYY"], Lt);
|
|
36645
36645
|
Ze("YYYY", function(e, t) {
|
|
36646
|
-
t[Lt] = e.length === 2 ?
|
|
36646
|
+
t[Lt] = e.length === 2 ? ee.parseTwoDigitYear(e) : Fe(e);
|
|
36647
36647
|
});
|
|
36648
36648
|
Ze("YY", function(e, t) {
|
|
36649
|
-
t[Lt] =
|
|
36649
|
+
t[Lt] = ee.parseTwoDigitYear(e);
|
|
36650
36650
|
});
|
|
36651
36651
|
Ze("Y", function(e, t) {
|
|
36652
36652
|
t[Lt] = parseInt(e, 10);
|
|
@@ -36654,7 +36654,7 @@ Ze("Y", function(e, t) {
|
|
|
36654
36654
|
function ei(e) {
|
|
36655
36655
|
return zu(e) ? 366 : 365;
|
|
36656
36656
|
}
|
|
36657
|
-
|
|
36657
|
+
ee.parseTwoDigitYear = function(e) {
|
|
36658
36658
|
return Fe(e) + (Fe(e) > 68 ? 1900 : 2e3);
|
|
36659
36659
|
};
|
|
36660
36660
|
var o2 = Io("FullYear", !0);
|
|
@@ -36663,7 +36663,7 @@ function hz() {
|
|
|
36663
36663
|
}
|
|
36664
36664
|
function Io(e, t) {
|
|
36665
36665
|
return function(r) {
|
|
36666
|
-
return r != null ? (i2(this, e, r),
|
|
36666
|
+
return r != null ? (i2(this, e, r), ee.updateOffset(this, t), this) : Oi(this, e);
|
|
36667
36667
|
};
|
|
36668
36668
|
}
|
|
36669
36669
|
function Oi(e, t) {
|
|
@@ -36823,7 +36823,7 @@ function u2(e, t) {
|
|
|
36823
36823
|
return n = n < 29 ? n : Math.min(n, Q0(e.year(), r)), e._isUTC ? e._d.setUTCMonth(r, n) : e._d.setMonth(r, n), e;
|
|
36824
36824
|
}
|
|
36825
36825
|
function d2(e) {
|
|
36826
|
-
return e != null ? (u2(this, e),
|
|
36826
|
+
return e != null ? (u2(this, e), ee.updateOffset(this, !0), this) : Oi(this, "Month");
|
|
36827
36827
|
}
|
|
36828
36828
|
function Az() {
|
|
36829
36829
|
return Q0(this.year(), this.month());
|
|
@@ -37379,9 +37379,9 @@ function v$(e) {
|
|
|
37379
37379
|
delete e._isValid;
|
|
37380
37380
|
else
|
|
37381
37381
|
return;
|
|
37382
|
-
e._strict ? e._isValid = !1 :
|
|
37382
|
+
e._strict ? e._isValid = !1 : ee.createFromInputFallback(e);
|
|
37383
37383
|
}
|
|
37384
|
-
|
|
37384
|
+
ee.createFromInputFallback = Ur(
|
|
37385
37385
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
|
37386
37386
|
function(e) {
|
|
37387
37387
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
@@ -37391,7 +37391,7 @@ function Ia(e, t, r) {
|
|
|
37391
37391
|
return e ?? t ?? r;
|
|
37392
37392
|
}
|
|
37393
37393
|
function E$(e) {
|
|
37394
|
-
var t = new Date(
|
|
37394
|
+
var t = new Date(ee.now());
|
|
37395
37395
|
return e._useUTC ? [
|
|
37396
37396
|
t.getUTCFullYear(),
|
|
37397
37397
|
t.getUTCMonth(),
|
|
@@ -37419,16 +37419,16 @@ function k$(e) {
|
|
|
37419
37419
|
_i(tt(), 1, 4).year
|
|
37420
37420
|
), n = Ia(t.W, 1), s = Ia(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, l = _i(tt(), a, o), r = Ia(t.gg, e._a[Lt], l.year), n = Ia(t.w, l.week), t.d != null ? (s = t.d, (s < 0 || s > 6) && (c = !0)) : t.e != null ? (s = t.e + a, (t.e < 0 || t.e > 6) && (c = !0)) : s = a), n < 1 || n > $n(r, a, o) ? Ce(e)._overflowWeeks = !0 : c != null ? Ce(e)._overflowWeekday = !0 : (i = f2(r, n, s, a, o), e._a[Lt] = i.year, e._dayOfYear = i.dayOfYear);
|
|
37421
37421
|
}
|
|
37422
|
-
|
|
37422
|
+
ee.ISO_8601 = function() {
|
|
37423
37423
|
};
|
|
37424
|
-
|
|
37424
|
+
ee.RFC_2822 = function() {
|
|
37425
37425
|
};
|
|
37426
37426
|
function am(e) {
|
|
37427
|
-
if (e._f ===
|
|
37427
|
+
if (e._f === ee.ISO_8601) {
|
|
37428
37428
|
g2(e);
|
|
37429
37429
|
return;
|
|
37430
37430
|
}
|
|
37431
|
-
if (e._f ===
|
|
37431
|
+
if (e._f === ee.RFC_2822) {
|
|
37432
37432
|
x2(e);
|
|
37433
37433
|
return;
|
|
37434
37434
|
}
|
|
@@ -37479,9 +37479,9 @@ function w2(e) {
|
|
|
37479
37479
|
}
|
|
37480
37480
|
function P$(e) {
|
|
37481
37481
|
var t = e._i;
|
|
37482
|
-
Zt(t) ? e._d = new Date(
|
|
37482
|
+
Zt(t) ? e._d = new Date(ee.now()) : yc(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? v$(e) : Vr(t) ? (e._a = Q6(t.slice(0), function(r) {
|
|
37483
37483
|
return parseInt(r, 10);
|
|
37484
|
-
}), sm(e)) : Js(t) ? A$(e) : Vn(t) ? e._d = new Date(t) :
|
|
37484
|
+
}), sm(e)) : Js(t) ? A$(e) : Vn(t) ? e._d = new Date(t) : ee.createFromInputFallback(e);
|
|
37485
37485
|
}
|
|
37486
37486
|
function v2(e, t, r, n, s) {
|
|
37487
37487
|
var a = {};
|
|
@@ -37589,12 +37589,12 @@ function om(e, t) {
|
|
|
37589
37589
|
}
|
|
37590
37590
|
function im(e, t) {
|
|
37591
37591
|
var r, n;
|
|
37592
|
-
return t._isUTC ? (r = t.clone(), n = (Wr(e) || yc(e) ? e.valueOf() : tt(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n),
|
|
37592
|
+
return t._isUTC ? (r = t.clone(), n = (Wr(e) || yc(e) ? e.valueOf() : tt(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), ee.updateOffset(r, !1), r) : tt(e).local();
|
|
37593
37593
|
}
|
|
37594
37594
|
function pf(e) {
|
|
37595
37595
|
return -Math.round(e._d.getTimezoneOffset());
|
|
37596
37596
|
}
|
|
37597
|
-
|
|
37597
|
+
ee.updateOffset = function() {
|
|
37598
37598
|
};
|
|
37599
37599
|
function L$(e, t, r) {
|
|
37600
37600
|
var n = this._offset || 0, s;
|
|
@@ -37610,7 +37610,7 @@ function L$(e, t, r) {
|
|
|
37610
37610
|
Zr(e - n, "m"),
|
|
37611
37611
|
1,
|
|
37612
37612
|
!1
|
|
37613
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
37613
|
+
) : this._changeInProgress || (this._changeInProgress = !0, ee.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
37614
37614
|
} else
|
|
37615
37615
|
return this._isUTC ? n : pf(this);
|
|
37616
37616
|
}
|
|
@@ -37706,7 +37706,7 @@ function T2(e, t) {
|
|
|
37706
37706
|
}
|
|
37707
37707
|
function A2(e, t, r, n) {
|
|
37708
37708
|
var s = t._milliseconds, a = df(t._days), o = df(t._months);
|
|
37709
|
-
e.isValid() && (n = n ?? !0, o && u2(e, Oi(e, "Month") + o * r), a && i2(e, "Date", Oi(e, "Date") + a * r), s && e._d.setTime(e._d.valueOf() + s * r), n &&
|
|
37709
|
+
e.isValid() && (n = n ?? !0, o && u2(e, Oi(e, "Month") + o * r), a && i2(e, "Date", Oi(e, "Date") + a * r), s && e._d.setTime(e._d.valueOf() + s * r), n && ee.updateOffset(e, a || o));
|
|
37710
37710
|
}
|
|
37711
37711
|
var Q$ = T2(1, "add"), J$ = T2(-1, "subtract");
|
|
37712
37712
|
function S2(e) {
|
|
@@ -37771,7 +37771,7 @@ function sH(e, t) {
|
|
|
37771
37771
|
}
|
|
37772
37772
|
function aH(e, t) {
|
|
37773
37773
|
arguments.length === 1 && (arguments[0] ? eH(arguments[0]) ? (e = arguments[0], t = void 0) : nH(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
37774
|
-
var r = e || tt(), n = im(r, this).startOf("day"), s =
|
|
37774
|
+
var r = e || tt(), n = im(r, this).startOf("day"), s = ee.calendarFormat(this, n) || "sameElse", a = t && (bn(t[s]) ? t[s].call(this, r) : t[s]);
|
|
37775
37775
|
return this.format(
|
|
37776
37776
|
a || this.localeData().calendar(s, this, tt(r))
|
|
37777
37777
|
);
|
|
@@ -37848,8 +37848,8 @@ function Pl(e, t) {
|
|
|
37848
37848
|
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), n = e.clone().add(r, "months"), s, a;
|
|
37849
37849
|
return t - n < 0 ? (s = e.clone().add(r - 1, "months"), a = (t - n) / (n - s)) : (s = e.clone().add(r + 1, "months"), a = (t - n) / (s - n)), -(r + a) || 0;
|
|
37850
37850
|
}
|
|
37851
|
-
|
|
37852
|
-
|
|
37851
|
+
ee.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
37852
|
+
ee.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
37853
37853
|
function mH() {
|
|
37854
37854
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
37855
37855
|
}
|
|
@@ -37872,7 +37872,7 @@ function bH() {
|
|
|
37872
37872
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', n = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", s = "-MM-DD[T]HH:mm:ss.SSS", a = t + '[")]', this.format(r + n + s + a);
|
|
37873
37873
|
}
|
|
37874
37874
|
function yH(e) {
|
|
37875
|
-
e || (e = this.isUtc() ?
|
|
37875
|
+
e || (e = this.isUtc() ? ee.defaultFormatUtc : ee.defaultFormat);
|
|
37876
37876
|
var t = Al(this, e);
|
|
37877
37877
|
return this.localeData().postformat(t);
|
|
37878
37878
|
}
|
|
@@ -37960,7 +37960,7 @@ function EH(e) {
|
|
|
37960
37960
|
t = this._d.valueOf(), t -= Ha(t, ql);
|
|
37961
37961
|
break;
|
|
37962
37962
|
}
|
|
37963
|
-
return this._d.setTime(t),
|
|
37963
|
+
return this._d.setTime(t), ee.updateOffset(this, !0), this;
|
|
37964
37964
|
}
|
|
37965
37965
|
function kH(e) {
|
|
37966
37966
|
var t, r;
|
|
@@ -38011,7 +38011,7 @@ function kH(e) {
|
|
|
38011
38011
|
t = this._d.valueOf(), t += ql - Ha(t, ql) - 1;
|
|
38012
38012
|
break;
|
|
38013
38013
|
}
|
|
38014
|
-
return this._d.setTime(t),
|
|
38014
|
+
return this._d.setTime(t), ee.updateOffset(this, !0), this;
|
|
38015
38015
|
}
|
|
38016
38016
|
function CH() {
|
|
38017
38017
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
@@ -38103,7 +38103,7 @@ function DH(e, t) {
|
|
|
38103
38103
|
for (r = 0, n = a.length; r < n; ++r) {
|
|
38104
38104
|
switch (typeof a[r].since) {
|
|
38105
38105
|
case "string":
|
|
38106
|
-
s =
|
|
38106
|
+
s = ee(a[r].since).startOf("day"), a[r].since = s.valueOf();
|
|
38107
38107
|
break;
|
|
38108
38108
|
}
|
|
38109
38109
|
switch (typeof a[r].until) {
|
|
@@ -38111,7 +38111,7 @@ function DH(e, t) {
|
|
|
38111
38111
|
a[r].until = 1 / 0;
|
|
38112
38112
|
break;
|
|
38113
38113
|
case "string":
|
|
38114
|
-
s =
|
|
38114
|
+
s = ee(a[r].until).startOf("day").valueOf(), a[r].until = s.valueOf();
|
|
38115
38115
|
break;
|
|
38116
38116
|
}
|
|
38117
38117
|
}
|
|
@@ -38142,7 +38142,7 @@ function _H(e, t, r) {
|
|
|
38142
38142
|
}
|
|
38143
38143
|
function MH(e, t) {
|
|
38144
38144
|
var r = e.since <= e.until ? 1 : -1;
|
|
38145
|
-
return t === void 0 ?
|
|
38145
|
+
return t === void 0 ? ee(e.since).year() : ee(e.since).year() + (t - e.offset) * r;
|
|
38146
38146
|
}
|
|
38147
38147
|
function RH() {
|
|
38148
38148
|
var e, t, r, n = this.localeData().eras();
|
|
@@ -38169,7 +38169,7 @@ function zH() {
|
|
|
38169
38169
|
var e, t, r, n, s = this.localeData().eras();
|
|
38170
38170
|
for (e = 0, t = s.length; e < t; ++e)
|
|
38171
38171
|
if (r = s[e].since <= s[e].until ? 1 : -1, n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
38172
|
-
return (this.year() -
|
|
38172
|
+
return (this.year() - ee(s[e].since).year()) * r + s[e].offset;
|
|
38173
38173
|
return this.year();
|
|
38174
38174
|
}
|
|
38175
38175
|
function $H(e) {
|
|
@@ -38230,7 +38230,7 @@ wc(
|
|
|
38230
38230
|
}
|
|
38231
38231
|
);
|
|
38232
38232
|
wc(["gg", "GG"], function(e, t, r, n) {
|
|
38233
|
-
t[n] =
|
|
38233
|
+
t[n] = ee.parseTwoDigitYear(e);
|
|
38234
38234
|
});
|
|
38235
38235
|
function qH(e) {
|
|
38236
38236
|
return D2.call(
|
|
@@ -38563,11 +38563,11 @@ bs("en", {
|
|
|
38563
38563
|
return e + r;
|
|
38564
38564
|
}
|
|
38565
38565
|
});
|
|
38566
|
-
|
|
38566
|
+
ee.lang = Ur(
|
|
38567
38567
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
38568
38568
|
bs
|
|
38569
38569
|
);
|
|
38570
|
-
|
|
38570
|
+
ee.langData = Ur(
|
|
38571
38571
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
38572
38572
|
Kn
|
|
38573
38573
|
);
|
|
@@ -38746,36 +38746,36 @@ Ze("x", function(e, t, r) {
|
|
|
38746
38746
|
r._d = new Date(Fe(e));
|
|
38747
38747
|
});
|
|
38748
38748
|
//! moment.js
|
|
38749
|
-
|
|
38749
|
+
ee.version = "2.30.1";
|
|
38750
38750
|
GL(tt);
|
|
38751
|
-
|
|
38752
|
-
|
|
38753
|
-
|
|
38754
|
-
|
|
38755
|
-
|
|
38756
|
-
|
|
38757
|
-
|
|
38758
|
-
|
|
38759
|
-
|
|
38760
|
-
|
|
38761
|
-
|
|
38762
|
-
|
|
38763
|
-
|
|
38764
|
-
|
|
38765
|
-
|
|
38766
|
-
|
|
38767
|
-
|
|
38768
|
-
|
|
38769
|
-
|
|
38770
|
-
|
|
38771
|
-
|
|
38772
|
-
|
|
38773
|
-
|
|
38774
|
-
|
|
38775
|
-
|
|
38776
|
-
|
|
38777
|
-
|
|
38778
|
-
|
|
38751
|
+
ee.fn = W;
|
|
38752
|
+
ee.min = F$;
|
|
38753
|
+
ee.max = U$;
|
|
38754
|
+
ee.now = O$;
|
|
38755
|
+
ee.utc = hn;
|
|
38756
|
+
ee.unix = iG;
|
|
38757
|
+
ee.months = lG;
|
|
38758
|
+
ee.isDate = yc;
|
|
38759
|
+
ee.locale = bs;
|
|
38760
|
+
ee.invalid = Du;
|
|
38761
|
+
ee.duration = Zr;
|
|
38762
|
+
ee.isMoment = Wr;
|
|
38763
|
+
ee.weekdays = dG;
|
|
38764
|
+
ee.parseZone = cG;
|
|
38765
|
+
ee.localeData = Kn;
|
|
38766
|
+
ee.isDuration = Sl;
|
|
38767
|
+
ee.monthsShort = uG;
|
|
38768
|
+
ee.weekdaysMin = fG;
|
|
38769
|
+
ee.defineLocale = rm;
|
|
38770
|
+
ee.updateLocale = c$;
|
|
38771
|
+
ee.locales = l$;
|
|
38772
|
+
ee.weekdaysShort = pG;
|
|
38773
|
+
ee.normalizeUnits = Or;
|
|
38774
|
+
ee.relativeTimeRounding = zG;
|
|
38775
|
+
ee.relativeTimeThreshold = $G;
|
|
38776
|
+
ee.calendarFormat = sH;
|
|
38777
|
+
ee.prototype = W;
|
|
38778
|
+
ee.HTML5_FMT = {
|
|
38779
38779
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
38780
38780
|
// <input type="datetime-local" />
|
|
38781
38781
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -39010,12 +39010,12 @@ function rj(e, t, r) {
|
|
|
39010
39010
|
return $ && (Z = 2), Z && (U = U.substring(Z), F -= Z, R -= Z), { value: U, start: F, end: R, hasNegation: L };
|
|
39011
39011
|
}, w = v(e, u, d), A = w.hasNegation;
|
|
39012
39012
|
n = w, e = n.value, u = n.start, d = n.end;
|
|
39013
|
-
var C = v(t.lastValue, c.start, c.end), O = C.start, N = C.end,
|
|
39014
|
-
e.length &&
|
|
39013
|
+
var C = v(t.lastValue, c.start, c.end), O = C.start, N = C.end, S = C.value, h = e.substring(u, d);
|
|
39014
|
+
e.length && S.length && (O > S.length - o.length || N < a.length) && !(h && o.startsWith(h)) && (e = S);
|
|
39015
39015
|
var b = 0;
|
|
39016
39016
|
e.startsWith(a) ? b += a.length : u < a.length && (b = u), e = e.substring(b), d -= b;
|
|
39017
|
-
var x = e.length,
|
|
39018
|
-
e.endsWith(o) ? x =
|
|
39017
|
+
var x = e.length, T = e.length - o.length;
|
|
39018
|
+
e.endsWith(o) ? x = T : (d > T || d > e.length - o.length) && (x = d), e = e.substring(0, x), e = JG(A ? "-" + e : e, s), e = (e.match(ej(y)) || []).join("");
|
|
39019
39019
|
var I = e.indexOf(y);
|
|
39020
39020
|
e = e.replace(new RegExp(j2(y), "g"), function(U, F) {
|
|
39021
39021
|
return F === I ? "." : "";
|
|
@@ -39067,7 +39067,7 @@ function aj(e) {
|
|
|
39067
39067
|
Ga(d) ? Ga(u) || (O = O || typeof u == "number") : O = O || typeof d == "number";
|
|
39068
39068
|
var N = function(P) {
|
|
39069
39069
|
return G2(P) ? P : (typeof P == "number" && (P = W2(P)), O && typeof i == "number" ? B1(P, i, !!c) : P);
|
|
39070
|
-
},
|
|
39070
|
+
}, S = QG(N(d), N(u), !!O, w, A, m), h = S[0], b = h.numAsString, x = h.formattedValue, T = S[1], I = function(P) {
|
|
39071
39071
|
var U = P.target, F = P.key, R = U.selectionStart, L = U.selectionEnd, $ = U.value;
|
|
39072
39072
|
if ($ === void 0 && ($ = ""), (F === "Backspace" || F === "Delete") && L < l.length) {
|
|
39073
39073
|
P.preventDefault();
|
|
@@ -39084,7 +39084,7 @@ function aj(e) {
|
|
|
39084
39084
|
var U = b;
|
|
39085
39085
|
if (U.match(/\d/g) || (U = ""), n || (U = YG(U)), c && i && (U = B1(U, i, c)), U !== b) {
|
|
39086
39086
|
var F = F1(U, e);
|
|
39087
|
-
|
|
39087
|
+
T({
|
|
39088
39088
|
formattedValue: F,
|
|
39089
39089
|
value: U,
|
|
39090
39090
|
floatValue: parseFloat(U)
|
|
@@ -39107,7 +39107,7 @@ function aj(e) {
|
|
|
39107
39107
|
valueIsNumericString: !1,
|
|
39108
39108
|
isValidInputCharacter: D,
|
|
39109
39109
|
isCharacterSame: k,
|
|
39110
|
-
onValueChange:
|
|
39110
|
+
onValueChange: T,
|
|
39111
39111
|
format: w,
|
|
39112
39112
|
removeFormatting: A,
|
|
39113
39113
|
getCaretBoundary: function(P) {
|
|
@@ -39137,7 +39137,7 @@ const q2 = (e, t) => Q(() => O0(t, e), [e, t]), On = (e, t) => Q(() => Iu(t, e),
|
|
|
39137
39137
|
return e || t;
|
|
39138
39138
|
}, pm = (e) => {
|
|
39139
39139
|
const { overrides: t } = ne();
|
|
39140
|
-
return Q(() => t != null && t.dateFormat ? t.dateFormat(e || 0) :
|
|
39140
|
+
return Q(() => t != null && t.dateFormat ? t.dateFormat(e || 0) : ee(e).format("DD/MM/YYYY HH:mm"), [e, t == null ? void 0 : t.dateFormat]);
|
|
39141
39141
|
};
|
|
39142
39142
|
function lj() {
|
|
39143
39143
|
const { callbacks: e } = ne();
|
|
@@ -39555,7 +39555,7 @@ const fm = () => {
|
|
|
39555
39555
|
}
|
|
39556
39556
|
}, [t, e]);
|
|
39557
39557
|
}, X2 = () => {
|
|
39558
|
-
const { module: e } = ne(), t =
|
|
39558
|
+
const { module: e } = ne(), t = J((r) => r.state.isMarketOrder);
|
|
39559
39559
|
return Q(() => e === Ee.TWAP ? t ? Ve.TWAP_MARKET : Ve.TWAP_LIMIT : e === Ee.LIMIT ? Ve.LIMIT : e === Ee.STOP_LOSS ? t ? Ve.STOP_LOSS_MARKET : Ve.STOP_LOSS_LIMIT : e === Ee.TAKE_PROFIT ? Ve.TAKE_PROFIT : Ve.TWAP_MARKET, [e, t]);
|
|
39560
39560
|
}, Q2 = () => {
|
|
39561
39561
|
const e = X2();
|
|
@@ -39627,7 +39627,7 @@ const fm = () => {
|
|
|
39627
39627
|
isRefetching: s
|
|
39628
39628
|
}), [e, t, r, n, a, s]);
|
|
39629
39629
|
}, tx = () => {
|
|
39630
|
-
const e =
|
|
39630
|
+
const e = J((r) => r.state.orderHistoryStatusFilter), { orders: t } = qu();
|
|
39631
39631
|
return Q(() => e ? t.all.filter(
|
|
39632
39632
|
(r) => r.status.toLowerCase() === e.toLowerCase()
|
|
39633
39633
|
) || [] : t.all, [e, t]);
|
|
@@ -39645,7 +39645,7 @@ const fm = () => {
|
|
|
39645
39645
|
if (!(!e || !t || !r))
|
|
39646
39646
|
return $5(r, e.decimals, t.decimals);
|
|
39647
39647
|
}, [r, e, t]), rx = () => {
|
|
39648
|
-
const e =
|
|
39648
|
+
const e = J((r) => r.updateState), t = J((r) => r.state.orderIdsToCancel);
|
|
39649
39649
|
return $e(
|
|
39650
39650
|
(r) => {
|
|
39651
39651
|
t != null && t.includes(r) ? e({
|
|
@@ -39657,13 +39657,13 @@ const fm = () => {
|
|
|
39657
39657
|
[e, t]
|
|
39658
39658
|
);
|
|
39659
39659
|
}, UY = () => {
|
|
39660
|
-
var
|
|
39660
|
+
var S, h;
|
|
39661
39661
|
const e = Re(), {
|
|
39662
39662
|
orders: t,
|
|
39663
39663
|
isLoading: r,
|
|
39664
39664
|
refetch: n,
|
|
39665
39665
|
isRefetching: s
|
|
39666
|
-
} = qu(), { mutateAsync: a, isPending: o } = hm(), i = tx(), c =
|
|
39666
|
+
} = qu(), { mutateAsync: a, isPending: o } = hm(), i = tx(), c = J((b) => b.updateState), l = J((b) => b.state.orderHistoryStatusFilter), u = J((b) => b.state.cancelOrdersMode), d = J((b) => b.state.orderIdsToCancel), f = $e(
|
|
39667
39667
|
(b) => c({ cancelOrdersMode: b, orderIdsToCancel: [] }),
|
|
39668
39668
|
[c]
|
|
39669
39669
|
), m = $e(
|
|
@@ -39681,7 +39681,7 @@ const fm = () => {
|
|
|
39681
39681
|
value: x
|
|
39682
39682
|
}));
|
|
39683
39683
|
return [{ text: e("allOrders"), value: "" }, ...b];
|
|
39684
|
-
}, [e]), v = rx(), w =
|
|
39684
|
+
}, [e]), v = rx(), w = J((b) => b.state.selectedOrderID), A = Y2(w), C = Q(
|
|
39685
39685
|
() => t.all.filter((b) => d == null ? void 0 : d.includes(b.id)),
|
|
39686
39686
|
[t, d]
|
|
39687
39687
|
), O = $e(
|
|
@@ -39704,7 +39704,7 @@ const fm = () => {
|
|
|
39704
39704
|
ordersToDisplay: i,
|
|
39705
39705
|
isLoading: r,
|
|
39706
39706
|
selectedOrder: w ? A : void 0,
|
|
39707
|
-
openOrdersCount: ((
|
|
39707
|
+
openOrdersCount: ((S = t == null ? void 0 : t.open) == null ? void 0 : S.length) || 0,
|
|
39708
39708
|
isCancelOrdersLoading: o,
|
|
39709
39709
|
selectedStatus: l || ((h = E[0]) == null ? void 0 : h.value) || "",
|
|
39710
39710
|
statuses: E,
|
|
@@ -39731,7 +39731,7 @@ const fm = () => {
|
|
|
39731
39731
|
}
|
|
39732
39732
|
});
|
|
39733
39733
|
}, hm = () => {
|
|
39734
|
-
const { account: e, walletClient: t, publicClient: r, config: n, callbacks: s, chainId: a } = ne(), o = fm(), i = aW().mutateAsync, c =
|
|
39734
|
+
const { account: e, walletClient: t, publicClient: r, config: n, callbacks: s, chainId: a } = ne(), o = fm(), i = aW().mutateAsync, c = J((d) => d.updateState), l = async (d) => {
|
|
39735
39735
|
bt.onCancelOrderRequest(
|
|
39736
39736
|
d.map((f) => f.id.toString()),
|
|
39737
39737
|
1
|
|
@@ -39804,7 +39804,7 @@ const fm = () => {
|
|
|
39804
39804
|
}
|
|
39805
39805
|
});
|
|
39806
39806
|
}, nx = Yi({}), zt = () => Ql(nx), oW = () => {
|
|
39807
|
-
const e =
|
|
39807
|
+
const e = J((c) => c.state.selectedOrderID), t = Y2(e), r = Re(), [n, s] = Jl("panel1"), { components: a } = ne(), o = a.TokenLogo;
|
|
39808
39808
|
rs(() => {
|
|
39809
39809
|
s("panel1");
|
|
39810
39810
|
}, [t.id.value]);
|
|
@@ -40794,31 +40794,31 @@ const XW = {
|
|
|
40794
40794
|
offsetWidth: "width"
|
|
40795
40795
|
}, yn = je(
|
|
40796
40796
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
40797
|
-
const r = _e(), n = _e(), s = Nt(n, 0), a = _e(), o = _e(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((
|
|
40797
|
+
const r = _e(), n = _e(), s = Nt(n, 0), a = _e(), o = _e(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((S, h) => Es(S, XW[h])), y = q(void 0), g = q(0), E = HW(), v = Nt(
|
|
40798
40798
|
j(r, Pe(c, e, g), on(qW, E), et()),
|
|
40799
40799
|
E
|
|
40800
40800
|
), w = Nt(
|
|
40801
40801
|
j(
|
|
40802
40802
|
c,
|
|
40803
40803
|
et(),
|
|
40804
|
-
on((
|
|
40804
|
+
on((S, h) => ({ current: h, prev: S.current }), {
|
|
40805
40805
|
current: [],
|
|
40806
40806
|
prev: []
|
|
40807
40807
|
}),
|
|
40808
|
-
re(({ prev:
|
|
40808
|
+
re(({ prev: S }) => S)
|
|
40809
40809
|
),
|
|
40810
40810
|
[]
|
|
40811
40811
|
);
|
|
40812
40812
|
ce(
|
|
40813
40813
|
j(
|
|
40814
40814
|
c,
|
|
40815
|
-
me((
|
|
40815
|
+
me((S) => S.length > 0),
|
|
40816
40816
|
Pe(v, g),
|
|
40817
|
-
re(([
|
|
40818
|
-
const x =
|
|
40817
|
+
re(([S, h, b]) => {
|
|
40818
|
+
const x = S.reduce((T, I, B) => lr(T, I, zi(I, h.offsetTree, b) || B), ja());
|
|
40819
40819
|
return {
|
|
40820
40820
|
...h,
|
|
40821
|
-
groupIndices:
|
|
40821
|
+
groupIndices: S,
|
|
40822
40822
|
groupOffsetTree: x
|
|
40823
40823
|
};
|
|
40824
40824
|
})
|
|
@@ -40828,12 +40828,12 @@ const XW = {
|
|
|
40828
40828
|
j(
|
|
40829
40829
|
n,
|
|
40830
40830
|
Pe(v),
|
|
40831
|
-
me(([
|
|
40832
|
-
re(([
|
|
40831
|
+
me(([S, { lastIndex: h }]) => S < h),
|
|
40832
|
+
re(([S, { lastIndex: h, lastSize: b }]) => [
|
|
40833
40833
|
{
|
|
40834
40834
|
endIndex: h,
|
|
40835
40835
|
size: b,
|
|
40836
|
-
startIndex:
|
|
40836
|
+
startIndex: S
|
|
40837
40837
|
}
|
|
40838
40838
|
])
|
|
40839
40839
|
),
|
|
@@ -40842,40 +40842,40 @@ const XW = {
|
|
|
40842
40842
|
const A = Nt(
|
|
40843
40843
|
j(
|
|
40844
40844
|
l,
|
|
40845
|
-
re((
|
|
40845
|
+
re((S) => S === void 0)
|
|
40846
40846
|
),
|
|
40847
40847
|
!0
|
|
40848
40848
|
);
|
|
40849
40849
|
ce(
|
|
40850
40850
|
j(
|
|
40851
40851
|
u,
|
|
40852
|
-
me((
|
|
40853
|
-
re((
|
|
40852
|
+
me((S) => S !== void 0 && Ye(it(v).sizeTree)),
|
|
40853
|
+
re((S) => {
|
|
40854
40854
|
const h = it(d), b = it(c).length > 0;
|
|
40855
40855
|
return h ? b ? [
|
|
40856
40856
|
{ endIndex: 0, size: h, startIndex: 0 },
|
|
40857
|
-
{ endIndex: 1, size:
|
|
40858
|
-
] : [] : [{ endIndex: 0, size:
|
|
40857
|
+
{ endIndex: 1, size: S, startIndex: 1 }
|
|
40858
|
+
] : [] : [{ endIndex: 0, size: S, startIndex: 0 }];
|
|
40859
40859
|
})
|
|
40860
40860
|
),
|
|
40861
40861
|
r
|
|
40862
40862
|
), ce(
|
|
40863
40863
|
j(
|
|
40864
40864
|
f,
|
|
40865
|
-
me((
|
|
40866
|
-
re((
|
|
40865
|
+
me((S) => S !== void 0 && S.length > 0 && Ye(it(v).sizeTree)),
|
|
40866
|
+
re((S) => {
|
|
40867
40867
|
const h = [];
|
|
40868
|
-
let b =
|
|
40869
|
-
for (let
|
|
40870
|
-
const I = T
|
|
40868
|
+
let b = S[0], x = 0;
|
|
40869
|
+
for (let T = 1; T < S.length; T++) {
|
|
40870
|
+
const I = S[T];
|
|
40871
40871
|
I !== b && (h.push({
|
|
40872
|
-
endIndex:
|
|
40872
|
+
endIndex: T - 1,
|
|
40873
40873
|
size: b,
|
|
40874
40874
|
startIndex: x
|
|
40875
|
-
}), b = I, x =
|
|
40875
|
+
}), b = I, x = T);
|
|
40876
40876
|
}
|
|
40877
40877
|
return h.push({
|
|
40878
|
-
endIndex:
|
|
40878
|
+
endIndex: S.length - 1,
|
|
40879
40879
|
size: b,
|
|
40880
40880
|
startIndex: x
|
|
40881
40881
|
}), h;
|
|
@@ -40886,11 +40886,11 @@ const XW = {
|
|
|
40886
40886
|
j(
|
|
40887
40887
|
c,
|
|
40888
40888
|
Pe(d, u),
|
|
40889
|
-
me(([,
|
|
40890
|
-
re(([
|
|
40889
|
+
me(([, S, h]) => S !== void 0 && h !== void 0),
|
|
40890
|
+
re(([S, h, b]) => {
|
|
40891
40891
|
const x = [];
|
|
40892
|
-
for (let
|
|
40893
|
-
const I = T
|
|
40892
|
+
for (let T = 0; T < S.length; T++) {
|
|
40893
|
+
const I = S[T], B = S[T + 1];
|
|
40894
40894
|
x.push({
|
|
40895
40895
|
startIndex: I,
|
|
40896
40896
|
endIndex: I,
|
|
@@ -40911,35 +40911,35 @@ const XW = {
|
|
|
40911
40911
|
r,
|
|
40912
40912
|
Pe(v),
|
|
40913
40913
|
on(
|
|
40914
|
-
({ sizes:
|
|
40915
|
-
changed: b !==
|
|
40914
|
+
({ sizes: S }, [h, b]) => ({
|
|
40915
|
+
changed: b !== S,
|
|
40916
40916
|
sizes: b
|
|
40917
40917
|
}),
|
|
40918
40918
|
{ changed: !1, sizes: E }
|
|
40919
40919
|
),
|
|
40920
|
-
re((
|
|
40920
|
+
re((S) => S.changed)
|
|
40921
40921
|
)
|
|
40922
40922
|
);
|
|
40923
40923
|
We(
|
|
40924
40924
|
j(
|
|
40925
40925
|
i,
|
|
40926
40926
|
on(
|
|
40927
|
-
(
|
|
40927
|
+
(S, h) => ({ diff: S.prev - h, prev: h }),
|
|
40928
40928
|
{ diff: 0, prev: 0 }
|
|
40929
40929
|
),
|
|
40930
|
-
re((
|
|
40930
|
+
re((S) => S.diff)
|
|
40931
40931
|
),
|
|
40932
|
-
(
|
|
40932
|
+
(S) => {
|
|
40933
40933
|
const { groupIndices: h } = it(v);
|
|
40934
|
-
if (
|
|
40935
|
-
Te(t, !0), Te(a,
|
|
40936
|
-
else if (
|
|
40934
|
+
if (S > 0)
|
|
40935
|
+
Te(t, !0), Te(a, S + L1(S, h));
|
|
40936
|
+
else if (S < 0) {
|
|
40937
40937
|
const b = it(w);
|
|
40938
|
-
b.length > 0 && (
|
|
40938
|
+
b.length > 0 && (S -= L1(-S, b)), Te(o, S);
|
|
40939
40939
|
}
|
|
40940
40940
|
}
|
|
40941
|
-
), We(j(i, Pe(e)), ([
|
|
40942
|
-
|
|
40941
|
+
), We(j(i, Pe(e)), ([S, h]) => {
|
|
40942
|
+
S < 0 && h(
|
|
40943
40943
|
"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
|
|
40944
40944
|
{ firstItemIndex: i },
|
|
40945
40945
|
sr.ERROR
|
|
@@ -40950,12 +40950,12 @@ const XW = {
|
|
|
40950
40950
|
j(
|
|
40951
40951
|
a,
|
|
40952
40952
|
Pe(v),
|
|
40953
|
-
re(([
|
|
40954
|
-
const b = h.groupIndices.length > 0, x = [],
|
|
40953
|
+
re(([S, h]) => {
|
|
40954
|
+
const b = h.groupIndices.length > 0, x = [], T = h.lastSize;
|
|
40955
40955
|
if (b) {
|
|
40956
40956
|
const I = Ni(h.sizeTree, 0);
|
|
40957
40957
|
let B = 0, D = 0;
|
|
40958
|
-
for (; B <
|
|
40958
|
+
for (; B < S; ) {
|
|
40959
40959
|
const P = h.groupIndices[D], U = h.groupIndices.length === D + 1 ? 1 / 0 : h.groupIndices[D + 1] - P - 1;
|
|
40960
40960
|
x.push({
|
|
40961
40961
|
endIndex: P,
|
|
@@ -40963,29 +40963,29 @@ const XW = {
|
|
|
40963
40963
|
startIndex: P
|
|
40964
40964
|
}), x.push({
|
|
40965
40965
|
endIndex: P + 1 + U - 1,
|
|
40966
|
-
size:
|
|
40966
|
+
size: T,
|
|
40967
40967
|
startIndex: P + 1
|
|
40968
40968
|
}), D++, B += U + 1;
|
|
40969
40969
|
}
|
|
40970
40970
|
const k = Ls(h.sizeTree);
|
|
40971
|
-
return B !==
|
|
40971
|
+
return B !== S && k.shift(), k.reduce(
|
|
40972
40972
|
(P, { k: U, v: F }) => {
|
|
40973
40973
|
let R = P.ranges;
|
|
40974
40974
|
return P.prevSize !== 0 && (R = [
|
|
40975
40975
|
...P.ranges,
|
|
40976
40976
|
{
|
|
40977
|
-
endIndex: U +
|
|
40977
|
+
endIndex: U + S - 1,
|
|
40978
40978
|
size: P.prevSize,
|
|
40979
40979
|
startIndex: P.prevIndex
|
|
40980
40980
|
}
|
|
40981
40981
|
]), {
|
|
40982
|
-
prevIndex: U +
|
|
40982
|
+
prevIndex: U + S,
|
|
40983
40983
|
prevSize: F,
|
|
40984
40984
|
ranges: R
|
|
40985
40985
|
};
|
|
40986
40986
|
},
|
|
40987
40987
|
{
|
|
40988
|
-
prevIndex:
|
|
40988
|
+
prevIndex: S,
|
|
40989
40989
|
prevSize: 0,
|
|
40990
40990
|
ranges: x
|
|
40991
40991
|
}
|
|
@@ -40993,13 +40993,13 @@ const XW = {
|
|
|
40993
40993
|
}
|
|
40994
40994
|
return Ls(h.sizeTree).reduce(
|
|
40995
40995
|
(I, { k: B, v: D }) => ({
|
|
40996
|
-
prevIndex: B +
|
|
40996
|
+
prevIndex: B + S,
|
|
40997
40997
|
prevSize: D,
|
|
40998
|
-
ranges: [...I.ranges, { endIndex: B +
|
|
40998
|
+
ranges: [...I.ranges, { endIndex: B + S - 1, size: I.prevSize, startIndex: I.prevIndex }]
|
|
40999
40999
|
}),
|
|
41000
41000
|
{
|
|
41001
41001
|
prevIndex: 0,
|
|
41002
|
-
prevSize:
|
|
41002
|
+
prevSize: T,
|
|
41003
41003
|
ranges: []
|
|
41004
41004
|
}
|
|
41005
41005
|
).ranges;
|
|
@@ -41011,8 +41011,8 @@ const XW = {
|
|
|
41011
41011
|
j(
|
|
41012
41012
|
o,
|
|
41013
41013
|
Pe(v, g),
|
|
41014
|
-
re(([
|
|
41015
|
-
const x = -
|
|
41014
|
+
re(([S, { offsetTree: h }, b]) => {
|
|
41015
|
+
const x = -S;
|
|
41016
41016
|
return zi(x, h, b);
|
|
41017
41017
|
})
|
|
41018
41018
|
)
|
|
@@ -41021,22 +41021,22 @@ const XW = {
|
|
|
41021
41021
|
j(
|
|
41022
41022
|
o,
|
|
41023
41023
|
Pe(v, g),
|
|
41024
|
-
re(([
|
|
41024
|
+
re(([S, h, b]) => {
|
|
41025
41025
|
if (h.groupIndices.length > 0) {
|
|
41026
41026
|
if (Ye(h.sizeTree))
|
|
41027
41027
|
return h;
|
|
41028
41028
|
let x = ja();
|
|
41029
|
-
const
|
|
41029
|
+
const T = it(w);
|
|
41030
41030
|
let I = 0, B = 0, D = 0;
|
|
41031
|
-
for (; I < -
|
|
41032
|
-
D =
|
|
41033
|
-
const k =
|
|
41031
|
+
for (; I < -S; ) {
|
|
41032
|
+
D = T[B];
|
|
41033
|
+
const k = T[B + 1] - D - 1;
|
|
41034
41034
|
B++, I += k + 1;
|
|
41035
41035
|
}
|
|
41036
|
-
if (x = Ls(h.sizeTree).reduce((k, { k: P, v: U }) => lr(k, Math.max(0, P +
|
|
41036
|
+
if (x = Ls(h.sizeTree).reduce((k, { k: P, v: U }) => lr(k, Math.max(0, P + S), U), x), I !== -S) {
|
|
41037
41037
|
const k = Ni(h.sizeTree, D);
|
|
41038
41038
|
x = lr(x, 0, k);
|
|
41039
|
-
const P = qr(h.sizeTree, -
|
|
41039
|
+
const P = qr(h.sizeTree, -S + 1)[1];
|
|
41040
41040
|
x = lr(x, 1, P);
|
|
41041
41041
|
}
|
|
41042
41042
|
return {
|
|
@@ -41045,7 +41045,7 @@ const XW = {
|
|
|
41045
41045
|
...wf(h.offsetTree, 0, x, b)
|
|
41046
41046
|
};
|
|
41047
41047
|
} else {
|
|
41048
|
-
const x = Ls(h.sizeTree).reduce((
|
|
41048
|
+
const x = Ls(h.sizeTree).reduce((T, { k: I, v: B }) => lr(T, Math.max(0, I + S), B), ja());
|
|
41049
41049
|
return {
|
|
41050
41050
|
...h,
|
|
41051
41051
|
sizeTree: x,
|
|
@@ -41165,16 +41165,16 @@ const Ec = je(
|
|
|
41165
41165
|
Pe(e, a, s),
|
|
41166
41166
|
re(
|
|
41167
41167
|
([
|
|
41168
|
-
[C, O, N,
|
|
41168
|
+
[C, O, N, S, h, b, x, T],
|
|
41169
41169
|
I,
|
|
41170
41170
|
B,
|
|
41171
41171
|
D
|
|
41172
41172
|
]) => {
|
|
41173
|
-
const k = gx(C), { align: P, behavior: U, offset: F } = k, R =
|
|
41173
|
+
const k = gx(C), { align: P, behavior: U, offset: F } = k, R = S - 1, L = bx(k, O, R);
|
|
41174
41174
|
let $ = zi(L, O.offsetTree, I) + b;
|
|
41175
41175
|
P === "end" ? ($ += B + qr(O.sizeTree, L)[1] - N + D, L === R && ($ += x)) : P === "center" ? $ += (B + qr(O.sizeTree, L)[1] - N + D) / 2 : $ -= h, F && ($ += F);
|
|
41176
41176
|
const Z = (pe) => {
|
|
41177
|
-
A(), pe ? (
|
|
41177
|
+
A(), pe ? (T("retrying to scroll to", { location: C }, sr.DEBUG), Te(m, C)) : (Te(y, !0), T("list did not change, scroll successful", {}, sr.DEBUG));
|
|
41178
41178
|
};
|
|
41179
41179
|
if (A(), U === "smooth") {
|
|
41180
41180
|
let pe = !1;
|
|
@@ -41187,7 +41187,7 @@ const Ec = je(
|
|
|
41187
41187
|
E = $r(j(t, eq(150)), Z);
|
|
41188
41188
|
return v = setTimeout(() => {
|
|
41189
41189
|
A();
|
|
41190
|
-
}, 1200), Te(c, !0),
|
|
41190
|
+
}, 1200), Te(c, !0), T("scrolling from index to", { behavior: U, index: L, top: $ }, sr.DEBUG), { behavior: U, top: $ };
|
|
41191
41191
|
}
|
|
41192
41192
|
)
|
|
41193
41193
|
),
|
|
@@ -41298,7 +41298,7 @@ const $i = "up", ti = "down", tq = "none", rq = {
|
|
|
41298
41298
|
const y = dr(
|
|
41299
41299
|
j(
|
|
41300
41300
|
vt(n, fe(a), fe(t), fe(e), fe(u)),
|
|
41301
|
-
on((w, [{ scrollHeight: A, scrollTop: C }, O, N,
|
|
41301
|
+
on((w, [{ scrollHeight: A, scrollTop: C }, O, N, S, h]) => {
|
|
41302
41302
|
const b = C + O - A > -h, x = {
|
|
41303
41303
|
scrollHeight: A,
|
|
41304
41304
|
scrollTop: C,
|
|
@@ -41313,10 +41313,10 @@ const $i = "up", ti = "down", tq = "none", rq = {
|
|
|
41313
41313
|
state: x
|
|
41314
41314
|
};
|
|
41315
41315
|
}
|
|
41316
|
-
let
|
|
41317
|
-
return x.scrollHeight > w.state.scrollHeight ?
|
|
41316
|
+
let T;
|
|
41317
|
+
return x.scrollHeight > w.state.scrollHeight ? T = "SIZE_INCREASED" : O < w.state.viewportHeight ? T = "VIEWPORT_HEIGHT_DECREASING" : C < w.state.scrollTop ? T = "SCROLLING_UPWARDS" : T = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
|
41318
41318
|
atBottom: !1,
|
|
41319
|
-
notAtBottomBecause:
|
|
41319
|
+
notAtBottomBecause: T,
|
|
41320
41320
|
state: x
|
|
41321
41321
|
};
|
|
41322
41322
|
}, rq),
|
|
@@ -41444,11 +41444,11 @@ const km = je(
|
|
|
41444
41444
|
A
|
|
41445
41445
|
]) => {
|
|
41446
41446
|
const C = u - w, O = E + v, N = Math.max(f - C, 0);
|
|
41447
|
-
let
|
|
41447
|
+
let S = z1;
|
|
41448
41448
|
const h = H1(A, Hi), b = H1(A, Gi);
|
|
41449
|
-
return m -= w, m += f + v, y += f + v, y -= w, m > u + O - h && (
|
|
41450
|
-
Math.max(C - f - $1(g, Hi,
|
|
41451
|
-
C - N - v + d + $1(g, Gi,
|
|
41449
|
+
return m -= w, m += f + v, y += f + v, y -= w, m > u + O - h && (S = $i), y < u - N + d + b && (S = ti), S !== z1 ? [
|
|
41450
|
+
Math.max(C - f - $1(g, Hi, S) - h, 0),
|
|
41451
|
+
C - N - v + d + $1(g, Gi, S) + b
|
|
41452
41452
|
] : null;
|
|
41453
41453
|
}
|
|
41454
41454
|
),
|
|
@@ -41587,18 +41587,18 @@ const xa = je(
|
|
|
41587
41587
|
fe(w),
|
|
41588
41588
|
e
|
|
41589
41589
|
),
|
|
41590
|
-
me(([
|
|
41591
|
-
const
|
|
41592
|
-
return
|
|
41590
|
+
me(([S, h, , b, , , , , , , , x]) => {
|
|
41591
|
+
const T = x && x.length !== b;
|
|
41592
|
+
return S && !h && !T;
|
|
41593
41593
|
}),
|
|
41594
41594
|
re(
|
|
41595
41595
|
([
|
|
41596
41596
|
,
|
|
41597
41597
|
,
|
|
41598
|
-
[
|
|
41598
|
+
[S, h],
|
|
41599
41599
|
b,
|
|
41600
41600
|
x,
|
|
41601
|
-
|
|
41601
|
+
T,
|
|
41602
41602
|
I,
|
|
41603
41603
|
B,
|
|
41604
41604
|
D,
|
|
@@ -41610,11 +41610,11 @@ const xa = je(
|
|
|
41610
41610
|
const Z = x, { offsetTree: pe, sizeTree: be } = Z, ie = it(E);
|
|
41611
41611
|
if (b === 0)
|
|
41612
41612
|
return { ...Kd, totalCount: b };
|
|
41613
|
-
if (
|
|
41614
|
-
return ie === 0 ? { ...Kd, totalCount: b } : wx(ie,
|
|
41613
|
+
if (S === 0 && h === 0)
|
|
41614
|
+
return ie === 0 ? { ...Kd, totalCount: b } : wx(ie, T, x, D, k, U || []);
|
|
41615
41615
|
if (Ye(be))
|
|
41616
41616
|
return ie > 0 ? null : Bl(
|
|
41617
|
-
sq(Em(
|
|
41617
|
+
sq(Em(T, b), Z, U),
|
|
41618
41618
|
[],
|
|
41619
41619
|
b,
|
|
41620
41620
|
k,
|
|
@@ -41633,7 +41633,7 @@ const xa = je(
|
|
|
41633
41633
|
}
|
|
41634
41634
|
if (!I)
|
|
41635
41635
|
return Bl([], de, b, k, Z, D);
|
|
41636
|
-
const Be = B.length > 0 ? B[B.length - 1] + 1 : 0, K = WW(pe,
|
|
41636
|
+
const Be = B.length > 0 ? B[B.length - 1] + 1 : 0, K = WW(pe, S, h, Be);
|
|
41637
41637
|
if (K.length === 0)
|
|
41638
41638
|
return null;
|
|
41639
41639
|
const xe = b - 1, Ue = Yu([], (Ae) => {
|
|
@@ -41641,8 +41641,8 @@ const xa = je(
|
|
|
41641
41641
|
const ye = we.value;
|
|
41642
41642
|
let Xe = ye.offset, Ke = we.start;
|
|
41643
41643
|
const Je = ye.size;
|
|
41644
|
-
if (ye.offset <
|
|
41645
|
-
Ke += Math.floor((
|
|
41644
|
+
if (ye.offset < S) {
|
|
41645
|
+
Ke += Math.floor((S - ye.offset + k) / (Je + k));
|
|
41646
41646
|
const Ut = Ke - we.start;
|
|
41647
41647
|
Xe += Ut * Je + Ut * k;
|
|
41648
41648
|
}
|
|
@@ -41676,7 +41676,7 @@ const xa = je(
|
|
|
41676
41676
|
}
|
|
41677
41677
|
),
|
|
41678
41678
|
//@ts-expect-error filter needs to be fixed
|
|
41679
|
-
me((
|
|
41679
|
+
me((S) => S !== null),
|
|
41680
41680
|
et()
|
|
41681
41681
|
),
|
|
41682
41682
|
Kd
|
|
@@ -41685,59 +41685,59 @@ const xa = je(
|
|
|
41685
41685
|
j(
|
|
41686
41686
|
e,
|
|
41687
41687
|
me(bm),
|
|
41688
|
-
re((
|
|
41688
|
+
re((S) => S == null ? void 0 : S.length)
|
|
41689
41689
|
),
|
|
41690
41690
|
s
|
|
41691
41691
|
), ce(
|
|
41692
41692
|
j(
|
|
41693
41693
|
A,
|
|
41694
|
-
re((
|
|
41694
|
+
re((S) => S.topListHeight)
|
|
41695
41695
|
),
|
|
41696
41696
|
d
|
|
41697
41697
|
), ce(d, i), ce(
|
|
41698
41698
|
j(
|
|
41699
41699
|
A,
|
|
41700
|
-
re((
|
|
41700
|
+
re((S) => [S.top, S.bottom])
|
|
41701
41701
|
),
|
|
41702
41702
|
o
|
|
41703
41703
|
), ce(
|
|
41704
41704
|
j(
|
|
41705
41705
|
A,
|
|
41706
|
-
re((
|
|
41706
|
+
re((S) => S.items)
|
|
41707
41707
|
),
|
|
41708
41708
|
v
|
|
41709
41709
|
);
|
|
41710
41710
|
const C = dr(
|
|
41711
41711
|
j(
|
|
41712
41712
|
A,
|
|
41713
|
-
me(({ items:
|
|
41713
|
+
me(({ items: S }) => S.length > 0),
|
|
41714
41714
|
Pe(s, e),
|
|
41715
|
-
me(([{ items:
|
|
41716
|
-
re(([,
|
|
41715
|
+
me(([{ items: S }, h]) => S[S.length - 1].originalIndex === h - 1),
|
|
41716
|
+
re(([, S, h]) => [S - 1, h]),
|
|
41717
41717
|
et(Li),
|
|
41718
|
-
re(([
|
|
41718
|
+
re(([S]) => S)
|
|
41719
41719
|
)
|
|
41720
41720
|
), O = dr(
|
|
41721
41721
|
j(
|
|
41722
41722
|
A,
|
|
41723
41723
|
Mn(200),
|
|
41724
|
-
me(({ items:
|
|
41725
|
-
re(({ items:
|
|
41724
|
+
me(({ items: S, topItems: h }) => S.length > 0 && S[0].originalIndex === h.length),
|
|
41725
|
+
re(({ items: S }) => S[0].index),
|
|
41726
41726
|
et()
|
|
41727
41727
|
)
|
|
41728
41728
|
), N = dr(
|
|
41729
41729
|
j(
|
|
41730
41730
|
A,
|
|
41731
|
-
me(({ items:
|
|
41732
|
-
re(({ items:
|
|
41733
|
-
let h = 0, b =
|
|
41734
|
-
for (;
|
|
41731
|
+
me(({ items: S }) => S.length > 0),
|
|
41732
|
+
re(({ items: S }) => {
|
|
41733
|
+
let h = 0, b = S.length - 1;
|
|
41734
|
+
for (; S[h].type === "group" && h < b; )
|
|
41735
41735
|
h++;
|
|
41736
|
-
for (;
|
|
41736
|
+
for (; S[b].type === "group" && b > h; )
|
|
41737
41737
|
b--;
|
|
41738
41738
|
return {
|
|
41739
|
-
endIndex:
|
|
41740
|
-
startIndex:
|
|
41739
|
+
endIndex: S[b].index,
|
|
41740
|
+
startIndex: S[h].index
|
|
41741
41741
|
};
|
|
41742
41742
|
}),
|
|
41743
41743
|
et(fx)
|
|
@@ -41816,14 +41816,14 @@ const xa = je(
|
|
|
41816
41816
|
Pe(t, c, r, a, s, n, i),
|
|
41817
41817
|
Pe(e),
|
|
41818
41818
|
re(([[d, f, m, y, g, E, v, w], A]) => {
|
|
41819
|
-
const { align: C, behavior: O, calculateViewLocation: N = oq, done:
|
|
41820
|
-
itemBottom:
|
|
41819
|
+
const { align: C, behavior: O, calculateViewLocation: N = oq, done: S, ...h } = d, b = bx(d, f, y - 1), x = zi(b, f.offsetTree, A) + g + E, T = x + qr(f.sizeTree, b)[1], I = w + E, B = w + m - v, D = N({
|
|
41820
|
+
itemBottom: T,
|
|
41821
41821
|
itemTop: x,
|
|
41822
41822
|
locationParams: { align: C, behavior: O, ...h },
|
|
41823
41823
|
viewportBottom: B,
|
|
41824
41824
|
viewportTop: I
|
|
41825
41825
|
});
|
|
41826
|
-
return D ?
|
|
41826
|
+
return D ? S && $r(
|
|
41827
41827
|
j(
|
|
41828
41828
|
o,
|
|
41829
41829
|
me((k) => !k),
|
|
@@ -41831,8 +41831,8 @@ const xa = je(
|
|
|
41831
41831
|
// but if scrollingInProgress is true, we skip the initial publish.
|
|
41832
41832
|
ua(it(o) ? 1 : 2)
|
|
41833
41833
|
),
|
|
41834
|
-
|
|
41835
|
-
) :
|
|
41834
|
+
S
|
|
41835
|
+
) : S && S(), D;
|
|
41836
41836
|
}),
|
|
41837
41837
|
me((d) => d !== null)
|
|
41838
41838
|
),
|
|
@@ -41872,9 +41872,9 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
|
|
|
41872
41872
|
j(
|
|
41873
41873
|
vt(j(fe(t), ua(1)), c),
|
|
41874
41874
|
Pe(fe(y), a, i, d),
|
|
41875
|
-
re(([[O, N],
|
|
41876
|
-
let
|
|
41877
|
-
return
|
|
41875
|
+
re(([[O, N], S, h, b, x]) => {
|
|
41876
|
+
let T = N && b, I = "auto";
|
|
41877
|
+
return T && (I = iq(S, h || x), T = T && !!I), { followOutputBehavior: I, shouldFollow: T, totalCount: O };
|
|
41878
41878
|
}),
|
|
41879
41879
|
me(({ shouldFollow: O }) => O)
|
|
41880
41880
|
),
|
|
@@ -41887,8 +41887,8 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
|
|
|
41887
41887
|
}
|
|
41888
41888
|
);
|
|
41889
41889
|
function w(O) {
|
|
41890
|
-
const N = $r(s, (
|
|
41891
|
-
O && !
|
|
41890
|
+
const N = $r(s, (S) => {
|
|
41891
|
+
O && !S.atBottom && S.notAtBottomBecause === "SIZE_INCREASED" && !E && (it(u)("scrolling to bottom due to increased size", {}, sr.DEBUG), v("auto"));
|
|
41892
41892
|
});
|
|
41893
41893
|
setTimeout(N, 100);
|
|
41894
41894
|
}
|
|
@@ -41928,7 +41928,7 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
|
|
|
41928
41928
|
j(
|
|
41929
41929
|
vt(j(C, ua(1)), c),
|
|
41930
41930
|
Pe(fe(A), i, d, f),
|
|
41931
|
-
re(([[O, N],
|
|
41931
|
+
re(([[O, N], S, h, b, x]) => N && h && (S == null ? void 0 : S({ context: x, totalCount: O, scrollingInProgress: b }))),
|
|
41932
41932
|
me((O) => !!O),
|
|
41933
41933
|
Mn(0)
|
|
41934
41934
|
),
|
|
@@ -42122,10 +42122,10 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42122
42122
|
c,
|
|
42123
42123
|
Pe(o),
|
|
42124
42124
|
on(
|
|
42125
|
-
([, v, w, A], [{ bottom: C, items: O, offsetBottom: N, totalCount:
|
|
42125
|
+
([, v, w, A], [{ bottom: C, items: O, offsetBottom: N, totalCount: S }, h]) => {
|
|
42126
42126
|
const b = C + N;
|
|
42127
42127
|
let x = 0;
|
|
42128
|
-
return w ===
|
|
42128
|
+
return w === S && v.length > 0 && O.length > 0 && (O[0].originalIndex === 0 && v[0].originalIndex === 0 || (x = b - A, x !== 0 && (x += h))), [x, O, S, b];
|
|
42129
42129
|
},
|
|
42130
42130
|
[0, [], 0, 0]
|
|
42131
42131
|
),
|
|
@@ -42159,21 +42159,21 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42159
42159
|
l,
|
|
42160
42160
|
Pe(f, u),
|
|
42161
42161
|
re(([v, { groupIndices: w, lastSize: A, sizeTree: C }, O]) => {
|
|
42162
|
-
function N(
|
|
42163
|
-
return
|
|
42162
|
+
function N(S) {
|
|
42163
|
+
return S * (A + O);
|
|
42164
42164
|
}
|
|
42165
42165
|
if (w.length === 0)
|
|
42166
42166
|
return N(v);
|
|
42167
42167
|
{
|
|
42168
|
-
let
|
|
42168
|
+
let S = 0;
|
|
42169
42169
|
const h = Ni(C, 0);
|
|
42170
42170
|
let b = 0, x = 0;
|
|
42171
42171
|
for (; b < v; ) {
|
|
42172
|
-
b++,
|
|
42173
|
-
let
|
|
42174
|
-
b +
|
|
42172
|
+
b++, S += h;
|
|
42173
|
+
let T = w.length === x + 1 ? 1 / 0 : w[x + 1] - w[x] - 1;
|
|
42174
|
+
b + T > v && (S -= h, T = v - b + 1), b += T, S += N(T), x++;
|
|
42175
42175
|
}
|
|
42176
|
-
return
|
|
42176
|
+
return S;
|
|
42177
42177
|
}
|
|
42178
42178
|
})
|
|
42179
42179
|
),
|
|
@@ -42251,11 +42251,11 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42251
42251
|
C,
|
|
42252
42252
|
{ scrollToIndex: O },
|
|
42253
42253
|
N,
|
|
42254
|
-
{ topItemCount:
|
|
42254
|
+
{ topItemCount: S },
|
|
42255
42255
|
{ groupCounts: h },
|
|
42256
42256
|
b
|
|
42257
42257
|
]) => {
|
|
42258
|
-
const { listState: x, minOverscanItemCount:
|
|
42258
|
+
const { listState: x, minOverscanItemCount: T, topItemsIndexes: I, rangeChanged: B, ...D } = C;
|
|
42259
42259
|
return ce(B, b.scrollSeekRangeChanged), ce(
|
|
42260
42260
|
j(
|
|
42261
42261
|
b.windowViewportRect,
|
|
@@ -42275,7 +42275,7 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42275
42275
|
initialTopMostItemIndex: g,
|
|
42276
42276
|
scrolledToInitialItem: E,
|
|
42277
42277
|
sizeRanges: l,
|
|
42278
|
-
topItemCount:
|
|
42278
|
+
topItemCount: S,
|
|
42279
42279
|
topItemsIndexes: I,
|
|
42280
42280
|
// input
|
|
42281
42281
|
totalCount: f,
|
|
@@ -42283,7 +42283,7 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42283
42283
|
groupIndices: o,
|
|
42284
42284
|
itemSize: c,
|
|
42285
42285
|
listState: x,
|
|
42286
|
-
minOverscanItemCount:
|
|
42286
|
+
minOverscanItemCount: T,
|
|
42287
42287
|
scrollToIndex: O,
|
|
42288
42288
|
// output
|
|
42289
42289
|
statefulTotalCount: d,
|
|
@@ -42348,12 +42348,12 @@ function Sx(e, t, r) {
|
|
|
42348
42348
|
return o.reduce((v, w) => (v[w] = OW(E[t.events[w]]), v), {});
|
|
42349
42349
|
}
|
|
42350
42350
|
const d = te.forwardRef((E, v) => {
|
|
42351
|
-
const { children: w, ...A } = E, [C] = te.useState(() => Yu(_W(e), (
|
|
42352
|
-
c(
|
|
42351
|
+
const { children: w, ...A } = E, [C] = te.useState(() => Yu(_W(e), (S) => {
|
|
42352
|
+
c(S, A);
|
|
42353
42353
|
})), [O] = te.useState(_1(u, C));
|
|
42354
42354
|
vl(() => {
|
|
42355
|
-
for (const
|
|
42356
|
-
|
|
42355
|
+
for (const S of o)
|
|
42356
|
+
S in A && We(O[S], A[S]);
|
|
42357
42357
|
return () => {
|
|
42358
42358
|
Object.values(O).map(ym);
|
|
42359
42359
|
};
|
|
@@ -42510,17 +42510,17 @@ const xq = /* @__PURE__ */ je(() => {
|
|
|
42510
42510
|
Sm("deviation", (D) => {
|
|
42511
42511
|
v !== D && w(D);
|
|
42512
42512
|
});
|
|
42513
|
-
const A = ge("EmptyPlaceholder"), C = ge("ScrollSeekPlaceholder") || vq, O = ge("ListComponent"), N = ge("ItemComponent"),
|
|
42513
|
+
const A = ge("EmptyPlaceholder"), C = ge("ScrollSeekPlaceholder") || vq, O = ge("ListComponent"), N = ge("ItemComponent"), S = ge("GroupComponent"), h = ge("computeItemKey"), b = ge("isSeeking"), x = ge("groupIndices").length > 0, T = ge("alignToBottom"), I = ge("initialItemFinalLocationReached"), B = e ? {} : {
|
|
42514
42514
|
boxSizing: "border-box",
|
|
42515
42515
|
...g ? {
|
|
42516
42516
|
display: "inline-block",
|
|
42517
42517
|
height: "100%",
|
|
42518
|
-
marginLeft: v !== 0 ? v :
|
|
42518
|
+
marginLeft: v !== 0 ? v : T ? "auto" : 0,
|
|
42519
42519
|
paddingLeft: t.offsetTop,
|
|
42520
42520
|
paddingRight: t.offsetBottom,
|
|
42521
42521
|
whiteSpace: "nowrap"
|
|
42522
42522
|
} : {
|
|
42523
|
-
marginTop: v !== 0 ? v :
|
|
42523
|
+
marginTop: v !== 0 ? v : T ? "auto" : 0,
|
|
42524
42524
|
paddingBottom: t.offsetBottom,
|
|
42525
42525
|
paddingTop: t.offsetTop
|
|
42526
42526
|
},
|
|
@@ -42546,9 +42546,9 @@ const xq = /* @__PURE__ */ je(() => {
|
|
|
42546
42546
|
...D.type === "group" ? {} : { groupIndex: D.groupIndex }
|
|
42547
42547
|
}
|
|
42548
42548
|
) : D.type === "group" ? /* @__PURE__ */ Da(
|
|
42549
|
-
|
|
42549
|
+
S,
|
|
42550
42550
|
{
|
|
42551
|
-
...Rt(
|
|
42551
|
+
...Rt(S, l),
|
|
42552
42552
|
"data-index": k,
|
|
42553
42553
|
"data-item-index": D.index,
|
|
42554
42554
|
"data-known-size": D.size,
|
|
@@ -42857,7 +42857,7 @@ const Hq = /* @__PURE__ */ je(
|
|
|
42857
42857
|
{ customScrollParent: E, useWindowScroll: v, windowScrollContainerState: w, windowScrollTo: A, windowViewportRect: C },
|
|
42858
42858
|
O
|
|
42859
42859
|
]) => {
|
|
42860
|
-
const N = q(0),
|
|
42860
|
+
const N = q(0), S = q(0), h = q(K1), b = q({ height: 0, width: 0 }), x = q({ height: 0, width: 0 }), T = _e(), I = _e(), B = q(0), D = q(null), k = q({ column: 0, row: 0 }), P = _e(), U = _e(), F = q(!1), R = q(0), L = q(!0), $ = q(!1), Z = q(!1);
|
|
42861
42861
|
We(
|
|
42862
42862
|
j(
|
|
42863
42863
|
y,
|
|
@@ -42874,7 +42874,7 @@ const Hq = /* @__PURE__ */ je(
|
|
|
42874
42874
|
),
|
|
42875
42875
|
([, , , , K]) => {
|
|
42876
42876
|
Te($, !0), vm(1, () => {
|
|
42877
|
-
Te(
|
|
42877
|
+
Te(T, K);
|
|
42878
42878
|
}), $r(j(l), () => {
|
|
42879
42879
|
Te(t, [0, 0]), Te(L, !0);
|
|
42880
42880
|
});
|
|
@@ -42885,7 +42885,7 @@ const Hq = /* @__PURE__ */ je(
|
|
|
42885
42885
|
me((K) => K != null && K.scrollTop > 0),
|
|
42886
42886
|
sn(0)
|
|
42887
42887
|
),
|
|
42888
|
-
|
|
42888
|
+
S
|
|
42889
42889
|
), We(
|
|
42890
42890
|
j(
|
|
42891
42891
|
y,
|
|
@@ -42928,7 +42928,7 @@ const Hq = /* @__PURE__ */ je(
|
|
|
42928
42928
|
fe(x, El),
|
|
42929
42929
|
fe(b, El),
|
|
42930
42930
|
fe(D),
|
|
42931
|
-
fe(
|
|
42931
|
+
fe(S),
|
|
42932
42932
|
fe(F),
|
|
42933
42933
|
fe(L),
|
|
42934
42934
|
fe(R)
|
|
@@ -43025,7 +43025,7 @@ const Hq = /* @__PURE__ */ je(
|
|
|
43025
43025
|
);
|
|
43026
43026
|
ce(de, m.scrollSeekRangeChanged), ce(
|
|
43027
43027
|
j(
|
|
43028
|
-
|
|
43028
|
+
T,
|
|
43029
43029
|
Pe(b, x, N, k),
|
|
43030
43030
|
re(([K, xe, Ue, ze, st]) => {
|
|
43031
43031
|
const Ae = gx(K), { align: we, behavior: ye, offset: Xe } = Ae;
|
|
@@ -43059,7 +43059,7 @@ const Hq = /* @__PURE__ */ je(
|
|
|
43059
43059
|
gap: k,
|
|
43060
43060
|
headerHeight: a,
|
|
43061
43061
|
increaseViewportBy: e,
|
|
43062
|
-
initialItemCount:
|
|
43062
|
+
initialItemCount: S,
|
|
43063
43063
|
itemDimensions: x,
|
|
43064
43064
|
overscan: r,
|
|
43065
43065
|
restoreStateFrom: U,
|
|
@@ -43067,7 +43067,7 @@ const Hq = /* @__PURE__ */ je(
|
|
|
43067
43067
|
scrollContainerState: i,
|
|
43068
43068
|
scrollHeight: I,
|
|
43069
43069
|
scrollTo: c,
|
|
43070
|
-
scrollToIndex:
|
|
43070
|
+
scrollToIndex: T,
|
|
43071
43071
|
scrollTop: l,
|
|
43072
43072
|
smoothScrollTargetReached: u,
|
|
43073
43073
|
totalCount: N,
|
|
@@ -43309,7 +43309,7 @@ function tK({ logo: e, className: t = "", style: r = {}, alt: n = "Token logo" }
|
|
|
43309
43309
|
}, [e]), e && !s ? /* @__PURE__ */ M("img", { alt: n, style: r, onError: () => a(!0), className: `twap-token-logo ${t}`, src: e }) : /* @__PURE__ */ M(eK.AiFillQuestionCircle, { style: { width: 20, height: 20 }, className: "twap-token-svg" });
|
|
43310
43310
|
}
|
|
43311
43311
|
const rK = () => /* @__PURE__ */ M("div", { className: "twap-orders__loader", children: /* @__PURE__ */ M("p", { children: "Loading..." }) }), nK = () => {
|
|
43312
|
-
const { isLoading: e } = qu(), t = tx(), r =
|
|
43312
|
+
const { isLoading: e } = qu(), t = tx(), r = J((a) => a.state.orderIdsToCancel), n = J((a) => a.state.cancelOrdersMode), s = rx();
|
|
43313
43313
|
return /* @__PURE__ */ M(mo, { children: e ? /* @__PURE__ */ M(rK, {}) : t != null && t.length ? /* @__PURE__ */ M("div", { className: `twap-orders__list ${n ? "twap-orders__list-select-mode" : ""}`, children: /* @__PURE__ */ M(
|
|
43314
43314
|
Rq,
|
|
43315
43315
|
{
|
|
@@ -43328,7 +43328,7 @@ const rK = () => /* @__PURE__ */ M("div", { className: "twap-orders__loader", ch
|
|
|
43328
43328
|
}
|
|
43329
43329
|
) }) : /* @__PURE__ */ M(aK, {}) });
|
|
43330
43330
|
}, sK = ({ order: e, selectOrder: t, selected: r, cancelOrdersMode: n }) => {
|
|
43331
|
-
const s =
|
|
43331
|
+
const s = J((i) => i.updateState), a = xt.useCallback(() => {
|
|
43332
43332
|
s({ selectedOrderID: e == null ? void 0 : e.id });
|
|
43333
43333
|
}, [s, e == null ? void 0 : e.id]), o = xt.useCallback(() => {
|
|
43334
43334
|
n ? t(e == null ? void 0 : e.id) : a();
|
|
@@ -43350,7 +43350,7 @@ const rK = () => /* @__PURE__ */ M("div", { className: "twap-orders__loader", ch
|
|
|
43350
43350
|
}
|
|
43351
43351
|
);
|
|
43352
43352
|
}, aK = () => {
|
|
43353
|
-
const e =
|
|
43353
|
+
const e = J((n) => n.state.orderHistoryStatusFilter), t = Re(), r = xt.useMemo(() => e || "", [e]);
|
|
43354
43354
|
return /* @__PURE__ */ M("div", { className: "twap-orders__list-empty", children: /* @__PURE__ */ M("p", { children: t("noOrders", { status: r }) }) });
|
|
43355
43355
|
}, oK = ({ order: e }) => {
|
|
43356
43356
|
const t = e && e.status, r = J2(e), n = pm(e.createdAt);
|
|
@@ -43376,7 +43376,7 @@ function iK(e) {
|
|
|
43376
43376
|
] });
|
|
43377
43377
|
}
|
|
43378
43378
|
const cK = () => {
|
|
43379
|
-
const e =
|
|
43379
|
+
const e = J((r) => r.state.selectedOrderID);
|
|
43380
43380
|
return /* @__PURE__ */ M("div", { className: `twap-orders ${e !== void 0 ? "twap-orders__show-selected" : ""}`, children: e !== void 0 ? /* @__PURE__ */ M(oW, {}) : /* @__PURE__ */ M(nK, {}) });
|
|
43381
43381
|
}, lK = (e) => {
|
|
43382
43382
|
const t = Re(), { marketPrice: r, typedInputAmount: n } = ne();
|
|
@@ -43390,7 +43390,7 @@ const cK = () => {
|
|
|
43390
43390
|
};
|
|
43391
43391
|
}, [e, t, n, r]);
|
|
43392
43392
|
}, Is = () => {
|
|
43393
|
-
const { callbacks: e } = ne(), t =
|
|
43393
|
+
const { callbacks: e } = ne(), t = J((a) => a.state.typedFillDelay), r = J((a) => a.updateState), n = Q(() => t || rp, [t]), s = lK(n);
|
|
43394
43394
|
return {
|
|
43395
43395
|
fillDelay: n,
|
|
43396
43396
|
onChange: $e((a) => {
|
|
@@ -43413,7 +43413,7 @@ const cK = () => {
|
|
|
43413
43413
|
tooltip: n("tradeIntervalTooltip")
|
|
43414
43414
|
};
|
|
43415
43415
|
}, Xr = () => {
|
|
43416
|
-
const { srcToken: e, typedInputAmount: t } = ne(), r = Re(), s =
|
|
43416
|
+
const { srcToken: e, typedInputAmount: t } = ne(), r = Re(), s = J((a) => a.state.acceptedSrcAmount) || t;
|
|
43417
43417
|
return {
|
|
43418
43418
|
amountWei: q2(e == null ? void 0 : e.decimals, s),
|
|
43419
43419
|
amountUI: s,
|
|
@@ -43445,7 +43445,7 @@ const cK = () => {
|
|
|
43445
43445
|
};
|
|
43446
43446
|
}, [e, t, r, o, n, a, i, s]);
|
|
43447
43447
|
}, Fr = () => {
|
|
43448
|
-
const { srcToken: e, srcUsd1Token: t, module: r, minChunkSizeUsd: n } = ne(), s =
|
|
43448
|
+
const { srcToken: e, srcUsd1Token: t, module: r, minChunkSizeUsd: n } = ne(), s = J((g) => g.state.typedChunks), a = Is().fillDelay, o = J((g) => g.updateState), { amountWei: i, amountUI: c } = Xr(), l = Q(
|
|
43449
43449
|
() => uw(a, c || "", t || "", n || 0),
|
|
43450
43450
|
[c, t, n, a]
|
|
43451
43451
|
), u = Q(() => lw(l, r, s), [l, s, r]), d = $e(
|
|
@@ -43498,7 +43498,7 @@ const cK = () => {
|
|
|
43498
43498
|
}
|
|
43499
43499
|
}, [e, n, t, r]);
|
|
43500
43500
|
}, Pm = () => {
|
|
43501
|
-
const { module: e, callbacks: t } = ne(), r =
|
|
43501
|
+
const { module: e, callbacks: t } = ne(), r = J((c) => c.state.typedDuration), n = J((c) => c.updateState), s = Fr().totalTrades, a = Is().fillDelay, o = Q(() => cw(e, s, a, r), [s, a, r, e]), i = dK(o);
|
|
43502
43502
|
return {
|
|
43503
43503
|
duration: o,
|
|
43504
43504
|
setDuration: $e((c) => {
|
|
@@ -43530,7 +43530,7 @@ const cK = () => {
|
|
|
43530
43530
|
error: s
|
|
43531
43531
|
};
|
|
43532
43532
|
}, MY = () => {
|
|
43533
|
-
const e =
|
|
43533
|
+
const e = J((a) => a.state.isMarketOrder), { module: t } = ne(), r = Re(), n = Q(() => {
|
|
43534
43534
|
if (e && t === Ee.STOP_LOSS)
|
|
43535
43535
|
return {
|
|
43536
43536
|
text: r("triggerMarketPriceDisclaimer"),
|
|
@@ -43545,7 +43545,7 @@ const cK = () => {
|
|
|
43545
43545
|
}, [e, r, t]);
|
|
43546
43546
|
return n || s;
|
|
43547
43547
|
}, Im = () => {
|
|
43548
|
-
const { srcToken: e, dstToken: t, marketPriceLoading: r } = ne(), n =
|
|
43548
|
+
const { srcToken: e, dstToken: t, marketPriceLoading: r } = ne(), n = J((l) => l.updateState), s = J((l) => l.state.isInvertedTrade), a = J((l) => l.state.typedTriggerPrice), o = J((l) => l.state.typedLimitPrice), i = J((l) => l.state.isMarketOrder);
|
|
43549
43549
|
return {
|
|
43550
43550
|
onInvert: $e(() => {
|
|
43551
43551
|
a !== void 0 && n({ typedTriggerPrice: H(1).div(a).toFixed() }), o !== void 0 && n({ typedLimitPrice: H(1).div(o).toFixed() }), n({ isInvertedTrade: !s });
|
|
@@ -43618,7 +43618,7 @@ const cK = () => {
|
|
|
43618
43618
|
const { module: e } = ne();
|
|
43619
43619
|
return Q(() => e === Ee.STOP_LOSS ? X5 : Q5, [e]);
|
|
43620
43620
|
}, Bm = () => {
|
|
43621
|
-
const { module: e } = ne(), t =
|
|
43621
|
+
const { module: e } = ne(), t = J((r) => r.state.isMarketOrder);
|
|
43622
43622
|
return Q(() => e !== Ee.STOP_LOSS && e !== Ee.TAKE_PROFIT || t ? void 0 : e === Ee.STOP_LOSS ? J5 : ew, [e, t]);
|
|
43623
43623
|
}, fK = (e = "") => {
|
|
43624
43624
|
const { module: t, marketPrice: r, typedInputAmount: n } = ne(), s = Re();
|
|
@@ -43646,15 +43646,15 @@ const cK = () => {
|
|
|
43646
43646
|
};
|
|
43647
43647
|
}, [r, e, t, s, n]);
|
|
43648
43648
|
}, mK = (e) => {
|
|
43649
|
-
const { srcToken: t, dstToken: r, module: n, dstUsd1Token: s } = ne(), a = Fr().amountPerTradeWei, o =
|
|
43649
|
+
const { srcToken: t, dstToken: r, module: n, dstUsd1Token: s } = ne(), a = Fr().amountPerTradeWei, o = J((l) => l.state.isMarketOrder), i = Q(() => iw(n, a, e, (t == null ? void 0 : t.decimals) || 0), [e, a, o, t == null ? void 0 : t.decimals, n]), c = On((r == null ? void 0 : r.decimals) || 0, i);
|
|
43650
43650
|
return {
|
|
43651
43651
|
amountWei: i,
|
|
43652
43652
|
amountUI: c,
|
|
43653
43653
|
usd: vs(c, s)
|
|
43654
43654
|
};
|
|
43655
43655
|
}, Bs = () => {
|
|
43656
|
-
const { dstToken: e, marketPrice: t, module: r, callbacks: n } = ne(), s =
|
|
43657
|
-
typedValue:
|
|
43656
|
+
const { dstToken: e, marketPrice: t, module: r, callbacks: n } = ne(), s = J((y) => y.updateState), a = pK(), o = J((y) => y.state.triggerPricePercent), i = o === void 0 ? a : o, c = r === Ee.STOP_LOSS || r === Ee.TAKE_PROFIT, l = Rx({
|
|
43657
|
+
typedValue: J((y) => y.state.typedTriggerPrice),
|
|
43658
43658
|
percentage: i,
|
|
43659
43659
|
tokenDecimals: (e == null ? void 0 : e.decimals) || 18,
|
|
43660
43660
|
initialPrice: c ? t : void 0,
|
|
@@ -43678,7 +43678,7 @@ const cK = () => {
|
|
|
43678
43678
|
pricePerChunkUsd: m
|
|
43679
43679
|
}), [l, u, d, f, m]);
|
|
43680
43680
|
}, RY = () => {
|
|
43681
|
-
const { module: e, marketPrice: t, marketPriceLoading: r } = ne(), n = Re(), { amountUI: s, onChange: a, onPercentageChange: o, usd: i, selectedPercentage: c, error: l, pricePerChunkUI: u, pricePerChunkUsd: d, isTypedValue: f } = Bs(), m =
|
|
43681
|
+
const { module: e, marketPrice: t, marketPriceLoading: r } = ne(), n = Re(), { amountUI: s, onChange: a, onPercentageChange: o, usd: i, selectedPercentage: c, error: l, pricePerChunkUI: u, pricePerChunkUsd: d, isTypedValue: f } = Bs(), m = J((O) => O.state.isMarketOrder), y = J((O) => O.updateState), { isInverted: g, onInvert: E, fromToken: v, toToken: w } = Im(), A = $e(() => {
|
|
43682
43682
|
y({ triggerPricePercent: void 0, typedTriggerPrice: void 0 });
|
|
43683
43683
|
}, [y]), C = e !== Ee.STOP_LOSS && e !== Ee.TAKE_PROFIT;
|
|
43684
43684
|
return {
|
|
@@ -43705,7 +43705,7 @@ const cK = () => {
|
|
|
43705
43705
|
isTypedValue: f
|
|
43706
43706
|
};
|
|
43707
43707
|
}, hK = (e) => {
|
|
43708
|
-
const { module: t, marketPrice: r, typedInputAmount: n } = ne(), s = Re(), { amountWei: a } = Bs(), o =
|
|
43708
|
+
const { module: t, marketPrice: r, typedInputAmount: n } = ne(), s = Re(), { amountWei: a } = Bs(), o = J((i) => i.state.isMarketOrder);
|
|
43709
43709
|
return Q(() => {
|
|
43710
43710
|
if (H(n || "0").isZero() || !a || !r) return;
|
|
43711
43711
|
const i = bw(a, e, o, t), c = yw(a, e, o, t);
|
|
@@ -43729,8 +43729,8 @@ const cK = () => {
|
|
|
43729
43729
|
};
|
|
43730
43730
|
}, [e, s, a, t, o, n, r]);
|
|
43731
43731
|
}, Tc = () => {
|
|
43732
|
-
const { dstToken: e, marketPrice: t, callbacks: r } = ne(), n =
|
|
43733
|
-
typedValue:
|
|
43732
|
+
const { dstToken: e, marketPrice: t, callbacks: r } = ne(), n = J((l) => l.updateState), s = Bm(), a = J((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = Rx({
|
|
43733
|
+
typedValue: J((l) => l.state.typedLimitPrice),
|
|
43734
43734
|
percentage: o,
|
|
43735
43735
|
tokenDecimals: (e == null ? void 0 : e.decimals) || 18,
|
|
43736
43736
|
initialPrice: t,
|
|
@@ -43751,7 +43751,7 @@ const cK = () => {
|
|
|
43751
43751
|
error: c
|
|
43752
43752
|
}), [i, c]);
|
|
43753
43753
|
}, bK = () => {
|
|
43754
|
-
const { module: e } = ne(), t =
|
|
43754
|
+
const { module: e } = ne(), t = J((i) => i.updateState), r = J((i) => i.state.isMarketOrder), n = Bm(), s = J((i) => i.state.triggerPricePercent) || 0, a = e === Ee.LIMIT, o = $e(() => {
|
|
43755
43755
|
!r && e === Ee.STOP_LOSS && t({ limitPricePercent: n }), t({ isMarketOrder: !r });
|
|
43756
43756
|
}, [t, s, e, r, n]);
|
|
43757
43757
|
return {
|
|
@@ -43760,7 +43760,7 @@ const cK = () => {
|
|
|
43760
43760
|
hide: a
|
|
43761
43761
|
};
|
|
43762
43762
|
}, Nx = () => {
|
|
43763
|
-
const { module: e, marketPrice: t } = ne(), r = Tc().amountWei, n = Bs().amountWei, s =
|
|
43763
|
+
const { module: e, marketPrice: t } = ne(), r = Tc().amountWei, n = Bs().amountWei, s = J((a) => a.state.isMarketOrder);
|
|
43764
43764
|
return e === Ee.LIMIT || !s ? r || "" : e === Ee.STOP_LOSS || e === Ee.TAKE_PROFIT ? n || "" : t || "";
|
|
43765
43765
|
}, Ac = () => {
|
|
43766
43766
|
const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Nx(), s = Xr().amountWei, a = Q(() => aw(s || "", n, (e == null ? void 0 : e.decimals) || 0), [s, n, e == null ? void 0 : e.decimals]), o = On(t == null ? void 0 : t.decimals, a);
|
|
@@ -43770,7 +43770,7 @@ const cK = () => {
|
|
|
43770
43770
|
usd: vs(o, r)
|
|
43771
43771
|
};
|
|
43772
43772
|
}, Sc = () => {
|
|
43773
|
-
const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Nx(), s = Fr().amountPerTradeWei, a =
|
|
43773
|
+
const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Nx(), s = Fr().amountPerTradeWei, a = J((c) => c.state.isMarketOrder), o = Q(
|
|
43774
43774
|
() => ow(s, n, !!a, (e == null ? void 0 : e.decimals) || 0),
|
|
43775
43775
|
[s, n, a, e == null ? void 0 : e.decimals]
|
|
43776
43776
|
), i = On(t == null ? void 0 : t.decimals, o);
|
|
@@ -43788,7 +43788,7 @@ const cK = () => {
|
|
|
43788
43788
|
usd: s
|
|
43789
43789
|
};
|
|
43790
43790
|
}, LY = () => {
|
|
43791
|
-
const { module: e, marketPriceLoading: t } = ne(), r = Re(), { amountUI: n, onChange: s, onPercentageChange: a, usd: o, selectedPercentage: i, error: c, isTypedValue: l } = Tc(), { amountUI: u, usd: d } = Sc(), f =
|
|
43791
|
+
const { module: e, marketPriceLoading: t } = ne(), r = Re(), { amountUI: n, onChange: s, onPercentageChange: a, usd: o, selectedPercentage: i, error: c, isTypedValue: l } = Tc(), { amountUI: u, usd: d } = Sc(), f = J((N) => N.updateState), m = Bm(), { isLimitPrice: y, toggleLimitPrice: g } = bK(), { isInverted: E, onInvert: v, fromToken: w, toToken: A } = Im(), C = $e(() => {
|
|
43792
43792
|
f({ typedLimitPrice: void 0 }), f({ limitPricePercent: m });
|
|
43793
43793
|
}, [f, e, m]), O = Q(() => e === Ee.STOP_LOSS ? r("stopLossLimitPriceTooltip") : r("limitPriceTooltip"), [r, e]);
|
|
43794
43794
|
return {
|
|
@@ -43829,7 +43829,7 @@ function gK() {
|
|
|
43829
43829
|
srcUsd1Token: n,
|
|
43830
43830
|
srcBalance: s,
|
|
43831
43831
|
chainId: a
|
|
43832
|
-
} = ne(), o =
|
|
43832
|
+
} = ne(), o = J((E) => E.state.swapExecution.status), i = Re(), { error: c } = Bs(), { error: l } = Tc(), { error: u } = Fr(), { error: d } = Is(), { error: f } = Pm(), m = yK(), y = Xr().amountWei, g = Q(() => {
|
|
43833
43833
|
if (s && H(y).gt(s))
|
|
43834
43834
|
return {
|
|
43835
43835
|
type: Wt.INSUFFICIENT_BALANCE,
|
|
@@ -43865,7 +43865,7 @@ function gK() {
|
|
|
43865
43865
|
]);
|
|
43866
43866
|
}
|
|
43867
43867
|
const zY = () => {
|
|
43868
|
-
const e =
|
|
43868
|
+
const e = J((n) => n.state.isMarketOrder), t = J((n) => n.updateState), r = $e(() => {
|
|
43869
43869
|
t({ isMarketOrder: !e });
|
|
43870
43870
|
}, [t, e]);
|
|
43871
43871
|
return {
|
|
@@ -43873,7 +43873,7 @@ const zY = () => {
|
|
|
43873
43873
|
togglePrice: r
|
|
43874
43874
|
};
|
|
43875
43875
|
}, Qu = () => {
|
|
43876
|
-
const e =
|
|
43876
|
+
const e = J((r) => r.state.currentTime), t = Pm().duration;
|
|
43877
43877
|
return Q(() => dw(e, t), [e, t]);
|
|
43878
43878
|
}, xK = () => {
|
|
43879
43879
|
const { srcUsd1Token: e, dstUsd1Token: t } = ne(), r = Xr().amountUI, n = Ac().amountUI, s = vs(r, e), a = vs(n, t);
|
|
@@ -43957,7 +43957,7 @@ const zY = () => {
|
|
|
43957
43957
|
amount: y,
|
|
43958
43958
|
percent: g,
|
|
43959
43959
|
usd: E
|
|
43960
|
-
} = wK(), { milliseconds: v } = Is(), { amountUI: w } = Ac(), { srcAmountUsd: A, dstAmountUsd: C } = xK(), O = Xr().amountUI, N =
|
|
43960
|
+
} = wK(), { milliseconds: v } = Is(), { amountUI: w } = Ac(), { srcAmountUsd: A, dstAmountUsd: C } = xK(), O = Xr().amountUI, N = J((T) => T.state.isMarketOrder), S = J((T) => T.state.currentTime), h = K2({
|
|
43961
43961
|
srcToken: e,
|
|
43962
43962
|
dstToken: t,
|
|
43963
43963
|
account: r,
|
|
@@ -43976,28 +43976,29 @@ const zY = () => {
|
|
|
43976
43976
|
srcUsd: A,
|
|
43977
43977
|
dstUsd: C,
|
|
43978
43978
|
dstAmount: w,
|
|
43979
|
-
orderType: X2()
|
|
43980
|
-
|
|
43979
|
+
orderType: X2(),
|
|
43980
|
+
createdAt: S
|
|
43981
|
+
}), b = ar({ value: y }), x = ar({ value: E });
|
|
43981
43982
|
return Q(() => ({
|
|
43982
|
-
...
|
|
43983
|
+
...h,
|
|
43983
43984
|
fees: {
|
|
43984
43985
|
label: n("fees", { value: `${g}%` }),
|
|
43985
|
-
amount:
|
|
43986
|
-
usd:
|
|
43986
|
+
amount: b,
|
|
43987
|
+
usd: x || "",
|
|
43987
43988
|
percentage: g
|
|
43988
43989
|
}
|
|
43989
|
-
}), [
|
|
43990
|
+
}), [h, b, x, g]);
|
|
43990
43991
|
}, Lx = Yi({}), CK = ({ children: e, ...t }) => /* @__PURE__ */ M(Lx.Provider, { value: t, children: e }), TK = () => Ql(Lx), zx = () => {
|
|
43991
43992
|
var s, a;
|
|
43992
|
-
const e = Re(), { wrapTxHash: t, srcToken: r } =
|
|
43993
|
+
const e = Re(), { wrapTxHash: t, srcToken: r } = J((o) => o.state.swapExecution), n = (a = (s = vc()) == null ? void 0 : s.wToken) == null ? void 0 : a.symbol;
|
|
43993
43994
|
return t ? /* @__PURE__ */ M("p", { className: "twap-error-wrap-msg", children: e("wrapMsg", { symbol: (r == null ? void 0 : r.symbol) || "", wSymbol: n || "" }) }) : null;
|
|
43994
43995
|
}, $x = () => {
|
|
43995
|
-
const e = Re(), t =
|
|
43996
|
+
const e = Re(), t = J((n) => n.state.swapExecution.status), r = Q2();
|
|
43996
43997
|
return t === wt.SUCCESS ? e("createOrderActionSuccess", { name: r }) : e("createOrderAction", { name: r });
|
|
43997
43998
|
}, AK = () => {
|
|
43998
|
-
const e =
|
|
43999
|
+
const e = J((y) => y.state.swapExecution.srcToken), t = Re(), { step: r, wrapTxHash: n, approveTxHash: s } = J(
|
|
43999
44000
|
(y) => y.state.swapExecution
|
|
44000
|
-
), a = vc(), o = Vd(n), i = Vd(n), c = Vd(s), l =
|
|
44001
|
+
), a = vc(), o = Vd(n), i = Vd(n), c = Vd(s), l = J((y) => y.state.swapExecution.status), d = ho((e == null ? void 0 : e.address) || "") ? (a == null ? void 0 : a.native.symbol) || "" : (e == null ? void 0 : e.symbol) || "", f = a == null ? void 0 : a.wToken.symbol, m = $x();
|
|
44001
44002
|
return Q(() => r === _a.WRAP ? {
|
|
44002
44003
|
title: t("wrapAction", { symbol: d }),
|
|
44003
44004
|
footerLink: o,
|
|
@@ -44029,7 +44030,7 @@ const zY = () => {
|
|
|
44029
44030
|
/* @__PURE__ */ M(zx, {})
|
|
44030
44031
|
] });
|
|
44031
44032
|
function PK({ error: e }) {
|
|
44032
|
-
const { components: t } = ne(), r = Re(), n =
|
|
44033
|
+
const { components: t } = ne(), r = Re(), n = J((o) => {
|
|
44033
44034
|
var i;
|
|
44034
44035
|
return (i = o.state.swapExecution) == null ? void 0 : i.wrapTxHash;
|
|
44035
44036
|
}), s = t.SubmitOrderErrorView, a = /* @__PURE__ */ M(
|
|
@@ -44043,7 +44044,7 @@ function PK({ error: e }) {
|
|
|
44043
44044
|
return s ? /* @__PURE__ */ M(s, { wrapTxHash: n, error: e, children: a }) : a;
|
|
44044
44045
|
}
|
|
44045
44046
|
const IK = () => {
|
|
44046
|
-
const { components: e } = ne(), t =
|
|
44047
|
+
const { components: e } = ne(), t = J((u) => u.state.swapExecution.srcToken), r = J((u) => u.state.swapExecution.dstToken), { reviewDetails: n } = TK(), s = Re(), a = J(
|
|
44047
44048
|
(u) => {
|
|
44048
44049
|
var d;
|
|
44049
44050
|
return !!((d = u.state.swapExecution) != null && d.status);
|
|
@@ -44143,7 +44144,7 @@ const IK = () => {
|
|
|
44143
44144
|
] });
|
|
44144
44145
|
return c ? /* @__PURE__ */ M(c, { children: l }) : l;
|
|
44145
44146
|
}, BK = (e) => {
|
|
44146
|
-
const { status: t, stepIndex: r, totalSteps: n, parsedError: s } =
|
|
44147
|
+
const { status: t, stepIndex: r, totalSteps: n, parsedError: s } = J(
|
|
44147
44148
|
(w) => w.state.swapExecution
|
|
44148
44149
|
), { components: a } = ne(), o = a.Spinner, i = a.SuccessIcon, c = a.ErrorIcon, l = a.TokenLogo, { srcToken: u, dstToken: d } = ne(), f = Xr().amountUI, m = Ac().amountUI, y = ar({ value: f, decimalScale: 2 }), g = ar({ value: m, decimalScale: 2 }), E = Q(() => ({
|
|
44149
44150
|
symbol: u == null ? void 0 : u.symbol,
|
|
@@ -44176,7 +44177,7 @@ const IK = () => {
|
|
|
44176
44177
|
}
|
|
44177
44178
|
) });
|
|
44178
44179
|
}, FK = () => {
|
|
44179
|
-
const e = $x(), { components: t } = ne(), r =
|
|
44180
|
+
const e = $x(), { components: t } = ne(), r = J((a) => a.state.swapExecution.orderId), n = t.SubmitOrderSuccessView, s = /* @__PURE__ */ he(mo, { children: [
|
|
44180
44181
|
/* @__PURE__ */ M(ks.Success, { title: e }),
|
|
44181
44182
|
/* @__PURE__ */ M(zx, {})
|
|
44182
44183
|
] });
|
|
@@ -44363,7 +44364,7 @@ const IK = () => {
|
|
|
44363
44364
|
}
|
|
44364
44365
|
});
|
|
44365
44366
|
}, _K = () => {
|
|
44366
|
-
const { account: e, chainId: t, srcToken: r, dstToken: n, module: s, slippage: a } = ne(), o = Bs(), i = Xr().amountWei, c = Fr().amountPerTradeWei, l = Qu(), u = Fr().totalTrades, d = Is().fillDelay, f = Sc().amountWei, m =
|
|
44367
|
+
const { account: e, chainId: t, srcToken: r, dstToken: n, module: s, slippage: a } = ne(), o = Bs(), i = Xr().amountWei, c = Fr().amountPerTradeWei, l = Qu(), u = Fr().totalTrades, d = Is().fillDelay, f = Sc().amountWei, m = J((y) => y.state.isMarketOrder);
|
|
44367
44368
|
return pn({
|
|
44368
44369
|
mutationFn: async () => {
|
|
44369
44370
|
bt.onRequestOrder({
|
|
@@ -44393,7 +44394,7 @@ function MK(e) {
|
|
|
44393
44394
|
};
|
|
44394
44395
|
}
|
|
44395
44396
|
const RK = () => {
|
|
44396
|
-
const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = DK().mutateAsync, a = UK().mutateAsync, o = OK().mutateAsync, { mutateAsync: i } = Hx(), c =
|
|
44397
|
+
const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = DK().mutateAsync, a = UK().mutateAsync, o = OK().mutateAsync, { mutateAsync: i } = Hx(), c = J((d) => d.updateSwapExecution), { amountWei: l } = Xr(), u = _K().mutate;
|
|
44397
44398
|
return pn({
|
|
44398
44399
|
mutationFn: async () => {
|
|
44399
44400
|
var f, m;
|
|
@@ -44448,7 +44449,7 @@ const RK = () => {
|
|
|
44448
44449
|
}
|
|
44449
44450
|
});
|
|
44450
44451
|
}, GY = () => {
|
|
44451
|
-
const { marketPrice: e, srcToken: t, dstToken: r, resetTypedInputAmount: n } = ne(), s = RK(), a =
|
|
44452
|
+
const { marketPrice: e, srcToken: t, dstToken: r, resetTypedInputAmount: n } = ne(), s = RK(), a = J((g) => g.updateState), { amountUI: o } = Xr(), i = J((g) => g.resetState), c = J((g) => g.state.swapExecution), l = J((g) => g.updateSwapExecution), u = Q2(), d = $e(() => {
|
|
44452
44453
|
(c == null ? void 0 : c.status) === wt.SUCCESS && (n(), i());
|
|
44453
44454
|
}, [c == null ? void 0 : c.status, i, n]), f = $e(() => {
|
|
44454
44455
|
(c == null ? void 0 : c.status) !== wt.LOADING && (a({
|