@settlemint/sdk-cli 1.0.9-main73ff5050 → 1.0.9-main74c34848
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 +2521 -697
- package/dist/cli.js.map +48 -10
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -202564,24 +202564,24 @@ ${options.prefix}` : `
|
|
|
202564
202564
|
}
|
|
202565
202565
|
filesToStringWorker(writeProjectFileNames, writeFileExplaination, writeFileVersionAndText) {
|
|
202566
202566
|
if (this.initialLoadPending)
|
|
202567
|
-
return
|
|
202567
|
+
return `\tFiles (0) InitialLoadPending
|
|
202568
202568
|
`;
|
|
202569
202569
|
if (!this.program)
|
|
202570
|
-
return
|
|
202570
|
+
return `\tFiles (0) NoProgram
|
|
202571
202571
|
`;
|
|
202572
202572
|
const sourceFiles = this.program.getSourceFiles();
|
|
202573
|
-
let strBuilder =
|
|
202573
|
+
let strBuilder = `\tFiles (${sourceFiles.length})
|
|
202574
202574
|
`;
|
|
202575
202575
|
if (writeProjectFileNames) {
|
|
202576
202576
|
for (const file of sourceFiles) {
|
|
202577
|
-
strBuilder +=
|
|
202577
|
+
strBuilder += `\t${file.fileName}${writeFileVersionAndText ? ` ${file.version} ${JSON.stringify(file.text)}` : ""}
|
|
202578
202578
|
`;
|
|
202579
202579
|
}
|
|
202580
202580
|
if (writeFileExplaination) {
|
|
202581
202581
|
strBuilder += `
|
|
202582
202582
|
|
|
202583
202583
|
`;
|
|
202584
|
-
explainFiles(this.program, (s2) => strBuilder +=
|
|
202584
|
+
explainFiles(this.program, (s2) => strBuilder += `\t${s2}
|
|
202585
202585
|
`);
|
|
202586
202586
|
}
|
|
202587
202587
|
}
|
|
@@ -204716,8 +204716,8 @@ ${options.prefix}` : `
|
|
|
204716
204716
|
this.logger.info("Open files: ");
|
|
204717
204717
|
this.openFiles.forEach((projectRootPath, path5) => {
|
|
204718
204718
|
const info = this.getScriptInfoForPath(path5);
|
|
204719
|
-
this.logger.info(
|
|
204720
|
-
this.logger.info(
|
|
204719
|
+
this.logger.info(`\tFileName: ${info.fileName} ProjectRootPath: ${projectRootPath}`);
|
|
204720
|
+
this.logger.info(`\t\tProjects: ${info.containingProjects.map((p) => p.getProjectName())}`);
|
|
204721
204721
|
});
|
|
204722
204722
|
this.logger.endGroup();
|
|
204723
204723
|
}
|
|
@@ -228191,6 +228191,222 @@ var require_lib12 = __commonJS((exports, module) => {
|
|
|
228191
228191
|
module.exports = MuteStream;
|
|
228192
228192
|
});
|
|
228193
228193
|
|
|
228194
|
+
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
228195
|
+
var signals;
|
|
228196
|
+
var init_signals = __esm(() => {
|
|
228197
|
+
signals = [];
|
|
228198
|
+
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
228199
|
+
if (process.platform !== "win32") {
|
|
228200
|
+
signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
228201
|
+
}
|
|
228202
|
+
if (process.platform === "linux") {
|
|
228203
|
+
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
228204
|
+
}
|
|
228205
|
+
});
|
|
228206
|
+
|
|
228207
|
+
// ../../node_modules/signal-exit/dist/mjs/index.js
|
|
228208
|
+
class Emitter2 {
|
|
228209
|
+
emitted = {
|
|
228210
|
+
afterExit: false,
|
|
228211
|
+
exit: false
|
|
228212
|
+
};
|
|
228213
|
+
listeners = {
|
|
228214
|
+
afterExit: [],
|
|
228215
|
+
exit: []
|
|
228216
|
+
};
|
|
228217
|
+
count = 0;
|
|
228218
|
+
id = Math.random();
|
|
228219
|
+
constructor() {
|
|
228220
|
+
if (global2[kExitEmitter]) {
|
|
228221
|
+
return global2[kExitEmitter];
|
|
228222
|
+
}
|
|
228223
|
+
ObjectDefineProperty(global2, kExitEmitter, {
|
|
228224
|
+
value: this,
|
|
228225
|
+
writable: false,
|
|
228226
|
+
enumerable: false,
|
|
228227
|
+
configurable: false
|
|
228228
|
+
});
|
|
228229
|
+
}
|
|
228230
|
+
on(ev, fn) {
|
|
228231
|
+
this.listeners[ev].push(fn);
|
|
228232
|
+
}
|
|
228233
|
+
removeListener(ev, fn) {
|
|
228234
|
+
const list3 = this.listeners[ev];
|
|
228235
|
+
const i6 = list3.indexOf(fn);
|
|
228236
|
+
if (i6 === -1) {
|
|
228237
|
+
return;
|
|
228238
|
+
}
|
|
228239
|
+
if (i6 === 0 && list3.length === 1) {
|
|
228240
|
+
list3.length = 0;
|
|
228241
|
+
} else {
|
|
228242
|
+
list3.splice(i6, 1);
|
|
228243
|
+
}
|
|
228244
|
+
}
|
|
228245
|
+
emit(ev, code2, signal) {
|
|
228246
|
+
if (this.emitted[ev]) {
|
|
228247
|
+
return false;
|
|
228248
|
+
}
|
|
228249
|
+
this.emitted[ev] = true;
|
|
228250
|
+
let ret = false;
|
|
228251
|
+
for (const fn of this.listeners[ev]) {
|
|
228252
|
+
ret = fn(code2, signal) === true || ret;
|
|
228253
|
+
}
|
|
228254
|
+
if (ev === "exit") {
|
|
228255
|
+
ret = this.emit("afterExit", code2, signal) || ret;
|
|
228256
|
+
}
|
|
228257
|
+
return ret;
|
|
228258
|
+
}
|
|
228259
|
+
}
|
|
228260
|
+
|
|
228261
|
+
class SignalExitBase2 {
|
|
228262
|
+
}
|
|
228263
|
+
var processOk2 = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function", kExitEmitter, global2, ObjectDefineProperty, signalExitWrap = (handler) => {
|
|
228264
|
+
return {
|
|
228265
|
+
onExit(cb, opts) {
|
|
228266
|
+
return handler.onExit(cb, opts);
|
|
228267
|
+
},
|
|
228268
|
+
load() {
|
|
228269
|
+
return handler.load();
|
|
228270
|
+
},
|
|
228271
|
+
unload() {
|
|
228272
|
+
return handler.unload();
|
|
228273
|
+
}
|
|
228274
|
+
};
|
|
228275
|
+
}, SignalExitFallback2, SignalExit2, process7, onExit, load2, unload;
|
|
228276
|
+
var init_mjs = __esm(() => {
|
|
228277
|
+
init_signals();
|
|
228278
|
+
kExitEmitter = Symbol.for("signal-exit emitter");
|
|
228279
|
+
global2 = globalThis;
|
|
228280
|
+
ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
228281
|
+
SignalExitFallback2 = class SignalExitFallback2 extends SignalExitBase2 {
|
|
228282
|
+
onExit() {
|
|
228283
|
+
return () => {
|
|
228284
|
+
};
|
|
228285
|
+
}
|
|
228286
|
+
load() {
|
|
228287
|
+
}
|
|
228288
|
+
unload() {
|
|
228289
|
+
}
|
|
228290
|
+
};
|
|
228291
|
+
SignalExit2 = class SignalExit2 extends SignalExitBase2 {
|
|
228292
|
+
#hupSig = process7.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
228293
|
+
#emitter = new Emitter2;
|
|
228294
|
+
#process;
|
|
228295
|
+
#originalProcessEmit;
|
|
228296
|
+
#originalProcessReallyExit;
|
|
228297
|
+
#sigListeners = {};
|
|
228298
|
+
#loaded = false;
|
|
228299
|
+
constructor(process7) {
|
|
228300
|
+
super();
|
|
228301
|
+
this.#process = process7;
|
|
228302
|
+
this.#sigListeners = {};
|
|
228303
|
+
for (const sig of signals) {
|
|
228304
|
+
this.#sigListeners[sig] = () => {
|
|
228305
|
+
const listeners = this.#process.listeners(sig);
|
|
228306
|
+
let { count } = this.#emitter;
|
|
228307
|
+
const p6 = process7;
|
|
228308
|
+
if (typeof p6.__signal_exit_emitter__ === "object" && typeof p6.__signal_exit_emitter__.count === "number") {
|
|
228309
|
+
count += p6.__signal_exit_emitter__.count;
|
|
228310
|
+
}
|
|
228311
|
+
if (listeners.length === count) {
|
|
228312
|
+
this.unload();
|
|
228313
|
+
const ret = this.#emitter.emit("exit", null, sig);
|
|
228314
|
+
const s8 = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
228315
|
+
if (!ret)
|
|
228316
|
+
process7.kill(process7.pid, s8);
|
|
228317
|
+
}
|
|
228318
|
+
};
|
|
228319
|
+
}
|
|
228320
|
+
this.#originalProcessReallyExit = process7.reallyExit;
|
|
228321
|
+
this.#originalProcessEmit = process7.emit;
|
|
228322
|
+
}
|
|
228323
|
+
onExit(cb, opts) {
|
|
228324
|
+
if (!processOk2(this.#process)) {
|
|
228325
|
+
return () => {
|
|
228326
|
+
};
|
|
228327
|
+
}
|
|
228328
|
+
if (this.#loaded === false) {
|
|
228329
|
+
this.load();
|
|
228330
|
+
}
|
|
228331
|
+
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
228332
|
+
this.#emitter.on(ev, cb);
|
|
228333
|
+
return () => {
|
|
228334
|
+
this.#emitter.removeListener(ev, cb);
|
|
228335
|
+
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
228336
|
+
this.unload();
|
|
228337
|
+
}
|
|
228338
|
+
};
|
|
228339
|
+
}
|
|
228340
|
+
load() {
|
|
228341
|
+
if (this.#loaded) {
|
|
228342
|
+
return;
|
|
228343
|
+
}
|
|
228344
|
+
this.#loaded = true;
|
|
228345
|
+
this.#emitter.count += 1;
|
|
228346
|
+
for (const sig of signals) {
|
|
228347
|
+
try {
|
|
228348
|
+
const fn = this.#sigListeners[sig];
|
|
228349
|
+
if (fn)
|
|
228350
|
+
this.#process.on(sig, fn);
|
|
228351
|
+
} catch (_5) {
|
|
228352
|
+
}
|
|
228353
|
+
}
|
|
228354
|
+
this.#process.emit = (ev, ...a7) => {
|
|
228355
|
+
return this.#processEmit(ev, ...a7);
|
|
228356
|
+
};
|
|
228357
|
+
this.#process.reallyExit = (code2) => {
|
|
228358
|
+
return this.#processReallyExit(code2);
|
|
228359
|
+
};
|
|
228360
|
+
}
|
|
228361
|
+
unload() {
|
|
228362
|
+
if (!this.#loaded) {
|
|
228363
|
+
return;
|
|
228364
|
+
}
|
|
228365
|
+
this.#loaded = false;
|
|
228366
|
+
signals.forEach((sig) => {
|
|
228367
|
+
const listener = this.#sigListeners[sig];
|
|
228368
|
+
if (!listener) {
|
|
228369
|
+
throw new Error("Listener not defined for signal: " + sig);
|
|
228370
|
+
}
|
|
228371
|
+
try {
|
|
228372
|
+
this.#process.removeListener(sig, listener);
|
|
228373
|
+
} catch (_5) {
|
|
228374
|
+
}
|
|
228375
|
+
});
|
|
228376
|
+
this.#process.emit = this.#originalProcessEmit;
|
|
228377
|
+
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
228378
|
+
this.#emitter.count -= 1;
|
|
228379
|
+
}
|
|
228380
|
+
#processReallyExit(code2) {
|
|
228381
|
+
if (!processOk2(this.#process)) {
|
|
228382
|
+
return 0;
|
|
228383
|
+
}
|
|
228384
|
+
this.#process.exitCode = code2 || 0;
|
|
228385
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
228386
|
+
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
228387
|
+
}
|
|
228388
|
+
#processEmit(ev, ...args) {
|
|
228389
|
+
const og = this.#originalProcessEmit;
|
|
228390
|
+
if (ev === "exit" && processOk2(this.#process)) {
|
|
228391
|
+
if (typeof args[0] === "number") {
|
|
228392
|
+
this.#process.exitCode = args[0];
|
|
228393
|
+
}
|
|
228394
|
+
const ret = og.call(this.#process, ev, ...args);
|
|
228395
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
228396
|
+
return ret;
|
|
228397
|
+
} else {
|
|
228398
|
+
return og.call(this.#process, ev, ...args);
|
|
228399
|
+
}
|
|
228400
|
+
}
|
|
228401
|
+
};
|
|
228402
|
+
process7 = globalThis.process;
|
|
228403
|
+
({
|
|
228404
|
+
onExit,
|
|
228405
|
+
load: load2,
|
|
228406
|
+
unload
|
|
228407
|
+
} = signalExitWrap(processOk2(process7) ? new SignalExit2(process7) : new SignalExitFallback2));
|
|
228408
|
+
});
|
|
228409
|
+
|
|
228194
228410
|
// ../../node_modules/ansi-escapes/index.js
|
|
228195
228411
|
var require_ansi_escapes = __commonJS((exports, module) => {
|
|
228196
228412
|
var ansiEscapes = exports;
|
|
@@ -234802,6 +235018,1879 @@ var require_tar = __commonJS((exports) => {
|
|
|
234802
235018
|
exports.types = require_types2();
|
|
234803
235019
|
});
|
|
234804
235020
|
|
|
235021
|
+
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/windows.js
|
|
235022
|
+
var require_windows = __commonJS((exports, module) => {
|
|
235023
|
+
module.exports = isexe;
|
|
235024
|
+
isexe.sync = sync3;
|
|
235025
|
+
var fs3 = __require("fs");
|
|
235026
|
+
function checkPathExt(path6, options) {
|
|
235027
|
+
var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;
|
|
235028
|
+
if (!pathext) {
|
|
235029
|
+
return true;
|
|
235030
|
+
}
|
|
235031
|
+
pathext = pathext.split(";");
|
|
235032
|
+
if (pathext.indexOf("") !== -1) {
|
|
235033
|
+
return true;
|
|
235034
|
+
}
|
|
235035
|
+
for (var i6 = 0;i6 < pathext.length; i6++) {
|
|
235036
|
+
var p6 = pathext[i6].toLowerCase();
|
|
235037
|
+
if (p6 && path6.substr(-p6.length).toLowerCase() === p6) {
|
|
235038
|
+
return true;
|
|
235039
|
+
}
|
|
235040
|
+
}
|
|
235041
|
+
return false;
|
|
235042
|
+
}
|
|
235043
|
+
function checkStat(stat8, path6, options) {
|
|
235044
|
+
if (!stat8.isSymbolicLink() && !stat8.isFile()) {
|
|
235045
|
+
return false;
|
|
235046
|
+
}
|
|
235047
|
+
return checkPathExt(path6, options);
|
|
235048
|
+
}
|
|
235049
|
+
function isexe(path6, options, cb) {
|
|
235050
|
+
fs3.stat(path6, function(er2, stat8) {
|
|
235051
|
+
cb(er2, er2 ? false : checkStat(stat8, path6, options));
|
|
235052
|
+
});
|
|
235053
|
+
}
|
|
235054
|
+
function sync3(path6, options) {
|
|
235055
|
+
return checkStat(fs3.statSync(path6), path6, options);
|
|
235056
|
+
}
|
|
235057
|
+
});
|
|
235058
|
+
|
|
235059
|
+
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/mode.js
|
|
235060
|
+
var require_mode = __commonJS((exports, module) => {
|
|
235061
|
+
module.exports = isexe;
|
|
235062
|
+
isexe.sync = sync3;
|
|
235063
|
+
var fs3 = __require("fs");
|
|
235064
|
+
function isexe(path6, options, cb) {
|
|
235065
|
+
fs3.stat(path6, function(er2, stat8) {
|
|
235066
|
+
cb(er2, er2 ? false : checkStat(stat8, options));
|
|
235067
|
+
});
|
|
235068
|
+
}
|
|
235069
|
+
function sync3(path6, options) {
|
|
235070
|
+
return checkStat(fs3.statSync(path6), options);
|
|
235071
|
+
}
|
|
235072
|
+
function checkStat(stat8, options) {
|
|
235073
|
+
return stat8.isFile() && checkMode(stat8, options);
|
|
235074
|
+
}
|
|
235075
|
+
function checkMode(stat8, options) {
|
|
235076
|
+
var mod = stat8.mode;
|
|
235077
|
+
var uid = stat8.uid;
|
|
235078
|
+
var gid = stat8.gid;
|
|
235079
|
+
var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();
|
|
235080
|
+
var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();
|
|
235081
|
+
var u6 = parseInt("100", 8);
|
|
235082
|
+
var g6 = parseInt("010", 8);
|
|
235083
|
+
var o8 = parseInt("001", 8);
|
|
235084
|
+
var ug = u6 | g6;
|
|
235085
|
+
var ret = mod & o8 || mod & g6 && gid === myGid || mod & u6 && uid === myUid || mod & ug && myUid === 0;
|
|
235086
|
+
return ret;
|
|
235087
|
+
}
|
|
235088
|
+
});
|
|
235089
|
+
|
|
235090
|
+
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/index.js
|
|
235091
|
+
var require_isexe = __commonJS((exports, module) => {
|
|
235092
|
+
var fs3 = __require("fs");
|
|
235093
|
+
var core;
|
|
235094
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
235095
|
+
core = require_windows();
|
|
235096
|
+
} else {
|
|
235097
|
+
core = require_mode();
|
|
235098
|
+
}
|
|
235099
|
+
module.exports = isexe;
|
|
235100
|
+
isexe.sync = sync3;
|
|
235101
|
+
function isexe(path6, options, cb) {
|
|
235102
|
+
if (typeof options === "function") {
|
|
235103
|
+
cb = options;
|
|
235104
|
+
options = {};
|
|
235105
|
+
}
|
|
235106
|
+
if (!cb) {
|
|
235107
|
+
if (typeof Promise !== "function") {
|
|
235108
|
+
throw new TypeError("callback not provided");
|
|
235109
|
+
}
|
|
235110
|
+
return new Promise(function(resolve7, reject) {
|
|
235111
|
+
isexe(path6, options || {}, function(er2, is) {
|
|
235112
|
+
if (er2) {
|
|
235113
|
+
reject(er2);
|
|
235114
|
+
} else {
|
|
235115
|
+
resolve7(is);
|
|
235116
|
+
}
|
|
235117
|
+
});
|
|
235118
|
+
});
|
|
235119
|
+
}
|
|
235120
|
+
core(path6, options || {}, function(er2, is) {
|
|
235121
|
+
if (er2) {
|
|
235122
|
+
if (er2.code === "EACCES" || options && options.ignoreErrors) {
|
|
235123
|
+
er2 = null;
|
|
235124
|
+
is = false;
|
|
235125
|
+
}
|
|
235126
|
+
}
|
|
235127
|
+
cb(er2, is);
|
|
235128
|
+
});
|
|
235129
|
+
}
|
|
235130
|
+
function sync3(path6, options) {
|
|
235131
|
+
try {
|
|
235132
|
+
return core.sync(path6, options || {});
|
|
235133
|
+
} catch (er2) {
|
|
235134
|
+
if (options && options.ignoreErrors || er2.code === "EACCES") {
|
|
235135
|
+
return false;
|
|
235136
|
+
} else {
|
|
235137
|
+
throw er2;
|
|
235138
|
+
}
|
|
235139
|
+
}
|
|
235140
|
+
}
|
|
235141
|
+
});
|
|
235142
|
+
|
|
235143
|
+
// ../../node_modules/cross-spawn/node_modules/which/which.js
|
|
235144
|
+
var require_which2 = __commonJS((exports, module) => {
|
|
235145
|
+
var isWindows2 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
235146
|
+
var path6 = __require("path");
|
|
235147
|
+
var COLON = isWindows2 ? ";" : ":";
|
|
235148
|
+
var isexe = require_isexe();
|
|
235149
|
+
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
235150
|
+
var getPathInfo2 = (cmd2, opt2) => {
|
|
235151
|
+
const colon = opt2.colon || COLON;
|
|
235152
|
+
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
235153
|
+
...isWindows2 ? [process.cwd()] : [],
|
|
235154
|
+
...(opt2.path || process.env.PATH || "").split(colon)
|
|
235155
|
+
];
|
|
235156
|
+
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
235157
|
+
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
235158
|
+
if (isWindows2) {
|
|
235159
|
+
if (cmd2.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
235160
|
+
pathExt.unshift("");
|
|
235161
|
+
}
|
|
235162
|
+
return {
|
|
235163
|
+
pathEnv,
|
|
235164
|
+
pathExt,
|
|
235165
|
+
pathExtExe
|
|
235166
|
+
};
|
|
235167
|
+
};
|
|
235168
|
+
var which = (cmd2, opt2, cb) => {
|
|
235169
|
+
if (typeof opt2 === "function") {
|
|
235170
|
+
cb = opt2;
|
|
235171
|
+
opt2 = {};
|
|
235172
|
+
}
|
|
235173
|
+
if (!opt2)
|
|
235174
|
+
opt2 = {};
|
|
235175
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd2, opt2);
|
|
235176
|
+
const found = [];
|
|
235177
|
+
const step = (i6) => new Promise((resolve7, reject) => {
|
|
235178
|
+
if (i6 === pathEnv.length)
|
|
235179
|
+
return opt2.all && found.length ? resolve7(found) : reject(getNotFoundError2(cmd2));
|
|
235180
|
+
const ppRaw = pathEnv[i6];
|
|
235181
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
235182
|
+
const pCmd = path6.join(pathPart, cmd2);
|
|
235183
|
+
const p6 = !pathPart && /^\.[\\\/]/.test(cmd2) ? cmd2.slice(0, 2) + pCmd : pCmd;
|
|
235184
|
+
resolve7(subStep(p6, i6, 0));
|
|
235185
|
+
});
|
|
235186
|
+
const subStep = (p6, i6, ii2) => new Promise((resolve7, reject) => {
|
|
235187
|
+
if (ii2 === pathExt.length)
|
|
235188
|
+
return resolve7(step(i6 + 1));
|
|
235189
|
+
const ext2 = pathExt[ii2];
|
|
235190
|
+
isexe(p6 + ext2, { pathExt: pathExtExe }, (er2, is) => {
|
|
235191
|
+
if (!er2 && is) {
|
|
235192
|
+
if (opt2.all)
|
|
235193
|
+
found.push(p6 + ext2);
|
|
235194
|
+
else
|
|
235195
|
+
return resolve7(p6 + ext2);
|
|
235196
|
+
}
|
|
235197
|
+
return resolve7(subStep(p6, i6, ii2 + 1));
|
|
235198
|
+
});
|
|
235199
|
+
});
|
|
235200
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
235201
|
+
};
|
|
235202
|
+
var whichSync = (cmd2, opt2) => {
|
|
235203
|
+
opt2 = opt2 || {};
|
|
235204
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo2(cmd2, opt2);
|
|
235205
|
+
const found = [];
|
|
235206
|
+
for (let i6 = 0;i6 < pathEnv.length; i6++) {
|
|
235207
|
+
const ppRaw = pathEnv[i6];
|
|
235208
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
235209
|
+
const pCmd = path6.join(pathPart, cmd2);
|
|
235210
|
+
const p6 = !pathPart && /^\.[\\\/]/.test(cmd2) ? cmd2.slice(0, 2) + pCmd : pCmd;
|
|
235211
|
+
for (let j3 = 0;j3 < pathExt.length; j3++) {
|
|
235212
|
+
const cur = p6 + pathExt[j3];
|
|
235213
|
+
try {
|
|
235214
|
+
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
235215
|
+
if (is) {
|
|
235216
|
+
if (opt2.all)
|
|
235217
|
+
found.push(cur);
|
|
235218
|
+
else
|
|
235219
|
+
return cur;
|
|
235220
|
+
}
|
|
235221
|
+
} catch (ex) {
|
|
235222
|
+
}
|
|
235223
|
+
}
|
|
235224
|
+
}
|
|
235225
|
+
if (opt2.all && found.length)
|
|
235226
|
+
return found;
|
|
235227
|
+
if (opt2.nothrow)
|
|
235228
|
+
return null;
|
|
235229
|
+
throw getNotFoundError2(cmd2);
|
|
235230
|
+
};
|
|
235231
|
+
module.exports = which;
|
|
235232
|
+
which.sync = whichSync;
|
|
235233
|
+
});
|
|
235234
|
+
|
|
235235
|
+
// ../../node_modules/path-key/index.js
|
|
235236
|
+
var require_path_key = __commonJS((exports, module) => {
|
|
235237
|
+
var pathKey2 = (options = {}) => {
|
|
235238
|
+
const environment = options.env || process.env;
|
|
235239
|
+
const platform2 = options.platform || process.platform;
|
|
235240
|
+
if (platform2 !== "win32") {
|
|
235241
|
+
return "PATH";
|
|
235242
|
+
}
|
|
235243
|
+
return Object.keys(environment).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
|
|
235244
|
+
};
|
|
235245
|
+
module.exports = pathKey2;
|
|
235246
|
+
module.exports.default = pathKey2;
|
|
235247
|
+
});
|
|
235248
|
+
|
|
235249
|
+
// ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
235250
|
+
var require_resolveCommand = __commonJS((exports, module) => {
|
|
235251
|
+
var path6 = __require("path");
|
|
235252
|
+
var which = require_which2();
|
|
235253
|
+
var getPathKey = require_path_key();
|
|
235254
|
+
function resolveCommandAttempt2(parsed, withoutPathExt) {
|
|
235255
|
+
const env2 = parsed.options.env || process.env;
|
|
235256
|
+
const cwd2 = process.cwd();
|
|
235257
|
+
const hasCustomCwd = parsed.options.cwd != null;
|
|
235258
|
+
const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
|
|
235259
|
+
if (shouldSwitchCwd) {
|
|
235260
|
+
try {
|
|
235261
|
+
process.chdir(parsed.options.cwd);
|
|
235262
|
+
} catch (err) {
|
|
235263
|
+
}
|
|
235264
|
+
}
|
|
235265
|
+
let resolved;
|
|
235266
|
+
try {
|
|
235267
|
+
resolved = which.sync(parsed.command, {
|
|
235268
|
+
path: env2[getPathKey({ env: env2 })],
|
|
235269
|
+
pathExt: withoutPathExt ? path6.delimiter : undefined
|
|
235270
|
+
});
|
|
235271
|
+
} catch (e10) {
|
|
235272
|
+
} finally {
|
|
235273
|
+
if (shouldSwitchCwd) {
|
|
235274
|
+
process.chdir(cwd2);
|
|
235275
|
+
}
|
|
235276
|
+
}
|
|
235277
|
+
if (resolved) {
|
|
235278
|
+
resolved = path6.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
235279
|
+
}
|
|
235280
|
+
return resolved;
|
|
235281
|
+
}
|
|
235282
|
+
function resolveCommand(parsed) {
|
|
235283
|
+
return resolveCommandAttempt2(parsed) || resolveCommandAttempt2(parsed, true);
|
|
235284
|
+
}
|
|
235285
|
+
module.exports = resolveCommand;
|
|
235286
|
+
});
|
|
235287
|
+
|
|
235288
|
+
// ../../node_modules/cross-spawn/lib/util/escape.js
|
|
235289
|
+
var require_escape3 = __commonJS((exports, module) => {
|
|
235290
|
+
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
235291
|
+
function escapeCommand2(arg) {
|
|
235292
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
235293
|
+
return arg;
|
|
235294
|
+
}
|
|
235295
|
+
function escapeArgument2(arg, doubleEscapeMetaChars) {
|
|
235296
|
+
arg = `${arg}`;
|
|
235297
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
|
|
235298
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
235299
|
+
arg = `"${arg}"`;
|
|
235300
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
235301
|
+
if (doubleEscapeMetaChars) {
|
|
235302
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
235303
|
+
}
|
|
235304
|
+
return arg;
|
|
235305
|
+
}
|
|
235306
|
+
exports.command = escapeCommand2;
|
|
235307
|
+
exports.argument = escapeArgument2;
|
|
235308
|
+
});
|
|
235309
|
+
|
|
235310
|
+
// ../../node_modules/shebang-regex/index.js
|
|
235311
|
+
var require_shebang_regex = __commonJS((exports, module) => {
|
|
235312
|
+
module.exports = /^#!(.*)/;
|
|
235313
|
+
});
|
|
235314
|
+
|
|
235315
|
+
// ../../node_modules/shebang-command/index.js
|
|
235316
|
+
var require_shebang_command = __commonJS((exports, module) => {
|
|
235317
|
+
var shebangRegex = require_shebang_regex();
|
|
235318
|
+
module.exports = (string = "") => {
|
|
235319
|
+
const match2 = string.match(shebangRegex);
|
|
235320
|
+
if (!match2) {
|
|
235321
|
+
return null;
|
|
235322
|
+
}
|
|
235323
|
+
const [path6, argument] = match2[0].replace(/#! ?/, "").split(" ");
|
|
235324
|
+
const binary = path6.split("/").pop();
|
|
235325
|
+
if (binary === "env") {
|
|
235326
|
+
return argument;
|
|
235327
|
+
}
|
|
235328
|
+
return argument ? `${binary} ${argument}` : binary;
|
|
235329
|
+
};
|
|
235330
|
+
});
|
|
235331
|
+
|
|
235332
|
+
// ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
235333
|
+
var require_readShebang = __commonJS((exports, module) => {
|
|
235334
|
+
var fs3 = __require("fs");
|
|
235335
|
+
var shebangCommand2 = require_shebang_command();
|
|
235336
|
+
function readShebang(command) {
|
|
235337
|
+
const size = 150;
|
|
235338
|
+
const buffer = Buffer.alloc(size);
|
|
235339
|
+
let fd;
|
|
235340
|
+
try {
|
|
235341
|
+
fd = fs3.openSync(command, "r");
|
|
235342
|
+
fs3.readSync(fd, buffer, 0, size, 0);
|
|
235343
|
+
fs3.closeSync(fd);
|
|
235344
|
+
} catch (e10) {
|
|
235345
|
+
}
|
|
235346
|
+
return shebangCommand2(buffer.toString());
|
|
235347
|
+
}
|
|
235348
|
+
module.exports = readShebang;
|
|
235349
|
+
});
|
|
235350
|
+
|
|
235351
|
+
// ../../node_modules/cross-spawn/lib/parse.js
|
|
235352
|
+
var require_parse6 = __commonJS((exports, module) => {
|
|
235353
|
+
var path6 = __require("path");
|
|
235354
|
+
var resolveCommand = require_resolveCommand();
|
|
235355
|
+
var escape2 = require_escape3();
|
|
235356
|
+
var readShebang = require_readShebang();
|
|
235357
|
+
var isWin = process.platform === "win32";
|
|
235358
|
+
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
235359
|
+
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
235360
|
+
function detectShebang(parsed) {
|
|
235361
|
+
parsed.file = resolveCommand(parsed);
|
|
235362
|
+
const shebang = parsed.file && readShebang(parsed.file);
|
|
235363
|
+
if (shebang) {
|
|
235364
|
+
parsed.args.unshift(parsed.file);
|
|
235365
|
+
parsed.command = shebang;
|
|
235366
|
+
return resolveCommand(parsed);
|
|
235367
|
+
}
|
|
235368
|
+
return parsed.file;
|
|
235369
|
+
}
|
|
235370
|
+
function parseNonShell2(parsed) {
|
|
235371
|
+
if (!isWin) {
|
|
235372
|
+
return parsed;
|
|
235373
|
+
}
|
|
235374
|
+
const commandFile = detectShebang(parsed);
|
|
235375
|
+
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
235376
|
+
if (parsed.options.forceShell || needsShell) {
|
|
235377
|
+
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
235378
|
+
parsed.command = path6.normalize(parsed.command);
|
|
235379
|
+
parsed.command = escape2.command(parsed.command);
|
|
235380
|
+
parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
|
|
235381
|
+
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
235382
|
+
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
235383
|
+
parsed.command = process.env.comspec || "cmd.exe";
|
|
235384
|
+
parsed.options.windowsVerbatimArguments = true;
|
|
235385
|
+
}
|
|
235386
|
+
return parsed;
|
|
235387
|
+
}
|
|
235388
|
+
function parse6(command, args, options) {
|
|
235389
|
+
if (args && !Array.isArray(args)) {
|
|
235390
|
+
options = args;
|
|
235391
|
+
args = null;
|
|
235392
|
+
}
|
|
235393
|
+
args = args ? args.slice(0) : [];
|
|
235394
|
+
options = Object.assign({}, options);
|
|
235395
|
+
const parsed = {
|
|
235396
|
+
command,
|
|
235397
|
+
args,
|
|
235398
|
+
options,
|
|
235399
|
+
file: undefined,
|
|
235400
|
+
original: {
|
|
235401
|
+
command,
|
|
235402
|
+
args
|
|
235403
|
+
}
|
|
235404
|
+
};
|
|
235405
|
+
return options.shell ? parsed : parseNonShell2(parsed);
|
|
235406
|
+
}
|
|
235407
|
+
module.exports = parse6;
|
|
235408
|
+
});
|
|
235409
|
+
|
|
235410
|
+
// ../../node_modules/cross-spawn/lib/enoent.js
|
|
235411
|
+
var require_enoent = __commonJS((exports, module) => {
|
|
235412
|
+
var isWin = process.platform === "win32";
|
|
235413
|
+
function notFoundError2(original, syscall) {
|
|
235414
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
235415
|
+
code: "ENOENT",
|
|
235416
|
+
errno: "ENOENT",
|
|
235417
|
+
syscall: `${syscall} ${original.command}`,
|
|
235418
|
+
path: original.command,
|
|
235419
|
+
spawnargs: original.args
|
|
235420
|
+
});
|
|
235421
|
+
}
|
|
235422
|
+
function hookChildProcess2(cp, parsed) {
|
|
235423
|
+
if (!isWin) {
|
|
235424
|
+
return;
|
|
235425
|
+
}
|
|
235426
|
+
const originalEmit = cp.emit;
|
|
235427
|
+
cp.emit = function(name2, arg1) {
|
|
235428
|
+
if (name2 === "exit") {
|
|
235429
|
+
const err = verifyENOENT2(arg1, parsed);
|
|
235430
|
+
if (err) {
|
|
235431
|
+
return originalEmit.call(cp, "error", err);
|
|
235432
|
+
}
|
|
235433
|
+
}
|
|
235434
|
+
return originalEmit.apply(cp, arguments);
|
|
235435
|
+
};
|
|
235436
|
+
}
|
|
235437
|
+
function verifyENOENT2(status, parsed) {
|
|
235438
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
235439
|
+
return notFoundError2(parsed.original, "spawn");
|
|
235440
|
+
}
|
|
235441
|
+
return null;
|
|
235442
|
+
}
|
|
235443
|
+
function verifyENOENTSync2(status, parsed) {
|
|
235444
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
235445
|
+
return notFoundError2(parsed.original, "spawnSync");
|
|
235446
|
+
}
|
|
235447
|
+
return null;
|
|
235448
|
+
}
|
|
235449
|
+
module.exports = {
|
|
235450
|
+
hookChildProcess: hookChildProcess2,
|
|
235451
|
+
verifyENOENT: verifyENOENT2,
|
|
235452
|
+
verifyENOENTSync: verifyENOENTSync2,
|
|
235453
|
+
notFoundError: notFoundError2
|
|
235454
|
+
};
|
|
235455
|
+
});
|
|
235456
|
+
|
|
235457
|
+
// ../../node_modules/cross-spawn/index.js
|
|
235458
|
+
var require_cross_spawn = __commonJS((exports, module) => {
|
|
235459
|
+
var cp = __require("child_process");
|
|
235460
|
+
var parse6 = require_parse6();
|
|
235461
|
+
var enoent = require_enoent();
|
|
235462
|
+
function spawn3(command, args, options) {
|
|
235463
|
+
const parsed = parse6(command, args, options);
|
|
235464
|
+
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
235465
|
+
enoent.hookChildProcess(spawned, parsed);
|
|
235466
|
+
return spawned;
|
|
235467
|
+
}
|
|
235468
|
+
function spawnSync2(command, args, options) {
|
|
235469
|
+
const parsed = parse6(command, args, options);
|
|
235470
|
+
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
235471
|
+
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
235472
|
+
return result;
|
|
235473
|
+
}
|
|
235474
|
+
module.exports = spawn3;
|
|
235475
|
+
module.exports.spawn = spawn3;
|
|
235476
|
+
module.exports.sync = spawnSync2;
|
|
235477
|
+
module.exports._parse = parse6;
|
|
235478
|
+
module.exports._enoent = enoent;
|
|
235479
|
+
});
|
|
235480
|
+
|
|
235481
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/strip-final-newline/index.js
|
|
235482
|
+
function stripFinalNewline(input) {
|
|
235483
|
+
const LF = typeof input === "string" ? `
|
|
235484
|
+
` : `
|
|
235485
|
+
`.charCodeAt();
|
|
235486
|
+
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
235487
|
+
if (input[input.length - 1] === LF) {
|
|
235488
|
+
input = input.slice(0, -1);
|
|
235489
|
+
}
|
|
235490
|
+
if (input[input.length - 1] === CR) {
|
|
235491
|
+
input = input.slice(0, -1);
|
|
235492
|
+
}
|
|
235493
|
+
return input;
|
|
235494
|
+
}
|
|
235495
|
+
|
|
235496
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/npm-run-path/node_modules/path-key/index.js
|
|
235497
|
+
function pathKey2(options = {}) {
|
|
235498
|
+
const {
|
|
235499
|
+
env: env2 = process.env,
|
|
235500
|
+
platform: platform2 = process.platform
|
|
235501
|
+
} = options;
|
|
235502
|
+
if (platform2 !== "win32") {
|
|
235503
|
+
return "PATH";
|
|
235504
|
+
}
|
|
235505
|
+
return Object.keys(env2).reverse().find((key2) => key2.toUpperCase() === "PATH") || "Path";
|
|
235506
|
+
}
|
|
235507
|
+
|
|
235508
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/npm-run-path/index.js
|
|
235509
|
+
import process8 from "node:process";
|
|
235510
|
+
import path6 from "node:path";
|
|
235511
|
+
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
235512
|
+
var npmRunPath = ({
|
|
235513
|
+
cwd: cwd2 = process8.cwd(),
|
|
235514
|
+
path: pathOption = process8.env[pathKey2()],
|
|
235515
|
+
preferLocal = true,
|
|
235516
|
+
execPath = process8.execPath,
|
|
235517
|
+
addExecPath = true
|
|
235518
|
+
} = {}) => {
|
|
235519
|
+
const cwdString = cwd2 instanceof URL ? fileURLToPath5(cwd2) : cwd2;
|
|
235520
|
+
const cwdPath = path6.resolve(cwdString);
|
|
235521
|
+
const result = [];
|
|
235522
|
+
if (preferLocal) {
|
|
235523
|
+
applyPreferLocal2(result, cwdPath);
|
|
235524
|
+
}
|
|
235525
|
+
if (addExecPath) {
|
|
235526
|
+
applyExecPath2(result, execPath, cwdPath);
|
|
235527
|
+
}
|
|
235528
|
+
return [...result, pathOption].join(path6.delimiter);
|
|
235529
|
+
}, applyPreferLocal2 = (result, cwdPath) => {
|
|
235530
|
+
let previous;
|
|
235531
|
+
while (previous !== cwdPath) {
|
|
235532
|
+
result.push(path6.join(cwdPath, "node_modules/.bin"));
|
|
235533
|
+
previous = cwdPath;
|
|
235534
|
+
cwdPath = path6.resolve(cwdPath, "..");
|
|
235535
|
+
}
|
|
235536
|
+
}, applyExecPath2 = (result, execPath, cwdPath) => {
|
|
235537
|
+
const execPathString = execPath instanceof URL ? fileURLToPath5(execPath) : execPath;
|
|
235538
|
+
result.push(path6.resolve(cwdPath, execPathString, ".."));
|
|
235539
|
+
}, npmRunPathEnv2 = ({ env: env2 = process8.env, ...options } = {}) => {
|
|
235540
|
+
env2 = { ...env2 };
|
|
235541
|
+
const pathName = pathKey2({ env: env2 });
|
|
235542
|
+
options.path = env2[pathName];
|
|
235543
|
+
env2[pathName] = npmRunPath(options);
|
|
235544
|
+
return env2;
|
|
235545
|
+
};
|
|
235546
|
+
var init_npm_run_path = () => {
|
|
235547
|
+
};
|
|
235548
|
+
|
|
235549
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/onetime/node_modules/mimic-fn/index.js
|
|
235550
|
+
function mimicFunction2(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
235551
|
+
const { name: name2 } = to;
|
|
235552
|
+
for (const property of Reflect.ownKeys(from)) {
|
|
235553
|
+
copyProperty2(to, from, property, ignoreNonConfigurable);
|
|
235554
|
+
}
|
|
235555
|
+
changePrototype(to, from);
|
|
235556
|
+
changeToString(to, from, name2);
|
|
235557
|
+
return to;
|
|
235558
|
+
}
|
|
235559
|
+
var copyProperty2 = (to, from, property, ignoreNonConfigurable) => {
|
|
235560
|
+
if (property === "length" || property === "prototype") {
|
|
235561
|
+
return;
|
|
235562
|
+
}
|
|
235563
|
+
if (property === "arguments" || property === "caller") {
|
|
235564
|
+
return;
|
|
235565
|
+
}
|
|
235566
|
+
const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
235567
|
+
const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
|
|
235568
|
+
if (!canCopyProperty2(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
|
|
235569
|
+
return;
|
|
235570
|
+
}
|
|
235571
|
+
Object.defineProperty(to, property, fromDescriptor);
|
|
235572
|
+
}, canCopyProperty2 = function(toDescriptor, fromDescriptor) {
|
|
235573
|
+
return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
|
|
235574
|
+
}, changePrototype = (to, from) => {
|
|
235575
|
+
const fromPrototype = Object.getPrototypeOf(from);
|
|
235576
|
+
if (fromPrototype === Object.getPrototypeOf(to)) {
|
|
235577
|
+
return;
|
|
235578
|
+
}
|
|
235579
|
+
Object.setPrototypeOf(to, fromPrototype);
|
|
235580
|
+
}, wrappedToString2 = (withName, fromBody) => `/* Wrapped ${withName}*/
|
|
235581
|
+
${fromBody}`, toStringDescriptor, toStringName, changeToString = (to, from, name2) => {
|
|
235582
|
+
const withName = name2 === "" ? "" : `with ${name2.trim()}() `;
|
|
235583
|
+
const newToString = wrappedToString2.bind(null, withName, from.toString());
|
|
235584
|
+
Object.defineProperty(newToString, "name", toStringName);
|
|
235585
|
+
Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
|
|
235586
|
+
};
|
|
235587
|
+
var init_mimic_fn = __esm(() => {
|
|
235588
|
+
toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
|
235589
|
+
toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
235590
|
+
});
|
|
235591
|
+
|
|
235592
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/onetime/index.js
|
|
235593
|
+
var calledFunctions, onetime2 = (function_, options = {}) => {
|
|
235594
|
+
if (typeof function_ !== "function") {
|
|
235595
|
+
throw new TypeError("Expected a function");
|
|
235596
|
+
}
|
|
235597
|
+
let returnValue;
|
|
235598
|
+
let callCount = 0;
|
|
235599
|
+
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
235600
|
+
const onetime3 = function(...arguments_4) {
|
|
235601
|
+
calledFunctions.set(onetime3, ++callCount);
|
|
235602
|
+
if (callCount === 1) {
|
|
235603
|
+
returnValue = function_.apply(this, arguments_4);
|
|
235604
|
+
function_ = null;
|
|
235605
|
+
} else if (options.throw === true) {
|
|
235606
|
+
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
235607
|
+
}
|
|
235608
|
+
return returnValue;
|
|
235609
|
+
};
|
|
235610
|
+
mimicFunction2(onetime3, function_);
|
|
235611
|
+
calledFunctions.set(onetime3, callCount);
|
|
235612
|
+
return onetime3;
|
|
235613
|
+
}, onetime_default;
|
|
235614
|
+
var init_onetime = __esm(() => {
|
|
235615
|
+
init_mimic_fn();
|
|
235616
|
+
calledFunctions = new WeakMap;
|
|
235617
|
+
onetime2.callCount = (function_) => {
|
|
235618
|
+
if (!calledFunctions.has(function_)) {
|
|
235619
|
+
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
235620
|
+
}
|
|
235621
|
+
return calledFunctions.get(function_);
|
|
235622
|
+
};
|
|
235623
|
+
onetime_default = onetime2;
|
|
235624
|
+
});
|
|
235625
|
+
|
|
235626
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/realtime.js
|
|
235627
|
+
var getRealtimeSignals = () => {
|
|
235628
|
+
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
235629
|
+
return Array.from({ length }, getRealtimeSignal2);
|
|
235630
|
+
}, getRealtimeSignal2 = (value4, index) => ({
|
|
235631
|
+
name: `SIGRT${index + 1}`,
|
|
235632
|
+
number: SIGRTMIN + index,
|
|
235633
|
+
action: "terminate",
|
|
235634
|
+
description: "Application-specific signal (realtime)",
|
|
235635
|
+
standard: "posix"
|
|
235636
|
+
}), SIGRTMIN = 34, SIGRTMAX = 64;
|
|
235637
|
+
|
|
235638
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/core.js
|
|
235639
|
+
var SIGNALS;
|
|
235640
|
+
var init_core = __esm(() => {
|
|
235641
|
+
SIGNALS = [
|
|
235642
|
+
{
|
|
235643
|
+
name: "SIGHUP",
|
|
235644
|
+
number: 1,
|
|
235645
|
+
action: "terminate",
|
|
235646
|
+
description: "Terminal closed",
|
|
235647
|
+
standard: "posix"
|
|
235648
|
+
},
|
|
235649
|
+
{
|
|
235650
|
+
name: "SIGINT",
|
|
235651
|
+
number: 2,
|
|
235652
|
+
action: "terminate",
|
|
235653
|
+
description: "User interruption with CTRL-C",
|
|
235654
|
+
standard: "ansi"
|
|
235655
|
+
},
|
|
235656
|
+
{
|
|
235657
|
+
name: "SIGQUIT",
|
|
235658
|
+
number: 3,
|
|
235659
|
+
action: "core",
|
|
235660
|
+
description: "User interruption with CTRL-\\",
|
|
235661
|
+
standard: "posix"
|
|
235662
|
+
},
|
|
235663
|
+
{
|
|
235664
|
+
name: "SIGILL",
|
|
235665
|
+
number: 4,
|
|
235666
|
+
action: "core",
|
|
235667
|
+
description: "Invalid machine instruction",
|
|
235668
|
+
standard: "ansi"
|
|
235669
|
+
},
|
|
235670
|
+
{
|
|
235671
|
+
name: "SIGTRAP",
|
|
235672
|
+
number: 5,
|
|
235673
|
+
action: "core",
|
|
235674
|
+
description: "Debugger breakpoint",
|
|
235675
|
+
standard: "posix"
|
|
235676
|
+
},
|
|
235677
|
+
{
|
|
235678
|
+
name: "SIGABRT",
|
|
235679
|
+
number: 6,
|
|
235680
|
+
action: "core",
|
|
235681
|
+
description: "Aborted",
|
|
235682
|
+
standard: "ansi"
|
|
235683
|
+
},
|
|
235684
|
+
{
|
|
235685
|
+
name: "SIGIOT",
|
|
235686
|
+
number: 6,
|
|
235687
|
+
action: "core",
|
|
235688
|
+
description: "Aborted",
|
|
235689
|
+
standard: "bsd"
|
|
235690
|
+
},
|
|
235691
|
+
{
|
|
235692
|
+
name: "SIGBUS",
|
|
235693
|
+
number: 7,
|
|
235694
|
+
action: "core",
|
|
235695
|
+
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
235696
|
+
standard: "bsd"
|
|
235697
|
+
},
|
|
235698
|
+
{
|
|
235699
|
+
name: "SIGEMT",
|
|
235700
|
+
number: 7,
|
|
235701
|
+
action: "terminate",
|
|
235702
|
+
description: "Command should be emulated but is not implemented",
|
|
235703
|
+
standard: "other"
|
|
235704
|
+
},
|
|
235705
|
+
{
|
|
235706
|
+
name: "SIGFPE",
|
|
235707
|
+
number: 8,
|
|
235708
|
+
action: "core",
|
|
235709
|
+
description: "Floating point arithmetic error",
|
|
235710
|
+
standard: "ansi"
|
|
235711
|
+
},
|
|
235712
|
+
{
|
|
235713
|
+
name: "SIGKILL",
|
|
235714
|
+
number: 9,
|
|
235715
|
+
action: "terminate",
|
|
235716
|
+
description: "Forced termination",
|
|
235717
|
+
standard: "posix",
|
|
235718
|
+
forced: true
|
|
235719
|
+
},
|
|
235720
|
+
{
|
|
235721
|
+
name: "SIGUSR1",
|
|
235722
|
+
number: 10,
|
|
235723
|
+
action: "terminate",
|
|
235724
|
+
description: "Application-specific signal",
|
|
235725
|
+
standard: "posix"
|
|
235726
|
+
},
|
|
235727
|
+
{
|
|
235728
|
+
name: "SIGSEGV",
|
|
235729
|
+
number: 11,
|
|
235730
|
+
action: "core",
|
|
235731
|
+
description: "Segmentation fault",
|
|
235732
|
+
standard: "ansi"
|
|
235733
|
+
},
|
|
235734
|
+
{
|
|
235735
|
+
name: "SIGUSR2",
|
|
235736
|
+
number: 12,
|
|
235737
|
+
action: "terminate",
|
|
235738
|
+
description: "Application-specific signal",
|
|
235739
|
+
standard: "posix"
|
|
235740
|
+
},
|
|
235741
|
+
{
|
|
235742
|
+
name: "SIGPIPE",
|
|
235743
|
+
number: 13,
|
|
235744
|
+
action: "terminate",
|
|
235745
|
+
description: "Broken pipe or socket",
|
|
235746
|
+
standard: "posix"
|
|
235747
|
+
},
|
|
235748
|
+
{
|
|
235749
|
+
name: "SIGALRM",
|
|
235750
|
+
number: 14,
|
|
235751
|
+
action: "terminate",
|
|
235752
|
+
description: "Timeout or timer",
|
|
235753
|
+
standard: "posix"
|
|
235754
|
+
},
|
|
235755
|
+
{
|
|
235756
|
+
name: "SIGTERM",
|
|
235757
|
+
number: 15,
|
|
235758
|
+
action: "terminate",
|
|
235759
|
+
description: "Termination",
|
|
235760
|
+
standard: "ansi"
|
|
235761
|
+
},
|
|
235762
|
+
{
|
|
235763
|
+
name: "SIGSTKFLT",
|
|
235764
|
+
number: 16,
|
|
235765
|
+
action: "terminate",
|
|
235766
|
+
description: "Stack is empty or overflowed",
|
|
235767
|
+
standard: "other"
|
|
235768
|
+
},
|
|
235769
|
+
{
|
|
235770
|
+
name: "SIGCHLD",
|
|
235771
|
+
number: 17,
|
|
235772
|
+
action: "ignore",
|
|
235773
|
+
description: "Child process terminated, paused or unpaused",
|
|
235774
|
+
standard: "posix"
|
|
235775
|
+
},
|
|
235776
|
+
{
|
|
235777
|
+
name: "SIGCLD",
|
|
235778
|
+
number: 17,
|
|
235779
|
+
action: "ignore",
|
|
235780
|
+
description: "Child process terminated, paused or unpaused",
|
|
235781
|
+
standard: "other"
|
|
235782
|
+
},
|
|
235783
|
+
{
|
|
235784
|
+
name: "SIGCONT",
|
|
235785
|
+
number: 18,
|
|
235786
|
+
action: "unpause",
|
|
235787
|
+
description: "Unpaused",
|
|
235788
|
+
standard: "posix",
|
|
235789
|
+
forced: true
|
|
235790
|
+
},
|
|
235791
|
+
{
|
|
235792
|
+
name: "SIGSTOP",
|
|
235793
|
+
number: 19,
|
|
235794
|
+
action: "pause",
|
|
235795
|
+
description: "Paused",
|
|
235796
|
+
standard: "posix",
|
|
235797
|
+
forced: true
|
|
235798
|
+
},
|
|
235799
|
+
{
|
|
235800
|
+
name: "SIGTSTP",
|
|
235801
|
+
number: 20,
|
|
235802
|
+
action: "pause",
|
|
235803
|
+
description: 'Paused using CTRL-Z or "suspend"',
|
|
235804
|
+
standard: "posix"
|
|
235805
|
+
},
|
|
235806
|
+
{
|
|
235807
|
+
name: "SIGTTIN",
|
|
235808
|
+
number: 21,
|
|
235809
|
+
action: "pause",
|
|
235810
|
+
description: "Background process cannot read terminal input",
|
|
235811
|
+
standard: "posix"
|
|
235812
|
+
},
|
|
235813
|
+
{
|
|
235814
|
+
name: "SIGBREAK",
|
|
235815
|
+
number: 21,
|
|
235816
|
+
action: "terminate",
|
|
235817
|
+
description: "User interruption with CTRL-BREAK",
|
|
235818
|
+
standard: "other"
|
|
235819
|
+
},
|
|
235820
|
+
{
|
|
235821
|
+
name: "SIGTTOU",
|
|
235822
|
+
number: 22,
|
|
235823
|
+
action: "pause",
|
|
235824
|
+
description: "Background process cannot write to terminal output",
|
|
235825
|
+
standard: "posix"
|
|
235826
|
+
},
|
|
235827
|
+
{
|
|
235828
|
+
name: "SIGURG",
|
|
235829
|
+
number: 23,
|
|
235830
|
+
action: "ignore",
|
|
235831
|
+
description: "Socket received out-of-band data",
|
|
235832
|
+
standard: "bsd"
|
|
235833
|
+
},
|
|
235834
|
+
{
|
|
235835
|
+
name: "SIGXCPU",
|
|
235836
|
+
number: 24,
|
|
235837
|
+
action: "core",
|
|
235838
|
+
description: "Process timed out",
|
|
235839
|
+
standard: "bsd"
|
|
235840
|
+
},
|
|
235841
|
+
{
|
|
235842
|
+
name: "SIGXFSZ",
|
|
235843
|
+
number: 25,
|
|
235844
|
+
action: "core",
|
|
235845
|
+
description: "File too big",
|
|
235846
|
+
standard: "bsd"
|
|
235847
|
+
},
|
|
235848
|
+
{
|
|
235849
|
+
name: "SIGVTALRM",
|
|
235850
|
+
number: 26,
|
|
235851
|
+
action: "terminate",
|
|
235852
|
+
description: "Timeout or timer",
|
|
235853
|
+
standard: "bsd"
|
|
235854
|
+
},
|
|
235855
|
+
{
|
|
235856
|
+
name: "SIGPROF",
|
|
235857
|
+
number: 27,
|
|
235858
|
+
action: "terminate",
|
|
235859
|
+
description: "Timeout or timer",
|
|
235860
|
+
standard: "bsd"
|
|
235861
|
+
},
|
|
235862
|
+
{
|
|
235863
|
+
name: "SIGWINCH",
|
|
235864
|
+
number: 28,
|
|
235865
|
+
action: "ignore",
|
|
235866
|
+
description: "Terminal window size changed",
|
|
235867
|
+
standard: "bsd"
|
|
235868
|
+
},
|
|
235869
|
+
{
|
|
235870
|
+
name: "SIGIO",
|
|
235871
|
+
number: 29,
|
|
235872
|
+
action: "terminate",
|
|
235873
|
+
description: "I/O is available",
|
|
235874
|
+
standard: "other"
|
|
235875
|
+
},
|
|
235876
|
+
{
|
|
235877
|
+
name: "SIGPOLL",
|
|
235878
|
+
number: 29,
|
|
235879
|
+
action: "terminate",
|
|
235880
|
+
description: "Watched event",
|
|
235881
|
+
standard: "other"
|
|
235882
|
+
},
|
|
235883
|
+
{
|
|
235884
|
+
name: "SIGINFO",
|
|
235885
|
+
number: 29,
|
|
235886
|
+
action: "ignore",
|
|
235887
|
+
description: "Request for process information",
|
|
235888
|
+
standard: "other"
|
|
235889
|
+
},
|
|
235890
|
+
{
|
|
235891
|
+
name: "SIGPWR",
|
|
235892
|
+
number: 30,
|
|
235893
|
+
action: "terminate",
|
|
235894
|
+
description: "Device running out of power",
|
|
235895
|
+
standard: "systemv"
|
|
235896
|
+
},
|
|
235897
|
+
{
|
|
235898
|
+
name: "SIGSYS",
|
|
235899
|
+
number: 31,
|
|
235900
|
+
action: "core",
|
|
235901
|
+
description: "Invalid system call",
|
|
235902
|
+
standard: "other"
|
|
235903
|
+
},
|
|
235904
|
+
{
|
|
235905
|
+
name: "SIGUNUSED",
|
|
235906
|
+
number: 31,
|
|
235907
|
+
action: "terminate",
|
|
235908
|
+
description: "Invalid system call",
|
|
235909
|
+
standard: "other"
|
|
235910
|
+
}
|
|
235911
|
+
];
|
|
235912
|
+
});
|
|
235913
|
+
|
|
235914
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/signals.js
|
|
235915
|
+
import { constants } from "node:os";
|
|
235916
|
+
var getSignals2 = () => {
|
|
235917
|
+
const realtimeSignals = getRealtimeSignals();
|
|
235918
|
+
const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal2);
|
|
235919
|
+
return signals2;
|
|
235920
|
+
}, normalizeSignal2 = ({
|
|
235921
|
+
name: name2,
|
|
235922
|
+
number: defaultNumber,
|
|
235923
|
+
description,
|
|
235924
|
+
action,
|
|
235925
|
+
forced = false,
|
|
235926
|
+
standard
|
|
235927
|
+
}) => {
|
|
235928
|
+
const {
|
|
235929
|
+
signals: { [name2]: constantSignal }
|
|
235930
|
+
} = constants;
|
|
235931
|
+
const supported = constantSignal !== undefined;
|
|
235932
|
+
const number = supported ? constantSignal : defaultNumber;
|
|
235933
|
+
return { name: name2, number, description, supported, action, forced, standard };
|
|
235934
|
+
};
|
|
235935
|
+
var init_signals2 = __esm(() => {
|
|
235936
|
+
init_core();
|
|
235937
|
+
});
|
|
235938
|
+
|
|
235939
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/human-signals/build/src/main.js
|
|
235940
|
+
import { constants as constants2 } from "node:os";
|
|
235941
|
+
var getSignalsByName = () => {
|
|
235942
|
+
const signals2 = getSignals2();
|
|
235943
|
+
return Object.fromEntries(signals2.map(getSignalByName2));
|
|
235944
|
+
}, getSignalByName2 = ({
|
|
235945
|
+
name: name2,
|
|
235946
|
+
number,
|
|
235947
|
+
description,
|
|
235948
|
+
supported,
|
|
235949
|
+
action,
|
|
235950
|
+
forced,
|
|
235951
|
+
standard
|
|
235952
|
+
}) => [name2, { name: name2, number, description, supported, action, forced, standard }], signalsByName, getSignalsByNumber = () => {
|
|
235953
|
+
const signals2 = getSignals2();
|
|
235954
|
+
const length = SIGRTMAX + 1;
|
|
235955
|
+
const signalsA = Array.from({ length }, (value4, number) => getSignalByNumber2(number, signals2));
|
|
235956
|
+
return Object.assign({}, ...signalsA);
|
|
235957
|
+
}, getSignalByNumber2 = (number, signals2) => {
|
|
235958
|
+
const signal = findSignalByNumber2(number, signals2);
|
|
235959
|
+
if (signal === undefined) {
|
|
235960
|
+
return {};
|
|
235961
|
+
}
|
|
235962
|
+
const { name: name2, description, supported, action, forced, standard } = signal;
|
|
235963
|
+
return {
|
|
235964
|
+
[number]: {
|
|
235965
|
+
name: name2,
|
|
235966
|
+
number,
|
|
235967
|
+
description,
|
|
235968
|
+
supported,
|
|
235969
|
+
action,
|
|
235970
|
+
forced,
|
|
235971
|
+
standard
|
|
235972
|
+
}
|
|
235973
|
+
};
|
|
235974
|
+
}, findSignalByNumber2 = (number, signals2) => {
|
|
235975
|
+
const signal = signals2.find(({ name: name2 }) => constants2.signals[name2] === number);
|
|
235976
|
+
if (signal !== undefined) {
|
|
235977
|
+
return signal;
|
|
235978
|
+
}
|
|
235979
|
+
return signals2.find((signalA) => signalA.number === number);
|
|
235980
|
+
}, signalsByNumber;
|
|
235981
|
+
var init_main = __esm(() => {
|
|
235982
|
+
init_signals2();
|
|
235983
|
+
signalsByName = getSignalsByName();
|
|
235984
|
+
signalsByNumber = getSignalsByNumber();
|
|
235985
|
+
});
|
|
235986
|
+
|
|
235987
|
+
// ../../node_modules/nypm/node_modules/execa/lib/error.js
|
|
235988
|
+
import process9 from "node:process";
|
|
235989
|
+
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode: exitCode2, isCanceled }) => {
|
|
235990
|
+
if (timedOut) {
|
|
235991
|
+
return `timed out after ${timeout} milliseconds`;
|
|
235992
|
+
}
|
|
235993
|
+
if (isCanceled) {
|
|
235994
|
+
return "was canceled";
|
|
235995
|
+
}
|
|
235996
|
+
if (errorCode !== undefined) {
|
|
235997
|
+
return `failed with ${errorCode}`;
|
|
235998
|
+
}
|
|
235999
|
+
if (signal !== undefined) {
|
|
236000
|
+
return `was killed with ${signal} (${signalDescription})`;
|
|
236001
|
+
}
|
|
236002
|
+
if (exitCode2 !== undefined) {
|
|
236003
|
+
return `failed with exit code ${exitCode2}`;
|
|
236004
|
+
}
|
|
236005
|
+
return "failed";
|
|
236006
|
+
}, makeError2 = ({
|
|
236007
|
+
stdout,
|
|
236008
|
+
stderr,
|
|
236009
|
+
all,
|
|
236010
|
+
error: error5,
|
|
236011
|
+
signal,
|
|
236012
|
+
exitCode: exitCode2,
|
|
236013
|
+
command,
|
|
236014
|
+
escapedCommand,
|
|
236015
|
+
timedOut,
|
|
236016
|
+
isCanceled,
|
|
236017
|
+
killed,
|
|
236018
|
+
parsed: { options: { timeout, cwd: cwd2 = process9.cwd() } }
|
|
236019
|
+
}) => {
|
|
236020
|
+
exitCode2 = exitCode2 === null ? undefined : exitCode2;
|
|
236021
|
+
signal = signal === null ? undefined : signal;
|
|
236022
|
+
const signalDescription = signal === undefined ? undefined : signalsByName[signal].description;
|
|
236023
|
+
const errorCode = error5 && error5.code;
|
|
236024
|
+
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode: exitCode2, isCanceled });
|
|
236025
|
+
const execaMessage = `Command ${prefix}: ${command}`;
|
|
236026
|
+
const isError = Object.prototype.toString.call(error5) === "[object Error]";
|
|
236027
|
+
const shortMessage = isError ? `${execaMessage}
|
|
236028
|
+
${error5.message}` : execaMessage;
|
|
236029
|
+
const message = [shortMessage, stderr, stdout].filter(Boolean).join(`
|
|
236030
|
+
`);
|
|
236031
|
+
if (isError) {
|
|
236032
|
+
error5.originalMessage = error5.message;
|
|
236033
|
+
error5.message = message;
|
|
236034
|
+
} else {
|
|
236035
|
+
error5 = new Error(message);
|
|
236036
|
+
}
|
|
236037
|
+
error5.shortMessage = shortMessage;
|
|
236038
|
+
error5.command = command;
|
|
236039
|
+
error5.escapedCommand = escapedCommand;
|
|
236040
|
+
error5.exitCode = exitCode2;
|
|
236041
|
+
error5.signal = signal;
|
|
236042
|
+
error5.signalDescription = signalDescription;
|
|
236043
|
+
error5.stdout = stdout;
|
|
236044
|
+
error5.stderr = stderr;
|
|
236045
|
+
error5.cwd = cwd2;
|
|
236046
|
+
if (all !== undefined) {
|
|
236047
|
+
error5.all = all;
|
|
236048
|
+
}
|
|
236049
|
+
if ("bufferedData" in error5) {
|
|
236050
|
+
delete error5.bufferedData;
|
|
236051
|
+
}
|
|
236052
|
+
error5.failed = true;
|
|
236053
|
+
error5.timedOut = Boolean(timedOut);
|
|
236054
|
+
error5.isCanceled = isCanceled;
|
|
236055
|
+
error5.killed = killed && !timedOut;
|
|
236056
|
+
return error5;
|
|
236057
|
+
};
|
|
236058
|
+
var init_error = __esm(() => {
|
|
236059
|
+
init_main();
|
|
236060
|
+
});
|
|
236061
|
+
|
|
236062
|
+
// ../../node_modules/nypm/node_modules/execa/lib/stdio.js
|
|
236063
|
+
var aliases, hasAlias = (options) => aliases.some((alias) => options[alias] !== undefined), normalizeStdio2 = (options) => {
|
|
236064
|
+
if (!options) {
|
|
236065
|
+
return;
|
|
236066
|
+
}
|
|
236067
|
+
const { stdio } = options;
|
|
236068
|
+
if (stdio === undefined) {
|
|
236069
|
+
return aliases.map((alias) => options[alias]);
|
|
236070
|
+
}
|
|
236071
|
+
if (hasAlias(options)) {
|
|
236072
|
+
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
236073
|
+
}
|
|
236074
|
+
if (typeof stdio === "string") {
|
|
236075
|
+
return stdio;
|
|
236076
|
+
}
|
|
236077
|
+
if (!Array.isArray(stdio)) {
|
|
236078
|
+
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
236079
|
+
}
|
|
236080
|
+
const length = Math.max(stdio.length, aliases.length);
|
|
236081
|
+
return Array.from({ length }, (value4, index) => stdio[index]);
|
|
236082
|
+
}, normalizeStdioNode = (options) => {
|
|
236083
|
+
const stdio = normalizeStdio2(options);
|
|
236084
|
+
if (stdio === "ipc") {
|
|
236085
|
+
return "ipc";
|
|
236086
|
+
}
|
|
236087
|
+
if (stdio === undefined || typeof stdio === "string") {
|
|
236088
|
+
return [stdio, stdio, stdio, "ipc"];
|
|
236089
|
+
}
|
|
236090
|
+
if (stdio.includes("ipc")) {
|
|
236091
|
+
return stdio;
|
|
236092
|
+
}
|
|
236093
|
+
return [...stdio, "ipc"];
|
|
236094
|
+
};
|
|
236095
|
+
var init_stdio = __esm(() => {
|
|
236096
|
+
aliases = ["stdin", "stdout", "stderr"];
|
|
236097
|
+
});
|
|
236098
|
+
|
|
236099
|
+
// ../../node_modules/nypm/node_modules/execa/lib/kill.js
|
|
236100
|
+
import os from "node:os";
|
|
236101
|
+
var DEFAULT_FORCE_KILL_TIMEOUT, spawnedKill2 = (kill, signal = "SIGTERM", options = {}) => {
|
|
236102
|
+
const killResult = kill(signal);
|
|
236103
|
+
setKillTimeout2(kill, signal, options, killResult);
|
|
236104
|
+
return killResult;
|
|
236105
|
+
}, setKillTimeout2 = (kill, signal, options, killResult) => {
|
|
236106
|
+
if (!shouldForceKill2(signal, options, killResult)) {
|
|
236107
|
+
return;
|
|
236108
|
+
}
|
|
236109
|
+
const timeout = getForceKillAfterTimeout2(options);
|
|
236110
|
+
const t8 = setTimeout(() => {
|
|
236111
|
+
kill("SIGKILL");
|
|
236112
|
+
}, timeout);
|
|
236113
|
+
if (t8.unref) {
|
|
236114
|
+
t8.unref();
|
|
236115
|
+
}
|
|
236116
|
+
}, shouldForceKill2 = (signal, { forceKillAfterTimeout }, killResult) => isSigterm2(signal) && forceKillAfterTimeout !== false && killResult, isSigterm2 = (signal) => signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM", getForceKillAfterTimeout2 = ({ forceKillAfterTimeout = true }) => {
|
|
236117
|
+
if (forceKillAfterTimeout === true) {
|
|
236118
|
+
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
236119
|
+
}
|
|
236120
|
+
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
236121
|
+
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
236122
|
+
}
|
|
236123
|
+
return forceKillAfterTimeout;
|
|
236124
|
+
}, spawnedCancel2 = (spawned, context) => {
|
|
236125
|
+
const killResult = spawned.kill();
|
|
236126
|
+
if (killResult) {
|
|
236127
|
+
context.isCanceled = true;
|
|
236128
|
+
}
|
|
236129
|
+
}, timeoutKill = (spawned, signal, reject) => {
|
|
236130
|
+
spawned.kill(signal);
|
|
236131
|
+
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
236132
|
+
}, setupTimeout2 = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
236133
|
+
if (timeout === 0 || timeout === undefined) {
|
|
236134
|
+
return spawnedPromise;
|
|
236135
|
+
}
|
|
236136
|
+
let timeoutId;
|
|
236137
|
+
const timeoutPromise = new Promise((resolve7, reject) => {
|
|
236138
|
+
timeoutId = setTimeout(() => {
|
|
236139
|
+
timeoutKill(spawned, killSignal, reject);
|
|
236140
|
+
}, timeout);
|
|
236141
|
+
});
|
|
236142
|
+
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
236143
|
+
clearTimeout(timeoutId);
|
|
236144
|
+
});
|
|
236145
|
+
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
236146
|
+
}, validateTimeout2 = ({ timeout }) => {
|
|
236147
|
+
if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
236148
|
+
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
236149
|
+
}
|
|
236150
|
+
}, setExitHandler2 = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
236151
|
+
if (!cleanup || detached) {
|
|
236152
|
+
return timedPromise;
|
|
236153
|
+
}
|
|
236154
|
+
const removeExitHandler = onExit(() => {
|
|
236155
|
+
spawned.kill();
|
|
236156
|
+
});
|
|
236157
|
+
return timedPromise.finally(() => {
|
|
236158
|
+
removeExitHandler();
|
|
236159
|
+
});
|
|
236160
|
+
};
|
|
236161
|
+
var init_kill = __esm(() => {
|
|
236162
|
+
init_mjs();
|
|
236163
|
+
DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;
|
|
236164
|
+
});
|
|
236165
|
+
|
|
236166
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/is-stream/index.js
|
|
236167
|
+
function isStream4(stream2) {
|
|
236168
|
+
return stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function";
|
|
236169
|
+
}
|
|
236170
|
+
function isWritableStream2(stream2) {
|
|
236171
|
+
return isStream4(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object";
|
|
236172
|
+
}
|
|
236173
|
+
|
|
236174
|
+
// ../../node_modules/nypm/node_modules/execa/lib/pipe.js
|
|
236175
|
+
import { createWriteStream } from "node:fs";
|
|
236176
|
+
import { ChildProcess } from "node:child_process";
|
|
236177
|
+
var isExecaChildProcess = (target) => target instanceof ChildProcess && typeof target.then === "function", pipeToTarget2 = (spawned, streamName, target) => {
|
|
236178
|
+
if (typeof target === "string") {
|
|
236179
|
+
spawned[streamName].pipe(createWriteStream(target));
|
|
236180
|
+
return spawned;
|
|
236181
|
+
}
|
|
236182
|
+
if (isWritableStream2(target)) {
|
|
236183
|
+
spawned[streamName].pipe(target);
|
|
236184
|
+
return spawned;
|
|
236185
|
+
}
|
|
236186
|
+
if (!isExecaChildProcess(target)) {
|
|
236187
|
+
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
236188
|
+
}
|
|
236189
|
+
if (!isWritableStream2(target.stdin)) {
|
|
236190
|
+
throw new TypeError("The target child process's stdin must be available.");
|
|
236191
|
+
}
|
|
236192
|
+
spawned[streamName].pipe(target.stdin);
|
|
236193
|
+
return target;
|
|
236194
|
+
}, addPipeMethods2 = (spawned) => {
|
|
236195
|
+
if (spawned.stdout !== null) {
|
|
236196
|
+
spawned.pipeStdout = pipeToTarget2.bind(undefined, spawned, "stdout");
|
|
236197
|
+
}
|
|
236198
|
+
if (spawned.stderr !== null) {
|
|
236199
|
+
spawned.pipeStderr = pipeToTarget2.bind(undefined, spawned, "stderr");
|
|
236200
|
+
}
|
|
236201
|
+
if (spawned.all !== undefined) {
|
|
236202
|
+
spawned.pipeAll = pipeToTarget2.bind(undefined, spawned, "all");
|
|
236203
|
+
}
|
|
236204
|
+
};
|
|
236205
|
+
var init_pipe = () => {
|
|
236206
|
+
};
|
|
236207
|
+
|
|
236208
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/contents.js
|
|
236209
|
+
var getStreamContents2 = async (stream2, { init: init2, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
236210
|
+
if (!isAsyncIterable2(stream2)) {
|
|
236211
|
+
throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
236212
|
+
}
|
|
236213
|
+
const state = init2();
|
|
236214
|
+
state.length = 0;
|
|
236215
|
+
try {
|
|
236216
|
+
for await (const chunk of stream2) {
|
|
236217
|
+
const chunkType = getChunkType2(chunk);
|
|
236218
|
+
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
236219
|
+
appendChunk2({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
236220
|
+
}
|
|
236221
|
+
appendFinalChunk2({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
|
|
236222
|
+
return finalize(state);
|
|
236223
|
+
} catch (error5) {
|
|
236224
|
+
error5.bufferedData = finalize(state);
|
|
236225
|
+
throw error5;
|
|
236226
|
+
}
|
|
236227
|
+
}, appendFinalChunk2 = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
|
|
236228
|
+
const convertedChunk = getFinalChunk(state);
|
|
236229
|
+
if (convertedChunk !== undefined) {
|
|
236230
|
+
appendChunk2({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
236231
|
+
}
|
|
236232
|
+
}, appendChunk2 = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
|
|
236233
|
+
const chunkSize = getSize(convertedChunk);
|
|
236234
|
+
const newLength = state.length + chunkSize;
|
|
236235
|
+
if (newLength <= maxBuffer) {
|
|
236236
|
+
addNewChunk2(convertedChunk, state, addChunk, newLength);
|
|
236237
|
+
return;
|
|
236238
|
+
}
|
|
236239
|
+
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
236240
|
+
if (truncatedChunk !== undefined) {
|
|
236241
|
+
addNewChunk2(truncatedChunk, state, addChunk, maxBuffer);
|
|
236242
|
+
}
|
|
236243
|
+
throw new MaxBufferError2;
|
|
236244
|
+
}, addNewChunk2 = (convertedChunk, state, addChunk, newLength) => {
|
|
236245
|
+
state.contents = addChunk(convertedChunk, state, newLength);
|
|
236246
|
+
state.length = newLength;
|
|
236247
|
+
}, isAsyncIterable2 = (stream2) => typeof stream2 === "object" && stream2 !== null && typeof stream2[Symbol.asyncIterator] === "function", getChunkType2 = (chunk) => {
|
|
236248
|
+
const typeOfChunk = typeof chunk;
|
|
236249
|
+
if (typeOfChunk === "string") {
|
|
236250
|
+
return "string";
|
|
236251
|
+
}
|
|
236252
|
+
if (typeOfChunk !== "object" || chunk === null) {
|
|
236253
|
+
return "others";
|
|
236254
|
+
}
|
|
236255
|
+
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
236256
|
+
return "buffer";
|
|
236257
|
+
}
|
|
236258
|
+
const prototypeName = objectToString.call(chunk);
|
|
236259
|
+
if (prototypeName === "[object ArrayBuffer]") {
|
|
236260
|
+
return "arrayBuffer";
|
|
236261
|
+
}
|
|
236262
|
+
if (prototypeName === "[object DataView]") {
|
|
236263
|
+
return "dataView";
|
|
236264
|
+
}
|
|
236265
|
+
if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
|
|
236266
|
+
return "typedArray";
|
|
236267
|
+
}
|
|
236268
|
+
return "others";
|
|
236269
|
+
}, objectToString, MaxBufferError2;
|
|
236270
|
+
var init_contents = __esm(() => {
|
|
236271
|
+
({ toString: objectToString } = Object.prototype);
|
|
236272
|
+
MaxBufferError2 = class MaxBufferError2 extends Error {
|
|
236273
|
+
name = "MaxBufferError";
|
|
236274
|
+
constructor() {
|
|
236275
|
+
super("maxBuffer exceeded");
|
|
236276
|
+
}
|
|
236277
|
+
};
|
|
236278
|
+
});
|
|
236279
|
+
|
|
236280
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/utils.js
|
|
236281
|
+
var identity2 = (value4) => value4, noop2 = () => {
|
|
236282
|
+
return;
|
|
236283
|
+
}, getContentsProp = ({ contents }) => contents, throwObjectStream2 = (chunk) => {
|
|
236284
|
+
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
|
236285
|
+
}, getLengthProp2 = (convertedChunk) => convertedChunk.length;
|
|
236286
|
+
|
|
236287
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/array.js
|
|
236288
|
+
var init_array = __esm(() => {
|
|
236289
|
+
init_contents();
|
|
236290
|
+
});
|
|
236291
|
+
|
|
236292
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/array-buffer.js
|
|
236293
|
+
async function getStreamAsArrayBuffer(stream2, options) {
|
|
236294
|
+
return getStreamContents2(stream2, arrayBufferMethods, options);
|
|
236295
|
+
}
|
|
236296
|
+
var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) }), useTextEncoder = (chunk) => textEncoder.encode(chunk), textEncoder, useUint8Array2 = (chunk) => new Uint8Array(chunk), useUint8ArrayWithOffset2 = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength), truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize), addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
|
|
236297
|
+
const newContents = hasArrayBufferResize2() ? resizeArrayBuffer2(contents, length) : resizeArrayBufferSlow2(contents, length);
|
|
236298
|
+
new Uint8Array(newContents).set(convertedChunk, previousLength);
|
|
236299
|
+
return newContents;
|
|
236300
|
+
}, resizeArrayBufferSlow2 = (contents, length) => {
|
|
236301
|
+
if (length <= contents.byteLength) {
|
|
236302
|
+
return contents;
|
|
236303
|
+
}
|
|
236304
|
+
const arrayBuffer = new ArrayBuffer(getNewContentsLength2(length));
|
|
236305
|
+
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
236306
|
+
return arrayBuffer;
|
|
236307
|
+
}, resizeArrayBuffer2 = (contents, length) => {
|
|
236308
|
+
if (length <= contents.maxByteLength) {
|
|
236309
|
+
contents.resize(length);
|
|
236310
|
+
return contents;
|
|
236311
|
+
}
|
|
236312
|
+
const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength2(length) });
|
|
236313
|
+
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
236314
|
+
return arrayBuffer;
|
|
236315
|
+
}, getNewContentsLength2 = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR)), SCALE_FACTOR = 2, finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize2() ? contents : contents.slice(0, length), hasArrayBufferResize2 = () => ("resize" in ArrayBuffer.prototype), arrayBufferMethods;
|
|
236316
|
+
var init_array_buffer = __esm(() => {
|
|
236317
|
+
init_contents();
|
|
236318
|
+
textEncoder = new TextEncoder;
|
|
236319
|
+
arrayBufferMethods = {
|
|
236320
|
+
init: initArrayBuffer,
|
|
236321
|
+
convertChunk: {
|
|
236322
|
+
string: useTextEncoder,
|
|
236323
|
+
buffer: useUint8Array2,
|
|
236324
|
+
arrayBuffer: useUint8Array2,
|
|
236325
|
+
dataView: useUint8ArrayWithOffset2,
|
|
236326
|
+
typedArray: useUint8ArrayWithOffset2,
|
|
236327
|
+
others: throwObjectStream2
|
|
236328
|
+
},
|
|
236329
|
+
getSize: getLengthProp2,
|
|
236330
|
+
truncateChunk: truncateArrayBufferChunk,
|
|
236331
|
+
addChunk: addArrayBufferChunk,
|
|
236332
|
+
getFinalChunk: noop2,
|
|
236333
|
+
finalize: finalizeArrayBuffer
|
|
236334
|
+
};
|
|
236335
|
+
});
|
|
236336
|
+
|
|
236337
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/buffer.js
|
|
236338
|
+
async function getStreamAsBuffer2(stream2, options) {
|
|
236339
|
+
if (!("Buffer" in globalThis)) {
|
|
236340
|
+
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
236341
|
+
}
|
|
236342
|
+
try {
|
|
236343
|
+
return arrayBufferToNodeBuffer2(await getStreamAsArrayBuffer(stream2, options));
|
|
236344
|
+
} catch (error5) {
|
|
236345
|
+
if (error5.bufferedData !== undefined) {
|
|
236346
|
+
error5.bufferedData = arrayBufferToNodeBuffer2(error5.bufferedData);
|
|
236347
|
+
}
|
|
236348
|
+
throw error5;
|
|
236349
|
+
}
|
|
236350
|
+
}
|
|
236351
|
+
var arrayBufferToNodeBuffer2 = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
|
|
236352
|
+
var init_buffer = __esm(() => {
|
|
236353
|
+
init_array_buffer();
|
|
236354
|
+
});
|
|
236355
|
+
|
|
236356
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/string.js
|
|
236357
|
+
async function getStreamAsString(stream2, options) {
|
|
236358
|
+
return getStreamContents2(stream2, stringMethods, options);
|
|
236359
|
+
}
|
|
236360
|
+
var initString = () => ({ contents: "", textDecoder: new TextDecoder }), useTextDecoder2 = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true }), addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk, truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize), getFinalStringChunk = ({ textDecoder }) => {
|
|
236361
|
+
const finalChunk = textDecoder.decode();
|
|
236362
|
+
return finalChunk === "" ? undefined : finalChunk;
|
|
236363
|
+
}, stringMethods;
|
|
236364
|
+
var init_string = __esm(() => {
|
|
236365
|
+
init_contents();
|
|
236366
|
+
stringMethods = {
|
|
236367
|
+
init: initString,
|
|
236368
|
+
convertChunk: {
|
|
236369
|
+
string: identity2,
|
|
236370
|
+
buffer: useTextDecoder2,
|
|
236371
|
+
arrayBuffer: useTextDecoder2,
|
|
236372
|
+
dataView: useTextDecoder2,
|
|
236373
|
+
typedArray: useTextDecoder2,
|
|
236374
|
+
others: throwObjectStream2
|
|
236375
|
+
},
|
|
236376
|
+
getSize: getLengthProp2,
|
|
236377
|
+
truncateChunk: truncateStringChunk,
|
|
236378
|
+
addChunk: addStringChunk,
|
|
236379
|
+
getFinalChunk: getFinalStringChunk,
|
|
236380
|
+
finalize: getContentsProp
|
|
236381
|
+
};
|
|
236382
|
+
});
|
|
236383
|
+
|
|
236384
|
+
// ../../node_modules/nypm/node_modules/execa/node_modules/get-stream/source/index.js
|
|
236385
|
+
var init_source = __esm(() => {
|
|
236386
|
+
init_array();
|
|
236387
|
+
init_array_buffer();
|
|
236388
|
+
init_buffer();
|
|
236389
|
+
init_string();
|
|
236390
|
+
init_contents();
|
|
236391
|
+
});
|
|
236392
|
+
|
|
236393
|
+
// ../../node_modules/merge-stream/index.js
|
|
236394
|
+
var require_merge_stream = __commonJS((exports, module) => {
|
|
236395
|
+
var { PassThrough } = __require("stream");
|
|
236396
|
+
module.exports = function() {
|
|
236397
|
+
var sources = [];
|
|
236398
|
+
var output = new PassThrough({ objectMode: true });
|
|
236399
|
+
output.setMaxListeners(0);
|
|
236400
|
+
output.add = add;
|
|
236401
|
+
output.isEmpty = isEmpty2;
|
|
236402
|
+
output.on("unpipe", remove);
|
|
236403
|
+
Array.prototype.slice.call(arguments).forEach(add);
|
|
236404
|
+
return output;
|
|
236405
|
+
function add(source) {
|
|
236406
|
+
if (Array.isArray(source)) {
|
|
236407
|
+
source.forEach(add);
|
|
236408
|
+
return this;
|
|
236409
|
+
}
|
|
236410
|
+
sources.push(source);
|
|
236411
|
+
source.once("end", remove.bind(null, source));
|
|
236412
|
+
source.once("error", output.emit.bind(output, "error"));
|
|
236413
|
+
source.pipe(output, { end: false });
|
|
236414
|
+
return this;
|
|
236415
|
+
}
|
|
236416
|
+
function isEmpty2() {
|
|
236417
|
+
return sources.length == 0;
|
|
236418
|
+
}
|
|
236419
|
+
function remove(source) {
|
|
236420
|
+
sources = sources.filter(function(it2) {
|
|
236421
|
+
return it2 !== source;
|
|
236422
|
+
});
|
|
236423
|
+
if (!sources.length && output.readable) {
|
|
236424
|
+
output.end();
|
|
236425
|
+
}
|
|
236426
|
+
}
|
|
236427
|
+
};
|
|
236428
|
+
});
|
|
236429
|
+
|
|
236430
|
+
// ../../node_modules/nypm/node_modules/execa/lib/stream.js
|
|
236431
|
+
import { createReadStream, readFileSync } from "node:fs";
|
|
236432
|
+
import { setTimeout as setTimeout2 } from "node:timers/promises";
|
|
236433
|
+
var import_merge_stream, validateInputOptions = (input) => {
|
|
236434
|
+
if (input !== undefined) {
|
|
236435
|
+
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
236436
|
+
}
|
|
236437
|
+
}, getInputSync = ({ input, inputFile }) => {
|
|
236438
|
+
if (typeof inputFile !== "string") {
|
|
236439
|
+
return input;
|
|
236440
|
+
}
|
|
236441
|
+
validateInputOptions(input);
|
|
236442
|
+
return readFileSync(inputFile);
|
|
236443
|
+
}, handleInputSync = (options) => {
|
|
236444
|
+
const input = getInputSync(options);
|
|
236445
|
+
if (isStream4(input)) {
|
|
236446
|
+
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
236447
|
+
}
|
|
236448
|
+
return input;
|
|
236449
|
+
}, getInput2 = ({ input, inputFile }) => {
|
|
236450
|
+
if (typeof inputFile !== "string") {
|
|
236451
|
+
return input;
|
|
236452
|
+
}
|
|
236453
|
+
validateInputOptions(input);
|
|
236454
|
+
return createReadStream(inputFile);
|
|
236455
|
+
}, handleInput2 = (spawned, options) => {
|
|
236456
|
+
const input = getInput2(options);
|
|
236457
|
+
if (input === undefined) {
|
|
236458
|
+
return;
|
|
236459
|
+
}
|
|
236460
|
+
if (isStream4(input)) {
|
|
236461
|
+
input.pipe(spawned.stdin);
|
|
236462
|
+
} else {
|
|
236463
|
+
spawned.stdin.end(input);
|
|
236464
|
+
}
|
|
236465
|
+
}, makeAllStream2 = (spawned, { all }) => {
|
|
236466
|
+
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
236467
|
+
return;
|
|
236468
|
+
}
|
|
236469
|
+
const mixed = import_merge_stream.default();
|
|
236470
|
+
if (spawned.stdout) {
|
|
236471
|
+
mixed.add(spawned.stdout);
|
|
236472
|
+
}
|
|
236473
|
+
if (spawned.stderr) {
|
|
236474
|
+
mixed.add(spawned.stderr);
|
|
236475
|
+
}
|
|
236476
|
+
return mixed;
|
|
236477
|
+
}, getBufferedData2 = async (stream2, streamPromise) => {
|
|
236478
|
+
if (!stream2 || streamPromise === undefined) {
|
|
236479
|
+
return;
|
|
236480
|
+
}
|
|
236481
|
+
await setTimeout2(0);
|
|
236482
|
+
stream2.destroy();
|
|
236483
|
+
try {
|
|
236484
|
+
return await streamPromise;
|
|
236485
|
+
} catch (error5) {
|
|
236486
|
+
return error5.bufferedData;
|
|
236487
|
+
}
|
|
236488
|
+
}, getStreamPromise2 = (stream2, { encoding, buffer, maxBuffer }) => {
|
|
236489
|
+
if (!stream2 || !buffer) {
|
|
236490
|
+
return;
|
|
236491
|
+
}
|
|
236492
|
+
if (encoding === "utf8" || encoding === "utf-8") {
|
|
236493
|
+
return getStreamAsString(stream2, { maxBuffer });
|
|
236494
|
+
}
|
|
236495
|
+
if (encoding === null || encoding === "buffer") {
|
|
236496
|
+
return getStreamAsBuffer2(stream2, { maxBuffer });
|
|
236497
|
+
}
|
|
236498
|
+
return applyEncoding2(stream2, maxBuffer, encoding);
|
|
236499
|
+
}, applyEncoding2 = async (stream2, maxBuffer, encoding) => {
|
|
236500
|
+
const buffer = await getStreamAsBuffer2(stream2, { maxBuffer });
|
|
236501
|
+
return buffer.toString(encoding);
|
|
236502
|
+
}, getSpawnedResult2 = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
236503
|
+
const stdoutPromise = getStreamPromise2(stdout, { encoding, buffer, maxBuffer });
|
|
236504
|
+
const stderrPromise = getStreamPromise2(stderr, { encoding, buffer, maxBuffer });
|
|
236505
|
+
const allPromise = getStreamPromise2(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
236506
|
+
try {
|
|
236507
|
+
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
236508
|
+
} catch (error5) {
|
|
236509
|
+
return Promise.all([
|
|
236510
|
+
{ error: error5, signal: error5.signal, timedOut: error5.timedOut },
|
|
236511
|
+
getBufferedData2(stdout, stdoutPromise),
|
|
236512
|
+
getBufferedData2(stderr, stderrPromise),
|
|
236513
|
+
getBufferedData2(all, allPromise)
|
|
236514
|
+
]);
|
|
236515
|
+
}
|
|
236516
|
+
};
|
|
236517
|
+
var init_stream = __esm(() => {
|
|
236518
|
+
init_source();
|
|
236519
|
+
import_merge_stream = __toESM(require_merge_stream(), 1);
|
|
236520
|
+
});
|
|
236521
|
+
|
|
236522
|
+
// ../../node_modules/nypm/node_modules/execa/lib/promise.js
|
|
236523
|
+
var nativePromisePrototype, descriptors, mergePromise2 = (spawned, promise) => {
|
|
236524
|
+
for (const [property, descriptor] of descriptors) {
|
|
236525
|
+
const value4 = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
236526
|
+
Reflect.defineProperty(spawned, property, { ...descriptor, value: value4 });
|
|
236527
|
+
}
|
|
236528
|
+
}, getSpawnedPromise2 = (spawned) => new Promise((resolve7, reject) => {
|
|
236529
|
+
spawned.on("exit", (exitCode2, signal) => {
|
|
236530
|
+
resolve7({ exitCode: exitCode2, signal });
|
|
236531
|
+
});
|
|
236532
|
+
spawned.on("error", (error5) => {
|
|
236533
|
+
reject(error5);
|
|
236534
|
+
});
|
|
236535
|
+
if (spawned.stdin) {
|
|
236536
|
+
spawned.stdin.on("error", (error5) => {
|
|
236537
|
+
reject(error5);
|
|
236538
|
+
});
|
|
236539
|
+
}
|
|
236540
|
+
});
|
|
236541
|
+
var init_promise = __esm(() => {
|
|
236542
|
+
nativePromisePrototype = (async () => {
|
|
236543
|
+
})().constructor.prototype;
|
|
236544
|
+
descriptors = ["then", "catch", "finally"].map((property) => [
|
|
236545
|
+
property,
|
|
236546
|
+
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
236547
|
+
]);
|
|
236548
|
+
});
|
|
236549
|
+
|
|
236550
|
+
// ../../node_modules/nypm/node_modules/execa/lib/command.js
|
|
236551
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
236552
|
+
import { ChildProcess as ChildProcess2 } from "node:child_process";
|
|
236553
|
+
var normalizeArgs2 = (file, args = []) => {
|
|
236554
|
+
if (!Array.isArray(args)) {
|
|
236555
|
+
return [file];
|
|
236556
|
+
}
|
|
236557
|
+
return [file, ...args];
|
|
236558
|
+
}, NO_ESCAPE_REGEXP, escapeArg = (arg) => {
|
|
236559
|
+
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
236560
|
+
return arg;
|
|
236561
|
+
}
|
|
236562
|
+
return `"${arg.replaceAll('"', "\\\"")}"`;
|
|
236563
|
+
}, joinCommand2 = (file, args) => normalizeArgs2(file, args).join(" "), getEscapedCommand2 = (file, args) => normalizeArgs2(file, args).map((arg) => escapeArg(arg)).join(" "), SPACES_REGEXP, parseCommand = (command) => {
|
|
236564
|
+
const tokens = [];
|
|
236565
|
+
for (const token of command.trim().split(SPACES_REGEXP)) {
|
|
236566
|
+
const previousToken = tokens.at(-1);
|
|
236567
|
+
if (previousToken && previousToken.endsWith("\\")) {
|
|
236568
|
+
tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
|
|
236569
|
+
} else {
|
|
236570
|
+
tokens.push(token);
|
|
236571
|
+
}
|
|
236572
|
+
}
|
|
236573
|
+
return tokens;
|
|
236574
|
+
}, parseExpression = (expression) => {
|
|
236575
|
+
const typeOfExpression = typeof expression;
|
|
236576
|
+
if (typeOfExpression === "string") {
|
|
236577
|
+
return expression;
|
|
236578
|
+
}
|
|
236579
|
+
if (typeOfExpression === "number") {
|
|
236580
|
+
return String(expression);
|
|
236581
|
+
}
|
|
236582
|
+
if (typeOfExpression === "object" && expression !== null && !(expression instanceof ChildProcess2) && "stdout" in expression) {
|
|
236583
|
+
const typeOfStdout = typeof expression.stdout;
|
|
236584
|
+
if (typeOfStdout === "string") {
|
|
236585
|
+
return expression.stdout;
|
|
236586
|
+
}
|
|
236587
|
+
if (Buffer2.isBuffer(expression.stdout)) {
|
|
236588
|
+
return expression.stdout.toString();
|
|
236589
|
+
}
|
|
236590
|
+
throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
|
|
236591
|
+
}
|
|
236592
|
+
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
236593
|
+
}, concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
|
|
236594
|
+
...tokens.slice(0, -1),
|
|
236595
|
+
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
236596
|
+
...nextTokens.slice(1)
|
|
236597
|
+
], parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
236598
|
+
const templateString = template ?? templates.raw[index];
|
|
236599
|
+
const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
|
|
236600
|
+
const newTokens = concatTokens(tokens, templateTokens, templateString.startsWith(" "));
|
|
236601
|
+
if (index === expressions.length) {
|
|
236602
|
+
return newTokens;
|
|
236603
|
+
}
|
|
236604
|
+
const expression = expressions[index];
|
|
236605
|
+
const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
|
|
236606
|
+
return concatTokens(newTokens, expressionTokens, templateString.endsWith(" "));
|
|
236607
|
+
}, parseTemplates = (templates, expressions) => {
|
|
236608
|
+
let tokens = [];
|
|
236609
|
+
for (const [index, template] of templates.entries()) {
|
|
236610
|
+
tokens = parseTemplate({ templates, expressions, tokens, index, template });
|
|
236611
|
+
}
|
|
236612
|
+
return tokens;
|
|
236613
|
+
};
|
|
236614
|
+
var init_command = __esm(() => {
|
|
236615
|
+
NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
236616
|
+
SPACES_REGEXP = / +/g;
|
|
236617
|
+
});
|
|
236618
|
+
|
|
236619
|
+
// ../../node_modules/nypm/node_modules/execa/lib/verbose.js
|
|
236620
|
+
import { debuglog } from "node:util";
|
|
236621
|
+
import process10 from "node:process";
|
|
236622
|
+
var verboseDefault, padField2 = (field2, padding) => String(field2).padStart(padding, "0"), getTimestamp = () => {
|
|
236623
|
+
const date = new Date;
|
|
236624
|
+
return `${padField2(date.getHours(), 2)}:${padField2(date.getMinutes(), 2)}:${padField2(date.getSeconds(), 2)}.${padField2(date.getMilliseconds(), 3)}`;
|
|
236625
|
+
}, logCommand2 = (escapedCommand, { verbose }) => {
|
|
236626
|
+
if (!verbose) {
|
|
236627
|
+
return;
|
|
236628
|
+
}
|
|
236629
|
+
process10.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
236630
|
+
`);
|
|
236631
|
+
};
|
|
236632
|
+
var init_verbose = __esm(() => {
|
|
236633
|
+
verboseDefault = debuglog("execa").enabled;
|
|
236634
|
+
});
|
|
236635
|
+
|
|
236636
|
+
// ../../node_modules/nypm/node_modules/execa/index.js
|
|
236637
|
+
var exports_execa = {};
|
|
236638
|
+
__export(exports_execa, {
|
|
236639
|
+
execaSync: () => execaSync,
|
|
236640
|
+
execaNode: () => execaNode,
|
|
236641
|
+
execaCommandSync: () => execaCommandSync,
|
|
236642
|
+
execaCommand: () => execaCommand,
|
|
236643
|
+
execa: () => execa2,
|
|
236644
|
+
$: () => $4
|
|
236645
|
+
});
|
|
236646
|
+
import { Buffer as Buffer3 } from "node:buffer";
|
|
236647
|
+
import path7 from "node:path";
|
|
236648
|
+
import childProcess from "node:child_process";
|
|
236649
|
+
import process11 from "node:process";
|
|
236650
|
+
function execa2(file, args, options) {
|
|
236651
|
+
const parsed = handleArguments2(file, args, options);
|
|
236652
|
+
const command = joinCommand2(file, args);
|
|
236653
|
+
const escapedCommand = getEscapedCommand2(file, args);
|
|
236654
|
+
logCommand2(escapedCommand, parsed.options);
|
|
236655
|
+
validateTimeout2(parsed.options);
|
|
236656
|
+
let spawned;
|
|
236657
|
+
try {
|
|
236658
|
+
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
236659
|
+
} catch (error5) {
|
|
236660
|
+
const dummySpawned = new childProcess.ChildProcess;
|
|
236661
|
+
const errorPromise = Promise.reject(makeError2({
|
|
236662
|
+
error: error5,
|
|
236663
|
+
stdout: "",
|
|
236664
|
+
stderr: "",
|
|
236665
|
+
all: "",
|
|
236666
|
+
command,
|
|
236667
|
+
escapedCommand,
|
|
236668
|
+
parsed,
|
|
236669
|
+
timedOut: false,
|
|
236670
|
+
isCanceled: false,
|
|
236671
|
+
killed: false
|
|
236672
|
+
}));
|
|
236673
|
+
mergePromise2(dummySpawned, errorPromise);
|
|
236674
|
+
return dummySpawned;
|
|
236675
|
+
}
|
|
236676
|
+
const spawnedPromise = getSpawnedPromise2(spawned);
|
|
236677
|
+
const timedPromise = setupTimeout2(spawned, parsed.options, spawnedPromise);
|
|
236678
|
+
const processDone = setExitHandler2(spawned, parsed.options, timedPromise);
|
|
236679
|
+
const context = { isCanceled: false };
|
|
236680
|
+
spawned.kill = spawnedKill2.bind(null, spawned.kill.bind(spawned));
|
|
236681
|
+
spawned.cancel = spawnedCancel2.bind(null, spawned, context);
|
|
236682
|
+
const handlePromise = async () => {
|
|
236683
|
+
const [{ error: error5, exitCode: exitCode2, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult2(spawned, parsed.options, processDone);
|
|
236684
|
+
const stdout = handleOutput2(parsed.options, stdoutResult);
|
|
236685
|
+
const stderr = handleOutput2(parsed.options, stderrResult);
|
|
236686
|
+
const all = handleOutput2(parsed.options, allResult);
|
|
236687
|
+
if (error5 || exitCode2 !== 0 || signal !== null) {
|
|
236688
|
+
const returnedError = makeError2({
|
|
236689
|
+
error: error5,
|
|
236690
|
+
exitCode: exitCode2,
|
|
236691
|
+
signal,
|
|
236692
|
+
stdout,
|
|
236693
|
+
stderr,
|
|
236694
|
+
all,
|
|
236695
|
+
command,
|
|
236696
|
+
escapedCommand,
|
|
236697
|
+
parsed,
|
|
236698
|
+
timedOut,
|
|
236699
|
+
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
236700
|
+
killed: spawned.killed
|
|
236701
|
+
});
|
|
236702
|
+
if (!parsed.options.reject) {
|
|
236703
|
+
return returnedError;
|
|
236704
|
+
}
|
|
236705
|
+
throw returnedError;
|
|
236706
|
+
}
|
|
236707
|
+
return {
|
|
236708
|
+
command,
|
|
236709
|
+
escapedCommand,
|
|
236710
|
+
exitCode: 0,
|
|
236711
|
+
stdout,
|
|
236712
|
+
stderr,
|
|
236713
|
+
all,
|
|
236714
|
+
failed: false,
|
|
236715
|
+
timedOut: false,
|
|
236716
|
+
isCanceled: false,
|
|
236717
|
+
killed: false
|
|
236718
|
+
};
|
|
236719
|
+
};
|
|
236720
|
+
const handlePromiseOnce = onetime_default(handlePromise);
|
|
236721
|
+
handleInput2(spawned, parsed.options);
|
|
236722
|
+
spawned.all = makeAllStream2(spawned, parsed.options);
|
|
236723
|
+
addPipeMethods2(spawned);
|
|
236724
|
+
mergePromise2(spawned, handlePromiseOnce);
|
|
236725
|
+
return spawned;
|
|
236726
|
+
}
|
|
236727
|
+
function execaSync(file, args, options) {
|
|
236728
|
+
const parsed = handleArguments2(file, args, options);
|
|
236729
|
+
const command = joinCommand2(file, args);
|
|
236730
|
+
const escapedCommand = getEscapedCommand2(file, args);
|
|
236731
|
+
logCommand2(escapedCommand, parsed.options);
|
|
236732
|
+
const input = handleInputSync(parsed.options);
|
|
236733
|
+
let result;
|
|
236734
|
+
try {
|
|
236735
|
+
result = childProcess.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
|
|
236736
|
+
} catch (error5) {
|
|
236737
|
+
throw makeError2({
|
|
236738
|
+
error: error5,
|
|
236739
|
+
stdout: "",
|
|
236740
|
+
stderr: "",
|
|
236741
|
+
all: "",
|
|
236742
|
+
command,
|
|
236743
|
+
escapedCommand,
|
|
236744
|
+
parsed,
|
|
236745
|
+
timedOut: false,
|
|
236746
|
+
isCanceled: false,
|
|
236747
|
+
killed: false
|
|
236748
|
+
});
|
|
236749
|
+
}
|
|
236750
|
+
const stdout = handleOutput2(parsed.options, result.stdout, result.error);
|
|
236751
|
+
const stderr = handleOutput2(parsed.options, result.stderr, result.error);
|
|
236752
|
+
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
236753
|
+
const error5 = makeError2({
|
|
236754
|
+
stdout,
|
|
236755
|
+
stderr,
|
|
236756
|
+
error: result.error,
|
|
236757
|
+
signal: result.signal,
|
|
236758
|
+
exitCode: result.status,
|
|
236759
|
+
command,
|
|
236760
|
+
escapedCommand,
|
|
236761
|
+
parsed,
|
|
236762
|
+
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
236763
|
+
isCanceled: false,
|
|
236764
|
+
killed: result.signal !== null
|
|
236765
|
+
});
|
|
236766
|
+
if (!parsed.options.reject) {
|
|
236767
|
+
return error5;
|
|
236768
|
+
}
|
|
236769
|
+
throw error5;
|
|
236770
|
+
}
|
|
236771
|
+
return {
|
|
236772
|
+
command,
|
|
236773
|
+
escapedCommand,
|
|
236774
|
+
exitCode: 0,
|
|
236775
|
+
stdout,
|
|
236776
|
+
stderr,
|
|
236777
|
+
failed: false,
|
|
236778
|
+
timedOut: false,
|
|
236779
|
+
isCanceled: false,
|
|
236780
|
+
killed: false
|
|
236781
|
+
};
|
|
236782
|
+
}
|
|
236783
|
+
function create$(options) {
|
|
236784
|
+
function $4(templatesOrOptions, ...expressions) {
|
|
236785
|
+
if (!Array.isArray(templatesOrOptions)) {
|
|
236786
|
+
return create$({ ...options, ...templatesOrOptions });
|
|
236787
|
+
}
|
|
236788
|
+
const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
|
|
236789
|
+
return execa2(file, args, normalizeScriptOptions(options));
|
|
236790
|
+
}
|
|
236791
|
+
$4.sync = (templates, ...expressions) => {
|
|
236792
|
+
if (!Array.isArray(templates)) {
|
|
236793
|
+
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
236794
|
+
}
|
|
236795
|
+
const [file, ...args] = parseTemplates(templates, expressions);
|
|
236796
|
+
return execaSync(file, args, normalizeScriptOptions(options));
|
|
236797
|
+
};
|
|
236798
|
+
return $4;
|
|
236799
|
+
}
|
|
236800
|
+
function execaCommand(command, options) {
|
|
236801
|
+
const [file, ...args] = parseCommand(command);
|
|
236802
|
+
return execa2(file, args, options);
|
|
236803
|
+
}
|
|
236804
|
+
function execaCommandSync(command, options) {
|
|
236805
|
+
const [file, ...args] = parseCommand(command);
|
|
236806
|
+
return execaSync(file, args, options);
|
|
236807
|
+
}
|
|
236808
|
+
function execaNode(scriptPath, args, options = {}) {
|
|
236809
|
+
if (args && !Array.isArray(args) && typeof args === "object") {
|
|
236810
|
+
options = args;
|
|
236811
|
+
args = [];
|
|
236812
|
+
}
|
|
236813
|
+
const stdio = normalizeStdioNode(options);
|
|
236814
|
+
const defaultExecArgv = process11.execArgv.filter((arg) => !arg.startsWith("--inspect"));
|
|
236815
|
+
const {
|
|
236816
|
+
nodePath = process11.execPath,
|
|
236817
|
+
nodeOptions = defaultExecArgv
|
|
236818
|
+
} = options;
|
|
236819
|
+
return execa2(nodePath, [
|
|
236820
|
+
...nodeOptions,
|
|
236821
|
+
scriptPath,
|
|
236822
|
+
...Array.isArray(args) ? args : []
|
|
236823
|
+
], {
|
|
236824
|
+
...options,
|
|
236825
|
+
stdin: undefined,
|
|
236826
|
+
stdout: undefined,
|
|
236827
|
+
stderr: undefined,
|
|
236828
|
+
stdio,
|
|
236829
|
+
shell: false
|
|
236830
|
+
});
|
|
236831
|
+
}
|
|
236832
|
+
var import_cross_spawn, DEFAULT_MAX_BUFFER, getEnv2 = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
236833
|
+
const env2 = extendEnv ? { ...process11.env, ...envOption } : envOption;
|
|
236834
|
+
if (preferLocal) {
|
|
236835
|
+
return npmRunPathEnv2({ env: env2, cwd: localDir, execPath });
|
|
236836
|
+
}
|
|
236837
|
+
return env2;
|
|
236838
|
+
}, handleArguments2 = (file, args, options = {}) => {
|
|
236839
|
+
const parsed = import_cross_spawn.default._parse(file, args, options);
|
|
236840
|
+
file = parsed.command;
|
|
236841
|
+
args = parsed.args;
|
|
236842
|
+
options = parsed.options;
|
|
236843
|
+
options = {
|
|
236844
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
236845
|
+
buffer: true,
|
|
236846
|
+
stripFinalNewline: true,
|
|
236847
|
+
extendEnv: true,
|
|
236848
|
+
preferLocal: false,
|
|
236849
|
+
localDir: options.cwd || process11.cwd(),
|
|
236850
|
+
execPath: process11.execPath,
|
|
236851
|
+
encoding: "utf8",
|
|
236852
|
+
reject: true,
|
|
236853
|
+
cleanup: true,
|
|
236854
|
+
all: false,
|
|
236855
|
+
windowsHide: true,
|
|
236856
|
+
verbose: verboseDefault,
|
|
236857
|
+
...options
|
|
236858
|
+
};
|
|
236859
|
+
options.env = getEnv2(options);
|
|
236860
|
+
options.stdio = normalizeStdio2(options);
|
|
236861
|
+
if (process11.platform === "win32" && path7.basename(file, ".exe") === "cmd") {
|
|
236862
|
+
args.unshift("/q");
|
|
236863
|
+
}
|
|
236864
|
+
return { file, args, options, parsed };
|
|
236865
|
+
}, handleOutput2 = (options, value4, error5) => {
|
|
236866
|
+
if (typeof value4 !== "string" && !Buffer3.isBuffer(value4)) {
|
|
236867
|
+
return error5 === undefined ? undefined : "";
|
|
236868
|
+
}
|
|
236869
|
+
if (options.stripFinalNewline) {
|
|
236870
|
+
return stripFinalNewline(value4);
|
|
236871
|
+
}
|
|
236872
|
+
return value4;
|
|
236873
|
+
}, normalizeScriptStdin = ({ input, inputFile, stdio }) => input === undefined && inputFile === undefined && stdio === undefined ? { stdin: "inherit" } : {}, normalizeScriptOptions = (options = {}) => ({
|
|
236874
|
+
preferLocal: true,
|
|
236875
|
+
...normalizeScriptStdin(options),
|
|
236876
|
+
...options
|
|
236877
|
+
}), $4;
|
|
236878
|
+
var init_execa = __esm(() => {
|
|
236879
|
+
import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
236880
|
+
init_npm_run_path();
|
|
236881
|
+
init_onetime();
|
|
236882
|
+
init_error();
|
|
236883
|
+
init_stdio();
|
|
236884
|
+
init_kill();
|
|
236885
|
+
init_pipe();
|
|
236886
|
+
init_stream();
|
|
236887
|
+
init_promise();
|
|
236888
|
+
init_command();
|
|
236889
|
+
init_verbose();
|
|
236890
|
+
DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;
|
|
236891
|
+
$4 = create$();
|
|
236892
|
+
});
|
|
236893
|
+
|
|
234805
236894
|
// ../../node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
|
|
234806
236895
|
var require_node_fetch_native_DhEqb06g = __commonJS((exports) => {
|
|
234807
236896
|
var l3 = Object.defineProperty;
|
|
@@ -234832,7 +236921,7 @@ var require_multipart_parser = __commonJS((exports) => {
|
|
|
234832
236921
|
var A5 = 97;
|
|
234833
236922
|
var Z4 = 122;
|
|
234834
236923
|
var lower = c3((_5) => _5 | 32, "lower");
|
|
234835
|
-
var
|
|
236924
|
+
var noop3 = c3(() => {
|
|
234836
236925
|
}, "noop");
|
|
234837
236926
|
|
|
234838
236927
|
class MultipartParser {
|
|
@@ -234840,7 +236929,7 @@ var require_multipart_parser = __commonJS((exports) => {
|
|
|
234840
236929
|
c3(this, "MultipartParser");
|
|
234841
236930
|
}
|
|
234842
236931
|
constructor(a7) {
|
|
234843
|
-
this.index = 0, this.flags = 0, this.onHeaderEnd =
|
|
236932
|
+
this.index = 0, this.flags = 0, this.onHeaderEnd = noop3, this.onHeaderField = noop3, this.onHeadersEnd = noop3, this.onHeaderValue = noop3, this.onPartBegin = noop3, this.onPartData = noop3, this.onPartEnd = noop3, this.boundaryChars = {}, a7 = `\r
|
|
234844
236933
|
--` + a7;
|
|
234845
236934
|
const t8 = new Uint8Array(a7.length);
|
|
234846
236935
|
for (let n6 = 0;n6 < a7.length; n6++)
|
|
@@ -235120,15 +237209,15 @@ var require_node3 = __commonJS((exports) => {
|
|
|
235120
237209
|
}
|
|
235121
237210
|
return se4(n6);
|
|
235122
237211
|
}, "_queueMicrotask");
|
|
235123
|
-
function $
|
|
237212
|
+
function $5(n6, o8, a7) {
|
|
235124
237213
|
if (typeof n6 != "function")
|
|
235125
237214
|
throw new TypeError("Argument is not a function");
|
|
235126
237215
|
return Function.prototype.apply.call(n6, o8, a7);
|
|
235127
237216
|
}
|
|
235128
|
-
u6($
|
|
237217
|
+
u6($5, "reflectCall");
|
|
235129
237218
|
function N6(n6, o8, a7) {
|
|
235130
237219
|
try {
|
|
235131
|
-
return W4($
|
|
237220
|
+
return W4($5(n6, o8, a7));
|
|
235132
237221
|
} catch (p6) {
|
|
235133
237222
|
return T4(p6);
|
|
235134
237223
|
}
|
|
@@ -235480,7 +237569,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
235480
237569
|
a7 = at2(n6, Symbol.iterator);
|
|
235481
237570
|
if (a7 === undefined)
|
|
235482
237571
|
throw new TypeError("The object is not iterable");
|
|
235483
|
-
const p6 = $
|
|
237572
|
+
const p6 = $5(a7, n6, []);
|
|
235484
237573
|
if (!b4(p6))
|
|
235485
237574
|
throw new TypeError("The iterator method must return an object");
|
|
235486
237575
|
const g6 = p6.next;
|
|
@@ -235488,7 +237577,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
235488
237577
|
}
|
|
235489
237578
|
u6(Lr2, "GetIterator");
|
|
235490
237579
|
function Gn(n6) {
|
|
235491
|
-
const o8 = $
|
|
237580
|
+
const o8 = $5(n6.nextMethod, n6.iterator, []);
|
|
235492
237581
|
if (!b4(o8))
|
|
235493
237582
|
throw new TypeError("The iterator.next() method must return an object");
|
|
235494
237583
|
return o8;
|
|
@@ -236129,7 +238218,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
236129
238218
|
}
|
|
236130
238219
|
u6(go, "convertUnderlyingSinkCloseCallback");
|
|
236131
238220
|
function _o(n6, o8, a7) {
|
|
236132
|
-
return X4(n6, a7), (p6) => $
|
|
238221
|
+
return X4(n6, a7), (p6) => $5(n6, o8, [p6]);
|
|
236133
238222
|
}
|
|
236134
238223
|
u6(_o, "convertUnderlyingSinkStartCallback");
|
|
236135
238224
|
function So(n6, o8, a7) {
|
|
@@ -237069,7 +239158,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237069
239158
|
return W4(undefined);
|
|
237070
239159
|
let P4;
|
|
237071
239160
|
try {
|
|
237072
|
-
P4 = $
|
|
239161
|
+
P4 = $5(q5, C4, [S4]);
|
|
237073
239162
|
} catch (O6) {
|
|
237074
239163
|
return T4(O6);
|
|
237075
239164
|
}
|
|
@@ -237129,7 +239218,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237129
239218
|
}
|
|
237130
239219
|
u6(li, "convertUnderlyingSourcePullCallback");
|
|
237131
239220
|
function fi(n6, o8, a7) {
|
|
237132
|
-
return X4(n6, a7), (p6) => $
|
|
239221
|
+
return X4(n6, a7), (p6) => $5(n6, o8, [p6]);
|
|
237133
239222
|
}
|
|
237134
239223
|
u6(fi, "convertUnderlyingSourceStartCallback");
|
|
237135
239224
|
function ci(n6, o8) {
|
|
@@ -237380,7 +239469,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237380
239469
|
}
|
|
237381
239470
|
u6(mi, "convertTransformerFlushCallback");
|
|
237382
239471
|
function yi(n6, o8, a7) {
|
|
237383
|
-
return X4(n6, a7), (p6) => $
|
|
239472
|
+
return X4(n6, a7), (p6) => $5(n6, o8, [p6]);
|
|
237384
239473
|
}
|
|
237385
239474
|
u6(yi, "convertTransformerStartCallback");
|
|
237386
239475
|
function gi(n6, o8, a7) {
|
|
@@ -237804,7 +239893,7 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237804
239893
|
var f6 = u6((c3, l3, d6) => (c3 += "", /^(Blob|File)$/.test(l3 && l3[t$12]) ? [(d6 = d6 !== undefined ? d6 + "" : l3[t$12] == "File" ? l3.name : "blob", c3), l3.name !== d6 || l3[t$12] == "blob" ? new File2([l3], d6, l3) : l3] : [c3, l3 + ""]), "f");
|
|
237805
239894
|
var e$12 = u6((c3, l3) => (l3 ? c3 : c3.replace(/\r?\n|\r/g, `\r
|
|
237806
239895
|
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1");
|
|
237807
|
-
var
|
|
239896
|
+
var x6 = u6((c3, l3, d6) => {
|
|
237808
239897
|
if (l3.length < d6)
|
|
237809
239898
|
throw new TypeError(`Failed to execute '${c3}' on 'FormData': ${d6} arguments required, but only ${l3.length} present.`);
|
|
237810
239899
|
}, "x");
|
|
@@ -237827,31 +239916,31 @@ var require_node3 = __commonJS((exports) => {
|
|
|
237827
239916
|
return l3 && typeof l3 == "object" && l3[t$12] === "FormData" && !m6.some((d6) => typeof l3[d6] != "function");
|
|
237828
239917
|
}
|
|
237829
239918
|
append(...l3) {
|
|
237830
|
-
|
|
239919
|
+
x6("append", arguments, 2), this.#e.push(f6(...l3));
|
|
237831
239920
|
}
|
|
237832
239921
|
delete(l3) {
|
|
237833
|
-
|
|
239922
|
+
x6("delete", arguments, 1), l3 += "", this.#e = this.#e.filter(([d6]) => d6 !== l3);
|
|
237834
239923
|
}
|
|
237835
239924
|
get(l3) {
|
|
237836
|
-
|
|
239925
|
+
x6("get", arguments, 1), l3 += "";
|
|
237837
239926
|
for (var d6 = this.#e, y4 = d6.length, b4 = 0;b4 < y4; b4++)
|
|
237838
239927
|
if (d6[b4][0] === l3)
|
|
237839
239928
|
return d6[b4][1];
|
|
237840
239929
|
return null;
|
|
237841
239930
|
}
|
|
237842
239931
|
getAll(l3, d6) {
|
|
237843
|
-
return
|
|
239932
|
+
return x6("getAll", arguments, 1), d6 = [], l3 += "", this.#e.forEach((y4) => y4[0] === l3 && d6.push(y4[1])), d6;
|
|
237844
239933
|
}
|
|
237845
239934
|
has(l3) {
|
|
237846
|
-
return
|
|
239935
|
+
return x6("has", arguments, 1), l3 += "", this.#e.some((d6) => d6[0] === l3);
|
|
237847
239936
|
}
|
|
237848
239937
|
forEach(l3, d6) {
|
|
237849
|
-
|
|
239938
|
+
x6("forEach", arguments, 1);
|
|
237850
239939
|
for (var [y4, b4] of this)
|
|
237851
239940
|
l3.call(d6, b4, y4, this);
|
|
237852
239941
|
}
|
|
237853
239942
|
set(...l3) {
|
|
237854
|
-
|
|
239943
|
+
x6("set", arguments, 2);
|
|
237855
239944
|
var d6 = [], y4 = true;
|
|
237856
239945
|
l3 = f6(...l3), this.#e.forEach((b4) => {
|
|
237857
239946
|
b4[0] === l3[0] ? y4 && (y4 = !d6.push(l3)) : d6.push(b4);
|
|
@@ -238452,13 +240541,13 @@ Content-Type: ${R5.type || "application/octet-stream"}\r
|
|
|
238452
240541
|
T4.setTimeout(0);
|
|
238453
240542
|
const Z4 = fromRawHeaders(E6.rawHeaders);
|
|
238454
240543
|
if (isRedirect(E6.statusCode)) {
|
|
238455
|
-
const $
|
|
240544
|
+
const $5 = Z4.get("Location");
|
|
238456
240545
|
let N6 = null;
|
|
238457
240546
|
try {
|
|
238458
|
-
N6 = $
|
|
240547
|
+
N6 = $5 === null ? null : new URL($5, b4.url);
|
|
238459
240548
|
} catch {
|
|
238460
240549
|
if (b4.redirect !== "manual") {
|
|
238461
|
-
y4(new FetchError(`uri requested responds with an invalid redirect URL: ${$
|
|
240550
|
+
y4(new FetchError(`uri requested responds with an invalid redirect URL: ${$5}`, "invalid-redirect")), D3();
|
|
238462
240551
|
return;
|
|
238463
240552
|
}
|
|
238464
240553
|
}
|
|
@@ -238495,8 +240584,8 @@ Content-Type: ${R5.type || "application/octet-stream"}\r
|
|
|
238495
240584
|
F3 && E6.once("end", () => {
|
|
238496
240585
|
F3.removeEventListener("abort", W4);
|
|
238497
240586
|
});
|
|
238498
|
-
let M5 = Stream3.pipeline(E6, new Stream3.PassThrough, ($
|
|
238499
|
-
$
|
|
240587
|
+
let M5 = Stream3.pipeline(E6, new Stream3.PassThrough, ($5) => {
|
|
240588
|
+
$5 && y4($5);
|
|
238500
240589
|
});
|
|
238501
240590
|
process.version < "v12.10" && E6.on("aborted", W4);
|
|
238502
240591
|
const U4 = { url: b4.url, status: E6.statusCode, statusText: E6.statusMessage, headers: Z4, size: b4.size, counter: b4.counter, highWaterMark: b4.highWaterMark }, K4 = Z4.get("Content-Encoding");
|
|
@@ -238506,29 +240595,29 @@ Content-Type: ${R5.type || "application/octet-stream"}\r
|
|
|
238506
240595
|
}
|
|
238507
240596
|
const se4 = { flush: zlib__default.Z_SYNC_FLUSH, finishFlush: zlib__default.Z_SYNC_FLUSH };
|
|
238508
240597
|
if (K4 === "gzip" || K4 === "x-gzip") {
|
|
238509
|
-
M5 = Stream3.pipeline(M5, zlib__default.createGunzip(se4), ($
|
|
238510
|
-
$
|
|
240598
|
+
M5 = Stream3.pipeline(M5, zlib__default.createGunzip(se4), ($5) => {
|
|
240599
|
+
$5 && y4($5);
|
|
238511
240600
|
}), B4 = new Response(M5, U4), d6(B4);
|
|
238512
240601
|
return;
|
|
238513
240602
|
}
|
|
238514
240603
|
if (K4 === "deflate" || K4 === "x-deflate") {
|
|
238515
|
-
const $
|
|
240604
|
+
const $5 = Stream3.pipeline(E6, new Stream3.PassThrough, (N6) => {
|
|
238516
240605
|
N6 && y4(N6);
|
|
238517
240606
|
});
|
|
238518
|
-
$
|
|
240607
|
+
$5.once("data", (N6) => {
|
|
238519
240608
|
(N6[0] & 15) === 8 ? M5 = Stream3.pipeline(M5, zlib__default.createInflate(), (V5) => {
|
|
238520
240609
|
V5 && y4(V5);
|
|
238521
240610
|
}) : M5 = Stream3.pipeline(M5, zlib__default.createInflateRaw(), (V5) => {
|
|
238522
240611
|
V5 && y4(V5);
|
|
238523
240612
|
}), B4 = new Response(M5, U4), d6(B4);
|
|
238524
|
-
}), $
|
|
240613
|
+
}), $5.once("end", () => {
|
|
238525
240614
|
B4 || (B4 = new Response(M5, U4), d6(B4));
|
|
238526
240615
|
});
|
|
238527
240616
|
return;
|
|
238528
240617
|
}
|
|
238529
240618
|
if (K4 === "br") {
|
|
238530
|
-
M5 = Stream3.pipeline(M5, zlib__default.createBrotliDecompress(), ($
|
|
238531
|
-
$
|
|
240619
|
+
M5 = Stream3.pipeline(M5, zlib__default.createBrotliDecompress(), ($5) => {
|
|
240620
|
+
$5 && y4($5);
|
|
238532
240621
|
}), B4 = new Response(M5, U4), d6(B4);
|
|
238533
240622
|
return;
|
|
238534
240623
|
}
|
|
@@ -239575,10 +241664,10 @@ var require_proxy = __commonJS((exports) => {
|
|
|
239575
241664
|
return L4 && typeof L4 == "object" && typeof L4.append == "function" && typeof L4.delete == "function" && typeof L4.get == "function" && typeof L4.getAll == "function" && typeof L4.has == "function" && typeof L4.set == "function" && L4[Symbol.toStringTag] === "FormData";
|
|
239576
241665
|
}
|
|
239577
241666
|
e10(nA, "isFormDataLike");
|
|
239578
|
-
function $
|
|
241667
|
+
function $5(L4, AA) {
|
|
239579
241668
|
return "addEventListener" in L4 ? (L4.addEventListener("abort", AA, { once: true }), () => L4.removeEventListener("abort", AA)) : (L4.addListener("abort", AA), () => L4.removeListener("abort", AA));
|
|
239580
241669
|
}
|
|
239581
|
-
e10($
|
|
241670
|
+
e10($5, "addAbortListener");
|
|
239582
241671
|
const sA = typeof String.prototype.toWellFormed == "function", BA = typeof String.prototype.isWellFormed == "function";
|
|
239583
241672
|
function dA(L4) {
|
|
239584
241673
|
return sA ? `${L4}`.toWellFormed() : u6.toUSVString(L4);
|
|
@@ -239655,7 +241744,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
239655
241744
|
const ZA = Object.create(null);
|
|
239656
241745
|
ZA.enumerable = true;
|
|
239657
241746
|
const PA = { delete: "DELETE", DELETE: "DELETE", get: "GET", GET: "GET", head: "HEAD", HEAD: "HEAD", options: "OPTIONS", OPTIONS: "OPTIONS", post: "POST", POST: "POST", put: "PUT", PUT: "PUT" }, oA = { ...PA, patch: "patch", PATCH: "PATCH" };
|
|
239658
|
-
return Object.setPrototypeOf(PA, null), Object.setPrototypeOf(oA, null), util$7 = { kEnumerableProperty: ZA, nop: J4, isDisturbed: UA, isErrored: QA, isReadable: eA, toUSVString: dA, isUSVString: CA, isBlobLike: H4, parseOrigin: F3, parseURL: i6, getServerName: D3, isStream: V5, isIterable: q5, isAsyncIterable: W4, isDestroyed: P4, headerNameToString: fA, bufferToLowerCasedHeaderName: uA, addListener: GA, removeAllListeners: NA, errorRequest: KA, parseRawHeaders: RA, parseHeaders: pA, parseKeepAliveTimeout: EA, destroy: Z4, bodyLength: O6, deepClone: S4, ReadableStreamFrom: YA, isBuffer: DA, validateHandler: TA, getSocketInfo: lA, isFormDataLike: nA, buildURL: h7, addAbortListener: $
|
|
241747
|
+
return Object.setPrototypeOf(PA, null), Object.setPrototypeOf(oA, null), util$7 = { kEnumerableProperty: ZA, nop: J4, isDisturbed: UA, isErrored: QA, isReadable: eA, toUSVString: dA, isUSVString: CA, isBlobLike: H4, parseOrigin: F3, parseURL: i6, getServerName: D3, isStream: V5, isIterable: q5, isAsyncIterable: W4, isDestroyed: P4, headerNameToString: fA, bufferToLowerCasedHeaderName: uA, addListener: GA, removeAllListeners: NA, errorRequest: KA, parseRawHeaders: RA, parseHeaders: pA, parseKeepAliveTimeout: EA, destroy: Z4, bodyLength: O6, deepClone: S4, ReadableStreamFrom: YA, isBuffer: DA, validateHandler: TA, getSocketInfo: lA, isFormDataLike: nA, buildURL: h7, addAbortListener: $5, isValidHTTPToken: xA, isValidHeaderValue: WA, isTokenCharCode: mA, parseRangeHeader: LA, normalizedMethodRecordsBase: PA, normalizedMethodRecords: oA, isValidPort: I5, isHttpOrHttpsPrefixed: k5, nodeMajor: d6, nodeMinor: N6, safeHTTPMethods: ["GET", "HEAD", "OPTIONS", "TRACE"], wrapRequestBody: Y4 }, util$7;
|
|
239659
241748
|
}
|
|
239660
241749
|
e10(requireUtil$7, "requireUtil$7");
|
|
239661
241750
|
var diagnostics;
|
|
@@ -240989,7 +243078,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
240989
243078
|
const T4 = YA(j3);
|
|
240990
243079
|
if (T4 === "no metadata" || T4.length === 0)
|
|
240991
243080
|
return true;
|
|
240992
|
-
const X4 = nA(T4), K4 = $
|
|
243081
|
+
const X4 = nA(T4), K4 = $5(T4, X4);
|
|
240993
243082
|
for (const _5 of K4) {
|
|
240994
243083
|
const { algo: gA, hash: tA } = _5;
|
|
240995
243084
|
let hA = J4.createHash(gA).update(G4).digest("base64");
|
|
@@ -241032,7 +243121,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
241032
243121
|
return j3;
|
|
241033
243122
|
}
|
|
241034
243123
|
e10(nA, "getStrongestMetadata");
|
|
241035
|
-
function $
|
|
243124
|
+
function $5(G4, j3) {
|
|
241036
243125
|
if (G4.length === 1)
|
|
241037
243126
|
return G4;
|
|
241038
243127
|
let T4 = 0;
|
|
@@ -241040,7 +243129,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
241040
243129
|
G4[X4].algo === j3 && (G4[T4++] = G4[X4]);
|
|
241041
243130
|
return G4.length = T4, G4;
|
|
241042
243131
|
}
|
|
241043
|
-
e10($
|
|
243132
|
+
e10($5, "filterMetadataListByAlgorithm");
|
|
241044
243133
|
function sA(G4, j3) {
|
|
241045
243134
|
if (G4.length !== j3.length)
|
|
241046
243135
|
return false;
|
|
@@ -241658,8 +243747,8 @@ Content-Type: ${BA.type || "application/octet-stream"}\r
|
|
|
241658
243747
|
`);
|
|
241659
243748
|
lA.push(dA, BA, YA), typeof BA.size == "number" ? pA += dA.byteLength + BA.size + YA.byteLength : nA = true;
|
|
241660
243749
|
}
|
|
241661
|
-
const $
|
|
241662
|
-
lA.push($
|
|
243750
|
+
const $5 = V5.encode(`--${TA}--`);
|
|
243751
|
+
lA.push($5), pA += $5.byteLength, nA && (pA = null), uA = Z4, fA = e10(async function* () {
|
|
241663
243752
|
for (const sA of lA)
|
|
241664
243753
|
sA.stream ? yield* sA.stream() : yield sA;
|
|
241665
243754
|
}, "action"), RA = `multipart/form-data; boundary=${TA}`;
|
|
@@ -241786,7 +243875,7 @@ Content-Type: ${BA.type || "application/octet-stream"}\r
|
|
|
241786
243875
|
if (hasRequiredClientH1)
|
|
241787
243876
|
return clientH1;
|
|
241788
243877
|
hasRequiredClientH1 = 1;
|
|
241789
|
-
const A5 = require$$0__default, p6 = requireUtil$7(), { channels: c3 } = requireDiagnostics(), E6 = requireTimers(), { RequestContentLengthMismatchError: t8, ResponseContentLengthMismatchError: B4, RequestAbortedError: f6, HeadersTimeoutError: l3, HeadersOverflowError: Q4, SocketError: u6, InformationalError: n6, BodyTimeoutError: r6, HTTPParserError: o8, ResponseExceededMaxSizeError: a7 } = requireErrors(), { kUrl: g6, kReset: d6, kClient: N6, kParser: M5, kBlocking: Y4, kRunning: J4, kPending: V5, kSize: H4, kWriting: h7, kQueue: I5, kNoRef: k5, kKeepAliveDefaultTimeout: i6, kHostHeader: F3, kPendingIdx: m6, kRunningIdx: D3, kError: S4, kPipelining: W4, kSocket: q5, kKeepAliveTimeoutValue: O6, kMaxHeadersSize: P4, kKeepAliveMaxTimeout: Z4, kKeepAliveTimeoutThreshold: cA, kHeadersTimeout: EA, kBodyTimeout: fA, kStrictContentLength: uA, kMaxRequests: pA, kCounter: RA, kMaxResponseSize: DA, kOnError: TA, kResume: UA, kHTTPContext: QA } = requireSymbols$4(), eA = requireConstants$3(), lA = Buffer.alloc(0), YA = Buffer[Symbol.species], nA = p6.addListener, $
|
|
243878
|
+
const A5 = require$$0__default, p6 = requireUtil$7(), { channels: c3 } = requireDiagnostics(), E6 = requireTimers(), { RequestContentLengthMismatchError: t8, ResponseContentLengthMismatchError: B4, RequestAbortedError: f6, HeadersTimeoutError: l3, HeadersOverflowError: Q4, SocketError: u6, InformationalError: n6, BodyTimeoutError: r6, HTTPParserError: o8, ResponseExceededMaxSizeError: a7 } = requireErrors(), { kUrl: g6, kReset: d6, kClient: N6, kParser: M5, kBlocking: Y4, kRunning: J4, kPending: V5, kSize: H4, kWriting: h7, kQueue: I5, kNoRef: k5, kKeepAliveDefaultTimeout: i6, kHostHeader: F3, kPendingIdx: m6, kRunningIdx: D3, kError: S4, kPipelining: W4, kSocket: q5, kKeepAliveTimeoutValue: O6, kMaxHeadersSize: P4, kKeepAliveMaxTimeout: Z4, kKeepAliveTimeoutThreshold: cA, kHeadersTimeout: EA, kBodyTimeout: fA, kStrictContentLength: uA, kMaxRequests: pA, kCounter: RA, kMaxResponseSize: DA, kOnError: TA, kResume: UA, kHTTPContext: QA } = requireSymbols$4(), eA = requireConstants$3(), lA = Buffer.alloc(0), YA = Buffer[Symbol.species], nA = p6.addListener, $5 = p6.removeAllListeners;
|
|
241790
243879
|
let sA;
|
|
241791
243880
|
async function BA() {
|
|
241792
243881
|
const kA = process.env.JEST_WORKER_ID ? requireLlhttpWasm() : undefined;
|
|
@@ -241909,7 +243998,7 @@ Content-Type: ${BA.type || "application/octet-stream"}\r
|
|
|
241909
243998
|
const { upgrade: iA, client: rA, socket: aA, headers: yA, statusCode: SA } = this;
|
|
241910
243999
|
A5(iA), A5(rA[q5] === aA), A5(!aA.destroyed), A5(!this.paused), A5((yA.length & 1) === 0);
|
|
241911
244000
|
const vA = rA[I5][rA[D3]];
|
|
241912
|
-
A5(vA), A5(vA.upgrade || vA.method === "CONNECT"), this.statusCode = null, this.statusText = "", this.shouldKeepAlive = null, this.headers = [], this.headersSize = 0, aA.unshift(z5), aA[M5].destroy(), aA[M5] = null, aA[N6] = null, aA[S4] = null, $
|
|
244001
|
+
A5(vA), A5(vA.upgrade || vA.method === "CONNECT"), this.statusCode = null, this.statusText = "", this.shouldKeepAlive = null, this.headers = [], this.headersSize = 0, aA.unshift(z5), aA[M5].destroy(), aA[M5] = null, aA[N6] = null, aA[S4] = null, $5(aA), rA[q5] = null, rA[QA] = null, rA[I5][rA[D3]++] = null, rA.emit("disconnect", rA[g6], [rA], new n6("upgrade"));
|
|
241913
244002
|
try {
|
|
241914
244003
|
vA.onUpgrade(SA, yA, aA);
|
|
241915
244004
|
} catch (G4) {
|
|
@@ -242265,20 +244354,20 @@ ${j3.toString(16)}\r
|
|
|
242265
244354
|
}
|
|
242266
244355
|
const { constants: { HTTP2_HEADER_AUTHORITY: D3, HTTP2_HEADER_METHOD: S4, HTTP2_HEADER_PATH: W4, HTTP2_HEADER_SCHEME: q5, HTTP2_HEADER_CONTENT_LENGTH: O6, HTTP2_HEADER_EXPECT: P4, HTTP2_HEADER_STATUS: Z4 } } = m6;
|
|
242267
244356
|
function cA(nA) {
|
|
242268
|
-
const $
|
|
244357
|
+
const $5 = [];
|
|
242269
244358
|
for (const [sA, BA] of Object.entries(nA))
|
|
242270
244359
|
if (Array.isArray(BA))
|
|
242271
244360
|
for (const dA of BA)
|
|
242272
|
-
$
|
|
244361
|
+
$5.push(Buffer.from(sA), Buffer.from(dA));
|
|
242273
244362
|
else
|
|
242274
|
-
$
|
|
242275
|
-
return $
|
|
244363
|
+
$5.push(Buffer.from(sA), Buffer.from(BA));
|
|
244364
|
+
return $5;
|
|
242276
244365
|
}
|
|
242277
244366
|
e10(cA, "parseH2Headers");
|
|
242278
|
-
async function EA(nA, $
|
|
242279
|
-
nA[N6] = $
|
|
242280
|
-
const sA = m6.connect(nA[l3], { createConnection: e10(() => $
|
|
242281
|
-
sA[k5] = 0, sA[u6] = nA, sA[N6] = $
|
|
244367
|
+
async function EA(nA, $5) {
|
|
244368
|
+
nA[N6] = $5, F3 || (F3 = true, process.emitWarning("H2 support is experimental, expect them to change at any time.", { code: "UNDICI-H2" }));
|
|
244369
|
+
const sA = m6.connect(nA[l3], { createConnection: e10(() => $5, "createConnection"), peerMaxConcurrentStreams: nA[J4] });
|
|
244370
|
+
sA[k5] = 0, sA[u6] = nA, sA[N6] = $5, c3.addListener(sA, "error", uA), c3.addListener(sA, "frameError", pA), c3.addListener(sA, "end", RA), c3.addListener(sA, "goaway", DA), c3.addListener(sA, "close", function() {
|
|
242282
244371
|
const { [u6]: dA } = this, { [N6]: CA } = dA, mA = this[N6][d6] || this[d6] || new B4("closed", c3.getSocketInfo(CA));
|
|
242283
244372
|
if (dA[V5] = null, dA.destroyed) {
|
|
242284
244373
|
A5(dA[r6] === 0);
|
|
@@ -242288,42 +244377,42 @@ ${j3.toString(16)}\r
|
|
|
242288
244377
|
c3.errorRequest(dA, WA, mA);
|
|
242289
244378
|
}
|
|
242290
244379
|
}
|
|
242291
|
-
}), sA.unref(), nA[V5] = sA, $
|
|
244380
|
+
}), sA.unref(), nA[V5] = sA, $5[V5] = sA, c3.addListener($5, "error", function(dA) {
|
|
242292
244381
|
A5(dA.code !== "ERR_TLS_CERT_ALTNAME_INVALID"), this[d6] = dA, this[u6][Y4](dA);
|
|
242293
|
-
}), c3.addListener($
|
|
244382
|
+
}), c3.addListener($5, "end", function() {
|
|
242294
244383
|
c3.destroy(this, new B4("other side closed", c3.getSocketInfo(this)));
|
|
242295
|
-
}), c3.addListener($
|
|
244384
|
+
}), c3.addListener($5, "close", function() {
|
|
242296
244385
|
const dA = this[d6] || new B4("closed", c3.getSocketInfo(this));
|
|
242297
244386
|
nA[N6] = null, this[V5] != null && this[V5].destroy(dA), nA[a7] = nA[g6], A5(nA[n6] === 0), nA.emit("disconnect", nA[l3], [nA], dA), nA[H4]();
|
|
242298
244387
|
});
|
|
242299
244388
|
let BA = false;
|
|
242300
|
-
return $
|
|
244389
|
+
return $5.on("close", () => {
|
|
242301
244390
|
BA = true;
|
|
242302
244391
|
}), { version: "h2", defaultPipelining: 1 / 0, write(...dA) {
|
|
242303
244392
|
return UA(nA, ...dA);
|
|
242304
244393
|
}, resume() {
|
|
242305
244394
|
fA(nA);
|
|
242306
244395
|
}, destroy(dA, CA) {
|
|
242307
|
-
BA ? queueMicrotask(CA) : $
|
|
244396
|
+
BA ? queueMicrotask(CA) : $5.destroy(dA).on("close", CA);
|
|
242308
244397
|
}, get destroyed() {
|
|
242309
|
-
return $
|
|
244398
|
+
return $5.destroyed;
|
|
242310
244399
|
}, busy() {
|
|
242311
244400
|
return false;
|
|
242312
244401
|
} };
|
|
242313
244402
|
}
|
|
242314
244403
|
e10(EA, "connectH2");
|
|
242315
244404
|
function fA(nA) {
|
|
242316
|
-
const $
|
|
242317
|
-
$
|
|
244405
|
+
const $5 = nA[N6];
|
|
244406
|
+
$5?.destroyed === false && (nA[h7] === 0 && nA[J4] === 0 ? ($5.unref(), nA[V5].unref()) : ($5.ref(), nA[V5].ref()));
|
|
242318
244407
|
}
|
|
242319
244408
|
e10(fA, "resumeH2");
|
|
242320
244409
|
function uA(nA) {
|
|
242321
244410
|
A5(nA.code !== "ERR_TLS_CERT_ALTNAME_INVALID"), this[N6][d6] = nA, this[u6][Y4](nA);
|
|
242322
244411
|
}
|
|
242323
244412
|
e10(uA, "onHttp2SessionError");
|
|
242324
|
-
function pA(nA, $
|
|
244413
|
+
function pA(nA, $5, sA) {
|
|
242325
244414
|
if (sA === 0) {
|
|
242326
|
-
const BA = new f6(`HTTP/2: "frameError" received - type ${nA}, code ${$
|
|
244415
|
+
const BA = new f6(`HTTP/2: "frameError" received - type ${nA}, code ${$5}`);
|
|
242327
244416
|
this[N6][d6] = BA, this[u6][Y4](BA);
|
|
242328
244417
|
}
|
|
242329
244418
|
}
|
|
@@ -242334,23 +244423,23 @@ ${j3.toString(16)}\r
|
|
|
242334
244423
|
}
|
|
242335
244424
|
e10(RA, "onHttp2SessionEnd");
|
|
242336
244425
|
function DA(nA) {
|
|
242337
|
-
const $
|
|
242338
|
-
if (sA[N6] = null, sA[I5] = null, this[V5] != null && (this[V5].destroy($
|
|
244426
|
+
const $5 = this[d6] || new B4(`HTTP/2: "GOAWAY" frame received with code ${nA}`, c3.getSocketInfo(this)), sA = this[u6];
|
|
244427
|
+
if (sA[N6] = null, sA[I5] = null, this[V5] != null && (this[V5].destroy($5), this[V5] = null), c3.destroy(this[N6], $5), sA[g6] < sA[o8].length) {
|
|
242339
244428
|
const BA = sA[o8][sA[g6]];
|
|
242340
|
-
sA[o8][sA[g6]++] = null, c3.errorRequest(sA, BA, $
|
|
244429
|
+
sA[o8][sA[g6]++] = null, c3.errorRequest(sA, BA, $5), sA[a7] = sA[g6];
|
|
242341
244430
|
}
|
|
242342
|
-
A5(sA[n6] === 0), sA.emit("disconnect", sA[l3], [sA], $
|
|
244431
|
+
A5(sA[n6] === 0), sA.emit("disconnect", sA[l3], [sA], $5), sA[H4]();
|
|
242343
244432
|
}
|
|
242344
244433
|
e10(DA, "onHTTP2GoAway");
|
|
242345
244434
|
function TA(nA) {
|
|
242346
244435
|
return nA !== "GET" && nA !== "HEAD" && nA !== "OPTIONS" && nA !== "TRACE" && nA !== "CONNECT";
|
|
242347
244436
|
}
|
|
242348
244437
|
e10(TA, "shouldSendContentLength");
|
|
242349
|
-
function UA(nA, $
|
|
242350
|
-
const sA = nA[V5], { method: BA, path: dA, host: CA, upgrade: mA, expectContinue: xA, signal: bA, headers: WA } = $
|
|
242351
|
-
let { body: LA } = $
|
|
244438
|
+
function UA(nA, $5) {
|
|
244439
|
+
const sA = nA[V5], { method: BA, path: dA, host: CA, upgrade: mA, expectContinue: xA, signal: bA, headers: WA } = $5;
|
|
244440
|
+
let { body: LA } = $5;
|
|
242352
244441
|
if (mA)
|
|
242353
|
-
return c3.errorRequest(nA, $
|
|
244442
|
+
return c3.errorRequest(nA, $5, new Error("Upgrade not supported for H2")), false;
|
|
242354
244443
|
const GA = {};
|
|
242355
244444
|
for (let wA = 0;wA < WA.length; wA += 2) {
|
|
242356
244445
|
const FA = WA[wA + 0], MA = WA[wA + 1];
|
|
@@ -242364,18 +244453,18 @@ ${j3.toString(16)}\r
|
|
|
242364
244453
|
const { hostname: KA, port: ZA } = nA[l3];
|
|
242365
244454
|
GA[D3] = CA || `${KA}${ZA ? `:${ZA}` : ""}`, GA[S4] = BA;
|
|
242366
244455
|
const PA = e10((wA) => {
|
|
242367
|
-
$
|
|
244456
|
+
$5.aborted || $5.completed || (wA = wA || new t8, c3.errorRequest(nA, $5, wA), NA != null && c3.destroy(NA, wA), c3.destroy(LA, wA), nA[o8][nA[g6]++] = null, nA[H4]());
|
|
242368
244457
|
}, "abort");
|
|
242369
244458
|
try {
|
|
242370
|
-
$
|
|
244459
|
+
$5.onConnect(PA);
|
|
242371
244460
|
} catch (wA) {
|
|
242372
|
-
c3.errorRequest(nA, $
|
|
244461
|
+
c3.errorRequest(nA, $5, wA);
|
|
242373
244462
|
}
|
|
242374
|
-
if ($
|
|
244463
|
+
if ($5.aborted)
|
|
242375
244464
|
return false;
|
|
242376
244465
|
if (BA === "CONNECT")
|
|
242377
|
-
return sA.ref(), NA = sA.request(GA, { endStream: false, signal: bA }), NA.id && !NA.pending ? ($
|
|
242378
|
-
$
|
|
244466
|
+
return sA.ref(), NA = sA.request(GA, { endStream: false, signal: bA }), NA.id && !NA.pending ? ($5.onUpgrade(null, null, NA), ++sA[k5], nA[o8][nA[g6]++] = null) : NA.once("ready", () => {
|
|
244467
|
+
$5.onUpgrade(null, null, NA), ++sA[k5], nA[o8][nA[g6]++] = null;
|
|
242379
244468
|
}), NA.once("close", () => {
|
|
242380
244469
|
sA[k5] -= 1, sA[k5] === 0 && sA.unref();
|
|
242381
244470
|
}), true;
|
|
@@ -242388,25 +244477,25 @@ ${j3.toString(16)}\r
|
|
|
242388
244477
|
const [wA, FA] = i6(LA);
|
|
242389
244478
|
GA["content-type"] = FA, LA = wA.stream, L4 = wA.length;
|
|
242390
244479
|
}
|
|
242391
|
-
if (L4 == null && (L4 = $
|
|
244480
|
+
if (L4 == null && (L4 = $5.contentLength), (L4 === 0 || !oA) && (L4 = null), TA(BA) && L4 > 0 && $5.contentLength != null && $5.contentLength !== L4) {
|
|
242392
244481
|
if (nA[M5])
|
|
242393
|
-
return c3.errorRequest(nA, $
|
|
244482
|
+
return c3.errorRequest(nA, $5, new E6), false;
|
|
242394
244483
|
process.emitWarning(new E6);
|
|
242395
244484
|
}
|
|
242396
244485
|
L4 != null && (A5(LA, "no body must not have content length"), GA[O6] = `${L4}`), sA.ref();
|
|
242397
244486
|
const AA = BA === "GET" || BA === "HEAD" || LA === null;
|
|
242398
244487
|
return xA ? (GA[P4] = "100-continue", NA = sA.request(GA, { endStream: AA, signal: bA }), NA.once("continue", IA)) : (NA = sA.request(GA, { endStream: AA, signal: bA }), IA()), ++sA[k5], NA.once("response", (wA) => {
|
|
242399
244488
|
const { [Z4]: FA, ...MA } = wA;
|
|
242400
|
-
if ($
|
|
244489
|
+
if ($5.onResponseStarted(), $5.aborted) {
|
|
242401
244490
|
const OA = new t8;
|
|
242402
|
-
c3.errorRequest(nA, $
|
|
244491
|
+
c3.errorRequest(nA, $5, OA), c3.destroy(NA, OA);
|
|
242403
244492
|
return;
|
|
242404
244493
|
}
|
|
242405
|
-
$
|
|
242406
|
-
$
|
|
244494
|
+
$5.onHeaders(Number(FA), cA(MA), NA.resume.bind(NA), "") === false && NA.pause(), NA.on("data", (OA) => {
|
|
244495
|
+
$5.onData(OA) === false && NA.pause();
|
|
242407
244496
|
});
|
|
242408
244497
|
}), NA.once("end", () => {
|
|
242409
|
-
(NA.state?.state == null || NA.state.state < 6) && $
|
|
244498
|
+
(NA.state?.state == null || NA.state.state < 6) && $5.onComplete([]), sA[k5] === 0 && sA.unref(), PA(new f6("HTTP/2: stream half-closed (remote)")), nA[o8][nA[g6]++] = null, nA[a7] = nA[g6], nA[H4]();
|
|
242410
244499
|
}), NA.once("close", () => {
|
|
242411
244500
|
sA[k5] -= 1, sA[k5] === 0 && sA.unref();
|
|
242412
244501
|
}), NA.once("error", function(wA) {
|
|
@@ -242415,23 +244504,23 @@ ${j3.toString(16)}\r
|
|
|
242415
244504
|
PA(new f6(`HTTP/2: "frameError" received - type ${wA}, code ${FA}`));
|
|
242416
244505
|
}), true;
|
|
242417
244506
|
function IA() {
|
|
242418
|
-
!LA || L4 === 0 ? QA(PA, NA, null, nA, $
|
|
244507
|
+
!LA || L4 === 0 ? QA(PA, NA, null, nA, $5, nA[N6], L4, oA) : c3.isBuffer(LA) ? QA(PA, NA, LA, nA, $5, nA[N6], L4, oA) : c3.isBlobLike(LA) ? typeof LA.stream == "function" ? YA(PA, NA, LA.stream(), nA, $5, nA[N6], L4, oA) : lA(PA, NA, LA, nA, $5, nA[N6], L4, oA) : c3.isStream(LA) ? eA(PA, nA[N6], oA, NA, LA, nA, $5, L4) : c3.isIterable(LA) ? YA(PA, NA, LA, nA, $5, nA[N6], L4, oA) : A5(false);
|
|
242419
244508
|
}
|
|
242420
244509
|
e10(IA, "writeBodyH2");
|
|
242421
244510
|
}
|
|
242422
244511
|
e10(UA, "writeH2");
|
|
242423
|
-
function QA(nA, $
|
|
244512
|
+
function QA(nA, $5, sA, BA, dA, CA, mA, xA) {
|
|
242424
244513
|
try {
|
|
242425
|
-
sA != null && c3.isBuffer(sA) && (A5(mA === sA.byteLength, "buffer body must have content length"), $
|
|
244514
|
+
sA != null && c3.isBuffer(sA) && (A5(mA === sA.byteLength, "buffer body must have content length"), $5.cork(), $5.write(sA), $5.uncork(), $5.end(), dA.onBodySent(sA)), xA || (CA[Q4] = true), dA.onRequestSent(), BA[H4]();
|
|
242426
244515
|
} catch (bA) {
|
|
242427
244516
|
nA(bA);
|
|
242428
244517
|
}
|
|
242429
244518
|
}
|
|
242430
244519
|
e10(QA, "writeBuffer");
|
|
242431
|
-
function eA(nA, $
|
|
244520
|
+
function eA(nA, $5, sA, BA, dA, CA, mA, xA) {
|
|
242432
244521
|
A5(xA !== 0 || CA[n6] === 0, "stream body cannot be pipelined");
|
|
242433
244522
|
const bA = p6(dA, BA, (LA) => {
|
|
242434
|
-
LA ? (c3.destroy(bA, LA), nA(LA)) : (c3.removeAllListeners(bA), mA.onRequestSent(), sA || ($
|
|
244523
|
+
LA ? (c3.destroy(bA, LA), nA(LA)) : (c3.removeAllListeners(bA), mA.onRequestSent(), sA || ($5[Q4] = true), CA[H4]());
|
|
242435
244524
|
});
|
|
242436
244525
|
c3.addListener(bA, "data", WA);
|
|
242437
244526
|
function WA(LA) {
|
|
@@ -242440,19 +244529,19 @@ ${j3.toString(16)}\r
|
|
|
242440
244529
|
e10(WA, "onPipeData");
|
|
242441
244530
|
}
|
|
242442
244531
|
e10(eA, "writeStream");
|
|
242443
|
-
async function lA(nA, $
|
|
244532
|
+
async function lA(nA, $5, sA, BA, dA, CA, mA, xA) {
|
|
242444
244533
|
A5(mA === sA.size, "blob body must have content length");
|
|
242445
244534
|
try {
|
|
242446
244535
|
if (mA != null && mA !== sA.size)
|
|
242447
244536
|
throw new E6;
|
|
242448
244537
|
const bA = Buffer.from(await sA.arrayBuffer());
|
|
242449
|
-
$
|
|
244538
|
+
$5.cork(), $5.write(bA), $5.uncork(), $5.end(), dA.onBodySent(bA), dA.onRequestSent(), xA || (CA[Q4] = true), BA[H4]();
|
|
242450
244539
|
} catch (bA) {
|
|
242451
244540
|
nA(bA);
|
|
242452
244541
|
}
|
|
242453
244542
|
}
|
|
242454
244543
|
e10(lA, "writeBlob");
|
|
242455
|
-
async function YA(nA, $
|
|
244544
|
+
async function YA(nA, $5, sA, BA, dA, CA, mA, xA) {
|
|
242456
244545
|
A5(mA !== 0 || BA[n6] === 0, "iterator body cannot be pipelined");
|
|
242457
244546
|
let bA = null;
|
|
242458
244547
|
function WA() {
|
|
@@ -242465,19 +244554,19 @@ ${j3.toString(16)}\r
|
|
|
242465
244554
|
const LA = e10(() => new Promise((GA, NA) => {
|
|
242466
244555
|
A5(bA === null), CA[d6] ? NA(CA[d6]) : bA = GA;
|
|
242467
244556
|
}), "waitForDrain");
|
|
242468
|
-
$
|
|
244557
|
+
$5.on("close", WA).on("drain", WA);
|
|
242469
244558
|
try {
|
|
242470
244559
|
for await (const GA of sA) {
|
|
242471
244560
|
if (CA[d6])
|
|
242472
244561
|
throw CA[d6];
|
|
242473
|
-
const NA = $
|
|
244562
|
+
const NA = $5.write(GA);
|
|
242474
244563
|
dA.onBodySent(GA), NA || await LA();
|
|
242475
244564
|
}
|
|
242476
|
-
$
|
|
244565
|
+
$5.end(), dA.onRequestSent(), xA || (CA[Q4] = true), BA[H4]();
|
|
242477
244566
|
} catch (GA) {
|
|
242478
244567
|
nA(GA);
|
|
242479
244568
|
} finally {
|
|
242480
|
-
$
|
|
244569
|
+
$5.off("close", WA).off("drain", WA);
|
|
242481
244570
|
}
|
|
242482
244571
|
}
|
|
242483
244572
|
return e10(YA, "writeIterable"), clientH2 = EA, clientH2;
|
|
@@ -242606,7 +244695,7 @@ ${j3.toString(16)}\r
|
|
|
242606
244695
|
if (hasRequiredClient)
|
|
242607
244696
|
return client;
|
|
242608
244697
|
hasRequiredClient = 1;
|
|
242609
|
-
const A5 = require$$0__default, p6 = require$$0__default$1, c3 = http__default, E6 = requireUtil$7(), { channels: t8 } = requireDiagnostics(), B4 = requireRequest$1(), f6 = requireDispatcherBase(), { InvalidArgumentError: l3, InformationalError: Q4, ClientDestroyedError: u6 } = requireErrors(), n6 = requireConnect(), { kUrl: r6, kServerName: o8, kClient: a7, kBusy: g6, kConnect: d6, kResuming: N6, kRunning: M5, kPending: Y4, kSize: J4, kQueue: V5, kConnected: H4, kConnecting: h7, kNeedDrain: I5, kKeepAliveDefaultTimeout: k5, kHostHeader: i6, kPendingIdx: F3, kRunningIdx: m6, kError: D3, kPipelining: S4, kKeepAliveTimeoutValue: W4, kMaxHeadersSize: q5, kKeepAliveMaxTimeout: O6, kKeepAliveTimeoutThreshold: P4, kHeadersTimeout: Z4, kBodyTimeout: cA, kStrictContentLength: EA, kConnector: fA, kMaxRedirections: uA, kMaxRequests: pA, kCounter: RA, kClose: DA, kDestroy: TA, kDispatch: UA, kInterceptors: QA, kLocalAddress: eA, kMaxResponseSize: lA, kOnError: YA, kHTTPContext: nA, kMaxConcurrentStreams: $
|
|
244698
|
+
const A5 = require$$0__default, p6 = require$$0__default$1, c3 = http__default, E6 = requireUtil$7(), { channels: t8 } = requireDiagnostics(), B4 = requireRequest$1(), f6 = requireDispatcherBase(), { InvalidArgumentError: l3, InformationalError: Q4, ClientDestroyedError: u6 } = requireErrors(), n6 = requireConnect(), { kUrl: r6, kServerName: o8, kClient: a7, kBusy: g6, kConnect: d6, kResuming: N6, kRunning: M5, kPending: Y4, kSize: J4, kQueue: V5, kConnected: H4, kConnecting: h7, kNeedDrain: I5, kKeepAliveDefaultTimeout: k5, kHostHeader: i6, kPendingIdx: F3, kRunningIdx: m6, kError: D3, kPipelining: S4, kKeepAliveTimeoutValue: W4, kMaxHeadersSize: q5, kKeepAliveMaxTimeout: O6, kKeepAliveTimeoutThreshold: P4, kHeadersTimeout: Z4, kBodyTimeout: cA, kStrictContentLength: EA, kConnector: fA, kMaxRedirections: uA, kMaxRequests: pA, kCounter: RA, kClose: DA, kDestroy: TA, kDispatch: UA, kInterceptors: QA, kLocalAddress: eA, kMaxResponseSize: lA, kOnError: YA, kHTTPContext: nA, kMaxConcurrentStreams: $5, kResume: sA } = requireSymbols$4(), BA = requireClientH1(), dA = requireClientH2();
|
|
242610
244699
|
let CA = false;
|
|
242611
244700
|
const mA = Symbol("kClosedResolve"), xA = e10(() => {
|
|
242612
244701
|
}, "noop");
|
|
@@ -242663,7 +244752,7 @@ ${j3.toString(16)}\r
|
|
|
242663
244752
|
if (JA != null && (typeof JA != "number" || JA < 1))
|
|
242664
244753
|
throw new l3("maxConcurrentStreams must be a positive integer, greater than 0");
|
|
242665
244754
|
typeof X4 != "function" && (X4 = n6({ ...vA, maxCachedSessions: j3, allowH2: qA, socketPath: yA, timeout: OA, ...tA ? { autoSelectFamily: tA, autoSelectFamilyAttemptTimeout: hA } : undefined, ...X4 })), AA?.Client && Array.isArray(AA.Client) ? (this[QA] = AA.Client, CA || (CA = true, process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.", { code: "UNDICI-CLIENT-INTERCEPTOR-DEPRECATED" }))) : this[QA] = [LA({ maxRedirections: T4 })], this[r6] = E6.parseOrigin(L4), this[fA] = X4, this[S4] = SA ?? 1, this[q5] = IA || c3.maxHeaderSize, this[k5] = z5 ?? 4000, this[O6] = rA ?? 600000, this[P4] = aA ?? 2000, this[W4] = this[k5], this[o8] = null, this[eA] = _5 ?? null, this[N6] = 0, this[I5] = 0, this[i6] = `host: ${this[r6].hostname}${this[r6].port ? `:${this[r6].port}` : ""}\r
|
|
242666
|
-
`, this[cA] = _A ?? 300000, this[Z4] = wA ?? 300000, this[EA] = G4 ?? true, this[uA] = T4, this[pA] = K4, this[mA] = null, this[lA] = gA > -1 ? gA : -1, this[$
|
|
244755
|
+
`, this[cA] = _A ?? 300000, this[Z4] = wA ?? 300000, this[EA] = G4 ?? true, this[uA] = T4, this[pA] = K4, this[mA] = null, this[lA] = gA > -1 ? gA : -1, this[$5] = JA ?? 100, this[nA] = null, this[V5] = [], this[m6] = 0, this[F3] = 0, this[sA] = (VA) => ZA(this, VA), this[YA] = (VA) => GA(this, VA);
|
|
242667
244756
|
}
|
|
242668
244757
|
get pipelining() {
|
|
242669
244758
|
return this[S4];
|
|
@@ -244340,8 +246429,8 @@ ${j3.toString(16)}\r
|
|
|
244340
246429
|
lA.then((sA) => DA(UA, sA));
|
|
244341
246430
|
return;
|
|
244342
246431
|
}
|
|
244343
|
-
const YA = N6(lA), nA = H4(Z4), $
|
|
244344
|
-
S4.onConnect?.((sA) => S4.onError(sA), null), S4.onHeaders?.(O6, nA, TA, h7(O6)), S4.onData?.(Buffer.from(YA)), S4.onComplete?.($
|
|
246432
|
+
const YA = N6(lA), nA = H4(Z4), $5 = H4(cA);
|
|
246433
|
+
S4.onConnect?.((sA) => S4.onError(sA), null), S4.onHeaders?.(O6, nA, TA, h7(O6)), S4.onData?.(Buffer.from(YA)), S4.onComplete?.($5), J4(UA, W4);
|
|
244345
246434
|
}
|
|
244346
246435
|
e10(DA, "handleReply");
|
|
244347
246436
|
function TA() {
|
|
@@ -245238,8 +247327,8 @@ ${h7.format(I5)}
|
|
|
245238
247327
|
}
|
|
245239
247328
|
static json(eA, lA = {}) {
|
|
245240
247329
|
m6.argumentLengthCheck(arguments, 1, "Response.json"), lA !== null && (lA = m6.converters.ResponseInit(lA));
|
|
245241
|
-
const YA = P4.encode(J4(eA)), nA = f6(YA), $
|
|
245242
|
-
return TA($
|
|
247330
|
+
const YA = P4.encode(J4(eA)), nA = f6(YA), $5 = UA(EA({}), "response");
|
|
247331
|
+
return TA($5, lA, { body: nA[0], type: "application/json" }), $5;
|
|
245243
247332
|
}
|
|
245244
247333
|
static redirect(eA, lA = 302) {
|
|
245245
247334
|
m6.argumentLengthCheck(arguments, 1, "Response.redirect"), eA = m6.converters.USVString(eA), lA = m6.converters["unsigned short"](lA);
|
|
@@ -245253,8 +247342,8 @@ ${h7.format(I5)}
|
|
|
245253
247342
|
throw new RangeError(`Invalid status code ${lA}`);
|
|
245254
247343
|
const nA = UA(EA({}), "immutable");
|
|
245255
247344
|
nA[i6].status = lA;
|
|
245256
|
-
const $
|
|
245257
|
-
return nA[i6].headersList.append("location", $
|
|
247345
|
+
const $5 = H4(S4(YA));
|
|
247346
|
+
return nA[i6].headersList.append("location", $5, true), nA;
|
|
245258
247347
|
}
|
|
245259
247348
|
constructor(eA = null, lA = {}) {
|
|
245260
247349
|
if (m6.util.markAsUncloneable(this), eA === W4)
|
|
@@ -245262,8 +247351,8 @@ ${h7.format(I5)}
|
|
|
245262
247351
|
eA !== null && (eA = m6.converters.BodyInit(eA)), lA = m6.converters.ResponseInit(lA), this[i6] = EA({}), this[F3] = new A5(W4), t8(this[F3], "response"), B4(this[F3], this[i6].headersList);
|
|
245263
247352
|
let YA = null;
|
|
245264
247353
|
if (eA != null) {
|
|
245265
|
-
const [nA, $
|
|
245266
|
-
YA = { body: nA, type: $
|
|
247354
|
+
const [nA, $5] = f6(eA);
|
|
247355
|
+
YA = { body: nA, type: $5 };
|
|
245267
247356
|
}
|
|
245268
247357
|
TA(this, lA, YA);
|
|
245269
247358
|
}
|
|
@@ -245422,13 +247511,13 @@ ${h7.format(I5)}
|
|
|
245422
247511
|
if (hasRequiredRequest)
|
|
245423
247512
|
return request2;
|
|
245424
247513
|
hasRequiredRequest = 1;
|
|
245425
|
-
const { extractBody: A5, mixinBody: p6, cloneBody: c3, bodyUnusable: E6 } = requireBody(), { Headers: t8, fill: B4, HeadersList: f6, setHeadersGuard: l3, getHeadersGuard: Q4, setHeadersList: u6, getHeadersList: n6 } = requireHeaders(), { FinalizationRegistry: r6 } = requireDispatcherWeakref()(), o8 = requireUtil$7(), a7 = require$$0__default$3, { isValidHTTPToken: g6, sameOrigin: d6, environmentSettingsObject: N6 } = requireUtil$6(), { forbiddenMethodsSet: M5, corsSafeListedMethodsSet: Y4, referrerPolicy: J4, requestRedirect: V5, requestMode: H4, requestCredentials: h7, requestCache: I5, requestDuplex: k5 } = requireConstants$2(), { kEnumerableProperty: i6, normalizedMethodRecordsBase: F3, normalizedMethodRecords: m6 } = o8, { kHeaders: D3, kSignal: S4, kState: W4, kDispatcher: q5 } = requireSymbols$3(), { webidl: O6 } = requireWebidl(), { URLSerializer: P4 } = requireDataUrl(), { kConstruct: Z4 } = requireSymbols$4(), cA = require$$0__default, { getMaxListeners: EA, setMaxListeners: fA, getEventListeners: uA, defaultMaxListeners: pA } = require$$8__default, RA = Symbol("abortController"), DA = new r6(({ signal: $
|
|
245426
|
-
$
|
|
247514
|
+
const { extractBody: A5, mixinBody: p6, cloneBody: c3, bodyUnusable: E6 } = requireBody(), { Headers: t8, fill: B4, HeadersList: f6, setHeadersGuard: l3, getHeadersGuard: Q4, setHeadersList: u6, getHeadersList: n6 } = requireHeaders(), { FinalizationRegistry: r6 } = requireDispatcherWeakref()(), o8 = requireUtil$7(), a7 = require$$0__default$3, { isValidHTTPToken: g6, sameOrigin: d6, environmentSettingsObject: N6 } = requireUtil$6(), { forbiddenMethodsSet: M5, corsSafeListedMethodsSet: Y4, referrerPolicy: J4, requestRedirect: V5, requestMode: H4, requestCredentials: h7, requestCache: I5, requestDuplex: k5 } = requireConstants$2(), { kEnumerableProperty: i6, normalizedMethodRecordsBase: F3, normalizedMethodRecords: m6 } = o8, { kHeaders: D3, kSignal: S4, kState: W4, kDispatcher: q5 } = requireSymbols$3(), { webidl: O6 } = requireWebidl(), { URLSerializer: P4 } = requireDataUrl(), { kConstruct: Z4 } = requireSymbols$4(), cA = require$$0__default, { getMaxListeners: EA, setMaxListeners: fA, getEventListeners: uA, defaultMaxListeners: pA } = require$$8__default, RA = Symbol("abortController"), DA = new r6(({ signal: $5, abort: sA }) => {
|
|
247515
|
+
$5.removeEventListener("abort", sA);
|
|
245427
247516
|
}), TA = new WeakMap;
|
|
245428
|
-
function UA($
|
|
247517
|
+
function UA($5) {
|
|
245429
247518
|
return sA;
|
|
245430
247519
|
function sA() {
|
|
245431
|
-
const BA = $
|
|
247520
|
+
const BA = $5.deref();
|
|
245432
247521
|
if (BA !== undefined) {
|
|
245433
247522
|
DA.unregister(sA), this.removeEventListener("abort", sA), BA.abort(this.reason);
|
|
245434
247523
|
const dA = TA.get(BA.signal);
|
|
@@ -245645,22 +247734,22 @@ ${h7.format(I5)}
|
|
|
245645
247734
|
}
|
|
245646
247735
|
}
|
|
245647
247736
|
p6(eA);
|
|
245648
|
-
function lA($
|
|
245649
|
-
return { method: $
|
|
247737
|
+
function lA($5) {
|
|
247738
|
+
return { method: $5.method ?? "GET", localURLsOnly: $5.localURLsOnly ?? false, unsafeRequest: $5.unsafeRequest ?? false, body: $5.body ?? null, client: $5.client ?? null, reservedClient: $5.reservedClient ?? null, replacesClientId: $5.replacesClientId ?? "", window: $5.window ?? "client", keepalive: $5.keepalive ?? false, serviceWorkers: $5.serviceWorkers ?? "all", initiator: $5.initiator ?? "", destination: $5.destination ?? "", priority: $5.priority ?? null, origin: $5.origin ?? "client", policyContainer: $5.policyContainer ?? "client", referrer: $5.referrer ?? "client", referrerPolicy: $5.referrerPolicy ?? "", mode: $5.mode ?? "no-cors", useCORSPreflightFlag: $5.useCORSPreflightFlag ?? false, credentials: $5.credentials ?? "same-origin", useCredentials: $5.useCredentials ?? false, cache: $5.cache ?? "default", redirect: $5.redirect ?? "follow", integrity: $5.integrity ?? "", cryptoGraphicsNonceMetadata: $5.cryptoGraphicsNonceMetadata ?? "", parserMetadata: $5.parserMetadata ?? "", reloadNavigation: $5.reloadNavigation ?? false, historyNavigation: $5.historyNavigation ?? false, userActivation: $5.userActivation ?? false, taintedOrigin: $5.taintedOrigin ?? false, redirectCount: $5.redirectCount ?? 0, responseTainting: $5.responseTainting ?? "basic", preventNoCacheCacheControlHeaderModification: $5.preventNoCacheCacheControlHeaderModification ?? false, done: $5.done ?? false, timingAllowFailed: $5.timingAllowFailed ?? false, urlList: $5.urlList, url: $5.urlList[0], headersList: $5.headersList ? new f6($5.headersList) : new f6 };
|
|
245650
247739
|
}
|
|
245651
247740
|
e10(lA, "makeRequest");
|
|
245652
|
-
function YA($
|
|
245653
|
-
const sA = lA({ ...$
|
|
245654
|
-
return $
|
|
247741
|
+
function YA($5) {
|
|
247742
|
+
const sA = lA({ ...$5, body: null });
|
|
247743
|
+
return $5.body != null && (sA.body = c3(sA, $5.body)), sA;
|
|
245655
247744
|
}
|
|
245656
247745
|
e10(YA, "cloneRequest");
|
|
245657
|
-
function nA($
|
|
247746
|
+
function nA($5, sA, BA) {
|
|
245658
247747
|
const dA = new eA(Z4);
|
|
245659
|
-
return dA[W4] = $
|
|
247748
|
+
return dA[W4] = $5, dA[S4] = sA, dA[D3] = new t8(Z4), u6(dA[D3], $5.headersList), l3(dA[D3], BA), dA;
|
|
245660
247749
|
}
|
|
245661
|
-
return e10(nA, "fromInnerRequest"), Object.defineProperties(eA.prototype, { method: i6, url: i6, headers: i6, redirect: i6, clone: i6, signal: i6, duplex: i6, destination: i6, body: i6, bodyUsed: i6, isHistoryNavigation: i6, isReloadNavigation: i6, keepalive: i6, integrity: i6, cache: i6, credentials: i6, attribute: i6, referrerPolicy: i6, referrer: i6, mode: i6, [Symbol.toStringTag]: { value: "Request", configurable: true } }), O6.converters.Request = O6.interfaceConverter(eA), O6.converters.RequestInfo = function($
|
|
245662
|
-
return typeof $
|
|
245663
|
-
}, O6.converters.AbortSignal = O6.interfaceConverter(AbortSignal), O6.converters.RequestInit = O6.dictionaryConverter([{ key: "method", converter: O6.converters.ByteString }, { key: "headers", converter: O6.converters.HeadersInit }, { key: "body", converter: O6.nullableConverter(O6.converters.BodyInit) }, { key: "referrer", converter: O6.converters.USVString }, { key: "referrerPolicy", converter: O6.converters.DOMString, allowedValues: J4 }, { key: "mode", converter: O6.converters.DOMString, allowedValues: H4 }, { key: "credentials", converter: O6.converters.DOMString, allowedValues: h7 }, { key: "cache", converter: O6.converters.DOMString, allowedValues: I5 }, { key: "redirect", converter: O6.converters.DOMString, allowedValues: V5 }, { key: "integrity", converter: O6.converters.DOMString }, { key: "keepalive", converter: O6.converters.boolean }, { key: "signal", converter: O6.nullableConverter(($
|
|
247750
|
+
return e10(nA, "fromInnerRequest"), Object.defineProperties(eA.prototype, { method: i6, url: i6, headers: i6, redirect: i6, clone: i6, signal: i6, duplex: i6, destination: i6, body: i6, bodyUsed: i6, isHistoryNavigation: i6, isReloadNavigation: i6, keepalive: i6, integrity: i6, cache: i6, credentials: i6, attribute: i6, referrerPolicy: i6, referrer: i6, mode: i6, [Symbol.toStringTag]: { value: "Request", configurable: true } }), O6.converters.Request = O6.interfaceConverter(eA), O6.converters.RequestInfo = function($5, sA, BA) {
|
|
247751
|
+
return typeof $5 == "string" ? O6.converters.USVString($5, sA, BA) : $5 instanceof eA ? O6.converters.Request($5, sA, BA) : O6.converters.USVString($5, sA, BA);
|
|
247752
|
+
}, O6.converters.AbortSignal = O6.interfaceConverter(AbortSignal), O6.converters.RequestInit = O6.dictionaryConverter([{ key: "method", converter: O6.converters.ByteString }, { key: "headers", converter: O6.converters.HeadersInit }, { key: "body", converter: O6.nullableConverter(O6.converters.BodyInit) }, { key: "referrer", converter: O6.converters.USVString }, { key: "referrerPolicy", converter: O6.converters.DOMString, allowedValues: J4 }, { key: "mode", converter: O6.converters.DOMString, allowedValues: H4 }, { key: "credentials", converter: O6.converters.DOMString, allowedValues: h7 }, { key: "cache", converter: O6.converters.DOMString, allowedValues: I5 }, { key: "redirect", converter: O6.converters.DOMString, allowedValues: V5 }, { key: "integrity", converter: O6.converters.DOMString }, { key: "keepalive", converter: O6.converters.boolean }, { key: "signal", converter: O6.nullableConverter(($5) => O6.converters.AbortSignal($5, "RequestInit", "signal", { strict: false })) }, { key: "window", converter: O6.converters.any }, { key: "duplex", converter: O6.converters.DOMString, allowedValues: k5 }, { key: "dispatcher", converter: O6.converters.any }]), request2 = { Request: eA, makeRequest: lA, fromInnerRequest: nA, cloneRequest: YA }, request2;
|
|
245664
247753
|
}
|
|
245665
247754
|
e10(requireRequest, "requireRequest");
|
|
245666
247755
|
var fetch_1;
|
|
@@ -245669,7 +247758,7 @@ ${h7.format(I5)}
|
|
|
245669
247758
|
if (hasRequiredFetch)
|
|
245670
247759
|
return fetch_1;
|
|
245671
247760
|
hasRequiredFetch = 1;
|
|
245672
|
-
const { makeNetworkError: A5, makeAppropriateNetworkError: p6, filterResponse: c3, makeResponse: E6, fromInnerResponse: t8 } = requireResponse(), { HeadersList: B4 } = requireHeaders(), { Request: f6, cloneRequest: l3 } = requireRequest(), Q4 = zlib__default, { bytesMatch: u6, makePolicyContainer: n6, clonePolicyContainer: r6, requestBadPort: o8, TAOCheck: a7, appendRequestOriginHeader: g6, responseLocationURL: d6, requestCurrentURL: N6, setRequestReferrerPolicyOnRedirect: M5, tryUpgradeRequestToAPotentiallyTrustworthyURL: Y4, createOpaqueTimingInfo: J4, appendFetchMetadata: V5, corsCheck: H4, crossOriginResourcePolicyCheck: h7, determineRequestsReferrer: I5, coarsenedSharedCurrentTime: k5, createDeferredPromise: i6, isBlobLike: F3, sameOrigin: m6, isCancelled: D3, isAborted: S4, isErrorLike: W4, fullyReadBody: q5, readableStreamClose: O6, isomorphicEncode: P4, urlIsLocal: Z4, urlIsHttpHttpsScheme: cA, urlHasHttpsScheme: EA, clampAndCoarsenConnectionTimingInfo: fA, simpleRangeHeaderValue: uA, buildContentRange: pA, createInflate: RA, extractMimeType: DA } = requireUtil$6(), { kState: TA, kDispatcher: UA } = requireSymbols$3(), QA = require$$0__default, { safelyExtractBody: eA, extractBody: lA } = requireBody(), { redirectStatusSet: YA, nullBodyStatus: nA, safeMethodsSet: $
|
|
247761
|
+
const { makeNetworkError: A5, makeAppropriateNetworkError: p6, filterResponse: c3, makeResponse: E6, fromInnerResponse: t8 } = requireResponse(), { HeadersList: B4 } = requireHeaders(), { Request: f6, cloneRequest: l3 } = requireRequest(), Q4 = zlib__default, { bytesMatch: u6, makePolicyContainer: n6, clonePolicyContainer: r6, requestBadPort: o8, TAOCheck: a7, appendRequestOriginHeader: g6, responseLocationURL: d6, requestCurrentURL: N6, setRequestReferrerPolicyOnRedirect: M5, tryUpgradeRequestToAPotentiallyTrustworthyURL: Y4, createOpaqueTimingInfo: J4, appendFetchMetadata: V5, corsCheck: H4, crossOriginResourcePolicyCheck: h7, determineRequestsReferrer: I5, coarsenedSharedCurrentTime: k5, createDeferredPromise: i6, isBlobLike: F3, sameOrigin: m6, isCancelled: D3, isAborted: S4, isErrorLike: W4, fullyReadBody: q5, readableStreamClose: O6, isomorphicEncode: P4, urlIsLocal: Z4, urlIsHttpHttpsScheme: cA, urlHasHttpsScheme: EA, clampAndCoarsenConnectionTimingInfo: fA, simpleRangeHeaderValue: uA, buildContentRange: pA, createInflate: RA, extractMimeType: DA } = requireUtil$6(), { kState: TA, kDispatcher: UA } = requireSymbols$3(), QA = require$$0__default, { safelyExtractBody: eA, extractBody: lA } = requireBody(), { redirectStatusSet: YA, nullBodyStatus: nA, safeMethodsSet: $5, requestBodyHeader: sA, subresourceSet: BA } = requireConstants$2(), dA = require$$8__default, { Readable: CA, pipeline: mA, finished: xA } = Stream__default, { addAbortListener: bA, isErrored: WA, isReadable: LA, bufferToLowerCasedHeaderName: GA } = requireUtil$7(), { dataURLProcessor: NA, serializeAMimeType: KA, minimizeSupportedMimeType: ZA } = requireDataUrl(), { getGlobalDispatcher: PA } = requireGlobal(), { webidl: oA } = requireWebidl(), { STATUS_CODES: L4 } = http__default, AA = ["GET", "HEAD"], IA = typeof __UNDICI_IS_NODE__ < "u" || typeof esbuildDetection < "u" ? "node" : "undici";
|
|
245673
247762
|
let wA;
|
|
245674
247763
|
|
|
245675
247764
|
class FA extends dA {
|
|
@@ -245926,7 +248015,7 @@ ${h7.format(I5)}
|
|
|
245926
248015
|
if (tA.cache === "only-if-cached")
|
|
245927
248016
|
return A5("only if cached");
|
|
245928
248017
|
const zA = await j3(gA, JA, K4);
|
|
245929
|
-
!$
|
|
248018
|
+
!$5.has(tA.method) && zA.status >= 200 && zA.status <= 399, hA == null && (hA = zA);
|
|
245930
248019
|
}
|
|
245931
248020
|
if (hA.urlList = [...tA.urlList], tA.headersList.contains("range", true) && (hA.rangeRequested = true), hA.requestIncludesCredentials = JA, hA.status === 407)
|
|
245932
248021
|
return _5.window === "no-window" ? A5() : D3(T4) ? p6(T4) : A5("proxy authentication required");
|
|
@@ -247249,14 +249338,14 @@ ${h7.format(I5)}
|
|
|
247249
249338
|
return A5.converters.MessageEventInit = A5.dictionaryConverter([...Q4, { key: "data", converter: A5.converters.any, defaultValue: e10(() => null, "defaultValue") }, { key: "origin", converter: A5.converters.USVString, defaultValue: e10(() => "", "defaultValue") }, { key: "lastEventId", converter: A5.converters.DOMString, defaultValue: e10(() => "", "defaultValue") }, { key: "source", converter: A5.nullableConverter(A5.converters.MessagePort), defaultValue: e10(() => null, "defaultValue") }, { key: "ports", converter: A5.converters["sequence<MessagePort>"], defaultValue: e10(() => new Array(0), "defaultValue") }]), A5.converters.CloseEventInit = A5.dictionaryConverter([...Q4, { key: "wasClean", converter: A5.converters.boolean, defaultValue: e10(() => false, "defaultValue") }, { key: "code", converter: A5.converters["unsigned short"], defaultValue: e10(() => 0, "defaultValue") }, { key: "reason", converter: A5.converters.USVString, defaultValue: e10(() => "", "defaultValue") }]), A5.converters.ErrorEventInit = A5.dictionaryConverter([...Q4, { key: "message", converter: A5.converters.DOMString, defaultValue: e10(() => "", "defaultValue") }, { key: "filename", converter: A5.converters.USVString, defaultValue: e10(() => "", "defaultValue") }, { key: "lineno", converter: A5.converters["unsigned long"], defaultValue: e10(() => 0, "defaultValue") }, { key: "colno", converter: A5.converters["unsigned long"], defaultValue: e10(() => 0, "defaultValue") }, { key: "error", converter: A5.converters.any }]), events = { MessageEvent: t8, CloseEvent: f6, ErrorEvent: l3, createFastMessageEvent: B4 }, events;
|
|
247250
249339
|
}
|
|
247251
249340
|
e10(requireEvents, "requireEvents");
|
|
247252
|
-
var
|
|
249341
|
+
var constants3;
|
|
247253
249342
|
var hasRequiredConstants;
|
|
247254
249343
|
function requireConstants() {
|
|
247255
249344
|
if (hasRequiredConstants)
|
|
247256
|
-
return
|
|
249345
|
+
return constants3;
|
|
247257
249346
|
hasRequiredConstants = 1;
|
|
247258
249347
|
const A5 = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11", p6 = { enumerable: true, writable: false, configurable: false }, c3 = { CONNECTING: 0, OPEN: 1, CLOSING: 2, CLOSED: 3 }, E6 = { NOT_SENT: 0, PROCESSING: 1, SENT: 2 }, t8 = { CONTINUATION: 0, TEXT: 1, BINARY: 2, CLOSE: 8, PING: 9, PONG: 10 }, B4 = 2 ** 16 - 1, f6 = { INFO: 0, PAYLOADLENGTH_16: 2, PAYLOADLENGTH_64: 3, READ_DATA: 4 }, l3 = Buffer.allocUnsafe(0);
|
|
247259
|
-
return
|
|
249348
|
+
return constants3 = { uid: A5, sentCloseFrameState: E6, staticPropertyDescriptors: p6, states: c3, opcodes: t8, maxUnsigned16Bit: B4, parserStates: f6, emptyBuffer: l3, sendHints: { string: 1, typedArray: 2, arrayBuffer: 3, blob: 4 } }, constants3;
|
|
247260
249349
|
}
|
|
247261
249350
|
e10(requireConstants, "requireConstants");
|
|
247262
249351
|
var symbols;
|
|
@@ -249016,8 +251105,8 @@ ${g6}`;
|
|
|
249016
251105
|
}
|
|
249017
251106
|
e10(requireDist, "requireDist");
|
|
249018
251107
|
var distExports = requireDist();
|
|
249019
|
-
var
|
|
249020
|
-
var s8 = e10((A5, p6) =>
|
|
251108
|
+
var x6 = Object.defineProperty;
|
|
251109
|
+
var s8 = e10((A5, p6) => x6(A5, "name", { value: p6, configurable: true }), "s");
|
|
249021
251110
|
function w5(...A5) {
|
|
249022
251111
|
process.env.DEBUG && console.debug("[node-fetch-native] [proxy]", ...A5);
|
|
249023
251112
|
}
|
|
@@ -249162,13 +251251,13 @@ var require_identity = __commonJS((exports) => {
|
|
|
249162
251251
|
|
|
249163
251252
|
// ../../node_modules/yaml/dist/visit.js
|
|
249164
251253
|
var require_visit = __commonJS((exports) => {
|
|
249165
|
-
var
|
|
251254
|
+
var identity3 = require_identity();
|
|
249166
251255
|
var BREAK = Symbol("break visit");
|
|
249167
251256
|
var SKIP = Symbol("skip children");
|
|
249168
251257
|
var REMOVE = Symbol("remove node");
|
|
249169
251258
|
function visit2(node, visitor) {
|
|
249170
251259
|
const visitor_ = initVisitor(visitor);
|
|
249171
|
-
if (
|
|
251260
|
+
if (identity3.isDocument(node)) {
|
|
249172
251261
|
const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
|
|
249173
251262
|
if (cd === REMOVE)
|
|
249174
251263
|
node.contents = null;
|
|
@@ -249178,17 +251267,17 @@ var require_visit = __commonJS((exports) => {
|
|
|
249178
251267
|
visit2.BREAK = BREAK;
|
|
249179
251268
|
visit2.SKIP = SKIP;
|
|
249180
251269
|
visit2.REMOVE = REMOVE;
|
|
249181
|
-
function visit_(key2, node, visitor,
|
|
249182
|
-
const ctrl = callVisitor(key2, node, visitor,
|
|
249183
|
-
if (
|
|
249184
|
-
replaceNode(key2,
|
|
249185
|
-
return visit_(key2, ctrl, visitor,
|
|
251270
|
+
function visit_(key2, node, visitor, path8) {
|
|
251271
|
+
const ctrl = callVisitor(key2, node, visitor, path8);
|
|
251272
|
+
if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
|
|
251273
|
+
replaceNode(key2, path8, ctrl);
|
|
251274
|
+
return visit_(key2, ctrl, visitor, path8);
|
|
249186
251275
|
}
|
|
249187
251276
|
if (typeof ctrl !== "symbol") {
|
|
249188
|
-
if (
|
|
249189
|
-
|
|
251277
|
+
if (identity3.isCollection(node)) {
|
|
251278
|
+
path8 = Object.freeze(path8.concat(node));
|
|
249190
251279
|
for (let i6 = 0;i6 < node.items.length; ++i6) {
|
|
249191
|
-
const ci = visit_(i6, node.items[i6], visitor,
|
|
251280
|
+
const ci = visit_(i6, node.items[i6], visitor, path8);
|
|
249192
251281
|
if (typeof ci === "number")
|
|
249193
251282
|
i6 = ci - 1;
|
|
249194
251283
|
else if (ci === BREAK)
|
|
@@ -249198,14 +251287,14 @@ var require_visit = __commonJS((exports) => {
|
|
|
249198
251287
|
i6 -= 1;
|
|
249199
251288
|
}
|
|
249200
251289
|
}
|
|
249201
|
-
} else if (
|
|
249202
|
-
|
|
249203
|
-
const ck = visit_("key", node.key, visitor,
|
|
251290
|
+
} else if (identity3.isPair(node)) {
|
|
251291
|
+
path8 = Object.freeze(path8.concat(node));
|
|
251292
|
+
const ck = visit_("key", node.key, visitor, path8);
|
|
249204
251293
|
if (ck === BREAK)
|
|
249205
251294
|
return BREAK;
|
|
249206
251295
|
else if (ck === REMOVE)
|
|
249207
251296
|
node.key = null;
|
|
249208
|
-
const cv = visit_("value", node.value, visitor,
|
|
251297
|
+
const cv = visit_("value", node.value, visitor, path8);
|
|
249209
251298
|
if (cv === BREAK)
|
|
249210
251299
|
return BREAK;
|
|
249211
251300
|
else if (cv === REMOVE)
|
|
@@ -249216,7 +251305,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
249216
251305
|
}
|
|
249217
251306
|
async function visitAsync(node, visitor) {
|
|
249218
251307
|
const visitor_ = initVisitor(visitor);
|
|
249219
|
-
if (
|
|
251308
|
+
if (identity3.isDocument(node)) {
|
|
249220
251309
|
const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
|
|
249221
251310
|
if (cd === REMOVE)
|
|
249222
251311
|
node.contents = null;
|
|
@@ -249226,17 +251315,17 @@ var require_visit = __commonJS((exports) => {
|
|
|
249226
251315
|
visitAsync.BREAK = BREAK;
|
|
249227
251316
|
visitAsync.SKIP = SKIP;
|
|
249228
251317
|
visitAsync.REMOVE = REMOVE;
|
|
249229
|
-
async function visitAsync_(key2, node, visitor,
|
|
249230
|
-
const ctrl = await callVisitor(key2, node, visitor,
|
|
249231
|
-
if (
|
|
249232
|
-
replaceNode(key2,
|
|
249233
|
-
return visitAsync_(key2, ctrl, visitor,
|
|
251318
|
+
async function visitAsync_(key2, node, visitor, path8) {
|
|
251319
|
+
const ctrl = await callVisitor(key2, node, visitor, path8);
|
|
251320
|
+
if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
|
|
251321
|
+
replaceNode(key2, path8, ctrl);
|
|
251322
|
+
return visitAsync_(key2, ctrl, visitor, path8);
|
|
249234
251323
|
}
|
|
249235
251324
|
if (typeof ctrl !== "symbol") {
|
|
249236
|
-
if (
|
|
249237
|
-
|
|
251325
|
+
if (identity3.isCollection(node)) {
|
|
251326
|
+
path8 = Object.freeze(path8.concat(node));
|
|
249238
251327
|
for (let i6 = 0;i6 < node.items.length; ++i6) {
|
|
249239
|
-
const ci = await visitAsync_(i6, node.items[i6], visitor,
|
|
251328
|
+
const ci = await visitAsync_(i6, node.items[i6], visitor, path8);
|
|
249240
251329
|
if (typeof ci === "number")
|
|
249241
251330
|
i6 = ci - 1;
|
|
249242
251331
|
else if (ci === BREAK)
|
|
@@ -249246,14 +251335,14 @@ var require_visit = __commonJS((exports) => {
|
|
|
249246
251335
|
i6 -= 1;
|
|
249247
251336
|
}
|
|
249248
251337
|
}
|
|
249249
|
-
} else if (
|
|
249250
|
-
|
|
249251
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
251338
|
+
} else if (identity3.isPair(node)) {
|
|
251339
|
+
path8 = Object.freeze(path8.concat(node));
|
|
251340
|
+
const ck = await visitAsync_("key", node.key, visitor, path8);
|
|
249252
251341
|
if (ck === BREAK)
|
|
249253
251342
|
return BREAK;
|
|
249254
251343
|
else if (ck === REMOVE)
|
|
249255
251344
|
node.key = null;
|
|
249256
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
251345
|
+
const cv = await visitAsync_("value", node.value, visitor, path8);
|
|
249257
251346
|
if (cv === BREAK)
|
|
249258
251347
|
return BREAK;
|
|
249259
251348
|
else if (cv === REMOVE)
|
|
@@ -249280,34 +251369,34 @@ var require_visit = __commonJS((exports) => {
|
|
|
249280
251369
|
}
|
|
249281
251370
|
return visitor;
|
|
249282
251371
|
}
|
|
249283
|
-
function callVisitor(key2, node, visitor,
|
|
251372
|
+
function callVisitor(key2, node, visitor, path8) {
|
|
249284
251373
|
if (typeof visitor === "function")
|
|
249285
|
-
return visitor(key2, node,
|
|
249286
|
-
if (
|
|
249287
|
-
return visitor.Map?.(key2, node,
|
|
249288
|
-
if (
|
|
249289
|
-
return visitor.Seq?.(key2, node,
|
|
249290
|
-
if (
|
|
249291
|
-
return visitor.Pair?.(key2, node,
|
|
249292
|
-
if (
|
|
249293
|
-
return visitor.Scalar?.(key2, node,
|
|
249294
|
-
if (
|
|
249295
|
-
return visitor.Alias?.(key2, node,
|
|
251374
|
+
return visitor(key2, node, path8);
|
|
251375
|
+
if (identity3.isMap(node))
|
|
251376
|
+
return visitor.Map?.(key2, node, path8);
|
|
251377
|
+
if (identity3.isSeq(node))
|
|
251378
|
+
return visitor.Seq?.(key2, node, path8);
|
|
251379
|
+
if (identity3.isPair(node))
|
|
251380
|
+
return visitor.Pair?.(key2, node, path8);
|
|
251381
|
+
if (identity3.isScalar(node))
|
|
251382
|
+
return visitor.Scalar?.(key2, node, path8);
|
|
251383
|
+
if (identity3.isAlias(node))
|
|
251384
|
+
return visitor.Alias?.(key2, node, path8);
|
|
249296
251385
|
return;
|
|
249297
251386
|
}
|
|
249298
|
-
function replaceNode(key2,
|
|
249299
|
-
const parent =
|
|
249300
|
-
if (
|
|
251387
|
+
function replaceNode(key2, path8, node) {
|
|
251388
|
+
const parent = path8[path8.length - 1];
|
|
251389
|
+
if (identity3.isCollection(parent)) {
|
|
249301
251390
|
parent.items[key2] = node;
|
|
249302
|
-
} else if (
|
|
251391
|
+
} else if (identity3.isPair(parent)) {
|
|
249303
251392
|
if (key2 === "key")
|
|
249304
251393
|
parent.key = node;
|
|
249305
251394
|
else
|
|
249306
251395
|
parent.value = node;
|
|
249307
|
-
} else if (
|
|
251396
|
+
} else if (identity3.isDocument(parent)) {
|
|
249308
251397
|
parent.contents = node;
|
|
249309
251398
|
} else {
|
|
249310
|
-
const pt2 =
|
|
251399
|
+
const pt2 = identity3.isAlias(parent) ? "alias" : "scalar";
|
|
249311
251400
|
throw new Error(`Cannot replace node with ${pt2} parent`);
|
|
249312
251401
|
}
|
|
249313
251402
|
}
|
|
@@ -249317,7 +251406,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
249317
251406
|
|
|
249318
251407
|
// ../../node_modules/yaml/dist/doc/directives.js
|
|
249319
251408
|
var require_directives2 = __commonJS((exports) => {
|
|
249320
|
-
var
|
|
251409
|
+
var identity3 = require_identity();
|
|
249321
251410
|
var visit2 = require_visit();
|
|
249322
251411
|
var escapeChars = {
|
|
249323
251412
|
"!": "%21",
|
|
@@ -249443,10 +251532,10 @@ var require_directives2 = __commonJS((exports) => {
|
|
|
249443
251532
|
const lines2 = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
|
|
249444
251533
|
const tagEntries = Object.entries(this.tags);
|
|
249445
251534
|
let tagNames;
|
|
249446
|
-
if (doc && tagEntries.length > 0 &&
|
|
251535
|
+
if (doc && tagEntries.length > 0 && identity3.isNode(doc.contents)) {
|
|
249447
251536
|
const tags = {};
|
|
249448
251537
|
visit2.visit(doc.contents, (_key, node) => {
|
|
249449
|
-
if (
|
|
251538
|
+
if (identity3.isNode(node) && node.tag)
|
|
249450
251539
|
tags[node.tag] = true;
|
|
249451
251540
|
});
|
|
249452
251541
|
tagNames = Object.keys(tags);
|
|
@@ -249469,7 +251558,7 @@ var require_directives2 = __commonJS((exports) => {
|
|
|
249469
251558
|
|
|
249470
251559
|
// ../../node_modules/yaml/dist/doc/anchors.js
|
|
249471
251560
|
var require_anchors = __commonJS((exports) => {
|
|
249472
|
-
var
|
|
251561
|
+
var identity3 = require_identity();
|
|
249473
251562
|
var visit2 = require_visit();
|
|
249474
251563
|
function anchorIsValid(anchor) {
|
|
249475
251564
|
if (/[\x00-\x19\s,[\]{}]/.test(anchor)) {
|
|
@@ -249512,7 +251601,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
249512
251601
|
setAnchors: () => {
|
|
249513
251602
|
for (const source of aliasObjects) {
|
|
249514
251603
|
const ref = sourceObjects.get(source);
|
|
249515
|
-
if (typeof ref === "object" && ref.anchor && (
|
|
251604
|
+
if (typeof ref === "object" && ref.anchor && (identity3.isScalar(ref.node) || identity3.isCollection(ref.node))) {
|
|
249516
251605
|
ref.node.anchor = ref.anchor;
|
|
249517
251606
|
} else {
|
|
249518
251607
|
const error5 = new Error("Failed to resolve repeated object (this should not happen)");
|
|
@@ -249579,12 +251668,12 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
249579
251668
|
|
|
249580
251669
|
// ../../node_modules/yaml/dist/nodes/toJS.js
|
|
249581
251670
|
var require_toJS = __commonJS((exports) => {
|
|
249582
|
-
var
|
|
251671
|
+
var identity3 = require_identity();
|
|
249583
251672
|
function toJS(value4, arg, ctx) {
|
|
249584
251673
|
if (Array.isArray(value4))
|
|
249585
251674
|
return value4.map((v7, i6) => toJS(v7, String(i6), ctx));
|
|
249586
251675
|
if (value4 && typeof value4.toJSON === "function") {
|
|
249587
|
-
if (!ctx || !
|
|
251676
|
+
if (!ctx || !identity3.hasAnchor(value4))
|
|
249588
251677
|
return value4.toJSON(arg, ctx);
|
|
249589
251678
|
const data = { aliasCount: 0, count: 1, res: undefined };
|
|
249590
251679
|
ctx.anchors.set(value4, data);
|
|
@@ -249607,12 +251696,12 @@ var require_toJS = __commonJS((exports) => {
|
|
|
249607
251696
|
// ../../node_modules/yaml/dist/nodes/Node.js
|
|
249608
251697
|
var require_Node = __commonJS((exports) => {
|
|
249609
251698
|
var applyReviver = require_applyReviver();
|
|
249610
|
-
var
|
|
251699
|
+
var identity3 = require_identity();
|
|
249611
251700
|
var toJS = require_toJS();
|
|
249612
251701
|
|
|
249613
251702
|
class NodeBase {
|
|
249614
251703
|
constructor(type4) {
|
|
249615
|
-
Object.defineProperty(this,
|
|
251704
|
+
Object.defineProperty(this, identity3.NODE_TYPE, { value: type4 });
|
|
249616
251705
|
}
|
|
249617
251706
|
clone() {
|
|
249618
251707
|
const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
@@ -249621,7 +251710,7 @@ var require_Node = __commonJS((exports) => {
|
|
|
249621
251710
|
return copy;
|
|
249622
251711
|
}
|
|
249623
251712
|
toJS(doc, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
|
|
249624
|
-
if (!
|
|
251713
|
+
if (!identity3.isDocument(doc))
|
|
249625
251714
|
throw new TypeError("A document argument is required");
|
|
249626
251715
|
const ctx = {
|
|
249627
251716
|
anchors: new Map,
|
|
@@ -249645,13 +251734,13 @@ var require_Node = __commonJS((exports) => {
|
|
|
249645
251734
|
var require_Alias = __commonJS((exports) => {
|
|
249646
251735
|
var anchors = require_anchors();
|
|
249647
251736
|
var visit2 = require_visit();
|
|
249648
|
-
var
|
|
251737
|
+
var identity3 = require_identity();
|
|
249649
251738
|
var Node2 = require_Node();
|
|
249650
251739
|
var toJS = require_toJS();
|
|
249651
251740
|
|
|
249652
251741
|
class Alias extends Node2.NodeBase {
|
|
249653
251742
|
constructor(source) {
|
|
249654
|
-
super(
|
|
251743
|
+
super(identity3.ALIAS);
|
|
249655
251744
|
this.source = source;
|
|
249656
251745
|
Object.defineProperty(this, "tag", {
|
|
249657
251746
|
set() {
|
|
@@ -249715,11 +251804,11 @@ var require_Alias = __commonJS((exports) => {
|
|
|
249715
251804
|
}
|
|
249716
251805
|
}
|
|
249717
251806
|
function getAliasCount(doc, node, anchors2) {
|
|
249718
|
-
if (
|
|
251807
|
+
if (identity3.isAlias(node)) {
|
|
249719
251808
|
const source = node.resolve(doc);
|
|
249720
251809
|
const anchor = anchors2 && source && anchors2.get(source);
|
|
249721
251810
|
return anchor ? anchor.count * anchor.aliasCount : 0;
|
|
249722
|
-
} else if (
|
|
251811
|
+
} else if (identity3.isCollection(node)) {
|
|
249723
251812
|
let count = 0;
|
|
249724
251813
|
for (const item of node.items) {
|
|
249725
251814
|
const c3 = getAliasCount(doc, item, anchors2);
|
|
@@ -249727,7 +251816,7 @@ var require_Alias = __commonJS((exports) => {
|
|
|
249727
251816
|
count = c3;
|
|
249728
251817
|
}
|
|
249729
251818
|
return count;
|
|
249730
|
-
} else if (
|
|
251819
|
+
} else if (identity3.isPair(node)) {
|
|
249731
251820
|
const kc = getAliasCount(doc, node.key, anchors2);
|
|
249732
251821
|
const vc = getAliasCount(doc, node.value, anchors2);
|
|
249733
251822
|
return Math.max(kc, vc);
|
|
@@ -249739,14 +251828,14 @@ var require_Alias = __commonJS((exports) => {
|
|
|
249739
251828
|
|
|
249740
251829
|
// ../../node_modules/yaml/dist/nodes/Scalar.js
|
|
249741
251830
|
var require_Scalar = __commonJS((exports) => {
|
|
249742
|
-
var
|
|
251831
|
+
var identity3 = require_identity();
|
|
249743
251832
|
var Node2 = require_Node();
|
|
249744
251833
|
var toJS = require_toJS();
|
|
249745
251834
|
var isScalarValue = (value4) => !value4 || typeof value4 !== "function" && typeof value4 !== "object";
|
|
249746
251835
|
|
|
249747
251836
|
class Scalar extends Node2.NodeBase {
|
|
249748
251837
|
constructor(value4) {
|
|
249749
|
-
super(
|
|
251838
|
+
super(identity3.SCALAR);
|
|
249750
251839
|
this.value = value4;
|
|
249751
251840
|
}
|
|
249752
251841
|
toJSON(arg, ctx) {
|
|
@@ -249768,7 +251857,7 @@ var require_Scalar = __commonJS((exports) => {
|
|
|
249768
251857
|
// ../../node_modules/yaml/dist/doc/createNode.js
|
|
249769
251858
|
var require_createNode = __commonJS((exports) => {
|
|
249770
251859
|
var Alias = require_Alias();
|
|
249771
|
-
var
|
|
251860
|
+
var identity3 = require_identity();
|
|
249772
251861
|
var Scalar = require_Scalar();
|
|
249773
251862
|
var defaultTagPrefix = "tag:yaml.org,2002:";
|
|
249774
251863
|
function findTagObject(value4, tagName, tags) {
|
|
@@ -249782,12 +251871,12 @@ var require_createNode = __commonJS((exports) => {
|
|
|
249782
251871
|
return tags.find((t8) => t8.identify?.(value4) && !t8.format);
|
|
249783
251872
|
}
|
|
249784
251873
|
function createNode(value4, tagName, ctx) {
|
|
249785
|
-
if (
|
|
251874
|
+
if (identity3.isDocument(value4))
|
|
249786
251875
|
value4 = value4.contents;
|
|
249787
|
-
if (
|
|
251876
|
+
if (identity3.isNode(value4))
|
|
249788
251877
|
return value4;
|
|
249789
|
-
if (
|
|
249790
|
-
const map3 = ctx.schema[
|
|
251878
|
+
if (identity3.isPair(value4)) {
|
|
251879
|
+
const map3 = ctx.schema[identity3.MAP].createNode?.(ctx.schema, null, ctx);
|
|
249791
251880
|
map3.items.push(value4);
|
|
249792
251881
|
return map3;
|
|
249793
251882
|
}
|
|
@@ -249820,7 +251909,7 @@ var require_createNode = __commonJS((exports) => {
|
|
|
249820
251909
|
ref.node = node2;
|
|
249821
251910
|
return node2;
|
|
249822
251911
|
}
|
|
249823
|
-
tagObj = value4 instanceof Map ? schema[
|
|
251912
|
+
tagObj = value4 instanceof Map ? schema[identity3.MAP] : (Symbol.iterator in Object(value4)) ? schema[identity3.SEQ] : schema[identity3.MAP];
|
|
249824
251913
|
}
|
|
249825
251914
|
if (onTagObj) {
|
|
249826
251915
|
onTagObj(tagObj);
|
|
@@ -249841,12 +251930,12 @@ var require_createNode = __commonJS((exports) => {
|
|
|
249841
251930
|
// ../../node_modules/yaml/dist/nodes/Collection.js
|
|
249842
251931
|
var require_Collection = __commonJS((exports) => {
|
|
249843
251932
|
var createNode = require_createNode();
|
|
249844
|
-
var
|
|
251933
|
+
var identity3 = require_identity();
|
|
249845
251934
|
var Node2 = require_Node();
|
|
249846
|
-
function collectionFromPath(schema,
|
|
251935
|
+
function collectionFromPath(schema, path8, value4) {
|
|
249847
251936
|
let v7 = value4;
|
|
249848
|
-
for (let i6 =
|
|
249849
|
-
const k5 =
|
|
251937
|
+
for (let i6 = path8.length - 1;i6 >= 0; --i6) {
|
|
251938
|
+
const k5 = path8[i6];
|
|
249850
251939
|
if (typeof k5 === "number" && Number.isInteger(k5) && k5 >= 0) {
|
|
249851
251940
|
const a7 = [];
|
|
249852
251941
|
a7[k5] = v7;
|
|
@@ -249865,7 +251954,7 @@ var require_Collection = __commonJS((exports) => {
|
|
|
249865
251954
|
sourceObjects: new Map
|
|
249866
251955
|
});
|
|
249867
251956
|
}
|
|
249868
|
-
var isEmptyPath = (
|
|
251957
|
+
var isEmptyPath = (path8) => path8 == null || typeof path8 === "object" && !!path8[Symbol.iterator]().next().done;
|
|
249869
251958
|
|
|
249870
251959
|
class Collection extends Node2.NodeBase {
|
|
249871
251960
|
constructor(type4, schema) {
|
|
@@ -249881,18 +251970,18 @@ var require_Collection = __commonJS((exports) => {
|
|
|
249881
251970
|
const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
249882
251971
|
if (schema)
|
|
249883
251972
|
copy.schema = schema;
|
|
249884
|
-
copy.items = copy.items.map((it2) =>
|
|
251973
|
+
copy.items = copy.items.map((it2) => identity3.isNode(it2) || identity3.isPair(it2) ? it2.clone(schema) : it2);
|
|
249885
251974
|
if (this.range)
|
|
249886
251975
|
copy.range = this.range.slice();
|
|
249887
251976
|
return copy;
|
|
249888
251977
|
}
|
|
249889
|
-
addIn(
|
|
249890
|
-
if (isEmptyPath(
|
|
251978
|
+
addIn(path8, value4) {
|
|
251979
|
+
if (isEmptyPath(path8))
|
|
249891
251980
|
this.add(value4);
|
|
249892
251981
|
else {
|
|
249893
|
-
const [key2, ...rest] =
|
|
251982
|
+
const [key2, ...rest] = path8;
|
|
249894
251983
|
const node = this.get(key2, true);
|
|
249895
|
-
if (
|
|
251984
|
+
if (identity3.isCollection(node))
|
|
249896
251985
|
node.addIn(rest, value4);
|
|
249897
251986
|
else if (node === undefined && this.schema)
|
|
249898
251987
|
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
@@ -249900,46 +251989,46 @@ var require_Collection = __commonJS((exports) => {
|
|
|
249900
251989
|
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
249901
251990
|
}
|
|
249902
251991
|
}
|
|
249903
|
-
deleteIn(
|
|
249904
|
-
const [key2, ...rest] =
|
|
251992
|
+
deleteIn(path8) {
|
|
251993
|
+
const [key2, ...rest] = path8;
|
|
249905
251994
|
if (rest.length === 0)
|
|
249906
251995
|
return this.delete(key2);
|
|
249907
251996
|
const node = this.get(key2, true);
|
|
249908
|
-
if (
|
|
251997
|
+
if (identity3.isCollection(node))
|
|
249909
251998
|
return node.deleteIn(rest);
|
|
249910
251999
|
else
|
|
249911
252000
|
throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
|
|
249912
252001
|
}
|
|
249913
|
-
getIn(
|
|
249914
|
-
const [key2, ...rest] =
|
|
252002
|
+
getIn(path8, keepScalar) {
|
|
252003
|
+
const [key2, ...rest] = path8;
|
|
249915
252004
|
const node = this.get(key2, true);
|
|
249916
252005
|
if (rest.length === 0)
|
|
249917
|
-
return !keepScalar &&
|
|
252006
|
+
return !keepScalar && identity3.isScalar(node) ? node.value : node;
|
|
249918
252007
|
else
|
|
249919
|
-
return
|
|
252008
|
+
return identity3.isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
|
|
249920
252009
|
}
|
|
249921
252010
|
hasAllNullValues(allowScalar) {
|
|
249922
252011
|
return this.items.every((node) => {
|
|
249923
|
-
if (!
|
|
252012
|
+
if (!identity3.isPair(node))
|
|
249924
252013
|
return false;
|
|
249925
252014
|
const n6 = node.value;
|
|
249926
|
-
return n6 == null || allowScalar &&
|
|
252015
|
+
return n6 == null || allowScalar && identity3.isScalar(n6) && n6.value == null && !n6.commentBefore && !n6.comment && !n6.tag;
|
|
249927
252016
|
});
|
|
249928
252017
|
}
|
|
249929
|
-
hasIn(
|
|
249930
|
-
const [key2, ...rest] =
|
|
252018
|
+
hasIn(path8) {
|
|
252019
|
+
const [key2, ...rest] = path8;
|
|
249931
252020
|
if (rest.length === 0)
|
|
249932
252021
|
return this.has(key2);
|
|
249933
252022
|
const node = this.get(key2, true);
|
|
249934
|
-
return
|
|
252023
|
+
return identity3.isCollection(node) ? node.hasIn(rest) : false;
|
|
249935
252024
|
}
|
|
249936
|
-
setIn(
|
|
249937
|
-
const [key2, ...rest] =
|
|
252025
|
+
setIn(path8, value4) {
|
|
252026
|
+
const [key2, ...rest] = path8;
|
|
249938
252027
|
if (rest.length === 0) {
|
|
249939
252028
|
this.set(key2, value4);
|
|
249940
252029
|
} else {
|
|
249941
252030
|
const node = this.get(key2, true);
|
|
249942
|
-
if (
|
|
252031
|
+
if (identity3.isCollection(node))
|
|
249943
252032
|
node.setIn(rest, value4);
|
|
249944
252033
|
else if (node === undefined && this.schema)
|
|
249945
252034
|
this.set(key2, collectionFromPath(this.schema, rest, value4));
|
|
@@ -250408,7 +252497,7 @@ ${indent2}`);
|
|
|
250408
252497
|
// ../../node_modules/yaml/dist/stringify/stringify.js
|
|
250409
252498
|
var require_stringify = __commonJS((exports) => {
|
|
250410
252499
|
var anchors = require_anchors();
|
|
250411
|
-
var
|
|
252500
|
+
var identity3 = require_identity();
|
|
250412
252501
|
var stringifyComment = require_stringifyComment();
|
|
250413
252502
|
var stringifyString = require_stringifyString();
|
|
250414
252503
|
function createStringifyContext(doc, options) {
|
|
@@ -250460,7 +252549,7 @@ var require_stringify = __commonJS((exports) => {
|
|
|
250460
252549
|
}
|
|
250461
252550
|
let tagObj = undefined;
|
|
250462
252551
|
let obj;
|
|
250463
|
-
if (
|
|
252552
|
+
if (identity3.isScalar(item)) {
|
|
250464
252553
|
obj = item.value;
|
|
250465
252554
|
let match2 = tags.filter((t8) => t8.identify?.(obj));
|
|
250466
252555
|
if (match2.length > 1) {
|
|
@@ -250483,7 +252572,7 @@ var require_stringify = __commonJS((exports) => {
|
|
|
250483
252572
|
if (!doc.directives)
|
|
250484
252573
|
return "";
|
|
250485
252574
|
const props = [];
|
|
250486
|
-
const anchor = (
|
|
252575
|
+
const anchor = (identity3.isScalar(node) || identity3.isCollection(node)) && node.anchor;
|
|
250487
252576
|
if (anchor && anchors.anchorIsValid(anchor)) {
|
|
250488
252577
|
anchors$1.add(anchor);
|
|
250489
252578
|
props.push(`&${anchor}`);
|
|
@@ -250494,9 +252583,9 @@ var require_stringify = __commonJS((exports) => {
|
|
|
250494
252583
|
return props.join(" ");
|
|
250495
252584
|
}
|
|
250496
252585
|
function stringify3(item, ctx, onComment, onChompKeep) {
|
|
250497
|
-
if (
|
|
252586
|
+
if (identity3.isPair(item))
|
|
250498
252587
|
return item.toString(ctx, onComment, onChompKeep);
|
|
250499
|
-
if (
|
|
252588
|
+
if (identity3.isAlias(item)) {
|
|
250500
252589
|
if (ctx.doc.directives)
|
|
250501
252590
|
return item.toString(ctx);
|
|
250502
252591
|
if (ctx.resolvedAliases?.has(item)) {
|
|
@@ -250510,16 +252599,16 @@ var require_stringify = __commonJS((exports) => {
|
|
|
250510
252599
|
}
|
|
250511
252600
|
}
|
|
250512
252601
|
let tagObj = undefined;
|
|
250513
|
-
const node =
|
|
252602
|
+
const node = identity3.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o8) => tagObj = o8 });
|
|
250514
252603
|
if (!tagObj)
|
|
250515
252604
|
tagObj = getTagObject(ctx.doc.schema.tags, node);
|
|
250516
252605
|
const props = stringifyProps(node, tagObj, ctx);
|
|
250517
252606
|
if (props.length > 0)
|
|
250518
252607
|
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
250519
|
-
const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) :
|
|
252608
|
+
const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity3.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
|
|
250520
252609
|
if (!props)
|
|
250521
252610
|
return str;
|
|
250522
|
-
return
|
|
252611
|
+
return identity3.isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
|
|
250523
252612
|
${ctx.indent}${str}`;
|
|
250524
252613
|
}
|
|
250525
252614
|
exports.createStringifyContext = createStringifyContext;
|
|
@@ -250528,23 +252617,23 @@ ${ctx.indent}${str}`;
|
|
|
250528
252617
|
|
|
250529
252618
|
// ../../node_modules/yaml/dist/stringify/stringifyPair.js
|
|
250530
252619
|
var require_stringifyPair = __commonJS((exports) => {
|
|
250531
|
-
var
|
|
252620
|
+
var identity3 = require_identity();
|
|
250532
252621
|
var Scalar = require_Scalar();
|
|
250533
252622
|
var stringify3 = require_stringify();
|
|
250534
252623
|
var stringifyComment = require_stringifyComment();
|
|
250535
252624
|
function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
|
|
250536
252625
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
250537
|
-
let keyComment =
|
|
252626
|
+
let keyComment = identity3.isNode(key2) && key2.comment || null;
|
|
250538
252627
|
if (simpleKeys) {
|
|
250539
252628
|
if (keyComment) {
|
|
250540
252629
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
250541
252630
|
}
|
|
250542
|
-
if (
|
|
252631
|
+
if (identity3.isCollection(key2) || !identity3.isNode(key2) && typeof key2 === "object") {
|
|
250543
252632
|
const msg = "With simple keys, collection cannot be used as a key value";
|
|
250544
252633
|
throw new Error(msg);
|
|
250545
252634
|
}
|
|
250546
252635
|
}
|
|
250547
|
-
let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow ||
|
|
252636
|
+
let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity3.isCollection(key2) || (identity3.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
|
|
250548
252637
|
ctx = Object.assign({}, ctx, {
|
|
250549
252638
|
allNullValues: false,
|
|
250550
252639
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
|
@@ -250585,7 +252674,7 @@ ${indent2}:`;
|
|
|
250585
252674
|
str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
250586
252675
|
}
|
|
250587
252676
|
let vsb, vcb, valueComment;
|
|
250588
|
-
if (
|
|
252677
|
+
if (identity3.isNode(value4)) {
|
|
250589
252678
|
vsb = !!value4.spaceBefore;
|
|
250590
252679
|
vcb = value4.commentBefore;
|
|
250591
252680
|
valueComment = value4.comment;
|
|
@@ -250597,10 +252686,10 @@ ${indent2}:`;
|
|
|
250597
252686
|
value4 = doc.createNode(value4);
|
|
250598
252687
|
}
|
|
250599
252688
|
ctx.implicitKey = false;
|
|
250600
|
-
if (!explicitKey && !keyComment &&
|
|
252689
|
+
if (!explicitKey && !keyComment && identity3.isScalar(value4))
|
|
250601
252690
|
ctx.indentAtStart = str.length + 1;
|
|
250602
252691
|
chompKeep = false;
|
|
250603
|
-
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey &&
|
|
252692
|
+
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity3.isSeq(value4) && !value4.flow && !value4.tag && !value4.anchor) {
|
|
250604
252693
|
ctx.indent = ctx.indent.substring(2);
|
|
250605
252694
|
}
|
|
250606
252695
|
let valueCommentDone = false;
|
|
@@ -250624,7 +252713,7 @@ ${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
|
250624
252713
|
ws += `
|
|
250625
252714
|
${ctx.indent}`;
|
|
250626
252715
|
}
|
|
250627
|
-
} else if (!explicitKey &&
|
|
252716
|
+
} else if (!explicitKey && identity3.isCollection(value4)) {
|
|
250628
252717
|
const vs0 = valueStr[0];
|
|
250629
252718
|
const nl0 = valueStr.indexOf(`
|
|
250630
252719
|
`);
|
|
@@ -250683,7 +252772,7 @@ var require_log = __commonJS((exports) => {
|
|
|
250683
252772
|
|
|
250684
252773
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
250685
252774
|
var require_merge = __commonJS((exports) => {
|
|
250686
|
-
var
|
|
252775
|
+
var identity3 = require_identity();
|
|
250687
252776
|
var Scalar = require_Scalar();
|
|
250688
252777
|
var MERGE_KEY = "<<";
|
|
250689
252778
|
var merge3 = {
|
|
@@ -250696,10 +252785,10 @@ var require_merge = __commonJS((exports) => {
|
|
|
250696
252785
|
}),
|
|
250697
252786
|
stringify: () => MERGE_KEY
|
|
250698
252787
|
};
|
|
250699
|
-
var isMergeKey = (ctx, key2) => (merge3.identify(key2) ||
|
|
252788
|
+
var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity3.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
|
250700
252789
|
function addMergeToJSMap(ctx, map3, value4) {
|
|
250701
|
-
value4 = ctx &&
|
|
250702
|
-
if (
|
|
252790
|
+
value4 = ctx && identity3.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
|
252791
|
+
if (identity3.isSeq(value4))
|
|
250703
252792
|
for (const it2 of value4.items)
|
|
250704
252793
|
mergeValue(ctx, map3, it2);
|
|
250705
252794
|
else if (Array.isArray(value4))
|
|
@@ -250709,8 +252798,8 @@ var require_merge = __commonJS((exports) => {
|
|
|
250709
252798
|
mergeValue(ctx, map3, value4);
|
|
250710
252799
|
}
|
|
250711
252800
|
function mergeValue(ctx, map3, value4) {
|
|
250712
|
-
const source = ctx &&
|
|
250713
|
-
if (!
|
|
252801
|
+
const source = ctx && identity3.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
|
252802
|
+
if (!identity3.isMap(source))
|
|
250714
252803
|
throw new Error("Merge sources must be maps or map aliases");
|
|
250715
252804
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
250716
252805
|
for (const [key2, value5] of srcMap) {
|
|
@@ -250740,10 +252829,10 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
250740
252829
|
var log = require_log();
|
|
250741
252830
|
var merge3 = require_merge();
|
|
250742
252831
|
var stringify3 = require_stringify();
|
|
250743
|
-
var
|
|
252832
|
+
var identity3 = require_identity();
|
|
250744
252833
|
var toJS = require_toJS();
|
|
250745
252834
|
function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
|
|
250746
|
-
if (
|
|
252835
|
+
if (identity3.isNode(key2) && key2.addToJSMap)
|
|
250747
252836
|
key2.addToJSMap(ctx, map3, value4);
|
|
250748
252837
|
else if (merge3.isMergeKey(ctx, key2))
|
|
250749
252838
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
|
@@ -250774,7 +252863,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
250774
252863
|
return "";
|
|
250775
252864
|
if (typeof jsKey !== "object")
|
|
250776
252865
|
return String(jsKey);
|
|
250777
|
-
if (
|
|
252866
|
+
if (identity3.isNode(key2) && ctx?.doc) {
|
|
250778
252867
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
|
250779
252868
|
strCtx.anchors = new Set;
|
|
250780
252869
|
for (const node of ctx.anchors.keys())
|
|
@@ -250801,7 +252890,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
250801
252890
|
var createNode = require_createNode();
|
|
250802
252891
|
var stringifyPair2 = require_stringifyPair();
|
|
250803
252892
|
var addPairToJSMap = require_addPairToJSMap();
|
|
250804
|
-
var
|
|
252893
|
+
var identity3 = require_identity();
|
|
250805
252894
|
function createPair(key2, value4, ctx) {
|
|
250806
252895
|
const k5 = createNode.createNode(key2, undefined, ctx);
|
|
250807
252896
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
|
@@ -250810,15 +252899,15 @@ var require_Pair = __commonJS((exports) => {
|
|
|
250810
252899
|
|
|
250811
252900
|
class Pair {
|
|
250812
252901
|
constructor(key2, value4 = null) {
|
|
250813
|
-
Object.defineProperty(this,
|
|
252902
|
+
Object.defineProperty(this, identity3.NODE_TYPE, { value: identity3.PAIR });
|
|
250814
252903
|
this.key = key2;
|
|
250815
252904
|
this.value = value4;
|
|
250816
252905
|
}
|
|
250817
252906
|
clone(schema) {
|
|
250818
252907
|
let { key: key2, value: value4 } = this;
|
|
250819
|
-
if (
|
|
252908
|
+
if (identity3.isNode(key2))
|
|
250820
252909
|
key2 = key2.clone(schema);
|
|
250821
|
-
if (
|
|
252910
|
+
if (identity3.isNode(value4))
|
|
250822
252911
|
value4 = value4.clone(schema);
|
|
250823
252912
|
return new Pair(key2, value4);
|
|
250824
252913
|
}
|
|
@@ -250836,7 +252925,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
250836
252925
|
|
|
250837
252926
|
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
250838
252927
|
var require_stringifyCollection = __commonJS((exports) => {
|
|
250839
|
-
var
|
|
252928
|
+
var identity3 = require_identity();
|
|
250840
252929
|
var stringify3 = require_stringify();
|
|
250841
252930
|
var stringifyComment = require_stringifyComment();
|
|
250842
252931
|
function stringifyCollection(collection, ctx, options) {
|
|
@@ -250852,14 +252941,14 @@ var require_stringifyCollection = __commonJS((exports) => {
|
|
|
250852
252941
|
for (let i6 = 0;i6 < items.length; ++i6) {
|
|
250853
252942
|
const item = items[i6];
|
|
250854
252943
|
let comment2 = null;
|
|
250855
|
-
if (
|
|
252944
|
+
if (identity3.isNode(item)) {
|
|
250856
252945
|
if (!chompKeep && item.spaceBefore)
|
|
250857
252946
|
lines2.push("");
|
|
250858
252947
|
addCommentBefore(ctx, lines2, item.commentBefore, chompKeep);
|
|
250859
252948
|
if (item.comment)
|
|
250860
252949
|
comment2 = item.comment;
|
|
250861
|
-
} else if (
|
|
250862
|
-
const ik =
|
|
252950
|
+
} else if (identity3.isPair(item)) {
|
|
252951
|
+
const ik = identity3.isNode(item.key) ? item.key : null;
|
|
250863
252952
|
if (ik) {
|
|
250864
252953
|
if (!chompKeep && ik.spaceBefore)
|
|
250865
252954
|
lines2.push("");
|
|
@@ -250909,14 +252998,14 @@ ${indent2}${line}` : `
|
|
|
250909
252998
|
for (let i6 = 0;i6 < items.length; ++i6) {
|
|
250910
252999
|
const item = items[i6];
|
|
250911
253000
|
let comment = null;
|
|
250912
|
-
if (
|
|
253001
|
+
if (identity3.isNode(item)) {
|
|
250913
253002
|
if (item.spaceBefore)
|
|
250914
253003
|
lines2.push("");
|
|
250915
253004
|
addCommentBefore(ctx, lines2, item.commentBefore, false);
|
|
250916
253005
|
if (item.comment)
|
|
250917
253006
|
comment = item.comment;
|
|
250918
|
-
} else if (
|
|
250919
|
-
const ik =
|
|
253007
|
+
} else if (identity3.isPair(item)) {
|
|
253008
|
+
const ik = identity3.isNode(item.key) ? item.key : null;
|
|
250920
253009
|
if (ik) {
|
|
250921
253010
|
if (ik.spaceBefore)
|
|
250922
253011
|
lines2.push("");
|
|
@@ -250924,7 +253013,7 @@ ${indent2}${line}` : `
|
|
|
250924
253013
|
if (ik.comment)
|
|
250925
253014
|
reqNewline = true;
|
|
250926
253015
|
}
|
|
250927
|
-
const iv =
|
|
253016
|
+
const iv = identity3.isNode(item.value) ? item.value : null;
|
|
250928
253017
|
if (iv) {
|
|
250929
253018
|
if (iv.comment)
|
|
250930
253019
|
comment = iv.comment;
|
|
@@ -250984,16 +253073,16 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
250984
253073
|
var stringifyCollection = require_stringifyCollection();
|
|
250985
253074
|
var addPairToJSMap = require_addPairToJSMap();
|
|
250986
253075
|
var Collection = require_Collection();
|
|
250987
|
-
var
|
|
253076
|
+
var identity3 = require_identity();
|
|
250988
253077
|
var Pair = require_Pair();
|
|
250989
253078
|
var Scalar = require_Scalar();
|
|
250990
253079
|
function findPair(items, key2) {
|
|
250991
|
-
const k5 =
|
|
253080
|
+
const k5 = identity3.isScalar(key2) ? key2.value : key2;
|
|
250992
253081
|
for (const it2 of items) {
|
|
250993
|
-
if (
|
|
253082
|
+
if (identity3.isPair(it2)) {
|
|
250994
253083
|
if (it2.key === key2 || it2.key === k5)
|
|
250995
253084
|
return it2;
|
|
250996
|
-
if (
|
|
253085
|
+
if (identity3.isScalar(it2.key) && it2.key.value === k5)
|
|
250997
253086
|
return it2;
|
|
250998
253087
|
}
|
|
250999
253088
|
}
|
|
@@ -251005,7 +253094,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251005
253094
|
return "tag:yaml.org,2002:map";
|
|
251006
253095
|
}
|
|
251007
253096
|
constructor(schema) {
|
|
251008
|
-
super(
|
|
253097
|
+
super(identity3.MAP, schema);
|
|
251009
253098
|
this.items = [];
|
|
251010
253099
|
}
|
|
251011
253100
|
static from(schema, obj, ctx) {
|
|
@@ -251033,7 +253122,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251033
253122
|
}
|
|
251034
253123
|
add(pair, overwrite) {
|
|
251035
253124
|
let _pair;
|
|
251036
|
-
if (
|
|
253125
|
+
if (identity3.isPair(pair))
|
|
251037
253126
|
_pair = pair;
|
|
251038
253127
|
else if (!pair || typeof pair !== "object" || !("key" in pair)) {
|
|
251039
253128
|
_pair = new Pair.Pair(pair, pair?.value);
|
|
@@ -251044,7 +253133,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251044
253133
|
if (prev) {
|
|
251045
253134
|
if (!overwrite)
|
|
251046
253135
|
throw new Error(`Key ${_pair.key} already set`);
|
|
251047
|
-
if (
|
|
253136
|
+
if (identity3.isScalar(prev.value) && Scalar.isScalarValue(_pair.value))
|
|
251048
253137
|
prev.value.value = _pair.value;
|
|
251049
253138
|
else
|
|
251050
253139
|
prev.value = _pair.value;
|
|
@@ -251068,7 +253157,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251068
253157
|
get(key2, keepScalar) {
|
|
251069
253158
|
const it2 = findPair(this.items, key2);
|
|
251070
253159
|
const node = it2?.value;
|
|
251071
|
-
return (!keepScalar &&
|
|
253160
|
+
return (!keepScalar && identity3.isScalar(node) ? node.value : node) ?? undefined;
|
|
251072
253161
|
}
|
|
251073
253162
|
has(key2) {
|
|
251074
253163
|
return !!findPair(this.items, key2);
|
|
@@ -251088,7 +253177,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251088
253177
|
if (!ctx)
|
|
251089
253178
|
return JSON.stringify(this);
|
|
251090
253179
|
for (const item of this.items) {
|
|
251091
|
-
if (!
|
|
253180
|
+
if (!identity3.isPair(item))
|
|
251092
253181
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`);
|
|
251093
253182
|
}
|
|
251094
253183
|
if (!ctx.allNullValues && this.hasAllNullValues(false))
|
|
@@ -251108,7 +253197,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251108
253197
|
|
|
251109
253198
|
// ../../node_modules/yaml/dist/schema/common/map.js
|
|
251110
253199
|
var require_map = __commonJS((exports) => {
|
|
251111
|
-
var
|
|
253200
|
+
var identity3 = require_identity();
|
|
251112
253201
|
var YAMLMap = require_YAMLMap();
|
|
251113
253202
|
var map3 = {
|
|
251114
253203
|
collection: "map",
|
|
@@ -251116,7 +253205,7 @@ var require_map = __commonJS((exports) => {
|
|
|
251116
253205
|
nodeClass: YAMLMap.YAMLMap,
|
|
251117
253206
|
tag: "tag:yaml.org,2002:map",
|
|
251118
253207
|
resolve(map4, onError) {
|
|
251119
|
-
if (!
|
|
253208
|
+
if (!identity3.isMap(map4))
|
|
251120
253209
|
onError("Expected a mapping for this tag");
|
|
251121
253210
|
return map4;
|
|
251122
253211
|
},
|
|
@@ -251130,7 +253219,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251130
253219
|
var createNode = require_createNode();
|
|
251131
253220
|
var stringifyCollection = require_stringifyCollection();
|
|
251132
253221
|
var Collection = require_Collection();
|
|
251133
|
-
var
|
|
253222
|
+
var identity3 = require_identity();
|
|
251134
253223
|
var Scalar = require_Scalar();
|
|
251135
253224
|
var toJS = require_toJS();
|
|
251136
253225
|
|
|
@@ -251139,7 +253228,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251139
253228
|
return "tag:yaml.org,2002:seq";
|
|
251140
253229
|
}
|
|
251141
253230
|
constructor(schema) {
|
|
251142
|
-
super(
|
|
253231
|
+
super(identity3.SEQ, schema);
|
|
251143
253232
|
this.items = [];
|
|
251144
253233
|
}
|
|
251145
253234
|
add(value4) {
|
|
@@ -251157,7 +253246,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251157
253246
|
if (typeof idx !== "number")
|
|
251158
253247
|
return;
|
|
251159
253248
|
const it2 = this.items[idx];
|
|
251160
|
-
return !keepScalar &&
|
|
253249
|
+
return !keepScalar && identity3.isScalar(it2) ? it2.value : it2;
|
|
251161
253250
|
}
|
|
251162
253251
|
has(key2) {
|
|
251163
253252
|
const idx = asItemIndex(key2);
|
|
@@ -251168,7 +253257,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251168
253257
|
if (typeof idx !== "number")
|
|
251169
253258
|
throw new Error(`Expected a valid index, not ${key2}.`);
|
|
251170
253259
|
const prev = this.items[idx];
|
|
251171
|
-
if (
|
|
253260
|
+
if (identity3.isScalar(prev) && Scalar.isScalarValue(value4))
|
|
251172
253261
|
prev.value = value4;
|
|
251173
253262
|
else
|
|
251174
253263
|
this.items[idx] = value4;
|
|
@@ -251210,7 +253299,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251210
253299
|
}
|
|
251211
253300
|
}
|
|
251212
253301
|
function asItemIndex(key2) {
|
|
251213
|
-
let idx =
|
|
253302
|
+
let idx = identity3.isScalar(key2) ? key2.value : key2;
|
|
251214
253303
|
if (idx && typeof idx === "string")
|
|
251215
253304
|
idx = Number(idx);
|
|
251216
253305
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
@@ -251220,7 +253309,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251220
253309
|
|
|
251221
253310
|
// ../../node_modules/yaml/dist/schema/common/seq.js
|
|
251222
253311
|
var require_seq = __commonJS((exports) => {
|
|
251223
|
-
var
|
|
253312
|
+
var identity3 = require_identity();
|
|
251224
253313
|
var YAMLSeq = require_YAMLSeq();
|
|
251225
253314
|
var seq = {
|
|
251226
253315
|
collection: "seq",
|
|
@@ -251228,7 +253317,7 @@ var require_seq = __commonJS((exports) => {
|
|
|
251228
253317
|
nodeClass: YAMLSeq.YAMLSeq,
|
|
251229
253318
|
tag: "tag:yaml.org,2002:seq",
|
|
251230
253319
|
resolve(seq2, onError) {
|
|
251231
|
-
if (!
|
|
253320
|
+
if (!identity3.isSeq(seq2))
|
|
251232
253321
|
onError("Expected a sequence for this tag");
|
|
251233
253322
|
return seq2;
|
|
251234
253323
|
},
|
|
@@ -251543,17 +253632,17 @@ var require_binary = __commonJS((exports) => {
|
|
|
251543
253632
|
|
|
251544
253633
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
251545
253634
|
var require_pairs = __commonJS((exports) => {
|
|
251546
|
-
var
|
|
253635
|
+
var identity3 = require_identity();
|
|
251547
253636
|
var Pair = require_Pair();
|
|
251548
253637
|
var Scalar = require_Scalar();
|
|
251549
253638
|
var YAMLSeq = require_YAMLSeq();
|
|
251550
253639
|
function resolvePairs(seq, onError) {
|
|
251551
|
-
if (
|
|
253640
|
+
if (identity3.isSeq(seq)) {
|
|
251552
253641
|
for (let i6 = 0;i6 < seq.items.length; ++i6) {
|
|
251553
253642
|
let item = seq.items[i6];
|
|
251554
|
-
if (
|
|
253643
|
+
if (identity3.isPair(item))
|
|
251555
253644
|
continue;
|
|
251556
|
-
else if (
|
|
253645
|
+
else if (identity3.isMap(item)) {
|
|
251557
253646
|
if (item.items.length > 1)
|
|
251558
253647
|
onError("Each pair must have its own sequence indicator");
|
|
251559
253648
|
const pair = item.items[0] || new Pair.Pair(new Scalar.Scalar(null));
|
|
@@ -251567,7 +253656,7 @@ ${cn.comment}` : item.comment;
|
|
|
251567
253656
|
}
|
|
251568
253657
|
item = pair;
|
|
251569
253658
|
}
|
|
251570
|
-
seq.items[i6] =
|
|
253659
|
+
seq.items[i6] = identity3.isPair(item) ? item : new Pair.Pair(item);
|
|
251571
253660
|
}
|
|
251572
253661
|
} else
|
|
251573
253662
|
onError("Expected a sequence for this tag");
|
|
@@ -251618,7 +253707,7 @@ ${cn.comment}` : item.comment;
|
|
|
251618
253707
|
|
|
251619
253708
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
251620
253709
|
var require_omap = __commonJS((exports) => {
|
|
251621
|
-
var
|
|
253710
|
+
var identity3 = require_identity();
|
|
251622
253711
|
var toJS = require_toJS();
|
|
251623
253712
|
var YAMLMap = require_YAMLMap();
|
|
251624
253713
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -251642,7 +253731,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
251642
253731
|
ctx.onCreate(map3);
|
|
251643
253732
|
for (const pair of this.items) {
|
|
251644
253733
|
let key2, value4;
|
|
251645
|
-
if (
|
|
253734
|
+
if (identity3.isPair(pair)) {
|
|
251646
253735
|
key2 = toJS.toJS(pair.key, "", ctx);
|
|
251647
253736
|
value4 = toJS.toJS(pair.value, key2, ctx);
|
|
251648
253737
|
} else {
|
|
@@ -251672,7 +253761,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
251672
253761
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
|
251673
253762
|
const seenKeys = [];
|
|
251674
253763
|
for (const { key: key2 } of pairs$1.items) {
|
|
251675
|
-
if (
|
|
253764
|
+
if (identity3.isScalar(key2)) {
|
|
251676
253765
|
if (seenKeys.includes(key2.value)) {
|
|
251677
253766
|
onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
|
|
251678
253767
|
} else {
|
|
@@ -251841,7 +253930,7 @@ var require_int2 = __commonJS((exports) => {
|
|
|
251841
253930
|
|
|
251842
253931
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
251843
253932
|
var require_set = __commonJS((exports) => {
|
|
251844
|
-
var
|
|
253933
|
+
var identity3 = require_identity();
|
|
251845
253934
|
var Pair = require_Pair();
|
|
251846
253935
|
var YAMLMap = require_YAMLMap();
|
|
251847
253936
|
|
|
@@ -251852,7 +253941,7 @@ var require_set = __commonJS((exports) => {
|
|
|
251852
253941
|
}
|
|
251853
253942
|
add(key2) {
|
|
251854
253943
|
let pair;
|
|
251855
|
-
if (
|
|
253944
|
+
if (identity3.isPair(key2))
|
|
251856
253945
|
pair = key2;
|
|
251857
253946
|
else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
|
|
251858
253947
|
pair = new Pair.Pair(key2.key, null);
|
|
@@ -251864,7 +253953,7 @@ var require_set = __commonJS((exports) => {
|
|
|
251864
253953
|
}
|
|
251865
253954
|
get(key2, keepPair) {
|
|
251866
253955
|
const pair = YAMLMap.findPair(this.items, key2);
|
|
251867
|
-
return !keepPair &&
|
|
253956
|
+
return !keepPair && identity3.isPair(pair) ? identity3.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
|
251868
253957
|
}
|
|
251869
253958
|
set(key2, value4) {
|
|
251870
253959
|
if (typeof value4 !== "boolean")
|
|
@@ -251908,7 +253997,7 @@ var require_set = __commonJS((exports) => {
|
|
|
251908
253997
|
tag: "tag:yaml.org,2002:set",
|
|
251909
253998
|
createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
|
|
251910
253999
|
resolve(map3, onError) {
|
|
251911
|
-
if (
|
|
254000
|
+
if (identity3.isMap(map3)) {
|
|
251912
254001
|
if (map3.hasAllNullValues(true))
|
|
251913
254002
|
return Object.assign(new YAMLSet, map3);
|
|
251914
254003
|
else
|
|
@@ -252138,7 +254227,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
252138
254227
|
|
|
252139
254228
|
// ../../node_modules/yaml/dist/schema/Schema.js
|
|
252140
254229
|
var require_Schema = __commonJS((exports) => {
|
|
252141
|
-
var
|
|
254230
|
+
var identity3 = require_identity();
|
|
252142
254231
|
var map3 = require_map();
|
|
252143
254232
|
var seq = require_seq();
|
|
252144
254233
|
var string = require_string();
|
|
@@ -252152,9 +254241,9 @@ var require_Schema = __commonJS((exports) => {
|
|
|
252152
254241
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
252153
254242
|
this.tags = tags.getTags(customTags, this.name, merge3);
|
|
252154
254243
|
this.toStringOptions = toStringDefaults ?? null;
|
|
252155
|
-
Object.defineProperty(this,
|
|
252156
|
-
Object.defineProperty(this,
|
|
252157
|
-
Object.defineProperty(this,
|
|
254244
|
+
Object.defineProperty(this, identity3.MAP, { value: map3.map });
|
|
254245
|
+
Object.defineProperty(this, identity3.SCALAR, { value: string.string });
|
|
254246
|
+
Object.defineProperty(this, identity3.SEQ, { value: seq.seq });
|
|
252158
254247
|
this.sortMapEntries = typeof sortMapEntries === "function" ? sortMapEntries : sortMapEntries === true ? sortMapEntriesByKey : null;
|
|
252159
254248
|
}
|
|
252160
254249
|
clone() {
|
|
@@ -252168,7 +254257,7 @@ var require_Schema = __commonJS((exports) => {
|
|
|
252168
254257
|
|
|
252169
254258
|
// ../../node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
252170
254259
|
var require_stringifyDocument = __commonJS((exports) => {
|
|
252171
|
-
var
|
|
254260
|
+
var identity3 = require_identity();
|
|
252172
254261
|
var stringify3 = require_stringify();
|
|
252173
254262
|
var stringifyComment = require_stringifyComment();
|
|
252174
254263
|
function stringifyDocument2(doc, options) {
|
|
@@ -252195,7 +254284,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
252195
254284
|
let chompKeep = false;
|
|
252196
254285
|
let contentComment = null;
|
|
252197
254286
|
if (doc.contents) {
|
|
252198
|
-
if (
|
|
254287
|
+
if (identity3.isNode(doc.contents)) {
|
|
252199
254288
|
if (doc.contents.spaceBefore && hasDirectives)
|
|
252200
254289
|
lines2.push("");
|
|
252201
254290
|
if (doc.contents.commentBefore) {
|
|
@@ -252250,7 +254339,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
252250
254339
|
var require_Document = __commonJS((exports) => {
|
|
252251
254340
|
var Alias = require_Alias();
|
|
252252
254341
|
var Collection = require_Collection();
|
|
252253
|
-
var
|
|
254342
|
+
var identity3 = require_identity();
|
|
252254
254343
|
var Pair = require_Pair();
|
|
252255
254344
|
var toJS = require_toJS();
|
|
252256
254345
|
var Schema = require_Schema();
|
|
@@ -252266,7 +254355,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
252266
254355
|
this.comment = null;
|
|
252267
254356
|
this.errors = [];
|
|
252268
254357
|
this.warnings = [];
|
|
252269
|
-
Object.defineProperty(this,
|
|
254358
|
+
Object.defineProperty(this, identity3.NODE_TYPE, { value: identity3.DOC });
|
|
252270
254359
|
let _replacer = null;
|
|
252271
254360
|
if (typeof replacer === "function" || Array.isArray(replacer)) {
|
|
252272
254361
|
_replacer = replacer;
|
|
@@ -252297,7 +254386,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
252297
254386
|
}
|
|
252298
254387
|
clone() {
|
|
252299
254388
|
const copy = Object.create(Document.prototype, {
|
|
252300
|
-
[
|
|
254389
|
+
[identity3.NODE_TYPE]: { value: identity3.DOC }
|
|
252301
254390
|
});
|
|
252302
254391
|
copy.commentBefore = this.commentBefore;
|
|
252303
254392
|
copy.comment = this.comment;
|
|
@@ -252307,7 +254396,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
252307
254396
|
if (this.directives)
|
|
252308
254397
|
copy.directives = this.directives.clone();
|
|
252309
254398
|
copy.schema = this.schema.clone();
|
|
252310
|
-
copy.contents =
|
|
254399
|
+
copy.contents = identity3.isNode(this.contents) ? this.contents.clone(copy.schema) : this.contents;
|
|
252311
254400
|
if (this.range)
|
|
252312
254401
|
copy.range = this.range.slice();
|
|
252313
254402
|
return copy;
|
|
@@ -252316,9 +254405,9 @@ var require_Document = __commonJS((exports) => {
|
|
|
252316
254405
|
if (assertCollection(this.contents))
|
|
252317
254406
|
this.contents.add(value4);
|
|
252318
254407
|
}
|
|
252319
|
-
addIn(
|
|
254408
|
+
addIn(path8, value4) {
|
|
252320
254409
|
if (assertCollection(this.contents))
|
|
252321
|
-
this.contents.addIn(
|
|
254410
|
+
this.contents.addIn(path8, value4);
|
|
252322
254411
|
}
|
|
252323
254412
|
createAlias(node, name2) {
|
|
252324
254413
|
if (!node.anchor) {
|
|
@@ -252354,7 +254443,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
252354
254443
|
sourceObjects
|
|
252355
254444
|
};
|
|
252356
254445
|
const node = createNode.createNode(value4, tag, ctx);
|
|
252357
|
-
if (flow &&
|
|
254446
|
+
if (flow && identity3.isCollection(node))
|
|
252358
254447
|
node.flow = true;
|
|
252359
254448
|
setAnchors();
|
|
252360
254449
|
return node;
|
|
@@ -252367,30 +254456,30 @@ var require_Document = __commonJS((exports) => {
|
|
|
252367
254456
|
delete(key2) {
|
|
252368
254457
|
return assertCollection(this.contents) ? this.contents.delete(key2) : false;
|
|
252369
254458
|
}
|
|
252370
|
-
deleteIn(
|
|
252371
|
-
if (Collection.isEmptyPath(
|
|
254459
|
+
deleteIn(path8) {
|
|
254460
|
+
if (Collection.isEmptyPath(path8)) {
|
|
252372
254461
|
if (this.contents == null)
|
|
252373
254462
|
return false;
|
|
252374
254463
|
this.contents = null;
|
|
252375
254464
|
return true;
|
|
252376
254465
|
}
|
|
252377
|
-
return assertCollection(this.contents) ? this.contents.deleteIn(
|
|
254466
|
+
return assertCollection(this.contents) ? this.contents.deleteIn(path8) : false;
|
|
252378
254467
|
}
|
|
252379
254468
|
get(key2, keepScalar) {
|
|
252380
|
-
return
|
|
254469
|
+
return identity3.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
|
|
252381
254470
|
}
|
|
252382
|
-
getIn(
|
|
252383
|
-
if (Collection.isEmptyPath(
|
|
252384
|
-
return !keepScalar &&
|
|
252385
|
-
return
|
|
254471
|
+
getIn(path8, keepScalar) {
|
|
254472
|
+
if (Collection.isEmptyPath(path8))
|
|
254473
|
+
return !keepScalar && identity3.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
254474
|
+
return identity3.isCollection(this.contents) ? this.contents.getIn(path8, keepScalar) : undefined;
|
|
252386
254475
|
}
|
|
252387
254476
|
has(key2) {
|
|
252388
|
-
return
|
|
254477
|
+
return identity3.isCollection(this.contents) ? this.contents.has(key2) : false;
|
|
252389
254478
|
}
|
|
252390
|
-
hasIn(
|
|
252391
|
-
if (Collection.isEmptyPath(
|
|
254479
|
+
hasIn(path8) {
|
|
254480
|
+
if (Collection.isEmptyPath(path8))
|
|
252392
254481
|
return this.contents !== undefined;
|
|
252393
|
-
return
|
|
254482
|
+
return identity3.isCollection(this.contents) ? this.contents.hasIn(path8) : false;
|
|
252394
254483
|
}
|
|
252395
254484
|
set(key2, value4) {
|
|
252396
254485
|
if (this.contents == null) {
|
|
@@ -252399,13 +254488,13 @@ var require_Document = __commonJS((exports) => {
|
|
|
252399
254488
|
this.contents.set(key2, value4);
|
|
252400
254489
|
}
|
|
252401
254490
|
}
|
|
252402
|
-
setIn(
|
|
252403
|
-
if (Collection.isEmptyPath(
|
|
254491
|
+
setIn(path8, value4) {
|
|
254492
|
+
if (Collection.isEmptyPath(path8)) {
|
|
252404
254493
|
this.contents = value4;
|
|
252405
254494
|
} else if (this.contents == null) {
|
|
252406
|
-
this.contents = Collection.collectionFromPath(this.schema, Array.from(
|
|
254495
|
+
this.contents = Collection.collectionFromPath(this.schema, Array.from(path8), value4);
|
|
252407
254496
|
} else if (assertCollection(this.contents)) {
|
|
252408
|
-
this.contents.setIn(
|
|
254497
|
+
this.contents.setIn(path8, value4);
|
|
252409
254498
|
}
|
|
252410
254499
|
}
|
|
252411
254500
|
setSchema(version, options = {}) {
|
|
@@ -252474,7 +254563,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
252474
254563
|
}
|
|
252475
254564
|
}
|
|
252476
254565
|
function assertCollection(contents) {
|
|
252477
|
-
if (
|
|
254566
|
+
if (identity3.isCollection(contents))
|
|
252478
254567
|
return true;
|
|
252479
254568
|
throw new Error("Expected a YAML collection as document contents");
|
|
252480
254569
|
}
|
|
@@ -252735,12 +254824,12 @@ var require_util_flow_indent_check = __commonJS((exports) => {
|
|
|
252735
254824
|
|
|
252736
254825
|
// ../../node_modules/yaml/dist/compose/util-map-includes.js
|
|
252737
254826
|
var require_util_map_includes = __commonJS((exports) => {
|
|
252738
|
-
var
|
|
254827
|
+
var identity3 = require_identity();
|
|
252739
254828
|
function mapIncludes(ctx, items, search) {
|
|
252740
254829
|
const { uniqueKeys } = ctx.options;
|
|
252741
254830
|
if (uniqueKeys === false)
|
|
252742
254831
|
return false;
|
|
252743
|
-
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a7, b4) => a7 === b4 ||
|
|
254832
|
+
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a7, b4) => a7 === b4 || identity3.isScalar(a7) && identity3.isScalar(b4) && a7.value === b4.value;
|
|
252744
254833
|
return items.some((pair) => isEqual(pair.key, search));
|
|
252745
254834
|
}
|
|
252746
254835
|
exports.mapIncludes = mapIncludes;
|
|
@@ -252943,7 +255032,7 @@ var require_resolve_end = __commonJS((exports) => {
|
|
|
252943
255032
|
|
|
252944
255033
|
// ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
252945
255034
|
var require_resolve_flow_collection = __commonJS((exports) => {
|
|
252946
|
-
var
|
|
255035
|
+
var identity3 = require_identity();
|
|
252947
255036
|
var Pair = require_Pair();
|
|
252948
255037
|
var YAMLMap = require_YAMLMap();
|
|
252949
255038
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -253019,7 +255108,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
253019
255108
|
}
|
|
253020
255109
|
if (prevItemComment) {
|
|
253021
255110
|
let prev = coll.items[coll.items.length - 1];
|
|
253022
|
-
if (
|
|
255111
|
+
if (identity3.isPair(prev))
|
|
253023
255112
|
prev = prev.value ?? prev.key;
|
|
253024
255113
|
if (prev.comment)
|
|
253025
255114
|
prev.comment += `
|
|
@@ -253134,7 +255223,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
253134
255223
|
|
|
253135
255224
|
// ../../node_modules/yaml/dist/compose/compose-collection.js
|
|
253136
255225
|
var require_compose_collection = __commonJS((exports) => {
|
|
253137
|
-
var
|
|
255226
|
+
var identity3 = require_identity();
|
|
253138
255227
|
var Scalar = require_Scalar();
|
|
253139
255228
|
var YAMLMap = require_YAMLMap();
|
|
253140
255229
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -253184,7 +255273,7 @@ var require_compose_collection = __commonJS((exports) => {
|
|
|
253184
255273
|
}
|
|
253185
255274
|
const coll = resolveCollection(CN, ctx, token, onError, tagName, tag);
|
|
253186
255275
|
const res = tag.resolve?.(coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options) ?? coll;
|
|
253187
|
-
const node =
|
|
255276
|
+
const node = identity3.isNode(res) ? res : new Scalar.Scalar(res);
|
|
253188
255277
|
node.range = coll.range;
|
|
253189
255278
|
node.tag = tagName;
|
|
253190
255279
|
if (tag?.format)
|
|
@@ -253462,9 +255551,9 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
253462
255551
|
function foldLines(source) {
|
|
253463
255552
|
let first, line;
|
|
253464
255553
|
try {
|
|
253465
|
-
first = new RegExp(`(.*?)(?<![
|
|
255554
|
+
first = new RegExp(`(.*?)(?<![ \t])[ \t]*\r?
|
|
253466
255555
|
`, "sy");
|
|
253467
|
-
line = new RegExp(`[
|
|
255556
|
+
line = new RegExp(`[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?
|
|
253468
255557
|
`, "sy");
|
|
253469
255558
|
} catch {
|
|
253470
255559
|
first = /(.*?)[ \t]*\r?\n/sy;
|
|
@@ -253605,7 +255694,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
253605
255694
|
|
|
253606
255695
|
// ../../node_modules/yaml/dist/compose/compose-scalar.js
|
|
253607
255696
|
var require_compose_scalar = __commonJS((exports) => {
|
|
253608
|
-
var
|
|
255697
|
+
var identity3 = require_identity();
|
|
253609
255698
|
var Scalar = require_Scalar();
|
|
253610
255699
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
253611
255700
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -253614,17 +255703,17 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
253614
255703
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
253615
255704
|
let tag;
|
|
253616
255705
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
253617
|
-
tag = ctx.schema[
|
|
255706
|
+
tag = ctx.schema[identity3.SCALAR];
|
|
253618
255707
|
} else if (tagName)
|
|
253619
255708
|
tag = findScalarTagByName(ctx.schema, value4, tagName, tagToken, onError);
|
|
253620
255709
|
else if (token.type === "scalar")
|
|
253621
255710
|
tag = findScalarTagByTest(ctx, value4, token, onError);
|
|
253622
255711
|
else
|
|
253623
|
-
tag = ctx.schema[
|
|
255712
|
+
tag = ctx.schema[identity3.SCALAR];
|
|
253624
255713
|
let scalar;
|
|
253625
255714
|
try {
|
|
253626
255715
|
const res = tag.resolve(value4, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
|
|
253627
|
-
scalar =
|
|
255716
|
+
scalar = identity3.isScalar(res) ? res : new Scalar.Scalar(res);
|
|
253628
255717
|
} catch (error5) {
|
|
253629
255718
|
const msg = error5 instanceof Error ? error5.message : String(error5);
|
|
253630
255719
|
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
@@ -253644,7 +255733,7 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
253644
255733
|
}
|
|
253645
255734
|
function findScalarTagByName(schema, value4, tagName, tagToken, onError) {
|
|
253646
255735
|
if (tagName === "!")
|
|
253647
|
-
return schema[
|
|
255736
|
+
return schema[identity3.SCALAR];
|
|
253648
255737
|
const matchWithTest = [];
|
|
253649
255738
|
for (const tag of schema.tags) {
|
|
253650
255739
|
if (!tag.collection && tag.tag === tagName) {
|
|
@@ -253663,12 +255752,12 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
253663
255752
|
return kt2;
|
|
253664
255753
|
}
|
|
253665
255754
|
onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str");
|
|
253666
|
-
return schema[
|
|
255755
|
+
return schema[identity3.SCALAR];
|
|
253667
255756
|
}
|
|
253668
255757
|
function findScalarTagByTest({ atKey, directives: directives4, schema }, value4, token, onError) {
|
|
253669
|
-
const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value4)) || schema[
|
|
255758
|
+
const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value4)) || schema[identity3.SCALAR];
|
|
253670
255759
|
if (schema.compat) {
|
|
253671
|
-
const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value4)) ?? schema[
|
|
255760
|
+
const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value4)) ?? schema[identity3.SCALAR];
|
|
253672
255761
|
if (tag.tag !== compat.tag) {
|
|
253673
255762
|
const ts = directives4.tagString(tag.tag);
|
|
253674
255763
|
const cs = directives4.tagString(compat.tag);
|
|
@@ -253712,7 +255801,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
|
253712
255801
|
// ../../node_modules/yaml/dist/compose/compose-node.js
|
|
253713
255802
|
var require_compose_node = __commonJS((exports) => {
|
|
253714
255803
|
var Alias = require_Alias();
|
|
253715
|
-
var
|
|
255804
|
+
var identity3 = require_identity();
|
|
253716
255805
|
var composeCollection = require_compose_collection();
|
|
253717
255806
|
var composeScalar = require_compose_scalar();
|
|
253718
255807
|
var resolveEnd = require_resolve_end();
|
|
@@ -253753,7 +255842,7 @@ var require_compose_node = __commonJS((exports) => {
|
|
|
253753
255842
|
}
|
|
253754
255843
|
if (anchor && node.anchor === "")
|
|
253755
255844
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
253756
|
-
if (atKey && ctx.options.stringKeys && (!
|
|
255845
|
+
if (atKey && ctx.options.stringKeys && (!identity3.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
|
|
253757
255846
|
const msg = "With stringKeys, all keys must be strings";
|
|
253758
255847
|
onError(tag ?? token, "NON_STRING_KEY", msg);
|
|
253759
255848
|
}
|
|
@@ -253853,7 +255942,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
253853
255942
|
var directives4 = require_directives2();
|
|
253854
255943
|
var Document = require_Document();
|
|
253855
255944
|
var errors2 = require_errors3();
|
|
253856
|
-
var
|
|
255945
|
+
var identity3 = require_identity();
|
|
253857
255946
|
var composeDoc = require_compose_doc();
|
|
253858
255947
|
var resolveEnd = require_resolve_end();
|
|
253859
255948
|
function getErrorPos(src) {
|
|
@@ -253919,9 +256008,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
253919
256008
|
${comment}` : comment;
|
|
253920
256009
|
} else if (afterEmptyLine || doc.directives.docStart || !dc) {
|
|
253921
256010
|
doc.commentBefore = comment;
|
|
253922
|
-
} else if (
|
|
256011
|
+
} else if (identity3.isCollection(dc) && !dc.flow && dc.items.length > 0) {
|
|
253923
256012
|
let it2 = dc.items[0];
|
|
253924
|
-
if (
|
|
256013
|
+
if (identity3.isPair(it2))
|
|
253925
256014
|
it2 = it2.key;
|
|
253926
256015
|
const cb = it2.commentBefore;
|
|
253927
256016
|
it2.commentBefore = cb ? `${comment}
|
|
@@ -254297,9 +256386,9 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
254297
256386
|
visit2.BREAK = BREAK;
|
|
254298
256387
|
visit2.SKIP = SKIP;
|
|
254299
256388
|
visit2.REMOVE = REMOVE;
|
|
254300
|
-
visit2.itemAtPath = (cst,
|
|
256389
|
+
visit2.itemAtPath = (cst, path8) => {
|
|
254301
256390
|
let item = cst;
|
|
254302
|
-
for (const [field2, index] of
|
|
256391
|
+
for (const [field2, index] of path8) {
|
|
254303
256392
|
const tok = item?.[field2];
|
|
254304
256393
|
if (tok && "items" in tok) {
|
|
254305
256394
|
item = tok.items[index];
|
|
@@ -254308,23 +256397,23 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
254308
256397
|
}
|
|
254309
256398
|
return item;
|
|
254310
256399
|
};
|
|
254311
|
-
visit2.parentCollection = (cst,
|
|
254312
|
-
const parent = visit2.itemAtPath(cst,
|
|
254313
|
-
const field2 =
|
|
256400
|
+
visit2.parentCollection = (cst, path8) => {
|
|
256401
|
+
const parent = visit2.itemAtPath(cst, path8.slice(0, -1));
|
|
256402
|
+
const field2 = path8[path8.length - 1][0];
|
|
254314
256403
|
const coll = parent?.[field2];
|
|
254315
256404
|
if (coll && "items" in coll)
|
|
254316
256405
|
return coll;
|
|
254317
256406
|
throw new Error("Parent collection not found");
|
|
254318
256407
|
};
|
|
254319
|
-
function _visit(
|
|
254320
|
-
let ctrl = visitor(item,
|
|
256408
|
+
function _visit(path8, item, visitor) {
|
|
256409
|
+
let ctrl = visitor(item, path8);
|
|
254321
256410
|
if (typeof ctrl === "symbol")
|
|
254322
256411
|
return ctrl;
|
|
254323
256412
|
for (const field2 of ["key", "value"]) {
|
|
254324
256413
|
const token = item[field2];
|
|
254325
256414
|
if (token && "items" in token) {
|
|
254326
256415
|
for (let i6 = 0;i6 < token.items.length; ++i6) {
|
|
254327
|
-
const ci = _visit(Object.freeze(
|
|
256416
|
+
const ci = _visit(Object.freeze(path8.concat([[field2, i6]])), token.items[i6], visitor);
|
|
254328
256417
|
if (typeof ci === "number")
|
|
254329
256418
|
i6 = ci - 1;
|
|
254330
256419
|
else if (ci === BREAK)
|
|
@@ -254335,10 +256424,10 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
254335
256424
|
}
|
|
254336
256425
|
}
|
|
254337
256426
|
if (typeof ctrl === "function" && field2 === "key")
|
|
254338
|
-
ctrl = ctrl(item,
|
|
256427
|
+
ctrl = ctrl(item, path8);
|
|
254339
256428
|
}
|
|
254340
256429
|
}
|
|
254341
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
256430
|
+
return typeof ctrl === "function" ? ctrl(item, path8) : ctrl;
|
|
254342
256431
|
}
|
|
254343
256432
|
exports.visit = visit2;
|
|
254344
256433
|
});
|
|
@@ -254464,7 +256553,7 @@ var require_lexer2 = __commonJS((exports) => {
|
|
|
254464
256553
|
var tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
254465
256554
|
var flowIndicatorChars = new Set(",[]{}");
|
|
254466
256555
|
var invalidAnchorChars = new Set(` ,[]{}
|
|
254467
|
-
\r
|
|
256556
|
+
\r\t`);
|
|
254468
256557
|
var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.has(ch);
|
|
254469
256558
|
|
|
254470
256559
|
class Lexer {
|
|
@@ -255904,7 +257993,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
255904
257993
|
var Document = require_Document();
|
|
255905
257994
|
var errors2 = require_errors3();
|
|
255906
257995
|
var log = require_log();
|
|
255907
|
-
var
|
|
257996
|
+
var identity3 = require_identity();
|
|
255908
257997
|
var lineCounter = require_line_counter();
|
|
255909
257998
|
var parser = require_parser2();
|
|
255910
257999
|
function parseOptions(options) {
|
|
@@ -255982,7 +258071,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
255982
258071
|
if (!keepUndefined)
|
|
255983
258072
|
return;
|
|
255984
258073
|
}
|
|
255985
|
-
if (
|
|
258074
|
+
if (identity3.isDocument(value4) && !_replacer)
|
|
255986
258075
|
return value4.toString(options);
|
|
255987
258076
|
return new Document.Document(value4, _replacer, options).toString(options);
|
|
255988
258077
|
}
|
|
@@ -267029,7 +269118,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
267029
269118
|
var package_default = {
|
|
267030
269119
|
name: "@settlemint/sdk-cli",
|
|
267031
269120
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267032
|
-
version: "1.0.9-
|
|
269121
|
+
version: "1.0.9-main74c34848",
|
|
267033
269122
|
type: "module",
|
|
267034
269123
|
private: false,
|
|
267035
269124
|
license: "FSL-1.1-MIT",
|
|
@@ -267077,13 +269166,13 @@ var package_default = {
|
|
|
267077
269166
|
"@inquirer/input": "4.1.3",
|
|
267078
269167
|
"@inquirer/password": "4.0.6",
|
|
267079
269168
|
"@inquirer/select": "4.0.6",
|
|
267080
|
-
"@settlemint/sdk-js": "1.0.9-
|
|
267081
|
-
"@settlemint/sdk-utils": "1.0.9-
|
|
267082
|
-
"@types/node": "22.
|
|
269169
|
+
"@settlemint/sdk-js": "1.0.9-main74c34848",
|
|
269170
|
+
"@settlemint/sdk-utils": "1.0.9-main74c34848",
|
|
269171
|
+
"@types/node": "22.10.10",
|
|
267083
269172
|
"@types/semver": "7.5.8",
|
|
267084
269173
|
"@types/which": "3.0.4",
|
|
267085
269174
|
"get-tsconfig": "4.10.0",
|
|
267086
|
-
giget: "1.2.
|
|
269175
|
+
giget: "1.2.3",
|
|
267087
269176
|
"is-in-ci": "1.0.0",
|
|
267088
269177
|
semver: "7.6.3",
|
|
267089
269178
|
slugify: "1.6.6",
|
|
@@ -271835,223 +273924,10 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
271835
273924
|
}
|
|
271836
273925
|
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
271837
273926
|
var import_mute_stream = __toESM(require_lib12(), 1);
|
|
273927
|
+
init_mjs();
|
|
271838
273928
|
import * as readline2 from "node:readline";
|
|
271839
273929
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
271840
273930
|
|
|
271841
|
-
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
271842
|
-
var signals = [];
|
|
271843
|
-
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
271844
|
-
if (process.platform !== "win32") {
|
|
271845
|
-
signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
271846
|
-
}
|
|
271847
|
-
if (process.platform === "linux") {
|
|
271848
|
-
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
271849
|
-
}
|
|
271850
|
-
|
|
271851
|
-
// ../../node_modules/signal-exit/dist/mjs/index.js
|
|
271852
|
-
var processOk2 = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
|
|
271853
|
-
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
271854
|
-
var global2 = globalThis;
|
|
271855
|
-
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
271856
|
-
|
|
271857
|
-
class Emitter2 {
|
|
271858
|
-
emitted = {
|
|
271859
|
-
afterExit: false,
|
|
271860
|
-
exit: false
|
|
271861
|
-
};
|
|
271862
|
-
listeners = {
|
|
271863
|
-
afterExit: [],
|
|
271864
|
-
exit: []
|
|
271865
|
-
};
|
|
271866
|
-
count = 0;
|
|
271867
|
-
id = Math.random();
|
|
271868
|
-
constructor() {
|
|
271869
|
-
if (global2[kExitEmitter]) {
|
|
271870
|
-
return global2[kExitEmitter];
|
|
271871
|
-
}
|
|
271872
|
-
ObjectDefineProperty(global2, kExitEmitter, {
|
|
271873
|
-
value: this,
|
|
271874
|
-
writable: false,
|
|
271875
|
-
enumerable: false,
|
|
271876
|
-
configurable: false
|
|
271877
|
-
});
|
|
271878
|
-
}
|
|
271879
|
-
on(ev, fn) {
|
|
271880
|
-
this.listeners[ev].push(fn);
|
|
271881
|
-
}
|
|
271882
|
-
removeListener(ev, fn) {
|
|
271883
|
-
const list3 = this.listeners[ev];
|
|
271884
|
-
const i6 = list3.indexOf(fn);
|
|
271885
|
-
if (i6 === -1) {
|
|
271886
|
-
return;
|
|
271887
|
-
}
|
|
271888
|
-
if (i6 === 0 && list3.length === 1) {
|
|
271889
|
-
list3.length = 0;
|
|
271890
|
-
} else {
|
|
271891
|
-
list3.splice(i6, 1);
|
|
271892
|
-
}
|
|
271893
|
-
}
|
|
271894
|
-
emit(ev, code2, signal) {
|
|
271895
|
-
if (this.emitted[ev]) {
|
|
271896
|
-
return false;
|
|
271897
|
-
}
|
|
271898
|
-
this.emitted[ev] = true;
|
|
271899
|
-
let ret = false;
|
|
271900
|
-
for (const fn of this.listeners[ev]) {
|
|
271901
|
-
ret = fn(code2, signal) === true || ret;
|
|
271902
|
-
}
|
|
271903
|
-
if (ev === "exit") {
|
|
271904
|
-
ret = this.emit("afterExit", code2, signal) || ret;
|
|
271905
|
-
}
|
|
271906
|
-
return ret;
|
|
271907
|
-
}
|
|
271908
|
-
}
|
|
271909
|
-
|
|
271910
|
-
class SignalExitBase2 {
|
|
271911
|
-
}
|
|
271912
|
-
var signalExitWrap = (handler) => {
|
|
271913
|
-
return {
|
|
271914
|
-
onExit(cb, opts) {
|
|
271915
|
-
return handler.onExit(cb, opts);
|
|
271916
|
-
},
|
|
271917
|
-
load() {
|
|
271918
|
-
return handler.load();
|
|
271919
|
-
},
|
|
271920
|
-
unload() {
|
|
271921
|
-
return handler.unload();
|
|
271922
|
-
}
|
|
271923
|
-
};
|
|
271924
|
-
};
|
|
271925
|
-
|
|
271926
|
-
class SignalExitFallback2 extends SignalExitBase2 {
|
|
271927
|
-
onExit() {
|
|
271928
|
-
return () => {
|
|
271929
|
-
};
|
|
271930
|
-
}
|
|
271931
|
-
load() {
|
|
271932
|
-
}
|
|
271933
|
-
unload() {
|
|
271934
|
-
}
|
|
271935
|
-
}
|
|
271936
|
-
|
|
271937
|
-
class SignalExit2 extends SignalExitBase2 {
|
|
271938
|
-
#hupSig = process7.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
271939
|
-
#emitter = new Emitter2;
|
|
271940
|
-
#process;
|
|
271941
|
-
#originalProcessEmit;
|
|
271942
|
-
#originalProcessReallyExit;
|
|
271943
|
-
#sigListeners = {};
|
|
271944
|
-
#loaded = false;
|
|
271945
|
-
constructor(process7) {
|
|
271946
|
-
super();
|
|
271947
|
-
this.#process = process7;
|
|
271948
|
-
this.#sigListeners = {};
|
|
271949
|
-
for (const sig of signals) {
|
|
271950
|
-
this.#sigListeners[sig] = () => {
|
|
271951
|
-
const listeners = this.#process.listeners(sig);
|
|
271952
|
-
let { count } = this.#emitter;
|
|
271953
|
-
const p6 = process7;
|
|
271954
|
-
if (typeof p6.__signal_exit_emitter__ === "object" && typeof p6.__signal_exit_emitter__.count === "number") {
|
|
271955
|
-
count += p6.__signal_exit_emitter__.count;
|
|
271956
|
-
}
|
|
271957
|
-
if (listeners.length === count) {
|
|
271958
|
-
this.unload();
|
|
271959
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
271960
|
-
const s8 = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
271961
|
-
if (!ret)
|
|
271962
|
-
process7.kill(process7.pid, s8);
|
|
271963
|
-
}
|
|
271964
|
-
};
|
|
271965
|
-
}
|
|
271966
|
-
this.#originalProcessReallyExit = process7.reallyExit;
|
|
271967
|
-
this.#originalProcessEmit = process7.emit;
|
|
271968
|
-
}
|
|
271969
|
-
onExit(cb, opts) {
|
|
271970
|
-
if (!processOk2(this.#process)) {
|
|
271971
|
-
return () => {
|
|
271972
|
-
};
|
|
271973
|
-
}
|
|
271974
|
-
if (this.#loaded === false) {
|
|
271975
|
-
this.load();
|
|
271976
|
-
}
|
|
271977
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
271978
|
-
this.#emitter.on(ev, cb);
|
|
271979
|
-
return () => {
|
|
271980
|
-
this.#emitter.removeListener(ev, cb);
|
|
271981
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
271982
|
-
this.unload();
|
|
271983
|
-
}
|
|
271984
|
-
};
|
|
271985
|
-
}
|
|
271986
|
-
load() {
|
|
271987
|
-
if (this.#loaded) {
|
|
271988
|
-
return;
|
|
271989
|
-
}
|
|
271990
|
-
this.#loaded = true;
|
|
271991
|
-
this.#emitter.count += 1;
|
|
271992
|
-
for (const sig of signals) {
|
|
271993
|
-
try {
|
|
271994
|
-
const fn = this.#sigListeners[sig];
|
|
271995
|
-
if (fn)
|
|
271996
|
-
this.#process.on(sig, fn);
|
|
271997
|
-
} catch (_5) {
|
|
271998
|
-
}
|
|
271999
|
-
}
|
|
272000
|
-
this.#process.emit = (ev, ...a7) => {
|
|
272001
|
-
return this.#processEmit(ev, ...a7);
|
|
272002
|
-
};
|
|
272003
|
-
this.#process.reallyExit = (code2) => {
|
|
272004
|
-
return this.#processReallyExit(code2);
|
|
272005
|
-
};
|
|
272006
|
-
}
|
|
272007
|
-
unload() {
|
|
272008
|
-
if (!this.#loaded) {
|
|
272009
|
-
return;
|
|
272010
|
-
}
|
|
272011
|
-
this.#loaded = false;
|
|
272012
|
-
signals.forEach((sig) => {
|
|
272013
|
-
const listener = this.#sigListeners[sig];
|
|
272014
|
-
if (!listener) {
|
|
272015
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
272016
|
-
}
|
|
272017
|
-
try {
|
|
272018
|
-
this.#process.removeListener(sig, listener);
|
|
272019
|
-
} catch (_5) {
|
|
272020
|
-
}
|
|
272021
|
-
});
|
|
272022
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
272023
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
272024
|
-
this.#emitter.count -= 1;
|
|
272025
|
-
}
|
|
272026
|
-
#processReallyExit(code2) {
|
|
272027
|
-
if (!processOk2(this.#process)) {
|
|
272028
|
-
return 0;
|
|
272029
|
-
}
|
|
272030
|
-
this.#process.exitCode = code2 || 0;
|
|
272031
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
272032
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
272033
|
-
}
|
|
272034
|
-
#processEmit(ev, ...args) {
|
|
272035
|
-
const og = this.#originalProcessEmit;
|
|
272036
|
-
if (ev === "exit" && processOk2(this.#process)) {
|
|
272037
|
-
if (typeof args[0] === "number") {
|
|
272038
|
-
this.#process.exitCode = args[0];
|
|
272039
|
-
}
|
|
272040
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
272041
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
272042
|
-
return ret;
|
|
272043
|
-
} else {
|
|
272044
|
-
return og.call(this.#process, ev, ...args);
|
|
272045
|
-
}
|
|
272046
|
-
}
|
|
272047
|
-
}
|
|
272048
|
-
var process7 = globalThis.process;
|
|
272049
|
-
var {
|
|
272050
|
-
onExit,
|
|
272051
|
-
load: load2,
|
|
272052
|
-
unload
|
|
272053
|
-
} = signalExitWrap(processOk2(process7) ? new SignalExit2(process7) : new SignalExitFallback2);
|
|
272054
|
-
|
|
272055
273931
|
// ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
272056
273932
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
272057
273933
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
@@ -273737,12 +275613,12 @@ async function templatePrompt(platformConfig, argument) {
|
|
|
273737
275613
|
// src/utils/download-extract.ts
|
|
273738
275614
|
import { mkdir as mkdir5 } from "node:fs/promises";
|
|
273739
275615
|
|
|
273740
|
-
// ../../node_modules/giget/dist/
|
|
275616
|
+
// ../../node_modules/giget/dist/index.mjs
|
|
273741
275617
|
var import_tar = __toESM(require_tar(), 1);
|
|
273742
275618
|
import { readFile as readFile6, writeFile as writeFile7, mkdir as mkdir4, rm as rm3 } from "node:fs/promises";
|
|
273743
|
-
import { existsSync as existsSync3, createWriteStream, readdirSync as readdirSync2 } from "node:fs";
|
|
275619
|
+
import { existsSync as existsSync3, createWriteStream as createWriteStream2, readdirSync as readdirSync2 } from "node:fs";
|
|
273744
275620
|
|
|
273745
|
-
// ../../node_modules/pathe/dist/shared/pathe.
|
|
275621
|
+
// ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
273746
275622
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
273747
275623
|
function normalizeWindowsPath(input = "") {
|
|
273748
275624
|
if (!input) {
|
|
@@ -273782,26 +275658,24 @@ var normalize3 = function(path5) {
|
|
|
273782
275658
|
}
|
|
273783
275659
|
return isPathAbsolute && !isAbsolute(path5) ? `/${path5}` : path5;
|
|
273784
275660
|
};
|
|
273785
|
-
var join8 = function(...
|
|
273786
|
-
|
|
273787
|
-
|
|
273788
|
-
|
|
273789
|
-
|
|
273790
|
-
|
|
273791
|
-
if (
|
|
273792
|
-
|
|
273793
|
-
|
|
273794
|
-
const both = pathTrailing && segLeading;
|
|
273795
|
-
if (both) {
|
|
273796
|
-
path5 += seg.slice(1);
|
|
275661
|
+
var join8 = function(...arguments_4) {
|
|
275662
|
+
if (arguments_4.length === 0) {
|
|
275663
|
+
return ".";
|
|
275664
|
+
}
|
|
275665
|
+
let joined;
|
|
275666
|
+
for (const argument of arguments_4) {
|
|
275667
|
+
if (argument && argument.length > 0) {
|
|
275668
|
+
if (joined === undefined) {
|
|
275669
|
+
joined = argument;
|
|
273797
275670
|
} else {
|
|
273798
|
-
|
|
275671
|
+
joined += `/${argument}`;
|
|
273799
275672
|
}
|
|
273800
|
-
} else {
|
|
273801
|
-
path5 += seg;
|
|
273802
275673
|
}
|
|
273803
275674
|
}
|
|
273804
|
-
|
|
275675
|
+
if (joined === undefined) {
|
|
275676
|
+
return ".";
|
|
275677
|
+
}
|
|
275678
|
+
return normalize3(joined.replace(/\/\/+/g, "/"));
|
|
273805
275679
|
};
|
|
273806
275680
|
function cwd() {
|
|
273807
275681
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
@@ -273899,15 +275773,7 @@ var dirname9 = function(p6) {
|
|
|
273899
275773
|
return segments.join("/") || (isAbsolute(p6) ? "/" : ".");
|
|
273900
275774
|
};
|
|
273901
275775
|
var basename2 = function(p6, extension) {
|
|
273902
|
-
const
|
|
273903
|
-
let lastSegment = "";
|
|
273904
|
-
for (let i6 = segments.length - 1;i6 >= 0; i6--) {
|
|
273905
|
-
const val = segments[i6];
|
|
273906
|
-
if (val) {
|
|
273907
|
-
lastSegment = val;
|
|
273908
|
-
break;
|
|
273909
|
-
}
|
|
273910
|
-
}
|
|
275776
|
+
const lastSegment = normalizeWindowsPath(p6).split("/").pop();
|
|
273911
275777
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
273912
275778
|
};
|
|
273913
275779
|
// ../../node_modules/defu/dist/defu.mjs
|
|
@@ -273970,15 +275836,14 @@ var defuArrayFn = createDefu((object, key2, currentValue) => {
|
|
|
273970
275836
|
}
|
|
273971
275837
|
});
|
|
273972
275838
|
|
|
273973
|
-
// ../../node_modules/nypm/dist/
|
|
273974
|
-
import { x as x6 } from "tinyexec";
|
|
275839
|
+
// ../../node_modules/nypm/dist/index.mjs
|
|
273975
275840
|
import { existsSync as existsSync2 } from "node:fs";
|
|
273976
275841
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
273977
275842
|
async function findup(cwd2, match2, options = {}) {
|
|
273978
275843
|
const segments = normalize3(cwd2).split("/");
|
|
273979
275844
|
while (segments.length > 0) {
|
|
273980
|
-
const
|
|
273981
|
-
const result = await match2(
|
|
275845
|
+
const path8 = segments.join("/") || "/";
|
|
275846
|
+
const result = await match2(path8);
|
|
273982
275847
|
if (result || !options.includeParentDirs) {
|
|
273983
275848
|
return result;
|
|
273984
275849
|
}
|
|
@@ -273997,21 +275862,22 @@ function cached(fn) {
|
|
|
273997
275862
|
return v7;
|
|
273998
275863
|
};
|
|
273999
275864
|
}
|
|
275865
|
+
var importExeca = cached(() => Promise.resolve().then(() => (init_execa(), exports_execa)).then((r6) => r6.execa));
|
|
274000
275866
|
var hasCorepack = cached(async () => {
|
|
274001
275867
|
try {
|
|
274002
|
-
const
|
|
274003
|
-
|
|
275868
|
+
const execa3 = await importExeca();
|
|
275869
|
+
await execa3("corepack", ["--version"]);
|
|
275870
|
+
return true;
|
|
274004
275871
|
} catch {
|
|
274005
275872
|
return false;
|
|
274006
275873
|
}
|
|
274007
275874
|
});
|
|
274008
275875
|
async function executeCommand2(command, args, options = {}) {
|
|
274009
|
-
const
|
|
274010
|
-
await
|
|
274011
|
-
|
|
274012
|
-
|
|
274013
|
-
|
|
274014
|
-
}
|
|
275876
|
+
const execaArgs = command === "npm" || command === "bun" || !await hasCorepack() ? [command, args] : ["corepack", [command, ...args]];
|
|
275877
|
+
const execa3 = await importExeca();
|
|
275878
|
+
await execa3(execaArgs[0], execaArgs[1], {
|
|
275879
|
+
cwd: resolve6(options.cwd || process.cwd()),
|
|
275880
|
+
stdio: options.silent ? "pipe" : "inherit"
|
|
274015
275881
|
});
|
|
274016
275882
|
}
|
|
274017
275883
|
var NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = "No package manager auto-detected.";
|
|
@@ -274030,23 +275896,6 @@ async function resolveOperationOptions(options = {}) {
|
|
|
274030
275896
|
global: options.global ?? false
|
|
274031
275897
|
};
|
|
274032
275898
|
}
|
|
274033
|
-
function parsePackageManagerField(packageManager) {
|
|
274034
|
-
const [name2, _version] = (packageManager || "").split("@");
|
|
274035
|
-
const [version, buildMeta] = _version?.split("+") || [];
|
|
274036
|
-
if (name2 && name2 !== "-" && /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name2)) {
|
|
274037
|
-
return { name: name2, version, buildMeta };
|
|
274038
|
-
}
|
|
274039
|
-
const sanitized = name2.replace(/\W+/g, "");
|
|
274040
|
-
const warnings = [
|
|
274041
|
-
`Abnormal characters found in \`packageManager\` field, sanitizing from \`${name2}\` to \`${sanitized}\``
|
|
274042
|
-
];
|
|
274043
|
-
return {
|
|
274044
|
-
name: sanitized,
|
|
274045
|
-
version,
|
|
274046
|
-
buildMeta,
|
|
274047
|
-
warnings
|
|
274048
|
-
};
|
|
274049
|
-
}
|
|
274050
275899
|
var packageManagers = [
|
|
274051
275900
|
{
|
|
274052
275901
|
name: "npm",
|
|
@@ -274076,46 +275925,27 @@ var packageManagers = [
|
|
|
274076
275925
|
majorVersion: "3",
|
|
274077
275926
|
lockFile: "yarn.lock",
|
|
274078
275927
|
files: [".yarnrc.yml"]
|
|
274079
|
-
},
|
|
274080
|
-
{
|
|
274081
|
-
name: "deno",
|
|
274082
|
-
command: "deno",
|
|
274083
|
-
lockFile: "deno.lock",
|
|
274084
|
-
files: ["deno.json"]
|
|
274085
275928
|
}
|
|
274086
275929
|
];
|
|
274087
275930
|
async function detectPackageManager2(cwd2, options = {}) {
|
|
274088
|
-
const detected = await findup(resolve6(cwd2 || "."), async (
|
|
275931
|
+
const detected = await findup(resolve6(cwd2 || "."), async (path8) => {
|
|
274089
275932
|
if (!options.ignorePackageJSON) {
|
|
274090
|
-
const packageJSONPath = join8(
|
|
275933
|
+
const packageJSONPath = join8(path8, "package.json");
|
|
274091
275934
|
if (existsSync2(packageJSONPath)) {
|
|
274092
275935
|
const packageJSON = JSON.parse(await readFile5(packageJSONPath, "utf8"));
|
|
274093
275936
|
if (packageJSON?.packageManager) {
|
|
274094
|
-
const
|
|
275937
|
+
const [name2, version = "0.0.0"] = packageJSON.packageManager.split("@");
|
|
275938
|
+
const majorVersion = version.split(".")[0];
|
|
275939
|
+
const packageManager = packageManagers.find((pm) => pm.name === name2 && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name2);
|
|
275940
|
+
return {
|
|
275941
|
+
...packageManager,
|
|
274095
275942
|
name: name2,
|
|
274096
|
-
|
|
274097
|
-
|
|
274098
|
-
|
|
274099
|
-
}
|
|
274100
|
-
if (name2) {
|
|
274101
|
-
const majorVersion = version.split(".")[0];
|
|
274102
|
-
const packageManager = packageManagers.find((pm) => pm.name === name2 && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name2);
|
|
274103
|
-
return {
|
|
274104
|
-
name: name2,
|
|
274105
|
-
command: name2,
|
|
274106
|
-
version,
|
|
274107
|
-
majorVersion,
|
|
274108
|
-
buildMeta,
|
|
274109
|
-
warnings,
|
|
274110
|
-
...packageManager
|
|
274111
|
-
};
|
|
274112
|
-
}
|
|
275943
|
+
command: name2,
|
|
275944
|
+
version,
|
|
275945
|
+
majorVersion
|
|
275946
|
+
};
|
|
274113
275947
|
}
|
|
274114
275948
|
}
|
|
274115
|
-
const denoJSONPath = join8(path5, "deno.json");
|
|
274116
|
-
if (existsSync2(denoJSONPath)) {
|
|
274117
|
-
return packageManagers.find((pm) => pm.name === "deno");
|
|
274118
|
-
}
|
|
274119
275949
|
}
|
|
274120
275950
|
if (!options.ignoreLockFile) {
|
|
274121
275951
|
for (const packageManager of packageManagers) {
|
|
@@ -274123,7 +275953,7 @@ async function detectPackageManager2(cwd2, options = {}) {
|
|
|
274123
275953
|
packageManager.lockFile,
|
|
274124
275954
|
packageManager.files
|
|
274125
275955
|
].flat().filter(Boolean);
|
|
274126
|
-
if (detectionsFiles.some((file) => existsSync2(resolve6(
|
|
275956
|
+
if (detectionsFiles.some((file) => existsSync2(resolve6(path8, file)))) {
|
|
274127
275957
|
return {
|
|
274128
275958
|
...packageManager
|
|
274129
275959
|
};
|
|
@@ -274152,8 +275982,7 @@ async function installDependencies2(options = {}) {
|
|
|
274152
275982
|
npm: ["ci"],
|
|
274153
275983
|
yarn: ["install", "--immutable"],
|
|
274154
275984
|
bun: ["install", "--frozen-lockfile"],
|
|
274155
|
-
pnpm: ["install", "--frozen-lockfile"]
|
|
274156
|
-
deno: ["install", "--frozen"]
|
|
275985
|
+
pnpm: ["install", "--frozen-lockfile"]
|
|
274157
275986
|
};
|
|
274158
275987
|
const commandArgs = options.frozenLockFile ? pmToFrozenLockfileInstallCommand[resolvedOptions.packageManager.name] : ["install"];
|
|
274159
275988
|
await executeCommand2(resolvedOptions.packageManager.command, commandArgs, {
|
|
@@ -274161,10 +275990,8 @@ async function installDependencies2(options = {}) {
|
|
|
274161
275990
|
silent: resolvedOptions.silent
|
|
274162
275991
|
});
|
|
274163
275992
|
}
|
|
274164
|
-
// ../../node_modules/nypm/dist/index.mjs
|
|
274165
|
-
import"tinyexec";
|
|
274166
275993
|
|
|
274167
|
-
// ../../node_modules/giget/dist/
|
|
275994
|
+
// ../../node_modules/giget/dist/index.mjs
|
|
274168
275995
|
import { pipeline } from "node:stream";
|
|
274169
275996
|
var import_proxy = __toESM(require_proxy(), 1);
|
|
274170
275997
|
import { homedir as homedir2 } from "node:os";
|
|
@@ -274189,7 +276016,7 @@ async function download(url, filePath, options = {}) {
|
|
|
274189
276016
|
if (response.status >= 400) {
|
|
274190
276017
|
throw new Error(`Failed to download ${url}: ${response.status} ${response.statusText}`);
|
|
274191
276018
|
}
|
|
274192
|
-
const stream2 =
|
|
276019
|
+
const stream2 = createWriteStream2(filePath);
|
|
274193
276020
|
await promisify(pipeline)(response.body, stream2);
|
|
274194
276021
|
await writeFile7(infoPath, JSON.stringify(info), "utf8");
|
|
274195
276022
|
}
|
|
@@ -274380,10 +276207,10 @@ async function downloadTemplate(input, options = {}) {
|
|
|
274380
276207
|
const registry = options.registry === false ? undefined : registryProvider(options.registry, { auth: options.auth });
|
|
274381
276208
|
let providerName = options.provider || (registry ? "registry" : "github");
|
|
274382
276209
|
let source = input;
|
|
274383
|
-
const
|
|
274384
|
-
if (
|
|
274385
|
-
providerName =
|
|
274386
|
-
source = input.slice(
|
|
276210
|
+
const sourceProvierMatch = input.match(sourceProtoRe);
|
|
276211
|
+
if (sourceProvierMatch) {
|
|
276212
|
+
providerName = sourceProvierMatch[1];
|
|
276213
|
+
source = input.slice(sourceProvierMatch[0].length);
|
|
274387
276214
|
if (providerName === "http" || providerName === "https") {
|
|
274388
276215
|
source = input;
|
|
274389
276216
|
}
|
|
@@ -274464,9 +276291,6 @@ async function downloadTemplate(input, options = {}) {
|
|
|
274464
276291
|
dir: extractPath
|
|
274465
276292
|
};
|
|
274466
276293
|
}
|
|
274467
|
-
// ../../node_modules/giget/dist/index.mjs
|
|
274468
|
-
var import_tar2 = __toESM(require_tar(), 1);
|
|
274469
|
-
var import_proxy2 = __toESM(require_proxy(), 1);
|
|
274470
276294
|
|
|
274471
276295
|
// src/utils/download-extract.ts
|
|
274472
276296
|
async function downloadAndExtractNpmPackage(template, targetDir) {
|
|
@@ -276415,7 +278239,7 @@ var Document = require_Document();
|
|
|
276415
278239
|
var Schema = require_Schema();
|
|
276416
278240
|
var errors2 = require_errors3();
|
|
276417
278241
|
var Alias = require_Alias();
|
|
276418
|
-
var
|
|
278242
|
+
var identity3 = require_identity();
|
|
276419
278243
|
var Pair = require_Pair();
|
|
276420
278244
|
var Scalar = require_Scalar();
|
|
276421
278245
|
var YAMLMap = require_YAMLMap();
|
|
@@ -276433,14 +278257,14 @@ var $YAMLError = errors2.YAMLError;
|
|
|
276433
278257
|
var $YAMLParseError = errors2.YAMLParseError;
|
|
276434
278258
|
var $YAMLWarning = errors2.YAMLWarning;
|
|
276435
278259
|
var $Alias = Alias.Alias;
|
|
276436
|
-
var $isAlias =
|
|
276437
|
-
var $isCollection =
|
|
276438
|
-
var $isDocument =
|
|
276439
|
-
var $isMap =
|
|
276440
|
-
var $isNode =
|
|
276441
|
-
var $isPair =
|
|
276442
|
-
var $isScalar =
|
|
276443
|
-
var $isSeq =
|
|
278260
|
+
var $isAlias = identity3.isAlias;
|
|
278261
|
+
var $isCollection = identity3.isCollection;
|
|
278262
|
+
var $isDocument = identity3.isDocument;
|
|
278263
|
+
var $isMap = identity3.isMap;
|
|
278264
|
+
var $isNode = identity3.isNode;
|
|
278265
|
+
var $isPair = identity3.isPair;
|
|
278266
|
+
var $isScalar = identity3.isScalar;
|
|
278267
|
+
var $isSeq = identity3.isSeq;
|
|
276444
278268
|
var $Pair = Pair.Pair;
|
|
276445
278269
|
var $Scalar = Scalar.Scalar;
|
|
276446
278270
|
var $YAMLMap = YAMLMap.YAMLMap;
|
|
@@ -277512,22 +279336,22 @@ function sanitizeName(value4, length = 35) {
|
|
|
277512
279336
|
import { readFile as readFile7, writeFile as writeFile8 } from "node:fs/promises";
|
|
277513
279337
|
import { basename as basename4, join as join11 } from "node:path";
|
|
277514
279338
|
var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
|
|
277515
|
-
var isGenerated = (
|
|
277516
|
-
var getSubgraphYamlFile = async (
|
|
277517
|
-
const generated = await isGenerated(
|
|
277518
|
-
if (generated && await exists3(join11(
|
|
277519
|
-
return join11(
|
|
279339
|
+
var isGenerated = (path8 = process.cwd()) => exists3(join11(path8, CONFIG_FILE_PATH));
|
|
279340
|
+
var getSubgraphYamlFile = async (path8 = process.cwd()) => {
|
|
279341
|
+
const generated = await isGenerated(path8);
|
|
279342
|
+
if (generated && await exists3(join11(path8, "generated/scs.subgraph.yaml"))) {
|
|
279343
|
+
return join11(path8, "generated/scs.subgraph.yaml");
|
|
277520
279344
|
}
|
|
277521
|
-
if (await exists3(join11(
|
|
277522
|
-
return join11(
|
|
279345
|
+
if (await exists3(join11(path8, "subgraph/subgraph.yaml"))) {
|
|
279346
|
+
return join11(path8, "subgraph/subgraph.yaml");
|
|
277523
279347
|
}
|
|
277524
|
-
if (await exists3(join11(
|
|
277525
|
-
return join11(
|
|
279348
|
+
if (await exists3(join11(path8, "subgraph.yaml"))) {
|
|
279349
|
+
return join11(path8, "subgraph.yaml");
|
|
277526
279350
|
}
|
|
277527
279351
|
throw new Error("Subgraph configuration file not found");
|
|
277528
279352
|
};
|
|
277529
|
-
var getSubgraphYamlConfig = async (
|
|
277530
|
-
const subgraphYamlFile = await getSubgraphYamlFile(
|
|
279353
|
+
var getSubgraphYamlConfig = async (path8 = process.cwd()) => {
|
|
279354
|
+
const subgraphYamlFile = await getSubgraphYamlFile(path8);
|
|
277531
279355
|
const rawYamlConfig = await readFile7(subgraphYamlFile);
|
|
277532
279356
|
return $parse(rawYamlConfig.toString());
|
|
277533
279357
|
};
|
|
@@ -277535,9 +279359,9 @@ var updateSubgraphYamlConfig = async (config3, cwd2 = process.cwd()) => {
|
|
|
277535
279359
|
const subgraphYamlFile = await getSubgraphYamlFile(cwd2);
|
|
277536
279360
|
await writeFile8(subgraphYamlFile, $stringify(config3));
|
|
277537
279361
|
};
|
|
277538
|
-
var getSubgraphConfig = async (
|
|
279362
|
+
var getSubgraphConfig = async (path8 = process.cwd()) => {
|
|
277539
279363
|
try {
|
|
277540
|
-
const configContents = await readFile7(join11(
|
|
279364
|
+
const configContents = await readFile7(join11(path8, CONFIG_FILE_PATH));
|
|
277541
279365
|
const currentConfig = tryParseJson3(configContents.toString());
|
|
277542
279366
|
return currentConfig;
|
|
277543
279367
|
} catch (err) {
|
|
@@ -277920,4 +279744,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
277920
279744
|
// src/cli.ts
|
|
277921
279745
|
sdkCliCommand();
|
|
277922
279746
|
|
|
277923
|
-
//# debugId=
|
|
279747
|
+
//# debugId=298C47998A101FAA64756E2164756E21
|