@gearbox-protocol/deploy-tools 5.36.14 → 5.36.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +934 -779
- package/package.json +1 -15
package/dist/index.mjs
CHANGED
|
@@ -1207,7 +1207,7 @@ var require_command = __commonJS({
|
|
|
1207
1207
|
"../../node_modules/commander/lib/command.js"(exports2) {
|
|
1208
1208
|
var EventEmitter = __require("node:events").EventEmitter;
|
|
1209
1209
|
var childProcess = __require("node:child_process");
|
|
1210
|
-
var
|
|
1210
|
+
var path10 = __require("node:path");
|
|
1211
1211
|
var fs3 = __require("node:fs");
|
|
1212
1212
|
var process3 = __require("node:process");
|
|
1213
1213
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
@@ -2221,9 +2221,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2221
2221
|
let launchWithNode = false;
|
|
2222
2222
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
2223
2223
|
function findFile(baseDir, baseName) {
|
|
2224
|
-
const localBin =
|
|
2224
|
+
const localBin = path10.resolve(baseDir, baseName);
|
|
2225
2225
|
if (fs3.existsSync(localBin)) return localBin;
|
|
2226
|
-
if (sourceExt.includes(
|
|
2226
|
+
if (sourceExt.includes(path10.extname(baseName))) return void 0;
|
|
2227
2227
|
const foundExt = sourceExt.find(
|
|
2228
2228
|
(ext) => fs3.existsSync(`${localBin}${ext}`)
|
|
2229
2229
|
);
|
|
@@ -2241,17 +2241,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2241
2241
|
} catch {
|
|
2242
2242
|
resolvedScriptPath = this._scriptPath;
|
|
2243
2243
|
}
|
|
2244
|
-
executableDir =
|
|
2245
|
-
|
|
2244
|
+
executableDir = path10.resolve(
|
|
2245
|
+
path10.dirname(resolvedScriptPath),
|
|
2246
2246
|
executableDir
|
|
2247
2247
|
);
|
|
2248
2248
|
}
|
|
2249
2249
|
if (executableDir) {
|
|
2250
2250
|
let localFile = findFile(executableDir, executableFile);
|
|
2251
2251
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
2252
|
-
const legacyName =
|
|
2252
|
+
const legacyName = path10.basename(
|
|
2253
2253
|
this._scriptPath,
|
|
2254
|
-
|
|
2254
|
+
path10.extname(this._scriptPath)
|
|
2255
2255
|
);
|
|
2256
2256
|
if (legacyName !== this._name) {
|
|
2257
2257
|
localFile = findFile(
|
|
@@ -2262,7 +2262,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2262
2262
|
}
|
|
2263
2263
|
executableFile = localFile || executableFile;
|
|
2264
2264
|
}
|
|
2265
|
-
launchWithNode = sourceExt.includes(
|
|
2265
|
+
launchWithNode = sourceExt.includes(path10.extname(executableFile));
|
|
2266
2266
|
let proc;
|
|
2267
2267
|
if (process3.platform !== "win32") {
|
|
2268
2268
|
if (launchWithNode) {
|
|
@@ -3178,7 +3178,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3178
3178
|
* @return {Command}
|
|
3179
3179
|
*/
|
|
3180
3180
|
nameFromFilename(filename) {
|
|
3181
|
-
this._name =
|
|
3181
|
+
this._name = path10.basename(filename, path10.extname(filename));
|
|
3182
3182
|
return this;
|
|
3183
3183
|
}
|
|
3184
3184
|
/**
|
|
@@ -3192,9 +3192,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3192
3192
|
* @param {string} [path]
|
|
3193
3193
|
* @return {(string|null|Command)}
|
|
3194
3194
|
*/
|
|
3195
|
-
executableDir(
|
|
3196
|
-
if (
|
|
3197
|
-
this._executableDir =
|
|
3195
|
+
executableDir(path11) {
|
|
3196
|
+
if (path11 === void 0) return this._executableDir;
|
|
3197
|
+
this._executableDir = path11;
|
|
3198
3198
|
return this;
|
|
3199
3199
|
}
|
|
3200
3200
|
/**
|
|
@@ -22821,11 +22821,11 @@ var require_mime_types = __commonJS({
|
|
|
22821
22821
|
}
|
|
22822
22822
|
return exts[0];
|
|
22823
22823
|
}
|
|
22824
|
-
function lookup(
|
|
22825
|
-
if (!
|
|
22824
|
+
function lookup(path10) {
|
|
22825
|
+
if (!path10 || typeof path10 !== "string") {
|
|
22826
22826
|
return false;
|
|
22827
22827
|
}
|
|
22828
|
-
var extension2 = extname("x." +
|
|
22828
|
+
var extension2 = extname("x." + path10).toLowerCase().substr(1);
|
|
22829
22829
|
if (!extension2) {
|
|
22830
22830
|
return false;
|
|
22831
22831
|
}
|
|
@@ -23930,7 +23930,7 @@ var require_form_data = __commonJS({
|
|
|
23930
23930
|
"use strict";
|
|
23931
23931
|
var CombinedStream = require_combined_stream();
|
|
23932
23932
|
var util2 = __require("util");
|
|
23933
|
-
var
|
|
23933
|
+
var path10 = __require("path");
|
|
23934
23934
|
var http2 = __require("http");
|
|
23935
23935
|
var https = __require("https");
|
|
23936
23936
|
var parseUrl = __require("url").parse;
|
|
@@ -24057,11 +24057,11 @@ var require_form_data = __commonJS({
|
|
|
24057
24057
|
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
24058
24058
|
var filename;
|
|
24059
24059
|
if (typeof options.filepath === "string") {
|
|
24060
|
-
filename =
|
|
24060
|
+
filename = path10.normalize(options.filepath).replace(/\\/g, "/");
|
|
24061
24061
|
} else if (options.filename || value && (value.name || value.path)) {
|
|
24062
|
-
filename =
|
|
24062
|
+
filename = path10.basename(options.filename || value && (value.name || value.path));
|
|
24063
24063
|
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
24064
|
-
filename =
|
|
24064
|
+
filename = path10.basename(value.client._httpMessage.path || "");
|
|
24065
24065
|
}
|
|
24066
24066
|
if (filename) {
|
|
24067
24067
|
return 'filename="' + filename + '"';
|
|
@@ -31706,12 +31706,12 @@ var require_abstract_coder = __commonJS({
|
|
|
31706
31706
|
var logger2 = new logger_1.Logger(_version_1.version);
|
|
31707
31707
|
function checkResultErrors(result) {
|
|
31708
31708
|
var errors = [];
|
|
31709
|
-
var checkErrors = function(
|
|
31709
|
+
var checkErrors = function(path10, object) {
|
|
31710
31710
|
if (!Array.isArray(object)) {
|
|
31711
31711
|
return;
|
|
31712
31712
|
}
|
|
31713
31713
|
for (var key in object) {
|
|
31714
|
-
var childPath =
|
|
31714
|
+
var childPath = path10.slice();
|
|
31715
31715
|
childPath.push(key);
|
|
31716
31716
|
try {
|
|
31717
31717
|
checkErrors(childPath, object[key]);
|
|
@@ -45792,9 +45792,9 @@ var require_lib21 = __commonJS({
|
|
|
45792
45792
|
if (index2 > 4294967295) {
|
|
45793
45793
|
throw new Error("invalid index - " + String(index2));
|
|
45794
45794
|
}
|
|
45795
|
-
var
|
|
45796
|
-
if (
|
|
45797
|
-
|
|
45795
|
+
var path10 = this.path;
|
|
45796
|
+
if (path10) {
|
|
45797
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
45798
45798
|
}
|
|
45799
45799
|
var data = new Uint8Array(37);
|
|
45800
45800
|
if (index2 & HardenedBit) {
|
|
@@ -45802,8 +45802,8 @@ var require_lib21 = __commonJS({
|
|
|
45802
45802
|
throw new Error("cannot derive child of neutered node");
|
|
45803
45803
|
}
|
|
45804
45804
|
data.set((0, bytes_1.arrayify)(this.privateKey), 1);
|
|
45805
|
-
if (
|
|
45806
|
-
|
|
45805
|
+
if (path10) {
|
|
45806
|
+
path10 += "'";
|
|
45807
45807
|
}
|
|
45808
45808
|
} else {
|
|
45809
45809
|
data.set((0, bytes_1.arrayify)(this.publicKey));
|
|
@@ -45822,21 +45822,21 @@ var require_lib21 = __commonJS({
|
|
|
45822
45822
|
var ek = new signing_key_1.SigningKey((0, bytes_1.hexlify)(IL));
|
|
45823
45823
|
Ki = ek._addPoint(this.publicKey);
|
|
45824
45824
|
}
|
|
45825
|
-
var mnemonicOrPath =
|
|
45825
|
+
var mnemonicOrPath = path10;
|
|
45826
45826
|
var srcMnemonic = this.mnemonic;
|
|
45827
45827
|
if (srcMnemonic) {
|
|
45828
45828
|
mnemonicOrPath = Object.freeze({
|
|
45829
45829
|
phrase: srcMnemonic.phrase,
|
|
45830
|
-
path:
|
|
45830
|
+
path: path10,
|
|
45831
45831
|
locale: srcMnemonic.locale || "en"
|
|
45832
45832
|
});
|
|
45833
45833
|
}
|
|
45834
45834
|
return new HDNode2(_constructorGuard, ki, Ki, this.fingerprint, bytes32(IR), index2, this.depth + 1, mnemonicOrPath);
|
|
45835
45835
|
};
|
|
45836
|
-
HDNode2.prototype.derivePath = function(
|
|
45837
|
-
var components =
|
|
45836
|
+
HDNode2.prototype.derivePath = function(path10) {
|
|
45837
|
+
var components = path10.split("/");
|
|
45838
45838
|
if (components.length === 0 || components[0] === "m" && this.depth !== 0) {
|
|
45839
|
-
throw new Error("invalid path - " +
|
|
45839
|
+
throw new Error("invalid path - " + path10);
|
|
45840
45840
|
}
|
|
45841
45841
|
if (components[0] === "m") {
|
|
45842
45842
|
components.shift();
|
|
@@ -46590,9 +46590,9 @@ var require_utils4 = __commonJS({
|
|
|
46590
46590
|
return (0, bytes_1.arrayify)(password);
|
|
46591
46591
|
}
|
|
46592
46592
|
exports2.getPassword = getPassword;
|
|
46593
|
-
function searchPath(object,
|
|
46593
|
+
function searchPath(object, path10) {
|
|
46594
46594
|
var currentChild = object;
|
|
46595
|
-
var comps =
|
|
46595
|
+
var comps = path10.toLowerCase().split("/");
|
|
46596
46596
|
for (var i = 0; i < comps.length; i++) {
|
|
46597
46597
|
var matchingChild = null;
|
|
46598
46598
|
for (var key in currentChild) {
|
|
@@ -47479,12 +47479,12 @@ var require_keystore = __commonJS({
|
|
|
47479
47479
|
var mnemonicIv = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "x-ethers/mnemonicCounter"));
|
|
47480
47480
|
var mnemonicCounter = new aes_js_1.default.Counter(mnemonicIv);
|
|
47481
47481
|
var mnemonicAesCtr = new aes_js_1.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter);
|
|
47482
|
-
var
|
|
47482
|
+
var path10 = (0, utils_1.searchPath)(data, "x-ethers/path") || hdnode_1.defaultPath;
|
|
47483
47483
|
var locale = (0, utils_1.searchPath)(data, "x-ethers/locale") || "en";
|
|
47484
47484
|
var entropy = (0, bytes_1.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext));
|
|
47485
47485
|
try {
|
|
47486
47486
|
var mnemonic = (0, hdnode_1.entropyToMnemonic)(entropy, locale);
|
|
47487
|
-
var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(
|
|
47487
|
+
var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path10);
|
|
47488
47488
|
if (node.privateKey != account.privateKey) {
|
|
47489
47489
|
throw new Error("mnemonic mismatch");
|
|
47490
47490
|
}
|
|
@@ -47594,12 +47594,12 @@ var require_keystore = __commonJS({
|
|
|
47594
47594
|
var privateKey = (0, bytes_1.arrayify)(account.privateKey);
|
|
47595
47595
|
var passwordBytes = (0, utils_1.getPassword)(password);
|
|
47596
47596
|
var entropy = null;
|
|
47597
|
-
var
|
|
47597
|
+
var path10 = null;
|
|
47598
47598
|
var locale = null;
|
|
47599
47599
|
if (hasMnemonic(account)) {
|
|
47600
47600
|
var srcMnemonic = account.mnemonic;
|
|
47601
47601
|
entropy = (0, bytes_1.arrayify)((0, hdnode_1.mnemonicToEntropy)(srcMnemonic.phrase, srcMnemonic.locale || "en"));
|
|
47602
|
-
|
|
47602
|
+
path10 = srcMnemonic.path || hdnode_1.defaultPath;
|
|
47603
47603
|
locale = srcMnemonic.locale || "en";
|
|
47604
47604
|
}
|
|
47605
47605
|
var client = options.client;
|
|
@@ -47685,7 +47685,7 @@ var require_keystore = __commonJS({
|
|
|
47685
47685
|
gethFilename: "UTC--" + timestamp + "--" + data.address,
|
|
47686
47686
|
mnemonicCounter: (0, bytes_1.hexlify)(mnemonicIv).substring(2),
|
|
47687
47687
|
mnemonicCiphertext: (0, bytes_1.hexlify)(mnemonicCiphertext).substring(2),
|
|
47688
|
-
path:
|
|
47688
|
+
path: path10,
|
|
47689
47689
|
locale,
|
|
47690
47690
|
version: "0.1"
|
|
47691
47691
|
};
|
|
@@ -49052,11 +49052,11 @@ var require_lib28 = __commonJS({
|
|
|
49052
49052
|
Wallet2.fromEncryptedJsonSync = function(json, password) {
|
|
49053
49053
|
return new Wallet2((0, json_wallets_1.decryptJsonWalletSync)(json, password));
|
|
49054
49054
|
};
|
|
49055
|
-
Wallet2.fromMnemonic = function(mnemonic,
|
|
49056
|
-
if (!
|
|
49057
|
-
|
|
49055
|
+
Wallet2.fromMnemonic = function(mnemonic, path10, wordlist) {
|
|
49056
|
+
if (!path10) {
|
|
49057
|
+
path10 = hdnode_1.defaultPath;
|
|
49058
49058
|
}
|
|
49059
|
-
return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(
|
|
49059
|
+
return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path10));
|
|
49060
49060
|
};
|
|
49061
49061
|
return Wallet2;
|
|
49062
49062
|
}(abstract_signer_1.Signer)
|
|
@@ -61947,13 +61947,13 @@ var require_ipc_provider = __commonJS({
|
|
|
61947
61947
|
/** @class */
|
|
61948
61948
|
function(_super) {
|
|
61949
61949
|
__extends4(IpcProvider2, _super);
|
|
61950
|
-
function IpcProvider2(
|
|
61950
|
+
function IpcProvider2(path10, network) {
|
|
61951
61951
|
var _this = this;
|
|
61952
|
-
if (
|
|
61952
|
+
if (path10 == null) {
|
|
61953
61953
|
logger2.throwError("missing path", logger_1.Logger.errors.MISSING_ARGUMENT, { arg: "path" });
|
|
61954
61954
|
}
|
|
61955
|
-
_this = _super.call(this, "ipc://" +
|
|
61956
|
-
(0, properties_1.defineReadOnly)(_this, "path",
|
|
61955
|
+
_this = _super.call(this, "ipc://" + path10, network) || this;
|
|
61956
|
+
(0, properties_1.defineReadOnly)(_this, "path", path10);
|
|
61957
61957
|
return _this;
|
|
61958
61958
|
}
|
|
61959
61959
|
IpcProvider2.prototype.send = function(method, params) {
|
|
@@ -62670,21 +62670,21 @@ var require_web3_provider = __commonJS({
|
|
|
62670
62670
|
if (provider == null) {
|
|
62671
62671
|
logger2.throwArgumentError("missing provider", "provider", provider);
|
|
62672
62672
|
}
|
|
62673
|
-
var
|
|
62673
|
+
var path10 = null;
|
|
62674
62674
|
var jsonRpcFetchFunc = null;
|
|
62675
62675
|
var subprovider = null;
|
|
62676
62676
|
if (typeof provider === "function") {
|
|
62677
|
-
|
|
62677
|
+
path10 = "unknown:";
|
|
62678
62678
|
jsonRpcFetchFunc = provider;
|
|
62679
62679
|
} else {
|
|
62680
|
-
|
|
62681
|
-
if (!
|
|
62682
|
-
|
|
62680
|
+
path10 = provider.host || provider.path || "";
|
|
62681
|
+
if (!path10 && provider.isMetaMask) {
|
|
62682
|
+
path10 = "metamask";
|
|
62683
62683
|
}
|
|
62684
62684
|
subprovider = provider;
|
|
62685
62685
|
if (provider.request) {
|
|
62686
|
-
if (
|
|
62687
|
-
|
|
62686
|
+
if (path10 === "") {
|
|
62687
|
+
path10 = "eip-1193:";
|
|
62688
62688
|
}
|
|
62689
62689
|
jsonRpcFetchFunc = buildEip1193Fetcher(provider);
|
|
62690
62690
|
} else if (provider.sendAsync) {
|
|
@@ -62694,11 +62694,11 @@ var require_web3_provider = __commonJS({
|
|
|
62694
62694
|
} else {
|
|
62695
62695
|
logger2.throwArgumentError("unsupported provider", "provider", provider);
|
|
62696
62696
|
}
|
|
62697
|
-
if (!
|
|
62698
|
-
|
|
62697
|
+
if (!path10) {
|
|
62698
|
+
path10 = "unknown:";
|
|
62699
62699
|
}
|
|
62700
62700
|
}
|
|
62701
|
-
_this = _super.call(this,
|
|
62701
|
+
_this = _super.call(this, path10, network) || this;
|
|
62702
62702
|
(0, properties_1.defineReadOnly)(_this, "jsonRpcFetchFunc", jsonRpcFetchFunc);
|
|
62703
62703
|
(0, properties_1.defineReadOnly)(_this, "provider", subprovider);
|
|
62704
62704
|
return _this;
|
|
@@ -65433,7 +65433,7 @@ var require_data_point_deserializer = __commonJS({
|
|
|
65433
65433
|
var require_node_gyp_build = __commonJS({
|
|
65434
65434
|
"../../node_modules/node-gyp-build/node-gyp-build.js"(exports2, module2) {
|
|
65435
65435
|
var fs3 = __require("fs");
|
|
65436
|
-
var
|
|
65436
|
+
var path10 = __require("path");
|
|
65437
65437
|
var os2 = __require("os");
|
|
65438
65438
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
65439
65439
|
var vars = process.config && process.config.variables || {};
|
|
@@ -65450,21 +65450,21 @@ var require_node_gyp_build = __commonJS({
|
|
|
65450
65450
|
return runtimeRequire(load.resolve(dir));
|
|
65451
65451
|
}
|
|
65452
65452
|
load.resolve = load.path = function(dir) {
|
|
65453
|
-
dir =
|
|
65453
|
+
dir = path10.resolve(dir || ".");
|
|
65454
65454
|
try {
|
|
65455
|
-
var name = runtimeRequire(
|
|
65455
|
+
var name = runtimeRequire(path10.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
|
|
65456
65456
|
if (process.env[name + "_PREBUILD"]) dir = process.env[name + "_PREBUILD"];
|
|
65457
65457
|
} catch (err) {
|
|
65458
65458
|
}
|
|
65459
65459
|
if (!prebuildsOnly) {
|
|
65460
|
-
var release = getFirst(
|
|
65460
|
+
var release = getFirst(path10.join(dir, "build/Release"), matchBuild);
|
|
65461
65461
|
if (release) return release;
|
|
65462
|
-
var debug = getFirst(
|
|
65462
|
+
var debug = getFirst(path10.join(dir, "build/Debug"), matchBuild);
|
|
65463
65463
|
if (debug) return debug;
|
|
65464
65464
|
}
|
|
65465
65465
|
var prebuild = resolve2(dir);
|
|
65466
65466
|
if (prebuild) return prebuild;
|
|
65467
|
-
var nearby = resolve2(
|
|
65467
|
+
var nearby = resolve2(path10.dirname(process.execPath));
|
|
65468
65468
|
if (nearby) return nearby;
|
|
65469
65469
|
var target = [
|
|
65470
65470
|
"platform=" + platform,
|
|
@@ -65481,14 +65481,14 @@ var require_node_gyp_build = __commonJS({
|
|
|
65481
65481
|
].filter(Boolean).join(" ");
|
|
65482
65482
|
throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
|
|
65483
65483
|
function resolve2(dir2) {
|
|
65484
|
-
var tuples = readdirSync(
|
|
65484
|
+
var tuples = readdirSync(path10.join(dir2, "prebuilds")).map(parseTuple);
|
|
65485
65485
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
65486
65486
|
if (!tuple) return;
|
|
65487
|
-
var prebuilds =
|
|
65487
|
+
var prebuilds = path10.join(dir2, "prebuilds", tuple.name);
|
|
65488
65488
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
65489
65489
|
var candidates = parsed.filter(matchTags(runtime, abi50));
|
|
65490
65490
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
65491
|
-
if (winner) return
|
|
65491
|
+
if (winner) return path10.join(prebuilds, winner.file);
|
|
65492
65492
|
}
|
|
65493
65493
|
};
|
|
65494
65494
|
function readdirSync(dir) {
|
|
@@ -65500,7 +65500,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
65500
65500
|
}
|
|
65501
65501
|
function getFirst(dir, filter) {
|
|
65502
65502
|
var files = readdirSync(dir).filter(filter);
|
|
65503
|
-
return files[0] &&
|
|
65503
|
+
return files[0] && path10.join(dir, files[0]);
|
|
65504
65504
|
}
|
|
65505
65505
|
function matchBuild(name) {
|
|
65506
65506
|
return /\.node$/.test(name);
|
|
@@ -67632,9 +67632,9 @@ var require_axios = __commonJS({
|
|
|
67632
67632
|
function removeBrackets(key) {
|
|
67633
67633
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
67634
67634
|
}
|
|
67635
|
-
function renderKey(
|
|
67636
|
-
if (!
|
|
67637
|
-
return
|
|
67635
|
+
function renderKey(path10, key, dots) {
|
|
67636
|
+
if (!path10) return key;
|
|
67637
|
+
return path10.concat(key).map(function each(token, i) {
|
|
67638
67638
|
token = removeBrackets(token);
|
|
67639
67639
|
return !dots && i ? "[" + token + "]" : token;
|
|
67640
67640
|
}).join(dots ? "." : "");
|
|
@@ -67682,9 +67682,9 @@ var require_axios = __commonJS({
|
|
|
67682
67682
|
}
|
|
67683
67683
|
return value;
|
|
67684
67684
|
}
|
|
67685
|
-
function defaultVisitor(value, key,
|
|
67685
|
+
function defaultVisitor(value, key, path10) {
|
|
67686
67686
|
let arr = value;
|
|
67687
|
-
if (value && !
|
|
67687
|
+
if (value && !path10 && typeof value === "object") {
|
|
67688
67688
|
if (utils$1.endsWith(key, "{}")) {
|
|
67689
67689
|
key = metaTokens ? key : key.slice(0, -2);
|
|
67690
67690
|
value = JSON.stringify(value);
|
|
@@ -67703,7 +67703,7 @@ var require_axios = __commonJS({
|
|
|
67703
67703
|
if (isVisitable(value)) {
|
|
67704
67704
|
return true;
|
|
67705
67705
|
}
|
|
67706
|
-
formData.append(renderKey(
|
|
67706
|
+
formData.append(renderKey(path10, key, dots), convertValue(value));
|
|
67707
67707
|
return false;
|
|
67708
67708
|
}
|
|
67709
67709
|
const stack = [];
|
|
@@ -67712,10 +67712,10 @@ var require_axios = __commonJS({
|
|
|
67712
67712
|
convertValue,
|
|
67713
67713
|
isVisitable
|
|
67714
67714
|
});
|
|
67715
|
-
function build(value,
|
|
67715
|
+
function build(value, path10) {
|
|
67716
67716
|
if (utils$1.isUndefined(value)) return;
|
|
67717
67717
|
if (stack.indexOf(value) !== -1) {
|
|
67718
|
-
throw Error("Circular reference detected in " +
|
|
67718
|
+
throw Error("Circular reference detected in " + path10.join("."));
|
|
67719
67719
|
}
|
|
67720
67720
|
stack.push(value);
|
|
67721
67721
|
utils$1.forEach(value, function each(el, key) {
|
|
@@ -67723,11 +67723,11 @@ var require_axios = __commonJS({
|
|
|
67723
67723
|
formData,
|
|
67724
67724
|
el,
|
|
67725
67725
|
utils$1.isString(key) ? key.trim() : key,
|
|
67726
|
-
|
|
67726
|
+
path10,
|
|
67727
67727
|
exposedHelpers
|
|
67728
67728
|
);
|
|
67729
67729
|
if (result === true) {
|
|
67730
|
-
build(el,
|
|
67730
|
+
build(el, path10 ? path10.concat(key) : [key]);
|
|
67731
67731
|
}
|
|
67732
67732
|
});
|
|
67733
67733
|
stack.pop();
|
|
@@ -67915,7 +67915,7 @@ var require_axios = __commonJS({
|
|
|
67915
67915
|
};
|
|
67916
67916
|
function toURLEncodedForm(data, options) {
|
|
67917
67917
|
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
67918
|
-
visitor: function(value, key,
|
|
67918
|
+
visitor: function(value, key, path10, helpers) {
|
|
67919
67919
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
67920
67920
|
this.append(key, value.toString("base64"));
|
|
67921
67921
|
return false;
|
|
@@ -67942,11 +67942,11 @@ var require_axios = __commonJS({
|
|
|
67942
67942
|
return obj;
|
|
67943
67943
|
}
|
|
67944
67944
|
function formDataToJSON(formData) {
|
|
67945
|
-
function buildPath(
|
|
67946
|
-
let name =
|
|
67945
|
+
function buildPath(path10, value, target, index2) {
|
|
67946
|
+
let name = path10[index2++];
|
|
67947
67947
|
if (name === "__proto__") return true;
|
|
67948
67948
|
const isNumericKey = Number.isFinite(+name);
|
|
67949
|
-
const isLast = index2 >=
|
|
67949
|
+
const isLast = index2 >= path10.length;
|
|
67950
67950
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
67951
67951
|
if (isLast) {
|
|
67952
67952
|
if (utils$1.hasOwnProp(target, name)) {
|
|
@@ -67959,7 +67959,7 @@ var require_axios = __commonJS({
|
|
|
67959
67959
|
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
67960
67960
|
target[name] = [];
|
|
67961
67961
|
}
|
|
67962
|
-
const result = buildPath(
|
|
67962
|
+
const result = buildPath(path10, value, target[name], index2);
|
|
67963
67963
|
if (result && utils$1.isArray(target[name])) {
|
|
67964
67964
|
target[name] = arrayToObject(target[name]);
|
|
67965
67965
|
}
|
|
@@ -69026,9 +69026,9 @@ var require_axios = __commonJS({
|
|
|
69026
69026
|
auth = urlUsername + ":" + urlPassword;
|
|
69027
69027
|
}
|
|
69028
69028
|
auth && headers.delete("authorization");
|
|
69029
|
-
let
|
|
69029
|
+
let path10;
|
|
69030
69030
|
try {
|
|
69031
|
-
|
|
69031
|
+
path10 = buildURL(
|
|
69032
69032
|
parsed.pathname + parsed.search,
|
|
69033
69033
|
config.params,
|
|
69034
69034
|
config.paramsSerializer
|
|
@@ -69046,7 +69046,7 @@ var require_axios = __commonJS({
|
|
|
69046
69046
|
false
|
|
69047
69047
|
);
|
|
69048
69048
|
const options = {
|
|
69049
|
-
path:
|
|
69049
|
+
path: path10,
|
|
69050
69050
|
method,
|
|
69051
69051
|
headers: headers.toJSON(),
|
|
69052
69052
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
@@ -69272,10 +69272,10 @@ var require_axios = __commonJS({
|
|
|
69272
69272
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
69273
69273
|
// Standard browser envs support document.cookie
|
|
69274
69274
|
{
|
|
69275
|
-
write(name, value, expires,
|
|
69275
|
+
write(name, value, expires, path10, domain, secure) {
|
|
69276
69276
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
69277
69277
|
utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
69278
|
-
utils$1.isString(
|
|
69278
|
+
utils$1.isString(path10) && cookie.push("path=" + path10);
|
|
69279
69279
|
utils$1.isString(domain) && cookie.push("domain=" + domain);
|
|
69280
69280
|
secure === true && cookie.push("secure");
|
|
69281
69281
|
document.cookie = cookie.join("; ");
|
|
@@ -71825,8 +71825,8 @@ var require_parseUtil = __commonJS({
|
|
|
71825
71825
|
var errors_js_1 = require_errors();
|
|
71826
71826
|
var en_js_1 = __importDefault4(require_en());
|
|
71827
71827
|
var makeIssue2 = (params) => {
|
|
71828
|
-
const { data, path:
|
|
71829
|
-
const fullPath = [...
|
|
71828
|
+
const { data, path: path10, errorMaps, issueData } = params;
|
|
71829
|
+
const fullPath = [...path10, ...issueData.path || []];
|
|
71830
71830
|
const fullIssue = {
|
|
71831
71831
|
...issueData,
|
|
71832
71832
|
path: fullPath
|
|
@@ -71980,11 +71980,11 @@ var require_types3 = __commonJS({
|
|
|
71980
71980
|
var parseUtil_js_1 = require_parseUtil();
|
|
71981
71981
|
var util_js_1 = require_util();
|
|
71982
71982
|
var ParseInputLazyPath2 = class {
|
|
71983
|
-
constructor(parent, value,
|
|
71983
|
+
constructor(parent, value, path10, key) {
|
|
71984
71984
|
this._cachedPath = [];
|
|
71985
71985
|
this.parent = parent;
|
|
71986
71986
|
this.data = value;
|
|
71987
|
-
this._path =
|
|
71987
|
+
this._path = path10;
|
|
71988
71988
|
this._key = key;
|
|
71989
71989
|
}
|
|
71990
71990
|
get path() {
|
|
@@ -78439,11 +78439,11 @@ var require_lodash = __commonJS({
|
|
|
78439
78439
|
return isFunction2(object[key]);
|
|
78440
78440
|
});
|
|
78441
78441
|
}
|
|
78442
|
-
function baseGet2(object,
|
|
78443
|
-
|
|
78444
|
-
var index2 = 0, length =
|
|
78442
|
+
function baseGet2(object, path10) {
|
|
78443
|
+
path10 = castPath2(path10, object);
|
|
78444
|
+
var index2 = 0, length = path10.length;
|
|
78445
78445
|
while (object != null && index2 < length) {
|
|
78446
|
-
object = object[toKey2(
|
|
78446
|
+
object = object[toKey2(path10[index2++])];
|
|
78447
78447
|
}
|
|
78448
78448
|
return index2 && index2 == length ? object : undefined2;
|
|
78449
78449
|
}
|
|
@@ -78507,10 +78507,10 @@ var require_lodash = __commonJS({
|
|
|
78507
78507
|
});
|
|
78508
78508
|
return accumulator;
|
|
78509
78509
|
}
|
|
78510
|
-
function baseInvoke(object,
|
|
78511
|
-
|
|
78512
|
-
object = parent(object,
|
|
78513
|
-
var func = object == null ? object : object[toKey2(last(
|
|
78510
|
+
function baseInvoke(object, path10, args) {
|
|
78511
|
+
path10 = castPath2(path10, object);
|
|
78512
|
+
object = parent(object, path10);
|
|
78513
|
+
var func = object == null ? object : object[toKey2(last(path10))];
|
|
78514
78514
|
return func == null ? undefined2 : apply(func, object, args);
|
|
78515
78515
|
}
|
|
78516
78516
|
function baseIsArguments2(value) {
|
|
@@ -78666,13 +78666,13 @@ var require_lodash = __commonJS({
|
|
|
78666
78666
|
return object === source || baseIsMatch2(object, source, matchData);
|
|
78667
78667
|
};
|
|
78668
78668
|
}
|
|
78669
|
-
function baseMatchesProperty2(
|
|
78670
|
-
if (isKey2(
|
|
78671
|
-
return matchesStrictComparable2(toKey2(
|
|
78669
|
+
function baseMatchesProperty2(path10, srcValue) {
|
|
78670
|
+
if (isKey2(path10) && isStrictComparable2(srcValue)) {
|
|
78671
|
+
return matchesStrictComparable2(toKey2(path10), srcValue);
|
|
78672
78672
|
}
|
|
78673
78673
|
return function(object) {
|
|
78674
|
-
var objValue = get2(object,
|
|
78675
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn2(object,
|
|
78674
|
+
var objValue = get2(object, path10);
|
|
78675
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn2(object, path10) : baseIsEqual2(srcValue, objValue, COMPARE_PARTIAL_FLAG7 | COMPARE_UNORDERED_FLAG5);
|
|
78676
78676
|
};
|
|
78677
78677
|
}
|
|
78678
78678
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -78769,23 +78769,23 @@ var require_lodash = __commonJS({
|
|
|
78769
78769
|
});
|
|
78770
78770
|
}
|
|
78771
78771
|
function basePick(object, paths) {
|
|
78772
|
-
return basePickBy(object, paths, function(value,
|
|
78773
|
-
return hasIn2(object,
|
|
78772
|
+
return basePickBy(object, paths, function(value, path10) {
|
|
78773
|
+
return hasIn2(object, path10);
|
|
78774
78774
|
});
|
|
78775
78775
|
}
|
|
78776
78776
|
function basePickBy(object, paths, predicate) {
|
|
78777
78777
|
var index2 = -1, length = paths.length, result2 = {};
|
|
78778
78778
|
while (++index2 < length) {
|
|
78779
|
-
var
|
|
78780
|
-
if (predicate(value,
|
|
78781
|
-
baseSet(result2, castPath2(
|
|
78779
|
+
var path10 = paths[index2], value = baseGet2(object, path10);
|
|
78780
|
+
if (predicate(value, path10)) {
|
|
78781
|
+
baseSet(result2, castPath2(path10, object), value);
|
|
78782
78782
|
}
|
|
78783
78783
|
}
|
|
78784
78784
|
return result2;
|
|
78785
78785
|
}
|
|
78786
|
-
function basePropertyDeep2(
|
|
78786
|
+
function basePropertyDeep2(path10) {
|
|
78787
78787
|
return function(object) {
|
|
78788
|
-
return baseGet2(object,
|
|
78788
|
+
return baseGet2(object, path10);
|
|
78789
78789
|
};
|
|
78790
78790
|
}
|
|
78791
78791
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -78859,14 +78859,14 @@ var require_lodash = __commonJS({
|
|
|
78859
78859
|
var array = values(collection);
|
|
78860
78860
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
78861
78861
|
}
|
|
78862
|
-
function baseSet(object,
|
|
78862
|
+
function baseSet(object, path10, value, customizer) {
|
|
78863
78863
|
if (!isObject2(object)) {
|
|
78864
78864
|
return object;
|
|
78865
78865
|
}
|
|
78866
|
-
|
|
78867
|
-
var index2 = -1, length =
|
|
78866
|
+
path10 = castPath2(path10, object);
|
|
78867
|
+
var index2 = -1, length = path10.length, lastIndex = length - 1, nested = object;
|
|
78868
78868
|
while (nested != null && ++index2 < length) {
|
|
78869
|
-
var key = toKey2(
|
|
78869
|
+
var key = toKey2(path10[index2]), newValue = value;
|
|
78870
78870
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
78871
78871
|
return object;
|
|
78872
78872
|
}
|
|
@@ -78874,7 +78874,7 @@ var require_lodash = __commonJS({
|
|
|
78874
78874
|
var objValue = nested[key];
|
|
78875
78875
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
78876
78876
|
if (newValue === undefined2) {
|
|
78877
|
-
newValue = isObject2(objValue) ? objValue : isIndex2(
|
|
78877
|
+
newValue = isObject2(objValue) ? objValue : isIndex2(path10[index2 + 1]) ? [] : {};
|
|
78878
78878
|
}
|
|
78879
78879
|
}
|
|
78880
78880
|
assignValue(nested, key, newValue);
|
|
@@ -79040,13 +79040,13 @@ var require_lodash = __commonJS({
|
|
|
79040
79040
|
}
|
|
79041
79041
|
return result2;
|
|
79042
79042
|
}
|
|
79043
|
-
function baseUnset(object,
|
|
79044
|
-
|
|
79045
|
-
object = parent(object,
|
|
79046
|
-
return object == null || delete object[toKey2(last(
|
|
79043
|
+
function baseUnset(object, path10) {
|
|
79044
|
+
path10 = castPath2(path10, object);
|
|
79045
|
+
object = parent(object, path10);
|
|
79046
|
+
return object == null || delete object[toKey2(last(path10))];
|
|
79047
79047
|
}
|
|
79048
|
-
function baseUpdate(object,
|
|
79049
|
-
return baseSet(object,
|
|
79048
|
+
function baseUpdate(object, path10, updater, customizer) {
|
|
79049
|
+
return baseSet(object, path10, updater(baseGet2(object, path10)), customizer);
|
|
79050
79050
|
}
|
|
79051
79051
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
79052
79052
|
var length = array.length, index2 = fromRight ? length : -1;
|
|
@@ -79929,11 +79929,11 @@ var require_lodash = __commonJS({
|
|
|
79929
79929
|
var match2 = source.match(reWrapDetails);
|
|
79930
79930
|
return match2 ? match2[1].split(reSplitDetails) : [];
|
|
79931
79931
|
}
|
|
79932
|
-
function hasPath2(object,
|
|
79933
|
-
|
|
79934
|
-
var index2 = -1, length =
|
|
79932
|
+
function hasPath2(object, path10, hasFunc) {
|
|
79933
|
+
path10 = castPath2(path10, object);
|
|
79934
|
+
var index2 = -1, length = path10.length, result2 = false;
|
|
79935
79935
|
while (++index2 < length) {
|
|
79936
|
-
var key = toKey2(
|
|
79936
|
+
var key = toKey2(path10[index2]);
|
|
79937
79937
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
79938
79938
|
break;
|
|
79939
79939
|
}
|
|
@@ -80135,8 +80135,8 @@ var require_lodash = __commonJS({
|
|
|
80135
80135
|
return apply(func, this, otherArgs);
|
|
80136
80136
|
};
|
|
80137
80137
|
}
|
|
80138
|
-
function parent(object,
|
|
80139
|
-
return
|
|
80138
|
+
function parent(object, path10) {
|
|
80139
|
+
return path10.length < 2 ? object : baseGet2(object, baseSlice2(path10, 0, -1));
|
|
80140
80140
|
}
|
|
80141
80141
|
function reorder(array, indexes) {
|
|
80142
80142
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -80771,10 +80771,10 @@ var require_lodash = __commonJS({
|
|
|
80771
80771
|
}
|
|
80772
80772
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
80773
80773
|
}
|
|
80774
|
-
var invokeMap = baseRest(function(collection,
|
|
80775
|
-
var index2 = -1, isFunc = typeof
|
|
80774
|
+
var invokeMap = baseRest(function(collection, path10, args) {
|
|
80775
|
+
var index2 = -1, isFunc = typeof path10 == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
80776
80776
|
baseEach(collection, function(value) {
|
|
80777
|
-
result2[++index2] = isFunc ? apply(
|
|
80777
|
+
result2[++index2] = isFunc ? apply(path10, value, args) : baseInvoke(value, path10, args);
|
|
80778
80778
|
});
|
|
80779
80779
|
return result2;
|
|
80780
80780
|
});
|
|
@@ -81426,15 +81426,15 @@ var require_lodash = __commonJS({
|
|
|
81426
81426
|
function functionsIn(object) {
|
|
81427
81427
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
81428
81428
|
}
|
|
81429
|
-
function get2(object,
|
|
81430
|
-
var result2 = object == null ? undefined2 : baseGet2(object,
|
|
81429
|
+
function get2(object, path10, defaultValue) {
|
|
81430
|
+
var result2 = object == null ? undefined2 : baseGet2(object, path10);
|
|
81431
81431
|
return result2 === undefined2 ? defaultValue : result2;
|
|
81432
81432
|
}
|
|
81433
|
-
function has2(object,
|
|
81434
|
-
return object != null && hasPath2(object,
|
|
81433
|
+
function has2(object, path10) {
|
|
81434
|
+
return object != null && hasPath2(object, path10, baseHas);
|
|
81435
81435
|
}
|
|
81436
|
-
function hasIn2(object,
|
|
81437
|
-
return object != null && hasPath2(object,
|
|
81436
|
+
function hasIn2(object, path10) {
|
|
81437
|
+
return object != null && hasPath2(object, path10, baseHasIn2);
|
|
81438
81438
|
}
|
|
81439
81439
|
var invert2 = createInverter(function(result2, value, key) {
|
|
81440
81440
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -81487,10 +81487,10 @@ var require_lodash = __commonJS({
|
|
|
81487
81487
|
return result2;
|
|
81488
81488
|
}
|
|
81489
81489
|
var isDeep = false;
|
|
81490
|
-
paths = arrayMap2(paths, function(
|
|
81491
|
-
|
|
81492
|
-
isDeep || (isDeep =
|
|
81493
|
-
return
|
|
81490
|
+
paths = arrayMap2(paths, function(path10) {
|
|
81491
|
+
path10 = castPath2(path10, object);
|
|
81492
|
+
isDeep || (isDeep = path10.length > 1);
|
|
81493
|
+
return path10;
|
|
81494
81494
|
});
|
|
81495
81495
|
copyObject(object, getAllKeysIn(object), result2);
|
|
81496
81496
|
if (isDeep) {
|
|
@@ -81516,19 +81516,19 @@ var require_lodash = __commonJS({
|
|
|
81516
81516
|
return [prop];
|
|
81517
81517
|
});
|
|
81518
81518
|
predicate = getIteratee(predicate);
|
|
81519
|
-
return basePickBy(object, props, function(value,
|
|
81520
|
-
return predicate(value,
|
|
81519
|
+
return basePickBy(object, props, function(value, path10) {
|
|
81520
|
+
return predicate(value, path10[0]);
|
|
81521
81521
|
});
|
|
81522
81522
|
}
|
|
81523
|
-
function result(object,
|
|
81524
|
-
|
|
81525
|
-
var index2 = -1, length =
|
|
81523
|
+
function result(object, path10, defaultValue) {
|
|
81524
|
+
path10 = castPath2(path10, object);
|
|
81525
|
+
var index2 = -1, length = path10.length;
|
|
81526
81526
|
if (!length) {
|
|
81527
81527
|
length = 1;
|
|
81528
81528
|
object = undefined2;
|
|
81529
81529
|
}
|
|
81530
81530
|
while (++index2 < length) {
|
|
81531
|
-
var value = object == null ? undefined2 : object[toKey2(
|
|
81531
|
+
var value = object == null ? undefined2 : object[toKey2(path10[index2])];
|
|
81532
81532
|
if (value === undefined2) {
|
|
81533
81533
|
index2 = length;
|
|
81534
81534
|
value = defaultValue;
|
|
@@ -81537,12 +81537,12 @@ var require_lodash = __commonJS({
|
|
|
81537
81537
|
}
|
|
81538
81538
|
return object;
|
|
81539
81539
|
}
|
|
81540
|
-
function set(object,
|
|
81541
|
-
return object == null ? object : baseSet(object,
|
|
81540
|
+
function set(object, path10, value) {
|
|
81541
|
+
return object == null ? object : baseSet(object, path10, value);
|
|
81542
81542
|
}
|
|
81543
|
-
function setWith(object,
|
|
81543
|
+
function setWith(object, path10, value, customizer) {
|
|
81544
81544
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
81545
|
-
return object == null ? object : baseSet(object,
|
|
81545
|
+
return object == null ? object : baseSet(object, path10, value, customizer);
|
|
81546
81546
|
}
|
|
81547
81547
|
var toPairs = createToPairs(keys2);
|
|
81548
81548
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -81564,15 +81564,15 @@ var require_lodash = __commonJS({
|
|
|
81564
81564
|
});
|
|
81565
81565
|
return accumulator;
|
|
81566
81566
|
}
|
|
81567
|
-
function unset(object,
|
|
81568
|
-
return object == null ? true : baseUnset(object,
|
|
81567
|
+
function unset(object, path10) {
|
|
81568
|
+
return object == null ? true : baseUnset(object, path10);
|
|
81569
81569
|
}
|
|
81570
|
-
function update(object,
|
|
81571
|
-
return object == null ? object : baseUpdate(object,
|
|
81570
|
+
function update(object, path10, updater) {
|
|
81571
|
+
return object == null ? object : baseUpdate(object, path10, castFunction(updater));
|
|
81572
81572
|
}
|
|
81573
|
-
function updateWith(object,
|
|
81573
|
+
function updateWith(object, path10, updater, customizer) {
|
|
81574
81574
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
81575
|
-
return object == null ? object : baseUpdate(object,
|
|
81575
|
+
return object == null ? object : baseUpdate(object, path10, castFunction(updater), customizer);
|
|
81576
81576
|
}
|
|
81577
81577
|
function values(object) {
|
|
81578
81578
|
return object == null ? [] : baseValues(object, keys2(object));
|
|
@@ -81953,17 +81953,17 @@ var require_lodash = __commonJS({
|
|
|
81953
81953
|
function matches(source) {
|
|
81954
81954
|
return baseMatches2(baseClone(source, CLONE_DEEP_FLAG));
|
|
81955
81955
|
}
|
|
81956
|
-
function matchesProperty(
|
|
81957
|
-
return baseMatchesProperty2(
|
|
81956
|
+
function matchesProperty(path10, srcValue) {
|
|
81957
|
+
return baseMatchesProperty2(path10, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
81958
81958
|
}
|
|
81959
|
-
var method = baseRest(function(
|
|
81959
|
+
var method = baseRest(function(path10, args) {
|
|
81960
81960
|
return function(object) {
|
|
81961
|
-
return baseInvoke(object,
|
|
81961
|
+
return baseInvoke(object, path10, args);
|
|
81962
81962
|
};
|
|
81963
81963
|
});
|
|
81964
81964
|
var methodOf = baseRest(function(object, args) {
|
|
81965
|
-
return function(
|
|
81966
|
-
return baseInvoke(object,
|
|
81965
|
+
return function(path10) {
|
|
81966
|
+
return baseInvoke(object, path10, args);
|
|
81967
81967
|
};
|
|
81968
81968
|
});
|
|
81969
81969
|
function mixin(object, source, options) {
|
|
@@ -82010,12 +82010,12 @@ var require_lodash = __commonJS({
|
|
|
82010
82010
|
var over = createOver(arrayMap2);
|
|
82011
82011
|
var overEvery = createOver(arrayEvery);
|
|
82012
82012
|
var overSome = createOver(arraySome2);
|
|
82013
|
-
function property2(
|
|
82014
|
-
return isKey2(
|
|
82013
|
+
function property2(path10) {
|
|
82014
|
+
return isKey2(path10) ? baseProperty2(toKey2(path10)) : basePropertyDeep2(path10);
|
|
82015
82015
|
}
|
|
82016
82016
|
function propertyOf(object) {
|
|
82017
|
-
return function(
|
|
82018
|
-
return object == null ? undefined2 : baseGet2(object,
|
|
82017
|
+
return function(path10) {
|
|
82018
|
+
return object == null ? undefined2 : baseGet2(object, path10);
|
|
82019
82019
|
};
|
|
82020
82020
|
}
|
|
82021
82021
|
var range2 = createRange();
|
|
@@ -82468,12 +82468,12 @@ var require_lodash = __commonJS({
|
|
|
82468
82468
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
82469
82469
|
return this.reverse().find(predicate);
|
|
82470
82470
|
};
|
|
82471
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
82472
|
-
if (typeof
|
|
82471
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path10, args) {
|
|
82472
|
+
if (typeof path10 == "function") {
|
|
82473
82473
|
return new LazyWrapper(this);
|
|
82474
82474
|
}
|
|
82475
82475
|
return this.map(function(value) {
|
|
82476
|
-
return baseInvoke(value,
|
|
82476
|
+
return baseInvoke(value, path10, args);
|
|
82477
82477
|
});
|
|
82478
82478
|
});
|
|
82479
82479
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -103869,12 +103869,12 @@ var require_abstract_coder2 = __commonJS({
|
|
|
103869
103869
|
exports2.Result = Result;
|
|
103870
103870
|
function checkResultErrors(result) {
|
|
103871
103871
|
const errors = [];
|
|
103872
|
-
const checkErrors = function(
|
|
103872
|
+
const checkErrors = function(path10, object) {
|
|
103873
103873
|
if (!Array.isArray(object)) {
|
|
103874
103874
|
return;
|
|
103875
103875
|
}
|
|
103876
103876
|
for (let key in object) {
|
|
103877
|
-
const childPath =
|
|
103877
|
+
const childPath = path10.slice();
|
|
103878
103878
|
childPath.push(key);
|
|
103879
103879
|
try {
|
|
103880
103880
|
checkErrors(childPath, object[key]);
|
|
@@ -127314,9 +127314,9 @@ var require_provider_ipcsocket = __commonJS({
|
|
|
127314
127314
|
get socket() {
|
|
127315
127315
|
return this.#socket;
|
|
127316
127316
|
}
|
|
127317
|
-
constructor(
|
|
127317
|
+
constructor(path10, network, options) {
|
|
127318
127318
|
super(network, options);
|
|
127319
|
-
this.#socket = (0, net_1.connect)(
|
|
127319
|
+
this.#socket = (0, net_1.connect)(path10);
|
|
127320
127320
|
this.socket.on("ready", async () => {
|
|
127321
127321
|
try {
|
|
127322
127322
|
await this._start();
|
|
@@ -128627,11 +128627,11 @@ var require_utils10 = __commonJS({
|
|
|
128627
128627
|
function spelunk(object, _path) {
|
|
128628
128628
|
const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
|
|
128629
128629
|
(0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
|
|
128630
|
-
const
|
|
128630
|
+
const path10 = match2[1];
|
|
128631
128631
|
const type = match2[3];
|
|
128632
128632
|
const reqd = match2[4] === "!";
|
|
128633
128633
|
let cur = object;
|
|
128634
|
-
for (const comp of
|
|
128634
|
+
for (const comp of path10.toLowerCase().split(".")) {
|
|
128635
128635
|
if (Array.isArray(cur)) {
|
|
128636
128636
|
if (!comp.match(/^[0-9]+$/)) {
|
|
128637
128637
|
break;
|
|
@@ -128653,7 +128653,7 @@ var require_utils10 = __commonJS({
|
|
|
128653
128653
|
break;
|
|
128654
128654
|
}
|
|
128655
128655
|
}
|
|
128656
|
-
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path",
|
|
128656
|
+
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path10);
|
|
128657
128657
|
if (type && cur != null) {
|
|
128658
128658
|
if (type === "int") {
|
|
128659
128659
|
if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
|
|
@@ -128678,7 +128678,7 @@ var require_utils10 = __commonJS({
|
|
|
128678
128678
|
if (type === typeof cur) {
|
|
128679
128679
|
return cur;
|
|
128680
128680
|
}
|
|
128681
|
-
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path",
|
|
128681
|
+
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path10);
|
|
128682
128682
|
}
|
|
128683
128683
|
return cur;
|
|
128684
128684
|
}
|
|
@@ -128876,7 +128876,7 @@ var require_json_keystore = __commonJS({
|
|
|
128876
128876
|
};
|
|
128877
128877
|
if (account.mnemonic) {
|
|
128878
128878
|
const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
|
|
128879
|
-
const
|
|
128879
|
+
const path10 = account.mnemonic.path || defaultPath;
|
|
128880
128880
|
const locale = account.mnemonic.locale || "en";
|
|
128881
128881
|
const mnemonicKey = key.slice(32, 64);
|
|
128882
128882
|
const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
|
|
@@ -128889,7 +128889,7 @@ var require_json_keystore = __commonJS({
|
|
|
128889
128889
|
data["x-ethers"] = {
|
|
128890
128890
|
client,
|
|
128891
128891
|
gethFilename,
|
|
128892
|
-
path:
|
|
128892
|
+
path: path10,
|
|
128893
128893
|
locale,
|
|
128894
128894
|
mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
|
|
128895
128895
|
mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
|
|
@@ -128974,11 +128974,11 @@ var require_hdwallet = __commonJS({
|
|
|
128974
128974
|
const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
|
|
128975
128975
|
return { IL: I.slice(0, 32), IR: I.slice(32) };
|
|
128976
128976
|
}
|
|
128977
|
-
function derivePath(node,
|
|
128978
|
-
const components =
|
|
128979
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
128977
|
+
function derivePath(node, path10) {
|
|
128978
|
+
const components = path10.split("/");
|
|
128979
|
+
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path10);
|
|
128980
128980
|
if (components[0] === "m") {
|
|
128981
|
-
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path",
|
|
128981
|
+
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path10);
|
|
128982
128982
|
components.shift();
|
|
128983
128983
|
}
|
|
128984
128984
|
let result = node;
|
|
@@ -129048,7 +129048,7 @@ var require_hdwallet = __commonJS({
|
|
|
129048
129048
|
/**
|
|
129049
129049
|
* @private
|
|
129050
129050
|
*/
|
|
129051
|
-
constructor(guard, signingKey, parentFingerprint, chainCode,
|
|
129051
|
+
constructor(guard, signingKey, parentFingerprint, chainCode, path10, index2, depth, mnemonic, provider) {
|
|
129052
129052
|
super(signingKey, provider);
|
|
129053
129053
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
|
|
129054
129054
|
(0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
|
|
@@ -129057,7 +129057,7 @@ var require_hdwallet = __commonJS({
|
|
|
129057
129057
|
parentFingerprint,
|
|
129058
129058
|
fingerprint,
|
|
129059
129059
|
chainCode,
|
|
129060
|
-
path:
|
|
129060
|
+
path: path10,
|
|
129061
129061
|
index: index2,
|
|
129062
129062
|
depth
|
|
129063
129063
|
});
|
|
@@ -129141,22 +129141,22 @@ var require_hdwallet = __commonJS({
|
|
|
129141
129141
|
deriveChild(_index) {
|
|
129142
129142
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
129143
129143
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
129144
|
-
let
|
|
129145
|
-
if (
|
|
129146
|
-
|
|
129144
|
+
let path10 = this.path;
|
|
129145
|
+
if (path10) {
|
|
129146
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
129147
129147
|
if (index2 & HardenedBit) {
|
|
129148
|
-
|
|
129148
|
+
path10 += "'";
|
|
129149
129149
|
}
|
|
129150
129150
|
}
|
|
129151
129151
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
|
|
129152
129152
|
const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
|
|
129153
|
-
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
129153
|
+
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.mnemonic, this.provider);
|
|
129154
129154
|
}
|
|
129155
129155
|
/**
|
|
129156
129156
|
* Return the HDNode for %%path%% from this node.
|
|
129157
129157
|
*/
|
|
129158
|
-
derivePath(
|
|
129159
|
-
return derivePath(this,
|
|
129158
|
+
derivePath(path10) {
|
|
129159
|
+
return derivePath(this, path10);
|
|
129160
129160
|
}
|
|
129161
129161
|
static #fromSeed(_seed, mnemonic) {
|
|
129162
129162
|
(0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
|
|
@@ -129201,43 +129201,43 @@ var require_hdwallet = __commonJS({
|
|
|
129201
129201
|
/**
|
|
129202
129202
|
* Creates a new random HDNode.
|
|
129203
129203
|
*/
|
|
129204
|
-
static createRandom(password,
|
|
129204
|
+
static createRandom(password, path10, wordlist) {
|
|
129205
129205
|
if (password == null) {
|
|
129206
129206
|
password = "";
|
|
129207
129207
|
}
|
|
129208
|
-
if (
|
|
129209
|
-
|
|
129208
|
+
if (path10 == null) {
|
|
129209
|
+
path10 = exports2.defaultPath;
|
|
129210
129210
|
}
|
|
129211
129211
|
if (wordlist == null) {
|
|
129212
129212
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
129213
129213
|
}
|
|
129214
129214
|
const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
|
|
129215
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
129215
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
129216
129216
|
}
|
|
129217
129217
|
/**
|
|
129218
129218
|
* Create an HD Node from %%mnemonic%%.
|
|
129219
129219
|
*/
|
|
129220
|
-
static fromMnemonic(mnemonic,
|
|
129221
|
-
if (!
|
|
129222
|
-
|
|
129220
|
+
static fromMnemonic(mnemonic, path10) {
|
|
129221
|
+
if (!path10) {
|
|
129222
|
+
path10 = exports2.defaultPath;
|
|
129223
129223
|
}
|
|
129224
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
129224
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
129225
129225
|
}
|
|
129226
129226
|
/**
|
|
129227
129227
|
* Creates an HD Node from a mnemonic %%phrase%%.
|
|
129228
129228
|
*/
|
|
129229
|
-
static fromPhrase(phrase, password,
|
|
129229
|
+
static fromPhrase(phrase, password, path10, wordlist) {
|
|
129230
129230
|
if (password == null) {
|
|
129231
129231
|
password = "";
|
|
129232
129232
|
}
|
|
129233
|
-
if (
|
|
129234
|
-
|
|
129233
|
+
if (path10 == null) {
|
|
129234
|
+
path10 = exports2.defaultPath;
|
|
129235
129235
|
}
|
|
129236
129236
|
if (wordlist == null) {
|
|
129237
129237
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
129238
129238
|
}
|
|
129239
129239
|
const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
|
|
129240
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
129240
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
129241
129241
|
}
|
|
129242
129242
|
/**
|
|
129243
129243
|
* Creates an HD Node from a %%seed%%.
|
|
@@ -129290,7 +129290,7 @@ var require_hdwallet = __commonJS({
|
|
|
129290
129290
|
/**
|
|
129291
129291
|
* @private
|
|
129292
129292
|
*/
|
|
129293
|
-
constructor(guard, address, publicKey, parentFingerprint, chainCode,
|
|
129293
|
+
constructor(guard, address, publicKey, parentFingerprint, chainCode, path10, index2, depth, provider) {
|
|
129294
129294
|
super(address, provider);
|
|
129295
129295
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
|
|
129296
129296
|
(0, index_js_4.defineProperties)(this, { publicKey });
|
|
@@ -129300,7 +129300,7 @@ var require_hdwallet = __commonJS({
|
|
|
129300
129300
|
fingerprint,
|
|
129301
129301
|
parentFingerprint,
|
|
129302
129302
|
chainCode,
|
|
129303
|
-
path:
|
|
129303
|
+
path: path10,
|
|
129304
129304
|
index: index2,
|
|
129305
129305
|
depth
|
|
129306
129306
|
});
|
|
@@ -129338,23 +129338,23 @@ var require_hdwallet = __commonJS({
|
|
|
129338
129338
|
deriveChild(_index) {
|
|
129339
129339
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
129340
129340
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
129341
|
-
let
|
|
129342
|
-
if (
|
|
129343
|
-
|
|
129341
|
+
let path10 = this.path;
|
|
129342
|
+
if (path10) {
|
|
129343
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
129344
129344
|
if (index2 & HardenedBit) {
|
|
129345
|
-
|
|
129345
|
+
path10 += "'";
|
|
129346
129346
|
}
|
|
129347
129347
|
}
|
|
129348
129348
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
|
|
129349
129349
|
const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
|
|
129350
129350
|
const address = (0, index_js_3.computeAddress)(Ki);
|
|
129351
|
-
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
129351
|
+
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.provider);
|
|
129352
129352
|
}
|
|
129353
129353
|
/**
|
|
129354
129354
|
* Return the signer for %%path%% from this node.
|
|
129355
129355
|
*/
|
|
129356
|
-
derivePath(
|
|
129357
|
-
return derivePath(this,
|
|
129356
|
+
derivePath(path10) {
|
|
129357
|
+
return derivePath(this, path10);
|
|
129358
129358
|
}
|
|
129359
129359
|
};
|
|
129360
129360
|
exports2.HDNodeVoidWallet = HDNodeVoidWallet;
|
|
@@ -136635,8 +136635,8 @@ var require_req = __commonJS({
|
|
|
136635
136635
|
if (req.originalUrl) {
|
|
136636
136636
|
_req.url = req.originalUrl;
|
|
136637
136637
|
} else {
|
|
136638
|
-
const
|
|
136639
|
-
_req.url = typeof
|
|
136638
|
+
const path10 = req.path;
|
|
136639
|
+
_req.url = typeof path10 === "string" ? path10 : req.url ? req.url.path || req.url : void 0;
|
|
136640
136640
|
}
|
|
136641
136641
|
if (req.query) {
|
|
136642
136642
|
_req.query = req.query;
|
|
@@ -136825,17 +136825,17 @@ var require_parse = __commonJS({
|
|
|
136825
136825
|
const wildcards = [];
|
|
136826
136826
|
var wcLen = 0;
|
|
136827
136827
|
const secret = paths.reduce(function(o, strPath, ix) {
|
|
136828
|
-
var
|
|
136828
|
+
var path10 = strPath.match(rx).map((p) => p.replace(/'|"|`/g, ""));
|
|
136829
136829
|
const leadingBracket = strPath[0] === "[";
|
|
136830
|
-
|
|
136830
|
+
path10 = path10.map((p) => {
|
|
136831
136831
|
if (p[0] === "[") return p.substr(1, p.length - 2);
|
|
136832
136832
|
else return p;
|
|
136833
136833
|
});
|
|
136834
|
-
const star =
|
|
136834
|
+
const star = path10.indexOf("*");
|
|
136835
136835
|
if (star > -1) {
|
|
136836
|
-
const before =
|
|
136836
|
+
const before = path10.slice(0, star);
|
|
136837
136837
|
const beforeStr = before.join(".");
|
|
136838
|
-
const after =
|
|
136838
|
+
const after = path10.slice(star + 1, path10.length);
|
|
136839
136839
|
const nested = after.length > 0;
|
|
136840
136840
|
wcLen++;
|
|
136841
136841
|
wildcards.push({
|
|
@@ -136846,7 +136846,7 @@ var require_parse = __commonJS({
|
|
|
136846
136846
|
});
|
|
136847
136847
|
} else {
|
|
136848
136848
|
o[strPath] = {
|
|
136849
|
-
path:
|
|
136849
|
+
path: path10,
|
|
136850
136850
|
val: void 0,
|
|
136851
136851
|
precensored: false,
|
|
136852
136852
|
circle: "",
|
|
@@ -136892,20 +136892,20 @@ var require_redactor = __commonJS({
|
|
|
136892
136892
|
return redact;
|
|
136893
136893
|
}
|
|
136894
136894
|
function redactTmpl(secret, isCensorFct, censorFctTakesPath) {
|
|
136895
|
-
return Object.keys(secret).map((
|
|
136896
|
-
const { escPath, leadingBracket, path: arrPath } = secret[
|
|
136895
|
+
return Object.keys(secret).map((path10) => {
|
|
136896
|
+
const { escPath, leadingBracket, path: arrPath } = secret[path10];
|
|
136897
136897
|
const skip = leadingBracket ? 1 : 0;
|
|
136898
136898
|
const delim = leadingBracket ? "" : ".";
|
|
136899
136899
|
const hops = [];
|
|
136900
136900
|
var match2;
|
|
136901
|
-
while ((match2 = rx.exec(
|
|
136901
|
+
while ((match2 = rx.exec(path10)) !== null) {
|
|
136902
136902
|
const [, ix] = match2;
|
|
136903
136903
|
const { index: index2, input } = match2;
|
|
136904
136904
|
if (index2 > skip) hops.push(input.substring(0, index2 - (ix ? 0 : 1)));
|
|
136905
136905
|
}
|
|
136906
136906
|
var existence = hops.map((p) => `o${delim}${p}`).join(" && ");
|
|
136907
|
-
if (existence.length === 0) existence += `o${delim}${
|
|
136908
|
-
else existence += ` && o${delim}${
|
|
136907
|
+
if (existence.length === 0) existence += `o${delim}${path10} != null`;
|
|
136908
|
+
else existence += ` && o${delim}${path10} != null`;
|
|
136909
136909
|
const circularDetection = `
|
|
136910
136910
|
switch (true) {
|
|
136911
136911
|
${hops.reverse().map((p) => `
|
|
@@ -136918,12 +136918,12 @@ var require_redactor = __commonJS({
|
|
|
136918
136918
|
const censorArgs = censorFctTakesPath ? `val, ${JSON.stringify(arrPath)}` : `val`;
|
|
136919
136919
|
return `
|
|
136920
136920
|
if (${existence}) {
|
|
136921
|
-
const val = o${delim}${
|
|
136921
|
+
const val = o${delim}${path10}
|
|
136922
136922
|
if (val === censor) {
|
|
136923
136923
|
secret[${escPath}].precensored = true
|
|
136924
136924
|
} else {
|
|
136925
136925
|
secret[${escPath}].val = val
|
|
136926
|
-
o${delim}${
|
|
136926
|
+
o${delim}${path10} = ${isCensorFct ? `censor(${censorArgs})` : "censor"}
|
|
136927
136927
|
${circularDetection}
|
|
136928
136928
|
}
|
|
136929
136929
|
}
|
|
@@ -136975,13 +136975,13 @@ var require_modifiers = __commonJS({
|
|
|
136975
136975
|
target[k] = values[i];
|
|
136976
136976
|
}
|
|
136977
136977
|
}
|
|
136978
|
-
function groupRedact(o,
|
|
136979
|
-
const target = get2(o,
|
|
136978
|
+
function groupRedact(o, path10, censor, isCensorFct, censorFctTakesPath) {
|
|
136979
|
+
const target = get2(o, path10);
|
|
136980
136980
|
if (target == null || typeof target === "string") return { keys: null, values: null, target, flat: true };
|
|
136981
136981
|
const keys2 = Object.keys(target);
|
|
136982
136982
|
const keysLength = keys2.length;
|
|
136983
|
-
const pathLength =
|
|
136984
|
-
const pathWithKey = censorFctTakesPath ? [...
|
|
136983
|
+
const pathLength = path10.length;
|
|
136984
|
+
const pathWithKey = censorFctTakesPath ? [...path10] : void 0;
|
|
136985
136985
|
const values = new Array(keysLength);
|
|
136986
136986
|
for (var i = 0; i < keysLength; i++) {
|
|
136987
136987
|
const key = keys2[i];
|
|
@@ -136999,29 +136999,29 @@ var require_modifiers = __commonJS({
|
|
|
136999
136999
|
}
|
|
137000
137000
|
function nestedRestore(instructions) {
|
|
137001
137001
|
for (let i = 0; i < instructions.length; i++) {
|
|
137002
|
-
const { target, path:
|
|
137002
|
+
const { target, path: path10, value } = instructions[i];
|
|
137003
137003
|
let current = target;
|
|
137004
|
-
for (let i2 =
|
|
137005
|
-
current = current[
|
|
137004
|
+
for (let i2 = path10.length - 1; i2 > 0; i2--) {
|
|
137005
|
+
current = current[path10[i2]];
|
|
137006
137006
|
}
|
|
137007
|
-
current[
|
|
137007
|
+
current[path10[0]] = value;
|
|
137008
137008
|
}
|
|
137009
137009
|
}
|
|
137010
|
-
function nestedRedact(store, o,
|
|
137011
|
-
const target = get2(o,
|
|
137010
|
+
function nestedRedact(store, o, path10, ns, censor, isCensorFct, censorFctTakesPath) {
|
|
137011
|
+
const target = get2(o, path10);
|
|
137012
137012
|
if (target == null) return;
|
|
137013
137013
|
const keys2 = Object.keys(target);
|
|
137014
137014
|
const keysLength = keys2.length;
|
|
137015
137015
|
for (var i = 0; i < keysLength; i++) {
|
|
137016
137016
|
const key = keys2[i];
|
|
137017
|
-
specialSet(store, target, key,
|
|
137017
|
+
specialSet(store, target, key, path10, ns, censor, isCensorFct, censorFctTakesPath);
|
|
137018
137018
|
}
|
|
137019
137019
|
return store;
|
|
137020
137020
|
}
|
|
137021
137021
|
function has2(obj, prop) {
|
|
137022
137022
|
return obj !== void 0 && obj !== null ? "hasOwn" in Object ? Object.hasOwn(obj, prop) : Object.prototype.hasOwnProperty.call(obj, prop) : false;
|
|
137023
137023
|
}
|
|
137024
|
-
function specialSet(store, o, k,
|
|
137024
|
+
function specialSet(store, o, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath) {
|
|
137025
137025
|
const afterPathLen = afterPath.length;
|
|
137026
137026
|
const lastPathIndex = afterPathLen - 1;
|
|
137027
137027
|
const originalKey = k;
|
|
@@ -137064,7 +137064,7 @@ var require_modifiers = __commonJS({
|
|
|
137064
137064
|
if (consecutive) {
|
|
137065
137065
|
redactPathCurrent = node(redactPathCurrent, wck, depth);
|
|
137066
137066
|
level = i;
|
|
137067
|
-
ov = iterateNthLevel(wcov, level - 1, k,
|
|
137067
|
+
ov = iterateNthLevel(wcov, level - 1, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
|
|
137068
137068
|
} else {
|
|
137069
137069
|
if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
|
|
137070
137070
|
if (kIsWc) {
|
|
@@ -137072,7 +137072,7 @@ var require_modifiers = __commonJS({
|
|
|
137072
137072
|
} else {
|
|
137073
137073
|
ov = wcov[k];
|
|
137074
137074
|
}
|
|
137075
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...
|
|
137075
|
+
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path10, originalKey, ...afterPath]) : censor(ov) : censor;
|
|
137076
137076
|
if (kIsWc) {
|
|
137077
137077
|
const rv = restoreInstr(node(redactPathCurrent, wck, depth), ov, o[originalKey]);
|
|
137078
137078
|
store.push(rv);
|
|
@@ -137095,7 +137095,7 @@ var require_modifiers = __commonJS({
|
|
|
137095
137095
|
} else {
|
|
137096
137096
|
ov = n[k];
|
|
137097
137097
|
redactPathCurrent = node(redactPathCurrent, k, depth);
|
|
137098
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...
|
|
137098
|
+
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path10, originalKey, ...afterPath]) : censor(ov) : censor;
|
|
137099
137099
|
if (has2(n, k) && nv === ov || nv === void 0 && censor !== void 0) {
|
|
137100
137100
|
} else {
|
|
137101
137101
|
const rv = restoreInstr(redactPathCurrent, ov, o[originalKey]);
|
|
@@ -137118,7 +137118,7 @@ var require_modifiers = __commonJS({
|
|
|
137118
137118
|
}
|
|
137119
137119
|
return n;
|
|
137120
137120
|
}
|
|
137121
|
-
function iterateNthLevel(wcov, level, k,
|
|
137121
|
+
function iterateNthLevel(wcov, level, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
|
|
137122
137122
|
if (level === 0) {
|
|
137123
137123
|
if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
|
|
137124
137124
|
if (kIsWc) {
|
|
@@ -137126,7 +137126,7 @@ var require_modifiers = __commonJS({
|
|
|
137126
137126
|
} else {
|
|
137127
137127
|
ov = wcov[k];
|
|
137128
137128
|
}
|
|
137129
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...
|
|
137129
|
+
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path10, originalKey, ...afterPath]) : censor(ov) : censor;
|
|
137130
137130
|
if (kIsWc) {
|
|
137131
137131
|
const rv = restoreInstr(redactPathCurrent, ov, parent);
|
|
137132
137132
|
store.push(rv);
|
|
@@ -137145,7 +137145,7 @@ var require_modifiers = __commonJS({
|
|
|
137145
137145
|
for (const key in wcov) {
|
|
137146
137146
|
if (typeof wcov[key] === "object") {
|
|
137147
137147
|
redactPathCurrent = node(redactPathCurrent, key, depth);
|
|
137148
|
-
iterateNthLevel(wcov[key], level - 1, k,
|
|
137148
|
+
iterateNthLevel(wcov[key], level - 1, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
|
|
137149
137149
|
}
|
|
137150
137150
|
}
|
|
137151
137151
|
}
|
|
@@ -137167,12 +137167,12 @@ var require_modifiers = __commonJS({
|
|
|
137167
137167
|
}
|
|
137168
137168
|
function restoreInstr(node2, value, target) {
|
|
137169
137169
|
let current = node2;
|
|
137170
|
-
const
|
|
137170
|
+
const path10 = [];
|
|
137171
137171
|
do {
|
|
137172
|
-
|
|
137172
|
+
path10.push(current.key);
|
|
137173
137173
|
current = current.parent;
|
|
137174
137174
|
} while (current.parent != null);
|
|
137175
|
-
return { path:
|
|
137175
|
+
return { path: path10, value, target };
|
|
137176
137176
|
}
|
|
137177
137177
|
}
|
|
137178
137178
|
});
|
|
@@ -137202,10 +137202,10 @@ var require_restorer = __commonJS({
|
|
|
137202
137202
|
};
|
|
137203
137203
|
}
|
|
137204
137204
|
function resetTmpl(secret, paths) {
|
|
137205
|
-
return paths.map((
|
|
137206
|
-
const { circle, escPath, leadingBracket } = secret[
|
|
137205
|
+
return paths.map((path10) => {
|
|
137206
|
+
const { circle, escPath, leadingBracket } = secret[path10];
|
|
137207
137207
|
const delim = leadingBracket ? "" : ".";
|
|
137208
|
-
const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${
|
|
137208
|
+
const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${path10} = secret[${escPath}].val`;
|
|
137209
137209
|
const clear = `secret[${escPath}].val = undefined`;
|
|
137210
137210
|
return `
|
|
137211
137211
|
if (secret[${escPath}].val !== undefined) {
|
|
@@ -137437,8 +137437,8 @@ var require_redaction = __commonJS({
|
|
|
137437
137437
|
if (shape[k] === null) {
|
|
137438
137438
|
o[k] = (value) => topCensor(value, [k]);
|
|
137439
137439
|
} else {
|
|
137440
|
-
const wrappedCensor = typeof censor === "function" ? (value,
|
|
137441
|
-
return censor(value, [k, ...
|
|
137440
|
+
const wrappedCensor = typeof censor === "function" ? (value, path10) => {
|
|
137441
|
+
return censor(value, [k, ...path10]);
|
|
137442
137442
|
} : censor;
|
|
137443
137443
|
o[k] = fastRedact({
|
|
137444
137444
|
paths: shape[k],
|
|
@@ -137641,7 +137641,7 @@ var require_sonic_boom = __commonJS({
|
|
|
137641
137641
|
var fs3 = __require("fs");
|
|
137642
137642
|
var EventEmitter = __require("events");
|
|
137643
137643
|
var inherits = __require("util").inherits;
|
|
137644
|
-
var
|
|
137644
|
+
var path10 = __require("path");
|
|
137645
137645
|
var sleep2 = require_atomic_sleep();
|
|
137646
137646
|
var assert3 = __require("assert");
|
|
137647
137647
|
var BUSY_WRITE_TIMEOUT = 100;
|
|
@@ -137695,7 +137695,7 @@ var require_sonic_boom = __commonJS({
|
|
|
137695
137695
|
const mode = sonic2.mode;
|
|
137696
137696
|
if (sonic2.sync) {
|
|
137697
137697
|
try {
|
|
137698
|
-
if (sonic2.mkdir) fs3.mkdirSync(
|
|
137698
|
+
if (sonic2.mkdir) fs3.mkdirSync(path10.dirname(file), { recursive: true });
|
|
137699
137699
|
const fd = fs3.openSync(file, flags, mode);
|
|
137700
137700
|
fileOpened(null, fd);
|
|
137701
137701
|
} catch (err) {
|
|
@@ -137703,7 +137703,7 @@ var require_sonic_boom = __commonJS({
|
|
|
137703
137703
|
throw err;
|
|
137704
137704
|
}
|
|
137705
137705
|
} else if (sonic2.mkdir) {
|
|
137706
|
-
fs3.mkdir(
|
|
137706
|
+
fs3.mkdir(path10.dirname(file), { recursive: true }, (err) => {
|
|
137707
137707
|
if (err) return fileOpened(err);
|
|
137708
137708
|
fs3.open(file, flags, mode, fileOpened);
|
|
137709
137709
|
});
|
|
@@ -137715,7 +137715,7 @@ var require_sonic_boom = __commonJS({
|
|
|
137715
137715
|
if (!(this instanceof SonicBoom)) {
|
|
137716
137716
|
return new SonicBoom(opts);
|
|
137717
137717
|
}
|
|
137718
|
-
let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir:
|
|
137718
|
+
let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir: mkdir3, retryEAGAIN, fsync, contentMode, mode } = opts || {};
|
|
137719
137719
|
fd = fd || dest;
|
|
137720
137720
|
this._len = 0;
|
|
137721
137721
|
this.fd = -1;
|
|
@@ -137740,7 +137740,7 @@ var require_sonic_boom = __commonJS({
|
|
|
137740
137740
|
this.append = append || false;
|
|
137741
137741
|
this.mode = mode;
|
|
137742
137742
|
this.retryEAGAIN = retryEAGAIN || (() => true);
|
|
137743
|
-
this.mkdir =
|
|
137743
|
+
this.mkdir = mkdir3 || false;
|
|
137744
137744
|
let fsWriteSync;
|
|
137745
137745
|
let fsWrite;
|
|
137746
137746
|
if (contentMode === kContentModeBuffer) {
|
|
@@ -145136,11 +145136,11 @@ var require_soljson = __commonJS({
|
|
|
145136
145136
|
var ENVIRONMENT_IS_WORKER = typeof importScripts == "function";
|
|
145137
145137
|
var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string";
|
|
145138
145138
|
var scriptDirectory = "";
|
|
145139
|
-
function locateFile(
|
|
145139
|
+
function locateFile(path10) {
|
|
145140
145140
|
if (Module["locateFile"]) {
|
|
145141
|
-
return Module["locateFile"](
|
|
145141
|
+
return Module["locateFile"](path10, scriptDirectory);
|
|
145142
145142
|
}
|
|
145143
|
-
return scriptDirectory +
|
|
145143
|
+
return scriptDirectory + path10;
|
|
145144
145144
|
}
|
|
145145
145145
|
var read_;
|
|
145146
145146
|
var readAsync;
|
|
@@ -145931,7 +145931,7 @@ var require_soljson = __commonJS({
|
|
|
145931
145931
|
var ret = UTF8ToString(ptr);
|
|
145932
145932
|
return ret;
|
|
145933
145933
|
} };
|
|
145934
|
-
function ___syscall_faccessat(dirfd,
|
|
145934
|
+
function ___syscall_faccessat(dirfd, path10, amode, flags) {
|
|
145935
145935
|
}
|
|
145936
145936
|
function ___syscall_fcntl64(fd, cmd, varargs) {
|
|
145937
145937
|
SYSCALLS.varargs = varargs;
|
|
@@ -145941,10 +145941,10 @@ var require_soljson = __commonJS({
|
|
|
145941
145941
|
SYSCALLS.varargs = varargs;
|
|
145942
145942
|
return 0;
|
|
145943
145943
|
}
|
|
145944
|
-
function ___syscall_openat(dirfd,
|
|
145944
|
+
function ___syscall_openat(dirfd, path10, flags, varargs) {
|
|
145945
145945
|
SYSCALLS.varargs = varargs;
|
|
145946
145946
|
}
|
|
145947
|
-
function ___syscall_stat64(
|
|
145947
|
+
function ___syscall_stat64(path10, buf) {
|
|
145948
145948
|
}
|
|
145949
145949
|
function __emscripten_date_now() {
|
|
145950
145950
|
return Date.now();
|
|
@@ -147880,9 +147880,9 @@ var require_filesystem = __commonJS({
|
|
|
147880
147880
|
"use strict";
|
|
147881
147881
|
var fs3 = __require("fs");
|
|
147882
147882
|
var LDD_PATH = "/usr/bin/ldd";
|
|
147883
|
-
var readFileSync = (
|
|
147884
|
-
var
|
|
147885
|
-
fs3.readFile(
|
|
147883
|
+
var readFileSync = (path10) => fs3.readFileSync(path10, "utf-8");
|
|
147884
|
+
var readFile10 = (path10) => new Promise((resolve2, reject) => {
|
|
147885
|
+
fs3.readFile(path10, "utf-8", (err, data) => {
|
|
147886
147886
|
if (err) {
|
|
147887
147887
|
reject(err);
|
|
147888
147888
|
} else {
|
|
@@ -147893,7 +147893,7 @@ var require_filesystem = __commonJS({
|
|
|
147893
147893
|
module2.exports = {
|
|
147894
147894
|
LDD_PATH,
|
|
147895
147895
|
readFileSync,
|
|
147896
|
-
readFile:
|
|
147896
|
+
readFile: readFile10
|
|
147897
147897
|
};
|
|
147898
147898
|
}
|
|
147899
147899
|
});
|
|
@@ -147904,7 +147904,7 @@ var require_detect_libc = __commonJS({
|
|
|
147904
147904
|
"use strict";
|
|
147905
147905
|
var childProcess = __require("child_process");
|
|
147906
147906
|
var { isLinux, getReport } = require_process();
|
|
147907
|
-
var { LDD_PATH, readFile:
|
|
147907
|
+
var { LDD_PATH, readFile: readFile10, readFileSync } = require_filesystem();
|
|
147908
147908
|
var cachedFamilyFilesystem;
|
|
147909
147909
|
var cachedVersionFilesystem;
|
|
147910
147910
|
var command = "getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true";
|
|
@@ -147971,7 +147971,7 @@ var require_detect_libc = __commonJS({
|
|
|
147971
147971
|
}
|
|
147972
147972
|
cachedFamilyFilesystem = null;
|
|
147973
147973
|
try {
|
|
147974
|
-
const lddContent = await
|
|
147974
|
+
const lddContent = await readFile10(LDD_PATH);
|
|
147975
147975
|
cachedFamilyFilesystem = getFamilyFromLddContent(lddContent);
|
|
147976
147976
|
} catch (e) {
|
|
147977
147977
|
}
|
|
@@ -148025,7 +148025,7 @@ var require_detect_libc = __commonJS({
|
|
|
148025
148025
|
}
|
|
148026
148026
|
cachedVersionFilesystem = null;
|
|
148027
148027
|
try {
|
|
148028
|
-
const lddContent = await
|
|
148028
|
+
const lddContent = await readFile10(LDD_PATH);
|
|
148029
148029
|
const versionMatch = lddContent.match(RE_GLIBC_VERSION);
|
|
148030
148030
|
if (versionMatch) {
|
|
148031
148031
|
cachedVersionFilesystem = versionMatch[1];
|
|
@@ -148112,7 +148112,7 @@ var require_detect_libc = __commonJS({
|
|
|
148112
148112
|
var require_node_gyp_build_optional_packages = __commonJS({
|
|
148113
148113
|
"../../node_modules/node-gyp-build-optional-packages/index.js"(exports2, module2) {
|
|
148114
148114
|
var fs3 = __require("fs");
|
|
148115
|
-
var
|
|
148115
|
+
var path10 = __require("path");
|
|
148116
148116
|
var url = __require("url");
|
|
148117
148117
|
var vars = process.config && process.config.variables || {};
|
|
148118
148118
|
var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
|
|
@@ -148135,30 +148135,30 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
148135
148135
|
return __require(load.path(dir));
|
|
148136
148136
|
}
|
|
148137
148137
|
load.path = function(dir) {
|
|
148138
|
-
dir =
|
|
148138
|
+
dir = path10.resolve(dir || ".");
|
|
148139
148139
|
var packageName = "";
|
|
148140
148140
|
try {
|
|
148141
148141
|
if (typeof __webpack_require__ === "function")
|
|
148142
|
-
packageName = __non_webpack_require__(
|
|
148142
|
+
packageName = __non_webpack_require__(path10.join(dir, "package.json")).name;
|
|
148143
148143
|
else
|
|
148144
|
-
packageName = __require(
|
|
148144
|
+
packageName = __require(path10.join(dir, "package.json")).name;
|
|
148145
148145
|
var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
|
|
148146
148146
|
if (process.env[varName]) dir = process.env[varName];
|
|
148147
148147
|
} catch (err) {
|
|
148148
148148
|
}
|
|
148149
148149
|
if (!prebuildsOnly) {
|
|
148150
|
-
var release = getFirst(
|
|
148150
|
+
var release = getFirst(path10.join(dir, "build/Release"), matchBuild);
|
|
148151
148151
|
if (release) return release;
|
|
148152
|
-
var debug = getFirst(
|
|
148152
|
+
var debug = getFirst(path10.join(dir, "build/Debug"), matchBuild);
|
|
148153
148153
|
if (debug) return debug;
|
|
148154
148154
|
}
|
|
148155
148155
|
var prebuild = resolve2(dir);
|
|
148156
148156
|
if (prebuild) return prebuild;
|
|
148157
|
-
var nearby = resolve2(
|
|
148157
|
+
var nearby = resolve2(path10.dirname(process.execPath));
|
|
148158
148158
|
if (nearby) return nearby;
|
|
148159
148159
|
var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
|
|
148160
148160
|
try {
|
|
148161
|
-
var prebuildPackage =
|
|
148161
|
+
var prebuildPackage = path10.dirname(__require("module").createRequire(url.pathToFileURL(path10.join(dir, "package.json"))).resolve(platformPackage));
|
|
148162
148162
|
return resolveFile(prebuildPackage);
|
|
148163
148163
|
} catch (error) {
|
|
148164
148164
|
}
|
|
@@ -148177,16 +148177,16 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
148177
148177
|
].filter(Boolean).join(" ");
|
|
148178
148178
|
throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
|
|
148179
148179
|
function resolve2(dir2) {
|
|
148180
|
-
var tuples = readdirSync(
|
|
148180
|
+
var tuples = readdirSync(path10.join(dir2, "prebuilds")).map(parseTuple);
|
|
148181
148181
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
148182
148182
|
if (!tuple) return;
|
|
148183
|
-
return resolveFile(
|
|
148183
|
+
return resolveFile(path10.join(dir2, "prebuilds", tuple.name));
|
|
148184
148184
|
}
|
|
148185
148185
|
function resolveFile(prebuilds) {
|
|
148186
148186
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
148187
148187
|
var candidates = parsed.filter(matchTags(runtime, abi50));
|
|
148188
148188
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
148189
|
-
if (winner) return
|
|
148189
|
+
if (winner) return path10.join(prebuilds, winner.file);
|
|
148190
148190
|
}
|
|
148191
148191
|
};
|
|
148192
148192
|
function readdirSync(dir) {
|
|
@@ -148198,7 +148198,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
148198
148198
|
}
|
|
148199
148199
|
function getFirst(dir, filter) {
|
|
148200
148200
|
var files = readdirSync(dir).filter(filter);
|
|
148201
|
-
return files[0] &&
|
|
148201
|
+
return files[0] && path10.join(dir, files[0]);
|
|
148202
148202
|
}
|
|
148203
148203
|
function matchBuild(name) {
|
|
148204
148204
|
return /\.node$/.test(name);
|
|
@@ -151950,14 +151950,14 @@ var require_url_state_machine = __commonJS({
|
|
|
151950
151950
|
return url.replace(/\u0009|\u000A|\u000D/g, "");
|
|
151951
151951
|
}
|
|
151952
151952
|
function shortenPath(url) {
|
|
151953
|
-
const
|
|
151954
|
-
if (
|
|
151953
|
+
const path10 = url.path;
|
|
151954
|
+
if (path10.length === 0) {
|
|
151955
151955
|
return;
|
|
151956
151956
|
}
|
|
151957
|
-
if (url.scheme === "file" &&
|
|
151957
|
+
if (url.scheme === "file" && path10.length === 1 && isNormalizedWindowsDriveLetter(path10[0])) {
|
|
151958
151958
|
return;
|
|
151959
151959
|
}
|
|
151960
|
-
|
|
151960
|
+
path10.pop();
|
|
151961
151961
|
}
|
|
151962
151962
|
function includesCredentials(url) {
|
|
151963
151963
|
return url.username !== "" || url.password !== "";
|
|
@@ -190199,10 +190199,10 @@ var require_createWalletClient = __commonJS({
|
|
|
190199
190199
|
"../../node_modules/viem/_cjs/clients/createWalletClient.js"(exports2) {
|
|
190200
190200
|
"use strict";
|
|
190201
190201
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
190202
|
-
exports2.createWalletClient =
|
|
190202
|
+
exports2.createWalletClient = createWalletClient;
|
|
190203
190203
|
var createClient_js_1 = require_createClient();
|
|
190204
190204
|
var wallet_js_1 = require_wallet3();
|
|
190205
|
-
function
|
|
190205
|
+
function createWalletClient(parameters) {
|
|
190206
190206
|
const { key = "wallet", name = "Wallet Client", transport } = parameters;
|
|
190207
190207
|
const client = (0, createClient_js_1.createClient)({
|
|
190208
190208
|
...parameters,
|
|
@@ -190595,9 +190595,9 @@ var require_setupKzg = __commonJS({
|
|
|
190595
190595
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
190596
190596
|
exports2.setupKzg = setupKzg;
|
|
190597
190597
|
var defineKzg_js_1 = require_defineKzg();
|
|
190598
|
-
function setupKzg(parameters,
|
|
190598
|
+
function setupKzg(parameters, path10) {
|
|
190599
190599
|
try {
|
|
190600
|
-
parameters.loadTrustedSetup(
|
|
190600
|
+
parameters.loadTrustedSetup(path10);
|
|
190601
190601
|
} catch (e) {
|
|
190602
190602
|
const error = e;
|
|
190603
190603
|
if (!error.message.includes("trusted setup is already loaded"))
|
|
@@ -242106,13 +242106,13 @@ function __disposeResources(env2) {
|
|
|
242106
242106
|
}
|
|
242107
242107
|
return next();
|
|
242108
242108
|
}
|
|
242109
|
-
function __rewriteRelativeImportExtension(
|
|
242110
|
-
if (typeof
|
|
242111
|
-
return
|
|
242109
|
+
function __rewriteRelativeImportExtension(path10, preserveJsx) {
|
|
242110
|
+
if (typeof path10 === "string" && /^\.\.?\//.test(path10)) {
|
|
242111
|
+
return path10.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
242112
242112
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
242113
242113
|
});
|
|
242114
242114
|
}
|
|
242115
|
-
return
|
|
242115
|
+
return path10;
|
|
242116
242116
|
}
|
|
242117
242117
|
var extendStatics2, __assign2, __createBinding2, __setModuleDefault2, ownKeys, _SuppressedError, tslib_es6_default;
|
|
242118
242118
|
var init_tslib_es62 = __esm({
|
|
@@ -248062,14 +248062,14 @@ var require_lib41 = __commonJS({
|
|
|
248062
248062
|
}
|
|
248063
248063
|
this.pubHash = hash160(this.pubKey);
|
|
248064
248064
|
}
|
|
248065
|
-
derive(
|
|
248066
|
-
if (!/^[mM]'?/.test(
|
|
248065
|
+
derive(path10) {
|
|
248066
|
+
if (!/^[mM]'?/.test(path10)) {
|
|
248067
248067
|
throw new Error('Path must start with "m" or "M"');
|
|
248068
248068
|
}
|
|
248069
|
-
if (/^[mM]'?$/.test(
|
|
248069
|
+
if (/^[mM]'?$/.test(path10)) {
|
|
248070
248070
|
return this;
|
|
248071
248071
|
}
|
|
248072
|
-
const parts =
|
|
248072
|
+
const parts = path10.replace(/^[mM]'?\//, "").split("/");
|
|
248073
248073
|
let child = this;
|
|
248074
248074
|
for (const c of parts) {
|
|
248075
248075
|
const m = /^(\d+)('?)$/.exec(c);
|
|
@@ -269190,8 +269190,8 @@ var require_hdKeyToAccount = __commonJS({
|
|
|
269190
269190
|
exports2.hdKeyToAccount = hdKeyToAccount;
|
|
269191
269191
|
var toHex_js_1 = require_toHex();
|
|
269192
269192
|
var privateKeyToAccount_js_1 = require_privateKeyToAccount();
|
|
269193
|
-
function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path:
|
|
269194
|
-
const hdKey = hdKey_.derive(
|
|
269193
|
+
function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path: path10, ...options } = {}) {
|
|
269194
|
+
const hdKey = hdKey_.derive(path10 || `m/44'/60'/${accountIndex}'/${changeIndex}/${addressIndex}`);
|
|
269195
269195
|
const account = (0, privateKeyToAccount_js_1.privateKeyToAccount)((0, toHex_js_1.toHex)(hdKey.privateKey), options);
|
|
269196
269196
|
return {
|
|
269197
269197
|
...account,
|
|
@@ -276494,12 +276494,12 @@ var require_abstract_coder3 = __commonJS({
|
|
|
276494
276494
|
exports2.Result = Result;
|
|
276495
276495
|
function checkResultErrors(result) {
|
|
276496
276496
|
const errors = [];
|
|
276497
|
-
const checkErrors = function(
|
|
276497
|
+
const checkErrors = function(path10, object) {
|
|
276498
276498
|
if (!Array.isArray(object)) {
|
|
276499
276499
|
return;
|
|
276500
276500
|
}
|
|
276501
276501
|
for (let key in object) {
|
|
276502
|
-
const childPath =
|
|
276502
|
+
const childPath = path10.slice();
|
|
276503
276503
|
childPath.push(key);
|
|
276504
276504
|
try {
|
|
276505
276505
|
checkErrors(childPath, object[key]);
|
|
@@ -299203,9 +299203,9 @@ var require_provider_ipcsocket2 = __commonJS({
|
|
|
299203
299203
|
get socket() {
|
|
299204
299204
|
return this.#socket;
|
|
299205
299205
|
}
|
|
299206
|
-
constructor(
|
|
299206
|
+
constructor(path10, network, options) {
|
|
299207
299207
|
super(network, options);
|
|
299208
|
-
this.#socket = (0, net_1.connect)(
|
|
299208
|
+
this.#socket = (0, net_1.connect)(path10);
|
|
299209
299209
|
this.socket.on("ready", async () => {
|
|
299210
299210
|
try {
|
|
299211
299211
|
await this._start();
|
|
@@ -299895,11 +299895,11 @@ var require_utils34 = __commonJS({
|
|
|
299895
299895
|
function spelunk(object, _path) {
|
|
299896
299896
|
const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
|
|
299897
299897
|
(0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
|
|
299898
|
-
const
|
|
299898
|
+
const path10 = match2[1];
|
|
299899
299899
|
const type = match2[3];
|
|
299900
299900
|
const reqd = match2[4] === "!";
|
|
299901
299901
|
let cur = object;
|
|
299902
|
-
for (const comp of
|
|
299902
|
+
for (const comp of path10.toLowerCase().split(".")) {
|
|
299903
299903
|
if (Array.isArray(cur)) {
|
|
299904
299904
|
if (!comp.match(/^[0-9]+$/)) {
|
|
299905
299905
|
break;
|
|
@@ -299921,7 +299921,7 @@ var require_utils34 = __commonJS({
|
|
|
299921
299921
|
break;
|
|
299922
299922
|
}
|
|
299923
299923
|
}
|
|
299924
|
-
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path",
|
|
299924
|
+
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path10);
|
|
299925
299925
|
if (type && cur != null) {
|
|
299926
299926
|
if (type === "int") {
|
|
299927
299927
|
if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
|
|
@@ -299946,7 +299946,7 @@ var require_utils34 = __commonJS({
|
|
|
299946
299946
|
if (type === typeof cur) {
|
|
299947
299947
|
return cur;
|
|
299948
299948
|
}
|
|
299949
|
-
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path",
|
|
299949
|
+
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path10);
|
|
299950
299950
|
}
|
|
299951
299951
|
return cur;
|
|
299952
299952
|
}
|
|
@@ -300144,7 +300144,7 @@ var require_json_keystore2 = __commonJS({
|
|
|
300144
300144
|
};
|
|
300145
300145
|
if (account.mnemonic) {
|
|
300146
300146
|
const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
|
|
300147
|
-
const
|
|
300147
|
+
const path10 = account.mnemonic.path || defaultPath;
|
|
300148
300148
|
const locale = account.mnemonic.locale || "en";
|
|
300149
300149
|
const mnemonicKey = key.slice(32, 64);
|
|
300150
300150
|
const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
|
|
@@ -300157,7 +300157,7 @@ var require_json_keystore2 = __commonJS({
|
|
|
300157
300157
|
data["x-ethers"] = {
|
|
300158
300158
|
client,
|
|
300159
300159
|
gethFilename,
|
|
300160
|
-
path:
|
|
300160
|
+
path: path10,
|
|
300161
300161
|
locale,
|
|
300162
300162
|
mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
|
|
300163
300163
|
mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
|
|
@@ -300242,11 +300242,11 @@ var require_hdwallet2 = __commonJS({
|
|
|
300242
300242
|
const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
|
|
300243
300243
|
return { IL: I.slice(0, 32), IR: I.slice(32) };
|
|
300244
300244
|
}
|
|
300245
|
-
function derivePath(node,
|
|
300246
|
-
const components =
|
|
300247
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
300245
|
+
function derivePath(node, path10) {
|
|
300246
|
+
const components = path10.split("/");
|
|
300247
|
+
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path10);
|
|
300248
300248
|
if (components[0] === "m") {
|
|
300249
|
-
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path",
|
|
300249
|
+
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path10);
|
|
300250
300250
|
components.shift();
|
|
300251
300251
|
}
|
|
300252
300252
|
let result = node;
|
|
@@ -300316,7 +300316,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
300316
300316
|
/**
|
|
300317
300317
|
* @private
|
|
300318
300318
|
*/
|
|
300319
|
-
constructor(guard, signingKey, parentFingerprint, chainCode,
|
|
300319
|
+
constructor(guard, signingKey, parentFingerprint, chainCode, path10, index2, depth, mnemonic, provider) {
|
|
300320
300320
|
super(signingKey, provider);
|
|
300321
300321
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
|
|
300322
300322
|
(0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
|
|
@@ -300325,7 +300325,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
300325
300325
|
parentFingerprint,
|
|
300326
300326
|
fingerprint,
|
|
300327
300327
|
chainCode,
|
|
300328
|
-
path:
|
|
300328
|
+
path: path10,
|
|
300329
300329
|
index: index2,
|
|
300330
300330
|
depth
|
|
300331
300331
|
});
|
|
@@ -300409,22 +300409,22 @@ var require_hdwallet2 = __commonJS({
|
|
|
300409
300409
|
deriveChild(_index) {
|
|
300410
300410
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
300411
300411
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
300412
|
-
let
|
|
300413
|
-
if (
|
|
300414
|
-
|
|
300412
|
+
let path10 = this.path;
|
|
300413
|
+
if (path10) {
|
|
300414
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
300415
300415
|
if (index2 & HardenedBit) {
|
|
300416
|
-
|
|
300416
|
+
path10 += "'";
|
|
300417
300417
|
}
|
|
300418
300418
|
}
|
|
300419
300419
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
|
|
300420
300420
|
const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
|
|
300421
|
-
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
300421
|
+
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.mnemonic, this.provider);
|
|
300422
300422
|
}
|
|
300423
300423
|
/**
|
|
300424
300424
|
* Return the HDNode for %%path%% from this node.
|
|
300425
300425
|
*/
|
|
300426
|
-
derivePath(
|
|
300427
|
-
return derivePath(this,
|
|
300426
|
+
derivePath(path10) {
|
|
300427
|
+
return derivePath(this, path10);
|
|
300428
300428
|
}
|
|
300429
300429
|
static #fromSeed(_seed, mnemonic) {
|
|
300430
300430
|
(0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
|
|
@@ -300469,43 +300469,43 @@ var require_hdwallet2 = __commonJS({
|
|
|
300469
300469
|
/**
|
|
300470
300470
|
* Creates a new random HDNode.
|
|
300471
300471
|
*/
|
|
300472
|
-
static createRandom(password,
|
|
300472
|
+
static createRandom(password, path10, wordlist) {
|
|
300473
300473
|
if (password == null) {
|
|
300474
300474
|
password = "";
|
|
300475
300475
|
}
|
|
300476
|
-
if (
|
|
300477
|
-
|
|
300476
|
+
if (path10 == null) {
|
|
300477
|
+
path10 = exports2.defaultPath;
|
|
300478
300478
|
}
|
|
300479
300479
|
if (wordlist == null) {
|
|
300480
300480
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
300481
300481
|
}
|
|
300482
300482
|
const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
|
|
300483
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
300483
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
300484
300484
|
}
|
|
300485
300485
|
/**
|
|
300486
300486
|
* Create an HD Node from %%mnemonic%%.
|
|
300487
300487
|
*/
|
|
300488
|
-
static fromMnemonic(mnemonic,
|
|
300489
|
-
if (!
|
|
300490
|
-
|
|
300488
|
+
static fromMnemonic(mnemonic, path10) {
|
|
300489
|
+
if (!path10) {
|
|
300490
|
+
path10 = exports2.defaultPath;
|
|
300491
300491
|
}
|
|
300492
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
300492
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
300493
300493
|
}
|
|
300494
300494
|
/**
|
|
300495
300495
|
* Creates an HD Node from a mnemonic %%phrase%%.
|
|
300496
300496
|
*/
|
|
300497
|
-
static fromPhrase(phrase, password,
|
|
300497
|
+
static fromPhrase(phrase, password, path10, wordlist) {
|
|
300498
300498
|
if (password == null) {
|
|
300499
300499
|
password = "";
|
|
300500
300500
|
}
|
|
300501
|
-
if (
|
|
300502
|
-
|
|
300501
|
+
if (path10 == null) {
|
|
300502
|
+
path10 = exports2.defaultPath;
|
|
300503
300503
|
}
|
|
300504
300504
|
if (wordlist == null) {
|
|
300505
300505
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
300506
300506
|
}
|
|
300507
300507
|
const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
|
|
300508
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
300508
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
300509
300509
|
}
|
|
300510
300510
|
/**
|
|
300511
300511
|
* Creates an HD Node from a %%seed%%.
|
|
@@ -300558,7 +300558,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
300558
300558
|
/**
|
|
300559
300559
|
* @private
|
|
300560
300560
|
*/
|
|
300561
|
-
constructor(guard, address, publicKey, parentFingerprint, chainCode,
|
|
300561
|
+
constructor(guard, address, publicKey, parentFingerprint, chainCode, path10, index2, depth, provider) {
|
|
300562
300562
|
super(address, provider);
|
|
300563
300563
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
|
|
300564
300564
|
(0, index_js_4.defineProperties)(this, { publicKey });
|
|
@@ -300568,7 +300568,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
300568
300568
|
fingerprint,
|
|
300569
300569
|
parentFingerprint,
|
|
300570
300570
|
chainCode,
|
|
300571
|
-
path:
|
|
300571
|
+
path: path10,
|
|
300572
300572
|
index: index2,
|
|
300573
300573
|
depth
|
|
300574
300574
|
});
|
|
@@ -300606,23 +300606,23 @@ var require_hdwallet2 = __commonJS({
|
|
|
300606
300606
|
deriveChild(_index) {
|
|
300607
300607
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
300608
300608
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
300609
|
-
let
|
|
300610
|
-
if (
|
|
300611
|
-
|
|
300609
|
+
let path10 = this.path;
|
|
300610
|
+
if (path10) {
|
|
300611
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
300612
300612
|
if (index2 & HardenedBit) {
|
|
300613
|
-
|
|
300613
|
+
path10 += "'";
|
|
300614
300614
|
}
|
|
300615
300615
|
}
|
|
300616
300616
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
|
|
300617
300617
|
const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
|
|
300618
300618
|
const address = (0, index_js_3.computeAddress)(Ki);
|
|
300619
|
-
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
300619
|
+
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.provider);
|
|
300620
300620
|
}
|
|
300621
300621
|
/**
|
|
300622
300622
|
* Return the signer for %%path%% from this node.
|
|
300623
300623
|
*/
|
|
300624
|
-
derivePath(
|
|
300625
|
-
return derivePath(this,
|
|
300624
|
+
derivePath(path10) {
|
|
300625
|
+
return derivePath(this, path10);
|
|
300626
300626
|
}
|
|
300627
300627
|
};
|
|
300628
300628
|
exports2.HDNodeVoidWallet = HDNodeVoidWallet;
|
|
@@ -305278,10 +305278,10 @@ var require_SolidityCheckedContract = __commonJS({
|
|
|
305278
305278
|
} catch (err) {
|
|
305279
305279
|
return null;
|
|
305280
305280
|
}
|
|
305281
|
-
const pathContent = Object.keys(this.sources).map((
|
|
305281
|
+
const pathContent = Object.keys(this.sources).map((path10) => {
|
|
305282
305282
|
return {
|
|
305283
|
-
path:
|
|
305284
|
-
content: this.sources[
|
|
305283
|
+
path: path10,
|
|
305284
|
+
content: this.sources[path10] || ""
|
|
305285
305285
|
};
|
|
305286
305286
|
});
|
|
305287
305287
|
const byHash = (0, validation_1.storeByHash)(pathContent);
|
|
@@ -305803,9 +305803,9 @@ var require_process_nextick_args = __commonJS({
|
|
|
305803
305803
|
}
|
|
305804
305804
|
});
|
|
305805
305805
|
|
|
305806
|
-
// ../../node_modules/
|
|
305806
|
+
// ../../node_modules/isarray/index.js
|
|
305807
305807
|
var require_isarray = __commonJS({
|
|
305808
|
-
"../../node_modules/
|
|
305808
|
+
"../../node_modules/isarray/index.js"(exports2, module2) {
|
|
305809
305809
|
var toString2 = {}.toString;
|
|
305810
305810
|
module2.exports = Array.isArray || function(arr) {
|
|
305811
305811
|
return toString2.call(arr) == "[object Array]";
|
|
@@ -308580,8 +308580,8 @@ var require_utils36 = __commonJS({
|
|
|
308580
308580
|
var result = transform[inputType][outputType](input);
|
|
308581
308581
|
return result;
|
|
308582
308582
|
};
|
|
308583
|
-
exports2.resolve = function(
|
|
308584
|
-
var parts =
|
|
308583
|
+
exports2.resolve = function(path10) {
|
|
308584
|
+
var parts = path10.split("/");
|
|
308585
308585
|
var result = [];
|
|
308586
308586
|
for (var index2 = 0; index2 < parts.length; index2++) {
|
|
308587
308587
|
var part = parts[index2];
|
|
@@ -314434,18 +314434,18 @@ var require_object = __commonJS({
|
|
|
314434
314434
|
var object = new ZipObject(name, zipObjectContent, o);
|
|
314435
314435
|
this.files[name] = object;
|
|
314436
314436
|
};
|
|
314437
|
-
var parentFolder = function(
|
|
314438
|
-
if (
|
|
314439
|
-
|
|
314437
|
+
var parentFolder = function(path10) {
|
|
314438
|
+
if (path10.slice(-1) === "/") {
|
|
314439
|
+
path10 = path10.substring(0, path10.length - 1);
|
|
314440
314440
|
}
|
|
314441
|
-
var lastSlash =
|
|
314442
|
-
return lastSlash > 0 ?
|
|
314441
|
+
var lastSlash = path10.lastIndexOf("/");
|
|
314442
|
+
return lastSlash > 0 ? path10.substring(0, lastSlash) : "";
|
|
314443
314443
|
};
|
|
314444
|
-
var forceTrailingSlash = function(
|
|
314445
|
-
if (
|
|
314446
|
-
|
|
314444
|
+
var forceTrailingSlash = function(path10) {
|
|
314445
|
+
if (path10.slice(-1) !== "/") {
|
|
314446
|
+
path10 += "/";
|
|
314447
314447
|
}
|
|
314448
|
-
return
|
|
314448
|
+
return path10;
|
|
314449
314449
|
};
|
|
314450
314450
|
var folderAdd = function(name, createFolders) {
|
|
314451
314451
|
createFolders = typeof createFolders !== "undefined" ? createFolders : defaults.createFolders;
|
|
@@ -315511,7 +315511,7 @@ var require_VyperCheckedContract = __commonJS({
|
|
|
315511
315511
|
userdoc: { kind: "user", methods: {} }
|
|
315512
315512
|
};
|
|
315513
315513
|
}
|
|
315514
|
-
const sourcesWithHashes = Object.entries(this.sources).reduce((acc, [
|
|
315514
|
+
const sourcesWithHashes = Object.entries(this.sources).reduce((acc, [path10, content]) => Object.assign(Object.assign({}, acc), { [path10]: {
|
|
315515
315515
|
keccak256: (0, ethers_1.id)(content)
|
|
315516
315516
|
} }), {});
|
|
315517
315517
|
this.metadata = {
|
|
@@ -315544,8 +315544,8 @@ var require_VyperCheckedContract = __commonJS({
|
|
|
315544
315544
|
this.generateMetadata();
|
|
315545
315545
|
this.vyperJsonInput = {
|
|
315546
315546
|
language: "Vyper",
|
|
315547
|
-
sources: Object.fromEntries(Object.entries(this.sources).map(([
|
|
315548
|
-
|
|
315547
|
+
sources: Object.fromEntries(Object.entries(this.sources).map(([path10, content]) => [
|
|
315548
|
+
path10,
|
|
315549
315549
|
{ content }
|
|
315550
315550
|
])),
|
|
315551
315551
|
settings: this.vyperSettings
|
|
@@ -315738,15 +315738,15 @@ var require_validation5 = __commonJS({
|
|
|
315738
315738
|
];
|
|
315739
315739
|
function checkPaths(solidityCompiler, vyperCompiler2, paths, ignoring) {
|
|
315740
315740
|
const files = [];
|
|
315741
|
-
paths.forEach((
|
|
315742
|
-
if (fs_1.default.existsSync(
|
|
315743
|
-
traversePathRecursively(
|
|
315741
|
+
paths.forEach((path10) => {
|
|
315742
|
+
if (fs_1.default.existsSync(path10)) {
|
|
315743
|
+
traversePathRecursively(path10, (filePath) => {
|
|
315744
315744
|
const fullPath = path_1.default.resolve(filePath);
|
|
315745
315745
|
const file = { buffer: fs_1.default.readFileSync(filePath), path: fullPath };
|
|
315746
315746
|
files.push(file);
|
|
315747
315747
|
});
|
|
315748
315748
|
} else if (ignoring) {
|
|
315749
|
-
ignoring.push(
|
|
315749
|
+
ignoring.push(path10);
|
|
315750
315750
|
}
|
|
315751
315751
|
});
|
|
315752
315752
|
return checkFilesWithMetadata2(solidityCompiler, vyperCompiler2, files);
|
|
@@ -316002,22 +316002,22 @@ var require_validation5 = __commonJS({
|
|
|
316002
316002
|
var _a, _b, _c, _d;
|
|
316003
316003
|
return ((obj === null || obj === void 0 ? void 0 : obj.language) === "Vyper" || (obj === null || obj === void 0 ? void 0 : obj.language) === "Solidity") && !!((_a = obj === null || obj === void 0 ? void 0 : obj.settings) === null || _a === void 0 ? void 0 : _a.compilationTarget) && !!(obj === null || obj === void 0 ? void 0 : obj.version) && !!((_b = obj === null || obj === void 0 ? void 0 : obj.output) === null || _b === void 0 ? void 0 : _b.abi) && !!((_c = obj === null || obj === void 0 ? void 0 : obj.output) === null || _c === void 0 ? void 0 : _c.userdoc) && !!((_d = obj === null || obj === void 0 ? void 0 : obj.output) === null || _d === void 0 ? void 0 : _d.devdoc) && !!(obj === null || obj === void 0 ? void 0 : obj.sources);
|
|
316004
316004
|
}
|
|
316005
|
-
function traversePathRecursively(
|
|
316006
|
-
if (!fs_1.default.existsSync(
|
|
316007
|
-
const msg = `Encountered a nonexistent path: ${
|
|
316005
|
+
function traversePathRecursively(path10, worker, afterDirectory) {
|
|
316006
|
+
if (!fs_1.default.existsSync(path10)) {
|
|
316007
|
+
const msg = `Encountered a nonexistent path: ${path10}`;
|
|
316008
316008
|
const error = new Error(msg);
|
|
316009
316009
|
throw error;
|
|
316010
316010
|
}
|
|
316011
|
-
const fileStat = fs_1.default.lstatSync(
|
|
316011
|
+
const fileStat = fs_1.default.lstatSync(path10);
|
|
316012
316012
|
if (fileStat.isFile()) {
|
|
316013
|
-
worker(
|
|
316013
|
+
worker(path10);
|
|
316014
316014
|
} else if (fileStat.isDirectory()) {
|
|
316015
|
-
fs_1.default.readdirSync(
|
|
316016
|
-
const nestedPath = path_1.default.join(
|
|
316015
|
+
fs_1.default.readdirSync(path10).forEach((nestedName) => {
|
|
316016
|
+
const nestedPath = path_1.default.join(path10, nestedName);
|
|
316017
316017
|
traversePathRecursively(nestedPath, worker, afterDirectory);
|
|
316018
316018
|
});
|
|
316019
316019
|
if (afterDirectory) {
|
|
316020
|
-
afterDirectory(
|
|
316020
|
+
afterDirectory(path10);
|
|
316021
316021
|
}
|
|
316022
316022
|
}
|
|
316023
316023
|
}
|
|
@@ -316047,19 +316047,19 @@ var require_validation5 = __commonJS({
|
|
|
316047
316047
|
const endTime = Date.now();
|
|
316048
316048
|
(0, logger_1.logDebug)(`Parsing hardhat file took ${endTime - startTime} milliseconds.`);
|
|
316049
316049
|
const hardhatSourceFilesObject = hardhatJson.input.sources;
|
|
316050
|
-
for (const
|
|
316051
|
-
if (hardhatSourceFilesObject[
|
|
316050
|
+
for (const path10 in hardhatSourceFilesObject) {
|
|
316051
|
+
if (hardhatSourceFilesObject[path10].content) {
|
|
316052
316052
|
hardhatSourceFiles.push({
|
|
316053
|
-
path:
|
|
316054
|
-
content: hardhatSourceFilesObject[
|
|
316053
|
+
path: path10,
|
|
316054
|
+
content: hardhatSourceFilesObject[path10].content
|
|
316055
316055
|
});
|
|
316056
316056
|
}
|
|
316057
316057
|
}
|
|
316058
316058
|
const contractsObject = hardhatJson.output.contracts;
|
|
316059
|
-
for (const
|
|
316060
|
-
for (const contractName in contractsObject[
|
|
316061
|
-
if (contractsObject[
|
|
316062
|
-
const metadataObj = extractMetadataFromString(contractsObject[
|
|
316059
|
+
for (const path10 in contractsObject) {
|
|
316060
|
+
for (const contractName in contractsObject[path10]) {
|
|
316061
|
+
if (contractsObject[path10][contractName].metadata) {
|
|
316062
|
+
const metadataObj = extractMetadataFromString(contractsObject[path10][contractName].metadata);
|
|
316063
316063
|
hardhatMetadataFiles.push(metadataObj);
|
|
316064
316064
|
}
|
|
316065
316065
|
}
|
|
@@ -319615,12 +319615,12 @@ var require_abstract_coder4 = __commonJS({
|
|
|
319615
319615
|
var logger2 = new logger_1.Logger(_version_1.version);
|
|
319616
319616
|
function checkResultErrors(result) {
|
|
319617
319617
|
var errors = [];
|
|
319618
|
-
var checkErrors = function(
|
|
319618
|
+
var checkErrors = function(path10, object) {
|
|
319619
319619
|
if (!Array.isArray(object)) {
|
|
319620
319620
|
return;
|
|
319621
319621
|
}
|
|
319622
319622
|
for (var key in object) {
|
|
319623
|
-
var childPath =
|
|
319623
|
+
var childPath = path10.slice();
|
|
319624
319624
|
childPath.push(key);
|
|
319625
319625
|
try {
|
|
319626
319626
|
checkErrors(childPath, object[key]);
|
|
@@ -323334,15 +323334,15 @@ var require_route = __commonJS({
|
|
|
323334
323334
|
};
|
|
323335
323335
|
}
|
|
323336
323336
|
function wrapConversion(toModel, graph) {
|
|
323337
|
-
const
|
|
323337
|
+
const path10 = [graph[toModel].parent, toModel];
|
|
323338
323338
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
323339
323339
|
let cur = graph[toModel].parent;
|
|
323340
323340
|
while (graph[cur].parent) {
|
|
323341
|
-
|
|
323341
|
+
path10.unshift(graph[cur].parent);
|
|
323342
323342
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
323343
323343
|
cur = graph[cur].parent;
|
|
323344
323344
|
}
|
|
323345
|
-
fn.conversion =
|
|
323345
|
+
fn.conversion = path10;
|
|
323346
323346
|
return fn;
|
|
323347
323347
|
}
|
|
323348
323348
|
module2.exports = function(fromModel) {
|
|
@@ -324432,9 +324432,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
324432
324432
|
}
|
|
324433
324433
|
});
|
|
324434
324434
|
|
|
324435
|
-
// ../../node_modules/
|
|
324435
|
+
// ../../node_modules/ajv/dist/runtime/equal.js
|
|
324436
324436
|
var require_equal = __commonJS({
|
|
324437
|
-
"../../node_modules/
|
|
324437
|
+
"../../node_modules/ajv/dist/runtime/equal.js"(exports2) {
|
|
324438
324438
|
"use strict";
|
|
324439
324439
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
324440
324440
|
var equal = require_fast_deep_equal();
|
|
@@ -329437,7 +329437,7 @@ var require_react = __commonJS({
|
|
|
329437
329437
|
var require_react_dom_production = __commonJS({
|
|
329438
329438
|
"../../node_modules/react-dom/cjs/react-dom.production.js"(exports2) {
|
|
329439
329439
|
"use strict";
|
|
329440
|
-
var
|
|
329440
|
+
var React = require_react();
|
|
329441
329441
|
function formatProdErrorMessage(code) {
|
|
329442
329442
|
var url = "https://react.dev/errors/" + code;
|
|
329443
329443
|
if (1 < arguments.length) {
|
|
@@ -329477,7 +329477,7 @@ var require_react_dom_production = __commonJS({
|
|
|
329477
329477
|
implementation
|
|
329478
329478
|
};
|
|
329479
329479
|
}
|
|
329480
|
-
var ReactSharedInternals =
|
|
329480
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
329481
329481
|
function getCrossOriginStringAs(as, input) {
|
|
329482
329482
|
if ("font" === as) return "";
|
|
329483
329483
|
if ("string" === typeof input)
|
|
@@ -329631,7 +329631,7 @@ var require_react_dom_development = __commonJS({
|
|
|
329631
329631
|
return dispatcher;
|
|
329632
329632
|
}
|
|
329633
329633
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
329634
|
-
var
|
|
329634
|
+
var React = require_react(), Internals = {
|
|
329635
329635
|
d: {
|
|
329636
329636
|
f: noop,
|
|
329637
329637
|
r: function() {
|
|
@@ -329649,7 +329649,7 @@ var require_react_dom_development = __commonJS({
|
|
|
329649
329649
|
},
|
|
329650
329650
|
p: 0,
|
|
329651
329651
|
findDOMNode: null
|
|
329652
|
-
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals =
|
|
329652
|
+
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
329653
329653
|
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
329654
329654
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
329655
329655
|
);
|
|
@@ -329856,7 +329856,7 @@ var require_react_dom = __commonJS({
|
|
|
329856
329856
|
var require_react_dom_server_legacy_node_production = __commonJS({
|
|
329857
329857
|
"../../node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js"(exports2) {
|
|
329858
329858
|
"use strict";
|
|
329859
|
-
var
|
|
329859
|
+
var React = require_react();
|
|
329860
329860
|
var ReactDOM = require_react_dom();
|
|
329861
329861
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
329862
329862
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
@@ -330052,7 +330052,7 @@ var require_react_dom_server_legacy_node_production = __commonJS({
|
|
|
330052
330052
|
function sanitizeURL(url) {
|
|
330053
330053
|
return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url;
|
|
330054
330054
|
}
|
|
330055
|
-
var ReactSharedInternals =
|
|
330055
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
330056
330056
|
var ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
330057
330057
|
var sharedNotPendingObject = {
|
|
330058
330058
|
pending: false,
|
|
@@ -330381,7 +330381,7 @@ var require_react_dom_server_legacy_node_production = __commonJS({
|
|
|
330381
330381
|
}
|
|
330382
330382
|
function flattenOptionChildren(children) {
|
|
330383
330383
|
var content = "";
|
|
330384
|
-
|
|
330384
|
+
React.Children.forEach(children, function(child) {
|
|
330385
330385
|
null != child && (content += child);
|
|
330386
330386
|
});
|
|
330387
330387
|
return content;
|
|
@@ -334331,7 +334331,7 @@ var require_react_dom_server_node_production = __commonJS({
|
|
|
334331
334331
|
var util2 = __require("util");
|
|
334332
334332
|
var crypto3 = __require("crypto");
|
|
334333
334333
|
var async_hooks = __require("async_hooks");
|
|
334334
|
-
var
|
|
334334
|
+
var React = require_react();
|
|
334335
334335
|
var ReactDOM = require_react_dom();
|
|
334336
334336
|
var stream = __require("stream");
|
|
334337
334337
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
@@ -334551,7 +334551,7 @@ var require_react_dom_server_node_production = __commonJS({
|
|
|
334551
334551
|
function sanitizeURL(url) {
|
|
334552
334552
|
return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url;
|
|
334553
334553
|
}
|
|
334554
|
-
var ReactSharedInternals =
|
|
334554
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
334555
334555
|
var ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
334556
334556
|
var sharedNotPendingObject = {
|
|
334557
334557
|
pending: false,
|
|
@@ -335090,7 +335090,7 @@ var require_react_dom_server_node_production = __commonJS({
|
|
|
335090
335090
|
}
|
|
335091
335091
|
function flattenOptionChildren(children) {
|
|
335092
335092
|
var content = "";
|
|
335093
|
-
|
|
335093
|
+
React.Children.forEach(children, function(child) {
|
|
335094
335094
|
null != child && (content += child);
|
|
335095
335095
|
});
|
|
335096
335096
|
return content;
|
|
@@ -339040,7 +339040,7 @@ var require_react_dom_server_node_production = __commonJS({
|
|
|
339040
339040
|
}
|
|
339041
339041
|
}
|
|
339042
339042
|
function ensureCorrectIsomorphicReactVersion() {
|
|
339043
|
-
var isomorphicReactPackageVersion =
|
|
339043
|
+
var isomorphicReactPackageVersion = React.version;
|
|
339044
339044
|
if ("19.1.0" !== isomorphicReactPackageVersion)
|
|
339045
339045
|
throw Error(
|
|
339046
339046
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
@@ -340164,7 +340164,7 @@ var require_react_dom_server_legacy_node_development = __commonJS({
|
|
|
340164
340164
|
}
|
|
340165
340165
|
function flattenOptionChildren(children) {
|
|
340166
340166
|
var content = "";
|
|
340167
|
-
|
|
340167
|
+
React.Children.forEach(children, function(child) {
|
|
340168
340168
|
null != child && (content += child, didWarnInvalidOptionChildren || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || (didWarnInvalidOptionChildren = true, console.error(
|
|
340169
340169
|
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
|
|
340170
340170
|
)));
|
|
@@ -344697,7 +344697,7 @@ var require_react_dom_server_legacy_node_development = __commonJS({
|
|
|
344697
344697
|
);
|
|
344698
344698
|
return result;
|
|
344699
344699
|
}
|
|
344700
|
-
var
|
|
344700
|
+
var React = require_react(), ReactDOM = require_react_dom(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_SCOPE_TYPE = Symbol.for("react.scope"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = /* @__PURE__ */ new WeakMap(), jsxChildrenParents = /* @__PURE__ */ new WeakMap(), CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"), assign = Object.assign, hasOwnProperty10 = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
|
344701
344701
|
"^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
344702
344702
|
), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, unitlessNumbers = new Set(
|
|
344703
344703
|
"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
|
|
@@ -345341,7 +345341,7 @@ var require_react_dom_server_legacy_node_development = __commonJS({
|
|
|
345341
345341
|
"^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
345342
345342
|
), rARIACamel = RegExp(
|
|
345343
345343
|
"^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
345344
|
-
), badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern$1 = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = false, warnedForInfinityValue = false, matchHtmlRegExp = /["'&<>]/, uppercasePattern = /([A-Z])/g, msPattern = /^ms-/, isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, ReactSharedInternals =
|
|
345344
|
+
), badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern$1 = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = false, warnedForInfinityValue = false, matchHtmlRegExp = /["'&<>]/, uppercasePattern = /([A-Z])/g, msPattern = /^ms-/, isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
|
|
345345
345345
|
pending: false,
|
|
345346
345346
|
data: null,
|
|
345347
345347
|
method: null,
|
|
@@ -346875,7 +346875,7 @@ var require_react_dom_server_node_development = __commonJS({
|
|
|
346875
346875
|
}
|
|
346876
346876
|
function flattenOptionChildren(children) {
|
|
346877
346877
|
var content = "";
|
|
346878
|
-
|
|
346878
|
+
React.Children.forEach(children, function(child) {
|
|
346879
346879
|
null != child && (content += child, didWarnInvalidOptionChildren || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || (didWarnInvalidOptionChildren = true, console.error(
|
|
346880
346880
|
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
|
|
346881
346881
|
)));
|
|
@@ -351320,7 +351320,7 @@ var require_react_dom_server_node_development = __commonJS({
|
|
|
351320
351320
|
}
|
|
351321
351321
|
}
|
|
351322
351322
|
function ensureCorrectIsomorphicReactVersion() {
|
|
351323
|
-
var isomorphicReactPackageVersion =
|
|
351323
|
+
var isomorphicReactPackageVersion = React.version;
|
|
351324
351324
|
if ("19.1.0" !== isomorphicReactPackageVersion)
|
|
351325
351325
|
throw Error(
|
|
351326
351326
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
@@ -351380,7 +351380,7 @@ var require_react_dom_server_node_development = __commonJS({
|
|
|
351380
351380
|
}
|
|
351381
351381
|
};
|
|
351382
351382
|
}
|
|
351383
|
-
var util2 = __require("util"), crypto3 = __require("crypto"), async_hooks = __require("async_hooks"),
|
|
351383
|
+
var util2 = __require("util"), crypto3 = __require("crypto"), async_hooks = __require("async_hooks"), React = require_react(), ReactDOM = require_react_dom(), stream = __require("stream"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_SCOPE_TYPE = Symbol.for("react.scope"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = /* @__PURE__ */ new WeakMap(), jsxChildrenParents = /* @__PURE__ */ new WeakMap(), CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"), scheduleMicrotask = queueMicrotask, currentView = null, writtenBytes = 0, destinationHasCapacity$1 = true, textEncoder = new util2.TextEncoder(), assign = Object.assign, hasOwnProperty10 = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
|
351384
351384
|
"^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
351385
351385
|
), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, unitlessNumbers = new Set(
|
|
351386
351386
|
"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
|
|
@@ -352024,7 +352024,7 @@ var require_react_dom_server_node_development = __commonJS({
|
|
|
352024
352024
|
"^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
352025
352025
|
), rARIACamel = RegExp(
|
|
352026
352026
|
"^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
352027
|
-
), badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern$1 = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = false, warnedForInfinityValue = false, matchHtmlRegExp = /["'&<>]/, uppercasePattern = /([A-Z])/g, msPattern = /^ms-/, isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, ReactSharedInternals =
|
|
352027
|
+
), badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern$1 = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = false, warnedForInfinityValue = false, matchHtmlRegExp = /["'&<>]/, uppercasePattern = /([A-Z])/g, msPattern = /^ms-/, isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
|
|
352028
352028
|
pending: false,
|
|
352029
352029
|
data: null,
|
|
352030
352030
|
method: null,
|
|
@@ -352559,6 +352559,310 @@ var require_server_node = __commonJS({
|
|
|
352559
352559
|
}
|
|
352560
352560
|
});
|
|
352561
352561
|
|
|
352562
|
+
// ../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
352563
|
+
var require_react_jsx_runtime_production = __commonJS({
|
|
352564
|
+
"../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports2) {
|
|
352565
|
+
"use strict";
|
|
352566
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
352567
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
352568
|
+
function jsxProd(type, config, maybeKey) {
|
|
352569
|
+
var key = null;
|
|
352570
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
352571
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
352572
|
+
if ("key" in config) {
|
|
352573
|
+
maybeKey = {};
|
|
352574
|
+
for (var propName in config)
|
|
352575
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
352576
|
+
} else maybeKey = config;
|
|
352577
|
+
config = maybeKey.ref;
|
|
352578
|
+
return {
|
|
352579
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
352580
|
+
type,
|
|
352581
|
+
key,
|
|
352582
|
+
ref: void 0 !== config ? config : null,
|
|
352583
|
+
props: maybeKey
|
|
352584
|
+
};
|
|
352585
|
+
}
|
|
352586
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
352587
|
+
exports2.jsx = jsxProd;
|
|
352588
|
+
exports2.jsxs = jsxProd;
|
|
352589
|
+
}
|
|
352590
|
+
});
|
|
352591
|
+
|
|
352592
|
+
// ../../node_modules/react/cjs/react-jsx-runtime.development.js
|
|
352593
|
+
var require_react_jsx_runtime_development = __commonJS({
|
|
352594
|
+
"../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
|
|
352595
|
+
"use strict";
|
|
352596
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
352597
|
+
function getComponentNameFromType(type) {
|
|
352598
|
+
if (null == type) return null;
|
|
352599
|
+
if ("function" === typeof type)
|
|
352600
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
352601
|
+
if ("string" === typeof type) return type;
|
|
352602
|
+
switch (type) {
|
|
352603
|
+
case REACT_FRAGMENT_TYPE:
|
|
352604
|
+
return "Fragment";
|
|
352605
|
+
case REACT_PROFILER_TYPE:
|
|
352606
|
+
return "Profiler";
|
|
352607
|
+
case REACT_STRICT_MODE_TYPE:
|
|
352608
|
+
return "StrictMode";
|
|
352609
|
+
case REACT_SUSPENSE_TYPE:
|
|
352610
|
+
return "Suspense";
|
|
352611
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
352612
|
+
return "SuspenseList";
|
|
352613
|
+
case REACT_ACTIVITY_TYPE:
|
|
352614
|
+
return "Activity";
|
|
352615
|
+
}
|
|
352616
|
+
if ("object" === typeof type)
|
|
352617
|
+
switch ("number" === typeof type.tag && console.error(
|
|
352618
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
352619
|
+
), type.$$typeof) {
|
|
352620
|
+
case REACT_PORTAL_TYPE:
|
|
352621
|
+
return "Portal";
|
|
352622
|
+
case REACT_CONTEXT_TYPE:
|
|
352623
|
+
return (type.displayName || "Context") + ".Provider";
|
|
352624
|
+
case REACT_CONSUMER_TYPE:
|
|
352625
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
352626
|
+
case REACT_FORWARD_REF_TYPE:
|
|
352627
|
+
var innerType = type.render;
|
|
352628
|
+
type = type.displayName;
|
|
352629
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
352630
|
+
return type;
|
|
352631
|
+
case REACT_MEMO_TYPE:
|
|
352632
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
352633
|
+
case REACT_LAZY_TYPE:
|
|
352634
|
+
innerType = type._payload;
|
|
352635
|
+
type = type._init;
|
|
352636
|
+
try {
|
|
352637
|
+
return getComponentNameFromType(type(innerType));
|
|
352638
|
+
} catch (x) {
|
|
352639
|
+
}
|
|
352640
|
+
}
|
|
352641
|
+
return null;
|
|
352642
|
+
}
|
|
352643
|
+
function testStringCoercion(value) {
|
|
352644
|
+
return "" + value;
|
|
352645
|
+
}
|
|
352646
|
+
function checkKeyStringCoercion(value) {
|
|
352647
|
+
try {
|
|
352648
|
+
testStringCoercion(value);
|
|
352649
|
+
var JSCompiler_inline_result = false;
|
|
352650
|
+
} catch (e) {
|
|
352651
|
+
JSCompiler_inline_result = true;
|
|
352652
|
+
}
|
|
352653
|
+
if (JSCompiler_inline_result) {
|
|
352654
|
+
JSCompiler_inline_result = console;
|
|
352655
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
352656
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
352657
|
+
JSCompiler_temp_const.call(
|
|
352658
|
+
JSCompiler_inline_result,
|
|
352659
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
352660
|
+
JSCompiler_inline_result$jscomp$0
|
|
352661
|
+
);
|
|
352662
|
+
return testStringCoercion(value);
|
|
352663
|
+
}
|
|
352664
|
+
}
|
|
352665
|
+
function getTaskName(type) {
|
|
352666
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
352667
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
352668
|
+
return "<...>";
|
|
352669
|
+
try {
|
|
352670
|
+
var name = getComponentNameFromType(type);
|
|
352671
|
+
return name ? "<" + name + ">" : "<...>";
|
|
352672
|
+
} catch (x) {
|
|
352673
|
+
return "<...>";
|
|
352674
|
+
}
|
|
352675
|
+
}
|
|
352676
|
+
function getOwner() {
|
|
352677
|
+
var dispatcher = ReactSharedInternals.A;
|
|
352678
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
352679
|
+
}
|
|
352680
|
+
function UnknownOwner() {
|
|
352681
|
+
return Error("react-stack-top-frame");
|
|
352682
|
+
}
|
|
352683
|
+
function hasValidKey(config) {
|
|
352684
|
+
if (hasOwnProperty10.call(config, "key")) {
|
|
352685
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
352686
|
+
if (getter && getter.isReactWarning) return false;
|
|
352687
|
+
}
|
|
352688
|
+
return void 0 !== config.key;
|
|
352689
|
+
}
|
|
352690
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
352691
|
+
function warnAboutAccessingKey() {
|
|
352692
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
352693
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
352694
|
+
displayName
|
|
352695
|
+
));
|
|
352696
|
+
}
|
|
352697
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
352698
|
+
Object.defineProperty(props, "key", {
|
|
352699
|
+
get: warnAboutAccessingKey,
|
|
352700
|
+
configurable: true
|
|
352701
|
+
});
|
|
352702
|
+
}
|
|
352703
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
352704
|
+
var componentName = getComponentNameFromType(this.type);
|
|
352705
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
352706
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
352707
|
+
));
|
|
352708
|
+
componentName = this.props.ref;
|
|
352709
|
+
return void 0 !== componentName ? componentName : null;
|
|
352710
|
+
}
|
|
352711
|
+
function ReactElement(type, key, self2, source, owner, props, debugStack, debugTask) {
|
|
352712
|
+
self2 = props.ref;
|
|
352713
|
+
type = {
|
|
352714
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
352715
|
+
type,
|
|
352716
|
+
key,
|
|
352717
|
+
props,
|
|
352718
|
+
_owner: owner
|
|
352719
|
+
};
|
|
352720
|
+
null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type, "ref", {
|
|
352721
|
+
enumerable: false,
|
|
352722
|
+
get: elementRefGetterWithDeprecationWarning
|
|
352723
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
352724
|
+
type._store = {};
|
|
352725
|
+
Object.defineProperty(type._store, "validated", {
|
|
352726
|
+
configurable: false,
|
|
352727
|
+
enumerable: false,
|
|
352728
|
+
writable: true,
|
|
352729
|
+
value: 0
|
|
352730
|
+
});
|
|
352731
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
352732
|
+
configurable: false,
|
|
352733
|
+
enumerable: false,
|
|
352734
|
+
writable: true,
|
|
352735
|
+
value: null
|
|
352736
|
+
});
|
|
352737
|
+
Object.defineProperty(type, "_debugStack", {
|
|
352738
|
+
configurable: false,
|
|
352739
|
+
enumerable: false,
|
|
352740
|
+
writable: true,
|
|
352741
|
+
value: debugStack
|
|
352742
|
+
});
|
|
352743
|
+
Object.defineProperty(type, "_debugTask", {
|
|
352744
|
+
configurable: false,
|
|
352745
|
+
enumerable: false,
|
|
352746
|
+
writable: true,
|
|
352747
|
+
value: debugTask
|
|
352748
|
+
});
|
|
352749
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
352750
|
+
return type;
|
|
352751
|
+
}
|
|
352752
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self2, debugStack, debugTask) {
|
|
352753
|
+
var children = config.children;
|
|
352754
|
+
if (void 0 !== children)
|
|
352755
|
+
if (isStaticChildren)
|
|
352756
|
+
if (isArrayImpl(children)) {
|
|
352757
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
352758
|
+
validateChildKeys(children[isStaticChildren]);
|
|
352759
|
+
Object.freeze && Object.freeze(children);
|
|
352760
|
+
} else
|
|
352761
|
+
console.error(
|
|
352762
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
352763
|
+
);
|
|
352764
|
+
else validateChildKeys(children);
|
|
352765
|
+
if (hasOwnProperty10.call(config, "key")) {
|
|
352766
|
+
children = getComponentNameFromType(type);
|
|
352767
|
+
var keys2 = Object.keys(config).filter(function(k) {
|
|
352768
|
+
return "key" !== k;
|
|
352769
|
+
});
|
|
352770
|
+
isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
352771
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
352772
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
352773
|
+
isStaticChildren,
|
|
352774
|
+
children,
|
|
352775
|
+
keys2,
|
|
352776
|
+
children
|
|
352777
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
352778
|
+
}
|
|
352779
|
+
children = null;
|
|
352780
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
352781
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
352782
|
+
if ("key" in config) {
|
|
352783
|
+
maybeKey = {};
|
|
352784
|
+
for (var propName in config)
|
|
352785
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
352786
|
+
} else maybeKey = config;
|
|
352787
|
+
children && defineKeyPropWarningGetter(
|
|
352788
|
+
maybeKey,
|
|
352789
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
352790
|
+
);
|
|
352791
|
+
return ReactElement(
|
|
352792
|
+
type,
|
|
352793
|
+
children,
|
|
352794
|
+
self2,
|
|
352795
|
+
source,
|
|
352796
|
+
getOwner(),
|
|
352797
|
+
maybeKey,
|
|
352798
|
+
debugStack,
|
|
352799
|
+
debugTask
|
|
352800
|
+
);
|
|
352801
|
+
}
|
|
352802
|
+
function validateChildKeys(node) {
|
|
352803
|
+
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
352804
|
+
}
|
|
352805
|
+
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
352806
|
+
Symbol.for("react.provider");
|
|
352807
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty10 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
352808
|
+
return null;
|
|
352809
|
+
};
|
|
352810
|
+
React = {
|
|
352811
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
352812
|
+
return callStackForError();
|
|
352813
|
+
}
|
|
352814
|
+
};
|
|
352815
|
+
var specialPropKeyWarningShown;
|
|
352816
|
+
var didWarnAboutElementRef = {};
|
|
352817
|
+
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
352818
|
+
React,
|
|
352819
|
+
UnknownOwner
|
|
352820
|
+
)();
|
|
352821
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
352822
|
+
var didWarnAboutKeySpread = {};
|
|
352823
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
352824
|
+
exports2.jsx = function(type, config, maybeKey, source, self2) {
|
|
352825
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
352826
|
+
return jsxDEVImpl(
|
|
352827
|
+
type,
|
|
352828
|
+
config,
|
|
352829
|
+
maybeKey,
|
|
352830
|
+
false,
|
|
352831
|
+
source,
|
|
352832
|
+
self2,
|
|
352833
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
352834
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
352835
|
+
);
|
|
352836
|
+
};
|
|
352837
|
+
exports2.jsxs = function(type, config, maybeKey, source, self2) {
|
|
352838
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
352839
|
+
return jsxDEVImpl(
|
|
352840
|
+
type,
|
|
352841
|
+
config,
|
|
352842
|
+
maybeKey,
|
|
352843
|
+
true,
|
|
352844
|
+
source,
|
|
352845
|
+
self2,
|
|
352846
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
352847
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
352848
|
+
);
|
|
352849
|
+
};
|
|
352850
|
+
}();
|
|
352851
|
+
}
|
|
352852
|
+
});
|
|
352853
|
+
|
|
352854
|
+
// ../../node_modules/react/jsx-runtime.js
|
|
352855
|
+
var require_jsx_runtime = __commonJS({
|
|
352856
|
+
"../../node_modules/react/jsx-runtime.js"(exports2, module2) {
|
|
352857
|
+
"use strict";
|
|
352858
|
+
if (process.env.NODE_ENV === "production") {
|
|
352859
|
+
module2.exports = require_react_jsx_runtime_production();
|
|
352860
|
+
} else {
|
|
352861
|
+
module2.exports = require_react_jsx_runtime_development();
|
|
352862
|
+
}
|
|
352863
|
+
}
|
|
352864
|
+
});
|
|
352865
|
+
|
|
352562
352866
|
// ../../node_modules/@commander-js/extra-typings/esm.mjs
|
|
352563
352867
|
var import_index = __toESM(require_extra_typings(), 1);
|
|
352564
352868
|
var {
|
|
@@ -360143,19 +360447,6 @@ function walletActions(client) {
|
|
|
360143
360447
|
};
|
|
360144
360448
|
}
|
|
360145
360449
|
|
|
360146
|
-
// ../../node_modules/viem/_esm/clients/createWalletClient.js
|
|
360147
|
-
function createWalletClient(parameters) {
|
|
360148
|
-
const { key = "wallet", name = "Wallet Client", transport } = parameters;
|
|
360149
|
-
const client = createClient({
|
|
360150
|
-
...parameters,
|
|
360151
|
-
key,
|
|
360152
|
-
name,
|
|
360153
|
-
transport,
|
|
360154
|
-
type: "walletClient"
|
|
360155
|
-
});
|
|
360156
|
-
return client.extend(walletActions);
|
|
360157
|
-
}
|
|
360158
|
-
|
|
360159
360450
|
// ../../node_modules/viem/_esm/index.js
|
|
360160
360451
|
init_abis();
|
|
360161
360452
|
init_abi();
|
|
@@ -369554,8 +369845,8 @@ function getErrorMap() {
|
|
|
369554
369845
|
|
|
369555
369846
|
// ../../node_modules/zod/dist/esm/v3/helpers/parseUtil.js
|
|
369556
369847
|
var makeIssue = (params) => {
|
|
369557
|
-
const { data, path:
|
|
369558
|
-
const fullPath = [...
|
|
369848
|
+
const { data, path: path10, errorMaps, issueData } = params;
|
|
369849
|
+
const fullPath = [...path10, ...issueData.path || []];
|
|
369559
369850
|
const fullIssue = {
|
|
369560
369851
|
...issueData,
|
|
369561
369852
|
path: fullPath
|
|
@@ -369671,11 +369962,11 @@ var errorUtil;
|
|
|
369671
369962
|
|
|
369672
369963
|
// ../../node_modules/zod/dist/esm/v3/types.js
|
|
369673
369964
|
var ParseInputLazyPath = class {
|
|
369674
|
-
constructor(parent, value,
|
|
369965
|
+
constructor(parent, value, path10, key) {
|
|
369675
369966
|
this._cachedPath = [];
|
|
369676
369967
|
this.parent = parent;
|
|
369677
369968
|
this.data = value;
|
|
369678
|
-
this._path =
|
|
369969
|
+
this._path = path10;
|
|
369679
369970
|
this._key = key;
|
|
369680
369971
|
}
|
|
369681
369972
|
get path() {
|
|
@@ -387453,9 +387744,9 @@ var PathOptionFactory = class _PathOptionFactory {
|
|
|
387453
387744
|
const balancerSet = /* @__PURE__ */ new Set([...balancerPools, ...balancerTokensFromAura]);
|
|
387454
387745
|
return Array.from(balancerSet.values());
|
|
387455
387746
|
}
|
|
387456
|
-
static next(
|
|
387457
|
-
let newPath = [...
|
|
387458
|
-
for (let i =
|
|
387747
|
+
static next(path10) {
|
|
387748
|
+
let newPath = [...path10];
|
|
387749
|
+
for (let i = path10.length - 1; i >= 0; i--) {
|
|
387459
387750
|
const po = { ...newPath[i] };
|
|
387460
387751
|
po.option++;
|
|
387461
387752
|
newPath[i] = po;
|
|
@@ -396129,8 +396420,8 @@ var PriceUpdatesCache = class {
|
|
|
396129
396420
|
this.#ttlMs = opts.ttl;
|
|
396130
396421
|
this.#historical = opts.historical;
|
|
396131
396422
|
}
|
|
396132
|
-
get(...
|
|
396133
|
-
const key = this.#cacheKey(...
|
|
396423
|
+
get(...path10) {
|
|
396424
|
+
const key = this.#cacheKey(...path10);
|
|
396134
396425
|
const data = this.#cache.get(key);
|
|
396135
396426
|
if (!data) {
|
|
396136
396427
|
return void 0;
|
|
@@ -396141,8 +396432,8 @@ var PriceUpdatesCache = class {
|
|
|
396141
396432
|
}
|
|
396142
396433
|
return data;
|
|
396143
396434
|
}
|
|
396144
|
-
set(value, ...
|
|
396145
|
-
const key = this.#cacheKey(...
|
|
396435
|
+
set(value, ...path10) {
|
|
396436
|
+
const key = this.#cacheKey(...path10);
|
|
396146
396437
|
this.#cache.set(key, value);
|
|
396147
396438
|
}
|
|
396148
396439
|
#expired(value) {
|
|
@@ -396151,8 +396442,8 @@ var PriceUpdatesCache = class {
|
|
|
396151
396442
|
}
|
|
396152
396443
|
return value.timestamp * 1e3 + this.#ttlMs < Date.now();
|
|
396153
396444
|
}
|
|
396154
|
-
#cacheKey(...
|
|
396155
|
-
return
|
|
396445
|
+
#cacheKey(...path10) {
|
|
396446
|
+
return path10.join(":");
|
|
396156
396447
|
}
|
|
396157
396448
|
};
|
|
396158
396449
|
|
|
@@ -398889,9 +399180,9 @@ var log_default = logger;
|
|
|
398889
399180
|
var log = log_default.child({ name: "git" });
|
|
398890
399181
|
function getGithubUrl(repo, https = false) {
|
|
398891
399182
|
const credentials = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;
|
|
398892
|
-
const
|
|
399183
|
+
const path10 = repo.replace(/^@/, "").replace(/\/$/, "");
|
|
398893
399184
|
const cred = credentials ? `${credentials}@` : "";
|
|
398894
|
-
return https || credentials ? `https://${cred}github.com/${
|
|
399185
|
+
return https || credentials ? `https://${cred}github.com/${path10}.git` : `git@github.com:${path10}.git`;
|
|
398895
399186
|
}
|
|
398896
399187
|
async function cloneRepo(opts) {
|
|
398897
399188
|
const { repo, commit, sandboxDir } = opts;
|
|
@@ -398905,7 +399196,7 @@ async function cloneRepo(opts) {
|
|
|
398905
399196
|
} else {
|
|
398906
399197
|
const clone = ["clone", getGithubUrl(repo), destDir];
|
|
398907
399198
|
log.trace(`cloning ${repo} at ${commit} to ${destDir}`);
|
|
398908
|
-
|
|
399199
|
+
const { stderr, status, error } = spawnSync("git", clone, {
|
|
398909
399200
|
cwd: sandboxDir
|
|
398910
399201
|
});
|
|
398911
399202
|
if (error || status !== 0) {
|
|
@@ -398916,7 +399207,7 @@ async function cloneRepo(opts) {
|
|
|
398916
399207
|
if (commit) {
|
|
398917
399208
|
const reset2 = ["reset", "--hard", commit, "--"];
|
|
398918
399209
|
log.trace(repoPath, ...reset2);
|
|
398919
|
-
|
|
399210
|
+
const { stderr, status, error } = spawnSync("git", reset2, {
|
|
398920
399211
|
cwd: repoPath
|
|
398921
399212
|
});
|
|
398922
399213
|
if (error || status !== 0) {
|
|
@@ -398931,7 +399222,7 @@ async function cloneRepo(opts) {
|
|
|
398931
399222
|
if (fetchResult.error || fetchResult.status !== 0) {
|
|
398932
399223
|
throw fetchResult.error ?? new Error(fetchResult.stderr?.toString());
|
|
398933
399224
|
}
|
|
398934
|
-
|
|
399225
|
+
const currentBranchResult = spawnSync("git", ["rev-parse", "--abbrev-ref", "HEAD"], {
|
|
398935
399226
|
cwd: path.resolve(sandboxDir, destDir)
|
|
398936
399227
|
});
|
|
398937
399228
|
if (currentBranchResult.error || currentBranchResult.status !== 0) {
|
|
@@ -398939,7 +399230,7 @@ async function cloneRepo(opts) {
|
|
|
398939
399230
|
}
|
|
398940
399231
|
const currentBranch = currentBranchResult.stdout.toString().trim();
|
|
398941
399232
|
log.trace(`resetting ${repoPath} to latest commit in origin/${currentBranch}...`);
|
|
398942
|
-
|
|
399233
|
+
const resetResult = spawnSync("git", ["reset", "--hard", `origin/${currentBranch}`], {
|
|
398943
399234
|
cwd: path.resolve(sandboxDir, destDir)
|
|
398944
399235
|
});
|
|
398945
399236
|
if (resetResult.error || resetResult.status !== 0) {
|
|
@@ -415315,7 +415606,7 @@ var iPriceOracleV2Abi = [
|
|
|
415315
415606
|
import { readdir } from "node:fs/promises";
|
|
415316
415607
|
import { join, resolve } from "node:path";
|
|
415317
415608
|
async function readDirectory(dir) {
|
|
415318
|
-
|
|
415609
|
+
const files = [];
|
|
415319
415610
|
async function readDir(rootDir, subdir) {
|
|
415320
415611
|
const items = await readdir(resolve(rootDir, subdir), {
|
|
415321
415612
|
withFileTypes: true
|
|
@@ -415495,10 +415786,10 @@ function normalizeMultisendTransactionDecoded(t) {
|
|
|
415495
415786
|
var import_http_status_codes = __toESM(require_cjs2(), 1);
|
|
415496
415787
|
var import_semver = __toESM(require_semver2(), 1);
|
|
415497
415788
|
var import_solc = __toESM(require_solc(), 1);
|
|
415789
|
+
import { exec, spawnSync as spawnSync2 } from "node:child_process";
|
|
415498
415790
|
import fs2 from "node:fs";
|
|
415499
415791
|
import path2 from "node:path";
|
|
415500
|
-
import {
|
|
415501
|
-
import { Worker } from "worker_threads";
|
|
415792
|
+
import { Worker } from "node:worker_threads";
|
|
415502
415793
|
async function fetchWithBackoff(resource, backoff = 1e4, retries = 4) {
|
|
415503
415794
|
let timeout = backoff;
|
|
415504
415795
|
for (let attempt = 0; attempt <= retries; attempt++) {
|
|
@@ -415533,7 +415824,6 @@ async function fetchWithBackoff(resource, backoff = 1e4, retries = 4) {
|
|
|
415533
415824
|
timeout,
|
|
415534
415825
|
error
|
|
415535
415826
|
});
|
|
415536
|
-
continue;
|
|
415537
415827
|
}
|
|
415538
415828
|
}
|
|
415539
415829
|
}
|
|
@@ -415559,7 +415849,7 @@ async function useCompiler(version4, solcJsonInput, forceEmscripten = false) {
|
|
|
415559
415849
|
const inputStringified = JSON.stringify(solcJsonInput);
|
|
415560
415850
|
let compiled;
|
|
415561
415851
|
const solcPlatform = findSolcPlatform();
|
|
415562
|
-
let solcPath;
|
|
415852
|
+
let solcPath = null;
|
|
415563
415853
|
if (solcPlatform && !forceEmscripten) {
|
|
415564
415854
|
solcPath = await getSolcExecutable(solcPlatform, version4);
|
|
415565
415855
|
}
|
|
@@ -415615,7 +415905,8 @@ async function useCompiler(version4, solcJsonInput, forceEmscripten = false) {
|
|
|
415615
415905
|
const compiledJSON = JSON.parse(compiled);
|
|
415616
415906
|
const errorMessages2 = compiledJSON?.errors?.filter((e) => e.severity === "error");
|
|
415617
415907
|
if (errorMessages2 && errorMessages2.length > 0) {
|
|
415618
|
-
const error = new Error(
|
|
415908
|
+
const error = new Error(`Compiler error:
|
|
415909
|
+
${JSON.stringify(errorMessages2)}`);
|
|
415619
415910
|
log_default.error(error.message);
|
|
415620
415911
|
throw error;
|
|
415621
415912
|
}
|
|
@@ -415702,7 +415993,7 @@ async function fetchAndSaveSolc(platform, solcPath, version4, fileName) {
|
|
|
415702
415993
|
async function getSolcJs(version4 = "latest") {
|
|
415703
415994
|
version4 = version4.trim();
|
|
415704
415995
|
if (version4 !== "latest" && !version4.startsWith("v")) {
|
|
415705
|
-
version4 =
|
|
415996
|
+
version4 = `v${version4}`;
|
|
415706
415997
|
}
|
|
415707
415998
|
const soljsonRepo = path2.join("/tmp", "soljson-repo");
|
|
415708
415999
|
const fileName = `soljson-${version4}.js`;
|
|
@@ -415737,8 +416028,8 @@ function asyncExecSolc(inputStringified, solcPath) {
|
|
|
415737
416028
|
child.stdin.end();
|
|
415738
416029
|
});
|
|
415739
416030
|
}
|
|
415740
|
-
function importWorker(
|
|
415741
|
-
const resolvedPath = __require.resolve(
|
|
416031
|
+
function importWorker(path10, options) {
|
|
416032
|
+
const resolvedPath = __require.resolve(path10);
|
|
415742
416033
|
return new Worker(resolvedPath, {
|
|
415743
416034
|
...options,
|
|
415744
416035
|
execArgv: /\.ts$/.test(resolvedPath) ? ["--require", "ts-node/register"] : void 0
|
|
@@ -415763,7 +416054,7 @@ function isCallExternalTransaction(t) {
|
|
|
415763
416054
|
|
|
415764
416055
|
// ../../packages/node/dist/helpers/VyperCompiler.js
|
|
415765
416056
|
var VyperCompiler = class {
|
|
415766
|
-
compile(
|
|
416057
|
+
compile(_version, _vyperJsonInput) {
|
|
415767
416058
|
throw new Error("Method not implemented.");
|
|
415768
416059
|
}
|
|
415769
416060
|
};
|
|
@@ -415772,7 +416063,7 @@ var vyperCompiler = new VyperCompiler();
|
|
|
415772
416063
|
// ../../packages/node/dist/utils.js
|
|
415773
416064
|
var import_bytecode_utils = __toESM(require_main(), 1);
|
|
415774
416065
|
function extractFilesFromJSON(files) {
|
|
415775
|
-
return Object.entries(files).map(([
|
|
416066
|
+
return Object.entries(files).map(([path10, file]) => {
|
|
415776
416067
|
let buffer2 = null;
|
|
415777
416068
|
if (Buffer.isBuffer(file)) {
|
|
415778
416069
|
buffer2 = file;
|
|
@@ -415787,7 +416078,7 @@ function extractFilesFromJSON(files) {
|
|
|
415787
416078
|
throw new Error(`cannot convert ${typeof file} into buffer`);
|
|
415788
416079
|
}
|
|
415789
416080
|
return {
|
|
415790
|
-
path:
|
|
416081
|
+
path: path10,
|
|
415791
416082
|
buffer: buffer2
|
|
415792
416083
|
};
|
|
415793
416084
|
});
|
|
@@ -415803,8 +416094,8 @@ function doesContainMetadataHash(bytecode) {
|
|
|
415803
416094
|
let containsMetadata;
|
|
415804
416095
|
try {
|
|
415805
416096
|
const decodedCBOR = (0, import_bytecode_utils.decode)(bytecode, import_bytecode_utils.AuxdataStyle.SOLIDITY);
|
|
415806
|
-
containsMetadata = !!decodedCBOR.ipfs || !!decodedCBOR
|
|
415807
|
-
} catch (
|
|
416097
|
+
containsMetadata = !!decodedCBOR.ipfs || !!decodedCBOR.bzzr0 || !!decodedCBOR.bzzr1;
|
|
416098
|
+
} catch (_e) {
|
|
415808
416099
|
containsMetadata = false;
|
|
415809
416100
|
}
|
|
415810
416101
|
return containsMetadata;
|
|
@@ -415848,8 +416139,8 @@ var Auditor = class {
|
|
|
415848
416139
|
if (!meta.files) {
|
|
415849
416140
|
throw new Error("no files to audit");
|
|
415850
416141
|
}
|
|
415851
|
-
const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path:
|
|
415852
|
-
const p =
|
|
416142
|
+
const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path: path10, buffer: buffer2 }) => {
|
|
416143
|
+
const p = path10.includes("node_modules/") ? path10.replace("node_modules/", "") : meta.source;
|
|
415853
416144
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
415854
416145
|
return {
|
|
415855
416146
|
gearbox,
|
|
@@ -415869,8 +416160,8 @@ var Auditor = class {
|
|
|
415869
416160
|
*/
|
|
415870
416161
|
async auditEtherscanVerified(contract) {
|
|
415871
416162
|
const input = parseEtherscanSourceCode(contract);
|
|
415872
|
-
const files = extractFilesFromJSON(input.sources).map(({ path:
|
|
415873
|
-
const p =
|
|
416163
|
+
const files = extractFilesFromJSON(input.sources).map(({ path: path10, buffer: buffer2 }) => {
|
|
416164
|
+
const p = path10.replace("node_modules/", "");
|
|
415874
416165
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
415875
416166
|
return {
|
|
415876
416167
|
gearbox,
|
|
@@ -415933,7 +416224,7 @@ var Auditor = class {
|
|
|
415933
416224
|
const filePath = path3.resolve(this.#sandboxDir, file.repo, commitish, file.path);
|
|
415934
416225
|
try {
|
|
415935
416226
|
const content = await readFile2(filePath);
|
|
415936
|
-
|
|
416227
|
+
const matches = content.equals(file.buffer);
|
|
415937
416228
|
if (matches) {
|
|
415938
416229
|
this.#logger.trace(`file ${file.repo}/${file.path} matches with audit ${file.repo}@${commitish}`);
|
|
415939
416230
|
} else {
|
|
@@ -417404,19 +417695,19 @@ function toKey(value) {
|
|
|
417404
417695
|
var toKey_default = toKey;
|
|
417405
417696
|
|
|
417406
417697
|
// ../../node_modules/lodash-es/_baseGet.js
|
|
417407
|
-
function baseGet(object,
|
|
417408
|
-
|
|
417409
|
-
var index2 = 0, length =
|
|
417698
|
+
function baseGet(object, path10) {
|
|
417699
|
+
path10 = castPath_default(path10, object);
|
|
417700
|
+
var index2 = 0, length = path10.length;
|
|
417410
417701
|
while (object != null && index2 < length) {
|
|
417411
|
-
object = object[toKey_default(
|
|
417702
|
+
object = object[toKey_default(path10[index2++])];
|
|
417412
417703
|
}
|
|
417413
417704
|
return index2 && index2 == length ? object : void 0;
|
|
417414
417705
|
}
|
|
417415
417706
|
var baseGet_default = baseGet;
|
|
417416
417707
|
|
|
417417
417708
|
// ../../node_modules/lodash-es/get.js
|
|
417418
|
-
function get(object,
|
|
417419
|
-
var result = object == null ? void 0 : baseGet_default(object,
|
|
417709
|
+
function get(object, path10, defaultValue) {
|
|
417710
|
+
var result = object == null ? void 0 : baseGet_default(object, path10);
|
|
417420
417711
|
return result === void 0 ? defaultValue : result;
|
|
417421
417712
|
}
|
|
417422
417713
|
var get_default = get;
|
|
@@ -418365,11 +418656,11 @@ function baseHasIn(object, key) {
|
|
|
418365
418656
|
var baseHasIn_default = baseHasIn;
|
|
418366
418657
|
|
|
418367
418658
|
// ../../node_modules/lodash-es/_hasPath.js
|
|
418368
|
-
function hasPath(object,
|
|
418369
|
-
|
|
418370
|
-
var index2 = -1, length =
|
|
418659
|
+
function hasPath(object, path10, hasFunc) {
|
|
418660
|
+
path10 = castPath_default(path10, object);
|
|
418661
|
+
var index2 = -1, length = path10.length, result = false;
|
|
418371
418662
|
while (++index2 < length) {
|
|
418372
|
-
var key = toKey_default(
|
|
418663
|
+
var key = toKey_default(path10[index2]);
|
|
418373
418664
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
418374
418665
|
break;
|
|
418375
418666
|
}
|
|
@@ -418384,21 +418675,21 @@ function hasPath(object, path12, hasFunc) {
|
|
|
418384
418675
|
var hasPath_default = hasPath;
|
|
418385
418676
|
|
|
418386
418677
|
// ../../node_modules/lodash-es/hasIn.js
|
|
418387
|
-
function hasIn(object,
|
|
418388
|
-
return object != null && hasPath_default(object,
|
|
418678
|
+
function hasIn(object, path10) {
|
|
418679
|
+
return object != null && hasPath_default(object, path10, baseHasIn_default);
|
|
418389
418680
|
}
|
|
418390
418681
|
var hasIn_default = hasIn;
|
|
418391
418682
|
|
|
418392
418683
|
// ../../node_modules/lodash-es/_baseMatchesProperty.js
|
|
418393
418684
|
var COMPARE_PARTIAL_FLAG6 = 1;
|
|
418394
418685
|
var COMPARE_UNORDERED_FLAG4 = 2;
|
|
418395
|
-
function baseMatchesProperty(
|
|
418396
|
-
if (isKey_default(
|
|
418397
|
-
return matchesStrictComparable_default(toKey_default(
|
|
418686
|
+
function baseMatchesProperty(path10, srcValue) {
|
|
418687
|
+
if (isKey_default(path10) && isStrictComparable_default(srcValue)) {
|
|
418688
|
+
return matchesStrictComparable_default(toKey_default(path10), srcValue);
|
|
418398
418689
|
}
|
|
418399
418690
|
return function(object) {
|
|
418400
|
-
var objValue = get_default(object,
|
|
418401
|
-
return objValue === void 0 && objValue === srcValue ? hasIn_default(object,
|
|
418691
|
+
var objValue = get_default(object, path10);
|
|
418692
|
+
return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path10) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
|
|
418402
418693
|
};
|
|
418403
418694
|
}
|
|
418404
418695
|
var baseMatchesProperty_default = baseMatchesProperty;
|
|
@@ -418412,16 +418703,16 @@ function baseProperty(key) {
|
|
|
418412
418703
|
var baseProperty_default = baseProperty;
|
|
418413
418704
|
|
|
418414
418705
|
// ../../node_modules/lodash-es/_basePropertyDeep.js
|
|
418415
|
-
function basePropertyDeep(
|
|
418706
|
+
function basePropertyDeep(path10) {
|
|
418416
418707
|
return function(object) {
|
|
418417
|
-
return baseGet_default(object,
|
|
418708
|
+
return baseGet_default(object, path10);
|
|
418418
418709
|
};
|
|
418419
418710
|
}
|
|
418420
418711
|
var basePropertyDeep_default = basePropertyDeep;
|
|
418421
418712
|
|
|
418422
418713
|
// ../../node_modules/lodash-es/property.js
|
|
418423
|
-
function property(
|
|
418424
|
-
return isKey_default(
|
|
418714
|
+
function property(path10) {
|
|
418715
|
+
return isKey_default(path10) ? baseProperty_default(toKey_default(path10)) : basePropertyDeep_default(path10);
|
|
418425
418716
|
}
|
|
418426
418717
|
var property_default = property;
|
|
418427
418718
|
|
|
@@ -420433,7 +420724,8 @@ var Verifier = class {
|
|
|
420433
420724
|
if (errors.length) {
|
|
420434
420725
|
return {
|
|
420435
420726
|
...result,
|
|
420436
|
-
error:
|
|
420727
|
+
error: `Invalid or missing sources in:
|
|
420728
|
+
${errors.join("\n")}`
|
|
420437
420729
|
};
|
|
420438
420730
|
}
|
|
420439
420731
|
if (contracts2.length !== 1) {
|
|
@@ -420874,7 +421166,7 @@ var iUnderlyingAbi = parseAbi([
|
|
|
420874
421166
|
"function underlying() external view returns (address)"
|
|
420875
421167
|
]);
|
|
420876
421168
|
var ContractsRegisterVisitor = class extends AbstractVisitor {
|
|
420877
|
-
async _visit(entry, client,
|
|
421169
|
+
async _visit(entry, client, _block) {
|
|
420878
421170
|
const { address } = entry;
|
|
420879
421171
|
const [cms, pools] = await client.multicall({
|
|
420880
421172
|
contracts: [
|
|
@@ -420981,7 +421273,7 @@ async function loadAdapters(client, entries) {
|
|
|
420981
421273
|
const { result } = resps[i];
|
|
420982
421274
|
if (result != null) {
|
|
420983
421275
|
if (functionName === "_gearboxAdapterType") {
|
|
420984
|
-
adapterTypes.set(address,
|
|
421276
|
+
adapterTypes.set(address, `ADAPTER_${AdapterInterface[Number(result)]}`);
|
|
420985
421277
|
} else {
|
|
420986
421278
|
adapterVersions.set(address, Number(result));
|
|
420987
421279
|
}
|
|
@@ -421473,7 +421765,7 @@ var NoopVisitor = class {
|
|
|
421473
421765
|
this.#allowZeroAddress = allowZeroAddress;
|
|
421474
421766
|
this.network = network;
|
|
421475
421767
|
}
|
|
421476
|
-
async visit(entry,
|
|
421768
|
+
async visit(entry, _client, _block) {
|
|
421477
421769
|
if (!this.#allowZeroAddress && entry.address === ADDRESS_0X0) {
|
|
421478
421770
|
throw new Error(`detected ${entry.contract} with zero address`);
|
|
421479
421771
|
}
|
|
@@ -422085,6 +422377,9 @@ var MetaRepo = class {
|
|
|
422085
422377
|
}
|
|
422086
422378
|
};
|
|
422087
422379
|
|
|
422380
|
+
// ../../packages/node/dist/parsers/ACLParser.js
|
|
422381
|
+
init_exports();
|
|
422382
|
+
|
|
422088
422383
|
// ../../packages/node/dist/parsers/helpers/deprecated.js
|
|
422089
422384
|
var import_sdk_gov2 = __toESM(require_lib37(), 1);
|
|
422090
422385
|
|
|
@@ -422372,7 +422667,7 @@ var AbstractParser = class {
|
|
|
422372
422667
|
this._constructorAbis = [{ comment: "default", abi: constructors }];
|
|
422373
422668
|
}
|
|
422374
422669
|
}
|
|
422375
|
-
async parse(to, calldata, signature,
|
|
422670
|
+
async parse(to, calldata, signature, _metaRepo) {
|
|
422376
422671
|
this.logger.trace(`parsing '${signature}'...`);
|
|
422377
422672
|
const selector = slice(calldata, 0, 4);
|
|
422378
422673
|
const description = this.abi.find((x) => x.type === "function" && selector === toFunctionSelector(formatAbiItem2(x)));
|
|
@@ -422393,7 +422688,7 @@ var AbstractParser = class {
|
|
|
422393
422688
|
const parameters = description.inputs.map((input, i) => ({
|
|
422394
422689
|
name: input.name,
|
|
422395
422690
|
type: input.type,
|
|
422396
|
-
value: tx.args[i]
|
|
422691
|
+
value: tx.args?.[i]
|
|
422397
422692
|
}));
|
|
422398
422693
|
return {
|
|
422399
422694
|
to,
|
|
@@ -422479,16 +422774,7 @@ var AbstractParser = class {
|
|
|
422479
422774
|
}
|
|
422480
422775
|
};
|
|
422481
422776
|
|
|
422482
|
-
// ../../packages/node/dist/parsers/AccountFactoryV3Parser.js
|
|
422483
|
-
var AccountFactoryV3Parser = class extends AbstractParser {
|
|
422484
|
-
constructor(contractType) {
|
|
422485
|
-
super(contractType, "constructor(address addressProvider)");
|
|
422486
|
-
this._abi = iAccountFactoryV3Abi;
|
|
422487
|
-
}
|
|
422488
|
-
};
|
|
422489
|
-
|
|
422490
422777
|
// ../../packages/node/dist/parsers/ACLParser.js
|
|
422491
|
-
init_exports();
|
|
422492
422778
|
var ACLParser = class extends AbstractParser {
|
|
422493
422779
|
constructor(contractType) {
|
|
422494
422780
|
super(contractType, "constructor()");
|
|
@@ -422506,6 +422792,37 @@ var ACLParser = class extends AbstractParser {
|
|
|
422506
422792
|
}
|
|
422507
422793
|
};
|
|
422508
422794
|
|
|
422795
|
+
// ../../packages/node/dist/parsers/AccountFactoryV3Parser.js
|
|
422796
|
+
var AccountFactoryV3Parser = class extends AbstractParser {
|
|
422797
|
+
constructor(contractType) {
|
|
422798
|
+
super(contractType, "constructor(address addressProvider)");
|
|
422799
|
+
this._abi = iAccountFactoryV3Abi;
|
|
422800
|
+
}
|
|
422801
|
+
};
|
|
422802
|
+
|
|
422803
|
+
// ../../packages/node/dist/parsers/AddressProviderV1Parser.js
|
|
422804
|
+
var AddressProviderV1Parser = class extends AbstractParser {
|
|
422805
|
+
constructor(contractType) {
|
|
422806
|
+
super(contractType);
|
|
422807
|
+
this._abi = iAddressProviderV2Abi;
|
|
422808
|
+
}
|
|
422809
|
+
};
|
|
422810
|
+
|
|
422811
|
+
// ../../packages/node/dist/parsers/AddressProviderV3Parser.js
|
|
422812
|
+
var AddressProviderV3Parser = class extends AbstractParser {
|
|
422813
|
+
constructor(contractType) {
|
|
422814
|
+
super(contractType, "constructor(address acl)");
|
|
422815
|
+
this._abi = iAddressProviderV3Abi;
|
|
422816
|
+
this.parameterParsers = {
|
|
422817
|
+
"setAddress(bytes32,address,bool)": [
|
|
422818
|
+
parseBytes32String("key"),
|
|
422819
|
+
parseAddress(),
|
|
422820
|
+
void 0
|
|
422821
|
+
]
|
|
422822
|
+
};
|
|
422823
|
+
}
|
|
422824
|
+
};
|
|
422825
|
+
|
|
422509
422826
|
// ../../packages/node/dist/parsers/adapters/helpers/constants.js
|
|
422510
422827
|
var ADAPTER_HELPER_NAMES = {
|
|
422511
422828
|
BalancerV3RouterGateway: "ADAPTER_HELPER_BALANCER_V3_ROUTER_GATEWAY"
|
|
@@ -422527,7 +422844,7 @@ var BalancerV3RouterGatewayParser = class extends AbstractParser {
|
|
|
422527
422844
|
};
|
|
422528
422845
|
|
|
422529
422846
|
// ../../packages/node/dist/parsers/adapters/helpers/factory.js
|
|
422530
|
-
function adapterHelperParser(contract,
|
|
422847
|
+
function adapterHelperParser(contract, _version, _contractName) {
|
|
422531
422848
|
switch (contract) {
|
|
422532
422849
|
case "ADAPTER_HELPER_BALANCER_V3_ROUTER_GATEWAY":
|
|
422533
422850
|
return new BalancerV3RouterGatewayParser(contract);
|
|
@@ -422918,7 +423235,7 @@ var UniswapV2AdapterParser = class extends AbstractParser {
|
|
|
422918
423235
|
"setPairStatusBatch((address,address,bool)[])": [this.#parseUniswapPairs]
|
|
422919
423236
|
};
|
|
422920
423237
|
}
|
|
422921
|
-
#parseUniswapPairs(parameter,
|
|
423238
|
+
#parseUniswapPairs(parameter, _parameters) {
|
|
422922
423239
|
const keys2 = /* @__PURE__ */ new Set();
|
|
422923
423240
|
const value = [];
|
|
422924
423241
|
for (const p of parameter.value) {
|
|
@@ -422955,7 +423272,7 @@ var UniswapV3AdapterParser = class extends AbstractParser {
|
|
|
422955
423272
|
]
|
|
422956
423273
|
};
|
|
422957
423274
|
}
|
|
422958
|
-
#parseUniswapPairs(parameter,
|
|
423275
|
+
#parseUniswapPairs(parameter, _parameters) {
|
|
422959
423276
|
const keys2 = /* @__PURE__ */ new Set();
|
|
422960
423277
|
const value = [];
|
|
422961
423278
|
for (const p of parameter.value) {
|
|
@@ -423003,7 +423320,7 @@ var YearnV2AdapterParser = class extends AbstractParser {
|
|
|
423003
423320
|
};
|
|
423004
423321
|
|
|
423005
423322
|
// ../../packages/node/dist/parsers/adapters/factory.js
|
|
423006
|
-
function adapterParser(contract,
|
|
423323
|
+
function adapterParser(contract, _version, _contractName) {
|
|
423007
423324
|
switch (contract) {
|
|
423008
423325
|
case "ADAPTER_UNISWAP_V2_ROUTER":
|
|
423009
423326
|
return new UniswapV2AdapterParser(contract);
|
|
@@ -423068,29 +423385,6 @@ function adapterParser(contract, version4, contractName) {
|
|
|
423068
423385
|
}
|
|
423069
423386
|
}
|
|
423070
423387
|
|
|
423071
|
-
// ../../packages/node/dist/parsers/AddressProviderV1Parser.js
|
|
423072
|
-
var AddressProviderV1Parser = class extends AbstractParser {
|
|
423073
|
-
constructor(contractType) {
|
|
423074
|
-
super(contractType);
|
|
423075
|
-
this._abi = iAddressProviderV2Abi;
|
|
423076
|
-
}
|
|
423077
|
-
};
|
|
423078
|
-
|
|
423079
|
-
// ../../packages/node/dist/parsers/AddressProviderV3Parser.js
|
|
423080
|
-
var AddressProviderV3Parser = class extends AbstractParser {
|
|
423081
|
-
constructor(contractType) {
|
|
423082
|
-
super(contractType, "constructor(address acl)");
|
|
423083
|
-
this._abi = iAddressProviderV3Abi;
|
|
423084
|
-
this.parameterParsers = {
|
|
423085
|
-
"setAddress(bytes32,address,bool)": [
|
|
423086
|
-
parseBytes32String("key"),
|
|
423087
|
-
parseAddress(),
|
|
423088
|
-
void 0
|
|
423089
|
-
]
|
|
423090
|
-
};
|
|
423091
|
-
}
|
|
423092
|
-
};
|
|
423093
|
-
|
|
423094
423388
|
// ../../packages/node/dist/parsers/BatchChainParser.js
|
|
423095
423389
|
var BatchChainParser = class extends AbstractParser {
|
|
423096
423390
|
constructor(contractType) {
|
|
@@ -424312,7 +424606,7 @@ var ZeroPriceFeedParser = class extends AbstractParser {
|
|
|
424312
424606
|
};
|
|
424313
424607
|
|
|
424314
424608
|
// ../../packages/node/dist/parsers/feeds/factory.js
|
|
424315
|
-
function priceFeedParser(contract,
|
|
424609
|
+
function priceFeedParser(contract, _version, _contractName) {
|
|
424316
424610
|
switch (contract) {
|
|
424317
424611
|
case "PRICE_FEED_WRAPPED_AAVE_V2_ORACLE":
|
|
424318
424612
|
return new WrappedAaveV2PriceFeedParser(contract);
|
|
@@ -424783,7 +425077,7 @@ function parserForContractName(name) {
|
|
|
424783
425077
|
return parserForContractType(contractType, void 0, name);
|
|
424784
425078
|
}
|
|
424785
425079
|
function parserForContractType(contract, version4, contractName) {
|
|
424786
|
-
|
|
425080
|
+
const parser = adapterParser(contract, version4, contractName) ?? adapterHelperParser(contract, version4, contractName) ?? priceFeedParser(contract, version4, contractName);
|
|
424787
425081
|
if (parser) {
|
|
424788
425082
|
return parser;
|
|
424789
425083
|
}
|
|
@@ -425053,7 +425347,7 @@ var UpdateParser = class extends ProviderBase {
|
|
|
425053
425347
|
}
|
|
425054
425348
|
}
|
|
425055
425349
|
}
|
|
425056
|
-
async #updateUnifiedGovernor(unifiedFile,
|
|
425350
|
+
async #updateUnifiedGovernor(unifiedFile, _governor) {
|
|
425057
425351
|
const unifiedDir = path7.dirname(unifiedFile);
|
|
425058
425352
|
this.logger.debug(`reading unified governor batches from ${unifiedFile}`);
|
|
425059
425353
|
let unified = {};
|
|
@@ -425827,13 +426121,6 @@ var BaseRenderer = class {
|
|
|
425827
426121
|
}
|
|
425828
426122
|
};
|
|
425829
426123
|
|
|
425830
|
-
// src/renderer/cli/clearCli.ts
|
|
425831
|
-
function clearCli() {
|
|
425832
|
-
process.stdout.write(
|
|
425833
|
-
process.platform === "win32" ? "\x1B[2J\x1B[0f" : "\x1B[2J\x1B[3J\x1B[H"
|
|
425834
|
-
);
|
|
425835
|
-
}
|
|
425836
|
-
|
|
425837
426124
|
// src/renderer/cli/prettyPrintVerification.ts
|
|
425838
426125
|
function prettyPrintVerification(r) {
|
|
425839
426126
|
const rows = [
|
|
@@ -425939,14 +426226,15 @@ function prettyPrintVerification(r) {
|
|
|
425939
426226
|
alignment: "center"
|
|
425940
426227
|
});
|
|
425941
426228
|
rows.push([ok ? source_default.green("SUCCESS") : source_default.red("FAILED"), "", ""]);
|
|
425942
|
-
console.log(
|
|
426229
|
+
console.log(`
|
|
426230
|
+
${tableWithEmojis(rows, config)}`);
|
|
425943
426231
|
}
|
|
425944
426232
|
function stringifyAudits(audits2) {
|
|
425945
426233
|
return audits2?.map((a) => {
|
|
425946
426234
|
if (a.type === "branch") {
|
|
425947
426235
|
return `${a.comment} (${a.branch})`;
|
|
425948
426236
|
}
|
|
425949
|
-
return a.report.auditor
|
|
426237
|
+
return `${a.report.auditor} ${a.report.revision}`;
|
|
425950
426238
|
}).join(", ") ?? " ";
|
|
425951
426239
|
}
|
|
425952
426240
|
|
|
@@ -425966,7 +426254,7 @@ var Create2Renderer = class extends BaseRenderer {
|
|
|
425966
426254
|
"",
|
|
425967
426255
|
""
|
|
425968
426256
|
],
|
|
425969
|
-
[`Salt:
|
|
426257
|
+
[`Salt: ${tx.parameters[0].raw.value}`, "", ""],
|
|
425970
426258
|
[`Constructor arguments:`, "", ""],
|
|
425971
426259
|
[source_default.white("Argument"), source_default.white("Value"), source_default.white("Raw value")]
|
|
425972
426260
|
];
|
|
@@ -426023,6 +426311,13 @@ var Create2Renderer = class extends BaseRenderer {
|
|
|
426023
426311
|
}
|
|
426024
426312
|
};
|
|
426025
426313
|
|
|
426314
|
+
// src/renderer/cli/clearCli.ts
|
|
426315
|
+
function clearCli() {
|
|
426316
|
+
process.stdout.write(
|
|
426317
|
+
process.platform === "win32" ? "\x1B[2J\x1B[0f" : "\x1B[2J\x1B[3J\x1B[H"
|
|
426318
|
+
);
|
|
426319
|
+
}
|
|
426320
|
+
|
|
426026
426321
|
// src/renderer/cli/CliRenderer.ts
|
|
426027
426322
|
var CliRenderer = class {
|
|
426028
426323
|
#interactive;
|
|
@@ -426064,7 +426359,7 @@ var CliRenderer = class {
|
|
|
426064
426359
|
this.#output.batches.length
|
|
426065
426360
|
);
|
|
426066
426361
|
}
|
|
426067
|
-
#navigateInteractive(
|
|
426362
|
+
#navigateInteractive(_ch, key) {
|
|
426068
426363
|
let rerender = true;
|
|
426069
426364
|
switch (key?.name) {
|
|
426070
426365
|
case "escape":
|
|
@@ -426137,11 +426432,11 @@ var CliRenderer = class {
|
|
|
426137
426432
|
}
|
|
426138
426433
|
const prefix = total > 1 ? ` ${i + 1}/${total}` : "";
|
|
426139
426434
|
if ("error" in batch) {
|
|
426140
|
-
console.log(source_default.red(prefix
|
|
426435
|
+
console.log(source_default.red(`${prefix} ${batch.error}`));
|
|
426141
426436
|
return;
|
|
426142
426437
|
}
|
|
426143
426438
|
const { transactions } = batch;
|
|
426144
|
-
console.log(prefix
|
|
426439
|
+
console.log(`${prefix} ${batch.id}`);
|
|
426145
426440
|
console.log(`${source_default.green("TLDR")}: ${getTldr(batch)}`);
|
|
426146
426441
|
if (interactive) {
|
|
426147
426442
|
this.renderTx(
|
|
@@ -426156,7 +426451,7 @@ var CliRenderer = class {
|
|
|
426156
426451
|
}
|
|
426157
426452
|
}
|
|
426158
426453
|
renderTx(action, i, total) {
|
|
426159
|
-
|
|
426454
|
+
const header = `Action ${i + 1}/${total}`;
|
|
426160
426455
|
console.log(source_default.green(header));
|
|
426161
426456
|
const entry = container.addressTree.getContract(action.to);
|
|
426162
426457
|
if (!entry) {
|
|
@@ -426191,10 +426486,10 @@ function getTldr({ transactions }) {
|
|
|
426191
426486
|
key = "error";
|
|
426192
426487
|
} else {
|
|
426193
426488
|
const { contract, method } = tx;
|
|
426194
|
-
|
|
426489
|
+
const short = method.split("(")[0];
|
|
426195
426490
|
key = `${contract}.${short}`;
|
|
426196
426491
|
if (isDeployTransaction(tx)) {
|
|
426197
|
-
key =
|
|
426492
|
+
key = `deploy ${tx.constructorTransaction.contract}`;
|
|
426198
426493
|
}
|
|
426199
426494
|
}
|
|
426200
426495
|
const cnt = stats[key] ?? 0;
|
|
@@ -426227,137 +426522,10 @@ function audit() {
|
|
|
426227
426522
|
});
|
|
426228
426523
|
}
|
|
426229
426524
|
|
|
426230
|
-
// src/commands/execute-jsons/index.ts
|
|
426231
|
-
import path8 from "node:path";
|
|
426232
|
-
|
|
426233
|
-
// src/commands/execute-jsons/execute.ts
|
|
426234
|
-
import { readFile as readFile8 } from "node:fs/promises";
|
|
426235
|
-
async function executeJSON({
|
|
426236
|
-
jsonPath,
|
|
426237
|
-
rpcURL
|
|
426238
|
-
}) {
|
|
426239
|
-
const plain = await readFile8(jsonPath, "utf-8");
|
|
426240
|
-
const txs = json_parse(plain);
|
|
426241
|
-
if (txs.length === 0) {
|
|
426242
|
-
log_default.error("No transactions found");
|
|
426243
|
-
return;
|
|
426244
|
-
}
|
|
426245
|
-
log_default.debug(`found ${txs.length} transactions`);
|
|
426246
|
-
const client = createPublicClient({
|
|
426247
|
-
transport: http(rpcURL),
|
|
426248
|
-
pollingInterval: 50,
|
|
426249
|
-
cacheTime: 0
|
|
426250
|
-
}).extend(testActions({ mode: "anvil" }));
|
|
426251
|
-
const marketConfigurator = txs[0].to;
|
|
426252
|
-
if (!isAddress(marketConfigurator, { strict: false })) {
|
|
426253
|
-
throw new Error(
|
|
426254
|
-
`Market configurator "${marketConfigurator}" is not an address`
|
|
426255
|
-
);
|
|
426256
|
-
}
|
|
426257
|
-
log_default.debug(`Market configurator: ${marketConfigurator}`);
|
|
426258
|
-
const owner = await client.readContract({
|
|
426259
|
-
address: marketConfigurator,
|
|
426260
|
-
abi: parseAbi(["function admin() view returns (address)"]),
|
|
426261
|
-
functionName: "admin"
|
|
426262
|
-
});
|
|
426263
|
-
await client.setCode({
|
|
426264
|
-
address: owner,
|
|
426265
|
-
bytecode: "0x"
|
|
426266
|
-
});
|
|
426267
|
-
await client.setBalance({
|
|
426268
|
-
address: owner,
|
|
426269
|
-
value: parseEther("10")
|
|
426270
|
-
});
|
|
426271
|
-
await client.impersonateAccount({
|
|
426272
|
-
address: owner
|
|
426273
|
-
});
|
|
426274
|
-
const chain = await client.getChainId();
|
|
426275
|
-
const walletClient = createWalletClient({
|
|
426276
|
-
account: owner,
|
|
426277
|
-
chain: {
|
|
426278
|
-
id: chain,
|
|
426279
|
-
name: "Anvil",
|
|
426280
|
-
nativeCurrency: {
|
|
426281
|
-
name: "Ether",
|
|
426282
|
-
symbol: "ETH",
|
|
426283
|
-
decimals: 18
|
|
426284
|
-
},
|
|
426285
|
-
rpcUrls: { default: { http: [rpcURL] } }
|
|
426286
|
-
},
|
|
426287
|
-
transport: http(rpcURL),
|
|
426288
|
-
pollingInterval: 50,
|
|
426289
|
-
cacheTime: 0
|
|
426290
|
-
});
|
|
426291
|
-
for (let i = 0; i < txs.length; i++) {
|
|
426292
|
-
const tx = txs[i];
|
|
426293
|
-
log_default.debug(`Transaction ${i + 1}/${txs.length}`);
|
|
426294
|
-
log_default.debug(`To: ${tx.to}`);
|
|
426295
|
-
if (tx.contractMethod) {
|
|
426296
|
-
log_default.debug(`Method: ${tx.contractMethod.name}`);
|
|
426297
|
-
if (tx.contractInputsValues) {
|
|
426298
|
-
log_default.debug("Input Values:");
|
|
426299
|
-
Object.entries(tx.contractInputsValues).forEach(([key, value]) => {
|
|
426300
|
-
log_default.debug(` ${key}: ${value}`);
|
|
426301
|
-
});
|
|
426302
|
-
}
|
|
426303
|
-
}
|
|
426304
|
-
if (tx.description) {
|
|
426305
|
-
log_default.debug(`Description: ${tx.description}`);
|
|
426306
|
-
}
|
|
426307
|
-
log_default.debug(`Value: ${tx.value || 0} wei`);
|
|
426308
|
-
try {
|
|
426309
|
-
log_default.debug("Sending transaction...");
|
|
426310
|
-
const hash2 = await walletClient.sendTransaction({
|
|
426311
|
-
to: tx.to,
|
|
426312
|
-
value: BigInt(tx.value || 0),
|
|
426313
|
-
data: tx.callData,
|
|
426314
|
-
gas: BigInt(29e6),
|
|
426315
|
-
chain: walletClient.chain
|
|
426316
|
-
});
|
|
426317
|
-
log_default.debug(`Transaction hash: ${hash2}`);
|
|
426318
|
-
log_default.debug("Waiting for confirmation...");
|
|
426319
|
-
const receipt = await client.waitForTransactionReceipt({ hash: hash2 });
|
|
426320
|
-
log_default.debug(`Confirmed in block ${receipt.blockNumber}`);
|
|
426321
|
-
log_default.debug(`Gas used: ${receipt.gasUsed}`);
|
|
426322
|
-
log_default.debug(
|
|
426323
|
-
`Status: ${receipt.status === "success" ? "Success" : "Failed"}`
|
|
426324
|
-
);
|
|
426325
|
-
} catch (error) {
|
|
426326
|
-
log_default.error("Error executing transaction:", error);
|
|
426327
|
-
}
|
|
426328
|
-
}
|
|
426329
|
-
}
|
|
426330
|
-
|
|
426331
|
-
// src/commands/execute-jsons/index.ts
|
|
426332
|
-
function executeJson() {
|
|
426333
|
-
return newCommand().name("execute-json").description("execute json").addArgument(
|
|
426334
|
-
new Argument("<json_file_path>", "json file with transactions")
|
|
426335
|
-
).addOption(
|
|
426336
|
-
new Option("--shared-dir <dir>", "dir to put output files").env(
|
|
426337
|
-
"SHARED_DIR"
|
|
426338
|
-
)
|
|
426339
|
-
).action(async (file, opts) => {
|
|
426340
|
-
let {
|
|
426341
|
-
addressProvider,
|
|
426342
|
-
addressProviderJson,
|
|
426343
|
-
marketConfigurators,
|
|
426344
|
-
anvilUrl = "http://127.0.0.1:8545",
|
|
426345
|
-
sharedDir = "."
|
|
426346
|
-
} = opts;
|
|
426347
|
-
const jsonPath = path8.resolve(sharedDir, file);
|
|
426348
|
-
log_default.info(`executing ${jsonPath}`);
|
|
426349
|
-
await executeJSON({
|
|
426350
|
-
jsonPath,
|
|
426351
|
-
rpcURL: anvilUrl
|
|
426352
|
-
});
|
|
426353
|
-
log_default.info(`executed ${jsonPath}`);
|
|
426354
|
-
});
|
|
426355
|
-
}
|
|
426356
|
-
|
|
426357
426525
|
// src/commands/open-accounts.ts
|
|
426358
426526
|
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
426359
|
-
import { mkdir as mkdir2, readFile as
|
|
426360
|
-
import
|
|
426527
|
+
import { mkdir as mkdir2, readFile as readFile8, writeFile as writeFile5 } from "node:fs/promises";
|
|
426528
|
+
import path8 from "node:path";
|
|
426361
426529
|
|
|
426362
426530
|
// ../../node_modules/@gearbox-protocol/sdk/dist/esm/plugins/adapters/abi/adapters.js
|
|
426363
426531
|
var iBalancerV2VaultAdapterAbi2 = [
|
|
@@ -430744,12 +430912,12 @@ var UniswapV2AdapterContract = class extends AbstractAdapterContract {
|
|
|
430744
430912
|
parseFunctionParams(params) {
|
|
430745
430913
|
switch (params.functionName) {
|
|
430746
430914
|
case "swapDiffTokensForTokens": {
|
|
430747
|
-
const [leftoverAmount, rateMinRAY,
|
|
430915
|
+
const [leftoverAmount, rateMinRAY, path10, _deadline] = params.args;
|
|
430748
430916
|
const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
|
|
430749
|
-
|
|
430917
|
+
path10[0],
|
|
430750
430918
|
leftoverAmount
|
|
430751
430919
|
);
|
|
430752
|
-
const pathStr =
|
|
430920
|
+
const pathStr = path10.map((t) => this.labelAddress(t)).join(" => ");
|
|
430753
430921
|
return [
|
|
430754
430922
|
`(leftoverAmount: ${leftoverAmountStr}, rate: ${formatBN(
|
|
430755
430923
|
rateMinRAY,
|
|
@@ -430801,12 +430969,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
430801
430969
|
];
|
|
430802
430970
|
}
|
|
430803
430971
|
case "exactInput": {
|
|
430804
|
-
const [{ amountIn, amountOutMinimum, path:
|
|
430805
|
-
const pathStr = this.trackInputPath(
|
|
430806
|
-
const token = `0x${
|
|
430972
|
+
const [{ amountIn, amountOutMinimum, path: path10 }] = params.args;
|
|
430973
|
+
const pathStr = this.trackInputPath(path10);
|
|
430974
|
+
const token = `0x${path10.replace("0x", "").slice(0, 40)}`;
|
|
430807
430975
|
const amountInStr = this.sdk.tokensMeta.formatBN(token, amountIn);
|
|
430808
430976
|
const amountOutMinimumStr = this.sdk.tokensMeta.formatBN(
|
|
430809
|
-
`0x${
|
|
430977
|
+
`0x${path10.slice(-40, path10.length)}`,
|
|
430810
430978
|
amountOutMinimum
|
|
430811
430979
|
);
|
|
430812
430980
|
return [
|
|
@@ -430814,12 +430982,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
430814
430982
|
];
|
|
430815
430983
|
}
|
|
430816
430984
|
case "exactDiffInput": {
|
|
430817
|
-
const [{ leftoverAmount, rateMinRAY, path:
|
|
430985
|
+
const [{ leftoverAmount, rateMinRAY, path: path10 }] = params.args;
|
|
430818
430986
|
const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
|
|
430819
|
-
`0x${
|
|
430987
|
+
`0x${path10.replace("0x", "").slice(0, 40)}`,
|
|
430820
430988
|
leftoverAmount
|
|
430821
430989
|
);
|
|
430822
|
-
const pathStr = this.trackInputPath(
|
|
430990
|
+
const pathStr = this.trackInputPath(path10);
|
|
430823
430991
|
return [
|
|
430824
430992
|
`(leftoverAmount: ${leftoverAmountStr}, rate: ${formatBN(
|
|
430825
430993
|
rateMinRAY,
|
|
@@ -430828,14 +430996,14 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
430828
430996
|
];
|
|
430829
430997
|
}
|
|
430830
430998
|
case "exactOutput": {
|
|
430831
|
-
const [{ amountInMaximum, amountOut, path:
|
|
430832
|
-
const pathStr = this.trackOutputPath(
|
|
430999
|
+
const [{ amountInMaximum, amountOut, path: path10 }] = params.args;
|
|
431000
|
+
const pathStr = this.trackOutputPath(path10);
|
|
430833
431001
|
const amountInMaximumStr = this.sdk.tokensMeta.formatBN(
|
|
430834
|
-
`0x${
|
|
431002
|
+
`0x${path10.slice(-40, path10.length)}`,
|
|
430835
431003
|
amountInMaximum
|
|
430836
431004
|
);
|
|
430837
431005
|
const amountOutStr = this.sdk.tokensMeta.formatBN(
|
|
430838
|
-
`0x${
|
|
431006
|
+
`0x${path10.replace("0x", "").slice(0, 40)}`,
|
|
430839
431007
|
amountOut
|
|
430840
431008
|
);
|
|
430841
431009
|
return [
|
|
@@ -430859,30 +431027,30 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
430859
431027
|
return void 0;
|
|
430860
431028
|
}
|
|
430861
431029
|
}
|
|
430862
|
-
trackInputPath(
|
|
431030
|
+
trackInputPath(path10) {
|
|
430863
431031
|
let result = "";
|
|
430864
|
-
let pointer =
|
|
430865
|
-
while (pointer <=
|
|
430866
|
-
const from5 = `0x${
|
|
431032
|
+
let pointer = path10.startsWith("0x") ? 2 : 0;
|
|
431033
|
+
while (pointer <= path10.length - 40) {
|
|
431034
|
+
const from5 = `0x${path10.slice(pointer, pointer + 40)}`.toLowerCase();
|
|
430867
431035
|
result += this.sdk.tokensMeta.symbol(from5) || from5;
|
|
430868
431036
|
pointer += 40;
|
|
430869
|
-
if (pointer >
|
|
430870
|
-
const fee = parseInt(
|
|
431037
|
+
if (pointer > path10.length - 6) return result;
|
|
431038
|
+
const fee = parseInt(path10.slice(pointer, pointer + 6), 16);
|
|
430871
431039
|
pointer += 6;
|
|
430872
431040
|
result += ` ==(fee: ${fee})==> `;
|
|
430873
431041
|
}
|
|
430874
431042
|
return result;
|
|
430875
431043
|
}
|
|
430876
|
-
trackOutputPath(
|
|
431044
|
+
trackOutputPath(path10) {
|
|
430877
431045
|
let result = "";
|
|
430878
|
-
let pointer =
|
|
431046
|
+
let pointer = path10.length;
|
|
430879
431047
|
while (pointer >= 40) {
|
|
430880
431048
|
pointer -= 40;
|
|
430881
|
-
const from5 = `0x${
|
|
431049
|
+
const from5 = `0x${path10.slice(pointer, pointer + 40)}`;
|
|
430882
431050
|
result += this.sdk.tokensMeta.symbol(from5) || from5;
|
|
430883
431051
|
if (pointer < 6) return result;
|
|
430884
431052
|
pointer -= 6;
|
|
430885
|
-
const fee = parseInt(
|
|
431053
|
+
const fee = parseInt(path10.slice(pointer, pointer + 6), 16);
|
|
430886
431054
|
result += ` ==(fee: ${fee})==> `;
|
|
430887
431055
|
}
|
|
430888
431056
|
return result;
|
|
@@ -431016,7 +431184,7 @@ function openAccounts() {
|
|
|
431016
431184
|
)
|
|
431017
431185
|
).action(async (opts) => {
|
|
431018
431186
|
log_default.info("starting sdk v3.1 example");
|
|
431019
|
-
|
|
431187
|
+
const {
|
|
431020
431188
|
addressProvider,
|
|
431021
431189
|
marketConfigurators,
|
|
431022
431190
|
anvilUrl = "http://127.0.0.1:8545",
|
|
@@ -431024,7 +431192,7 @@ function openAccounts() {
|
|
|
431024
431192
|
castBin = "cast",
|
|
431025
431193
|
inputJson
|
|
431026
431194
|
} = opts;
|
|
431027
|
-
await mkdir2(
|
|
431195
|
+
await mkdir2(path8.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
431028
431196
|
const transportOptions = getSDKTransportOptions({
|
|
431029
431197
|
...opts,
|
|
431030
431198
|
anvilUrl
|
|
@@ -431094,17 +431262,17 @@ function openAccounts() {
|
|
|
431094
431262
|
];
|
|
431095
431263
|
try {
|
|
431096
431264
|
if (inputJson) {
|
|
431097
|
-
accounts = await
|
|
431265
|
+
accounts = await readFile8(inputJson, "utf-8").then(JSON.parse);
|
|
431098
431266
|
}
|
|
431099
431267
|
} catch (e) {
|
|
431100
431268
|
log_default.error(`failed to read input json: ${e}`);
|
|
431101
431269
|
}
|
|
431102
431270
|
try {
|
|
431103
431271
|
const results = await accountOpener.openCreditAccounts(accounts, true);
|
|
431104
|
-
const destDir =
|
|
431272
|
+
const destDir = path8.resolve(sharedDir, "open-accounts");
|
|
431105
431273
|
await mkdir2(destDir, { recursive: true });
|
|
431106
431274
|
await writeFile5(
|
|
431107
|
-
|
|
431275
|
+
path8.resolve(destDir, "results.json"),
|
|
431108
431276
|
json_stringify(results),
|
|
431109
431277
|
"utf-8"
|
|
431110
431278
|
);
|
|
@@ -431163,8 +431331,8 @@ async function runCast(result, index2, opts) {
|
|
|
431163
431331
|
anvilUrl,
|
|
431164
431332
|
"--private-key",
|
|
431165
431333
|
privateKey,
|
|
431166
|
-
rawTx
|
|
431167
|
-
rawTx
|
|
431334
|
+
rawTx?.to,
|
|
431335
|
+
rawTx?.callData
|
|
431168
431336
|
];
|
|
431169
431337
|
}
|
|
431170
431338
|
if (!args.length) {
|
|
@@ -431177,7 +431345,7 @@ async function runCastCmd(args, traceId, opts) {
|
|
|
431177
431345
|
const argsStr = args.join(" ").replace(privateKey, "<pk>");
|
|
431178
431346
|
log_default.debug(`running ${castBin} ${argsStr}`);
|
|
431179
431347
|
try {
|
|
431180
|
-
const traceFile =
|
|
431348
|
+
const traceFile = path8.resolve(destDir, `${traceId}.trace`);
|
|
431181
431349
|
const cast = spawnSync3(castBin, args, { encoding: "utf-8", stdio: "pipe" });
|
|
431182
431350
|
if (cast.error) {
|
|
431183
431351
|
log_default.warn(`failed to run cast: ${cast.error}`);
|
|
@@ -431194,20 +431362,20 @@ async function runCastCmd(args, traceId, opts) {
|
|
|
431194
431362
|
import { writeFile as writeFile6 } from "node:fs/promises";
|
|
431195
431363
|
|
|
431196
431364
|
// src/renderer/html/HtmlRenderer.tsx
|
|
431197
|
-
var import_react = __toESM(require_react(), 1);
|
|
431198
431365
|
var import_server = __toESM(require_server_node(), 1);
|
|
431366
|
+
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
431199
431367
|
import { writeFileSync } from "node:fs";
|
|
431200
|
-
import
|
|
431368
|
+
import path9 from "node:path";
|
|
431201
431369
|
var HtmlRenderer = class {
|
|
431202
431370
|
#htmlFile;
|
|
431203
431371
|
constructor(opts) {
|
|
431204
431372
|
if (!opts.htmlFile) {
|
|
431205
431373
|
throw new Error(`output HTML file not specified`);
|
|
431206
431374
|
}
|
|
431207
|
-
this.#htmlFile =
|
|
431375
|
+
this.#htmlFile = path9.resolve(opts.htmlFile);
|
|
431208
431376
|
}
|
|
431209
|
-
render(
|
|
431210
|
-
const html = (0, import_server.renderToString)(/* @__PURE__ */
|
|
431377
|
+
render(_updates) {
|
|
431378
|
+
const html = (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}));
|
|
431211
431379
|
const template = `<!DOCTYPE html>
|
|
431212
431380
|
<html>
|
|
431213
431381
|
<head>
|
|
@@ -431237,7 +431405,7 @@ function getRenderer(opts) {
|
|
|
431237
431405
|
var package_default = {
|
|
431238
431406
|
name: "@gearbox-protocol/deploy-tools",
|
|
431239
431407
|
description: "Gearbox deploy tools",
|
|
431240
|
-
version: "5.36.
|
|
431408
|
+
version: "5.36.16",
|
|
431241
431409
|
homepage: "https://gearbox.fi",
|
|
431242
431410
|
keywords: [
|
|
431243
431411
|
"gearbox"
|
|
@@ -431262,10 +431430,6 @@ var package_default = {
|
|
|
431262
431430
|
clean: "rm -rf ./dist",
|
|
431263
431431
|
build: "node esbuild.config.mjs",
|
|
431264
431432
|
start: `sh -c 'tsx --env-file .env src/index.ts "$@" | pino-pretty --colorize' --`,
|
|
431265
|
-
prettier: "prettier --write .",
|
|
431266
|
-
"prettier:ci": "npx prettier --check .",
|
|
431267
|
-
lint: 'eslint "**/*.ts" --fix',
|
|
431268
|
-
"lint:ci": 'eslint "**/*.ts"',
|
|
431269
431433
|
"typecheck:ci": "tsc --noEmit",
|
|
431270
431434
|
prepublishOnly: "yarn build",
|
|
431271
431435
|
"package:version": "yarn version"
|
|
@@ -431293,7 +431457,6 @@ var package_default = {
|
|
|
431293
431457
|
"date-fns": "^4.1.0",
|
|
431294
431458
|
dotenv: "^16.5.0",
|
|
431295
431459
|
esbuild: "^0.25.5",
|
|
431296
|
-
"lint-staged": "^16.1.2",
|
|
431297
431460
|
"lodash-es": "^4.17.21",
|
|
431298
431461
|
"p-retry": "^6.2.1",
|
|
431299
431462
|
pino: "^9.7.0",
|
|
@@ -431306,15 +431469,6 @@ var package_default = {
|
|
|
431306
431469
|
viem: "^2.31.4",
|
|
431307
431470
|
yaml: "^2.8.0",
|
|
431308
431471
|
zod: "^3.25.67"
|
|
431309
|
-
},
|
|
431310
|
-
prettier: "@gearbox-protocol/prettier-config",
|
|
431311
|
-
"lint-staged": {
|
|
431312
|
-
"*.{ts,tsx}": [
|
|
431313
|
-
"eslint --fix",
|
|
431314
|
-
"prettier --write"
|
|
431315
|
-
],
|
|
431316
|
-
"*.{json,md}": "prettier --write",
|
|
431317
|
-
"*.sol": "forge fmt"
|
|
431318
431472
|
}
|
|
431319
431473
|
};
|
|
431320
431474
|
|
|
@@ -431399,7 +431553,7 @@ function parse() {
|
|
|
431399
431553
|
var import_table2 = __toESM(require_src10(), 1);
|
|
431400
431554
|
function prices() {
|
|
431401
431555
|
return newCommand().name("prices").description("Get current prices using Gearbox SDK").action(async (opts) => {
|
|
431402
|
-
|
|
431556
|
+
const { addressProvider, marketConfigurators } = opts;
|
|
431403
431557
|
const transportOptions = getSDKTransportOptions(opts);
|
|
431404
431558
|
const sdk = await GearboxSDK.attach({
|
|
431405
431559
|
...transportOptions,
|
|
@@ -431500,9 +431654,8 @@ function printSafeTx() {
|
|
|
431500
431654
|
});
|
|
431501
431655
|
}
|
|
431502
431656
|
|
|
431503
|
-
// src/commands/
|
|
431504
|
-
import {
|
|
431505
|
-
import path11 from "node:path";
|
|
431657
|
+
// src/commands/state-snapshot.ts
|
|
431658
|
+
import { writeFile as writeFile7 } from "node:fs/promises";
|
|
431506
431659
|
|
|
431507
431660
|
// ../../node_modules/@gearbox-protocol/sdk/dist/esm/plugins/bots/abi/iPartialLiquidationBotV300.js
|
|
431508
431661
|
var iPartialLiquidationBotV300Abi = [
|
|
@@ -432085,65 +432238,46 @@ var ZappersPlugin = class extends BasePlugin {
|
|
|
432085
432238
|
}
|
|
432086
432239
|
};
|
|
432087
432240
|
|
|
432088
|
-
// src/commands/
|
|
432089
|
-
function
|
|
432090
|
-
return newCommand().name("
|
|
432091
|
-
new Option("--
|
|
432092
|
-
"
|
|
432241
|
+
// src/commands/state-snapshot.ts
|
|
432242
|
+
function stateSnapshot() {
|
|
432243
|
+
return newCommand().name("state-snapshot").description("Saves SDK state snapshot to json file").addOption(
|
|
432244
|
+
new Option("--output-json <file>", "json state location").env(
|
|
432245
|
+
"OUTPUT_JSON"
|
|
432093
432246
|
)
|
|
432094
432247
|
).action(async (opts) => {
|
|
432095
|
-
log_default.info("starting
|
|
432096
|
-
|
|
432248
|
+
log_default.info("starting state snapshot script");
|
|
432249
|
+
const {
|
|
432097
432250
|
addressProvider,
|
|
432098
432251
|
marketConfigurators,
|
|
432099
432252
|
anvilUrl = "http://127.0.0.1:8545",
|
|
432100
|
-
|
|
432253
|
+
outputJson = "state.json"
|
|
432101
432254
|
} = opts;
|
|
432102
|
-
|
|
432103
|
-
|
|
432104
|
-
|
|
432105
|
-
|
|
432106
|
-
|
|
432107
|
-
|
|
432108
|
-
|
|
432109
|
-
|
|
432110
|
-
|
|
432111
|
-
|
|
432112
|
-
|
|
432113
|
-
|
|
432114
|
-
|
|
432115
|
-
|
|
432116
|
-
|
|
432117
|
-
|
|
432118
|
-
|
|
432119
|
-
|
|
432120
|
-
|
|
432121
|
-
|
|
432122
|
-
adapters: new AdaptersPlugin(true),
|
|
432123
|
-
zappers: new ZappersPlugin(true),
|
|
432124
|
-
bots: new BotsPlugin(true),
|
|
432125
|
-
stalenessV300: new V300StalenessPeriodPlugin(true)
|
|
432126
|
-
}
|
|
432127
|
-
});
|
|
432128
|
-
await writeFile7(
|
|
432129
|
-
path11.resolve(sharedDir, "deploy-state", "stateAfter.human.json"),
|
|
432130
|
-
json_stringify(sdk.stateHuman()),
|
|
432131
|
-
"utf-8"
|
|
432132
|
-
);
|
|
432133
|
-
await writeFile7(
|
|
432134
|
-
path11.resolve(sharedDir, "deploy-state", "stateAfter.json"),
|
|
432135
|
-
json_stringify(sdk.state),
|
|
432136
|
-
"utf-8"
|
|
432137
|
-
);
|
|
432138
|
-
} finally {
|
|
432139
|
-
await anvil.removeBlockTimestampInterval();
|
|
432140
|
-
}
|
|
432255
|
+
const transportOptions = getSDKTransportOptions({
|
|
432256
|
+
...opts,
|
|
432257
|
+
anvilUrl
|
|
432258
|
+
});
|
|
432259
|
+
const sdk = await GearboxSDK.attach({
|
|
432260
|
+
...transportOptions,
|
|
432261
|
+
timeout: 48e4,
|
|
432262
|
+
addressProvider,
|
|
432263
|
+
marketConfigurators,
|
|
432264
|
+
logger: log_default,
|
|
432265
|
+
ignoreUpdateablePrices: false,
|
|
432266
|
+
strictContractTypes: true,
|
|
432267
|
+
plugins: {
|
|
432268
|
+
adapters: new AdaptersPlugin(true),
|
|
432269
|
+
zappers: new ZappersPlugin(true),
|
|
432270
|
+
bots: new BotsPlugin(true),
|
|
432271
|
+
stalenessV300: new V300StalenessPeriodPlugin(true)
|
|
432272
|
+
}
|
|
432273
|
+
});
|
|
432274
|
+
await writeFile7(outputJson, json_stringify(sdk.state), "utf-8");
|
|
432141
432275
|
log_default.info("done");
|
|
432142
432276
|
});
|
|
432143
432277
|
}
|
|
432144
432278
|
|
|
432145
432279
|
// src/commands/verify-etherscan.ts
|
|
432146
|
-
import { readFile as
|
|
432280
|
+
import { readFile as readFile9 } from "node:fs/promises";
|
|
432147
432281
|
function verifyEtherscan() {
|
|
432148
432282
|
return newCommand().name("verify-etherscan").description(
|
|
432149
432283
|
"performs bulk verification of gearbox contracts using etherscan"
|
|
@@ -432158,7 +432292,7 @@ function verifyEtherscan() {
|
|
|
432158
432292
|
}
|
|
432159
432293
|
let addresses = opts.addresses ?? [];
|
|
432160
432294
|
if (addresses.length === 0 && opts.addressesFile) {
|
|
432161
|
-
const content = await
|
|
432295
|
+
const content = await readFile9(opts.addressesFile, "utf-8");
|
|
432162
432296
|
addresses = Object.keys(json_parse(content));
|
|
432163
432297
|
}
|
|
432164
432298
|
if (!addresses.length) {
|
|
@@ -432179,9 +432313,8 @@ program2.addCommand(openAccounts());
|
|
|
432179
432313
|
program2.addCommand(parse());
|
|
432180
432314
|
program2.addCommand(prices());
|
|
432181
432315
|
program2.addCommand(printSafeTx());
|
|
432182
|
-
program2.addCommand(
|
|
432316
|
+
program2.addCommand(stateSnapshot());
|
|
432183
432317
|
program2.addCommand(verifyEtherscan());
|
|
432184
|
-
program2.addCommand(executeJson());
|
|
432185
432318
|
program2.parse();
|
|
432186
432319
|
/*! Bundled license information:
|
|
432187
432320
|
|
|
@@ -432435,6 +432568,28 @@ react-dom/cjs/react-dom-server.node.development.js:
|
|
|
432435
432568
|
* LICENSE file in the root directory of this source tree.
|
|
432436
432569
|
*)
|
|
432437
432570
|
|
|
432571
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
432572
|
+
(**
|
|
432573
|
+
* @license React
|
|
432574
|
+
* react-jsx-runtime.production.js
|
|
432575
|
+
*
|
|
432576
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
432577
|
+
*
|
|
432578
|
+
* This source code is licensed under the MIT license found in the
|
|
432579
|
+
* LICENSE file in the root directory of this source tree.
|
|
432580
|
+
*)
|
|
432581
|
+
|
|
432582
|
+
react/cjs/react-jsx-runtime.development.js:
|
|
432583
|
+
(**
|
|
432584
|
+
* @license React
|
|
432585
|
+
* react-jsx-runtime.development.js
|
|
432586
|
+
*
|
|
432587
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
432588
|
+
*
|
|
432589
|
+
* This source code is licensed under the MIT license found in the
|
|
432590
|
+
* LICENSE file in the root directory of this source tree.
|
|
432591
|
+
*)
|
|
432592
|
+
|
|
432438
432593
|
lodash-es/lodash.js:
|
|
432439
432594
|
(**
|
|
432440
432595
|
* @license
|