@settlemint/sdk-cli 2.3.2-pr6c3d348a → 2.3.2-pr8e5bdf14
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/cli.js +358 -527
- package/dist/cli.js.map +13 -15
- package/package.json +4 -3
package/dist/cli.js
CHANGED
@@ -232319,7 +232319,7 @@ var init_toBytes = __esm(() => {
|
|
232319
232319
|
};
|
232320
232320
|
});
|
232321
232321
|
|
232322
|
-
// ../../node_modules
|
232322
|
+
// ../../node_modules/@noble/hashes/esm/_assert.js
|
232323
232323
|
function anumber(n6) {
|
232324
232324
|
if (!Number.isSafeInteger(n6) || n6 < 0)
|
232325
232325
|
throw new Error("positive integer expected, got " + n6);
|
@@ -232354,7 +232354,7 @@ function aoutput(out, instance) {
|
|
232354
232354
|
}
|
232355
232355
|
var init__assert = () => {};
|
232356
232356
|
|
232357
|
-
// ../../node_modules
|
232357
|
+
// ../../node_modules/@noble/hashes/esm/_u64.js
|
232358
232358
|
function fromBig(n6, le4 = false) {
|
232359
232359
|
if (le4)
|
232360
232360
|
return { h: Number(n6 & U32_MASK64), l: Number(n6 >> _32n & U32_MASK64) };
|
@@ -232375,14 +232375,14 @@ var init__u64 = __esm(() => {
|
|
232375
232375
|
_32n = /* @__PURE__ */ BigInt(32);
|
232376
232376
|
});
|
232377
232377
|
|
232378
|
-
// ../../node_modules
|
232378
|
+
// ../../node_modules/@noble/hashes/esm/cryptoNode.js
|
232379
232379
|
import * as nc from "node:crypto";
|
232380
232380
|
var crypto2;
|
232381
232381
|
var init_cryptoNode = __esm(() => {
|
232382
232382
|
crypto2 = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && ("randomBytes" in nc) ? nc : undefined;
|
232383
232383
|
});
|
232384
232384
|
|
232385
|
-
// ../../node_modules
|
232385
|
+
// ../../node_modules/@noble/hashes/esm/utils.js
|
232386
232386
|
function u32(arr) {
|
232387
232387
|
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
232388
232388
|
}
|
@@ -232466,7 +232466,7 @@ var init_utils2 = __esm(() => {
|
|
232466
232466
|
hasHexBuiltin = typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
|
232467
232467
|
});
|
232468
232468
|
|
232469
|
-
// ../../node_modules
|
232469
|
+
// ../../node_modules/@noble/hashes/esm/sha3.js
|
232470
232470
|
function keccakP(s7, rounds = 24) {
|
232471
232471
|
const B4 = new Uint32Array(5 * 2);
|
232472
232472
|
for (let round = 24 - rounds;round < 24; round++) {
|
@@ -234796,7 +234796,7 @@ var init_rpc = __esm(() => {
|
|
234796
234796
|
};
|
234797
234797
|
});
|
234798
234798
|
|
234799
|
-
// ../../node_modules
|
234799
|
+
// ../../node_modules/@noble/hashes/esm/_md.js
|
234800
234800
|
function setBigUint64(view, byteOffset, value4, isLE2) {
|
234801
234801
|
if (typeof view.setBigUint64 === "function")
|
234802
234802
|
return view.setBigUint64(byteOffset, value4, isLE2);
|
@@ -234907,7 +234907,7 @@ var init__md = __esm(() => {
|
|
234907
234907
|
};
|
234908
234908
|
});
|
234909
234909
|
|
234910
|
-
// ../../node_modules
|
234910
|
+
// ../../node_modules/@noble/hashes/esm/sha256.js
|
234911
234911
|
var SHA256_K, SHA256_IV, SHA256_W, SHA256, sha256;
|
234912
234912
|
var init_sha256 = __esm(() => {
|
234913
234913
|
init__md();
|
@@ -235061,12 +235061,12 @@ var init_sha256 = __esm(() => {
|
|
235061
235061
|
sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256);
|
235062
235062
|
});
|
235063
235063
|
|
235064
|
-
// ../../node_modules
|
235064
|
+
// ../../node_modules/@noble/hashes/esm/sha2.js
|
235065
235065
|
var init_sha2 = __esm(() => {
|
235066
235066
|
init_sha256();
|
235067
235067
|
});
|
235068
235068
|
|
235069
|
-
// ../../node_modules
|
235069
|
+
// ../../node_modules/@noble/hashes/esm/hmac.js
|
235070
235070
|
var HMAC, hmac = (hash2, key2, message) => new HMAC(hash2, key2).update(message).digest();
|
235071
235071
|
var init_hmac = __esm(() => {
|
235072
235072
|
init__assert();
|
@@ -235135,7 +235135,7 @@ var init_hmac = __esm(() => {
|
|
235135
235135
|
hmac.create = (hash2, key2) => new HMAC(hash2, key2);
|
235136
235136
|
});
|
235137
235137
|
|
235138
|
-
// ../../node_modules
|
235138
|
+
// ../../node_modules/@noble/curves/esm/abstract/utils.js
|
235139
235139
|
function isBytes2(a7) {
|
235140
235140
|
return a7 instanceof Uint8Array || ArrayBuffer.isView(a7) && a7.constructor.name === "Uint8Array";
|
235141
235141
|
}
|
@@ -235358,7 +235358,7 @@ var init_utils3 = __esm(() => {
|
|
235358
235358
|
};
|
235359
235359
|
});
|
235360
235360
|
|
235361
|
-
// ../../node_modules
|
235361
|
+
// ../../node_modules/@noble/curves/esm/abstract/modular.js
|
235362
235362
|
function mod(a7, b4) {
|
235363
235363
|
const result = a7 % b4;
|
235364
235364
|
return result >= _0n3 ? result : b4 + result;
|
@@ -235635,7 +235635,7 @@ var init_modular = __esm(() => {
|
|
235635
235635
|
];
|
235636
235636
|
});
|
235637
235637
|
|
235638
|
-
// ../../node_modules
|
235638
|
+
// ../../node_modules/@noble/curves/esm/abstract/curve.js
|
235639
235639
|
function constTimeNegate(condition, item) {
|
235640
235640
|
const neg = item.negate();
|
235641
235641
|
return condition ? neg : item;
|
@@ -235836,7 +235836,7 @@ var init_curve = __esm(() => {
|
|
235836
235836
|
pointWindowSizes = new WeakMap;
|
235837
235837
|
});
|
235838
235838
|
|
235839
|
-
// ../../node_modules
|
235839
|
+
// ../../node_modules/@noble/curves/esm/abstract/weierstrass.js
|
235840
235840
|
function validateSigVerOpts(opts) {
|
235841
235841
|
if (opts.lowS !== undefined)
|
235842
235842
|
abool("lowS", opts.lowS);
|
@@ -236733,7 +236733,7 @@ var init_weierstrass = __esm(() => {
|
|
236733
236733
|
_4n2 = BigInt(4);
|
236734
236734
|
});
|
236735
236735
|
|
236736
|
-
// ../../node_modules
|
236736
|
+
// ../../node_modules/@noble/curves/esm/_shortw_utils.js
|
236737
236737
|
function getHash(hash2) {
|
236738
236738
|
return {
|
236739
236739
|
hash: hash2,
|
@@ -236752,7 +236752,7 @@ var init__shortw_utils = __esm(() => {
|
|
236752
236752
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
236753
236753
|
});
|
236754
236754
|
|
236755
|
-
// ../../node_modules
|
236755
|
+
// ../../node_modules/@noble/curves/esm/abstract/hash-to-curve.js
|
236756
236756
|
function i2osp(value4, length) {
|
236757
236757
|
anum(value4);
|
236758
236758
|
anum(length);
|
@@ -236896,7 +236896,7 @@ var init_hash_to_curve = __esm(() => {
|
|
236896
236896
|
os2ip = bytesToNumberBE;
|
236897
236897
|
});
|
236898
236898
|
|
236899
|
-
// ../../node_modules
|
236899
|
+
// ../../node_modules/@noble/curves/esm/secp256k1.js
|
236900
236900
|
var exports_secp256k1 = {};
|
236901
236901
|
__export(exports_secp256k1, {
|
236902
236902
|
secp256k1: () => secp256k1,
|
@@ -240012,7 +240012,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
240012
240012
|
else
|
240013
240013
|
end = lineWidth - indentAtStart;
|
240014
240014
|
}
|
240015
|
-
let
|
240015
|
+
let split4 = undefined;
|
240016
240016
|
let prev = undefined;
|
240017
240017
|
let overflow = false;
|
240018
240018
|
let i7 = -1;
|
@@ -240046,20 +240046,20 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
240046
240046
|
if (mode === FOLD_BLOCK)
|
240047
240047
|
i7 = consumeMoreIndentedLines(text2, i7, indent2.length);
|
240048
240048
|
end = i7 + indent2.length + endStep;
|
240049
|
-
|
240049
|
+
split4 = undefined;
|
240050
240050
|
} else {
|
240051
240051
|
if (ch === " " && prev && prev !== " " && prev !== `
|
240052
240052
|
` && prev !== "\t") {
|
240053
240053
|
const next = text2[i7 + 1];
|
240054
240054
|
if (next && next !== " " && next !== `
|
240055
240055
|
` && next !== "\t")
|
240056
|
-
|
240056
|
+
split4 = i7;
|
240057
240057
|
}
|
240058
240058
|
if (i7 >= end) {
|
240059
|
-
if (
|
240060
|
-
folds.push(
|
240061
|
-
end =
|
240062
|
-
|
240059
|
+
if (split4) {
|
240060
|
+
folds.push(split4);
|
240061
|
+
end = split4 + endStep;
|
240062
|
+
split4 = undefined;
|
240063
240063
|
} else if (mode === FOLD_QUOTED) {
|
240064
240064
|
while (prev === " " || prev === "\t") {
|
240065
240065
|
prev = ch;
|
@@ -240072,7 +240072,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
240072
240072
|
folds.push(j4);
|
240073
240073
|
escapedFolds[j4] = true;
|
240074
240074
|
end = j4 + endStep;
|
240075
|
-
|
240075
|
+
split4 = undefined;
|
240076
240076
|
} else {
|
240077
240077
|
overflow = true;
|
240078
240078
|
}
|
@@ -242163,7 +242163,7 @@ var require_Schema = __commonJS((exports) => {
|
|
242163
242163
|
var seq = require_seq();
|
242164
242164
|
var string4 = require_string();
|
242165
242165
|
var tags = require_tags();
|
242166
|
-
var sortMapEntriesByKey = (a8,
|
242166
|
+
var sortMapEntriesByKey = (a8, b5) => a8.key < b5.key ? -1 : a8.key > b5.key ? 1 : 0;
|
242167
242167
|
|
242168
242168
|
class Schema {
|
242169
242169
|
constructor({ compat: compat2, customTags, merge: merge4, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
@@ -242758,7 +242758,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
242758
242758
|
const { uniqueKeys } = ctx.options;
|
242759
242759
|
if (uniqueKeys === false)
|
242760
242760
|
return false;
|
242761
|
-
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a8,
|
242761
|
+
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a8, b5) => a8 === b5 || identity2.isScalar(a8) && identity2.isScalar(b5) && a8.value === b5.value;
|
242762
242762
|
return items.some((pair) => isEqual(pair.key, search));
|
242763
242763
|
}
|
242764
242764
|
exports.mapIncludes = mapIncludes;
|
@@ -243393,13 +243393,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
243393
243393
|
return { mode, indent: indent2, chomp, comment, length };
|
243394
243394
|
}
|
243395
243395
|
function splitLines(source) {
|
243396
|
-
const
|
243397
|
-
const first =
|
243396
|
+
const split4 = source.split(/\n( *)/);
|
243397
|
+
const first = split4[0];
|
243398
243398
|
const m8 = first.match(/^( *)/);
|
243399
243399
|
const line0 = m8?.[1] ? [m8[1], first.slice(m8[1].length)] : ["", first];
|
243400
243400
|
const lines2 = [line0];
|
243401
|
-
for (let i7 = 1;i7 <
|
243402
|
-
lines2.push([
|
243401
|
+
for (let i7 = 1;i7 < split4.length; i7 += 2)
|
243402
|
+
lines2.push([split4[i7], split4[i7 + 1]]);
|
243403
243403
|
return lines2;
|
243404
243404
|
}
|
243405
243405
|
exports.resolveBlockScalar = resolveBlockScalar;
|
@@ -262458,7 +262458,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
262458
262458
|
var package_default = {
|
262459
262459
|
name: "@settlemint/sdk-cli",
|
262460
262460
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
262461
|
-
version: "2.3.2-
|
262461
|
+
version: "2.3.2-pr8e5bdf14",
|
262462
262462
|
type: "module",
|
262463
262463
|
private: false,
|
262464
262464
|
license: "FSL-1.1-MIT",
|
@@ -262507,8 +262507,8 @@ var package_default = {
|
|
262507
262507
|
"@inquirer/input": "4.1.10",
|
262508
262508
|
"@inquirer/password": "4.0.13",
|
262509
262509
|
"@inquirer/select": "4.2.1",
|
262510
|
-
"@settlemint/sdk-js": "2.3.2-
|
262511
|
-
"@settlemint/sdk-utils": "2.3.2-
|
262510
|
+
"@settlemint/sdk-js": "2.3.2-pr8e5bdf14",
|
262511
|
+
"@settlemint/sdk-utils": "2.3.2-pr8e5bdf14",
|
262512
262512
|
"@types/node": "22.15.21",
|
262513
262513
|
"@types/semver": "7.7.0",
|
262514
262514
|
"@types/which": "3.0.4",
|
@@ -262517,6 +262517,7 @@ var package_default = {
|
|
262517
262517
|
"is-in-ci": "1.0.0",
|
262518
262518
|
semver: "7.7.2",
|
262519
262519
|
slugify: "1.6.6",
|
262520
|
+
viem: "2.30.0",
|
262520
262521
|
which: "5.0.0",
|
262521
262522
|
yaml: "2.8.0",
|
262522
262523
|
yoctocolors: "2.1.1"
|
@@ -263885,6 +263886,20 @@ async function graphqlFetchWithRetry(input, init, maxRetries = 5, initialSleepTi
|
|
263885
263886
|
return json2.data;
|
263886
263887
|
}, maxRetries, initialSleepTime);
|
263887
263888
|
}
|
263889
|
+
function appendHeaders(headers, additionalHeaders) {
|
263890
|
+
const defaultHeaders = typeof headers === "function" ? headers() : headers;
|
263891
|
+
const filteredAdditionalHeaders = Object.entries(additionalHeaders).filter(([_, value]) => value !== undefined);
|
263892
|
+
if (Array.isArray(defaultHeaders)) {
|
263893
|
+
return [...defaultHeaders, ...filteredAdditionalHeaders];
|
263894
|
+
}
|
263895
|
+
if (defaultHeaders instanceof Headers) {
|
263896
|
+
return new Headers([...defaultHeaders, ...filteredAdditionalHeaders]);
|
263897
|
+
}
|
263898
|
+
return {
|
263899
|
+
...defaultHeaders,
|
263900
|
+
...Object.fromEntries(filteredAdditionalHeaders)
|
263901
|
+
};
|
263902
|
+
}
|
263888
263903
|
|
263889
263904
|
// ../../node_modules/environment/index.js
|
263890
263905
|
var isBrowser = globalThis.window?.document !== undefined;
|
@@ -266138,6 +266153,9 @@ function getPincodeVerificationChallengeResponse({
|
|
266138
266153
|
}
|
266139
266154
|
function createSettleMintClient(options) {
|
266140
266155
|
ensureServer();
|
266156
|
+
if (options.instance === STANDALONE_INSTANCE2) {
|
266157
|
+
throw new Error("Standalone instances cannot connect to the SettleMint platform");
|
266158
|
+
}
|
266141
266159
|
const validatedOptions = options.anonymous ? validate2(exports_external.object({
|
266142
266160
|
...ClientOptionsSchema.shape,
|
266143
266161
|
accessToken: exports_external.literal("")
|
@@ -267229,7 +267247,9 @@ async function validateSdkVersionFromCommand(command, interval = 5 * 60 * 1000)
|
|
267229
267247
|
}
|
267230
267248
|
await setLastSdkVersionCheck(new Date(now).toJSON());
|
267231
267249
|
const instance = await getInstanceFromCommand(command);
|
267232
|
-
|
267250
|
+
if (instance !== STANDALONE_INSTANCE2) {
|
267251
|
+
await validateSdkVersion(instance);
|
267252
|
+
}
|
267233
267253
|
}
|
267234
267254
|
async function validateSdkVersion(instance) {
|
267235
267255
|
const settlemint = createSettleMintClient({
|
@@ -272854,297 +272874,13 @@ async function simulateBlocks(client, parameters) {
|
|
272854
272874
|
init_exports();
|
272855
272875
|
init_Errors();
|
272856
272876
|
|
272857
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/_assert.js
|
272858
|
-
function anumber2(n6) {
|
272859
|
-
if (!Number.isSafeInteger(n6) || n6 < 0)
|
272860
|
-
throw new Error("positive integer expected, got " + n6);
|
272861
|
-
}
|
272862
|
-
function isBytes3(a7) {
|
272863
|
-
return a7 instanceof Uint8Array || ArrayBuffer.isView(a7) && a7.constructor.name === "Uint8Array";
|
272864
|
-
}
|
272865
|
-
function abytes3(b4, ...lengths) {
|
272866
|
-
if (!isBytes3(b4))
|
272867
|
-
throw new Error("Uint8Array expected");
|
272868
|
-
if (lengths.length > 0 && !lengths.includes(b4.length))
|
272869
|
-
throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b4.length);
|
272870
|
-
}
|
272871
|
-
function aexists2(instance, checkFinished = true) {
|
272872
|
-
if (instance.destroyed)
|
272873
|
-
throw new Error("Hash instance has been destroyed");
|
272874
|
-
if (checkFinished && instance.finished)
|
272875
|
-
throw new Error("Hash#digest() has already been called");
|
272876
|
-
}
|
272877
|
-
function aoutput2(out, instance) {
|
272878
|
-
abytes3(out);
|
272879
|
-
const min = instance.outputLen;
|
272880
|
-
if (out.length < min) {
|
272881
|
-
throw new Error("digestInto() expects output buffer of length at least " + min);
|
272882
|
-
}
|
272883
|
-
}
|
272884
|
-
|
272885
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/utils.js
|
272886
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
272887
|
-
function u322(arr) {
|
272888
|
-
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
272889
|
-
}
|
272890
|
-
var isLE2 = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
272891
|
-
function byteSwap2(word2) {
|
272892
|
-
return word2 << 24 & 4278190080 | word2 << 8 & 16711680 | word2 >>> 8 & 65280 | word2 >>> 24 & 255;
|
272893
|
-
}
|
272894
|
-
function byteSwap322(arr) {
|
272895
|
-
for (let i6 = 0;i6 < arr.length; i6++) {
|
272896
|
-
arr[i6] = byteSwap2(arr[i6]);
|
272897
|
-
}
|
272898
|
-
}
|
272899
|
-
var hasHexBuiltin3 = typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
|
272900
|
-
function utf8ToBytes3(str) {
|
272901
|
-
if (typeof str !== "string")
|
272902
|
-
throw new Error("utf8ToBytes expected string, got " + typeof str);
|
272903
|
-
return new Uint8Array(new TextEncoder().encode(str));
|
272904
|
-
}
|
272905
|
-
function toBytes3(data) {
|
272906
|
-
if (typeof data === "string")
|
272907
|
-
data = utf8ToBytes3(data);
|
272908
|
-
abytes3(data);
|
272909
|
-
return data;
|
272910
|
-
}
|
272911
|
-
class Hash2 {
|
272912
|
-
clone() {
|
272913
|
-
return this._cloneInto();
|
272914
|
-
}
|
272915
|
-
}
|
272916
|
-
function wrapConstructor2(hashCons) {
|
272917
|
-
const hashC = (msg) => hashCons().update(toBytes3(msg)).digest();
|
272918
|
-
const tmp = hashCons();
|
272919
|
-
hashC.outputLen = tmp.outputLen;
|
272920
|
-
hashC.blockLen = tmp.blockLen;
|
272921
|
-
hashC.create = () => hashCons();
|
272922
|
-
return hashC;
|
272923
|
-
}
|
272924
|
-
function wrapXOFConstructorWithOpts2(hashCons) {
|
272925
|
-
const hashC = (msg, opts) => hashCons(opts).update(toBytes3(msg)).digest();
|
272926
|
-
const tmp = hashCons({});
|
272927
|
-
hashC.outputLen = tmp.outputLen;
|
272928
|
-
hashC.blockLen = tmp.blockLen;
|
272929
|
-
hashC.create = (opts) => hashCons(opts);
|
272930
|
-
return hashC;
|
272931
|
-
}
|
272932
|
-
|
272933
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/_u64.js
|
272934
|
-
var U32_MASK642 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
272935
|
-
var _32n2 = /* @__PURE__ */ BigInt(32);
|
272936
|
-
function fromBig2(n6, le4 = false) {
|
272937
|
-
if (le4)
|
272938
|
-
return { h: Number(n6 & U32_MASK642), l: Number(n6 >> _32n2 & U32_MASK642) };
|
272939
|
-
return { h: Number(n6 >> _32n2 & U32_MASK642) | 0, l: Number(n6 & U32_MASK642) | 0 };
|
272940
|
-
}
|
272941
|
-
function split4(lst, le4 = false) {
|
272942
|
-
let Ah = new Uint32Array(lst.length);
|
272943
|
-
let Al = new Uint32Array(lst.length);
|
272944
|
-
for (let i6 = 0;i6 < lst.length; i6++) {
|
272945
|
-
const { h: h8, l: l3 } = fromBig2(lst[i6], le4);
|
272946
|
-
[Ah[i6], Al[i6]] = [h8, l3];
|
272947
|
-
}
|
272948
|
-
return [Ah, Al];
|
272949
|
-
}
|
272950
|
-
var rotlSH2 = (h8, l3, s7) => h8 << s7 | l3 >>> 32 - s7;
|
272951
|
-
var rotlSL2 = (h8, l3, s7) => l3 << s7 | h8 >>> 32 - s7;
|
272952
|
-
var rotlBH2 = (h8, l3, s7) => l3 << s7 - 32 | h8 >>> 64 - s7;
|
272953
|
-
var rotlBL2 = (h8, l3, s7) => h8 << s7 - 32 | l3 >>> 64 - s7;
|
272954
|
-
|
272955
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/sha3.js
|
272956
|
-
var SHA3_PI2 = [];
|
272957
|
-
var SHA3_ROTL2 = [];
|
272958
|
-
var _SHA3_IOTA2 = [];
|
272959
|
-
var _0n7 = /* @__PURE__ */ BigInt(0);
|
272960
|
-
var _1n7 = /* @__PURE__ */ BigInt(1);
|
272961
|
-
var _2n5 = /* @__PURE__ */ BigInt(2);
|
272962
|
-
var _7n2 = /* @__PURE__ */ BigInt(7);
|
272963
|
-
var _256n2 = /* @__PURE__ */ BigInt(256);
|
272964
|
-
var _0x71n2 = /* @__PURE__ */ BigInt(113);
|
272965
|
-
for (let round = 0, R7 = _1n7, x6 = 1, y4 = 0;round < 24; round++) {
|
272966
|
-
[x6, y4] = [y4, (2 * x6 + 3 * y4) % 5];
|
272967
|
-
SHA3_PI2.push(2 * (5 * y4 + x6));
|
272968
|
-
SHA3_ROTL2.push((round + 1) * (round + 2) / 2 % 64);
|
272969
|
-
let t8 = _0n7;
|
272970
|
-
for (let j3 = 0;j3 < 7; j3++) {
|
272971
|
-
R7 = (R7 << _1n7 ^ (R7 >> _7n2) * _0x71n2) % _256n2;
|
272972
|
-
if (R7 & _2n5)
|
272973
|
-
t8 ^= _1n7 << (_1n7 << /* @__PURE__ */ BigInt(j3)) - _1n7;
|
272974
|
-
}
|
272975
|
-
_SHA3_IOTA2.push(t8);
|
272976
|
-
}
|
272977
|
-
var [SHA3_IOTA_H2, SHA3_IOTA_L2] = /* @__PURE__ */ split4(_SHA3_IOTA2, true);
|
272978
|
-
var rotlH2 = (h8, l3, s7) => s7 > 32 ? rotlBH2(h8, l3, s7) : rotlSH2(h8, l3, s7);
|
272979
|
-
var rotlL2 = (h8, l3, s7) => s7 > 32 ? rotlBL2(h8, l3, s7) : rotlSL2(h8, l3, s7);
|
272980
|
-
function keccakP2(s7, rounds = 24) {
|
272981
|
-
const B4 = new Uint32Array(5 * 2);
|
272982
|
-
for (let round = 24 - rounds;round < 24; round++) {
|
272983
|
-
for (let x6 = 0;x6 < 10; x6++)
|
272984
|
-
B4[x6] = s7[x6] ^ s7[x6 + 10] ^ s7[x6 + 20] ^ s7[x6 + 30] ^ s7[x6 + 40];
|
272985
|
-
for (let x6 = 0;x6 < 10; x6 += 2) {
|
272986
|
-
const idx1 = (x6 + 8) % 10;
|
272987
|
-
const idx0 = (x6 + 2) % 10;
|
272988
|
-
const B0 = B4[idx0];
|
272989
|
-
const B1 = B4[idx0 + 1];
|
272990
|
-
const Th = rotlH2(B0, B1, 1) ^ B4[idx1];
|
272991
|
-
const Tl = rotlL2(B0, B1, 1) ^ B4[idx1 + 1];
|
272992
|
-
for (let y4 = 0;y4 < 50; y4 += 10) {
|
272993
|
-
s7[x6 + y4] ^= Th;
|
272994
|
-
s7[x6 + y4 + 1] ^= Tl;
|
272995
|
-
}
|
272996
|
-
}
|
272997
|
-
let curH = s7[2];
|
272998
|
-
let curL = s7[3];
|
272999
|
-
for (let t8 = 0;t8 < 24; t8++) {
|
273000
|
-
const shift = SHA3_ROTL2[t8];
|
273001
|
-
const Th = rotlH2(curH, curL, shift);
|
273002
|
-
const Tl = rotlL2(curH, curL, shift);
|
273003
|
-
const PI = SHA3_PI2[t8];
|
273004
|
-
curH = s7[PI];
|
273005
|
-
curL = s7[PI + 1];
|
273006
|
-
s7[PI] = Th;
|
273007
|
-
s7[PI + 1] = Tl;
|
273008
|
-
}
|
273009
|
-
for (let y4 = 0;y4 < 50; y4 += 10) {
|
273010
|
-
for (let x6 = 0;x6 < 10; x6++)
|
273011
|
-
B4[x6] = s7[y4 + x6];
|
273012
|
-
for (let x6 = 0;x6 < 10; x6++)
|
273013
|
-
s7[y4 + x6] ^= ~B4[(x6 + 2) % 10] & B4[(x6 + 4) % 10];
|
273014
|
-
}
|
273015
|
-
s7[0] ^= SHA3_IOTA_H2[round];
|
273016
|
-
s7[1] ^= SHA3_IOTA_L2[round];
|
273017
|
-
}
|
273018
|
-
B4.fill(0);
|
273019
|
-
}
|
273020
|
-
|
273021
|
-
class Keccak2 extends Hash2 {
|
273022
|
-
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
273023
|
-
super();
|
273024
|
-
this.pos = 0;
|
273025
|
-
this.posOut = 0;
|
273026
|
-
this.finished = false;
|
273027
|
-
this.destroyed = false;
|
273028
|
-
this.enableXOF = false;
|
273029
|
-
this.blockLen = blockLen;
|
273030
|
-
this.suffix = suffix;
|
273031
|
-
this.outputLen = outputLen;
|
273032
|
-
this.enableXOF = enableXOF;
|
273033
|
-
this.rounds = rounds;
|
273034
|
-
anumber2(outputLen);
|
273035
|
-
if (0 >= this.blockLen || this.blockLen >= 200)
|
273036
|
-
throw new Error("Sha3 supports only keccak-f1600 function");
|
273037
|
-
this.state = new Uint8Array(200);
|
273038
|
-
this.state32 = u322(this.state);
|
273039
|
-
}
|
273040
|
-
keccak() {
|
273041
|
-
if (!isLE2)
|
273042
|
-
byteSwap322(this.state32);
|
273043
|
-
keccakP2(this.state32, this.rounds);
|
273044
|
-
if (!isLE2)
|
273045
|
-
byteSwap322(this.state32);
|
273046
|
-
this.posOut = 0;
|
273047
|
-
this.pos = 0;
|
273048
|
-
}
|
273049
|
-
update(data) {
|
273050
|
-
aexists2(this);
|
273051
|
-
const { blockLen, state } = this;
|
273052
|
-
data = toBytes3(data);
|
273053
|
-
const len = data.length;
|
273054
|
-
for (let pos = 0;pos < len; ) {
|
273055
|
-
const take2 = Math.min(blockLen - this.pos, len - pos);
|
273056
|
-
for (let i6 = 0;i6 < take2; i6++)
|
273057
|
-
state[this.pos++] ^= data[pos++];
|
273058
|
-
if (this.pos === blockLen)
|
273059
|
-
this.keccak();
|
273060
|
-
}
|
273061
|
-
return this;
|
273062
|
-
}
|
273063
|
-
finish() {
|
273064
|
-
if (this.finished)
|
273065
|
-
return;
|
273066
|
-
this.finished = true;
|
273067
|
-
const { state, suffix, pos, blockLen } = this;
|
273068
|
-
state[pos] ^= suffix;
|
273069
|
-
if ((suffix & 128) !== 0 && pos === blockLen - 1)
|
273070
|
-
this.keccak();
|
273071
|
-
state[blockLen - 1] ^= 128;
|
273072
|
-
this.keccak();
|
273073
|
-
}
|
273074
|
-
writeInto(out) {
|
273075
|
-
aexists2(this, false);
|
273076
|
-
abytes3(out);
|
273077
|
-
this.finish();
|
273078
|
-
const bufferOut = this.state;
|
273079
|
-
const { blockLen } = this;
|
273080
|
-
for (let pos = 0, len = out.length;pos < len; ) {
|
273081
|
-
if (this.posOut >= blockLen)
|
273082
|
-
this.keccak();
|
273083
|
-
const take2 = Math.min(blockLen - this.posOut, len - pos);
|
273084
|
-
out.set(bufferOut.subarray(this.posOut, this.posOut + take2), pos);
|
273085
|
-
this.posOut += take2;
|
273086
|
-
pos += take2;
|
273087
|
-
}
|
273088
|
-
return out;
|
273089
|
-
}
|
273090
|
-
xofInto(out) {
|
273091
|
-
if (!this.enableXOF)
|
273092
|
-
throw new Error("XOF is not possible for this instance");
|
273093
|
-
return this.writeInto(out);
|
273094
|
-
}
|
273095
|
-
xof(bytes) {
|
273096
|
-
anumber2(bytes);
|
273097
|
-
return this.xofInto(new Uint8Array(bytes));
|
273098
|
-
}
|
273099
|
-
digestInto(out) {
|
273100
|
-
aoutput2(out, this);
|
273101
|
-
if (this.finished)
|
273102
|
-
throw new Error("digest() was already called");
|
273103
|
-
this.writeInto(out);
|
273104
|
-
this.destroy();
|
273105
|
-
return out;
|
273106
|
-
}
|
273107
|
-
digest() {
|
273108
|
-
return this.digestInto(new Uint8Array(this.outputLen));
|
273109
|
-
}
|
273110
|
-
destroy() {
|
273111
|
-
this.destroyed = true;
|
273112
|
-
this.state.fill(0);
|
273113
|
-
}
|
273114
|
-
_cloneInto(to) {
|
273115
|
-
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
273116
|
-
to || (to = new Keccak2(blockLen, suffix, outputLen, enableXOF, rounds));
|
273117
|
-
to.state32.set(this.state32);
|
273118
|
-
to.pos = this.pos;
|
273119
|
-
to.posOut = this.posOut;
|
273120
|
-
to.finished = this.finished;
|
273121
|
-
to.rounds = rounds;
|
273122
|
-
to.suffix = suffix;
|
273123
|
-
to.outputLen = outputLen;
|
273124
|
-
to.enableXOF = enableXOF;
|
273125
|
-
to.destroyed = this.destroyed;
|
273126
|
-
return to;
|
273127
|
-
}
|
273128
|
-
}
|
273129
|
-
var gen2 = (suffix, blockLen, outputLen) => wrapConstructor2(() => new Keccak2(blockLen, suffix, outputLen));
|
273130
|
-
var sha3_2242 = /* @__PURE__ */ gen2(6, 144, 224 / 8);
|
273131
|
-
var sha3_2562 = /* @__PURE__ */ gen2(6, 136, 256 / 8);
|
273132
|
-
var sha3_3842 = /* @__PURE__ */ gen2(6, 104, 384 / 8);
|
273133
|
-
var sha3_5122 = /* @__PURE__ */ gen2(6, 72, 512 / 8);
|
273134
|
-
var keccak_2242 = /* @__PURE__ */ gen2(1, 144, 224 / 8);
|
273135
|
-
var keccak_2562 = /* @__PURE__ */ gen2(1, 136, 256 / 8);
|
273136
|
-
var keccak_3842 = /* @__PURE__ */ gen2(1, 104, 384 / 8);
|
273137
|
-
var keccak_5122 = /* @__PURE__ */ gen2(1, 72, 512 / 8);
|
273138
|
-
var genShake2 = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts2((opts = {}) => new Keccak2(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true));
|
273139
|
-
var shake1282 = /* @__PURE__ */ genShake2(31, 168, 128 / 8);
|
273140
|
-
var shake2562 = /* @__PURE__ */ genShake2(31, 136, 256 / 8);
|
273141
|
-
|
273142
272877
|
// ../../node_modules/ox/_esm/core/Hash.js
|
272878
|
+
init_sha3();
|
273143
272879
|
init_Bytes();
|
273144
272880
|
init_Hex();
|
273145
272881
|
function keccak2562(value4, options = {}) {
|
273146
272882
|
const { as = typeof value4 === "string" ? "Hex" : "Bytes" } = options;
|
273147
|
-
const bytes =
|
272883
|
+
const bytes = keccak_256(from(value4));
|
273148
272884
|
if (as === "Bytes")
|
273149
272885
|
return bytes;
|
273150
272886
|
return fromBytes(bytes);
|
@@ -275032,15 +274768,18 @@ function createPublicClient(parameters) {
|
|
275032
274768
|
});
|
275033
274769
|
return client.extend(publicActions);
|
275034
274770
|
}
|
274771
|
+
// ../../node_modules/viem/_esm/index.js
|
274772
|
+
init_isAddress();
|
274773
|
+
|
275035
274774
|
// ../viem/dist/viem.mjs
|
275036
|
-
var
|
275037
|
-
var
|
275038
|
-
var
|
275039
|
-
var
|
275040
|
-
async function
|
274775
|
+
var u6 = ((r6) => (r6.PINCODE = "PINCODE", r6.OTP = "OTP", r6.SECRET_CODES = "SECRET_CODES", r6))(u6 || {});
|
274776
|
+
var g5 = ((i6) => (i6.SHA1 = "SHA1", i6.SHA224 = "SHA224", i6.SHA256 = "SHA256", i6.SHA384 = "SHA384", i6.SHA512 = "SHA512", i6.SHA3_224 = "SHA3-224", i6.SHA3_256 = "SHA3-256", i6.SHA3_384 = "SHA3-384", i6.SHA3_512 = "SHA3-512", i6))(g5 || {});
|
274777
|
+
var R7 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), chainId: exports_external.string().optional(), chainName: exports_external.string(), rpcUrl: UrlOrPathSchema2, httpTransportConfig: exports_external.any().optional() });
|
274778
|
+
var b4 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), rpcUrl: UrlOrPathSchema2, httpTransportConfig: exports_external.any().optional() });
|
274779
|
+
async function ae4(t8) {
|
275041
274780
|
ensureServer();
|
275042
|
-
let e10 = validate2(
|
275043
|
-
return createPublicClient({ transport: http(e10.rpcUrl, { fetchOptions: { headers: e10
|
274781
|
+
let e10 = validate2(b4, t8);
|
274782
|
+
return createPublicClient({ transport: http(e10.rpcUrl, { ...e10.httpTransportConfig, fetchOptions: { ...e10?.httpTransportConfig?.fetchOptions, headers: appendHeaders(e10?.httpTransportConfig?.fetchOptions?.headers, { "x-auth-token": e10.accessToken }) } }) }).getChainId();
|
275044
274783
|
}
|
275045
274784
|
|
275046
274785
|
// src/commands/codegen/codegen-viem.ts
|
@@ -275052,7 +274791,7 @@ async function codegenViem(env2) {
|
|
275052
274791
|
note("[Codegen] No RPC endpoints found, skipping Viem resources generation", "warn");
|
275053
274792
|
return;
|
275054
274793
|
}
|
275055
|
-
const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await
|
274794
|
+
const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await ae4({
|
275056
274795
|
accessToken: env2.SETTLEMINT_ACCESS_TOKEN,
|
275057
274796
|
rpcUrl: env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT
|
275058
274797
|
});
|
@@ -275811,7 +275550,7 @@ async function serviceSecretPrompt({
|
|
275811
275550
|
return defaultSecret;
|
275812
275551
|
}
|
275813
275552
|
if (isCi) {
|
275814
|
-
return defaultSecret
|
275553
|
+
return defaultSecret;
|
275815
275554
|
}
|
275816
275555
|
if (defaultSecret) {
|
275817
275556
|
const keep = await esm_default4({
|
@@ -275838,10 +275577,10 @@ async function serviceUrlPrompt({
|
|
275838
275577
|
}) {
|
275839
275578
|
const autoAccept = !!accept || isCi;
|
275840
275579
|
if (autoAccept && defaultUrl) {
|
275841
|
-
return
|
275580
|
+
return new URL(defaultUrl).toString();
|
275842
275581
|
}
|
275843
275582
|
if (isCi) {
|
275844
|
-
return
|
275583
|
+
return defaultUrl ? new URL(defaultUrl).toString() : undefined;
|
275845
275584
|
}
|
275846
275585
|
const serviceUrl = await esm_default2({
|
275847
275586
|
message: example ? `${message} (eg ${example})` : message,
|
@@ -276122,9 +275861,68 @@ function getHdPrivateKeyEnv(service) {
|
|
276122
275861
|
};
|
276123
275862
|
}
|
276124
275863
|
|
275864
|
+
// ../utils/dist/logging.mjs
|
275865
|
+
var maskTokens4 = (output) => {
|
275866
|
+
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
275867
|
+
};
|
275868
|
+
function createLogger(options = {}) {
|
275869
|
+
const { level = "warn", prefix = "" } = options;
|
275870
|
+
const logLevels = {
|
275871
|
+
debug: 0,
|
275872
|
+
info: 1,
|
275873
|
+
warn: 2,
|
275874
|
+
error: 3,
|
275875
|
+
none: 4
|
275876
|
+
};
|
275877
|
+
const currentLevelValue = logLevels[level];
|
275878
|
+
const formatArgs = (args) => {
|
275879
|
+
if (args.length === 0 || args.every((arg) => arg === undefined || arg === null)) {
|
275880
|
+
return "";
|
275881
|
+
}
|
275882
|
+
const formatted = args.map((arg) => {
|
275883
|
+
if (arg instanceof Error) {
|
275884
|
+
return `
|
275885
|
+
${arg.stack || arg.message}`;
|
275886
|
+
}
|
275887
|
+
if (typeof arg === "object" && arg !== null) {
|
275888
|
+
return `
|
275889
|
+
${JSON.stringify(arg, null, 2)}`;
|
275890
|
+
}
|
275891
|
+
return ` ${String(arg)}`;
|
275892
|
+
}).join("");
|
275893
|
+
return `, args:${formatted}`;
|
275894
|
+
};
|
275895
|
+
const shouldLog = (level2) => {
|
275896
|
+
return logLevels[level2] >= currentLevelValue;
|
275897
|
+
};
|
275898
|
+
return {
|
275899
|
+
debug: (message, ...args) => {
|
275900
|
+
if (shouldLog("debug")) {
|
275901
|
+
console.debug(`\x1B[32m${prefix}[DEBUG] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275902
|
+
}
|
275903
|
+
},
|
275904
|
+
info: (message, ...args) => {
|
275905
|
+
if (shouldLog("info")) {
|
275906
|
+
console.info(`\x1B[34m${prefix}[INFO] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275907
|
+
}
|
275908
|
+
},
|
275909
|
+
warn: (message, ...args) => {
|
275910
|
+
if (shouldLog("warn")) {
|
275911
|
+
console.warn(`\x1B[33m${prefix}[WARN] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275912
|
+
}
|
275913
|
+
},
|
275914
|
+
error: (message, ...args) => {
|
275915
|
+
if (shouldLog("error")) {
|
275916
|
+
console.error(`\x1B[31m${prefix}[ERROR] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275917
|
+
}
|
275918
|
+
}
|
275919
|
+
};
|
275920
|
+
}
|
275921
|
+
var logger = createLogger();
|
275922
|
+
|
276125
275923
|
// src/commands/connect.ts
|
276126
275924
|
function connectCommand() {
|
276127
|
-
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file). Use 'standalone' if your resources are not
|
275925
|
+
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file). Use 'standalone' if your resources are not deployed on the SettleMint platform").description("Connects your dApp to your application").usage(createExamples([
|
276128
275926
|
{
|
276129
275927
|
description: "Connect to your environment",
|
276130
275928
|
command: "connect"
|
@@ -276136,6 +275934,10 @@ function connectCommand() {
|
|
276136
275934
|
{
|
276137
275935
|
description: "Connect to your production environment",
|
276138
275936
|
command: "connect --prod"
|
275937
|
+
},
|
275938
|
+
{
|
275939
|
+
description: "Connect to a standalone environment (when not using the SettleMint platform)",
|
275940
|
+
command: "connect --instance standalone"
|
276139
275941
|
}
|
276140
275942
|
])).action(async ({ acceptDefaults, prod, instance }) => {
|
276141
275943
|
intro("Connecting your dApp");
|
@@ -276146,7 +275948,7 @@ function connectCommand() {
|
|
276146
275948
|
} else {
|
276147
275949
|
await connectToPlatform(env2, selectedInstance, acceptDefaults, prod);
|
276148
275950
|
}
|
276149
|
-
outro("
|
275951
|
+
outro("dApp connected");
|
276150
275952
|
});
|
276151
275953
|
}
|
276152
275954
|
async function connectToPlatform(env2, selectedInstance, acceptDefaults, prod) {
|
@@ -276448,11 +276250,23 @@ async function connectToStandalone(env2, acceptDefaults, prod) {
|
|
276448
276250
|
});
|
276449
276251
|
selectedServices[id] = {
|
276450
276252
|
label: prompt.label,
|
276451
|
-
result
|
276253
|
+
result,
|
276254
|
+
isSecret
|
276452
276255
|
};
|
276453
276256
|
}
|
276454
276257
|
if (acceptDefaults) {
|
276455
|
-
table("Selected services", Object.values(selectedServices).
|
276258
|
+
table("Selected services", Object.values(selectedServices).map((item) => {
|
276259
|
+
if (item.isSecret) {
|
276260
|
+
return {
|
276261
|
+
...item,
|
276262
|
+
result: "********"
|
276263
|
+
};
|
276264
|
+
}
|
276265
|
+
return {
|
276266
|
+
...item,
|
276267
|
+
result: item.result ? maskTokens4(item.result) : undefined
|
276268
|
+
};
|
276269
|
+
}).filter(Boolean));
|
276456
276270
|
}
|
276457
276271
|
await writeEnvSpinner(!!prod, {
|
276458
276272
|
SETTLEMINT_INSTANCE: STANDALONE_INSTANCE2,
|
@@ -276461,8 +276275,8 @@ async function connectToStandalone(env2, acceptDefaults, prod) {
|
|
276461
276275
|
SETTLEMINT_HASURA_ENDPOINT: selectedServices.hasuraEndpoint?.result,
|
276462
276276
|
SETTLEMINT_HASURA_ADMIN_SECRET: selectedServices.hasuraAdminSecret?.result,
|
276463
276277
|
SETTLEMINT_HASURA_DATABASE_URL: selectedServices.hasuraDatabaseUrl?.result,
|
276464
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: selectedServices.theGraphEndpoint ? [selectedServices.theGraphEndpoint.result] : [],
|
276465
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: selectedServices.theGraphEndpoint ? getSubgraphName(selectedServices.theGraphEndpoint.result) : undefined,
|
276278
|
+
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: selectedServices.theGraphEndpoint?.result ? [selectedServices.theGraphEndpoint.result] : [],
|
276279
|
+
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: selectedServices.theGraphEndpoint?.result ? getSubgraphName(selectedServices.theGraphEndpoint.result) : undefined,
|
276466
276280
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: selectedServices.portalGraphqlEndpoint?.result,
|
276467
276281
|
SETTLEMINT_MINIO_ENDPOINT: selectedServices.minioEndpoint?.result,
|
276468
276282
|
SETTLEMINT_MINIO_ACCESS_KEY: selectedServices.minioAccessKey?.result,
|
@@ -276504,7 +276318,7 @@ async function templatePrompt(platformConfig, argument) {
|
|
276504
276318
|
...kits.map((template2) => ({
|
276505
276319
|
name: template2.name,
|
276506
276320
|
value: template2
|
276507
|
-
})).sort((a7,
|
276321
|
+
})).sort((a7, b5) => a7.name.localeCompare(b5.name))
|
276508
276322
|
]
|
276509
276323
|
});
|
276510
276324
|
return template;
|
@@ -276888,12 +276702,12 @@ var U6 = l3((Ae3, G4) => {
|
|
276888
276702
|
}
|
276889
276703
|
});
|
276890
276704
|
var et3 = l3((Re3, tt2) => {
|
276891
|
-
var
|
276892
|
-
let n6 = e10.colon || Bt2, r6 = t8.match(/\//) ||
|
276893
|
-
...
|
276705
|
+
var g6 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y4 = h8("path"), Bt2 = g6 ? ";" : ":", V5 = U6(), J3 = (t8) => Object.assign(new Error(`not found: ${t8}`), { code: "ENOENT" }), Q4 = (t8, e10) => {
|
276706
|
+
let n6 = e10.colon || Bt2, r6 = t8.match(/\//) || g6 && t8.match(/\\/) ? [""] : [
|
276707
|
+
...g6 ? [process.cwd()] : [],
|
276894
276708
|
...(e10.path || process.env.PATH || "").split(n6)
|
276895
|
-
], s7 =
|
276896
|
-
return
|
276709
|
+
], s7 = g6 ? e10.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o8 = g6 ? s7.split(n6) : [""];
|
276710
|
+
return g6 && t8.indexOf(".") !== -1 && o8[0] !== "" && o8.unshift(""), {
|
276897
276711
|
pathEnv: r6,
|
276898
276712
|
pathExt: o8,
|
276899
276713
|
pathExtExe: s7
|
@@ -276903,14 +276717,14 @@ var et3 = l3((Re3, tt2) => {
|
|
276903
276717
|
let { pathEnv: r6, pathExt: s7, pathExtExe: o8 } = Q4(t8, e10), i6 = [], a7 = (u7) => new Promise((f5, p5) => {
|
276904
276718
|
if (u7 === r6.length)
|
276905
276719
|
return e10.all && i6.length ? f5(i6) : p5(J3(t8));
|
276906
|
-
let d6 = r6[u7], w5 = /^".*"$/.test(d6) ? d6.slice(1, -1) : d6, m7 = Y4.join(w5, t8),
|
276907
|
-
f5(c3(
|
276720
|
+
let d6 = r6[u7], w5 = /^".*"$/.test(d6) ? d6.slice(1, -1) : d6, m7 = Y4.join(w5, t8), b5 = !w5 && /^\.[\\\/]/.test(t8) ? t8.slice(0, 2) + m7 : m7;
|
276721
|
+
f5(c3(b5, u7, 0));
|
276908
276722
|
}), c3 = (u7, f5, p5) => new Promise((d6, w5) => {
|
276909
276723
|
if (p5 === s7.length)
|
276910
276724
|
return d6(a7(f5 + 1));
|
276911
276725
|
let m7 = s7[p5];
|
276912
|
-
V5(u7 + m7, { pathExt: o8 }, (
|
276913
|
-
if (!
|
276726
|
+
V5(u7 + m7, { pathExt: o8 }, (b5, Ot2) => {
|
276727
|
+
if (!b5 && Ot2)
|
276914
276728
|
if (e10.all)
|
276915
276729
|
i6.push(u7 + m7);
|
276916
276730
|
else
|
@@ -276977,12 +276791,12 @@ var ct3 = l3((Ne3, it2) => {
|
|
276977
276791
|
it2.exports = Yt2;
|
276978
276792
|
});
|
276979
276793
|
var ut3 = l3((qe2, P5) => {
|
276980
|
-
var
|
276794
|
+
var C4 = /([()\][%!^"`<>&|;, *?])/g;
|
276981
276795
|
function Vt2(t8) {
|
276982
|
-
return t8 = t8.replace(
|
276796
|
+
return t8 = t8.replace(C4, "^$1"), t8;
|
276983
276797
|
}
|
276984
276798
|
function Jt2(t8, e10) {
|
276985
|
-
return t8 = `${t8}`, t8 = t8.replace(/(\\*)"/g, "$1$1\\\""), t8 = t8.replace(/(\\*)$/, "$1$1"), t8 = `"${t8}"`, t8 = t8.replace(
|
276799
|
+
return t8 = `${t8}`, t8 = t8.replace(/(\\*)"/g, "$1$1\\\""), t8 = t8.replace(/(\\*)$/, "$1$1"), t8 = `"${t8}"`, t8 = t8.replace(C4, "^$1"), e10 && (t8 = t8.replace(C4, "^$1")), t8;
|
276986
276800
|
}
|
276987
276801
|
P5.exports.command = Vt2;
|
276988
276802
|
P5.exports.argument = Jt2;
|
@@ -277001,11 +276815,11 @@ var dt3 = l3((Le3, pt2) => {
|
|
277001
276815
|
};
|
277002
276816
|
});
|
277003
276817
|
var ht3 = l3((je3, ft2) => {
|
277004
|
-
var
|
276818
|
+
var O6 = h8("fs"), Zt2 = dt3();
|
277005
276819
|
function te4(t8) {
|
277006
276820
|
let n6 = Buffer.alloc(150), r6;
|
277007
276821
|
try {
|
277008
|
-
r6 =
|
276822
|
+
r6 = O6.openSync(t8, "r"), O6.readSync(r6, n6, 0, 150, 0), O6.closeSync(r6);
|
277009
276823
|
} catch {}
|
277010
276824
|
return Zt2(n6.toString());
|
277011
276825
|
}
|
@@ -277013,7 +276827,7 @@ var ht3 = l3((je3, ft2) => {
|
|
277013
276827
|
});
|
277014
276828
|
var wt3 = l3((Fe3, Et2) => {
|
277015
276829
|
var ee4 = h8("path"), mt2 = ct3(), gt3 = ut3(), ne3 = ht3(), re4 = process.platform === "win32", se4 = /\.(?:com|exe)$/i, oe4 = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
277016
|
-
function
|
276830
|
+
function ie4(t8) {
|
277017
276831
|
t8.file = mt2(t8);
|
277018
276832
|
let e10 = t8.file && ne3(t8.file);
|
277019
276833
|
return e10 ? (t8.args.unshift(t8.file), t8.command = e10, mt2(t8)) : t8.file;
|
@@ -277021,7 +276835,7 @@ var wt3 = l3((Fe3, Et2) => {
|
|
277021
276835
|
function ce3(t8) {
|
277022
276836
|
if (!re4)
|
277023
276837
|
return t8;
|
277024
|
-
let e10 =
|
276838
|
+
let e10 = ie4(t8), n6 = !se4.test(e10);
|
277025
276839
|
if (t8.options.forceShell || n6) {
|
277026
276840
|
let r6 = oe4.test(e10);
|
277027
276841
|
t8.command = ee4.normalize(t8.command), t8.command = gt3.command(t8.command), t8.args = t8.args.map((o8) => gt3.argument(o8, r6));
|
@@ -277057,7 +276871,7 @@ var bt3 = l3((ze3, vt2) => {
|
|
277057
276871
|
spawnargs: t8.args
|
277058
276872
|
});
|
277059
276873
|
}
|
277060
|
-
function
|
276874
|
+
function ae5(t8, e10) {
|
277061
276875
|
if (!S4)
|
277062
276876
|
return;
|
277063
276877
|
let n6 = t8.emit;
|
@@ -277077,27 +276891,27 @@ var bt3 = l3((ze3, vt2) => {
|
|
277077
276891
|
return S4 && t8 === 1 && !e10.file ? k5(e10.original, "spawnSync") : null;
|
277078
276892
|
}
|
277079
276893
|
vt2.exports = {
|
277080
|
-
hookChildProcess:
|
276894
|
+
hookChildProcess: ae5,
|
277081
276895
|
verifyENOENT: xt2,
|
277082
276896
|
verifyENOENTSync: le4,
|
277083
276897
|
notFoundError: k5
|
277084
276898
|
};
|
277085
276899
|
});
|
277086
276900
|
var Ct3 = l3((He3, E6) => {
|
277087
|
-
var yt2 = h8("child_process"), T4 = wt3(),
|
276901
|
+
var yt2 = h8("child_process"), T4 = wt3(), A5 = bt3();
|
277088
276902
|
function _t2(t8, e10, n6) {
|
277089
276903
|
let r6 = T4(t8, e10, n6), s7 = yt2.spawn(r6.command, r6.args, r6.options);
|
277090
|
-
return
|
276904
|
+
return A5.hookChildProcess(s7, r6), s7;
|
277091
276905
|
}
|
277092
276906
|
function pe4(t8, e10, n6) {
|
277093
276907
|
let r6 = T4(t8, e10, n6), s7 = yt2.spawnSync(r6.command, r6.args, r6.options);
|
277094
|
-
return s7.error = s7.error ||
|
276908
|
+
return s7.error = s7.error || A5.verifyENOENTSync(s7.status, r6), s7;
|
277095
276909
|
}
|
277096
276910
|
E6.exports = _t2;
|
277097
276911
|
E6.exports.spawn = _t2;
|
277098
276912
|
E6.exports.sync = pe4;
|
277099
276913
|
E6.exports._parse = T4;
|
277100
|
-
E6.exports._enoent =
|
276914
|
+
E6.exports._enoent = A5;
|
277101
276915
|
});
|
277102
276916
|
var Lt3 = /^path$/i;
|
277103
276917
|
var q6 = { key: "PATH", value: "" };
|
@@ -277171,7 +276985,7 @@ function xe4(t8) {
|
|
277171
276985
|
}
|
277172
276986
|
return e10.signal;
|
277173
276987
|
}
|
277174
|
-
var
|
276988
|
+
var R8 = class {
|
277175
276989
|
_process;
|
277176
276990
|
_aborted = false;
|
277177
276991
|
_options;
|
@@ -277285,7 +277099,7 @@ var R7 = class {
|
|
277285
277099
|
};
|
277286
277100
|
};
|
277287
277101
|
var ve4 = (t8, e10, n6) => {
|
277288
|
-
let r6 = new
|
277102
|
+
let r6 = new R8(t8, e10, n6);
|
277289
277103
|
return r6.spawn(), r6;
|
277290
277104
|
};
|
277291
277105
|
var be3 = ve4;
|
@@ -277523,7 +277337,7 @@ function w$1() {
|
|
277523
277337
|
i$5 = 1;
|
277524
277338
|
const v6 = (e10, r6) => {
|
277525
277339
|
if (Number.isSafeInteger(e10))
|
277526
|
-
e10 < 0 ?
|
277340
|
+
e10 < 0 ? g6(e10, r6) : p5(e10, r6);
|
277527
277341
|
else
|
277528
277342
|
throw Error("cannot encode number outside of javascript safe integer range");
|
277529
277343
|
return r6;
|
@@ -277531,7 +277345,7 @@ function w$1() {
|
|
277531
277345
|
r6[0] = 128;
|
277532
277346
|
for (var o8 = r6.length;o8 > 1; o8--)
|
277533
277347
|
r6[o8 - 1] = e10 & 255, e10 = Math.floor(e10 / 256);
|
277534
|
-
},
|
277348
|
+
}, g6 = (e10, r6) => {
|
277535
277349
|
r6[0] = 255;
|
277536
277350
|
var o8 = false;
|
277537
277351
|
e10 = e10 * -1;
|
@@ -277599,7 +277413,7 @@ function E6() {
|
|
277599
277413
|
if (e10 || (e10 = this.block = Buffer.alloc(512), t8 = 0), t8 || (t8 = 0), !(e10.length >= t8 + 512))
|
277600
277414
|
throw new Error("need 512 bytes for header");
|
277601
277415
|
const i6 = this.ctime || this.atime ? 130 : 155, h9 = L6(this.path || "", i6), l4 = h9[0], n6 = h9[1];
|
277602
|
-
this.needPax = h9[2], this.needPax = m7(e10, t8, 100, l4) || this.needPax, this.needPax = c3(e10, t8 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e10, t8 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e10, t8 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e10, t8 + 124, 12, this.size) || this.needPax, this.needPax =
|
277416
|
+
this.needPax = h9[2], this.needPax = m7(e10, t8, 100, l4) || this.needPax, this.needPax = c3(e10, t8 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e10, t8 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e10, t8 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e10, t8 + 124, 12, this.size) || this.needPax, this.needPax = g6(e10, t8 + 136, 12, this.mtime) || this.needPax, e10[t8 + 156] = this[a7].charCodeAt(0), this.needPax = m7(e10, t8 + 157, 100, this.linkpath) || this.needPax, e10.write("ustar\x0000", t8 + 257, 8), this.needPax = m7(e10, t8 + 265, 32, this.uname) || this.needPax, this.needPax = m7(e10, t8 + 297, 32, this.gname) || this.needPax, this.needPax = c3(e10, t8 + 329, 8, this.devmaj) || this.needPax, this.needPax = c3(e10, t8 + 337, 8, this.devmin) || this.needPax, this.needPax = m7(e10, t8 + 345, i6, n6) || this.needPax, e10[t8 + 475] !== 0 ? this.needPax = m7(e10, t8 + 345, 155, n6) || this.needPax : (this.needPax = m7(e10, t8 + 345, 130, n6) || this.needPax, this.needPax = g6(e10, t8 + 476, 12, this.atime) || this.needPax, this.needPax = g6(e10, t8 + 488, 12, this.ctime) || this.needPax);
|
277603
277417
|
let S4 = 8 * 32;
|
277604
277418
|
for (let p5 = t8;p5 < t8 + 148; p5++)
|
277605
277419
|
S4 += e10[p5];
|
@@ -277634,7 +277448,7 @@ function E6() {
|
|
277634
277448
|
l4 || (l4 = [s7.slice(0, 99), "", true]);
|
277635
277449
|
}
|
277636
277450
|
return l4;
|
277637
|
-
}, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00",
|
277451
|
+
}, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00", g6 = (s7, e10, t8, i6) => i6 === null ? false : c3(s7, e10, t8, i6.getTime() / 1000), A5 = new Array(156).join("\x00"), m7 = (s7, e10, t8, i6) => i6 === null ? false : (s7.write(i6 + A5, e10, t8, "utf8"), i6.length !== Buffer.byteLength(i6) || i6.length > t8);
|
277638
277452
|
return k5 = B4, k5;
|
277639
277453
|
}
|
277640
277454
|
var e$3;
|
@@ -277822,11 +277636,11 @@ function ft2() {
|
|
277822
277636
|
if (X$1)
|
277823
277637
|
return s$5;
|
277824
277638
|
X$1 = 1;
|
277825
|
-
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"),
|
277639
|
+
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R9 = Symbol("emittingEnd"), g6 = Symbol("emittedError"), B4 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $6 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S4 = Symbol("paused"), b5 = Symbol("resume"), i6 = Symbol("buffer"), a7 = Symbol("pipes"), n6 = Symbol("bufferLength"), j3 = Symbol("bufferPush"), I7 = Symbol("bufferShift"), o8 = Symbol("objectMode"), r6 = Symbol("destroyed"), P6 = Symbol("error"), x7 = Symbol("emitData"), V6 = Symbol("emitEnd"), N7 = Symbol("emitEnd2"), p5 = Symbol("async"), _5 = Symbol("abort"), O6 = Symbol("aborted"), E7 = Symbol("signal"), w6 = (h9) => Promise.resolve().then(h9), J3 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K4 = J3 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W6 = J3 && Symbol.iterator || Symbol("iterator not implemented"), k6 = (h9) => h9 === "end" || h9 === "finish" || h9 === "prefinish", tt2 = (h9) => h9 instanceof ArrayBuffer || typeof h9 == "object" && h9.constructor && h9.constructor.name === "ArrayBuffer" && h9.byteLength >= 0, et4 = (h9) => !Buffer.isBuffer(h9) && ArrayBuffer.isView(h9);
|
277826
277640
|
|
277827
277641
|
class z4 {
|
277828
277642
|
constructor(t8, e10, s7) {
|
277829
|
-
this.src = t8, this.dest = e10, this.opts = s7, this.ondrain = () => t8[
|
277643
|
+
this.src = t8, this.dest = e10, this.opts = s7, this.ondrain = () => t8[b5](), e10.on("drain", this.ondrain);
|
277830
277644
|
}
|
277831
277645
|
unpipe() {
|
277832
277646
|
this.dest.removeListener("drain", this.ondrain);
|
@@ -277848,7 +277662,7 @@ function ft2() {
|
|
277848
277662
|
|
277849
277663
|
class F3 extends q7 {
|
277850
277664
|
constructor(t8) {
|
277851
|
-
super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[
|
277665
|
+
super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R9] = false, this[B4] = false, this[g6] = null, this.writable = true, this.readable = true, this[n6] = 0, this[r6] = false, t8 && t8.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i6] }), t8 && t8.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a7] }), this[E7] = t8 && t8.signal, this[O6] = false, this[E7] && (this[E7].addEventListener("abort", () => this[_5]()), this[E7].aborted && this[_5]());
|
277852
277666
|
}
|
277853
277667
|
get bufferLength() {
|
277854
277668
|
return this[n6];
|
@@ -277879,14 +277693,14 @@ function ft2() {
|
|
277879
277693
|
this[p5] = this[p5] || !!t8;
|
277880
277694
|
}
|
277881
277695
|
[_5]() {
|
277882
|
-
this[
|
277696
|
+
this[O6] = true, this.emit("abort", this[E7].reason), this.destroy(this[E7].reason);
|
277883
277697
|
}
|
277884
277698
|
get aborted() {
|
277885
|
-
return this[
|
277699
|
+
return this[O6];
|
277886
277700
|
}
|
277887
277701
|
set aborted(t8) {}
|
277888
277702
|
write(t8, e10, s7) {
|
277889
|
-
if (this[
|
277703
|
+
if (this[O6])
|
277890
277704
|
return false;
|
277891
277705
|
if (this[m7])
|
277892
277706
|
throw new Error("write after end");
|
@@ -277911,11 +277725,11 @@ function ft2() {
|
|
277911
277725
|
end(t8, e10, s7) {
|
277912
277726
|
return typeof t8 == "function" && (s7 = t8, t8 = null), typeof e10 == "function" && (s7 = e10, e10 = "utf8"), t8 && this.write(t8, e10), s7 && this.once("end", s7), this[m7] = true, this.writable = false, (this.flowing || !this[S4]) && this[d6](), this;
|
277913
277727
|
}
|
277914
|
-
[
|
277728
|
+
[b5]() {
|
277915
277729
|
this[r6] || (this[S4] = false, this[M5] = true, this.emit("resume"), this[i6].length ? this[T4]() : this[m7] ? this[d6]() : this.emit("drain"));
|
277916
277730
|
}
|
277917
277731
|
resume() {
|
277918
|
-
return this[
|
277732
|
+
return this[b5]();
|
277919
277733
|
}
|
277920
277734
|
pause() {
|
277921
277735
|
this[M5] = false, this[S4] = true;
|
@@ -277948,7 +277762,7 @@ function ft2() {
|
|
277948
277762
|
if (this[r6])
|
277949
277763
|
return;
|
277950
277764
|
const s7 = this[y4];
|
277951
|
-
return e10 = e10 || {}, t8 === H4.stdout || t8 === H4.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, s7 ? e10.end && t8.end() : (this[a7].push(e10.proxyErrors ? new st2(this, t8, e10) : new z4(this, t8, e10)), this[p5] ? w6(() => this[
|
277765
|
+
return e10 = e10 || {}, t8 === H4.stdout || t8 === H4.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, s7 ? e10.end && t8.end() : (this[a7].push(e10.proxyErrors ? new st2(this, t8, e10) : new z4(this, t8, e10)), this[p5] ? w6(() => this[b5]()) : this[b5]()), t8;
|
277952
277766
|
}
|
277953
277767
|
unpipe(t8) {
|
277954
277768
|
const e10 = this[a7].find((s7) => s7.dest === t8);
|
@@ -277959,13 +277773,13 @@ function ft2() {
|
|
277959
277773
|
}
|
277960
277774
|
on(t8, e10) {
|
277961
277775
|
const s7 = super.on(t8, e10);
|
277962
|
-
return t8 === "data" && !this[a7].length && !this.flowing ? this[
|
277776
|
+
return t8 === "data" && !this[a7].length && !this.flowing ? this[b5]() : t8 === "readable" && this[n6] !== 0 ? super.emit("readable") : k6(t8) && this[y4] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[g6] && (this[p5] ? w6(() => e10.call(this, this[g6])) : e10.call(this, this[g6])), s7;
|
277963
277777
|
}
|
277964
277778
|
get emittedEnd() {
|
277965
277779
|
return this[y4];
|
277966
277780
|
}
|
277967
277781
|
[d6]() {
|
277968
|
-
!this[
|
277782
|
+
!this[R9] && !this[y4] && !this[r6] && this[i6].length === 0 && this[m7] && (this[R9] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[B4] && this.emit("close"), this[R9] = false);
|
277969
277783
|
}
|
277970
277784
|
emit(t8, e10, ...s7) {
|
277971
277785
|
if (t8 !== "error" && t8 !== "close" && t8 !== r6 && this[r6])
|
@@ -277980,7 +277794,7 @@ function ft2() {
|
|
277980
277794
|
const u7 = super.emit("close");
|
277981
277795
|
return this.removeAllListeners("close"), u7;
|
277982
277796
|
} else if (t8 === "error") {
|
277983
|
-
this[
|
277797
|
+
this[g6] = e10, super.emit(P6, e10);
|
277984
277798
|
const u7 = !this[E7] || this.listeners("error").length ? super.emit("error", e10) : false;
|
277985
277799
|
return this[d6](), u7;
|
277986
277800
|
} else if (t8 === "resume") {
|
@@ -278044,15 +277858,15 @@ function ft2() {
|
|
278044
277858
|
if (this[m7])
|
278045
277859
|
return e10();
|
278046
277860
|
let u7 = null, Q4 = null;
|
278047
|
-
const
|
278048
|
-
this.removeListener("data", U7), this.removeListener("end",
|
277861
|
+
const A5 = (L6) => {
|
277862
|
+
this.removeListener("data", U7), this.removeListener("end", C4), this.removeListener(r6, D3), e10(), Q4(L6);
|
278049
277863
|
}, U7 = (L6) => {
|
278050
|
-
this.removeListener("error",
|
278051
|
-
},
|
278052
|
-
this.removeListener("error",
|
278053
|
-
}, D3 = () =>
|
277864
|
+
this.removeListener("error", A5), this.removeListener("end", C4), this.removeListener(r6, D3), this.pause(), u7({ value: L6, done: !!this[m7] });
|
277865
|
+
}, C4 = () => {
|
277866
|
+
this.removeListener("error", A5), this.removeListener("data", U7), this.removeListener(r6, D3), e10(), u7({ done: true });
|
277867
|
+
}, D3 = () => A5(new Error("stream destroyed"));
|
278054
277868
|
return new Promise((L6, it2) => {
|
278055
|
-
Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error",
|
277869
|
+
Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error", A5), this.once("end", C4), this.once("data", U7);
|
278056
277870
|
});
|
278057
277871
|
}, throw: e10, return: e10, [K4]() {
|
278058
277872
|
return this;
|
@@ -278198,7 +278012,7 @@ function tt2() {
|
|
278198
278012
|
if (H$1)
|
278199
278013
|
return j3;
|
278200
278014
|
H$1 = 1;
|
278201
|
-
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"),
|
278015
|
+
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"), R9 = Symbol("emitEnd2"), d6 = Symbol("async"), b5 = (o8) => Promise.resolve().then(o8), C4 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $6 = C4 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G4 = C4 && Symbol.iterator || Symbol("iterator not implemented"), V6 = (o8) => o8 === "end" || o8 === "finish" || o8 === "prefinish", v6 = (o8) => o8 instanceof ArrayBuffer || typeof o8 == "object" && o8.constructor && o8.constructor.name === "ArrayBuffer" && o8.byteLength >= 0, J3 = (o8) => !Buffer.isBuffer(o8) && ArrayBuffer.isView(o8);
|
278202
278016
|
|
278203
278017
|
class U7 {
|
278204
278018
|
constructor(t8, e10, i6) {
|
@@ -278259,7 +278073,7 @@ function tt2() {
|
|
278259
278073
|
if (this[n6])
|
278260
278074
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
278261
278075
|
typeof e10 == "function" && (i6 = e10, e10 = "utf8"), e10 || (e10 = "utf8");
|
278262
|
-
const l4 = this[d6] ?
|
278076
|
+
const l4 = this[d6] ? b5 : (f5) => f5();
|
278263
278077
|
return !this[r6] && !Buffer.isBuffer(t8) && (J3(t8) ? t8 = Buffer.from(t8.buffer, t8.byteOffset, t8.byteLength) : v6(t8) ? t8 = Buffer.from(t8) : typeof t8 != "string" && (this.objectMode = true)), this[r6] ? (this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t8) : this[T5](t8), this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing) : t8.length ? (typeof t8 == "string" && !(e10 === this[h9] && !this[m7].lastNeed) && (t8 = Buffer.from(t8, e10)), Buffer.isBuffer(t8) && this[h9] && (t8 = this[m7].write(t8)), this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t8) : this[T5](t8), this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing) : (this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing);
|
278264
278078
|
}
|
278265
278079
|
read(t8) {
|
@@ -278314,7 +278128,7 @@ function tt2() {
|
|
278314
278128
|
if (this[n6])
|
278315
278129
|
return;
|
278316
278130
|
const i6 = this[c3];
|
278317
|
-
return e10 = e10 || {}, t8 === I7.stdout || t8 === I7.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, i6 ? e10.end && t8.end() : (this.pipes.push(e10.proxyErrors ? new K4(this, t8, e10) : new U7(this, t8, e10)), this[d6] ?
|
278131
|
+
return e10 = e10 || {}, t8 === I7.stdout || t8 === I7.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, i6 ? e10.end && t8.end() : (this.pipes.push(e10.proxyErrors ? new K4(this, t8, e10) : new U7(this, t8, e10)), this[d6] ? b5(() => this[p5]()) : this[p5]()), t8;
|
278318
278132
|
}
|
278319
278133
|
unpipe(t8) {
|
278320
278134
|
const e10 = this.pipes.find((i6) => i6.dest === t8);
|
@@ -278325,7 +278139,7 @@ function tt2() {
|
|
278325
278139
|
}
|
278326
278140
|
on(t8, e10) {
|
278327
278141
|
const i6 = super.on(t8, e10);
|
278328
|
-
return t8 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t8 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t8) && this[c3] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[E7] && (this[d6] ?
|
278142
|
+
return t8 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t8 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t8) && this[c3] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[E7] && (this[d6] ? b5(() => e10.call(this, this[E7])) : e10.call(this, this[E7])), i6;
|
278329
278143
|
}
|
278330
278144
|
get emittedEnd() {
|
278331
278145
|
return this[c3];
|
@@ -278337,7 +278151,7 @@ function tt2() {
|
|
278337
278151
|
if (t8 !== "error" && t8 !== "close" && t8 !== n6 && this[n6])
|
278338
278152
|
return;
|
278339
278153
|
if (t8 === "data")
|
278340
|
-
return e10 ? this[d6] ?
|
278154
|
+
return e10 ? this[d6] ? b5(() => this[D3](e10)) : this[D3](e10) : false;
|
278341
278155
|
if (t8 === "end")
|
278342
278156
|
return this[F3]();
|
278343
278157
|
if (t8 === "close") {
|
@@ -278366,9 +278180,9 @@ function tt2() {
|
|
278366
278180
|
return this[a7](), e10;
|
278367
278181
|
}
|
278368
278182
|
[F3]() {
|
278369
|
-
this[c3] || (this[c3] = true, this.readable = false, this[d6] ?
|
278183
|
+
this[c3] || (this[c3] = true, this.readable = false, this[d6] ? b5(() => this[R9]()) : this[R9]());
|
278370
278184
|
}
|
278371
|
-
[
|
278185
|
+
[R9]() {
|
278372
278186
|
if (this[m7]) {
|
278373
278187
|
const e10 = this[m7].end();
|
278374
278188
|
if (e10) {
|
@@ -278406,15 +278220,15 @@ function tt2() {
|
|
278406
278220
|
if (this[u7])
|
278407
278221
|
return Promise.resolve({ done: true });
|
278408
278222
|
let i6 = null, l4 = null;
|
278409
|
-
const f5 = (
|
278410
|
-
this.removeListener("data",
|
278411
|
-
},
|
278412
|
-
this.removeListener("error", f5), this.removeListener("end",
|
278413
|
-
},
|
278414
|
-
this.removeListener("error", f5), this.removeListener("data",
|
278223
|
+
const f5 = (g6) => {
|
278224
|
+
this.removeListener("data", A5), this.removeListener("end", O6), l4(g6);
|
278225
|
+
}, A5 = (g6) => {
|
278226
|
+
this.removeListener("error", f5), this.removeListener("end", O6), this.pause(), i6({ value: g6, done: !!this[u7] });
|
278227
|
+
}, O6 = () => {
|
278228
|
+
this.removeListener("error", f5), this.removeListener("data", A5), i6({ done: true });
|
278415
278229
|
}, W6 = () => f5(new Error("stream destroyed"));
|
278416
|
-
return new Promise((
|
278417
|
-
l4 = z4, i6 =
|
278230
|
+
return new Promise((g6, z4) => {
|
278231
|
+
l4 = z4, i6 = g6, this.once(n6, W6), this.once("error", f5), this.once("end", O6), this.once("data", A5);
|
278418
278232
|
});
|
278419
278233
|
} };
|
278420
278234
|
}
|
@@ -278432,11 +278246,11 @@ function tt2() {
|
|
278432
278246
|
}
|
278433
278247
|
}, j3;
|
278434
278248
|
}
|
278435
|
-
var
|
278249
|
+
var C4;
|
278436
278250
|
function J3() {
|
278437
|
-
if (
|
278251
|
+
if (C4)
|
278438
278252
|
return i$3;
|
278439
|
-
|
278253
|
+
C4 = 1;
|
278440
278254
|
const w6 = j$1, n6 = P5.Buffer, z4 = O$2, u7 = i$3.constants = T4(), L6 = tt2(), E7 = n6.concat, c3 = Symbol("_superWrite");
|
278441
278255
|
|
278442
278256
|
class d6 extends Error {
|
@@ -278447,13 +278261,13 @@ function J3() {
|
|
278447
278261
|
return "ZlibError";
|
278448
278262
|
}
|
278449
278263
|
}
|
278450
|
-
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t8 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S4 = Symbol("strategy"),
|
278264
|
+
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t8 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S4 = Symbol("strategy"), g6 = Symbol("ended");
|
278451
278265
|
|
278452
278266
|
class x7 extends L6 {
|
278453
278267
|
constructor(s7, e10) {
|
278454
278268
|
if (!s7 || typeof s7 != "object")
|
278455
278269
|
throw new TypeError("invalid options for ZlibBase constructor");
|
278456
|
-
super(s7), this[f5] = false, this[
|
278270
|
+
super(s7), this[f5] = false, this[g6] = false, this[Z4] = s7, this[p5] = s7.flush, this[I7] = s7.finishFlush;
|
278457
278271
|
try {
|
278458
278272
|
this[t8] = new z4[e10](s7);
|
278459
278273
|
} catch (i6) {
|
@@ -278474,16 +278288,16 @@ function J3() {
|
|
278474
278288
|
this.ended || (typeof s7 != "number" && (s7 = this[y4]), this.write(Object.assign(n6.alloc(0), { [p5]: s7 })));
|
278475
278289
|
}
|
278476
278290
|
end(s7, e10, i6) {
|
278477
|
-
return s7 && this.write(s7, e10), this.flush(this[I7]), this[
|
278291
|
+
return s7 && this.write(s7, e10), this.flush(this[I7]), this[g6] = true, super.end(null, null, i6);
|
278478
278292
|
}
|
278479
278293
|
get ended() {
|
278480
|
-
return this[
|
278294
|
+
return this[g6];
|
278481
278295
|
}
|
278482
278296
|
write(s7, e10, i6) {
|
278483
278297
|
if (typeof e10 == "function" && (i6 = e10, e10 = "utf8"), typeof s7 == "string" && (s7 = n6.from(s7, e10)), this[f5])
|
278484
278298
|
return;
|
278485
278299
|
w6(this[t8], "zlib binding closed");
|
278486
|
-
const m7 = this[t8]._handle,
|
278300
|
+
const m7 = this[t8]._handle, R9 = m7.close;
|
278487
278301
|
m7.close = () => {};
|
278488
278302
|
const G4 = this[t8].close;
|
278489
278303
|
this[t8].close = () => {}, n6.concat = (l4) => l4;
|
@@ -278494,18 +278308,18 @@ function J3() {
|
|
278494
278308
|
} catch (l4) {
|
278495
278309
|
n6.concat = E7, this[_6](new d6(l4));
|
278496
278310
|
} finally {
|
278497
|
-
this[t8] && (this[t8]._handle = m7, m7.close =
|
278311
|
+
this[t8] && (this[t8]._handle = m7, m7.close = R9, this[t8].close = G4, this[t8].removeAllListeners("error"));
|
278498
278312
|
}
|
278499
278313
|
this[t8] && this[t8].on("error", (l4) => this[_6](new d6(l4)));
|
278500
|
-
let
|
278314
|
+
let b5;
|
278501
278315
|
if (h9)
|
278502
278316
|
if (Array.isArray(h9) && h9.length > 0) {
|
278503
|
-
|
278317
|
+
b5 = this[c3](n6.from(h9[0]));
|
278504
278318
|
for (let l4 = 1;l4 < h9.length; l4++)
|
278505
|
-
|
278319
|
+
b5 = this[c3](h9[l4]);
|
278506
278320
|
} else
|
278507
|
-
|
278508
|
-
return i6 && i6(),
|
278321
|
+
b5 = this[c3](n6.from(h9));
|
278322
|
+
return i6 && i6(), b5;
|
278509
278323
|
}
|
278510
278324
|
[c3](s7) {
|
278511
278325
|
return super.write(s7);
|
@@ -278525,8 +278339,8 @@ function J3() {
|
|
278525
278339
|
if (this[F3] !== s7 || this[S4] !== e10) {
|
278526
278340
|
this.flush(u7.Z_SYNC_FLUSH), w6(this[t8], "zlib binding closed");
|
278527
278341
|
const i6 = this[t8].flush;
|
278528
|
-
this[t8].flush = (m7,
|
278529
|
-
this.flush(m7),
|
278342
|
+
this[t8].flush = (m7, R9) => {
|
278343
|
+
this.flush(m7), R9();
|
278530
278344
|
};
|
278531
278345
|
try {
|
278532
278346
|
this[t8].params(s7, e10);
|
@@ -278584,24 +278398,24 @@ function J3() {
|
|
278584
278398
|
}
|
278585
278399
|
}
|
278586
278400
|
|
278587
|
-
class
|
278401
|
+
class O6 extends x7 {
|
278588
278402
|
constructor(s7, e10) {
|
278589
278403
|
s7 = s7 || {}, s7.flush = s7.flush || u7.BROTLI_OPERATION_PROCESS, s7.finishFlush = s7.finishFlush || u7.BROTLI_OPERATION_FINISH, super(s7, e10), this[y4] = u7.BROTLI_OPERATION_FLUSH;
|
278590
278404
|
}
|
278591
278405
|
}
|
278592
278406
|
|
278593
|
-
class v6 extends
|
278407
|
+
class v6 extends O6 {
|
278594
278408
|
constructor(s7) {
|
278595
278409
|
super(s7, "BrotliCompress");
|
278596
278410
|
}
|
278597
278411
|
}
|
278598
278412
|
|
278599
|
-
class
|
278413
|
+
class A5 extends O6 {
|
278600
278414
|
constructor(s7) {
|
278601
278415
|
super(s7, "BrotliDecompress");
|
278602
278416
|
}
|
278603
278417
|
}
|
278604
|
-
return i$3.Deflate = q7, i$3.Inflate = D3, i$3.Gzip = $6, i$3.Gunzip = N7, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip = U7, typeof z4.BrotliCompress == "function" ? (i$3.BrotliCompress = v6, i$3.BrotliDecompress =
|
278418
|
+
return i$3.Deflate = q7, i$3.Inflate = D3, i$3.Gzip = $6, i$3.Gunzip = N7, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip = U7, typeof z4.BrotliCompress == "function" ? (i$3.BrotliCompress = v6, i$3.BrotliDecompress = A5) : i$3.BrotliCompress = i$3.BrotliDecompress = class {
|
278605
278419
|
constructor() {
|
278606
278420
|
throw new Error("Brotli is not supported in this version of Node.js");
|
278607
278421
|
}
|
@@ -278613,7 +278427,7 @@ function rt4() {
|
|
278613
278427
|
if (F$2)
|
278614
278428
|
return O$1;
|
278615
278429
|
F$2 = 1;
|
278616
|
-
const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(),
|
278430
|
+
const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C5 = f$2(), x7 = J3(), { nextTick: j4 } = nt$1, B4 = Buffer.from([31, 139]), h9 = Symbol("state"), d6 = Symbol("writeEntry"), a7 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U7 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n6 = Symbol("buffer"), f5 = Symbol("queue"), u7 = Symbol("ended"), L6 = Symbol("emittedEnd"), b5 = Symbol("emit"), r6 = Symbol("unzip"), _6 = Symbol("consumeChunk"), g6 = Symbol("consumeChunkSub"), q7 = Symbol("consumeBody"), z4 = Symbol("consumeMeta"), Y4 = Symbol("consumeHeader"), N7 = Symbol("consuming"), D3 = Symbol("bufferConcat"), M5 = Symbol("maybeEnd"), S4 = Symbol("writing"), m7 = Symbol("aborted"), T5 = Symbol("onDone"), E$1 = Symbol("sawValidEntry"), R9 = Symbol("sawNullBlock"), A5 = Symbol("sawEOF"), V6 = Symbol("closeStream"), K4 = (X6) => true;
|
278617
278431
|
return O$1 = P6(class extends v6 {
|
278618
278432
|
constructor(t8) {
|
278619
278433
|
t8 = t8 || {}, super(t8), this.file = t8.file || "", this[E$1] = null, this.on(T5, (s7) => {
|
@@ -278622,7 +278436,7 @@ function rt4() {
|
|
278622
278436
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
278623
278437
|
}), this.strict = !!t8.strict, this.maxMetaEntrySize = t8.maxMetaEntrySize || G4, this.filter = typeof t8.filter == "function" ? t8.filter : K4;
|
278624
278438
|
const i6 = t8.file && (t8.file.endsWith(".tar.br") || t8.file.endsWith(".tbr"));
|
278625
|
-
this.brotli = !t8.gzip && t8.brotli !== undefined ? t8.brotli : i6 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W6, this[n6] = null, this[a7] = null, this[d6] = null, this[h9] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u7] = false, this[r6] = null, this[m7] = false, this[
|
278439
|
+
this.brotli = !t8.gzip && t8.brotli !== undefined ? t8.brotli : i6 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W6, this[n6] = null, this[a7] = null, this[d6] = null, this[h9] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u7] = false, this[r6] = null, this[m7] = false, this[R9] = false, this[A5] = false, this.on("end", () => this[V6]()), typeof t8.onwarn == "function" && this.on("warn", t8.onwarn), typeof t8.onentry == "function" && this.on("entry", t8.onentry);
|
278626
278440
|
}
|
278627
278441
|
[Y4](t8, i6) {
|
278628
278442
|
this[E$1] === null && (this[E$1] = false);
|
@@ -278633,8 +278447,8 @@ function rt4() {
|
|
278633
278447
|
return this.warn("TAR_ENTRY_INVALID", o8);
|
278634
278448
|
}
|
278635
278449
|
if (s7.nullBlock)
|
278636
|
-
this[
|
278637
|
-
else if (this[
|
278450
|
+
this[R9] ? (this[A5] = true, this[h9] === "begin" && (this[h9] = "header"), this[b5]("eof")) : (this[R9] = true, this[b5]("nullBlock"));
|
278451
|
+
else if (this[R9] = false, !s7.cksumValid)
|
278638
278452
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: s7 });
|
278639
278453
|
else if (!s7.path)
|
278640
278454
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header: s7 });
|
@@ -278654,7 +278468,7 @@ function rt4() {
|
|
278654
278468
|
e10.on("end", w6);
|
278655
278469
|
} else
|
278656
278470
|
this[E$1] = true;
|
278657
|
-
e10.meta ? e10.size > this.maxMetaEntrySize ? (e10.ignore = true, this[
|
278471
|
+
e10.meta ? e10.size > this.maxMetaEntrySize ? (e10.ignore = true, this[b5]("ignoredEntry", e10), this[h9] = "ignore", e10.resume()) : e10.size > 0 && (this[c3] = "", e10.on("data", (w6) => this[c3] += w6), this[h9] = "meta") : (this[l4] = null, e10.ignore = e10.ignore || !this.filter(e10.path, e10), e10.ignore ? (this[b5]("ignoredEntry", e10), this[h9] = e10.remain ? "ignore" : "header", e10.resume()) : (e10.remain ? this[h9] = "body" : (this[h9] = "header", e10.end()), this[a7] ? this[f5].push(e10) : (this[f5].push(e10), this[I7]())));
|
278658
278472
|
}
|
278659
278473
|
}
|
278660
278474
|
}
|
@@ -278682,17 +278496,17 @@ function rt4() {
|
|
278682
278496
|
const s7 = this[d6], o8 = this[q7](t8, i6);
|
278683
278497
|
return this[d6] || this[H4](s7), o8;
|
278684
278498
|
}
|
278685
|
-
[
|
278499
|
+
[b5](t8, i6, s7) {
|
278686
278500
|
!this[f5].length && !this[a7] ? this.emit(t8, i6, s7) : this[f5].push([t8, i6, s7]);
|
278687
278501
|
}
|
278688
278502
|
[H4](t8) {
|
278689
|
-
switch (this[
|
278503
|
+
switch (this[b5]("meta", this[c3]), t8.type) {
|
278690
278504
|
case "ExtendedHeader":
|
278691
278505
|
case "OldExtendedHeader":
|
278692
|
-
this[l4] =
|
278506
|
+
this[l4] = C5.parse(this[c3], this[l4], false);
|
278693
278507
|
break;
|
278694
278508
|
case "GlobalExtendedHeader":
|
278695
|
-
this[y4] =
|
278509
|
+
this[y4] = C5.parse(this[c3], this[y4], true);
|
278696
278510
|
break;
|
278697
278511
|
case "NextFileHasLongPath":
|
278698
278512
|
case "OldGnuLongPath":
|
@@ -278753,7 +278567,7 @@ function rt4() {
|
|
278753
278567
|
const i6 = this[n6] ? this[n6].length : 0;
|
278754
278568
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t8.blockRemain} more bytes, only ${i6} available)`, { entry: t8 }), this[n6] && t8.write(this[n6]), t8.end();
|
278755
278569
|
}
|
278756
|
-
this[
|
278570
|
+
this[b5](T5);
|
278757
278571
|
}
|
278758
278572
|
}
|
278759
278573
|
[_6](t8) {
|
@@ -278765,21 +278579,21 @@ function rt4() {
|
|
278765
278579
|
if (this[N7] = true, this[n6]) {
|
278766
278580
|
this[D3](t8);
|
278767
278581
|
const i6 = this[n6];
|
278768
|
-
this[n6] = null, this[
|
278582
|
+
this[n6] = null, this[g6](i6);
|
278769
278583
|
} else
|
278770
|
-
this[
|
278771
|
-
for (;this[n6] && this[n6].length >= 512 && !this[m7] && !this[
|
278584
|
+
this[g6](t8);
|
278585
|
+
for (;this[n6] && this[n6].length >= 512 && !this[m7] && !this[A5]; ) {
|
278772
278586
|
const i6 = this[n6];
|
278773
|
-
this[n6] = null, this[
|
278587
|
+
this[n6] = null, this[g6](i6);
|
278774
278588
|
}
|
278775
278589
|
this[N7] = false;
|
278776
278590
|
}
|
278777
278591
|
(!this[n6] || this[u7]) && this[M5]();
|
278778
278592
|
}
|
278779
|
-
[
|
278593
|
+
[g6](t8) {
|
278780
278594
|
let i6 = 0;
|
278781
278595
|
const s7 = t8.length;
|
278782
|
-
for (;i6 + 512 <= s7 && !this[m7] && !this[
|
278596
|
+
for (;i6 + 512 <= s7 && !this[m7] && !this[A5]; )
|
278783
278597
|
switch (this[h9]) {
|
278784
278598
|
case "begin":
|
278785
278599
|
case "header":
|
@@ -278809,15 +278623,15 @@ function X6() {
|
|
278809
278623
|
return s$4;
|
278810
278624
|
v$1 = 1;
|
278811
278625
|
const H4 = tt2(), I7 = nt2.EventEmitter, r6 = V5;
|
278812
|
-
let
|
278813
|
-
if (!
|
278626
|
+
let R9 = r6.writev;
|
278627
|
+
if (!R9) {
|
278814
278628
|
const c3 = process.binding("fs"), t8 = c3.FSReqWrap || c3.FSReqCallback;
|
278815
|
-
|
278816
|
-
const G4 = (J4, K4) =>
|
278629
|
+
R9 = (e10, i6, $6, A5) => {
|
278630
|
+
const G4 = (J4, K4) => A5(J4, K4, i6), j4 = new t8;
|
278817
278631
|
j4.oncomplete = G4, c3.writeBuffers(e10, i6, $6, j4);
|
278818
278632
|
};
|
278819
278633
|
}
|
278820
|
-
const m7 = Symbol("_autoClose"), h9 = Symbol("_close"),
|
278634
|
+
const m7 = Symbol("_autoClose"), h9 = Symbol("_close"), g6 = Symbol("_ended"), s7 = Symbol("_fd"), B4 = Symbol("_finished"), o8 = Symbol("_flags"), x7 = Symbol("_flush"), z4 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q7 = Symbol("_mode"), E7 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W6 = Symbol("_onread"), _6 = Symbol("_onwrite"), a7 = Symbol("_open"), l4 = Symbol("_path"), u7 = Symbol("_pos"), n6 = Symbol("_queue"), S4 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N7 = Symbol("_size"), C5 = Symbol("_write"), b5 = Symbol("_writing"), F3 = Symbol("_defaultFlag"), p5 = Symbol("_errored");
|
278821
278635
|
|
278822
278636
|
class D3 extends H4 {
|
278823
278637
|
constructor(t8, e10) {
|
@@ -278921,9 +278735,9 @@ function X6() {
|
|
278921
278735
|
}
|
278922
278736
|
}
|
278923
278737
|
|
278924
|
-
class
|
278738
|
+
class O6 extends I7 {
|
278925
278739
|
constructor(t8, e10) {
|
278926
|
-
e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[
|
278740
|
+
e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[b5] = false, this[g6] = false, this[E7] = false, this[n6] = [], this[l4] = t8, this[s7] = typeof e10.fd == "number" ? e10.fd : null, this[q7] = e10.mode === undefined ? 438 : e10.mode, this[u7] = typeof e10.start == "number" ? e10.start : null, this[m7] = typeof e10.autoClose == "boolean" ? e10.autoClose : true;
|
278927
278741
|
const i6 = this[u7] !== null ? "r+" : "w";
|
278928
278742
|
this[F3] = e10.flags === undefined, this[o8] = this[F3] ? i6 : e10.flags, this[s7] === null && this[a7]();
|
278929
278743
|
}
|
@@ -278942,7 +278756,7 @@ function X6() {
|
|
278942
278756
|
return this[l4];
|
278943
278757
|
}
|
278944
278758
|
[d6](t8) {
|
278945
|
-
this[h9](), this[
|
278759
|
+
this[h9](), this[b5] = true, this.emit("error", t8);
|
278946
278760
|
}
|
278947
278761
|
[a7]() {
|
278948
278762
|
r6.open(this[l4], this[o8], this[q7], (t8, e10) => this[y4](t8, e10));
|
@@ -278951,25 +278765,25 @@ function X6() {
|
|
278951
278765
|
this[F3] && this[o8] === "r+" && t8 && t8.code === "ENOENT" ? (this[o8] = "w", this[a7]()) : t8 ? this[d6](t8) : (this[s7] = e10, this.emit("open", e10), this[x7]());
|
278952
278766
|
}
|
278953
278767
|
end(t8, e10) {
|
278954
|
-
return t8 && this.write(t8, e10), this[
|
278768
|
+
return t8 && this.write(t8, e10), this[g6] = true, !this[b5] && !this[n6].length && typeof this[s7] == "number" && this[_6](null, 0), this;
|
278955
278769
|
}
|
278956
278770
|
write(t8, e10) {
|
278957
|
-
return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[
|
278771
|
+
return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[g6] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[b5] || this[n6].length ? (this[n6].push(t8), this[E7] = true, false) : (this[b5] = true, this[C5](t8), true);
|
278958
278772
|
}
|
278959
|
-
[
|
278773
|
+
[C5](t8) {
|
278960
278774
|
r6.write(this[s7], t8, 0, t8.length, this[u7], (e10, i6) => this[_6](e10, i6));
|
278961
278775
|
}
|
278962
278776
|
[_6](t8, e10) {
|
278963
|
-
t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[
|
278777
|
+
t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[b5] = false, this[g6] && !this[B4] ? (this[B4] = true, this[h9](), this.emit("finish")) : this[E7] && (this[E7] = false, this.emit("drain"))));
|
278964
278778
|
}
|
278965
278779
|
[x7]() {
|
278966
278780
|
if (this[n6].length === 0)
|
278967
|
-
this[
|
278781
|
+
this[g6] && this[_6](null, 0);
|
278968
278782
|
else if (this[n6].length === 1)
|
278969
|
-
this[
|
278783
|
+
this[C5](this[n6].pop());
|
278970
278784
|
else {
|
278971
278785
|
const t8 = this[n6];
|
278972
|
-
this[n6] = [],
|
278786
|
+
this[n6] = [], R9(this[s7], t8, this[u7], (e10, i6) => this[_6](e10, i6));
|
278973
278787
|
}
|
278974
278788
|
}
|
278975
278789
|
[h9]() {
|
@@ -278980,7 +278794,7 @@ function X6() {
|
|
278980
278794
|
}
|
278981
278795
|
}
|
278982
278796
|
|
278983
|
-
class U7 extends
|
278797
|
+
class U7 extends O6 {
|
278984
278798
|
[a7]() {
|
278985
278799
|
let t8;
|
278986
278800
|
if (this[F3] && this[o8] === "r+")
|
@@ -279001,7 +278815,7 @@ function X6() {
|
|
279001
278815
|
this[s7] = null, r6.closeSync(t8), this.emit("close");
|
279002
278816
|
}
|
279003
278817
|
}
|
279004
|
-
[
|
278818
|
+
[C5](t8) {
|
279005
278819
|
let e10 = true;
|
279006
278820
|
try {
|
279007
278821
|
this[_6](null, r6.writeSync(this[s7], t8, 0, t8.length, this[u7])), e10 = false;
|
@@ -279013,7 +278827,7 @@ function X6() {
|
|
279013
278827
|
}
|
279014
278828
|
}
|
279015
278829
|
}
|
279016
|
-
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream =
|
278830
|
+
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream = O6, s$4.WriteStreamSync = U7, s$4;
|
279017
278831
|
}
|
279018
278832
|
var r$1 = { exports: {} };
|
279019
278833
|
var i$2;
|
@@ -279166,11 +278980,11 @@ function S4() {
|
|
279166
278980
|
return n6.sync = d6, n6.native = (e10, r6) => a7(u7(e10), i6(r6)), n6.manual = (e10, r6) => o8(u7(e10), i6(r6)), n6.nativeSync = (e10, r6) => c3(u7(e10), i6(r6)), n6.manualSync = (e10, r6) => q7(u7(e10), i6(r6)), m7 = n6, m7;
|
279167
278981
|
}
|
279168
278982
|
var y$12;
|
279169
|
-
var
|
278983
|
+
var O6;
|
279170
278984
|
function F$1() {
|
279171
|
-
if (
|
278985
|
+
if (O6)
|
279172
278986
|
return y$12;
|
279173
|
-
|
278987
|
+
O6 = 1;
|
279174
278988
|
const c3 = V5, a7 = H$2, T5 = c3.lchown ? "lchown" : "chown", I7 = c3.lchownSync ? "lchownSync" : "chownSync", i6 = c3.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), u7 = (r6, e10, n6) => {
|
279175
278989
|
try {
|
279176
278990
|
return c3[I7](r6, e10, n6);
|
@@ -279195,9 +279009,9 @@ function F$1() {
|
|
279195
279009
|
throw t9;
|
279196
279010
|
D3(r6, e10, n6);
|
279197
279011
|
}
|
279198
|
-
} : (r6, e10, n6) => u7(r6, e10, n6),
|
279012
|
+
} : (r6, e10, n6) => u7(r6, e10, n6), R9 = process.version;
|
279199
279013
|
let N7 = (r6, e10, n6) => c3.readdir(r6, e10, n6), q7 = (r6, e10) => c3.readdirSync(r6, e10);
|
279200
|
-
/^v4\./.test(
|
279014
|
+
/^v4\./.test(R9) && (N7 = (r6, e10, n6) => c3.readdir(r6, n6));
|
279201
279015
|
const h9 = (r6, e10, n6, t9) => {
|
279202
279016
|
c3[T5](r6, e10, n6, _6(r6, e10, n6, (o8) => {
|
279203
279017
|
t9(o8 && o8.code !== "ENOENT" ? o8 : null);
|
@@ -279241,7 +279055,7 @@ function F$1() {
|
|
279241
279055
|
};
|
279242
279056
|
s7.forEach((l4) => S5(r6, l4, e10, n6, H4));
|
279243
279057
|
});
|
279244
|
-
},
|
279058
|
+
}, C5 = (r6, e10, n6, t9) => {
|
279245
279059
|
if (typeof e10 == "string")
|
279246
279060
|
try {
|
279247
279061
|
const o8 = c3.lstatSync(a7.resolve(r6, e10));
|
@@ -279263,16 +279077,16 @@ function F$1() {
|
|
279263
279077
|
return w6(r6, e10, n6);
|
279264
279078
|
throw o8;
|
279265
279079
|
}
|
279266
|
-
return t9 && t9.length && t9.forEach((o8) =>
|
279080
|
+
return t9 && t9.length && t9.forEach((o8) => C5(r6, o8, e10, n6)), w6(r6, e10, n6);
|
279267
279081
|
};
|
279268
279082
|
return y$12 = E7, E7.sync = m8, y$12;
|
279269
279083
|
}
|
279270
|
-
var
|
279084
|
+
var R9;
|
279271
279085
|
function H4() {
|
279272
|
-
if (
|
279086
|
+
if (R9)
|
279273
279087
|
return r$1.exports;
|
279274
|
-
|
279275
|
-
const
|
279088
|
+
R9 = 1;
|
279089
|
+
const g6 = S4(), l4 = V5, p5 = H$2, x7 = F$1(), y4 = a$7();
|
279276
279090
|
|
279277
279091
|
class D3 extends Error {
|
279278
279092
|
constructor(e10, s7) {
|
@@ -279306,23 +279120,23 @@ function H4() {
|
|
279306
279120
|
if (n6 === d6)
|
279307
279121
|
return I7(n6, w6);
|
279308
279122
|
if (u7)
|
279309
|
-
return
|
279123
|
+
return g6(n6, { mode: c3 }).then((k6) => w6(null, k6), w6);
|
279310
279124
|
const S5 = y4(p5.relative(d6, n6)).split("/");
|
279311
|
-
|
279125
|
+
C5(d6, S5, c3, h9, m8, d6, null, w6);
|
279312
279126
|
};
|
279313
|
-
const
|
279127
|
+
const C5 = (n6, e10, s7, r6, c3, f5, t9, i6) => {
|
279314
279128
|
if (!e10.length)
|
279315
279129
|
return i6(null, t9);
|
279316
279130
|
const a7 = e10.shift(), u7 = y4(p5.resolve(n6 + "/" + a7));
|
279317
279131
|
if (v6(r6, u7))
|
279318
|
-
return
|
279132
|
+
return C5(u7, e10, s7, r6, c3, f5, t9, i6);
|
279319
279133
|
l4.mkdir(u7, s7, j4(u7, e10, s7, r6, c3, f5, t9, i6));
|
279320
279134
|
}, j4 = (n6, e10, s7, r6, c3, f5, t9, i6) => (a7) => {
|
279321
279135
|
a7 ? l4.lstat(n6, (u7, m8) => {
|
279322
279136
|
if (u7)
|
279323
279137
|
u7.path = u7.path && y4(u7.path), i6(u7);
|
279324
279138
|
else if (m8.isDirectory())
|
279325
|
-
|
279139
|
+
C5(n6, e10, s7, r6, c3, f5, t9, i6);
|
279326
279140
|
else if (c3)
|
279327
279141
|
l4.unlink(n6, (h9) => {
|
279328
279142
|
if (h9)
|
@@ -279334,7 +279148,7 @@ function H4() {
|
|
279334
279148
|
return i6(new D3(n6, n6 + "/" + e10.join("/")));
|
279335
279149
|
i6(a7);
|
279336
279150
|
}
|
279337
|
-
}) : (t9 = t9 || n6,
|
279151
|
+
}) : (t9 = t9 || n6, C5(n6, e10, s7, r6, c3, f5, t9, i6));
|
279338
279152
|
}, L6 = (n6) => {
|
279339
279153
|
let e10 = false, s7 = "ENOTDIR";
|
279340
279154
|
try {
|
@@ -279356,7 +279170,7 @@ function H4() {
|
|
279356
279170
|
if (n6 === h9)
|
279357
279171
|
return L6(h9), d6();
|
279358
279172
|
if (a7)
|
279359
|
-
return d6(
|
279173
|
+
return d6(g6.sync(n6, r6));
|
279360
279174
|
const $6 = y4(p5.relative(h9, n6)).split("/");
|
279361
279175
|
let S5 = null;
|
279362
279176
|
for (let k6 = $6.shift(), o8 = h9;k6 && (o8 += "/" + k6); k6 = $6.shift())
|
@@ -279411,7 +279225,7 @@ function z4() {
|
|
279411
279225
|
if (f$1)
|
279412
279226
|
return u$1;
|
279413
279227
|
f$1 = 1;
|
279414
|
-
const l5 = j$1, m8 = a$12(),
|
279228
|
+
const l5 = j$1, m8 = a$12(), g6 = s7(), { join: d6 } = H$2, q7 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
279415
279229
|
return u$1 = () => {
|
279416
279230
|
const i7 = new Map, c3 = new Map, v6 = (e10) => e10.split("/").slice(0, -1).reduce((o8, r6) => (o8.length && (r6 = d6(o8[o8.length - 1], r6)), o8.push(r6 || "/"), o8), []), a8 = new Set, w6 = (e10) => {
|
279417
279231
|
const s8 = c3.get(e10);
|
@@ -279434,7 +279248,7 @@ function z4() {
|
|
279434
279248
|
}), a8.delete(e10), r6.forEach((t9) => p6(t9)), true;
|
279435
279249
|
};
|
279436
279250
|
return { check: h9, reserve: (e10, s8) => {
|
279437
|
-
e10 = q7 ? ["win32 parallelization disabled"] : e10.map((r6) =>
|
279251
|
+
e10 = q7 ? ["win32 parallelization disabled"] : e10.map((r6) => g6(d6(m8(r6))).toLowerCase());
|
279438
279252
|
const o8 = new Set(e10.map((r6) => v6(r6)).reduce((r6, t9) => r6.concat(t9)));
|
279439
279253
|
return c3.set(s8, { dirs: o8, paths: e10 }), e10.forEach((r6) => {
|
279440
279254
|
const t9 = i7.get(r6);
|
@@ -279477,8 +279291,8 @@ function Os() {
|
|
279477
279291
|
if (y4)
|
279478
279292
|
return G4;
|
279479
279293
|
y4 = 1;
|
279480
|
-
const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"),
|
279481
|
-
if (!
|
279294
|
+
const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"), O7 = Symbol("link"), B4 = Symbol("symlink"), z$1 = Symbol("hardlink"), W6 = Symbol("unsupported"), j4 = Symbol("checkPath"), b5 = Symbol("mkdir"), m8 = Symbol("onError"), $6 = Symbol("pending"), V$1 = Symbol("pend"), S5 = Symbol("unpend"), P6 = Symbol("ended"), A5 = Symbol("maybeClose"), x7 = Symbol("skip"), E7 = Symbol("doChown"), R10 = Symbol("uid"), _6 = Symbol("gid"), g6 = Symbol("checkedCwd"), X$12 = Ds, J4 = F3(), C5 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a8, s8) => {
|
279295
|
+
if (!C5)
|
279482
279296
|
return r6.unlink(a8, s8);
|
279483
279297
|
const i7 = a8 + ".DELETE." + X$12.randomBytes(16).toString("hex");
|
279484
279298
|
r6.rename(a8, i7, (e11) => {
|
@@ -279487,7 +279301,7 @@ function Os() {
|
|
279487
279301
|
r6.unlink(i7, s8);
|
279488
279302
|
});
|
279489
279303
|
}, us = (a8) => {
|
279490
|
-
if (!
|
279304
|
+
if (!C5)
|
279491
279305
|
return r6.unlinkSync(a8);
|
279492
279306
|
const s8 = a8 + ".DELETE." + X$12.randomBytes(16).toString("hex");
|
279493
279307
|
r6.renameSync(a8, s8), r6.unlinkSync(s8);
|
@@ -279505,8 +279319,8 @@ function Os() {
|
|
279505
279319
|
class L6 extends is {
|
279506
279320
|
constructor(s8) {
|
279507
279321
|
if (s8 || (s8 = {}), s8.ondone = (i7) => {
|
279508
|
-
this[P6] = true, this[
|
279509
|
-
}, super(s8), this[
|
279322
|
+
this[P6] = true, this[A5]();
|
279323
|
+
}, super(s8), this[g6] = false, this.reservations = ts(), this.transform = typeof s8.transform == "function" ? s8.transform : null, this.writable = true, this.readable = false, this[$6] = 0, this[P6] = false, this.dirCache = s8.dirCache || new Map, typeof s8.uid == "number" || typeof s8.gid == "number") {
|
279510
279324
|
if (typeof s8.uid != "number" || typeof s8.gid != "number")
|
279511
279325
|
throw new TypeError("cannot set owner without number uid and gid");
|
279512
279326
|
if (s8.preserveOwner)
|
@@ -279514,12 +279328,12 @@ function Os() {
|
|
279514
279328
|
this.uid = s8.uid, this.gid = s8.gid, this.setOwner = true;
|
279515
279329
|
} else
|
279516
279330
|
this.uid = null, this.gid = null, this.setOwner = false;
|
279517
|
-
s8.preserveOwner === undefined && typeof s8.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s8.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s8.maxDepth == "number" ? s8.maxDepth : cs, this.forceChown = s8.forceChown === true, this.win32 = !!s8.win32 ||
|
279331
|
+
s8.preserveOwner === undefined && typeof s8.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s8.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s8.maxDepth == "number" ? s8.maxDepth : cs, this.forceChown = s8.forceChown === true, this.win32 = !!s8.win32 || C5, this.newer = !!s8.newer, this.keep = !!s8.keep, this.noMtime = !!s8.noMtime, this.preservePaths = !!s8.preservePaths, this.unlink = !!s8.unlink, this.cwd = l5(w6.resolve(s8.cwd || process.cwd())), this.strip = +s8.strip || 0, this.processUmask = s8.noChmod ? 0 : process.umask(), this.umask = typeof s8.umask == "number" ? s8.umask : this.processUmask, this.dmode = s8.dmode || 511 & ~this.umask, this.fmode = s8.fmode || 438 & ~this.umask, this.on("entry", (i7) => this[H$12](i7));
|
279518
279332
|
}
|
279519
279333
|
warn(s8, i7, e11 = {}) {
|
279520
279334
|
return (s8 === "TAR_BAD_ARCHIVE" || s8 === "TAR_ABORT") && (e11.recoverable = false), super.warn(s8, i7, e11);
|
279521
279335
|
}
|
279522
|
-
[
|
279336
|
+
[A5]() {
|
279523
279337
|
this[P6] && this[$6] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
279524
279338
|
}
|
279525
279339
|
[j4](s8) {
|
@@ -279539,7 +279353,7 @@ function Os() {
|
|
279539
279353
|
if (isFinite(this.maxDepth) && e11.length > this.maxDepth)
|
279540
279354
|
return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: s8, path: i7, depth: e11.length, maxDepth: this.maxDepth }), false;
|
279541
279355
|
if (!this.preservePaths) {
|
279542
|
-
if (e11.includes("..") ||
|
279356
|
+
if (e11.includes("..") || C5 && /^[a-z]:\.\.$/i.test(e11[0]))
|
279543
279357
|
return this.warn("TAR_ENTRY_ERROR", "path contains '..'", { entry: s8, path: i7 }), false;
|
279544
279358
|
const [t9, o9] = os(i7);
|
279545
279359
|
t9 && (s8.path = o9, this.warn("TAR_ENTRY_INFO", `stripping ${t9} from absolute path`, { entry: s8, path: i7 }));
|
@@ -279579,13 +279393,13 @@ function Os() {
|
|
279579
279393
|
[m8](s8, i7) {
|
279580
279394
|
s8.name === "CwdError" ? this.emit("error", s8) : (this.warn("TAR_ENTRY_ERROR", s8, { entry: i7 }), this[S5](), i7.resume());
|
279581
279395
|
}
|
279582
|
-
[
|
279396
|
+
[b5](s8, i7, e11) {
|
279583
279397
|
M5(l5(s8), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cache: this.dirCache, cwd: this.cwd, mode: i7, noChmod: this.noChmod }, e11);
|
279584
279398
|
}
|
279585
279399
|
[E7](s8) {
|
279586
279400
|
return this.forceChown || this.preserveOwner && (typeof s8.uid == "number" && s8.uid !== this.processUid || typeof s8.gid == "number" && s8.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
|
279587
279401
|
}
|
279588
|
-
[
|
279402
|
+
[R10](s8) {
|
279589
279403
|
return Q4(this.uid, s8.uid, this.processUid);
|
279590
279404
|
}
|
279591
279405
|
[_6](s8) {
|
@@ -279615,7 +279429,7 @@ function Os() {
|
|
279615
279429
|
}
|
279616
279430
|
if (this[E7](s8)) {
|
279617
279431
|
o9++;
|
279618
|
-
const f5 = this[
|
279432
|
+
const f5 = this[R10](s8), k6 = this[_6](s8);
|
279619
279433
|
r6.fchown(p6, f5, k6, (D3) => D3 ? r6.chown(n7, f5, k6, (I7) => u8(I7 && D3)) : u8());
|
279620
279434
|
}
|
279621
279435
|
u8();
|
@@ -279627,7 +279441,7 @@ function Os() {
|
|
279627
279441
|
}
|
279628
279442
|
[F$12](s8, i7) {
|
279629
279443
|
const e11 = s8.mode & 4095 || this.dmode;
|
279630
|
-
this[
|
279444
|
+
this[b5](s8.absolute, e11, (t9) => {
|
279631
279445
|
if (t9) {
|
279632
279446
|
this[m8](t9, s8), i7();
|
279633
279447
|
return;
|
@@ -279636,30 +279450,30 @@ function Os() {
|
|
279636
279450
|
const u8 = (h9) => {
|
279637
279451
|
--o9 === 0 && (i7(), this[S5](), s8.resume());
|
279638
279452
|
};
|
279639
|
-
s8.mtime && !this.noMtime && (o9++, r6.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u8)), this[E7](s8) && (o9++, r6.chown(s8.absolute, this[
|
279453
|
+
s8.mtime && !this.noMtime && (o9++, r6.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u8)), this[E7](s8) && (o9++, r6.chown(s8.absolute, this[R10](s8), this[_6](s8), u8)), u8();
|
279640
279454
|
});
|
279641
279455
|
}
|
279642
279456
|
[W6](s8) {
|
279643
279457
|
s8.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${s8.type}`, { entry: s8 }), s8.resume();
|
279644
279458
|
}
|
279645
279459
|
[B4](s8, i7) {
|
279646
|
-
this[
|
279460
|
+
this[O7](s8, s8.linkpath, "symlink", i7);
|
279647
279461
|
}
|
279648
279462
|
[z$1](s8, i7) {
|
279649
279463
|
const e11 = l5(w6.resolve(this.cwd, s8.linkpath));
|
279650
|
-
this[
|
279464
|
+
this[O7](s8, e11, "link", i7);
|
279651
279465
|
}
|
279652
279466
|
[V$1]() {
|
279653
279467
|
this[$6]++;
|
279654
279468
|
}
|
279655
279469
|
[S5]() {
|
279656
|
-
this[$6]--, this[
|
279470
|
+
this[$6]--, this[A5]();
|
279657
279471
|
}
|
279658
279472
|
[x7](s8) {
|
279659
279473
|
this[S5](), s8.resume();
|
279660
279474
|
}
|
279661
279475
|
[N7](s8, i7) {
|
279662
|
-
return s8.type === "File" && !this.unlink && i7.isFile() && i7.nlink <= 1 && !
|
279476
|
+
return s8.type === "File" && !this.unlink && i7.isFile() && i7.nlink <= 1 && !C5;
|
279663
279477
|
}
|
279664
279478
|
[q7](s8) {
|
279665
279479
|
this[V$1]();
|
@@ -279674,18 +279488,18 @@ function Os() {
|
|
279674
279488
|
const e11 = (h9) => {
|
279675
279489
|
this[v6](s8), i7(h9);
|
279676
279490
|
}, t9 = () => {
|
279677
|
-
this[
|
279491
|
+
this[b5](this.cwd, this.dmode, (h9) => {
|
279678
279492
|
if (h9) {
|
279679
279493
|
this[m8](h9, s8), e11();
|
279680
279494
|
return;
|
279681
279495
|
}
|
279682
|
-
this[
|
279496
|
+
this[g6] = true, o9();
|
279683
279497
|
});
|
279684
279498
|
}, o9 = () => {
|
279685
279499
|
if (s8.absolute !== this.cwd) {
|
279686
279500
|
const h9 = l5(w6.dirname(s8.absolute));
|
279687
279501
|
if (h9 !== this.cwd)
|
279688
|
-
return this[
|
279502
|
+
return this[b5](h9, this.dmode, (c4) => {
|
279689
279503
|
if (c4) {
|
279690
279504
|
this[m8](c4, s8), e11();
|
279691
279505
|
return;
|
@@ -279715,7 +279529,7 @@ function Os() {
|
|
279715
279529
|
as(s8.absolute, (n7) => this[d6](n7, s8, e11));
|
279716
279530
|
});
|
279717
279531
|
};
|
279718
|
-
this[
|
279532
|
+
this[g6] ? o9() : t9();
|
279719
279533
|
}
|
279720
279534
|
[d6](s8, i7, e11) {
|
279721
279535
|
if (s8) {
|
@@ -279736,7 +279550,7 @@ function Os() {
|
|
279736
279550
|
return this[F$12](i7, e11);
|
279737
279551
|
}
|
279738
279552
|
}
|
279739
|
-
[
|
279553
|
+
[O7](s8, i7, e11, t9) {
|
279740
279554
|
r6[e11](i7, s8.absolute, (o9) => {
|
279741
279555
|
o9 ? this[m8](o9, s8) : (this[S5](), s8.resume()), t9();
|
279742
279556
|
});
|
@@ -279755,16 +279569,16 @@ function Os() {
|
|
279755
279569
|
return super[d6](s8, i7, () => {});
|
279756
279570
|
}
|
279757
279571
|
[q7](s8) {
|
279758
|
-
if (this[v6](s8), !this[
|
279759
|
-
const o9 = this[
|
279572
|
+
if (this[v6](s8), !this[g6]) {
|
279573
|
+
const o9 = this[b5](this.cwd, this.dmode);
|
279760
279574
|
if (o9)
|
279761
279575
|
return this[m8](o9, s8);
|
279762
|
-
this[
|
279576
|
+
this[g6] = true;
|
279763
279577
|
}
|
279764
279578
|
if (s8.absolute !== this.cwd) {
|
279765
279579
|
const o9 = l5(w6.dirname(s8.absolute));
|
279766
279580
|
if (o9 !== this.cwd) {
|
279767
|
-
const u8 = this[
|
279581
|
+
const u8 = this[b5](o9, this.dmode);
|
279768
279582
|
if (u8)
|
279769
279583
|
return this[m8](u8, s8);
|
279770
279584
|
}
|
@@ -279825,7 +279639,7 @@ function Os() {
|
|
279825
279639
|
}
|
279826
279640
|
}
|
279827
279641
|
if (this[E7](s8)) {
|
279828
|
-
const n7 = this[
|
279642
|
+
const n7 = this[R10](s8), p6 = this[_6](s8);
|
279829
279643
|
try {
|
279830
279644
|
r6.fchownSync(o9, n7, p6);
|
279831
279645
|
} catch (f5) {
|
@@ -279840,7 +279654,7 @@ function Os() {
|
|
279840
279654
|
});
|
279841
279655
|
}
|
279842
279656
|
[F$12](s8, i7) {
|
279843
|
-
const e11 = s8.mode & 4095 || this.dmode, t9 = this[
|
279657
|
+
const e11 = s8.mode & 4095 || this.dmode, t9 = this[b5](s8.absolute, e11);
|
279844
279658
|
if (t9) {
|
279845
279659
|
this[m8](t9, s8), i7();
|
279846
279660
|
return;
|
@@ -279851,18 +279665,18 @@ function Os() {
|
|
279851
279665
|
} catch {}
|
279852
279666
|
if (this[E7](s8))
|
279853
279667
|
try {
|
279854
|
-
r6.chownSync(s8.absolute, this[
|
279668
|
+
r6.chownSync(s8.absolute, this[R10](s8), this[_6](s8));
|
279855
279669
|
} catch {}
|
279856
279670
|
i7(), s8.resume();
|
279857
279671
|
}
|
279858
|
-
[
|
279672
|
+
[b5](s8, i7) {
|
279859
279673
|
try {
|
279860
279674
|
return M5.sync(l5(s8), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cache: this.dirCache, cwd: this.cwd, mode: i7 });
|
279861
279675
|
} catch (e11) {
|
279862
279676
|
return e11;
|
279863
279677
|
}
|
279864
279678
|
}
|
279865
|
-
[
|
279679
|
+
[O7](s8, i7, e11, t9) {
|
279866
279680
|
try {
|
279867
279681
|
r6[e11 + "Sync"](i7, s8.absolute), t9(), s8.resume();
|
279868
279682
|
} catch (o9) {
|
@@ -279899,11 +279713,11 @@ function v6() {
|
|
279899
279713
|
new y5.ReadStreamSync(o9, { readSize: s8, size: t9.size }).pipe(e11);
|
279900
279714
|
}, h9 = (r6, e11) => {
|
279901
279715
|
const o9 = new u8(r6), t9 = r6.maxReadSize || 16 * 1024 * 1024, s8 = r6.file, n7 = new Promise((i7, a8) => {
|
279902
|
-
o9.on("error", a8), o9.on("close", i7), p6.stat(s8, (c4,
|
279716
|
+
o9.on("error", a8), o9.on("close", i7), p6.stat(s8, (c4, R10) => {
|
279903
279717
|
if (c4)
|
279904
279718
|
a8(c4);
|
279905
279719
|
else {
|
279906
|
-
const S5 = new y5.ReadStream(s8, { readSize: t9, size:
|
279720
|
+
const S5 = new y5.ReadStream(s8, { readSize: t9, size: R10.size });
|
279907
279721
|
S5.on("error", a8), S5.pipe(o9);
|
279908
279722
|
}
|
279909
279723
|
});
|
@@ -280809,7 +280623,7 @@ async function providerPrompt(platformConfig, argument) {
|
|
280809
280623
|
choices: platformConfig.deploymentEngineTargets.map((target) => ({
|
280810
280624
|
name: target.name,
|
280811
280625
|
value: target.id
|
280812
|
-
})).sort((a8,
|
280626
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name))
|
280813
280627
|
});
|
280814
280628
|
return platformConfig.deploymentEngineTargets.find((target) => target.id === provider);
|
280815
280629
|
}
|
@@ -280840,7 +280654,7 @@ async function regionPrompt(provider, argument) {
|
|
280840
280654
|
choices: provider.clusters.map((cluster) => ({
|
280841
280655
|
name: cluster.name,
|
280842
280656
|
value: cluster.id
|
280843
|
-
})).sort((a8,
|
280657
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name))
|
280844
280658
|
});
|
280845
280659
|
return provider.clusters.find((cluster) => cluster.id === region);
|
280846
280660
|
}
|
@@ -282727,19 +282541,19 @@ function configCommand() {
|
|
282727
282541
|
useCases: useCases.map((useCase) => ({
|
282728
282542
|
id: useCase.id,
|
282729
282543
|
name: useCase.name
|
282730
|
-
})).sort((a8,
|
282544
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name)),
|
282731
282545
|
kits: kits.map((kit) => ({
|
282732
282546
|
id: kit.id,
|
282733
282547
|
name: kit.name,
|
282734
282548
|
description: kit.description,
|
282735
282549
|
npmPackage: kit.npmPackageName
|
282736
|
-
})).sort((a8,
|
282550
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name)),
|
282737
282551
|
deploymentEngineTargets: platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).flatMap((provider) => provider.clusters.filter((cluster) => !cluster.disabled).map((region) => ({
|
282738
282552
|
providerId: provider.id,
|
282739
282553
|
regionId: getRegionId(region.id),
|
282740
282554
|
providerName: provider.name,
|
282741
282555
|
regionName: region.name
|
282742
|
-
}))).sort((a8,
|
282556
|
+
}))).sort((a8, b5) => a8.providerId.localeCompare(b5.providerId) || a8.regionId.localeCompare(b5.regionId)),
|
282743
282557
|
preDeployedAbis: platformConfig.preDeployedAbis.filter(({ featureflagged }) => !featureflagged).flatMap(({ abis }) => abis).sort()
|
282744
282558
|
};
|
282745
282559
|
if (output === "json") {
|
@@ -283179,7 +282993,7 @@ async function useCasePrompt(platformConfig, argument) {
|
|
283179
282993
|
choices: selectableUseCases.map((useCase2) => ({
|
283180
282994
|
name: formatUseCaseName(useCase2.name),
|
283181
282995
|
value: useCase2.id
|
283182
|
-
})).sort((a8,
|
282996
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name))
|
283183
282997
|
});
|
283184
282998
|
return platformConfig.smartContractSets.sets.find((set2) => set2.id === useCase);
|
283185
282999
|
}
|
@@ -283518,6 +283332,17 @@ async function addressPrompt({
|
|
283518
283332
|
node,
|
283519
283333
|
hardhatConfig
|
283520
283334
|
}) {
|
283335
|
+
if (!node) {
|
283336
|
+
return esm_default2({
|
283337
|
+
message: "Which private key address do you want to deploy from?",
|
283338
|
+
validate: (value4) => {
|
283339
|
+
if (!isAddress(value4)) {
|
283340
|
+
return "Invalid address";
|
283341
|
+
}
|
283342
|
+
return true;
|
283343
|
+
}
|
283344
|
+
});
|
283345
|
+
}
|
283521
283346
|
const possiblePrivateKeys = node.privateKeys?.filter(isValidPrivateKey) ?? [];
|
283522
283347
|
const defaultAddress = hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
|
283523
283348
|
const defaultPossible = accept && defaultAddress;
|
@@ -283616,19 +283441,25 @@ function hardhatDeployRemoteCommand() {
|
|
283616
283441
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
283617
283442
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
283618
283443
|
const env2 = await loadEnv(false, !!prod);
|
283444
|
+
let node;
|
283445
|
+
let envHardhatConfig = {};
|
283619
283446
|
const instance = await instancePrompt(env2, true);
|
283620
|
-
|
283621
|
-
|
283622
|
-
|
283623
|
-
|
283624
|
-
|
283625
|
-
|
283626
|
-
|
283627
|
-
|
283628
|
-
|
283629
|
-
|
283630
|
-
|
283631
|
-
|
283447
|
+
if (instance === STANDALONE_INSTANCE2) {
|
283448
|
+
envHardhatConfig.BTP_RPC_URL = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT ?? "";
|
283449
|
+
} else {
|
283450
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
283451
|
+
env: env2,
|
283452
|
+
instance,
|
283453
|
+
prefer: "application"
|
283454
|
+
});
|
283455
|
+
const settlemint = createSettleMintClient({
|
283456
|
+
accessToken,
|
283457
|
+
instance
|
283458
|
+
});
|
283459
|
+
const node2 = await selectTargetNode({ env: env2, blockchainNodeUniqueName, autoAccept, settlemint });
|
283460
|
+
envHardhatConfig = await settlemint.foundry.env(node2.uniqueName);
|
283461
|
+
}
|
283462
|
+
const hardhatConfig = await getHardhatConfigData(envHardhatConfig);
|
283632
283463
|
if (verify && !hardhatConfig?.etherscan?.apiKey) {
|
283633
283464
|
cancel2("It is not possible to verify the deployment on this network unless you supply an Etherscan API key in the hardhat.config.ts file");
|
283634
283465
|
}
|
@@ -283656,7 +283487,7 @@ function hardhatDeployRemoteCommand() {
|
|
283656
283487
|
"--default-sender",
|
283657
283488
|
address,
|
283658
283489
|
module ?? "ignition/modules/main.ts"
|
283659
|
-
].filter(Boolean), { env:
|
283490
|
+
].filter(Boolean), { env: envHardhatConfig });
|
283660
283491
|
const outputStr = output.join(`
|
283661
283492
|
`);
|
283662
283493
|
if (!outputStr.includes("Deploy cancelled")) {
|
@@ -284302,4 +284133,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
284302
284133
|
// src/cli.ts
|
284303
284134
|
sdkCliCommand();
|
284304
284135
|
|
284305
|
-
//# debugId=
|
284136
|
+
//# debugId=C923B56C46F8B88464756E2164756E21
|