diff --git a/lib/entry-points.js b/lib/entry-points.js index 74a252e50c..3a1c05a4fd 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -213,7 +213,7 @@ var require_file_command = __commonJS({ exports2.issueFileCommand = issueFileCommand; exports2.prepareKeyValueMessage = prepareKeyValueMessage; var crypto3 = __importStar2(require("crypto")); - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var os7 = __importStar2(require("os")); var utils_1 = require_utils(); function issueFileCommand(command, message) { @@ -221,10 +221,10 @@ var require_file_command = __commonJS({ if (!filePath) { throw new Error(`Unable to find environment variable for file command ${command}`); } - if (!fs30.existsSync(filePath)) { + if (!fs31.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs30.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os7.EOL}`, { + fs31.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os7.EOL}`, { encoding: "utf8" }); } @@ -264,7 +264,7 @@ var require_proxy = __commonJS({ if (proxyVar) { try { return new DecodedURL(proxyVar); - } catch (_a) { + } catch (_a2) { if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) return new DecodedURL(`http://${proxyVar}`); } @@ -333,7 +333,7 @@ var require_tunnel = __commonJS({ var https3 = require("https"); var events = require("events"); var assert = require("assert"); - var util = require("util"); + var util3 = require("util"); exports2.httpOverHttp = httpOverHttp; exports2.httpsOverHttp = httpsOverHttp; exports2.httpOverHttps = httpOverHttps; @@ -383,7 +383,7 @@ var require_tunnel = __commonJS({ self2.removeSocket(socket); }); } - util.inherits(TunnelingAgent, events.EventEmitter); + util3.inherits(TunnelingAgent, events.EventEmitter); TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { var self2 = this; var options = mergeOptions({ request: req }, self2.options, toOptions(host, port, localAddress)); @@ -1130,16 +1130,16 @@ var require_tree = __commonJS({ * @param {any} value * @param {number} index */ - constructor(key, value, index) { - if (index === void 0 || index >= key.length) { + constructor(key, value, index2) { + if (index2 === void 0 || index2 >= key.length) { throw new TypeError("Unreachable"); } - const code = this.code = key.charCodeAt(index); + const code = this.code = key.charCodeAt(index2); if (code > 127) { throw new TypeError("key must be ascii string"); } - if (key.length !== ++index) { - this.middle = new _TstNode(key, value, index); + if (key.length !== ++index2) { + this.middle = new _TstNode(key, value, index2); } else { this.value = value; } @@ -1153,34 +1153,34 @@ var require_tree = __commonJS({ if (length === 0) { throw new TypeError("Unreachable"); } - let index = 0; + let index2 = 0; let node = this; while (true) { - const code = key.charCodeAt(index); + const code = key.charCodeAt(index2); if (code > 127) { throw new TypeError("key must be ascii string"); } if (node.code === code) { - if (length === ++index) { + if (length === ++index2) { node.value = value; break; } else if (node.middle !== null) { node = node.middle; } else { - node.middle = new _TstNode(key, value, index); + node.middle = new _TstNode(key, value, index2); break; } } else if (node.code < code) { if (node.left !== null) { node = node.left; } else { - node.left = new _TstNode(key, value, index); + node.left = new _TstNode(key, value, index2); break; } } else if (node.right !== null) { node = node.right; } else { - node.right = new _TstNode(key, value, index); + node.right = new _TstNode(key, value, index2); break; } } @@ -1191,16 +1191,16 @@ var require_tree = __commonJS({ */ search(key) { const keylength = key.length; - let index = 0; + let index2 = 0; let node = this; - while (node !== null && index < keylength) { - let code = key[index]; + while (node !== null && index2 < keylength) { + let code = key[index2]; if (code <= 90 && code >= 65) { code |= 32; } while (node !== null) { if (code === node.code) { - if (keylength === ++index) { + if (keylength === ++index2) { return node; } node = node.middle; @@ -1275,7 +1275,7 @@ var require_util = __commonJS({ } }; function wrapRequestBody(body) { - if (isStream(body)) { + if (isStream2(body)) { if (bodyLength(body) === 0) { body.on("data", function() { assert(false); @@ -1298,7 +1298,7 @@ var require_util = __commonJS({ } function nop() { } - function isStream(obj) { + function isStream2(obj) { return obj && typeof obj === "object" && typeof obj.pipe === "function" && typeof obj.on === "function"; } function isBlobLike(object) { @@ -1362,14 +1362,14 @@ var require_util = __commonJS({ } const port = url2.port != null ? url2.port : url2.protocol === "https:" ? 443 : 80; let origin = url2.origin != null ? url2.origin : `${url2.protocol || ""}//${url2.hostname || ""}:${port}`; - let path28 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`; + let path29 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`; if (origin[origin.length - 1] === "/") { origin = origin.slice(0, origin.length - 1); } - if (path28 && path28[0] !== "/") { - path28 = `/${path28}`; + if (path29 && path29[0] !== "/") { + path29 = `/${path29}`; } - return new URL(`${origin}${path28}`); + return new URL(`${origin}${path29}`); } if (!isHttpOrHttpsPrefixed(url2.origin || url2.protocol)) { throw new InvalidArgumentError("Invalid URL protocol: the URL must start with `http:` or `https:`."); @@ -1416,7 +1416,7 @@ var require_util = __commonJS({ function bodyLength(body) { if (body == null) { return 0; - } else if (isStream(body)) { + } else if (isStream2(body)) { const state = body._readableState; return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length) ? state.length : null; } else if (isBlobLike(body)) { @@ -1430,7 +1430,7 @@ var require_util = __commonJS({ return body && !!(body.destroyed || body[kDestroyed] || stream2.isDestroyed?.(body)); } function destroy(stream3, err) { - if (stream3 == null || !isStream(stream3) || isDestroyed(stream3)) { + if (stream3 == null || !isStream2(stream3) || isDestroyed(stream3)) { return; } if (typeof stream3.destroy === "function") { @@ -1650,9 +1650,9 @@ var require_util = __commonJS({ function isValidHeaderValue(characters) { return !headerCharRegex.test(characters); } - function parseRangeHeader(range) { - if (range == null || range === "") return { start: 0, end: null, size: null }; - const m = range ? range.match(/^bytes (\d+)-(\d+)\/(\d+)?$/) : null; + function parseRangeHeader(range2) { + if (range2 == null || range2 === "") return { start: 0, end: null, size: null }; + const m = range2 ? range2.match(/^bytes (\d+)-(\d+)\/(\d+)?$/) : null; return m ? { start: parseInt(m[1]), end: m[2] ? parseInt(m[2]) : null, @@ -1714,7 +1714,7 @@ var require_util = __commonJS({ parseOrigin, parseURL, getServerName, - isStream, + isStream: isStream2, isIterable, isAsyncIterable, isDestroyed, @@ -1757,10 +1757,10 @@ var require_diagnostics = __commonJS({ "node_modules/undici/lib/core/diagnostics.js"(exports2, module2) { "use strict"; var diagnosticsChannel = require("node:diagnostics_channel"); - var util = require("node:util"); - var undiciDebugLog = util.debuglog("undici"); - var fetchDebuglog = util.debuglog("fetch"); - var websocketDebuglog = util.debuglog("websocket"); + var util3 = require("node:util"); + var undiciDebugLog = util3.debuglog("undici"); + var fetchDebuglog = util3.debuglog("fetch"); + var websocketDebuglog = util3.debuglog("websocket"); var isClientSet = false; var channels = { // Client @@ -1820,39 +1820,39 @@ var require_diagnostics = __commonJS({ }); diagnosticsChannel.channel("undici:client:sendHeaders").subscribe((evt) => { const { - request: { method, path: path28, origin } + request: { method, path: path29, origin } } = evt; - debuglog("sending request to %s %s/%s", method, origin, path28); + debuglog("sending request to %s %s/%s", method, origin, path29); }); diagnosticsChannel.channel("undici:request:headers").subscribe((evt) => { const { - request: { method, path: path28, origin }, + request: { method, path: path29, origin }, response: { statusCode } } = evt; debuglog( "received response to %s %s/%s - HTTP %d", method, origin, - path28, + path29, statusCode ); }); diagnosticsChannel.channel("undici:request:trailers").subscribe((evt) => { const { - request: { method, path: path28, origin } + request: { method, path: path29, origin } } = evt; - debuglog("trailers received from %s %s/%s", method, origin, path28); + debuglog("trailers received from %s %s/%s", method, origin, path29); }); diagnosticsChannel.channel("undici:request:error").subscribe((evt) => { const { - request: { method, path: path28, origin }, + request: { method, path: path29, origin }, error: error3 } = evt; debuglog( "request to %s %s/%s errored - %s", method, origin, - path28, + path29, error3.message ); }); @@ -1901,9 +1901,9 @@ var require_diagnostics = __commonJS({ }); diagnosticsChannel.channel("undici:client:sendHeaders").subscribe((evt) => { const { - request: { method, path: path28, origin } + request: { method, path: path29, origin } } = evt; - debuglog("sending request to %s %s/%s", method, origin, path28); + debuglog("sending request to %s %s/%s", method, origin, path29); }); } diagnosticsChannel.channel("undici:websocket:open").subscribe((evt) => { @@ -1949,7 +1949,7 @@ var require_request = __commonJS({ var { isValidHTTPToken, isValidHeaderValue, - isStream, + isStream: isStream2, destroy, isBuffer, isFormDataLike, @@ -1966,7 +1966,7 @@ var require_request = __commonJS({ var kHandler = /* @__PURE__ */ Symbol("handler"); var Request = class { constructor(origin, { - path: path28, + path: path29, method, body, headers, @@ -1981,11 +1981,11 @@ var require_request = __commonJS({ expectContinue, servername }, handler2) { - if (typeof path28 !== "string") { + if (typeof path29 !== "string") { throw new InvalidArgumentError("path must be a string"); - } else if (path28[0] !== "/" && !(path28.startsWith("http://") || path28.startsWith("https://")) && method !== "CONNECT") { + } else if (path29[0] !== "/" && !(path29.startsWith("http://") || path29.startsWith("https://")) && method !== "CONNECT") { throw new InvalidArgumentError("path must be an absolute URL or start with a slash"); - } else if (invalidPathRegex.test(path28)) { + } else if (invalidPathRegex.test(path29)) { throw new InvalidArgumentError("invalid request path"); } if (typeof method !== "string") { @@ -2018,7 +2018,7 @@ var require_request = __commonJS({ this.abort = null; if (body == null) { this.body = null; - } else if (isStream(body)) { + } else if (isStream2(body)) { this.body = body; const rState = this.body._readableState; if (!rState || !rState.autoDestroy) { @@ -2051,7 +2051,7 @@ var require_request = __commonJS({ this.completed = false; this.aborted = false; this.upgrade = upgrade || null; - this.path = query ? buildURL(path28, query) : path28; + this.path = query ? buildURL(path29, query) : path29; this.origin = origin; this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent; this.blocking = blocking == null ? false : blocking; @@ -2274,8 +2274,8 @@ var require_request = __commonJS({ var require_dispatcher = __commonJS({ "node_modules/undici/lib/dispatcher/dispatcher.js"(exports2, module2) { "use strict"; - var EventEmitter = require("node:events"); - var Dispatcher = class extends EventEmitter { + var EventEmitter2 = require("node:events"); + var Dispatcher = class extends EventEmitter2 { dispatch() { throw new Error("not implemented"); } @@ -2369,9 +2369,9 @@ var require_dispatcher_base = __commonJS({ } close(callback) { if (callback === void 0) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { this.close((err, data) => { - return err ? reject(err) : resolve13(data); + return err ? reject(err) : resolve14(data); }); }); } @@ -2409,12 +2409,12 @@ var require_dispatcher_base = __commonJS({ err = null; } if (callback === void 0) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { this.destroy(err, (err2, data) => { return err2 ? ( /* istanbul ignore next: should never error */ reject(err2) - ) : resolve13(data); + ) : resolve14(data); }); }); } @@ -2723,7 +2723,7 @@ var require_connect = __commonJS({ "use strict"; var net = require("node:net"); var assert = require("node:assert"); - var util = require_util(); + var util3 = require_util(); var { InvalidArgumentError, ConnectTimeoutError } = require_errors(); var timers = require_timers(); function noop3() { @@ -2792,7 +2792,7 @@ var require_connect = __commonJS({ if (!tls) { tls = require("node:tls"); } - servername = servername || options.servername || util.getServerName(host) || null; + servername = servername || options.servername || util3.getServerName(host) || null; const sessionKey = servername || hostname; assert(sessionKey); const session = customSession || sessionCache.get(sessionKey) || null; @@ -2891,7 +2891,7 @@ var require_connect = __commonJS({ message += ` (attempted address: ${opts.hostname}:${opts.port},`; } message += ` timeout: ${opts.timeout}ms)`; - util.destroy(socket, new ConnectTimeoutError(message)); + util3.destroy(socket, new ConnectTimeoutError(message)); } module2.exports = buildConnector; } @@ -3866,7 +3866,7 @@ var require_data_url = __commonJS({ var require_webidl = __commonJS({ "node_modules/undici/lib/web/fetch/webidl.js"(exports2, module2) { "use strict"; - var { types: types2, inspect } = require("node:util"); + var { types: types3, inspect } = require("node:util"); var { markAsUncloneable } = require("node:worker_threads"); var { toUSVString } = require_util(); var webidl = {}; @@ -4030,7 +4030,7 @@ var require_webidl = __commonJS({ } const method = typeof Iterable === "function" ? Iterable() : V?.[Symbol.iterator]?.(); const seq = []; - let index = 0; + let index2 = 0; if (method === void 0 || typeof method.next !== "function") { throw webidl.errors.exception({ header: prefix, @@ -4042,7 +4042,7 @@ var require_webidl = __commonJS({ if (done) { break; } - seq.push(converter(value, prefix, `${argument}[${index++}]`)); + seq.push(converter(value, prefix, `${argument}[${index2++}]`)); } return seq; }; @@ -4056,7 +4056,7 @@ var require_webidl = __commonJS({ }); } const result = {}; - if (!types2.isProxy(O)) { + if (!types3.isProxy(O)) { const keys2 = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)]; for (const key of keys2) { const typedKey = keyConverter(key, prefix, argument); @@ -4151,10 +4151,10 @@ var require_webidl = __commonJS({ }; webidl.converters.ByteString = function(V, prefix, argument) { const x = webidl.converters.DOMString(V, prefix, argument); - for (let index = 0; index < x.length; index++) { - if (x.charCodeAt(index) > 255) { + for (let index2 = 0; index2 < x.length; index2++) { + if (x.charCodeAt(index2) > 255) { throw new TypeError( - `Cannot convert argument to a ByteString because the character at index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.` + `Cannot convert argument to a ByteString because the character at index ${index2} has a value of ${x.charCodeAt(index2)} which is greater than 255.` ); } } @@ -4185,14 +4185,14 @@ var require_webidl = __commonJS({ return x; }; webidl.converters.ArrayBuffer = function(V, prefix, argument, opts) { - if (webidl.util.Type(V) !== "Object" || !types2.isAnyArrayBuffer(V)) { + if (webidl.util.Type(V) !== "Object" || !types3.isAnyArrayBuffer(V)) { throw webidl.errors.conversionFailed({ prefix, argument: `${argument} ("${webidl.util.Stringify(V)}")`, types: ["ArrayBuffer"] }); } - if (opts?.allowShared === false && types2.isSharedArrayBuffer(V)) { + if (opts?.allowShared === false && types3.isSharedArrayBuffer(V)) { throw webidl.errors.exception({ header: "ArrayBuffer", message: "SharedArrayBuffer is not allowed." @@ -4207,14 +4207,14 @@ var require_webidl = __commonJS({ return V; }; webidl.converters.TypedArray = function(V, T, prefix, name, opts) { - if (webidl.util.Type(V) !== "Object" || !types2.isTypedArray(V) || V.constructor.name !== T.name) { + if (webidl.util.Type(V) !== "Object" || !types3.isTypedArray(V) || V.constructor.name !== T.name) { throw webidl.errors.conversionFailed({ prefix, argument: `${name} ("${webidl.util.Stringify(V)}")`, types: [T.name] }); } - if (opts?.allowShared === false && types2.isSharedArrayBuffer(V.buffer)) { + if (opts?.allowShared === false && types3.isSharedArrayBuffer(V.buffer)) { throw webidl.errors.exception({ header: "ArrayBuffer", message: "SharedArrayBuffer is not allowed." @@ -4229,13 +4229,13 @@ var require_webidl = __commonJS({ return V; }; webidl.converters.DataView = function(V, prefix, name, opts) { - if (webidl.util.Type(V) !== "Object" || !types2.isDataView(V)) { + if (webidl.util.Type(V) !== "Object" || !types3.isDataView(V)) { throw webidl.errors.exception({ header: prefix, message: `${name} is not a DataView.` }); } - if (opts?.allowShared === false && types2.isSharedArrayBuffer(V.buffer)) { + if (opts?.allowShared === false && types3.isSharedArrayBuffer(V.buffer)) { throw webidl.errors.exception({ header: "ArrayBuffer", message: "SharedArrayBuffer is not allowed." @@ -4250,13 +4250,13 @@ var require_webidl = __commonJS({ return V; }; webidl.converters.BufferSource = function(V, prefix, name, opts) { - if (types2.isAnyArrayBuffer(V)) { + if (types3.isAnyArrayBuffer(V)) { return webidl.converters.ArrayBuffer(V, prefix, name, { ...opts, allowShared: false }); } - if (types2.isTypedArray(V)) { + if (types3.isTypedArray(V)) { return webidl.converters.TypedArray(V, V.constructor, prefix, name, { ...opts, allowShared: false }); } - if (types2.isDataView(V)) { + if (types3.isDataView(V)) { return webidl.converters.DataView(V, prefix, name, { ...opts, allowShared: false }); } throw webidl.errors.conversionFailed({ @@ -4285,7 +4285,7 @@ var require_webidl = __commonJS({ var require_util2 = __commonJS({ "node_modules/undici/lib/web/fetch/util.js"(exports2, module2) { "use strict"; - var { Transform } = require("node:stream"); + var { Transform: Transform5 } = require("node:stream"); var zlib3 = require("node:zlib"); var { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require_constants3(); var { getGlobalOrigin } = require_global(); @@ -4681,8 +4681,8 @@ var require_util2 = __commonJS({ function createDeferredPromise() { let res; let rej; - const promise = new Promise((resolve13, reject) => { - res = resolve13; + const promise = new Promise((resolve14, reject) => { + res = resolve14; rej = reject; }); return { promise, resolve: res, reject: rej }; @@ -4729,17 +4729,17 @@ var require_util2 = __commonJS({ `'next' called on an object that does not implement interface ${name} Iterator.` ); } - const index = this.#index; + const index2 = this.#index; const values = this.#target[kInternalIterator]; const len = values.length; - if (index >= len) { + if (index2 >= len) { return { value: void 0, done: true }; } - const { [keyIndex]: key, [valueIndex]: value } = values[index]; - this.#index = index + 1; + const { [keyIndex]: key, [valueIndex]: value } = values[index2]; + this.#index = index2 + 1; let result; switch (this.#kind) { case "key": @@ -4973,7 +4973,7 @@ var require_util2 = __commonJS({ contentRange += isomorphicEncode(`${fullLength}`); return contentRange; } - var InflateStream = class extends Transform { + var InflateStream = class extends Transform5 { #zlibOptions; /** @param {zlib.ZlibOptions} [zlibOptions] */ constructor(zlibOptions) { @@ -5630,7 +5630,7 @@ var require_formdata_parser = __commonJS({ var require_body = __commonJS({ "node_modules/undici/lib/web/fetch/body.js"(exports2, module2) { "use strict"; - var util = require_util(); + var util3 = require_util(); var { ReadableStreamFrom, isBlobLike, @@ -5705,11 +5705,11 @@ var require_body = __commonJS({ source = new Uint8Array(object.slice()); } else if (ArrayBuffer.isView(object)) { source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength)); - } else if (util.isFormDataLike(object)) { + } else if (util3.isFormDataLike(object)) { const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`; const prefix = `--${boundary}\r Content-Disposition: form-data`; - const escape2 = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"); + const escape3 = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"); const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, "\r\n"); const blobParts = []; const rn = new Uint8Array([13, 10]); @@ -5717,14 +5717,14 @@ Content-Disposition: form-data`; let hasUnknownSizeValue = false; for (const [name, value] of object) { if (typeof value === "string") { - const chunk2 = textEncoder.encode(prefix + `; name="${escape2(normalizeLinefeeds(name))}"\r + const chunk2 = textEncoder.encode(prefix + `; name="${escape3(normalizeLinefeeds(name))}"\r \r ${normalizeLinefeeds(value)}\r `); blobParts.push(chunk2); length += chunk2.byteLength; } else { - const chunk2 = textEncoder.encode(`${prefix}; name="${escape2(normalizeLinefeeds(name))}"` + (value.name ? `; filename="${escape2(value.name)}"` : "") + `\r + const chunk2 = textEncoder.encode(`${prefix}; name="${escape3(normalizeLinefeeds(name))}"` + (value.name ? `; filename="${escape3(value.name)}"` : "") + `\r Content-Type: ${value.type || "application/octet-stream"}\r \r `); @@ -5764,14 +5764,14 @@ Content-Type: ${value.type || "application/octet-stream"}\r if (keepalive) { throw new TypeError("keepalive"); } - if (util.isDisturbed(object) || object.locked) { + if (util3.isDisturbed(object) || object.locked) { throw new TypeError( "Response body object should not be disturbed or locked" ); } stream2 = object instanceof ReadableStream ? object : ReadableStreamFrom(object); } - if (typeof source === "string" || util.isBuffer(source)) { + if (typeof source === "string" || util3.isBuffer(source)) { length = Buffer.byteLength(source); } if (action != null) { @@ -5808,7 +5808,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r } function safelyExtractBody(object, keepalive = false) { if (object instanceof ReadableStream) { - assert(!util.isDisturbed(object), "The body has already been consumed."); + assert(!util3.isDisturbed(object), "The body has already been consumed."); assert(!object.locked, "The stream is locked."); } return extractBody(object, keepalive); @@ -5915,7 +5915,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r } function bodyUnusable(object) { const body = object[kState].body; - return body != null && (body.stream.locked || util.isDisturbed(body.stream)); + return body != null && (body.stream.locked || util3.isDisturbed(body.stream)); } function parseJSONFromBytes(bytes) { return JSON.parse(utf8DecodeBytes(bytes)); @@ -5945,7 +5945,7 @@ var require_client_h1 = __commonJS({ "node_modules/undici/lib/dispatcher/client-h1.js"(exports2, module2) { "use strict"; var assert = require("node:assert"); - var util = require_util(); + var util3 = require_util(); var { channels } = require_diagnostics(); var timers = require_timers(); var { @@ -5996,8 +5996,8 @@ var require_client_h1 = __commonJS({ var constants = require_constants2(); var EMPTY_BUF = Buffer.alloc(0); var FastBuffer = Buffer[Symbol.species]; - var addListener = util.addListener; - var removeAllListeners = util.removeAllListeners; + var addListener = util3.addListener; + var removeAllListeners = util3.removeAllListeners; var extractBody; async function lazyllhttp() { const llhttpWasmData = process.env.JEST_WORKER_ID ? require_llhttp_wasm() : void 0; @@ -6175,7 +6175,7 @@ var require_client_h1 = __commonJS({ throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset)); } } catch (err) { - util.destroy(socket, err); + util3.destroy(socket, err); } } destroy() { @@ -6222,13 +6222,13 @@ var require_client_h1 = __commonJS({ } const key = this.headers[len - 2]; if (key.length === 10) { - const headerName = util.bufferToLowerCasedHeaderName(key); + const headerName = util3.bufferToLowerCasedHeaderName(key); if (headerName === "keep-alive") { this.keepAlive += buf.toString(); } else if (headerName === "connection") { this.connection += buf.toString(); } - } else if (key.length === 14 && util.bufferToLowerCasedHeaderName(key) === "content-length") { + } else if (key.length === 14 && util3.bufferToLowerCasedHeaderName(key) === "content-length") { this.contentLength += buf.toString(); } this.trackHeader(buf.length); @@ -6236,7 +6236,7 @@ var require_client_h1 = __commonJS({ trackHeader(len) { this.headersSize += len; if (this.headersSize >= this.headersMaxSize) { - util.destroy(this.socket, new HeadersOverflowError()); + util3.destroy(this.socket, new HeadersOverflowError()); } } onUpgrade(head) { @@ -6267,7 +6267,7 @@ var require_client_h1 = __commonJS({ try { request3.onUpgrade(statusCode, headers, socket); } catch (err) { - util.destroy(socket, err); + util3.destroy(socket, err); } client[kResume](); } @@ -6283,11 +6283,11 @@ var require_client_h1 = __commonJS({ assert(!this.upgrade); assert(this.statusCode < 200); if (statusCode === 100) { - util.destroy(socket, new SocketError("bad response", util.getSocketInfo(socket))); + util3.destroy(socket, new SocketError("bad response", util3.getSocketInfo(socket))); return -1; } if (upgrade && !request3.upgrade) { - util.destroy(socket, new SocketError("bad upgrade", util.getSocketInfo(socket))); + util3.destroy(socket, new SocketError("bad upgrade", util3.getSocketInfo(socket))); return -1; } assert(this.timeoutType === TIMEOUT_HEADERS); @@ -6316,7 +6316,7 @@ var require_client_h1 = __commonJS({ this.headers = []; this.headersSize = 0; if (this.shouldKeepAlive && client[kPipelining]) { - const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null; + const keepAliveTimeout = this.keepAlive ? util3.parseKeepAliveTimeout(this.keepAlive) : null; if (keepAliveTimeout != null) { const timeout = Math.min( keepAliveTimeout - client[kKeepAliveTimeoutThreshold], @@ -6364,7 +6364,7 @@ var require_client_h1 = __commonJS({ } assert(statusCode >= 200); if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) { - util.destroy(socket, new ResponseExceededMaxSizeError()); + util3.destroy(socket, new ResponseExceededMaxSizeError()); return -1; } this.bytesRead += buf.length; @@ -6396,20 +6396,20 @@ var require_client_h1 = __commonJS({ return; } if (request3.method !== "HEAD" && contentLength && bytesRead !== parseInt(contentLength, 10)) { - util.destroy(socket, new ResponseContentLengthMismatchError()); + util3.destroy(socket, new ResponseContentLengthMismatchError()); return -1; } request3.onComplete(headers); client[kQueue][client[kRunningIdx]++] = null; if (socket[kWriting]) { assert(client[kRunning] === 0); - util.destroy(socket, new InformationalError("reset")); + util3.destroy(socket, new InformationalError("reset")); return constants.ERROR.PAUSED; } else if (!shouldKeepAlive) { - util.destroy(socket, new InformationalError("reset")); + util3.destroy(socket, new InformationalError("reset")); return constants.ERROR.PAUSED; } else if (socket[kReset] && client[kRunning] === 0) { - util.destroy(socket, new InformationalError("reset")); + util3.destroy(socket, new InformationalError("reset")); return constants.ERROR.PAUSED; } else if (client[kPipelining] == null || client[kPipelining] === 1) { setImmediate(() => client[kResume]()); @@ -6423,15 +6423,15 @@ var require_client_h1 = __commonJS({ if (timeoutType === TIMEOUT_HEADERS) { if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) { assert(!paused, "cannot be paused while waiting for headers"); - util.destroy(socket, new HeadersTimeoutError()); + util3.destroy(socket, new HeadersTimeoutError()); } } else if (timeoutType === TIMEOUT_BODY) { if (!paused) { - util.destroy(socket, new BodyTimeoutError()); + util3.destroy(socket, new BodyTimeoutError()); } } else if (timeoutType === TIMEOUT_KEEP_ALIVE) { assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]); - util.destroy(socket, new InformationalError("socket idle timeout")); + util3.destroy(socket, new InformationalError("socket idle timeout")); } } async function connectH1(client, socket) { @@ -6467,7 +6467,7 @@ var require_client_h1 = __commonJS({ parser.onMessageComplete(); return; } - util.destroy(this, new SocketError("other side closed", util.getSocketInfo(this))); + util3.destroy(this, new SocketError("other side closed", util3.getSocketInfo(this))); }); addListener(socket, "close", function() { const client2 = this[kClient]; @@ -6479,7 +6479,7 @@ var require_client_h1 = __commonJS({ this[kParser].destroy(); this[kParser] = null; } - const err = this[kError] || new SocketError("closed", util.getSocketInfo(this)); + const err = this[kError] || new SocketError("closed", util3.getSocketInfo(this)); client2[kSocket] = null; client2[kHTTPContext] = null; if (client2.destroyed) { @@ -6487,12 +6487,12 @@ var require_client_h1 = __commonJS({ const requests = client2[kQueue].splice(client2[kRunningIdx]); for (let i = 0; i < requests.length; i++) { const request3 = requests[i]; - util.errorRequest(client2, request3, err); + util3.errorRequest(client2, request3, err); } } else if (client2[kRunning] > 0 && err.code !== "UND_ERR_INFO") { const request3 = client2[kQueue][client2[kRunningIdx]]; client2[kQueue][client2[kRunningIdx]++] = null; - util.errorRequest(client2, request3, err); + util3.errorRequest(client2, request3, err); } client2[kPendingIdx] = client2[kRunningIdx]; assert(client2[kRunning] === 0); @@ -6533,7 +6533,7 @@ var require_client_h1 = __commonJS({ if (client[kRunning] > 0 && (request3.upgrade || request3.method === "CONNECT")) { return true; } - if (client[kRunning] > 0 && util.bodyLength(request3.body) !== 0 && (util.isStream(request3.body) || util.isAsyncIterable(request3.body) || util.isFormDataLike(request3.body))) { + if (client[kRunning] > 0 && util3.bodyLength(request3.body) !== 0 && (util3.isStream(request3.body) || util3.isAsyncIterable(request3.body) || util3.isFormDataLike(request3.body))) { return true; } } @@ -6570,10 +6570,10 @@ var require_client_h1 = __commonJS({ return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE" && method !== "CONNECT"; } function writeH1(client, request3) { - const { method, path: path28, host, upgrade, blocking, reset } = request3; + const { method, path: path29, host, upgrade, blocking, reset } = request3; let { body, headers, contentLength } = request3; const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH" || method === "QUERY" || method === "PROPFIND" || method === "PROPPATCH"; - if (util.isFormDataLike(body)) { + if (util3.isFormDataLike(body)) { if (!extractBody) { extractBody = require_body().extractBody; } @@ -6583,13 +6583,13 @@ var require_client_h1 = __commonJS({ } body = bodyStream.stream; contentLength = bodyStream.length; - } else if (util.isBlobLike(body) && request3.contentType == null && body.type) { + } else if (util3.isBlobLike(body) && request3.contentType == null && body.type) { headers.push("content-type", body.type); } if (body && typeof body.read === "function") { body.read(0); } - const bodyLength = util.bodyLength(body); + const bodyLength = util3.bodyLength(body); contentLength = bodyLength ?? contentLength; if (contentLength === null) { contentLength = request3.contentLength; @@ -6599,7 +6599,7 @@ var require_client_h1 = __commonJS({ } if (shouldSendContentLength(method) && contentLength > 0 && request3.contentLength !== null && request3.contentLength !== contentLength) { if (client[kStrictContentLength]) { - util.errorRequest(client, request3, new RequestContentLengthMismatchError()); + util3.errorRequest(client, request3, new RequestContentLengthMismatchError()); return false; } process.emitWarning(new RequestContentLengthMismatchError()); @@ -6609,14 +6609,14 @@ var require_client_h1 = __commonJS({ if (request3.aborted || request3.completed) { return; } - util.errorRequest(client, request3, err || new RequestAbortedError()); - util.destroy(body); - util.destroy(socket, new InformationalError("aborted")); + util3.errorRequest(client, request3, err || new RequestAbortedError()); + util3.destroy(body); + util3.destroy(socket, new InformationalError("aborted")); }; try { request3.onConnect(abort); } catch (err) { - util.errorRequest(client, request3, err); + util3.errorRequest(client, request3, err); } if (request3.aborted) { return false; @@ -6636,7 +6636,7 @@ var require_client_h1 = __commonJS({ if (blocking) { socket[kBlocking] = true; } - let header = `${method} ${path28} HTTP/1.1\r + let header = `${method} ${path29} HTTP/1.1\r `; if (typeof host === "string") { header += `host: ${host}\r @@ -6673,17 +6673,17 @@ upgrade: ${upgrade}\r } if (!body || bodyLength === 0) { writeBuffer(abort, null, client, request3, socket, contentLength, header, expectsPayload); - } else if (util.isBuffer(body)) { + } else if (util3.isBuffer(body)) { writeBuffer(abort, body, client, request3, socket, contentLength, header, expectsPayload); - } else if (util.isBlobLike(body)) { + } else if (util3.isBlobLike(body)) { if (typeof body.stream === "function") { writeIterable(abort, body.stream(), client, request3, socket, contentLength, header, expectsPayload); } else { writeBlob(abort, body, client, request3, socket, contentLength, header, expectsPayload); } - } else if (util.isStream(body)) { + } else if (util3.isStream(body)) { writeStream(abort, body, client, request3, socket, contentLength, header, expectsPayload); - } else if (util.isIterable(body)) { + } else if (util3.isIterable(body)) { writeIterable(abort, body, client, request3, socket, contentLength, header, expectsPayload); } else { assert(false); @@ -6703,7 +6703,7 @@ upgrade: ${upgrade}\r this.pause(); } } catch (err) { - util.destroy(this, err); + util3.destroy(this, err); } }; const onDrain = function() { @@ -6740,9 +6740,9 @@ upgrade: ${upgrade}\r } writer.destroy(err); if (err && (err.code !== "UND_ERR_INFO" || err.message !== "reset")) { - util.destroy(body, err); + util3.destroy(body, err); } else { - util.destroy(body); + util3.destroy(body); } }; body.on("data", onData).on("end", onFinished).on("error", onFinished).on("close", onClose); @@ -6771,7 +6771,7 @@ upgrade: ${upgrade}\r socket.write(`${header}\r `, "latin1"); } - } else if (util.isBuffer(body)) { + } else if (util3.isBuffer(body)) { assert(contentLength === body.byteLength, "buffer body must have content length"); socket.cork(); socket.write(`${header}content-length: ${contentLength}\r @@ -6823,12 +6823,12 @@ upgrade: ${upgrade}\r cb(); } } - const waitForDrain = () => new Promise((resolve13, reject) => { + const waitForDrain = () => new Promise((resolve14, reject) => { assert(callback === null); if (socket[kError]) { reject(socket[kError]); } else { - callback = resolve13; + callback = resolve14; } }); socket.on("close", onDrain).on("drain", onDrain); @@ -6966,7 +6966,7 @@ var require_client_h2 = __commonJS({ "use strict"; var assert = require("node:assert"); var { pipeline } = require("node:stream"); - var util = require_util(); + var util3 = require_util(); var { RequestContentLengthMismatchError, RequestAbortedError, @@ -7040,37 +7040,37 @@ var require_client_h2 = __commonJS({ session[kOpenStreams] = 0; session[kClient] = client; session[kSocket] = socket; - util.addListener(session, "error", onHttp2SessionError); - util.addListener(session, "frameError", onHttp2FrameError); - util.addListener(session, "end", onHttp2SessionEnd); - util.addListener(session, "goaway", onHTTP2GoAway); - util.addListener(session, "close", function() { + util3.addListener(session, "error", onHttp2SessionError); + util3.addListener(session, "frameError", onHttp2FrameError); + util3.addListener(session, "end", onHttp2SessionEnd); + util3.addListener(session, "goaway", onHTTP2GoAway); + util3.addListener(session, "close", function() { const { [kClient]: client2 } = this; const { [kSocket]: socket2 } = client2; - const err = this[kSocket][kError] || this[kError] || new SocketError("closed", util.getSocketInfo(socket2)); + const err = this[kSocket][kError] || this[kError] || new SocketError("closed", util3.getSocketInfo(socket2)); client2[kHTTP2Session] = null; if (client2.destroyed) { assert(client2[kPending] === 0); const requests = client2[kQueue].splice(client2[kRunningIdx]); for (let i = 0; i < requests.length; i++) { const request3 = requests[i]; - util.errorRequest(client2, request3, err); + util3.errorRequest(client2, request3, err); } } }); session.unref(); client[kHTTP2Session] = session; socket[kHTTP2Session] = session; - util.addListener(socket, "error", function(err) { + util3.addListener(socket, "error", function(err) { assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID"); this[kError] = err; this[kClient][kOnError](err); }); - util.addListener(socket, "end", function() { - util.destroy(this, new SocketError("other side closed", util.getSocketInfo(this))); + util3.addListener(socket, "end", function() { + util3.destroy(this, new SocketError("other side closed", util3.getSocketInfo(this))); }); - util.addListener(socket, "close", function() { - const err = this[kError] || new SocketError("closed", util.getSocketInfo(this)); + util3.addListener(socket, "close", function() { + const err = this[kError] || new SocketError("closed", util3.getSocketInfo(this)); client[kSocket] = null; if (this[kHTTP2Session] != null) { this[kHTTP2Session].destroy(err); @@ -7133,12 +7133,12 @@ var require_client_h2 = __commonJS({ } } function onHttp2SessionEnd() { - const err = new SocketError("other side closed", util.getSocketInfo(this[kSocket])); + const err = new SocketError("other side closed", util3.getSocketInfo(this[kSocket])); this.destroy(err); - util.destroy(this[kSocket], err); + util3.destroy(this[kSocket], err); } function onHTTP2GoAway(code) { - const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${code}`, util.getSocketInfo(this)); + const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${code}`, util3.getSocketInfo(this)); const client = this[kClient]; client[kSocket] = null; client[kHTTPContext] = null; @@ -7146,11 +7146,11 @@ var require_client_h2 = __commonJS({ this[kHTTP2Session].destroy(err); this[kHTTP2Session] = null; } - util.destroy(this[kSocket], err); + util3.destroy(this[kSocket], err); if (client[kRunningIdx] < client[kQueue].length) { const request3 = client[kQueue][client[kRunningIdx]]; client[kQueue][client[kRunningIdx]++] = null; - util.errorRequest(client, request3, err); + util3.errorRequest(client, request3, err); client[kPendingIdx] = client[kRunningIdx]; } assert(client[kRunning] === 0); @@ -7162,10 +7162,10 @@ var require_client_h2 = __commonJS({ } function writeH2(client, request3) { const session = client[kHTTP2Session]; - const { method, path: path28, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3; + const { method, path: path29, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3; let { body } = request3; if (upgrade) { - util.errorRequest(client, request3, new Error("Upgrade not supported for H2")); + util3.errorRequest(client, request3, new Error("Upgrade not supported for H2")); return false; } const headers = {}; @@ -7193,18 +7193,18 @@ var require_client_h2 = __commonJS({ return; } err = err || new RequestAbortedError(); - util.errorRequest(client, request3, err); + util3.errorRequest(client, request3, err); if (stream2 != null) { - util.destroy(stream2, err); + util3.destroy(stream2, err); } - util.destroy(body, err); + util3.destroy(body, err); client[kQueue][client[kRunningIdx]++] = null; client[kResume](); }; try { request3.onConnect(abort); } catch (err) { - util.errorRequest(client, request3, err); + util3.errorRequest(client, request3, err); } if (request3.aborted) { return false; @@ -7229,14 +7229,14 @@ var require_client_h2 = __commonJS({ }); return true; } - headers[HTTP2_HEADER_PATH] = path28; + headers[HTTP2_HEADER_PATH] = path29; headers[HTTP2_HEADER_SCHEME] = "https"; const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH"; if (body && typeof body.read === "function") { body.read(0); } - let contentLength = util.bodyLength(body); - if (util.isFormDataLike(body)) { + let contentLength = util3.bodyLength(body); + if (util3.isFormDataLike(body)) { extractBody ??= require_body().extractBody; const [bodyStream, contentType] = extractBody(body); headers["content-type"] = contentType; @@ -7251,7 +7251,7 @@ var require_client_h2 = __commonJS({ } if (shouldSendContentLength(method) && contentLength > 0 && request3.contentLength != null && request3.contentLength !== contentLength) { if (client[kStrictContentLength]) { - util.errorRequest(client, request3, new RequestContentLengthMismatchError()); + util3.errorRequest(client, request3, new RequestContentLengthMismatchError()); return false; } process.emitWarning(new RequestContentLengthMismatchError()); @@ -7279,8 +7279,8 @@ var require_client_h2 = __commonJS({ request3.onResponseStarted(); if (request3.aborted) { const err = new RequestAbortedError(); - util.errorRequest(client, request3, err); - util.destroy(stream2, err); + util3.errorRequest(client, request3, err); + util3.destroy(stream2, err); return; } if (request3.onHeaders(Number(statusCode), parseH2Headers(realHeaders), stream2.resume.bind(stream2), "") === false) { @@ -7329,7 +7329,7 @@ var require_client_h2 = __commonJS({ contentLength, expectsPayload ); - } else if (util.isBuffer(body)) { + } else if (util3.isBuffer(body)) { writeBuffer( abort, stream2, @@ -7340,7 +7340,7 @@ var require_client_h2 = __commonJS({ contentLength, expectsPayload ); - } else if (util.isBlobLike(body)) { + } else if (util3.isBlobLike(body)) { if (typeof body.stream === "function") { writeIterable( abort, @@ -7364,7 +7364,7 @@ var require_client_h2 = __commonJS({ expectsPayload ); } - } else if (util.isStream(body)) { + } else if (util3.isStream(body)) { writeStream( abort, client[kSocket], @@ -7375,7 +7375,7 @@ var require_client_h2 = __commonJS({ request3, contentLength ); - } else if (util.isIterable(body)) { + } else if (util3.isIterable(body)) { writeIterable( abort, stream2, @@ -7393,7 +7393,7 @@ var require_client_h2 = __commonJS({ } function writeBuffer(abort, h2stream, body, client, request3, socket, contentLength, expectsPayload) { try { - if (body != null && util.isBuffer(body)) { + if (body != null && util3.isBuffer(body)) { assert(contentLength === body.byteLength, "buffer body must have content length"); h2stream.cork(); h2stream.write(body); @@ -7417,10 +7417,10 @@ var require_client_h2 = __commonJS({ h2stream, (err) => { if (err) { - util.destroy(pipe, err); + util3.destroy(pipe, err); abort(err); } else { - util.removeAllListeners(pipe); + util3.removeAllListeners(pipe); request3.onRequestSent(); if (!expectsPayload) { socket[kReset] = true; @@ -7429,7 +7429,7 @@ var require_client_h2 = __commonJS({ } } ); - util.addListener(pipe, "data", onPipeData); + util3.addListener(pipe, "data", onPipeData); function onPipeData(chunk) { request3.onBodySent(chunk); } @@ -7465,12 +7465,12 @@ var require_client_h2 = __commonJS({ cb(); } } - const waitForDrain = () => new Promise((resolve13, reject) => { + const waitForDrain = () => new Promise((resolve14, reject) => { assert(callback === null); if (socket[kError]) { reject(socket[kError]); } else { - callback = resolve13; + callback = resolve14; } }); h2stream.on("close", onDrain).on("drain", onDrain); @@ -7505,7 +7505,7 @@ var require_client_h2 = __commonJS({ var require_redirect_handler = __commonJS({ "node_modules/undici/lib/handler/redirect-handler.js"(exports2, module2) { "use strict"; - var util = require_util(); + var util3 = require_util(); var { kBodyUsed } = require_symbols(); var assert = require("node:assert"); var { InvalidArgumentError } = require_errors(); @@ -7528,7 +7528,7 @@ var require_redirect_handler = __commonJS({ if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) { throw new InvalidArgumentError("maxRedirections must be a positive number"); } - util.validateHandler(handler2, opts.method, opts.upgrade); + util3.validateHandler(handler2, opts.method, opts.upgrade); this.dispatch = dispatch; this.location = null; this.abort = null; @@ -7537,8 +7537,8 @@ var require_redirect_handler = __commonJS({ this.handler = handler2; this.history = []; this.redirectionLimitReached = false; - if (util.isStream(this.opts.body)) { - if (util.bodyLength(this.opts.body) === 0) { + if (util3.isStream(this.opts.body)) { + if (util3.bodyLength(this.opts.body) === 0) { this.opts.body.on("data", function() { assert(false); }); @@ -7551,7 +7551,7 @@ var require_redirect_handler = __commonJS({ } } else if (this.opts.body && typeof this.opts.body.pipeTo === "function") { this.opts.body = new BodyAsyncIterable(this.opts.body); - } else if (this.opts.body && typeof this.opts.body !== "string" && !ArrayBuffer.isView(this.opts.body) && util.isIterable(this.opts.body)) { + } else if (this.opts.body && typeof this.opts.body !== "string" && !ArrayBuffer.isView(this.opts.body) && util3.isIterable(this.opts.body)) { this.opts.body = new BodyAsyncIterable(this.opts.body); } } @@ -7566,7 +7566,7 @@ var require_redirect_handler = __commonJS({ this.handler.onError(error3); } onHeaders(statusCode, headers, resume, statusText) { - this.location = this.history.length >= this.maxRedirections || util.isDisturbed(this.opts.body) ? null : parseLocation(statusCode, headers); + this.location = this.history.length >= this.maxRedirections || util3.isDisturbed(this.opts.body) ? null : parseLocation(statusCode, headers); if (this.opts.throwOnMaxRedirect && this.history.length >= this.maxRedirections) { if (this.request) { this.request.abort(new Error("max redirects")); @@ -7581,10 +7581,10 @@ var require_redirect_handler = __commonJS({ if (!this.location) { return this.handler.onHeaders(statusCode, headers, resume, statusText); } - const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin))); - const path28 = search ? `${pathname}${search}` : pathname; + const { origin, pathname, search } = util3.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin))); + const path29 = search ? `${pathname}${search}` : pathname; this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin); - this.opts.path = path28; + this.opts.path = path29; this.opts.origin = origin; this.opts.maxRedirections = 0; this.opts.query = null; @@ -7619,20 +7619,20 @@ var require_redirect_handler = __commonJS({ return null; } for (let i = 0; i < headers.length; i += 2) { - if (headers[i].length === 8 && util.headerNameToString(headers[i]) === "location") { + if (headers[i].length === 8 && util3.headerNameToString(headers[i]) === "location") { return headers[i + 1]; } } } function shouldRemoveHeader(header, removeContent, unknownOrigin) { if (header.length === 4) { - return util.headerNameToString(header) === "host"; + return util3.headerNameToString(header) === "host"; } - if (removeContent && util.headerNameToString(header).startsWith("content-")) { + if (removeContent && util3.headerNameToString(header).startsWith("content-")) { return true; } if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) { - const name = util.headerNameToString(header); + const name = util3.headerNameToString(header); return name === "authorization" || name === "cookie" || name === "proxy-authorization"; } return false; @@ -7689,7 +7689,7 @@ var require_client = __commonJS({ var assert = require("node:assert"); var net = require("node:net"); var http = require("node:http"); - var util = require_util(); + var util3 = require_util(); var { channels } = require_diagnostics(); var Request = require_request(); var DispatcherBase = require_dispatcher_base(); @@ -7872,7 +7872,7 @@ var require_client = __commonJS({ } else { this[kInterceptors] = [createRedirectInterceptor({ maxRedirections })]; } - this[kUrl] = util.parseOrigin(url2); + this[kUrl] = util3.parseOrigin(url2); this[kConnector] = connect2; this[kPipelining] = pipelining != null ? pipelining : 1; this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize; @@ -7935,7 +7935,7 @@ var require_client = __commonJS({ const request3 = new Request(origin, opts, handler2); this[kQueue].push(request3); if (this[kResuming]) { - } else if (util.bodyLength(request3.body) == null && util.isIterable(request3.body)) { + } else if (util3.bodyLength(request3.body) == null && util3.isIterable(request3.body)) { this[kResuming] = 1; queueMicrotask(() => resume(this)); } else { @@ -7947,27 +7947,27 @@ var require_client = __commonJS({ return this[kNeedDrain] < 2; } async [kClose]() { - return new Promise((resolve13) => { + return new Promise((resolve14) => { if (this[kSize]) { - this[kClosedResolve] = resolve13; + this[kClosedResolve] = resolve14; } else { - resolve13(null); + resolve14(null); } }); } async [kDestroy](err) { - return new Promise((resolve13) => { + return new Promise((resolve14) => { const requests = this[kQueue].splice(this[kPendingIdx]); for (let i = 0; i < requests.length; i++) { const request3 = requests[i]; - util.errorRequest(this, request3, err); + util3.errorRequest(this, request3, err); } const callback = () => { if (this[kClosedResolve]) { this[kClosedResolve](); this[kClosedResolve] = null; } - resolve13(null); + resolve14(null); }; if (this[kHTTPContext]) { this[kHTTPContext].destroy(err, callback); @@ -7986,7 +7986,7 @@ var require_client = __commonJS({ const requests = client[kQueue].splice(client[kRunningIdx]); for (let i = 0; i < requests.length; i++) { const request3 = requests[i]; - util.errorRequest(client, request3, err); + util3.errorRequest(client, request3, err); } assert(client[kSize] === 0); } @@ -8018,7 +8018,7 @@ var require_client = __commonJS({ }); } try { - const socket = await new Promise((resolve13, reject) => { + const socket = await new Promise((resolve14, reject) => { client[kConnector]({ host, hostname, @@ -8030,12 +8030,12 @@ var require_client = __commonJS({ if (err) { reject(err); } else { - resolve13(socket2); + resolve14(socket2); } }); }); if (client.destroyed) { - util.destroy(socket.on("error", noop3), new ClientDestroyedError()); + util3.destroy(socket.on("error", noop3), new ClientDestroyedError()); return; } assert(socket); @@ -8090,7 +8090,7 @@ var require_client = __commonJS({ assert(client[kRunning] === 0); while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) { const request3 = client[kQueue][client[kPendingIdx]++]; - util.errorRequest(client, request3, err); + util3.errorRequest(client, request3, err); } } else { onError(client, err); @@ -8299,10 +8299,10 @@ var require_pool_base = __commonJS({ this[kQueued] = 0; const pool = this; this[kOnDrain] = function onDrain(origin, targets) { - const queue = pool[kQueue]; + const queue2 = pool[kQueue]; let needDrain = false; while (!needDrain) { - const item = queue.shift(); + const item = queue2.shift(); if (!item) { break; } @@ -8314,7 +8314,7 @@ var require_pool_base = __commonJS({ pool[kNeedDrain] = false; pool.emit("drain", origin, [pool, ...targets]); } - if (pool[kClosedResolve] && queue.isEmpty()) { + if (pool[kClosedResolve] && queue2.isEmpty()) { Promise.all(pool[kClients].map((c) => c.close())).then(pool[kClosedResolve]); } }; @@ -8366,8 +8366,8 @@ var require_pool_base = __commonJS({ if (this[kQueue].isEmpty()) { await Promise.all(this[kClients].map((c) => c.close())); } else { - await new Promise((resolve13) => { - this[kClosedResolve] = resolve13; + await new Promise((resolve14) => { + this[kClosedResolve] = resolve14; }); } } @@ -8441,7 +8441,7 @@ var require_pool = __commonJS({ var { InvalidArgumentError } = require_errors(); - var util = require_util(); + var util3 = require_util(); var { kUrl, kInterceptors } = require_symbols(); var buildConnector = require_connect(); var kOptions = /* @__PURE__ */ Symbol("options"); @@ -8487,8 +8487,8 @@ var require_pool = __commonJS({ } this[kInterceptors] = options.interceptors?.Pool && Array.isArray(options.interceptors.Pool) ? options.interceptors.Pool : []; this[kConnections] = connections || null; - this[kUrl] = util.parseOrigin(origin); - this[kOptions] = { ...util.deepClone(options), connect, allowH2 }; + this[kUrl] = util3.parseOrigin(origin); + this[kOptions] = { ...util3.deepClone(options), connect, allowH2 }; this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0; this[kFactory] = factory; this.on("connectionError", (origin2, targets, error3) => { @@ -8670,7 +8670,7 @@ var require_agent = __commonJS({ var DispatcherBase = require_dispatcher_base(); var Pool = require_pool(); var Client = require_client(); - var util = require_util(); + var util3 = require_util(); var createRedirectInterceptor = require_redirect_interceptor(); var kOnConnect = /* @__PURE__ */ Symbol("onConnect"); var kOnDisconnect = /* @__PURE__ */ Symbol("onDisconnect"); @@ -8698,7 +8698,7 @@ var require_agent = __commonJS({ connect = { ...connect }; } this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })]; - this[kOptions] = { ...util.deepClone(options), connect }; + this[kOptions] = { ...util3.deepClone(options), connect }; this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0; this[kMaxRedirections] = maxRedirections; this[kFactory] = factory; @@ -8818,10 +8818,10 @@ var require_proxy_agent = __commonJS({ }; const { origin, - path: path28 = "/", + path: path29 = "/", headers = {} } = opts; - opts.path = origin + path28; + opts.path = origin + path29; if (!("host" in headers) && !("Host" in headers)) { const { host } = new URL2(origin); headers.host = host; @@ -9314,8 +9314,8 @@ var require_retry_handler = __commonJS({ } if (this.end == null) { if (statusCode === 206) { - const range = parseRangeHeader(headers["content-range"]); - if (range == null) { + const range2 = parseRangeHeader(headers["content-range"]); + if (range2 == null) { return this.handler.onHeaders( statusCode, rawHeaders, @@ -9323,7 +9323,7 @@ var require_retry_handler = __commonJS({ statusMessage ); } - const { start, size, end = size - 1 } = range; + const { start, size, end = size - 1 } = range2; assert( start != null && Number.isFinite(start), "content-range mismatch" @@ -9455,9 +9455,9 @@ var require_readable = __commonJS({ "node_modules/undici/lib/api/readable.js"(exports2, module2) { "use strict"; var assert = require("node:assert"); - var { Readable: Readable2 } = require("node:stream"); + var { Readable: Readable3 } = require("node:stream"); var { RequestAbortedError, NotSupportedError, InvalidArgumentError, AbortError } = require_errors(); - var util = require_util(); + var util3 = require_util(); var { ReadableStreamFrom } = require_util(); var kConsume = /* @__PURE__ */ Symbol("kConsume"); var kReading = /* @__PURE__ */ Symbol("kReading"); @@ -9467,7 +9467,7 @@ var require_readable = __commonJS({ var kContentLength = /* @__PURE__ */ Symbol("kContentLength"); var noop3 = () => { }; - var BodyReadable = class extends Readable2 { + var BodyReadable = class extends Readable3 { constructor({ resume, abort, @@ -9559,7 +9559,7 @@ var require_readable = __commonJS({ } // https://fetch.spec.whatwg.org/#dom-body-bodyused get bodyUsed() { - return util.isDisturbed(this); + return util3.isDisturbed(this); } // https://fetch.spec.whatwg.org/#dom-body-body get body() { @@ -9582,7 +9582,7 @@ var require_readable = __commonJS({ if (this._readableState.closeEmitted) { return null; } - return await new Promise((resolve13, reject) => { + return await new Promise((resolve14, reject) => { if (this[kContentLength] > limit) { this.destroy(new AbortError()); } @@ -9595,7 +9595,7 @@ var require_readable = __commonJS({ if (signal?.aborted) { reject(signal.reason ?? new AbortError()); } else { - resolve13(null); + resolve14(null); } }).on("error", noop3).on("data", function(chunk) { limit -= chunk.length; @@ -9610,11 +9610,11 @@ var require_readable = __commonJS({ return self2[kBody] && self2[kBody].locked === true || self2[kConsume]; } function isUnusable(self2) { - return util.isDisturbed(self2) || isLocked(self2); + return util3.isDisturbed(self2) || isLocked(self2); } async function consume(stream2, type) { assert(!stream2[kConsume]); - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { if (isUnusable(stream2)) { const rState = stream2._readableState; if (rState.destroyed && rState.closeEmitted === false) { @@ -9631,7 +9631,7 @@ var require_readable = __commonJS({ stream2[kConsume] = { type, stream: stream2, - resolve: resolve13, + resolve: resolve14, reject, length: 0, body: [] @@ -9701,18 +9701,18 @@ var require_readable = __commonJS({ return buffer; } function consumeEnd(consume2) { - const { type, body, resolve: resolve13, stream: stream2, length } = consume2; + const { type, body, resolve: resolve14, stream: stream2, length } = consume2; try { if (type === "text") { - resolve13(chunksDecode(body, length)); + resolve14(chunksDecode(body, length)); } else if (type === "json") { - resolve13(JSON.parse(chunksDecode(body, length))); + resolve14(JSON.parse(chunksDecode(body, length))); } else if (type === "arrayBuffer") { - resolve13(chunksConcat(body, length).buffer); + resolve14(chunksConcat(body, length).buffer); } else if (type === "blob") { - resolve13(new Blob(body, { type: stream2[kContentType] })); + resolve14(new Blob(body, { type: stream2[kContentType] })); } else if (type === "bytes") { - resolve13(chunksConcat(body, length)); + resolve14(chunksConcat(body, length)); } consumeFinish(consume2); } catch (err) { @@ -9809,9 +9809,9 @@ var require_api_request = __commonJS({ "node_modules/undici/lib/api/api-request.js"(exports2, module2) { "use strict"; var assert = require("node:assert"); - var { Readable: Readable2 } = require_readable(); + var { Readable: Readable3 } = require_readable(); var { InvalidArgumentError, RequestAbortedError } = require_errors(); - var util = require_util(); + var util3 = require_util(); var { getResolveErrorBodyCallback } = require_util3(); var { AsyncResource } = require("node:async_hooks"); var RequestHandler = class extends AsyncResource { @@ -9838,8 +9838,8 @@ var require_api_request = __commonJS({ } super("UNDICI_REQUEST"); } catch (err) { - if (util.isStream(body)) { - util.destroy(body.on("error", util.nop), err); + if (util3.isStream(body)) { + util3.destroy(body.on("error", util3.nop), err); } throw err; } @@ -9858,7 +9858,7 @@ var require_api_request = __commonJS({ this.signal = signal; this.reason = null; this.removeAbortListener = null; - if (util.isStream(body)) { + if (util3.isStream(body)) { body.on("error", (err) => { this.onError(err); }); @@ -9867,10 +9867,10 @@ var require_api_request = __commonJS({ if (this.signal.aborted) { this.reason = this.signal.reason ?? new RequestAbortedError(); } else { - this.removeAbortListener = util.addAbortListener(this.signal, () => { + this.removeAbortListener = util3.addAbortListener(this.signal, () => { this.reason = this.signal.reason ?? new RequestAbortedError(); if (this.res) { - util.destroy(this.res.on("error", util.nop), this.reason); + util3.destroy(this.res.on("error", util3.nop), this.reason); } else if (this.abort) { this.abort(this.reason); } @@ -9894,17 +9894,17 @@ var require_api_request = __commonJS({ } onHeaders(statusCode, rawHeaders, resume, statusMessage) { const { callback, opaque, abort, context: context5, responseHeaders, highWaterMark } = this; - const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders); + const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders); if (statusCode < 200) { if (this.onInfo) { this.onInfo({ statusCode, headers }); } return; } - const parsedHeaders = responseHeaders === "raw" ? util.parseHeaders(rawHeaders) : headers; + const parsedHeaders = responseHeaders === "raw" ? util3.parseHeaders(rawHeaders) : headers; const contentType = parsedHeaders["content-type"]; const contentLength = parsedHeaders["content-length"]; - const res = new Readable2({ + const res = new Readable3({ resume, abort, contentType, @@ -9939,7 +9939,7 @@ var require_api_request = __commonJS({ return this.res.push(chunk); } onComplete(trailers) { - util.parseHeaders(trailers, this.trailers); + util3.parseHeaders(trailers, this.trailers); this.res.push(null); } onError(err) { @@ -9953,12 +9953,12 @@ var require_api_request = __commonJS({ if (res) { this.res = null; queueMicrotask(() => { - util.destroy(res, err); + util3.destroy(res, err); }); } if (body) { this.body = null; - util.destroy(body, err); + util3.destroy(body, err); } if (this.removeAbortListener) { res?.off("close", this.removeAbortListener); @@ -9969,9 +9969,9 @@ var require_api_request = __commonJS({ }; function request3(opts, callback) { if (callback === void 0) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { request3.call(this, opts, (err, data) => { - return err ? reject(err) : resolve13(data); + return err ? reject(err) : resolve14(data); }); }); } @@ -10046,9 +10046,9 @@ var require_api_stream = __commonJS({ "node_modules/undici/lib/api/api-stream.js"(exports2, module2) { "use strict"; var assert = require("node:assert"); - var { finished, PassThrough } = require("node:stream"); + var { finished, PassThrough: PassThrough3 } = require("node:stream"); var { InvalidArgumentError, InvalidReturnValueError } = require_errors(); - var util = require_util(); + var util3 = require_util(); var { getResolveErrorBodyCallback } = require_util3(); var { AsyncResource } = require("node:async_hooks"); var { addSignal, removeSignal } = require_abort_signal(); @@ -10076,8 +10076,8 @@ var require_api_stream = __commonJS({ } super("UNDICI_STREAM"); } catch (err) { - if (util.isStream(body)) { - util.destroy(body.on("error", util.nop), err); + if (util3.isStream(body)) { + util3.destroy(body.on("error", util3.nop), err); } throw err; } @@ -10092,7 +10092,7 @@ var require_api_stream = __commonJS({ this.body = body; this.onInfo = onInfo || null; this.throwOnError = throwOnError || false; - if (util.isStream(body)) { + if (util3.isStream(body)) { body.on("error", (err) => { this.onError(err); }); @@ -10110,7 +10110,7 @@ var require_api_stream = __commonJS({ } onHeaders(statusCode, rawHeaders, resume, statusMessage) { const { factory, opaque, context: context5, callback, responseHeaders } = this; - const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders); + const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders); if (statusCode < 200) { if (this.onInfo) { this.onInfo({ statusCode, headers }); @@ -10120,9 +10120,9 @@ var require_api_stream = __commonJS({ this.factory = null; let res; if (this.throwOnError && statusCode >= 400) { - const parsedHeaders = responseHeaders === "raw" ? util.parseHeaders(rawHeaders) : headers; + const parsedHeaders = responseHeaders === "raw" ? util3.parseHeaders(rawHeaders) : headers; const contentType = parsedHeaders["content-type"]; - res = new PassThrough(); + res = new PassThrough3(); this.callback = null; this.runInAsyncScope( getResolveErrorBodyCallback, @@ -10146,7 +10146,7 @@ var require_api_stream = __commonJS({ const { callback: callback2, res: res2, opaque: opaque2, trailers, abort } = this; this.res = null; if (err || !res2.readable) { - util.destroy(res2, err); + util3.destroy(res2, err); } this.callback = null; this.runInAsyncScope(callback2, null, err || null, { opaque: opaque2, trailers }); @@ -10170,7 +10170,7 @@ var require_api_stream = __commonJS({ if (!res) { return; } - this.trailers = util.parseHeaders(trailers); + this.trailers = util3.parseHeaders(trailers); res.end(); } onError(err) { @@ -10179,7 +10179,7 @@ var require_api_stream = __commonJS({ this.factory = null; if (res) { this.res = null; - util.destroy(res, err); + util3.destroy(res, err); } else if (callback) { this.callback = null; queueMicrotask(() => { @@ -10188,15 +10188,15 @@ var require_api_stream = __commonJS({ } if (body) { this.body = null; - util.destroy(body, err); + util3.destroy(body, err); } } }; function stream2(opts, factory, callback) { if (callback === void 0) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { stream2.call(this, opts, factory, (err, data) => { - return err ? reject(err) : resolve13(data); + return err ? reject(err) : resolve14(data); }); }); } @@ -10219,21 +10219,21 @@ var require_api_pipeline = __commonJS({ "node_modules/undici/lib/api/api-pipeline.js"(exports2, module2) { "use strict"; var { - Readable: Readable2, + Readable: Readable3, Duplex, - PassThrough + PassThrough: PassThrough3 } = require("node:stream"); var { InvalidArgumentError, InvalidReturnValueError, RequestAbortedError } = require_errors(); - var util = require_util(); + var util3 = require_util(); var { AsyncResource } = require("node:async_hooks"); var { addSignal, removeSignal } = require_abort_signal(); var assert = require("node:assert"); var kResume = /* @__PURE__ */ Symbol("resume"); - var PipelineRequest = class extends Readable2 { + var PipelineRequest = class extends Readable3 { constructor() { super({ autoDestroy: true }); this[kResume] = null; @@ -10250,7 +10250,7 @@ var require_api_pipeline = __commonJS({ callback(err); } }; - var PipelineResponse = class extends Readable2 { + var PipelineResponse = class extends Readable3 { constructor(resume) { super({ autoDestroy: true }); this[kResume] = resume; @@ -10290,7 +10290,7 @@ var require_api_pipeline = __commonJS({ this.abort = null; this.context = null; this.onInfo = onInfo || null; - this.req = new PipelineRequest().on("error", util.nop); + this.req = new PipelineRequest().on("error", util3.nop); this.ret = new Duplex({ readableObjectMode: opts.objectMode, autoDestroy: true, @@ -10316,9 +10316,9 @@ var require_api_pipeline = __commonJS({ if (abort && err) { abort(); } - util.destroy(body, err); - util.destroy(req, err); - util.destroy(res, err); + util3.destroy(body, err); + util3.destroy(req, err); + util3.destroy(res, err); removeSignal(this); callback(err); } @@ -10344,7 +10344,7 @@ var require_api_pipeline = __commonJS({ const { opaque, handler: handler2, context: context5 } = this; if (statusCode < 200) { if (this.onInfo) { - const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders); + const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders); this.onInfo({ statusCode, headers }); } return; @@ -10353,7 +10353,7 @@ var require_api_pipeline = __commonJS({ let body; try { this.handler = null; - const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders); + const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders); body = this.runInAsyncScope(handler2, null, { statusCode, headers, @@ -10362,7 +10362,7 @@ var require_api_pipeline = __commonJS({ context: context5 }); } catch (err) { - this.res.on("error", util.nop); + this.res.on("error", util3.nop); throw err; } if (!body || typeof body.on !== "function") { @@ -10375,14 +10375,14 @@ var require_api_pipeline = __commonJS({ } }).on("error", (err) => { const { ret } = this; - util.destroy(ret, err); + util3.destroy(ret, err); }).on("end", () => { const { ret } = this; ret.push(null); }).on("close", () => { const { ret } = this; if (!ret._readableState.ended) { - util.destroy(ret, new RequestAbortedError()); + util3.destroy(ret, new RequestAbortedError()); } }); this.body = body; @@ -10398,7 +10398,7 @@ var require_api_pipeline = __commonJS({ onError(err) { const { ret } = this; this.handler = null; - util.destroy(ret, err); + util3.destroy(ret, err); } }; function pipeline(opts, handler2) { @@ -10407,7 +10407,7 @@ var require_api_pipeline = __commonJS({ this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler); return pipelineHandler.ret; } catch (err) { - return new PassThrough().destroy(err); + return new PassThrough3().destroy(err); } } module2.exports = pipeline; @@ -10420,7 +10420,7 @@ var require_api_upgrade = __commonJS({ "use strict"; var { InvalidArgumentError, SocketError } = require_errors(); var { AsyncResource } = require("node:async_hooks"); - var util = require_util(); + var util3 = require_util(); var { addSignal, removeSignal } = require_abort_signal(); var assert = require("node:assert"); var UpgradeHandler = class extends AsyncResource { @@ -10460,7 +10460,7 @@ var require_api_upgrade = __commonJS({ const { callback, opaque, context: context5 } = this; removeSignal(this); this.callback = null; - const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders); + const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders); this.runInAsyncScope(callback, null, null, { headers, socket, @@ -10481,9 +10481,9 @@ var require_api_upgrade = __commonJS({ }; function upgrade(opts, callback) { if (callback === void 0) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { upgrade.call(this, opts, (err, data) => { - return err ? reject(err) : resolve13(data); + return err ? reject(err) : resolve14(data); }); }); } @@ -10513,7 +10513,7 @@ var require_api_connect = __commonJS({ var assert = require("node:assert"); var { AsyncResource } = require("node:async_hooks"); var { InvalidArgumentError, SocketError } = require_errors(); - var util = require_util(); + var util3 = require_util(); var { addSignal, removeSignal } = require_abort_signal(); var ConnectHandler = class extends AsyncResource { constructor(opts, callback) { @@ -10552,7 +10552,7 @@ var require_api_connect = __commonJS({ this.callback = null; let headers = rawHeaders; if (headers != null) { - headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders); + headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders); } this.runInAsyncScope(callback, null, null, { statusCode, @@ -10575,9 +10575,9 @@ var require_api_connect = __commonJS({ }; function connect(opts, callback) { if (callback === void 0) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { connect.call(this, opts, (err, data) => { - return err ? reject(err) : resolve13(data); + return err ? reject(err) : resolve14(data); }); }); } @@ -10680,15 +10680,15 @@ var require_mock_utils = __commonJS({ isPromise } } = require("node:util"); - function matchValue(match, value) { - if (typeof match === "string") { - return match === value; + function matchValue(match2, value) { + if (typeof match2 === "string") { + return match2 === value; } - if (match instanceof RegExp) { - return match.test(value); + if (match2 instanceof RegExp) { + return match2.test(value); } - if (typeof match === "function") { - return match(value) === true; + if (typeof match2 === "function") { + return match2(value) === true; } return false; } @@ -10716,8 +10716,8 @@ var require_mock_utils = __commonJS({ function buildHeadersFromArray(headers) { const clone = headers.slice(); const entries = []; - for (let index = 0; index < clone.length; index += 2) { - entries.push([clone[index], clone[index + 1]]); + for (let index2 = 0; index2 < clone.length; index2 += 2) { + entries.push([clone[index2], clone[index2 + 1]]); } return Object.fromEntries(entries); } @@ -10742,20 +10742,20 @@ var require_mock_utils = __commonJS({ } return true; } - function safeUrl(path28) { - if (typeof path28 !== "string") { - return path28; + function safeUrl(path29) { + if (typeof path29 !== "string") { + return path29; } - const pathSegments = path28.split("?"); + const pathSegments = path29.split("?"); if (pathSegments.length !== 2) { - return path28; + return path29; } const qp = new URLSearchParams(pathSegments.pop()); qp.sort(); return [...pathSegments, qp.toString()].join("?"); } - function matchKey(mockDispatch2, { path: path28, method, body, headers }) { - const pathMatch = matchValue(mockDispatch2.path, path28); + function matchKey(mockDispatch2, { path: path29, method, body, headers }) { + const pathMatch = matchValue(mockDispatch2.path, path29); const methodMatch = matchValue(mockDispatch2.method, method); const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true; const headersMatch = matchHeaders(mockDispatch2, headers); @@ -10777,7 +10777,7 @@ var require_mock_utils = __commonJS({ function getMockDispatch(mockDispatches, key) { const basePath = key.query ? buildURL(key.path, key.query) : key.path; const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath; - let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path28 }) => matchValue(safeUrl(path28), resolvedPath)); + let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path29 }) => matchValue(safeUrl(path29), resolvedPath)); if (matchedMockDispatches.length === 0) { throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`); } @@ -10804,20 +10804,20 @@ var require_mock_utils = __commonJS({ return newMockDispatch; } function deleteMockDispatch(mockDispatches, key) { - const index = mockDispatches.findIndex((dispatch) => { + const index2 = mockDispatches.findIndex((dispatch) => { if (!dispatch.consumed) { return false; } return matchKey(dispatch, key); }); - if (index !== -1) { - mockDispatches.splice(index, 1); + if (index2 !== -1) { + mockDispatches.splice(index2, 1); } } function buildKey(opts) { - const { path: path28, method, body, headers, query } = opts; + const { path: path29, method, body, headers, query } = opts; return { - path: path28, + path: path29, method, body, headers, @@ -11260,13 +11260,13 @@ var require_pluralizer = __commonJS({ var require_pending_interceptors_formatter = __commonJS({ "node_modules/undici/lib/mock/pending-interceptors-formatter.js"(exports2, module2) { "use strict"; - var { Transform } = require("node:stream"); + var { Transform: Transform5 } = require("node:stream"); var { Console } = require("node:console"); var PERSISTENT = process.versions.icu ? "\u2705" : "Y "; var NOT_PERSISTENT = process.versions.icu ? "\u274C" : "N "; module2.exports = class PendingInterceptorsFormatter { constructor({ disableColors } = {}) { - this.transform = new Transform({ + this.transform = new Transform5({ transform(chunk, _enc, cb) { cb(null, chunk); } @@ -11280,10 +11280,10 @@ var require_pending_interceptors_formatter = __commonJS({ } format(pendingInterceptors) { const withPrettyHeaders = pendingInterceptors.map( - ({ method, path: path28, data: { statusCode }, persist, times, timesInvoked, origin }) => ({ + ({ method, path: path29, data: { statusCode }, persist, times, timesInvoked, origin }) => ({ Method: method, Origin: origin, - Path: path28, + Path: path29, "Status code": statusCode, Persistent: persist ? PERSISTENT : NOT_PERSISTENT, Invocations: timesInvoked, @@ -11552,7 +11552,7 @@ var require_retry = __commonJS({ var require_dump = __commonJS({ "node_modules/undici/lib/interceptor/dump.js"(exports2, module2) { "use strict"; - var util = require_util(); + var util3 = require_util(); var { InvalidArgumentError, RequestAbortedError } = require_errors(); var DecoratorHandler = require_decorator_handler(); var DumpHandler = class extends DecoratorHandler { @@ -11581,7 +11581,7 @@ var require_dump = __commonJS({ } // TODO: will require adjustment after new hooks are out onHeaders(statusCode, rawHeaders, resume, statusMessage) { - const headers = util.parseHeaders(rawHeaders); + const headers = util3.parseHeaders(rawHeaders); const contentLength = headers["content-length"]; if (contentLength != null && contentLength > this.#maxSize) { throw new RequestAbortedError( @@ -11948,7 +11948,7 @@ var require_headers = __commonJS({ } = require_util2(); var { webidl } = require_webidl(); var assert = require("node:assert"); - var util = require("node:util"); + var util3 = require("node:util"); var kHeadersMap = /* @__PURE__ */ Symbol("headers map"); var kHeadersSortedMap = /* @__PURE__ */ Symbol("headers map sorted"); function isHTTPWhiteSpaceCharCode(code) { @@ -12307,9 +12307,9 @@ var require_headers = __commonJS({ } return this.#headersList[kHeadersSortedMap] = headers; } - [util.inspect.custom](depth, options) { + [util3.inspect.custom](depth, options) { options.depth ??= depth; - return `Headers ${util.formatWithOptions(options, this.#headersList.entries)}`; + return `Headers ${util3.formatWithOptions(options, this.#headersList.entries)}`; } static getHeadersGuard(o) { return o.#guard; @@ -12341,14 +12341,14 @@ var require_headers = __commonJS({ value: "Headers", configurable: true }, - [util.inspect.custom]: { + [util3.inspect.custom]: { enumerable: false } }); webidl.converters.HeadersInit = function(V, prefix, argument) { if (webidl.util.Type(V) === "Object") { const iterator2 = Reflect.get(V, Symbol.iterator); - if (!util.types.isProxy(V) && iterator2 === Headers.prototype.entries) { + if (!util3.types.isProxy(V) && iterator2 === Headers.prototype.entries) { try { return getHeadersList(V).entriesList; } catch { @@ -12385,9 +12385,9 @@ var require_response = __commonJS({ "use strict"; var { Headers, HeadersList, fill, getHeadersGuard, setHeadersGuard, setHeadersList } = require_headers(); var { extractBody, cloneBody, mixinBody, hasFinalizationRegistry, streamRegistry, bodyUnusable } = require_body(); - var util = require_util(); + var util3 = require_util(); var nodeUtil = require("node:util"); - var { kEnumerableProperty } = util; + var { kEnumerableProperty } = util3; var { isValidReasonPhrase, isCancelled, @@ -12408,7 +12408,7 @@ var require_response = __commonJS({ var { URLSerializer } = require_data_url(); var { kConstruct } = require_symbols(); var assert = require("node:assert"); - var { types: types2 } = require("node:util"); + var { types: types3 } = require("node:util"); var textEncoder = new TextEncoder("utf-8"); var Response = class _Response { // Creates network error Response. @@ -12517,7 +12517,7 @@ var require_response = __commonJS({ } get bodyUsed() { webidl.brandCheck(this, _Response); - return !!this[kState].body && util.isDisturbed(this[kState].body.stream); + return !!this[kState].body && util3.isDisturbed(this[kState].body.stream); } // Returns a clone of response. clone() { @@ -12729,10 +12729,10 @@ var require_response = __commonJS({ if (isBlobLike(V)) { return webidl.converters.Blob(V, prefix, name, { strict: false }); } - if (ArrayBuffer.isView(V) || types2.isArrayBuffer(V)) { + if (ArrayBuffer.isView(V) || types3.isArrayBuffer(V)) { return webidl.converters.BufferSource(V, prefix, name); } - if (util.isFormDataLike(V)) { + if (util3.isFormDataLike(V)) { return webidl.converters.FormData(V, prefix, name, { strict: false }); } if (V instanceof URLSearchParams) { @@ -12827,7 +12827,7 @@ var require_request2 = __commonJS({ var { extractBody, mixinBody, cloneBody, bodyUnusable } = require_body(); var { Headers, fill: fillHeaders, HeadersList, setHeadersGuard, getHeadersGuard, setHeadersList, getHeadersList } = require_headers(); var { FinalizationRegistry: FinalizationRegistry2 } = require_dispatcher_weakref()(); - var util = require_util(); + var util3 = require_util(); var nodeUtil = require("node:util"); var { isValidHTTPToken, @@ -12844,7 +12844,7 @@ var require_request2 = __commonJS({ requestCache, requestDuplex } = require_constants3(); - var { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util; + var { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util3; var { kHeaders, kSignal, kState, kDispatcher } = require_symbols2(); var { webidl } = require_webidl(); var { URLSerializer } = require_data_url(); @@ -13089,7 +13089,7 @@ var require_request2 = __commonJS({ } } catch { } - util.addAbortListener(signal, abort); + util3.addAbortListener(signal, abort); requestFinalizer.register(ac, { signal, abort }, abort); } } @@ -13272,7 +13272,7 @@ var require_request2 = __commonJS({ } get bodyUsed() { webidl.brandCheck(this, _Request); - return !!this[kState].body && util.isDisturbed(this[kState].body.stream); + return !!this[kState].body && util3.isDisturbed(this[kState].body.stream); } get duplex() { webidl.brandCheck(this, _Request); @@ -13296,7 +13296,7 @@ var require_request2 = __commonJS({ } const acRef = new WeakRef(ac); list.add(acRef); - util.addAbortListener( + util3.addAbortListener( ac.signal, buildAbort(acRef) ); @@ -13575,7 +13575,7 @@ var require_fetch = __commonJS({ subresourceSet } = require_constants3(); var EE = require("node:events"); - var { Readable: Readable2, pipeline, finished } = require("node:stream"); + var { Readable: Readable3, pipeline, finished } = require("node:stream"); var { addAbortListener, isErrored, isReadable, bufferToLowerCasedHeaderName } = require_util(); var { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require_data_url(); var { getGlobalDispatcher } = require_global2(); @@ -14439,7 +14439,7 @@ var require_fetch = __commonJS({ function dispatch({ body }) { const url2 = requestCurrentURL(request3); const agent = fetchParams.controller.dispatcher; - return new Promise((resolve13, reject) => agent.dispatch( + return new Promise((resolve14, reject) => agent.dispatch( { path: url2.pathname + url2.search, origin: url2.origin, @@ -14476,7 +14476,7 @@ var require_fetch = __commonJS({ headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true); } location = headersList.get("location", true); - this.body = new Readable2({ read: resume }); + this.body = new Readable3({ read: resume }); const decoders = []; const willFollow = location && request3.redirect === "follow" && redirectStatusSet.has(status); if (request3.method !== "HEAD" && request3.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) { @@ -14515,7 +14515,7 @@ var require_fetch = __commonJS({ } } const onError = this.onError.bind(this); - resolve13({ + resolve14({ status, statusText, headersList, @@ -14561,7 +14561,7 @@ var require_fetch = __commonJS({ for (let i = 0; i < rawHeaders.length; i += 2) { headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true); } - resolve13({ + resolve14({ status, statusText: STATUS_CODES[status], headersList, @@ -14965,7 +14965,7 @@ var require_util4 = __commonJS({ var { ProgressEvent } = require_progressevent(); var { getEncoding } = require_encoding(); var { serializeAMimeType, parseMIMEType } = require_data_url(); - var { types: types2 } = require("node:util"); + var { types: types3 } = require("node:util"); var { StringDecoder } = require("string_decoder"); var { btoa: btoa2 } = require("node:buffer"); var staticPropertyDescriptors = { @@ -14995,7 +14995,7 @@ var require_util4 = __commonJS({ }); } isFirstChunk = false; - if (!done && types2.isUint8Array(value)) { + if (!done && types3.isUint8Array(value)) { bytes.push(value); if ((fr[kLastProgressEventFired] === void 0 || Date.now() - fr[kLastProgressEventFired] >= 50) && !fr[kAborted]) { fr[kLastProgressEventFired] = Date.now(); @@ -15566,18 +15566,18 @@ var require_cache = __commonJS({ const p = Promise.all(responsePromises); const responses = await p; const operations = []; - let index = 0; + let index2 = 0; for (const response of responses) { const operation = { type: "put", // 7.3.2 - request: requestList[index], + request: requestList[index2], // 7.3.3 response // 7.3.4 }; operations.push(operation); - index++; + index2++; } const cacheJobPromise = createDeferredPromise(); let errorData = null; @@ -16164,9 +16164,9 @@ var require_util6 = __commonJS({ } } } - function validateCookiePath(path28) { - for (let i = 0; i < path28.length; ++i) { - const code = path28.charCodeAt(i); + function validateCookiePath(path29) { + for (let i = 0; i < path29.length; ++i) { + const code = path29.charCodeAt(i); if (code < 32 || // exclude CTLs (0-31) code === 127 || // DEL code === 59) { @@ -17771,9 +17771,9 @@ var require_sender = __commonJS({ } async #run() { this.#running = true; - const queue = this.#queue; - while (!queue.isEmpty()) { - const node = queue.shift(); + const queue2 = this.#queue; + while (!queue2.isEmpty()) { + const node = queue2.shift(); if (node.promise !== null) { await node.promise; } @@ -17829,7 +17829,7 @@ var require_websocket = __commonJS({ var { ByteParser } = require_receiver(); var { kEnumerableProperty, isBlobLike } = require_util(); var { getGlobalDispatcher } = require_global2(); - var { types: types2 } = require("node:util"); + var { types: types3 } = require("node:util"); var { ErrorEvent, CloseEvent } = require_events(); var { SendQueue } = require_sender(); var WebSocket = class _WebSocket extends EventTarget { @@ -17952,7 +17952,7 @@ var require_websocket = __commonJS({ this.#sendQueue.add(data, () => { this.#bufferedAmount -= length; }, sendHints.string); - } else if (types2.isArrayBuffer(data)) { + } else if (types3.isArrayBuffer(data)) { this.#bufferedAmount += data.byteLength; this.#sendQueue.add(data, () => { this.#bufferedAmount -= data.byteLength; @@ -18158,7 +18158,7 @@ var require_websocket = __commonJS({ if (isBlobLike(V)) { return webidl.converters.Blob(V, { strict: false }); } - if (ArrayBuffer.isView(V) || types2.isArrayBuffer(V)) { + if (ArrayBuffer.isView(V) || types3.isArrayBuffer(V)) { return webidl.converters.BufferSource(V); } } @@ -18200,8 +18200,8 @@ var require_util8 = __commonJS({ return true; } function delay2(ms) { - return new Promise((resolve13) => { - setTimeout(resolve13, ms).unref(); + return new Promise((resolve14) => { + setTimeout(resolve14, ms).unref(); }); } module2.exports = { @@ -18216,14 +18216,14 @@ var require_util8 = __commonJS({ var require_eventsource_stream = __commonJS({ "node_modules/undici/lib/web/eventsource/eventsource-stream.js"(exports2, module2) { "use strict"; - var { Transform } = require("node:stream"); + var { Transform: Transform5 } = require("node:stream"); var { isASCIINumber, isValidLastEventId } = require_util8(); var BOM = [239, 187, 191]; var LF = 10; var CR = 13; var COLON = 58; var SPACE = 32; - var EventSourceStream = class extends Transform { + var EventSourceStream = class extends Transform5 { /** * @type {eventSourceSettings} */ @@ -18752,7 +18752,7 @@ var require_undici = __commonJS({ var EnvHttpProxyAgent = require_env_http_proxy_agent(); var RetryAgent = require_retry_agent(); var errors = require_errors(); - var util = require_util(); + var util3 = require_util(); var { InvalidArgumentError } = errors; var api = require_api(); var buildConnector = require_connect(); @@ -18787,8 +18787,8 @@ var require_undici = __commonJS({ module2.exports.buildConnector = buildConnector; module2.exports.errors = errors; module2.exports.util = { - parseHeaders: util.parseHeaders, - headerNameToString: util.headerNameToString + parseHeaders: util3.parseHeaders, + headerNameToString: util3.headerNameToString }; function makeDispatcher(fn) { return (url2, opts, handler2) => { @@ -18806,16 +18806,16 @@ var require_undici = __commonJS({ if (typeof opts.path !== "string") { throw new InvalidArgumentError("invalid opts.path"); } - let path28 = opts.path; + let path29 = opts.path; if (!opts.path.startsWith("/")) { - path28 = `/${path28}`; + path29 = `/${path29}`; } - url2 = new URL(util.parseOrigin(url2).origin + path28); + url2 = new URL(util3.parseOrigin(url2).origin + path29); } else { if (!opts) { opts = typeof url2 === "object" ? url2 : {}; } - url2 = util.parseURL(url2); + url2 = util3.parseURL(url2); } const { agent, dispatcher = getGlobalDispatcher() } = opts; if (agent) { @@ -18924,11 +18924,11 @@ var require_lib = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -18944,7 +18944,7 @@ var require_lib = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -19031,26 +19031,26 @@ var require_lib = __commonJS({ } readBody() { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14) => __awaiter2(this, void 0, void 0, function* () { let output = Buffer.alloc(0); this.message.on("data", (chunk) => { output = Buffer.concat([output, chunk]); }); this.message.on("end", () => { - resolve13(output.toString()); + resolve14(output.toString()); }); })); }); } readBodyBuffer() { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14) => __awaiter2(this, void 0, void 0, function* () { const chunks = []; this.message.on("data", (chunk) => { chunks.push(chunk); }); this.message.on("end", () => { - resolve13(Buffer.concat(chunks)); + resolve14(Buffer.concat(chunks)); }); })); }); @@ -19258,14 +19258,14 @@ var require_lib = __commonJS({ */ requestRaw(info8, data) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { function callbackForResult(err, res) { if (err) { reject(err); } else if (!res) { reject(new Error("Unknown error")); } else { - resolve13(res); + resolve14(res); } } this.requestRawWithCallback(info8, data, callbackForResult); @@ -19509,12 +19509,12 @@ var require_lib = __commonJS({ return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise((resolve13) => setTimeout(() => resolve13(), ms)); + return new Promise((resolve14) => setTimeout(() => resolve14(), ms)); }); } _processResponse(res, options) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14, reject) => __awaiter2(this, void 0, void 0, function* () { const statusCode = res.message.statusCode || 0; const response = { statusCode, @@ -19522,7 +19522,7 @@ var require_lib = __commonJS({ headers: {} }; if (statusCode === HttpCodes.NotFound) { - resolve13(response); + resolve14(response); } function dateTimeDeserializer(key, value) { if (typeof value === "string") { @@ -19561,7 +19561,7 @@ var require_lib = __commonJS({ err.result = response.result; reject(err); } else { - resolve13(response); + resolve14(response); } })); }); @@ -19578,11 +19578,11 @@ var require_auth = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -19598,7 +19598,7 @@ var require_auth = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -19682,11 +19682,11 @@ var require_oidc_utils = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -19702,7 +19702,7 @@ var require_oidc_utils = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -19736,7 +19736,7 @@ var require_oidc_utils = __commonJS({ } static getCall(id_token_url) { return __awaiter2(this, void 0, void 0, function* () { - var _a; + var _a2; const httpclient = _OidcClient.createHttpClient(); const res = yield httpclient.getJson(id_token_url).catch((error3) => { throw new Error(`Failed to get ID Token. @@ -19745,7 +19745,7 @@ var require_oidc_utils = __commonJS({ Error Message: ${error3.message}`); }); - const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; + const id_token = (_a2 = res.result) === null || _a2 === void 0 ? void 0 : _a2.value; if (!id_token) { throw new Error("Response json body do not have ID Token field"); } @@ -19780,11 +19780,11 @@ var require_summary = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -19800,7 +19800,7 @@ var require_summary = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -19833,7 +19833,7 @@ var require_summary = __commonJS({ } try { yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); - } catch (_a) { + } catch (_a2) { throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); } this._filePath = pathFromEnv; @@ -20113,7 +20113,7 @@ var require_path_utils = __commonJS({ exports2.toPosixPath = toPosixPath; exports2.toWin32Path = toWin32Path; exports2.toPlatformPath = toPlatformPath; - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); function toPosixPath(pth) { return pth.replace(/[\\]/g, "/"); } @@ -20121,7 +20121,7 @@ var require_path_utils = __commonJS({ return pth.replace(/[/]/g, "\\"); } function toPlatformPath(pth) { - return pth.replace(/[/\\]/g, path28.sep); + return pth.replace(/[/\\]/g, path29.sep); } } }); @@ -20169,11 +20169,11 @@ var require_io_util = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -20189,12 +20189,12 @@ var require_io_util = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var _a; + var _a2; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.READONLY = exports2.UV_FS_O_EXLOCK = exports2.IS_WINDOWS = exports2.unlink = exports2.symlink = exports2.stat = exports2.rmdir = exports2.rm = exports2.rename = exports2.readdir = exports2.open = exports2.mkdir = exports2.lstat = exports2.copyFile = exports2.chmod = void 0; exports2.readlink = readlink; @@ -20203,13 +20203,13 @@ var require_io_util = __commonJS({ exports2.isRooted = isRooted; exports2.tryGetExecutablePath = tryGetExecutablePath; exports2.getCmdPath = getCmdPath; - var fs30 = __importStar2(require("fs")); - var path28 = __importStar2(require("path")); - _a = fs30.promises, exports2.chmod = _a.chmod, exports2.copyFile = _a.copyFile, exports2.lstat = _a.lstat, exports2.mkdir = _a.mkdir, exports2.open = _a.open, exports2.readdir = _a.readdir, exports2.rename = _a.rename, exports2.rm = _a.rm, exports2.rmdir = _a.rmdir, exports2.stat = _a.stat, exports2.symlink = _a.symlink, exports2.unlink = _a.unlink; + var fs31 = __importStar2(require("fs")); + var path29 = __importStar2(require("path")); + _a2 = fs31.promises, exports2.chmod = _a2.chmod, exports2.copyFile = _a2.copyFile, exports2.lstat = _a2.lstat, exports2.mkdir = _a2.mkdir, exports2.open = _a2.open, exports2.readdir = _a2.readdir, exports2.rename = _a2.rename, exports2.rm = _a2.rm, exports2.rmdir = _a2.rmdir, exports2.stat = _a2.stat, exports2.symlink = _a2.symlink, exports2.unlink = _a2.unlink; exports2.IS_WINDOWS = process.platform === "win32"; function readlink(fsPath) { return __awaiter2(this, void 0, void 0, function* () { - const result = yield fs30.promises.readlink(fsPath); + const result = yield fs31.promises.readlink(fsPath); if (exports2.IS_WINDOWS && !result.endsWith("\\")) { return `${result}\\`; } @@ -20217,7 +20217,7 @@ var require_io_util = __commonJS({ }); } exports2.UV_FS_O_EXLOCK = 268435456; - exports2.READONLY = fs30.constants.O_RDONLY; + exports2.READONLY = fs31.constants.O_RDONLY; function exists(fsPath) { return __awaiter2(this, void 0, void 0, function* () { try { @@ -20259,7 +20259,7 @@ var require_io_util = __commonJS({ } if (stats && stats.isFile()) { if (exports2.IS_WINDOWS) { - const upperExt = path28.extname(filePath).toUpperCase(); + const upperExt = path29.extname(filePath).toUpperCase(); if (extensions.some((validExt) => validExt.toUpperCase() === upperExt)) { return filePath; } @@ -20283,11 +20283,11 @@ var require_io_util = __commonJS({ if (stats && stats.isFile()) { if (exports2.IS_WINDOWS) { try { - const directory = path28.dirname(filePath); - const upperName = path28.basename(filePath).toUpperCase(); + const directory = path29.dirname(filePath); + const upperName = path29.basename(filePath).toUpperCase(); for (const actualName of yield (0, exports2.readdir)(directory)) { if (upperName === actualName.toUpperCase()) { - filePath = path28.join(directory, actualName); + filePath = path29.join(directory, actualName); break; } } @@ -20317,8 +20317,8 @@ var require_io_util = __commonJS({ return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && process.getgid !== void 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && process.getuid !== void 0 && stats.uid === process.getuid(); } function getCmdPath() { - var _a2; - return (_a2 = process.env["COMSPEC"]) !== null && _a2 !== void 0 ? _a2 : `cmd.exe`; + var _a3; + return (_a3 = process.env["COMSPEC"]) !== null && _a3 !== void 0 ? _a3 : `cmd.exe`; } } }); @@ -20366,11 +20366,11 @@ var require_io = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -20386,7 +20386,7 @@ var require_io = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -20399,7 +20399,7 @@ var require_io = __commonJS({ exports2.which = which9; exports2.findInPath = findInPath; var assert_1 = require("assert"); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var ioUtil = __importStar2(require_io_util()); function cp(source_1, dest_1) { return __awaiter2(this, arguments, void 0, function* (source, dest, options = {}) { @@ -20408,7 +20408,7 @@ var require_io = __commonJS({ if (destStat && destStat.isFile() && !force) { return; } - const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path28.join(dest, path28.basename(source)) : dest; + const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path29.join(dest, path29.basename(source)) : dest; if (!(yield ioUtil.exists(source))) { throw new Error(`no such file or directory: ${source}`); } @@ -20420,7 +20420,7 @@ var require_io = __commonJS({ yield cpDirRecursive(source, newDest, 0, force); } } else { - if (path28.relative(source, newDest) === "") { + if (path29.relative(source, newDest) === "") { throw new Error(`'${newDest}' and '${source}' are the same file`); } yield copyFile2(source, newDest, force); @@ -20432,7 +20432,7 @@ var require_io = __commonJS({ if (yield ioUtil.exists(dest)) { let destExists = true; if (yield ioUtil.isDirectory(dest)) { - dest = path28.join(dest, path28.basename(source)); + dest = path29.join(dest, path29.basename(source)); destExists = yield ioUtil.exists(dest); } if (destExists) { @@ -20443,7 +20443,7 @@ var require_io = __commonJS({ } } } - yield mkdirP(path28.dirname(dest)); + yield mkdirP(path29.dirname(dest)); yield ioUtil.rename(source, dest); }); } @@ -20502,7 +20502,7 @@ var require_io = __commonJS({ } const extensions = []; if (ioUtil.IS_WINDOWS && process.env["PATHEXT"]) { - for (const extension of process.env["PATHEXT"].split(path28.delimiter)) { + for (const extension of process.env["PATHEXT"].split(path29.delimiter)) { if (extension) { extensions.push(extension); } @@ -20515,12 +20515,12 @@ var require_io = __commonJS({ } return []; } - if (tool.includes(path28.sep)) { + if (tool.includes(path29.sep)) { return []; } const directories = []; if (process.env.PATH) { - for (const p of process.env.PATH.split(path28.delimiter)) { + for (const p of process.env.PATH.split(path29.delimiter)) { if (p) { directories.push(p); } @@ -20528,7 +20528,7 @@ var require_io = __commonJS({ } const matches = []; for (const directory of directories) { - const filePath = yield ioUtil.tryGetExecutablePath(path28.join(directory, tool), extensions); + const filePath = yield ioUtil.tryGetExecutablePath(path29.join(directory, tool), extensions); if (filePath) { matches.push(filePath); } @@ -20627,11 +20627,11 @@ var require_toolrunner = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -20647,7 +20647,7 @@ var require_toolrunner = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -20658,7 +20658,7 @@ var require_toolrunner = __commonJS({ var os7 = __importStar2(require("os")); var events = __importStar2(require("events")); var child = __importStar2(require("child_process")); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var io9 = __importStar2(require_io()); var ioUtil = __importStar2(require_io_util()); var timers_1 = require("timers"); @@ -20873,10 +20873,10 @@ var require_toolrunner = __commonJS({ exec() { return __awaiter2(this, void 0, void 0, function* () { if (!ioUtil.isRooted(this.toolPath) && (this.toolPath.includes("/") || IS_WINDOWS && this.toolPath.includes("\\"))) { - this.toolPath = path28.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + this.toolPath = path29.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); } this.toolPath = yield io9.which(this.toolPath, true); - return new Promise((resolve13, reject) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14, reject) => __awaiter2(this, void 0, void 0, function* () { this._debug(`exec tool: ${this.toolPath}`); this._debug("arguments:"); for (const arg of this.args) { @@ -20959,7 +20959,7 @@ var require_toolrunner = __commonJS({ if (error3) { reject(error3); } else { - resolve13(exitCode); + resolve14(exitCode); } }); if (this.options.input) { @@ -21125,11 +21125,11 @@ var require_exec = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -21145,7 +21145,7 @@ var require_exec = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -21169,12 +21169,12 @@ var require_exec = __commonJS({ } function getExecOutput(commandLine, args, options) { return __awaiter2(this, void 0, void 0, function* () { - var _a, _b; + var _a2, _b; let stdout = ""; let stderr = ""; const stdoutDecoder = new string_decoder_1.StringDecoder("utf8"); const stderrDecoder = new string_decoder_1.StringDecoder("utf8"); - const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; + const originalStdoutListener = (_a2 = options === null || options === void 0 ? void 0 : options.listeners) === null || _a2 === void 0 ? void 0 : _a2.stdout; const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; const stdErrListener = (data) => { stderr += stderrDecoder.write(data); @@ -21245,11 +21245,11 @@ var require_platform = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -21265,7 +21265,7 @@ var require_platform = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -21291,11 +21291,11 @@ var require_platform = __commonJS({ }; }); var getMacOsInfo = () => __awaiter2(void 0, void 0, void 0, function* () { - var _a, _b, _c, _d; + var _a2, _b, _c, _d; const { stdout } = yield exec3.getExecOutput("sw_vers", void 0, { silent: true }); - const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ""; + const version = (_b = (_a2 = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a2 === void 0 ? void 0 : _a2[1]) !== null && _b !== void 0 ? _b : ""; const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ""; return { name, @@ -21374,11 +21374,11 @@ var require_core = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -21394,7 +21394,7 @@ var require_core = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -21426,7 +21426,7 @@ var require_core = __commonJS({ var file_command_1 = require_file_command(); var utils_1 = require_utils(); var os7 = __importStar2(require("os")); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var oidc_utils_1 = require_oidc_utils(); var ExitCode; (function(ExitCode2) { @@ -21452,7 +21452,7 @@ var require_core = __commonJS({ } else { (0, command_1.issueCommand)("add-path", {}, inputPath); } - process.env["PATH"] = `${inputPath}${path28.delimiter}${process.env["PATH"]}`; + process.env["PATH"] = `${inputPath}${path29.delimiter}${process.env["PATH"]}`; } function getInput2(name, options) { const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; @@ -21583,14 +21583,14 @@ var require_context = __commonJS({ * Hydrate the context from the environment */ constructor() { - var _a, _b, _c; + var _a2, _b, _c; this.payload = {}; if (process.env.GITHUB_EVENT_PATH) { if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) { this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: "utf8" })); } else { - const path28 = process.env.GITHUB_EVENT_PATH; - process.stdout.write(`GITHUB_EVENT_PATH ${path28} does not exist${os_1.EOL}`); + const path29 = process.env.GITHUB_EVENT_PATH; + process.stdout.write(`GITHUB_EVENT_PATH ${path29} does not exist${os_1.EOL}`); } } this.eventName = process.env.GITHUB_EVENT_NAME; @@ -21603,7 +21603,7 @@ var require_context = __commonJS({ this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10); this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); - this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`; + this.apiUrl = (_a2 = process.env.GITHUB_API_URL) !== null && _a2 !== void 0 ? _a2 : `https://api.github.com`; this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`; this.graphqlUrl = (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`; } @@ -21672,11 +21672,11 @@ var require_utils3 = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -21692,7 +21692,7 @@ var require_utils3 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -21820,13 +21820,13 @@ function removeHook(state, name, method) { if (!state.registry[name]) { return; } - const index = state.registry[name].map((registered) => { + const index2 = state.registry[name].map((registered) => { return registered.orig; }).indexOf(method); - if (index === -1) { + if (index2 === -1) { return; } - state.registry[name].splice(index, 1); + state.registry[name].splice(index2, 1); } var init_remove = __esm({ "node_modules/before-after-hook/lib/remove.js"() { @@ -21908,12 +21908,12 @@ function isPlainObject(value) { const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor; return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value); } -function mergeDeep(defaults, options) { - const result = Object.assign({}, defaults); +function mergeDeep(defaults2, options) { + const result = Object.assign({}, defaults2); Object.keys(options).forEach((key) => { if (isPlainObject(options[key])) { - if (!(key in defaults)) Object.assign(result, { [key]: options[key] }); - else result[key] = mergeDeep(defaults[key], options[key]); + if (!(key in defaults2)) Object.assign(result, { [key]: options[key] }); + else result[key] = mergeDeep(defaults2[key], options[key]); } else { Object.assign(result, { [key]: options[key] }); } @@ -21928,7 +21928,7 @@ function removeUndefinedProperties(obj) { } return obj; } -function merge(defaults, route, options) { +function merge(defaults2, route, options) { if (typeof route === "string") { let [method, url2] = route.split(" "); options = Object.assign(url2 ? { method, url: url2 } : { url: method }, options); @@ -21938,10 +21938,10 @@ function merge(defaults, route, options) { options.headers = lowercaseKeys(options.headers); removeUndefinedProperties(options); removeUndefinedProperties(options.headers); - const mergedOptions = mergeDeep(defaults || {}, options); + const mergedOptions = mergeDeep(defaults2 || {}, options); if (options.url === "/graphql") { - if (defaults && defaults.mediaType.previews?.length) { - mergedOptions.mediaType.previews = defaults.mediaType.previews.filter( + if (defaults2 && defaults2.mediaType.previews?.length) { + mergedOptions.mediaType.previews = defaults2.mediaType.previews.filter( (preview) => !mergedOptions.mediaType.previews.includes(preview) ).concat(mergedOptions.mediaType.previews); } @@ -22174,8 +22174,8 @@ function parse(options) { options.request ? { request: options.request } : null ); } -function endpointWithDefaults(defaults, route, options) { - return parse(merge(defaults, route, options)); +function endpointWithDefaults(defaults2, route, options) { + return parse(merge(defaults2, route, options)); } function withDefaults(oldDefaults, newDefaults) { const DEFAULTS2 = merge(oldDefaults, newDefaults); @@ -22241,8 +22241,8 @@ var require_fast_content_type_parse = __commonJS({ if (typeof header !== "string") { throw new TypeError("argument header is required and must be a string"); } - let index = header.indexOf(";"); - const type = index !== -1 ? header.slice(0, index).trim() : header.trim(); + let index2 = header.indexOf(";"); + const type = index2 !== -1 ? header.slice(0, index2).trim() : header.trim(); if (mediaTypeRE.test(type) === false) { throw new TypeError("invalid media type"); } @@ -22250,27 +22250,27 @@ var require_fast_content_type_parse = __commonJS({ type: type.toLowerCase(), parameters: new NullObject() }; - if (index === -1) { + if (index2 === -1) { return result; } let key; - let match; + let match2; let value; - paramRE.lastIndex = index; - while (match = paramRE.exec(header)) { - if (match.index !== index) { + paramRE.lastIndex = index2; + while (match2 = paramRE.exec(header)) { + if (match2.index !== index2) { throw new TypeError("invalid parameter format"); } - index += match[0].length; - key = match[1].toLowerCase(); - value = match[2]; + index2 += match2[0].length; + key = match2[1].toLowerCase(); + value = match2[2]; if (value[0] === '"') { value = value.slice(1, value.length - 1); quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1")); } result.parameters[key] = value; } - if (index !== header.length) { + if (index2 !== header.length) { throw new TypeError("invalid parameter format"); } return result; @@ -22279,8 +22279,8 @@ var require_fast_content_type_parse = __commonJS({ if (typeof header !== "string") { return defaultContentType; } - let index = header.indexOf(";"); - const type = index !== -1 ? header.slice(0, index).trim() : header.trim(); + let index2 = header.indexOf(";"); + const type = index2 !== -1 ? header.slice(0, index2).trim() : header.trim(); if (mediaTypeRE.test(type) === false) { return defaultContentType; } @@ -22288,27 +22288,27 @@ var require_fast_content_type_parse = __commonJS({ type: type.toLowerCase(), parameters: new NullObject() }; - if (index === -1) { + if (index2 === -1) { return result; } let key; - let match; + let match2; let value; - paramRE.lastIndex = index; - while (match = paramRE.exec(header)) { - if (match.index !== index) { + paramRE.lastIndex = index2; + while (match2 = paramRE.exec(header)) { + if (match2.index !== index2) { return defaultContentType; } - index += match[0].length; - key = match[1].toLowerCase(); - value = match[2]; + index2 += match2[0].length; + key = match2[1].toLowerCase(); + value = match2[2]; if (value[0] === '"') { value = value.slice(1, value.length - 1); quotedPairRE.test(value) && (value = value.replace(quotedPairRE, "$1")); } result.parameters[key] = value; } - if (index !== header.length) { + if (index2 !== header.length) { return defaultContentType; } return result; @@ -22774,21 +22774,21 @@ var init_dist_src2 = __esm({ userAgentTrail = `octokit-core.js/${VERSION4} ${getUserAgent()}`; Octokit = class { static VERSION = VERSION4; - static defaults(defaults) { + static defaults(defaults2) { const OctokitWithDefaults = class extends this { constructor(...args) { const options = args[0] || {}; - if (typeof defaults === "function") { - super(defaults(options)); + if (typeof defaults2 === "function") { + super(defaults2(options)); return; } super( Object.assign( {}, - defaults, + defaults2, options, - options.userAgent && defaults.userAgent ? { - userAgent: `${options.userAgent} ${defaults.userAgent}` + options.userAgent && defaults2.userAgent ? { + userAgent: `${options.userAgent} ${defaults2.userAgent}` } : null ) ); @@ -25200,8 +25200,8 @@ function endpointsToMethods(octokit) { } return newMethods; } -function decorate(octokit, scope, methodName, defaults, decorations) { - const requestWithDefaults = octokit.request.defaults(defaults); +function decorate(octokit, scope, methodName, defaults2, decorations) { + const requestWithDefaults = octokit.request.defaults(defaults2); function withDecorations(...args) { let options = requestWithDefaults.endpoint.merge(...args); if (decorations.mapToData) { @@ -25248,14 +25248,14 @@ var init_endpoints_to_methods = __esm({ endpointMethodsMap = /* @__PURE__ */ new Map(); for (const [scope, endpoints] of Object.entries(endpoints_default)) { for (const [methodName, endpoint2] of Object.entries(endpoints)) { - const [route, defaults, decorations] = endpoint2; + const [route, defaults2, decorations] = endpoint2; const [method, url2] = route.split(/ /); const endpointDefaults = Object.assign( { method, url: url2 }, - defaults + defaults2 ); if (!endpointMethodsMap.has(scope)) { endpointMethodsMap.set(scope, /* @__PURE__ */ new Map()); @@ -25954,13 +25954,13 @@ var require_re = __commonJS({ }; var createToken = (name, value, isGlobal) => { const safe = makeSafeRegex(value); - const index = R++; - debug6(name, index, value); - t[name] = index; - src[index] = value; - safeSrc[index] = safe; - re[index] = new RegExp(value, isGlobal ? "g" : void 0); - safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0); + const index2 = R++; + debug6(name, index2, value); + t[name] = index2; + src[index2] = value; + safeSrc[index2] = safe; + re[index2] = new RegExp(value, isGlobal ? "g" : void 0); + safeRe[index2] = new RegExp(safe, isGlobal ? "g" : void 0); }; createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); createToken("NUMERICIDENTIFIERLOOSE", "\\d+"); @@ -26034,13 +26034,13 @@ var require_parse_options = __commonJS({ var require_identifiers = __commonJS({ "node_modules/semver/internal/identifiers.js"(exports2, module2) { "use strict"; - var numeric = /^[0-9]+$/; + var numeric2 = /^[0-9]+$/; var compareIdentifiers = (a, b) => { if (typeof a === "number" && typeof b === "number") { return a === b ? 0 : a < b ? -1 : 1; } - const anum = numeric.test(a); - const bnum = numeric.test(b); + const anum = numeric2.test(a); + const bnum = numeric2.test(b); if (anum && bnum) { a = +a; b = +b; @@ -26236,8 +26236,8 @@ var require_semver = __commonJS({ throw new Error("invalid increment argument: identifier is empty"); } if (identifier) { - const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]); - if (!match || match[1] !== identifier) { + const match2 = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]); + if (!match2 || match2[1] !== identifier) { throw new Error(`invalid identifier: ${identifier}`); } } @@ -26615,8 +26615,8 @@ var require_gte = __commonJS({ "node_modules/semver/functions/gte.js"(exports2, module2) { "use strict"; var compare3 = require_compare(); - var gte6 = (a, b, loose) => compare3(a, b, loose) >= 0; - module2.exports = gte6; + var gte7 = (a, b, loose) => compare3(a, b, loose) >= 0; + module2.exports = gte7; } }); @@ -26625,8 +26625,8 @@ var require_lte = __commonJS({ "node_modules/semver/functions/lte.js"(exports2, module2) { "use strict"; var compare3 = require_compare(); - var lte = (a, b, loose) => compare3(a, b, loose) <= 0; - module2.exports = lte; + var lte2 = (a, b, loose) => compare3(a, b, loose) <= 0; + module2.exports = lte2; } }); @@ -26637,9 +26637,9 @@ var require_cmp = __commonJS({ var eq = require_eq(); var neq = require_neq(); var gt = require_gt(); - var gte6 = require_gte(); + var gte7 = require_gte(); var lt2 = require_lt(); - var lte = require_lte(); + var lte2 = require_lte(); var cmp = (a, op, b, loose) => { switch (op) { case "===": @@ -26667,11 +26667,11 @@ var require_cmp = __commonJS({ case ">": return gt(a, b, loose); case ">=": - return gte6(a, b, loose); + return gte7(a, b, loose); case "<": return lt2(a, b, loose); case "<=": - return lte(a, b, loose); + return lte2(a, b, loose); default: throw new TypeError(`Invalid operator: ${op}`); } @@ -26698,28 +26698,28 @@ var require_coerce = __commonJS({ return null; } options = options || {}; - let match = null; + let match2 = null; if (!options.rtl) { - match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]); + match2 = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]); } else { const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]; let next; - while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) { - if (!match || next.index + next[0].length !== match.index + match[0].length) { - match = next; + while ((next = coerceRtlRegex.exec(version)) && (!match2 || match2.index + match2[0].length !== version.length)) { + if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) { + match2 = next; } coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length; } coerceRtlRegex.lastIndex = -1; } - if (match === null) { + if (match2 === null) { return null; } - const major = match[2]; - const minor = match[3] || "0"; - const patch = match[4] || "0"; - const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ""; - const build = options.includePrerelease && match[6] ? `+${match[6]}` : ""; + const major = match2[2]; + const minor = match2[3] || "0"; + const patch = match2[4] || "0"; + const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : ""; + const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : ""; return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options); }; module2.exports = coerce3; @@ -26811,25 +26811,25 @@ var require_range = __commonJS({ "use strict"; var SPACE_CHARACTERS = /\s+/g; var Range2 = class _Range { - constructor(range, options) { + constructor(range2, options) { options = parseOptions(options); - if (range instanceof _Range) { - if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) { - return range; + if (range2 instanceof _Range) { + if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) { + return range2; } else { - return new _Range(range.raw, options); + return new _Range(range2.raw, options); } } - if (range instanceof Comparator) { - this.raw = range.value; - this.set = [[range]]; + if (range2 instanceof Comparator) { + this.raw = range2.value; + this.set = [[range2]]; this.formatted = void 0; return this; } this.options = options; this.loose = !!options.loose; this.includePrerelease = !!options.includePrerelease; - this.raw = range.trim().replace(SPACE_CHARACTERS, " "); + this.raw = range2.trim().replace(SPACE_CHARACTERS, " "); this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length); if (!this.set.length) { throw new TypeError(`Invalid SemVer Range: ${this.raw}`); @@ -26874,25 +26874,25 @@ var require_range = __commonJS({ toString() { return this.range; } - parseRange(range) { - range = range.replace(BUILDSTRIPRE, ""); + parseRange(range2) { + range2 = range2.replace(BUILDSTRIPRE, ""); const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE); - const memoKey = memoOpts + ":" + range; + const memoKey = memoOpts + ":" + range2; const cached = cache.get(memoKey); if (cached) { return cached; } const loose = this.options.loose; const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; - range = range.replace(hr, hyphenReplace(this.options.includePrerelease)); - debug6("hyphen replace", range); - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace); - debug6("comparator trim", range); - range = range.replace(re[t.TILDETRIM], tildeTrimReplace); - debug6("tilde trim", range); - range = range.replace(re[t.CARETTRIM], caretTrimReplace); - debug6("caret trim", range); - let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options)); + range2 = range2.replace(hr, hyphenReplace(this.options.includePrerelease)); + debug6("hyphen replace", range2); + range2 = range2.replace(re[t.COMPARATORTRIM], comparatorTrimReplace); + debug6("comparator trim", range2); + range2 = range2.replace(re[t.TILDETRIM], tildeTrimReplace); + debug6("tilde trim", range2); + range2 = range2.replace(re[t.CARETTRIM], caretTrimReplace); + debug6("caret trim", range2); + let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options)); if (loose) { rangeList = rangeList.filter((comp) => { debug6("loose invalid filter", comp, this.options); @@ -26915,12 +26915,12 @@ var require_range = __commonJS({ cache.set(memoKey, result); return result; } - intersects(range, options) { - if (!(range instanceof _Range)) { + intersects(range2, options) { + if (!(range2 instanceof _Range)) { throw new TypeError("a Range is required"); } return this.set.some((thisComparators) => { - return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => { + return isSatisfiable(thisComparators, options) && range2.set.some((rangeComparators) => { return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => { return rangeComparators.every((rangeComparator) => { return thisComparator.intersects(rangeComparator, options); @@ -27307,13 +27307,13 @@ var require_satisfies = __commonJS({ "node_modules/semver/functions/satisfies.js"(exports2, module2) { "use strict"; var Range2 = require_range(); - var satisfies2 = (version, range, options) => { + var satisfies2 = (version, range2, options) => { try { - range = new Range2(range, options); + range2 = new Range2(range2, options); } catch (er) { return false; } - return range.test(version); + return range2.test(version); }; module2.exports = satisfies2; } @@ -27324,7 +27324,7 @@ var require_to_comparators = __commonJS({ "node_modules/semver/ranges/to-comparators.js"(exports2, module2) { "use strict"; var Range2 = require_range(); - var toComparators = (range, options) => new Range2(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" ")); + var toComparators = (range2, options) => new Range2(range2, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" ")); module2.exports = toComparators; } }); @@ -27335,12 +27335,12 @@ var require_max_satisfying = __commonJS({ "use strict"; var SemVer = require_semver(); var Range2 = require_range(); - var maxSatisfying = (versions, range, options) => { + var maxSatisfying = (versions, range2, options) => { let max = null; let maxSV = null; let rangeObj = null; try { - rangeObj = new Range2(range, options); + rangeObj = new Range2(range2, options); } catch (er) { return null; } @@ -27364,12 +27364,12 @@ var require_min_satisfying = __commonJS({ "use strict"; var SemVer = require_semver(); var Range2 = require_range(); - var minSatisfying = (versions, range, options) => { + var minSatisfying = (versions, range2, options) => { let min = null; let minSV = null; let rangeObj = null; try { - rangeObj = new Range2(range, options); + rangeObj = new Range2(range2, options); } catch (er) { return null; } @@ -27394,19 +27394,19 @@ var require_min_version = __commonJS({ var SemVer = require_semver(); var Range2 = require_range(); var gt = require_gt(); - var minVersion = (range, loose) => { - range = new Range2(range, loose); + var minVersion = (range2, loose) => { + range2 = new Range2(range2, loose); let minver = new SemVer("0.0.0"); - if (range.test(minver)) { + if (range2.test(minver)) { return minver; } minver = new SemVer("0.0.0-0"); - if (range.test(minver)) { + if (range2.test(minver)) { return minver; } minver = null; - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i]; + for (let i = 0; i < range2.set.length; ++i) { + const comparators = range2.set[i]; let setMin = null; comparators.forEach((comparator) => { const compver = new SemVer(comparator.semver.version); @@ -27437,7 +27437,7 @@ var require_min_version = __commonJS({ minver = setMin; } } - if (minver && range.test(minver)) { + if (minver && range2.test(minver)) { return minver; } return null; @@ -27451,9 +27451,9 @@ var require_valid2 = __commonJS({ "node_modules/semver/ranges/valid.js"(exports2, module2) { "use strict"; var Range2 = require_range(); - var validRange = (range, options) => { + var validRange = (range2, options) => { try { - return new Range2(range, options).range || "*"; + return new Range2(range2, options).range || "*"; } catch (er) { return null; } @@ -27473,23 +27473,23 @@ var require_outside = __commonJS({ var satisfies2 = require_satisfies(); var gt = require_gt(); var lt2 = require_lt(); - var lte = require_lte(); - var gte6 = require_gte(); - var outside = (version, range, hilo, options) => { + var lte2 = require_lte(); + var gte7 = require_gte(); + var outside = (version, range2, hilo, options) => { version = new SemVer(version, options); - range = new Range2(range, options); + range2 = new Range2(range2, options); let gtfn, ltefn, ltfn, comp, ecomp; switch (hilo) { case ">": gtfn = gt; - ltefn = lte; + ltefn = lte2; ltfn = lt2; comp = ">"; ecomp = ">="; break; case "<": gtfn = lt2; - ltefn = gte6; + ltefn = gte7; ltfn = gt; comp = "<"; ecomp = "<="; @@ -27497,11 +27497,11 @@ var require_outside = __commonJS({ default: throw new TypeError('Must provide a hilo val of "<" or ">"'); } - if (satisfies2(version, range, options)) { + if (satisfies2(version, range2, options)) { return false; } - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i]; + for (let i = 0; i < range2.set.length; ++i) { + const comparators = range2.set[i]; let high = null; let low = null; comparators.forEach((comparator) => { @@ -27536,7 +27536,7 @@ var require_gtr = __commonJS({ "node_modules/semver/ranges/gtr.js"(exports2, module2) { "use strict"; var outside = require_outside(); - var gtr = (version, range, options) => outside(version, range, ">", options); + var gtr = (version, range2, options) => outside(version, range2, ">", options); module2.exports = gtr; } }); @@ -27546,7 +27546,7 @@ var require_ltr = __commonJS({ "node_modules/semver/ranges/ltr.js"(exports2, module2) { "use strict"; var outside = require_outside(); - var ltr = (version, range, options) => outside(version, range, "<", options); + var ltr = (version, range2, options) => outside(version, range2, "<", options); module2.exports = ltr; } }); @@ -27571,13 +27571,13 @@ var require_simplify = __commonJS({ "use strict"; var satisfies2 = require_satisfies(); var compare3 = require_compare(); - module2.exports = (versions, range, options) => { + module2.exports = (versions, range2, options) => { const set = []; let first = null; let prev = null; const v = versions.sort((a, b) => compare3(a, b, options)); for (const version of v) { - const included = satisfies2(version, range, options); + const included = satisfies2(version, range2, options); if (included) { prev = version; if (!first) { @@ -27609,8 +27609,8 @@ var require_simplify = __commonJS({ } } const simplified = ranges.join(" || "); - const original = typeof range.raw === "string" ? range.raw : String(range); - return simplified.length < original.length ? simplified : range; + const original = typeof range2.raw === "string" ? range2.raw : String(range2); + return simplified.length < original.length ? simplified : range2; }; } }); @@ -27804,8 +27804,8 @@ var require_semver2 = __commonJS({ var lt2 = require_lt(); var eq = require_eq(); var neq = require_neq(); - var gte6 = require_gte(); - var lte = require_lte(); + var gte7 = require_gte(); + var lte2 = require_lte(); var cmp = require_cmp(); var coerce3 = require_coerce(); var truncate = require_truncate(); @@ -27843,8 +27843,8 @@ var require_semver2 = __commonJS({ lt: lt2, eq, neq, - gte: gte6, - lte, + gte: gte7, + lte: lte2, cmp, coerce: coerce3, truncate, @@ -27885,19 +27885,19 @@ var require_light = __commonJS({ function getCjsExportFromNamespace(n) { return n && n["default"] || n; } - var load2 = function(received, defaults, onto = {}) { + var load2 = function(received, defaults2, onto = {}) { var k, ref, v; - for (k in defaults) { - v = defaults[k]; + for (k in defaults2) { + v = defaults2[k]; onto[k] = (ref = received[k]) != null ? ref : v; } return onto; }; - var overwrite = function(received, defaults, onto = {}) { + var overwrite = function(received, defaults2, onto = {}) { var k, v; for (k in received) { v = received[k]; - if (defaults[k] !== void 0) { + if (defaults2[k] !== void 0) { onto[k] = v; } } @@ -28327,8 +28327,8 @@ var require_light = __commonJS({ return this.Promise.resolve(); } yieldLoop(t = 0) { - return new this.Promise(function(resolve13, reject) { - return setTimeout(resolve13, t); + return new this.Promise(function(resolve14, reject) { + return setTimeout(resolve14, t); }); } computePenalty() { @@ -28399,7 +28399,7 @@ var require_light = __commonJS({ now = Date.now(); return this.check(weight, now); } - async __register__(index, weight, expiration) { + async __register__(index2, weight, expiration) { var now, wait; await this.yieldLoop(); now = Date.now(); @@ -28444,7 +28444,7 @@ var require_light = __commonJS({ strategy: this.storeOptions.strategy }; } - async __free__(index, weight) { + async __free__(index2, weight) { await this.yieldLoop(); this._running -= weight; this._done += weight; @@ -28539,15 +28539,15 @@ var require_light = __commonJS({ return this._queue.length === 0; } async _tryToRun() { - var args, cb, error3, reject, resolve13, returned, task; + var args, cb, error3, reject, resolve14, returned, task; if (this._running < 1 && this._queue.length > 0) { this._running++; - ({ task, args, resolve: resolve13, reject } = this._queue.shift()); + ({ task, args, resolve: resolve14, reject } = this._queue.shift()); cb = await (async function() { try { returned = await task(...args); return function() { - return resolve13(returned); + return resolve14(returned); }; } catch (error1) { error3 = error1; @@ -28562,13 +28562,13 @@ var require_light = __commonJS({ } } schedule(task, ...args) { - var promise, reject, resolve13; - resolve13 = reject = null; + var promise, reject, resolve14; + resolve14 = reject = null; promise = new this.Promise(function(_resolve, _reject) { - resolve13 = _resolve; + resolve14 = _resolve; return reject = _reject; }); - this._queue.push({ task, args, resolve: resolve13, reject }); + this._queue.push({ task, args, resolve: resolve14, reject }); this._tryToRun(); return promise; } @@ -28870,19 +28870,19 @@ var require_light = __commonJS({ check(weight = 1) { return this._store.__check__(weight); } - _clearGlobalState(index) { - if (this._scheduled[index] != null) { - clearTimeout(this._scheduled[index].expiration); - delete this._scheduled[index]; + _clearGlobalState(index2) { + if (this._scheduled[index2] != null) { + clearTimeout(this._scheduled[index2].expiration); + delete this._scheduled[index2]; return true; } else { return false; } } - async _free(index, job, options, eventInfo) { + async _free(index2, job, options, eventInfo) { var e, running; try { - ({ running } = await this._store.__free__(index, options.weight)); + ({ running } = await this._store.__free__(index2, options.weight)); this.Events.trigger("debug", `Freed ${options.id}`, eventInfo); if (running === 0 && this.empty()) { return this.Events.trigger("idle"); @@ -28892,13 +28892,13 @@ var require_light = __commonJS({ return this.Events.trigger("error", e); } } - _run(index, job, wait) { + _run(index2, job, wait) { var clearGlobalState, free, run9; job.doRun(); - clearGlobalState = this._clearGlobalState.bind(this, index); - run9 = this._run.bind(this, index, job); - free = this._free.bind(this, index, job); - return this._scheduled[index] = { + clearGlobalState = this._clearGlobalState.bind(this, index2); + run9 = this._run.bind(this, index2, job); + free = this._free.bind(this, index2, job); + return this._scheduled[index2] = { timeout: setTimeout(() => { return job.doExecute(this._limiter, clearGlobalState, run9, free); }, wait), @@ -28910,22 +28910,22 @@ var require_light = __commonJS({ } _drainOne(capacity) { return this._registerLock.schedule(() => { - var args, index, next, options, queue; + var args, index2, next, options, queue2; if (this.queued() === 0) { return this.Promise.resolve(null); } - queue = this._queues.getFirst(); - ({ options, args } = next = queue.first()); + queue2 = this._queues.getFirst(); + ({ options, args } = next = queue2.first()); if (capacity != null && options.weight > capacity) { return this.Promise.resolve(null); } this.Events.trigger("debug", `Draining ${options.id}`, { args, options }); - index = this._randomIndex(); - return this._store.__register__(index, options.weight, options.expiration).then(({ success, wait, reservoir }) => { + index2 = this._randomIndex(); + return this._store.__register__(index2, options.weight, options.expiration).then(({ success, wait, reservoir }) => { var empty; this.Events.trigger("debug", `Drained ${options.id}`, { success, args, options }); if (success) { - queue.shift(); + queue2.shift(); empty = this.empty(); if (empty) { this.Events.trigger("empty"); @@ -28933,7 +28933,7 @@ var require_light = __commonJS({ if (reservoir === 0) { this.Events.trigger("depleted", empty); } - this._run(index, next, wait); + this._run(index2, next, wait); return this.Promise.resolve(options.weight); } else { return this.Promise.resolve(null); @@ -28969,20 +28969,20 @@ var require_light = __commonJS({ counts = this._states.counts; return counts[0] + counts[1] + counts[2] + counts[3] === at; }; - return new this.Promise((resolve13, reject) => { + return new this.Promise((resolve14, reject) => { if (finished()) { - return resolve13(); + return resolve14(); } else { return this.on("done", () => { if (finished()) { this.removeAllListeners("done"); - return resolve13(); + return resolve14(); } }); } }); }; - done = options.dropWaitingJobs ? (this._run = function(index, next) { + done = options.dropWaitingJobs ? (this._run = function(index2, next) { return next.doDrop({ message: options.dropErrorMessage }); @@ -29069,9 +29069,9 @@ var require_light = __commonJS({ options = parser$5.load(options, this.jobDefaults); } task = (...args2) => { - return new this.Promise(function(resolve13, reject) { + return new this.Promise(function(resolve14, reject) { return fn(...args2, function(...args3) { - return (args3[0] != null ? reject : resolve13)(args3); + return (args3[0] != null ? reject : resolve14)(args3); }); }); }; @@ -29197,14 +29197,14 @@ var require_light = __commonJS({ var require_helpers = __commonJS({ "node_modules/jsonschema/lib/helpers.js"(exports2, module2) { "use strict"; - var ValidationError = exports2.ValidationError = function ValidationError2(message, instance, schema, path28, name, argument) { - if (Array.isArray(path28)) { - this.path = path28; - this.property = path28.reduce(function(sum, item) { + var ValidationError = exports2.ValidationError = function ValidationError2(message, instance, schema, path29, name, argument) { + if (Array.isArray(path29)) { + this.path = path29; + this.property = path29.reduce(function(sum, item) { return sum + makeSuffix(item); }, "instance"); - } else if (path28 !== void 0) { - this.property = path28; + } else if (path29 !== void 0) { + this.property = path29; } if (message) { this.message = message; @@ -29297,28 +29297,28 @@ var require_helpers = __commonJS({ name: { value: "SchemaError", enumerable: false } } ); - var SchemaContext = exports2.SchemaContext = function SchemaContext2(schema, options, path28, base, schemas) { + var SchemaContext = exports2.SchemaContext = function SchemaContext2(schema, options, path29, base, schemas) { this.schema = schema; this.options = options; - if (Array.isArray(path28)) { - this.path = path28; - this.propertyPath = path28.reduce(function(sum, item) { + if (Array.isArray(path29)) { + this.path = path29; + this.propertyPath = path29.reduce(function(sum, item) { return sum + makeSuffix(item); }, "instance"); } else { - this.propertyPath = path28; + this.propertyPath = path29; } this.base = base; this.schemas = schemas; }; - SchemaContext.prototype.resolve = function resolve13(target) { + SchemaContext.prototype.resolve = function resolve14(target) { return (() => resolveUrl(this.base, target))(); }; SchemaContext.prototype.makeChild = function makeChild(schema, propertyName) { - var path28 = propertyName === void 0 ? this.path : this.path.concat([propertyName]); + var path29 = propertyName === void 0 ? this.path : this.path.concat([propertyName]); var id = schema.$id || schema.id; let base = (() => resolveUrl(this.base, id || ""))(); - var ctx = new SchemaContext(schema, this.options, path28, base, Object.create(this.schemas)); + var ctx = new SchemaContext(schema, this.options, path29, base, Object.create(this.schemas)); if (id && !ctx.schemas[base]) { ctx.schemas[base] = schema; } @@ -29551,9 +29551,9 @@ var require_attribute = __commonJS({ return null; } var result = new ValidatorResult(instance, schema, options, ctx); - var types2 = Array.isArray(schema.type) ? schema.type : [schema.type]; - if (!types2.some(this.testType.bind(this, instance, schema, options, ctx))) { - var list = types2.map(function(v) { + var types3 = Array.isArray(schema.type) ? schema.type : [schema.type]; + if (!types3.some(this.testType.bind(this, instance, schema, options, ctx))) { + var list = types3.map(function(v) { if (!v) return; var id = v.$id || v.id; return id ? "<" + id + ">" : v + ""; @@ -30274,7 +30274,7 @@ var require_validator = __commonJS({ this.customFormats = Object.create(Validator4.prototype.customFormats); this.schemas = {}; this.unresolvedRefs = []; - this.types = Object.create(types2); + this.types = Object.create(types3); this.attributes = Object.create(attribute.validators); }; Validator3.prototype.customFormats = {}; @@ -30416,7 +30416,7 @@ var require_validator = __commonJS({ } return schema; }; - Validator3.prototype.resolve = function resolve13(schema, switchSchema, ctx) { + Validator3.prototype.resolve = function resolve14(schema, switchSchema, ctx) { switchSchema = ctx.resolve(switchSchema); if (ctx.schemas[switchSchema]) { return { subschema: ctx.schemas[switchSchema], switchSchema }; @@ -30448,32 +30448,32 @@ var require_validator = __commonJS({ } return true; }; - var types2 = Validator3.prototype.types = {}; - types2.string = function testString(instance) { + var types3 = Validator3.prototype.types = {}; + types3.string = function testString(instance) { return typeof instance == "string"; }; - types2.number = function testNumber(instance) { + types3.number = function testNumber(instance) { return typeof instance == "number" && isFinite(instance); }; - types2.integer = function testInteger(instance) { + types3.integer = function testInteger(instance) { return typeof instance == "number" && instance % 1 === 0; }; - types2.boolean = function testBoolean(instance) { + types3.boolean = function testBoolean(instance) { return typeof instance == "boolean"; }; - types2.array = function testArray(instance) { + types3.array = function testArray(instance) { return Array.isArray(instance); }; - types2["null"] = function testNull(instance) { + types3["null"] = function testNull(instance) { return instance === null; }; - types2.date = function testDate(instance) { + types3.date = function testDate(instance) { return instance instanceof Date; }; - types2.any = function testAny(instance) { + types3.any = function testAny(instance) { return true; }; - types2.object = function testObject(instance) { + types3.object = function testObject(instance) { return instance && typeof instance === "object" && !Array.isArray(instance) && !(instance instanceof Date); }; module2.exports = Validator3; @@ -30773,21 +30773,21 @@ var require_internal_path_helper = __commonJS({ return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.dirname = dirname5; + exports2.dirname = dirname6; exports2.ensureAbsoluteRoot = ensureAbsoluteRoot; exports2.hasAbsoluteRoot = hasAbsoluteRoot; exports2.hasRoot = hasRoot; exports2.normalizeSeparators = normalizeSeparators; exports2.safeTrimTrailingSeparator = safeTrimTrailingSeparator; - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var assert_1 = __importDefault2(require("assert")); var IS_WINDOWS = process.platform === "win32"; - function dirname5(p) { + function dirname6(p) { p = safeTrimTrailingSeparator(p); if (IS_WINDOWS && /^\\\\[^\\]+(\\[^\\]+)?$/.test(p)) { return p; } - let result = path28.dirname(p); + let result = path29.dirname(p); if (IS_WINDOWS && /^\\\\[^\\]+\\[^\\]+\\$/.test(result)) { result = safeTrimTrailingSeparator(result); } @@ -30824,7 +30824,7 @@ var require_internal_path_helper = __commonJS({ (0, assert_1.default)(hasAbsoluteRoot(root), `ensureAbsoluteRoot parameter 'root' must have an absolute root`); if (root.endsWith("/") || IS_WINDOWS && root.endsWith("\\")) { } else { - root += path28.sep; + root += path29.sep; } return root + itemPath; } @@ -30858,10 +30858,10 @@ var require_internal_path_helper = __commonJS({ return ""; } p = normalizeSeparators(p); - if (!p.endsWith(path28.sep)) { + if (!p.endsWith(path29.sep)) { return p; } - if (p === path28.sep) { + if (p === path29.sep) { return p; } if (IS_WINDOWS && /^[A-Z]:\\$/i.test(p)) { @@ -30931,7 +30931,7 @@ var require_internal_pattern_helper = __commonJS({ })(); Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getSearchPaths = getSearchPaths; - exports2.match = match; + exports2.match = match2; exports2.partialMatch = partialMatch; var pathHelper = __importStar2(require_internal_path_helper()); var internal_match_kind_1 = require_internal_match_kind(); @@ -30967,7 +30967,7 @@ var require_internal_pattern_helper = __commonJS({ } return result; } - function match(patterns, itemPath) { + function match2(patterns, itemPath) { let result = internal_match_kind_1.MatchKind.None; for (const pattern of patterns) { if (pattern.negate) { @@ -31006,11 +31006,11 @@ var require_concat_map = __commonJS({ var require_balanced_match = __commonJS({ "node_modules/balanced-match/index.js"(exports2, module2) { "use strict"; - module2.exports = balanced; - function balanced(a, b, str) { - if (a instanceof RegExp) a = maybeMatch(a, str); - if (b instanceof RegExp) b = maybeMatch(b, str); - var r = range(a, b, str); + module2.exports = balanced2; + function balanced2(a, b, str) { + if (a instanceof RegExp) a = maybeMatch2(a, str); + if (b instanceof RegExp) b = maybeMatch2(b, str); + var r = range2(a, b, str); return r && { start: r[0], end: r[1], @@ -31019,12 +31019,12 @@ var require_balanced_match = __commonJS({ post: str.slice(r[1] + b.length) }; } - function maybeMatch(reg, str) { + function maybeMatch2(reg, str) { var m = str.match(reg); return m ? m[0] : null; } - balanced.range = range; - function range(a, b, str) { + balanced2.range = range2; + function range2(a, b, str) { var begs, beg, left, right, result; var ai = str.indexOf(a); var bi = str.indexOf(b, ai + 1); @@ -31061,27 +31061,27 @@ var require_balanced_match = __commonJS({ var require_brace_expansion = __commonJS({ "node_modules/brace-expansion/index.js"(exports2, module2) { var concatMap = require_concat_map(); - var balanced = require_balanced_match(); + var balanced2 = require_balanced_match(); module2.exports = expandTop; - var escSlash = "\0SLASH" + Math.random() + "\0"; - var escOpen = "\0OPEN" + Math.random() + "\0"; - var escClose = "\0CLOSE" + Math.random() + "\0"; - var escComma = "\0COMMA" + Math.random() + "\0"; - var escPeriod = "\0PERIOD" + Math.random() + "\0"; - function numeric(str) { + var escSlash2 = "\0SLASH" + Math.random() + "\0"; + var escOpen2 = "\0OPEN" + Math.random() + "\0"; + var escClose2 = "\0CLOSE" + Math.random() + "\0"; + var escComma2 = "\0COMMA" + Math.random() + "\0"; + var escPeriod2 = "\0PERIOD" + Math.random() + "\0"; + function numeric2(str) { return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); } - function escapeBraces(str) { - return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); + function escapeBraces2(str) { + return str.split("\\\\").join(escSlash2).split("\\{").join(escOpen2).split("\\}").join(escClose2).split("\\,").join(escComma2).split("\\.").join(escPeriod2); } - function unescapeBraces(str) { - return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); + function unescapeBraces2(str) { + return str.split(escSlash2).join("\\").split(escOpen2).join("{").split(escClose2).join("}").split(escComma2).join(",").split(escPeriod2).join("."); } - function parseCommaParts(str) { + function parseCommaParts2(str) { if (!str) return [""]; var parts = []; - var m = balanced("{", "}", str); + var m = balanced2("{", "}", str); if (!m) return str.split(","); var pre = m.pre; @@ -31089,7 +31089,7 @@ var require_brace_expansion = __commonJS({ var post = m.post; var p = pre.split(","); p[p.length - 1] += "{" + body + "}"; - var postParts = parseCommaParts(post); + var postParts = parseCommaParts2(post); if (post.length) { p[p.length - 1] += postParts.shift(); p.push.apply(p, postParts); @@ -31105,23 +31105,23 @@ var require_brace_expansion = __commonJS({ if (str.substr(0, 2) === "{}") { str = "\\{\\}" + str.substr(2); } - return expand2(escapeBraces(str), max, true).map(unescapeBraces); + return expand3(escapeBraces2(str), max, true).map(unescapeBraces2); } - function embrace(str) { + function embrace2(str) { return "{" + str + "}"; } - function isPadded(el) { + function isPadded2(el) { return /^-?0\d/.test(el); } - function lte(i, y) { + function lte2(i, y) { return i <= y; } - function gte6(i, y) { + function gte7(i, y) { return i >= y; } - function expand2(str, max, isTop) { + function expand3(str, max, isTop) { var expansions = []; - var m = balanced("{", "}", str); + var m = balanced2("{", "}", str); if (!m || /\$$/.test(m.pre)) return [str]; var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); @@ -31129,8 +31129,8 @@ var require_brace_expansion = __commonJS({ var isOptions = m.body.indexOf(",") >= 0; if (!isSequence && !isOptions) { if (m.post.match(/,(?!,).*\}/)) { - str = m.pre + "{" + m.body + escClose + m.post; - return expand2(str, max, true); + str = m.pre + "{" + m.body + escClose2 + m.post; + return expand3(str, max, true); } return [str]; } @@ -31138,11 +31138,11 @@ var require_brace_expansion = __commonJS({ if (isSequence) { n = m.body.split(/\.\./); } else { - n = parseCommaParts(m.body); + n = parseCommaParts2(m.body); if (n.length === 1) { - n = expand2(n[0], max, false).map(embrace); + n = expand3(n[0], max, false).map(embrace2); if (n.length === 1) { - var post = m.post.length ? expand2(m.post, max, false) : [""]; + var post = m.post.length ? expand3(m.post, max, false) : [""]; return post.map(function(p) { return m.pre + n[0] + p; }); @@ -31150,20 +31150,20 @@ var require_brace_expansion = __commonJS({ } } var pre = m.pre; - var post = m.post.length ? expand2(m.post, max, false) : [""]; + var post = m.post.length ? expand3(m.post, max, false) : [""]; var N; if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); + var x = numeric2(n[0]); + var y = numeric2(n[1]); var width = Math.max(n[0].length, n[1].length); - var incr = n.length == 3 ? Math.max(Math.abs(numeric(n[2])), 1) : 1; - var test = lte; + var incr = n.length == 3 ? Math.max(Math.abs(numeric2(n[2])), 1) : 1; + var test = lte2; var reverse = y < x; if (reverse) { incr *= -1; - test = gte6; + test = gte7; } - var pad = n.some(isPadded); + var pad = n.some(isPadded2); N = []; for (var i = x; test(i, y); i += incr) { var c; @@ -31188,7 +31188,7 @@ var require_brace_expansion = __commonJS({ } } else { N = concatMap(n, function(el) { - return expand2(el, max, false); + return expand3(el, max, false); }); } for (var j = 0; j < N.length; j++) { @@ -31206,9 +31206,9 @@ var require_brace_expansion = __commonJS({ // node_modules/minimatch/minimatch.js var require_minimatch = __commonJS({ "node_modules/minimatch/minimatch.js"(exports2, module2) { - module2.exports = minimatch; - minimatch.Minimatch = Minimatch; - var path28 = (function() { + module2.exports = minimatch2; + minimatch2.Minimatch = Minimatch2; + var path29 = (function() { try { return require("path"); } catch (e) { @@ -31216,9 +31216,9 @@ var require_minimatch = __commonJS({ })() || { sep: "/" }; - minimatch.sep = path28.sep; - var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; - var expand2 = require_brace_expansion(); + minimatch2.sep = path29.sep; + var GLOBSTAR2 = minimatch2.GLOBSTAR = Minimatch2.GLOBSTAR = {}; + var expand3 = require_brace_expansion(); var plTypes = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, @@ -31226,11 +31226,11 @@ var require_minimatch = __commonJS({ "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } }; - var qmark = "[^/]"; - var star = qmark + "*?"; - var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; - var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; - var reSpecials = charSet("().*{}+?[]^$\\!"); + var qmark3 = "[^/]"; + var star3 = qmark3 + "*?"; + var twoStarDot2 = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; + var twoStarNoDot2 = "(?:(?!(?:\\/|^)\\.).)*?"; + var reSpecials2 = charSet("().*{}+?[]^$\\!"); function charSet(s) { return s.split("").reduce(function(set, c) { set[c] = true; @@ -31238,14 +31238,14 @@ var require_minimatch = __commonJS({ }, {}); } var slashSplit = /\/+/; - minimatch.filter = filter; - function filter(pattern, options) { + minimatch2.filter = filter2; + function filter2(pattern, options) { options = options || {}; return function(p, i, list) { - return minimatch(p, pattern, options); + return minimatch2(p, pattern, options); }; } - function ext(a, b) { + function ext2(a, b) { b = b || {}; var t = {}; Object.keys(a).forEach(function(k) { @@ -31256,57 +31256,57 @@ var require_minimatch = __commonJS({ }); return t; } - minimatch.defaults = function(def) { + minimatch2.defaults = function(def) { if (!def || typeof def !== "object" || !Object.keys(def).length) { - return minimatch; + return minimatch2; } - var orig = minimatch; - var m = function minimatch2(p, pattern, options) { - return orig(p, pattern, ext(def, options)); + var orig = minimatch2; + var m = function minimatch3(p, pattern, options) { + return orig(p, pattern, ext2(def, options)); }; - m.Minimatch = function Minimatch2(pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)); + m.Minimatch = function Minimatch3(pattern, options) { + return new orig.Minimatch(pattern, ext2(def, options)); }; - m.Minimatch.defaults = function defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; + m.Minimatch.defaults = function defaults2(options) { + return orig.defaults(ext2(def, options)).Minimatch; }; - m.filter = function filter2(pattern, options) { - return orig.filter(pattern, ext(def, options)); + m.filter = function filter3(pattern, options) { + return orig.filter(pattern, ext2(def, options)); }; - m.defaults = function defaults(options) { - return orig.defaults(ext(def, options)); + m.defaults = function defaults2(options) { + return orig.defaults(ext2(def, options)); }; - m.makeRe = function makeRe2(pattern, options) { - return orig.makeRe(pattern, ext(def, options)); + m.makeRe = function makeRe3(pattern, options) { + return orig.makeRe(pattern, ext2(def, options)); }; - m.braceExpand = function braceExpand2(pattern, options) { - return orig.braceExpand(pattern, ext(def, options)); + m.braceExpand = function braceExpand3(pattern, options) { + return orig.braceExpand(pattern, ext2(def, options)); }; m.match = function(list, pattern, options) { - return orig.match(list, pattern, ext(def, options)); + return orig.match(list, pattern, ext2(def, options)); }; return m; }; - Minimatch.defaults = function(def) { - return minimatch.defaults(def).Minimatch; + Minimatch2.defaults = function(def) { + return minimatch2.defaults(def).Minimatch; }; - function minimatch(p, pattern, options) { - assertValidPattern(pattern); + function minimatch2(p, pattern, options) { + assertValidPattern2(pattern); if (!options) options = {}; if (!options.nocomment && pattern.charAt(0) === "#") { return false; } - return new Minimatch(pattern, options).match(p); + return new Minimatch2(pattern, options).match(p); } - function Minimatch(pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options); + function Minimatch2(pattern, options) { + if (!(this instanceof Minimatch2)) { + return new Minimatch2(pattern, options); } - assertValidPattern(pattern); + assertValidPattern2(pattern); if (!options) options = {}; pattern = pattern.trim(); - if (!options.allowWindowsEscape && path28.sep !== "/") { - pattern = pattern.split(path28.sep).join("/"); + if (!options.allowWindowsEscape && path29.sep !== "/") { + pattern = pattern.split(path29.sep).join("/"); } this.options = options; this.maxGlobstarRecursion = options.maxGlobstarRecursion !== void 0 ? options.maxGlobstarRecursion : 200; @@ -31319,9 +31319,9 @@ var require_minimatch = __commonJS({ this.partial = !!options.partial; this.make(); } - Minimatch.prototype.debug = function() { + Minimatch2.prototype.debug = function() { }; - Minimatch.prototype.make = make; + Minimatch2.prototype.make = make; function make() { var pattern = this.pattern; var options = this.options; @@ -31353,7 +31353,7 @@ var require_minimatch = __commonJS({ this.debug(this.pattern, set); this.set = set; } - Minimatch.prototype.parseNegate = parseNegate; + Minimatch2.prototype.parseNegate = parseNegate; function parseNegate() { var pattern = this.pattern; var negate2 = false; @@ -31367,42 +31367,42 @@ var require_minimatch = __commonJS({ if (negateOffset) this.pattern = pattern.substr(negateOffset); this.negate = negate2; } - minimatch.braceExpand = function(pattern, options) { - return braceExpand(pattern, options); + minimatch2.braceExpand = function(pattern, options) { + return braceExpand2(pattern, options); }; - Minimatch.prototype.braceExpand = braceExpand; - function braceExpand(pattern, options) { + Minimatch2.prototype.braceExpand = braceExpand2; + function braceExpand2(pattern, options) { if (!options) { - if (this instanceof Minimatch) { + if (this instanceof Minimatch2) { options = this.options; } else { options = {}; } } pattern = typeof pattern === "undefined" ? this.pattern : pattern; - assertValidPattern(pattern); + assertValidPattern2(pattern); if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } - return expand2(pattern); + return expand3(pattern); } - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = function(pattern) { + var MAX_PATTERN_LENGTH2 = 1024 * 64; + var assertValidPattern2 = function(pattern) { if (typeof pattern !== "string") { throw new TypeError("invalid pattern"); } - if (pattern.length > MAX_PATTERN_LENGTH) { + if (pattern.length > MAX_PATTERN_LENGTH2) { throw new TypeError("pattern is too long"); } }; - Minimatch.prototype.parse = parse2; + Minimatch2.prototype.parse = parse2; var SUBPARSE = {}; function parse2(pattern, isSub) { - assertValidPattern(pattern); + assertValidPattern2(pattern); var options = this.options; if (pattern === "**") { if (!options.noglobstar) - return GLOBSTAR; + return GLOBSTAR2; else pattern = "*"; } @@ -31422,11 +31422,11 @@ var require_minimatch = __commonJS({ if (stateChar) { switch (stateChar) { case "*": - re += star; + re += star3; hasMagic = true; break; case "?": - re += qmark; + re += qmark3; hasMagic = true; break; default: @@ -31439,7 +31439,7 @@ var require_minimatch = __commonJS({ } for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) { this.debug("%s %s %s %j", pattern, i, re, c); - if (escaping && reSpecials[c]) { + if (escaping && reSpecials2[c]) { re += "\\" + c; escaping = false; continue; @@ -31552,7 +31552,7 @@ var require_minimatch = __commonJS({ clearStateChar(); if (escaping) { escaping = false; - } else if (reSpecials[c] && !(c === "^" && inClass)) { + } else if (reSpecials2[c] && !(c === "^" && inClass)) { re += "\\"; } re += c; @@ -31574,7 +31574,7 @@ var require_minimatch = __commonJS({ return $1 + $1 + $2 + "|"; }); this.debug("tail=%j\n %s", tail, tail, pl, re); - var t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; + var t = pl.type === "*" ? star3 : pl.type === "?" ? qmark3 : "\\" + pl.type; hasMagic = true; re = re.slice(0, pl.reStart) + t + "\\(" + tail; } @@ -31582,12 +31582,12 @@ var require_minimatch = __commonJS({ if (escaping) { re += "\\\\"; } - var addPatternStart = false; + var addPatternStart2 = false; switch (re.charAt(0)) { case "[": case ".": case "(": - addPatternStart = true; + addPatternStart2 = true; } for (var n = negativeLists.length - 1; n > -1; n--) { var nl = negativeLists[n]; @@ -31612,7 +31612,7 @@ var require_minimatch = __commonJS({ if (re !== "" && hasMagic) { re = "(?=.)" + re; } - if (addPatternStart) { + if (addPatternStart2) { re = patternStart + re; } if (isSub === SUBPARSE) { @@ -31631,11 +31631,11 @@ var require_minimatch = __commonJS({ regExp._src = re; return regExp; } - minimatch.makeRe = function(pattern, options) { - return new Minimatch(pattern, options || {}).makeRe(); + minimatch2.makeRe = function(pattern, options) { + return new Minimatch2(pattern, options || {}).makeRe(); }; - Minimatch.prototype.makeRe = makeRe; - function makeRe() { + Minimatch2.prototype.makeRe = makeRe2; + function makeRe2() { if (this.regexp || this.regexp === false) return this.regexp; var set = this.set; if (!set.length) { @@ -31643,11 +31643,11 @@ var require_minimatch = __commonJS({ return this.regexp; } var options = this.options; - var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; + var twoStar = options.noglobstar ? star3 : options.dot ? twoStarDot2 : twoStarNoDot2; var flags = options.nocase ? "i" : ""; var re = set.map(function(pattern) { return pattern.map(function(p) { - return p === GLOBSTAR ? twoStar : typeof p === "string" ? regExpEscape(p) : p._src; + return p === GLOBSTAR2 ? twoStar : typeof p === "string" ? regExpEscape3(p) : p._src; }).join("\\/"); }).join("|"); re = "^(?:" + re + ")$"; @@ -31659,9 +31659,9 @@ var require_minimatch = __commonJS({ } return this.regexp; } - minimatch.match = function(list, pattern, options) { + minimatch2.match = function(list, pattern, options) { options = options || {}; - var mm = new Minimatch(pattern, options); + var mm = new Minimatch2(pattern, options); list = list.filter(function(f) { return mm.match(f); }); @@ -31670,15 +31670,15 @@ var require_minimatch = __commonJS({ } return list; }; - Minimatch.prototype.match = function match(f, partial) { + Minimatch2.prototype.match = function match2(f, partial) { if (typeof partial === "undefined") partial = this.partial; this.debug("match", f, this.pattern); if (this.comment) return false; if (this.empty) return f === ""; if (f === "/" && partial) return true; var options = this.options; - if (path28.sep !== "/") { - f = f.split(path28.sep).join("/"); + if (path29.sep !== "/") { + f = f.split(path29.sep).join("/"); } f = f.split(slashSplit); this.debug(this.pattern, "split", f); @@ -31705,24 +31705,24 @@ var require_minimatch = __commonJS({ if (options.flipNegate) return false; return this.negate; }; - Minimatch.prototype.matchOne = function(file, pattern, partial) { - if (pattern.indexOf(GLOBSTAR) !== -1) { + Minimatch2.prototype.matchOne = function(file, pattern, partial) { + if (pattern.indexOf(GLOBSTAR2) !== -1) { return this._matchGlobstar(file, pattern, partial, 0, 0); } return this._matchOne(file, pattern, partial, 0, 0); }; - Minimatch.prototype._matchGlobstar = function(file, pattern, partial, fileIndex, patternIndex) { + Minimatch2.prototype._matchGlobstar = function(file, pattern, partial, fileIndex, patternIndex) { var i; var firstgs = -1; for (i = patternIndex; i < pattern.length; i++) { - if (pattern[i] === GLOBSTAR) { + if (pattern[i] === GLOBSTAR2) { firstgs = i; break; } } var lastgs = -1; for (i = pattern.length - 1; i >= 0; i--) { - if (pattern[i] === GLOBSTAR) { + if (pattern[i] === GLOBSTAR2) { lastgs = i; break; } @@ -31771,7 +31771,7 @@ var require_minimatch = __commonJS({ var nonGsPartsSums = [0]; for (var bi = 0; bi < body.length; bi++) { var b = body[bi]; - if (b === GLOBSTAR) { + if (b === GLOBSTAR2) { nonGsPartsSums.push(nonGsParts); currentBody = [[], 0]; bodySegments.push(currentBody); @@ -31795,7 +31795,7 @@ var require_minimatch = __commonJS({ !!fileTailMatch ); }; - Minimatch.prototype._matchGlobStarBodySections = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) { + Minimatch2.prototype._matchGlobStarBodySections = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) { var bs = bodySegments[bodyIndex]; if (!bs) { for (var i = fileIndex; i < file.length; i++) { @@ -31839,14 +31839,14 @@ var require_minimatch = __commonJS({ } return partial || null; }; - Minimatch.prototype._matchOne = function(file, pattern, partial, fileIndex, patternIndex) { + Minimatch2.prototype._matchOne = function(file, pattern, partial, fileIndex, patternIndex) { var fi, pi, fl, pl; for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) { this.debug("matchOne loop"); var p = pattern[pi]; var f = file[fi]; this.debug(pattern, p, f); - if (p === false || p === GLOBSTAR) return false; + if (p === false || p === GLOBSTAR2) return false; var hit; if (typeof p === "string") { hit = f === p; @@ -31869,7 +31869,7 @@ var require_minimatch = __commonJS({ function globUnescape(s) { return s.replace(/\\(.)/g, "$1"); } - function regExpEscape(s) { + function regExpEscape3(s) { return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); } } @@ -31921,7 +31921,7 @@ var require_internal_path = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.Path = void 0; - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var pathHelper = __importStar2(require_internal_path_helper()); var assert_1 = __importDefault2(require("assert")); var IS_WINDOWS = process.platform === "win32"; @@ -31936,12 +31936,12 @@ var require_internal_path = __commonJS({ (0, assert_1.default)(itemPath, `Parameter 'itemPath' must not be empty`); itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); if (!pathHelper.hasRoot(itemPath)) { - this.segments = itemPath.split(path28.sep); + this.segments = itemPath.split(path29.sep); } else { let remaining = itemPath; let dir = pathHelper.dirname(remaining); while (dir !== remaining) { - const basename2 = path28.basename(remaining); + const basename2 = path29.basename(remaining); this.segments.unshift(basename2); remaining = dir; dir = pathHelper.dirname(remaining); @@ -31959,7 +31959,7 @@ var require_internal_path = __commonJS({ (0, assert_1.default)(segment === pathHelper.dirname(segment), `Parameter 'itemPath' root segment contains information for multiple segments`); this.segments.push(segment); } else { - (0, assert_1.default)(!segment.includes(path28.sep), `Parameter 'itemPath' contains unexpected path separators`); + (0, assert_1.default)(!segment.includes(path29.sep), `Parameter 'itemPath' contains unexpected path separators`); this.segments.push(segment); } } @@ -31970,12 +31970,12 @@ var require_internal_path = __commonJS({ */ toString() { let result = this.segments[0]; - let skipSlash = result.endsWith(path28.sep) || IS_WINDOWS && /^[A-Z]:$/i.test(result); + let skipSlash = result.endsWith(path29.sep) || IS_WINDOWS && /^[A-Z]:$/i.test(result); for (let i = 1; i < this.segments.length; i++) { if (skipSlash) { skipSlash = false; } else { - result += path28.sep; + result += path29.sep; } result += this.segments[i]; } @@ -32033,7 +32033,7 @@ var require_internal_pattern = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.Pattern = void 0; var os7 = __importStar2(require("os")); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var pathHelper = __importStar2(require_internal_path_helper()); var assert_1 = __importDefault2(require("assert")); var minimatch_1 = require_minimatch(); @@ -32062,7 +32062,7 @@ var require_internal_pattern = __commonJS({ } pattern = _Pattern.fixupPattern(pattern, homedir2); this.segments = new internal_path_1.Path(pattern).segments; - this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path28.sep); + this.trailingSeparator = pathHelper.normalizeSeparators(pattern).endsWith(path29.sep); pattern = pathHelper.safeTrimTrailingSeparator(pattern); let foundGlob = false; const searchSegments = this.segments.map((x) => _Pattern.getLiteral(x)).filter((x) => !foundGlob && !(foundGlob = x === "")); @@ -32086,8 +32086,8 @@ var require_internal_pattern = __commonJS({ match(itemPath) { if (this.segments[this.segments.length - 1] === "**") { itemPath = pathHelper.normalizeSeparators(itemPath); - if (!itemPath.endsWith(path28.sep) && this.isImplicitPattern === false) { - itemPath = `${itemPath}${path28.sep}`; + if (!itemPath.endsWith(path29.sep) && this.isImplicitPattern === false) { + itemPath = `${itemPath}${path29.sep}`; } } else { itemPath = pathHelper.safeTrimTrailingSeparator(itemPath); @@ -32122,9 +32122,9 @@ var require_internal_pattern = __commonJS({ (0, assert_1.default)(literalSegments.every((x, i) => (x !== "." || i === 0) && x !== ".."), `Invalid pattern '${pattern}'. Relative pathing '.' and '..' is not allowed.`); (0, assert_1.default)(!pathHelper.hasRoot(pattern) || literalSegments[0], `Invalid pattern '${pattern}'. Root segment must not contain globs.`); pattern = pathHelper.normalizeSeparators(pattern); - if (pattern === "." || pattern.startsWith(`.${path28.sep}`)) { + if (pattern === "." || pattern.startsWith(`.${path29.sep}`)) { pattern = _Pattern.globEscape(process.cwd()) + pattern.substr(1); - } else if (pattern === "~" || pattern.startsWith(`~${path28.sep}`)) { + } else if (pattern === "~" || pattern.startsWith(`~${path29.sep}`)) { homedir2 = homedir2 || os7.homedir(); (0, assert_1.default)(homedir2, "Unable to determine HOME directory"); (0, assert_1.default)(pathHelper.hasAbsoluteRoot(homedir2), `Expected HOME directory to be a rooted path. Actual '${homedir2}'`); @@ -32208,8 +32208,8 @@ var require_internal_search_state = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.SearchState = void 0; var SearchState = class { - constructor(path28, level) { - this.path = path28; + constructor(path29, level) { + this.path = path29; this.level = level; } }; @@ -32260,11 +32260,11 @@ var require_internal_globber = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -32280,7 +32280,7 @@ var require_internal_globber = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -32293,14 +32293,14 @@ var require_internal_globber = __commonJS({ }, i); function verb(n) { i[n] = o[n] && function(v) { - return new Promise(function(resolve13, reject) { - v = o[n](v), settle(resolve13, reject, v.done, v.value); + return new Promise(function(resolve14, reject) { + v = o[n](v), settle(resolve14, reject, v.done, v.value); }); }; } - function settle(resolve13, reject, d, v) { + function settle(resolve14, reject, d, v) { Promise.resolve(v).then(function(v2) { - resolve13({ value: v2, done: d }); + resolve14({ value: v2, done: d }); }, reject); } }; @@ -32351,9 +32351,9 @@ var require_internal_globber = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.DefaultGlobber = void 0; var core30 = __importStar2(require_core()); - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var globOptionsHelper = __importStar2(require_internal_glob_options_helper()); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var patternHelper = __importStar2(require_internal_pattern_helper()); var internal_match_kind_1 = require_internal_match_kind(); var internal_pattern_1 = require_internal_pattern(); @@ -32370,10 +32370,10 @@ var require_internal_globber = __commonJS({ } glob() { return __awaiter2(this, void 0, void 0, function* () { - var _a, e_1, _b, _c; + var _a2, e_1, _b, _c; const result = []; try { - for (var _d = true, _e = __asyncValues2(this.globGenerator()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) { + for (var _d = true, _e = __asyncValues2(this.globGenerator()), _f; _f = yield _e.next(), _a2 = _f.done, !_a2; _d = true) { _c = _f.value; _d = false; const itemPath = _c; @@ -32383,7 +32383,7 @@ var require_internal_globber = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (!_d && !_a && (_b = _e.return)) yield _b.call(_e); + if (!_d && !_a2 && (_b = _e.return)) yield _b.call(_e); } finally { if (e_1) throw e_1.error; } @@ -32405,7 +32405,7 @@ var require_internal_globber = __commonJS({ for (const searchPath of patternHelper.getSearchPaths(patterns)) { core30.debug(`Search path '${searchPath}'`); try { - yield __await2(fs30.promises.lstat(searchPath)); + yield __await2(fs31.promises.lstat(searchPath)); } catch (err) { if (err.code === "ENOENT") { continue; @@ -32417,9 +32417,9 @@ var require_internal_globber = __commonJS({ const traversalChain = []; while (stack.length) { const item = stack.pop(); - const match = patternHelper.match(patterns, item.path); - const partialMatch = !!match || patternHelper.partialMatch(patterns, item.path); - if (!match && !partialMatch) { + const match2 = patternHelper.match(patterns, item.path); + const partialMatch = !!match2 || patternHelper.partialMatch(patterns, item.path); + if (!match2 && !partialMatch) { continue; } const stats = yield __await2( @@ -32429,19 +32429,19 @@ var require_internal_globber = __commonJS({ if (!stats) { continue; } - if (options.excludeHiddenFiles && path28.basename(item.path).match(/^\./)) { + if (options.excludeHiddenFiles && path29.basename(item.path).match(/^\./)) { continue; } if (stats.isDirectory()) { - if (match & internal_match_kind_1.MatchKind.Directory && options.matchDirectories) { + if (match2 & internal_match_kind_1.MatchKind.Directory && options.matchDirectories) { yield yield __await2(item.path); } else if (!partialMatch) { continue; } const childLevel = item.level + 1; - const childItems = (yield __await2(fs30.promises.readdir(item.path))).map((x) => new internal_search_state_1.SearchState(path28.join(item.path, x), childLevel)); + const childItems = (yield __await2(fs31.promises.readdir(item.path))).map((x) => new internal_search_state_1.SearchState(path29.join(item.path, x), childLevel)); stack.push(...childItems.reverse()); - } else if (match & internal_match_kind_1.MatchKind.File) { + } else if (match2 & internal_match_kind_1.MatchKind.File) { yield yield __await2(item.path); } } @@ -32474,7 +32474,7 @@ var require_internal_globber = __commonJS({ let stats; if (options.followSymbolicLinks) { try { - stats = yield fs30.promises.stat(item.path); + stats = yield fs31.promises.stat(item.path); } catch (err) { if (err.code === "ENOENT") { if (options.omitBrokenSymbolicLinks) { @@ -32486,10 +32486,10 @@ var require_internal_globber = __commonJS({ throw err; } } else { - stats = yield fs30.promises.lstat(item.path); + stats = yield fs31.promises.lstat(item.path); } if (stats.isDirectory() && options.followSymbolicLinks) { - const realPath = yield fs30.promises.realpath(item.path); + const realPath = yield fs31.promises.realpath(item.path); while (traversalChain.length >= item.level) { traversalChain.pop(); } @@ -32550,11 +32550,11 @@ var require_internal_hash_files = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -32570,7 +32570,7 @@ var require_internal_hash_files = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -32583,14 +32583,14 @@ var require_internal_hash_files = __commonJS({ }, i); function verb(n) { i[n] = o[n] && function(v) { - return new Promise(function(resolve13, reject) { - v = o[n](v), settle(resolve13, reject, v.done, v.value); + return new Promise(function(resolve14, reject) { + v = o[n](v), settle(resolve14, reject, v.done, v.value); }); }; } - function settle(resolve13, reject, d, v) { + function settle(resolve14, reject, d, v) { Promise.resolve(v).then(function(v2) { - resolve13({ value: v2, done: d }); + resolve14({ value: v2, done: d }); }, reject); } }; @@ -32598,13 +32598,13 @@ var require_internal_hash_files = __commonJS({ exports2.hashFiles = hashFiles2; var crypto3 = __importStar2(require("crypto")); var core30 = __importStar2(require_core()); - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var stream2 = __importStar2(require("stream")); - var util = __importStar2(require("util")); - var path28 = __importStar2(require("path")); + var util3 = __importStar2(require("util")); + var path29 = __importStar2(require("path")); function hashFiles2(globber_1, currentWorkspace_1) { return __awaiter2(this, arguments, void 0, function* (globber, currentWorkspace, verbose = false) { - var _a, e_1, _b, _c; + var _a2, e_1, _b, _c; var _d; const writeDelegate = verbose ? core30.info : core30.debug; let hasMatch = false; @@ -32612,22 +32612,22 @@ var require_internal_hash_files = __commonJS({ const result = crypto3.createHash("sha256"); let count = 0; try { - for (var _e = true, _f = __asyncValues2(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a; _e = true) { + for (var _e = true, _f = __asyncValues2(globber.globGenerator()), _g; _g = yield _f.next(), _a2 = _g.done, !_a2; _e = true) { _c = _g.value; _e = false; const file = _c; writeDelegate(file); - if (!file.startsWith(`${githubWorkspace}${path28.sep}`)) { + if (!file.startsWith(`${githubWorkspace}${path29.sep}`)) { writeDelegate(`Ignore '${file}' since it is not under GITHUB_WORKSPACE.`); continue; } - if (fs30.statSync(file).isDirectory()) { + if (fs31.statSync(file).isDirectory()) { writeDelegate(`Skip directory '${file}'.`); continue; } const hash2 = crypto3.createHash("sha256"); - const pipeline = util.promisify(stream2.pipeline); - yield pipeline(fs30.createReadStream(file), hash2); + const pipeline = util3.promisify(stream2.pipeline); + yield pipeline(fs31.createReadStream(file), hash2); result.write(hash2.digest()); count++; if (!hasMatch) { @@ -32638,7 +32638,7 @@ var require_internal_hash_files = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (!_e && !_a && (_b = _f.return)) yield _b.call(_f); + if (!_e && !_a2 && (_b = _f.return)) yield _b.call(_f); } finally { if (e_1) throw e_1.error; } @@ -32662,11 +32662,11 @@ var require_glob = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -32682,7 +32682,7 @@ var require_glob = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -33135,10 +33135,10 @@ var require_semver3 = __commonJS({ } } exports2.compareIdentifiers = compareIdentifiers; - var numeric = /^[0-9]+$/; + var numeric2 = /^[0-9]+$/; function compareIdentifiers(a, b) { - var anum = numeric.test(a); - var bnum = numeric.test(b); + var anum = numeric2.test(a); + var bnum = numeric2.test(b); if (anum && bnum) { a = +a; b = +b; @@ -33207,12 +33207,12 @@ var require_semver3 = __commonJS({ function neq(a, b, loose) { return compare3(a, b, loose) !== 0; } - exports2.gte = gte6; - function gte6(a, b, loose) { + exports2.gte = gte7; + function gte7(a, b, loose) { return compare3(a, b, loose) >= 0; } - exports2.lte = lte; - function lte(a, b, loose) { + exports2.lte = lte2; + function lte2(a, b, loose) { return compare3(a, b, loose) <= 0; } exports2.cmp = cmp; @@ -33239,11 +33239,11 @@ var require_semver3 = __commonJS({ case ">": return gt(a, b, loose); case ">=": - return gte6(a, b, loose); + return gte7(a, b, loose); case "<": return lt2(a, b, loose); case "<=": - return lte(a, b, loose); + return lte2(a, b, loose); default: throw new TypeError("Invalid operator: " + op); } @@ -33345,32 +33345,32 @@ var require_semver3 = __commonJS({ return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan; }; exports2.Range = Range2; - function Range2(range, options) { + function Range2(range2, options) { if (!options || typeof options !== "object") { options = { loose: !!options, includePrerelease: false }; } - if (range instanceof Range2) { - if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) { - return range; + if (range2 instanceof Range2) { + if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) { + return range2; } else { - return new Range2(range.raw, options); + return new Range2(range2.raw, options); } } - if (range instanceof Comparator) { - return new Range2(range.value, options); + if (range2 instanceof Comparator) { + return new Range2(range2.value, options); } if (!(this instanceof Range2)) { - return new Range2(range, options); + return new Range2(range2, options); } this.options = options; this.loose = !!options.loose; this.includePrerelease = !!options.includePrerelease; - this.raw = range.trim().split(/\s+/).join(" "); - this.set = this.raw.split("||").map(function(range2) { - return this.parseRange(range2.trim()); + this.raw = range2.trim().split(/\s+/).join(" "); + this.set = this.raw.split("||").map(function(range3) { + return this.parseRange(range3.trim()); }, this).filter(function(c) { return c.length; }); @@ -33388,18 +33388,18 @@ var require_semver3 = __commonJS({ Range2.prototype.toString = function() { return this.range; }; - Range2.prototype.parseRange = function(range) { + Range2.prototype.parseRange = function(range2) { var loose = this.options.loose; var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]; - range = range.replace(hr, hyphenReplace); - debug6("hyphen replace", range); - range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace); - debug6("comparator trim", range, safeRe[t.COMPARATORTRIM]); - range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace); - range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace); - range = range.split(/\s+/).join(" "); + range2 = range2.replace(hr, hyphenReplace); + debug6("hyphen replace", range2); + range2 = range2.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace); + debug6("comparator trim", range2, safeRe[t.COMPARATORTRIM]); + range2 = range2.replace(safeRe[t.TILDETRIM], tildeTrimReplace); + range2 = range2.replace(safeRe[t.CARETTRIM], caretTrimReplace); + range2 = range2.split(/\s+/).join(" "); var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]; - var set = range.split(" ").map(function(comp) { + var set = range2.split(" ").map(function(comp) { return parseComparator(comp, this.options); }, this).join(" ").split(/\s+/); if (this.options.loose) { @@ -33412,12 +33412,12 @@ var require_semver3 = __commonJS({ }, this); return set; }; - Range2.prototype.intersects = function(range, options) { - if (!(range instanceof Range2)) { + Range2.prototype.intersects = function(range2, options) { + if (!(range2 instanceof Range2)) { throw new TypeError("a Range is required"); } return this.set.some(function(thisComparators) { - return isSatisfiable(thisComparators, options) && range.set.some(function(rangeComparators) { + return isSatisfiable(thisComparators, options) && range2.set.some(function(rangeComparators) { return isSatisfiable(rangeComparators, options) && thisComparators.every(function(thisComparator) { return rangeComparators.every(function(rangeComparator) { return thisComparator.intersects(rangeComparator, options); @@ -33439,8 +33439,8 @@ var require_semver3 = __commonJS({ return result; } exports2.toComparators = toComparators; - function toComparators(range, options) { - return new Range2(range, options).set.map(function(comp) { + function toComparators(range2, options) { + return new Range2(range2, options).set.map(function(comp) { return comp.map(function(c) { return c.value; }).join(" ").trim().split(" "); @@ -33662,20 +33662,20 @@ var require_semver3 = __commonJS({ return true; } exports2.satisfies = satisfies2; - function satisfies2(version, range, options) { + function satisfies2(version, range2, options) { try { - range = new Range2(range, options); + range2 = new Range2(range2, options); } catch (er) { return false; } - return range.test(version); + return range2.test(version); } exports2.maxSatisfying = maxSatisfying; - function maxSatisfying(versions, range, options) { + function maxSatisfying(versions, range2, options) { var max = null; var maxSV = null; try { - var rangeObj = new Range2(range, options); + var rangeObj = new Range2(range2, options); } catch (er) { return null; } @@ -33690,11 +33690,11 @@ var require_semver3 = __commonJS({ return max; } exports2.minSatisfying = minSatisfying; - function minSatisfying(versions, range, options) { + function minSatisfying(versions, range2, options) { var min = null; var minSV = null; try { - var rangeObj = new Range2(range, options); + var rangeObj = new Range2(range2, options); } catch (er) { return null; } @@ -33709,19 +33709,19 @@ var require_semver3 = __commonJS({ return min; } exports2.minVersion = minVersion; - function minVersion(range, loose) { - range = new Range2(range, loose); + function minVersion(range2, loose) { + range2 = new Range2(range2, loose); var minver = new SemVer("0.0.0"); - if (range.test(minver)) { + if (range2.test(minver)) { return minver; } minver = new SemVer("0.0.0-0"); - if (range.test(minver)) { + if (range2.test(minver)) { return minver; } minver = null; - for (var i2 = 0; i2 < range.set.length; ++i2) { - var comparators = range.set[i2]; + for (var i2 = 0; i2 < range2.set.length; ++i2) { + var comparators = range2.set[i2]; comparators.forEach(function(comparator) { var compver = new SemVer(comparator.semver.version); switch (comparator.operator) { @@ -33748,43 +33748,43 @@ var require_semver3 = __commonJS({ } }); } - if (minver && range.test(minver)) { + if (minver && range2.test(minver)) { return minver; } return null; } exports2.validRange = validRange; - function validRange(range, options) { + function validRange(range2, options) { try { - return new Range2(range, options).range || "*"; + return new Range2(range2, options).range || "*"; } catch (er) { return null; } } exports2.ltr = ltr; - function ltr(version, range, options) { - return outside(version, range, "<", options); + function ltr(version, range2, options) { + return outside(version, range2, "<", options); } exports2.gtr = gtr; - function gtr(version, range, options) { - return outside(version, range, ">", options); + function gtr(version, range2, options) { + return outside(version, range2, ">", options); } exports2.outside = outside; - function outside(version, range, hilo, options) { + function outside(version, range2, hilo, options) { version = new SemVer(version, options); - range = new Range2(range, options); + range2 = new Range2(range2, options); var gtfn, ltefn, ltfn, comp, ecomp; switch (hilo) { case ">": gtfn = gt; - ltefn = lte; + ltefn = lte2; ltfn = lt2; comp = ">"; ecomp = ">="; break; case "<": gtfn = lt2; - ltefn = gte6; + ltefn = gte7; ltfn = gt; comp = "<"; ecomp = "<="; @@ -33792,11 +33792,11 @@ var require_semver3 = __commonJS({ default: throw new TypeError('Must provide a hilo val of "<" or ">"'); } - if (satisfies2(version, range, options)) { + if (satisfies2(version, range2, options)) { return false; } - for (var i2 = 0; i2 < range.set.length; ++i2) { - var comparators = range.set[i2]; + for (var i2 = 0; i2 < range2.set.length; ++i2) { + var comparators = range2.set[i2]; var high = null; var low = null; comparators.forEach(function(comparator) { @@ -33845,23 +33845,23 @@ var require_semver3 = __commonJS({ return null; } options = options || {}; - var match = null; + var match2 = null; if (!options.rtl) { - match = version.match(safeRe[t.COERCE]); + match2 = version.match(safeRe[t.COERCE]); } else { var next; - while ((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) { - if (!match || next.index + next[0].length !== match.index + match[0].length) { - match = next; + while ((next = safeRe[t.COERCERTL].exec(version)) && (!match2 || match2.index + match2[0].length !== version.length)) { + if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) { + match2 = next; } safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length; } safeRe[t.COERCERTL].lastIndex = -1; } - if (match === null) { + if (match2 === null) { return null; } - return parse2(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options); + return parse2(match2[2] + "." + (match2[3] || "0") + "." + (match2[4] || "0"), options); } } }); @@ -33942,11 +33942,11 @@ var require_cacheUtils = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -33962,7 +33962,7 @@ var require_cacheUtils = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -33975,14 +33975,14 @@ var require_cacheUtils = __commonJS({ }, i); function verb(n) { i[n] = o[n] && function(v) { - return new Promise(function(resolve13, reject) { - v = o[n](v), settle(resolve13, reject, v.done, v.value); + return new Promise(function(resolve14, reject) { + v = o[n](v), settle(resolve14, reject, v.done, v.value); }); }; } - function settle(resolve13, reject, d, v) { + function settle(resolve14, reject, d, v) { Promise.resolve(v).then(function(v2) { - resolve13({ value: v2, done: d }); + resolve14({ value: v2, done: d }); }, reject); } }; @@ -34002,10 +34002,10 @@ var require_cacheUtils = __commonJS({ var glob2 = __importStar2(require_glob()); var io9 = __importStar2(require_io()); var crypto3 = __importStar2(require("crypto")); - var fs30 = __importStar2(require("fs")); - var path28 = __importStar2(require("path")); + var fs31 = __importStar2(require("fs")); + var path29 = __importStar2(require("path")); var semver11 = __importStar2(require_semver3()); - var util = __importStar2(require("util")); + var util3 = __importStar2(require("util")); var constants_1 = require_constants7(); var versionSalt = "1.0"; function createTempDirectory() { @@ -34023,19 +34023,19 @@ var require_cacheUtils = __commonJS({ baseLocation = "/home"; } } - tempDirectory = path28.join(baseLocation, "actions", "temp"); + tempDirectory = path29.join(baseLocation, "actions", "temp"); } - const dest = path28.join(tempDirectory, crypto3.randomUUID()); + const dest = path29.join(tempDirectory, crypto3.randomUUID()); yield io9.mkdirP(dest); return dest; }); } function getArchiveFileSizeInBytes(filePath) { - return fs30.statSync(filePath).size; + return fs31.statSync(filePath).size; } function resolvePaths(patterns) { return __awaiter2(this, void 0, void 0, function* () { - var _a, e_1, _b, _c; + var _a2, e_1, _b, _c; var _d; const paths = []; const workspace = (_d = process.env["GITHUB_WORKSPACE"]) !== null && _d !== void 0 ? _d : process.cwd(); @@ -34043,11 +34043,11 @@ var require_cacheUtils = __commonJS({ implicitDescendants: false }); try { - for (var _e = true, _f = __asyncValues2(globber.globGenerator()), _g; _g = yield _f.next(), _a = _g.done, !_a; _e = true) { + for (var _e = true, _f = __asyncValues2(globber.globGenerator()), _g; _g = yield _f.next(), _a2 = _g.done, !_a2; _e = true) { _c = _g.value; _e = false; const file = _c; - const relativeFile = path28.relative(workspace, file).replace(new RegExp(`\\${path28.sep}`, "g"), "/"); + const relativeFile = path29.relative(workspace, file).replace(new RegExp(`\\${path29.sep}`, "g"), "/"); core30.debug(`Matched: ${relativeFile}`); if (relativeFile === "") { paths.push("."); @@ -34059,7 +34059,7 @@ var require_cacheUtils = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (!_e && !_a && (_b = _f.return)) yield _b.call(_f); + if (!_e && !_a2 && (_b = _f.return)) yield _b.call(_f); } finally { if (e_1) throw e_1.error; } @@ -34069,7 +34069,7 @@ var require_cacheUtils = __commonJS({ } function unlinkFile(filePath) { return __awaiter2(this, void 0, void 0, function* () { - return util.promisify(fs30.unlink)(filePath); + return util3.promisify(fs31.unlink)(filePath); }); } function getVersion(app_1) { @@ -34111,7 +34111,7 @@ var require_cacheUtils = __commonJS({ } function getGnuTarPathOnWindows() { return __awaiter2(this, void 0, void 0, function* () { - if (fs30.existsSync(constants_1.GnuTarPathOnWindows)) { + if (fs31.existsSync(constants_1.GnuTarPathOnWindows)) { return constants_1.GnuTarPathOnWindows; } const versionOutput = yield getVersion("tar"); @@ -34264,11 +34264,11 @@ function __metadata(metadataKey, metadataValue) { } function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -34284,7 +34284,7 @@ function __awaiter(thisArg, _arguments, P, generator) { } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -34475,14 +34475,14 @@ function __asyncValues(o) { }, i); function verb(n) { i[n] = o[n] && function(v) { - return new Promise(function(resolve13, reject) { - v = o[n](v), settle(resolve13, reject, v.done, v.value); + return new Promise(function(resolve14, reject) { + v = o[n](v), settle(resolve14, reject, v.done, v.value); }); }; } - function settle(resolve13, reject, d, v) { + function settle(resolve14, reject, d, v) { Promise.resolve(v).then(function(v2) { - resolve13({ value: v2, done: d }); + resolve14({ value: v2, done: d }); }, reject); } } @@ -34574,13 +34574,13 @@ function __disposeResources(env) { } return next(); } -function __rewriteRelativeImportExtension(path28, preserveJsx) { - if (typeof path28 === "string" && /^\.\.?\//.test(path28)) { - return path28.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js"; +function __rewriteRelativeImportExtension(path29, preserveJsx) { + if (typeof path29 === "string" && /^\.\.?\//.test(path29)) { + return path29.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext2, cm) { + return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext2 || !cm) ? m : d + ext2 + "." + cm.toLowerCase() + "js"; }); } - return path28; + return path29; } var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default; var init_tslib_es6 = __esm({ @@ -34851,9 +34851,9 @@ var require_debug2 = __commonJS({ return newDebugger; } function destroy() { - const index = debuggers.indexOf(this); - if (index >= 0) { - debuggers.splice(index, 1); + const index2 = debuggers.indexOf(this); + if (index2 >= 0) { + debuggers.splice(index2, 1); return true; } return false; @@ -35654,9 +35654,9 @@ var require_nodeHttpClient = __commonJS({ if (stream2.readable === false) { return Promise.resolve(); } - return new Promise((resolve13) => { + return new Promise((resolve14) => { const handler2 = () => { - resolve13(); + resolve14(); stream2.removeListener("close", handler2); stream2.removeListener("end", handler2); stream2.removeListener("error", handler2); @@ -35811,8 +35811,8 @@ var require_nodeHttpClient = __commonJS({ headers: request3.headers.toJSON({ preserveCase: true }), ...request3.requestOverrides }; - return new Promise((resolve13, reject) => { - const req = isInsecure ? node_http_1.default.request(options, resolve13) : node_https_1.default.request(options, resolve13); + return new Promise((resolve14, reject) => { + const req = isInsecure ? node_http_1.default.request(options, resolve14) : node_https_1.default.request(options, resolve14); req.once("error", (err) => { reject(new restError_js_1.RestError(err.message, { code: err.code ?? restError_js_1.RestError.REQUEST_SEND_ERROR, request: request3 })); }); @@ -35896,7 +35896,7 @@ var require_nodeHttpClient = __commonJS({ return stream2; } function streamToText(stream2) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const buffer = []; stream2.on("data", (chunk) => { if (Buffer.isBuffer(chunk)) { @@ -35906,7 +35906,7 @@ var require_nodeHttpClient = __commonJS({ } }); stream2.on("end", () => { - resolve13(Buffer.concat(buffer).toString("utf8")); + resolve14(Buffer.concat(buffer).toString("utf8")); }); stream2.on("error", (e) => { if (e && e?.name === "AbortError") { @@ -36184,7 +36184,7 @@ var require_helpers2 = __commonJS({ var AbortError_js_1 = require_AbortError(); var StandardAbortMessage = "The operation was aborted."; function delay2(delayInMs, value, options) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { let timer = void 0; let onAborted = void 0; const rejectOnAbort = () => { @@ -36207,7 +36207,7 @@ var require_helpers2 = __commonJS({ } timer = setTimeout(() => { removeListeners(); - resolve13(value); + resolve14(value); }, delayInMs); if (options?.abortSignal) { options.abortSignal.addEventListener("abort", onAborted); @@ -36573,14 +36573,14 @@ var require_ms = __commonJS({ if (str.length > 100) { return; } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( str ); - if (!match) { + if (!match2) { return; } - var n = parseFloat(match[1]); - var type = (match[2] || "ms").toLowerCase(); + var n = parseFloat(match2[1]); + var type = (match2[2] || "ms").toLowerCase(); switch (type) { case "years": case "year": @@ -36710,20 +36710,20 @@ var require_common2 = __commonJS({ if (typeof args[0] !== "string") { args.unshift("%O"); } - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - if (match === "%%") { + let index2 = 0; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => { + if (match2 === "%%") { return "%"; } - index++; + index2++; const formatter = createDebug.formatters[format]; if (typeof formatter === "function") { - const val = args[index]; - match = formatter.call(self2, val); - args.splice(index, 1); - index--; + const val = args[index2]; + match2 = formatter.call(self2, val); + args.splice(index2, 1); + index2--; } - return match; + return match2; }); createDebug.formatArgs.call(self2, args); const logFn = self2.log || createDebug.log; @@ -36956,15 +36956,15 @@ var require_browser = __commonJS({ } const c = "color: " + this.color; args.splice(1, 0, c, "color: inherit"); - let index = 0; + let index2 = 0; let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, (match) => { - if (match === "%%") { + args[0].replace(/%[a-zA-Z%]/g, (match2) => { + if (match2 === "%%") { return; } - index++; - if (match === "%c") { - lastC = index; + index2++; + if (match2 === "%c") { + lastC = index2; } }); args.splice(lastC, 0, c); @@ -37129,14 +37129,14 @@ var require_supports_color = __commonJS({ var require_node = __commonJS({ "node_modules/debug/src/node.js"(exports2, module2) { var tty = require("tty"); - var util = require("util"); + var util3 = require("util"); exports2.init = init; exports2.log = log; exports2.formatArgs = formatArgs; exports2.save = save; exports2.load = load2; exports2.useColors = useColors; - exports2.destroy = util.deprecate( + exports2.destroy = util3.deprecate( () => { }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." @@ -37267,7 +37267,7 @@ var require_node = __commonJS({ return (/* @__PURE__ */ new Date()).toISOString() + " "; } function log(...args) { - return process.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args) + "\n"); + return process.stderr.write(util3.formatWithOptions(exports2.inspectOpts, ...args) + "\n"); } function save(namespaces) { if (namespaces) { @@ -37290,11 +37290,11 @@ var require_node = __commonJS({ var { formatters } = module2.exports; formatters.o = function(v) { this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); + return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); }; formatters.O = function(v) { this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); + return util3.inspect(v, this.inspectOpts); }; } }); @@ -37370,8 +37370,8 @@ var require_helpers3 = __commonJS({ function req(url2, opts = {}) { const href = typeof url2 === "string" ? url2 : url2.href; const req2 = (href.startsWith("https:") ? https3 : http).request(url2, opts); - const promise = new Promise((resolve13, reject) => { - req2.once("response", resolve13).once("error", reject).end(); + const promise = new Promise((resolve14, reject) => { + req2.once("response", resolve14).once("error", reject).end(); }); req2.then = promise.then.bind(promise); return req2; @@ -37466,9 +37466,9 @@ var require_dist = __commonJS({ return; } const sockets = this.sockets[name]; - const index = sockets.indexOf(socket); - if (index !== -1) { - sockets.splice(index, 1); + const index2 = sockets.indexOf(socket); + if (index2 !== -1) { + sockets.splice(index2, 1); this.totalSocketCount--; if (sockets.length === 0) { delete this.sockets[name]; @@ -37548,7 +37548,7 @@ var require_parse_proxy_response = __commonJS({ var debug_1 = __importDefault2(require_src()); var debug6 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response"); function parseProxyResponse(socket) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { let buffersLength = 0; const buffers = []; function read() { @@ -37614,7 +37614,7 @@ var require_parse_proxy_response = __commonJS({ } debug6("got proxy server response: %o %o", firstLine, headers); cleanup(); - resolve13({ + resolve14({ connect: { statusCode, statusText, @@ -38994,8 +38994,8 @@ var require_getClient = __commonJS({ } const { allowInsecureConnection, httpClient } = clientOptions; const endpointUrl = clientOptions.endpoint ?? endpoint2; - const client = (path28, ...args) => { - const getUrl = (requestOptions) => (0, urlHelpers_js_1.buildRequestUrl)(endpointUrl, path28, args, { allowInsecureConnection, ...requestOptions }); + const client = (path29, ...args) => { + const getUrl = (requestOptions) => (0, urlHelpers_js_1.buildRequestUrl)(endpointUrl, path29, args, { allowInsecureConnection, ...requestOptions }); return { get: (requestOptions = {}) => { return buildOperation("GET", getUrl(requestOptions), pipeline, requestOptions, allowInsecureConnection, httpClient); @@ -39700,7 +39700,7 @@ var require_createAbortablePromise = __commonJS({ var abort_controller_1 = require_commonjs3(); function createAbortablePromise(buildPromise, options) { const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options ?? {}; - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { function rejectOnAbort() { reject(new abort_controller_1.AbortError(abortErrorMsg ?? "The operation was aborted.")); } @@ -39718,7 +39718,7 @@ var require_createAbortablePromise = __commonJS({ try { buildPromise((x) => { removeListeners(); - resolve13(x); + resolve14(x); }, (x) => { removeListeners(); reject(x); @@ -39745,8 +39745,8 @@ var require_delay2 = __commonJS({ function delay2(timeInMs, options) { let token; const { abortSignal, abortErrorMsg } = options ?? {}; - return (0, createAbortablePromise_js_1.createAbortablePromise)((resolve13) => { - token = setTimeout(resolve13, timeInMs); + return (0, createAbortablePromise_js_1.createAbortablePromise)((resolve14) => { + token = setTimeout(resolve14, timeInMs); }, { cleanupBeforeAbort: () => clearTimeout(token), abortSignal, @@ -40951,10 +40951,10 @@ var require_bearerTokenAuthenticationPolicy = __commonJS({ const challengeRegex = /(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g; const paramRegex = /(\w+)="([^"]*)"/g; const parsedChallenges = []; - let match; - while ((match = challengeRegex.exec(challenges)) !== null) { - const scheme = match[1]; - const paramsString = match[2]; + let match2; + while ((match2 = challengeRegex.exec(challenges)) !== null) { + const scheme = match2[1]; + const paramsString = match2[2]; const params = {}; let paramMatch; while ((paramMatch = paramRegex.exec(paramsString)) !== null) { @@ -42747,13 +42747,13 @@ var require_serializationPolicy = __commonJS({ if (request3.body !== void 0 && request3.body !== null || nullable && request3.body === null || required) { const requestBodyParameterPathString = (0, interfaceHelpers_js_1.getPathStringFromParameter)(operationSpec.requestBody); request3.body = operationSpec.serializer.serialize(bodyMapper, request3.body, requestBodyParameterPathString, updatedOptions); - const isStream = typeName === serializer_js_1.MapperTypeNames.Stream; + const isStream2 = typeName === serializer_js_1.MapperTypeNames.Stream; if (operationSpec.isXML) { const xmlnsKey = xmlNamespacePrefix ? `xmlns:${xmlNamespacePrefix}` : "xmlns"; const value = getXmlValueWithNamespace(xmlNamespace, xmlnsKey, typeName, request3.body, updatedOptions); if (typeName === serializer_js_1.MapperTypeNames.Sequence) { request3.body = stringifyXML(prepareXMLRootList(value, xmlElementName || xmlName || serializedName, xmlnsKey, xmlNamespace), { rootName: xmlName || serializedName, xmlCharKey }); - } else if (!isStream) { + } else if (!isStream2) { request3.body = stringifyXML(value, { rootName: xmlName || serializedName, xmlCharKey @@ -42761,7 +42761,7 @@ var require_serializationPolicy = __commonJS({ } } else if (typeName === serializer_js_1.MapperTypeNames.String && (operationSpec.contentType?.match("text/plain") || operationSpec.mediaType === "text")) { return; - } else if (!isStream) { + } else if (!isStream2) { request3.body = JSON.stringify(request3.body); } } @@ -42866,15 +42866,15 @@ var require_urlHelpers2 = __commonJS({ let isAbsolutePath = false; let requestUrl = replaceAll(baseUri, urlReplacements); if (operationSpec.path) { - let path28 = replaceAll(operationSpec.path, urlReplacements); - if (operationSpec.path === "/{nextLink}" && path28.startsWith("/")) { - path28 = path28.substring(1); + let path29 = replaceAll(operationSpec.path, urlReplacements); + if (operationSpec.path === "/{nextLink}" && path29.startsWith("/")) { + path29 = path29.substring(1); } - if (isAbsoluteUrl(path28)) { - requestUrl = path28; + if (isAbsoluteUrl(path29)) { + requestUrl = path29; isAbsolutePath = true; } else { - requestUrl = appendPath(requestUrl, path28); + requestUrl = appendPath(requestUrl, path29); } } const { queryParams, sequenceParams } = calculateQueryParameters(operationSpec, operationArguments, fallbackObject); @@ -42920,9 +42920,9 @@ var require_urlHelpers2 = __commonJS({ } const searchStart = pathToAppend.indexOf("?"); if (searchStart !== -1) { - const path28 = pathToAppend.substring(0, searchStart); + const path29 = pathToAppend.substring(0, searchStart); const search = pathToAppend.substring(searchStart + 1); - newPath = newPath + path28; + newPath = newPath + path29; if (search) { parsedUrl.search = parsedUrl.search ? `${parsedUrl.search}&${search}` : search; } @@ -45418,17 +45418,17 @@ var require_xml = __commonJS({ var fast_xml_parser_1 = require_fxp(); var xml_common_js_1 = require_xml_common(); function getCommonOptions(options) { - var _a; + var _a2; return { attributesGroupName: xml_common_js_1.XML_ATTRKEY, - textNodeName: (_a = options.xmlCharKey) !== null && _a !== void 0 ? _a : xml_common_js_1.XML_CHARKEY, + textNodeName: (_a2 = options.xmlCharKey) !== null && _a2 !== void 0 ? _a2 : xml_common_js_1.XML_CHARKEY, ignoreAttributes: false, suppressBooleanAttributes: false }; } function getSerializerOptions(options = {}) { - var _a, _b; - return Object.assign(Object.assign({}, getCommonOptions(options)), { attributeNamePrefix: "@_", format: true, suppressEmptyNode: true, indentBy: "", rootNodeName: (_a = options.rootName) !== null && _a !== void 0 ? _a : "root", cdataPropName: (_b = options.cdataPropName) !== null && _b !== void 0 ? _b : "__cdata" }); + var _a2, _b; + return Object.assign(Object.assign({}, getCommonOptions(options)), { attributeNamePrefix: "@_", format: true, suppressEmptyNode: true, indentBy: "", rootNodeName: (_a2 = options.rootName) !== null && _a2 !== void 0 ? _a2 : "root", cdataPropName: (_b = options.cdataPropName) !== null && _b !== void 0 ? _b : "__cdata" }); } function getParserOptions(options = {}) { return Object.assign(Object.assign({}, getCommonOptions(options)), { parseAttributeValue: false, parseTagValue: false, attributeNamePrefix: "", stopNodes: options.stopNodes, processEntities: true, trimValues: false }); @@ -45838,10 +45838,10 @@ var require_utils_common = __commonJS({ var constants_js_1 = require_constants10(); function escapeURLPath(url2) { const urlParsed = new URL(url2); - let path28 = urlParsed.pathname; - path28 = path28 || "/"; - path28 = escape2(path28); - urlParsed.pathname = path28; + let path29 = urlParsed.pathname; + path29 = path29 || "/"; + path29 = escape3(path29); + urlParsed.pathname = path29; return urlParsed.toString(); } function getProxyUriFromDevConnString(connectionString) { @@ -45921,14 +45921,14 @@ var require_utils_common = __commonJS({ return { kind: "SASConnString", url: blobEndpoint, accountName, accountSas }; } } - function escape2(text) { + function escape3(text) { return encodeURIComponent(text).replace(/%2F/g, "/").replace(/'/g, "%27").replace(/\+/g, "%20").replace(/%25/g, "%"); } function appendToURLPath(url2, name) { const urlParsed = new URL(url2); - let path28 = urlParsed.pathname; - path28 = path28 ? path28.endsWith("/") ? `${path28}${name}` : `${path28}/${name}` : name; - urlParsed.pathname = path28; + let path29 = urlParsed.pathname; + path29 = path29 ? path29.endsWith("/") ? `${path29}${name}` : `${path29}/${name}` : name; + urlParsed.pathname = path29; return urlParsed.toString(); } function setURLParameter(url2, name, value) { @@ -46043,7 +46043,7 @@ var require_utils_common = __commonJS({ return base64encode(res); } async function delay2(timeInMs, aborter, abortError) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { let timeout; const abortHandler = () => { if (timeout !== void 0) { @@ -46055,7 +46055,7 @@ var require_utils_common = __commonJS({ if (aborter !== void 0) { aborter.removeEventListener("abort", abortHandler); } - resolve13(); + resolve14(); }; timeout = setTimeout(resolveHandler, timeInMs); if (aborter !== void 0) { @@ -47136,8 +47136,8 @@ var require_StorageSharedKeyCredentialPolicy = __commonJS({ headersArray.sort((a, b) => { return (0, SharedKeyComparator_js_1.compareHeader)(a.name.toLowerCase(), b.name.toLowerCase()); }); - headersArray = headersArray.filter((value, index, array) => { - if (index > 0 && value.name.toLowerCase() === array[index - 1].name.toLowerCase()) { + headersArray = headersArray.filter((value, index2, array) => { + if (index2 > 0 && value.name.toLowerCase() === array[index2 - 1].name.toLowerCase()) { return false; } return true; @@ -47155,9 +47155,9 @@ var require_StorageSharedKeyCredentialPolicy = __commonJS({ * @param request - */ getCanonicalizedResourceString(request3) { - const path28 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; + const path29 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; let canonicalizedResourceString = ""; - canonicalizedResourceString += `/${this.factory.accountName}${path28}`; + canonicalizedResourceString += `/${this.factory.accountName}${path29}`; const queries = (0, utils_common_js_1.getURLQueries)(request3.url); const lowercaseQueries = {}; if (queries) { @@ -47596,7 +47596,7 @@ var require_BufferScheduler = __commonJS({ * */ async do() { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { this.readable.on("data", (data) => { data = typeof data === "string" ? Buffer.from(data, this.encoding) : data; this.appendUnresolvedData(data); @@ -47624,11 +47624,11 @@ var require_BufferScheduler = __commonJS({ if (this.isStreamEnd && this.executingOutgoingHandlers === 0) { if (this.unresolvedLength > 0 && this.unresolvedLength < this.bufferSize) { const buffer = this.shiftBufferFromUnresolvedDataArray(); - this.outgoingHandler(() => buffer.getReadableStream(), buffer.size, this.offset).then(resolve13).catch(reject); + this.outgoingHandler(() => buffer.getReadableStream(), buffer.size, this.offset).then(resolve14).catch(reject); } else if (this.unresolvedLength >= this.bufferSize) { return; } else { - resolve13(); + resolve14(); } } }); @@ -47896,10 +47896,10 @@ var require_utils_common2 = __commonJS({ var constants_js_1 = require_constants11(); function escapeURLPath(url2) { const urlParsed = new URL(url2); - let path28 = urlParsed.pathname; - path28 = path28 || "/"; - path28 = escape2(path28); - urlParsed.pathname = path28; + let path29 = urlParsed.pathname; + path29 = path29 || "/"; + path29 = escape3(path29); + urlParsed.pathname = path29; return urlParsed.toString(); } function getProxyUriFromDevConnString(connectionString) { @@ -47979,14 +47979,14 @@ var require_utils_common2 = __commonJS({ return { kind: "SASConnString", url: blobEndpoint, accountName, accountSas }; } } - function escape2(text) { + function escape3(text) { return encodeURIComponent(text).replace(/%2F/g, "/").replace(/'/g, "%27").replace(/\+/g, "%20").replace(/%25/g, "%"); } function appendToURLPath(url2, name) { const urlParsed = new URL(url2); - let path28 = urlParsed.pathname; - path28 = path28 ? path28.endsWith("/") ? `${path28}${name}` : `${path28}/${name}` : name; - urlParsed.pathname = path28; + let path29 = urlParsed.pathname; + path29 = path29 ? path29.endsWith("/") ? `${path29}${name}` : `${path29}/${name}` : name; + urlParsed.pathname = path29; return urlParsed.toString(); } function setURLParameter(url2, name, value) { @@ -48101,7 +48101,7 @@ var require_utils_common2 = __commonJS({ return base64encode(res); } async function delay2(timeInMs, aborter, abortError) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { let timeout; const abortHandler = () => { if (timeout !== void 0) { @@ -48113,7 +48113,7 @@ var require_utils_common2 = __commonJS({ if (aborter !== void 0) { aborter.removeEventListener("abort", abortHandler); } - resolve13(); + resolve14(); }; timeout = setTimeout(resolveHandler, timeInMs); if (aborter !== void 0) { @@ -48888,8 +48888,8 @@ var require_StorageSharedKeyCredentialPolicy2 = __commonJS({ headersArray.sort((a, b) => { return (0, SharedKeyComparator_js_1.compareHeader)(a.name.toLowerCase(), b.name.toLowerCase()); }); - headersArray = headersArray.filter((value, index, array) => { - if (index > 0 && value.name.toLowerCase() === array[index - 1].name.toLowerCase()) { + headersArray = headersArray.filter((value, index2, array) => { + if (index2 > 0 && value.name.toLowerCase() === array[index2 - 1].name.toLowerCase()) { return false; } return true; @@ -48907,9 +48907,9 @@ var require_StorageSharedKeyCredentialPolicy2 = __commonJS({ * @param request - */ getCanonicalizedResourceString(request3) { - const path28 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; + const path29 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; let canonicalizedResourceString = ""; - canonicalizedResourceString += `/${this.factory.accountName}${path28}`; + canonicalizedResourceString += `/${this.factory.accountName}${path29}`; const queries = (0, utils_common_js_1.getURLQueries)(request3.url); const lowercaseQueries = {}; if (queries) { @@ -49525,8 +49525,8 @@ var require_StorageSharedKeyCredentialPolicyV2 = __commonJS({ headersArray.sort((a, b) => { return (0, SharedKeyComparator_js_1.compareHeader)(a.name.toLowerCase(), b.name.toLowerCase()); }); - headersArray = headersArray.filter((value, index, array) => { - if (index > 0 && value.name.toLowerCase() === array[index - 1].name.toLowerCase()) { + headersArray = headersArray.filter((value, index2, array) => { + if (index2 > 0 && value.name.toLowerCase() === array[index2 - 1].name.toLowerCase()) { return false; } return true; @@ -49539,9 +49539,9 @@ var require_StorageSharedKeyCredentialPolicyV2 = __commonJS({ return canonicalizedHeadersStringToSign; } function getCanonicalizedResourceString(request3) { - const path28 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; + const path29 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; let canonicalizedResourceString = ""; - canonicalizedResourceString += `/${options.accountName}${path28}`; + canonicalizedResourceString += `/${options.accountName}${path29}`; const queries = (0, utils_common_js_1.getURLQueries)(request3.url); const lowercaseQueries = {}; if (queries) { @@ -49872,8 +49872,8 @@ var require_StorageSharedKeyCredentialPolicyV22 = __commonJS({ headersArray.sort((a, b) => { return (0, SharedKeyComparator_js_1.compareHeader)(a.name.toLowerCase(), b.name.toLowerCase()); }); - headersArray = headersArray.filter((value, index, array) => { - if (index > 0 && value.name.toLowerCase() === array[index - 1].name.toLowerCase()) { + headersArray = headersArray.filter((value, index2, array) => { + if (index2 > 0 && value.name.toLowerCase() === array[index2 - 1].name.toLowerCase()) { return false; } return true; @@ -49886,9 +49886,9 @@ var require_StorageSharedKeyCredentialPolicyV22 = __commonJS({ return canonicalizedHeadersStringToSign; } function getCanonicalizedResourceString(request3) { - const path28 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; + const path29 = (0, utils_common_js_1.getURLPath)(request3.url) || "/"; let canonicalizedResourceString = ""; - canonicalizedResourceString += `/${options.accountName}${path28}`; + canonicalizedResourceString += `/${options.accountName}${path29}`; const queries = (0, utils_common_js_1.getURLQueries)(request3.url); const lowercaseQueries = {}; if (queries) { @@ -62499,8 +62499,8 @@ var require_pageBlob = __commonJS({ * aligned and range-end is required. * @param options The options parameters. */ - uploadPagesFromURL(sourceUrl, sourceRange, contentLength, range, options) { - return this.client.sendOperationRequest({ sourceUrl, sourceRange, contentLength, range, options }, uploadPagesFromURLOperationSpec); + uploadPagesFromURL(sourceUrl, sourceRange, contentLength, range2, options) { + return this.client.sendOperationRequest({ sourceUrl, sourceRange, contentLength, range: range2, options }, uploadPagesFromURLOperationSpec); } /** * The Get Page Ranges operation returns the list of valid page ranges for a page blob or snapshot of a @@ -63546,13 +63546,13 @@ var require_storageClient = __commonJS({ if (!options) { options = {}; } - const defaults = { + const defaults2 = { requestContentType: "application/json; charset=utf-8" }; const packageDetails = `azsdk-js-azure-storage-blob/12.29.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`; const optionsWithDefaults = { - ...defaults, + ...defaults2, ...options, userAgentOptions: { userAgentPrefix @@ -66074,9 +66074,9 @@ var require_AvroParser = __commonJS({ }; var AvroUnionType = class extends AvroType { _types; - constructor(types2) { + constructor(types3) { super(); - this._types = types2; + this._types = types3; } async read(stream2, options = {}) { const typeIndex = await AvroParser.readInt(stream2, options); @@ -66311,7 +66311,7 @@ var require_AvroReadableFromStream = __commonJS({ this._position += chunk.length; return this.toUint8Array(chunk); } else { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const cleanUp = () => { this._readable.removeListener("readable", readableCallback); this._readable.removeListener("error", rejectCallback); @@ -66326,7 +66326,7 @@ var require_AvroReadableFromStream = __commonJS({ if (callbackChunk) { this._position += callbackChunk.length; cleanUp(); - resolve13(this.toUint8Array(callbackChunk)); + resolve14(this.toUint8Array(callbackChunk)); } }; const rejectCallback = () => { @@ -67159,7 +67159,7 @@ var require_operation2 = __commonJS({ return rawResponse.headers["azure-asyncoperation"]; } function findResourceLocation(inputs) { - var _a; + var _a2; const { location, requestMethod, requestPath, resourceLocationConfig } = inputs; switch (requestMethod) { case "PUT": { @@ -67169,7 +67169,7 @@ var require_operation2 = __commonJS({ return void 0; } case "PATCH": { - return (_a = getDefault()) !== null && _a !== void 0 ? _a : requestPath; + return (_a2 = getDefault()) !== null && _a2 !== void 0 ? _a2 : requestPath; } default: { return getDefault(); @@ -67251,13 +67251,13 @@ var require_operation2 = __commonJS({ } } function getStatus(rawResponse) { - var _a; - const { status } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {}; + var _a2; + const { status } = (_a2 = rawResponse.body) !== null && _a2 !== void 0 ? _a2 : {}; return transformStatus({ status, statusCode: rawResponse.statusCode }); } function getProvisioningState(rawResponse) { - var _a, _b; - const { properties, provisioningState } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {}; + var _a2, _b; + const { properties, provisioningState } = (_a2 = rawResponse.body) !== null && _a2 !== void 0 ? _a2 : {}; const status = (_b = properties === null || properties === void 0 ? void 0 : properties.provisioningState) !== null && _b !== void 0 ? _b : provisioningState; return transformStatus({ status, statusCode: rawResponse.statusCode }); } @@ -67303,8 +67303,8 @@ var require_operation2 = __commonJS({ function getStatusFromInitialResponse(inputs) { const { response, state, operationLocation } = inputs; function helper() { - var _a; - const mode = (_a = state.config.metadata) === null || _a === void 0 ? void 0 : _a["mode"]; + var _a2; + const mode = (_a2 = state.config.metadata) === null || _a2 === void 0 ? void 0 : _a2["mode"]; switch (mode) { case void 0: return toOperationStatus(response.rawResponse.statusCode); @@ -67339,8 +67339,8 @@ var require_operation2 = __commonJS({ } exports2.initHttpOperation = initHttpOperation; function getOperationLocation({ rawResponse }, state) { - var _a; - const mode = (_a = state.config.metadata) === null || _a === void 0 ? void 0 : _a["mode"]; + var _a2; + const mode = (_a2 = state.config.metadata) === null || _a2 === void 0 ? void 0 : _a2["mode"]; switch (mode) { case "OperationLocation": { return getOperationLocationPollingUrl({ @@ -67359,8 +67359,8 @@ var require_operation2 = __commonJS({ } exports2.getOperationLocation = getOperationLocation; function getOperationStatus({ rawResponse }, state) { - var _a; - const mode = (_a = state.config.metadata) === null || _a === void 0 ? void 0 : _a["mode"]; + var _a2; + const mode = (_a2 = state.config.metadata) === null || _a2 === void 0 ? void 0 : _a2["mode"]; switch (mode) { case "OperationLocation": { return getStatus(rawResponse); @@ -67377,8 +67377,8 @@ var require_operation2 = __commonJS({ } exports2.getOperationStatus = getOperationStatus; function accessBodyProperty({ flatResponse, rawResponse }, prop) { - var _a, _b; - return (_a = flatResponse === null || flatResponse === void 0 ? void 0 : flatResponse[prop]) !== null && _a !== void 0 ? _a : (_b = rawResponse.body) === null || _b === void 0 ? void 0 : _b[prop]; + var _a2, _b; + return (_a2 = flatResponse === null || flatResponse === void 0 ? void 0 : flatResponse[prop]) !== null && _a2 !== void 0 ? _a2 : (_b = rawResponse.body) === null || _b === void 0 ? void 0 : _b[prop]; } function getResourceLocation(res, state) { const loc = accessBodyProperty(res, "resourceLocation"); @@ -67665,7 +67665,7 @@ var require_operation3 = __commonJS({ this.pollerConfig = pollerConfig; } async update(options) { - var _a; + var _a2; const stateProxy = createStateProxy(); if (!this.state.isStarted) { this.state = Object.assign(Object.assign({}, this.state), await (0, operation_js_1.initHttpOperation)({ @@ -67693,7 +67693,7 @@ var require_operation3 = __commonJS({ setErrorAsResult: this.setErrorAsResult }); } - (_a = options === null || options === void 0 ? void 0 : options.fireProgress) === null || _a === void 0 ? void 0 : _a.call(options, this.state); + (_a2 = options === null || options === void 0 ? void 0 : options.fireProgress) === null || _a2 === void 0 ? void 0 : _a2.call(options, this.state); return this; } async cancel() { @@ -67806,8 +67806,8 @@ var require_poller3 = __commonJS({ this.stopped = true; this.pollProgressCallbacks = []; this.operation = operation; - this.promise = new Promise((resolve13, reject) => { - this.resolve = resolve13; + this.promise = new Promise((resolve14, reject) => { + this.resolve = resolve14; this.reject = reject; }); this.promise.catch(() => { @@ -68060,7 +68060,7 @@ var require_lroEngine = __commonJS({ * The method used by the poller to wait before attempting to update its operation. */ delay() { - return new Promise((resolve13) => setTimeout(() => resolve13(), this.config.intervalInMs)); + return new Promise((resolve14) => setTimeout(() => resolve14(), this.config.intervalInMs)); } }; exports2.LroEngine = LroEngine; @@ -68306,8 +68306,8 @@ var require_Batch = __commonJS({ return Promise.resolve(); } this.parallelExecute(); - return new Promise((resolve13, reject) => { - this.emitter.on("finish", resolve13); + return new Promise((resolve14, reject) => { + this.emitter.on("finish", resolve14); this.emitter.on("error", (error3) => { this.state = BatchStates.Error; reject(error3); @@ -68368,12 +68368,12 @@ var require_utils6 = __commonJS({ async function streamToBuffer(stream2, buffer, offset, end, encoding) { let pos = 0; const count = end - offset; - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const timeout = setTimeout(() => reject(new Error(`The operation cannot be completed in timeout.`)), constants_js_1.REQUEST_TIMEOUT); stream2.on("readable", () => { if (pos >= count) { clearTimeout(timeout); - resolve13(); + resolve14(); return; } let chunk = stream2.read(); @@ -68392,7 +68392,7 @@ var require_utils6 = __commonJS({ if (pos < count) { reject(new Error(`Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`)); } - resolve13(); + resolve14(); }); stream2.on("error", (msg) => { clearTimeout(timeout); @@ -68403,7 +68403,7 @@ var require_utils6 = __commonJS({ async function streamToBuffer2(stream2, buffer, encoding) { let pos = 0; const bufferSize = buffer.length; - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { stream2.on("readable", () => { let chunk = stream2.read(); if (!chunk) { @@ -68420,25 +68420,25 @@ var require_utils6 = __commonJS({ pos += chunk.length; }); stream2.on("end", () => { - resolve13(pos); + resolve14(pos); }); stream2.on("error", reject); }); } async function streamToBuffer3(readableStream, encoding) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const chunks = []; readableStream.on("data", (data) => { chunks.push(typeof data === "string" ? Buffer.from(data, encoding) : data); }); readableStream.on("end", () => { - resolve13(Buffer.concat(chunks)); + resolve14(Buffer.concat(chunks)); }); readableStream.on("error", reject); }); } async function readStreamToLocalFile(rs, file) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const ws = node_fs_1.default.createWriteStream(file); rs.on("error", (err) => { reject(err); @@ -68446,7 +68446,7 @@ var require_utils6 = __commonJS({ ws.on("error", (err) => { reject(err); }); - ws.on("close", resolve13); + ws.on("close", resolve14); rs.pipe(ws); }); } @@ -69385,7 +69385,7 @@ var require_Clients = __commonJS({ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token. */ generateSasUrl(options) { - return new Promise((resolve13) => { + return new Promise((resolve14) => { if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) { throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential"); } @@ -69396,7 +69396,7 @@ var require_Clients = __commonJS({ versionId: this._versionId, ...options }, this.credential).toString(); - resolve13((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); + resolve14((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); }); } /** @@ -69435,7 +69435,7 @@ var require_Clients = __commonJS({ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token. */ generateUserDelegationSasUrl(options, userDelegationKey) { - return new Promise((resolve13) => { + return new Promise((resolve14) => { const sas = (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParameters)({ containerName: this._containerName, blobName: this._name, @@ -69443,7 +69443,7 @@ var require_Clients = __commonJS({ versionId: this._versionId, ...options }, userDelegationKey, this.accountName).toString(); - resolve13((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); + resolve14((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); }); } /** @@ -71211,8 +71211,8 @@ var require_BatchResponseParser = __commonJS({ const deserializedSubResponses = new Array(subResponseCount); let subResponsesSucceededCount = 0; let subResponsesFailedCount = 0; - for (let index = 0; index < subResponseCount; index++) { - const subResponse = subResponses[index]; + for (let index2 = 0; index2 < subResponseCount; index2++) { + const subResponse = subResponses[index2]; const deserializedSubResponse = {}; deserializedSubResponse.headers = (0, core_http_compat_1.toHttpHeadersLike)((0, core_rest_pipeline_1.createHttpHeaders)()); const responseLines = subResponse.split(`${constants_js_1.HTTP_LINE_ENDING}`); @@ -71260,7 +71260,7 @@ var require_BatchResponseParser = __commonJS({ deserializedSubResponse._request = this.subRequests.get(contentId); deserializedSubResponses[contentId] = deserializedSubResponse; } else { - log_js_1.logger.error(`subResponses[${index}] is dropped as the Content-ID is not found or invalid, Content-ID: ${contentId}`); + log_js_1.logger.error(`subResponses[${index2}] is dropped as the Content-ID is not found or invalid, Content-ID: ${contentId}`); } if (subRespFailed) { subResponsesFailedCount++; @@ -71298,14 +71298,14 @@ var require_Mutex = __commonJS({ * @param key - lock key */ static async lock(key) { - return new Promise((resolve13) => { + return new Promise((resolve14) => { if (this.keys[key] === void 0 || this.keys[key] === MutexLockStatus.UNLOCKED) { this.keys[key] = MutexLockStatus.LOCKED; - resolve13(); + resolve14(); } else { this.onUnlockEvent(key, () => { this.keys[key] = MutexLockStatus.LOCKED; - resolve13(); + resolve14(); }); } }); @@ -71316,12 +71316,12 @@ var require_Mutex = __commonJS({ * @param key - */ static async unlock(key) { - return new Promise((resolve13) => { + return new Promise((resolve14) => { if (this.keys[key] === MutexLockStatus.LOCKED) { this.emitUnlockEvent(key); } delete this.keys[key]; - resolve13(); + resolve14(); }); } static keys = {}; @@ -71543,8 +71543,8 @@ var require_BlobBatch = __commonJS({ if (this.operationCount >= constants_js_1.BATCH_MAX_REQUEST) { throw new RangeError(`Cannot exceed ${constants_js_1.BATCH_MAX_REQUEST} sub requests in a single batch`); } - const path28 = (0, utils_common_js_1.getURLPath)(subRequest.url); - if (!path28 || path28 === "") { + const path29 = (0, utils_common_js_1.getURLPath)(subRequest.url); + if (!path29 || path29 === "") { throw new RangeError(`Invalid url for sub request: '${subRequest.url}'`); } } @@ -71622,8 +71622,8 @@ var require_BlobBatchClient = __commonJS({ pipeline = (0, Pipeline_js_1.newPipeline)(credentialOrPipeline, options); } const storageClientContext = new StorageContextClient_js_1.StorageContextClient(url2, (0, Pipeline_js_1.getCoreClientOptions)(pipeline)); - const path28 = (0, utils_common_js_1.getURLPath)(url2); - if (path28 && path28 !== "/") { + const path29 = (0, utils_common_js_1.getURLPath)(url2); + if (path29 && path29 !== "/") { this.serviceOrContainerContext = storageClientContext.container; } else { this.serviceOrContainerContext = storageClientContext.service; @@ -72924,7 +72924,7 @@ var require_ContainerClient = __commonJS({ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token. */ generateSasUrl(options) { - return new Promise((resolve13) => { + return new Promise((resolve14) => { if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) { throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential"); } @@ -72932,7 +72932,7 @@ var require_ContainerClient = __commonJS({ containerName: this._containerName, ...options }, this.credential).toString(); - resolve13((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); + resolve14((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); }); } /** @@ -72967,12 +72967,12 @@ var require_ContainerClient = __commonJS({ * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token. */ generateUserDelegationSasUrl(options, userDelegationKey) { - return new Promise((resolve13) => { + return new Promise((resolve14) => { const sas = (0, BlobSASSignatureValues_js_1.generateBlobSASQueryParameters)({ containerName: this._containerName, ...options }, userDelegationKey, this.accountName).toString(); - resolve13((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); + resolve14((0, utils_common_js_1.appendToURLQuery)(this.url, sas)); }); } /** @@ -74368,11 +74368,11 @@ var require_uploadUtils = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -74388,7 +74388,7 @@ var require_uploadUtils = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -74481,10 +74481,10 @@ var require_uploadUtils = __commonJS({ exports2.UploadProgress = UploadProgress; function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { return __awaiter2(this, void 0, void 0, function* () { - var _a; + var _a2; const blobClient = new storage_blob_1.BlobClient(signedUploadURL); const blockBlobClient = blobClient.getBlockBlobClient(); - const uploadProgress = new UploadProgress((_a = options === null || options === void 0 ? void 0 : options.archiveSizeBytes) !== null && _a !== void 0 ? _a : 0); + const uploadProgress = new UploadProgress((_a2 = options === null || options === void 0 ? void 0 : options.archiveSizeBytes) !== null && _a2 !== void 0 ? _a2 : 0); const uploadOptions = { blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize, concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency, @@ -74555,11 +74555,11 @@ var require_requestUtils = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -74575,7 +74575,7 @@ var require_requestUtils = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -74615,7 +74615,7 @@ var require_requestUtils = __commonJS({ } function sleep(milliseconds) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => setTimeout(resolve13, milliseconds)); + return new Promise((resolve14) => setTimeout(resolve14, milliseconds)); }); } function retry2(name_1, method_1, getStatusCode_1) { @@ -74745,9 +74745,9 @@ var require_dist4 = __commonJS({ throw new TypeError("Expected `this` to be an instance of AbortSignal."); } const listeners = listenersMap.get(this); - const index = listeners.indexOf(listener); - if (index > -1) { - listeners.splice(index, 1); + const index2 = listeners.indexOf(listener); + if (index2 > -1) { + listeners.splice(index2, 1); } } /** @@ -74876,11 +74876,11 @@ var require_downloadUtils = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -74896,7 +74896,7 @@ var require_downloadUtils = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -74910,16 +74910,16 @@ var require_downloadUtils = __commonJS({ var http_client_1 = require_lib(); var storage_blob_1 = require_commonjs15(); var buffer = __importStar2(require("buffer")); - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var stream2 = __importStar2(require("stream")); - var util = __importStar2(require("util")); + var util3 = __importStar2(require("util")); var utils = __importStar2(require_cacheUtils()); var constants_1 = require_constants7(); var requestUtils_1 = require_requestUtils(); var abort_controller_1 = require_dist4(); function pipeResponseToStream(response, output) { return __awaiter2(this, void 0, void 0, function* () { - const pipeline = util.promisify(stream2.pipeline); + const pipeline = util3.promisify(stream2.pipeline); yield pipeline(response.message, output); }); } @@ -75021,7 +75021,7 @@ var require_downloadUtils = __commonJS({ exports2.DownloadProgress = DownloadProgress; function downloadCacheHttpClient(archiveLocation, archivePath) { return __awaiter2(this, void 0, void 0, function* () { - const writeStream = fs30.createWriteStream(archivePath); + const writeStream = fs31.createWriteStream(archivePath); const httpClient = new http_client_1.HttpClient("actions/cache"); const downloadResponse = yield (0, requestUtils_1.retryHttpClientResponse)("downloadCache", () => __awaiter2(this, void 0, void 0, function* () { return httpClient.get(archiveLocation); @@ -75045,8 +75045,8 @@ var require_downloadUtils = __commonJS({ } function downloadCacheHttpClientConcurrent(archiveLocation, archivePath, options) { return __awaiter2(this, void 0, void 0, function* () { - var _a; - const archiveDescriptor = yield fs30.promises.open(archivePath, "w"); + var _a2; + const archiveDescriptor = yield fs31.promises.open(archivePath, "w"); const httpClient = new http_client_1.HttpClient("actions/cache", void 0, { socketTimeout: options.timeoutInMs, keepAlive: true @@ -75093,7 +75093,7 @@ var require_downloadUtils = __commonJS({ while (nextDownload = downloads.pop()) { activeDownloads[nextDownload.offset] = nextDownload.promiseGetter(); actives++; - if (actives >= ((_a = options.downloadConcurrency) !== null && _a !== void 0 ? _a : 10)) { + if (actives >= ((_a2 = options.downloadConcurrency) !== null && _a2 !== void 0 ? _a2 : 10)) { yield waitAndWrite(); } } @@ -75146,7 +75146,7 @@ var require_downloadUtils = __commonJS({ } function downloadCacheStorageSDK(archiveLocation, archivePath, options) { return __awaiter2(this, void 0, void 0, function* () { - var _a; + var _a2; const client = new storage_blob_1.BlockBlobClient(archiveLocation, void 0, { retryOptions: { // Override the timeout used when downloading each 4 MB chunk @@ -75155,14 +75155,14 @@ var require_downloadUtils = __commonJS({ } }); const properties = yield client.getProperties(); - const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1; + const contentLength = (_a2 = properties.contentLength) !== null && _a2 !== void 0 ? _a2 : -1; if (contentLength < 0) { core30.debug("Unable to determine content length, downloading file with http-client..."); yield downloadCacheHttpClient(archiveLocation, archivePath); } else { const maxSegmentSize = Math.min(134217728, buffer.constants.MAX_LENGTH); const downloadProgress = new DownloadProgress(contentLength); - const fd = fs30.openSync(archivePath, "w"); + const fd = fs31.openSync(archivePath, "w"); try { downloadProgress.startDisplayTimer(); const controller = new abort_controller_1.AbortController(); @@ -75180,20 +75180,20 @@ var require_downloadUtils = __commonJS({ controller.abort(); throw new Error("Aborting cache download as the download time exceeded the timeout."); } else if (Buffer.isBuffer(result)) { - fs30.writeFileSync(fd, result); + fs31.writeFileSync(fd, result); } } } finally { downloadProgress.stopDisplayTimer(); - fs30.closeSync(fd); + fs31.closeSync(fd); } } }); } var promiseWithTimeout = (timeoutMs, promise) => __awaiter2(void 0, void 0, void 0, function* () { let timeoutHandle; - const timeoutPromise = new Promise((resolve13) => { - timeoutHandle = setTimeout(() => resolve13("timeout"), timeoutMs); + const timeoutPromise = new Promise((resolve14) => { + timeoutHandle = setTimeout(() => resolve14("timeout"), timeoutMs); }); return Promise.race([promise, timeoutPromise]).then((result) => { clearTimeout(timeoutHandle); @@ -75474,11 +75474,11 @@ var require_cacheHttpClient = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -75494,7 +75494,7 @@ var require_cacheHttpClient = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -75507,7 +75507,7 @@ var require_cacheHttpClient = __commonJS({ var core30 = __importStar2(require_core()); var http_client_1 = require_lib(); var auth_1 = require_auth(); - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var url_1 = require("url"); var utils = __importStar2(require_cacheUtils()); var uploadUtils_1 = require_uploadUtils(); @@ -75642,7 +75642,7 @@ Other caches with similar key:`); return __awaiter2(this, void 0, void 0, function* () { const fileSize = utils.getArchiveFileSizeInBytes(archivePath); const resourceUrl = getCacheApiUrl(`caches/${cacheId.toString()}`); - const fd = fs30.openSync(archivePath, "r"); + const fd = fs31.openSync(archivePath, "r"); const uploadOptions = (0, options_1.getUploadOptions)(options); const concurrency = utils.assertDefined("uploadConcurrency", uploadOptions.uploadConcurrency); const maxChunkSize = utils.assertDefined("uploadChunkSize", uploadOptions.uploadChunkSize); @@ -75656,7 +75656,7 @@ Other caches with similar key:`); const start = offset; const end = offset + chunkSize - 1; offset += maxChunkSize; - yield uploadChunk(httpClient, resourceUrl, () => fs30.createReadStream(archivePath, { + yield uploadChunk(httpClient, resourceUrl, () => fs31.createReadStream(archivePath, { fd, start, end, @@ -75667,7 +75667,7 @@ Other caches with similar key:`); } }))); } finally { - fs30.closeSync(fd); + fs31.closeSync(fd); } return; }); @@ -76784,9 +76784,9 @@ var require_json_format_contract = __commonJS({ } exports2.jsonWriteOptions = jsonWriteOptions; function mergeJsonOptions(a, b) { - var _a, _b; + var _a2, _b; let c = Object.assign(Object.assign({}, a), b); - c.typeRegistry = [...(_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : [], ...(_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : []]; + c.typeRegistry = [...(_a2 = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a2 !== void 0 ? _a2 : [], ...(_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : []]; return c; } exports2.mergeJsonOptions = mergeJsonOptions; @@ -76872,8 +76872,8 @@ var require_reflection_info = __commonJS({ RepeatType2[RepeatType2["UNPACKED"] = 2] = "UNPACKED"; })(RepeatType = exports2.RepeatType || (exports2.RepeatType = {})); function normalizeFieldInfo(field) { - var _a, _b, _c, _d; - field.localName = (_a = field.localName) !== null && _a !== void 0 ? _a : lower_camel_case_1.lowerCamelCase(field.name); + var _a2, _b, _c, _d; + field.localName = (_a2 = field.localName) !== null && _a2 !== void 0 ? _a2 : lower_camel_case_1.lowerCamelCase(field.name); field.jsonName = (_b = field.jsonName) !== null && _b !== void 0 ? _b : lower_camel_case_1.lowerCamelCase(field.name); field.repeat = (_c = field.repeat) !== null && _c !== void 0 ? _c : RepeatType.NO; field.opt = (_d = field.opt) !== null && _d !== void 0 ? _d : field.repeat ? false : field.oneof ? false : field.kind == "message"; @@ -76881,14 +76881,14 @@ var require_reflection_info = __commonJS({ } exports2.normalizeFieldInfo = normalizeFieldInfo; function readFieldOptions(messageType, fieldName, extensionName, extensionType) { - var _a; - const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options; + var _a2; + const options = (_a2 = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a2 === void 0 ? void 0 : _a2.options; return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : void 0; } exports2.readFieldOptions = readFieldOptions; function readFieldOption(messageType, fieldName, extensionName, extensionType) { - var _a; - const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options; + var _a2; + const options = (_a2 = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a2 === void 0 ? void 0 : _a2.options; if (!options) { return void 0; } @@ -76984,8 +76984,8 @@ var require_reflection_type_check = __commonJS({ var oneof_1 = require_oneof(); var ReflectionTypeCheck = class { constructor(info8) { - var _a; - this.fields = (_a = info8.fields) !== null && _a !== void 0 ? _a : []; + var _a2; + this.fields = (_a2 = info8.fields) !== null && _a2 !== void 0 ? _a2 : []; } prepare() { if (this.data) @@ -77235,10 +77235,10 @@ var require_reflection_json_reader = __commonJS({ this.info = info8; } prepare() { - var _a; + var _a2; if (this.fMap === void 0) { this.fMap = {}; - const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : []; + const fieldsInput = (_a2 = this.info.fields) !== null && _a2 !== void 0 ? _a2 : []; for (const field of fieldsInput) { this.fMap[field.name] = field; this.fMap[field.jsonName] = field; @@ -77529,8 +77529,8 @@ var require_reflection_json_writer = __commonJS({ var assert_1 = require_assert(); var ReflectionJsonWriter = class { constructor(info8) { - var _a; - this.fields = (_a = info8.fields) !== null && _a !== void 0 ? _a : []; + var _a2; + this.fields = (_a2 = info8.fields) !== null && _a2 !== void 0 ? _a2 : []; } /** * Converts the message to a JSON object, based on the field descriptors. @@ -77787,9 +77787,9 @@ var require_reflection_binary_reader = __commonJS({ this.info = info8; } prepare() { - var _a; + var _a2; if (!this.fieldNoToField) { - const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : []; + const fieldsInput = (_a2 = this.info.fields) !== null && _a2 !== void 0 ? _a2 : []; this.fieldNoToField = new Map(fieldsInput.map((field) => [field.no, field])); } } @@ -78457,9 +78457,9 @@ var require_message_type = __commonJS({ * This is equivalent to `JSON.stringify(T.toJson(t))` */ toJsonString(message, options) { - var _a; + var _a2; let value = this.toJson(message, options); - return JSON.stringify(value, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0); + return JSON.stringify(value, null, (_a2 = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a2 !== void 0 ? _a2 : 0); } /** * Write the message to binary format. @@ -78585,7 +78585,7 @@ var require_enum_object = __commonJS({ } exports2.listEnumNames = listEnumNames; function listEnumNumbers(enumObject) { - return listEnumValues(enumObject).map((val) => val.number).filter((num, index, arr) => arr.indexOf(num) == index); + return listEnumValues(enumObject).map((val) => val.number).filter((num, index2, arr) => arr.indexOf(num) == index2); } exports2.listEnumNumbers = listEnumNumbers; } @@ -78785,10 +78785,10 @@ var require_reflection_info2 = __commonJS({ exports2.readServiceOption = exports2.readMethodOption = exports2.readMethodOptions = exports2.normalizeMethodInfo = void 0; var runtime_1 = require_commonjs16(); function normalizeMethodInfo(method, service) { - var _a, _b, _c; + var _a2, _b, _c; let m = method; m.service = service; - m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : runtime_1.lowerCamelCase(m.name); + m.localName = (_a2 = m.localName) !== null && _a2 !== void 0 ? _a2 : runtime_1.lowerCamelCase(m.name); m.serverStreaming = !!m.serverStreaming; m.clientStreaming = !!m.clientStreaming; m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {}; @@ -78797,14 +78797,14 @@ var require_reflection_info2 = __commonJS({ } exports2.normalizeMethodInfo = normalizeMethodInfo; function readMethodOptions(service, methodName, extensionName, extensionType) { - var _a; - const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options; + var _a2; + const options = (_a2 = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a2 === void 0 ? void 0 : _a2.options; return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : void 0; } exports2.readMethodOptions = readMethodOptions; function readMethodOption(service, methodName, extensionName, extensionType) { - var _a; - const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options; + var _a2; + const options = (_a2 = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a2 === void 0 ? void 0 : _a2.options; if (!options) { return void 0; } @@ -78893,28 +78893,28 @@ var require_rpc_options = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.mergeRpcOptions = void 0; var runtime_1 = require_commonjs16(); - function mergeRpcOptions(defaults, options) { + function mergeRpcOptions(defaults2, options) { if (!options) - return defaults; + return defaults2; let o = {}; - copy(defaults, o); + copy(defaults2, o); copy(options, o); for (let key of Object.keys(options)) { let val = options[key]; switch (key) { case "jsonOptions": - o.jsonOptions = runtime_1.mergeJsonOptions(defaults.jsonOptions, o.jsonOptions); + o.jsonOptions = runtime_1.mergeJsonOptions(defaults2.jsonOptions, o.jsonOptions); break; case "binaryOptions": - o.binaryOptions = runtime_1.mergeBinaryOptions(defaults.binaryOptions, o.binaryOptions); + o.binaryOptions = runtime_1.mergeBinaryOptions(defaults2.binaryOptions, o.binaryOptions); break; case "meta": o.meta = {}; - copy(defaults.meta, o.meta); + copy(defaults2.meta, o.meta); copy(options.meta, o.meta); break; case "interceptors": - o.interceptors = defaults.interceptors ? defaults.interceptors.concat(val) : val.concat(); + o.interceptors = defaults2.interceptors ? defaults2.interceptors.concat(val) : val.concat(); break; } } @@ -78964,8 +78964,8 @@ var require_deferred = __commonJS({ */ constructor(preventUnhandledRejectionWarning = true) { this._state = DeferredState.PENDING; - this._promise = new Promise((resolve13, reject) => { - this._resolve = resolve13; + this._promise = new Promise((resolve14, reject) => { + this._resolve = resolve14; this._reject = reject; }); if (preventUnhandledRejectionWarning) { @@ -79180,11 +79180,11 @@ var require_unary_call = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -79200,7 +79200,7 @@ var require_unary_call = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -79249,11 +79249,11 @@ var require_server_streaming_call = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -79269,7 +79269,7 @@ var require_server_streaming_call = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -79319,11 +79319,11 @@ var require_client_streaming_call = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -79339,7 +79339,7 @@ var require_client_streaming_call = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -79388,11 +79388,11 @@ var require_duplex_streaming_call = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -79408,7 +79408,7 @@ var require_duplex_streaming_call = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -79456,11 +79456,11 @@ var require_test_transport = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -79476,7 +79476,7 @@ var require_test_transport = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -79527,8 +79527,8 @@ var require_test_transport = __commonJS({ } // Creates a promise for response headers from the mock data. promiseHeaders() { - var _a; - const headers = (_a = this.data.headers) !== null && _a !== void 0 ? _a : _TestTransport.defaultHeaders; + var _a2; + const headers = (_a2 = this.data.headers) !== null && _a2 !== void 0 ? _a2 : _TestTransport.defaultHeaders; return headers instanceof rpc_error_1.RpcError ? Promise.reject(headers) : Promise.resolve(headers); } // Creates a promise for a single, valid, message from the mock data. @@ -79603,14 +79603,14 @@ var require_test_transport = __commonJS({ } // Creates a promise for response status from the mock data. promiseStatus() { - var _a; - const status = (_a = this.data.status) !== null && _a !== void 0 ? _a : _TestTransport.defaultStatus; + var _a2; + const status = (_a2 = this.data.status) !== null && _a2 !== void 0 ? _a2 : _TestTransport.defaultStatus; return status instanceof rpc_error_1.RpcError ? Promise.reject(status) : Promise.resolve(status); } // Creates a promise for response trailers from the mock data. promiseTrailers() { - var _a; - const trailers = (_a = this.data.trailers) !== null && _a !== void 0 ? _a : _TestTransport.defaultTrailers; + var _a2; + const trailers = (_a2 = this.data.trailers) !== null && _a2 !== void 0 ? _a2 : _TestTransport.defaultTrailers; return trailers instanceof rpc_error_1.RpcError ? Promise.reject(trailers) : Promise.resolve(trailers); } maybeSuppressUncaught(...promise) { @@ -79625,8 +79625,8 @@ var require_test_transport = __commonJS({ return rpc_options_1.mergeRpcOptions({}, options); } unary(method, input, options) { - var _a; - const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), responsePromise = headersPromise.catch((_2) => { + var _a2; + const requestHeaders = (_a2 = options.meta) !== null && _a2 !== void 0 ? _a2 : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), responsePromise = headersPromise.catch((_2) => { }).then(delay2(this.responseDelay, options.abort)).then((_2) => this.promiseSingleResponse(method)), statusPromise = responsePromise.catch((_2) => { }).then(delay2(this.afterResponseDelay, options.abort)).then((_2) => this.promiseStatus()), trailersPromise = responsePromise.catch((_2) => { }).then(delay2(this.afterResponseDelay, options.abort)).then((_2) => this.promiseTrailers()); @@ -79635,16 +79635,16 @@ var require_test_transport = __commonJS({ return new unary_call_1.UnaryCall(method, requestHeaders, input, headersPromise, responsePromise, statusPromise, trailersPromise); } serverStreaming(method, input, options) { - var _a; - const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise.then(delay2(this.responseDelay, options.abort)).catch(() => { + var _a2; + const requestHeaders = (_a2 = options.meta) !== null && _a2 !== void 0 ? _a2 : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise.then(delay2(this.responseDelay, options.abort)).catch(() => { }).then(() => this.streamResponses(method, outputStream, options.abort)).then(delay2(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise.then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise.then(() => this.promiseTrailers()); this.maybeSuppressUncaught(statusPromise, trailersPromise); this.lastInput = { single: input }; return new server_streaming_call_1.ServerStreamingCall(method, requestHeaders, input, headersPromise, outputStream, statusPromise, trailersPromise); } clientStreaming(method, options) { - var _a; - const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), responsePromise = headersPromise.catch((_2) => { + var _a2; + const requestHeaders = (_a2 = options.meta) !== null && _a2 !== void 0 ? _a2 : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), responsePromise = headersPromise.catch((_2) => { }).then(delay2(this.responseDelay, options.abort)).then((_2) => this.promiseSingleResponse(method)), statusPromise = responsePromise.catch((_2) => { }).then(delay2(this.afterResponseDelay, options.abort)).then((_2) => this.promiseStatus()), trailersPromise = responsePromise.catch((_2) => { }).then(delay2(this.afterResponseDelay, options.abort)).then((_2) => this.promiseTrailers()); @@ -79653,8 +79653,8 @@ var require_test_transport = __commonJS({ return new client_streaming_call_1.ClientStreamingCall(method, requestHeaders, this.lastInput, headersPromise, responsePromise, statusPromise, trailersPromise); } duplex(method, options) { - var _a; - const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise.then(delay2(this.responseDelay, options.abort)).catch(() => { + var _a2; + const requestHeaders = (_a2 = options.meta) !== null && _a2 !== void 0 ? _a2 : {}, headersPromise = this.promiseHeaders().then(delay2(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise.then(delay2(this.responseDelay, options.abort)).catch(() => { }).then(() => this.streamResponses(method, outputStream, options.abort)).then(delay2(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise.then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise.then(() => this.promiseTrailers()); this.maybeSuppressUncaught(statusPromise, trailersPromise); this.lastInput = new TestInputStream(this.data, options.abort); @@ -79673,11 +79673,11 @@ var require_test_transport = __commonJS({ responseTrailer: "test" }; function delay2(ms, abort) { - return (v) => new Promise((resolve13, reject) => { + return (v) => new Promise((resolve14, reject) => { if (abort === null || abort === void 0 ? void 0 : abort.aborted) { reject(new rpc_error_1.RpcError("user cancel", "CANCELLED")); } else { - const id = setTimeout(() => resolve13(v), ms); + const id = setTimeout(() => resolve14(v), ms); if (abort) { abort.addEventListener("abort", (ev) => { clearTimeout(id); @@ -79730,10 +79730,10 @@ var require_rpc_interceptor = __commonJS({ exports2.stackDuplexStreamingInterceptors = exports2.stackClientStreamingInterceptors = exports2.stackServerStreamingInterceptors = exports2.stackUnaryInterceptors = exports2.stackIntercept = void 0; var runtime_1 = require_commonjs16(); function stackIntercept(kind, transport, method, options, input) { - var _a, _b, _c, _d; + var _a2, _b, _c, _d; if (kind == "unary") { let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt); - for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter((i) => i.interceptUnary).reverse()) { + for (const curr of ((_a2 = options.interceptors) !== null && _a2 !== void 0 ? _a2 : []).filter((i) => i.interceptUnary).reverse()) { const next = tail; tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt); } @@ -80675,11 +80675,11 @@ var require_cacheTwirpClient = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -80695,7 +80695,7 @@ var require_cacheTwirpClient = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -80835,7 +80835,7 @@ var require_cacheTwirpClient = __commonJS({ } sleep(milliseconds) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => setTimeout(resolve13, milliseconds)); + return new Promise((resolve14) => setTimeout(resolve14, milliseconds)); }); } getExponentialRetryTimeMilliseconds(attempt) { @@ -80900,11 +80900,11 @@ var require_tar = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -80920,7 +80920,7 @@ var require_tar = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -80932,7 +80932,7 @@ var require_tar = __commonJS({ var exec_1 = require_exec(); var io9 = __importStar2(require_io()); var fs_1 = require("fs"); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var utils = __importStar2(require_cacheUtils()); var constants_1 = require_constants7(); var IS_WINDOWS = process.platform === "win32"; @@ -80978,13 +80978,13 @@ var require_tar = __commonJS({ const BSD_TAR_ZSTD = tarPath.type === constants_1.ArchiveToolType.BSD && compressionMethod !== constants_1.CompressionMethod.Gzip && IS_WINDOWS; switch (type) { case "create": - args.push("--posix", "-cf", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path28.sep}`, "g"), "/"), "--exclude", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path28.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path28.sep}`, "g"), "/"), "--files-from", constants_1.ManifestFilename); + args.push("--posix", "-cf", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path29.sep}`, "g"), "/"), "--exclude", BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path29.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path29.sep}`, "g"), "/"), "--files-from", constants_1.ManifestFilename); break; case "extract": - args.push("-xf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path28.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path28.sep}`, "g"), "/")); + args.push("-xf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path29.sep}`, "g"), "/"), "-P", "-C", workingDirectory.replace(new RegExp(`\\${path29.sep}`, "g"), "/")); break; case "list": - args.push("-tf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path28.sep}`, "g"), "/"), "-P"); + args.push("-tf", BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path29.sep}`, "g"), "/"), "-P"); break; } if (tarPath.type === constants_1.ArchiveToolType.GNU) { @@ -81019,8 +81019,8 @@ var require_tar = __commonJS({ }); } function getWorkingDirectory() { - var _a; - return (_a = process.env["GITHUB_WORKSPACE"]) !== null && _a !== void 0 ? _a : process.cwd(); + var _a2; + return (_a2 = process.env["GITHUB_WORKSPACE"]) !== null && _a2 !== void 0 ? _a2 : process.cwd(); } function getDecompressionProgram(tarPath, compressionMethod, archivePath) { return __awaiter2(this, void 0, void 0, function* () { @@ -81030,7 +81030,7 @@ var require_tar = __commonJS({ return BSD_TAR_ZSTD ? [ "zstd -d --long=30 --force -o", constants_1.TarFilename, - archivePath.replace(new RegExp(`\\${path28.sep}`, "g"), "/") + archivePath.replace(new RegExp(`\\${path29.sep}`, "g"), "/") ] : [ "--use-compress-program", IS_WINDOWS ? '"zstd -d --long=30"' : "unzstd --long=30" @@ -81039,7 +81039,7 @@ var require_tar = __commonJS({ return BSD_TAR_ZSTD ? [ "zstd -d --force -o", constants_1.TarFilename, - archivePath.replace(new RegExp(`\\${path28.sep}`, "g"), "/") + archivePath.replace(new RegExp(`\\${path29.sep}`, "g"), "/") ] : ["--use-compress-program", IS_WINDOWS ? '"zstd -d"' : "unzstd"]; default: return ["-z"]; @@ -81054,7 +81054,7 @@ var require_tar = __commonJS({ case constants_1.CompressionMethod.Zstd: return BSD_TAR_ZSTD ? [ "zstd -T0 --long=30 --force -o", - cacheFileName.replace(new RegExp(`\\${path28.sep}`, "g"), "/"), + cacheFileName.replace(new RegExp(`\\${path29.sep}`, "g"), "/"), constants_1.TarFilename ] : [ "--use-compress-program", @@ -81063,7 +81063,7 @@ var require_tar = __commonJS({ case constants_1.CompressionMethod.ZstdWithoutLong: return BSD_TAR_ZSTD ? [ "zstd -T0 --force -o", - cacheFileName.replace(new RegExp(`\\${path28.sep}`, "g"), "/"), + cacheFileName.replace(new RegExp(`\\${path29.sep}`, "g"), "/"), constants_1.TarFilename ] : ["--use-compress-program", IS_WINDOWS ? '"zstd -T0"' : "zstdmt"]; default: @@ -81101,7 +81101,7 @@ var require_tar = __commonJS({ } function createTar(archiveFolder, sourceDirectories, compressionMethod) { return __awaiter2(this, void 0, void 0, function* () { - (0, fs_1.writeFileSync)(path28.join(archiveFolder, constants_1.ManifestFilename), sourceDirectories.join("\n")); + (0, fs_1.writeFileSync)(path29.join(archiveFolder, constants_1.ManifestFilename), sourceDirectories.join("\n")); const commands = yield getCommands(compressionMethod, "create"); yield execCommands(commands, archiveFolder); }); @@ -81152,11 +81152,11 @@ var require_cache4 = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -81172,7 +81172,7 @@ var require_cache4 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -81183,7 +81183,7 @@ var require_cache4 = __commonJS({ exports2.restoreCache = restoreCache5; exports2.saveCache = saveCache5; var core30 = __importStar2(require_core()); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var utils = __importStar2(require_cacheUtils()); var cacheHttpClient = __importStar2(require_cacheHttpClient()); var cacheTwirpClient = __importStar2(require_cacheTwirpClient()); @@ -81278,7 +81278,7 @@ var require_cache4 = __commonJS({ core30.info("Lookup only - skipping download"); return cacheEntry.cacheKey; } - archivePath = path28.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); + archivePath = path29.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); core30.debug(`Archive Path: ${archivePath}`); yield cacheHttpClient.downloadCache(cacheEntry.archiveLocation, archivePath, options); if (core30.isDebug()) { @@ -81347,7 +81347,7 @@ var require_cache4 = __commonJS({ core30.info("Lookup only - skipping download"); return response.matchedKey; } - archivePath = path28.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); + archivePath = path29.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); core30.debug(`Archive path: ${archivePath}`); core30.debug(`Starting download of archive to: ${archivePath}`); yield cacheHttpClient.downloadCache(response.signedDownloadUrl, archivePath, options); @@ -81399,7 +81399,7 @@ var require_cache4 = __commonJS({ } function saveCacheV1(paths_1, key_1, options_1) { return __awaiter2(this, arguments, void 0, function* (paths, key, options, enableCrossOsArchive = false) { - var _a, _b, _c, _d, _e; + var _a2, _b, _c, _d, _e; const compressionMethod = yield utils.getCompressionMethod(); let cacheId = -1; const cachePaths = yield utils.resolvePaths(paths); @@ -81409,7 +81409,7 @@ var require_cache4 = __commonJS({ throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`); } const archiveFolder = yield utils.createTempDirectory(); - const archivePath = path28.join(archiveFolder, utils.getCacheFileName(compressionMethod)); + const archivePath = path29.join(archiveFolder, utils.getCacheFileName(compressionMethod)); core30.debug(`Archive Path: ${archivePath}`); try { yield (0, tar_1.createTar)(archiveFolder, cachePaths, compressionMethod); @@ -81428,7 +81428,7 @@ var require_cache4 = __commonJS({ enableCrossOsArchive, cacheSize: archiveFileSize }); - if ((_a = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.result) === null || _a === void 0 ? void 0 : _a.cacheId) { + if ((_a2 = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.result) === null || _a2 === void 0 ? void 0 : _a2.cacheId) { cacheId = (_b = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.result) === null || _b === void 0 ? void 0 : _b.cacheId; } else if ((reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.statusCode) === 400) { throw new Error((_d = (_c = reserveCacheResponse === null || reserveCacheResponse === void 0 ? void 0 : reserveCacheResponse.error) === null || _c === void 0 ? void 0 : _c.message) !== null && _d !== void 0 ? _d : `Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the data cap limit, not saving cache.`); @@ -81473,7 +81473,7 @@ var require_cache4 = __commonJS({ throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`); } const archiveFolder = yield utils.createTempDirectory(); - const archivePath = path28.join(archiveFolder, utils.getCacheFileName(compressionMethod)); + const archivePath = path29.join(archiveFolder, utils.getCacheFileName(compressionMethod)); core30.debug(`Archive Path: ${archivePath}`); try { yield (0, tar_1.createTar)(archiveFolder, cachePaths, compressionMethod); @@ -81590,11 +81590,11 @@ var require_manifest = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -81610,7 +81610,7 @@ var require_manifest = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -81623,12 +81623,12 @@ var require_manifest = __commonJS({ var core_1 = require_core(); var os7 = require("os"); var cp = require("child_process"); - var fs30 = require("fs"); + var fs31 = require("fs"); function _findMatch(versionSpec, stable, candidates, archFilter) { return __awaiter2(this, void 0, void 0, function* () { const platFilter = os7.platform(); let result; - let match; + let match2; let file; for (const candidate of candidates) { const version = candidate.version; @@ -81649,13 +81649,13 @@ var require_manifest = __commonJS({ }); if (file) { (0, core_1.debug)(`matched ${candidate.version}`); - match = candidate; + match2 = candidate; break; } } } - if (match && file) { - result = Object.assign({}, match); + if (match2 && file) { + result = Object.assign({}, match2); result.files = [file]; } return result; @@ -81685,10 +81685,10 @@ var require_manifest = __commonJS({ const lsbReleaseFile = "/etc/lsb-release"; const osReleaseFile = "/etc/os-release"; let contents = ""; - if (fs30.existsSync(lsbReleaseFile)) { - contents = fs30.readFileSync(lsbReleaseFile).toString(); - } else if (fs30.existsSync(osReleaseFile)) { - contents = fs30.readFileSync(osReleaseFile).toString(); + if (fs31.existsSync(lsbReleaseFile)) { + contents = fs31.readFileSync(lsbReleaseFile).toString(); + } else if (fs31.existsSync(osReleaseFile)) { + contents = fs31.readFileSync(osReleaseFile).toString(); } return contents; } @@ -81738,11 +81738,11 @@ var require_retry_helper = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -81758,7 +81758,7 @@ var require_retry_helper = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -81803,7 +81803,7 @@ var require_retry_helper = __commonJS({ } sleep(seconds) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => setTimeout(resolve13, seconds * 1e3)); + return new Promise((resolve14) => setTimeout(resolve14, seconds * 1e3)); }); } }; @@ -81854,11 +81854,11 @@ var require_tool_cache = __commonJS({ })(); var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -81874,7 +81874,7 @@ var require_tool_cache = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -81897,14 +81897,14 @@ var require_tool_cache = __commonJS({ var core30 = __importStar2(require_core()); var io9 = __importStar2(require_io()); var crypto3 = __importStar2(require("crypto")); - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var mm = __importStar2(require_manifest()); var os7 = __importStar2(require("os")); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var httpm = __importStar2(require_lib()); var semver11 = __importStar2(require_semver2()); var stream2 = __importStar2(require("stream")); - var util = __importStar2(require("util")); + var util3 = __importStar2(require("util")); var assert_1 = require("assert"); var exec_1 = require_exec(); var retry_helper_1 = require_retry_helper(); @@ -81921,8 +81921,8 @@ var require_tool_cache = __commonJS({ var userAgent2 = "actions/tool-cache"; function downloadTool3(url2, dest, auth2, headers) { return __awaiter2(this, void 0, void 0, function* () { - dest = dest || path28.join(_getTempDirectory(), crypto3.randomUUID()); - yield io9.mkdirP(path28.dirname(dest)); + dest = dest || path29.join(_getTempDirectory(), crypto3.randomUUID()); + yield io9.mkdirP(path29.dirname(dest)); core30.debug(`Downloading ${url2}`); core30.debug(`Destination ${dest}`); const maxAttempts = 3; @@ -81943,7 +81943,7 @@ var require_tool_cache = __commonJS({ } function downloadToolAttempt(url2, dest, auth2, headers) { return __awaiter2(this, void 0, void 0, function* () { - if (fs30.existsSync(dest)) { + if (fs31.existsSync(dest)) { throw new Error(`Destination file path ${dest} already exists`); } const http = new httpm.HttpClient(userAgent2, [], { @@ -81962,12 +81962,12 @@ var require_tool_cache = __commonJS({ core30.debug(`Failed to download from "${url2}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); throw err; } - const pipeline = util.promisify(stream2.pipeline); + const pipeline = util3.promisify(stream2.pipeline); const responseMessageFactory = _getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY", () => response.message); const readStream = responseMessageFactory(); let succeeded = false; try { - yield pipeline(readStream, fs30.createWriteStream(dest)); + yield pipeline(readStream, fs31.createWriteStream(dest)); core30.debug("download complete"); succeeded = true; return dest; @@ -82012,7 +82012,7 @@ var require_tool_cache = __commonJS({ process.chdir(originalCwd); } } else { - const escapedScript = path28.join(__dirname, "..", "scripts", "Invoke-7zdec.ps1").replace(/'/g, "''").replace(/"|\n|\r/g, ""); + const escapedScript = path29.join(__dirname, "..", "scripts", "Invoke-7zdec.ps1").replace(/'/g, "''").replace(/"|\n|\r/g, ""); const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ""); const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, ""); const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`; @@ -82179,12 +82179,12 @@ var require_tool_cache = __commonJS({ arch2 = arch2 || os7.arch(); core30.debug(`Caching tool ${tool} ${version} ${arch2}`); core30.debug(`source dir: ${sourceDir}`); - if (!fs30.statSync(sourceDir).isDirectory()) { + if (!fs31.statSync(sourceDir).isDirectory()) { throw new Error("sourceDir is not a directory"); } const destPath = yield _createToolPath(tool, version, arch2); - for (const itemName of fs30.readdirSync(sourceDir)) { - const s = path28.join(sourceDir, itemName); + for (const itemName of fs31.readdirSync(sourceDir)) { + const s = path29.join(sourceDir, itemName); yield io9.cp(s, destPath, { recursive: true }); } _completeToolPath(tool, version, arch2); @@ -82197,11 +82197,11 @@ var require_tool_cache = __commonJS({ arch2 = arch2 || os7.arch(); core30.debug(`Caching tool ${tool} ${version} ${arch2}`); core30.debug(`source file: ${sourceFile}`); - if (!fs30.statSync(sourceFile).isFile()) { + if (!fs31.statSync(sourceFile).isFile()) { throw new Error("sourceFile is not a file"); } const destFolder = yield _createToolPath(tool, version, arch2); - const destPath = path28.join(destFolder, targetFile); + const destPath = path29.join(destFolder, targetFile); core30.debug(`destination file ${destPath}`); yield io9.cp(sourceFile, destPath); _completeToolPath(tool, version, arch2); @@ -82218,15 +82218,15 @@ var require_tool_cache = __commonJS({ arch2 = arch2 || os7.arch(); if (!isExplicitVersion(versionSpec)) { const localVersions = findAllVersions2(toolName, arch2); - const match = evaluateVersions(localVersions, versionSpec); - versionSpec = match; + const match2 = evaluateVersions(localVersions, versionSpec); + versionSpec = match2; } let toolPath = ""; if (versionSpec) { versionSpec = semver11.clean(versionSpec) || ""; - const cachePath = path28.join(_getCacheDirectory(), toolName, versionSpec, arch2); + const cachePath = path29.join(_getCacheDirectory(), toolName, versionSpec, arch2); core30.debug(`checking cache: ${cachePath}`); - if (fs30.existsSync(cachePath) && fs30.existsSync(`${cachePath}.complete`)) { + if (fs31.existsSync(cachePath) && fs31.existsSync(`${cachePath}.complete`)) { core30.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch2}`); toolPath = cachePath; } else { @@ -82238,13 +82238,13 @@ var require_tool_cache = __commonJS({ function findAllVersions2(toolName, arch2) { const versions = []; arch2 = arch2 || os7.arch(); - const toolPath = path28.join(_getCacheDirectory(), toolName); - if (fs30.existsSync(toolPath)) { - const children = fs30.readdirSync(toolPath); + const toolPath = path29.join(_getCacheDirectory(), toolName); + if (fs31.existsSync(toolPath)) { + const children = fs31.readdirSync(toolPath); for (const child of children) { if (isExplicitVersion(child)) { - const fullPath = path28.join(toolPath, child, arch2 || ""); - if (fs30.existsSync(fullPath) && fs30.existsSync(`${fullPath}.complete`)) { + const fullPath = path29.join(toolPath, child, arch2 || ""); + if (fs31.existsSync(fullPath) && fs31.existsSync(`${fullPath}.complete`)) { versions.push(child); } } @@ -82279,7 +82279,7 @@ var require_tool_cache = __commonJS({ versionsRaw = versionsRaw.replace(/^\uFEFF/, ""); try { releases = JSON.parse(versionsRaw); - } catch (_a) { + } catch (_a2) { core30.debug("Invalid json"); } } @@ -82288,14 +82288,14 @@ var require_tool_cache = __commonJS({ } function findFromManifest(versionSpec_1, stable_1, manifest_1) { return __awaiter2(this, arguments, void 0, function* (versionSpec, stable, manifest, archFilter = os7.arch()) { - const match = yield mm._findMatch(versionSpec, stable, manifest, archFilter); - return match; + const match2 = yield mm._findMatch(versionSpec, stable, manifest, archFilter); + return match2; }); } function _createExtractFolder(dest) { return __awaiter2(this, void 0, void 0, function* () { if (!dest) { - dest = path28.join(_getTempDirectory(), crypto3.randomUUID()); + dest = path29.join(_getTempDirectory(), crypto3.randomUUID()); } yield io9.mkdirP(dest); return dest; @@ -82303,7 +82303,7 @@ var require_tool_cache = __commonJS({ } function _createToolPath(tool, version, arch2) { return __awaiter2(this, void 0, void 0, function* () { - const folderPath = path28.join(_getCacheDirectory(), tool, semver11.clean(version) || version, arch2 || ""); + const folderPath = path29.join(_getCacheDirectory(), tool, semver11.clean(version) || version, arch2 || ""); core30.debug(`destination ${folderPath}`); const markerPath = `${folderPath}.complete`; yield io9.rmRF(folderPath); @@ -82313,9 +82313,9 @@ var require_tool_cache = __commonJS({ }); } function _completeToolPath(tool, version, arch2) { - const folderPath = path28.join(_getCacheDirectory(), tool, semver11.clean(version) || version, arch2 || ""); + const folderPath = path29.join(_getCacheDirectory(), tool, semver11.clean(version) || version, arch2 || ""); const markerPath = `${folderPath}.complete`; - fs30.writeFileSync(markerPath, ""); + fs31.writeFileSync(markerPath, ""); core30.debug("finished caching tool"); } function isExplicitVersion(versionSpec) { @@ -88006,13 +88006,13 @@ These characters are not allowed in the artifact name due to limitations with ce (0, core_1.info)(`Artifact name is valid!`); } exports2.validateArtifactName = validateArtifactName; - function validateFilePath(path28) { - if (!path28) { + function validateFilePath(path29) { + if (!path29) { throw new Error(`Provided file path input during validation is empty`); } for (const [invalidCharacterKey, errorMessageForCharacter] of invalidArtifactFilePathCharacters) { - if (path28.includes(invalidCharacterKey)) { - throw new Error(`The path for one of the files in artifact is not valid: ${path28}. Contains the following character: ${errorMessageForCharacter} + if (path29.includes(invalidCharacterKey)) { + throw new Error(`The path for one of the files in artifact is not valid: ${path29}. Contains the following character: ${errorMessageForCharacter} Invalid characters include: ${Array.from(invalidArtifactFilePathCharacters.values()).toString()} @@ -88354,11 +88354,11 @@ var require_artifact_twirp_client2 = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -88374,7 +88374,7 @@ var require_artifact_twirp_client2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -88501,7 +88501,7 @@ var require_artifact_twirp_client2 = __commonJS({ } sleep(milliseconds) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => setTimeout(resolve13, milliseconds)); + return new Promise((resolve14) => setTimeout(resolve14, milliseconds)); }); } getExponentialRetryTimeMilliseconds(attempt) { @@ -88557,15 +88557,15 @@ var require_upload_zip_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getUploadZipSpecification = exports2.validateRootDirectory = void 0; - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var core_1 = require_core(); var path_1 = require("path"); var path_and_artifact_name_validation_1 = require_path_and_artifact_name_validation(); function validateRootDirectory(rootDirectory) { - if (!fs30.existsSync(rootDirectory)) { + if (!fs31.existsSync(rootDirectory)) { throw new Error(`The provided rootDirectory ${rootDirectory} does not exist`); } - if (!fs30.statSync(rootDirectory).isDirectory()) { + if (!fs31.statSync(rootDirectory).isDirectory()) { throw new Error(`The provided rootDirectory ${rootDirectory} is not a valid directory`); } (0, core_1.info)(`Root directory input is valid!`); @@ -88576,7 +88576,7 @@ var require_upload_zip_specification = __commonJS({ rootDirectory = (0, path_1.normalize)(rootDirectory); rootDirectory = (0, path_1.resolve)(rootDirectory); for (let file of filesToZip) { - const stats = fs30.lstatSync(file, { throwIfNoEntry: false }); + const stats = fs31.lstatSync(file, { throwIfNoEntry: false }); if (!stats) { throw new Error(`File ${file} does not exist`); } @@ -88642,11 +88642,11 @@ var require_blob_upload = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -88662,7 +88662,7 @@ var require_blob_upload = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -88681,7 +88681,7 @@ var require_blob_upload = __commonJS({ let lastProgressTime = Date.now(); const abortController = new AbortController(); const chunkTimer = (interval) => __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const timer = setInterval(() => { if (Date.now() - lastProgressTime > interval) { reject(new Error("Upload progress stalled.")); @@ -88689,7 +88689,7 @@ var require_blob_upload = __commonJS({ }, interval); abortController.signal.addEventListener("abort", () => { clearInterval(timer); - resolve13(); + resolve14(); }); }); }); @@ -88744,38 +88744,38 @@ var require_blob_upload = __commonJS({ } }); -// node_modules/readdir-glob/node_modules/minimatch/lib/path.js +// node_modules/@actions/artifact/node_modules/minimatch/lib/path.js var require_path = __commonJS({ - "node_modules/readdir-glob/node_modules/minimatch/lib/path.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/minimatch/lib/path.js"(exports2, module2) { var isWindows = typeof process === "object" && process && process.platform === "win32"; module2.exports = isWindows ? { sep: "\\" } : { sep: "/" }; } }); -// node_modules/readdir-glob/node_modules/brace-expansion/index.js +// node_modules/@actions/artifact/node_modules/brace-expansion/index.js var require_brace_expansion2 = __commonJS({ - "node_modules/readdir-glob/node_modules/brace-expansion/index.js"(exports2, module2) { - var balanced = require_balanced_match(); + "node_modules/@actions/artifact/node_modules/brace-expansion/index.js"(exports2, module2) { + var balanced2 = require_balanced_match(); module2.exports = expandTop; - var escSlash = "\0SLASH" + Math.random() + "\0"; - var escOpen = "\0OPEN" + Math.random() + "\0"; - var escClose = "\0CLOSE" + Math.random() + "\0"; - var escComma = "\0COMMA" + Math.random() + "\0"; - var escPeriod = "\0PERIOD" + Math.random() + "\0"; - function numeric(str) { + var escSlash2 = "\0SLASH" + Math.random() + "\0"; + var escOpen2 = "\0OPEN" + Math.random() + "\0"; + var escClose2 = "\0CLOSE" + Math.random() + "\0"; + var escComma2 = "\0COMMA" + Math.random() + "\0"; + var escPeriod2 = "\0PERIOD" + Math.random() + "\0"; + function numeric2(str) { return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); } - function escapeBraces(str) { - return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); + function escapeBraces2(str) { + return str.split("\\\\").join(escSlash2).split("\\{").join(escOpen2).split("\\}").join(escClose2).split("\\,").join(escComma2).split("\\.").join(escPeriod2); } - function unescapeBraces(str) { - return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); + function unescapeBraces2(str) { + return str.split(escSlash2).join("\\").split(escOpen2).join("{").split(escClose2).join("}").split(escComma2).join(",").split(escPeriod2).join("."); } - function parseCommaParts(str) { + function parseCommaParts2(str) { if (!str) return [""]; var parts = []; - var m = balanced("{", "}", str); + var m = balanced2("{", "}", str); if (!m) return str.split(","); var pre = m.pre; @@ -88783,7 +88783,7 @@ var require_brace_expansion2 = __commonJS({ var post = m.post; var p = pre.split(","); p[p.length - 1] += "{" + body + "}"; - var postParts = parseCommaParts(post); + var postParts = parseCommaParts2(post); if (post.length) { p[p.length - 1] += postParts.shift(); p.push.apply(p, postParts); @@ -88799,26 +88799,26 @@ var require_brace_expansion2 = __commonJS({ if (str.substr(0, 2) === "{}") { str = "\\{\\}" + str.substr(2); } - return expand2(escapeBraces(str), max, true).map(unescapeBraces); + return expand3(escapeBraces2(str), max, true).map(unescapeBraces2); } - function embrace(str) { + function embrace2(str) { return "{" + str + "}"; } - function isPadded(el) { + function isPadded2(el) { return /^-?0\d/.test(el); } - function lte(i, y) { + function lte2(i, y) { return i <= y; } - function gte6(i, y) { + function gte7(i, y) { return i >= y; } - function expand2(str, max, isTop) { + function expand3(str, max, isTop) { var expansions = []; - var m = balanced("{", "}", str); + var m = balanced2("{", "}", str); if (!m) return [str]; var pre = m.pre; - var post = m.post.length ? expand2(m.post, max, false) : [""]; + var post = m.post.length ? expand3(m.post, max, false) : [""]; if (/\$$/.test(m.pre)) { for (var k = 0; k < post.length && k < max; k++) { var expansion = pre + "{" + m.body + "}" + post[k]; @@ -88831,8 +88831,8 @@ var require_brace_expansion2 = __commonJS({ var isOptions = m.body.indexOf(",") >= 0; if (!isSequence && !isOptions) { if (m.post.match(/,(?!,).*\}/)) { - str = m.pre + "{" + m.body + escClose + m.post; - return expand2(str, max, true); + str = m.pre + "{" + m.body + escClose2 + m.post; + return expand3(str, max, true); } return [str]; } @@ -88840,9 +88840,9 @@ var require_brace_expansion2 = __commonJS({ if (isSequence) { n = m.body.split(/\.\./); } else { - n = parseCommaParts(m.body); + n = parseCommaParts2(m.body); if (n.length === 1) { - n = expand2(n[0], max, false).map(embrace); + n = expand3(n[0], max, false).map(embrace2); if (n.length === 1) { return post.map(function(p) { return m.pre + n[0] + p; @@ -88852,19 +88852,19 @@ var require_brace_expansion2 = __commonJS({ } var N; if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); + var x = numeric2(n[0]); + var y = numeric2(n[1]); var width = Math.max(n[0].length, n[1].length); - var incr = n.length == 3 ? Math.max(Math.abs(numeric(n[2])), 1) : 1; - var test = lte; + var incr = n.length == 3 ? Math.max(Math.abs(numeric2(n[2])), 1) : 1; + var test = lte2; var reverse = y < x; if (reverse) { incr *= -1; - test = gte6; + test = gte7; } - var pad = n.some(isPadded); + var pad = n.some(isPadded2); N = []; - for (var i = x; test(i, y); i += incr) { + for (var i = x; test(i, y) && N.length < max; i += incr) { var c; if (isAlphaSequence) { c = String.fromCharCode(i); @@ -88888,7 +88888,7 @@ var require_brace_expansion2 = __commonJS({ } else { N = []; for (var j = 0; j < n.length; j++) { - N.push.apply(N, expand2(n[j], max, false)); + N.push.apply(N, expand3(n[j], max, false)); } } for (var j = 0; j < N.length; j++) { @@ -88904,22 +88904,22 @@ var require_brace_expansion2 = __commonJS({ } }); -// node_modules/readdir-glob/node_modules/minimatch/minimatch.js +// node_modules/@actions/artifact/node_modules/minimatch/minimatch.js var require_minimatch2 = __commonJS({ - "node_modules/readdir-glob/node_modules/minimatch/minimatch.js"(exports2, module2) { - var minimatch = module2.exports = (p, pattern, options = {}) => { - assertValidPattern(pattern); + "node_modules/@actions/artifact/node_modules/minimatch/minimatch.js"(exports2, module2) { + var minimatch2 = module2.exports = (p, pattern, options = {}) => { + assertValidPattern2(pattern); if (!options.nocomment && pattern.charAt(0) === "#") { return false; } - return new Minimatch(pattern, options).match(p); + return new Minimatch2(pattern, options).match(p); }; - module2.exports = minimatch; - var path28 = require_path(); - minimatch.sep = path28.sep; - var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **"); - minimatch.GLOBSTAR = GLOBSTAR; - var expand2 = require_brace_expansion2(); + module2.exports = minimatch2; + var path29 = require_path(); + minimatch2.sep = path29.sep; + var GLOBSTAR2 = /* @__PURE__ */ Symbol("globstar **"); + minimatch2.GLOBSTAR = GLOBSTAR2; + var expand3 = require_brace_expansion2(); var plTypes = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, @@ -88927,64 +88927,64 @@ var require_minimatch2 = __commonJS({ "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } }; - var qmark = "[^/]"; - var star = qmark + "*?"; - var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; - var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; + var qmark3 = "[^/]"; + var star3 = qmark3 + "*?"; + var twoStarDot2 = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; + var twoStarNoDot2 = "(?:(?!(?:\\/|^)\\.).)*?"; var charSet = (s) => s.split("").reduce((set, c) => { set[c] = true; return set; }, {}); - var reSpecials = charSet("().*{}+?[]^$\\!"); + var reSpecials2 = charSet("().*{}+?[]^$\\!"); var addPatternStartSet = charSet("[.("); var slashSplit = /\/+/; - minimatch.filter = (pattern, options = {}) => (p, i, list) => minimatch(p, pattern, options); - var ext = (a, b = {}) => { + minimatch2.filter = (pattern, options = {}) => (p, i, list) => minimatch2(p, pattern, options); + var ext2 = (a, b = {}) => { const t = {}; Object.keys(a).forEach((k) => t[k] = a[k]); Object.keys(b).forEach((k) => t[k] = b[k]); return t; }; - minimatch.defaults = (def) => { + minimatch2.defaults = (def) => { if (!def || typeof def !== "object" || !Object.keys(def).length) { - return minimatch; + return minimatch2; } - const orig = minimatch; - const m = (p, pattern, options) => orig(p, pattern, ext(def, options)); + const orig = minimatch2; + const m = (p, pattern, options) => orig(p, pattern, ext2(def, options)); m.Minimatch = class Minimatch extends orig.Minimatch { constructor(pattern, options) { - super(pattern, ext(def, options)); + super(pattern, ext2(def, options)); } }; - m.Minimatch.defaults = (options) => orig.defaults(ext(def, options)).Minimatch; - m.filter = (pattern, options) => orig.filter(pattern, ext(def, options)); - m.defaults = (options) => orig.defaults(ext(def, options)); - m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options)); - m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options)); - m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options)); + m.Minimatch.defaults = (options) => orig.defaults(ext2(def, options)).Minimatch; + m.filter = (pattern, options) => orig.filter(pattern, ext2(def, options)); + m.defaults = (options) => orig.defaults(ext2(def, options)); + m.makeRe = (pattern, options) => orig.makeRe(pattern, ext2(def, options)); + m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext2(def, options)); + m.match = (list, pattern, options) => orig.match(list, pattern, ext2(def, options)); return m; }; - minimatch.braceExpand = (pattern, options) => braceExpand(pattern, options); - var braceExpand = (pattern, options = {}) => { - assertValidPattern(pattern); + minimatch2.braceExpand = (pattern, options) => braceExpand2(pattern, options); + var braceExpand2 = (pattern, options = {}) => { + assertValidPattern2(pattern); if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } - return expand2(pattern); + return expand3(pattern); }; - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = (pattern) => { + var MAX_PATTERN_LENGTH2 = 1024 * 64; + var assertValidPattern2 = (pattern) => { if (typeof pattern !== "string") { throw new TypeError("invalid pattern"); } - if (pattern.length > MAX_PATTERN_LENGTH) { + if (pattern.length > MAX_PATTERN_LENGTH2) { throw new TypeError("pattern is too long"); } }; var SUBPARSE = /* @__PURE__ */ Symbol("subparse"); - minimatch.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe(); - minimatch.match = (list, pattern, options = {}) => { - const mm = new Minimatch(pattern, options); + minimatch2.makeRe = (pattern, options) => new Minimatch2(pattern, options || {}).makeRe(); + minimatch2.match = (list, pattern, options = {}) => { + const mm = new Minimatch2(pattern, options); list = list.filter((f) => mm.match(f)); if (mm.options.nonull && !list.length) { list.push(pattern); @@ -88993,11 +88993,11 @@ var require_minimatch2 = __commonJS({ }; var globUnescape = (s) => s.replace(/\\(.)/g, "$1"); var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1"); - var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + var regExpEscape3 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); var braExpEscape = (s) => s.replace(/[[\]\\]/g, "\\$&"); - var Minimatch = class { + var Minimatch2 = class { constructor(pattern, options) { - assertValidPattern(pattern); + assertValidPattern2(pattern); if (!options) options = {}; this.options = options; this.maxGlobstarRecursion = options.maxGlobstarRecursion !== void 0 ? options.maxGlobstarRecursion : 200; @@ -89057,7 +89057,7 @@ var require_minimatch2 = __commonJS({ // out of pattern, then that's fine, as long as all // the parts match. matchOne(file, pattern, partial) { - if (pattern.indexOf(GLOBSTAR) !== -1) { + if (pattern.indexOf(GLOBSTAR2) !== -1) { return this._matchGlobstar(file, pattern, partial, 0, 0); } return this._matchOne(file, pattern, partial, 0, 0); @@ -89065,14 +89065,14 @@ var require_minimatch2 = __commonJS({ _matchGlobstar(file, pattern, partial, fileIndex, patternIndex) { let firstgs = -1; for (let i = patternIndex; i < pattern.length; i++) { - if (pattern[i] === GLOBSTAR) { + if (pattern[i] === GLOBSTAR2) { firstgs = i; break; } } let lastgs = -1; for (let i = pattern.length - 1; i >= 0; i--) { - if (pattern[i] === GLOBSTAR) { + if (pattern[i] === GLOBSTAR2) { lastgs = i; break; } @@ -89119,7 +89119,7 @@ var require_minimatch2 = __commonJS({ let nonGsParts = 0; const nonGsPartsSums = [0]; for (const b of body) { - if (b === GLOBSTAR) { + if (b === GLOBSTAR2) { nonGsPartsSums.push(nonGsParts); currentBody = [[], 0]; bodySegments.push(currentBody); @@ -89195,7 +89195,7 @@ var require_minimatch2 = __commonJS({ const p = pattern[pi]; const f = file[fi]; this.debug(pattern, p, f); - if (p === false || p === GLOBSTAR) return false; + if (p === false || p === GLOBSTAR2) return false; let hit; if (typeof p === "string") { hit = f === p; @@ -89216,14 +89216,14 @@ var require_minimatch2 = __commonJS({ throw new Error("wtf?"); } braceExpand() { - return braceExpand(this.pattern, this.options); + return braceExpand2(this.pattern, this.options); } parse(pattern, isSub) { - assertValidPattern(pattern); + assertValidPattern2(pattern); const options = this.options; if (pattern === "**") { if (!options.noglobstar) - return GLOBSTAR; + return GLOBSTAR2; else pattern = "*"; } @@ -89248,11 +89248,11 @@ var require_minimatch2 = __commonJS({ if (stateChar) { switch (stateChar) { case "*": - re += star; + re += star3; hasMagic = true; break; case "?": - re += qmark; + re += qmark3; hasMagic = true; break; default: @@ -89269,7 +89269,7 @@ var require_minimatch2 = __commonJS({ if (c === "/") { return false; } - if (reSpecials[c]) { + if (reSpecials2[c]) { re += "\\"; } re += c; @@ -89395,7 +89395,7 @@ var require_minimatch2 = __commonJS({ continue; default: clearStateChar(); - if (reSpecials[c] && !(c === "^" && inClass)) { + if (reSpecials2[c] && !(c === "^" && inClass)) { re += "\\"; } re += c; @@ -89419,7 +89419,7 @@ var require_minimatch2 = __commonJS({ return $1 + $1 + $2 + "|"; }); this.debug("tail=%j\n %s", tail, tail, pl, re); - const t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; + const t = pl.type === "*" ? star3 : pl.type === "?" ? qmark3 : "\\" + pl.type; hasMagic = true; re = re.slice(0, pl.reStart) + t + "\\(" + tail; } @@ -89427,7 +89427,7 @@ var require_minimatch2 = __commonJS({ if (escaping) { re += "\\\\"; } - const addPatternStart = addPatternStartSet[re.charAt(0)]; + const addPatternStart2 = addPatternStartSet[re.charAt(0)]; for (let n = negativeLists.length - 1; n > -1; n--) { const nl = negativeLists[n]; const nlBefore = re.slice(0, nl.reStart); @@ -89447,7 +89447,7 @@ var require_minimatch2 = __commonJS({ if (re !== "" && hasMagic) { re = "(?=.)" + re; } - if (addPatternStart) { + if (addPatternStart2) { re = patternStart() + re; } if (isSub === SUBPARSE) { @@ -89477,19 +89477,19 @@ var require_minimatch2 = __commonJS({ return this.regexp; } const options = this.options; - const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; + const twoStar = options.noglobstar ? star3 : options.dot ? twoStarDot2 : twoStarNoDot2; const flags = options.nocase ? "i" : ""; let re = set.map((pattern) => { pattern = pattern.map( - (p) => typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src + (p) => typeof p === "string" ? regExpEscape3(p) : p === GLOBSTAR2 ? GLOBSTAR2 : p._src ).reduce((set2, p) => { - if (!(set2[set2.length - 1] === GLOBSTAR && p === GLOBSTAR)) { + if (!(set2[set2.length - 1] === GLOBSTAR2 && p === GLOBSTAR2)) { set2.push(p); } return set2; }, []); pattern.forEach((p, i) => { - if (p !== GLOBSTAR || pattern[i - 1] === GLOBSTAR) { + if (p !== GLOBSTAR2 || pattern[i - 1] === GLOBSTAR2) { return; } if (i === 0) { @@ -89502,10 +89502,10 @@ var require_minimatch2 = __commonJS({ pattern[i - 1] += "(?:\\/|" + twoStar + ")?"; } else { pattern[i - 1] += "(?:\\/|\\/" + twoStar + "\\/)" + pattern[i + 1]; - pattern[i + 1] = GLOBSTAR; + pattern[i + 1] = GLOBSTAR2; } }); - return pattern.filter((p) => p !== GLOBSTAR).join("/"); + return pattern.filter((p) => p !== GLOBSTAR2).join("/"); }).join("|"); re = "^(?:" + re + ")$"; if (this.negate) re = "^(?!" + re + ").*$"; @@ -89522,8 +89522,8 @@ var require_minimatch2 = __commonJS({ if (this.empty) return f === ""; if (f === "/" && partial) return true; const options = this.options; - if (path28.sep !== "/") { - f = f.split(path28.sep).join("/"); + if (path29.sep !== "/") { + f = f.split(path29.sep).join("/"); } f = f.split(slashSplit); this.debug(this.pattern, "split", f); @@ -89550,31 +89550,31 @@ var require_minimatch2 = __commonJS({ return this.negate; } static defaults(def) { - return minimatch.defaults(def).Minimatch; + return minimatch2.defaults(def).Minimatch; } }; - minimatch.Minimatch = Minimatch; + minimatch2.Minimatch = Minimatch2; } }); -// node_modules/readdir-glob/index.js +// node_modules/@actions/artifact/node_modules/readdir-glob/index.js var require_readdir_glob = __commonJS({ - "node_modules/readdir-glob/index.js"(exports2, module2) { - module2.exports = readdirGlob; - var fs30 = require("fs"); - var { EventEmitter } = require("events"); - var { Minimatch } = require_minimatch2(); - var { resolve: resolve13 } = require("path"); - function readdir(dir, strict) { - return new Promise((resolve14, reject) => { - fs30.readdir(dir, { withFileTypes: true }, (err, files) => { + "node_modules/@actions/artifact/node_modules/readdir-glob/index.js"(exports2, module2) { + module2.exports = readdirGlob2; + var fs31 = require("fs"); + var { EventEmitter: EventEmitter2 } = require("events"); + var { Minimatch: Minimatch2 } = require_minimatch2(); + var { resolve: resolve14 } = require("path"); + function readdir3(dir, strict) { + return new Promise((resolve15, reject) => { + fs31.readdir(dir, { withFileTypes: true }, (err, files) => { if (err) { switch (err.code) { case "ENOTDIR": if (strict) { reject(err); } else { - resolve14([]); + resolve15([]); } break; case "ENOTSUP": @@ -89584,7 +89584,7 @@ var require_readdir_glob = __commonJS({ case "ENAMETOOLONG": // Filename too long case "UNKNOWN": - resolve14([]); + resolve15([]); break; case "ELOOP": // Too many levels of symbolic links @@ -89593,36 +89593,36 @@ var require_readdir_glob = __commonJS({ break; } } else { - resolve14(files); + resolve15(files); } }); }); } - function stat(file, followSymlinks) { - return new Promise((resolve14, reject) => { - const statFunc = followSymlinks ? fs30.stat : fs30.lstat; + function stat2(file, followSymlinks) { + return new Promise((resolve15, reject) => { + const statFunc = followSymlinks ? fs31.stat : fs31.lstat; statFunc(file, (err, stats) => { if (err) { switch (err.code) { case "ENOENT": if (followSymlinks) { - resolve14(stat(file, false)); + resolve15(stat2(file, false)); } else { - resolve14(null); + resolve15(null); } break; default: - resolve14(null); + resolve15(null); break; } } else { - resolve14(stats); + resolve15(stats); } }); }); } - async function* exploreWalkAsync(dir, path28, followSymlinks, useStat, shouldSkip, strict) { - let files = await readdir(path28 + dir, strict); + async function* exploreWalkAsync2(dir, path29, followSymlinks, useStat, shouldSkip, strict) { + let files = await readdir3(path29 + dir, strict); for (const file of files) { let name = file.name; if (name === void 0) { @@ -89631,10 +89631,10 @@ var require_readdir_glob = __commonJS({ } const filename = dir + "/" + name; const relative3 = filename.slice(1); - const absolute = path28 + "/" + relative3; + const absolute = path29 + "/" + relative3; let stats = null; if (useStat || followSymlinks) { - stats = await stat(absolute, followSymlinks); + stats = await stat2(absolute, followSymlinks); } if (!stats && file.name !== void 0) { stats = file; @@ -89645,17 +89645,17 @@ var require_readdir_glob = __commonJS({ if (stats.isDirectory()) { if (!shouldSkip(relative3)) { yield { relative: relative3, absolute, stats }; - yield* exploreWalkAsync(filename, path28, followSymlinks, useStat, shouldSkip, false); + yield* exploreWalkAsync2(filename, path29, followSymlinks, useStat, shouldSkip, false); } } else { yield { relative: relative3, absolute, stats }; } } } - async function* explore(path28, followSymlinks, useStat, shouldSkip) { - yield* exploreWalkAsync("", path28, followSymlinks, useStat, shouldSkip, true); + async function* explore2(path29, followSymlinks, useStat, shouldSkip) { + yield* exploreWalkAsync2("", path29, followSymlinks, useStat, shouldSkip, true); } - function readOptions(options) { + function readOptions2(options) { return { pattern: options.pattern, dot: !!options.dot, @@ -89672,19 +89672,19 @@ var require_readdir_glob = __commonJS({ absolute: !!options.absolute }; } - var ReaddirGlob = class extends EventEmitter { + var ReaddirGlob3 = class extends EventEmitter2 { constructor(cwd, options, cb) { super(); if (typeof options === "function") { cb = options; options = null; } - this.options = readOptions(options || {}); + this.options = readOptions2(options || {}); this.matchers = []; if (this.options.pattern) { const matchers = Array.isArray(this.options.pattern) ? this.options.pattern : [this.options.pattern]; this.matchers = matchers.map( - (m) => new Minimatch(m, { + (m) => new Minimatch2(m, { dot: this.options.dot, noglobstar: this.options.noglobstar, matchBase: this.options.matchBase, @@ -89696,23 +89696,23 @@ var require_readdir_glob = __commonJS({ if (this.options.ignore) { const ignorePatterns = Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]; this.ignoreMatchers = ignorePatterns.map( - (ignore) => new Minimatch(ignore, { dot: true }) + (ignore) => new Minimatch2(ignore, { dot: true }) ); } this.skipMatchers = []; if (this.options.skip) { const skipPatterns = Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]; this.skipMatchers = skipPatterns.map( - (skip) => new Minimatch(skip, { dot: true }) + (skip) => new Minimatch2(skip, { dot: true }) ); } - this.iterator = explore(resolve13(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this)); + this.iterator = explore2(resolve14(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this)); this.paused = false; this.inactive = false; this.aborted = false; if (cb) { this._matches = []; - this.on("match", (match) => this._matches.push(this.options.absolute ? match.absolute : match.relative)); + this.on("match", (match2) => this._matches.push(this.options.absolute ? match2.absolute : match2.relative)); this.on("error", (err) => cb(err)); this.on("end", () => cb(null, this._matches)); } @@ -89772,10 +89772,10 @@ var require_readdir_glob = __commonJS({ } } }; - function readdirGlob(pattern, options, cb) { - return new ReaddirGlob(pattern, options, cb); + function readdirGlob2(pattern, options, cb) { + return new ReaddirGlob3(pattern, options, cb); } - readdirGlob.ReaddirGlob = ReaddirGlob; + readdirGlob2.ReaddirGlob = ReaddirGlob3; } }); @@ -89873,10 +89873,10 @@ var require_async = __commonJS({ if (typeof args[arity - 1] === "function") { return asyncFn.apply(this, args); } - return new Promise((resolve13, reject2) => { + return new Promise((resolve14, reject2) => { args[arity - 1] = (err, ...cbArgs) => { if (err) return reject2(err); - resolve13(cbArgs.length > 1 ? cbArgs : cbArgs[0]); + resolve14(cbArgs.length > 1 ? cbArgs : cbArgs[0]); }; asyncFn.apply(this, args); }); @@ -89900,9 +89900,9 @@ var require_async = __commonJS({ var counter = 0; var _iteratee = wrapAsync(iteratee); return eachfn(arr, (value, _2, iterCb) => { - var index2 = counter++; + var index3 = counter++; _iteratee(value, (err, v) => { - results[index2] = v; + results[index3] = v; iterCb(err); }); }, (err) => { @@ -90079,7 +90079,7 @@ var require_async = __commonJS({ var eachOfLimit$1 = awaitify(eachOfLimit, 4); function eachOfArrayLike(coll, iteratee, callback) { callback = once(callback); - var index2 = 0, completed = 0, { length } = coll, canceled = false; + var index3 = 0, completed = 0, { length } = coll, canceled = false; if (length === 0) { callback(null); } @@ -90094,8 +90094,8 @@ var require_async = __commonJS({ callback(null); } } - for (; index2 < length; index2++) { - iteratee(coll[index2], index2, onlyOnce(iteratorCallback)); + for (; index3 < length; index3++) { + iteratee(coll[index3], index3, onlyOnce(iteratorCallback)); } } function eachOfGeneric(coll, iteratee, callback) { @@ -90122,13 +90122,13 @@ var require_async = __commonJS({ var applyEachSeries = applyEach$1(mapSeries$1); const PROMISE_SYMBOL = /* @__PURE__ */ Symbol("promiseCallback"); function promiseCallback() { - let resolve13, reject2; + let resolve14, reject2; function callback(err, ...args) { if (err) return reject2(err); - resolve13(args.length > 1 ? args : args[0]); + resolve14(args.length > 1 ? args : args[0]); } callback[PROMISE_SYMBOL] = new Promise((res, rej) => { - resolve13 = res, reject2 = rej; + resolve14 = res, reject2 = rej; }); return callback; } @@ -90277,36 +90277,36 @@ var require_async = __commonJS({ var FN_ARG = /(=.+)?(\s*)$/; function stripComments(string2) { let stripped = ""; - let index2 = 0; + let index3 = 0; let endBlockComment = string2.indexOf("*/"); - while (index2 < string2.length) { - if (string2[index2] === "/" && string2[index2 + 1] === "/") { - let endIndex = string2.indexOf("\n", index2); - index2 = endIndex === -1 ? string2.length : endIndex; - } else if (endBlockComment !== -1 && string2[index2] === "/" && string2[index2 + 1] === "*") { - let endIndex = string2.indexOf("*/", index2); + while (index3 < string2.length) { + if (string2[index3] === "/" && string2[index3 + 1] === "/") { + let endIndex = string2.indexOf("\n", index3); + index3 = endIndex === -1 ? string2.length : endIndex; + } else if (endBlockComment !== -1 && string2[index3] === "/" && string2[index3 + 1] === "*") { + let endIndex = string2.indexOf("*/", index3); if (endIndex !== -1) { - index2 = endIndex + 2; - endBlockComment = string2.indexOf("*/", index2); + index3 = endIndex + 2; + endBlockComment = string2.indexOf("*/", index3); } else { - stripped += string2[index2]; - index2++; + stripped += string2[index3]; + index3++; } } else { - stripped += string2[index2]; - index2++; + stripped += string2[index3]; + index3++; } } return stripped; } function parseParams(func) { const src = stripComments(func.toString()); - let match = src.match(FN_ARGS); - if (!match) { - match = src.match(ARROW_FN_ARGS); + let match2 = src.match(FN_ARGS); + if (!match2) { + match2 = src.match(ARROW_FN_ARGS); } - if (!match) throw new Error("could not parse args in autoInject\nSource:\n" + src); - let [, args] = match; + if (!match2) throw new Error("could not parse args in autoInject\nSource:\n" + src); + let [, args] = match2; return args.replace(/\s/g, "").split(FN_ARG_SPLIT).map((arg) => arg.replace(FN_ARG, "").trim()); } function autoInject(tasks, callback) { @@ -90475,8 +90475,8 @@ var require_async = __commonJS({ }); } if (rejectOnError || !callback) { - return new Promise((resolve13, reject2) => { - res = resolve13; + return new Promise((resolve14, reject2) => { + res = resolve14; rej = reject2; }); } @@ -90486,11 +90486,11 @@ var require_async = __commonJS({ numRunning -= 1; for (var i = 0, l = tasks.length; i < l; i++) { var task = tasks[i]; - var index2 = workersList.indexOf(task); - if (index2 === 0) { + var index3 = workersList.indexOf(task); + if (index3 === 0) { workersList.shift(); - } else if (index2 > 0) { - workersList.splice(index2, 1); + } else if (index3 > 0) { + workersList.splice(index3, 1); } task.callback(err, ...args); if (err != null) { @@ -90515,10 +90515,10 @@ var require_async = __commonJS({ } const eventMethod = (name) => (handler2) => { if (!handler2) { - return new Promise((resolve13, reject2) => { + return new Promise((resolve14, reject2) => { once2(name, (err, data) => { if (err) return reject2(err); - resolve13(data); + resolve14(data); }); }); } @@ -90805,7 +90805,7 @@ var require_async = __commonJS({ }, callback); } function _withoutIndex(iteratee) { - return (value, index2, callback) => iteratee(value, callback); + return (value, index3, callback) => iteratee(value, callback); } function eachLimit$2(coll, iteratee, callback) { return eachOf$1(coll, _withoutIndex(wrapAsync(iteratee)), callback); @@ -90849,9 +90849,9 @@ var require_async = __commonJS({ var everySeries$1 = awaitify(everySeries, 3); function filterArray(eachfn, arr, iteratee, callback) { var truthValues = new Array(arr.length); - eachfn(arr, (x, index2, iterCb) => { + eachfn(arr, (x, index3, iterCb) => { iteratee(x, (err, v) => { - truthValues[index2] = !!v; + truthValues[index3] = !!v; iterCb(err); }); }, (err) => { @@ -90865,11 +90865,11 @@ var require_async = __commonJS({ } function filterGeneric(eachfn, coll, iteratee, callback) { var results = []; - eachfn(coll, (x, index2, iterCb) => { + eachfn(coll, (x, index3, iterCb) => { iteratee(x, (err, v) => { if (err) return iterCb(err); if (v) { - results.push({ index: index2, value: x }); + results.push({ index: index3, value: x }); } iterCb(err); }); @@ -90879,13 +90879,13 @@ var require_async = __commonJS({ }); } function _filter(eachfn, coll, iteratee, callback) { - var filter2 = isArrayLike(coll) ? filterArray : filterGeneric; - return filter2(eachfn, coll, wrapAsync(iteratee), callback); + var filter3 = isArrayLike(coll) ? filterArray : filterGeneric; + return filter3(eachfn, coll, wrapAsync(iteratee), callback); } - function filter(coll, iteratee, callback) { + function filter2(coll, iteratee, callback) { return _filter(eachOf$1, coll, iteratee, callback); } - var filter$1 = awaitify(filter, 3); + var filter$1 = awaitify(filter2, 3); function filterLimit(coll, limit, iteratee, callback) { return _filter(eachOfLimit$2(limit), coll, iteratee, callback); } @@ -91011,7 +91011,7 @@ var require_async = __commonJS({ function parallelLimit(tasks, limit, callback) { return _parallel(eachOfLimit$2(limit), tasks, callback); } - function queue(worker, concurrency) { + function queue2(worker, concurrency) { var _worker = wrapAsync(worker); return queue$1((items, cb) => { _worker(items[0], cb); @@ -91029,28 +91029,28 @@ var require_async = __commonJS({ this.heap = []; return this; } - percUp(index2) { + percUp(index3) { let p; - while (index2 > 0 && smaller(this.heap[index2], this.heap[p = parent(index2)])) { - let t = this.heap[index2]; - this.heap[index2] = this.heap[p]; + while (index3 > 0 && smaller(this.heap[index3], this.heap[p = parent(index3)])) { + let t = this.heap[index3]; + this.heap[index3] = this.heap[p]; this.heap[p] = t; - index2 = p; + index3 = p; } } - percDown(index2) { + percDown(index3) { let l; - while ((l = leftChi(index2)) < this.heap.length) { + while ((l = leftChi(index3)) < this.heap.length) { if (l + 1 < this.heap.length && smaller(this.heap[l + 1], this.heap[l])) { l = l + 1; } - if (smaller(this.heap[index2], this.heap[l])) { + if (smaller(this.heap[index3], this.heap[l])) { break; } - let t = this.heap[index2]; - this.heap[index2] = this.heap[l]; + let t = this.heap[index3]; + this.heap[index3] = this.heap[l]; this.heap[l] = t; - index2 = l; + index3 = l; } } push(node) { @@ -91105,7 +91105,7 @@ var require_async = __commonJS({ } } function priorityQueue(worker, concurrency) { - var q = queue(worker, concurrency); + var q = queue2(worker, concurrency); var { push, pushAsync @@ -91329,7 +91329,7 @@ var require_async = __commonJS({ fn(...args); }); } - function range(size) { + function range2(size) { var result = Array(size); while (size--) { result[size] = size; @@ -91338,7 +91338,7 @@ var require_async = __commonJS({ } function timesLimit(count, limit, iteratee, callback) { var _iteratee = wrapAsync(iteratee); - return mapLimit$1(range(count), limit, _iteratee, callback); + return mapLimit$1(range2(count), limit, _iteratee, callback); } function times(n, iteratee, callback) { return timesLimit(n, Infinity, iteratee, callback); @@ -91424,7 +91424,7 @@ var require_async = __commonJS({ nextTask([]); } var waterfall$1 = awaitify(waterfall); - var index = { + var index2 = { apply, applyEach, applyEachSeries, @@ -91473,7 +91473,7 @@ var require_async = __commonJS({ parallel, parallelLimit, priorityQueue, - queue, + queue: queue2, race: race$1, reduce: reduce$1, reduceRight, @@ -91549,7 +91549,7 @@ var require_async = __commonJS({ exports3.concatLimit = concatLimit$1; exports3.concatSeries = concatSeries$1; exports3.constant = constant$1; - exports3.default = index; + exports3.default = index2; exports3.detect = detect$1; exports3.detectLimit = detectLimit$1; exports3.detectSeries = detectSeries$1; @@ -91602,7 +91602,7 @@ var require_async = __commonJS({ exports3.parallel = parallel; exports3.parallelLimit = parallelLimit; exports3.priorityQueue = priorityQueue; - exports3.queue = queue; + exports3.queue = queue2; exports3.race = race$1; exports3.reduce = reduce$1; exports3.reduceRight = reduceRight; @@ -91665,54 +91665,54 @@ var require_polyfills = __commonJS({ } var chdir; module2.exports = patch; - function patch(fs30) { + function patch(fs31) { if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs30); - } - if (!fs30.lutimes) { - patchLutimes(fs30); - } - fs30.chown = chownFix(fs30.chown); - fs30.fchown = chownFix(fs30.fchown); - fs30.lchown = chownFix(fs30.lchown); - fs30.chmod = chmodFix(fs30.chmod); - fs30.fchmod = chmodFix(fs30.fchmod); - fs30.lchmod = chmodFix(fs30.lchmod); - fs30.chownSync = chownFixSync(fs30.chownSync); - fs30.fchownSync = chownFixSync(fs30.fchownSync); - fs30.lchownSync = chownFixSync(fs30.lchownSync); - fs30.chmodSync = chmodFixSync(fs30.chmodSync); - fs30.fchmodSync = chmodFixSync(fs30.fchmodSync); - fs30.lchmodSync = chmodFixSync(fs30.lchmodSync); - fs30.stat = statFix(fs30.stat); - fs30.fstat = statFix(fs30.fstat); - fs30.lstat = statFix(fs30.lstat); - fs30.statSync = statFixSync(fs30.statSync); - fs30.fstatSync = statFixSync(fs30.fstatSync); - fs30.lstatSync = statFixSync(fs30.lstatSync); - if (fs30.chmod && !fs30.lchmod) { - fs30.lchmod = function(path28, mode, cb) { + patchLchmod(fs31); + } + if (!fs31.lutimes) { + patchLutimes(fs31); + } + fs31.chown = chownFix(fs31.chown); + fs31.fchown = chownFix(fs31.fchown); + fs31.lchown = chownFix(fs31.lchown); + fs31.chmod = chmodFix(fs31.chmod); + fs31.fchmod = chmodFix(fs31.fchmod); + fs31.lchmod = chmodFix(fs31.lchmod); + fs31.chownSync = chownFixSync(fs31.chownSync); + fs31.fchownSync = chownFixSync(fs31.fchownSync); + fs31.lchownSync = chownFixSync(fs31.lchownSync); + fs31.chmodSync = chmodFixSync(fs31.chmodSync); + fs31.fchmodSync = chmodFixSync(fs31.fchmodSync); + fs31.lchmodSync = chmodFixSync(fs31.lchmodSync); + fs31.stat = statFix(fs31.stat); + fs31.fstat = statFix(fs31.fstat); + fs31.lstat = statFix(fs31.lstat); + fs31.statSync = statFixSync(fs31.statSync); + fs31.fstatSync = statFixSync(fs31.fstatSync); + fs31.lstatSync = statFixSync(fs31.lstatSync); + if (fs31.chmod && !fs31.lchmod) { + fs31.lchmod = function(path29, mode, cb) { if (cb) process.nextTick(cb); }; - fs30.lchmodSync = function() { + fs31.lchmodSync = function() { }; } - if (fs30.chown && !fs30.lchown) { - fs30.lchown = function(path28, uid, gid, cb) { + if (fs31.chown && !fs31.lchown) { + fs31.lchown = function(path29, uid, gid, cb) { if (cb) process.nextTick(cb); }; - fs30.lchownSync = function() { + fs31.lchownSync = function() { }; } if (platform2 === "win32") { - fs30.rename = typeof fs30.rename !== "function" ? fs30.rename : (function(fs$rename) { + fs31.rename = typeof fs31.rename !== "function" ? fs31.rename : (function(fs$rename) { function rename(from, to, cb) { var start = Date.now(); var backoff = 0; fs$rename(from, to, function CB(er) { if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) { setTimeout(function() { - fs30.stat(to, function(stater, st) { + fs31.stat(to, function(stater, st) { if (stater && stater.code === "ENOENT") fs$rename(from, to, CB); else @@ -91728,9 +91728,9 @@ var require_polyfills = __commonJS({ } if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename); return rename; - })(fs30.rename); + })(fs31.rename); } - fs30.read = typeof fs30.read !== "function" ? fs30.read : (function(fs$read) { + fs31.read = typeof fs31.read !== "function" ? fs31.read : (function(fs$read) { function read(fd, buffer, offset, length, position, callback_) { var callback; if (callback_ && typeof callback_ === "function") { @@ -91738,22 +91738,22 @@ var require_polyfills = __commonJS({ callback = function(er, _2, __) { if (er && er.code === "EAGAIN" && eagCounter < 10) { eagCounter++; - return fs$read.call(fs30, fd, buffer, offset, length, position, callback); + return fs$read.call(fs31, fd, buffer, offset, length, position, callback); } callback_.apply(this, arguments); }; } - return fs$read.call(fs30, fd, buffer, offset, length, position, callback); + return fs$read.call(fs31, fd, buffer, offset, length, position, callback); } if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read); return read; - })(fs30.read); - fs30.readSync = typeof fs30.readSync !== "function" ? fs30.readSync : /* @__PURE__ */ (function(fs$readSync) { + })(fs31.read); + fs31.readSync = typeof fs31.readSync !== "function" ? fs31.readSync : /* @__PURE__ */ (function(fs$readSync) { return function(fd, buffer, offset, length, position) { var eagCounter = 0; while (true) { try { - return fs$readSync.call(fs30, fd, buffer, offset, length, position); + return fs$readSync.call(fs31, fd, buffer, offset, length, position); } catch (er) { if (er.code === "EAGAIN" && eagCounter < 10) { eagCounter++; @@ -91763,11 +91763,11 @@ var require_polyfills = __commonJS({ } } }; - })(fs30.readSync); - function patchLchmod(fs31) { - fs31.lchmod = function(path28, mode, callback) { - fs31.open( - path28, + })(fs31.readSync); + function patchLchmod(fs32) { + fs32.lchmod = function(path29, mode, callback) { + fs32.open( + path29, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) { @@ -91775,80 +91775,80 @@ var require_polyfills = __commonJS({ if (callback) callback(err); return; } - fs31.fchmod(fd, mode, function(err2) { - fs31.close(fd, function(err22) { + fs32.fchmod(fd, mode, function(err2) { + fs32.close(fd, function(err22) { if (callback) callback(err2 || err22); }); }); } ); }; - fs31.lchmodSync = function(path28, mode) { - var fd = fs31.openSync(path28, constants.O_WRONLY | constants.O_SYMLINK, mode); + fs32.lchmodSync = function(path29, mode) { + var fd = fs32.openSync(path29, constants.O_WRONLY | constants.O_SYMLINK, mode); var threw = true; var ret; try { - ret = fs31.fchmodSync(fd, mode); + ret = fs32.fchmodSync(fd, mode); threw = false; } finally { if (threw) { try { - fs31.closeSync(fd); + fs32.closeSync(fd); } catch (er) { } } else { - fs31.closeSync(fd); + fs32.closeSync(fd); } } return ret; }; } - function patchLutimes(fs31) { - if (constants.hasOwnProperty("O_SYMLINK") && fs31.futimes) { - fs31.lutimes = function(path28, at, mt, cb) { - fs31.open(path28, constants.O_SYMLINK, function(er, fd) { + function patchLutimes(fs32) { + if (constants.hasOwnProperty("O_SYMLINK") && fs32.futimes) { + fs32.lutimes = function(path29, at, mt, cb) { + fs32.open(path29, constants.O_SYMLINK, function(er, fd) { if (er) { if (cb) cb(er); return; } - fs31.futimes(fd, at, mt, function(er2) { - fs31.close(fd, function(er22) { + fs32.futimes(fd, at, mt, function(er2) { + fs32.close(fd, function(er22) { if (cb) cb(er2 || er22); }); }); }); }; - fs31.lutimesSync = function(path28, at, mt) { - var fd = fs31.openSync(path28, constants.O_SYMLINK); + fs32.lutimesSync = function(path29, at, mt) { + var fd = fs32.openSync(path29, constants.O_SYMLINK); var ret; var threw = true; try { - ret = fs31.futimesSync(fd, at, mt); + ret = fs32.futimesSync(fd, at, mt); threw = false; } finally { if (threw) { try { - fs31.closeSync(fd); + fs32.closeSync(fd); } catch (er) { } } else { - fs31.closeSync(fd); + fs32.closeSync(fd); } } return ret; }; - } else if (fs31.futimes) { - fs31.lutimes = function(_a, _b, _c, cb) { + } else if (fs32.futimes) { + fs32.lutimes = function(_a2, _b, _c, cb) { if (cb) process.nextTick(cb); }; - fs31.lutimesSync = function() { + fs32.lutimesSync = function() { }; } } function chmodFix(orig) { if (!orig) return orig; return function(target, mode, cb) { - return orig.call(fs30, target, mode, function(er) { + return orig.call(fs31, target, mode, function(er) { if (chownErOk(er)) er = null; if (cb) cb.apply(this, arguments); }); @@ -91858,7 +91858,7 @@ var require_polyfills = __commonJS({ if (!orig) return orig; return function(target, mode) { try { - return orig.call(fs30, target, mode); + return orig.call(fs31, target, mode); } catch (er) { if (!chownErOk(er)) throw er; } @@ -91867,7 +91867,7 @@ var require_polyfills = __commonJS({ function chownFix(orig) { if (!orig) return orig; return function(target, uid, gid, cb) { - return orig.call(fs30, target, uid, gid, function(er) { + return orig.call(fs31, target, uid, gid, function(er) { if (chownErOk(er)) er = null; if (cb) cb.apply(this, arguments); }); @@ -91877,7 +91877,7 @@ var require_polyfills = __commonJS({ if (!orig) return orig; return function(target, uid, gid) { try { - return orig.call(fs30, target, uid, gid); + return orig.call(fs31, target, uid, gid); } catch (er) { if (!chownErOk(er)) throw er; } @@ -91897,13 +91897,13 @@ var require_polyfills = __commonJS({ } if (cb) cb.apply(this, arguments); } - return options ? orig.call(fs30, target, options, callback) : orig.call(fs30, target, callback); + return options ? orig.call(fs31, target, options, callback) : orig.call(fs31, target, callback); }; } function statFixSync(orig) { if (!orig) return orig; return function(target, options) { - var stats = options ? orig.call(fs30, target, options) : orig.call(fs30, target); + var stats = options ? orig.call(fs31, target, options) : orig.call(fs31, target); if (stats) { if (stats.uid < 0) stats.uid += 4294967296; if (stats.gid < 0) stats.gid += 4294967296; @@ -91932,16 +91932,16 @@ var require_legacy_streams = __commonJS({ "node_modules/graceful-fs/legacy-streams.js"(exports2, module2) { var Stream = require("stream").Stream; module2.exports = legacy; - function legacy(fs30) { + function legacy(fs31) { return { ReadStream, WriteStream }; - function ReadStream(path28, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path28, options); + function ReadStream(path29, options) { + if (!(this instanceof ReadStream)) return new ReadStream(path29, options); Stream.call(this); var self2 = this; - this.path = path28; + this.path = path29; this.fd = null; this.readable = true; this.paused = false; @@ -91950,8 +91950,8 @@ var require_legacy_streams = __commonJS({ this.bufferSize = 64 * 1024; options = options || {}; var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; + for (var index2 = 0, length = keys.length; index2 < length; index2++) { + var key = keys[index2]; this[key] = options[key]; } if (this.encoding) this.setEncoding(this.encoding); @@ -91975,7 +91975,7 @@ var require_legacy_streams = __commonJS({ }); return; } - fs30.open(this.path, this.flags, this.mode, function(err, fd) { + fs31.open(this.path, this.flags, this.mode, function(err, fd) { if (err) { self2.emit("error", err); self2.readable = false; @@ -91986,10 +91986,10 @@ var require_legacy_streams = __commonJS({ self2._read(); }); } - function WriteStream(path28, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path28, options); + function WriteStream(path29, options) { + if (!(this instanceof WriteStream)) return new WriteStream(path29, options); Stream.call(this); - this.path = path28; + this.path = path29; this.fd = null; this.writable = true; this.flags = "w"; @@ -91998,8 +91998,8 @@ var require_legacy_streams = __commonJS({ this.bytesWritten = 0; options = options || {}; var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; + for (var index2 = 0, length = keys.length; index2 < length; index2++) { + var key = keys[index2]; this[key] = options[key]; } if (this.start !== void 0) { @@ -92014,7 +92014,7 @@ var require_legacy_streams = __commonJS({ this.busy = false; this._queue = []; if (this.fd === null) { - this._open = fs30.open; + this._open = fs31.open; this._queue.push([this._open, this.path, this.flags, this.mode, void 0]); this.flush(); } @@ -92049,11 +92049,11 @@ var require_clone = __commonJS({ // node_modules/graceful-fs/graceful-fs.js var require_graceful_fs = __commonJS({ "node_modules/graceful-fs/graceful-fs.js"(exports2, module2) { - var fs30 = require("fs"); + var fs31 = require("fs"); var polyfills = require_polyfills(); var legacy = require_legacy_streams(); var clone = require_clone(); - var util = require("util"); + var util3 = require("util"); var gracefulQueue; var previousSymbol; if (typeof Symbol === "function" && typeof Symbol.for === "function") { @@ -92065,28 +92065,28 @@ var require_graceful_fs = __commonJS({ } function noop3() { } - function publishQueue(context5, queue2) { + function publishQueue(context5, queue3) { Object.defineProperty(context5, gracefulQueue, { get: function() { - return queue2; + return queue3; } }); } var debug6 = noop3; - if (util.debuglog) - debug6 = util.debuglog("gfs4"); + if (util3.debuglog) + debug6 = util3.debuglog("gfs4"); else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) debug6 = function() { - var m = util.format.apply(util, arguments); + var m = util3.format.apply(util3, arguments); m = "GFS4: " + m.split(/\n/).join("\nGFS4: "); console.error(m); }; - if (!fs30[gracefulQueue]) { - queue = global[gracefulQueue] || []; - publishQueue(fs30, queue); - fs30.close = (function(fs$close) { + if (!fs31[gracefulQueue]) { + queue2 = global[gracefulQueue] || []; + publishQueue(fs31, queue2); + fs31.close = (function(fs$close) { function close(fd, cb) { - return fs$close.call(fs30, fd, function(err) { + return fs$close.call(fs31, fd, function(err) { if (!err) { resetQueue(); } @@ -92098,48 +92098,48 @@ var require_graceful_fs = __commonJS({ value: fs$close }); return close; - })(fs30.close); - fs30.closeSync = (function(fs$closeSync) { + })(fs31.close); + fs31.closeSync = (function(fs$closeSync) { function closeSync(fd) { - fs$closeSync.apply(fs30, arguments); + fs$closeSync.apply(fs31, arguments); resetQueue(); } Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync }); return closeSync; - })(fs30.closeSync); + })(fs31.closeSync); if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) { process.on("exit", function() { - debug6(fs30[gracefulQueue]); - require("assert").equal(fs30[gracefulQueue].length, 0); + debug6(fs31[gracefulQueue]); + require("assert").equal(fs31[gracefulQueue].length, 0); }); } } - var queue; + var queue2; if (!global[gracefulQueue]) { - publishQueue(global, fs30[gracefulQueue]); - } - module2.exports = patch(clone(fs30)); - if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs30.__patched) { - module2.exports = patch(fs30); - fs30.__patched = true; - } - function patch(fs31) { - polyfills(fs31); - fs31.gracefulify = patch; - fs31.createReadStream = createReadStream3; - fs31.createWriteStream = createWriteStream3; - var fs$readFile = fs31.readFile; - fs31.readFile = readFile; - function readFile(path28, options, cb) { + publishQueue(global, fs31[gracefulQueue]); + } + module2.exports = patch(clone(fs31)); + if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs31.__patched) { + module2.exports = patch(fs31); + fs31.__patched = true; + } + function patch(fs32) { + polyfills(fs32); + fs32.gracefulify = patch; + fs32.createReadStream = createReadStream4; + fs32.createWriteStream = createWriteStream3; + var fs$readFile = fs32.readFile; + fs32.readFile = readFile; + function readFile(path29, options, cb) { if (typeof options === "function") cb = options, options = null; - return go$readFile(path28, options, cb); - function go$readFile(path29, options2, cb2, startTime) { - return fs$readFile(path29, options2, function(err) { + return go$readFile(path29, options, cb); + function go$readFile(path30, options2, cb2, startTime) { + return fs$readFile(path30, options2, function(err) { if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$readFile, [path29, options2, cb2], err, startTime || Date.now(), Date.now()]); + enqueue([go$readFile, [path30, options2, cb2], err, startTime || Date.now(), Date.now()]); else { if (typeof cb2 === "function") cb2.apply(this, arguments); @@ -92147,16 +92147,16 @@ var require_graceful_fs = __commonJS({ }); } } - var fs$writeFile = fs31.writeFile; - fs31.writeFile = writeFile; - function writeFile(path28, data, options, cb) { + var fs$writeFile = fs32.writeFile; + fs32.writeFile = writeFile; + function writeFile(path29, data, options, cb) { if (typeof options === "function") cb = options, options = null; - return go$writeFile(path28, data, options, cb); - function go$writeFile(path29, data2, options2, cb2, startTime) { - return fs$writeFile(path29, data2, options2, function(err) { + return go$writeFile(path29, data, options, cb); + function go$writeFile(path30, data2, options2, cb2, startTime) { + return fs$writeFile(path30, data2, options2, function(err) { if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$writeFile, [path29, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); + enqueue([go$writeFile, [path30, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); else { if (typeof cb2 === "function") cb2.apply(this, arguments); @@ -92164,17 +92164,17 @@ var require_graceful_fs = __commonJS({ }); } } - var fs$appendFile = fs31.appendFile; + var fs$appendFile = fs32.appendFile; if (fs$appendFile) - fs31.appendFile = appendFile; - function appendFile(path28, data, options, cb) { + fs32.appendFile = appendFile; + function appendFile(path29, data, options, cb) { if (typeof options === "function") cb = options, options = null; - return go$appendFile(path28, data, options, cb); - function go$appendFile(path29, data2, options2, cb2, startTime) { - return fs$appendFile(path29, data2, options2, function(err) { + return go$appendFile(path29, data, options, cb); + function go$appendFile(path30, data2, options2, cb2, startTime) { + return fs$appendFile(path30, data2, options2, function(err) { if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$appendFile, [path29, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); + enqueue([go$appendFile, [path30, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); else { if (typeof cb2 === "function") cb2.apply(this, arguments); @@ -92182,9 +92182,9 @@ var require_graceful_fs = __commonJS({ }); } } - var fs$copyFile = fs31.copyFile; + var fs$copyFile = fs32.copyFile; if (fs$copyFile) - fs31.copyFile = copyFile2; + fs32.copyFile = copyFile2; function copyFile2(src, dest, flags, cb) { if (typeof flags === "function") { cb = flags; @@ -92202,34 +92202,34 @@ var require_graceful_fs = __commonJS({ }); } } - var fs$readdir = fs31.readdir; - fs31.readdir = readdir; + var fs$readdir = fs32.readdir; + fs32.readdir = readdir3; var noReaddirOptionVersions = /^v[0-5]\./; - function readdir(path28, options, cb) { + function readdir3(path29, options, cb) { if (typeof options === "function") cb = options, options = null; - var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path29, options2, cb2, startTime) { - return fs$readdir(path29, fs$readdirCallback( - path29, + var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path30, options2, cb2, startTime) { + return fs$readdir(path30, fs$readdirCallback( + path30, options2, cb2, startTime )); - } : function go$readdir2(path29, options2, cb2, startTime) { - return fs$readdir(path29, options2, fs$readdirCallback( - path29, + } : function go$readdir2(path30, options2, cb2, startTime) { + return fs$readdir(path30, options2, fs$readdirCallback( + path30, options2, cb2, startTime )); }; - return go$readdir(path28, options, cb); - function fs$readdirCallback(path29, options2, cb2, startTime) { + return go$readdir(path29, options, cb); + function fs$readdirCallback(path30, options2, cb2, startTime) { return function(err, files) { if (err && (err.code === "EMFILE" || err.code === "ENFILE")) enqueue([ go$readdir, - [path29, options2, cb2], + [path30, options2, cb2], err, startTime || Date.now(), Date.now() @@ -92244,21 +92244,21 @@ var require_graceful_fs = __commonJS({ } } if (process.version.substr(0, 4) === "v0.8") { - var legStreams = legacy(fs31); + var legStreams = legacy(fs32); ReadStream = legStreams.ReadStream; WriteStream = legStreams.WriteStream; } - var fs$ReadStream = fs31.ReadStream; + var fs$ReadStream = fs32.ReadStream; if (fs$ReadStream) { ReadStream.prototype = Object.create(fs$ReadStream.prototype); ReadStream.prototype.open = ReadStream$open; } - var fs$WriteStream = fs31.WriteStream; + var fs$WriteStream = fs32.WriteStream; if (fs$WriteStream) { WriteStream.prototype = Object.create(fs$WriteStream.prototype); WriteStream.prototype.open = WriteStream$open; } - Object.defineProperty(fs31, "ReadStream", { + Object.defineProperty(fs32, "ReadStream", { get: function() { return ReadStream; }, @@ -92268,7 +92268,7 @@ var require_graceful_fs = __commonJS({ enumerable: true, configurable: true }); - Object.defineProperty(fs31, "WriteStream", { + Object.defineProperty(fs32, "WriteStream", { get: function() { return WriteStream; }, @@ -92279,7 +92279,7 @@ var require_graceful_fs = __commonJS({ configurable: true }); var FileReadStream = ReadStream; - Object.defineProperty(fs31, "FileReadStream", { + Object.defineProperty(fs32, "FileReadStream", { get: function() { return FileReadStream; }, @@ -92290,7 +92290,7 @@ var require_graceful_fs = __commonJS({ configurable: true }); var FileWriteStream = WriteStream; - Object.defineProperty(fs31, "FileWriteStream", { + Object.defineProperty(fs32, "FileWriteStream", { get: function() { return FileWriteStream; }, @@ -92300,7 +92300,7 @@ var require_graceful_fs = __commonJS({ enumerable: true, configurable: true }); - function ReadStream(path28, options) { + function ReadStream(path29, options) { if (this instanceof ReadStream) return fs$ReadStream.apply(this, arguments), this; else @@ -92320,7 +92320,7 @@ var require_graceful_fs = __commonJS({ } }); } - function WriteStream(path28, options) { + function WriteStream(path29, options) { if (this instanceof WriteStream) return fs$WriteStream.apply(this, arguments), this; else @@ -92338,22 +92338,22 @@ var require_graceful_fs = __commonJS({ } }); } - function createReadStream3(path28, options) { - return new fs31.ReadStream(path28, options); + function createReadStream4(path29, options) { + return new fs32.ReadStream(path29, options); } - function createWriteStream3(path28, options) { - return new fs31.WriteStream(path28, options); + function createWriteStream3(path29, options) { + return new fs32.WriteStream(path29, options); } - var fs$open = fs31.open; - fs31.open = open; - function open(path28, flags, mode, cb) { + var fs$open = fs32.open; + fs32.open = open; + function open(path29, flags, mode, cb) { if (typeof mode === "function") cb = mode, mode = null; - return go$open(path28, flags, mode, cb); - function go$open(path29, flags2, mode2, cb2, startTime) { - return fs$open(path29, flags2, mode2, function(err, fd) { + return go$open(path29, flags, mode, cb); + function go$open(path30, flags2, mode2, cb2, startTime) { + return fs$open(path30, flags2, mode2, function(err, fd) { if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$open, [path29, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]); + enqueue([go$open, [path30, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]); else { if (typeof cb2 === "function") cb2.apply(this, arguments); @@ -92361,20 +92361,20 @@ var require_graceful_fs = __commonJS({ }); } } - return fs31; + return fs32; } function enqueue(elem) { debug6("ENQUEUE", elem[0].name, elem[1]); - fs30[gracefulQueue].push(elem); + fs31[gracefulQueue].push(elem); retry2(); } var retryTimer; function resetQueue() { var now = Date.now(); - for (var i = 0; i < fs30[gracefulQueue].length; ++i) { - if (fs30[gracefulQueue][i].length > 2) { - fs30[gracefulQueue][i][3] = now; - fs30[gracefulQueue][i][4] = now; + for (var i = 0; i < fs31[gracefulQueue].length; ++i) { + if (fs31[gracefulQueue][i].length > 2) { + fs31[gracefulQueue][i][3] = now; + fs31[gracefulQueue][i][4] = now; } } retry2(); @@ -92382,9 +92382,9 @@ var require_graceful_fs = __commonJS({ function retry2() { clearTimeout(retryTimer); retryTimer = void 0; - if (fs30[gracefulQueue].length === 0) + if (fs31[gracefulQueue].length === 0) return; - var elem = fs30[gracefulQueue].shift(); + var elem = fs31[gracefulQueue].shift(); var fn = elem[0]; var args = elem[1]; var err = elem[2]; @@ -92406,7 +92406,7 @@ var require_graceful_fs = __commonJS({ debug6("RETRY", fn.name, args); fn.apply(null, args.concat([startTime])); } else { - fs30[gracefulQueue].push(elem); + fs31[gracefulQueue].push(elem); } } if (retryTimer === void 0) { @@ -92420,12 +92420,12 @@ var require_graceful_fs = __commonJS({ var require_is_stream = __commonJS({ "node_modules/archiver-utils/node_modules/is-stream/index.js"(exports2, module2) { "use strict"; - var isStream = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function"; - isStream.writable = (stream2) => isStream(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object"; - isStream.readable = (stream2) => isStream(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object"; - isStream.duplex = (stream2) => isStream.writable(stream2) && isStream.readable(stream2); - isStream.transform = (stream2) => isStream.duplex(stream2) && typeof stream2._transform === "function"; - module2.exports = isStream; + var isStream2 = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function"; + isStream2.writable = (stream2) => isStream2(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object"; + isStream2.readable = (stream2) => isStream2(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object"; + isStream2.duplex = (stream2) => isStream2.writable(stream2) && isStream2.readable(stream2); + isStream2.transform = (stream2) => isStream2.duplex(stream2) && typeof stream2._transform === "function"; + module2.exports = isStream2; } }); @@ -92623,24 +92623,28 @@ var require_inherits_browser = __commonJS({ "node_modules/inherits/inherits_browser.js"(exports2, module2) { if (typeof Object.create === "function") { module2.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor; - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); + if (superCtor) { + ctor.super_ = superCtor; + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } + }); + } }; } else { module2.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor; - var TempCtor = function() { - }; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor(); - ctor.prototype.constructor = ctor; + if (superCtor) { + ctor.super_ = superCtor; + var TempCtor = function() { + }; + TempCtor.prototype = superCtor.prototype; + ctor.prototype = new TempCtor(); + ctor.prototype.constructor = ctor; + } }; } } @@ -92650,13 +92654,13 @@ var require_inherits_browser = __commonJS({ var require_inherits = __commonJS({ "node_modules/inherits/inherits.js"(exports2, module2) { try { - util = require("util"); - if (typeof util.inherits !== "function") throw ""; - module2.exports = util.inherits; + util3 = require("util"); + if (typeof util3.inherits !== "function") throw ""; + module2.exports = util3.inherits; } catch (e) { module2.exports = require_inherits_browser(); } - var util; + var util3; } }); @@ -92670,7 +92674,7 @@ var require_BufferList = __commonJS({ } } var Buffer2 = require_safe_buffer().Buffer; - var util = require("util"); + var util3 = require("util"); function copyBuffer(src, target, offset) { src.copy(target, offset); } @@ -92729,9 +92733,9 @@ var require_BufferList = __commonJS({ }; return BufferList; })(); - if (util && util.inspect && util.inspect.custom) { - module2.exports.prototype[util.inspect.custom] = function() { - var obj = util.inspect({ length: this.length }); + if (util3 && util3.inspect && util3.inspect.custom) { + module2.exports.prototype[util3.inspect.custom] = function() { + var obj = util3.inspect({ length: this.length }); return this.constructor.name + " " + obj; }; } @@ -92831,8 +92835,8 @@ var require_stream_writable = __commonJS({ var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; var Duplex; Writable.WritableState = WritableState; - var util = Object.create(require_util12()); - util.inherits = require_inherits(); + var util3 = Object.create(require_util12()); + util3.inherits = require_inherits(); var internalUtil = { deprecate: require_node2() }; @@ -92847,7 +92851,7 @@ var require_stream_writable = __commonJS({ return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; } var destroyImpl = require_destroy(); - util.inherits(Writable, Stream); + util3.inherits(Writable, Stream); function nop() { } function WritableState(options, stream2) { @@ -93267,11 +93271,11 @@ var require_stream_duplex = __commonJS({ return keys2; }; module2.exports = Duplex; - var util = Object.create(require_util12()); - util.inherits = require_inherits(); - var Readable2 = require_stream_readable(); + var util3 = Object.create(require_util12()); + util3.inherits = require_inherits(); + var Readable3 = require_stream_readable(); var Writable = require_stream_writable(); - util.inherits(Duplex, Readable2); + util3.inherits(Duplex, Readable3); { keys = objectKeys(Writable.prototype); for (v = 0; v < keys.length; v++) { @@ -93284,7 +93288,7 @@ var require_stream_duplex = __commonJS({ var v; function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); - Readable2.call(this, options); + Readable3.call(this, options); Writable.call(this, options); if (options && options.readable === false) this.readable = false; if (options && options.writable === false) this.writable = false; @@ -93574,10 +93578,10 @@ var require_stream_readable = __commonJS({ "node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) { "use strict"; var pna = require_process_nextick_args(); - module2.exports = Readable2; + module2.exports = Readable3; var isArray2 = require_isarray(); var Duplex; - Readable2.ReadableState = ReadableState; + Readable3.ReadableState = ReadableState; var EE = require("events").EventEmitter; var EElistenerCount = function(emitter, type) { return emitter.listeners(type).length; @@ -93592,8 +93596,8 @@ var require_stream_readable = __commonJS({ function _isUint8Array(obj) { return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; } - var util = Object.create(require_util12()); - util.inherits = require_inherits(); + var util3 = Object.create(require_util12()); + util3.inherits = require_inherits(); var debugUtil = require("util"); var debug6 = void 0; if (debugUtil && debugUtil.debuglog) { @@ -93605,7 +93609,7 @@ var require_stream_readable = __commonJS({ var BufferList = require_BufferList(); var destroyImpl = require_destroy(); var StringDecoder; - util.inherits(Readable2, Stream); + util3.inherits(Readable3, Stream); var kProxyEvents = ["error", "close", "destroy", "pause", "resume"]; function prependListener(emitter, event, fn) { if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn); @@ -93651,9 +93655,9 @@ var require_stream_readable = __commonJS({ this.encoding = options.encoding; } } - function Readable2(options) { + function Readable3(options) { Duplex = Duplex || require_stream_duplex(); - if (!(this instanceof Readable2)) return new Readable2(options); + if (!(this instanceof Readable3)) return new Readable3(options); this._readableState = new ReadableState(options, this); this.readable = true; if (options) { @@ -93662,7 +93666,7 @@ var require_stream_readable = __commonJS({ } Stream.call(this); } - Object.defineProperty(Readable2.prototype, "destroyed", { + Object.defineProperty(Readable3.prototype, "destroyed", { get: function() { if (this._readableState === void 0) { return false; @@ -93676,13 +93680,13 @@ var require_stream_readable = __commonJS({ this._readableState.destroyed = value; } }); - Readable2.prototype.destroy = destroyImpl.destroy; - Readable2.prototype._undestroy = destroyImpl.undestroy; - Readable2.prototype._destroy = function(err, cb) { + Readable3.prototype.destroy = destroyImpl.destroy; + Readable3.prototype._undestroy = destroyImpl.undestroy; + Readable3.prototype._destroy = function(err, cb) { this.push(null); cb(err); }; - Readable2.prototype.push = function(chunk, encoding) { + Readable3.prototype.push = function(chunk, encoding) { var state = this._readableState; var skipChunkCheck; if (!state.objectMode) { @@ -93699,7 +93703,7 @@ var require_stream_readable = __commonJS({ } return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); }; - Readable2.prototype.unshift = function(chunk) { + Readable3.prototype.unshift = function(chunk) { return readableAddChunk(this, chunk, null, true, false); }; function readableAddChunk(stream2, chunk, encoding, addToFront, skipChunkCheck) { @@ -93759,10 +93763,10 @@ var require_stream_readable = __commonJS({ function needMoreData(state) { return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); } - Readable2.prototype.isPaused = function() { + Readable3.prototype.isPaused = function() { return this._readableState.flowing === false; }; - Readable2.prototype.setEncoding = function(enc) { + Readable3.prototype.setEncoding = function(enc) { if (!StringDecoder) StringDecoder = require_string_decoder().StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; @@ -93798,7 +93802,7 @@ var require_stream_readable = __commonJS({ } return state.length; } - Readable2.prototype.read = function(n) { + Readable3.prototype.read = function(n) { debug6("read", n); n = parseInt(n, 10); var state = this._readableState; @@ -93893,10 +93897,10 @@ var require_stream_readable = __commonJS({ } state.readingMore = false; } - Readable2.prototype._read = function(n) { + Readable3.prototype._read = function(n) { this.emit("error", new Error("_read() is not implemented")); }; - Readable2.prototype.pipe = function(dest, pipeOpts) { + Readable3.prototype.pipe = function(dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { @@ -94001,7 +94005,7 @@ var require_stream_readable = __commonJS({ } }; } - Readable2.prototype.unpipe = function(dest) { + Readable3.prototype.unpipe = function(dest) { var state = this._readableState; var unpipeInfo = { hasUnpiped: false }; if (state.pipesCount === 0) return this; @@ -94025,15 +94029,15 @@ var require_stream_readable = __commonJS({ } return this; } - var index = indexOf(state.pipes, dest); - if (index === -1) return this; - state.pipes.splice(index, 1); + var index2 = indexOf(state.pipes, dest); + if (index2 === -1) return this; + state.pipes.splice(index2, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit("unpipe", this, unpipeInfo); return this; }; - Readable2.prototype.on = function(ev, fn) { + Readable3.prototype.on = function(ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); if (ev === "data") { if (this._readableState.flowing !== false) this.resume(); @@ -94051,12 +94055,12 @@ var require_stream_readable = __commonJS({ } return res; }; - Readable2.prototype.addListener = Readable2.prototype.on; + Readable3.prototype.addListener = Readable3.prototype.on; function nReadingNextTick(self2) { debug6("readable nexttick read 0"); self2.read(0); } - Readable2.prototype.resume = function() { + Readable3.prototype.resume = function() { var state = this._readableState; if (!state.flowing) { debug6("resume"); @@ -94082,7 +94086,7 @@ var require_stream_readable = __commonJS({ flow(stream2); if (state.flowing && !state.reading) stream2.read(0); } - Readable2.prototype.pause = function() { + Readable3.prototype.pause = function() { debug6("call pause flowing=%j", this._readableState.flowing); if (false !== this._readableState.flowing) { debug6("pause"); @@ -94097,7 +94101,7 @@ var require_stream_readable = __commonJS({ while (state.flowing && stream2.read() !== null) { } } - Readable2.prototype.wrap = function(stream2) { + Readable3.prototype.wrap = function(stream2) { var _this = this; var state = this._readableState; var paused = false; @@ -94141,7 +94145,7 @@ var require_stream_readable = __commonJS({ }; return this; }; - Object.defineProperty(Readable2.prototype, "readableHighWaterMark", { + Object.defineProperty(Readable3.prototype, "readableHighWaterMark", { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail @@ -94150,7 +94154,7 @@ var require_stream_readable = __commonJS({ return this._readableState.highWaterMark; } }); - Readable2._fromList = fromList; + Readable3._fromList = fromList; function fromList(n, state) { if (state.length === 0) return null; var ret; @@ -94259,11 +94263,11 @@ var require_stream_readable = __commonJS({ var require_stream_transform = __commonJS({ "node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) { "use strict"; - module2.exports = Transform; + module2.exports = Transform5; var Duplex = require_stream_duplex(); - var util = Object.create(require_util12()); - util.inherits = require_inherits(); - util.inherits(Transform, Duplex); + var util3 = Object.create(require_util12()); + util3.inherits = require_inherits(); + util3.inherits(Transform5, Duplex); function afterTransform(er, data) { var ts = this._transformState; ts.transforming = false; @@ -94282,8 +94286,8 @@ var require_stream_transform = __commonJS({ this._read(rs.highWaterMark); } } - function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); + function Transform5(options) { + if (!(this instanceof Transform5)) return new Transform5(options); Duplex.call(this, options); this._transformState = { afterTransform: afterTransform.bind(this), @@ -94311,14 +94315,14 @@ var require_stream_transform = __commonJS({ done(this, null, null); } } - Transform.prototype.push = function(chunk, encoding) { + Transform5.prototype.push = function(chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; - Transform.prototype._transform = function(chunk, encoding, cb) { + Transform5.prototype._transform = function(chunk, encoding, cb) { throw new Error("_transform() is not implemented"); }; - Transform.prototype._write = function(chunk, encoding, cb) { + Transform5.prototype._write = function(chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; @@ -94328,7 +94332,7 @@ var require_stream_transform = __commonJS({ if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; - Transform.prototype._read = function(n) { + Transform5.prototype._read = function(n) { var ts = this._transformState; if (ts.writechunk !== null && ts.writecb && !ts.transforming) { ts.transforming = true; @@ -94337,7 +94341,7 @@ var require_stream_transform = __commonJS({ ts.needTransform = true; } }; - Transform.prototype._destroy = function(err, cb) { + Transform5.prototype._destroy = function(err, cb) { var _this2 = this; Duplex.prototype._destroy.call(this, err, function(err2) { cb(err2); @@ -94359,16 +94363,16 @@ var require_stream_transform = __commonJS({ var require_stream_passthrough = __commonJS({ "node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) { "use strict"; - module2.exports = PassThrough; - var Transform = require_stream_transform(); - var util = Object.create(require_util12()); - util.inherits = require_inherits(); - util.inherits(PassThrough, Transform); - function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); - Transform.call(this, options); + module2.exports = PassThrough3; + var Transform5 = require_stream_transform(); + var util3 = Object.create(require_util12()); + util3.inherits = require_inherits(); + util3.inherits(PassThrough3, Transform5); + function PassThrough3(options) { + if (!(this instanceof PassThrough3)) return new PassThrough3(options); + Transform5.call(this, options); } - PassThrough.prototype._transform = function(chunk, encoding, cb) { + PassThrough3.prototype._transform = function(chunk, encoding, cb) { cb(null, chunk); }; } @@ -94409,14 +94413,14 @@ var require_passthrough = __commonJS({ // node_modules/lazystream/lib/lazystream.js var require_lazystream = __commonJS({ "node_modules/lazystream/lib/lazystream.js"(exports2, module2) { - var util = require("util"); - var PassThrough = require_passthrough(); + var util3 = require("util"); + var PassThrough3 = require_passthrough(); module2.exports = { - Readable: Readable2, + Readable: Readable3, Writable }; - util.inherits(Readable2, PassThrough); - util.inherits(Writable, PassThrough); + util3.inherits(Readable3, PassThrough3); + util3.inherits(Writable, PassThrough3); function beforeFirstCall(instance, method, callback) { instance[method] = function() { delete instance[method]; @@ -94424,10 +94428,10 @@ var require_lazystream = __commonJS({ return this[method].apply(this, arguments); }; } - function Readable2(fn, options) { - if (!(this instanceof Readable2)) - return new Readable2(fn, options); - PassThrough.call(this, options); + function Readable3(fn, options) { + if (!(this instanceof Readable3)) + return new Readable3(fn, options); + PassThrough3.call(this, options); beforeFirstCall(this, "_read", function() { var source = fn.call(this, options); var emit = this.emit.bind(this, "error"); @@ -94439,7 +94443,7 @@ var require_lazystream = __commonJS({ function Writable(fn, options) { if (!(this instanceof Writable)) return new Writable(fn, options); - PassThrough.call(this, options); + PassThrough3.call(this, options); beforeFirstCall(this, "_write", function() { var destination = fn.call(this, options); var emit = this.emit.bind(this, "error"); @@ -94454,22 +94458,22 @@ var require_lazystream = __commonJS({ // node_modules/normalize-path/index.js var require_normalize_path = __commonJS({ "node_modules/normalize-path/index.js"(exports2, module2) { - module2.exports = function(path28, stripTrailing) { - if (typeof path28 !== "string") { + module2.exports = function(path29, stripTrailing) { + if (typeof path29 !== "string") { throw new TypeError("expected path to be a string"); } - if (path28 === "\\" || path28 === "/") return "/"; - var len = path28.length; - if (len <= 1) return path28; + if (path29 === "\\" || path29 === "/") return "/"; + var len = path29.length; + if (len <= 1) return path29; var prefix = ""; - if (len > 4 && path28[3] === "\\") { - var ch = path28[2]; - if ((ch === "?" || ch === ".") && path28.slice(0, 2) === "\\\\") { - path28 = path28.slice(2); + if (len > 4 && path29[3] === "\\") { + var ch = path29[2]; + if ((ch === "?" || ch === ".") && path29.slice(0, 2) === "\\\\") { + path29 = path29.slice(2); prefix = "//"; } } - var segs = path28.split(/[/\\]+/); + var segs = path29.split(/[/\\]+/); if (stripTrailing !== false && segs[segs.length - 1] === "") { segs.pop(); } @@ -94516,14 +94520,14 @@ var require_overRest = __commonJS({ function overRest(func, start, transform) { start = nativeMax(start === void 0 ? func.length - 1 : start, 0); return function() { - var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); - while (++index < length) { - array[index] = args[start + index]; + var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array(length); + while (++index2 < length) { + array[index2] = args[start + index2]; } - index = -1; + index2 = -1; var otherArgs = Array(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; + while (++index2 < start) { + otherArgs[index2] = args[index2]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); @@ -94895,13 +94899,13 @@ var require_isIterateeCall = __commonJS({ var isArrayLike = require_isArrayLike(); var isIndex = require_isIndex(); var isObject2 = require_isObject(); - function isIterateeCall(value, index, object) { + function isIterateeCall(value, index2, object) { if (!isObject2(object)) { return false; } - var type = typeof index; - if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) { - return eq(object[index], value); + var type = typeof index2; + if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) { + return eq(object[index2], value); } return false; } @@ -94913,9 +94917,9 @@ var require_isIterateeCall = __commonJS({ var require_baseTimes = __commonJS({ "node_modules/lodash/_baseTimes.js"(exports2, module2) { function baseTimes(n, iteratee) { - var index = -1, result = Array(n); - while (++index < n) { - result[index] = iteratee(index); + var index2 = -1, result = Array(n); + while (++index2 < n) { + result[index2] = iteratee(index2); } return result; } @@ -95058,9 +95062,9 @@ var require_nodeUtil = __commonJS({ var freeProcess = moduleExports && freeGlobal.process; var nodeUtil = (function() { try { - var types2 = freeModule && freeModule.require && freeModule.require("util").types; - if (types2) { - return types2; + var types3 = freeModule && freeModule.require && freeModule.require("util").types; + if (types3) { + return types3; } return freeProcess && freeProcess.binding && freeProcess.binding("util"); } catch (e) { @@ -95184,16 +95188,16 @@ var require_defaults = __commonJS({ var keysIn = require_keysIn(); var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; - var defaults = baseRest(function(object, sources) { + var defaults2 = baseRest(function(object, sources) { object = Object(object); - var index = -1; + var index2 = -1; var length = sources.length; var guard = length > 2 ? sources[2] : void 0; if (guard && isIterateeCall(sources[0], sources[1], guard)) { length = 1; } - while (++index < length) { - var source = sources[index]; + while (++index2 < length) { + var source = sources[index2]; var props = keysIn(source); var propsIndex = -1; var propsLength = props.length; @@ -95207,7 +95211,7 @@ var require_defaults = __commonJS({ } return object; }); - module2.exports = defaults; + module2.exports = defaults2; } }); @@ -95215,7 +95219,23 @@ var require_defaults = __commonJS({ var require_primordials = __commonJS({ "node_modules/readable-stream/lib/ours/primordials.js"(exports2, module2) { "use strict"; + var AggregateError = class extends Error { + constructor(errors) { + if (!Array.isArray(errors)) { + throw new TypeError(`Expected input to be an Array, got ${typeof errors}`); + } + let message = ""; + for (let i = 0; i < errors.length; i++) { + message += ` ${errors[i].stack} +`; + } + super(message); + this.name = "AggregateError"; + this.errors = errors; + } + }; module2.exports = { + AggregateError, ArrayIsArray(self2) { return Array.isArray(self2); }, @@ -95225,8 +95245,8 @@ var require_primordials = __commonJS({ ArrayPrototypeIndexOf(self2, el) { return self2.indexOf(el); }, - ArrayPrototypeJoin(self2, sep6) { - return self2.join(sep6); + ArrayPrototypeJoin(self2, sep7) { + return self2.join(sep7); }, ArrayPrototypeMap(self2, fn) { return self2.map(fn); @@ -95316,6 +95336,375 @@ var require_primordials = __commonJS({ } }); +// node_modules/readable-stream/lib/ours/util/inspect.js +var require_inspect2 = __commonJS({ + "node_modules/readable-stream/lib/ours/util/inspect.js"(exports2, module2) { + "use strict"; + module2.exports = { + format(format, ...args) { + return format.replace(/%([sdifj])/g, function(...[_unused, type]) { + const replacement = args.shift(); + if (type === "f") { + return replacement.toFixed(6); + } else if (type === "j") { + return JSON.stringify(replacement); + } else if (type === "s" && typeof replacement === "object") { + const ctor = replacement.constructor !== Object ? replacement.constructor.name : ""; + return `${ctor} {}`.trim(); + } else { + return replacement.toString(); + } + }); + }, + inspect(value) { + switch (typeof value) { + case "string": + if (value.includes("'")) { + if (!value.includes('"')) { + return `"${value}"`; + } else if (!value.includes("`") && !value.includes("${")) { + return `\`${value}\``; + } + } + return `'${value}'`; + case "number": + if (isNaN(value)) { + return "NaN"; + } else if (Object.is(value, -0)) { + return String(value); + } + return value; + case "bigint": + return `${String(value)}n`; + case "boolean": + case "undefined": + return String(value); + case "object": + return "{}"; + } + } + }; + } +}); + +// node_modules/readable-stream/lib/ours/errors.js +var require_errors4 = __commonJS({ + "node_modules/readable-stream/lib/ours/errors.js"(exports2, module2) { + "use strict"; + var { format, inspect } = require_inspect2(); + var { AggregateError: CustomAggregateError } = require_primordials(); + var AggregateError = globalThis.AggregateError || CustomAggregateError; + var kIsNodeError = /* @__PURE__ */ Symbol("kIsNodeError"); + var kTypes = [ + "string", + "function", + "number", + "object", + // Accept 'Function' and 'Object' as alternative to the lower cased version. + "Function", + "Object", + "boolean", + "bigint", + "symbol" + ]; + var classRegExp = /^([A-Z][a-z0-9]*)+$/; + var nodeInternalPrefix = "__node_internal_"; + var codes = {}; + function assert(value, message) { + if (!value) { + throw new codes.ERR_INTERNAL_ASSERTION(message); + } + } + function addNumericalSeparator(val) { + let res = ""; + let i = val.length; + const start = val[0] === "-" ? 1 : 0; + for (; i >= start + 4; i -= 3) { + res = `_${val.slice(i - 3, i)}${res}`; + } + return `${val.slice(0, i)}${res}`; + } + function getMessage(key, msg, args) { + if (typeof msg === "function") { + assert( + msg.length <= args.length, + // Default options do not count. + `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).` + ); + return msg(...args); + } + const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length; + assert( + expectedLength === args.length, + `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).` + ); + if (args.length === 0) { + return msg; + } + return format(msg, ...args); + } + function E(code, message, Base) { + if (!Base) { + Base = Error; + } + class NodeError extends Base { + constructor(...args) { + super(getMessage(code, message, args)); + } + toString() { + return `${this.name} [${code}]: ${this.message}`; + } + } + Object.defineProperties(NodeError.prototype, { + name: { + value: Base.name, + writable: true, + enumerable: false, + configurable: true + }, + toString: { + value() { + return `${this.name} [${code}]: ${this.message}`; + }, + writable: true, + enumerable: false, + configurable: true + } + }); + NodeError.prototype.code = code; + NodeError.prototype[kIsNodeError] = true; + codes[code] = NodeError; + } + function hideStackFrames(fn) { + const hidden = nodeInternalPrefix + fn.name; + Object.defineProperty(fn, "name", { + value: hidden + }); + return fn; + } + function aggregateTwoErrors(innerError, outerError) { + if (innerError && outerError && innerError !== outerError) { + if (Array.isArray(outerError.errors)) { + outerError.errors.push(innerError); + return outerError; + } + const err = new AggregateError([outerError, innerError], outerError.message); + err.code = outerError.code; + return err; + } + return innerError || outerError; + } + var AbortError = class extends Error { + constructor(message = "The operation was aborted", options = void 0) { + if (options !== void 0 && typeof options !== "object") { + throw new codes.ERR_INVALID_ARG_TYPE("options", "Object", options); + } + super(message, options); + this.code = "ABORT_ERR"; + this.name = "AbortError"; + } + }; + E("ERR_ASSERTION", "%s", Error); + E( + "ERR_INVALID_ARG_TYPE", + (name, expected, actual) => { + assert(typeof name === "string", "'name' must be a string"); + if (!Array.isArray(expected)) { + expected = [expected]; + } + let msg = "The "; + if (name.endsWith(" argument")) { + msg += `${name} `; + } else { + msg += `"${name}" ${name.includes(".") ? "property" : "argument"} `; + } + msg += "must be "; + const types3 = []; + const instances = []; + const other = []; + for (const value of expected) { + assert(typeof value === "string", "All expected entries have to be of type string"); + if (kTypes.includes(value)) { + types3.push(value.toLowerCase()); + } else if (classRegExp.test(value)) { + instances.push(value); + } else { + assert(value !== "object", 'The value "object" should be written as "Object"'); + other.push(value); + } + } + if (instances.length > 0) { + const pos = types3.indexOf("object"); + if (pos !== -1) { + types3.splice(types3, pos, 1); + instances.push("Object"); + } + } + if (types3.length > 0) { + switch (types3.length) { + case 1: + msg += `of type ${types3[0]}`; + break; + case 2: + msg += `one of type ${types3[0]} or ${types3[1]}`; + break; + default: { + const last = types3.pop(); + msg += `one of type ${types3.join(", ")}, or ${last}`; + } + } + if (instances.length > 0 || other.length > 0) { + msg += " or "; + } + } + if (instances.length > 0) { + switch (instances.length) { + case 1: + msg += `an instance of ${instances[0]}`; + break; + case 2: + msg += `an instance of ${instances[0]} or ${instances[1]}`; + break; + default: { + const last = instances.pop(); + msg += `an instance of ${instances.join(", ")}, or ${last}`; + } + } + if (other.length > 0) { + msg += " or "; + } + } + switch (other.length) { + case 0: + break; + case 1: + if (other[0].toLowerCase() !== other[0]) { + msg += "an "; + } + msg += `${other[0]}`; + break; + case 2: + msg += `one of ${other[0]} or ${other[1]}`; + break; + default: { + const last = other.pop(); + msg += `one of ${other.join(", ")}, or ${last}`; + } + } + if (actual == null) { + msg += `. Received ${actual}`; + } else if (typeof actual === "function" && actual.name) { + msg += `. Received function ${actual.name}`; + } else if (typeof actual === "object") { + var _actual$constructor; + if ((_actual$constructor = actual.constructor) !== null && _actual$constructor !== void 0 && _actual$constructor.name) { + msg += `. Received an instance of ${actual.constructor.name}`; + } else { + const inspected = inspect(actual, { + depth: -1 + }); + msg += `. Received ${inspected}`; + } + } else { + let inspected = inspect(actual, { + colors: false + }); + if (inspected.length > 25) { + inspected = `${inspected.slice(0, 25)}...`; + } + msg += `. Received type ${typeof actual} (${inspected})`; + } + return msg; + }, + TypeError + ); + E( + "ERR_INVALID_ARG_VALUE", + (name, value, reason = "is invalid") => { + let inspected = inspect(value); + if (inspected.length > 128) { + inspected = inspected.slice(0, 128) + "..."; + } + const type = name.includes(".") ? "property" : "argument"; + return `The ${type} '${name}' ${reason}. Received ${inspected}`; + }, + TypeError + ); + E( + "ERR_INVALID_RETURN_VALUE", + (input, name, value) => { + var _value$constructor; + const type = value !== null && value !== void 0 && (_value$constructor = value.constructor) !== null && _value$constructor !== void 0 && _value$constructor.name ? `instance of ${value.constructor.name}` : `type ${typeof value}`; + return `Expected ${input} to be returned from the "${name}" function but got ${type}.`; + }, + TypeError + ); + E( + "ERR_MISSING_ARGS", + (...args) => { + assert(args.length > 0, "At least one arg needs to be specified"); + let msg; + const len = args.length; + args = (Array.isArray(args) ? args : [args]).map((a) => `"${a}"`).join(" or "); + switch (len) { + case 1: + msg += `The ${args[0]} argument`; + break; + case 2: + msg += `The ${args[0]} and ${args[1]} arguments`; + break; + default: + { + const last = args.pop(); + msg += `The ${args.join(", ")}, and ${last} arguments`; + } + break; + } + return `${msg} must be specified`; + }, + TypeError + ); + E( + "ERR_OUT_OF_RANGE", + (str, range2, input) => { + assert(range2, 'Missing "range" argument'); + let received; + if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) { + received = addNumericalSeparator(String(input)); + } else if (typeof input === "bigint") { + received = String(input); + const limit = BigInt(2) ** BigInt(32); + if (input > limit || input < -limit) { + received = addNumericalSeparator(received); + } + received += "n"; + } else { + received = inspect(input); + } + return `The value of "${str}" is out of range. It must be ${range2}. Received ${received}`; + }, + RangeError + ); + E("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error); + E("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error); + E("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error); + E("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error); + E("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error); + E("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError); + E("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error); + E("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error); + E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error); + E("ERR_STREAM_WRITE_AFTER_END", "write after end", Error); + E("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError); + module2.exports = { + AbortError, + aggregateTwoErrors: hideStackFrames(aggregateTwoErrors), + hideStackFrames, + codes + }; + } +}); + // node_modules/event-target-shim/dist/event-target-shim.js var require_event_target_shim = __commonJS({ "node_modules/event-target-shim/dist/event-target-shim.js"(exports2, module2) { @@ -95736,11 +96125,11 @@ var require_event_target_shim = __commonJS({ return defineCustomEventTarget(arguments[0]); } if (arguments.length > 0) { - const types2 = new Array(arguments.length); + const types3 = new Array(arguments.length); for (let i = 0; i < arguments.length; ++i) { - types2[i] = arguments[i]; + types3[i] = arguments[i]; } - return defineCustomEventTarget(types2); + return defineCustomEventTarget(types3); } throw new TypeError("Cannot call a class as a function"); } @@ -95989,7 +96378,11 @@ var require_util13 = __commonJS({ "node_modules/readable-stream/lib/ours/util.js"(exports2, module2) { "use strict"; var bufferModule = require("buffer"); - var { kResistStopPropagation, SymbolDispose } = require_primordials(); + var { format, inspect } = require_inspect2(); + var { + codes: { ERR_INVALID_ARG_TYPE } + } = require_errors4(); + var { kResistStopPropagation, AggregateError, SymbolDispose } = require_primordials(); var AbortSignal2 = globalThis.AbortSignal || require_abort_controller().AbortSignal; var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController; var AsyncFunction = Object.getPrototypeOf(async function() { @@ -96006,21 +96399,8 @@ var require_util13 = __commonJS({ } }; var validateFunction = (value, name) => { - if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value); - }; - var AggregateError = class extends Error { - constructor(errors) { - if (!Array.isArray(errors)) { - throw new TypeError(`Expected input to be an Array, got ${typeof errors}`); - } - let message = ""; - for (let i = 0; i < errors.length; i++) { - message += ` ${errors[i].stack} -`; - } - super(message); - this.name = "AggregateError"; - this.errors = errors; + if (typeof value !== "function") { + throw new ERR_INVALID_ARG_TYPE(name, "Function", value); } }; module2.exports = { @@ -96037,25 +96417,25 @@ var require_util13 = __commonJS({ }; }, createDeferredPromise: function() { - let resolve13; + let resolve14; let reject; const promise = new Promise((res, rej) => { - resolve13 = res; + resolve14 = res; reject = rej; }); return { promise, - resolve: resolve13, + resolve: resolve14, reject }; }, promisify(fn) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { fn((err, ...args) => { if (err) { return reject(err); } - return resolve13(...args); + return resolve14(...args); }); }); }, @@ -96063,48 +96443,8 @@ var require_util13 = __commonJS({ return function() { }; }, - format(format, ...args) { - return format.replace(/%([sdifj])/g, function(...[_unused, type]) { - const replacement = args.shift(); - if (type === "f") { - return replacement.toFixed(6); - } else if (type === "j") { - return JSON.stringify(replacement); - } else if (type === "s" && typeof replacement === "object") { - const ctor = replacement.constructor !== Object ? replacement.constructor.name : ""; - return `${ctor} {}`.trim(); - } else { - return replacement.toString(); - } - }); - }, - inspect(value) { - switch (typeof value) { - case "string": - if (value.includes("'")) { - if (!value.includes('"')) { - return `"${value}"`; - } else if (!value.includes("`") && !value.includes("${")) { - return `\`${value}\``; - } - } - return `'${value}'`; - case "number": - if (isNaN(value)) { - return "NaN"; - } else if (Object.is(value, -0)) { - return String(value); - } - return value; - case "bigint": - return `${String(value)}n`; - case "boolean": - case "undefined": - return String(value); - case "object": - return "{}"; - } - }, + format, + inspect, types: { isAsyncFunction(fn) { return fn instanceof AsyncFunction; @@ -96172,322 +96512,6 @@ var require_util13 = __commonJS({ } }); -// node_modules/readable-stream/lib/ours/errors.js -var require_errors4 = __commonJS({ - "node_modules/readable-stream/lib/ours/errors.js"(exports2, module2) { - "use strict"; - var { format, inspect, AggregateError: CustomAggregateError } = require_util13(); - var AggregateError = globalThis.AggregateError || CustomAggregateError; - var kIsNodeError = /* @__PURE__ */ Symbol("kIsNodeError"); - var kTypes = [ - "string", - "function", - "number", - "object", - // Accept 'Function' and 'Object' as alternative to the lower cased version. - "Function", - "Object", - "boolean", - "bigint", - "symbol" - ]; - var classRegExp = /^([A-Z][a-z0-9]*)+$/; - var nodeInternalPrefix = "__node_internal_"; - var codes = {}; - function assert(value, message) { - if (!value) { - throw new codes.ERR_INTERNAL_ASSERTION(message); - } - } - function addNumericalSeparator(val) { - let res = ""; - let i = val.length; - const start = val[0] === "-" ? 1 : 0; - for (; i >= start + 4; i -= 3) { - res = `_${val.slice(i - 3, i)}${res}`; - } - return `${val.slice(0, i)}${res}`; - } - function getMessage(key, msg, args) { - if (typeof msg === "function") { - assert( - msg.length <= args.length, - // Default options do not count. - `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).` - ); - return msg(...args); - } - const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length; - assert( - expectedLength === args.length, - `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).` - ); - if (args.length === 0) { - return msg; - } - return format(msg, ...args); - } - function E(code, message, Base) { - if (!Base) { - Base = Error; - } - class NodeError extends Base { - constructor(...args) { - super(getMessage(code, message, args)); - } - toString() { - return `${this.name} [${code}]: ${this.message}`; - } - } - Object.defineProperties(NodeError.prototype, { - name: { - value: Base.name, - writable: true, - enumerable: false, - configurable: true - }, - toString: { - value() { - return `${this.name} [${code}]: ${this.message}`; - }, - writable: true, - enumerable: false, - configurable: true - } - }); - NodeError.prototype.code = code; - NodeError.prototype[kIsNodeError] = true; - codes[code] = NodeError; - } - function hideStackFrames(fn) { - const hidden = nodeInternalPrefix + fn.name; - Object.defineProperty(fn, "name", { - value: hidden - }); - return fn; - } - function aggregateTwoErrors(innerError, outerError) { - if (innerError && outerError && innerError !== outerError) { - if (Array.isArray(outerError.errors)) { - outerError.errors.push(innerError); - return outerError; - } - const err = new AggregateError([outerError, innerError], outerError.message); - err.code = outerError.code; - return err; - } - return innerError || outerError; - } - var AbortError = class extends Error { - constructor(message = "The operation was aborted", options = void 0) { - if (options !== void 0 && typeof options !== "object") { - throw new codes.ERR_INVALID_ARG_TYPE("options", "Object", options); - } - super(message, options); - this.code = "ABORT_ERR"; - this.name = "AbortError"; - } - }; - E("ERR_ASSERTION", "%s", Error); - E( - "ERR_INVALID_ARG_TYPE", - (name, expected, actual) => { - assert(typeof name === "string", "'name' must be a string"); - if (!Array.isArray(expected)) { - expected = [expected]; - } - let msg = "The "; - if (name.endsWith(" argument")) { - msg += `${name} `; - } else { - msg += `"${name}" ${name.includes(".") ? "property" : "argument"} `; - } - msg += "must be "; - const types2 = []; - const instances = []; - const other = []; - for (const value of expected) { - assert(typeof value === "string", "All expected entries have to be of type string"); - if (kTypes.includes(value)) { - types2.push(value.toLowerCase()); - } else if (classRegExp.test(value)) { - instances.push(value); - } else { - assert(value !== "object", 'The value "object" should be written as "Object"'); - other.push(value); - } - } - if (instances.length > 0) { - const pos = types2.indexOf("object"); - if (pos !== -1) { - types2.splice(types2, pos, 1); - instances.push("Object"); - } - } - if (types2.length > 0) { - switch (types2.length) { - case 1: - msg += `of type ${types2[0]}`; - break; - case 2: - msg += `one of type ${types2[0]} or ${types2[1]}`; - break; - default: { - const last = types2.pop(); - msg += `one of type ${types2.join(", ")}, or ${last}`; - } - } - if (instances.length > 0 || other.length > 0) { - msg += " or "; - } - } - if (instances.length > 0) { - switch (instances.length) { - case 1: - msg += `an instance of ${instances[0]}`; - break; - case 2: - msg += `an instance of ${instances[0]} or ${instances[1]}`; - break; - default: { - const last = instances.pop(); - msg += `an instance of ${instances.join(", ")}, or ${last}`; - } - } - if (other.length > 0) { - msg += " or "; - } - } - switch (other.length) { - case 0: - break; - case 1: - if (other[0].toLowerCase() !== other[0]) { - msg += "an "; - } - msg += `${other[0]}`; - break; - case 2: - msg += `one of ${other[0]} or ${other[1]}`; - break; - default: { - const last = other.pop(); - msg += `one of ${other.join(", ")}, or ${last}`; - } - } - if (actual == null) { - msg += `. Received ${actual}`; - } else if (typeof actual === "function" && actual.name) { - msg += `. Received function ${actual.name}`; - } else if (typeof actual === "object") { - var _actual$constructor; - if ((_actual$constructor = actual.constructor) !== null && _actual$constructor !== void 0 && _actual$constructor.name) { - msg += `. Received an instance of ${actual.constructor.name}`; - } else { - const inspected = inspect(actual, { - depth: -1 - }); - msg += `. Received ${inspected}`; - } - } else { - let inspected = inspect(actual, { - colors: false - }); - if (inspected.length > 25) { - inspected = `${inspected.slice(0, 25)}...`; - } - msg += `. Received type ${typeof actual} (${inspected})`; - } - return msg; - }, - TypeError - ); - E( - "ERR_INVALID_ARG_VALUE", - (name, value, reason = "is invalid") => { - let inspected = inspect(value); - if (inspected.length > 128) { - inspected = inspected.slice(0, 128) + "..."; - } - const type = name.includes(".") ? "property" : "argument"; - return `The ${type} '${name}' ${reason}. Received ${inspected}`; - }, - TypeError - ); - E( - "ERR_INVALID_RETURN_VALUE", - (input, name, value) => { - var _value$constructor; - const type = value !== null && value !== void 0 && (_value$constructor = value.constructor) !== null && _value$constructor !== void 0 && _value$constructor.name ? `instance of ${value.constructor.name}` : `type ${typeof value}`; - return `Expected ${input} to be returned from the "${name}" function but got ${type}.`; - }, - TypeError - ); - E( - "ERR_MISSING_ARGS", - (...args) => { - assert(args.length > 0, "At least one arg needs to be specified"); - let msg; - const len = args.length; - args = (Array.isArray(args) ? args : [args]).map((a) => `"${a}"`).join(" or "); - switch (len) { - case 1: - msg += `The ${args[0]} argument`; - break; - case 2: - msg += `The ${args[0]} and ${args[1]} arguments`; - break; - default: - { - const last = args.pop(); - msg += `The ${args.join(", ")}, and ${last} arguments`; - } - break; - } - return `${msg} must be specified`; - }, - TypeError - ); - E( - "ERR_OUT_OF_RANGE", - (str, range, input) => { - assert(range, 'Missing "range" argument'); - let received; - if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) { - received = addNumericalSeparator(String(input)); - } else if (typeof input === "bigint") { - received = String(input); - if (input > 2n ** 32n || input < -(2n ** 32n)) { - received = addNumericalSeparator(received); - } - received += "n"; - } else { - received = inspect(input); - } - return `The value of "${str}" is out of range. It must be ${range}. Received ${received}`; - }, - RangeError - ); - E("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error); - E("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error); - E("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error); - E("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error); - E("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error); - E("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError); - E("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error); - E("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error); - E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error); - E("ERR_STREAM_WRITE_AFTER_END", "write after end", Error); - E("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError); - module2.exports = { - AbortError, - aggregateTwoErrors: hideStackFrames(aggregateTwoErrors), - hideStackFrames, - codes - }; - } -}); - // node_modules/readable-stream/lib/internal/validators.js var require_validators = __commonJS({ "node_modules/readable-stream/lib/internal/validators.js"(exports2, module2) { @@ -96510,7 +96534,7 @@ var require_validators = __commonJS({ } = require_primordials(); var { hideStackFrames, - codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL } + codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL } } = require_errors4(); var { normalizeEncoding } = require_util13(); var { isAsyncFunction, isArrayBufferView } = require_util13().types; @@ -96537,13 +96561,13 @@ var require_validators = __commonJS({ return value; } var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => { - if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE2(name, "number", value); + if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value); if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, "an integer", value); if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value); }); var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => { if (typeof value !== "number") { - throw new ERR_INVALID_ARG_TYPE2(name, "number", value); + throw new ERR_INVALID_ARG_TYPE(name, "number", value); } if (!NumberIsInteger(value)) { throw new ERR_OUT_OF_RANGE(name, "an integer", value); @@ -96554,7 +96578,7 @@ var require_validators = __commonJS({ }); var validateUint32 = hideStackFrames((value, name, positive = false) => { if (typeof value !== "number") { - throw new ERR_INVALID_ARG_TYPE2(name, "number", value); + throw new ERR_INVALID_ARG_TYPE(name, "number", value); } if (!NumberIsInteger(value)) { throw new ERR_OUT_OF_RANGE(name, "an integer", value); @@ -96566,10 +96590,10 @@ var require_validators = __commonJS({ } }); function validateString(value, name) { - if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE2(name, "string", value); + if (typeof value !== "string") throw new ERR_INVALID_ARG_TYPE(name, "string", value); } function validateNumber(value, name, min = void 0, max) { - if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE2(name, "number", value); + if (typeof value !== "number") throw new ERR_INVALID_ARG_TYPE(name, "number", value); if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) { throw new ERR_OUT_OF_RANGE( name, @@ -96589,7 +96613,7 @@ var require_validators = __commonJS({ } }); function validateBoolean(value, name) { - if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE2(name, "boolean", value); + if (typeof value !== "boolean") throw new ERR_INVALID_ARG_TYPE(name, "boolean", value); } function getOwnPropertyValueOrDefault(options, key, defaultValue) { return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key]; @@ -96599,17 +96623,17 @@ var require_validators = __commonJS({ const allowFunction = getOwnPropertyValueOrDefault(options, "allowFunction", false); const nullable = getOwnPropertyValueOrDefault(options, "nullable", false); if (!nullable && value === null || !allowArray && ArrayIsArray(value) || typeof value !== "object" && (!allowFunction || typeof value !== "function")) { - throw new ERR_INVALID_ARG_TYPE2(name, "Object", value); + throw new ERR_INVALID_ARG_TYPE(name, "Object", value); } }); var validateDictionary = hideStackFrames((value, name) => { if (value != null && typeof value !== "object" && typeof value !== "function") { - throw new ERR_INVALID_ARG_TYPE2(name, "a dictionary", value); + throw new ERR_INVALID_ARG_TYPE(name, "a dictionary", value); } }); var validateArray = hideStackFrames((value, name, minLength = 0) => { if (!ArrayIsArray(value)) { - throw new ERR_INVALID_ARG_TYPE2(name, "Array", value); + throw new ERR_INVALID_ARG_TYPE(name, "Array", value); } if (value.length < minLength) { const reason = `must be longer than ${minLength}`; @@ -96634,7 +96658,7 @@ var require_validators = __commonJS({ const signal = value[i]; const indexedName = `${name}[${i}]`; if (signal == null) { - throw new ERR_INVALID_ARG_TYPE2(indexedName, "AbortSignal", signal); + throw new ERR_INVALID_ARG_TYPE(indexedName, "AbortSignal", signal); } validateAbortSignal(signal, indexedName); } @@ -96650,7 +96674,7 @@ var require_validators = __commonJS({ } var validateBuffer = hideStackFrames((buffer, name = "buffer") => { if (!isArrayBufferView(buffer)) { - throw new ERR_INVALID_ARG_TYPE2(name, ["Buffer", "TypedArray", "DataView"], buffer); + throw new ERR_INVALID_ARG_TYPE(name, ["Buffer", "TypedArray", "DataView"], buffer); } }); function validateEncoding(data, encoding) { @@ -96668,21 +96692,21 @@ var require_validators = __commonJS({ } var validateAbortSignal = hideStackFrames((signal, name) => { if (signal !== void 0 && (signal === null || typeof signal !== "object" || !("aborted" in signal))) { - throw new ERR_INVALID_ARG_TYPE2(name, "AbortSignal", signal); + throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal); } }); var validateFunction = hideStackFrames((value, name) => { - if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE2(name, "Function", value); + if (typeof value !== "function") throw new ERR_INVALID_ARG_TYPE(name, "Function", value); }); var validatePlainFunction = hideStackFrames((value, name) => { - if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE2(name, "Function", value); + if (typeof value !== "function" || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE(name, "Function", value); }); var validateUndefined = hideStackFrames((value, name) => { - if (value !== void 0) throw new ERR_INVALID_ARG_TYPE2(name, "undefined", value); + if (value !== void 0) throw new ERR_INVALID_ARG_TYPE(name, "undefined", value); }); function validateUnion(value, name, union) { if (!ArrayPrototypeIncludes(union, value)) { - throw new ERR_INVALID_ARG_TYPE2(name, `('${ArrayPrototypeJoin(union, "|")}')`, value); + throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, "|")}')`, value); } } var linkValueRegExp = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/; @@ -96971,9 +96995,10 @@ var require_utils7 = __commonJS({ // node_modules/readable-stream/lib/internal/streams/end-of-stream.js var require_end_of_stream = __commonJS({ "node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) { + "use strict"; var process2 = require_process(); var { AbortError, codes } = require_errors4(); - var { ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, ERR_STREAM_PREMATURE_CLOSE } = codes; + var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes; var { kEmptyObject, once } = require_util13(); var { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators(); var { Promise: Promise2, PromisePrototypeThen, SymbolDispose } = require_primordials(); @@ -97016,7 +97041,7 @@ var require_end_of_stream = __commonJS({ return eosWeb(stream2, options, callback); } if (!isNodeStream(stream2)) { - throw new ERR_INVALID_ARG_TYPE2("stream", ["ReadableStream", "WritableStream", "Stream"], stream2); + throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream2); } const readable = (_options$readable = options.readable) !== null && _options$readable !== void 0 ? _options$readable : isReadableNodeStream(stream2); const writable = (_options$writable = options.writable) !== null && _options$writable !== void 0 ? _options$writable : isWritableNodeStream(stream2); @@ -97201,7 +97226,7 @@ var require_end_of_stream = __commonJS({ validateBoolean(opts.cleanup, "cleanup"); autoCleanup = opts.cleanup; } - return new Promise2((resolve13, reject) => { + return new Promise2((resolve14, reject) => { const cleanup = eos(stream2, opts, (err) => { if (autoCleanup) { cleanup(); @@ -97209,7 +97234,7 @@ var require_end_of_stream = __commonJS({ if (err) { reject(err); } else { - resolve13(); + resolve14(); } }); }); @@ -97570,17 +97595,17 @@ var require_add_abort_signal = __commonJS({ var { AbortError, codes } = require_errors4(); var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils7(); var eos = require_end_of_stream(); - var { ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2 } = codes; + var { ERR_INVALID_ARG_TYPE } = codes; var addAbortListener; var validateAbortSignal = (signal, name) => { if (typeof signal !== "object" || !("aborted" in signal)) { - throw new ERR_INVALID_ARG_TYPE2(name, "AbortSignal", signal); + throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal); } }; module2.exports.addAbortSignal = function addAbortSignal(signal, stream2) { validateAbortSignal(signal, "signal"); if (!isNodeStream(stream2) && !isWebStream(stream2)) { - throw new ERR_INVALID_ARG_TYPE2("stream", ["ReadableStream", "WritableStream", "Stream"], stream2); + throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream2); } return module2.exports.addAbortSignalNoValidate(signal, stream2); }; @@ -97810,6 +97835,302 @@ var require_state3 = __commonJS({ } }); +// node_modules/safe-buffer/index.js +var require_safe_buffer2 = __commonJS({ + "node_modules/safe-buffer/index.js"(exports2, module2) { + var buffer = require("buffer"); + var Buffer2 = buffer.Buffer; + function copyProps(src, dst) { + for (var key in src) { + dst[key] = src[key]; + } + } + if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) { + module2.exports = buffer; + } else { + copyProps(buffer, exports2); + exports2.Buffer = SafeBuffer; + } + function SafeBuffer(arg, encodingOrOffset, length) { + return Buffer2(arg, encodingOrOffset, length); + } + SafeBuffer.prototype = Object.create(Buffer2.prototype); + copyProps(Buffer2, SafeBuffer); + SafeBuffer.from = function(arg, encodingOrOffset, length) { + if (typeof arg === "number") { + throw new TypeError("Argument must not be a number"); + } + return Buffer2(arg, encodingOrOffset, length); + }; + SafeBuffer.alloc = function(size, fill, encoding) { + if (typeof size !== "number") { + throw new TypeError("Argument must be a number"); + } + var buf = Buffer2(size); + if (fill !== void 0) { + if (typeof encoding === "string") { + buf.fill(fill, encoding); + } else { + buf.fill(fill); + } + } else { + buf.fill(0); + } + return buf; + }; + SafeBuffer.allocUnsafe = function(size) { + if (typeof size !== "number") { + throw new TypeError("Argument must be a number"); + } + return Buffer2(size); + }; + SafeBuffer.allocUnsafeSlow = function(size) { + if (typeof size !== "number") { + throw new TypeError("Argument must be a number"); + } + return buffer.SlowBuffer(size); + }; + } +}); + +// node_modules/string_decoder/lib/string_decoder.js +var require_string_decoder2 = __commonJS({ + "node_modules/string_decoder/lib/string_decoder.js"(exports2) { + "use strict"; + var Buffer2 = require_safe_buffer2().Buffer; + var isEncoding = Buffer2.isEncoding || function(encoding) { + encoding = "" + encoding; + switch (encoding && encoding.toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + case "raw": + return true; + default: + return false; + } + }; + function _normalizeEncoding(enc) { + if (!enc) return "utf8"; + var retried; + while (true) { + switch (enc) { + case "utf8": + case "utf-8": + return "utf8"; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return "utf16le"; + case "latin1": + case "binary": + return "latin1"; + case "base64": + case "ascii": + case "hex": + return enc; + default: + if (retried) return; + enc = ("" + enc).toLowerCase(); + retried = true; + } + } + } + function normalizeEncoding(enc) { + var nenc = _normalizeEncoding(enc); + if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc); + return nenc || enc; + } + exports2.StringDecoder = StringDecoder; + function StringDecoder(encoding) { + this.encoding = normalizeEncoding(encoding); + var nb; + switch (this.encoding) { + case "utf16le": + this.text = utf16Text; + this.end = utf16End; + nb = 4; + break; + case "utf8": + this.fillLast = utf8FillLast; + nb = 4; + break; + case "base64": + this.text = base64Text; + this.end = base64End; + nb = 3; + break; + default: + this.write = simpleWrite; + this.end = simpleEnd; + return; + } + this.lastNeed = 0; + this.lastTotal = 0; + this.lastChar = Buffer2.allocUnsafe(nb); + } + StringDecoder.prototype.write = function(buf) { + if (buf.length === 0) return ""; + var r; + var i; + if (this.lastNeed) { + r = this.fillLast(buf); + if (r === void 0) return ""; + i = this.lastNeed; + this.lastNeed = 0; + } else { + i = 0; + } + if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i); + return r || ""; + }; + StringDecoder.prototype.end = utf8End; + StringDecoder.prototype.text = utf8Text; + StringDecoder.prototype.fillLast = function(buf) { + if (this.lastNeed <= buf.length) { + buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed); + return this.lastChar.toString(this.encoding, 0, this.lastTotal); + } + buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length); + this.lastNeed -= buf.length; + }; + function utf8CheckByte(byte) { + if (byte <= 127) return 0; + else if (byte >> 5 === 6) return 2; + else if (byte >> 4 === 14) return 3; + else if (byte >> 3 === 30) return 4; + return byte >> 6 === 2 ? -1 : -2; + } + function utf8CheckIncomplete(self2, buf, i) { + var j = buf.length - 1; + if (j < i) return 0; + var nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) self2.lastNeed = nb - 1; + return nb; + } + if (--j < i || nb === -2) return 0; + nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) self2.lastNeed = nb - 2; + return nb; + } + if (--j < i || nb === -2) return 0; + nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) { + if (nb === 2) nb = 0; + else self2.lastNeed = nb - 3; + } + return nb; + } + return 0; + } + function utf8CheckExtraBytes(self2, buf, p) { + if ((buf[0] & 192) !== 128) { + self2.lastNeed = 0; + return "\uFFFD"; + } + if (self2.lastNeed > 1 && buf.length > 1) { + if ((buf[1] & 192) !== 128) { + self2.lastNeed = 1; + return "\uFFFD"; + } + if (self2.lastNeed > 2 && buf.length > 2) { + if ((buf[2] & 192) !== 128) { + self2.lastNeed = 2; + return "\uFFFD"; + } + } + } + } + function utf8FillLast(buf) { + var p = this.lastTotal - this.lastNeed; + var r = utf8CheckExtraBytes(this, buf, p); + if (r !== void 0) return r; + if (this.lastNeed <= buf.length) { + buf.copy(this.lastChar, p, 0, this.lastNeed); + return this.lastChar.toString(this.encoding, 0, this.lastTotal); + } + buf.copy(this.lastChar, p, 0, buf.length); + this.lastNeed -= buf.length; + } + function utf8Text(buf, i) { + var total = utf8CheckIncomplete(this, buf, i); + if (!this.lastNeed) return buf.toString("utf8", i); + this.lastTotal = total; + var end = buf.length - (total - this.lastNeed); + buf.copy(this.lastChar, 0, end); + return buf.toString("utf8", i, end); + } + function utf8End(buf) { + var r = buf && buf.length ? this.write(buf) : ""; + if (this.lastNeed) return r + "\uFFFD"; + return r; + } + function utf16Text(buf, i) { + if ((buf.length - i) % 2 === 0) { + var r = buf.toString("utf16le", i); + if (r) { + var c = r.charCodeAt(r.length - 1); + if (c >= 55296 && c <= 56319) { + this.lastNeed = 2; + this.lastTotal = 4; + this.lastChar[0] = buf[buf.length - 2]; + this.lastChar[1] = buf[buf.length - 1]; + return r.slice(0, -1); + } + } + return r; + } + this.lastNeed = 1; + this.lastTotal = 2; + this.lastChar[0] = buf[buf.length - 1]; + return buf.toString("utf16le", i, buf.length - 1); + } + function utf16End(buf) { + var r = buf && buf.length ? this.write(buf) : ""; + if (this.lastNeed) { + var end = this.lastTotal - this.lastNeed; + return r + this.lastChar.toString("utf16le", 0, end); + } + return r; + } + function base64Text(buf, i) { + var n = (buf.length - i) % 3; + if (n === 0) return buf.toString("base64", i); + this.lastNeed = 3 - n; + this.lastTotal = 3; + if (n === 1) { + this.lastChar[0] = buf[buf.length - 1]; + } else { + this.lastChar[0] = buf[buf.length - 2]; + this.lastChar[1] = buf[buf.length - 1]; + } + return buf.toString("base64", i, buf.length - n); + } + function base64End(buf) { + var r = buf && buf.length ? this.write(buf) : ""; + if (this.lastNeed) return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed); + return r; + } + function simpleWrite(buf) { + return buf.toString(this.encoding); + } + function simpleEnd(buf) { + return buf && buf.length ? this.write(buf) : ""; + } + } +}); + // node_modules/readable-stream/lib/internal/streams/from.js var require_from = __commonJS({ "node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) { @@ -97817,11 +98138,11 @@ var require_from = __commonJS({ var process2 = require_process(); var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials(); var { Buffer: Buffer2 } = require("buffer"); - var { ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, ERR_STREAM_NULL_VALUES } = require_errors4().codes; - function from(Readable2, iterable, opts) { + var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors4().codes; + function from(Readable3, iterable, opts) { let iterator2; if (typeof iterable === "string" || iterable instanceof Buffer2) { - return new Readable2({ + return new Readable3({ objectMode: true, ...opts, read() { @@ -97838,9 +98159,9 @@ var require_from = __commonJS({ isAsync = false; iterator2 = iterable[SymbolIterator](); } else { - throw new ERR_INVALID_ARG_TYPE2("iterable", ["Iterable"], iterable); + throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable); } - const readable = new Readable2({ + const readable = new Readable3({ objectMode: true, highWaterMark: 1, // TODO(ronag): What options should be allowed? @@ -97908,6 +98229,7 @@ var require_from = __commonJS({ // node_modules/readable-stream/lib/internal/streams/readable.js var require_readable3 = __commonJS({ "node_modules/readable-stream/lib/internal/streams/readable.js"(exports2, module2) { + "use strict"; var process2 = require_process(); var { ArrayPrototypeIndexOf, @@ -97923,8 +98245,8 @@ var require_readable3 = __commonJS({ SymbolAsyncIterator, Symbol: Symbol2 } = require_primordials(); - module2.exports = Readable2; - Readable2.ReadableState = ReadableState; + module2.exports = Readable3; + Readable3.ReadableState = ReadableState; var { EventEmitter: EE } = require("events"); var { Stream, prependListener } = require_legacy(); var { Buffer: Buffer2 } = require("buffer"); @@ -97939,7 +98261,7 @@ var require_readable3 = __commonJS({ var { aggregateTwoErrors, codes: { - ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, + ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED, ERR_OUT_OF_RANGE, ERR_STREAM_PUSH_AFTER_EOF, @@ -97949,10 +98271,10 @@ var require_readable3 = __commonJS({ } = require_errors4(); var { validateObject } = require_validators(); var kPaused = Symbol2("kPaused"); - var { StringDecoder } = require("string_decoder"); + var { StringDecoder } = require_string_decoder2(); var from = require_from(); - ObjectSetPrototypeOf(Readable2.prototype, Stream.prototype); - ObjectSetPrototypeOf(Readable2, Stream); + ObjectSetPrototypeOf(Readable3.prototype, Stream.prototype); + ObjectSetPrototypeOf(Readable3, Stream); var nop = () => { }; var { errorOrDestroy } = destroyImpl; @@ -98047,8 +98369,8 @@ var require_readable3 = __commonJS({ this.encoding = options.encoding; } } - function Readable2(options) { - if (!(this instanceof Readable2)) return new Readable2(options); + function Readable3(options) { + if (!(this instanceof Readable3)) return new Readable3(options); const isDuplex = this instanceof require_duplex(); this._readableState = new ReadableState(options, this, isDuplex); if (options) { @@ -98064,26 +98386,26 @@ var require_readable3 = __commonJS({ } }); } - Readable2.prototype.destroy = destroyImpl.destroy; - Readable2.prototype._undestroy = destroyImpl.undestroy; - Readable2.prototype._destroy = function(err, cb) { + Readable3.prototype.destroy = destroyImpl.destroy; + Readable3.prototype._undestroy = destroyImpl.undestroy; + Readable3.prototype._destroy = function(err, cb) { cb(err); }; - Readable2.prototype[EE.captureRejectionSymbol] = function(err) { + Readable3.prototype[EE.captureRejectionSymbol] = function(err) { this.destroy(err); }; - Readable2.prototype[SymbolAsyncDispose] = function() { + Readable3.prototype[SymbolAsyncDispose] = function() { let error3; if (!this.destroyed) { error3 = this.readableEnded ? null : new AbortError(); this.destroy(error3); } - return new Promise2((resolve13, reject) => eos(this, (err) => err && err !== error3 ? reject(err) : resolve13(null))); + return new Promise2((resolve14, reject) => eos(this, (err) => err && err !== error3 ? reject(err) : resolve14(null))); }; - Readable2.prototype.push = function(chunk, encoding) { + Readable3.prototype.push = function(chunk, encoding) { return readableAddChunk(this, chunk, encoding, false); }; - Readable2.prototype.unshift = function(chunk, encoding) { + Readable3.prototype.unshift = function(chunk, encoding) { return readableAddChunk(this, chunk, encoding, true); }; function readableAddChunk(stream2, chunk, encoding, addToFront) { @@ -98107,7 +98429,7 @@ var require_readable3 = __commonJS({ chunk = Stream._uint8ArrayToBuffer(chunk); encoding = ""; } else if (chunk != null) { - err = new ERR_INVALID_ARG_TYPE2("chunk", ["string", "Buffer", "Uint8Array"], chunk); + err = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk); } } if (err) { @@ -98157,11 +98479,11 @@ var require_readable3 = __commonJS({ } maybeReadMore(stream2, state); } - Readable2.prototype.isPaused = function() { + Readable3.prototype.isPaused = function() { const state = this._readableState; return state[kPaused] === true || state.flowing === false; }; - Readable2.prototype.setEncoding = function(enc) { + Readable3.prototype.setEncoding = function(enc) { const decoder = new StringDecoder(enc); this._readableState.decoder = decoder; this._readableState.encoding = this._readableState.decoder.encoding; @@ -98200,7 +98522,7 @@ var require_readable3 = __commonJS({ if (n <= state.length) return n; return state.ended ? state.length : 0; } - Readable2.prototype.read = function(n) { + Readable3.prototype.read = function(n) { debug6("read", n); if (n === void 0) { n = NaN; @@ -98322,10 +98644,10 @@ var require_readable3 = __commonJS({ } state.readingMore = false; } - Readable2.prototype._read = function(n) { + Readable3.prototype._read = function(n) { throw new ERR_METHOD_NOT_IMPLEMENTED("_read()"); }; - Readable2.prototype.pipe = function(dest, pipeOpts) { + Readable3.prototype.pipe = function(dest, pipeOpts) { const src = this; const state = this._readableState; if (state.pipes.length === 1) { @@ -98450,7 +98772,7 @@ var require_readable3 = __commonJS({ } }; } - Readable2.prototype.unpipe = function(dest) { + Readable3.prototype.unpipe = function(dest) { const state = this._readableState; const unpipeInfo = { hasUnpiped: false @@ -98466,14 +98788,14 @@ var require_readable3 = __commonJS({ }); return this; } - const index = ArrayPrototypeIndexOf(state.pipes, dest); - if (index === -1) return this; - state.pipes.splice(index, 1); + const index2 = ArrayPrototypeIndexOf(state.pipes, dest); + if (index2 === -1) return this; + state.pipes.splice(index2, 1); if (state.pipes.length === 0) this.pause(); dest.emit("unpipe", this, unpipeInfo); return this; }; - Readable2.prototype.on = function(ev, fn) { + Readable3.prototype.on = function(ev, fn) { const res = Stream.prototype.on.call(this, ev, fn); const state = this._readableState; if (ev === "data") { @@ -98494,16 +98816,16 @@ var require_readable3 = __commonJS({ } return res; }; - Readable2.prototype.addListener = Readable2.prototype.on; - Readable2.prototype.removeListener = function(ev, fn) { + Readable3.prototype.addListener = Readable3.prototype.on; + Readable3.prototype.removeListener = function(ev, fn) { const res = Stream.prototype.removeListener.call(this, ev, fn); if (ev === "readable") { process2.nextTick(updateReadableListening, this); } return res; }; - Readable2.prototype.off = Readable2.prototype.removeListener; - Readable2.prototype.removeAllListeners = function(ev) { + Readable3.prototype.off = Readable3.prototype.removeListener; + Readable3.prototype.removeAllListeners = function(ev) { const res = Stream.prototype.removeAllListeners.apply(this, arguments); if (ev === "readable" || ev === void 0) { process2.nextTick(updateReadableListening, this); @@ -98525,7 +98847,7 @@ var require_readable3 = __commonJS({ debug6("readable nexttick read 0"); self2.read(0); } - Readable2.prototype.resume = function() { + Readable3.prototype.resume = function() { const state = this._readableState; if (!state.flowing) { debug6("resume"); @@ -98551,7 +98873,7 @@ var require_readable3 = __commonJS({ flow(stream2); if (state.flowing && !state.reading) stream2.read(0); } - Readable2.prototype.pause = function() { + Readable3.prototype.pause = function() { debug6("call pause flowing=%j", this._readableState.flowing); if (this._readableState.flowing !== false) { debug6("pause"); @@ -98566,7 +98888,7 @@ var require_readable3 = __commonJS({ debug6("flow", state.flowing); while (state.flowing && stream2.read() !== null) ; } - Readable2.prototype.wrap = function(stream2) { + Readable3.prototype.wrap = function(stream2) { let paused = false; stream2.on("data", (chunk) => { if (!this.push(chunk) && stream2.pause) { @@ -98601,10 +98923,10 @@ var require_readable3 = __commonJS({ } return this; }; - Readable2.prototype[SymbolAsyncIterator] = function() { + Readable3.prototype[SymbolAsyncIterator] = function() { return streamToAsyncIterator(this); }; - Readable2.prototype.iterator = function(options) { + Readable3.prototype.iterator = function(options) { if (options !== void 0) { validateObject(options, "options"); } @@ -98612,7 +98934,7 @@ var require_readable3 = __commonJS({ }; function streamToAsyncIterator(stream2, options) { if (typeof stream2.read !== "function") { - stream2 = Readable2.wrap(stream2, { + stream2 = Readable3.wrap(stream2, { objectMode: true }); } @@ -98622,12 +98944,12 @@ var require_readable3 = __commonJS({ } async function* createAsyncIterator(stream2, options) { let callback = nop; - function next(resolve13) { + function next(resolve14) { if (this === stream2) { callback(); callback = nop; } else { - callback = resolve13; + callback = resolve14; } } stream2.on("readable", next); @@ -98668,7 +98990,7 @@ var require_readable3 = __commonJS({ } } } - ObjectDefineProperties(Readable2.prototype, { + ObjectDefineProperties(Readable3.prototype, { readable: { __proto__: null, get() { @@ -98795,7 +99117,7 @@ var require_readable3 = __commonJS({ } } }); - Readable2._fromList = fromList; + Readable3._fromList = fromList; function fromList(n, state) { if (state.length === 0) return null; let ret; @@ -98842,23 +99164,23 @@ var require_readable3 = __commonJS({ stream2.end(); } } - Readable2.from = function(iterable, opts) { - return from(Readable2, iterable, opts); + Readable3.from = function(iterable, opts) { + return from(Readable3, iterable, opts); }; var webStreamsAdapters; function lazyWebStreams() { if (webStreamsAdapters === void 0) webStreamsAdapters = {}; return webStreamsAdapters; } - Readable2.fromWeb = function(readableStream, options) { + Readable3.fromWeb = function(readableStream, options) { return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options); }; - Readable2.toWeb = function(streamReadable, options) { + Readable3.toWeb = function(streamReadable, options) { return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options); }; - Readable2.wrap = function(src, options) { + Readable3.wrap = function(src, options) { var _ref, _src$readableObjectMo; - return new Readable2({ + return new Readable3({ objectMode: (_ref = (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== void 0 ? _src$readableObjectMo : src.objectMode) !== null && _ref !== void 0 ? _ref : true, ...options, destroy(err, callback) { @@ -98873,6 +99195,7 @@ var require_readable3 = __commonJS({ // node_modules/readable-stream/lib/internal/streams/writable.js var require_writable = __commonJS({ "node_modules/readable-stream/lib/internal/streams/writable.js"(exports2, module2) { + "use strict"; var process2 = require_process(); var { ArrayPrototypeSlice, @@ -98894,7 +99217,7 @@ var require_writable = __commonJS({ var { addAbortSignal } = require_add_abort_signal(); var { getHighWaterMark, getDefaultHighWaterMark } = require_state3(); var { - ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, + ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK, ERR_STREAM_CANNOT_PIPE, @@ -99016,7 +99339,7 @@ var require_writable = __commonJS({ chunk = Stream._uint8ArrayToBuffer(chunk); encoding = "buffer"; } else { - throw new ERR_INVALID_ARG_TYPE2("chunk", ["string", "Buffer", "Uint8Array"], chunk); + throw new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk); } } let err; @@ -99509,11 +99832,11 @@ var require_duplexify = __commonJS({ var eos = require_end_of_stream(); var { AbortError, - codes: { ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, ERR_INVALID_RETURN_VALUE } + codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE } } = require_errors4(); var { destroyer } = require_destroy2(); var Duplex = require_duplex(); - var Readable2 = require_readable3(); + var Readable3 = require_readable3(); var Writable = require_writable(); var { createDeferredPromise } = require_util13(); var from = require_from(); @@ -99563,7 +99886,7 @@ var require_duplexify = __commonJS({ } if (isReadableStream(body)) { return _duplexify({ - readable: Readable2.fromWeb(body) + readable: Readable3.fromWeb(body) }); } if (isWritableStream(body)) { @@ -99661,7 +99984,7 @@ var require_duplexify = __commonJS({ } }); } - throw new ERR_INVALID_ARG_TYPE2( + throw new ERR_INVALID_ARG_TYPE( name, [ "Blob", @@ -99678,7 +100001,7 @@ var require_duplexify = __commonJS({ ); }; function fromAsyncGen(fn) { - let { promise, resolve: resolve13 } = createDeferredPromise(); + let { promise, resolve: resolve14 } = createDeferredPromise(); const ac = new AbortController2(); const signal = ac.signal; const value = fn( @@ -99693,7 +100016,7 @@ var require_duplexify = __commonJS({ throw new AbortError(void 0, { cause: signal.reason }); - ({ promise, resolve: resolve13 } = createDeferredPromise()); + ({ promise, resolve: resolve14 } = createDeferredPromise()); yield chunk; } })(), @@ -99704,8 +100027,8 @@ var require_duplexify = __commonJS({ return { value, write(chunk, encoding, cb) { - const _resolve = resolve13; - resolve13 = null; + const _resolve = resolve14; + resolve14 = null; _resolve({ chunk, done: false, @@ -99713,8 +100036,8 @@ var require_duplexify = __commonJS({ }); }, final(cb) { - const _resolve = resolve13; - resolve13 = null; + const _resolve = resolve14; + resolve14 = null; _resolve({ done: true, cb @@ -99727,7 +100050,7 @@ var require_duplexify = __commonJS({ }; } function _duplexify(pair) { - const r = pair.readable && typeof pair.readable.read !== "function" ? Readable2.wrap(pair.readable) : pair.readable; + const r = pair.readable && typeof pair.readable.read !== "function" ? Readable3.wrap(pair.readable) : pair.readable; const w = pair.writable; let readable = !!isReadable(r); let writable = !!isWritable(w); @@ -99848,10 +100171,10 @@ var require_duplex = __commonJS({ ObjectSetPrototypeOf } = require_primordials(); module2.exports = Duplex; - var Readable2 = require_readable3(); + var Readable3 = require_readable3(); var Writable = require_writable(); - ObjectSetPrototypeOf(Duplex.prototype, Readable2.prototype); - ObjectSetPrototypeOf(Duplex, Readable2); + ObjectSetPrototypeOf(Duplex.prototype, Readable3.prototype); + ObjectSetPrototypeOf(Duplex, Readable3); { const keys = ObjectKeys(Writable.prototype); for (let i = 0; i < keys.length; i++) { @@ -99861,7 +100184,7 @@ var require_duplex = __commonJS({ } function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); - Readable2.call(this, options); + Readable3.call(this, options); Writable.call(this, options); if (options) { this.allowHalfOpen = options.allowHalfOpen !== false; @@ -99959,15 +100282,15 @@ var require_transform = __commonJS({ "node_modules/readable-stream/lib/internal/streams/transform.js"(exports2, module2) { "use strict"; var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials(); - module2.exports = Transform; + module2.exports = Transform5; var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors4().codes; var Duplex = require_duplex(); var { getHighWaterMark } = require_state3(); - ObjectSetPrototypeOf(Transform.prototype, Duplex.prototype); - ObjectSetPrototypeOf(Transform, Duplex); + ObjectSetPrototypeOf(Transform5.prototype, Duplex.prototype); + ObjectSetPrototypeOf(Transform5, Duplex); var kCallback = Symbol2("kCallback"); - function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); + function Transform5(options) { + if (!(this instanceof Transform5)) return new Transform5(options); const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null; if (readableHighWaterMark === 0) { options = { @@ -100021,11 +100344,11 @@ var require_transform = __commonJS({ final.call(this); } } - Transform.prototype._final = final; - Transform.prototype._transform = function(chunk, encoding, callback) { + Transform5.prototype._final = final; + Transform5.prototype._transform = function(chunk, encoding, callback) { throw new ERR_METHOD_NOT_IMPLEMENTED("_transform()"); }; - Transform.prototype._write = function(chunk, encoding, callback) { + Transform5.prototype._write = function(chunk, encoding, callback) { const rState = this._readableState; const wState = this._writableState; const length = rState.length; @@ -100046,7 +100369,7 @@ var require_transform = __commonJS({ } }); }; - Transform.prototype._read = function() { + Transform5.prototype._read = function() { if (this[kCallback]) { const callback = this[kCallback]; this[kCallback] = null; @@ -100061,15 +100384,15 @@ var require_passthrough2 = __commonJS({ "node_modules/readable-stream/lib/internal/streams/passthrough.js"(exports2, module2) { "use strict"; var { ObjectSetPrototypeOf } = require_primordials(); - module2.exports = PassThrough; - var Transform = require_transform(); - ObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype); - ObjectSetPrototypeOf(PassThrough, Transform); - function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); - Transform.call(this, options); - } - PassThrough.prototype._transform = function(chunk, encoding, cb) { + module2.exports = PassThrough3; + var Transform5 = require_transform(); + ObjectSetPrototypeOf(PassThrough3.prototype, Transform5.prototype); + ObjectSetPrototypeOf(PassThrough3, Transform5); + function PassThrough3(options) { + if (!(this instanceof PassThrough3)) return new PassThrough3(options); + Transform5.call(this, options); + } + PassThrough3.prototype._transform = function(chunk, encoding, cb) { cb(null, chunk); }; } @@ -100087,7 +100410,7 @@ var require_pipeline4 = __commonJS({ var { aggregateTwoErrors, codes: { - ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, + ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE, ERR_MISSING_ARGS, ERR_STREAM_DESTROYED, @@ -100107,8 +100430,8 @@ var require_pipeline4 = __commonJS({ isReadableFinished } = require_utils7(); var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController; - var PassThrough; - var Readable2; + var PassThrough3; + var Readable3; var addAbortListener; function destroyer(stream2, reading, writing) { let finished = false; @@ -100144,13 +100467,13 @@ var require_pipeline4 = __commonJS({ } else if (isReadableNodeStream(val)) { return fromReadable(val); } - throw new ERR_INVALID_ARG_TYPE2("val", ["Readable", "Iterable", "AsyncIterable"], val); + throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable"], val); } async function* fromReadable(val) { - if (!Readable2) { - Readable2 = require_readable3(); + if (!Readable3) { + Readable3 = require_readable3(); } - yield* Readable2.prototype[SymbolAsyncIterator].call(val); + yield* Readable3.prototype[SymbolAsyncIterator].call(val); } async function pumpToNode(iterable, writable, finish, { end }) { let error3; @@ -100165,7 +100488,7 @@ var require_pipeline4 = __commonJS({ callback(); } }; - const wait = () => new Promise2((resolve13, reject) => { + const wait = () => new Promise2((resolve14, reject) => { if (error3) { reject(error3); } else { @@ -100173,7 +100496,7 @@ var require_pipeline4 = __commonJS({ if (error3) { reject(error3); } else { - resolve13(); + resolve14(); } }; } @@ -100340,10 +100663,10 @@ var require_pipeline4 = __commonJS({ } } else { var _ret2; - if (!PassThrough) { - PassThrough = require_passthrough2(); + if (!PassThrough3) { + PassThrough3 = require_passthrough2(); } - const pt = new PassThrough({ + const pt = new PassThrough3({ objectMode: true }); const then = (_ret2 = ret) === null || _ret2 === void 0 ? void 0 : _ret2.then; @@ -100408,7 +100731,7 @@ var require_pipeline4 = __commonJS({ end }); } else { - throw new ERR_INVALID_ARG_TYPE2( + throw new ERR_INVALID_ARG_TYPE( "val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ret @@ -100432,7 +100755,7 @@ var require_pipeline4 = __commonJS({ end }); } else { - throw new ERR_INVALID_ARG_TYPE2( + throw new ERR_INVALID_ARG_TYPE( "val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ret @@ -100702,7 +101025,7 @@ var require_operators = __commonJS({ "use strict"; var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController; var { - codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE: ERR_INVALID_ARG_TYPE2, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE }, + codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE }, AbortError } = require_errors4(); var { validateAbortSignal, validateInteger, validateObject } = require_validators(); @@ -100745,7 +101068,7 @@ var require_operators = __commonJS({ } function map(fn, options) { if (typeof fn !== "function") { - throw new ERR_INVALID_ARG_TYPE2("fn", ["Function", "AsyncFunction"], fn); + throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn); } if (options != null) { validateObject(options, "options"); @@ -100769,7 +101092,7 @@ var require_operators = __commonJS({ [options === null || options === void 0 ? void 0 : options.signal].filter(Boolean2) ); const stream2 = this; - const queue = []; + const queue2 = []; const signalOpt = { signal }; @@ -100786,7 +101109,7 @@ var require_operators = __commonJS({ maybeResume(); } function maybeResume() { - if (resume && !done && cnt < concurrency && queue.length < highWaterMark) { + if (resume && !done && cnt < concurrency && queue2.length < highWaterMark) { resume(); resume = null; } @@ -100811,22 +101134,22 @@ var require_operators = __commonJS({ } cnt += 1; PromisePrototypeThen(val, afterItemProcessed, onCatch); - queue.push(val); + queue2.push(val); if (next) { next(); next = null; } - if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) { - await new Promise2((resolve13) => { - resume = resolve13; + if (!done && (queue2.length >= highWaterMark || cnt >= concurrency)) { + await new Promise2((resolve14) => { + resume = resolve14; }); } } - queue.push(kEof); + queue2.push(kEof); } catch (err) { const val = PromiseReject(err); PromisePrototypeThen(val, afterItemProcessed, onCatch); - queue.push(val); + queue2.push(val); } finally { done = true; if (next) { @@ -100838,8 +101161,8 @@ var require_operators = __commonJS({ pump(); try { while (true) { - while (queue.length > 0) { - const val = await queue[0]; + while (queue2.length > 0) { + const val = await queue2[0]; if (val === kEof) { return; } @@ -100849,11 +101172,11 @@ var require_operators = __commonJS({ if (val !== kEmpty) { yield val; } - queue.shift(); + queue2.shift(); maybeResume(); } - await new Promise2((resolve13) => { - next = resolve13; + await new Promise2((resolve14) => { + next = resolve14; }); } } finally { @@ -100873,7 +101196,7 @@ var require_operators = __commonJS({ validateAbortSignal(options.signal, "options.signal"); } return async function* asIndexedPairs2() { - let index = 0; + let index2 = 0; for await (const val of this) { var _options$signal; if (options !== null && options !== void 0 && (_options$signal = options.signal) !== null && _options$signal !== void 0 && _options$signal.aborted) { @@ -100881,19 +101204,19 @@ var require_operators = __commonJS({ cause: options.signal.reason }); } - yield [index++, val]; + yield [index2++, val]; } }.call(this); } async function some(fn, options = void 0) { - for await (const unused of filter.call(this, fn, options)) { + for await (const unused of filter2.call(this, fn, options)) { return true; } return false; } async function every(fn, options = void 0) { if (typeof fn !== "function") { - throw new ERR_INVALID_ARG_TYPE2("fn", ["Function", "AsyncFunction"], fn); + throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn); } return !await some.call( this, @@ -100904,14 +101227,14 @@ var require_operators = __commonJS({ ); } async function find3(fn, options) { - for await (const result of filter.call(this, fn, options)) { + for await (const result of filter2.call(this, fn, options)) { return result; } return void 0; } async function forEach(fn, options) { if (typeof fn !== "function") { - throw new ERR_INVALID_ARG_TYPE2("fn", ["Function", "AsyncFunction"], fn); + throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn); } async function forEachFn(value, options2) { await fn(value, options2); @@ -100919,9 +101242,9 @@ var require_operators = __commonJS({ } for await (const unused of map.call(this, forEachFn, options)) ; } - function filter(fn, options) { + function filter2(fn, options) { if (typeof fn !== "function") { - throw new ERR_INVALID_ARG_TYPE2("fn", ["Function", "AsyncFunction"], fn); + throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn); } async function filterFn(value, options2) { if (await fn(value, options2)) { @@ -100940,7 +101263,7 @@ var require_operators = __commonJS({ async function reduce(reducer, initialValue, options) { var _options$signal2; if (typeof reducer !== "function") { - throw new ERR_INVALID_ARG_TYPE2("reducer", ["Function", "AsyncFunction"], reducer); + throw new ERR_INVALID_ARG_TYPE("reducer", ["Function", "AsyncFunction"], reducer); } if (options != null) { validateObject(options, "options"); @@ -101084,7 +101407,7 @@ var require_operators = __commonJS({ module2.exports.streamReturningOperators = { asIndexedPairs: deprecate(asIndexedPairs, "readable.asIndexedPairs will be removed in a future version."), drop, - filter, + filter: filter2, flatMap, map, take, @@ -101111,7 +101434,7 @@ var require_promises = __commonJS({ var { finished } = require_end_of_stream(); require_stream2(); function pipeline(...streams) { - return new Promise2((resolve13, reject) => { + return new Promise2((resolve14, reject) => { let signal; let end; const lastArg = streams[streams.length - 1]; @@ -101126,7 +101449,7 @@ var require_promises = __commonJS({ if (err) { reject(err); } else { - resolve13(value); + resolve14(value); } }, { @@ -101146,6 +101469,7 @@ var require_promises = __commonJS({ // node_modules/readable-stream/lib/stream.js var require_stream2 = __commonJS({ "node_modules/readable-stream/lib/stream.js"(exports2, module2) { + "use strict"; var { Buffer: Buffer2 } = require("buffer"); var { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials(); var { @@ -101170,57 +101494,53 @@ var require_stream2 = __commonJS({ Stream.isWritable = utils.isWritable; Stream.Readable = require_readable3(); for (const key of ObjectKeys(streamReturningOperators)) { - let fn2 = function(...args) { + let fn = function(...args) { if (new.target) { throw ERR_ILLEGAL_CONSTRUCTOR(); } return Stream.Readable.from(ReflectApply(op, this, args)); }; - fn = fn2; const op = streamReturningOperators[key]; - ObjectDefineProperty(fn2, "name", { + ObjectDefineProperty(fn, "name", { __proto__: null, value: op.name }); - ObjectDefineProperty(fn2, "length", { + ObjectDefineProperty(fn, "length", { __proto__: null, value: op.length }); ObjectDefineProperty(Stream.Readable.prototype, key, { __proto__: null, - value: fn2, + value: fn, enumerable: false, configurable: true, writable: true }); } - var fn; for (const key of ObjectKeys(promiseReturningOperators)) { - let fn2 = function(...args) { + let fn = function(...args) { if (new.target) { throw ERR_ILLEGAL_CONSTRUCTOR(); } return ReflectApply(op, this, args); }; - fn = fn2; const op = promiseReturningOperators[key]; - ObjectDefineProperty(fn2, "name", { + ObjectDefineProperty(fn, "name", { __proto__: null, value: op.name }); - ObjectDefineProperty(fn2, "length", { + ObjectDefineProperty(fn, "length", { __proto__: null, value: op.length }); ObjectDefineProperty(Stream.Readable.prototype, key, { __proto__: null, - value: fn2, + value: fn, enumerable: false, configurable: true, writable: true }); } - var fn; Stream.Writable = require_writable(); Stream.Duplex = require_duplex(); Stream.Transform = require_transform(); @@ -101333,9 +101653,9 @@ var require_ours = __commonJS({ var require_arrayPush = __commonJS({ "node_modules/lodash/_arrayPush.js"(exports2, module2) { function arrayPush(array, values) { - var index = -1, length = values.length, offset = array.length; - while (++index < length) { - array[offset + index] = values[index]; + var index2 = -1, length = values.length, offset = array.length; + while (++index2 < length) { + array[offset + index2] = values[index2]; } return array; } @@ -101363,11 +101683,11 @@ var require_baseFlatten = __commonJS({ var arrayPush = require_arrayPush(); var isFlattenable = require_isFlattenable(); function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, length = array.length; + var index2 = -1, length = array.length; predicate || (predicate = isFlattenable); result || (result = []); - while (++index < length) { - var value = array[index]; + while (++index2 < length) { + var value = array[index2]; if (depth > 0 && predicate(value)) { if (depth > 1) { baseFlatten(value, depth - 1, predicate, isStrict, result); @@ -101486,10 +101806,10 @@ var require_Hash = __commonJS({ var hashHas = require_hashHas(); var hashSet = require_hashSet(); function Hash(entries) { - var index = -1, length = entries == null ? 0 : entries.length; + var index2 = -1, length = entries == null ? 0 : entries.length; this.clear(); - while (++index < length) { - var entry = entries[index]; + while (++index2 < length) { + var entry = entries[index2]; this.set(entry[0], entry[1]); } } @@ -101537,15 +101857,15 @@ var require_listCacheDelete = __commonJS({ var arrayProto = Array.prototype; var splice = arrayProto.splice; function listCacheDelete(key) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { + var data = this.__data__, index2 = assocIndexOf(data, key); + if (index2 < 0) { return false; } var lastIndex = data.length - 1; - if (index == lastIndex) { + if (index2 == lastIndex) { data.pop(); } else { - splice.call(data, index, 1); + splice.call(data, index2, 1); } --this.size; return true; @@ -101559,8 +101879,8 @@ var require_listCacheGet = __commonJS({ "node_modules/lodash/_listCacheGet.js"(exports2, module2) { var assocIndexOf = require_assocIndexOf(); function listCacheGet(key) { - var data = this.__data__, index = assocIndexOf(data, key); - return index < 0 ? void 0 : data[index][1]; + var data = this.__data__, index2 = assocIndexOf(data, key); + return index2 < 0 ? void 0 : data[index2][1]; } module2.exports = listCacheGet; } @@ -101582,12 +101902,12 @@ var require_listCacheSet = __commonJS({ "node_modules/lodash/_listCacheSet.js"(exports2, module2) { var assocIndexOf = require_assocIndexOf(); function listCacheSet(key, value) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { + var data = this.__data__, index2 = assocIndexOf(data, key); + if (index2 < 0) { ++this.size; data.push([key, value]); } else { - data[index][1] = value; + data[index2][1] = value; } return this; } @@ -101604,10 +101924,10 @@ var require_ListCache = __commonJS({ var listCacheHas = require_listCacheHas(); var listCacheSet = require_listCacheSet(); function ListCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; + var index2 = -1, length = entries == null ? 0 : entries.length; this.clear(); - while (++index < length) { - var entry = entries[index]; + while (++index2 < length) { + var entry = entries[index2]; this.set(entry[0], entry[1]); } } @@ -101729,10 +102049,10 @@ var require_MapCache = __commonJS({ var mapCacheHas = require_mapCacheHas(); var mapCacheSet = require_mapCacheSet(); function MapCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; + var index2 = -1, length = entries == null ? 0 : entries.length; this.clear(); - while (++index < length) { - var entry = entries[index]; + while (++index2 < length) { + var entry = entries[index2]; this.set(entry[0], entry[1]); } } @@ -101774,10 +102094,10 @@ var require_SetCache = __commonJS({ var setCacheAdd = require_setCacheAdd(); var setCacheHas = require_setCacheHas(); function SetCache(values) { - var index = -1, length = values == null ? 0 : values.length; + var index2 = -1, length = values == null ? 0 : values.length; this.__data__ = new MapCache(); - while (++index < length) { - this.add(values[index]); + while (++index2 < length) { + this.add(values[index2]); } } SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; @@ -101790,10 +102110,10 @@ var require_SetCache = __commonJS({ var require_baseFindIndex = __commonJS({ "node_modules/lodash/_baseFindIndex.js"(exports2, module2) { function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, index = fromIndex + (fromRight ? 1 : -1); - while (fromRight ? index-- : ++index < length) { - if (predicate(array[index], index, array)) { - return index; + var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1); + while (fromRight ? index2-- : ++index2 < length) { + if (predicate(array[index2], index2, array)) { + return index2; } } return -1; @@ -101816,10 +102136,10 @@ var require_baseIsNaN = __commonJS({ var require_strictIndexOf = __commonJS({ "node_modules/lodash/_strictIndexOf.js"(exports2, module2) { function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, length = array.length; - while (++index < length) { - if (array[index] === value) { - return index; + var index2 = fromIndex - 1, length = array.length; + while (++index2 < length) { + if (array[index2] === value) { + return index2; } } return -1; @@ -101857,9 +102177,9 @@ var require_arrayIncludes = __commonJS({ var require_arrayIncludesWith = __commonJS({ "node_modules/lodash/_arrayIncludesWith.js"(exports2, module2) { function arrayIncludesWith(array, value, comparator) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (comparator(value, array[index])) { + var index2 = -1, length = array == null ? 0 : array.length; + while (++index2 < length) { + if (comparator(value, array[index2])) { return true; } } @@ -101873,9 +102193,9 @@ var require_arrayIncludesWith = __commonJS({ var require_arrayMap = __commonJS({ "node_modules/lodash/_arrayMap.js"(exports2, module2) { function arrayMap(array, iteratee) { - var index = -1, length = array == null ? 0 : array.length, result = Array(length); - while (++index < length) { - result[index] = iteratee(array[index], index, array); + var index2 = -1, length = array == null ? 0 : array.length, result = Array(length); + while (++index2 < length) { + result[index2] = iteratee(array[index2], index2, array); } return result; } @@ -101904,7 +102224,7 @@ var require_baseDifference = __commonJS({ var cacheHas = require_cacheHas(); var LARGE_ARRAY_SIZE = 200; function baseDifference(array, values, iteratee, comparator) { - var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values.length; + var index2 = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values.length; if (!length) { return result; } @@ -101920,8 +102240,8 @@ var require_baseDifference = __commonJS({ values = new SetCache(values); } outer: - while (++index < length) { - var value = array[index], computed = iteratee == null ? value : iteratee(value); + while (++index2 < length) { + var value = array[index2], computed = iteratee == null ? value : iteratee(value); value = comparator || value !== 0 ? value : 0; if (isCommon && computed === computed) { var valuesIndex = valuesLength; @@ -101990,9 +102310,9 @@ var require_noop = __commonJS({ var require_setToArray = __commonJS({ "node_modules/lodash/_setToArray.js"(exports2, module2) { function setToArray(set) { - var index = -1, result = Array(set.size); + var index2 = -1, result = Array(set.size); set.forEach(function(value) { - result[++index] = value; + result[++index2] = value; }); return result; } @@ -102025,7 +102345,7 @@ var require_baseUniq = __commonJS({ var setToArray = require_setToArray(); var LARGE_ARRAY_SIZE = 200; function baseUniq(array, iteratee, comparator) { - var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result; + var index2 = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result; if (comparator) { isCommon = false; includes = arrayIncludesWith; @@ -102041,8 +102361,8 @@ var require_baseUniq = __commonJS({ seen = iteratee ? [] : result; } outer: - while (++index < length) { - var value = array[index], computed = iteratee ? iteratee(value) : value; + while (++index2 < length) { + var value = array[index2], computed = iteratee ? iteratee(value) : value; value = comparator || value !== 0 ? value : 0; if (isCommon && computed === computed) { var seenIndex = seen.length; @@ -102136,9 +102456,9 @@ var require_commonjs18 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.range = exports2.balanced = void 0; - var balanced = (a, b, str) => { - const ma = a instanceof RegExp ? maybeMatch(a, str) : a; - const mb = b instanceof RegExp ? maybeMatch(b, str) : b; + var balanced2 = (a, b, str) => { + const ma = a instanceof RegExp ? maybeMatch2(a, str) : a; + const mb = b instanceof RegExp ? maybeMatch2(b, str) : b; const r = ma !== null && mb != null && (0, exports2.range)(ma, mb, str); return r && { start: r[0], @@ -102148,12 +102468,12 @@ var require_commonjs18 = __commonJS({ post: str.slice(r[1] + mb.length) }; }; - exports2.balanced = balanced; - var maybeMatch = (reg, str) => { + exports2.balanced = balanced2; + var maybeMatch2 = (reg, str) => { const m = str.match(reg); return m ? m[0] : null; }; - var range = (a, b, str) => { + var range2 = (a, b, str) => { let begs, beg, left, right = void 0, result; let ai = str.indexOf(a); let bi = str.indexOf(b, ai + 1); @@ -102188,7 +102508,7 @@ var require_commonjs18 = __commonJS({ } return result; }; - exports2.range = range; + exports2.range = range2; } }); @@ -102198,34 +102518,34 @@ var require_commonjs19 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.EXPANSION_MAX = void 0; - exports2.expand = expand2; + exports2.expand = expand3; var balanced_match_1 = require_commonjs18(); - var escSlash = "\0SLASH" + Math.random() + "\0"; - var escOpen = "\0OPEN" + Math.random() + "\0"; - var escClose = "\0CLOSE" + Math.random() + "\0"; - var escComma = "\0COMMA" + Math.random() + "\0"; - var escPeriod = "\0PERIOD" + Math.random() + "\0"; - var escSlashPattern = new RegExp(escSlash, "g"); - var escOpenPattern = new RegExp(escOpen, "g"); - var escClosePattern = new RegExp(escClose, "g"); - var escCommaPattern = new RegExp(escComma, "g"); - var escPeriodPattern = new RegExp(escPeriod, "g"); - var slashPattern = /\\\\/g; - var openPattern = /\\{/g; - var closePattern = /\\}/g; - var commaPattern = /\\,/g; - var periodPattern = /\\\./g; + var escSlash2 = "\0SLASH" + Math.random() + "\0"; + var escOpen2 = "\0OPEN" + Math.random() + "\0"; + var escClose2 = "\0CLOSE" + Math.random() + "\0"; + var escComma2 = "\0COMMA" + Math.random() + "\0"; + var escPeriod2 = "\0PERIOD" + Math.random() + "\0"; + var escSlashPattern2 = new RegExp(escSlash2, "g"); + var escOpenPattern2 = new RegExp(escOpen2, "g"); + var escClosePattern2 = new RegExp(escClose2, "g"); + var escCommaPattern2 = new RegExp(escComma2, "g"); + var escPeriodPattern2 = new RegExp(escPeriod2, "g"); + var slashPattern2 = /\\\\/g; + var openPattern2 = /\\{/g; + var closePattern2 = /\\}/g; + var commaPattern2 = /\\,/g; + var periodPattern2 = /\\\./g; exports2.EXPANSION_MAX = 1e5; - function numeric(str) { + function numeric2(str) { return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0); } - function escapeBraces(str) { - return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod); + function escapeBraces2(str) { + return str.replace(slashPattern2, escSlash2).replace(openPattern2, escOpen2).replace(closePattern2, escClose2).replace(commaPattern2, escComma2).replace(periodPattern2, escPeriod2); } - function unescapeBraces(str) { - return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, "."); + function unescapeBraces2(str) { + return str.replace(escSlashPattern2, "\\").replace(escOpenPattern2, "{").replace(escClosePattern2, "}").replace(escCommaPattern2, ",").replace(escPeriodPattern2, "."); } - function parseCommaParts(str) { + function parseCommaParts2(str) { if (!str) { return [""]; } @@ -102237,7 +102557,7 @@ var require_commonjs19 = __commonJS({ const { pre, body, post } = m; const p = pre.split(","); p[p.length - 1] += "{" + body + "}"; - const postParts = parseCommaParts(post); + const postParts = parseCommaParts2(post); if (post.length) { ; p[p.length - 1] += postParts.shift(); @@ -102246,7 +102566,7 @@ var require_commonjs19 = __commonJS({ parts.push.apply(parts, p); return parts; } - function expand2(str, options = {}) { + function expand3(str, options = {}) { if (!str) { return []; } @@ -102254,27 +102574,27 @@ var require_commonjs19 = __commonJS({ if (str.slice(0, 2) === "{}") { str = "\\{\\}" + str.slice(2); } - return expand_(escapeBraces(str), max, true).map(unescapeBraces); + return expand_2(escapeBraces2(str), max, true).map(unescapeBraces2); } - function embrace(str) { + function embrace2(str) { return "{" + str + "}"; } - function isPadded(el) { + function isPadded2(el) { return /^-?0\d/.test(el); } - function lte(i, y) { + function lte2(i, y) { return i <= y; } - function gte6(i, y) { + function gte7(i, y) { return i >= y; } - function expand_(str, max, isTop) { + function expand_2(str, max, isTop) { const expansions = []; const m = (0, balanced_match_1.balanced)("{", "}", str); if (!m) return [str]; const pre = m.pre; - const post = m.post.length ? expand_(m.post, max, false) : [""]; + const post = m.post.length ? expand_2(m.post, max, false) : [""]; if (/\$$/.test(m.pre)) { for (let k = 0; k < post.length && k < max; k++) { const expansion = pre + "{" + m.body + "}" + post[k]; @@ -102287,8 +102607,8 @@ var require_commonjs19 = __commonJS({ const isOptions = m.body.indexOf(",") >= 0; if (!isSequence && !isOptions) { if (m.post.match(/,(?!,).*\}/)) { - str = m.pre + "{" + m.body + escClose + m.post; - return expand_(str, max, true); + str = m.pre + "{" + m.body + escClose2 + m.post; + return expand_2(str, max, true); } return [str]; } @@ -102296,9 +102616,9 @@ var require_commonjs19 = __commonJS({ if (isSequence) { n = m.body.split(/\.\./); } else { - n = parseCommaParts(m.body); + n = parseCommaParts2(m.body); if (n.length === 1 && n[0] !== void 0) { - n = expand_(n[0], max, false).map(embrace); + n = expand_2(n[0], max, false).map(embrace2); if (n.length === 1) { return post.map((p) => m.pre + n[0] + p); } @@ -102306,17 +102626,17 @@ var require_commonjs19 = __commonJS({ } let N; if (isSequence && n[0] !== void 0 && n[1] !== void 0) { - const x = numeric(n[0]); - const y = numeric(n[1]); + const x = numeric2(n[0]); + const y = numeric2(n[1]); const width = Math.max(n[0].length, n[1].length); - let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1; - let test = lte; + let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric2(n[2])), 1) : 1; + let test = lte2; const reverse = y < x; if (reverse) { incr *= -1; - test = gte6; + test = gte7; } - const pad = n.some(isPadded); + const pad = n.some(isPadded2); N = []; for (let i = x; test(i, y) && N.length < max; i += incr) { let c; @@ -102344,7 +102664,7 @@ var require_commonjs19 = __commonJS({ } else { N = []; for (let j = 0; j < n.length; j++) { - N.push.apply(N, expand_(n[j], max, false)); + N.push.apply(N, expand_2(n[j], max, false)); } } for (let j = 0; j < N.length; j++) { @@ -102367,16 +102687,16 @@ var require_assert_valid_pattern = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.assertValidPattern = void 0; - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = (pattern) => { + var MAX_PATTERN_LENGTH2 = 1024 * 64; + var assertValidPattern2 = (pattern) => { if (typeof pattern !== "string") { throw new TypeError("invalid pattern"); } - if (pattern.length > MAX_PATTERN_LENGTH) { + if (pattern.length > MAX_PATTERN_LENGTH2) { throw new TypeError("pattern is too long"); } }; - exports2.assertValidPattern = assertValidPattern; + exports2.assertValidPattern = assertValidPattern2; } }); @@ -102386,7 +102706,7 @@ var require_brace_expressions = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.parseClass = void 0; - var posixClasses = { + var posixClasses2 = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true], "[:alpha:]": ["\\p{L}\\p{Nl}", true], "[:ascii:]": ["\\x00-\\x7f", false], @@ -102402,10 +102722,10 @@ var require_brace_expressions = __commonJS({ "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true], "[:xdigit:]": ["A-Fa-f0-9", false] }; - var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&"); - var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - var rangesToString = (ranges) => ranges.join(""); - var parseClass = (glob2, position) => { + var braceEscape2 = (s) => s.replace(/[[\]\\-]/g, "\\$&"); + var regexpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + var rangesToString2 = (ranges) => ranges.join(""); + var parseClass2 = (glob2, position) => { const pos = position; if (glob2.charAt(pos) !== "[") { throw new Error("not in a brace expression"); @@ -102439,7 +102759,7 @@ var require_brace_expressions = __commonJS({ } } if (c === "[" && !escaping) { - for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) { + for (const [cls, [unip, u, neg]] of Object.entries(posixClasses2)) { if (glob2.startsWith(cls, i)) { if (rangeStart) { return ["$.", false, glob2.length - pos, true]; @@ -102457,16 +102777,16 @@ var require_brace_expressions = __commonJS({ escaping = false; if (rangeStart) { if (c > rangeStart) { - ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c)); + ranges.push(braceEscape2(rangeStart) + "-" + braceEscape2(c)); } else if (c === rangeStart) { - ranges.push(braceEscape(c)); + ranges.push(braceEscape2(c)); } rangeStart = ""; i++; continue; } if (glob2.startsWith("-]", i + 1)) { - ranges.push(braceEscape(c + "-")); + ranges.push(braceEscape2(c + "-")); i += 2; continue; } @@ -102475,7 +102795,7 @@ var require_brace_expressions = __commonJS({ i += 2; continue; } - ranges.push(braceEscape(c)); + ranges.push(braceEscape2(c)); i++; } if (endPos < i) { @@ -102486,14 +102806,14 @@ var require_brace_expressions = __commonJS({ } if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate2) { const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]; - return [regexpEscape(r), false, endPos - pos, false]; + return [regexpEscape2(r), false, endPos - pos, false]; } - const sranges = "[" + (negate2 ? "^" : "") + rangesToString(ranges) + "]"; - const snegs = "[" + (negate2 ? "" : "^") + rangesToString(negs) + "]"; + const sranges = "[" + (negate2 ? "^" : "") + rangesToString2(ranges) + "]"; + const snegs = "[" + (negate2 ? "" : "^") + rangesToString2(negs) + "]"; const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs; return [comb, uflag, endPos - pos, true]; }; - exports2.parseClass = parseClass; + exports2.parseClass = parseClass2; } }); @@ -102503,13 +102823,13 @@ var require_unescape = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.unescape = void 0; - var unescape2 = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => { + var unescape3 = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => { if (magicalBraces) { return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1"); } return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1"); }; - exports2.unescape = unescape2; + exports2.unescape = unescape3; } }); @@ -102517,34 +102837,34 @@ var require_unescape = __commonJS({ var require_ast = __commonJS({ "node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js"(exports2) { "use strict"; - var _a; + var _a2; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.AST = void 0; var brace_expressions_js_1 = require_brace_expressions(); var unescape_js_1 = require_unescape(); - var types2 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]); - var isExtglobType = (c) => types2.has(c); - var isExtglobAST = (c) => isExtglobType(c.type); - var adoptionMap = /* @__PURE__ */ new Map([ + var types3 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]); + var isExtglobType2 = (c) => types3.has(c); + var isExtglobAST2 = (c) => isExtglobType2(c.type); + var adoptionMap2 = /* @__PURE__ */ new Map([ ["!", ["@"]], ["?", ["?", "@"]], ["@", ["@"]], ["*", ["*", "+", "?", "@"]], ["+", ["+", "@"]] ]); - var adoptionWithSpaceMap = /* @__PURE__ */ new Map([ + var adoptionWithSpaceMap2 = /* @__PURE__ */ new Map([ ["!", ["?"]], ["@", ["?"]], ["+", ["?", "*"]] ]); - var adoptionAnyMap = /* @__PURE__ */ new Map([ + var adoptionAnyMap2 = /* @__PURE__ */ new Map([ ["!", ["?", "@"]], ["?", ["?", "@"]], ["@", ["?", "@"]], ["*", ["*", "+", "?", "@"]], ["+", ["+", "@", "?", "*"]] ]); - var usurpMap = /* @__PURE__ */ new Map([ + var usurpMap2 = /* @__PURE__ */ new Map([ ["!", /* @__PURE__ */ new Map([["!", "@"]])], [ "?", @@ -102571,17 +102891,17 @@ var require_ast = __commonJS({ ]) ] ]); - var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))"; - var startNoDot = "(?!\\.)"; - var addPatternStart = /* @__PURE__ */ new Set(["[", "."]); - var justDots = /* @__PURE__ */ new Set(["..", "."]); - var reSpecials = new Set("().*{}+?[]^$\\!"); - var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - var qmark = "[^/]"; - var star = qmark + "*?"; - var starNoEmpty = qmark + "+?"; - var ID = 0; - var AST = class { + var startNoTraversal2 = "(?!(?:^|/)\\.\\.?(?:$|/))"; + var startNoDot2 = "(?!\\.)"; + var addPatternStart2 = /* @__PURE__ */ new Set(["[", "."]); + var justDots2 = /* @__PURE__ */ new Set(["..", "."]); + var reSpecials2 = new Set("().*{}+?[]^$\\!"); + var regExpEscape3 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + var qmark3 = "[^/]"; + var star3 = qmark3 + "*?"; + var starNoEmpty2 = qmark3 + "+?"; + var ID2 = 0; + var AST2 = class { type; #root; #hasMagic; @@ -102596,7 +102916,7 @@ var require_ast = __commonJS({ // set to true if it's an extglob with no children // (which really means one child of '') #emptyExt = false; - id = ++ID; + id = ++ID2; get depth() { return (this.#parent?.depth ?? -1) + 1; } @@ -102677,7 +102997,7 @@ var require_ast = __commonJS({ for (const p of parts) { if (p === "") continue; - if (typeof p !== "string" && !(p instanceof _a && p.#parent === this)) { + if (typeof p !== "string" && !(p instanceof _a2 && p.#parent === this)) { throw new Error("invalid part: " + p); } this.#parts.push(p); @@ -102702,7 +103022,7 @@ var require_ast = __commonJS({ const p = this.#parent; for (let i = 0; i < this.#parentIndex; i++) { const pp = p.#parts[i]; - if (!(pp instanceof _a && pp.type === "!")) { + if (!(pp instanceof _a2 && pp.type === "!")) { return false; } } @@ -102727,7 +103047,7 @@ var require_ast = __commonJS({ this.push(part.clone(this)); } clone(parent) { - const c = new _a(this.type, parent); + const c = new _a2(this.type, parent); for (const p of this.#parts) { c.copyIn(p); } @@ -102766,13 +103086,13 @@ var require_ast = __commonJS({ acc2 += c; continue; } - const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth; + const doRecurse = !opt.noext && isExtglobType2(c) && str.charAt(i2) === "(" && extDepth <= maxDepth; if (doRecurse) { ast.push(acc2); acc2 = ""; - const ext = new _a(c, ast); - i2 = _a.#parseAST(str, ext, i2, opt, extDepth + 1); - ast.push(ext); + const ext2 = new _a2(c, ast); + i2 = _a2.#parseAST(str, ext2, i2, opt, extDepth + 1); + ast.push(ext2); continue; } acc2 += c; @@ -102781,7 +103101,7 @@ var require_ast = __commonJS({ return i2; } let i = pos + 1; - let part = new _a(null, ast); + let part = new _a2(null, ast); const parts = []; let acc = ""; while (i < str.length) { @@ -102808,22 +103128,22 @@ var require_ast = __commonJS({ acc += c; continue; } - const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */ + const doRecurse = !opt.noext && isExtglobType2(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */ (extDepth <= maxDepth || ast && ast.#canAdoptType(c)); if (doRecurse) { const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1; part.push(acc); acc = ""; - const ext = new _a(c, part); - part.push(ext); - i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd); + const ext2 = new _a2(c, part); + part.push(ext2); + i = _a2.#parseAST(str, ext2, i, opt, extDepth + depthAdd); continue; } if (c === "|") { part.push(acc); acc = ""; parts.push(part); - part = new _a(null, ast); + part = new _a2(null, ast); continue; } if (c === ")") { @@ -102843,9 +103163,9 @@ var require_ast = __commonJS({ return i; } #canAdoptWithSpace(child) { - return this.#canAdopt(child, adoptionWithSpaceMap); + return this.#canAdopt(child, adoptionWithSpaceMap2); } - #canAdopt(child, map = adoptionMap) { + #canAdopt(child, map = adoptionMap2) { if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null) { return false; } @@ -102855,19 +103175,19 @@ var require_ast = __commonJS({ } return this.#canAdoptType(gc.type, map); } - #canAdoptType(c, map = adoptionAnyMap) { + #canAdoptType(c, map = adoptionAnyMap2) { return !!map.get(this.type)?.includes(c); } - #adoptWithSpace(child, index) { + #adoptWithSpace(child, index2) { const gc = child.#parts[0]; - const blank = new _a(null, gc, this.options); + const blank = new _a2(null, gc, this.options); blank.#parts.push(""); gc.push(blank); - this.#adopt(child, index); + this.#adopt(child, index2); } - #adopt(child, index) { + #adopt(child, index2) { const gc = child.#parts[0]; - this.#parts.splice(index, 1, ...gc.#parts); + this.#parts.splice(index2, 1, ...gc.#parts); for (const p of gc.#parts) { if (typeof p === "object") p.#parent = this; @@ -102875,7 +103195,7 @@ var require_ast = __commonJS({ this.#toString = void 0; } #canUsurpType(c) { - const m = usurpMap.get(this.type); + const m = usurpMap2.get(this.type); return !!m?.has(c); } #canUsurp(child) { @@ -102889,7 +103209,7 @@ var require_ast = __commonJS({ return this.#canUsurpType(gc.type); } #usurp(child) { - const m = usurpMap.get(this.type); + const m = usurpMap2.get(this.type); const gc = child.#parts[0]; const nt = m?.get(gc.type); if (!nt) @@ -102905,8 +103225,8 @@ var require_ast = __commonJS({ this.#emptyExt = false; } static fromGlob(pattern, options = {}) { - const ast = new _a(null, void 0, options); - _a.#parseAST(pattern, ast, 0, options, 0); + const ast = new _a2(null, void 0, options); + _a2.#parseAST(pattern, ast, 0, options, 0); return ast; } // returns the regular expression if there's magic, or the unescaped @@ -103004,10 +103324,10 @@ var require_ast = __commonJS({ this.#flatten(); this.#fillNegs(); } - if (!isExtglobAST(this)) { + if (!isExtglobAST2(this)) { const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string"); const src = this.#parts.map((p) => { - const [re, _2, hasMagic, uflag] = typeof p === "string" ? _a.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot); + const [re, _2, hasMagic, uflag] = typeof p === "string" ? _a2.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot); this.#hasMagic = this.#hasMagic || hasMagic; this.#uflag = this.#uflag || uflag; return re; @@ -103015,9 +103335,9 @@ var require_ast = __commonJS({ let start2 = ""; if (this.isStart()) { if (typeof this.#parts[0] === "string") { - const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]); + const dotTravAllowed = this.#parts.length === 1 && justDots2.has(this.#parts[0]); if (!dotTravAllowed) { - const aps = addPatternStart; + const aps = addPatternStart2; const needNoTrav = ( // dots are allowed, and the pattern starts with [ or . dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or . @@ -103025,7 +103345,7 @@ var require_ast = __commonJS({ src.startsWith("\\.\\.") && aps.has(src.charAt(4)) ); const needNoDot = !dot && !allowDot && aps.has(src.charAt(0)); - start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : ""; + start2 = needNoTrav ? startNoTraversal2 : needNoDot ? startNoDot2 : ""; } } } @@ -103052,7 +103372,7 @@ var require_ast = __commonJS({ me.#hasMagic = void 0; return [s, (0, unescape_js_1.unescape)(this.toString()), false, false]; } - let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true); + let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot2 ? "" : this.#partsToRegExp(true); if (bodyDotAllowed === body) { bodyDotAllowed = ""; } @@ -103061,11 +103381,11 @@ var require_ast = __commonJS({ } let final = ""; if (this.type === "!" && this.#emptyExt) { - final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty; + final = (this.isStart() && !dot ? startNoDot2 : "") + starNoEmpty2; } else { const close = this.type === "!" ? ( // !() must match something,but !(x) can match '' - "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")" + "))" + (this.isStart() && !dot && !allowDot ? startNoDot2 : "") + star3 + ")" ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`; final = start + body + close; } @@ -103077,7 +103397,7 @@ var require_ast = __commonJS({ ]; } #flatten() { - if (!isExtglobAST(this)) { + if (!isExtglobAST2(this)) { for (const p of this.#parts) { if (typeof p === "object") { p.#flatten(); @@ -103127,14 +103447,14 @@ var require_ast = __commonJS({ const c = glob2.charAt(i); if (escaping) { escaping = false; - re += (reSpecials.has(c) ? "\\" : "") + c; + re += (reSpecials2.has(c) ? "\\" : "") + c; continue; } if (c === "*") { if (inStar) continue; inStar = true; - re += noEmpty && /^[*]+$/.test(glob2) ? starNoEmpty : star; + re += noEmpty && /^[*]+$/.test(glob2) ? starNoEmpty2 : star3; hasMagic = true; continue; } else { @@ -103159,17 +103479,17 @@ var require_ast = __commonJS({ } } if (c === "?") { - re += qmark; + re += qmark3; hasMagic = true; continue; } - re += regExpEscape(c); + re += regExpEscape3(c); } return [re, (0, unescape_js_1.unescape)(glob2), !!hasMagic, uflag]; } }; - exports2.AST = AST; - _a = AST; + exports2.AST = AST2; + _a2 = AST2; } }); @@ -103179,13 +103499,13 @@ var require_escape = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.escape = void 0; - var escape2 = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => { + var escape3 = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => { if (magicalBraces) { return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&"); } return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&"); }; - exports2.escape = escape2; + exports2.escape = escape3; } }); @@ -103200,144 +103520,144 @@ var require_commonjs20 = __commonJS({ var ast_js_1 = require_ast(); var escape_js_1 = require_escape(); var unescape_js_1 = require_unescape(); - var minimatch = (p, pattern, options = {}) => { + var minimatch2 = (p, pattern, options = {}) => { (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); if (!options.nocomment && pattern.charAt(0) === "#") { return false; } - return new Minimatch(pattern, options).match(p); - }; - exports2.minimatch = minimatch; - var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/; - var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2); - var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2); - var starDotExtTestNocase = (ext2) => { - ext2 = ext2.toLowerCase(); - return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2); - }; - var starDotExtTestNocaseDot = (ext2) => { - ext2 = ext2.toLowerCase(); - return (f) => f.toLowerCase().endsWith(ext2); - }; - var starDotStarRE = /^\*+\.\*+$/; - var starDotStarTest = (f) => !f.startsWith(".") && f.includes("."); - var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes("."); - var dotStarRE = /^\.\*+$/; - var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith("."); - var starRE = /^\*+$/; - var starTest = (f) => f.length !== 0 && !f.startsWith("."); - var starTestDot = (f) => f.length !== 0 && f !== "." && f !== ".."; - var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/; - var qmarksTestNocase = ([$0, ext2 = ""]) => { - const noext = qmarksTestNoExt([$0]); - if (!ext2) + return new Minimatch2(pattern, options).match(p); + }; + exports2.minimatch = minimatch2; + var starDotExtRE2 = /^\*+([^+@!?\*\[\(]*)$/; + var starDotExtTest2 = (ext3) => (f) => !f.startsWith(".") && f.endsWith(ext3); + var starDotExtTestDot2 = (ext3) => (f) => f.endsWith(ext3); + var starDotExtTestNocase2 = (ext3) => { + ext3 = ext3.toLowerCase(); + return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext3); + }; + var starDotExtTestNocaseDot2 = (ext3) => { + ext3 = ext3.toLowerCase(); + return (f) => f.toLowerCase().endsWith(ext3); + }; + var starDotStarRE2 = /^\*+\.\*+$/; + var starDotStarTest2 = (f) => !f.startsWith(".") && f.includes("."); + var starDotStarTestDot2 = (f) => f !== "." && f !== ".." && f.includes("."); + var dotStarRE2 = /^\.\*+$/; + var dotStarTest2 = (f) => f !== "." && f !== ".." && f.startsWith("."); + var starRE2 = /^\*+$/; + var starTest2 = (f) => f.length !== 0 && !f.startsWith("."); + var starTestDot2 = (f) => f.length !== 0 && f !== "." && f !== ".."; + var qmarksRE2 = /^\?+([^+@!?\*\[\(]*)?$/; + var qmarksTestNocase2 = ([$0, ext3 = ""]) => { + const noext = qmarksTestNoExt2([$0]); + if (!ext3) return noext; - ext2 = ext2.toLowerCase(); - return (f) => noext(f) && f.toLowerCase().endsWith(ext2); + ext3 = ext3.toLowerCase(); + return (f) => noext(f) && f.toLowerCase().endsWith(ext3); }; - var qmarksTestNocaseDot = ([$0, ext2 = ""]) => { - const noext = qmarksTestNoExtDot([$0]); - if (!ext2) + var qmarksTestNocaseDot2 = ([$0, ext3 = ""]) => { + const noext = qmarksTestNoExtDot2([$0]); + if (!ext3) return noext; - ext2 = ext2.toLowerCase(); - return (f) => noext(f) && f.toLowerCase().endsWith(ext2); + ext3 = ext3.toLowerCase(); + return (f) => noext(f) && f.toLowerCase().endsWith(ext3); }; - var qmarksTestDot = ([$0, ext2 = ""]) => { - const noext = qmarksTestNoExtDot([$0]); - return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2); + var qmarksTestDot2 = ([$0, ext3 = ""]) => { + const noext = qmarksTestNoExtDot2([$0]); + return !ext3 ? noext : (f) => noext(f) && f.endsWith(ext3); }; - var qmarksTest = ([$0, ext2 = ""]) => { - const noext = qmarksTestNoExt([$0]); - return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2); + var qmarksTest2 = ([$0, ext3 = ""]) => { + const noext = qmarksTestNoExt2([$0]); + return !ext3 ? noext : (f) => noext(f) && f.endsWith(ext3); }; - var qmarksTestNoExt = ([$0]) => { + var qmarksTestNoExt2 = ([$0]) => { const len = $0.length; return (f) => f.length === len && !f.startsWith("."); }; - var qmarksTestNoExtDot = ([$0]) => { + var qmarksTestNoExtDot2 = ([$0]) => { const len = $0.length; return (f) => f.length === len && f !== "." && f !== ".."; }; - var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix"; - var path28 = { + var defaultPlatform2 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix"; + var path29 = { win32: { sep: "\\" }, posix: { sep: "/" } }; - exports2.sep = defaultPlatform === "win32" ? path28.win32.sep : path28.posix.sep; + exports2.sep = defaultPlatform2 === "win32" ? path29.win32.sep : path29.posix.sep; exports2.minimatch.sep = exports2.sep; exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **"); exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR; - var qmark = "[^/]"; - var star = qmark + "*?"; - var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; - var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; - var filter = (pattern, options = {}) => (p) => (0, exports2.minimatch)(p, pattern, options); - exports2.filter = filter; + var qmark3 = "[^/]"; + var star3 = qmark3 + "*?"; + var twoStarDot2 = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; + var twoStarNoDot2 = "(?:(?!(?:\\/|^)\\.).)*?"; + var filter2 = (pattern, options = {}) => (p) => (0, exports2.minimatch)(p, pattern, options); + exports2.filter = filter2; exports2.minimatch.filter = exports2.filter; - var ext = (a, b = {}) => Object.assign({}, a, b); - var defaults = (def) => { + var ext2 = (a, b = {}) => Object.assign({}, a, b); + var defaults2 = (def) => { if (!def || typeof def !== "object" || !Object.keys(def).length) { return exports2.minimatch; } const orig = exports2.minimatch; - const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); + const m = (p, pattern, options = {}) => orig(p, pattern, ext2(def, options)); return Object.assign(m, { Minimatch: class Minimatch extends orig.Minimatch { constructor(pattern, options = {}) { - super(pattern, ext(def, options)); + super(pattern, ext2(def, options)); } static defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; + return orig.defaults(ext2(def, options)).Minimatch; } }, AST: class AST extends orig.AST { /* c8 ignore start */ constructor(type, parent, options = {}) { - super(type, parent, ext(def, options)); + super(type, parent, ext2(def, options)); } /* c8 ignore stop */ static fromGlob(pattern, options = {}) { - return orig.AST.fromGlob(pattern, ext(def, options)); + return orig.AST.fromGlob(pattern, ext2(def, options)); } }, - unescape: (s, options = {}) => orig.unescape(s, ext(def, options)), - escape: (s, options = {}) => orig.escape(s, ext(def, options)), - filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)), - defaults: (options) => orig.defaults(ext(def, options)), - makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)), - braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)), - match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)), + unescape: (s, options = {}) => orig.unescape(s, ext2(def, options)), + escape: (s, options = {}) => orig.escape(s, ext2(def, options)), + filter: (pattern, options = {}) => orig.filter(pattern, ext2(def, options)), + defaults: (options) => orig.defaults(ext2(def, options)), + makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext2(def, options)), + braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext2(def, options)), + match: (list, pattern, options = {}) => orig.match(list, pattern, ext2(def, options)), sep: orig.sep, GLOBSTAR: exports2.GLOBSTAR }); }; - exports2.defaults = defaults; + exports2.defaults = defaults2; exports2.minimatch.defaults = exports2.defaults; - var braceExpand = (pattern, options = {}) => { + var braceExpand2 = (pattern, options = {}) => { (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax }); }; - exports2.braceExpand = braceExpand; + exports2.braceExpand = braceExpand2; exports2.minimatch.braceExpand = exports2.braceExpand; - var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe(); - exports2.makeRe = makeRe; + var makeRe2 = (pattern, options = {}) => new Minimatch2(pattern, options).makeRe(); + exports2.makeRe = makeRe2; exports2.minimatch.makeRe = exports2.makeRe; - var match = (list, pattern, options = {}) => { - const mm = new Minimatch(pattern, options); + var match2 = (list, pattern, options = {}) => { + const mm = new Minimatch2(pattern, options); list = list.filter((f) => mm.match(f)); if (mm.options.nonull && !list.length) { list.push(pattern); } return list; }; - exports2.match = match; + exports2.match = match2; exports2.minimatch.match = exports2.match; - var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/; - var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - var Minimatch = class { + var globMagic2 = /[?*]|[+@!]\(.*?\)|\[|\]/; + var regExpEscape3 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + var Minimatch2 = class { options; set; pattern; @@ -103362,7 +103682,7 @@ var require_commonjs20 = __commonJS({ this.options = options; this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200; this.pattern = pattern; - this.platform = options.platform || defaultPlatform; + this.platform = options.platform || defaultPlatform2; this.isWindows = this.platform === "win32"; const awe = "allowWindowsEscape"; this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false; @@ -103419,7 +103739,7 @@ var require_commonjs20 = __commonJS({ this.debug(this.pattern, this.globParts); let set = this.globParts.map((s, _2, __) => { if (this.isWindows && this.windowsNoMagicRoot) { - const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]); + const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic2.test(s[2])) && !globMagic2.test(s[3]); const isDrive = /^[a-z]:/i.test(s[0]); if (isUNC) { return [ @@ -103874,16 +104194,16 @@ var require_commonjs20 = __commonJS({ return ""; let m; let fastTest = null; - if (m = pattern.match(starRE)) { - fastTest = options.dot ? starTestDot : starTest; - } else if (m = pattern.match(starDotExtRE)) { - fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]); - } else if (m = pattern.match(qmarksRE)) { - fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m); - } else if (m = pattern.match(starDotStarRE)) { - fastTest = options.dot ? starDotStarTestDot : starDotStarTest; - } else if (m = pattern.match(dotStarRE)) { - fastTest = dotStarTest; + if (m = pattern.match(starRE2)) { + fastTest = options.dot ? starTestDot2 : starTest2; + } else if (m = pattern.match(starDotExtRE2)) { + fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot2 : starDotExtTestNocase2 : options.dot ? starDotExtTestDot2 : starDotExtTest2)(m[1]); + } else if (m = pattern.match(qmarksRE2)) { + fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot2 : qmarksTestNocase2 : options.dot ? qmarksTestDot2 : qmarksTest2)(m); + } else if (m = pattern.match(starDotStarRE2)) { + fastTest = options.dot ? starDotStarTestDot2 : starDotStarTest2; + } else if (m = pattern.match(dotStarRE2)) { + fastTest = dotStarTest2; } const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern(); if (fastTest && typeof re === "object") { @@ -103900,7 +104220,7 @@ var require_commonjs20 = __commonJS({ return this.regexp; } const options = this.options; - const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; + const twoStar = options.noglobstar ? star3 : options.dot ? twoStarDot2 : twoStarNoDot2; const flags = new Set(options.nocase ? ["i"] : []); let re = set.map((pattern) => { const pp = pattern.map((p) => { @@ -103908,7 +104228,7 @@ var require_commonjs20 = __commonJS({ for (const f of p.flags.split("")) flags.add(f); } - return typeof p === "string" ? regExpEscape(p) : p === exports2.GLOBSTAR ? exports2.GLOBSTAR : p._src; + return typeof p === "string" ? regExpEscape3(p) : p === exports2.GLOBSTAR ? exports2.GLOBSTAR : p._src; }); pp.forEach((p, i) => { const next = pp[i + 1]; @@ -104010,7 +104330,7 @@ var require_commonjs20 = __commonJS({ return exports2.minimatch.defaults(def).Minimatch; } }; - exports2.Minimatch = Minimatch; + exports2.Minimatch = Minimatch2; var ast_js_2 = require_ast(); Object.defineProperty(exports2, "AST", { enumerable: true, get: function() { return ast_js_2.AST; @@ -104024,7 +104344,7 @@ var require_commonjs20 = __commonJS({ return unescape_js_2.unescape; } }); exports2.minimatch.AST = ast_js_1.AST; - exports2.minimatch.Minimatch = Minimatch; + exports2.minimatch.Minimatch = Minimatch2; exports2.minimatch.escape = escape_js_1.escape; exports2.minimatch.unescape = unescape_js_1.unescape; } @@ -104232,11 +104552,11 @@ var require_commonjs21 = __commonJS({ free: c.#free, // methods isBackgroundFetch: (p) => c.#isBackgroundFetch(p), - backgroundFetch: (k, index, options, context5) => c.#backgroundFetch(k, index, options, context5), - moveToTail: (index) => c.#moveToTail(index), + backgroundFetch: (k, index2, options, context5) => c.#backgroundFetch(k, index2, options, context5), + moveToTail: (index2) => c.#moveToTail(index2), indexes: (options) => c.#indexes(options), rindexes: (options) => c.#rindexes(options), - isStale: (index) => c.#isStale(index) + isStale: (index2) => c.#isStale(index2) }; } // Protected read-only members @@ -104401,13 +104721,13 @@ var require_commonjs21 = __commonJS({ const starts = new ZeroArray(this.#max); this.#ttls = ttls; this.#starts = starts; - this.#setItemTTL = (index, ttl, start = perf.now()) => { - starts[index] = ttl !== 0 ? start : 0; - ttls[index] = ttl; + this.#setItemTTL = (index2, ttl, start = perf.now()) => { + starts[index2] = ttl !== 0 ? start : 0; + ttls[index2] = ttl; if (ttl !== 0 && this.ttlAutopurge) { const t = setTimeout(() => { - if (this.#isStale(index)) { - this.#delete(this.#keyList[index], "expire"); + if (this.#isStale(index2)) { + this.#delete(this.#keyList[index2], "expire"); } }, ttl + 1); if (t.unref) { @@ -104415,13 +104735,13 @@ var require_commonjs21 = __commonJS({ } } }; - this.#updateItemAge = (index) => { - starts[index] = ttls[index] !== 0 ? perf.now() : 0; + this.#updateItemAge = (index2) => { + starts[index2] = ttls[index2] !== 0 ? perf.now() : 0; }; - this.#statusTTL = (status, index) => { - if (ttls[index]) { - const ttl = ttls[index]; - const start = starts[index]; + this.#statusTTL = (status, index2) => { + if (ttls[index2]) { + const ttl = ttls[index2]; + const start = starts[index2]; if (!ttl || !start) return; status.ttl = ttl; @@ -104444,21 +104764,21 @@ var require_commonjs21 = __commonJS({ return n; }; this.getRemainingTTL = (key) => { - const index = this.#keyMap.get(key); - if (index === void 0) { + const index2 = this.#keyMap.get(key); + if (index2 === void 0) { return 0; } - const ttl = ttls[index]; - const start = starts[index]; + const ttl = ttls[index2]; + const start = starts[index2]; if (!ttl || !start) { return Infinity; } const age = (cachedNow || getNow()) - start; return ttl - age; }; - this.#isStale = (index) => { - const s = starts[index]; - const t = ttls[index]; + this.#isStale = (index2) => { + const s = starts[index2]; + const t = ttls[index2]; return !!t && !!s && (cachedNow || getNow()) - s > t; }; } @@ -104475,9 +104795,9 @@ var require_commonjs21 = __commonJS({ const sizes = new ZeroArray(this.#max); this.#calculatedSize = 0; this.#sizes = sizes; - this.#removeItemSize = (index) => { - this.#calculatedSize -= sizes[index]; - sizes[index] = 0; + this.#removeItemSize = (index2) => { + this.#calculatedSize -= sizes[index2]; + sizes[index2] = 0; }; this.#requireSize = (k, v, size, sizeCalculation) => { if (this.#isBackgroundFetch(v)) { @@ -104498,15 +104818,15 @@ var require_commonjs21 = __commonJS({ } return size; }; - this.#addItemSize = (index, size, status) => { - sizes[index] = size; + this.#addItemSize = (index2, size, status) => { + sizes[index2] = size; if (this.#maxSize) { - const maxSize = this.#maxSize - sizes[index]; + const maxSize = this.#maxSize - sizes[index2]; while (this.#calculatedSize > maxSize) { this.#evict(true); } } - this.#calculatedSize += sizes[index]; + this.#calculatedSize += sizes[index2]; if (status) { status.entrySize = size; status.totalCalculatedSize = this.#calculatedSize; @@ -104557,8 +104877,8 @@ var require_commonjs21 = __commonJS({ } } } - #isValidIndex(index) { - return index !== void 0 && this.#keyMap.get(this.#keyList[index]) === index; + #isValidIndex(index2) { + return index2 !== void 0 && this.#keyMap.get(this.#keyList[index2]) === index2; } /** * Return a generator yielding `[key, value]` pairs, @@ -104845,17 +105165,17 @@ var require_commonjs21 = __commonJS({ this.#delete(k, "set"); return this; } - let index = this.#size === 0 ? void 0 : this.#keyMap.get(k); - if (index === void 0) { - index = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size; - this.#keyList[index] = k; - this.#valList[index] = v; - this.#keyMap.set(k, index); - this.#next[this.#tail] = index; - this.#prev[index] = this.#tail; - this.#tail = index; + let index2 = this.#size === 0 ? void 0 : this.#keyMap.get(k); + if (index2 === void 0) { + index2 = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size; + this.#keyList[index2] = k; + this.#valList[index2] = v; + this.#keyMap.set(k, index2); + this.#next[this.#tail] = index2; + this.#prev[index2] = this.#tail; + this.#tail = index2; this.#size++; - this.#addItemSize(index, size, status); + this.#addItemSize(index2, size, status); if (status) status.set = "add"; noUpdateTTL = false; @@ -104863,8 +105183,8 @@ var require_commonjs21 = __commonJS({ this.#onInsert?.(v, k, "add"); } } else { - this.#moveToTail(index); - const oldVal = this.#valList[index]; + this.#moveToTail(index2); + const oldVal = this.#valList[index2]; if (v !== oldVal) { if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) { oldVal.__abortController.abort(new Error("replaced")); @@ -104885,9 +105205,9 @@ var require_commonjs21 = __commonJS({ this.#disposed?.push([oldVal, k, "set"]); } } - this.#removeItemSize(index); - this.#addItemSize(index, size, status); - this.#valList[index] = v; + this.#removeItemSize(index2); + this.#addItemSize(index2, size, status); + this.#valList[index2] = v; if (status) { status.set = "replace"; const oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal; @@ -104906,10 +105226,10 @@ var require_commonjs21 = __commonJS({ } if (this.#ttls) { if (!noUpdateTTL) { - this.#setItemTTL(index, ttl, start); + this.#setItemTTL(index2, ttl, start); } if (status) - this.#statusTTL(status, index); + this.#statusTTL(status, index2); } if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) { const dt = this.#disposed; @@ -104995,24 +105315,24 @@ var require_commonjs21 = __commonJS({ */ has(k, hasOptions = {}) { const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions; - const index = this.#keyMap.get(k); - if (index !== void 0) { - const v = this.#valList[index]; + const index2 = this.#keyMap.get(k); + if (index2 !== void 0) { + const v = this.#valList[index2]; if (this.#isBackgroundFetch(v) && v.__staleWhileFetching === void 0) { return false; } - if (!this.#isStale(index)) { + if (!this.#isStale(index2)) { if (updateAgeOnHas) { - this.#updateItemAge(index); + this.#updateItemAge(index2); } if (status) { status.has = "hit"; - this.#statusTTL(status, index); + this.#statusTTL(status, index2); } return true; } else if (status) { status.has = "stale"; - this.#statusTTL(status, index); + this.#statusTTL(status, index2); } } else if (status) { status.has = "miss"; @@ -105028,15 +105348,15 @@ var require_commonjs21 = __commonJS({ */ peek(k, peekOptions = {}) { const { allowStale = this.allowStale } = peekOptions; - const index = this.#keyMap.get(k); - if (index === void 0 || !allowStale && this.#isStale(index)) { + const index2 = this.#keyMap.get(k); + if (index2 === void 0 || !allowStale && this.#isStale(index2)) { return; } - const v = this.#valList[index]; + const v = this.#valList[index2]; return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v; } - #backgroundFetch(k, index, options, context5) { - const v = index === void 0 ? void 0 : this.#valList[index]; + #backgroundFetch(k, index2, options, context5) { + const v = index2 === void 0 ? void 0 : this.#valList[index2]; if (this.#isBackgroundFetch(v)) { return v; } @@ -105067,10 +105387,10 @@ var require_commonjs21 = __commonJS({ return fetchFail(ac.signal.reason); } const bf2 = p; - if (this.#valList[index] === p) { + if (this.#valList[index2] === p) { if (v2 === void 0) { if (bf2.__staleWhileFetching) { - this.#valList[index] = bf2.__staleWhileFetching; + this.#valList[index2] = bf2.__staleWhileFetching; } else { this.#delete(k, "fetch"); } @@ -105095,12 +105415,12 @@ var require_commonjs21 = __commonJS({ const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection; const noDelete = allowStale || options.noDeleteOnFetchRejection; const bf2 = p; - if (this.#valList[index] === p) { + if (this.#valList[index2] === p) { const del = !noDelete || bf2.__staleWhileFetching === void 0; if (del) { this.#delete(k, "fetch"); } else if (!allowStaleAborted) { - this.#valList[index] = bf2.__staleWhileFetching; + this.#valList[index2] = bf2.__staleWhileFetching; } } if (allowStale) { @@ -105134,11 +105454,11 @@ var require_commonjs21 = __commonJS({ __staleWhileFetching: v, __returned: void 0 }); - if (index === void 0) { + if (index2 === void 0) { this.set(k, bf, { ...fetchOpts.options, status: void 0 }); - index = this.#keyMap.get(k); + index2 = this.#keyMap.get(k); } else { - this.#valList[index] = bf; + this.#valList[index2] = bf; } return bf; } @@ -105196,14 +105516,14 @@ var require_commonjs21 = __commonJS({ status, signal }; - let index = this.#keyMap.get(k); - if (index === void 0) { + let index2 = this.#keyMap.get(k); + if (index2 === void 0) { if (status) status.fetch = "miss"; - const p = this.#backgroundFetch(k, index, options, context5); + const p = this.#backgroundFetch(k, index2, options, context5); return p.__returned = p; } else { - const v = this.#valList[index]; + const v = this.#valList[index2]; if (this.#isBackgroundFetch(v)) { const stale = allowStale && v.__staleWhileFetching !== void 0; if (status) { @@ -105213,19 +105533,19 @@ var require_commonjs21 = __commonJS({ } return stale ? v.__staleWhileFetching : v.__returned = v; } - const isStale = this.#isStale(index); + const isStale = this.#isStale(index2); if (!forceRefresh && !isStale) { if (status) status.fetch = "hit"; - this.#moveToTail(index); + this.#moveToTail(index2); if (updateAgeOnGet) { - this.#updateItemAge(index); + this.#updateItemAge(index2); } if (status) - this.#statusTTL(status, index); + this.#statusTTL(status, index2); return v; } - const p = this.#backgroundFetch(k, index, options, context5); + const p = this.#backgroundFetch(k, index2, options, context5); const hasStale = p.__staleWhileFetching !== void 0; const staleVal = hasStale && allowStale; if (status) { @@ -105266,13 +105586,13 @@ var require_commonjs21 = __commonJS({ */ get(k, getOptions = {}) { const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status } = getOptions; - const index = this.#keyMap.get(k); - if (index !== void 0) { - const value = this.#valList[index]; + const index2 = this.#keyMap.get(k); + if (index2 !== void 0) { + const value = this.#valList[index2]; const fetching = this.#isBackgroundFetch(value); if (status) - this.#statusTTL(status, index); - if (this.#isStale(index)) { + this.#statusTTL(status, index2); + if (this.#isStale(index2)) { if (status) status.get = "stale"; if (!fetching) { @@ -105294,9 +105614,9 @@ var require_commonjs21 = __commonJS({ if (fetching) { return value.__staleWhileFetching; } - this.#moveToTail(index); + this.#moveToTail(index2); if (updateAgeOnGet) { - this.#updateItemAge(index); + this.#updateItemAge(index2); } return value; } @@ -105308,15 +105628,15 @@ var require_commonjs21 = __commonJS({ this.#prev[n] = p; this.#next[p] = n; } - #moveToTail(index) { - if (index !== this.#tail) { - if (index === this.#head) { - this.#head = this.#next[index]; + #moveToTail(index2) { + if (index2 !== this.#tail) { + if (index2 === this.#head) { + this.#head = this.#next[index2]; } else { - this.#connect(this.#prev[index], this.#next[index]); + this.#connect(this.#prev[index2], this.#next[index2]); } - this.#connect(this.#tail, index); - this.#tail = index; + this.#connect(this.#tail, index2); + this.#tail = index2; } } /** @@ -105330,14 +105650,14 @@ var require_commonjs21 = __commonJS({ #delete(k, reason) { let deleted = false; if (this.#size !== 0) { - const index = this.#keyMap.get(k); - if (index !== void 0) { + const index2 = this.#keyMap.get(k); + if (index2 !== void 0) { deleted = true; if (this.#size === 1) { this.#clear(reason); } else { - this.#removeItemSize(index); - const v = this.#valList[index]; + this.#removeItemSize(index2); + const v = this.#valList[index2]; if (this.#isBackgroundFetch(v)) { v.__abortController.abort(new Error("deleted")); } else if (this.#hasDispose || this.#hasDisposeAfter) { @@ -105349,20 +105669,20 @@ var require_commonjs21 = __commonJS({ } } this.#keyMap.delete(k); - this.#keyList[index] = void 0; - this.#valList[index] = void 0; - if (index === this.#tail) { - this.#tail = this.#prev[index]; - } else if (index === this.#head) { - this.#head = this.#next[index]; + this.#keyList[index2] = void 0; + this.#valList[index2] = void 0; + if (index2 === this.#tail) { + this.#tail = this.#prev[index2]; + } else if (index2 === this.#head) { + this.#head = this.#next[index2]; } else { - const pi = this.#prev[index]; - this.#next[pi] = this.#next[index]; - const ni = this.#next[index]; - this.#prev[ni] = this.#prev[index]; + const pi = this.#prev[index2]; + this.#next[pi] = this.#next[index2]; + const ni = this.#next[index2]; + this.#prev[ni] = this.#prev[index2]; } this.#size--; - this.#free.push(index); + this.#free.push(index2); } } } @@ -105382,12 +105702,12 @@ var require_commonjs21 = __commonJS({ return this.#clear("delete"); } #clear(reason) { - for (const index of this.#rindexes({ allowStale: true })) { - const v = this.#valList[index]; + for (const index2 of this.#rindexes({ allowStale: true })) { + const v = this.#valList[index2]; if (this.#isBackgroundFetch(v)) { v.__abortController.abort(new Error("deleted")); } else { - const k = this.#keyList[index]; + const k = this.#keyList[index2]; if (this.#hasDispose) { this.#dispose?.(v, k, reason); } @@ -105440,8 +105760,8 @@ var require_commonjs22 = __commonJS({ var node_events_1 = require("node:events"); var node_stream_1 = __importDefault2(require("node:stream")); var node_string_decoder_1 = require("node:string_decoder"); - var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof node_stream_1.default || (0, exports2.isReadable)(s) || (0, exports2.isWritable)(s)); - exports2.isStream = isStream; + var isStream2 = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof node_stream_1.default || (0, exports2.isReadable)(s) || (0, exports2.isWritable)(s)); + exports2.isStream = isStream2; var isReadable = (s) => !!s && typeof s === "object" && s instanceof node_events_1.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws s.pipe !== node_stream_1.default.Writable.prototype.pipe; exports2.isReadable = isReadable; @@ -106164,10 +106484,10 @@ var require_commonjs22 = __commonJS({ * Return a void Promise that resolves once the stream ends. */ async promise() { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { this.on(DESTROYED, () => reject(new Error("stream destroyed"))); this.on("error", (er) => reject(er)); - this.on("end", () => resolve13()); + this.on("end", () => resolve14()); }); } /** @@ -106191,7 +106511,7 @@ var require_commonjs22 = __commonJS({ return Promise.resolve({ done: false, value: res }); if (this[EOF2]) return stop(); - let resolve13; + let resolve14; let reject; const onerr = (er) => { this.off("data", ondata); @@ -106205,19 +106525,19 @@ var require_commonjs22 = __commonJS({ this.off("end", onend); this.off(DESTROYED, ondestroy); this.pause(); - resolve13({ value, done: !!this[EOF2] }); + resolve14({ value, done: !!this[EOF2] }); }; const onend = () => { this.off("error", onerr); this.off("data", ondata); this.off(DESTROYED, ondestroy); stop(); - resolve13({ done: true, value: void 0 }); + resolve14({ done: true, value: void 0 }); }; const ondestroy = () => onerr(new Error("stream destroyed")); return new Promise((res2, rej) => { reject = rej; - resolve13 = res2; + resolve14 = res2; this.once(DESTROYED, ondestroy); this.once("error", onerr); this.once("end", onend); @@ -106622,12 +106942,12 @@ var require_commonjs23 = __commonJS({ /** * Get the Path object referenced by the string path, resolved from this Path */ - resolve(path28) { - if (!path28) { + resolve(path29) { + if (!path29) { return this; } - const rootPath = this.getRootString(path28); - const dir = path28.substring(rootPath.length); + const rootPath = this.getRootString(path29); + const dir = path29.substring(rootPath.length); const dirParts = dir.split(this.splitSep); const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts); return result; @@ -107069,16 +107389,16 @@ var require_commonjs23 = __commonJS({ return this.#readdirPromoteChild(e, pchild, p, c); } } - #readdirPromoteChild(e, p, index, c) { + #readdirPromoteChild(e, p, index2, c) { const v = p.name; p.#type = p.#type & IFMT_UNKNOWN | entToType(e); if (v !== e.name) p.name = e.name; - if (index !== c.provisional) { - if (index === c.length - 1) + if (index2 !== c.provisional) { + if (index2 === c.length - 1) c.pop(); else - c.splice(index, 1); + c.splice(index2, 1); c.unshift(p); } c.provisional++; @@ -107231,9 +107551,9 @@ var require_commonjs23 = __commonJS({ if (this.#asyncReaddirInFlight) { await this.#asyncReaddirInFlight; } else { - let resolve13 = () => { + let resolve14 = () => { }; - this.#asyncReaddirInFlight = new Promise((res) => resolve13 = res); + this.#asyncReaddirInFlight = new Promise((res) => resolve14 = res); try { for (const e of await this.#fs.promises.readdir(fullpath, { withFileTypes: true @@ -107246,7 +107566,7 @@ var require_commonjs23 = __commonJS({ children.provisional = 0; } this.#asyncReaddirInFlight = void 0; - resolve13(); + resolve14(); } return children.slice(0, children.provisional); } @@ -107380,8 +107700,8 @@ var require_commonjs23 = __commonJS({ /** * @internal */ - getRootString(path28) { - return node_path_1.win32.parse(path28).root; + getRootString(path29) { + return node_path_1.win32.parse(path29).root; } /** * @internal @@ -107428,8 +107748,8 @@ var require_commonjs23 = __commonJS({ /** * @internal */ - getRootString(path28) { - return path28.startsWith("/") ? "/" : ""; + getRootString(path29) { + return path29.startsWith("/") ? "/" : ""; } /** * @internal @@ -107479,8 +107799,8 @@ var require_commonjs23 = __commonJS({ * * @internal */ - constructor(cwd = process.cwd(), pathImpl, sep6, { nocase, childrenCacheSize = 16 * 1024, fs: fs30 = defaultFS } = {}) { - this.#fs = fsFromOption(fs30); + constructor(cwd = process.cwd(), pathImpl, sep7, { nocase, childrenCacheSize = 16 * 1024, fs: fs31 = defaultFS } = {}) { + this.#fs = fsFromOption(fs31); if (cwd instanceof URL || cwd.startsWith("file://")) { cwd = (0, node_url_1.fileURLToPath)(cwd); } @@ -107490,7 +107810,7 @@ var require_commonjs23 = __commonJS({ this.#resolveCache = new ResolveCache(); this.#resolvePosixCache = new ResolveCache(); this.#children = new ChildrenCache(childrenCacheSize); - const split = cwdPath.substring(this.rootPath.length).split(sep6); + const split = cwdPath.substring(this.rootPath.length).split(sep7); if (split.length === 1 && !split[0]) { split.pop(); } @@ -107519,11 +107839,11 @@ var require_commonjs23 = __commonJS({ /** * Get the depth of a provided path, string, or the cwd */ - depth(path28 = this.cwd) { - if (typeof path28 === "string") { - path28 = this.cwd.resolve(path28); + depth(path29 = this.cwd) { + if (typeof path29 === "string") { + path29 = this.cwd.resolve(path29); } - return path28.depth(); + return path29.depth(); } /** * Return the cache of child entries. Exposed so subclasses can create @@ -107749,9 +108069,9 @@ var require_commonjs23 = __commonJS({ opts = entry; entry = this.cwd; } - const { withFileTypes = true, follow = false, filter, walkFilter } = opts; + const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts; const results = []; - if (!filter || filter(entry)) { + if (!filter2 || filter2(entry)) { results.push(withFileTypes ? entry : entry.fullpath()); } const dirs = /* @__PURE__ */ new Set(); @@ -107770,7 +108090,7 @@ var require_commonjs23 = __commonJS({ } }; for (const e of entries) { - if (!filter || filter(e)) { + if (!filter2 || filter2(e)) { results.push(withFileTypes ? e : e.fullpath()); } if (follow && e.isSymbolicLink()) { @@ -107801,16 +108121,16 @@ var require_commonjs23 = __commonJS({ opts = entry; entry = this.cwd; } - const { withFileTypes = true, follow = false, filter, walkFilter } = opts; + const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts; const results = []; - if (!filter || filter(entry)) { + if (!filter2 || filter2(entry)) { results.push(withFileTypes ? entry : entry.fullpath()); } const dirs = /* @__PURE__ */ new Set([entry]); for (const dir of dirs) { const entries = dir.readdirSync(); for (const e of entries) { - if (!filter || filter(e)) { + if (!filter2 || filter2(e)) { results.push(withFileTypes ? e : e.fullpath()); } let r = e; @@ -107863,15 +108183,15 @@ var require_commonjs23 = __commonJS({ opts = entry; entry = this.cwd; } - const { withFileTypes = true, follow = false, filter, walkFilter } = opts; - if (!filter || filter(entry)) { + const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts; + if (!filter2 || filter2(entry)) { yield withFileTypes ? entry : entry.fullpath(); } const dirs = /* @__PURE__ */ new Set([entry]); for (const dir of dirs) { const entries = dir.readdirSync(); for (const e of entries) { - if (!filter || filter(e)) { + if (!filter2 || filter2(e)) { yield withFileTypes ? e : e.fullpath(); } let r = e; @@ -107894,18 +108214,18 @@ var require_commonjs23 = __commonJS({ opts = entry; entry = this.cwd; } - const { withFileTypes = true, follow = false, filter, walkFilter } = opts; + const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts; const results = new minipass_1.Minipass({ objectMode: true }); - if (!filter || filter(entry)) { + if (!filter2 || filter2(entry)) { results.write(withFileTypes ? entry : entry.fullpath()); } const dirs = /* @__PURE__ */ new Set(); - const queue = [entry]; + const queue2 = [entry]; let processing = 0; const process2 = () => { let paused = false; while (!paused) { - const dir = queue.shift(); + const dir = queue2.shift(); if (!dir) { if (processing === 0) results.end(); @@ -107929,7 +108249,7 @@ var require_commonjs23 = __commonJS({ } } for (const e of entries) { - if (e && (!filter || filter(e))) { + if (e && (!filter2 || filter2(e))) { if (!results.write(withFileTypes ? e : e.fullpath())) { paused = true; } @@ -107939,7 +108259,7 @@ var require_commonjs23 = __commonJS({ for (const e of entries) { const r = e.realpathCached() || e; if (r.shouldWalk(dirs, walkFilter)) { - queue.push(r); + queue2.push(r); } } if (paused && !results.flowing) { @@ -107963,18 +108283,18 @@ var require_commonjs23 = __commonJS({ opts = entry; entry = this.cwd; } - const { withFileTypes = true, follow = false, filter, walkFilter } = opts; + const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts; const results = new minipass_1.Minipass({ objectMode: true }); const dirs = /* @__PURE__ */ new Set(); - if (!filter || filter(entry)) { + if (!filter2 || filter2(entry)) { results.write(withFileTypes ? entry : entry.fullpath()); } - const queue = [entry]; + const queue2 = [entry]; let processing = 0; const process2 = () => { let paused = false; while (!paused) { - const dir = queue.shift(); + const dir = queue2.shift(); if (!dir) { if (processing === 0) results.end(); @@ -107984,7 +108304,7 @@ var require_commonjs23 = __commonJS({ dirs.add(dir); const entries = dir.readdirSync(); for (const e of entries) { - if (!filter || filter(e)) { + if (!filter2 || filter2(e)) { if (!results.write(withFileTypes ? e : e.fullpath())) { paused = true; } @@ -108000,7 +108320,7 @@ var require_commonjs23 = __commonJS({ r.lstatSync(); } if (r.shouldWalk(dirs, walkFilter)) { - queue.push(r); + queue2.push(r); } } } @@ -108010,9 +108330,9 @@ var require_commonjs23 = __commonJS({ process2(); return results; } - chdir(path28 = this.cwd) { + chdir(path29 = this.cwd) { const oldCwd = this.cwd; - this.cwd = typeof path28 === "string" ? this.cwd.resolve(path28) : path28; + this.cwd = typeof path29 === "string" ? this.cwd.resolve(path29) : path29; this.cwd[setAsCwd](oldCwd); } }; @@ -108039,8 +108359,8 @@ var require_commonjs23 = __commonJS({ /** * @internal */ - newRoot(fs30) { - return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs30 }); + newRoot(fs31) { + return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs31 }); } /** * Return true if the provided path string is an absolute path @@ -108069,8 +108389,8 @@ var require_commonjs23 = __commonJS({ /** * @internal */ - newRoot(fs30) { - return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs30 }); + newRoot(fs31) { + return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs31 }); } /** * Return true if the provided path string is an absolute path @@ -108113,7 +108433,7 @@ var require_pattern = __commonJS({ #isUNC; #isAbsolute; #followGlobstar = true; - constructor(patternList, globList, index, platform2) { + constructor(patternList, globList, index2, platform2) { if (!isPatternList(patternList)) { throw new TypeError("empty pattern list"); } @@ -108124,12 +108444,12 @@ var require_pattern = __commonJS({ throw new TypeError("mismatched pattern list and glob list lengths"); } this.length = patternList.length; - if (index < 0 || index >= this.length) { + if (index2 < 0 || index2 >= this.length) { throw new TypeError("index out of range"); } this.#patternList = patternList; this.#globList = globList; - this.#index = index; + this.#index = index2; this.#platform = platform2; if (this.#index === 0) { if (this.isUNC()) { @@ -108274,7 +108594,7 @@ var require_ignore = __commonJS({ exports2.Ignore = void 0; var minimatch_1 = require_commonjs20(); var pattern_js_1 = require_pattern(); - var defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux"; + var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux"; var Ignore = class { relative; relativeChildren; @@ -108282,7 +108602,7 @@ var require_ignore = __commonJS({ absoluteChildren; platform; mmopts; - constructor(ignored, { nobrace, nocase, noext, noglobstar, platform: platform2 = defaultPlatform }) { + constructor(ignored, { nobrace, nocase, noext, noglobstar, platform: platform2 = defaultPlatform2 }) { this.relative = []; this.absolute = []; this.relativeChildren = []; @@ -108400,8 +108720,8 @@ var require_processor = __commonJS({ } // match, absolute, ifdir entries() { - return [...this.store.entries()].map(([path28, n]) => [ - path28, + return [...this.store.entries()].map(([path29, n]) => [ + path29, !!(n & 2), !!(n & 1) ]); @@ -108619,9 +108939,9 @@ var require_walker = __commonJS({ signal; maxDepth; includeChildMatches; - constructor(patterns, path28, opts) { + constructor(patterns, path29, opts) { this.patterns = patterns; - this.path = path28; + this.path = path29; this.opts = opts; this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/"; this.includeChildMatches = opts.includeChildMatches !== false; @@ -108640,11 +108960,11 @@ var require_walker = __commonJS({ }); } } - #ignored(path28) { - return this.seen.has(path28) || !!this.#ignore?.ignored?.(path28); + #ignored(path29) { + return this.seen.has(path29) || !!this.#ignore?.ignored?.(path29); } - #childrenIgnored(path28) { - return !!this.#ignore?.childrenIgnored?.(path28); + #childrenIgnored(path29) { + return !!this.#ignore?.childrenIgnored?.(path29); } // backpressure mechanism pause() { @@ -108860,8 +109180,8 @@ var require_walker = __commonJS({ exports2.GlobUtil = GlobUtil; var GlobWalker = class extends GlobUtil { matches = /* @__PURE__ */ new Set(); - constructor(patterns, path28, opts) { - super(patterns, path28, opts); + constructor(patterns, path29, opts) { + super(patterns, path29, opts); } matchEmit(e) { this.matches.add(e); @@ -108899,8 +109219,8 @@ var require_walker = __commonJS({ exports2.GlobWalker = GlobWalker; var GlobStream = class extends GlobUtil { results; - constructor(patterns, path28, opts) { - super(patterns, path28, opts); + constructor(patterns, path29, opts) { + super(patterns, path29, opts); this.results = new minipass_1.Minipass({ signal: this.signal, objectMode: true @@ -108947,7 +109267,7 @@ var require_glob2 = __commonJS({ var path_scurry_1 = require_commonjs23(); var pattern_js_1 = require_pattern(); var walker_js_1 = require_walker(); - var defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux"; + var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux"; var Glob = class { absolute; cwd; @@ -109039,7 +109359,7 @@ var require_glob2 = __commonJS({ pattern = pattern.map((p) => p.includes("/") ? p : `./**/${p}`); } this.pattern = pattern; - this.platform = opts.platform || defaultPlatform; + this.platform = opts.platform || defaultPlatform2; this.opts = { ...opts, platform: this.platform }; if (opts.scurry) { this.scurry = opts.scurry; @@ -109255,8 +109575,8 @@ var require_commonjs24 = __commonJS({ // node_modules/archiver-utils/file.js var require_file3 = __commonJS({ "node_modules/archiver-utils/file.js"(exports2, module2) { - var fs30 = require_graceful_fs(); - var path28 = require("path"); + var fs31 = require_graceful_fs(); + var path29 = require("path"); var flatten = require_flatten(); var difference = require_difference(); var union = require_union(); @@ -109281,8 +109601,8 @@ var require_file3 = __commonJS({ return result; }; file.exists = function() { - var filepath = path28.join.apply(path28, arguments); - return fs30.existsSync(filepath); + var filepath = path29.join.apply(path29, arguments); + return fs31.existsSync(filepath); }; file.expand = function(...args) { var options = isPlainObject3(args[0]) ? args.shift() : {}; @@ -109295,12 +109615,12 @@ var require_file3 = __commonJS({ }); if (options.filter) { matches = matches.filter(function(filepath) { - filepath = path28.join(options.cwd || "", filepath); + filepath = path29.join(options.cwd || "", filepath); try { if (typeof options.filter === "function") { return options.filter(filepath); } else { - return fs30.statSync(filepath)[options.filter](); + return fs31.statSync(filepath)[options.filter](); } } catch (e) { return false; @@ -109312,7 +109632,7 @@ var require_file3 = __commonJS({ file.expandMapping = function(patterns, destBase, options) { options = Object.assign({ rename: function(destBase2, destPath) { - return path28.join(destBase2 || "", destPath); + return path29.join(destBase2 || "", destPath); } }, options); var files = []; @@ -109320,14 +109640,14 @@ var require_file3 = __commonJS({ file.expand(options, patterns).forEach(function(src) { var destPath = src; if (options.flatten) { - destPath = path28.basename(destPath); + destPath = path29.basename(destPath); } if (options.ext) { destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext); } var dest = options.rename(destBase, destPath, options); if (options.cwd) { - src = path28.join(options.cwd, src); + src = path29.join(options.cwd, src); } dest = dest.replace(pathSeparatorRe, "/"); src = src.replace(pathSeparatorRe, "/"); @@ -109408,14 +109728,14 @@ var require_file3 = __commonJS({ // node_modules/archiver-utils/index.js var require_archiver_utils = __commonJS({ "node_modules/archiver-utils/index.js"(exports2, module2) { - var fs30 = require_graceful_fs(); - var path28 = require("path"); - var isStream = require_is_stream(); + var fs31 = require_graceful_fs(); + var path29 = require("path"); + var isStream2 = require_is_stream(); var lazystream = require_lazystream(); - var normalizePath = require_normalize_path(); - var defaults = require_defaults(); + var normalizePath4 = require_normalize_path(); + var defaults2 = require_defaults(); var Stream = require("stream").Stream; - var PassThrough = require_ours().PassThrough; + var PassThrough3 = require_ours().PassThrough; var utils = module2.exports = {}; utils.file = require_file3(); utils.collectStream = function(source, callback) { @@ -109450,14 +109770,14 @@ var require_archiver_utils = __commonJS({ utils.defaults = function(object, source, guard) { var args = arguments; args[0] = args[0] || {}; - return defaults(...args); + return defaults2(...args); }; utils.isStream = function(source) { - return isStream(source); + return isStream2(source); }; utils.lazyReadStream = function(filepath) { return new lazystream.Readable(function() { - return fs30.createReadStream(filepath); + return fs31.createReadStream(filepath); }); }; utils.normalizeInputSource = function(source) { @@ -109466,18 +109786,18 @@ var require_archiver_utils = __commonJS({ } else if (typeof source === "string") { return Buffer.from(source); } else if (utils.isStream(source)) { - return source.pipe(new PassThrough()); + return source.pipe(new PassThrough3()); } return source; }; utils.sanitizePath = function(filepath) { - return normalizePath(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, ""); + return normalizePath4(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, ""); }; utils.trailingSlashIt = function(str) { return str.slice(-1) !== "/" ? str + "/" : str; }; utils.unixifyPath = function(filepath) { - return normalizePath(filepath, false).replace(/^\w+:/, ""); + return normalizePath4(filepath, false).replace(/^\w+:/, ""); }; utils.walkdir = function(dirpath, base, callback) { var results = []; @@ -109485,7 +109805,7 @@ var require_archiver_utils = __commonJS({ callback = base; base = dirpath; } - fs30.readdir(dirpath, function(err, list) { + fs31.readdir(dirpath, function(err, list) { var i = 0; var file; var filepath; @@ -109497,11 +109817,11 @@ var require_archiver_utils = __commonJS({ if (!file) { return callback(null, results); } - filepath = path28.join(dirpath, file); - fs30.stat(filepath, function(err2, stats) { + filepath = path29.join(dirpath, file); + fs31.stat(filepath, function(err2, stats) { results.push({ path: filepath, - relative: path28.relative(base, filepath).replace(/\\/g, "/"), + relative: path29.relative(base, filepath).replace(/\\/g, "/"), stats }); if (stats && stats.isDirectory()) { @@ -109524,11 +109844,11 @@ var require_archiver_utils = __commonJS({ } }); -// node_modules/archiver/lib/error.js +// node_modules/@actions/artifact/node_modules/archiver/lib/error.js var require_error3 = __commonJS({ - "node_modules/archiver/lib/error.js"(exports2, module2) { - var util = require("util"); - var ERROR_CODES = { + "node_modules/@actions/artifact/node_modules/archiver/lib/error.js"(exports2, module2) { + var util3 = require("util"); + var ERROR_CODES2 = { "ABORTED": "archive was aborted", "DIRECTORYDIRPATHREQUIRED": "diretory dirpath argument must be a non-empty string value", "DIRECTORYFUNCTIONINVALIDDATA": "invalid data returned by directory custom data function", @@ -109546,42 +109866,42 @@ var require_error3 = __commonJS({ "SYMLINKTARGETREQUIRED": "symlink target argument must be a non-empty string value", "ENTRYNOTSUPPORTED": "entry not supported" }; - function ArchiverError(code, data) { + function ArchiverError2(code, data) { Error.captureStackTrace(this, this.constructor); - this.message = ERROR_CODES[code] || code; + this.message = ERROR_CODES2[code] || code; this.code = code; this.data = data; } - util.inherits(ArchiverError, Error); - exports2 = module2.exports = ArchiverError; + util3.inherits(ArchiverError2, Error); + exports2 = module2.exports = ArchiverError2; } }); -// node_modules/archiver/lib/core.js +// node_modules/@actions/artifact/node_modules/archiver/lib/core.js var require_core3 = __commonJS({ - "node_modules/archiver/lib/core.js"(exports2, module2) { - var fs30 = require("fs"); + "node_modules/@actions/artifact/node_modules/archiver/lib/core.js"(exports2, module2) { + var fs31 = require("fs"); var glob2 = require_readdir_glob(); var async = require_async(); - var path28 = require("path"); - var util = require_archiver_utils(); + var path29 = require("path"); + var util3 = require_archiver_utils(); var inherits = require("util").inherits; - var ArchiverError = require_error3(); - var Transform = require_ours().Transform; - var win32 = process.platform === "win32"; - var Archiver = function(format, options) { - if (!(this instanceof Archiver)) { - return new Archiver(format, options); + var ArchiverError2 = require_error3(); + var Transform5 = require_ours().Transform; + var win322 = process.platform === "win32"; + var Archiver2 = function(format, options) { + if (!(this instanceof Archiver2)) { + return new Archiver2(format, options); } if (typeof format !== "string") { options = format; format = "zip"; } - options = this.options = util.defaults(options, { + options = this.options = util3.defaults(options, { highWaterMark: 1024 * 1024, statConcurrency: 4 }); - Transform.call(this, options); + Transform5.call(this, options); this._format = false; this._module = false; this._pending = 0; @@ -109603,8 +109923,8 @@ var require_core3 = __commonJS({ }; this._streams = []; }; - inherits(Archiver, Transform); - Archiver.prototype._abort = function() { + inherits(Archiver2, Transform5); + Archiver2.prototype._abort = function() { this._state.aborted = true; this._queue.kill(); this._statQueue.kill(); @@ -109612,7 +109932,7 @@ var require_core3 = __commonJS({ this._shutdown(); } }; - Archiver.prototype._append = function(filepath, data) { + Archiver2.prototype._append = function(filepath, data) { data = data || {}; var task = { source: null, @@ -109624,7 +109944,7 @@ var require_core3 = __commonJS({ data.sourcePath = filepath; task.data = data; this._entriesCount++; - if (data.stats && data.stats instanceof fs30.Stats) { + if (data.stats && data.stats instanceof fs31.Stats) { task = this._updateQueueTaskWithStats(task, data.stats); if (task) { if (data.stats.size) { @@ -109636,7 +109956,7 @@ var require_core3 = __commonJS({ this._statQueue.push(task); } }; - Archiver.prototype._finalize = function() { + Archiver2.prototype._finalize = function() { if (this._state.finalizing || this._state.finalized || this._state.aborted) { return; } @@ -109645,7 +109965,7 @@ var require_core3 = __commonJS({ this._state.finalizing = false; this._state.finalized = true; }; - Archiver.prototype._maybeFinalize = function() { + Archiver2.prototype._maybeFinalize = function() { if (this._state.finalizing || this._state.finalized || this._state.aborted) { return false; } @@ -109655,7 +109975,7 @@ var require_core3 = __commonJS({ } return false; }; - Archiver.prototype._moduleAppend = function(source, data, callback) { + Archiver2.prototype._moduleAppend = function(source, data, callback) { if (this._state.aborted) { callback(); return; @@ -109689,32 +110009,32 @@ var require_core3 = __commonJS({ setImmediate(callback); }.bind(this)); }; - Archiver.prototype._moduleFinalize = function() { + Archiver2.prototype._moduleFinalize = function() { if (typeof this._module.finalize === "function") { this._module.finalize(); } else if (typeof this._module.end === "function") { this._module.end(); } else { - this.emit("error", new ArchiverError("NOENDMETHOD")); + this.emit("error", new ArchiverError2("NOENDMETHOD")); } }; - Archiver.prototype._modulePipe = function() { + Archiver2.prototype._modulePipe = function() { this._module.on("error", this._onModuleError.bind(this)); this._module.pipe(this); this._state.modulePiped = true; }; - Archiver.prototype._moduleSupports = function(key) { + Archiver2.prototype._moduleSupports = function(key) { if (!this._module.supports || !this._module.supports[key]) { return false; } return this._module.supports[key]; }; - Archiver.prototype._moduleUnpipe = function() { + Archiver2.prototype._moduleUnpipe = function() { this._module.unpipe(this); this._state.modulePiped = false; }; - Archiver.prototype._normalizeEntryData = function(data, stats) { - data = util.defaults(data, { + Archiver2.prototype._normalizeEntryData = function(data, stats) { + data = util3.defaults(data, { type: "file", name: null, date: null, @@ -109732,7 +110052,7 @@ var require_core3 = __commonJS({ data.name = data.prefix + "/" + data.name; data.prefix = null; } - data.name = util.sanitizePath(data.name); + data.name = util3.sanitizePath(data.name); if (data.type !== "symlink" && data.name.slice(-1) === "/") { isDir = true; data.type = "directory"; @@ -109741,18 +110061,18 @@ var require_core3 = __commonJS({ } } if (typeof data.mode === "number") { - if (win32) { + if (win322) { data.mode &= 511; } else { data.mode &= 4095; } } else if (data.stats && data.mode === null) { - if (win32) { + if (win322) { data.mode = data.stats.mode & 511; } else { data.mode = data.stats.mode & 4095; } - if (win32 && isDir) { + if (win322 && isDir) { data.mode = 493; } } else if (data.mode === null) { @@ -109761,14 +110081,14 @@ var require_core3 = __commonJS({ if (data.stats && data.date === null) { data.date = data.stats.mtime; } else { - data.date = util.dateify(data.date); + data.date = util3.dateify(data.date); } return data; }; - Archiver.prototype._onModuleError = function(err) { + Archiver2.prototype._onModuleError = function(err) { this.emit("error", err); }; - Archiver.prototype._onQueueDrain = function() { + Archiver2.prototype._onQueueDrain = function() { if (this._state.finalizing || this._state.finalized || this._state.aborted) { return; } @@ -109776,7 +110096,7 @@ var require_core3 = __commonJS({ this._finalize(); } }; - Archiver.prototype._onQueueTask = function(task, callback) { + Archiver2.prototype._onQueueTask = function(task, callback) { var fullCallback = () => { if (task.data.callback) { task.data.callback(); @@ -109790,12 +110110,12 @@ var require_core3 = __commonJS({ this._task = task; this._moduleAppend(task.source, task.data, fullCallback); }; - Archiver.prototype._onStatQueueTask = function(task, callback) { + Archiver2.prototype._onStatQueueTask = function(task, callback) { if (this._state.finalizing || this._state.finalized || this._state.aborted) { callback(); return; } - fs30.lstat(task.filepath, function(err, stats) { + fs31.lstat(task.filepath, function(err, stats) { if (this._state.aborted) { setImmediate(callback); return; @@ -109816,75 +110136,75 @@ var require_core3 = __commonJS({ setImmediate(callback); }.bind(this)); }; - Archiver.prototype._shutdown = function() { + Archiver2.prototype._shutdown = function() { this._moduleUnpipe(); this.end(); }; - Archiver.prototype._transform = function(chunk, encoding, callback) { + Archiver2.prototype._transform = function(chunk, encoding, callback) { if (chunk) { this._pointer += chunk.length; } callback(null, chunk); }; - Archiver.prototype._updateQueueTaskWithStats = function(task, stats) { + Archiver2.prototype._updateQueueTaskWithStats = function(task, stats) { if (stats.isFile()) { task.data.type = "file"; task.data.sourceType = "stream"; - task.source = util.lazyReadStream(task.filepath); + task.source = util3.lazyReadStream(task.filepath); } else if (stats.isDirectory() && this._moduleSupports("directory")) { - task.data.name = util.trailingSlashIt(task.data.name); + task.data.name = util3.trailingSlashIt(task.data.name); task.data.type = "directory"; - task.data.sourcePath = util.trailingSlashIt(task.filepath); + task.data.sourcePath = util3.trailingSlashIt(task.filepath); task.data.sourceType = "buffer"; task.source = Buffer.concat([]); } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) { - var linkPath = fs30.readlinkSync(task.filepath); - var dirName = path28.dirname(task.filepath); + var linkPath = fs31.readlinkSync(task.filepath); + var dirName = path29.dirname(task.filepath); task.data.type = "symlink"; - task.data.linkname = path28.relative(dirName, path28.resolve(dirName, linkPath)); + task.data.linkname = path29.relative(dirName, path29.resolve(dirName, linkPath)); task.data.sourceType = "buffer"; task.source = Buffer.concat([]); } else { if (stats.isDirectory()) { - this.emit("warning", new ArchiverError("DIRECTORYNOTSUPPORTED", task.data)); + this.emit("warning", new ArchiverError2("DIRECTORYNOTSUPPORTED", task.data)); } else if (stats.isSymbolicLink()) { - this.emit("warning", new ArchiverError("SYMLINKNOTSUPPORTED", task.data)); + this.emit("warning", new ArchiverError2("SYMLINKNOTSUPPORTED", task.data)); } else { - this.emit("warning", new ArchiverError("ENTRYNOTSUPPORTED", task.data)); + this.emit("warning", new ArchiverError2("ENTRYNOTSUPPORTED", task.data)); } return null; } task.data = this._normalizeEntryData(task.data, stats); return task; }; - Archiver.prototype.abort = function() { + Archiver2.prototype.abort = function() { if (this._state.aborted || this._state.finalized) { return this; } this._abort(); return this; }; - Archiver.prototype.append = function(source, data) { + Archiver2.prototype.append = function(source, data) { if (this._state.finalize || this._state.aborted) { - this.emit("error", new ArchiverError("QUEUECLOSED")); + this.emit("error", new ArchiverError2("QUEUECLOSED")); return this; } data = this._normalizeEntryData(data); if (typeof data.name !== "string" || data.name.length === 0) { - this.emit("error", new ArchiverError("ENTRYNAMEREQUIRED")); + this.emit("error", new ArchiverError2("ENTRYNAMEREQUIRED")); return this; } if (data.type === "directory" && !this._moduleSupports("directory")) { - this.emit("error", new ArchiverError("DIRECTORYNOTSUPPORTED", { name: data.name })); + this.emit("error", new ArchiverError2("DIRECTORYNOTSUPPORTED", { name: data.name })); return this; } - source = util.normalizeInputSource(source); + source = util3.normalizeInputSource(source); if (Buffer.isBuffer(source)) { data.sourceType = "buffer"; - } else if (util.isStream(source)) { + } else if (util3.isStream(source)) { data.sourceType = "stream"; } else { - this.emit("error", new ArchiverError("INPUTSTEAMBUFFERREQUIRED", { name: data.name })); + this.emit("error", new ArchiverError2("INPUTSTEAMBUFFERREQUIRED", { name: data.name })); return this; } this._entriesCount++; @@ -109894,13 +110214,13 @@ var require_core3 = __commonJS({ }); return this; }; - Archiver.prototype.directory = function(dirpath, destpath, data) { + Archiver2.prototype.directory = function(dirpath, destpath, data) { if (this._state.finalize || this._state.aborted) { - this.emit("error", new ArchiverError("QUEUECLOSED")); + this.emit("error", new ArchiverError2("QUEUECLOSED")); return this; } if (typeof dirpath !== "string" || dirpath.length === 0) { - this.emit("error", new ArchiverError("DIRECTORYDIRPATHREQUIRED")); + this.emit("error", new ArchiverError2("DIRECTORYDIRPATHREQUIRED")); return this; } this._pending++; @@ -109927,13 +110247,13 @@ var require_core3 = __commonJS({ function onGlobError(err) { this.emit("error", err); } - function onGlobMatch(match) { + function onGlobMatch(match2) { globber.pause(); var ignoreMatch = false; var entryData = Object.assign({}, data); - entryData.name = match.relative; + entryData.name = match2.relative; entryData.prefix = destpath; - entryData.stats = match.stat; + entryData.stats = match2.stat; entryData.callback = globber.resume.bind(globber); try { if (dataFunction) { @@ -109941,7 +110261,7 @@ var require_core3 = __commonJS({ if (entryData === false) { ignoreMatch = true; } else if (typeof entryData !== "object") { - throw new ArchiverError("DIRECTORYFUNCTIONINVALIDDATA", { dirpath }); + throw new ArchiverError2("DIRECTORYFUNCTIONINVALIDDATA", { dirpath }); } } } catch (e) { @@ -109952,7 +110272,7 @@ var require_core3 = __commonJS({ globber.resume(); return; } - this._append(match.absolute, entryData); + this._append(match2.absolute, entryData); } var globber = glob2(dirpath, globOptions); globber.on("error", onGlobError.bind(this)); @@ -109960,21 +110280,21 @@ var require_core3 = __commonJS({ globber.on("end", onGlobEnd.bind(this)); return this; }; - Archiver.prototype.file = function(filepath, data) { + Archiver2.prototype.file = function(filepath, data) { if (this._state.finalize || this._state.aborted) { - this.emit("error", new ArchiverError("QUEUECLOSED")); + this.emit("error", new ArchiverError2("QUEUECLOSED")); return this; } if (typeof filepath !== "string" || filepath.length === 0) { - this.emit("error", new ArchiverError("FILEFILEPATHREQUIRED")); + this.emit("error", new ArchiverError2("FILEFILEPATHREQUIRED")); return this; } this._append(filepath, data); return this; }; - Archiver.prototype.glob = function(pattern, options, data) { + Archiver2.prototype.glob = function(pattern, options, data) { this._pending++; - options = util.defaults(options, { + options = util3.defaults(options, { stat: true, pattern }); @@ -109985,13 +110305,13 @@ var require_core3 = __commonJS({ function onGlobError(err) { this.emit("error", err); } - function onGlobMatch(match) { + function onGlobMatch(match2) { globber.pause(); var entryData = Object.assign({}, data); entryData.callback = globber.resume.bind(globber); - entryData.stats = match.stat; - entryData.name = match.relative; - this._append(match.absolute, entryData); + entryData.stats = match2.stat; + entryData.name = match2.relative; + this._append(match2.absolute, entryData); } var globber = glob2(options.cwd || ".", options); globber.on("error", onGlobError.bind(this)); @@ -109999,14 +110319,14 @@ var require_core3 = __commonJS({ globber.on("end", onGlobEnd.bind(this)); return this; }; - Archiver.prototype.finalize = function() { + Archiver2.prototype.finalize = function() { if (this._state.aborted) { - var abortedError = new ArchiverError("ABORTED"); + var abortedError = new ArchiverError2("ABORTED"); this.emit("error", abortedError); return Promise.reject(abortedError); } if (this._state.finalize) { - var finalizingError = new ArchiverError("FINALIZING"); + var finalizingError = new ArchiverError2("FINALIZING"); this.emit("error", finalizingError); return Promise.reject(finalizingError); } @@ -110015,11 +110335,11 @@ var require_core3 = __commonJS({ this._finalize(); } var self2 = this; - return new Promise(function(resolve13, reject) { + return new Promise(function(resolve14, reject) { var errored; self2._module.on("end", function() { if (!errored) { - resolve13(); + resolve14(); } }); self2._module.on("error", function(err) { @@ -110028,42 +110348,42 @@ var require_core3 = __commonJS({ }); }); }; - Archiver.prototype.setFormat = function(format) { + Archiver2.prototype.setFormat = function(format) { if (this._format) { - this.emit("error", new ArchiverError("FORMATSET")); + this.emit("error", new ArchiverError2("FORMATSET")); return this; } this._format = format; return this; }; - Archiver.prototype.setModule = function(module3) { + Archiver2.prototype.setModule = function(module3) { if (this._state.aborted) { - this.emit("error", new ArchiverError("ABORTED")); + this.emit("error", new ArchiverError2("ABORTED")); return this; } if (this._state.module) { - this.emit("error", new ArchiverError("MODULESET")); + this.emit("error", new ArchiverError2("MODULESET")); return this; } this._module = module3; this._modulePipe(); return this; }; - Archiver.prototype.symlink = function(filepath, target, mode) { + Archiver2.prototype.symlink = function(filepath, target, mode) { if (this._state.finalize || this._state.aborted) { - this.emit("error", new ArchiverError("QUEUECLOSED")); + this.emit("error", new ArchiverError2("QUEUECLOSED")); return this; } if (typeof filepath !== "string" || filepath.length === 0) { - this.emit("error", new ArchiverError("SYMLINKFILEPATHREQUIRED")); + this.emit("error", new ArchiverError2("SYMLINKFILEPATHREQUIRED")); return this; } if (typeof target !== "string" || target.length === 0) { - this.emit("error", new ArchiverError("SYMLINKTARGETREQUIRED", { filepath })); + this.emit("error", new ArchiverError2("SYMLINKTARGETREQUIRED", { filepath })); return this; } if (!this._moduleSupports("symlink")) { - this.emit("error", new ArchiverError("SYMLINKNOTSUPPORTED", { filepath })); + this.emit("error", new ArchiverError2("SYMLINKNOTSUPPORTED", { filepath })); return this; } var data = {}; @@ -110081,38 +110401,38 @@ var require_core3 = __commonJS({ }); return this; }; - Archiver.prototype.pointer = function() { + Archiver2.prototype.pointer = function() { return this._pointer; }; - Archiver.prototype.use = function(plugin) { + Archiver2.prototype.use = function(plugin) { this._streams.push(plugin); return this; }; - module2.exports = Archiver; + module2.exports = Archiver2; } }); -// node_modules/compress-commons/lib/archivers/archive-entry.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/archive-entry.js var require_archive_entry = __commonJS({ - "node_modules/compress-commons/lib/archivers/archive-entry.js"(exports2, module2) { - var ArchiveEntry = module2.exports = function() { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/archive-entry.js"(exports2, module2) { + var ArchiveEntry2 = module2.exports = function() { }; - ArchiveEntry.prototype.getName = function() { + ArchiveEntry2.prototype.getName = function() { }; - ArchiveEntry.prototype.getSize = function() { + ArchiveEntry2.prototype.getSize = function() { }; - ArchiveEntry.prototype.getLastModifiedDate = function() { + ArchiveEntry2.prototype.getLastModifiedDate = function() { }; - ArchiveEntry.prototype.isDirectory = function() { + ArchiveEntry2.prototype.isDirectory = function() { }; } }); -// node_modules/compress-commons/lib/archivers/zip/util.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/util.js var require_util14 = __commonJS({ - "node_modules/compress-commons/lib/archivers/zip/util.js"(exports2, module2) { - var util = module2.exports = {}; - util.dateToDos = function(d, forceLocalTime) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/util.js"(exports2, module2) { + var util3 = module2.exports = {}; + util3.dateToDos = function(d, forceLocalTime) { forceLocalTime = forceLocalTime || false; var year = forceLocalTime ? d.getFullYear() : d.getUTCFullYear(); if (year < 1980) { @@ -110130,53 +110450,53 @@ var require_util14 = __commonJS({ }; return val.year - 1980 << 25 | val.month + 1 << 21 | val.date << 16 | val.hours << 11 | val.minutes << 5 | val.seconds / 2; }; - util.dosToDate = function(dos) { + util3.dosToDate = function(dos) { return new Date((dos >> 25 & 127) + 1980, (dos >> 21 & 15) - 1, dos >> 16 & 31, dos >> 11 & 31, dos >> 5 & 63, (dos & 31) << 1); }; - util.fromDosTime = function(buf) { - return util.dosToDate(buf.readUInt32LE(0)); + util3.fromDosTime = function(buf) { + return util3.dosToDate(buf.readUInt32LE(0)); }; - util.getEightBytes = function(v) { + util3.getEightBytes = function(v) { var buf = Buffer.alloc(8); buf.writeUInt32LE(v % 4294967296, 0); buf.writeUInt32LE(v / 4294967296 | 0, 4); return buf; }; - util.getShortBytes = function(v) { + util3.getShortBytes = function(v) { var buf = Buffer.alloc(2); buf.writeUInt16LE((v & 65535) >>> 0, 0); return buf; }; - util.getShortBytesValue = function(buf, offset) { + util3.getShortBytesValue = function(buf, offset) { return buf.readUInt16LE(offset); }; - util.getLongBytes = function(v) { + util3.getLongBytes = function(v) { var buf = Buffer.alloc(4); buf.writeUInt32LE((v & 4294967295) >>> 0, 0); return buf; }; - util.getLongBytesValue = function(buf, offset) { + util3.getLongBytesValue = function(buf, offset) { return buf.readUInt32LE(offset); }; - util.toDosTime = function(d) { - return util.getLongBytes(util.dateToDos(d)); + util3.toDosTime = function(d) { + return util3.getLongBytes(util3.dateToDos(d)); }; } }); -// node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js var require_general_purpose_bit = __commonJS({ - "node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js"(exports2, module2) { var zipUtil = require_util14(); - var DATA_DESCRIPTOR_FLAG = 1 << 3; - var ENCRYPTION_FLAG = 1 << 0; - var NUMBER_OF_SHANNON_FANO_TREES_FLAG = 1 << 2; - var SLIDING_DICTIONARY_SIZE_FLAG = 1 << 1; - var STRONG_ENCRYPTION_FLAG = 1 << 6; - var UFT8_NAMES_FLAG = 1 << 11; - var GeneralPurposeBit = module2.exports = function() { - if (!(this instanceof GeneralPurposeBit)) { - return new GeneralPurposeBit(); + var DATA_DESCRIPTOR_FLAG2 = 1 << 3; + var ENCRYPTION_FLAG2 = 1 << 0; + var NUMBER_OF_SHANNON_FANO_TREES_FLAG2 = 1 << 2; + var SLIDING_DICTIONARY_SIZE_FLAG2 = 1 << 1; + var STRONG_ENCRYPTION_FLAG2 = 1 << 6; + var UFT8_NAMES_FLAG2 = 1 << 11; + var GeneralPurposeBit2 = module2.exports = function() { + if (!(this instanceof GeneralPurposeBit2)) { + return new GeneralPurposeBit2(); } this.descriptor = false; this.encryption = false; @@ -110186,64 +110506,64 @@ var require_general_purpose_bit = __commonJS({ this.slidingDictionarySize = 0; return this; }; - GeneralPurposeBit.prototype.encode = function() { + GeneralPurposeBit2.prototype.encode = function() { return zipUtil.getShortBytes( - (this.descriptor ? DATA_DESCRIPTOR_FLAG : 0) | (this.utf8 ? UFT8_NAMES_FLAG : 0) | (this.encryption ? ENCRYPTION_FLAG : 0) | (this.strongEncryption ? STRONG_ENCRYPTION_FLAG : 0) + (this.descriptor ? DATA_DESCRIPTOR_FLAG2 : 0) | (this.utf8 ? UFT8_NAMES_FLAG2 : 0) | (this.encryption ? ENCRYPTION_FLAG2 : 0) | (this.strongEncryption ? STRONG_ENCRYPTION_FLAG2 : 0) ); }; - GeneralPurposeBit.prototype.parse = function(buf, offset) { + GeneralPurposeBit2.prototype.parse = function(buf, offset) { var flag = zipUtil.getShortBytesValue(buf, offset); - var gbp = new GeneralPurposeBit(); - gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG) !== 0); - gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG) !== 0); - gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG) !== 0); - gbp.useEncryption((flag & ENCRYPTION_FLAG) !== 0); - gbp.setSlidingDictionarySize((flag & SLIDING_DICTIONARY_SIZE_FLAG) !== 0 ? 8192 : 4096); - gbp.setNumberOfShannonFanoTrees((flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG) !== 0 ? 3 : 2); + var gbp = new GeneralPurposeBit2(); + gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG2) !== 0); + gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG2) !== 0); + gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG2) !== 0); + gbp.useEncryption((flag & ENCRYPTION_FLAG2) !== 0); + gbp.setSlidingDictionarySize((flag & SLIDING_DICTIONARY_SIZE_FLAG2) !== 0 ? 8192 : 4096); + gbp.setNumberOfShannonFanoTrees((flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG2) !== 0 ? 3 : 2); return gbp; }; - GeneralPurposeBit.prototype.setNumberOfShannonFanoTrees = function(n) { + GeneralPurposeBit2.prototype.setNumberOfShannonFanoTrees = function(n) { this.numberOfShannonFanoTrees = n; }; - GeneralPurposeBit.prototype.getNumberOfShannonFanoTrees = function() { + GeneralPurposeBit2.prototype.getNumberOfShannonFanoTrees = function() { return this.numberOfShannonFanoTrees; }; - GeneralPurposeBit.prototype.setSlidingDictionarySize = function(n) { + GeneralPurposeBit2.prototype.setSlidingDictionarySize = function(n) { this.slidingDictionarySize = n; }; - GeneralPurposeBit.prototype.getSlidingDictionarySize = function() { + GeneralPurposeBit2.prototype.getSlidingDictionarySize = function() { return this.slidingDictionarySize; }; - GeneralPurposeBit.prototype.useDataDescriptor = function(b) { + GeneralPurposeBit2.prototype.useDataDescriptor = function(b) { this.descriptor = b; }; - GeneralPurposeBit.prototype.usesDataDescriptor = function() { + GeneralPurposeBit2.prototype.usesDataDescriptor = function() { return this.descriptor; }; - GeneralPurposeBit.prototype.useEncryption = function(b) { + GeneralPurposeBit2.prototype.useEncryption = function(b) { this.encryption = b; }; - GeneralPurposeBit.prototype.usesEncryption = function() { + GeneralPurposeBit2.prototype.usesEncryption = function() { return this.encryption; }; - GeneralPurposeBit.prototype.useStrongEncryption = function(b) { + GeneralPurposeBit2.prototype.useStrongEncryption = function(b) { this.strongEncryption = b; }; - GeneralPurposeBit.prototype.usesStrongEncryption = function() { + GeneralPurposeBit2.prototype.usesStrongEncryption = function() { return this.strongEncryption; }; - GeneralPurposeBit.prototype.useUTF8ForNames = function(b) { + GeneralPurposeBit2.prototype.useUTF8ForNames = function(b) { this.utf8 = b; }; - GeneralPurposeBit.prototype.usesUTF8ForNames = function() { + GeneralPurposeBit2.prototype.usesUTF8ForNames = function() { return this.utf8; }; } }); -// node_modules/compress-commons/lib/archivers/zip/unix-stat.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/unix-stat.js var require_unix_stat = __commonJS({ - "node_modules/compress-commons/lib/archivers/zip/unix-stat.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/unix-stat.js"(exports2, module2) { module2.exports = { /** * Bits used for permissions (and sticky bit) @@ -110293,9 +110613,9 @@ var require_unix_stat = __commonJS({ } }); -// node_modules/compress-commons/lib/archivers/zip/constants.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/constants.js var require_constants13 = __commonJS({ - "node_modules/compress-commons/lib/archivers/zip/constants.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/constants.js"(exports2, module2) { module2.exports = { WORD: 4, DWORD: 8, @@ -110370,27 +110690,27 @@ var require_constants13 = __commonJS({ } }); -// node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js var require_zip_archive_entry = __commonJS({ - "node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js"(exports2, module2) { var inherits = require("util").inherits; - var normalizePath = require_normalize_path(); - var ArchiveEntry = require_archive_entry(); - var GeneralPurposeBit = require_general_purpose_bit(); + var normalizePath4 = require_normalize_path(); + var ArchiveEntry2 = require_archive_entry(); + var GeneralPurposeBit2 = require_general_purpose_bit(); var UnixStat = require_unix_stat(); var constants = require_constants13(); var zipUtil = require_util14(); - var ZipArchiveEntry = module2.exports = function(name) { - if (!(this instanceof ZipArchiveEntry)) { - return new ZipArchiveEntry(name); + var ZipArchiveEntry2 = module2.exports = function(name) { + if (!(this instanceof ZipArchiveEntry2)) { + return new ZipArchiveEntry2(name); } - ArchiveEntry.call(this); + ArchiveEntry2.call(this); this.platform = constants.PLATFORM_FAT; this.method = -1; this.name = null; this.size = 0; this.csize = 0; - this.gpb = new GeneralPurposeBit(); + this.gpb = new GeneralPurposeBit2(); this.crc = 0; this.time = -1; this.minver = constants.MIN_VERSION_INITIAL; @@ -110403,102 +110723,102 @@ var require_zip_archive_entry = __commonJS({ this.setName(name); } }; - inherits(ZipArchiveEntry, ArchiveEntry); - ZipArchiveEntry.prototype.getCentralDirectoryExtra = function() { + inherits(ZipArchiveEntry2, ArchiveEntry2); + ZipArchiveEntry2.prototype.getCentralDirectoryExtra = function() { return this.getExtra(); }; - ZipArchiveEntry.prototype.getComment = function() { + ZipArchiveEntry2.prototype.getComment = function() { return this.comment !== null ? this.comment : ""; }; - ZipArchiveEntry.prototype.getCompressedSize = function() { + ZipArchiveEntry2.prototype.getCompressedSize = function() { return this.csize; }; - ZipArchiveEntry.prototype.getCrc = function() { + ZipArchiveEntry2.prototype.getCrc = function() { return this.crc; }; - ZipArchiveEntry.prototype.getExternalAttributes = function() { + ZipArchiveEntry2.prototype.getExternalAttributes = function() { return this.exattr; }; - ZipArchiveEntry.prototype.getExtra = function() { + ZipArchiveEntry2.prototype.getExtra = function() { return this.extra !== null ? this.extra : constants.EMPTY; }; - ZipArchiveEntry.prototype.getGeneralPurposeBit = function() { + ZipArchiveEntry2.prototype.getGeneralPurposeBit = function() { return this.gpb; }; - ZipArchiveEntry.prototype.getInternalAttributes = function() { + ZipArchiveEntry2.prototype.getInternalAttributes = function() { return this.inattr; }; - ZipArchiveEntry.prototype.getLastModifiedDate = function() { + ZipArchiveEntry2.prototype.getLastModifiedDate = function() { return this.getTime(); }; - ZipArchiveEntry.prototype.getLocalFileDataExtra = function() { + ZipArchiveEntry2.prototype.getLocalFileDataExtra = function() { return this.getExtra(); }; - ZipArchiveEntry.prototype.getMethod = function() { + ZipArchiveEntry2.prototype.getMethod = function() { return this.method; }; - ZipArchiveEntry.prototype.getName = function() { + ZipArchiveEntry2.prototype.getName = function() { return this.name; }; - ZipArchiveEntry.prototype.getPlatform = function() { + ZipArchiveEntry2.prototype.getPlatform = function() { return this.platform; }; - ZipArchiveEntry.prototype.getSize = function() { + ZipArchiveEntry2.prototype.getSize = function() { return this.size; }; - ZipArchiveEntry.prototype.getTime = function() { + ZipArchiveEntry2.prototype.getTime = function() { return this.time !== -1 ? zipUtil.dosToDate(this.time) : -1; }; - ZipArchiveEntry.prototype.getTimeDos = function() { + ZipArchiveEntry2.prototype.getTimeDos = function() { return this.time !== -1 ? this.time : 0; }; - ZipArchiveEntry.prototype.getUnixMode = function() { + ZipArchiveEntry2.prototype.getUnixMode = function() { return this.platform !== constants.PLATFORM_UNIX ? 0 : this.getExternalAttributes() >> constants.SHORT_SHIFT & constants.SHORT_MASK; }; - ZipArchiveEntry.prototype.getVersionNeededToExtract = function() { + ZipArchiveEntry2.prototype.getVersionNeededToExtract = function() { return this.minver; }; - ZipArchiveEntry.prototype.setComment = function(comment) { + ZipArchiveEntry2.prototype.setComment = function(comment) { if (Buffer.byteLength(comment) !== comment.length) { this.getGeneralPurposeBit().useUTF8ForNames(true); } this.comment = comment; }; - ZipArchiveEntry.prototype.setCompressedSize = function(size) { + ZipArchiveEntry2.prototype.setCompressedSize = function(size) { if (size < 0) { throw new Error("invalid entry compressed size"); } this.csize = size; }; - ZipArchiveEntry.prototype.setCrc = function(crc) { + ZipArchiveEntry2.prototype.setCrc = function(crc) { if (crc < 0) { throw new Error("invalid entry crc32"); } this.crc = crc; }; - ZipArchiveEntry.prototype.setExternalAttributes = function(attr) { + ZipArchiveEntry2.prototype.setExternalAttributes = function(attr) { this.exattr = attr >>> 0; }; - ZipArchiveEntry.prototype.setExtra = function(extra) { + ZipArchiveEntry2.prototype.setExtra = function(extra) { this.extra = extra; }; - ZipArchiveEntry.prototype.setGeneralPurposeBit = function(gpb) { - if (!(gpb instanceof GeneralPurposeBit)) { + ZipArchiveEntry2.prototype.setGeneralPurposeBit = function(gpb) { + if (!(gpb instanceof GeneralPurposeBit2)) { throw new Error("invalid entry GeneralPurposeBit"); } this.gpb = gpb; }; - ZipArchiveEntry.prototype.setInternalAttributes = function(attr) { + ZipArchiveEntry2.prototype.setInternalAttributes = function(attr) { this.inattr = attr; }; - ZipArchiveEntry.prototype.setMethod = function(method) { + ZipArchiveEntry2.prototype.setMethod = function(method) { if (method < 0) { throw new Error("invalid entry compression method"); } this.method = method; }; - ZipArchiveEntry.prototype.setName = function(name, prependSlash = false) { - name = normalizePath(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, ""); + ZipArchiveEntry2.prototype.setName = function(name, prependSlash = false) { + name = normalizePath4(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, ""); if (prependSlash) { name = `/${name}`; } @@ -110507,22 +110827,22 @@ var require_zip_archive_entry = __commonJS({ } this.name = name; }; - ZipArchiveEntry.prototype.setPlatform = function(platform2) { + ZipArchiveEntry2.prototype.setPlatform = function(platform2) { this.platform = platform2; }; - ZipArchiveEntry.prototype.setSize = function(size) { + ZipArchiveEntry2.prototype.setSize = function(size) { if (size < 0) { throw new Error("invalid entry size"); } this.size = size; }; - ZipArchiveEntry.prototype.setTime = function(time, forceLocalTime) { + ZipArchiveEntry2.prototype.setTime = function(time, forceLocalTime) { if (!(time instanceof Date)) { throw new Error("invalid entry time"); } this.time = zipUtil.dateToDos(time, forceLocalTime); }; - ZipArchiveEntry.prototype.setUnixMode = function(mode) { + ZipArchiveEntry2.prototype.setUnixMode = function(mode) { mode |= this.isDirectory() ? constants.S_IFDIR : constants.S_IFREG; var extattr = 0; extattr |= mode << constants.SHORT_SHIFT | (this.isDirectory() ? constants.S_DOS_D : constants.S_DOS_A); @@ -110530,48 +110850,48 @@ var require_zip_archive_entry = __commonJS({ this.mode = mode & constants.MODE_MASK; this.platform = constants.PLATFORM_UNIX; }; - ZipArchiveEntry.prototype.setVersionNeededToExtract = function(minver) { + ZipArchiveEntry2.prototype.setVersionNeededToExtract = function(minver) { this.minver = minver; }; - ZipArchiveEntry.prototype.isDirectory = function() { + ZipArchiveEntry2.prototype.isDirectory = function() { return this.getName().slice(-1) === "/"; }; - ZipArchiveEntry.prototype.isUnixSymlink = function() { + ZipArchiveEntry2.prototype.isUnixSymlink = function() { return (this.getUnixMode() & UnixStat.FILE_TYPE_FLAG) === UnixStat.LINK_FLAG; }; - ZipArchiveEntry.prototype.isZip64 = function() { + ZipArchiveEntry2.prototype.isZip64 = function() { return this.csize > constants.ZIP64_MAGIC || this.size > constants.ZIP64_MAGIC; }; } }); -// node_modules/compress-commons/node_modules/is-stream/index.js +// node_modules/@actions/artifact/node_modules/is-stream/index.js var require_is_stream2 = __commonJS({ - "node_modules/compress-commons/node_modules/is-stream/index.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/is-stream/index.js"(exports2, module2) { "use strict"; - var isStream = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function"; - isStream.writable = (stream2) => isStream(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object"; - isStream.readable = (stream2) => isStream(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object"; - isStream.duplex = (stream2) => isStream.writable(stream2) && isStream.readable(stream2); - isStream.transform = (stream2) => isStream.duplex(stream2) && typeof stream2._transform === "function"; - module2.exports = isStream; + var isStream2 = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function"; + isStream2.writable = (stream2) => isStream2(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object"; + isStream2.readable = (stream2) => isStream2(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object"; + isStream2.duplex = (stream2) => isStream2.writable(stream2) && isStream2.readable(stream2); + isStream2.transform = (stream2) => isStream2.duplex(stream2) && typeof stream2._transform === "function"; + module2.exports = isStream2; } }); -// node_modules/compress-commons/lib/util/index.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/util/index.js var require_util15 = __commonJS({ - "node_modules/compress-commons/lib/util/index.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/util/index.js"(exports2, module2) { var Stream = require("stream").Stream; - var PassThrough = require_ours().PassThrough; - var isStream = require_is_stream2(); - var util = module2.exports = {}; - util.normalizeInputSource = function(source) { + var PassThrough3 = require_ours().PassThrough; + var isStream2 = require_is_stream2(); + var util3 = module2.exports = {}; + util3.normalizeInputSource = function(source) { if (source === null) { return Buffer.alloc(0); } else if (typeof source === "string") { return Buffer.from(source); - } else if (isStream(source) && !source._readableState) { - var normalized = new PassThrough(); + } else if (isStream2(source) && !source._readableState) { + var normalized = new PassThrough3(); source.pipe(normalized); return normalized; } @@ -110580,19 +110900,19 @@ var require_util15 = __commonJS({ } }); -// node_modules/compress-commons/lib/archivers/archive-output-stream.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/archive-output-stream.js var require_archive_output_stream = __commonJS({ - "node_modules/compress-commons/lib/archivers/archive-output-stream.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/archive-output-stream.js"(exports2, module2) { var inherits = require("util").inherits; - var isStream = require_is_stream2(); - var Transform = require_ours().Transform; - var ArchiveEntry = require_archive_entry(); - var util = require_util15(); - var ArchiveOutputStream = module2.exports = function(options) { - if (!(this instanceof ArchiveOutputStream)) { - return new ArchiveOutputStream(options); - } - Transform.call(this, options); + var isStream2 = require_is_stream2(); + var Transform5 = require_ours().Transform; + var ArchiveEntry2 = require_archive_entry(); + var util3 = require_util15(); + var ArchiveOutputStream2 = module2.exports = function(options) { + if (!(this instanceof ArchiveOutputStream2)) { + return new ArchiveOutputStream2(options); + } + Transform5.call(this, options); this.offset = 0; this._archive = { finish: false, @@ -110600,29 +110920,29 @@ var require_archive_output_stream = __commonJS({ processing: false }; }; - inherits(ArchiveOutputStream, Transform); - ArchiveOutputStream.prototype._appendBuffer = function(zae, source, callback) { + inherits(ArchiveOutputStream2, Transform5); + ArchiveOutputStream2.prototype._appendBuffer = function(zae, source, callback) { }; - ArchiveOutputStream.prototype._appendStream = function(zae, source, callback) { + ArchiveOutputStream2.prototype._appendStream = function(zae, source, callback) { }; - ArchiveOutputStream.prototype._emitErrorCallback = function(err) { + ArchiveOutputStream2.prototype._emitErrorCallback = function(err) { if (err) { this.emit("error", err); } }; - ArchiveOutputStream.prototype._finish = function(ae) { + ArchiveOutputStream2.prototype._finish = function(ae) { }; - ArchiveOutputStream.prototype._normalizeEntry = function(ae) { + ArchiveOutputStream2.prototype._normalizeEntry = function(ae) { }; - ArchiveOutputStream.prototype._transform = function(chunk, encoding, callback) { + ArchiveOutputStream2.prototype._transform = function(chunk, encoding, callback) { callback(null, chunk); }; - ArchiveOutputStream.prototype.entry = function(ae, source, callback) { + ArchiveOutputStream2.prototype.entry = function(ae, source, callback) { source = source || null; if (typeof callback !== "function") { callback = this._emitErrorCallback.bind(this); } - if (!(ae instanceof ArchiveEntry)) { + if (!(ae instanceof ArchiveEntry2)) { callback(new Error("not a valid instance of ArchiveEntry")); return; } @@ -110637,10 +110957,10 @@ var require_archive_output_stream = __commonJS({ this._archive.processing = true; this._normalizeEntry(ae); this._entry = ae; - source = util.normalizeInputSource(source); + source = util3.normalizeInputSource(source); if (Buffer.isBuffer(source)) { this._appendBuffer(ae, source, callback); - } else if (isStream(source)) { + } else if (isStream2(source)) { this._appendStream(ae, source, callback); } else { this._archive.processing = false; @@ -110649,21 +110969,21 @@ var require_archive_output_stream = __commonJS({ } return this; }; - ArchiveOutputStream.prototype.finish = function() { + ArchiveOutputStream2.prototype.finish = function() { if (this._archive.processing) { this._archive.finish = true; return; } this._finish(); }; - ArchiveOutputStream.prototype.getBytesWritten = function() { + ArchiveOutputStream2.prototype.getBytesWritten = function() { return this.offset; }; - ArchiveOutputStream.prototype.write = function(chunk, cb) { + ArchiveOutputStream2.prototype.write = function(chunk, cb) { if (chunk) { this.offset += chunk.length; } - return Transform.prototype.write.call(this, chunk, cb); + return Transform5.prototype.write.call(this, chunk, cb); }; } }); @@ -110766,13 +111086,13 @@ var require_crc32 = __commonJS({ } }); -// node_modules/crc32-stream/lib/crc32-stream.js +// node_modules/@actions/artifact/node_modules/crc32-stream/lib/crc32-stream.js var require_crc32_stream = __commonJS({ - "node_modules/crc32-stream/lib/crc32-stream.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/crc32-stream/lib/crc32-stream.js"(exports2, module2) { "use strict"; - var { Transform } = require_ours(); - var crc32 = require_crc32(); - var CRC32Stream = class extends Transform { + var { Transform: Transform5 } = require_ours(); + var crc325 = require_crc32(); + var CRC32Stream2 = class extends Transform5 { constructor(options) { super(options); this.checksum = Buffer.allocUnsafe(4); @@ -110781,7 +111101,7 @@ var require_crc32_stream = __commonJS({ } _transform(chunk, encoding, callback) { if (chunk) { - this.checksum = crc32.buf(chunk, this.checksum) >>> 0; + this.checksum = crc325.buf(chunk, this.checksum) >>> 0; this.rawSize += chunk.length; } callback(null, chunk); @@ -110798,17 +111118,17 @@ var require_crc32_stream = __commonJS({ return this.rawSize; } }; - module2.exports = CRC32Stream; + module2.exports = CRC32Stream2; } }); -// node_modules/crc32-stream/lib/deflate-crc32-stream.js +// node_modules/@actions/artifact/node_modules/crc32-stream/lib/deflate-crc32-stream.js var require_deflate_crc32_stream = __commonJS({ - "node_modules/crc32-stream/lib/deflate-crc32-stream.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/crc32-stream/lib/deflate-crc32-stream.js"(exports2, module2) { "use strict"; - var { DeflateRaw } = require("zlib"); - var crc32 = require_crc32(); - var DeflateCRC32Stream = class extends DeflateRaw { + var { DeflateRaw: DeflateRaw2 } = require("zlib"); + var crc325 = require_crc32(); + var DeflateCRC32Stream2 = class extends DeflateRaw2 { constructor(options) { super(options); this.checksum = Buffer.allocUnsafe(4); @@ -110824,7 +111144,7 @@ var require_deflate_crc32_stream = __commonJS({ } _transform(chunk, encoding, callback) { if (chunk) { - this.checksum = crc32.buf(chunk, this.checksum) >>> 0; + this.checksum = crc325.buf(chunk, this.checksum) >>> 0; this.rawSize += chunk.length; } super._transform(chunk, encoding, callback); @@ -110845,13 +111165,13 @@ var require_deflate_crc32_stream = __commonJS({ } } }; - module2.exports = DeflateCRC32Stream; + module2.exports = DeflateCRC32Stream2; } }); -// node_modules/crc32-stream/lib/index.js +// node_modules/@actions/artifact/node_modules/crc32-stream/lib/index.js var require_lib3 = __commonJS({ - "node_modules/crc32-stream/lib/index.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/crc32-stream/lib/index.js"(exports2, module2) { "use strict"; module2.exports = { CRC32Stream: require_crc32_stream(), @@ -110860,25 +111180,25 @@ var require_lib3 = __commonJS({ } }); -// node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js var require_zip_archive_output_stream = __commonJS({ - "node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js"(exports2, module2) { var inherits = require("util").inherits; - var crc32 = require_crc32(); - var { CRC32Stream } = require_lib3(); - var { DeflateCRC32Stream } = require_lib3(); - var ArchiveOutputStream = require_archive_output_stream(); - var ZipArchiveEntry = require_zip_archive_entry(); - var GeneralPurposeBit = require_general_purpose_bit(); + var crc325 = require_crc32(); + var { CRC32Stream: CRC32Stream2 } = require_lib3(); + var { DeflateCRC32Stream: DeflateCRC32Stream2 } = require_lib3(); + var ArchiveOutputStream2 = require_archive_output_stream(); + var ZipArchiveEntry2 = require_zip_archive_entry(); + var GeneralPurposeBit2 = require_general_purpose_bit(); var constants = require_constants13(); - var util = require_util15(); + var util3 = require_util15(); var zipUtil = require_util14(); - var ZipArchiveOutputStream = module2.exports = function(options) { - if (!(this instanceof ZipArchiveOutputStream)) { - return new ZipArchiveOutputStream(options); + var ZipArchiveOutputStream2 = module2.exports = function(options) { + if (!(this instanceof ZipArchiveOutputStream2)) { + return new ZipArchiveOutputStream2(options); } options = this.options = this._defaults(options); - ArchiveOutputStream.call(this, options); + ArchiveOutputStream2.call(this, options); this._entry = null; this._entries = []; this._archive = { @@ -110892,8 +111212,8 @@ var require_zip_archive_output_stream = __commonJS({ forceLocalTime: options.forceLocalTime }; }; - inherits(ZipArchiveOutputStream, ArchiveOutputStream); - ZipArchiveOutputStream.prototype._afterAppend = function(ae) { + inherits(ZipArchiveOutputStream2, ArchiveOutputStream2); + ZipArchiveOutputStream2.prototype._afterAppend = function(ae) { this._entries.push(ae); if (ae.getGeneralPurposeBit().usesDataDescriptor()) { this._writeDataDescriptor(ae); @@ -110904,7 +111224,7 @@ var require_zip_archive_output_stream = __commonJS({ this._finish(); } }; - ZipArchiveOutputStream.prototype._appendBuffer = function(ae, source, callback) { + ZipArchiveOutputStream2.prototype._appendBuffer = function(ae, source, callback) { if (source.length === 0) { ae.setMethod(constants.METHOD_STORED); } @@ -110912,7 +111232,7 @@ var require_zip_archive_output_stream = __commonJS({ if (method === constants.METHOD_STORED) { ae.setSize(source.length); ae.setCompressedSize(source.length); - ae.setCrc(crc32.buf(source) >>> 0); + ae.setCrc(crc325.buf(source) >>> 0); } this._writeLocalFileHeader(ae); if (method === constants.METHOD_STORED) { @@ -110928,7 +111248,7 @@ var require_zip_archive_output_stream = __commonJS({ return; } }; - ZipArchiveOutputStream.prototype._appendStream = function(ae, source, callback) { + ZipArchiveOutputStream2.prototype._appendStream = function(ae, source, callback) { ae.getGeneralPurposeBit().useDataDescriptor(true); ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR); this._writeLocalFileHeader(ae); @@ -110939,7 +111259,7 @@ var require_zip_archive_output_stream = __commonJS({ }); source.pipe(smart); }; - ZipArchiveOutputStream.prototype._defaults = function(o) { + ZipArchiveOutputStream2.prototype._defaults = function(o) { if (typeof o !== "object") { o = {}; } @@ -110953,7 +111273,7 @@ var require_zip_archive_output_stream = __commonJS({ o.forceLocalTime = !!o.forceLocalTime; return o; }; - ZipArchiveOutputStream.prototype._finish = function() { + ZipArchiveOutputStream2.prototype._finish = function() { this._archive.centralOffset = this.offset; this._entries.forEach(function(ae) { this._writeCentralFileHeader(ae); @@ -110968,7 +111288,7 @@ var require_zip_archive_output_stream = __commonJS({ this._archive.finished = true; this.end(); }; - ZipArchiveOutputStream.prototype._normalizeEntry = function(ae) { + ZipArchiveOutputStream2.prototype._normalizeEntry = function(ae) { if (ae.getMethod() === -1) { ae.setMethod(constants.METHOD_DEFLATED); } @@ -110985,9 +111305,9 @@ var require_zip_archive_output_stream = __commonJS({ contents: 0 }; }; - ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) { + ZipArchiveOutputStream2.prototype._smartStream = function(ae, callback) { var deflate = ae.getMethod() === constants.METHOD_DEFLATED; - var process2 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream(); + var process2 = deflate ? new DeflateCRC32Stream2(this.options.zlib) : new CRC32Stream2(); var error3 = null; function handleStuff() { var digest = process2.digest().readUInt32BE(0); @@ -111004,7 +111324,7 @@ var require_zip_archive_output_stream = __commonJS({ process2.pipe(this, { end: false }); return process2; }; - ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() { + ZipArchiveOutputStream2.prototype._writeCentralDirectoryEnd = function() { var records = this._entries.length; var size = this._archive.centralLength; var offset = this._archive.centralOffset; @@ -111025,7 +111345,7 @@ var require_zip_archive_output_stream = __commonJS({ this.write(zipUtil.getShortBytes(commentLength)); this.write(comment); }; - ZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() { + ZipArchiveOutputStream2.prototype._writeCentralDirectoryZip64 = function() { this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD)); this.write(zipUtil.getEightBytes(44)); this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64)); @@ -111041,7 +111361,7 @@ var require_zip_archive_output_stream = __commonJS({ this.write(zipUtil.getEightBytes(this._archive.centralOffset + this._archive.centralLength)); this.write(zipUtil.getLongBytes(1)); }; - ZipArchiveOutputStream.prototype._writeCentralFileHeader = function(ae) { + ZipArchiveOutputStream2.prototype._writeCentralFileHeader = function(ae) { var gpb = ae.getGeneralPurposeBit(); var method = ae.getMethod(); var fileOffset = ae._offsets.file; @@ -111088,7 +111408,7 @@ var require_zip_archive_output_stream = __commonJS({ this.write(extra); this.write(comment); }; - ZipArchiveOutputStream.prototype._writeDataDescriptor = function(ae) { + ZipArchiveOutputStream2.prototype._writeDataDescriptor = function(ae) { this.write(zipUtil.getLongBytes(constants.SIG_DD)); this.write(zipUtil.getLongBytes(ae.getCrc())); if (ae.isZip64()) { @@ -111099,7 +111419,7 @@ var require_zip_archive_output_stream = __commonJS({ this.write(zipUtil.getLongBytes(ae.getSize())); } }; - ZipArchiveOutputStream.prototype._writeLocalFileHeader = function(ae) { + ZipArchiveOutputStream2.prototype._writeLocalFileHeader = function(ae) { var gpb = ae.getGeneralPurposeBit(); var method = ae.getMethod(); var name = ae.getName(); @@ -111133,21 +111453,21 @@ var require_zip_archive_output_stream = __commonJS({ this.write(extra); ae._offsets.contents = this.offset; }; - ZipArchiveOutputStream.prototype.getComment = function(comment) { + ZipArchiveOutputStream2.prototype.getComment = function(comment) { return this._archive.comment !== null ? this._archive.comment : ""; }; - ZipArchiveOutputStream.prototype.isZip64 = function() { + ZipArchiveOutputStream2.prototype.isZip64 = function() { return this._archive.forceZip64 || this._entries.length > constants.ZIP64_MAGIC_SHORT || this._archive.centralLength > constants.ZIP64_MAGIC || this._archive.centralOffset > constants.ZIP64_MAGIC; }; - ZipArchiveOutputStream.prototype.setComment = function(comment) { + ZipArchiveOutputStream2.prototype.setComment = function(comment) { this._archive.comment = comment; }; } }); -// node_modules/compress-commons/lib/compress-commons.js +// node_modules/@actions/artifact/node_modules/compress-commons/lib/compress-commons.js var require_compress_commons = __commonJS({ - "node_modules/compress-commons/lib/compress-commons.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/compress-commons/lib/compress-commons.js"(exports2, module2) { module2.exports = { ArchiveEntry: require_archive_entry(), ZipArchiveEntry: require_zip_archive_entry(), @@ -111157,20 +111477,20 @@ var require_compress_commons = __commonJS({ } }); -// node_modules/zip-stream/index.js +// node_modules/@actions/artifact/node_modules/zip-stream/index.js var require_zip_stream = __commonJS({ - "node_modules/zip-stream/index.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/zip-stream/index.js"(exports2, module2) { var inherits = require("util").inherits; - var ZipArchiveOutputStream = require_compress_commons().ZipArchiveOutputStream; - var ZipArchiveEntry = require_compress_commons().ZipArchiveEntry; - var util = require_archiver_utils(); - var ZipStream = module2.exports = function(options) { - if (!(this instanceof ZipStream)) { - return new ZipStream(options); + var ZipArchiveOutputStream2 = require_compress_commons().ZipArchiveOutputStream; + var ZipArchiveEntry2 = require_compress_commons().ZipArchiveEntry; + var util3 = require_archiver_utils(); + var ZipStream2 = module2.exports = function(options) { + if (!(this instanceof ZipStream2)) { + return new ZipStream2(options); } options = this.options = options || {}; options.zlib = options.zlib || {}; - ZipArchiveOutputStream.call(this, options); + ZipArchiveOutputStream2.call(this, options); if (typeof options.level === "number" && options.level >= 0) { options.zlib.level = options.level; delete options.level; @@ -111183,9 +111503,9 @@ var require_zip_stream = __commonJS({ this.setComment(options.comment); } }; - inherits(ZipStream, ZipArchiveOutputStream); - ZipStream.prototype._normalizeFileData = function(data) { - data = util.defaults(data, { + inherits(ZipStream2, ZipArchiveOutputStream2); + ZipStream2.prototype._normalizeFileData = function(data) { + data = util3.defaults(data, { type: "file", name: null, namePrependSlash: this.options.namePrependSlash, @@ -111198,7 +111518,7 @@ var require_zip_stream = __commonJS({ var isDir = data.type === "directory"; var isSymlink = data.type === "symlink"; if (data.name) { - data.name = util.sanitizePath(data.name); + data.name = util3.sanitizePath(data.name); if (!isSymlink && data.name.slice(-1) === "/") { isDir = true; data.type = "directory"; @@ -111209,10 +111529,10 @@ var require_zip_stream = __commonJS({ if (isDir || isSymlink) { data.store = true; } - data.date = util.dateify(data.date); + data.date = util3.dateify(data.date); return data; }; - ZipStream.prototype.entry = function(source, data, callback) { + ZipStream2.prototype.entry = function(source, data, callback) { if (typeof callback !== "function") { callback = this._emitErrorCallback.bind(this); } @@ -111229,7 +111549,7 @@ var require_zip_stream = __commonJS({ callback(new Error("entry linkname must be a non-empty string value when type equals symlink")); return; } - var entry = new ZipArchiveEntry(data.name); + var entry = new ZipArchiveEntry2(data.name); entry.setTime(data.date, this.options.forceLocalTime); if (data.namePrependSlash) { entry.setName(data.name, true); @@ -111252,24 +111572,24 @@ var require_zip_stream = __commonJS({ if (data.type === "symlink" && typeof data.linkname === "string") { source = Buffer.from(data.linkname); } - return ZipArchiveOutputStream.prototype.entry.call(this, entry, source, callback); + return ZipArchiveOutputStream2.prototype.entry.call(this, entry, source, callback); }; - ZipStream.prototype.finalize = function() { + ZipStream2.prototype.finalize = function() { this.finish(); }; } }); -// node_modules/archiver/lib/plugins/zip.js +// node_modules/@actions/artifact/node_modules/archiver/lib/plugins/zip.js var require_zip = __commonJS({ - "node_modules/archiver/lib/plugins/zip.js"(exports2, module2) { - var engine = require_zip_stream(); - var util = require_archiver_utils(); - var Zip = function(options) { - if (!(this instanceof Zip)) { - return new Zip(options); - } - options = this.options = util.defaults(options, { + "node_modules/@actions/artifact/node_modules/archiver/lib/plugins/zip.js"(exports2, module2) { + var engine2 = require_zip_stream(); + var util3 = require_archiver_utils(); + var Zip2 = function(options) { + if (!(this instanceof Zip2)) { + return new Zip2(options); + } + options = this.options = util3.defaults(options, { comment: "", forceUTC: false, namePrependSlash: false, @@ -111279,24 +111599,24 @@ var require_zip = __commonJS({ directory: true, symlink: true }; - this.engine = new engine(options); + this.engine = new engine2(options); }; - Zip.prototype.append = function(source, data, callback) { + Zip2.prototype.append = function(source, data, callback) { this.engine.entry(source, data, callback); }; - Zip.prototype.finalize = function() { + Zip2.prototype.finalize = function() { this.engine.finalize(); }; - Zip.prototype.on = function() { + Zip2.prototype.on = function() { return this.engine.on.apply(this.engine, arguments); }; - Zip.prototype.pipe = function() { + Zip2.prototype.pipe = function() { return this.engine.pipe.apply(this.engine, arguments); }; - Zip.prototype.unpipe = function() { + Zip2.prototype.unpipe = function() { return this.engine.unpipe.apply(this.engine, arguments); }; - module2.exports = Zip; + module2.exports = Zip2; } }); @@ -111728,7 +112048,7 @@ var require_text_decoder = __commonJS({ // node_modules/streamx/index.js var require_streamx = __commonJS({ "node_modules/streamx/index.js"(exports2, module2) { - var { EventEmitter } = require("events"); + var { EventEmitter: EventEmitter2 } = require("events"); var STREAM_DESTROYED = new Error("Stream was destroyed"); var PREMATURE_CLOSE = new Error("Premature close"); var queueTick = require_process_next_tick(); @@ -112216,7 +112536,7 @@ var require_streamx = __commonJS({ } } } - var Stream = class extends EventEmitter { + var Stream = class extends EventEmitter2 { constructor(opts) { super(); this._duplexState = 0; @@ -112272,7 +112592,7 @@ var require_streamx = __commonJS({ } } }; - var Readable2 = class _Readable extends Stream { + var Readable3 = class _Readable extends Stream { constructor(opts) { super(opts); this._duplexState |= OPENING | WRITE_DONE | READ_READ_AHEAD; @@ -112378,8 +112698,8 @@ var require_streamx = __commonJS({ return this; }, next() { - return new Promise(function(resolve13, reject) { - promiseResolve = resolve13; + return new Promise(function(resolve14, reject) { + promiseResolve = resolve14; promiseReject = reject; const data = stream2.read(); if (data !== null) ondata(data); @@ -112408,11 +112728,11 @@ var require_streamx = __commonJS({ } function destroy(err) { stream2.destroy(err); - return new Promise((resolve13, reject) => { - if (stream2._duplexState & DESTROYED) return resolve13({ value: void 0, done: true }); + return new Promise((resolve14, reject) => { + if (stream2._duplexState & DESTROYED) return resolve14({ value: void 0, done: true }); stream2.once("close", function() { if (err) reject(err); - else resolve13({ value: void 0, done: true }); + else resolve14({ value: void 0, done: true }); }); }); } @@ -112456,8 +112776,8 @@ var require_streamx = __commonJS({ const writes = pending + (ws._duplexState & WRITE_WRITING ? 1 : 0); if (writes === 0) return Promise.resolve(true); if (state.drains === null) state.drains = []; - return new Promise((resolve13) => { - state.drains.push({ writes, resolve: resolve13 }); + return new Promise((resolve14) => { + state.drains.push({ writes, resolve: resolve14 }); }); } write(data) { @@ -112470,7 +112790,7 @@ var require_streamx = __commonJS({ return this; } }; - var Duplex = class extends Readable2 { + var Duplex = class extends Readable3 { // and Writable constructor(opts) { super(opts); @@ -112508,7 +112828,7 @@ var require_streamx = __commonJS({ return this; } }; - var Transform = class extends Duplex { + var Transform5 = class extends Duplex { constructor(opts) { super(opts); this._transformState = new TransformState(this); @@ -112552,7 +112872,7 @@ var require_streamx = __commonJS({ this._flush(transformAfterFlush.bind(this)); } }; - var PassThrough = class extends Transform { + var PassThrough3 = class extends Transform5 { }; function transformAfterFlush(err, data) { const cb = this._transformState.afterFinal; @@ -112562,10 +112882,10 @@ var require_streamx = __commonJS({ cb(null); } function pipelinePromise(...streams) { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { return pipeline(...streams, (err) => { if (err) return reject(err); - resolve13(); + resolve14(); }); }); } @@ -112620,11 +112940,11 @@ var require_streamx = __commonJS({ function echo(s) { return s; } - function isStream(stream2) { + function isStream2(stream2) { return !!stream2._readableState || !!stream2._writableState; } function isStreamx(stream2) { - return typeof stream2._duplexState === "number" && isStream(stream2); + return typeof stream2._duplexState === "number" && isStream2(stream2); } function isEnded(stream2) { return !!stream2._readableState && stream2._readableState.ended; @@ -112656,18 +112976,18 @@ var require_streamx = __commonJS({ module2.exports = { pipeline, pipelinePromise, - isStream, + isStream: isStream2, isStreamx, isEnded, isFinished, getStreamError, Stream, Writable, - Readable: Readable2, + Readable: Readable3, Duplex, - Transform, + Transform: Transform5, // Export PassThrough for compatibility with Node.js core's stream module - PassThrough + PassThrough: PassThrough3 }; } }); @@ -112796,13 +113116,13 @@ var require_headers2 = __commonJS({ function isGNU(buf) { return b4a.equals(GNU_MAGIC, buf.subarray(MAGIC_OFFSET, MAGIC_OFFSET + 6)) && b4a.equals(GNU_VER, buf.subarray(VERSION_OFFSET, VERSION_OFFSET + 2)); } - function clamp(index, len, defaultValue) { - if (typeof index !== "number") return defaultValue; - index = ~~index; - if (index >= len) return len; - if (index >= 0) return index; - index += len; - if (index >= 0) return index; + function clamp(index2, len, defaultValue) { + if (typeof index2 !== "number") return defaultValue; + index2 = ~~index2; + if (index2 >= len) return len; + if (index2 >= 0) return index2; + index2 += len; + if (index2 >= 0) return index2; return 0; } function toType(flag) { @@ -112936,11 +113256,11 @@ var require_headers2 = __commonJS({ // node_modules/tar-stream/extract.js var require_extract = __commonJS({ "node_modules/tar-stream/extract.js"(exports2, module2) { - var { Writable, Readable: Readable2, getStreamError } = require_streamx(); + var { Writable, Readable: Readable3, getStreamError } = require_streamx(); var FIFO = require_fast_fifo(); var b4a = require_b4a(); var headers = require_headers2(); - var EMPTY = b4a.alloc(0); + var EMPTY2 = b4a.alloc(0); var BufferList = class { constructor() { this.buffered = 0; @@ -112957,7 +113277,7 @@ var require_extract = __commonJS({ } shift(size) { if (size > this.buffered) return null; - if (size === 0) return EMPTY; + if (size === 0) return EMPTY2; let chunk = this._next(size); if (size === chunk.byteLength) return chunk; const chunks = [chunk]; @@ -112983,7 +113303,7 @@ var require_extract = __commonJS({ return buf.subarray(this._offset, this._offset += size); } }; - var Source = class extends Readable2 { + var Source = class extends Readable3 { constructor(self2, header, offset) { super(); this.header = header; @@ -113208,16 +113528,16 @@ var require_extract = __commonJS({ entryCallback = null; cb(err); } - function onnext(resolve13, reject) { + function onnext(resolve14, reject) { if (error3) { return reject(error3); } if (entryStream) { - resolve13({ value: entryStream, done: false }); + resolve14({ value: entryStream, done: false }); entryStream = null; return; } - promiseResolve = resolve13; + promiseResolve = resolve14; promiseReject = reject; consumeCallback(null); if (extract2._finished && promiseResolve) { @@ -113245,11 +113565,11 @@ var require_extract = __commonJS({ function destroy(err) { extract2.destroy(err); consumeCallback(err); - return new Promise((resolve13, reject) => { - if (extract2.destroyed) return resolve13({ value: void 0, done: true }); + return new Promise((resolve14, reject) => { + if (extract2.destroyed) return resolve14({ value: void 0, done: true }); extract2.once("close", function() { if (err) reject(err); - else resolve13({ value: void 0, done: true }); + else resolve14({ value: void 0, done: true }); }); }); } @@ -113290,7 +113610,7 @@ var require_constants14 = __commonJS({ // node_modules/tar-stream/pack.js var require_pack = __commonJS({ "node_modules/tar-stream/pack.js"(exports2, module2) { - var { Readable: Readable2, Writable, getStreamError } = require_streamx(); + var { Readable: Readable3, Writable, getStreamError } = require_streamx(); var b4a = require_b4a(); var constants = require_constants14(); var headers = require_headers2(); @@ -113383,7 +113703,7 @@ var require_pack = __commonJS({ cb(); } }; - var Pack = class extends Readable2 { + var Pack = class extends Readable3 { constructor(opts) { super(opts); this._drain = noop3; @@ -113529,17 +113849,17 @@ var require_tar_stream = __commonJS({ } }); -// node_modules/archiver/lib/plugins/tar.js +// node_modules/@actions/artifact/node_modules/archiver/lib/plugins/tar.js var require_tar2 = __commonJS({ - "node_modules/archiver/lib/plugins/tar.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/archiver/lib/plugins/tar.js"(exports2, module2) { var zlib3 = require("zlib"); - var engine = require_tar_stream(); - var util = require_archiver_utils(); - var Tar = function(options) { - if (!(this instanceof Tar)) { - return new Tar(options); + var engine2 = require_tar_stream(); + var util3 = require_archiver_utils(); + var Tar2 = function(options) { + if (!(this instanceof Tar2)) { + return new Tar2(options); } - options = this.options = util.defaults(options, { + options = this.options = util3.defaults(options, { gzip: false }); if (typeof options.gzipOptions !== "object") { @@ -113549,17 +113869,17 @@ var require_tar2 = __commonJS({ directory: true, symlink: true }; - this.engine = engine.pack(options); + this.engine = engine2.pack(options); this.compressor = false; if (options.gzip) { this.compressor = zlib3.createGzip(options.gzipOptions); this.compressor.on("error", this._onCompressorError.bind(this)); } }; - Tar.prototype._onCompressorError = function(err) { + Tar2.prototype._onCompressorError = function(err) { this.engine.emit("error", err); }; - Tar.prototype.append = function(source, data, callback) { + Tar2.prototype.append = function(source, data, callback) { var self2 = this; data.mtime = data.date; function append(err, sourceBuffer) { @@ -113580,30 +113900,30 @@ var require_tar2 = __commonJS({ }); source.pipe(entry); } else if (data.sourceType === "stream") { - util.collectStream(source, append); + util3.collectStream(source, append); } }; - Tar.prototype.finalize = function() { + Tar2.prototype.finalize = function() { this.engine.finalize(); }; - Tar.prototype.on = function() { + Tar2.prototype.on = function() { return this.engine.on.apply(this.engine, arguments); }; - Tar.prototype.pipe = function(destination, options) { + Tar2.prototype.pipe = function(destination, options) { if (this.compressor) { return this.engine.pipe.apply(this.engine, [this.compressor]).pipe(destination, options); } else { return this.engine.pipe.apply(this.engine, arguments); } }; - Tar.prototype.unpipe = function() { + Tar2.prototype.unpipe = function() { if (this.compressor) { return this.compressor.unpipe.apply(this.compressor, arguments); } else { return this.engine.unpipe.apply(this.engine, arguments); } }; - module2.exports = Tar; + module2.exports = Tar2; } }); @@ -113614,7 +113934,7 @@ var require_dist5 = __commonJS({ function getDefaultExportFromCjs(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; } - var CRC_TABLE = new Int32Array([ + var CRC_TABLE2 = new Int32Array([ 0, 1996959894, 3993919788, @@ -113872,7 +114192,7 @@ var require_dist5 = __commonJS({ 1510334235, 755167117 ]); - function ensureBuffer(input) { + function ensureBuffer2(input) { if (Buffer.isBuffer(input)) { return input; } @@ -113884,65 +114204,65 @@ var require_dist5 = __commonJS({ throw new Error("input must be buffer, number, or string, received " + typeof input); } } - function bufferizeInt(num) { - const tmp = ensureBuffer(4); + function bufferizeInt2(num) { + const tmp = ensureBuffer2(4); tmp.writeInt32BE(num, 0); return tmp; } - function _crc32(buf, previous) { - buf = ensureBuffer(buf); + function _crc322(buf, previous) { + buf = ensureBuffer2(buf); if (Buffer.isBuffer(previous)) { previous = previous.readUInt32BE(0); } let crc = ~~previous ^ -1; for (var n = 0; n < buf.length; n++) { - crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8; + crc = CRC_TABLE2[(crc ^ buf[n]) & 255] ^ crc >>> 8; } return crc ^ -1; } - function crc32() { - return bufferizeInt(_crc32.apply(null, arguments)); + function crc325() { + return bufferizeInt2(_crc322.apply(null, arguments)); } - crc32.signed = function() { - return _crc32.apply(null, arguments); + crc325.signed = function() { + return _crc322.apply(null, arguments); }; - crc32.unsigned = function() { - return _crc32.apply(null, arguments) >>> 0; + crc325.unsigned = function() { + return _crc322.apply(null, arguments) >>> 0; }; - var bufferCrc32 = crc32; - var index = /* @__PURE__ */ getDefaultExportFromCjs(bufferCrc32); - module2.exports = index; + var bufferCrc32 = crc325; + var index2 = /* @__PURE__ */ getDefaultExportFromCjs(bufferCrc32); + module2.exports = index2; } }); -// node_modules/archiver/lib/plugins/json.js +// node_modules/@actions/artifact/node_modules/archiver/lib/plugins/json.js var require_json2 = __commonJS({ - "node_modules/archiver/lib/plugins/json.js"(exports2, module2) { + "node_modules/@actions/artifact/node_modules/archiver/lib/plugins/json.js"(exports2, module2) { var inherits = require("util").inherits; - var Transform = require_ours().Transform; - var crc32 = require_dist5(); - var util = require_archiver_utils(); - var Json = function(options) { - if (!(this instanceof Json)) { - return new Json(options); - } - options = this.options = util.defaults(options, {}); - Transform.call(this, options); + var Transform5 = require_ours().Transform; + var crc325 = require_dist5(); + var util3 = require_archiver_utils(); + var Json2 = function(options) { + if (!(this instanceof Json2)) { + return new Json2(options); + } + options = this.options = util3.defaults(options, {}); + Transform5.call(this, options); this.supports = { directory: true, symlink: true }; this.files = []; }; - inherits(Json, Transform); - Json.prototype._transform = function(chunk, encoding, callback) { + inherits(Json2, Transform5); + Json2.prototype._transform = function(chunk, encoding, callback) { callback(null, chunk); }; - Json.prototype._writeStringified = function() { + Json2.prototype._writeStringified = function() { var fileString = JSON.stringify(this.files); this.write(fileString); }; - Json.prototype.append = function(source, data, callback) { + Json2.prototype.append = function(source, data, callback) { var self2 = this; data.crc32 = 0; function onend(err, sourceBuffer) { @@ -113951,35 +114271,35 @@ var require_json2 = __commonJS({ return; } data.size = sourceBuffer.length || 0; - data.crc32 = crc32.unsigned(sourceBuffer); + data.crc32 = crc325.unsigned(sourceBuffer); self2.files.push(data); callback(null, data); } if (data.sourceType === "buffer") { onend(null, source); } else if (data.sourceType === "stream") { - util.collectStream(source, onend); + util3.collectStream(source, onend); } }; - Json.prototype.finalize = function() { + Json2.prototype.finalize = function() { this._writeStringified(); this.end(); }; - module2.exports = Json; + module2.exports = Json2; } }); -// node_modules/archiver/index.js +// node_modules/@actions/artifact/node_modules/archiver/index.js var require_archiver = __commonJS({ - "node_modules/archiver/index.js"(exports2, module2) { - var Archiver = require_core3(); + "node_modules/@actions/artifact/node_modules/archiver/index.js"(exports2, module2) { + var Archiver2 = require_core3(); var formats = {}; var vending = function(format, options) { return vending.create(format, options); }; vending.create = function(format, options) { if (formats[format]) { - var instance = new Archiver(format, options); + var instance = new Archiver2(format, options); instance.setFormat(format); instance.setModule(new formats[format](options)); return instance; @@ -114045,11 +114365,11 @@ var require_zip2 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -114065,7 +114385,7 @@ var require_zip2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -114074,7 +114394,7 @@ var require_zip2 = __commonJS({ exports2.createZipUploadStream = exports2.ZipUploadStream = exports2.DEFAULT_COMPRESSION_LEVEL = void 0; var stream2 = __importStar2(require("stream")); var promises_1 = require("fs/promises"); - var archiver2 = __importStar2(require_archiver()); + var archiver = __importStar2(require_archiver()); var core30 = __importStar2(require_core()); var config_1 = require_config2(); exports2.DEFAULT_COMPRESSION_LEVEL = 6; @@ -114093,7 +114413,7 @@ var require_zip2 = __commonJS({ function createZipUploadStream(uploadSpecification_1) { return __awaiter2(this, arguments, void 0, function* (uploadSpecification, compressionLevel = exports2.DEFAULT_COMPRESSION_LEVEL) { core30.debug(`Creating Artifact archive with compressionLevel: ${compressionLevel}`); - const zip = archiver2.create("zip", { + const zip = archiver.create("zip", { highWaterMark: (0, config_1.getUploadChunkSize)(), zlib: { level: compressionLevel } }); @@ -114180,11 +114500,11 @@ var require_upload_artifact = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -114200,7 +114520,7 @@ var require_upload_artifact = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -114285,14 +114605,14 @@ var require_context2 = __commonJS({ * Hydrate the context from the environment */ constructor() { - var _a, _b, _c; + var _a2, _b, _c; this.payload = {}; if (process.env.GITHUB_EVENT_PATH) { if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) { this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: "utf8" })); } else { - const path28 = process.env.GITHUB_EVENT_PATH; - process.stdout.write(`GITHUB_EVENT_PATH ${path28} does not exist${os_1.EOL}`); + const path29 = process.env.GITHUB_EVENT_PATH; + process.stdout.write(`GITHUB_EVENT_PATH ${path29} does not exist${os_1.EOL}`); } } this.eventName = process.env.GITHUB_EVENT_NAME; @@ -114305,7 +114625,7 @@ var require_context2 = __commonJS({ this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10); this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); - this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`; + this.apiUrl = (_a2 = process.env.GITHUB_API_URL) !== null && _a2 !== void 0 ? _a2 : `https://api.github.com`; this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`; this.graphqlUrl = (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`; } @@ -114352,7 +114672,7 @@ var require_proxy2 = __commonJS({ if (proxyVar) { try { return new DecodedURL(proxyVar); - } catch (_a) { + } catch (_a2) { if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) return new DecodedURL(`http://${proxyVar}`); } @@ -114446,11 +114766,11 @@ var require_lib4 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -114466,7 +114786,7 @@ var require_lib4 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -114552,26 +114872,26 @@ var require_lib4 = __commonJS({ } readBody() { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14) => __awaiter2(this, void 0, void 0, function* () { let output = Buffer.alloc(0); this.message.on("data", (chunk) => { output = Buffer.concat([output, chunk]); }); this.message.on("end", () => { - resolve13(output.toString()); + resolve14(output.toString()); }); })); }); } readBodyBuffer() { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14) => __awaiter2(this, void 0, void 0, function* () { const chunks = []; this.message.on("data", (chunk) => { chunks.push(chunk); }); this.message.on("end", () => { - resolve13(Buffer.concat(chunks)); + resolve14(Buffer.concat(chunks)); }); })); }); @@ -114780,14 +115100,14 @@ var require_lib4 = __commonJS({ */ requestRaw(info8, data) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { function callbackForResult(err, res) { if (err) { reject(err); } else if (!res) { reject(new Error("Unknown error")); } else { - resolve13(res); + resolve14(res); } } this.requestRawWithCallback(info8, data, callbackForResult); @@ -114969,12 +115289,12 @@ var require_lib4 = __commonJS({ return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise((resolve13) => setTimeout(() => resolve13(), ms)); + return new Promise((resolve14) => setTimeout(() => resolve14(), ms)); }); } _processResponse(res, options) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14, reject) => __awaiter2(this, void 0, void 0, function* () { const statusCode = res.message.statusCode || 0; const response = { statusCode, @@ -114982,7 +115302,7 @@ var require_lib4 = __commonJS({ headers: {} }; if (statusCode === HttpCodes.NotFound) { - resolve13(response); + resolve14(response); } function dateTimeDeserializer(key, value) { if (typeof value === "string") { @@ -115021,7 +115341,7 @@ var require_lib4 = __commonJS({ err.result = response.result; reject(err); } else { - resolve13(response); + resolve14(response); } })); }); @@ -115065,11 +115385,11 @@ var require_utils8 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -115085,7 +115405,7 @@ var require_utils8 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -115222,13 +115542,13 @@ var require_remove = __commonJS({ if (!state.registry[name]) { return; } - var index = state.registry[name].map(function(registered) { + var index2 = state.registry[name].map(function(registered) { return registered.orig; }).indexOf(method); - if (index === -1) { + if (index2 === -1) { return; } - state.registry[name].splice(index, 1); + state.registry[name].splice(index2, 1); } } }); @@ -115349,14 +115669,14 @@ var require_dist_node2 = __commonJS({ const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor; return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value); } - function mergeDeep2(defaults, options) { - const result = Object.assign({}, defaults); + function mergeDeep2(defaults2, options) { + const result = Object.assign({}, defaults2); Object.keys(options).forEach((key) => { if (isPlainObject3(options[key])) { - if (!(key in defaults)) + if (!(key in defaults2)) Object.assign(result, { [key]: options[key] }); else - result[key] = mergeDeep2(defaults[key], options[key]); + result[key] = mergeDeep2(defaults2[key], options[key]); } else { Object.assign(result, { [key]: options[key] }); } @@ -115371,7 +115691,7 @@ var require_dist_node2 = __commonJS({ } return obj; } - function merge2(defaults, route, options) { + function merge2(defaults2, route, options) { if (typeof route === "string") { let [method, url2] = route.split(" "); options = Object.assign(url2 ? { method, url: url2 } : { url: method }, options); @@ -115381,10 +115701,10 @@ var require_dist_node2 = __commonJS({ options.headers = lowercaseKeys2(options.headers); removeUndefinedProperties2(options); removeUndefinedProperties2(options.headers); - const mergedOptions = mergeDeep2(defaults || {}, options); + const mergedOptions = mergeDeep2(defaults2 || {}, options); if (options.url === "/graphql") { - if (defaults && defaults.mediaType.previews?.length) { - mergedOptions.mediaType.previews = defaults.mediaType.previews.filter( + if (defaults2 && defaults2.mediaType.previews?.length) { + mergedOptions.mediaType.previews = defaults2.mediaType.previews.filter( (preview) => !mergedOptions.mediaType.previews.includes(preview) ).concat(mergedOptions.mediaType.previews); } @@ -115514,10 +115834,10 @@ var require_dist_node2 = __commonJS({ } function parseUrl2(template) { return { - expand: expand2.bind(null, template) + expand: expand3.bind(null, template) }; } - function expand2(template, context5) { + function expand3(template, context5) { var operators = ["+", "#", ".", "/", ";", "?", "&"]; template = template.replace( /\{([^\{\}]+)\}|([^\{\}]+)/g, @@ -115618,8 +115938,8 @@ var require_dist_node2 = __commonJS({ options.request ? { request: options.request } : null ); } - function endpointWithDefaults2(defaults, route, options) { - return parse2(merge2(defaults, route, options)); + function endpointWithDefaults2(defaults2, route, options) { + return parse2(merge2(defaults2, route, options)); } function withDefaults4(oldDefaults, newDefaults) { const DEFAULTS22 = merge2(oldDefaults, newDefaults); @@ -115864,9 +116184,9 @@ var require_dist_node5 = __commonJS({ return response.arrayBuffer(); } function fetchWrapper2(requestOptions) { - var _a, _b, _c, _d; + var _a2, _b, _c, _d; const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console; - const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false; + const parseSuccessResponseBody = ((_a2 = requestOptions.request) == null ? void 0 : _a2.parseSuccessResponseBody) !== false; if (isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body)) { requestOptions.body = JSON.stringify(requestOptions.body); } @@ -116293,21 +116613,21 @@ var require_dist_node8 = __commonJS({ static { this.VERSION = VERSION8; } - static defaults(defaults) { + static defaults(defaults2) { const OctokitWithDefaults = class extends this { constructor(...args) { const options = args[0] || {}; - if (typeof defaults === "function") { - super(defaults(options)); + if (typeof defaults2 === "function") { + super(defaults2(options)); return; } super( Object.assign( {}, - defaults, + defaults2, options, - options.userAgent && defaults.userAgent ? { - userAgent: `${options.userAgent} ${defaults.userAgent}` + options.userAgent && defaults2.userAgent ? { + userAgent: `${options.userAgent} ${defaults2.userAgent}` } : null ) ); @@ -118423,14 +118743,14 @@ var require_dist_node9 = __commonJS({ var endpointMethodsMap2 = /* @__PURE__ */ new Map(); for (const [scope, endpoints] of Object.entries(endpoints_default2)) { for (const [methodName, endpoint2] of Object.entries(endpoints)) { - const [route, defaults, decorations] = endpoint2; + const [route, defaults2, decorations] = endpoint2; const [method, url2] = route.split(/ /); const endpointDefaults = Object.assign( { method, url: url2 }, - defaults + defaults2 ); if (!endpointMethodsMap2.has(scope)) { endpointMethodsMap2.set(scope, /* @__PURE__ */ new Map()); @@ -118500,8 +118820,8 @@ var require_dist_node9 = __commonJS({ } return newMethods; } - function decorate2(octokit, scope, methodName, defaults, decorations) { - const requestWithDefaults = octokit.request.defaults(defaults); + function decorate2(octokit, scope, methodName, defaults2, decorations) { + const requestWithDefaults = octokit.request.defaults(defaults2); function withDecorations(...args) { let options = requestWithDefaults.endpoint.merge(...args); if (decorations.mapToData) { @@ -119188,7 +119508,7 @@ var require_traverse = __commonJS({ })(this.value); }; function walk(root, cb, immutable) { - var path28 = []; + var path29 = []; var parents = []; var alive = true; return (function walker(node_) { @@ -119197,11 +119517,11 @@ var require_traverse = __commonJS({ var state = { node, node_, - path: [].concat(path28), + path: [].concat(path29), parent: parents.slice(-1)[0], - key: path28.slice(-1)[0], - isRoot: path28.length === 0, - level: path28.length, + key: path29.slice(-1)[0], + isRoot: path29.length === 0, + level: path29.length, circular: null, update: function(x) { if (!state.isRoot) { @@ -119256,7 +119576,7 @@ var require_traverse = __commonJS({ parents.push(state); var keys = Object.keys(state.node); keys.forEach(function(key, i2) { - path28.push(key); + path29.push(key); if (modifiers.pre) modifiers.pre.call(state, state.node[key], key); var child = walker(state.node[key]); if (immutable && Object.hasOwnProperty.call(state.node, key)) { @@ -119265,7 +119585,7 @@ var require_traverse = __commonJS({ child.isLast = i2 == keys.length - 1; child.isFirst = i2 == 0; if (modifiers.post) modifiers.post.call(state, child); - path28.pop(); + path29.pop(); }); parents.pop(); } @@ -119309,7 +119629,7 @@ var require_traverse = __commonJS({ var require_chainsaw = __commonJS({ "node_modules/chainsaw/index.js"(exports2, module2) { var Traverse = require_traverse(); - var EventEmitter = require("events").EventEmitter; + var EventEmitter2 = require("events").EventEmitter; module2.exports = Chainsaw; function Chainsaw(builder) { var saw = Chainsaw.saw(builder, {}); @@ -119325,7 +119645,7 @@ var require_chainsaw = __commonJS({ return saw.chain(); }; Chainsaw.saw = function(builder, handlers) { - var saw = new EventEmitter(); + var saw = new EventEmitter2(); saw.handlers = handlers; saw.actions = []; saw.chain = function() { @@ -119467,12 +119787,12 @@ var require_buffers = __commonJS({ }; Buffers.prototype.splice = function(i, howMany) { var buffers = this.buffers; - var index = i >= 0 ? i : this.length - i; + var index2 = i >= 0 ? i : this.length - i; var reps = [].slice.call(arguments, 2); if (howMany === void 0) { - howMany = this.length - index; - } else if (howMany > this.length - index) { - howMany = this.length - index; + howMany = this.length - index2; + } else if (howMany > this.length - index2) { + howMany = this.length - index2; } for (var i = 0; i < reps.length; i++) { this.length += reps[i].length; @@ -119480,11 +119800,11 @@ var require_buffers = __commonJS({ var removed = new Buffers(); var bytes = 0; var startBytes = 0; - for (var ii = 0; ii < buffers.length && startBytes + buffers[ii].length < index; ii++) { + for (var ii = 0; ii < buffers.length && startBytes + buffers[ii].length < index2; ii++) { startBytes += buffers[ii].length; } - if (index - startBytes > 0) { - var start = index - startBytes; + if (index2 - startBytes > 0) { + var start = index2 - startBytes; if (start + howMany < buffers[ii].length) { removed.push(buffers[ii].slice(start, start + howMany)); var orig = buffers[ii]; @@ -119586,7 +119906,7 @@ var require_buffers = __commonJS({ if (!this.length) { return -1; } - var i = 0, j = 0, match = 0, mstart, pos = 0; + var i = 0, j = 0, match2 = 0, mstart, pos = 0; if (offset) { var p = this.pos(offset); i = p.buf; @@ -119602,23 +119922,23 @@ var require_buffers = __commonJS({ } } var char = this.buffers[i][j]; - if (char == needle[match]) { - if (match == 0) { + if (char == needle[match2]) { + if (match2 == 0) { mstart = { i, j, pos }; } - match++; - if (match == needle.length) { + match2++; + if (match2 == needle.length) { return mstart.pos; } - } else if (match != 0) { + } else if (match2 != 0) { i = mstart.i; j = mstart.j; pos = mstart.pos; - match = 0; + match2 = 0; } j++; pos++; @@ -119669,7 +119989,7 @@ var require_vars = __commonJS({ var require_binary2 = __commonJS({ "node_modules/binary/index.js"(exports2, module2) { var Chainsaw = require_chainsaw(); - var EventEmitter = require("events").EventEmitter; + var EventEmitter2 = require("events").EventEmitter; var Buffers = require_buffers(); var Vars = require_vars(); var Stream = require("stream").Stream; @@ -119855,8 +120175,8 @@ var require_binary2 = __commonJS({ caughtEnd = true; }; stream2.pipe = Stream.prototype.pipe; - Object.getOwnPropertyNames(EventEmitter.prototype).forEach(function(name) { - stream2[name] = EventEmitter.prototype[name]; + Object.getOwnPropertyNames(EventEmitter2.prototype).forEach(function(name) { + stream2[name] = EventEmitter2.prototype[name]; }); return stream2; }; @@ -119993,13 +120313,13 @@ var require_binary2 = __commonJS({ // node_modules/unzip-stream/lib/matcher-stream.js var require_matcher_stream = __commonJS({ "node_modules/unzip-stream/lib/matcher-stream.js"(exports2, module2) { - var Transform = require("stream").Transform; - var util = require("util"); + var Transform5 = require("stream").Transform; + var util3 = require("util"); function MatcherStream(patternDesc, matchFn) { if (!(this instanceof MatcherStream)) { return new MatcherStream(); } - Transform.call(this); + Transform5.call(this); var p = typeof patternDesc === "object" ? patternDesc.pattern : patternDesc; this.pattern = Buffer.isBuffer(p) ? p : Buffer.from(p); this.requiredLength = this.pattern.length; @@ -120008,7 +120328,7 @@ var require_matcher_stream = __commonJS({ this.bytesSoFar = 0; this.matchFn = matchFn; } - util.inherits(MatcherStream, Transform); + util3.inherits(MatcherStream, Transform5); MatcherStream.prototype.checkDataChunk = function(ignoreMatchZero) { var enoughData = this.data.length >= this.requiredLength; if (!enoughData) { @@ -120101,7 +120421,7 @@ var require_unzip_stream = __commonJS({ "use strict"; var binary = require_binary2(); var stream2 = require("stream"); - var util = require("util"); + var util3 = require("util"); var zlib3 = require("zlib"); var MatcherStream = require_matcher_stream(); var Entry = require_entry(); @@ -120142,7 +120462,7 @@ var require_unzip_stream = __commonJS({ this.parsedEntity = null; this.outStreamInfo = {}; } - util.inherits(UnzipStream, stream2.Transform); + util3.inherits(UnzipStream, stream2.Transform); UnzipStream.prototype.processDataChunk = function(chunk) { var requiredLength; switch (this.state) { @@ -120286,11 +120606,11 @@ var require_unzip_stream = __commonJS({ return requiredLength; case states.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX: var isUtf8 = (this.parsedEntity.flags & 2048) !== 0; - var path28 = this._decodeString(chunk.slice(0, this.parsedEntity.fileNameLength), isUtf8); + var path29 = this._decodeString(chunk.slice(0, this.parsedEntity.fileNameLength), isUtf8); var extraDataBuffer = chunk.slice(this.parsedEntity.fileNameLength, this.parsedEntity.fileNameLength + this.parsedEntity.extraFieldLength); var extra = this._readExtraFields(extraDataBuffer); if (extra && extra.parsed && extra.parsed.path && !isUtf8) { - path28 = extra.parsed.path; + path29 = extra.parsed.path; } this.parsedEntity.extra = extra.parsed; var isUnix = (this.parsedEntity.versionMadeBy & 65280) >> 8 === 3; @@ -120302,7 +120622,7 @@ var require_unzip_stream = __commonJS({ } if (this.options.debug) { const debugObj = Object.assign({}, this.parsedEntity, { - path: path28, + path: path29, flags: "0x" + this.parsedEntity.flags.toString(16), unixAttrs: unixAttrs && "0" + unixAttrs.toString(8), isSymlink, @@ -120433,15 +120753,15 @@ var require_unzip_stream = __commonJS({ if (this.options.debug) { result.debug = []; } - var index = 0; - while (index < data.length) { - var vars = binary.parse(data).skip(index).word16lu("extraId").word16lu("extraSize").vars; - index += 4; + var index2 = 0; + while (index2 < data.length) { + var vars = binary.parse(data).skip(index2).word16lu("extraId").word16lu("extraSize").vars; + index2 += 4; var fieldType = void 0; switch (vars.extraId) { case 1: fieldType = "Zip64 extended information extra field"; - var z64vars = binary.parse(data.slice(index, index + vars.extraSize)).word64lu("uncompressedSize").word64lu("compressedSize").word64lu("offsetToLocalHeader").word32lu("diskStartNumber").vars; + var z64vars = binary.parse(data.slice(index2, index2 + vars.extraSize)).word64lu("uncompressedSize").word64lu("compressedSize").word64lu("offsetToLocalHeader").word32lu("diskStartNumber").vars; if (z64vars.uncompressedSize !== null) { extra.uncompressedSize = z64vars.uncompressedSize; } @@ -120455,28 +120775,28 @@ var require_unzip_stream = __commonJS({ break; case 21589: fieldType = "extended timestamp"; - var timestampFields = data.readUInt8(index); + var timestampFields = data.readUInt8(index2); var offset = 1; if (vars.extraSize >= offset + 4 && timestampFields & 1) { - extra.mtime = new Date(data.readUInt32LE(index + offset) * 1e3); + extra.mtime = new Date(data.readUInt32LE(index2 + offset) * 1e3); offset += 4; } if (vars.extraSize >= offset + 4 && timestampFields & 2) { - extra.atime = new Date(data.readUInt32LE(index + offset) * 1e3); + extra.atime = new Date(data.readUInt32LE(index2 + offset) * 1e3); offset += 4; } if (vars.extraSize >= offset + 4 && timestampFields & 4) { - extra.ctime = new Date(data.readUInt32LE(index + offset) * 1e3); + extra.ctime = new Date(data.readUInt32LE(index2 + offset) * 1e3); } break; case 28789: fieldType = "Info-ZIP Unicode Path Extra Field"; - var fieldVer = data.readUInt8(index); + var fieldVer = data.readUInt8(index2); if (fieldVer === 1) { var offset = 1; - var nameCrc32 = data.readUInt32LE(index + offset); + var nameCrc32 = data.readUInt32LE(index2 + offset); offset += 4; - var pathBuffer = data.slice(index + offset); + var pathBuffer = data.slice(index2 + offset); extra.path = pathBuffer.toString(); } break; @@ -120485,16 +120805,16 @@ var require_unzip_stream = __commonJS({ fieldType = vars.extraId === 13 ? "PKWARE Unix" : "Info-ZIP UNIX (type 1)"; var offset = 0; if (vars.extraSize >= 8) { - var atime = new Date(data.readUInt32LE(index + offset) * 1e3); + var atime = new Date(data.readUInt32LE(index2 + offset) * 1e3); offset += 4; - var mtime = new Date(data.readUInt32LE(index + offset) * 1e3); + var mtime = new Date(data.readUInt32LE(index2 + offset) * 1e3); offset += 4; extra.atime = atime; extra.mtime = mtime; if (vars.extraSize >= 12) { - var uid = data.readUInt16LE(index + offset); + var uid = data.readUInt16LE(index2 + offset); offset += 2; - var gid = data.readUInt16LE(index + offset); + var gid = data.readUInt16LE(index2 + offset); offset += 2; extra.uid = uid; extra.gid = gid; @@ -120505,9 +120825,9 @@ var require_unzip_stream = __commonJS({ fieldType = "Info-ZIP UNIX (type 2)"; var offset = 0; if (vars.extraSize >= 4) { - var uid = data.readUInt16LE(index + offset); + var uid = data.readUInt16LE(index2 + offset); offset += 2; - var gid = data.readUInt16LE(index + offset); + var gid = data.readUInt16LE(index2 + offset); offset += 2; extra.uid = uid; extra.gid = gid; @@ -120516,19 +120836,19 @@ var require_unzip_stream = __commonJS({ case 30837: fieldType = "Info-ZIP New Unix"; var offset = 0; - var extraVer = data.readUInt8(index); + var extraVer = data.readUInt8(index2); offset += 1; if (extraVer === 1) { - var uidSize = data.readUInt8(index + offset); + var uidSize = data.readUInt8(index2 + offset); offset += 1; if (uidSize <= 6) { - extra.uid = data.readUIntLE(index + offset, uidSize); + extra.uid = data.readUIntLE(index2 + offset, uidSize); } offset += uidSize; - var gidSize = data.readUInt8(index + offset); + var gidSize = data.readUInt8(index2 + offset); offset += 1; if (gidSize <= 6) { - extra.gid = data.readUIntLE(index + offset, gidSize); + extra.gid = data.readUIntLE(index2 + offset, gidSize); } } break; @@ -120536,22 +120856,22 @@ var require_unzip_stream = __commonJS({ fieldType = "ASi Unix"; var offset = 0; if (vars.extraSize >= 14) { - var crc = data.readUInt32LE(index + offset); + var crc = data.readUInt32LE(index2 + offset); offset += 4; - var mode = data.readUInt16LE(index + offset); + var mode = data.readUInt16LE(index2 + offset); offset += 2; - var sizdev = data.readUInt32LE(index + offset); + var sizdev = data.readUInt32LE(index2 + offset); offset += 4; - var uid = data.readUInt16LE(index + offset); + var uid = data.readUInt16LE(index2 + offset); offset += 2; - var gid = data.readUInt16LE(index + offset); + var gid = data.readUInt16LE(index2 + offset); offset += 2; extra.mode = mode; extra.uid = uid; extra.gid = gid; if (vars.extraSize > 14) { - var start = index + offset; - var end = index + vars.extraSize - 14; + var start = index2 + offset; + var end = index2 + vars.extraSize - 14; var symlinkName = this._decodeString(data.slice(start, end)); extra.symlink = symlinkName; } @@ -120562,10 +120882,10 @@ var require_unzip_stream = __commonJS({ result.debug.push({ extraId: "0x" + vars.extraId.toString(16), description: fieldType, - data: data.slice(index, index + vars.extraSize).inspect() + data: data.slice(index2, index2 + vars.extraSize).inspect() }); } - index += vars.extraSize; + index2 += vars.extraSize; } return result; }; @@ -120688,15 +121008,15 @@ var require_unzip_stream = __commonJS({ // node_modules/unzip-stream/lib/parser-stream.js var require_parser_stream = __commonJS({ "node_modules/unzip-stream/lib/parser-stream.js"(exports2, module2) { - var Transform = require("stream").Transform; - var util = require("util"); + var Transform5 = require("stream").Transform; + var util3 = require("util"); var UnzipStream = require_unzip_stream(); function ParserStream(opts) { if (!(this instanceof ParserStream)) { return new ParserStream(opts); } var transformOpts = opts || {}; - Transform.call(this, { readableObjectMode: true }); + Transform5.call(this, { readableObjectMode: true }); this.opts = opts || {}; this.unzipStream = new UnzipStream(this.opts); var self2 = this; @@ -120707,7 +121027,7 @@ var require_parser_stream = __commonJS({ self2.emit("error", error3); }); } - util.inherits(ParserStream, Transform); + util3.inherits(ParserStream, Transform5); ParserStream.prototype._transform = function(chunk, encoding, cb) { this.unzipStream.write(chunk, encoding, cb); }; @@ -120722,13 +121042,13 @@ var require_parser_stream = __commonJS({ }; ParserStream.prototype.on = function(eventName, fn) { if (eventName === "entry") { - return Transform.prototype.on.call(this, "data", fn); + return Transform5.prototype.on.call(this, "data", fn); } - return Transform.prototype.on.call(this, eventName, fn); + return Transform5.prototype.on.call(this, eventName, fn); }; ParserStream.prototype.drainAll = function() { this.unzipStream.drainAll(); - return this.pipe(new Transform({ objectMode: true, transform: function(d, e, cb) { + return this.pipe(new Transform5({ objectMode: true, transform: function(d, e, cb) { cb(); } })); }; @@ -120739,8 +121059,8 @@ var require_parser_stream = __commonJS({ // node_modules/mkdirp/index.js var require_mkdirp = __commonJS({ "node_modules/mkdirp/index.js"(exports2, module2) { - var path28 = require("path"); - var fs30 = require("fs"); + var path29 = require("path"); + var fs31 = require("fs"); var _0777 = parseInt("0777", 8); module2.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP; function mkdirP(p, opts, f, made) { @@ -120751,7 +121071,7 @@ var require_mkdirp = __commonJS({ opts = { mode: opts }; } var mode = opts.mode; - var xfs = opts.fs || fs30; + var xfs = opts.fs || fs31; if (mode === void 0) { mode = _0777; } @@ -120759,7 +121079,7 @@ var require_mkdirp = __commonJS({ var cb = f || /* istanbul ignore next */ function() { }; - p = path28.resolve(p); + p = path29.resolve(p); xfs.mkdir(p, mode, function(er) { if (!er) { made = made || p; @@ -120767,8 +121087,8 @@ var require_mkdirp = __commonJS({ } switch (er.code) { case "ENOENT": - if (path28.dirname(p) === p) return cb(er); - mkdirP(path28.dirname(p), opts, function(er2, made2) { + if (path29.dirname(p) === p) return cb(er); + mkdirP(path29.dirname(p), opts, function(er2, made2) { if (er2) cb(er2, made2); else mkdirP(p, opts, cb, made2); }); @@ -120777,8 +121097,8 @@ var require_mkdirp = __commonJS({ // there already. If so, then hooray! If not, then something // is borked. default: - xfs.stat(p, function(er2, stat) { - if (er2 || !stat.isDirectory()) cb(er, made); + xfs.stat(p, function(er2, stat2) { + if (er2 || !stat2.isDirectory()) cb(er, made); else cb(null, made); }); break; @@ -120790,32 +121110,32 @@ var require_mkdirp = __commonJS({ opts = { mode: opts }; } var mode = opts.mode; - var xfs = opts.fs || fs30; + var xfs = opts.fs || fs31; if (mode === void 0) { mode = _0777; } if (!made) made = null; - p = path28.resolve(p); + p = path29.resolve(p); try { xfs.mkdirSync(p, mode); made = made || p; } catch (err0) { switch (err0.code) { case "ENOENT": - made = sync(path28.dirname(p), opts, made); + made = sync(path29.dirname(p), opts, made); sync(p, opts, made); break; // In the case of any other error, just see if there's a dir // there already. If so, then hooray! If not, then something // is borked. default: - var stat; + var stat2; try { - stat = xfs.statSync(p); + stat2 = xfs.statSync(p); } catch (err1) { throw err0; } - if (!stat.isDirectory()) throw err0; + if (!stat2.isDirectory()) throw err0; break; } } @@ -120827,16 +121147,16 @@ var require_mkdirp = __commonJS({ // node_modules/unzip-stream/lib/extract.js var require_extract2 = __commonJS({ "node_modules/unzip-stream/lib/extract.js"(exports2, module2) { - var fs30 = require("fs"); - var path28 = require("path"); - var util = require("util"); + var fs31 = require("fs"); + var path29 = require("path"); + var util3 = require("util"); var mkdirp = require_mkdirp(); - var Transform = require("stream").Transform; + var Transform5 = require("stream").Transform; var UnzipStream = require_unzip_stream(); function Extract(opts) { if (!(this instanceof Extract)) return new Extract(opts); - Transform.call(this); + Transform5.call(this); this.opts = opts || {}; this.unzipStream = new UnzipStream(this.opts); this.unfinishedEntries = 0; @@ -120848,7 +121168,7 @@ var require_extract2 = __commonJS({ self2.emit("error", error3); }); } - util.inherits(Extract, Transform); + util3.inherits(Extract, Transform5); Extract.prototype._transform = function(chunk, encoding, cb) { this.unzipStream.write(chunk, encoding, cb); }; @@ -120870,11 +121190,11 @@ var require_extract2 = __commonJS({ }; Extract.prototype._processEntry = function(entry) { var self2 = this; - var destPath = path28.join(this.opts.path, entry.path); - var directory = entry.isDirectory ? destPath : path28.dirname(destPath); + var destPath = path29.join(this.opts.path, entry.path); + var directory = entry.isDirectory ? destPath : path29.dirname(destPath); this.unfinishedEntries++; var writeFileFn = function() { - var pipedStream = fs30.createWriteStream(destPath); + var pipedStream = fs31.createWriteStream(destPath); pipedStream.on("close", function() { self2.unfinishedEntries--; self2._notifyAwaiter(); @@ -120950,11 +121270,11 @@ var require_download_artifact = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -120970,7 +121290,7 @@ var require_download_artifact = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -120998,10 +121318,10 @@ var require_download_artifact = __commonJS({ parsed.search = ""; return parsed.toString(); }; - function exists(path28) { + function exists(path29) { return __awaiter2(this, void 0, void 0, function* () { try { - yield promises_1.default.access(path28); + yield promises_1.default.access(path29); return true; } catch (error3) { if (error3.code === "ENOENT") { @@ -121021,7 +121341,7 @@ var require_download_artifact = __commonJS({ } catch (error3) { retryCount++; core30.debug(`Failed to download artifact after ${retryCount} retries due to ${error3.message}. Retrying in 5 seconds...`); - yield new Promise((resolve13) => setTimeout(resolve13, 5e3)); + yield new Promise((resolve14) => setTimeout(resolve14, 5e3)); } } throw new Error(`Artifact download failed after ${retryCount} retries.`); @@ -121035,7 +121355,7 @@ var require_download_artifact = __commonJS({ throw new Error(`Unexpected HTTP response from blob storage: ${response.message.statusCode} ${response.message.statusMessage}`); } let sha256Digest = void 0; - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const timerFn = () => { const timeoutError = new Error(`Blob storage chunk did not respond in ${opts.timeout}ms`); response.message.destroy(timeoutError); @@ -121060,7 +121380,7 @@ var require_download_artifact = __commonJS({ sha256Digest = hashStream.read(); core30.info(`SHA256 digest of downloaded artifact is ${sha256Digest}`); } - resolve13({ sha256Digest: `sha256:${sha256Digest}` }); + resolve14({ sha256Digest: `sha256:${sha256Digest}` }); }).on("error", (error3) => { reject(error3); }); @@ -121204,7 +121524,7 @@ var require_retry_options = __commonJS({ var defaultMaxRetryNumber = 5; var defaultExemptStatusCodes = [400, 401, 403, 404, 422]; function getRetryOptions(defaultOptions, retries = defaultMaxRetryNumber, exemptStatusCodes = defaultExemptStatusCodes) { - var _a; + var _a2; if (retries <= 0) { return [{ enabled: false }, defaultOptions.request]; } @@ -121215,7 +121535,7 @@ var require_retry_options = __commonJS({ retryOptions.doNotRetry = exemptStatusCodes; } const requestOptions = Object.assign(Object.assign({}, defaultOptions.request), { retries }); - core30.debug(`GitHub client configured with: (retries: ${requestOptions.retries}, retry-exempt-status-code: ${(_a = retryOptions.doNotRetry) !== null && _a !== void 0 ? _a : "octokit default: [400, 401, 403, 404, 422]"})`); + core30.debug(`GitHub client configured with: (retries: ${requestOptions.retries}, retry-exempt-status-code: ${(_a2 = retryOptions.doNotRetry) !== null && _a2 !== void 0 ? _a2 : "octokit default: [400, 401, 403, 404, 422]"})`); return [retryOptions, requestOptions]; } exports2.getRetryOptions = getRetryOptions; @@ -121233,12 +121553,12 @@ var require_dist_node11 = __commonJS({ octokit.log.debug("request", options); const start = Date.now(); const requestOptions = octokit.request.endpoint.parse(options); - const path28 = requestOptions.url.replace(options.baseUrl, ""); + const path29 = requestOptions.url.replace(options.baseUrl, ""); return request3(options).then((response) => { - octokit.log.info(`${requestOptions.method} ${path28} - ${response.status} in ${Date.now() - start}ms`); + octokit.log.info(`${requestOptions.method} ${path29} - ${response.status} in ${Date.now() - start}ms`); return response; }).catch((error3) => { - octokit.log.info(`${requestOptions.method} ${path28} - ${error3.status} in ${Date.now() - start}ms`); + octokit.log.info(`${requestOptions.method} ${path29} - ${error3.status} in ${Date.now() - start}ms`); throw error3; }); }); @@ -121343,11 +121663,11 @@ var require_get_artifact = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -121363,7 +121683,7 @@ var require_get_artifact = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -121383,7 +121703,7 @@ var require_get_artifact = __commonJS({ var errors_1 = require_errors3(); function getArtifactPublic(artifactName, workflowRunId, repositoryOwner, repositoryName, token) { return __awaiter2(this, void 0, void 0, function* () { - var _a; + var _a2; const [retryOpts, requestOpts] = (0, retry_options_1.getRetryOptions)(utils_1.defaults); const opts = { log: void 0, @@ -121400,7 +121720,7 @@ var require_get_artifact = __commonJS({ name: artifactName }); if (getArtifactResp.status !== 200) { - throw new errors_1.InvalidResponseError(`Invalid response from GitHub API: ${getArtifactResp.status} (${(_a = getArtifactResp === null || getArtifactResp === void 0 ? void 0 : getArtifactResp.headers) === null || _a === void 0 ? void 0 : _a["x-github-request-id"]})`); + throw new errors_1.InvalidResponseError(`Invalid response from GitHub API: ${getArtifactResp.status} (${(_a2 = getArtifactResp === null || getArtifactResp === void 0 ? void 0 : getArtifactResp.headers) === null || _a2 === void 0 ? void 0 : _a2["x-github-request-id"]})`); } if (getArtifactResp.data.artifacts.length === 0) { throw new errors_1.ArtifactNotFoundError(`Artifact not found for name: ${artifactName} @@ -121426,7 +121746,7 @@ var require_get_artifact = __commonJS({ exports2.getArtifactPublic = getArtifactPublic; function getArtifactInternal(artifactName) { return __awaiter2(this, void 0, void 0, function* () { - var _a; + var _a2; const artifactClient = (0, artifact_twirp_client_1.internalArtifactTwirpClient)(); const { workflowRunBackendId, workflowJobRunBackendId } = (0, util_1.getBackendIdsFromToken)(); const req = { @@ -121451,7 +121771,7 @@ var require_get_artifact = __commonJS({ id: Number(artifact2.databaseId), size: Number(artifact2.size), createdAt: artifact2.createdAt ? generated_1.Timestamp.toDate(artifact2.createdAt) : void 0, - digest: (_a = artifact2.digest) === null || _a === void 0 ? void 0 : _a.value + digest: (_a2 = artifact2.digest) === null || _a2 === void 0 ? void 0 : _a2.value } }; }); @@ -121466,11 +121786,11 @@ var require_delete_artifact = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -121486,7 +121806,7 @@ var require_delete_artifact = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -121507,7 +121827,7 @@ var require_delete_artifact = __commonJS({ var errors_1 = require_errors3(); function deleteArtifactPublic(artifactName, workflowRunId, repositoryOwner, repositoryName, token) { return __awaiter2(this, void 0, void 0, function* () { - var _a; + var _a2; const [retryOpts, requestOpts] = (0, retry_options_1.getRetryOptions)(utils_1.defaults); const opts = { log: void 0, @@ -121524,7 +121844,7 @@ var require_delete_artifact = __commonJS({ artifact_id: getArtifactResp.artifact.id }); if (deleteArtifactResp.status !== 204) { - throw new errors_1.InvalidResponseError(`Invalid response from GitHub API: ${deleteArtifactResp.status} (${(_a = deleteArtifactResp === null || deleteArtifactResp === void 0 ? void 0 : deleteArtifactResp.headers) === null || _a === void 0 ? void 0 : _a["x-github-request-id"]})`); + throw new errors_1.InvalidResponseError(`Invalid response from GitHub API: ${deleteArtifactResp.status} (${(_a2 = deleteArtifactResp === null || deleteArtifactResp === void 0 ? void 0 : deleteArtifactResp.headers) === null || _a2 === void 0 ? void 0 : _a2["x-github-request-id"]})`); } return { id: getArtifactResp.artifact.id @@ -121572,11 +121892,11 @@ var require_list_artifacts = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -121592,7 +121912,7 @@ var require_list_artifacts = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -121689,13 +122009,13 @@ var require_list_artifacts = __commonJS({ }; const res = yield artifactClient.ListArtifacts(req); let artifacts = res.artifacts.map((artifact2) => { - var _a; + var _a2; return { name: artifact2.name, id: Number(artifact2.databaseId), size: Number(artifact2.size), createdAt: artifact2.createdAt ? generated_1.Timestamp.toDate(artifact2.createdAt) : void 0, - digest: (_a = artifact2.digest) === null || _a === void 0 ? void 0 : _a.value + digest: (_a2 = artifact2.digest) === null || _a2 === void 0 ? void 0 : _a2.value }; }); if (latest) { @@ -121729,11 +122049,11 @@ var require_client2 = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -121749,7 +122069,7 @@ var require_client2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -122072,7 +122392,7 @@ var require_file_command2 = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0; var crypto3 = __importStar2(require("crypto")); - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var os7 = __importStar2(require("os")); var utils_1 = require_utils10(); function issueFileCommand(command, message) { @@ -122080,10 +122400,10 @@ var require_file_command2 = __commonJS({ if (!filePath) { throw new Error(`Unable to find environment variable for file command ${command}`); } - if (!fs30.existsSync(filePath)) { + if (!fs31.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs30.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os7.EOL}`, { + fs31.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os7.EOL}`, { encoding: "utf8" }); } @@ -122124,7 +122444,7 @@ var require_proxy3 = __commonJS({ if (proxyVar) { try { return new DecodedURL(proxyVar); - } catch (_a) { + } catch (_a2) { if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) return new DecodedURL(`http://${proxyVar}`); } @@ -122218,11 +122538,11 @@ var require_lib5 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -122238,7 +122558,7 @@ var require_lib5 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -122324,26 +122644,26 @@ var require_lib5 = __commonJS({ } readBody() { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14) => __awaiter2(this, void 0, void 0, function* () { let output = Buffer.alloc(0); this.message.on("data", (chunk) => { output = Buffer.concat([output, chunk]); }); this.message.on("end", () => { - resolve13(output.toString()); + resolve14(output.toString()); }); })); }); } readBodyBuffer() { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14) => __awaiter2(this, void 0, void 0, function* () { const chunks = []; this.message.on("data", (chunk) => { chunks.push(chunk); }); this.message.on("end", () => { - resolve13(Buffer.concat(chunks)); + resolve14(Buffer.concat(chunks)); }); })); }); @@ -122552,14 +122872,14 @@ var require_lib5 = __commonJS({ */ requestRaw(info8, data) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { function callbackForResult(err, res) { if (err) { reject(err); } else if (!res) { reject(new Error("Unknown error")); } else { - resolve13(res); + resolve14(res); } } this.requestRawWithCallback(info8, data, callbackForResult); @@ -122741,12 +123061,12 @@ var require_lib5 = __commonJS({ return __awaiter2(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise((resolve13) => setTimeout(() => resolve13(), ms)); + return new Promise((resolve14) => setTimeout(() => resolve14(), ms)); }); } _processResponse(res, options) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14, reject) => __awaiter2(this, void 0, void 0, function* () { const statusCode = res.message.statusCode || 0; const response = { statusCode, @@ -122754,7 +123074,7 @@ var require_lib5 = __commonJS({ headers: {} }; if (statusCode === HttpCodes.NotFound) { - resolve13(response); + resolve14(response); } function dateTimeDeserializer(key, value) { if (typeof value === "string") { @@ -122793,7 +123113,7 @@ var require_lib5 = __commonJS({ err.result = response.result; reject(err); } else { - resolve13(response); + resolve14(response); } })); }); @@ -122810,11 +123130,11 @@ var require_auth2 = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -122830,7 +123150,7 @@ var require_auth2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -122914,11 +123234,11 @@ var require_oidc_utils2 = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -122934,7 +123254,7 @@ var require_oidc_utils2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -122967,7 +123287,7 @@ var require_oidc_utils2 = __commonJS({ return runtimeUrl; } static getCall(id_token_url) { - var _a; + var _a2; return __awaiter2(this, void 0, void 0, function* () { const httpclient = _OidcClient.createHttpClient(); const res = yield httpclient.getJson(id_token_url).catch((error3) => { @@ -122977,7 +123297,7 @@ var require_oidc_utils2 = __commonJS({ Error Message: ${error3.message}`); }); - const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; + const id_token = (_a2 = res.result) === null || _a2 === void 0 ? void 0 : _a2.value; if (!id_token) { throw new Error("Response json body do not have ID Token field"); } @@ -123012,11 +123332,11 @@ var require_summary2 = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -123032,7 +123352,7 @@ var require_summary2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -123065,7 +123385,7 @@ var require_summary2 = __commonJS({ } try { yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); - } catch (_a) { + } catch (_a2) { throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); } this._filePath = pathFromEnv; @@ -123333,7 +123653,7 @@ var require_path_utils2 = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.toPlatformPath = exports2.toWin32Path = exports2.toPosixPath = void 0; - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); function toPosixPath(pth) { return pth.replace(/[\\]/g, "/"); } @@ -123343,7 +123663,7 @@ var require_path_utils2 = __commonJS({ } exports2.toWin32Path = toWin32Path; function toPlatformPath(pth) { - return pth.replace(/[/\\]/g, path28.sep); + return pth.replace(/[/\\]/g, path29.sep); } exports2.toPlatformPath = toPlatformPath; } @@ -123378,11 +123698,11 @@ var require_io_util2 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -123398,20 +123718,20 @@ var require_io_util2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var _a; + var _a2; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getCmdPath = exports2.tryGetExecutablePath = exports2.isRooted = exports2.isDirectory = exports2.exists = exports2.READONLY = exports2.UV_FS_O_EXLOCK = exports2.IS_WINDOWS = exports2.unlink = exports2.symlink = exports2.stat = exports2.rmdir = exports2.rm = exports2.rename = exports2.readlink = exports2.readdir = exports2.open = exports2.mkdir = exports2.lstat = exports2.copyFile = exports2.chmod = void 0; - var fs30 = __importStar2(require("fs")); - var path28 = __importStar2(require("path")); - _a = fs30.promises, exports2.chmod = _a.chmod, exports2.copyFile = _a.copyFile, exports2.lstat = _a.lstat, exports2.mkdir = _a.mkdir, exports2.open = _a.open, exports2.readdir = _a.readdir, exports2.readlink = _a.readlink, exports2.rename = _a.rename, exports2.rm = _a.rm, exports2.rmdir = _a.rmdir, exports2.stat = _a.stat, exports2.symlink = _a.symlink, exports2.unlink = _a.unlink; + var fs31 = __importStar2(require("fs")); + var path29 = __importStar2(require("path")); + _a2 = fs31.promises, exports2.chmod = _a2.chmod, exports2.copyFile = _a2.copyFile, exports2.lstat = _a2.lstat, exports2.mkdir = _a2.mkdir, exports2.open = _a2.open, exports2.readdir = _a2.readdir, exports2.readlink = _a2.readlink, exports2.rename = _a2.rename, exports2.rm = _a2.rm, exports2.rmdir = _a2.rmdir, exports2.stat = _a2.stat, exports2.symlink = _a2.symlink, exports2.unlink = _a2.unlink; exports2.IS_WINDOWS = process.platform === "win32"; exports2.UV_FS_O_EXLOCK = 268435456; - exports2.READONLY = fs30.constants.O_RDONLY; + exports2.READONLY = fs31.constants.O_RDONLY; function exists(fsPath) { return __awaiter2(this, void 0, void 0, function* () { try { @@ -123456,7 +123776,7 @@ var require_io_util2 = __commonJS({ } if (stats && stats.isFile()) { if (exports2.IS_WINDOWS) { - const upperExt = path28.extname(filePath).toUpperCase(); + const upperExt = path29.extname(filePath).toUpperCase(); if (extensions.some((validExt) => validExt.toUpperCase() === upperExt)) { return filePath; } @@ -123480,11 +123800,11 @@ var require_io_util2 = __commonJS({ if (stats && stats.isFile()) { if (exports2.IS_WINDOWS) { try { - const directory = path28.dirname(filePath); - const upperName = path28.basename(filePath).toUpperCase(); + const directory = path29.dirname(filePath); + const upperName = path29.basename(filePath).toUpperCase(); for (const actualName of yield exports2.readdir(directory)) { if (upperName === actualName.toUpperCase()) { - filePath = path28.join(directory, actualName); + filePath = path29.join(directory, actualName); break; } } @@ -123515,8 +123835,8 @@ var require_io_util2 = __commonJS({ return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid(); } function getCmdPath() { - var _a2; - return (_a2 = process.env["COMSPEC"]) !== null && _a2 !== void 0 ? _a2 : `cmd.exe`; + var _a3; + return (_a3 = process.env["COMSPEC"]) !== null && _a3 !== void 0 ? _a3 : `cmd.exe`; } exports2.getCmdPath = getCmdPath; } @@ -123551,11 +123871,11 @@ var require_io2 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -123571,7 +123891,7 @@ var require_io2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -123579,7 +123899,7 @@ var require_io2 = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.findInPath = exports2.which = exports2.mkdirP = exports2.rmRF = exports2.mv = exports2.cp = void 0; var assert_1 = require("assert"); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var ioUtil = __importStar2(require_io_util2()); function cp(source, dest, options = {}) { return __awaiter2(this, void 0, void 0, function* () { @@ -123588,7 +123908,7 @@ var require_io2 = __commonJS({ if (destStat && destStat.isFile() && !force) { return; } - const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path28.join(dest, path28.basename(source)) : dest; + const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path29.join(dest, path29.basename(source)) : dest; if (!(yield ioUtil.exists(source))) { throw new Error(`no such file or directory: ${source}`); } @@ -123600,7 +123920,7 @@ var require_io2 = __commonJS({ yield cpDirRecursive(source, newDest, 0, force); } } else { - if (path28.relative(source, newDest) === "") { + if (path29.relative(source, newDest) === "") { throw new Error(`'${newDest}' and '${source}' are the same file`); } yield copyFile2(source, newDest, force); @@ -123613,7 +123933,7 @@ var require_io2 = __commonJS({ if (yield ioUtil.exists(dest)) { let destExists = true; if (yield ioUtil.isDirectory(dest)) { - dest = path28.join(dest, path28.basename(source)); + dest = path29.join(dest, path29.basename(source)); destExists = yield ioUtil.exists(dest); } if (destExists) { @@ -123624,7 +123944,7 @@ var require_io2 = __commonJS({ } } } - yield mkdirP(path28.dirname(dest)); + yield mkdirP(path29.dirname(dest)); yield ioUtil.rename(source, dest); }); } @@ -123687,7 +124007,7 @@ var require_io2 = __commonJS({ } const extensions = []; if (ioUtil.IS_WINDOWS && process.env["PATHEXT"]) { - for (const extension of process.env["PATHEXT"].split(path28.delimiter)) { + for (const extension of process.env["PATHEXT"].split(path29.delimiter)) { if (extension) { extensions.push(extension); } @@ -123700,12 +124020,12 @@ var require_io2 = __commonJS({ } return []; } - if (tool.includes(path28.sep)) { + if (tool.includes(path29.sep)) { return []; } const directories = []; if (process.env.PATH) { - for (const p of process.env.PATH.split(path28.delimiter)) { + for (const p of process.env.PATH.split(path29.delimiter)) { if (p) { directories.push(p); } @@ -123713,7 +124033,7 @@ var require_io2 = __commonJS({ } const matches = []; for (const directory of directories) { - const filePath = yield ioUtil.tryGetExecutablePath(path28.join(directory, tool), extensions); + const filePath = yield ioUtil.tryGetExecutablePath(path29.join(directory, tool), extensions); if (filePath) { matches.push(filePath); } @@ -123799,11 +124119,11 @@ var require_toolrunner2 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -123819,7 +124139,7 @@ var require_toolrunner2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -123829,7 +124149,7 @@ var require_toolrunner2 = __commonJS({ var os7 = __importStar2(require("os")); var events = __importStar2(require("events")); var child = __importStar2(require("child_process")); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var io9 = __importStar2(require_io2()); var ioUtil = __importStar2(require_io_util2()); var timers_1 = require("timers"); @@ -124044,10 +124364,10 @@ var require_toolrunner2 = __commonJS({ exec() { return __awaiter2(this, void 0, void 0, function* () { if (!ioUtil.isRooted(this.toolPath) && (this.toolPath.includes("/") || IS_WINDOWS && this.toolPath.includes("\\"))) { - this.toolPath = path28.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + this.toolPath = path29.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); } this.toolPath = yield io9.which(this.toolPath, true); - return new Promise((resolve13, reject) => __awaiter2(this, void 0, void 0, function* () { + return new Promise((resolve14, reject) => __awaiter2(this, void 0, void 0, function* () { this._debug(`exec tool: ${this.toolPath}`); this._debug("arguments:"); for (const arg of this.args) { @@ -124130,7 +124450,7 @@ var require_toolrunner2 = __commonJS({ if (error3) { reject(error3); } else { - resolve13(exitCode); + resolve14(exitCode); } }); if (this.options.input) { @@ -124283,11 +124603,11 @@ var require_exec2 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -124303,7 +124623,7 @@ var require_exec2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -124326,13 +124646,13 @@ var require_exec2 = __commonJS({ } exports2.exec = exec3; function getExecOutput(commandLine, args, options) { - var _a, _b; + var _a2, _b; return __awaiter2(this, void 0, void 0, function* () { let stdout = ""; let stderr = ""; const stdoutDecoder = new string_decoder_1.StringDecoder("utf8"); const stderrDecoder = new string_decoder_1.StringDecoder("utf8"); - const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; + const originalStdoutListener = (_a2 = options === null || options === void 0 ? void 0 : options.listeners) === null || _a2 === void 0 ? void 0 : _a2.stdout; const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; const stdErrListener = (data) => { stderr += stderrDecoder.write(data); @@ -124394,11 +124714,11 @@ var require_platform2 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -124414,7 +124734,7 @@ var require_platform2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -124439,11 +124759,11 @@ var require_platform2 = __commonJS({ }; }); var getMacOsInfo = () => __awaiter2(void 0, void 0, void 0, function* () { - var _a, _b, _c, _d; + var _a2, _b, _c, _d; const { stdout } = yield exec3.getExecOutput("sw_vers", void 0, { silent: true }); - const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ""; + const version = (_b = (_a2 = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a2 === void 0 ? void 0 : _a2[1]) !== null && _b !== void 0 ? _b : ""; const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ""; return { name, @@ -124513,11 +124833,11 @@ var require_core4 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -124533,7 +124853,7 @@ var require_core4 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -124544,7 +124864,7 @@ var require_core4 = __commonJS({ var file_command_1 = require_file_command2(); var utils_1 = require_utils10(); var os7 = __importStar2(require("os")); - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); var oidc_utils_1 = require_oidc_utils2(); var ExitCode; (function(ExitCode2) { @@ -124572,7 +124892,7 @@ var require_core4 = __commonJS({ } else { (0, command_1.issueCommand)("add-path", {}, inputPath); } - process.env["PATH"] = `${inputPath}${path28.delimiter}${process.env["PATH"]}`; + process.env["PATH"] = `${inputPath}${path29.delimiter}${process.env["PATH"]}`; } exports2.addPath = addPath2; function getInput2(name, options) { @@ -124748,13 +125068,13 @@ These characters are not allowed in the artifact name due to limitations with ce (0, core_1.info)(`Artifact name is valid!`); } exports2.checkArtifactName = checkArtifactName; - function checkArtifactFilePath(path28) { - if (!path28) { - throw new Error(`Artifact path: ${path28}, is incorrectly provided`); + function checkArtifactFilePath(path29) { + if (!path29) { + throw new Error(`Artifact path: ${path29}, is incorrectly provided`); } for (const [invalidCharacterKey, errorMessageForCharacter] of invalidArtifactFilePathCharacters) { - if (path28.includes(invalidCharacterKey)) { - throw new Error(`Artifact path is not valid: ${path28}. Contains the following character: ${errorMessageForCharacter} + if (path29.includes(invalidCharacterKey)) { + throw new Error(`Artifact path is not valid: ${path29}. Contains the following character: ${errorMessageForCharacter} Invalid characters include: ${Array.from(invalidArtifactFilePathCharacters.values()).toString()} @@ -124800,25 +125120,25 @@ var require_upload_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getUploadSpecification = void 0; - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var core_1 = require_core4(); var path_1 = require("path"); var path_and_artifact_name_validation_1 = require_path_and_artifact_name_validation2(); function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { const specifications = []; - if (!fs30.existsSync(rootDirectory)) { + if (!fs31.existsSync(rootDirectory)) { throw new Error(`Provided rootDirectory ${rootDirectory} does not exist`); } - if (!fs30.statSync(rootDirectory).isDirectory()) { + if (!fs31.statSync(rootDirectory).isDirectory()) { throw new Error(`Provided rootDirectory ${rootDirectory} is not a valid directory`); } rootDirectory = (0, path_1.normalize)(rootDirectory); rootDirectory = (0, path_1.resolve)(rootDirectory); for (let file of artifactFiles) { - if (!fs30.existsSync(file)) { + if (!fs31.existsSync(file)) { throw new Error(`File ${file} does not exist`); } - if (!fs30.statSync(file).isDirectory()) { + if (!fs31.statSync(file).isDirectory()) { file = (0, path_1.normalize)(file); file = (0, path_1.resolve)(file); if (!file.startsWith(rootDirectory)) { @@ -124843,11 +125163,11 @@ var require_upload_specification = __commonJS({ // node_modules/tmp/lib/tmp.js var require_tmp = __commonJS({ "node_modules/tmp/lib/tmp.js"(exports2, module2) { - var fs30 = require("fs"); + var fs31 = require("fs"); var os7 = require("os"); - var path28 = require("path"); + var path29 = require("path"); var crypto3 = require("crypto"); - var _c = { fs: fs30.constants, os: os7.constants }; + var _c = { fs: fs31.constants, os: os7.constants }; var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; var TEMPLATE_PATTERN = /XXXXXX/; var DEFAULT_TRIES = 3; @@ -124859,13 +125179,13 @@ var require_tmp = __commonJS({ var FILE_MODE = 384; var EXIT = "exit"; var _removeObjects = []; - var FN_RMDIR_SYNC = fs30.rmdirSync.bind(fs30); + var FN_RMDIR_SYNC = fs31.rmdirSync.bind(fs31); var _gracefulCleanup = false; function rimraf(dirPath, callback) { - return fs30.rm(dirPath, { recursive: true }, callback); + return fs31.rm(dirPath, { recursive: true }, callback); } function FN_RIMRAF_SYNC(dirPath) { - return fs30.rmSync(dirPath, { recursive: true }); + return fs31.rmSync(dirPath, { recursive: true }); } function tmpName(options, callback) { const args = _parseArguments(options, callback), opts = args[0], cb = args[1]; @@ -124875,7 +125195,7 @@ var require_tmp = __commonJS({ (function _getUniqueName() { try { const name = _generateTmpName(sanitizedOptions); - fs30.stat(name, function(err2) { + fs31.stat(name, function(err2) { if (!err2) { if (tries-- > 0) return _getUniqueName(); return cb(new Error("Could not get a unique tmp filename, max tries reached " + name)); @@ -124895,7 +125215,7 @@ var require_tmp = __commonJS({ do { const name = _generateTmpName(sanitizedOptions); try { - fs30.statSync(name); + fs31.statSync(name); } catch (e) { return name; } @@ -124906,10 +125226,10 @@ var require_tmp = __commonJS({ const args = _parseArguments(options, callback), opts = args[0], cb = args[1]; tmpName(opts, function _tmpNameCreated(err, name) { if (err) return cb(err); - fs30.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) { + fs31.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) { if (err2) return cb(err2); if (opts.discardDescriptor) { - return fs30.close(fd, function _discardCallback(possibleErr) { + return fs31.close(fd, function _discardCallback(possibleErr) { return cb(possibleErr, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts, false)); }); } else { @@ -124923,9 +125243,9 @@ var require_tmp = __commonJS({ const args = _parseArguments(options), opts = args[0]; const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor; const name = tmpNameSync(opts); - let fd = fs30.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE); + let fd = fs31.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE); if (opts.discardDescriptor) { - fs30.closeSync(fd); + fs31.closeSync(fd); fd = void 0; } return { @@ -124938,7 +125258,7 @@ var require_tmp = __commonJS({ const args = _parseArguments(options, callback), opts = args[0], cb = args[1]; tmpName(opts, function _tmpNameCreated(err, name) { if (err) return cb(err); - fs30.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) { + fs31.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) { if (err2) return cb(err2); cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false)); }); @@ -124947,7 +125267,7 @@ var require_tmp = __commonJS({ function dirSync(options) { const args = _parseArguments(options), opts = args[0]; const name = tmpNameSync(opts); - fs30.mkdirSync(name, opts.mode || DIR_MODE); + fs31.mkdirSync(name, opts.mode || DIR_MODE); return { name, removeCallback: _prepareTmpDirRemoveCallback(name, opts, true) @@ -124961,20 +125281,20 @@ var require_tmp = __commonJS({ next(); }; if (0 <= fdPath[0]) - fs30.close(fdPath[0], function() { - fs30.unlink(fdPath[1], _handler); + fs31.close(fdPath[0], function() { + fs31.unlink(fdPath[1], _handler); }); - else fs30.unlink(fdPath[1], _handler); + else fs31.unlink(fdPath[1], _handler); } function _removeFileSync(fdPath) { let rethrownException = null; try { - if (0 <= fdPath[0]) fs30.closeSync(fdPath[0]); + if (0 <= fdPath[0]) fs31.closeSync(fdPath[0]); } catch (e) { if (!_isEBADF(e) && !_isENOENT(e)) throw e; } finally { try { - fs30.unlinkSync(fdPath[1]); + fs31.unlinkSync(fdPath[1]); } catch (e) { if (!_isENOENT(e)) rethrownException = e; } @@ -124990,7 +125310,7 @@ var require_tmp = __commonJS({ return sync ? removeCallbackSync : removeCallback; } function _prepareTmpDirRemoveCallback(name, opts, sync) { - const removeFunction = opts.unsafeCleanup ? rimraf : fs30.rmdir.bind(fs30); + const removeFunction = opts.unsafeCleanup ? rimraf : fs31.rmdir.bind(fs31); const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC; const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync); const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync); @@ -125002,8 +125322,8 @@ var require_tmp = __commonJS({ return function _cleanupCallback(next) { if (!called) { const toRemove = cleanupCallbackSync || _cleanupCallback; - const index = _removeObjects.indexOf(toRemove); - if (index >= 0) _removeObjects.splice(index, 1); + const index2 = _removeObjects.indexOf(toRemove); + if (index2 >= 0) _removeObjects.splice(index2, 1); called = true; if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) { return removeFunction(fileOrDirName); @@ -125052,35 +125372,35 @@ var require_tmp = __commonJS({ return [actualOptions, callback]; } function _resolvePath(name, tmpDir, cb) { - const pathToResolve = path28.isAbsolute(name) ? name : path28.join(tmpDir, name); - fs30.stat(pathToResolve, function(err) { + const pathToResolve = path29.isAbsolute(name) ? name : path29.join(tmpDir, name); + fs31.stat(pathToResolve, function(err) { if (err) { - fs30.realpath(path28.dirname(pathToResolve), function(err2, parentDir) { + fs31.realpath(path29.dirname(pathToResolve), function(err2, parentDir) { if (err2) return cb(err2); - cb(null, path28.join(parentDir, path28.basename(pathToResolve))); + cb(null, path29.join(parentDir, path29.basename(pathToResolve))); }); } else { - fs30.realpath(pathToResolve, cb); + fs31.realpath(pathToResolve, cb); } }); } function _resolvePathSync(name, tmpDir) { - const pathToResolve = path28.isAbsolute(name) ? name : path28.join(tmpDir, name); + const pathToResolve = path29.isAbsolute(name) ? name : path29.join(tmpDir, name); try { - fs30.statSync(pathToResolve); - return fs30.realpathSync(pathToResolve); + fs31.statSync(pathToResolve); + return fs31.realpathSync(pathToResolve); } catch (_err) { - const parentDir = fs30.realpathSync(path28.dirname(pathToResolve)); - return path28.join(parentDir, path28.basename(pathToResolve)); + const parentDir = fs31.realpathSync(path29.dirname(pathToResolve)); + return path29.join(parentDir, path29.basename(pathToResolve)); } } function _generateTmpName(opts) { const tmpDir = opts.tmpdir; if (!_isUndefined(opts.name)) { - return path28.join(tmpDir, opts.dir, opts.name); + return path29.join(tmpDir, opts.dir, opts.name); } if (!_isUndefined(opts.template)) { - return path28.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6)); + return path29.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6)); } const name = [ opts.prefix ? opts.prefix : "tmp", @@ -125090,7 +125410,7 @@ var require_tmp = __commonJS({ _randomChars(12), opts.postfix ? "-" + opts.postfix : "" ].join(""); - return path28.join(tmpDir, opts.dir, name); + return path29.join(tmpDir, opts.dir, name); } function _assertPath(option, value) { if (typeof value !== "string") { @@ -125104,8 +125424,8 @@ var require_tmp = __commonJS({ function _assertOptionsBase(options) { if (!_isUndefined(options.name)) { const name = options.name; - if (path28.isAbsolute(name)) throw new Error(`name option must not contain an absolute path, found "${name}".`); - const basename2 = path28.basename(name); + if (path29.isAbsolute(name)) throw new Error(`name option must not contain an absolute path, found "${name}".`); + const basename2 = path29.basename(name); if (basename2 === ".." || basename2 === "." || basename2 !== name) { throw new Error(`name option must not contain a path, found "${name}".`); } @@ -125134,21 +125454,21 @@ var require_tmp = __commonJS({ if (_isUndefined(name)) return cb(null); _resolvePath(name, tmpDir, function(err, resolvedPath) { if (err) return cb(err); - const relativePath = path28.relative(tmpDir, resolvedPath); - if (relativePath.startsWith("..") || path28.isAbsolute(relativePath)) { - return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`)); + const relativePath2 = path29.relative(tmpDir, resolvedPath); + if (relativePath2.startsWith("..") || path29.isAbsolute(relativePath2)) { + return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath2}".`)); } - cb(null, relativePath); + cb(null, relativePath2); }); } function _getRelativePathSync(option, name, tmpDir) { if (_isUndefined(name)) return; const resolvedPath = _resolvePathSync(name, tmpDir); - const relativePath = path28.relative(tmpDir, resolvedPath); - if (relativePath.startsWith("..") || path28.isAbsolute(relativePath)) { - throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`); + const relativePath2 = path29.relative(tmpDir, resolvedPath); + if (relativePath2.startsWith("..") || path29.isAbsolute(relativePath2)) { + throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath2}".`); } - return relativePath; + return relativePath2; } function _assertAndSanitizeOptions(options, cb) { _getTmpDir(options, function(err, tmpDir) { @@ -125191,10 +125511,10 @@ var require_tmp = __commonJS({ _gracefulCleanup = true; } function _getTmpDir(options, cb) { - return fs30.realpath(options && options.tmpdir || os7.tmpdir(), cb); + return fs31.realpath(options && options.tmpdir || os7.tmpdir(), cb); } function _getTmpDirSync(options) { - return fs30.realpathSync(options && options.tmpdir || os7.tmpdir()); + return fs31.realpathSync(options && options.tmpdir || os7.tmpdir()); } process.addListener(EXIT, _garbageCollector); Object.defineProperty(module2.exports, "tmpdir", { @@ -125224,14 +125544,14 @@ var require_tmp_promise = __commonJS({ var fileWithOptions = promisify( (options, cb) => tmp.file( options, - (err, path28, fd, cleanup) => err ? cb(err) : cb(void 0, { path: path28, fd, cleanup: promisify(cleanup) }) + (err, path29, fd, cleanup) => err ? cb(err) : cb(void 0, { path: path29, fd, cleanup: promisify(cleanup) }) ) ); module2.exports.file = async (options) => fileWithOptions(options); module2.exports.withFile = async function withFile(fn, options) { - const { path: path28, fd, cleanup } = await module2.exports.file(options); + const { path: path29, fd, cleanup } = await module2.exports.file(options); try { - return await fn({ path: path28, fd }); + return await fn({ path: path29, fd }); } finally { await cleanup(); } @@ -125240,14 +125560,14 @@ var require_tmp_promise = __commonJS({ var dirWithOptions = promisify( (options, cb) => tmp.dir( options, - (err, path28, cleanup) => err ? cb(err) : cb(void 0, { path: path28, cleanup: promisify(cleanup) }) + (err, path29, cleanup) => err ? cb(err) : cb(void 0, { path: path29, cleanup: promisify(cleanup) }) ) ); module2.exports.dir = async (options) => dirWithOptions(options); module2.exports.withDir = async function withDir(fn, options) { - const { path: path28, cleanup } = await module2.exports.dir(options); + const { path: path29, cleanup } = await module2.exports.dir(options); try { - return await fn({ path: path28 }); + return await fn({ path: path29 }); } finally { await cleanup(); } @@ -125636,11 +125956,11 @@ var require_utils11 = __commonJS({ "use strict"; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -125656,7 +125976,7 @@ var require_utils11 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -125866,19 +126186,19 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} exports2.getProperRetention = getProperRetention; function sleep(milliseconds) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => setTimeout(resolve13, milliseconds)); + return new Promise((resolve14) => setTimeout(resolve14, milliseconds)); }); } exports2.sleep = sleep; function digestForStream(stream2) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13, reject) => { + return new Promise((resolve14, reject) => { const crc64 = new crc64_1.default(); const md5 = crypto_1.default.createHash("md5"); stream2.on("data", (data) => { crc64.update(data); md5.update(data); - }).on("end", () => resolve13({ + }).on("end", () => resolve14({ crc64: crc64.digest("base64"), md5: md5.digest("base64") })).on("error", reject); @@ -125950,18 +126270,18 @@ var require_http_manager = __commonJS({ this.userAgent = userAgent2; this.clients = new Array(clientCount).fill((0, utils_1.createHttpClient)(userAgent2)); } - getClient(index) { - return this.clients[index]; + getClient(index2) { + return this.clients[index2]; } // client disposal is necessary if a keep-alive connection is used to properly close the connection // for more information see: https://github.com/actions/http-client/blob/04e5ad73cd3fd1f5610a32116b0759eddf6570d2/index.ts#L292 - disposeAndReplaceClient(index) { - this.clients[index].dispose(); - this.clients[index] = (0, utils_1.createHttpClient)(this.userAgent); + disposeAndReplaceClient(index2) { + this.clients[index2].dispose(); + this.clients[index2] = (0, utils_1.createHttpClient)(this.userAgent); } disposeAndReplaceAllClients() { - for (const [index] of this.clients.entries()) { - this.disposeAndReplaceClient(index); + for (const [index2] of this.clients.entries()) { + this.disposeAndReplaceClient(index2); } } }; @@ -126002,11 +126322,11 @@ var require_upload_gzip = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -126022,7 +126342,7 @@ var require_upload_gzip = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -126035,23 +126355,23 @@ var require_upload_gzip = __commonJS({ }, i); function verb(n) { i[n] = o[n] && function(v) { - return new Promise(function(resolve13, reject) { - v = o[n](v), settle(resolve13, reject, v.done, v.value); + return new Promise(function(resolve14, reject) { + v = o[n](v), settle(resolve14, reject, v.done, v.value); }); }; } - function settle(resolve13, reject, d, v) { + function settle(resolve14, reject, d, v) { Promise.resolve(v).then(function(v2) { - resolve13({ value: v2, done: d }); + resolve14({ value: v2, done: d }); }, reject); } }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.createGZipFileInBuffer = exports2.createGZipFileOnDisk = void 0; - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var zlib3 = __importStar2(require("zlib")); var util_1 = require("util"); - var stat = (0, util_1.promisify)(fs30.stat); + var stat2 = (0, util_1.promisify)(fs31.stat); var gzipExemptFileExtensions = [ ".gz", ".gzip", @@ -126083,14 +126403,14 @@ var require_upload_gzip = __commonJS({ return Number.MAX_SAFE_INTEGER; } } - return new Promise((resolve13, reject) => { - const inputStream = fs30.createReadStream(originalFilePath); + return new Promise((resolve14, reject) => { + const inputStream = fs31.createReadStream(originalFilePath); const gzip = zlib3.createGzip(); - const outputStream = fs30.createWriteStream(tempFilePath); + const outputStream = fs31.createWriteStream(tempFilePath); inputStream.pipe(gzip).pipe(outputStream); outputStream.on("finish", () => __awaiter2(this, void 0, void 0, function* () { - const size = (yield stat(tempFilePath)).size; - resolve13(size); + const size = (yield stat2(tempFilePath)).size; + resolve14(size); })); outputStream.on("error", (error3) => { console.log(error3); @@ -126102,14 +126422,14 @@ var require_upload_gzip = __commonJS({ exports2.createGZipFileOnDisk = createGZipFileOnDisk; function createGZipFileInBuffer(originalFilePath) { return __awaiter2(this, void 0, void 0, function* () { - return new Promise((resolve13) => __awaiter2(this, void 0, void 0, function* () { - var _a, e_1, _b, _c; - const inputStream = fs30.createReadStream(originalFilePath); + return new Promise((resolve14) => __awaiter2(this, void 0, void 0, function* () { + var _a2, e_1, _b, _c; + const inputStream = fs31.createReadStream(originalFilePath); const gzip = zlib3.createGzip(); inputStream.pipe(gzip); const chunks = []; try { - for (var _d = true, gzip_1 = __asyncValues2(gzip), gzip_1_1; gzip_1_1 = yield gzip_1.next(), _a = gzip_1_1.done, !_a; ) { + for (var _d = true, gzip_1 = __asyncValues2(gzip), gzip_1_1; gzip_1_1 = yield gzip_1.next(), _a2 = gzip_1_1.done, !_a2; ) { _c = gzip_1_1.value; _d = false; try { @@ -126123,12 +126443,12 @@ var require_upload_gzip = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (!_d && !_a && (_b = gzip_1.return)) yield _b.call(gzip_1); + if (!_d && !_a2 && (_b = gzip_1.return)) yield _b.call(gzip_1); } finally { if (e_1) throw e_1.error; } } - resolve13(Buffer.concat(chunks)); + resolve14(Buffer.concat(chunks)); })); }); } @@ -126169,11 +126489,11 @@ var require_requestUtils2 = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -126189,7 +126509,7 @@ var require_requestUtils2 = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -126286,11 +126606,11 @@ var require_upload_http_client = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -126306,14 +126626,14 @@ var require_upload_http_client = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.UploadHttpClient = void 0; - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var core30 = __importStar2(require_core4()); var tmp = __importStar2(require_tmp_promise()); var stream2 = __importStar2(require("stream")); @@ -126327,7 +126647,7 @@ var require_upload_http_client = __commonJS({ var http_manager_1 = require_http_manager(); var upload_gzip_1 = require_upload_gzip(); var requestUtils_1 = require_requestUtils2(); - var stat = (0, util_1.promisify)(fs30.stat); + var stat2 = (0, util_1.promisify)(fs31.stat); var UploadHttpClient = class { constructor() { this.uploadHttpManager = new http_manager_1.HttpManager((0, config_variables_1.getUploadFileConcurrency)(), "@actions/artifact-upload"); @@ -126406,7 +126726,7 @@ var require_upload_http_client = __commonJS({ let abortPendingFileUploads = false; this.statusReporter.setTotalNumberOfFilesToProcess(filesToUpload.length); this.statusReporter.start(); - yield Promise.all(parallelUploads.map((index) => __awaiter2(this, void 0, void 0, function* () { + yield Promise.all(parallelUploads.map((index2) => __awaiter2(this, void 0, void 0, function* () { while (currentFile < filesToUpload.length) { const currentFileParameters = parameters[currentFile]; currentFile += 1; @@ -126415,7 +126735,7 @@ var require_upload_http_client = __commonJS({ continue; } const startTime = perf_hooks_1.performance.now(); - const uploadFileResult = yield this.uploadFileAsync(index, currentFileParameters); + const uploadFileResult = yield this.uploadFileAsync(index2, currentFileParameters); if (core30.isDebug()) { core30.debug(`File: ${++completedFiles}/${filesToUpload.length}. ${currentFileParameters.file} took ${(perf_hooks_1.performance.now() - startTime).toFixed(3)} milliseconds to finish upload`); } @@ -126450,7 +126770,7 @@ var require_upload_http_client = __commonJS({ */ uploadFileAsync(httpClientIndex, parameters) { return __awaiter2(this, void 0, void 0, function* () { - const fileStat = yield stat(parameters.file); + const fileStat = yield stat2(parameters.file); const totalFileSize = fileStat.size; const isFIFO = fileStat.isFIFO(); let offset = 0; @@ -126464,7 +126784,7 @@ var require_upload_http_client = __commonJS({ let openUploadStream; if (totalFileSize < buffer.byteLength) { core30.debug(`The gzip file created for ${parameters.file} did not help with reducing the size of the file. The original file will be uploaded as-is`); - openUploadStream = () => fs30.createReadStream(parameters.file); + openUploadStream = () => fs31.createReadStream(parameters.file); isGzip = false; uploadFileSize = totalFileSize; } else { @@ -126510,7 +126830,7 @@ var require_upload_http_client = __commonJS({ failedChunkSizes += chunkSize; continue; } - const result = yield this.uploadChunk(httpClientIndex, parameters.resourceUrl, () => fs30.createReadStream(uploadFilePath, { + const result = yield this.uploadChunk(httpClientIndex, parameters.resourceUrl, () => fs31.createReadStream(uploadFilePath, { start: startChunkIndex, end: endChunkIndex, autoClose: false @@ -126678,11 +126998,11 @@ var require_download_http_client = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -126698,14 +127018,14 @@ var require_download_http_client = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.DownloadHttpClient = void 0; - var fs30 = __importStar2(require("fs")); + var fs31 = __importStar2(require("fs")); var core30 = __importStar2(require_core4()); var zlib3 = __importStar2(require("zlib")); var utils_1 = require_utils11(); @@ -126767,12 +127087,12 @@ var require_download_http_client = __commonJS({ core30.info(`Total number of files that will be downloaded: ${downloadItems.length}`); this.statusReporter.setTotalNumberOfFilesToProcess(downloadItems.length); this.statusReporter.start(); - yield Promise.all(parallelDownloads.map((index) => __awaiter2(this, void 0, void 0, function* () { + yield Promise.all(parallelDownloads.map((index2) => __awaiter2(this, void 0, void 0, function* () { while (currentFile < downloadItems.length) { const currentFileToDownload = downloadItems[currentFile]; currentFile += 1; const startTime = perf_hooks_1.performance.now(); - yield this.downloadIndividualFile(index, currentFileToDownload.sourceLocation, currentFileToDownload.targetPath); + yield this.downloadIndividualFile(index2, currentFileToDownload.sourceLocation, currentFileToDownload.targetPath); if (core30.isDebug()) { core30.debug(`File: ${++downloadedFiles}/${downloadItems.length}. ${currentFileToDownload.targetPath} took ${(perf_hooks_1.performance.now() - startTime).toFixed(3)} milliseconds to finish downloading`); } @@ -126796,7 +127116,7 @@ var require_download_http_client = __commonJS({ return __awaiter2(this, void 0, void 0, function* () { let retryCount = 0; const retryLimit = (0, config_variables_1.getRetryLimit)(); - let destinationStream = fs30.createWriteStream(downloadPath); + let destinationStream = fs31.createWriteStream(downloadPath); const headers = (0, utils_1.getDownloadHeaders)("application/json", true, true); const makeDownloadRequest = () => __awaiter2(this, void 0, void 0, function* () { const client = this.downloadHttpManager.getClient(httpClientIndex); @@ -126831,14 +127151,14 @@ var require_download_http_client = __commonJS({ }; const resetDestinationStream = (fileDownloadPath) => __awaiter2(this, void 0, void 0, function* () { destinationStream.close(); - yield new Promise((resolve13) => { - destinationStream.on("close", resolve13); + yield new Promise((resolve14) => { + destinationStream.on("close", resolve14); if (destinationStream.writableFinished) { - resolve13(); + resolve14(); } }); yield (0, utils_1.rmFile)(fileDownloadPath); - destinationStream = fs30.createWriteStream(fileDownloadPath); + destinationStream = fs31.createWriteStream(fileDownloadPath); }); while (retryCount <= retryLimit) { let response; @@ -126883,7 +127203,7 @@ var require_download_http_client = __commonJS({ */ pipeResponseToFile(response, destinationStream, isGzip) { return __awaiter2(this, void 0, void 0, function* () { - yield new Promise((resolve13, reject) => { + yield new Promise((resolve14, reject) => { if (isGzip) { const gunzip = zlib3.createGunzip(); response.message.on("error", (error3) => { @@ -126896,7 +127216,7 @@ var require_download_http_client = __commonJS({ destinationStream.close(); reject(error3); }).pipe(destinationStream).on("close", () => { - resolve13(); + resolve14(); }).on("error", (error3) => { core30.info(`An error occurred while writing a downloaded file to ${destinationStream.path}`); reject(error3); @@ -126907,7 +127227,7 @@ var require_download_http_client = __commonJS({ destinationStream.close(); reject(error3); }).pipe(destinationStream).on("close", () => { - resolve13(); + resolve14(); }).on("error", (error3) => { core30.info(`An error occurred while writing a downloaded file to ${destinationStream.path}`); reject(error3); @@ -126955,21 +127275,21 @@ var require_download_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getDownloadSpecification = void 0; - var path28 = __importStar2(require("path")); + var path29 = __importStar2(require("path")); function getDownloadSpecification(artifactName, artifactEntries, downloadPath, includeRootDirectory) { const directories = /* @__PURE__ */ new Set(); const specifications = { - rootDownloadLocation: includeRootDirectory ? path28.join(downloadPath, artifactName) : downloadPath, + rootDownloadLocation: includeRootDirectory ? path29.join(downloadPath, artifactName) : downloadPath, directoryStructure: [], emptyFilesToCreate: [], filesToDownload: [] }; for (const entry of artifactEntries) { if (entry.path.startsWith(`${artifactName}/`) || entry.path.startsWith(`${artifactName}\\`)) { - const normalizedPathEntry = path28.normalize(entry.path); - const filePath = path28.join(downloadPath, includeRootDirectory ? normalizedPathEntry : normalizedPathEntry.replace(artifactName, "")); + const normalizedPathEntry = path29.normalize(entry.path); + const filePath = path29.join(downloadPath, includeRootDirectory ? normalizedPathEntry : normalizedPathEntry.replace(artifactName, "")); if (entry.itemType === "file") { - directories.add(path28.dirname(filePath)); + directories.add(path29.dirname(filePath)); if (entry.fileLength === 0) { specifications.emptyFilesToCreate.push(filePath); } else { @@ -127021,11 +127341,11 @@ var require_artifact_client = __commonJS({ }; var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve13) { - resolve13(value); + return value instanceof P ? value : new P(function(resolve14) { + resolve14(value); }); } - return new (P || (P = Promise))(function(resolve13, reject) { + return new (P || (P = Promise))(function(resolve14, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -127041,7 +127361,7 @@ var require_artifact_client = __commonJS({ } } function step(result) { - result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve14(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -127111,7 +127431,7 @@ Note: The size of downloaded zips can differ significantly from the reported siz return uploadResponse; }); } - downloadArtifact(name, path28, options) { + downloadArtifact(name, path29, options) { return __awaiter2(this, void 0, void 0, function* () { const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); const artifacts = yield downloadHttpClient.listArtifacts(); @@ -127125,12 +127445,12 @@ Note: The size of downloaded zips can differ significantly from the reported siz throw new Error(`Unable to find an artifact with the name: ${name}`); } const items = yield downloadHttpClient.getContainerItems(artifactToDownload.name, artifactToDownload.fileContainerResourceUrl); - if (!path28) { - path28 = (0, config_variables_1.getWorkSpaceDirectory)(); + if (!path29) { + path29 = (0, config_variables_1.getWorkSpaceDirectory)(); } - path28 = (0, path_1.normalize)(path28); - path28 = (0, path_1.resolve)(path28); - const downloadSpecification = (0, download_specification_1.getDownloadSpecification)(name, items.value, path28, (options === null || options === void 0 ? void 0 : options.createArtifactFolder) || false); + path29 = (0, path_1.normalize)(path29); + path29 = (0, path_1.resolve)(path29); + const downloadSpecification = (0, download_specification_1.getDownloadSpecification)(name, items.value, path29, (options === null || options === void 0 ? void 0 : options.createArtifactFolder) || false); if (downloadSpecification.filesToDownload.length === 0) { core30.info(`No downloadable files were found for the artifact: ${artifactToDownload.name}`); } else { @@ -127145,7 +127465,7 @@ Note: The size of downloaded zips can differ significantly from the reported siz }; }); } - downloadAllArtifacts(path28) { + downloadAllArtifacts(path29) { return __awaiter2(this, void 0, void 0, function* () { const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); const response = []; @@ -127154,18 +127474,18 @@ Note: The size of downloaded zips can differ significantly from the reported siz core30.info("Unable to find any artifacts for the associated workflow"); return response; } - if (!path28) { - path28 = (0, config_variables_1.getWorkSpaceDirectory)(); + if (!path29) { + path29 = (0, config_variables_1.getWorkSpaceDirectory)(); } - path28 = (0, path_1.normalize)(path28); - path28 = (0, path_1.resolve)(path28); + path29 = (0, path_1.normalize)(path29); + path29 = (0, path_1.resolve)(path29); let downloadedArtifacts = 0; while (downloadedArtifacts < artifacts.count) { const currentArtifactToDownload = artifacts.value[downloadedArtifacts]; downloadedArtifacts += 1; core30.info(`starting download of artifact ${currentArtifactToDownload.name} : ${downloadedArtifacts}/${artifacts.count}`); const items = yield downloadHttpClient.getContainerItems(currentArtifactToDownload.name, currentArtifactToDownload.fileContainerResourceUrl); - const downloadSpecification = (0, download_specification_1.getDownloadSpecification)(currentArtifactToDownload.name, items.value, path28, true); + const downloadSpecification = (0, download_specification_1.getDownloadSpecification)(currentArtifactToDownload.name, items.value, path29, true); if (downloadSpecification.filesToDownload.length === 0) { core30.info(`No downloadable files were found for any artifact ${currentArtifactToDownload.name}`); } else { @@ -127331,27 +127651,27 @@ var require_util16 = __commonJS({ "node_modules/node-forge/lib/util.js"(exports2, module2) { var forge = require_forge(); var baseN = require_baseN(); - var util = module2.exports = forge.util = forge.util || {}; + var util3 = module2.exports = forge.util = forge.util || {}; (function() { if (typeof process !== "undefined" && process.nextTick && !process.browser) { - util.nextTick = process.nextTick; + util3.nextTick = process.nextTick; if (typeof setImmediate === "function") { - util.setImmediate = setImmediate; + util3.setImmediate = setImmediate; } else { - util.setImmediate = util.nextTick; + util3.setImmediate = util3.nextTick; } return; } if (typeof setImmediate === "function") { - util.setImmediate = function() { + util3.setImmediate = function() { return setImmediate.apply(void 0, arguments); }; - util.nextTick = function(callback) { + util3.nextTick = function(callback) { return setImmediate(callback); }; return; } - util.setImmediate = function(callback) { + util3.setImmediate = function(callback) { setTimeout(callback, 0); }; if (typeof window !== "undefined" && typeof window.postMessage === "function") { @@ -127368,7 +127688,7 @@ var require_util16 = __commonJS({ var handler2 = handler3; var msg = "forge.setImmediate"; var callbacks = []; - util.setImmediate = function(callback) { + util3.setImmediate = function(callback) { callbacks.push(callback); if (callbacks.length === 1) { window.postMessage(msg, "*"); @@ -127388,8 +127708,8 @@ var require_util16 = __commonJS({ callback(); }); }).observe(div, { attributes: true }); - var oldSetImmediate = util.setImmediate; - util.setImmediate = function(callback) { + var oldSetImmediate = util3.setImmediate; + util3.setImmediate = function(callback) { if (Date.now() - now > 15) { now = Date.now(); oldSetImmediate(callback); @@ -127401,36 +127721,36 @@ var require_util16 = __commonJS({ } }; } - util.nextTick = util.setImmediate; + util3.nextTick = util3.setImmediate; })(); - util.isNodejs = typeof process !== "undefined" && process.versions && process.versions.node; - util.globalScope = (function() { - if (util.isNodejs) { + util3.isNodejs = typeof process !== "undefined" && process.versions && process.versions.node; + util3.globalScope = (function() { + if (util3.isNodejs) { return global; } return typeof self === "undefined" ? window : self; })(); - util.isArray = Array.isArray || function(x) { + util3.isArray = Array.isArray || function(x) { return Object.prototype.toString.call(x) === "[object Array]"; }; - util.isArrayBuffer = function(x) { + util3.isArrayBuffer = function(x) { return typeof ArrayBuffer !== "undefined" && x instanceof ArrayBuffer; }; - util.isArrayBufferView = function(x) { - return x && util.isArrayBuffer(x.buffer) && x.byteLength !== void 0; + util3.isArrayBufferView = function(x) { + return x && util3.isArrayBuffer(x.buffer) && x.byteLength !== void 0; }; function _checkBitsParam(n) { if (!(n === 8 || n === 16 || n === 24 || n === 32)) { throw new Error("Only 8, 16, 24, or 32 bits supported: " + n); } } - util.ByteBuffer = ByteStringBuffer; + util3.ByteBuffer = ByteStringBuffer; function ByteStringBuffer(b) { this.data = ""; this.read = 0; if (typeof b === "string") { this.data = b; - } else if (util.isArrayBuffer(b) || util.isArrayBufferView(b)) { + } else if (util3.isArrayBuffer(b) || util3.isArrayBufferView(b)) { if (typeof Buffer !== "undefined" && b instanceof Buffer) { this.data = b.toString("binary"); } else { @@ -127449,25 +127769,25 @@ var require_util16 = __commonJS({ } this._constructedStringLength = 0; } - util.ByteStringBuffer = ByteStringBuffer; + util3.ByteStringBuffer = ByteStringBuffer; var _MAX_CONSTRUCTED_STRING_LENGTH = 4096; - util.ByteStringBuffer.prototype._optimizeConstructedString = function(x) { + util3.ByteStringBuffer.prototype._optimizeConstructedString = function(x) { this._constructedStringLength += x; if (this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) { this.data.substr(0, 1); this._constructedStringLength = 0; } }; - util.ByteStringBuffer.prototype.length = function() { + util3.ByteStringBuffer.prototype.length = function() { return this.data.length - this.read; }; - util.ByteStringBuffer.prototype.isEmpty = function() { + util3.ByteStringBuffer.prototype.isEmpty = function() { return this.length() <= 0; }; - util.ByteStringBuffer.prototype.putByte = function(b) { + util3.ByteStringBuffer.prototype.putByte = function(b) { return this.putBytes(String.fromCharCode(b)); }; - util.ByteStringBuffer.prototype.fillWithByte = function(b, n) { + util3.ByteStringBuffer.prototype.fillWithByte = function(b, n) { b = String.fromCharCode(b); var d = this.data; while (n > 0) { @@ -127483,45 +127803,45 @@ var require_util16 = __commonJS({ this._optimizeConstructedString(n); return this; }; - util.ByteStringBuffer.prototype.putBytes = function(bytes) { + util3.ByteStringBuffer.prototype.putBytes = function(bytes) { this.data += bytes; this._optimizeConstructedString(bytes.length); return this; }; - util.ByteStringBuffer.prototype.putString = function(str) { - return this.putBytes(util.encodeUtf8(str)); + util3.ByteStringBuffer.prototype.putString = function(str) { + return this.putBytes(util3.encodeUtf8(str)); }; - util.ByteStringBuffer.prototype.putInt16 = function(i) { + util3.ByteStringBuffer.prototype.putInt16 = function(i) { return this.putBytes( String.fromCharCode(i >> 8 & 255) + String.fromCharCode(i & 255) ); }; - util.ByteStringBuffer.prototype.putInt24 = function(i) { + util3.ByteStringBuffer.prototype.putInt24 = function(i) { return this.putBytes( String.fromCharCode(i >> 16 & 255) + String.fromCharCode(i >> 8 & 255) + String.fromCharCode(i & 255) ); }; - util.ByteStringBuffer.prototype.putInt32 = function(i) { + util3.ByteStringBuffer.prototype.putInt32 = function(i) { return this.putBytes( String.fromCharCode(i >> 24 & 255) + String.fromCharCode(i >> 16 & 255) + String.fromCharCode(i >> 8 & 255) + String.fromCharCode(i & 255) ); }; - util.ByteStringBuffer.prototype.putInt16Le = function(i) { + util3.ByteStringBuffer.prototype.putInt16Le = function(i) { return this.putBytes( String.fromCharCode(i & 255) + String.fromCharCode(i >> 8 & 255) ); }; - util.ByteStringBuffer.prototype.putInt24Le = function(i) { + util3.ByteStringBuffer.prototype.putInt24Le = function(i) { return this.putBytes( String.fromCharCode(i & 255) + String.fromCharCode(i >> 8 & 255) + String.fromCharCode(i >> 16 & 255) ); }; - util.ByteStringBuffer.prototype.putInt32Le = function(i) { + util3.ByteStringBuffer.prototype.putInt32Le = function(i) { return this.putBytes( String.fromCharCode(i & 255) + String.fromCharCode(i >> 8 & 255) + String.fromCharCode(i >> 16 & 255) + String.fromCharCode(i >> 24 & 255) ); }; - util.ByteStringBuffer.prototype.putInt = function(i, n) { + util3.ByteStringBuffer.prototype.putInt = function(i, n) { _checkBitsParam(n); var bytes = ""; do { @@ -127530,49 +127850,49 @@ var require_util16 = __commonJS({ } while (n > 0); return this.putBytes(bytes); }; - util.ByteStringBuffer.prototype.putSignedInt = function(i, n) { + util3.ByteStringBuffer.prototype.putSignedInt = function(i, n) { if (i < 0) { i += 2 << n - 1; } return this.putInt(i, n); }; - util.ByteStringBuffer.prototype.putBuffer = function(buffer) { + util3.ByteStringBuffer.prototype.putBuffer = function(buffer) { return this.putBytes(buffer.getBytes()); }; - util.ByteStringBuffer.prototype.getByte = function() { + util3.ByteStringBuffer.prototype.getByte = function() { return this.data.charCodeAt(this.read++); }; - util.ByteStringBuffer.prototype.getInt16 = function() { + util3.ByteStringBuffer.prototype.getInt16 = function() { var rval = this.data.charCodeAt(this.read) << 8 ^ this.data.charCodeAt(this.read + 1); this.read += 2; return rval; }; - util.ByteStringBuffer.prototype.getInt24 = function() { + util3.ByteStringBuffer.prototype.getInt24 = function() { var rval = this.data.charCodeAt(this.read) << 16 ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2); this.read += 3; return rval; }; - util.ByteStringBuffer.prototype.getInt32 = function() { + util3.ByteStringBuffer.prototype.getInt32 = function() { var rval = this.data.charCodeAt(this.read) << 24 ^ this.data.charCodeAt(this.read + 1) << 16 ^ this.data.charCodeAt(this.read + 2) << 8 ^ this.data.charCodeAt(this.read + 3); this.read += 4; return rval; }; - util.ByteStringBuffer.prototype.getInt16Le = function() { + util3.ByteStringBuffer.prototype.getInt16Le = function() { var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8; this.read += 2; return rval; }; - util.ByteStringBuffer.prototype.getInt24Le = function() { + util3.ByteStringBuffer.prototype.getInt24Le = function() { var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2) << 16; this.read += 3; return rval; }; - util.ByteStringBuffer.prototype.getInt32Le = function() { + util3.ByteStringBuffer.prototype.getInt32Le = function() { var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2) << 16 ^ this.data.charCodeAt(this.read + 3) << 24; this.read += 4; return rval; }; - util.ByteStringBuffer.prototype.getInt = function(n) { + util3.ByteStringBuffer.prototype.getInt = function(n) { _checkBitsParam(n); var rval = 0; do { @@ -127581,7 +127901,7 @@ var require_util16 = __commonJS({ } while (n > 0); return rval; }; - util.ByteStringBuffer.prototype.getSignedInt = function(n) { + util3.ByteStringBuffer.prototype.getSignedInt = function(n) { var x = this.getInt(n); var max = 2 << n - 2; if (x >= max) { @@ -127589,7 +127909,7 @@ var require_util16 = __commonJS({ } return x; }; - util.ByteStringBuffer.prototype.getBytes = function(count) { + util3.ByteStringBuffer.prototype.getBytes = function(count) { var rval; if (count) { count = Math.min(this.length(), count); @@ -127603,43 +127923,43 @@ var require_util16 = __commonJS({ } return rval; }; - util.ByteStringBuffer.prototype.bytes = function(count) { + util3.ByteStringBuffer.prototype.bytes = function(count) { return typeof count === "undefined" ? this.data.slice(this.read) : this.data.slice(this.read, this.read + count); }; - util.ByteStringBuffer.prototype.at = function(i) { + util3.ByteStringBuffer.prototype.at = function(i) { return this.data.charCodeAt(this.read + i); }; - util.ByteStringBuffer.prototype.setAt = function(i, b) { + util3.ByteStringBuffer.prototype.setAt = function(i, b) { this.data = this.data.substr(0, this.read + i) + String.fromCharCode(b) + this.data.substr(this.read + i + 1); return this; }; - util.ByteStringBuffer.prototype.last = function() { + util3.ByteStringBuffer.prototype.last = function() { return this.data.charCodeAt(this.data.length - 1); }; - util.ByteStringBuffer.prototype.copy = function() { - var c = util.createBuffer(this.data); + util3.ByteStringBuffer.prototype.copy = function() { + var c = util3.createBuffer(this.data); c.read = this.read; return c; }; - util.ByteStringBuffer.prototype.compact = function() { + util3.ByteStringBuffer.prototype.compact = function() { if (this.read > 0) { this.data = this.data.slice(this.read); this.read = 0; } return this; }; - util.ByteStringBuffer.prototype.clear = function() { + util3.ByteStringBuffer.prototype.clear = function() { this.data = ""; this.read = 0; return this; }; - util.ByteStringBuffer.prototype.truncate = function(count) { + util3.ByteStringBuffer.prototype.truncate = function(count) { var len = Math.max(0, this.length() - count); this.data = this.data.substr(this.read, len); this.read = 0; return this; }; - util.ByteStringBuffer.prototype.toHex = function() { + util3.ByteStringBuffer.prototype.toHex = function() { var rval = ""; for (var i = this.read; i < this.data.length; ++i) { var b = this.data.charCodeAt(i); @@ -127650,15 +127970,15 @@ var require_util16 = __commonJS({ } return rval; }; - util.ByteStringBuffer.prototype.toString = function() { - return util.decodeUtf8(this.bytes()); + util3.ByteStringBuffer.prototype.toString = function() { + return util3.decodeUtf8(this.bytes()); }; function DataBuffer(b, options) { options = options || {}; this.read = options.readOffset || 0; this.growSize = options.growSize || 1024; - var isArrayBuffer = util.isArrayBuffer(b); - var isArrayBufferView = util.isArrayBufferView(b); + var isArrayBuffer = util3.isArrayBuffer(b); + var isArrayBufferView = util3.isArrayBufferView(b); if (isArrayBuffer || isArrayBufferView) { if (isArrayBuffer) { this.data = new DataView(b); @@ -127677,14 +127997,14 @@ var require_util16 = __commonJS({ this.write = options.writeOffset; } } - util.DataBuffer = DataBuffer; - util.DataBuffer.prototype.length = function() { + util3.DataBuffer = DataBuffer; + util3.DataBuffer.prototype.length = function() { return this.write - this.read; }; - util.DataBuffer.prototype.isEmpty = function() { + util3.DataBuffer.prototype.isEmpty = function() { return this.length() <= 0; }; - util.DataBuffer.prototype.accommodate = function(amount, growSize) { + util3.DataBuffer.prototype.accommodate = function(amount, growSize) { if (this.length() >= amount) { return this; } @@ -127699,20 +128019,20 @@ var require_util16 = __commonJS({ this.data = new DataView(dst.buffer); return this; }; - util.DataBuffer.prototype.putByte = function(b) { + util3.DataBuffer.prototype.putByte = function(b) { this.accommodate(1); this.data.setUint8(this.write++, b); return this; }; - util.DataBuffer.prototype.fillWithByte = function(b, n) { + util3.DataBuffer.prototype.fillWithByte = function(b, n) { this.accommodate(n); for (var i = 0; i < n; ++i) { this.data.setUint8(b); } return this; }; - util.DataBuffer.prototype.putBytes = function(bytes, encoding) { - if (util.isArrayBufferView(bytes)) { + util3.DataBuffer.prototype.putBytes = function(bytes, encoding) { + if (util3.isArrayBufferView(bytes)) { var src = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength); var len = src.byteLength - src.byteOffset; this.accommodate(len); @@ -127721,7 +128041,7 @@ var require_util16 = __commonJS({ this.write += len; return this; } - if (util.isArrayBuffer(bytes)) { + if (util3.isArrayBuffer(bytes)) { var src = new Uint8Array(bytes); this.accommodate(src.byteLength); var dst = new Uint8Array(this.data.buffer); @@ -127729,7 +128049,7 @@ var require_util16 = __commonJS({ this.write += src.byteLength; return this; } - if (bytes instanceof util.DataBuffer || typeof bytes === "object" && typeof bytes.read === "number" && typeof bytes.write === "number" && util.isArrayBufferView(bytes.data)) { + if (bytes instanceof util3.DataBuffer || typeof bytes === "object" && typeof bytes.read === "number" && typeof bytes.write === "number" && util3.isArrayBufferView(bytes.data)) { var src = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length()); this.accommodate(src.byteLength); var dst = new Uint8Array(bytes.data.byteLength, this.write); @@ -127737,7 +128057,7 @@ var require_util16 = __commonJS({ this.write += src.byteLength; return this; } - if (bytes instanceof util.ByteStringBuffer) { + if (bytes instanceof util3.ByteStringBuffer) { bytes = bytes.data; encoding = "binary"; } @@ -127747,82 +128067,82 @@ var require_util16 = __commonJS({ if (encoding === "hex") { this.accommodate(Math.ceil(bytes.length / 2)); view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.hex.decode(bytes, view, this.write); + this.write += util3.binary.hex.decode(bytes, view, this.write); return this; } if (encoding === "base64") { this.accommodate(Math.ceil(bytes.length / 4) * 3); view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.base64.decode(bytes, view, this.write); + this.write += util3.binary.base64.decode(bytes, view, this.write); return this; } if (encoding === "utf8") { - bytes = util.encodeUtf8(bytes); + bytes = util3.encodeUtf8(bytes); encoding = "binary"; } if (encoding === "binary" || encoding === "raw") { this.accommodate(bytes.length); view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.raw.decode(view); + this.write += util3.binary.raw.decode(view); return this; } if (encoding === "utf16") { this.accommodate(bytes.length * 2); view = new Uint16Array(this.data.buffer, this.write); - this.write += util.text.utf16.encode(view); + this.write += util3.text.utf16.encode(view); return this; } throw new Error("Invalid encoding: " + encoding); } throw Error("Invalid parameter: " + bytes); }; - util.DataBuffer.prototype.putBuffer = function(buffer) { + util3.DataBuffer.prototype.putBuffer = function(buffer) { this.putBytes(buffer); buffer.clear(); return this; }; - util.DataBuffer.prototype.putString = function(str) { + util3.DataBuffer.prototype.putString = function(str) { return this.putBytes(str, "utf16"); }; - util.DataBuffer.prototype.putInt16 = function(i) { + util3.DataBuffer.prototype.putInt16 = function(i) { this.accommodate(2); this.data.setInt16(this.write, i); this.write += 2; return this; }; - util.DataBuffer.prototype.putInt24 = function(i) { + util3.DataBuffer.prototype.putInt24 = function(i) { this.accommodate(3); this.data.setInt16(this.write, i >> 8 & 65535); this.data.setInt8(this.write, i >> 16 & 255); this.write += 3; return this; }; - util.DataBuffer.prototype.putInt32 = function(i) { + util3.DataBuffer.prototype.putInt32 = function(i) { this.accommodate(4); this.data.setInt32(this.write, i); this.write += 4; return this; }; - util.DataBuffer.prototype.putInt16Le = function(i) { + util3.DataBuffer.prototype.putInt16Le = function(i) { this.accommodate(2); this.data.setInt16(this.write, i, true); this.write += 2; return this; }; - util.DataBuffer.prototype.putInt24Le = function(i) { + util3.DataBuffer.prototype.putInt24Le = function(i) { this.accommodate(3); this.data.setInt8(this.write, i >> 16 & 255); this.data.setInt16(this.write, i >> 8 & 65535, true); this.write += 3; return this; }; - util.DataBuffer.prototype.putInt32Le = function(i) { + util3.DataBuffer.prototype.putInt32Le = function(i) { this.accommodate(4); this.data.setInt32(this.write, i, true); this.write += 4; return this; }; - util.DataBuffer.prototype.putInt = function(i, n) { + util3.DataBuffer.prototype.putInt = function(i, n) { _checkBitsParam(n); this.accommodate(n / 8); do { @@ -127831,7 +128151,7 @@ var require_util16 = __commonJS({ } while (n > 0); return this; }; - util.DataBuffer.prototype.putSignedInt = function(i, n) { + util3.DataBuffer.prototype.putSignedInt = function(i, n) { _checkBitsParam(n); this.accommodate(n / 8); if (i < 0) { @@ -127839,40 +128159,40 @@ var require_util16 = __commonJS({ } return this.putInt(i, n); }; - util.DataBuffer.prototype.getByte = function() { + util3.DataBuffer.prototype.getByte = function() { return this.data.getInt8(this.read++); }; - util.DataBuffer.prototype.getInt16 = function() { + util3.DataBuffer.prototype.getInt16 = function() { var rval = this.data.getInt16(this.read); this.read += 2; return rval; }; - util.DataBuffer.prototype.getInt24 = function() { + util3.DataBuffer.prototype.getInt24 = function() { var rval = this.data.getInt16(this.read) << 8 ^ this.data.getInt8(this.read + 2); this.read += 3; return rval; }; - util.DataBuffer.prototype.getInt32 = function() { + util3.DataBuffer.prototype.getInt32 = function() { var rval = this.data.getInt32(this.read); this.read += 4; return rval; }; - util.DataBuffer.prototype.getInt16Le = function() { + util3.DataBuffer.prototype.getInt16Le = function() { var rval = this.data.getInt16(this.read, true); this.read += 2; return rval; }; - util.DataBuffer.prototype.getInt24Le = function() { + util3.DataBuffer.prototype.getInt24Le = function() { var rval = this.data.getInt8(this.read) ^ this.data.getInt16(this.read + 1, true) << 8; this.read += 3; return rval; }; - util.DataBuffer.prototype.getInt32Le = function() { + util3.DataBuffer.prototype.getInt32Le = function() { var rval = this.data.getInt32(this.read, true); this.read += 4; return rval; }; - util.DataBuffer.prototype.getInt = function(n) { + util3.DataBuffer.prototype.getInt = function(n) { _checkBitsParam(n); var rval = 0; do { @@ -127881,7 +128201,7 @@ var require_util16 = __commonJS({ } while (n > 0); return rval; }; - util.DataBuffer.prototype.getSignedInt = function(n) { + util3.DataBuffer.prototype.getSignedInt = function(n) { var x = this.getInt(n); var max = 2 << n - 2; if (x >= max) { @@ -127889,7 +128209,7 @@ var require_util16 = __commonJS({ } return x; }; - util.DataBuffer.prototype.getBytes = function(count) { + util3.DataBuffer.prototype.getBytes = function(count) { var rval; if (count) { count = Math.min(this.length(), count); @@ -127903,23 +128223,23 @@ var require_util16 = __commonJS({ } return rval; }; - util.DataBuffer.prototype.bytes = function(count) { + util3.DataBuffer.prototype.bytes = function(count) { return typeof count === "undefined" ? this.data.slice(this.read) : this.data.slice(this.read, this.read + count); }; - util.DataBuffer.prototype.at = function(i) { + util3.DataBuffer.prototype.at = function(i) { return this.data.getUint8(this.read + i); }; - util.DataBuffer.prototype.setAt = function(i, b) { + util3.DataBuffer.prototype.setAt = function(i, b) { this.data.setUint8(i, b); return this; }; - util.DataBuffer.prototype.last = function() { + util3.DataBuffer.prototype.last = function() { return this.data.getUint8(this.write - 1); }; - util.DataBuffer.prototype.copy = function() { - return new util.DataBuffer(this); + util3.DataBuffer.prototype.copy = function() { + return new util3.DataBuffer(this); }; - util.DataBuffer.prototype.compact = function() { + util3.DataBuffer.prototype.compact = function() { if (this.read > 0) { var src = new Uint8Array(this.data.buffer, this.read); var dst = new Uint8Array(src.byteLength); @@ -127930,17 +128250,17 @@ var require_util16 = __commonJS({ } return this; }; - util.DataBuffer.prototype.clear = function() { + util3.DataBuffer.prototype.clear = function() { this.data = new DataView(new ArrayBuffer(0)); this.read = this.write = 0; return this; }; - util.DataBuffer.prototype.truncate = function(count) { + util3.DataBuffer.prototype.truncate = function(count) { this.write = Math.max(0, this.length() - count); this.read = Math.min(this.read, this.write); return this; }; - util.DataBuffer.prototype.toHex = function() { + util3.DataBuffer.prototype.toHex = function() { var rval = ""; for (var i = this.read; i < this.data.byteLength; ++i) { var b = this.data.getUint8(i); @@ -127951,34 +128271,34 @@ var require_util16 = __commonJS({ } return rval; }; - util.DataBuffer.prototype.toString = function(encoding) { + util3.DataBuffer.prototype.toString = function(encoding) { var view = new Uint8Array(this.data, this.read, this.length()); encoding = encoding || "utf8"; if (encoding === "binary" || encoding === "raw") { - return util.binary.raw.encode(view); + return util3.binary.raw.encode(view); } if (encoding === "hex") { - return util.binary.hex.encode(view); + return util3.binary.hex.encode(view); } if (encoding === "base64") { - return util.binary.base64.encode(view); + return util3.binary.base64.encode(view); } if (encoding === "utf8") { - return util.text.utf8.decode(view); + return util3.text.utf8.decode(view); } if (encoding === "utf16") { - return util.text.utf16.decode(view); + return util3.text.utf16.decode(view); } throw new Error("Invalid encoding: " + encoding); }; - util.createBuffer = function(input, encoding) { + util3.createBuffer = function(input, encoding) { encoding = encoding || "raw"; if (input !== void 0 && encoding === "utf8") { - input = util.encodeUtf8(input); + input = util3.encodeUtf8(input); } - return new util.ByteBuffer(input); + return new util3.ByteBuffer(input); }; - util.fillString = function(c, n) { + util3.fillString = function(c, n) { var s = ""; while (n > 0) { if (n & 1) { @@ -127991,7 +128311,7 @@ var require_util16 = __commonJS({ } return s; }; - util.xorBytes = function(s1, s2, n) { + util3.xorBytes = function(s1, s2, n) { var s3 = ""; var b = ""; var t = ""; @@ -128010,7 +128330,7 @@ var require_util16 = __commonJS({ s3 += t; return s3; }; - util.hexToBytes = function(hex) { + util3.hexToBytes = function(hex) { var rval = ""; var i = 0; if (hex.length & true) { @@ -128022,10 +128342,10 @@ var require_util16 = __commonJS({ } return rval; }; - util.bytesToHex = function(bytes) { - return util.createBuffer(bytes).toHex(); + util3.bytesToHex = function(bytes) { + return util3.createBuffer(bytes).toHex(); }; - util.int32ToBytes = function(i) { + util3.int32ToBytes = function(i) { return String.fromCharCode(i >> 24 & 255) + String.fromCharCode(i >> 16 & 255) + String.fromCharCode(i >> 8 & 255) + String.fromCharCode(i & 255); }; var _base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; @@ -128124,7 +128444,7 @@ var require_util16 = __commonJS({ 51 ]; var _base58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; - util.encode64 = function(input, maxline) { + util3.encode64 = function(input, maxline) { var line = ""; var output = ""; var chr1, chr2, chr3; @@ -128149,7 +128469,7 @@ var require_util16 = __commonJS({ output += line; return output; }; - util.decode64 = function(input) { + util3.decode64 = function(input) { input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); var output = ""; var enc1, enc2, enc3, enc4; @@ -128169,13 +128489,13 @@ var require_util16 = __commonJS({ } return output; }; - util.encodeUtf8 = function(str) { + util3.encodeUtf8 = function(str) { return unescape(encodeURIComponent(str)); }; - util.decodeUtf8 = function(str) { + util3.decodeUtf8 = function(str) { return decodeURIComponent(escape(str)); }; - util.binary = { + util3.binary = { raw: {}, hex: {}, base64: {}, @@ -128185,10 +128505,10 @@ var require_util16 = __commonJS({ decode: baseN.decode } }; - util.binary.raw.encode = function(bytes) { + util3.binary.raw.encode = function(bytes) { return String.fromCharCode.apply(null, bytes); }; - util.binary.raw.decode = function(str, output, offset) { + util3.binary.raw.decode = function(str, output, offset) { var out = output; if (!out) { out = new Uint8Array(str.length); @@ -128200,8 +128520,8 @@ var require_util16 = __commonJS({ } return output ? j - offset : out; }; - util.binary.hex.encode = util.bytesToHex; - util.binary.hex.decode = function(hex, output, offset) { + util3.binary.hex.encode = util3.bytesToHex; + util3.binary.hex.decode = function(hex, output, offset) { var out = output; if (!out) { out = new Uint8Array(Math.ceil(hex.length / 2)); @@ -128217,7 +128537,7 @@ var require_util16 = __commonJS({ } return output ? j - offset : out; }; - util.binary.base64.encode = function(input, maxline) { + util3.binary.base64.encode = function(input, maxline) { var line = ""; var output = ""; var chr1, chr2, chr3; @@ -128242,7 +128562,7 @@ var require_util16 = __commonJS({ output += line; return output; }; - util.binary.base64.decode = function(input, output, offset) { + util3.binary.base64.decode = function(input, output, offset) { var out = output; if (!out) { out = new Uint8Array(Math.ceil(input.length / 4) * 3); @@ -128266,18 +128586,18 @@ var require_util16 = __commonJS({ } return output ? j - offset : out.subarray(0, j); }; - util.binary.base58.encode = function(input, maxline) { - return util.binary.baseN.encode(input, _base58, maxline); + util3.binary.base58.encode = function(input, maxline) { + return util3.binary.baseN.encode(input, _base58, maxline); }; - util.binary.base58.decode = function(input, maxline) { - return util.binary.baseN.decode(input, _base58, maxline); + util3.binary.base58.decode = function(input, maxline) { + return util3.binary.baseN.decode(input, _base58, maxline); }; - util.text = { + util3.text = { utf8: {}, utf16: {} }; - util.text.utf8.encode = function(str, output, offset) { - str = util.encodeUtf8(str); + util3.text.utf8.encode = function(str, output, offset) { + str = util3.encodeUtf8(str); var out = output; if (!out) { out = new Uint8Array(str.length); @@ -128289,10 +128609,10 @@ var require_util16 = __commonJS({ } return output ? j - offset : out; }; - util.text.utf8.decode = function(bytes) { - return util.decodeUtf8(String.fromCharCode.apply(null, bytes)); + util3.text.utf8.decode = function(bytes) { + return util3.decodeUtf8(String.fromCharCode.apply(null, bytes)); }; - util.text.utf16.encode = function(str, output, offset) { + util3.text.utf16.encode = function(str, output, offset) { var out = output; if (!out) { out = new Uint8Array(str.length * 2); @@ -128307,11 +128627,11 @@ var require_util16 = __commonJS({ } return output ? j - offset : out; }; - util.text.utf16.decode = function(bytes) { + util3.text.utf16.decode = function(bytes) { return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer)); }; - util.deflate = function(api, bytes, raw) { - bytes = util.decode64(api.deflate(util.encode64(bytes)).rval); + util3.deflate = function(api, bytes, raw) { + bytes = util3.decode64(api.deflate(util3.encode64(bytes)).rval); if (raw) { var start = 2; var flg = bytes.charCodeAt(1); @@ -128322,9 +128642,9 @@ var require_util16 = __commonJS({ } return bytes; }; - util.inflate = function(api, bytes, raw) { - var rval = api.inflate(util.encode64(bytes)).rval; - return rval === null ? null : util.decode64(rval); + util3.inflate = function(api, bytes, raw) { + var rval = api.inflate(util3.encode64(bytes)).rval; + return rval === null ? null : util3.decode64(rval); }; var _setStorageObject = function(api, id, obj) { if (!api) { @@ -128334,7 +128654,7 @@ var require_util16 = __commonJS({ if (obj === null) { rval = api.removeItem(id); } else { - obj = util.encode64(JSON.stringify(obj)); + obj = util3.encode64(JSON.stringify(obj)); rval = api.setItem(id, obj); } if (typeof rval !== "undefined" && rval.rval !== true) { @@ -128363,7 +128683,7 @@ var require_util16 = __commonJS({ } } if (rval !== null) { - rval = JSON.parse(util.decode64(rval)); + rval = JSON.parse(util3.decode64(rval)); } return rval; }; @@ -128435,19 +128755,19 @@ var require_util16 = __commonJS({ } return rval; }; - util.setItem = function(api, id, key, data, location) { + util3.setItem = function(api, id, key, data, location) { _callStorageFunction(_setItem, arguments, location); }; - util.getItem = function(api, id, key, location) { + util3.getItem = function(api, id, key, location) { return _callStorageFunction(_getItem, arguments, location); }; - util.removeItem = function(api, id, key, location) { + util3.removeItem = function(api, id, key, location) { _callStorageFunction(_removeItem, arguments, location); }; - util.clearItems = function(api, id, location) { + util3.clearItems = function(api, id, location) { _callStorageFunction(_clearItems, arguments, location); }; - util.isEmpty = function(obj) { + util3.isEmpty = function(obj) { for (var prop in obj) { if (obj.hasOwnProperty(prop)) { return false; @@ -128455,20 +128775,20 @@ var require_util16 = __commonJS({ } return true; }; - util.format = function(format) { + util3.format = function(format) { var re = /%./g; - var match; + var match2; var part; var argi = 0; var parts = []; var last = 0; - while (match = re.exec(format)) { + while (match2 = re.exec(format)) { part = format.substring(last, re.lastIndex - 2); if (part.length > 0) { parts.push(part); } last = re.lastIndex; - var code = match[0][1]; + var code = match2[0][1]; switch (code) { case "s": case "o": @@ -128491,7 +128811,7 @@ var require_util16 = __commonJS({ parts.push(format.substring(last)); return parts.join(""); }; - util.formatNumber = function(number, decimals, dec_point, thousands_sep) { + util3.formatNumber = function(number, decimals, dec_point, thousands_sep) { var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; var d = dec_point === void 0 ? "," : dec_point; var t = thousands_sep === void 0 ? "." : thousands_sep, s = n < 0 ? "-" : ""; @@ -128499,33 +128819,33 @@ var require_util16 = __commonJS({ var j = i.length > 3 ? i.length % 3 : 0; return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); }; - util.formatSize = function(size) { + util3.formatSize = function(size) { if (size >= 1073741824) { - size = util.formatNumber(size / 1073741824, 2, ".", "") + " GiB"; + size = util3.formatNumber(size / 1073741824, 2, ".", "") + " GiB"; } else if (size >= 1048576) { - size = util.formatNumber(size / 1048576, 2, ".", "") + " MiB"; + size = util3.formatNumber(size / 1048576, 2, ".", "") + " MiB"; } else if (size >= 1024) { - size = util.formatNumber(size / 1024, 0) + " KiB"; + size = util3.formatNumber(size / 1024, 0) + " KiB"; } else { - size = util.formatNumber(size, 0) + " bytes"; + size = util3.formatNumber(size, 0) + " bytes"; } return size; }; - util.bytesFromIP = function(ip) { + util3.bytesFromIP = function(ip) { if (ip.indexOf(".") !== -1) { - return util.bytesFromIPv4(ip); + return util3.bytesFromIPv4(ip); } if (ip.indexOf(":") !== -1) { - return util.bytesFromIPv6(ip); + return util3.bytesFromIPv6(ip); } return null; }; - util.bytesFromIPv4 = function(ip) { + util3.bytesFromIPv4 = function(ip) { ip = ip.split("."); if (ip.length !== 4) { return null; } - var b = util.createBuffer(); + var b = util3.createBuffer(); for (var i = 0; i < ip.length; ++i) { var num = parseInt(ip[i], 10); if (isNaN(num)) { @@ -128535,21 +128855,21 @@ var require_util16 = __commonJS({ } return b.getBytes(); }; - util.bytesFromIPv6 = function(ip) { + util3.bytesFromIPv6 = function(ip) { var blanks = 0; ip = ip.split(":").filter(function(e) { if (e.length === 0) ++blanks; return true; }); var zeros = (8 - ip.length + blanks) * 2; - var b = util.createBuffer(); + var b = util3.createBuffer(); for (var i = 0; i < 8; ++i) { if (!ip[i] || ip[i].length === 0) { b.fillWithByte(0, zeros); zeros = 0; continue; } - var bytes = util.hexToBytes(ip[i]); + var bytes = util3.hexToBytes(ip[i]); if (bytes.length < 2) { b.putByte(0); } @@ -128557,16 +128877,16 @@ var require_util16 = __commonJS({ } return b.getBytes(); }; - util.bytesToIP = function(bytes) { + util3.bytesToIP = function(bytes) { if (bytes.length === 4) { - return util.bytesToIPv4(bytes); + return util3.bytesToIPv4(bytes); } if (bytes.length === 16) { - return util.bytesToIPv6(bytes); + return util3.bytesToIPv6(bytes); } return null; }; - util.bytesToIPv4 = function(bytes) { + util3.bytesToIPv4 = function(bytes) { if (bytes.length !== 4) { return null; } @@ -128576,7 +128896,7 @@ var require_util16 = __commonJS({ } return ip.join("."); }; - util.bytesToIPv6 = function(bytes) { + util3.bytesToIPv6 = function(bytes) { if (bytes.length !== 16) { return null; } @@ -128584,7 +128904,7 @@ var require_util16 = __commonJS({ var zeroGroups = []; var zeroMaxGroup = 0; for (var i = 0; i < bytes.length; i += 2) { - var hex = util.bytesToHex(bytes[i] + bytes[i + 1]); + var hex = util3.bytesToHex(bytes[i] + bytes[i + 1]); while (hex[0] === "0" && hex !== "0") { hex = hex.substr(1); } @@ -128616,26 +128936,26 @@ var require_util16 = __commonJS({ } return ip.join(":"); }; - util.estimateCores = function(options, callback) { + util3.estimateCores = function(options, callback) { if (typeof options === "function") { callback = options; options = {}; } options = options || {}; - if ("cores" in util && !options.update) { - return callback(null, util.cores); + if ("cores" in util3 && !options.update) { + return callback(null, util3.cores); } if (typeof navigator !== "undefined" && "hardwareConcurrency" in navigator && navigator.hardwareConcurrency > 0) { - util.cores = navigator.hardwareConcurrency; - return callback(null, util.cores); + util3.cores = navigator.hardwareConcurrency; + return callback(null, util3.cores); } if (typeof Worker === "undefined") { - util.cores = 1; - return callback(null, util.cores); + util3.cores = 1; + return callback(null, util3.cores); } if (typeof Blob === "undefined") { - util.cores = 2; - return callback(null, util.cores); + util3.cores = 2; + return callback(null, util3.cores); } var blobUrl = URL.createObjectURL(new Blob([ "(", @@ -128655,9 +128975,9 @@ var require_util16 = __commonJS({ var avg = Math.floor(max.reduce(function(avg2, x) { return avg2 + x; }, 0) / max.length); - util.cores = Math.max(1, avg); + util3.cores = Math.max(1, avg); URL.revokeObjectURL(blobUrl); - return callback(null, util.cores); + return callback(null, util3.cores); } map(numWorkers, function(err, results) { max.push(reduce(numWorkers, results)); @@ -131141,13 +131461,13 @@ var require_pem = __commonJS({ var rMessage = /\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g; var rHeader = /([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/; var rCRLF = /\r?\n/; - var match; + var match2; while (true) { - match = rMessage.exec(str); - if (!match) { + match2 = rMessage.exec(str); + if (!match2) { break; } - var type = match[1]; + var type = match2[1]; if (type === "NEW CERTIFICATE REQUEST") { type = "CERTIFICATE REQUEST"; } @@ -131157,15 +131477,15 @@ var require_pem = __commonJS({ contentDomain: null, dekInfo: null, headers: [], - body: forge.util.decode64(match[3]) + body: forge.util.decode64(match2[3]) }; rval.push(msg); - if (!match[2]) { + if (!match2[2]) { continue; } - var lines = match[2].split(rCRLF); + var lines = match2[2].split(rCRLF); var li = 0; - while (match && li < lines.length) { + while (match2 && li < lines.length) { var line = lines[li].replace(/\s+$/, ""); for (var nl = li + 1; nl < lines.length; ++nl) { var next = lines[nl]; @@ -131175,10 +131495,10 @@ var require_pem = __commonJS({ line += next; li = nl; } - match = line.match(rHeader); - if (match) { - var header = { name: match[1], values: [] }; - var values = match[2].split(","); + match2 = line.match(rHeader); + if (match2) { + var header = { name: match2[1], values: [] }; + var values = match2[2].split(","); for (var vi = 0; vi < values.length; ++vi) { header.values.push(ltrim(values[vi])); } @@ -131214,7 +131534,7 @@ var require_pem = __commonJS({ function foldHeader(header) { var rval = header.name + ": "; var values = []; - var insertSpace = function(match, $1) { + var insertSpace = function(match2, $1) { return " " + $1; }; for (var i = 0; i < header.values.length; ++i) { @@ -134142,19 +134462,19 @@ var require_pkcs1 = __commonJS({ error3 |= lHash.charAt(i) !== lHashPrime.charAt(i); } var in_ps = 1; - var index = md2.digestLength; + var index2 = md2.digestLength; for (var j = md2.digestLength; j < db.length; j++) { var code = db.charCodeAt(j); var is_0 = code & 1 ^ 1; var error_mask = in_ps ? 65534 : 0; error3 |= code & error_mask; in_ps = in_ps & is_0; - index += in_ps; + index2 += in_ps; } - if (error3 || db.charCodeAt(index) !== 1) { + if (error3 || db.charCodeAt(index2) !== 1) { throw new Error("Invalid RSAES-OAEP padding."); } - return db.substring(index + 1); + return db.substring(index2 + 1); }; function rsa_mgf1(seed, maskLength, hash2) { if (!hash2) { @@ -134265,7 +134585,7 @@ var require_prime = __commonJS({ var num = generateRandom(bits, rng2); var numWorkers = options.workers; var workLoad = options.workLoad || 100; - var range = workLoad * 30 / 8; + var range2 = workLoad * 30 / 8; var workerScript = options.workerScript || "forge/prime.worker.js"; if (numWorkers === -1) { return forge.util.estimateCores(function(err, cores) { @@ -134309,7 +134629,7 @@ var require_prime = __commonJS({ hex, workLoad }); - num.dAddOffset(range, 0); + num.dAddOffset(range2, 0); } } } @@ -134357,7 +134677,7 @@ var require_rsa = __commonJS({ var BigInteger; var _crypto = forge.util.isNodejs ? require("crypto") : null; var asn1 = forge.asn1; - var util = forge.util; + var util3 = forge.util; forge.pki = forge.pki || {}; module2.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; var pki2 = forge.pki; @@ -134897,13 +135217,13 @@ var require_rsa = __commonJS({ }); } if (_detectSubtleCrypto("generateKey") && _detectSubtleCrypto("exportKey")) { - return util.globalScope.crypto.subtle.generateKey({ + return util3.globalScope.crypto.subtle.generateKey({ name: "RSASSA-PKCS1-v1_5", modulusLength: bits, publicExponent: _intToUint8Array(e), hash: { name: "SHA-256" } }, true, ["sign", "verify"]).then(function(pair) { - return util.globalScope.crypto.subtle.exportKey( + return util3.globalScope.crypto.subtle.exportKey( "pkcs8", pair.privateKey ); @@ -134922,7 +135242,7 @@ var require_rsa = __commonJS({ }); } if (_detectSubtleMsCrypto("generateKey") && _detectSubtleMsCrypto("exportKey")) { - var genOp = util.globalScope.msCrypto.subtle.generateKey({ + var genOp = util3.globalScope.msCrypto.subtle.generateKey({ name: "RSASSA-PKCS1-v1_5", modulusLength: bits, publicExponent: _intToUint8Array(e), @@ -134930,7 +135250,7 @@ var require_rsa = __commonJS({ }, true, ["sign", "verify"]); genOp.oncomplete = function(e2) { var pair = e2.target.result; - var exportOp = util.globalScope.msCrypto.subtle.exportKey( + var exportOp = util3.globalScope.msCrypto.subtle.exportKey( "pkcs8", pair.privateKey ); @@ -135525,10 +135845,10 @@ var require_rsa = __commonJS({ return forge.util.isNodejs && typeof _crypto[fn] === "function"; } function _detectSubtleCrypto(fn) { - return typeof util.globalScope !== "undefined" && typeof util.globalScope.crypto === "object" && typeof util.globalScope.crypto.subtle === "object" && typeof util.globalScope.crypto.subtle[fn] === "function"; + return typeof util3.globalScope !== "undefined" && typeof util3.globalScope.crypto === "object" && typeof util3.globalScope.crypto.subtle === "object" && typeof util3.globalScope.crypto.subtle[fn] === "function"; } function _detectSubtleMsCrypto(fn) { - return typeof util.globalScope !== "undefined" && typeof util.globalScope.msCrypto === "object" && typeof util.globalScope.msCrypto.subtle === "object" && typeof util.globalScope.msCrypto.subtle[fn] === "function"; + return typeof util3.globalScope !== "undefined" && typeof util3.globalScope.msCrypto === "object" && typeof util3.globalScope.msCrypto.subtle === "object" && typeof util3.globalScope.msCrypto.subtle[fn] === "function"; } function _intToUint8Array(x) { var bytes = forge.util.hexToBytes(x.toString(16)); @@ -137516,13 +137836,13 @@ var require_x509 = __commonJS({ options = { name: options }; } var rval = null; - var ext; + var ext2; for (var i = 0; rval === null && i < cert.extensions.length; ++i) { - ext = cert.extensions[i]; - if (options.id && ext.id === options.id) { - rval = ext; - } else if (options.name && ext.name === options.name) { - rval = ext; + ext2 = cert.extensions[i]; + if (options.id && ext2.id === options.id) { + rval = ext2; + } else if (options.name && ext2.name === options.name) { + rval = ext2; } } return rval; @@ -137600,10 +137920,10 @@ var require_x509 = __commonJS({ cert.verifySubjectKeyIdentifier = function() { var oid = oids["subjectKeyIdentifier"]; for (var i = 0; i < cert.extensions.length; ++i) { - var ext = cert.extensions[i]; - if (ext.id === oid) { + var ext2 = cert.extensions[i]; + if (ext2.id === oid) { var ski = cert.generateSubjectKeyIdentifier().getBytes(); - return forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski; + return forge.util.hexToBytes(ext2.subjectKeyIdentifier) === ski; } } return false; @@ -137721,15 +138041,15 @@ var require_x509 = __commonJS({ } return rval; }; - pki2.certificateExtensionFromAsn1 = function(ext) { + pki2.certificateExtensionFromAsn1 = function(ext2) { var e = {}; - e.id = asn1.derToOid(ext.value[0].value); + e.id = asn1.derToOid(ext2.value[0].value); e.critical = false; - if (ext.value[1].type === asn1.Type.BOOLEAN) { - e.critical = ext.value[1].value.charCodeAt(0) !== 0; - e.value = ext.value[2].value; + if (ext2.value[1].type === asn1.Type.BOOLEAN) { + e.critical = ext2.value[1].value.charCodeAt(0) !== 0; + e.value = ext2.value[2].value; } else { - e.value = ext.value[1].value; + e.value = ext2.value[1].value; } if (e.id in oids) { e.name = oids[e.id]; @@ -138588,15 +138908,15 @@ var require_x509 = __commonJS({ } return rval; }; - pki2.certificateExtensionToAsn1 = function(ext) { + pki2.certificateExtensionToAsn1 = function(ext2) { var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); extseq.value.push(asn1.create( asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(ext.id).getBytes() + asn1.oidToDer(ext2.id).getBytes() )); - if (ext.critical) { + if (ext2.critical) { extseq.value.push(asn1.create( asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, @@ -138604,8 +138924,8 @@ var require_x509 = __commonJS({ String.fromCharCode(255) )); } - var value = ext.value; - if (typeof ext.value !== "string") { + var value = ext2.value; + if (typeof ext2.value !== "string") { value = asn1.toDer(value).getBytes(); } extseq.value.push(asn1.create( @@ -138673,16 +138993,16 @@ var require_x509 = __commonJS({ if (typeof cert2 === "string") { cert2 = forge.pki.certificateFromPem(cert2); } - var match = getBySubject(cert2.subject); - if (!match) { + var match2 = getBySubject(cert2.subject); + if (!match2) { return false; } - if (!forge.util.isArray(match)) { - match = [match]; + if (!forge.util.isArray(match2)) { + match2 = [match2]; } var der1 = asn1.toDer(pki2.certificateToAsn1(cert2)).getBytes(); - for (var i2 = 0; i2 < match.length; ++i2) { - var der2 = asn1.toDer(pki2.certificateToAsn1(match[i2])).getBytes(); + for (var i2 = 0; i2 < match2.length; ++i2) { + var der2 = asn1.toDer(pki2.certificateToAsn1(match2[i2])).getBytes(); if (der1 === der2) { return true; } @@ -138714,21 +139034,21 @@ var require_x509 = __commonJS({ if (!caStore.hasCertificate(cert2)) { return null; } - var match = getBySubject(cert2.subject); - if (!forge.util.isArray(match)) { + var match2 = getBySubject(cert2.subject); + if (!forge.util.isArray(match2)) { result = caStore.certs[cert2.subject.hash]; delete caStore.certs[cert2.subject.hash]; return result; } var der1 = asn1.toDer(pki2.certificateToAsn1(cert2)).getBytes(); - for (var i2 = 0; i2 < match.length; ++i2) { - var der2 = asn1.toDer(pki2.certificateToAsn1(match[i2])).getBytes(); + for (var i2 = 0; i2 < match2.length; ++i2) { + var der2 = asn1.toDer(pki2.certificateToAsn1(match2[i2])).getBytes(); if (der1 === der2) { - result = match[i2]; - match.splice(i2, 1); + result = match2[i2]; + match2.splice(i2, 1); } } - if (match.length === 0) { + if (match2.length === 0) { delete caStore.certs[cert2.subject.hash]; } return result; @@ -138838,8 +139158,8 @@ var require_x509 = __commonJS({ basicConstraints: true }; for (var i = 0; error3 === null && i < cert.extensions.length; ++i) { - var ext = cert.extensions[i]; - if (ext.critical && !(ext.name in se)) { + var ext2 = cert.extensions[i]; + if (ext2.critical && !(ext2.name in se)) { error3 = { message: "Certificate has an unsupported critical extension.", error: pki2.certificateError.unsupported_certificate @@ -139137,20 +139457,20 @@ var require_pkcs12 = __commonJS({ * attribute was given but a bag type, the map key will be the * bag type. */ - getBags: function(filter) { + getBags: function(filter2) { var rval = {}; var localKeyId; - if ("localKeyId" in filter) { - localKeyId = filter.localKeyId; - } else if ("localKeyIdHex" in filter) { - localKeyId = forge.util.hexToBytes(filter.localKeyIdHex); + if ("localKeyId" in filter2) { + localKeyId = filter2.localKeyId; + } else if ("localKeyIdHex" in filter2) { + localKeyId = forge.util.hexToBytes(filter2.localKeyIdHex); } - if (localKeyId === void 0 && !("friendlyName" in filter) && "bagType" in filter) { - rval[filter.bagType] = _getBagsByAttribute( + if (localKeyId === void 0 && !("friendlyName" in filter2) && "bagType" in filter2) { + rval[filter2.bagType] = _getBagsByAttribute( pfx.safeContents, null, null, - filter.bagType + filter2.bagType ); } if (localKeyId !== void 0) { @@ -139158,15 +139478,15 @@ var require_pkcs12 = __commonJS({ pfx.safeContents, "localKeyId", localKeyId, - filter.bagType + filter2.bagType ); } - if ("friendlyName" in filter) { + if ("friendlyName" in filter2) { rval.friendlyName = _getBagsByAttribute( pfx.safeContents, "friendlyName", - filter.friendlyName, - filter.bagType + filter2.friendlyName, + filter2.bagType ); } return rval; @@ -140112,9 +140432,9 @@ var require_tls = __commonJS({ } if (!client) { for (var i = 0; i < msg.extensions.length; ++i) { - var ext = msg.extensions[i]; - if (ext.type[0] === 0 && ext.type[1] === 0) { - var snl = readVector(ext.data, 2); + var ext2 = msg.extensions[i]; + if (ext2.type[0] === 0 && ext2.type[1] === 0) { + var snl = readVector(ext2.data, 2); while (snl.length() > 0) { var snType = snl.getByte(); if (snType !== 0) { @@ -141110,16 +141430,16 @@ var require_tls = __commonJS({ var cMethods = compressionMethods.length(); var extensions = forge.util.createBuffer(); if (c.virtualHost) { - var ext = forge.util.createBuffer(); - ext.putByte(0); - ext.putByte(0); + var ext2 = forge.util.createBuffer(); + ext2.putByte(0); + ext2.putByte(0); var serverName = forge.util.createBuffer(); serverName.putByte(0); writeVector(serverName, 2, forge.util.createBuffer(c.virtualHost)); var snList = forge.util.createBuffer(); writeVector(snList, 2, serverName); - writeVector(ext, 2, snList); - extensions.putBuffer(ext); + writeVector(ext2, 2, snList); + extensions.putBuffer(ext2); } var extLength = extensions.length(); if (extLength > 0) { @@ -144405,14 +144725,14 @@ var require_pkcs7 = __commonJS({ if (rAttr.length !== sAttr.length) { continue; } - var match = true; + var match2 = true; for (var j = 0; j < sAttr.length; ++j) { if (rAttr[j].type !== sAttr[j].type || rAttr[j].value !== sAttr[j].value) { - match = false; + match2 = false; break; } } - if (match) { + if (match2) { return r; } } @@ -145073,21 +145393,21 @@ async function getFolderSize(itemPath, options) { getFolderSize.loose = async (itemPath, options) => await core(itemPath, options); getFolderSize.strict = async (itemPath, options) => await core(itemPath, options, { strict: true }); async function core(rootItemPath, options = {}, returnType = {}) { - const fs30 = options.fs || await import("node:fs/promises"); + const fs31 = options.fs || await import("node:fs/promises"); let folderSize = 0n; const foundInos = /* @__PURE__ */ new Set(); const errors = []; await processItem(rootItemPath); async function processItem(itemPath) { if (options.ignore?.test(itemPath)) return; - const stats = returnType.strict ? await fs30.lstat(itemPath, { bigint: true }) : await fs30.lstat(itemPath, { bigint: true }).catch((error3) => errors.push(error3)); + const stats = returnType.strict ? await fs31.lstat(itemPath, { bigint: true }) : await fs31.lstat(itemPath, { bigint: true }).catch((error3) => errors.push(error3)); if (typeof stats !== "object") return; if (!foundInos.has(stats.ino)) { foundInos.add(stats.ino); folderSize += stats.size; } if (stats.isDirectory()) { - const directoryItems = returnType.strict ? await fs30.readdir(itemPath) : await fs30.readdir(itemPath).catch((error3) => errors.push(error3)); + const directoryItems = returnType.strict ? await fs31.readdir(itemPath) : await fs31.readdir(itemPath).catch((error3) => errors.push(error3)); if (typeof directoryItems !== "object") return; await Promise.all( directoryItems.map( @@ -145157,8 +145477,8 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function extend(target, source) { if (source) { const sourceKeys = Object.keys(source); - for (let index = 0, length = sourceKeys.length; index < length; index += 1) { - const key = sourceKeys[index]; + for (let index2 = 0, length = sourceKeys.length; index2 < length; index2 += 1) { + const key = sourceKeys[index2]; target[key] = source[key]; } } @@ -145237,12 +145557,12 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { const re = /\r?\n|\r|\0/g; const lineStarts = [0]; const lineEnds = []; - let match; + let match2; let foundLineNo = -1; - while (match = re.exec(mark.buffer)) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2; + while (match2 = re.exec(mark.buffer)) { + lineEnds.push(match2.index); + lineStarts.push(match2.index + match2[0].length); + if (mark.position <= match2.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2; } if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; let result = ""; @@ -145351,7 +145671,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { result.multi["fallback"].push(type); } else result[type.kind][type.tag] = result["fallback"][type.tag] = type; } - for (let index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType); + for (let index2 = 0, length = arguments.length; index2 < length; index2 += 1) arguments[index2].forEach(collectType); return result; } function Schema2(definition) { @@ -145500,42 +145820,42 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function resolveYamlInteger(data) { if (data === null) return false; const max = data.length; - let index = 0; + let index2 = 0; let hasDigits = false; if (!max) return false; - let ch = data[index]; - if (ch === "-" || ch === "+") ch = data[++index]; + let ch = data[index2]; + if (ch === "-" || ch === "+") ch = data[++index2]; if (ch === "0") { - if (index + 1 === max) return true; - ch = data[++index]; + if (index2 + 1 === max) return true; + ch = data[++index2]; if (ch === "b") { - index++; - for (; index < max; index++) { - ch = data[index]; + index2++; + for (; index2 < max; index2++) { + ch = data[index2]; if (ch !== "0" && ch !== "1") return false; hasDigits = true; } return hasDigits && Number.isFinite(parseYamlInteger(data)); } if (ch === "x") { - index++; - for (; index < max; index++) { - if (!isHexCode(data.charCodeAt(index))) return false; + index2++; + for (; index2 < max; index2++) { + if (!isHexCode(data.charCodeAt(index2))) return false; hasDigits = true; } return hasDigits && Number.isFinite(parseYamlInteger(data)); } if (ch === "o") { - index++; - for (; index < max; index++) { - if (!isOctCode(data.charCodeAt(index))) return false; + index2++; + for (; index2 < max; index2++) { + if (!isOctCode(data.charCodeAt(index2))) return false; hasDigits = true; } return hasDigits && Number.isFinite(parseYamlInteger(data)); } } - for (; index < max; index++) { - if (!isDecCode(data.charCodeAt(index))) return false; + for (; index2 < max; index2++) { + if (!isDecCode(data.charCodeAt(index2))) return false; hasDigits = true; } if (!hasDigits) return false; @@ -145677,26 +145997,26 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function constructYamlTimestamp(data) { let fraction = 0; let delta = null; - let match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - if (match === null) throw new Error("Date resolve error"); - const year = +match[1]; - const month = +match[2] - 1; - const day = +match[3]; - if (!match[4]) return new Date(Date.UTC(year, month, day)); - const hour = +match[4]; - const minute = +match[5]; - const second = +match[6]; - if (match[7]) { - fraction = match[7].slice(0, 3); + let match2 = YAML_DATE_REGEXP.exec(data); + if (match2 === null) match2 = YAML_TIMESTAMP_REGEXP.exec(data); + if (match2 === null) throw new Error("Date resolve error"); + const year = +match2[1]; + const month = +match2[2] - 1; + const day = +match2[3]; + if (!match2[4]) return new Date(Date.UTC(year, month, day)); + const hour = +match2[4]; + const minute = +match2[5]; + const second = +match2[6]; + if (match2[7]) { + fraction = match2[7].slice(0, 3); while (fraction.length < 3) fraction += "0"; fraction = +fraction; } - if (match[9]) { - const tzHour = +match[10]; - const tzMinute = +(match[11] || 0); + if (match2[9]) { + const tzHour = +match2[10]; + const tzMinute = +(match2[11] || 0); delta = (tzHour * 60 + tzMinute) * 6e4; - if (match[9] === "-") delta = -delta; + if (match2[9] === "-") delta = -delta; } const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); if (delta) date.setTime(date.getTime() - delta); @@ -145816,8 +146136,8 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { if (data === null) return true; const objectKeys = []; const object = data; - for (let index = 0, length = object.length; index < length; index += 1) { - const pair = object[index]; + for (let index2 = 0, length = object.length; index2 < length; index2 += 1) { + const pair = object[index2]; let pairHasKey = false; if (_toString.call(pair) !== "[object Object]") return false; let pairKey; @@ -145845,12 +146165,12 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { if (data === null) return true; const object = data; const result = new Array(object.length); - for (let index = 0, length = object.length; index < length; index += 1) { - const pair = object[index]; + for (let index2 = 0, length = object.length; index2 < length; index2 += 1) { + const pair = object[index2]; if (_toString.call(pair) !== "[object Object]") return false; const keys = Object.keys(pair); if (keys.length !== 1) return false; - result[index] = [keys[0], pair[keys[0]]]; + result[index2] = [keys[0], pair[keys[0]]]; } return true; } @@ -145858,10 +146178,10 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { if (data === null) return []; const object = data; const result = new Array(object.length); - for (let index = 0, length = object.length; index < length; index += 1) { - const pair = object[index]; + for (let index2 = 0, length = object.length; index2 < length; index2 += 1) { + const pair = object[index2]; const keys = Object.keys(pair); - result[index] = [keys[0], pair[keys[0]]]; + result[index2] = [keys[0], pair[keys[0]]]; } return result; } @@ -146071,18 +146391,18 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { if (transactions.length === 0) return; const parent = transactions[transactions.length - 1]; const names = Object.keys(transaction); - for (let index = 0, length = names.length; index < length; index += 1) { - const name = names[index]; + for (let index2 = 0, length = names.length; index2 < length; index2 += 1) { + const name = names[index2]; if (!_hasOwnProperty.call(parent, name)) parent[name] = transaction[name]; } } function rollbackAnchorTransaction(state) { const transaction = state.anchorMapTransactions.pop(); const names = Object.keys(transaction); - for (let index = names.length - 1; index >= 0; index -= 1) { - const entry = transaction[names[index]]; - if (entry.existed) state.anchorMap[names[index]] = entry.value; - else delete state.anchorMap[names[index]]; + for (let index2 = names.length - 1; index2 >= 0; index2 -= 1) { + const entry = transaction[names[index2]]; + if (entry.existed) state.anchorMap[names[index2]] = entry.value; + else delete state.anchorMap[names[index2]]; } } function snapshotState(state) { @@ -146113,10 +146433,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { YAML: function handleYamlDirective(state, name, args) { if (state.version !== null) throwError(state, "duplication of %YAML directive"); if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument"); - const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - if (match === null) throwError(state, "ill-formed argument of the YAML directive"); - const major = parseInt(match[1], 10); - const minor = parseInt(match[2], 10); + const match2 = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); + if (match2 === null) throwError(state, "ill-formed argument of the YAML directive"); + const major = parseInt(match2[1], 10); + const minor = parseInt(match2[2], 10); if (major !== 1) throwError(state, "unacceptable YAML version of the document"); state.version = args[0]; state.checkLineBreaks = minor < 2; @@ -146152,8 +146472,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function mergeMappings(state, destination, source, overridableKeys) { if (!common.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable"); const sourceKeys = Object.keys(source); - for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - const key = sourceKeys[index]; + for (let index2 = 0, quantity = sourceKeys.length; index2 < quantity; index2 += 1) { + const key = sourceKeys[index2]; if (!_hasOwnProperty.call(destination, key)) { setProperty2(destination, key, source[key]); overridableKeys[key] = true; @@ -146163,9 +146483,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) { if (Array.isArray(keyNode)) { keyNode = Array.prototype.slice.call(keyNode); - for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys"); - if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]"; + for (let index2 = 0, quantity = keyNode.length; index2 < quantity; index2 += 1) { + if (Array.isArray(keyNode[index2])) throwError(state, "nested arrays are not supported inside keys"); + if (typeof keyNode === "object" && _class(keyNode[index2]) === "[object Object]") keyNode[index2] = "[object Object]"; } } if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]"; @@ -146174,8 +146494,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) { if (valueNode.length > state.maxMergeSeqLength) throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")"); const seen = /* @__PURE__ */ new Set(); - for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) { - const src = valueNode[index]; + for (let index2 = 0, quantity = valueNode.length; index2 < quantity; index2 += 1) { + const src = valueNode[index2]; if (seen.has(src)) continue; seen.add(src); mergeMappings(state, _result, src, overridableKeys); @@ -146933,7 +147253,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { } const documents = loadDocuments(input, options); if (typeof iterator2 !== "function") return documents; - for (let index = 0, length = documents.length; index < length; index += 1) iterator2(documents[index]); + for (let index2 = 0, length = documents.length; index2 < length; index2 += 1) iterator2(documents[index2]); } function load2(input, options) { const documents = loadDocuments(input, options); @@ -147014,8 +147334,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { if (map === null) return {}; const result = {}; const keys = Object.keys(map); - for (let index = 0, length = keys.length; index < length; index += 1) { - let tag = keys[index]; + for (let index2 = 0, length = keys.length; index2 < length; index2 += 1) { + let tag = keys[index2]; let style = String(map[tag]); if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2); const type = schema.compiledTypeMap["fallback"][tag]; @@ -147088,7 +147408,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { return "\n" + common.repeat(" ", state.indent * level); } function testImplicitResolving(state, str) { - for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) if (state.implicitTypes[index].resolve(str)) return true; + for (let index2 = 0, length = state.implicitTypes.length; index2 < length; index2 += 1) if (state.implicitTypes[index2].resolve(str)) return true; return false; } function isWhitespace(c) { @@ -147212,10 +147532,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { })(); let prevMoreIndented = string2[0] === "\n" || string2[0] === " "; let moreIndented; - let match; - while (match = lineRe.exec(string2)) { - const prefix = match[1]; - const line = match[2]; + let match2; + while (match2 = lineRe.exec(string2)) { + const prefix = match2[1]; + const line = match2[2]; moreIndented = line[0] === " "; result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width); prevMoreIndented = moreIndented; @@ -147225,14 +147545,14 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function foldLine(line, width) { if (line === "" || line[0] === " ") return line; const breakRe = / [^ ]/g; - let match; + let match2; let start = 0; let end; let curr = 0; let next = 0; let result = ""; - while (match = breakRe.exec(line)) { - next = match.index; + while (match2 = breakRe.exec(line)) { + next = match2.index; if (next - start > width) { end = curr > start ? curr : next; result += "\n" + line.slice(start, end); @@ -147261,9 +147581,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function writeFlowSequence(state, level, object) { let _result = ""; const _tag = state.tag; - for (let index = 0, length = object.length; index < length; index += 1) { - let value = object[index]; - if (state.replacer) value = state.replacer.call(object, String(index), value); + for (let index2 = 0, length = object.length; index2 < length; index2 += 1) { + let value = object[index2]; + if (state.replacer) value = state.replacer.call(object, String(index2), value); if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) { if (_result !== "") _result += "," + (!state.condenseFlow ? " " : ""); _result += state.dump; @@ -147275,9 +147595,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { function writeBlockSequence(state, level, object, compact) { let _result = ""; const _tag = state.tag; - for (let index = 0, length = object.length; index < length; index += 1) { - let value = object[index]; - if (state.replacer) value = state.replacer.call(object, String(index), value); + for (let index2 = 0, length = object.length; index2 < length; index2 += 1) { + let value = object[index2]; + if (state.replacer) value = state.replacer.call(object, String(index2), value); if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) { if (!compact || _result !== "") _result += generateNextLine(state, level); if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) _result += "-"; @@ -147292,11 +147612,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { let _result = ""; const _tag = state.tag; const objectKeyList = Object.keys(object); - for (let index = 0, length = objectKeyList.length; index < length; index += 1) { + for (let index2 = 0, length = objectKeyList.length; index2 < length; index2 += 1) { let pairBuffer = ""; if (_result !== "") pairBuffer += ", "; if (state.condenseFlow) pairBuffer += '"'; - const objectKey = objectKeyList[index]; + const objectKey = objectKeyList[index2]; let objectValue = object[objectKey]; if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue); if (!writeNode(state, level, objectKey, false, false)) continue; @@ -147316,10 +147636,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { if (state.sortKeys === true) objectKeyList.sort(); else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys); else if (state.sortKeys) throw new YAMLException2("sortKeys must be a boolean or a function"); - for (let index = 0, length = objectKeyList.length; index < length; index += 1) { + for (let index2 = 0, length = objectKeyList.length; index2 < length; index2 += 1) { let pairBuffer = ""; if (!compact || _result !== "") pairBuffer += generateNextLine(state, level); - const objectKey = objectKeyList[index]; + const objectKey = objectKeyList[index2]; let objectValue = object[objectKey]; if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue); if (!writeNode(state, level + 1, objectKey, true, true, true)) continue; @@ -147339,8 +147659,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { } function detectType(state, object, explicit) { const typeList = explicit ? state.explicitTypes : state.implicitTypes; - for (let index = 0, length = typeList.length; index < length; index += 1) { - const type = typeList[index]; + for (let index2 = 0, length = typeList.length; index2 < length; index2 += 1) { + const type = typeList[index2]; if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) { if (explicit) if (type.multi && type.representName) state.tag = type.representName(object); else state.tag = type.tag; @@ -147413,14 +147733,14 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports2, module2) => { const duplicatesIndexes = []; inspectNode(object, objects, duplicatesIndexes); const length = duplicatesIndexes.length; - for (let index = 0; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]); + for (let index2 = 0; index2 < length; index2 += 1) state.duplicates.push(objects[duplicatesIndexes[index2]]); state.usedDuplicates = new Array(length); } function inspectNode(object, objects, duplicatesIndexes) { if (object !== null && typeof object === "object") { - const index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index); + const index2 = objects.indexOf(object); + if (index2 !== -1) { + if (duplicatesIndexes.indexOf(index2) === -1) duplicatesIndexes.push(index2); } else { objects.push(object); if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes); @@ -147936,8 +148256,8 @@ async function bundleDb(config, language, codeql, dbName, { includeDiagnostics } } async function delay(milliseconds, opts) { const { allowProcessExit } = opts || {}; - return new Promise((resolve13) => { - const timer = setTimeout(resolve13, milliseconds); + return new Promise((resolve14) => { + const timer = setTimeout(resolve14, milliseconds); if (allowProcessExit) { timer.unref(); } @@ -148086,13 +148406,13 @@ function checkActionVersion(version, githubVersion) { } } } -function satisfiesGHESVersion(ghesVersion, range, defaultIfInvalid) { +function satisfiesGHESVersion(ghesVersion, range2, defaultIfInvalid) { const semverVersion = semver.coerce(ghesVersion); if (semverVersion === null) { return defaultIfInvalid; } semverVersion.prerelease = []; - return semver.satisfies(semverVersion, range); + return semver.satisfies(semverVersion, range2); } var BuildMode = /* @__PURE__ */ ((BuildMode3) => { BuildMode3["None"] = "none"; @@ -148126,7 +148446,7 @@ async function isBinaryAccessible(binary, logger) { } async function asyncFilter(array, predicate) { const results = await Promise.all(array.map(predicate)); - return array.filter((_2, index) => results[index]); + return array.filter((_2, index2) => results[index2]); } async function asyncSome(array, predicate) { const results = await Promise.all(array.map(predicate)); @@ -148799,9 +149119,9 @@ async function getGitVersionOrThrow() { ["--version"], "Failed to get git version." ); - const match = stdout.trim().match(/^git version ((\d+\.\d+\.\d+).*)$/); - if (match?.[1] && match?.[2]) { - return new GitVersionInfo(match[2], match[1]); + const match2 = stdout.trim().match(/^git version ((\d+\.\d+\.\d+).*)$/); + if (match2?.[1] && match2?.[2]) { + return new GitVersionInfo(match2[2], match2[1]); } throw new Error(`Could not parse Git version from output: ${stdout.trim()}`); } @@ -148940,10 +149260,10 @@ var getFileOidsUnderPath = async function(basePath) { const regex = /^[0-9]+ ([0-9a-f]{40}|[0-9a-f]{64}) [0-9]+\t(.+)$/; for (const line of stdout.split("\n")) { if (line) { - const match = line.match(regex); - if (match) { - const oid = match[1]; - const filePath = decodeGitFilePath(match[2]); + const match2 = line.match(regex); + if (match2) { + const oid = match2[1]; + const filePath = decodeGitFilePath(match2[2]); fileOidMap[filePath] = oid; } else { throw new Error(`Unexpected "git ls-files" output: ${line}`); @@ -149035,9 +149355,9 @@ async function getGeneratedFiles(workingDirectory) { const generatedFiles = []; const regex = /^([^:]+): linguist-generated: true$/; for (const result of stdout.split(os2.EOL)) { - const match = result.match(regex); - if (match && match[1].trim().length > 0) { - generatedFiles.push(match[1].trim()); + const match2 = result.match(regex); + if (match2 && match2[1].trim().length > 0) { + generatedFiles.push(match2[1].trim()); } } return generatedFiles; @@ -149924,12 +150244,12 @@ function extractFatalErrors(error3) { const fatalErrorRegex = /.*fatal (internal )?error occurr?ed(. Details)?:/gi; let fatalErrors = []; let lastFatalErrorIndex; - let match; - while ((match = fatalErrorRegex.exec(error3)) !== null) { + let match2; + while ((match2 = fatalErrorRegex.exec(error3)) !== null) { if (lastFatalErrorIndex !== void 0) { - fatalErrors.push(error3.slice(lastFatalErrorIndex, match.index).trim()); + fatalErrors.push(error3.slice(lastFatalErrorIndex, match2.index).trim()); } - lastFatalErrorIndex = match.index; + lastFatalErrorIndex = match2.index; } if (lastFatalErrorIndex !== void 0) { const lastError = error3.slice(lastFatalErrorIndex).trim(); @@ -149950,7 +150270,7 @@ function extractFatalErrors(error3) { } function extractAutobuildErrors(error3) { const pattern = /.*\[autobuild\] \[ERROR\] (.*)/gi; - let errorLines = [...error3.matchAll(pattern)].map((match) => match[1]); + let errorLines = [...error3.matchAll(pattern)].map((match2) => match2[1]); if (errorLines.length > 10) { errorLines = errorLines.slice(0, 10); errorLines.push("(truncated)"); @@ -150912,14 +151232,14 @@ function getDiffRanges(fileDiff, logger) { additionRangeStartLine = void 0; } if (diffLine.startsWith("@@ ")) { - const match = diffLine.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/); - if (match === null) { + const match2 = diffLine.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/); + if (match2 === null) { logger.warning( `Cannot parse diff hunk header for ${fileDiff.filename}: ${diffLine}` ); return void 0; } - currentLine = parseInt(match[1], 10); + currentLine = parseInt(match2[1], 10); continue; } if (diffLine.startsWith(" ")) { @@ -152587,9 +152907,9 @@ async function getCodeQlVersionsForOverlayBaseDatabases(rawLanguages, logger) { for (const cache of caches) { if (!cache.key) continue; const suffix = cache.key.substring(cacheKeyPrefix.length); - const match = suffix.match(versionRegex); - if (match && semver6.valid(match[1])) { - versionSet.add(match[1]); + const match2 = suffix.match(versionRegex); + if (match2 && semver6.valid(match2[1])) { + versionSet.add(match2[1]); } } if (versionSet.size === 0) { @@ -152629,17 +152949,17 @@ async function getTarVersion() { throw new Error("Failed to call tar --version"); } if (stdout.includes("GNU tar")) { - const match = stdout.match(/tar \(GNU tar\) ([0-9.]+)/); - if (!match?.[1]) { + const match2 = stdout.match(/tar \(GNU tar\) ([0-9.]+)/); + if (!match2?.[1]) { throw new Error("Failed to parse output of tar --version."); } - return { type: "gnu", version: match[1] }; + return { type: "gnu", version: match2[1] }; } else if (stdout.includes("bsdtar")) { - const match = stdout.match(/bsdtar ([0-9.]+)/); - if (!match?.[1]) { + const match2 = stdout.match(/bsdtar ([0-9.]+)/); + if (!match2?.[1]) { throw new Error("Failed to parse output of tar --version."); } - return { type: "bsd", version: match[1] }; + return { type: "bsd", version: match2[1] }; } else { throw new Error("Unknown tar version"); } @@ -152708,7 +153028,7 @@ async function extractTarZst(tar, dest, tarVersion, logger) { args.push("-f", tar instanceof stream.Readable ? "-" : tar, "-C", dest); process.stdout.write(`[command]tar ${args.join(" ")} `); - await new Promise((resolve13, reject) => { + await new Promise((resolve14, reject) => { const tarProcess = (0, import_child_process.spawn)("tar", args, { stdio: "pipe" }); let stdout = ""; tarProcess.stdout?.on("data", (data) => { @@ -152742,7 +153062,7 @@ async function extractTarZst(tar, dest, tarVersion, logger) { ) ); } - resolve13(); + resolve14(); }); }); } catch (e) { @@ -152755,8 +153075,8 @@ var KNOWN_EXTENSIONS = { "tar.zst": "zstd" }; function inferCompressionMethod(tarPath) { - for (const [ext, method] of Object.entries(KNOWN_EXTENSIONS)) { - if (tarPath.endsWith(`.${ext}`)) { + for (const [ext2, method] of Object.entries(KNOWN_EXTENSIONS)) { + if (tarPath.endsWith(`.${ext2}`)) { return method; } } @@ -152879,7 +153199,7 @@ async function downloadAndExtractZstdWithStreaming(codeqlURL, dest, authorizatio headers ); const response = await new Promise( - (resolve13) => import_follow_redirects.https.get( + (resolve14) => import_follow_redirects.https.get( codeqlURL, { headers, @@ -152888,7 +153208,7 @@ async function downloadAndExtractZstdWithStreaming(codeqlURL, dest, authorizatio // Use the agent to respect proxy settings. agent }, - (r) => resolve13(r) + (r) => resolve14(r) ) ); if (response.statusCode !== 200) { @@ -152968,8 +153288,8 @@ async function getCodeQLBundleDownloadURL(tagName, apiDetails, compressionMethod [GITHUB_DOTCOM_URL, CODEQL_DEFAULT_ACTION_REPOSITORY] ]; const uniqueDownloadSources = potentialDownloadSources.filter( - (source, index, self2) => { - return !self2.slice(0, index).some((other) => (0, import_fast_deep_equal.default)(source, other)); + (source, index2, self2) => { + return !self2.slice(0, index2).some((other) => (0, import_fast_deep_equal.default)(source, other)); } ); const codeQLBundleName = getCodeQLBundleName(compressionMethod); @@ -153002,12 +153322,12 @@ async function getCodeQLBundleDownloadURL(tagName, apiDetails, compressionMethod return `https://github.com/${CODEQL_DEFAULT_ACTION_REPOSITORY}/releases/download/${tagName}/${codeQLBundleName}`; } function tryGetBundleVersionFromTagName(tagName, logger) { - const match = tagName.match(/^codeql-bundle-(.*)$/); - if (match === null || match.length < 2) { + const match2 = tagName.match(/^codeql-bundle-(.*)$/); + if (match2 === null || match2.length < 2) { logger.debug(`Could not determine bundle version from tag ${tagName}.`); return void 0; } - return match[1]; + return match2[1]; } function tryGetTagNameFromUrl(url2, logger) { const matches = [...url2.matchAll(/\/(codeql-bundle-[^/]*)\//g)]; @@ -153015,16 +153335,16 @@ function tryGetTagNameFromUrl(url2, logger) { logger.debug(`Could not determine tag name for URL ${url2}.`); return void 0; } - const match = matches[matches.length - 1]; - if (match?.length !== 2) { + const match2 = matches[matches.length - 1]; + if (match2?.length !== 2) { logger.debug( `Could not determine tag name for URL ${url2}. Matched ${JSON.stringify( - match + match2 )}.` ); return void 0; } - return match[1]; + return match2[1]; } function convertToSemVer(version, logger) { if (!semver9.valid(version)) { @@ -154012,9 +154332,9 @@ ${output}` ]; if (await this.supportsFeature("bundleSupportsIncludeOption" /* BundleSupportsIncludeOption */)) { args.push( - ...alsoIncludeRelativePaths.flatMap((relativePath) => [ + ...alsoIncludeRelativePaths.flatMap((relativePath2) => [ "--include", - relativePath + relativePath2 ]) ); } @@ -154737,9 +155057,9 @@ extensions: checkPresence: false data: `; - let data = ranges.map((range) => { - const filename = path15.join(checkoutPath, range.path).replaceAll(path15.sep, "/"); - return ` - [${dump(filename, { forceQuotes: true }).trim()}, ${range.startLine}, ${range.endLine}] + let data = ranges.map((range2) => { + const filename = path15.join(checkoutPath, range2.path).replaceAll(path15.sep, "/"); + return ` - [${dump(filename, { forceQuotes: true }).trim()}, ${range2.startLine}, ${range2.endLine}] `; }).join(""); if (!data) { @@ -155058,7 +155378,7 @@ async function cleanupAndUploadDatabases(repositoryNwo, codeql, config, apiDetai logger.debug( `Database upload attempt ${attempt} of ${maxAttempts} failed for ${language}: ${getErrorMessage(e)}. Retrying in ${backoffMs / 1e3}s...` ); - await new Promise((resolve13) => setTimeout(resolve13, backoffMs)); + await new Promise((resolve14) => setTimeout(resolve14, backoffMs)); } } reports.push({ @@ -156370,7 +156690,7 @@ async function hash(callback, filepath) { const lineNumbers = Array(BLOCK_SIZE).fill(-1); let hashRaw = long_default.ZERO; const firstMod = computeFirstMod(); - let index = 0; + let index2 = 0; let lineNumber = 0; let lineStart = true; let prevCR = false; @@ -156381,14 +156701,14 @@ async function hash(callback, filepath) { hashCounts[hashValue] = 0; } hashCounts[hashValue]++; - callback(lineNumbers[index], `${hashValue}:${hashCounts[hashValue]}`); - lineNumbers[index] = -1; + callback(lineNumbers[index2], `${hashValue}:${hashCounts[hashValue]}`); + lineNumbers[index2] = -1; }; const updateHash = function(current) { - const begin = window2[index]; - window2[index] = current; + const begin = window2[index2]; + window2[index2] = current; hashRaw = MOD.multiply(hashRaw).add(long_default.fromInt(current)).subtract(firstMod.multiply(long_default.fromInt(begin))); - index = (index + 1) % BLOCK_SIZE; + index2 = (index2 + 1) % BLOCK_SIZE; }; const processCharacter = function(current) { if (current === space || current === tab || prevCR && current === lf) { @@ -156401,13 +156721,13 @@ async function hash(callback, filepath) { } else { prevCR = false; } - if (lineNumbers[index] !== -1) { + if (lineNumbers[index2] !== -1) { outputHash(); } if (lineStart) { lineStart = false; lineNumber++; - lineNumbers[index] = lineNumber; + lineNumbers[index2] = lineNumber; } if (current === lf) { lineStart = true; @@ -156422,7 +156742,7 @@ async function hash(callback, filepath) { } processCharacter(EOF); for (let i = 0; i < BLOCK_SIZE; i++) { - if (lineNumbers[index] !== -1) { + if (lineNumbers[index2] !== -1) { outputHash(); } updateHash(0); @@ -157467,7 +157787,7 @@ function filterAlertsByDiffRange(logger, sarifLog) { return false; } return diffRanges.some( - (range) => range.path === locationUri && (range.startLine <= locationStartLine && range.endLine >= locationStartLine || range.startLine === 0 && range.endLine === 0) + (range2) => range2.path === locationUri && (range2.startLine <= locationStartLine && range2.endLine >= locationStartLine || range2.startLine === 0 && range2.endLine === 0) ); }); }); @@ -157570,7 +157890,7 @@ function doesGoExtractionOutputExist(config) { ".trap.tar.gz", ".trap.tar.br", ".trap.tar" - ].some((ext) => fileName.endsWith(ext)) + ].some((ext2) => fileName.endsWith(ext2)) ); } async function runAutobuildIfLegacyGoWorkflow(config, logger) { @@ -157867,21 +158187,4330 @@ async function runWrapper() { } // src/analyze-action-post.ts -var fs25 = __toESM(require("fs")); +var fs26 = __toESM(require("fs")); var core17 = __toESM(require_core()); // src/debug-artifacts.ts -var fs24 = __toESM(require("fs")); -var path21 = __toESM(require("path")); +var fs25 = __toESM(require("fs")); +var path22 = __toESM(require("path")); var artifact = __toESM(require_artifact2()); var artifactLegacy = __toESM(require_artifact_client2()); var core16 = __toESM(require_core()); -var import_archiver = __toESM(require_archiver()); + +// node_modules/archiver/lib/core.js +var import_fs2 = require("fs"); + +// node_modules/is-stream/index.js +function isStream(stream2, { checkOpen = true } = {}) { + return stream2 !== null && typeof stream2 === "object" && (stream2.writable || stream2.readable || !checkOpen || stream2.writable === void 0 && stream2.readable === void 0) && typeof stream2.pipe === "function"; +} + +// node_modules/readdir-glob/dist/index.mjs +var fs23 = __toESM(require("fs"), 1); +var import_events = require("events"); + +// node_modules/readdir-glob/node_modules/balanced-match/dist/esm/index.js +var balanced = (a, b, str) => { + const ma = a instanceof RegExp ? maybeMatch(a, str) : a; + const mb = b instanceof RegExp ? maybeMatch(b, str) : b; + const r = ma !== null && mb != null && range(ma, mb, str); + return r && { + start: r[0], + end: r[1], + pre: str.slice(0, r[0]), + body: str.slice(r[0] + ma.length, r[1]), + post: str.slice(r[1] + mb.length) + }; +}; +var maybeMatch = (reg, str) => { + const m = str.match(reg); + return m ? m[0] : null; +}; +var range = (a, b, str) => { + let begs, beg, left, right = void 0, result; + let ai = str.indexOf(a); + let bi = str.indexOf(b, ai + 1); + let i = ai; + if (ai >= 0 && bi > 0) { + if (a === b) { + return [ai, bi]; + } + begs = []; + left = str.length; + while (i >= 0 && !result) { + if (i === ai) { + begs.push(i); + ai = str.indexOf(a, i + 1); + } else if (begs.length === 1) { + const r = begs.pop(); + if (r !== void 0) + result = [r, bi]; + } else { + beg = begs.pop(); + if (beg !== void 0 && beg < left) { + left = beg; + right = bi; + } + bi = str.indexOf(b, i + 1); + } + i = ai < bi && ai >= 0 ? ai : bi; + } + if (begs.length && right !== void 0) { + result = [left, right]; + } + } + return result; +}; + +// node_modules/readdir-glob/node_modules/brace-expansion/dist/esm/index.js +var escSlash = "\0SLASH" + Math.random() + "\0"; +var escOpen = "\0OPEN" + Math.random() + "\0"; +var escClose = "\0CLOSE" + Math.random() + "\0"; +var escComma = "\0COMMA" + Math.random() + "\0"; +var escPeriod = "\0PERIOD" + Math.random() + "\0"; +var escSlashPattern = new RegExp(escSlash, "g"); +var escOpenPattern = new RegExp(escOpen, "g"); +var escClosePattern = new RegExp(escClose, "g"); +var escCommaPattern = new RegExp(escComma, "g"); +var escPeriodPattern = new RegExp(escPeriod, "g"); +var slashPattern = /\\\\/g; +var openPattern = /\\{/g; +var closePattern = /\\}/g; +var commaPattern = /\\,/g; +var periodPattern = /\\\./g; +var EXPANSION_MAX = 1e5; +function numeric(str) { + return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0); +} +function escapeBraces(str) { + return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod); +} +function unescapeBraces(str) { + return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, "."); +} +function parseCommaParts(str) { + if (!str) { + return [""]; + } + const parts = []; + const m = balanced("{", "}", str); + if (!m) { + return str.split(","); + } + const { pre, body, post } = m; + const p = pre.split(","); + p[p.length - 1] += "{" + body + "}"; + const postParts = parseCommaParts(post); + if (post.length) { + ; + p[p.length - 1] += postParts.shift(); + p.push.apply(p, postParts); + } + parts.push.apply(parts, p); + return parts; +} +function expand2(str, options = {}) { + if (!str) { + return []; + } + const { max = EXPANSION_MAX } = options; + if (str.slice(0, 2) === "{}") { + str = "\\{\\}" + str.slice(2); + } + return expand_(escapeBraces(str), max, true).map(unescapeBraces); +} +function embrace(str) { + return "{" + str + "}"; +} +function isPadded(el) { + return /^-?0\d/.test(el); +} +function lte(i, y) { + return i <= y; +} +function gte6(i, y) { + return i >= y; +} +function expand_(str, max, isTop) { + const expansions = []; + const m = balanced("{", "}", str); + if (!m) + return [str]; + const pre = m.pre; + const post = m.post.length ? expand_(m.post, max, false) : [""]; + if (/\$$/.test(m.pre)) { + for (let k = 0; k < post.length && k < max; k++) { + const expansion = pre + "{" + m.body + "}" + post[k]; + expansions.push(expansion); + } + } else { + const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); + const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); + const isSequence = isNumericSequence || isAlphaSequence; + const isOptions = m.body.indexOf(",") >= 0; + if (!isSequence && !isOptions) { + if (m.post.match(/,(?!,).*\}/)) { + str = m.pre + "{" + m.body + escClose + m.post; + return expand_(str, max, true); + } + return [str]; + } + let n; + if (isSequence) { + n = m.body.split(/\.\./); + } else { + n = parseCommaParts(m.body); + if (n.length === 1 && n[0] !== void 0) { + n = expand_(n[0], max, false).map(embrace); + if (n.length === 1) { + return post.map((p) => m.pre + n[0] + p); + } + } + } + let N; + if (isSequence && n[0] !== void 0 && n[1] !== void 0) { + const x = numeric(n[0]); + const y = numeric(n[1]); + const width = Math.max(n[0].length, n[1].length); + let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1; + let test = lte; + const reverse = y < x; + if (reverse) { + incr *= -1; + test = gte6; + } + const pad = n.some(isPadded); + N = []; + for (let i = x; test(i, y) && N.length < max; i += incr) { + let c; + if (isAlphaSequence) { + c = String.fromCharCode(i); + if (c === "\\") { + c = ""; + } + } else { + c = String(i); + if (pad) { + const need = width - c.length; + if (need > 0) { + const z = new Array(need + 1).join("0"); + if (i < 0) { + c = "-" + z + c.slice(1); + } else { + c = z + c; + } + } + } + } + N.push(c); + } + } else { + N = []; + for (let j = 0; j < n.length; j++) { + N.push.apply(N, expand_(n[j], max, false)); + } + } + for (let j = 0; j < N.length; j++) { + for (let k = 0; k < post.length && expansions.length < max; k++) { + const expansion = pre + N[j] + post[k]; + if (!isTop || isSequence || expansion) { + expansions.push(expansion); + } + } + } + } + return expansions; +} + +// node_modules/readdir-glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js +var MAX_PATTERN_LENGTH = 1024 * 64; +var assertValidPattern = (pattern) => { + if (typeof pattern !== "string") { + throw new TypeError("invalid pattern"); + } + if (pattern.length > MAX_PATTERN_LENGTH) { + throw new TypeError("pattern is too long"); + } +}; + +// node_modules/readdir-glob/node_modules/minimatch/dist/esm/brace-expressions.js +var posixClasses = { + "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true], + "[:alpha:]": ["\\p{L}\\p{Nl}", true], + "[:ascii:]": ["\\x00-\\x7f", false], + "[:blank:]": ["\\p{Zs}\\t", true], + "[:cntrl:]": ["\\p{Cc}", true], + "[:digit:]": ["\\p{Nd}", true], + "[:graph:]": ["\\p{Z}\\p{C}", true, true], + "[:lower:]": ["\\p{Ll}", true], + "[:print:]": ["\\p{C}", true], + "[:punct:]": ["\\p{P}", true], + "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true], + "[:upper:]": ["\\p{Lu}", true], + "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true], + "[:xdigit:]": ["A-Fa-f0-9", false] +}; +var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&"); +var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); +var rangesToString = (ranges) => ranges.join(""); +var parseClass = (glob2, position) => { + const pos = position; + if (glob2.charAt(pos) !== "[") { + throw new Error("not in a brace expression"); + } + const ranges = []; + const negs = []; + let i = pos + 1; + let sawStart = false; + let uflag = false; + let escaping = false; + let negate2 = false; + let endPos = pos; + let rangeStart = ""; + WHILE: while (i < glob2.length) { + const c = glob2.charAt(i); + if ((c === "!" || c === "^") && i === pos + 1) { + negate2 = true; + i++; + continue; + } + if (c === "]" && sawStart && !escaping) { + endPos = i + 1; + break; + } + sawStart = true; + if (c === "\\") { + if (!escaping) { + escaping = true; + i++; + continue; + } + } + if (c === "[" && !escaping) { + for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) { + if (glob2.startsWith(cls, i)) { + if (rangeStart) { + return ["$.", false, glob2.length - pos, true]; + } + i += cls.length; + if (neg) + negs.push(unip); + else + ranges.push(unip); + uflag = uflag || u; + continue WHILE; + } + } + } + escaping = false; + if (rangeStart) { + if (c > rangeStart) { + ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c)); + } else if (c === rangeStart) { + ranges.push(braceEscape(c)); + } + rangeStart = ""; + i++; + continue; + } + if (glob2.startsWith("-]", i + 1)) { + ranges.push(braceEscape(c + "-")); + i += 2; + continue; + } + if (glob2.startsWith("-", i + 1)) { + rangeStart = c; + i += 2; + continue; + } + ranges.push(braceEscape(c)); + i++; + } + if (endPos < i) { + return ["", false, 0, false]; + } + if (!ranges.length && !negs.length) { + return ["$.", false, glob2.length - pos, true]; + } + if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate2) { + const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]; + return [regexpEscape(r), false, endPos - pos, false]; + } + const sranges = "[" + (negate2 ? "^" : "") + rangesToString(ranges) + "]"; + const snegs = "[" + (negate2 ? "" : "^") + rangesToString(negs) + "]"; + const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs; + return [comb, uflag, endPos - pos, true]; +}; + +// node_modules/readdir-glob/node_modules/minimatch/dist/esm/unescape.js +var unescape2 = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => { + if (magicalBraces) { + return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1"); + } + return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1"); +}; + +// node_modules/readdir-glob/node_modules/minimatch/dist/esm/ast.js +var _a; +var types2 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]); +var isExtglobType = (c) => types2.has(c); +var isExtglobAST = (c) => isExtglobType(c.type); +var adoptionMap = /* @__PURE__ */ new Map([ + ["!", ["@"]], + ["?", ["?", "@"]], + ["@", ["@"]], + ["*", ["*", "+", "?", "@"]], + ["+", ["+", "@"]] +]); +var adoptionWithSpaceMap = /* @__PURE__ */ new Map([ + ["!", ["?"]], + ["@", ["?"]], + ["+", ["?", "*"]] +]); +var adoptionAnyMap = /* @__PURE__ */ new Map([ + ["!", ["?", "@"]], + ["?", ["?", "@"]], + ["@", ["?", "@"]], + ["*", ["*", "+", "?", "@"]], + ["+", ["+", "@", "?", "*"]] +]); +var usurpMap = /* @__PURE__ */ new Map([ + ["!", /* @__PURE__ */ new Map([["!", "@"]])], + [ + "?", + /* @__PURE__ */ new Map([ + ["*", "*"], + ["+", "*"] + ]) + ], + [ + "@", + /* @__PURE__ */ new Map([ + ["!", "!"], + ["?", "?"], + ["@", "@"], + ["*", "*"], + ["+", "+"] + ]) + ], + [ + "+", + /* @__PURE__ */ new Map([ + ["?", "*"], + ["*", "*"] + ]) + ] +]); +var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))"; +var startNoDot = "(?!\\.)"; +var addPatternStart = /* @__PURE__ */ new Set(["[", "."]); +var justDots = /* @__PURE__ */ new Set(["..", "."]); +var reSpecials = new Set("().*{}+?[]^$\\!"); +var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); +var qmark = "[^/]"; +var star = qmark + "*?"; +var starNoEmpty = qmark + "+?"; +var ID = 0; +var AST = class { + type; + #root; + #hasMagic; + #uflag = false; + #parts = []; + #parent; + #parentIndex; + #negs; + #filledNegs = false; + #options; + #toString; + // set to true if it's an extglob with no children + // (which really means one child of '') + #emptyExt = false; + id = ++ID; + get depth() { + return (this.#parent?.depth ?? -1) + 1; + } + [/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")]() { + return { + "@@type": "AST", + id: this.id, + type: this.type, + root: this.#root.id, + parent: this.#parent?.id, + depth: this.depth, + partsLength: this.#parts.length, + parts: this.#parts + }; + } + constructor(type, parent, options = {}) { + this.type = type; + if (type) + this.#hasMagic = true; + this.#parent = parent; + this.#root = this.#parent ? this.#parent.#root : this; + this.#options = this.#root === this ? options : this.#root.#options; + this.#negs = this.#root === this ? [] : this.#root.#negs; + if (type === "!" && !this.#root.#filledNegs) + this.#negs.push(this); + this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0; + } + get hasMagic() { + if (this.#hasMagic !== void 0) + return this.#hasMagic; + for (const p of this.#parts) { + if (typeof p === "string") + continue; + if (p.type || p.hasMagic) + return this.#hasMagic = true; + } + return this.#hasMagic; + } + // reconstructs the pattern + toString() { + return this.#toString !== void 0 ? this.#toString : !this.type ? this.#toString = this.#parts.map((p) => String(p)).join("") : this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")"; + } + #fillNegs() { + if (this !== this.#root) + throw new Error("should only call on root"); + if (this.#filledNegs) + return this; + this.toString(); + this.#filledNegs = true; + let n; + while (n = this.#negs.pop()) { + if (n.type !== "!") + continue; + let p = n; + let pp = p.#parent; + while (pp) { + for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) { + for (const part of n.#parts) { + if (typeof part === "string") { + throw new Error("string part in extglob AST??"); + } + part.copyIn(pp.#parts[i]); + } + } + p = pp; + pp = p.#parent; + } + } + return this; + } + push(...parts) { + for (const p of parts) { + if (p === "") + continue; + if (typeof p !== "string" && !(p instanceof _a && p.#parent === this)) { + throw new Error("invalid part: " + p); + } + this.#parts.push(p); + } + } + toJSON() { + const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())]; + if (this.isStart() && !this.type) + ret.unshift([]); + if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) { + ret.push({}); + } + return ret; + } + isStart() { + if (this.#root === this) + return true; + if (!this.#parent?.isStart()) + return false; + if (this.#parentIndex === 0) + return true; + const p = this.#parent; + for (let i = 0; i < this.#parentIndex; i++) { + const pp = p.#parts[i]; + if (!(pp instanceof _a && pp.type === "!")) { + return false; + } + } + return true; + } + isEnd() { + if (this.#root === this) + return true; + if (this.#parent?.type === "!") + return true; + if (!this.#parent?.isEnd()) + return false; + if (!this.type) + return this.#parent?.isEnd(); + const pl = this.#parent ? this.#parent.#parts.length : 0; + return this.#parentIndex === pl - 1; + } + copyIn(part) { + if (typeof part === "string") + this.push(part); + else + this.push(part.clone(this)); + } + clone(parent) { + const c = new _a(this.type, parent); + for (const p of this.#parts) { + c.copyIn(p); + } + return c; + } + static #parseAST(str, ast, pos, opt, extDepth) { + const maxDepth = opt.maxExtglobRecursion ?? 2; + let escaping = false; + let inBrace = false; + let braceStart = -1; + let braceNeg = false; + if (ast.type === null) { + let i2 = pos; + let acc2 = ""; + while (i2 < str.length) { + const c = str.charAt(i2++); + if (escaping || c === "\\") { + escaping = !escaping; + acc2 += c; + continue; + } + if (inBrace) { + if (i2 === braceStart + 1) { + if (c === "^" || c === "!") { + braceNeg = true; + } + } else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) { + inBrace = false; + } + acc2 += c; + continue; + } else if (c === "[") { + inBrace = true; + braceStart = i2; + braceNeg = false; + acc2 += c; + continue; + } + const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth; + if (doRecurse) { + ast.push(acc2); + acc2 = ""; + const ext2 = new _a(c, ast); + i2 = _a.#parseAST(str, ext2, i2, opt, extDepth + 1); + ast.push(ext2); + continue; + } + acc2 += c; + } + ast.push(acc2); + return i2; + } + let i = pos + 1; + let part = new _a(null, ast); + const parts = []; + let acc = ""; + while (i < str.length) { + const c = str.charAt(i++); + if (escaping || c === "\\") { + escaping = !escaping; + acc += c; + continue; + } + if (inBrace) { + if (i === braceStart + 1) { + if (c === "^" || c === "!") { + braceNeg = true; + } + } else if (c === "]" && !(i === braceStart + 2 && braceNeg)) { + inBrace = false; + } + acc += c; + continue; + } else if (c === "[") { + inBrace = true; + braceStart = i; + braceNeg = false; + acc += c; + continue; + } + const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */ + (extDepth <= maxDepth || ast && ast.#canAdoptType(c)); + if (doRecurse) { + const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1; + part.push(acc); + acc = ""; + const ext2 = new _a(c, part); + part.push(ext2); + i = _a.#parseAST(str, ext2, i, opt, extDepth + depthAdd); + continue; + } + if (c === "|") { + part.push(acc); + acc = ""; + parts.push(part); + part = new _a(null, ast); + continue; + } + if (c === ")") { + if (acc === "" && ast.#parts.length === 0) { + ast.#emptyExt = true; + } + part.push(acc); + acc = ""; + ast.push(...parts, part); + return i; + } + acc += c; + } + ast.type = null; + ast.#hasMagic = void 0; + ast.#parts = [str.substring(pos - 1)]; + return i; + } + #canAdoptWithSpace(child) { + return this.#canAdopt(child, adoptionWithSpaceMap); + } + #canAdopt(child, map = adoptionMap) { + if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null) { + return false; + } + const gc = child.#parts[0]; + if (!gc || typeof gc !== "object" || gc.type === null) { + return false; + } + return this.#canAdoptType(gc.type, map); + } + #canAdoptType(c, map = adoptionAnyMap) { + return !!map.get(this.type)?.includes(c); + } + #adoptWithSpace(child, index2) { + const gc = child.#parts[0]; + const blank = new _a(null, gc, this.options); + blank.#parts.push(""); + gc.push(blank); + this.#adopt(child, index2); + } + #adopt(child, index2) { + const gc = child.#parts[0]; + this.#parts.splice(index2, 1, ...gc.#parts); + for (const p of gc.#parts) { + if (typeof p === "object") + p.#parent = this; + } + this.#toString = void 0; + } + #canUsurpType(c) { + const m = usurpMap.get(this.type); + return !!m?.has(c); + } + #canUsurp(child) { + if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) { + return false; + } + const gc = child.#parts[0]; + if (!gc || typeof gc !== "object" || gc.type === null) { + return false; + } + return this.#canUsurpType(gc.type); + } + #usurp(child) { + const m = usurpMap.get(this.type); + const gc = child.#parts[0]; + const nt = m?.get(gc.type); + if (!nt) + return false; + this.#parts = gc.#parts; + for (const p of this.#parts) { + if (typeof p === "object") { + p.#parent = this; + } + } + this.type = nt; + this.#toString = void 0; + this.#emptyExt = false; + } + static fromGlob(pattern, options = {}) { + const ast = new _a(null, void 0, options); + _a.#parseAST(pattern, ast, 0, options, 0); + return ast; + } + // returns the regular expression if there's magic, or the unescaped + // string if not. + toMMPattern() { + if (this !== this.#root) + return this.#root.toMMPattern(); + const glob2 = this.toString(); + const [re, body, hasMagic, uflag] = this.toRegExpSource(); + const anyMagic = hasMagic || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob2.toUpperCase() !== glob2.toLowerCase(); + if (!anyMagic) { + return body; + } + const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : ""); + return Object.assign(new RegExp(`^${re}$`, flags), { + _src: re, + _glob: glob2 + }); + } + get options() { + return this.#options; + } + // returns the string match, the regexp source, whether there's magic + // in the regexp (so a regular expression is required) and whether or + // not the uflag is needed for the regular expression (for posix classes) + // TODO: instead of injecting the start/end at this point, just return + // the BODY of the regexp, along with the start/end portions suitable + // for binding the start/end in either a joined full-path makeRe context + // (where we bind to (^|/), or a standalone matchPart context (where + // we bind to ^, and not /). Otherwise slashes get duped! + // + // In part-matching mode, the start is: + // - if not isStart: nothing + // - if traversal possible, but not allowed: ^(?!\.\.?$) + // - if dots allowed or not possible: ^ + // - if dots possible and not allowed: ^(?!\.) + // end is: + // - if not isEnd(): nothing + // - else: $ + // + // In full-path matching mode, we put the slash at the START of the + // pattern, so start is: + // - if first pattern: same as part-matching mode + // - if not isStart(): nothing + // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/)) + // - if dots allowed or not possible: / + // - if dots possible and not allowed: /(?!\.) + // end is: + // - if last pattern, same as part-matching mode + // - else nothing + // + // Always put the (?:$|/) on negated tails, though, because that has to be + // there to bind the end of the negated pattern portion, and it's easier to + // just stick it in now rather than try to inject it later in the middle of + // the pattern. + // + // We can just always return the same end, and leave it up to the caller + // to know whether it's going to be used joined or in parts. + // And, if the start is adjusted slightly, can do the same there: + // - if not isStart: nothing + // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$) + // - if dots allowed or not possible: (?:/|^) + // - if dots possible and not allowed: (?:/|^)(?!\.) + // + // But it's better to have a simpler binding without a conditional, for + // performance, so probably better to return both start options. + // + // Then the caller just ignores the end if it's not the first pattern, + // and the start always gets applied. + // + // But that's always going to be $ if it's the ending pattern, or nothing, + // so the caller can just attach $ at the end of the pattern when building. + // + // So the todo is: + // - better detect what kind of start is needed + // - return both flavors of starting pattern + // - attach $ at the end of the pattern when creating the actual RegExp + // + // Ah, but wait, no, that all only applies to the root when the first pattern + // is not an extglob. If the first pattern IS an extglob, then we need all + // that dot prevention biz to live in the extglob portions, because eg + // +(*|.x*) can match .xy but not .yx. + // + // So, return the two flavors if it's #root and the first child is not an + // AST, otherwise leave it to the child AST to handle it, and there, + // use the (?:^|/) style of start binding. + // + // Even simplified further: + // - Since the start for a join is eg /(?!\.) and the start for a part + // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root + // or start or whatever) and prepend ^ or / at the Regexp construction. + toRegExpSource(allowDot) { + const dot = allowDot ?? !!this.#options.dot; + if (this.#root === this) { + this.#flatten(); + this.#fillNegs(); + } + if (!isExtglobAST(this)) { + const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string"); + const src = this.#parts.map((p) => { + const [re, _2, hasMagic, uflag] = typeof p === "string" ? _a.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot); + this.#hasMagic = this.#hasMagic || hasMagic; + this.#uflag = this.#uflag || uflag; + return re; + }).join(""); + let start2 = ""; + if (this.isStart()) { + if (typeof this.#parts[0] === "string") { + const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]); + if (!dotTravAllowed) { + const aps = addPatternStart; + const needNoTrav = ( + // dots are allowed, and the pattern starts with [ or . + dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or . + src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or . + src.startsWith("\\.\\.") && aps.has(src.charAt(4)) + ); + const needNoDot = !dot && !allowDot && aps.has(src.charAt(0)); + start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : ""; + } + } + } + let end = ""; + if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") { + end = "(?:$|\\/)"; + } + const final2 = start2 + src + end; + return [ + final2, + unescape2(src), + this.#hasMagic = !!this.#hasMagic, + this.#uflag + ]; + } + const repeated = this.type === "*" || this.type === "+"; + const start = this.type === "!" ? "(?:(?!(?:" : "(?:"; + let body = this.#partsToRegExp(dot); + if (this.isStart() && this.isEnd() && !body && this.type !== "!") { + const s = this.toString(); + const me = this; + me.#parts = [s]; + me.type = null; + me.#hasMagic = void 0; + return [s, unescape2(this.toString()), false, false]; + } + let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true); + if (bodyDotAllowed === body) { + bodyDotAllowed = ""; + } + if (bodyDotAllowed) { + body = `(?:${body})(?:${bodyDotAllowed})*?`; + } + let final = ""; + if (this.type === "!" && this.#emptyExt) { + final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty; + } else { + const close = this.type === "!" ? ( + // !() must match something,but !(x) can match '' + "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")" + ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`; + final = start + body + close; + } + return [ + final, + unescape2(body), + this.#hasMagic = !!this.#hasMagic, + this.#uflag + ]; + } + #flatten() { + if (!isExtglobAST(this)) { + for (const p of this.#parts) { + if (typeof p === "object") { + p.#flatten(); + } + } + } else { + let iterations = 0; + let done = false; + do { + done = true; + for (let i = 0; i < this.#parts.length; i++) { + const c = this.#parts[i]; + if (typeof c === "object") { + c.#flatten(); + if (this.#canAdopt(c)) { + done = false; + this.#adopt(c, i); + } else if (this.#canAdoptWithSpace(c)) { + done = false; + this.#adoptWithSpace(c, i); + } else if (this.#canUsurp(c)) { + done = false; + this.#usurp(c); + } + } + } + } while (!done && ++iterations < 10); + } + this.#toString = void 0; + } + #partsToRegExp(dot) { + return this.#parts.map((p) => { + if (typeof p === "string") { + throw new Error("string type in extglob ast??"); + } + const [re, _2, _hasMagic, uflag] = p.toRegExpSource(dot); + this.#uflag = this.#uflag || uflag; + return re; + }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|"); + } + static #parseGlob(glob2, hasMagic, noEmpty = false) { + let escaping = false; + let re = ""; + let uflag = false; + let inStar = false; + for (let i = 0; i < glob2.length; i++) { + const c = glob2.charAt(i); + if (escaping) { + escaping = false; + re += (reSpecials.has(c) ? "\\" : "") + c; + continue; + } + if (c === "*") { + if (inStar) + continue; + inStar = true; + re += noEmpty && /^[*]+$/.test(glob2) ? starNoEmpty : star; + hasMagic = true; + continue; + } else { + inStar = false; + } + if (c === "\\") { + if (i === glob2.length - 1) { + re += "\\\\"; + } else { + escaping = true; + } + continue; + } + if (c === "[") { + const [src, needUflag, consumed, magic] = parseClass(glob2, i); + if (consumed) { + re += src; + uflag = uflag || needUflag; + i += consumed - 1; + hasMagic = hasMagic || magic; + continue; + } + } + if (c === "?") { + re += qmark; + hasMagic = true; + continue; + } + re += regExpEscape(c); + } + return [re, unescape2(glob2), !!hasMagic, uflag]; + } +}; +_a = AST; + +// node_modules/readdir-glob/node_modules/minimatch/dist/esm/escape.js +var escape2 = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => { + if (magicalBraces) { + return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&"); + } + return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&"); +}; + +// node_modules/readdir-glob/node_modules/minimatch/dist/esm/index.js +var minimatch = (p, pattern, options = {}) => { + assertValidPattern(pattern); + if (!options.nocomment && pattern.charAt(0) === "#") { + return false; + } + return new Minimatch(pattern, options).match(p); +}; +var starDotExtRE = /^\*+([^+@!?*[(]*)$/; +var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2); +var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2); +var starDotExtTestNocase = (ext2) => { + ext2 = ext2.toLowerCase(); + return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2); +}; +var starDotExtTestNocaseDot = (ext2) => { + ext2 = ext2.toLowerCase(); + return (f) => f.toLowerCase().endsWith(ext2); +}; +var starDotStarRE = /^\*+\.\*+$/; +var starDotStarTest = (f) => !f.startsWith(".") && f.includes("."); +var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes("."); +var dotStarRE = /^\.\*+$/; +var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith("."); +var starRE = /^\*+$/; +var starTest = (f) => f.length !== 0 && !f.startsWith("."); +var starTestDot = (f) => f.length !== 0 && f !== "." && f !== ".."; +var qmarksRE = /^\?+([^+@!?*[(]*)?$/; +var qmarksTestNocase = ([$0, ext2 = ""]) => { + const noext = qmarksTestNoExt([$0]); + if (!ext2) + return noext; + ext2 = ext2.toLowerCase(); + return (f) => noext(f) && f.toLowerCase().endsWith(ext2); +}; +var qmarksTestNocaseDot = ([$0, ext2 = ""]) => { + const noext = qmarksTestNoExtDot([$0]); + if (!ext2) + return noext; + ext2 = ext2.toLowerCase(); + return (f) => noext(f) && f.toLowerCase().endsWith(ext2); +}; +var qmarksTestDot = ([$0, ext2 = ""]) => { + const noext = qmarksTestNoExtDot([$0]); + return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2); +}; +var qmarksTest = ([$0, ext2 = ""]) => { + const noext = qmarksTestNoExt([$0]); + return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2); +}; +var qmarksTestNoExt = ([$0]) => { + const len = $0.length; + return (f) => f.length === len && !f.startsWith("."); +}; +var qmarksTestNoExtDot = ([$0]) => { + const len = $0.length; + return (f) => f.length === len && f !== "." && f !== ".."; +}; +var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix"; +var path20 = { + win32: { sep: "\\" }, + posix: { sep: "/" } +}; +var sep6 = defaultPlatform === "win32" ? path20.win32.sep : path20.posix.sep; +minimatch.sep = sep6; +var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **"); +minimatch.GLOBSTAR = GLOBSTAR; +var qmark2 = "[^/]"; +var star2 = qmark2 + "*?"; +var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; +var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; +var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options); +minimatch.filter = filter; +var ext = (a, b = {}) => Object.assign({}, a, b); +var defaults = (def) => { + if (!def || typeof def !== "object" || !Object.keys(def).length) { + return minimatch; + } + const orig = minimatch; + const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); + return Object.assign(m, { + Minimatch: class Minimatch extends orig.Minimatch { + constructor(pattern, options = {}) { + super(pattern, ext(def, options)); + } + static defaults(options) { + return orig.defaults(ext(def, options)).Minimatch; + } + }, + AST: class AST extends orig.AST { + /* c8 ignore start */ + constructor(type, parent, options = {}) { + super(type, parent, ext(def, options)); + } + /* c8 ignore stop */ + static fromGlob(pattern, options = {}) { + return orig.AST.fromGlob(pattern, ext(def, options)); + } + }, + unescape: (s, options = {}) => orig.unescape(s, ext(def, options)), + escape: (s, options = {}) => orig.escape(s, ext(def, options)), + filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)), + defaults: (options) => orig.defaults(ext(def, options)), + makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)), + braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)), + match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)), + sep: orig.sep, + GLOBSTAR + }); +}; +minimatch.defaults = defaults; +var braceExpand = (pattern, options = {}) => { + assertValidPattern(pattern); + if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { + return [pattern]; + } + return expand2(pattern, { max: options.braceExpandMax }); +}; +minimatch.braceExpand = braceExpand; +var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe(); +minimatch.makeRe = makeRe; +var match = (list, pattern, options = {}) => { + const mm = new Minimatch(pattern, options); + list = list.filter((f) => mm.match(f)); + if (mm.options.nonull && !list.length) { + list.push(pattern); + } + return list; +}; +minimatch.match = match; +var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/; +var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); +var Minimatch = class { + options; + set; + pattern; + windowsPathsNoEscape; + nonegate; + negate; + comment; + empty; + preserveMultipleSlashes; + partial; + globSet; + globParts; + nocase; + isWindows; + platform; + windowsNoMagicRoot; + maxGlobstarRecursion; + regexp; + constructor(pattern, options = {}) { + assertValidPattern(pattern); + options = options || {}; + this.options = options; + this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200; + this.pattern = pattern; + this.platform = options.platform || defaultPlatform; + this.isWindows = this.platform === "win32"; + const awe = "allowWindowsEscape"; + this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false; + if (this.windowsPathsNoEscape) { + this.pattern = this.pattern.replace(/\\/g, "/"); + } + this.preserveMultipleSlashes = !!options.preserveMultipleSlashes; + this.regexp = null; + this.negate = false; + this.nonegate = !!options.nonegate; + this.comment = false; + this.empty = false; + this.partial = !!options.partial; + this.nocase = !!this.options.nocase; + this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase); + this.globSet = []; + this.globParts = []; + this.set = []; + this.make(); + } + hasMagic() { + if (this.options.magicalBraces && this.set.length > 1) { + return true; + } + for (const pattern of this.set) { + for (const part of pattern) { + if (typeof part !== "string") + return true; + } + } + return false; + } + debug(..._2) { + } + make() { + const pattern = this.pattern; + const options = this.options; + if (!options.nocomment && pattern.charAt(0) === "#") { + this.comment = true; + return; + } + if (!pattern) { + this.empty = true; + return; + } + this.parseNegate(); + this.globSet = [...new Set(this.braceExpand())]; + if (options.debug) { + this.debug = (...args) => console.error(...args); + } + this.debug(this.pattern, this.globSet); + const rawGlobParts = this.globSet.map((s) => this.slashSplit(s)); + this.globParts = this.preprocess(rawGlobParts); + this.debug(this.pattern, this.globParts); + let set = this.globParts.map((s, _2, __) => { + if (this.isWindows && this.windowsNoMagicRoot) { + const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]); + const isDrive = /^[a-z]:/i.test(s[0]); + if (isUNC) { + return [ + ...s.slice(0, 4), + ...s.slice(4).map((ss) => this.parse(ss)) + ]; + } else if (isDrive) { + return [s[0], ...s.slice(1).map((ss) => this.parse(ss))]; + } + } + return s.map((ss) => this.parse(ss)); + }); + this.debug(this.pattern, set); + this.set = set.filter((s) => s.indexOf(false) === -1); + if (this.isWindows) { + for (let i = 0; i < this.set.length; i++) { + const p = this.set[i]; + if (p[0] === "" && p[1] === "" && this.globParts[i][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) { + p[2] = "?"; + } + } + } + this.debug(this.pattern, this.set); + } + // various transforms to equivalent pattern sets that are + // faster to process in a filesystem walk. The goal is to + // eliminate what we can, and push all ** patterns as far + // to the right as possible, even if it increases the number + // of patterns that we have to process. + preprocess(globParts) { + if (this.options.noglobstar) { + for (const partset of globParts) { + for (let j = 0; j < partset.length; j++) { + if (partset[j] === "**") { + partset[j] = "*"; + } + } + } + } + const { optimizationLevel = 1 } = this.options; + if (optimizationLevel >= 2) { + globParts = this.firstPhasePreProcess(globParts); + globParts = this.secondPhasePreProcess(globParts); + } else if (optimizationLevel >= 1) { + globParts = this.levelOneOptimize(globParts); + } else { + globParts = this.adjascentGlobstarOptimize(globParts); + } + return globParts; + } + // just get rid of adjascent ** portions + adjascentGlobstarOptimize(globParts) { + return globParts.map((parts) => { + let gs = -1; + while (-1 !== (gs = parts.indexOf("**", gs + 1))) { + let i = gs; + while (parts[i + 1] === "**") { + i++; + } + if (i !== gs) { + parts.splice(gs, i - gs); + } + } + return parts; + }); + } + // get rid of adjascent ** and resolve .. portions + levelOneOptimize(globParts) { + return globParts.map((parts) => { + parts = parts.reduce((set, part) => { + const prev = set[set.length - 1]; + if (part === "**" && prev === "**") { + return set; + } + if (part === "..") { + if (prev && prev !== ".." && prev !== "." && prev !== "**") { + set.pop(); + return set; + } + } + set.push(part); + return set; + }, []); + return parts.length === 0 ? [""] : parts; + }); + } + levelTwoFileOptimize(parts) { + if (!Array.isArray(parts)) { + parts = this.slashSplit(parts); + } + let didSomething = false; + do { + didSomething = false; + if (!this.preserveMultipleSlashes) { + for (let i = 1; i < parts.length - 1; i++) { + const p = parts[i]; + if (i === 1 && p === "" && parts[0] === "") + continue; + if (p === "." || p === "") { + didSomething = true; + parts.splice(i, 1); + i--; + } + } + if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) { + didSomething = true; + parts.pop(); + } + } + let dd = 0; + while (-1 !== (dd = parts.indexOf("..", dd + 1))) { + const p = parts[dd - 1]; + if (p && p !== "." && p !== ".." && p !== "**" && !(this.isWindows && /^[a-z]:$/i.test(p))) { + didSomething = true; + parts.splice(dd - 1, 2); + dd -= 2; + } + } + } while (didSomething); + return parts.length === 0 ? [""] : parts; + } + // First phase: single-pattern processing + //
 is 1 or more portions
+  //  is 1 or more portions
+  // 

is any portion other than ., .., '', or ** + // is . or '' + // + // **/.. is *brutal* for filesystem walking performance, because + // it effectively resets the recursive walk each time it occurs, + // and ** cannot be reduced out by a .. pattern part like a regexp + // or most strings (other than .., ., and '') can be. + // + //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} + //

// -> 
/
+  // 
/

/../ ->

/
+  // **/**/ -> **/
+  //
+  // **/*/ -> */**/ <== not valid because ** doesn't follow
+  // this WOULD be allowed if ** did follow symlinks, or * didn't
+  firstPhasePreProcess(globParts) {
+    let didSomething = false;
+    do {
+      didSomething = false;
+      for (let parts of globParts) {
+        let gs = -1;
+        while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
+          let gss = gs;
+          while (parts[gss + 1] === "**") {
+            gss++;
+          }
+          if (gss > gs) {
+            parts.splice(gs + 1, gss - gs);
+          }
+          let next = parts[gs + 1];
+          const p = parts[gs + 2];
+          const p2 = parts[gs + 3];
+          if (next !== "..")
+            continue;
+          if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
+            continue;
+          }
+          didSomething = true;
+          parts.splice(gs, 1);
+          const other = parts.slice(0);
+          other[gs] = "**";
+          globParts.push(other);
+          gs--;
+        }
+        if (!this.preserveMultipleSlashes) {
+          for (let i = 1; i < parts.length - 1; i++) {
+            const p = parts[i];
+            if (i === 1 && p === "" && parts[0] === "")
+              continue;
+            if (p === "." || p === "") {
+              didSomething = true;
+              parts.splice(i, 1);
+              i--;
+            }
+          }
+          if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
+            didSomething = true;
+            parts.pop();
+          }
+        }
+        let dd = 0;
+        while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
+          const p = parts[dd - 1];
+          if (p && p !== "." && p !== ".." && p !== "**") {
+            didSomething = true;
+            const needDot = dd === 1 && parts[dd + 1] === "**";
+            const splin = needDot ? ["."] : [];
+            parts.splice(dd - 1, 2, ...splin);
+            if (parts.length === 0)
+              parts.push("");
+            dd -= 2;
+          }
+        }
+      }
+    } while (didSomething);
+    return globParts;
+  }
+  // second phase: multi-pattern dedupes
+  // {
/*/,
/

/} ->

/*/
+  // {
/,
/} -> 
/
+  // {
/**/,
/} -> 
/**/
+  //
+  // {
/**/,
/**/

/} ->

/**/
+  // ^-- not valid because ** doens't follow symlinks
+  secondPhasePreProcess(globParts) {
+    for (let i = 0; i < globParts.length - 1; i++) {
+      for (let j = i + 1; j < globParts.length; j++) {
+        const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
+        if (matched) {
+          globParts[i] = [];
+          globParts[j] = matched;
+          break;
+        }
+      }
+    }
+    return globParts.filter((gs) => gs.length);
+  }
+  partsMatch(a, b, emptyGSMatch = false) {
+    let ai = 0;
+    let bi = 0;
+    let result = [];
+    let which9 = "";
+    while (ai < a.length && bi < b.length) {
+      if (a[ai] === b[bi]) {
+        result.push(which9 === "b" ? b[bi] : a[ai]);
+        ai++;
+        bi++;
+      } else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
+        result.push(a[ai]);
+        ai++;
+      } else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
+        result.push(b[bi]);
+        bi++;
+      } else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
+        if (which9 === "b")
+          return false;
+        which9 = "a";
+        result.push(a[ai]);
+        ai++;
+        bi++;
+      } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
+        if (which9 === "a")
+          return false;
+        which9 = "b";
+        result.push(b[bi]);
+        ai++;
+        bi++;
+      } else {
+        return false;
+      }
+    }
+    return a.length === b.length && result;
+  }
+  parseNegate() {
+    if (this.nonegate)
+      return;
+    const pattern = this.pattern;
+    let negate2 = false;
+    let negateOffset = 0;
+    for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++) {
+      negate2 = !negate2;
+      negateOffset++;
+    }
+    if (negateOffset)
+      this.pattern = pattern.slice(negateOffset);
+    this.negate = negate2;
+  }
+  // set partial to true to test if, for example,
+  // "/a/b" matches the start of "/*/b/*/d"
+  // Partial means, if you run out of file before you run
+  // out of pattern, then that's fine, as long as all
+  // the parts match.
+  matchOne(file, pattern, partial = false) {
+    let fileStartIndex = 0;
+    let patternStartIndex = 0;
+    if (this.isWindows) {
+      const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
+      const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
+      const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
+      const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
+      const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
+      const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
+      if (typeof fdi === "number" && typeof pdi === "number") {
+        const [fd, pd] = [
+          file[fdi],
+          pattern[pdi]
+        ];
+        if (fd.toLowerCase() === pd.toLowerCase()) {
+          pattern[pdi] = fd;
+          patternStartIndex = pdi;
+          fileStartIndex = fdi;
+        }
+      }
+    }
+    const { optimizationLevel = 1 } = this.options;
+    if (optimizationLevel >= 2) {
+      file = this.levelTwoFileOptimize(file);
+    }
+    if (pattern.includes(GLOBSTAR)) {
+      return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
+    }
+    return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
+  }
+  #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
+    const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
+    const lastgs = pattern.lastIndexOf(GLOBSTAR);
+    const [head, body, tail] = partial ? [
+      pattern.slice(patternIndex, firstgs),
+      pattern.slice(firstgs + 1),
+      []
+    ] : [
+      pattern.slice(patternIndex, firstgs),
+      pattern.slice(firstgs + 1, lastgs),
+      pattern.slice(lastgs + 1)
+    ];
+    if (head.length) {
+      const fileHead = file.slice(fileIndex, fileIndex + head.length);
+      if (!this.#matchOne(fileHead, head, partial, 0, 0)) {
+        return false;
+      }
+      fileIndex += head.length;
+      patternIndex += head.length;
+    }
+    let fileTailMatch = 0;
+    if (tail.length) {
+      if (tail.length + fileIndex > file.length)
+        return false;
+      let tailStart = file.length - tail.length;
+      if (this.#matchOne(file, tail, partial, tailStart, 0)) {
+        fileTailMatch = tail.length;
+      } else {
+        if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
+          return false;
+        }
+        tailStart--;
+        if (!this.#matchOne(file, tail, partial, tailStart, 0)) {
+          return false;
+        }
+        fileTailMatch = tail.length + 1;
+      }
+    }
+    if (!body.length) {
+      let sawSome = !!fileTailMatch;
+      for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
+        const f = String(file[i2]);
+        sawSome = true;
+        if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
+          return false;
+        }
+      }
+      return partial || sawSome;
+    }
+    const bodySegments = [[[], 0]];
+    let currentBody = bodySegments[0];
+    let nonGsParts = 0;
+    const nonGsPartsSums = [0];
+    for (const b of body) {
+      if (b === GLOBSTAR) {
+        nonGsPartsSums.push(nonGsParts);
+        currentBody = [[], 0];
+        bodySegments.push(currentBody);
+      } else {
+        currentBody[0].push(b);
+        nonGsParts++;
+      }
+    }
+    let i = bodySegments.length - 1;
+    const fileLength = file.length - fileTailMatch;
+    for (const b of bodySegments) {
+      b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
+    }
+    return !!this.#matchGlobStarBodySections(file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
+  }
+  // return false for "nope, not matching"
+  // return null for "not matching, cannot keep trying"
+  #matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
+    const bs = bodySegments[bodyIndex];
+    if (!bs) {
+      for (let i = fileIndex; i < file.length; i++) {
+        sawTail = true;
+        const f = file[i];
+        if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
+          return false;
+        }
+      }
+      return sawTail;
+    }
+    const [body, after] = bs;
+    while (fileIndex <= after) {
+      const m = this.#matchOne(file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
+      if (m && globStarDepth < this.maxGlobstarRecursion) {
+        const sub = this.#matchGlobStarBodySections(file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
+        if (sub !== false) {
+          return sub;
+        }
+      }
+      const f = file[fileIndex];
+      if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
+        return false;
+      }
+      fileIndex++;
+    }
+    return partial || null;
+  }
+  #matchOne(file, pattern, partial, fileIndex, patternIndex) {
+    let fi;
+    let pi;
+    let pl;
+    let fl;
+    for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
+      this.debug("matchOne loop");
+      let p = pattern[pi];
+      let f = file[fi];
+      this.debug(pattern, p, f);
+      if (p === false || p === GLOBSTAR) {
+        return false;
+      }
+      let hit;
+      if (typeof p === "string") {
+        hit = f === p;
+        this.debug("string match", p, f, hit);
+      } else {
+        hit = p.test(f);
+        this.debug("pattern match", p, f, hit);
+      }
+      if (!hit)
+        return false;
+    }
+    if (fi === fl && pi === pl) {
+      return true;
+    } else if (fi === fl) {
+      return partial;
+    } else if (pi === pl) {
+      return fi === fl - 1 && file[fi] === "";
+    } else {
+      throw new Error("wtf?");
+    }
+  }
+  braceExpand() {
+    return braceExpand(this.pattern, this.options);
+  }
+  parse(pattern) {
+    assertValidPattern(pattern);
+    const options = this.options;
+    if (pattern === "**")
+      return GLOBSTAR;
+    if (pattern === "")
+      return "";
+    let m;
+    let fastTest = null;
+    if (m = pattern.match(starRE)) {
+      fastTest = options.dot ? starTestDot : starTest;
+    } else if (m = pattern.match(starDotExtRE)) {
+      fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
+    } else if (m = pattern.match(qmarksRE)) {
+      fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
+    } else if (m = pattern.match(starDotStarRE)) {
+      fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
+    } else if (m = pattern.match(dotStarRE)) {
+      fastTest = dotStarTest;
+    }
+    const re = AST.fromGlob(pattern, this.options).toMMPattern();
+    if (fastTest && typeof re === "object") {
+      Reflect.defineProperty(re, "test", { value: fastTest });
+    }
+    return re;
+  }
+  makeRe() {
+    if (this.regexp || this.regexp === false)
+      return this.regexp;
+    const set = this.set;
+    if (!set.length) {
+      this.regexp = false;
+      return this.regexp;
+    }
+    const options = this.options;
+    const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
+    const flags = new Set(options.nocase ? ["i"] : []);
+    let re = set.map((pattern) => {
+      const pp = pattern.map((p) => {
+        if (p instanceof RegExp) {
+          for (const f of p.flags.split(""))
+            flags.add(f);
+        }
+        return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
+      });
+      pp.forEach((p, i) => {
+        const next = pp[i + 1];
+        const prev = pp[i - 1];
+        if (p !== GLOBSTAR || prev === GLOBSTAR) {
+          return;
+        }
+        if (prev === void 0) {
+          if (next !== void 0 && next !== GLOBSTAR) {
+            pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
+          } else {
+            pp[i] = twoStar;
+          }
+        } else if (next === void 0) {
+          pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
+        } else if (next !== GLOBSTAR) {
+          pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
+          pp[i + 1] = GLOBSTAR;
+        }
+      });
+      const filtered = pp.filter((p) => p !== GLOBSTAR);
+      if (this.partial && filtered.length >= 1) {
+        const prefixes = [];
+        for (let i = 1; i <= filtered.length; i++) {
+          prefixes.push(filtered.slice(0, i).join("/"));
+        }
+        return "(?:" + prefixes.join("|") + ")";
+      }
+      return filtered.join("/");
+    }).join("|");
+    const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
+    re = "^" + open + re + close + "$";
+    if (this.partial) {
+      re = "^(?:\\/|" + open + re.slice(1, -1) + close + ")$";
+    }
+    if (this.negate)
+      re = "^(?!" + re + ").+$";
+    try {
+      this.regexp = new RegExp(re, [...flags].join(""));
+    } catch {
+      this.regexp = false;
+    }
+    return this.regexp;
+  }
+  slashSplit(p) {
+    if (this.preserveMultipleSlashes) {
+      return p.split("/");
+    } else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
+      return ["", ...p.split(/\/+/)];
+    } else {
+      return p.split(/\/+/);
+    }
+  }
+  match(f, partial = this.partial) {
+    this.debug("match", f, this.pattern);
+    if (this.comment) {
+      return false;
+    }
+    if (this.empty) {
+      return f === "";
+    }
+    if (f === "/" && partial) {
+      return true;
+    }
+    const options = this.options;
+    if (this.isWindows) {
+      f = f.split("\\").join("/");
+    }
+    const ff = this.slashSplit(f);
+    this.debug(this.pattern, "split", ff);
+    const set = this.set;
+    this.debug(this.pattern, "set", set);
+    let filename = ff[ff.length - 1];
+    if (!filename) {
+      for (let i = ff.length - 2; !filename && i >= 0; i--) {
+        filename = ff[i];
+      }
+    }
+    for (const pattern of set) {
+      let file = ff;
+      if (options.matchBase && pattern.length === 1) {
+        file = [filename];
+      }
+      const hit = this.matchOne(file, pattern, partial);
+      if (hit) {
+        if (options.flipNegate) {
+          return true;
+        }
+        return !this.negate;
+      }
+    }
+    if (options.flipNegate) {
+      return false;
+    }
+    return this.negate;
+  }
+  static defaults(def) {
+    return minimatch.defaults(def).Minimatch;
+  }
+};
+minimatch.AST = AST;
+minimatch.Minimatch = Minimatch;
+minimatch.escape = escape2;
+minimatch.unescape = unescape2;
+
+// node_modules/readdir-glob/dist/index.mjs
+var import_path5 = require("path");
+function readdir2(dir, strict) {
+  return new Promise((resolve$1, reject) => {
+    fs23.readdir(dir, { withFileTypes: true }, (err, files) => {
+      if (err) switch (err.code) {
+        case "ENOTDIR":
+          if (strict) reject(err);
+          else resolve$1([]);
+          break;
+        case "ENOTSUP":
+        case "ENOENT":
+        case "ENAMETOOLONG":
+        case "UNKNOWN":
+          resolve$1([]);
+          break;
+        case "ELOOP":
+        default:
+          reject(err);
+          break;
+      }
+      else resolve$1(files);
+    });
+  });
+}
+function getStat(file, followSymlinks) {
+  return new Promise((resolve$1) => {
+    const statFunc = followSymlinks ? fs23.stat : fs23.lstat;
+    statFunc(file, (err, stats) => {
+      if (err) switch (err.code) {
+        case "ENOENT":
+          if (followSymlinks) resolve$1(getStat(file, false));
+          else resolve$1(null);
+          break;
+        default:
+          resolve$1(null);
+          break;
+      }
+      else resolve$1(stats);
+    });
+  });
+}
+async function* exploreWalkAsync(dir, path29, followSymlinks, useStat, shouldSkip, strict) {
+  let files = await readdir2(path29 + dir, strict);
+  for (const file of files) {
+    let name = file.name;
+    const filename = dir + "/" + name;
+    const relative3 = filename.slice(1);
+    const absolute = path29 + "/" + relative3;
+    let stat2 = file;
+    if (useStat || followSymlinks) stat2 = await getStat(absolute, followSymlinks) ?? stat2;
+    if (stat2.isDirectory()) {
+      if (!shouldSkip(relative3)) {
+        yield {
+          relative: relative3,
+          absolute,
+          stat: stat2
+        };
+        yield* exploreWalkAsync(filename, path29, followSymlinks, useStat, shouldSkip, false);
+      }
+    } else yield {
+      relative: relative3,
+      absolute,
+      stat: stat2
+    };
+  }
+}
+async function* explore(path29, followSymlinks, useStat, shouldSkip) {
+  yield* exploreWalkAsync("", path29, followSymlinks, useStat, shouldSkip, true);
+}
+function readOptions(options) {
+  return {
+    pattern: options.pattern,
+    dot: !!options.dot,
+    noglobstar: !!options.noglobstar,
+    matchBase: !!options.matchBase,
+    nocase: !!options.nocase,
+    ignore: options.ignore,
+    skip: options.skip,
+    follow: !!options.follow,
+    stat: !!options.stat,
+    nodir: !!options.nodir,
+    mark: !!options.mark,
+    silent: !!options.silent,
+    absolute: !!options.absolute
+  };
+}
+var ReaddirGlob = class extends import_events.EventEmitter {
+  options;
+  matchers;
+  ignoreMatchers;
+  skipMatchers;
+  paused;
+  aborted;
+  inactive;
+  iterator;
+  constructor(cwd, options, cb) {
+    super();
+    if (typeof options === "function") {
+      cb = options;
+      options = void 0;
+    }
+    this.options = readOptions(options || {});
+    this.matchers = [];
+    if (this.options.pattern) {
+      const matchers = Array.isArray(this.options.pattern) ? this.options.pattern : [this.options.pattern];
+      this.matchers = matchers.map((m) => new Minimatch(m, {
+        dot: this.options.dot,
+        noglobstar: this.options.noglobstar,
+        matchBase: this.options.matchBase,
+        nocase: this.options.nocase
+      }));
+    }
+    this.ignoreMatchers = [];
+    if (this.options.ignore) {
+      const ignorePatterns = Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore];
+      this.ignoreMatchers = ignorePatterns.map((ignore) => new Minimatch(ignore, { dot: true }));
+    }
+    this.skipMatchers = [];
+    if (this.options.skip) {
+      const skipPatterns = Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip];
+      this.skipMatchers = skipPatterns.map((skip) => new Minimatch(skip, { dot: true }));
+    }
+    this.iterator = explore((0, import_path5.resolve)(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
+    this.paused = false;
+    this.inactive = false;
+    this.aborted = false;
+    if (cb) {
+      const nonNullCb = cb;
+      const matches = [];
+      this.on("match", (match2) => matches.push(this.options.absolute ? match2.absolute : match2.relative));
+      this.on("error", (err) => nonNullCb(err));
+      this.on("end", () => nonNullCb(null, matches));
+    }
+    setTimeout(() => this._next());
+  }
+  _shouldSkipDirectory(relative3) {
+    return this.skipMatchers.some((m) => m.match(relative3));
+  }
+  _fileMatches(relative3, isDirectory) {
+    const file = relative3 + (isDirectory ? "/" : "");
+    return (this.matchers.length === 0 || this.matchers.some((m) => m.match(file))) && !this.ignoreMatchers.some((m) => m.match(file)) && (!this.options.nodir || !isDirectory);
+  }
+  _next() {
+    if (!this.paused && !this.aborted) this.iterator.next().then((obj) => {
+      if (!obj.done) {
+        const isDirectory = obj.value.stat.isDirectory();
+        if (this._fileMatches(obj.value.relative, isDirectory)) {
+          let relative3 = obj.value.relative;
+          let absolute = obj.value.absolute;
+          if (this.options.mark && isDirectory) {
+            relative3 += "/";
+            absolute += "/";
+          }
+          if (this.options.stat) this.emit("match", {
+            relative: relative3,
+            absolute,
+            stat: obj.value.stat
+          });
+          else this.emit("match", {
+            relative: relative3,
+            absolute
+          });
+        }
+        this._next();
+      } else this.emit("end");
+    }).catch((err) => {
+      this.abort();
+      this.emit("error", err);
+      if (!err.code && !this.options.silent) console.error(err);
+    });
+    else this.inactive = true;
+  }
+  abort() {
+    this.aborted = true;
+  }
+  pause() {
+    this.paused = true;
+  }
+  resume() {
+    this.paused = false;
+    if (this.inactive) {
+      this.inactive = false;
+      this._next();
+    }
+  }
+};
+var readdirGlob = (pattern, options, cb) => new ReaddirGlob(pattern, options, cb);
+readdirGlob.ReaddirGlob = ReaddirGlob;
+var src_default = readdirGlob;
+
+// node_modules/archiver/lib/core.js
+var import_lazystream = __toESM(require_lazystream(), 1);
+var import_async = __toESM(require_async(), 1);
+var import_path6 = require("path");
+
+// node_modules/archiver/lib/error.js
+var import_util28 = __toESM(require("util"), 1);
+var ERROR_CODES = {
+  ABORTED: "archive was aborted",
+  DIRECTORYDIRPATHREQUIRED: "diretory dirpath argument must be a non-empty string value",
+  DIRECTORYFUNCTIONINVALIDDATA: "invalid data returned by directory custom data function",
+  ENTRYNAMEREQUIRED: "entry name must be a non-empty string value",
+  FILEFILEPATHREQUIRED: "file filepath argument must be a non-empty string value",
+  FINALIZING: "archive already finalizing",
+  QUEUECLOSED: "queue closed",
+  NOENDMETHOD: "no suitable finalize/end method defined by module",
+  DIRECTORYNOTSUPPORTED: "support for directory entries not defined by module",
+  FORMATSET: "archive format already set",
+  INPUTSTEAMBUFFERREQUIRED: "input source must be valid Stream or Buffer instance",
+  MODULESET: "module already set",
+  SYMLINKNOTSUPPORTED: "support for symlink entries not defined by module",
+  SYMLINKFILEPATHREQUIRED: "symlink filepath argument must be a non-empty string value",
+  SYMLINKTARGETREQUIRED: "symlink target argument must be a non-empty string value",
+  ENTRYNOTSUPPORTED: "entry not supported"
+};
+function ArchiverError(code, data) {
+  Error.captureStackTrace(this, this.constructor);
+  this.message = ERROR_CODES[code] || code;
+  this.code = code;
+  this.data = data;
+}
+import_util28.default.inherits(ArchiverError, Error);
+
+// node_modules/archiver/lib/core.js
+var import_readable_stream2 = __toESM(require_ours(), 1);
+
+// node_modules/archiver/lib/utils.js
+var import_normalize_path = __toESM(require_normalize_path(), 1);
+var import_readable_stream = __toESM(require_ours(), 1);
+function dateify(dateish) {
+  dateish = dateish || /* @__PURE__ */ new Date();
+  if (dateish instanceof Date) {
+    dateish = dateish;
+  } else if (typeof dateish === "string") {
+    dateish = new Date(dateish);
+  } else {
+    dateish = /* @__PURE__ */ new Date();
+  }
+  return dateish;
+}
+function normalizeInputSource(source) {
+  if (source === null) {
+    return Buffer.alloc(0);
+  } else if (typeof source === "string") {
+    return Buffer.from(source);
+  } else if (isStream(source)) {
+    return source.pipe(new import_readable_stream.PassThrough());
+  }
+  return source;
+}
+function sanitizePath(filepath) {
+  return (0, import_normalize_path.default)(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
+}
+function trailingSlashIt(str) {
+  return str.slice(-1) !== "/" ? str + "/" : str;
+}
+
+// node_modules/archiver/lib/core.js
+var { ReaddirGlob: ReaddirGlob2 } = src_default;
+var win32 = process.platform === "win32";
+var Archiver = class extends import_readable_stream2.Transform {
+  _supportsDirectory = false;
+  _supportsSymlink = false;
+  /**
+   * @constructor
+   * @param {String} format The archive format to use.
+   * @param {(CoreOptions|TransformOptions)} options See also {@link ZipOptions} and {@link TarOptions}.
+   */
+  constructor(options) {
+    options = {
+      highWaterMark: 1024 * 1024,
+      statConcurrency: 4,
+      ...options
+    };
+    super(options);
+    this.options = options;
+    this._format = false;
+    this._module = false;
+    this._pending = 0;
+    this._pointer = 0;
+    this._entriesCount = 0;
+    this._entriesProcessedCount = 0;
+    this._fsEntriesTotalBytes = 0;
+    this._fsEntriesProcessedBytes = 0;
+    this._queue = (0, import_async.queue)(this._onQueueTask.bind(this), 1);
+    this._queue.drain(this._onQueueDrain.bind(this));
+    this._statQueue = (0, import_async.queue)(
+      this._onStatQueueTask.bind(this),
+      options.statConcurrency
+    );
+    this._statQueue.drain(this._onQueueDrain.bind(this));
+    this._state = {
+      aborted: false,
+      finalize: false,
+      finalizing: false,
+      finalized: false,
+      modulePiped: false
+    };
+    this._streams = [];
+  }
+  /**
+   * Internal logic for `abort`.
+   *
+   * @private
+   * @return void
+   */
+  _abort() {
+    this._state.aborted = true;
+    this._queue.kill();
+    this._statQueue.kill();
+    if (this._queue.idle()) {
+      this._shutdown();
+    }
+  }
+  /**
+   * Internal helper for appending files.
+   *
+   * @private
+   * @param  {String} filepath The source filepath.
+   * @param  {EntryData} data The entry data.
+   * @return void
+   */
+  _append(filepath, data) {
+    data = data || {};
+    let task = {
+      source: null,
+      filepath
+    };
+    if (!data.name) {
+      data.name = filepath;
+    }
+    data.sourcePath = filepath;
+    task.data = data;
+    this._entriesCount++;
+    if (data.stats && data.stats instanceof import_fs2.Stats) {
+      task = this._updateQueueTaskWithStats(task, data.stats);
+      if (task) {
+        if (data.stats.size) {
+          this._fsEntriesTotalBytes += data.stats.size;
+        }
+        this._queue.push(task);
+      }
+    } else {
+      this._statQueue.push(task);
+    }
+  }
+  /**
+   * Internal logic for `finalize`.
+   *
+   * @private
+   * @return void
+   */
+  _finalize() {
+    if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+      return;
+    }
+    this._state.finalizing = true;
+    this._moduleFinalize();
+    this._state.finalizing = false;
+    this._state.finalized = true;
+  }
+  /**
+   * Checks the various state variables to determine if we can `finalize`.
+   *
+   * @private
+   * @return {Boolean}
+   */
+  _maybeFinalize() {
+    if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+      return false;
+    }
+    if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
+      this._finalize();
+      return true;
+    }
+    return false;
+  }
+  /**
+   * Appends an entry to the module.
+   *
+   * @private
+   * @fires  Archiver#entry
+   * @param  {(Buffer|Stream)} source
+   * @param  {EntryData} data
+   * @param  {Function} callback
+   * @return void
+   */
+  _moduleAppend(source, data, callback) {
+    if (this._state.aborted) {
+      callback();
+      return;
+    }
+    this._module.append(
+      source,
+      data,
+      function(err) {
+        this._task = null;
+        if (this._state.aborted) {
+          this._shutdown();
+          return;
+        }
+        if (err) {
+          this.emit("error", err);
+          setImmediate(callback);
+          return;
+        }
+        this.emit("entry", data);
+        this._entriesProcessedCount++;
+        if (data.stats && data.stats.size) {
+          this._fsEntriesProcessedBytes += data.stats.size;
+        }
+        this.emit("progress", {
+          entries: {
+            total: this._entriesCount,
+            processed: this._entriesProcessedCount
+          },
+          fs: {
+            totalBytes: this._fsEntriesTotalBytes,
+            processedBytes: this._fsEntriesProcessedBytes
+          }
+        });
+        setImmediate(callback);
+      }.bind(this)
+    );
+  }
+  /**
+   * Finalizes the module.
+   *
+   * @private
+   * @return void
+   */
+  _moduleFinalize() {
+    if (typeof this._module.finalize === "function") {
+      this._module.finalize();
+    } else if (typeof this._module.end === "function") {
+      this._module.end();
+    } else {
+      this.emit("error", new ArchiverError("NOENDMETHOD"));
+    }
+  }
+  /**
+   * Pipes the module to our internal stream with error bubbling.
+   *
+   * @private
+   * @return void
+   */
+  _modulePipe() {
+    this._module.on("error", this._onModuleError.bind(this));
+    this._module.pipe(this);
+    this._state.modulePiped = true;
+  }
+  /**
+   * Unpipes the module from our internal stream.
+   *
+   * @private
+   * @return void
+   */
+  _moduleUnpipe() {
+    this._module.unpipe(this);
+    this._state.modulePiped = false;
+  }
+  /**
+   * Normalizes entry data with fallbacks for key properties.
+   *
+   * @private
+   * @param  {Object} data
+   * @param  {fs.Stats} stats
+   * @return {Object}
+   */
+  _normalizeEntryData(data, stats) {
+    data = {
+      type: "file",
+      name: null,
+      date: null,
+      mode: null,
+      prefix: null,
+      sourcePath: null,
+      stats: false,
+      ...data
+    };
+    if (stats && data.stats === false) {
+      data.stats = stats;
+    }
+    let isDir = data.type === "directory";
+    if (data.name) {
+      if (typeof data.prefix === "string" && "" !== data.prefix) {
+        data.name = data.prefix + "/" + data.name;
+        data.prefix = null;
+      }
+      data.name = sanitizePath(data.name);
+      if (data.type !== "symlink" && data.name.slice(-1) === "/") {
+        isDir = true;
+        data.type = "directory";
+      } else if (isDir) {
+        data.name += "/";
+      }
+    }
+    if (typeof data.mode === "number") {
+      if (win32) {
+        data.mode &= 511;
+      } else {
+        data.mode &= 4095;
+      }
+    } else if (data.stats && data.mode === null) {
+      if (win32) {
+        data.mode = data.stats.mode & 511;
+      } else {
+        data.mode = data.stats.mode & 4095;
+      }
+      if (win32 && isDir) {
+        data.mode = 493;
+      }
+    } else if (data.mode === null) {
+      data.mode = isDir ? 493 : 420;
+    }
+    if (data.stats && data.date === null) {
+      data.date = data.stats.mtime;
+    } else {
+      data.date = dateify(data.date);
+    }
+    return data;
+  }
+  /**
+   * Error listener that re-emits error on to our internal stream.
+   *
+   * @private
+   * @param  {Error} err
+   * @return void
+   */
+  _onModuleError(err) {
+    this.emit("error", err);
+  }
+  /**
+   * Checks the various state variables after queue has drained to determine if
+   * we need to `finalize`.
+   *
+   * @private
+   * @return void
+   */
+  _onQueueDrain() {
+    if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+      return;
+    }
+    if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
+      this._finalize();
+    }
+  }
+  /**
+   * Appends each queue task to the module.
+   *
+   * @private
+   * @param  {Object} task
+   * @param  {Function} callback
+   * @return void
+   */
+  _onQueueTask(task, callback) {
+    const fullCallback = () => {
+      if (task.data.callback) {
+        task.data.callback();
+      }
+      callback();
+    };
+    if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+      fullCallback();
+      return;
+    }
+    this._task = task;
+    this._moduleAppend(task.source, task.data, fullCallback);
+  }
+  /**
+   * Performs a file stat and reinjects the task back into the queue.
+   *
+   * @private
+   * @param  {Object} task
+   * @param  {Function} callback
+   * @return void
+   */
+  _onStatQueueTask(task, callback) {
+    if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+      callback();
+      return;
+    }
+    (0, import_fs2.lstat)(
+      task.filepath,
+      function(err, stats) {
+        if (this._state.aborted) {
+          setImmediate(callback);
+          return;
+        }
+        if (err) {
+          this._entriesCount--;
+          this.emit("warning", err);
+          setImmediate(callback);
+          return;
+        }
+        task = this._updateQueueTaskWithStats(task, stats);
+        if (task) {
+          if (stats.size) {
+            this._fsEntriesTotalBytes += stats.size;
+          }
+          this._queue.push(task);
+        }
+        setImmediate(callback);
+      }.bind(this)
+    );
+  }
+  /**
+   * Unpipes the module and ends our internal stream.
+   *
+   * @private
+   * @return void
+   */
+  _shutdown() {
+    this._moduleUnpipe();
+    this.end();
+  }
+  /**
+   * Tracks the bytes emitted by our internal stream.
+   *
+   * @private
+   * @param  {Buffer} chunk
+   * @param  {String} encoding
+   * @param  {Function} callback
+   * @return void
+   */
+  _transform(chunk, encoding, callback) {
+    if (chunk) {
+      this._pointer += chunk.length;
+    }
+    callback(null, chunk);
+  }
+  /**
+   * Updates and normalizes a queue task using stats data.
+   *
+   * @private
+   * @param  {Object} task
+   * @param  {Stats} stats
+   * @return {Object}
+   */
+  _updateQueueTaskWithStats(task, stats) {
+    if (stats.isFile()) {
+      task.data.type = "file";
+      task.data.sourceType = "stream";
+      task.source = new import_lazystream.Readable(function() {
+        return (0, import_fs2.createReadStream)(task.filepath);
+      });
+    } else if (stats.isDirectory() && this._supportsDirectory) {
+      task.data.name = trailingSlashIt(task.data.name);
+      task.data.type = "directory";
+      task.data.sourcePath = trailingSlashIt(task.filepath);
+      task.data.sourceType = "buffer";
+      task.source = Buffer.concat([]);
+    } else if (stats.isSymbolicLink() && this._supportsSymlink) {
+      const linkPath = (0, import_fs2.readlinkSync)(task.filepath);
+      const dirName = (0, import_path6.dirname)(task.filepath);
+      task.data.type = "symlink";
+      task.data.linkname = (0, import_path6.relative)(
+        dirName,
+        (0, import_path6.resolve)(dirName, linkPath)
+      );
+      task.data.sourceType = "buffer";
+      task.source = Buffer.concat([]);
+    } else {
+      if (stats.isDirectory()) {
+        this.emit(
+          "warning",
+          new ArchiverError("DIRECTORYNOTSUPPORTED", task.data)
+        );
+      } else if (stats.isSymbolicLink()) {
+        this.emit(
+          "warning",
+          new ArchiverError("SYMLINKNOTSUPPORTED", task.data)
+        );
+      } else {
+        this.emit("warning", new ArchiverError("ENTRYNOTSUPPORTED", task.data));
+      }
+      return null;
+    }
+    task.data = this._normalizeEntryData(task.data, stats);
+    return task;
+  }
+  /**
+   * Aborts the archiving process, taking a best-effort approach, by:
+   *
+   * - removing any pending queue tasks
+   * - allowing any active queue workers to finish
+   * - detaching internal module pipes
+   * - ending both sides of the Transform stream
+   *
+   * It will NOT drain any remaining sources.
+   *
+   * @return {this}
+   */
+  abort() {
+    if (this._state.aborted || this._state.finalized) {
+      return this;
+    }
+    this._abort();
+    return this;
+  }
+  /**
+   * Appends an input source (text string, buffer, or stream) to the instance.
+   *
+   * When the instance has received, processed, and emitted the input, the `entry`
+   * event is fired.
+   *
+   * @fires  Archiver#entry
+   * @param  {(Buffer|Stream|String)} source The input source.
+   * @param  {EntryData} data See also {@link ZipEntryData} and {@link TarEntryData}.
+   * @return {this}
+   */
+  append(source, data) {
+    if (this._state.finalize || this._state.aborted) {
+      this.emit("error", new ArchiverError("QUEUECLOSED"));
+      return this;
+    }
+    data = this._normalizeEntryData(data);
+    if (typeof data.name !== "string" || data.name.length === 0) {
+      this.emit("error", new ArchiverError("ENTRYNAMEREQUIRED"));
+      return this;
+    }
+    if (data.type === "directory" && !this._supportsDirectory) {
+      this.emit(
+        "error",
+        new ArchiverError("DIRECTORYNOTSUPPORTED", { name: data.name })
+      );
+      return this;
+    }
+    source = normalizeInputSource(source);
+    if (Buffer.isBuffer(source)) {
+      data.sourceType = "buffer";
+    } else if (isStream(source)) {
+      data.sourceType = "stream";
+    } else {
+      this.emit(
+        "error",
+        new ArchiverError("INPUTSTEAMBUFFERREQUIRED", { name: data.name })
+      );
+      return this;
+    }
+    this._entriesCount++;
+    this._queue.push({
+      data,
+      source
+    });
+    return this;
+  }
+  /**
+   * Appends a directory and its files, recursively, given its dirpath.
+   *
+   * @param  {String} dirpath The source directory path.
+   * @param  {String} destpath The destination path within the archive.
+   * @param  {(EntryData|Function)} data See also [ZipEntryData]{@link ZipEntryData} and
+   * [TarEntryData]{@link TarEntryData}.
+   * @return {this}
+   */
+  directory(dirpath, destpath, data) {
+    if (this._state.finalize || this._state.aborted) {
+      this.emit("error", new ArchiverError("QUEUECLOSED"));
+      return this;
+    }
+    if (typeof dirpath !== "string" || dirpath.length === 0) {
+      this.emit("error", new ArchiverError("DIRECTORYDIRPATHREQUIRED"));
+      return this;
+    }
+    this._pending++;
+    if (destpath === false) {
+      destpath = "";
+    } else if (typeof destpath !== "string") {
+      destpath = dirpath;
+    }
+    var dataFunction = false;
+    if (typeof data === "function") {
+      dataFunction = data;
+      data = {};
+    } else if (typeof data !== "object") {
+      data = {};
+    }
+    var globOptions = {
+      stat: true,
+      dot: true
+    };
+    function onGlobEnd() {
+      this._pending--;
+      this._maybeFinalize();
+    }
+    function onGlobError(err) {
+      this.emit("error", err);
+    }
+    function onGlobMatch(match2) {
+      globber.pause();
+      let ignoreMatch = false;
+      let entryData = Object.assign({}, data);
+      entryData.name = match2.relative;
+      entryData.prefix = destpath;
+      entryData.stats = match2.stat;
+      entryData.callback = globber.resume.bind(globber);
+      try {
+        if (dataFunction) {
+          entryData = dataFunction(entryData);
+          if (entryData === false) {
+            ignoreMatch = true;
+          } else if (typeof entryData !== "object") {
+            throw new ArchiverError("DIRECTORYFUNCTIONINVALIDDATA", {
+              dirpath
+            });
+          }
+        }
+      } catch (e) {
+        this.emit("error", e);
+        return;
+      }
+      if (ignoreMatch) {
+        globber.resume();
+        return;
+      }
+      this._append(match2.absolute, entryData);
+    }
+    const globber = src_default(dirpath, globOptions);
+    globber.on("error", onGlobError.bind(this));
+    globber.on("match", onGlobMatch.bind(this));
+    globber.on("end", onGlobEnd.bind(this));
+    return this;
+  }
+  /**
+   * Appends a file given its filepath using a
+   * [lazystream]{@link https://github.com/jpommerening/node-lazystream} wrapper to
+   * prevent issues with open file limits.
+   *
+   * When the instance has received, processed, and emitted the file, the `entry`
+   * event is fired.
+   *
+   * @param  {String} filepath The source filepath.
+   * @param  {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and
+   * [TarEntryData]{@link TarEntryData}.
+   * @return {this}
+   */
+  file(filepath, data) {
+    if (this._state.finalize || this._state.aborted) {
+      this.emit("error", new ArchiverError("QUEUECLOSED"));
+      return this;
+    }
+    if (typeof filepath !== "string" || filepath.length === 0) {
+      this.emit("error", new ArchiverError("FILEFILEPATHREQUIRED"));
+      return this;
+    }
+    this._append(filepath, data);
+    return this;
+  }
+  /**
+   * Appends multiple files that match a glob pattern.
+   *
+   * @param  {String} pattern The [glob pattern]{@link https://github.com/isaacs/minimatch} to match.
+   * @param  {Object} options See [node-readdir-glob]{@link https://github.com/yqnn/node-readdir-glob#options}.
+   * @param  {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and
+   * [TarEntryData]{@link TarEntryData}.
+   * @return {this}
+   */
+  glob(pattern, options, data) {
+    this._pending++;
+    options = {
+      stat: true,
+      pattern,
+      ...options
+    };
+    function onGlobEnd() {
+      this._pending--;
+      this._maybeFinalize();
+    }
+    function onGlobError(err) {
+      this.emit("error", err);
+    }
+    function onGlobMatch(match2) {
+      globber.pause();
+      const entryData = Object.assign({}, data);
+      entryData.callback = globber.resume.bind(globber);
+      entryData.stats = match2.stat;
+      entryData.name = match2.relative;
+      this._append(match2.absolute, entryData);
+    }
+    const globber = new ReaddirGlob2(options.cwd || ".", options);
+    globber.on("error", onGlobError.bind(this));
+    globber.on("match", onGlobMatch.bind(this));
+    globber.on("end", onGlobEnd.bind(this));
+    return this;
+  }
+  /**
+   * Finalizes the instance and prevents further appending to the archive
+   * structure (queue will continue til drained).
+   *
+   * The `end`, `close` or `finish` events on the destination stream may fire
+   * right after calling this method so you should set listeners beforehand to
+   * properly detect stream completion.
+   *
+   * @return {Promise}
+   */
+  finalize() {
+    if (this._state.aborted) {
+      var abortedError = new ArchiverError("ABORTED");
+      this.emit("error", abortedError);
+      return Promise.reject(abortedError);
+    }
+    if (this._state.finalize) {
+      var finalizingError = new ArchiverError("FINALIZING");
+      this.emit("error", finalizingError);
+      return Promise.reject(finalizingError);
+    }
+    this._state.finalize = true;
+    if (this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
+      this._finalize();
+    }
+    var self2 = this;
+    return new Promise(function(resolve14, reject) {
+      var errored;
+      self2._module.on("end", function() {
+        if (!errored) {
+          resolve14();
+        }
+      });
+      self2._module.on("error", function(err) {
+        errored = true;
+        reject(err);
+      });
+    });
+  }
+  /**
+   * Appends a symlink to the instance.
+   *
+   * This does NOT interact with filesystem and is used for programmatically creating symlinks.
+   *
+   * @param  {String} filepath The symlink path (within archive).
+   * @param  {String} target The target path (within archive).
+   * @param  {Number} mode Sets the entry permissions.
+   * @return {this}
+   */
+  symlink(filepath, target, mode) {
+    if (this._state.finalize || this._state.aborted) {
+      this.emit("error", new ArchiverError("QUEUECLOSED"));
+      return this;
+    }
+    if (typeof filepath !== "string" || filepath.length === 0) {
+      this.emit("error", new ArchiverError("SYMLINKFILEPATHREQUIRED"));
+      return this;
+    }
+    if (typeof target !== "string" || target.length === 0) {
+      this.emit(
+        "error",
+        new ArchiverError("SYMLINKTARGETREQUIRED", { filepath })
+      );
+      return this;
+    }
+    if (!this._supportsSymlink) {
+      this.emit(
+        "error",
+        new ArchiverError("SYMLINKNOTSUPPORTED", { filepath })
+      );
+      return this;
+    }
+    var data = {};
+    data.type = "symlink";
+    data.name = filepath.replace(/\\/g, "/");
+    data.linkname = target.replace(/\\/g, "/");
+    data.sourceType = "buffer";
+    if (typeof mode === "number") {
+      data.mode = mode;
+    }
+    this._entriesCount++;
+    this._queue.push({
+      data,
+      source: Buffer.concat([])
+    });
+    return this;
+  }
+  /**
+   * Returns the current length (in bytes) that has been emitted.
+   *
+   * @return {Number}
+   */
+  pointer() {
+    return this._pointer;
+  }
+};
+
+// node_modules/compress-commons/lib/archivers/archive-entry.js
+var ArchiveEntry = class {
+  getName() {
+  }
+  getSize() {
+  }
+  getLastModifiedDate() {
+  }
+  isDirectory() {
+  }
+};
+
+// node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
+var import_normalize_path2 = __toESM(require_normalize_path(), 1);
+
+// node_modules/compress-commons/lib/archivers/zip/util.js
+function dateToDos(d, forceLocalTime) {
+  forceLocalTime = forceLocalTime || false;
+  var year = forceLocalTime ? d.getFullYear() : d.getUTCFullYear();
+  if (year < 1980) {
+    return 2162688;
+  } else if (year >= 2044) {
+    return 2141175677;
+  }
+  var val = {
+    year,
+    month: forceLocalTime ? d.getMonth() : d.getUTCMonth(),
+    date: forceLocalTime ? d.getDate() : d.getUTCDate(),
+    hours: forceLocalTime ? d.getHours() : d.getUTCHours(),
+    minutes: forceLocalTime ? d.getMinutes() : d.getUTCMinutes(),
+    seconds: forceLocalTime ? d.getSeconds() : d.getUTCSeconds()
+  };
+  return val.year - 1980 << 25 | val.month + 1 << 21 | val.date << 16 | val.hours << 11 | val.minutes << 5 | val.seconds / 2;
+}
+function dosToDate(dos) {
+  return new Date(
+    (dos >> 25 & 127) + 1980,
+    (dos >> 21 & 15) - 1,
+    dos >> 16 & 31,
+    dos >> 11 & 31,
+    dos >> 5 & 63,
+    (dos & 31) << 1
+  );
+}
+function getEightBytes(v) {
+  var buf = Buffer.alloc(8);
+  buf.writeUInt32LE(v % 4294967296, 0);
+  buf.writeUInt32LE(v / 4294967296 | 0, 4);
+  return buf;
+}
+function getShortBytes(v) {
+  var buf = Buffer.alloc(2);
+  buf.writeUInt16LE((v & 65535) >>> 0, 0);
+  return buf;
+}
+function getShortBytesValue(buf, offset) {
+  return buf.readUInt16LE(offset);
+}
+function getLongBytes(v) {
+  var buf = Buffer.alloc(4);
+  buf.writeUInt32LE((v & 4294967295) >>> 0, 0);
+  return buf;
+}
+
+// node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js
+var DATA_DESCRIPTOR_FLAG = 1 << 3;
+var ENCRYPTION_FLAG = 1 << 0;
+var NUMBER_OF_SHANNON_FANO_TREES_FLAG = 1 << 2;
+var SLIDING_DICTIONARY_SIZE_FLAG = 1 << 1;
+var STRONG_ENCRYPTION_FLAG = 1 << 6;
+var UFT8_NAMES_FLAG = 1 << 11;
+var GeneralPurposeBit = class _GeneralPurposeBit {
+  constructor() {
+    this.descriptor = false;
+    this.encryption = false;
+    this.utf8 = false;
+    this.numberOfShannonFanoTrees = 0;
+    this.strongEncryption = false;
+    this.slidingDictionarySize = 0;
+    return this;
+  }
+  encode() {
+    return getShortBytes(
+      (this.descriptor ? DATA_DESCRIPTOR_FLAG : 0) | (this.utf8 ? UFT8_NAMES_FLAG : 0) | (this.encryption ? ENCRYPTION_FLAG : 0) | (this.strongEncryption ? STRONG_ENCRYPTION_FLAG : 0)
+    );
+  }
+  static parse(buf, offset) {
+    var flag = getShortBytesValue(buf, offset);
+    var gbp = new _GeneralPurposeBit();
+    gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG) !== 0);
+    gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG) !== 0);
+    gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG) !== 0);
+    gbp.useEncryption((flag & ENCRYPTION_FLAG) !== 0);
+    gbp.setSlidingDictionarySize(
+      (flag & SLIDING_DICTIONARY_SIZE_FLAG) !== 0 ? 8192 : 4096
+    );
+    gbp.setNumberOfShannonFanoTrees(
+      (flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG) !== 0 ? 3 : 2
+    );
+    return gbp;
+  }
+  setNumberOfShannonFanoTrees(n) {
+    this.numberOfShannonFanoTrees = n;
+  }
+  getNumberOfShannonFanoTrees() {
+    return this.numberOfShannonFanoTrees;
+  }
+  setSlidingDictionarySize(n) {
+    this.slidingDictionarySize = n;
+  }
+  getSlidingDictionarySize() {
+    return this.slidingDictionarySize;
+  }
+  useDataDescriptor(b) {
+    this.descriptor = b;
+  }
+  usesDataDescriptor() {
+    return this.descriptor;
+  }
+  useEncryption(b) {
+    this.encryption = b;
+  }
+  usesEncryption() {
+    return this.encryption;
+  }
+  useStrongEncryption(b) {
+    this.strongEncryption = b;
+  }
+  usesStrongEncryption() {
+    return this.strongEncryption;
+  }
+  useUTF8ForNames(b) {
+    this.utf8 = b;
+  }
+  usesUTF8ForNames() {
+    return this.utf8;
+  }
+};
+
+// node_modules/compress-commons/lib/archivers/zip/unix-stat.js
+var PERM_MASK = 4095;
+var FILE_TYPE_FLAG = 61440;
+var LINK_FLAG = 40960;
+var FILE_FLAG = 32768;
+var DIR_FLAG = 16384;
+var DEFAULT_LINK_PERM = 511;
+var DEFAULT_DIR_PERM = 493;
+var DEFAULT_FILE_PERM = 420;
+var unix_stat_default = {
+  PERM_MASK,
+  FILE_TYPE_FLAG,
+  LINK_FLAG,
+  FILE_FLAG,
+  DIR_FLAG,
+  DEFAULT_LINK_PERM,
+  DEFAULT_DIR_PERM,
+  DEFAULT_FILE_PERM
+};
+
+// node_modules/compress-commons/lib/archivers/zip/constants.js
+var EMPTY = Buffer.alloc(0);
+var SHORT_MASK = 65535;
+var SHORT_SHIFT = 16;
+var SHORT_ZERO = Buffer.from(Array(2));
+var LONG_ZERO = Buffer.from(Array(4));
+var MIN_VERSION_INITIAL = 10;
+var MIN_VERSION_DATA_DESCRIPTOR = 20;
+var MIN_VERSION_ZIP64 = 45;
+var VERSION_MADEBY = 45;
+var METHOD_STORED = 0;
+var METHOD_DEFLATED = 8;
+var PLATFORM_UNIX = 3;
+var PLATFORM_FAT = 0;
+var SIG_LFH = 67324752;
+var SIG_DD = 134695760;
+var SIG_CFH = 33639248;
+var SIG_EOCD = 101010256;
+var SIG_ZIP64_EOCD = 101075792;
+var SIG_ZIP64_EOCD_LOC = 117853008;
+var ZIP64_MAGIC_SHORT = 65535;
+var ZIP64_MAGIC = 4294967295;
+var ZIP64_EXTRA_ID = 1;
+var ZLIB_BEST_SPEED = 1;
+var MODE_MASK = 4095;
+var S_IFDIR = 16384;
+var S_IFREG = 32768;
+var S_DOS_A = 32;
+var S_DOS_D = 16;
+
+// node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
+var ZipArchiveEntry = class extends ArchiveEntry {
+  constructor(name) {
+    super();
+    this.platform = PLATFORM_FAT;
+    this.method = -1;
+    this.name = null;
+    this.size = 0;
+    this.csize = 0;
+    this.gpb = new GeneralPurposeBit();
+    this.crc = 0;
+    this.time = -1;
+    this.minver = MIN_VERSION_INITIAL;
+    this.mode = -1;
+    this.extra = null;
+    this.exattr = 0;
+    this.inattr = 0;
+    this.comment = null;
+    if (name) {
+      this.setName(name);
+    }
+  }
+  /**
+   * Returns the extra fields related to the entry.
+   *
+   * @returns {Buffer}
+   */
+  getCentralDirectoryExtra() {
+    return this.getExtra();
+  }
+  /**
+   * Returns the comment set for the entry.
+   *
+   * @returns {string}
+   */
+  getComment() {
+    return this.comment !== null ? this.comment : "";
+  }
+  /**
+   * Returns the compressed size of the entry.
+   *
+   * @returns {number}
+   */
+  getCompressedSize() {
+    return this.csize;
+  }
+  /**
+   * Returns the CRC32 digest for the entry.
+   *
+   * @returns {number}
+   */
+  getCrc() {
+    return this.crc;
+  }
+  /**
+   * Returns the external file attributes for the entry.
+   *
+   * @returns {number}
+   */
+  getExternalAttributes = function() {
+    return this.exattr;
+  };
+  /**
+   * Returns the extra fields related to the entry.
+   *
+   * @returns {Buffer}
+   */
+  getExtra() {
+    return this.extra !== null ? this.extra : EMPTY;
+  }
+  /**
+   * Returns the general purpose bits related to the entry.
+   *
+   * @returns {GeneralPurposeBit}
+   */
+  getGeneralPurposeBit() {
+    return this.gpb;
+  }
+  /**
+   * Returns the internal file attributes for the entry.
+   *
+   * @returns {number}
+   */
+  getInternalAttributes() {
+    return this.inattr;
+  }
+  /**
+   * Returns the last modified date of the entry.
+   *
+   * @returns {number}
+   */
+  getLastModifiedDate() {
+    return this.getTime();
+  }
+  /**
+   * Returns the extra fields related to the entry.
+   *
+   * @returns {Buffer}
+   */
+  getLocalFileDataExtra() {
+    return this.getExtra();
+  }
+  /**
+   * Returns the compression method used on the entry.
+   *
+   * @returns {number}
+   */
+  getMethod() {
+    return this.method;
+  }
+  /**
+   * Returns the filename of the entry.
+   *
+   * @returns {string}
+   */
+  getName() {
+    return this.name;
+  }
+  /**
+   * Returns the platform on which the entry was made.
+   *
+   * @returns {number}
+   */
+  getPlatform() {
+    return this.platform;
+  }
+  /**
+   * Returns the size of the entry.
+   *
+   * @returns {number}
+   */
+  getSize() {
+    return this.size;
+  }
+  /**
+   * Returns a date object representing the last modified date of the entry.
+   *
+   * @returns {number|Date}
+   */
+  getTime() {
+    return this.time !== -1 ? dosToDate(this.time) : -1;
+  }
+  /**
+   * Returns the DOS timestamp for the entry.
+   *
+   * @returns {number}
+   */
+  getTimeDos() {
+    return this.time !== -1 ? this.time : 0;
+  }
+  /**
+   * Returns the UNIX file permissions for the entry.
+   *
+   * @returns {number}
+   */
+  getUnixMode() {
+    return this.platform !== PLATFORM_UNIX ? 0 : this.getExternalAttributes() >> SHORT_SHIFT & SHORT_MASK;
+  }
+  /**
+   * Returns the version of ZIP needed to extract the entry.
+   *
+   * @returns {number}
+   */
+  getVersionNeededToExtract() {
+    return this.minver;
+  }
+  /**
+   * Sets the comment of the entry.
+   *
+   * @param comment
+   */
+  setComment(comment) {
+    if (Buffer.byteLength(comment) !== comment.length) {
+      this.getGeneralPurposeBit().useUTF8ForNames(true);
+    }
+    this.comment = comment;
+  }
+  /**
+   * Sets the compressed size of the entry.
+   *
+   * @param size
+   */
+  setCompressedSize(size) {
+    if (size < 0) {
+      throw new Error("invalid entry compressed size");
+    }
+    this.csize = size;
+  }
+  /**
+   * Sets the checksum of the entry.
+   *
+   * @param crc
+   */
+  setCrc(crc) {
+    if (crc < 0) {
+      throw new Error("invalid entry crc32");
+    }
+    this.crc = crc;
+  }
+  /**
+   * Sets the external file attributes of the entry.
+   *
+   * @param attr
+   */
+  setExternalAttributes(attr) {
+    this.exattr = attr >>> 0;
+  }
+  /**
+   * Sets the extra fields related to the entry.
+   *
+   * @param extra
+   */
+  setExtra(extra) {
+    this.extra = extra;
+  }
+  /**
+   * Sets the general purpose bits related to the entry.
+   *
+   * @param gpb
+   */
+  setGeneralPurposeBit(gpb) {
+    if (!(gpb instanceof GeneralPurposeBit)) {
+      throw new Error("invalid entry GeneralPurposeBit");
+    }
+    this.gpb = gpb;
+  }
+  /**
+   * Sets the internal file attributes of the entry.
+   *
+   * @param attr
+   */
+  setInternalAttributes(attr) {
+    this.inattr = attr;
+  }
+  /**
+   * Sets the compression method of the entry.
+   *
+   * @param method
+   */
+  setMethod(method) {
+    if (method < 0) {
+      throw new Error("invalid entry compression method");
+    }
+    this.method = method;
+  }
+  /**
+   * Sets the name of the entry.
+   *
+   * @param name
+   * @param prependSlash
+   */
+  setName(name, prependSlash = false) {
+    name = (0, import_normalize_path2.default)(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
+    if (prependSlash) {
+      name = `/${name}`;
+    }
+    if (Buffer.byteLength(name) !== name.length) {
+      this.getGeneralPurposeBit().useUTF8ForNames(true);
+    }
+    this.name = name;
+  }
+  /**
+   * Sets the platform on which the entry was made.
+   *
+   * @param platform
+   */
+  setPlatform(platform2) {
+    this.platform = platform2;
+  }
+  /**
+   * Sets the size of the entry.
+   *
+   * @param size
+   */
+  setSize(size) {
+    if (size < 0) {
+      throw new Error("invalid entry size");
+    }
+    this.size = size;
+  }
+  /**
+   * Sets the time of the entry.
+   *
+   * @param time
+   * @param forceLocalTime
+   */
+  setTime(time, forceLocalTime) {
+    if (!(time instanceof Date)) {
+      throw new Error("invalid entry time");
+    }
+    this.time = dateToDos(time, forceLocalTime);
+  }
+  /**
+   * Sets the UNIX file permissions for the entry.
+   *
+   * @param mode
+   */
+  setUnixMode(mode) {
+    mode |= this.isDirectory() ? S_IFDIR : S_IFREG;
+    var extattr = 0;
+    extattr |= mode << SHORT_SHIFT | (this.isDirectory() ? S_DOS_D : S_DOS_A);
+    this.setExternalAttributes(extattr);
+    this.mode = mode & MODE_MASK;
+    this.platform = PLATFORM_UNIX;
+  }
+  /**
+   * Sets the version of ZIP needed to extract this entry.
+   *
+   * @param minver
+   */
+  setVersionNeededToExtract(minver) {
+    this.minver = minver;
+  }
+  /**
+   * Returns true if this entry represents a directory.
+   *
+   * @returns {boolean}
+   */
+  isDirectory() {
+    return this.getName().slice(-1) === "/";
+  }
+  /**
+   * Returns true if this entry represents a unix symlink,
+   * in which case the entry's content contains the target path
+   * for the symlink.
+   *
+   * @returns {boolean}
+   */
+  isUnixSymlink() {
+    return (this.getUnixMode() & unix_stat_default.FILE_TYPE_FLAG) === unix_stat_default.LINK_FLAG;
+  }
+  /**
+   * Returns true if this entry is using the ZIP64 extension of ZIP.
+   *
+   * @returns {boolean}
+   */
+  isZip64() {
+    return this.csize > ZIP64_MAGIC || this.size > ZIP64_MAGIC;
+  }
+};
+
+// node_modules/compress-commons/lib/archivers/archive-output-stream.js
+var import_readable_stream4 = __toESM(require_ours(), 1);
+
+// node_modules/compress-commons/lib/util/index.js
+var import_readable_stream3 = __toESM(require_ours(), 1);
+function normalizeInputSource2(source) {
+  if (source === null) {
+    return Buffer.alloc(0);
+  } else if (typeof source === "string") {
+    return Buffer.from(source);
+  } else if (isStream(source) && !source._readableState) {
+    var normalized = new import_readable_stream3.PassThrough();
+    source.pipe(normalized);
+    return normalized;
+  }
+  return source;
+}
+
+// node_modules/compress-commons/lib/archivers/archive-output-stream.js
+var ArchiveOutputStream = class extends import_readable_stream4.Transform {
+  constructor(options) {
+    super(options);
+    this.offset = 0;
+    this._archive = {
+      finish: false,
+      finished: false,
+      processing: false
+    };
+  }
+  _appendBuffer(zae, source, callback) {
+  }
+  _appendStream(zae, source, callback) {
+  }
+  _emitErrorCallback = function(err) {
+    if (err) {
+      this.emit("error", err);
+    }
+  };
+  _finish(ae) {
+  }
+  _normalizeEntry(ae) {
+  }
+  _transform(chunk, encoding, callback) {
+    callback(null, chunk);
+  }
+  entry(ae, source, callback) {
+    source = source || null;
+    if (typeof callback !== "function") {
+      callback = this._emitErrorCallback.bind(this);
+    }
+    if (!(ae instanceof ArchiveEntry)) {
+      callback(new Error("not a valid instance of ArchiveEntry"));
+      return;
+    }
+    if (this._archive.finish || this._archive.finished) {
+      callback(new Error("unacceptable entry after finish"));
+      return;
+    }
+    if (this._archive.processing) {
+      callback(new Error("already processing an entry"));
+      return;
+    }
+    this._archive.processing = true;
+    this._normalizeEntry(ae);
+    this._entry = ae;
+    source = normalizeInputSource2(source);
+    if (Buffer.isBuffer(source)) {
+      this._appendBuffer(ae, source, callback);
+    } else if (isStream(source)) {
+      this._appendStream(ae, source, callback);
+    } else {
+      this._archive.processing = false;
+      callback(
+        new Error("input source must be valid Stream or Buffer instance")
+      );
+      return;
+    }
+    return this;
+  }
+  finish() {
+    if (this._archive.processing) {
+      this._archive.finish = true;
+      return;
+    }
+    this._finish();
+  }
+  getBytesWritten() {
+    return this.offset;
+  }
+  write(chunk, cb) {
+    if (chunk) {
+      this.offset += chunk.length;
+    }
+    return super.write(chunk, cb);
+  }
+};
+
+// node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
+var import_crc_323 = __toESM(require_crc32(), 1);
+
+// node_modules/crc32-stream/lib/crc32-stream.js
+var import_readable_stream5 = __toESM(require_ours(), 1);
+var import_crc_32 = __toESM(require_crc32(), 1);
+var CRC32Stream = class extends import_readable_stream5.Transform {
+  constructor(options) {
+    super(options);
+    this.checksum = Buffer.allocUnsafe(4);
+    this.checksum.writeInt32BE(0, 0);
+    this.rawSize = 0;
+  }
+  _transform(chunk, encoding, callback) {
+    if (chunk) {
+      this.checksum = import_crc_32.default.buf(chunk, this.checksum) >>> 0;
+      this.rawSize += chunk.length;
+    }
+    callback(null, chunk);
+  }
+  digest(encoding) {
+    const checksum = Buffer.allocUnsafe(4);
+    checksum.writeUInt32BE(this.checksum >>> 0, 0);
+    return encoding ? checksum.toString(encoding) : checksum;
+  }
+  hex() {
+    return this.digest("hex").toUpperCase();
+  }
+  size() {
+    return this.rawSize;
+  }
+};
+
+// node_modules/crc32-stream/lib/deflate-crc32-stream.js
+var import_zlib2 = require("zlib");
+var import_crc_322 = __toESM(require_crc32(), 1);
+var DeflateCRC32Stream = class extends import_zlib2.DeflateRaw {
+  constructor(options) {
+    super(options);
+    this.checksum = Buffer.allocUnsafe(4);
+    this.checksum.writeInt32BE(0, 0);
+    this.rawSize = 0;
+    this.compressedSize = 0;
+  }
+  push(chunk, encoding) {
+    if (chunk) {
+      this.compressedSize += chunk.length;
+    }
+    return super.push(chunk, encoding);
+  }
+  _transform(chunk, encoding, callback) {
+    if (chunk) {
+      this.checksum = import_crc_322.default.buf(chunk, this.checksum) >>> 0;
+      this.rawSize += chunk.length;
+    }
+    super._transform(chunk, encoding, callback);
+  }
+  digest(encoding) {
+    const checksum = Buffer.allocUnsafe(4);
+    checksum.writeUInt32BE(this.checksum >>> 0, 0);
+    return encoding ? checksum.toString(encoding) : checksum;
+  }
+  hex() {
+    return this.digest("hex").toUpperCase();
+  }
+  size(compressed = false) {
+    if (compressed) {
+      return this.compressedSize;
+    } else {
+      return this.rawSize;
+    }
+  }
+};
+
+// node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
+function _defaults(o) {
+  if (typeof o !== "object") {
+    o = {};
+  }
+  if (typeof o.zlib !== "object") {
+    o.zlib = {};
+  }
+  if (typeof o.zlib.level !== "number") {
+    o.zlib.level = ZLIB_BEST_SPEED;
+  }
+  o.forceZip64 = !!o.forceZip64;
+  o.forceLocalTime = !!o.forceLocalTime;
+  return o;
+}
+var ZipArchiveOutputStream = class extends ArchiveOutputStream {
+  constructor(options) {
+    const _options = _defaults(options);
+    super(_options);
+    this.options = _options;
+    this._entry = null;
+    this._entries = [];
+    this._archive = {
+      centralLength: 0,
+      centralOffset: 0,
+      comment: "",
+      finish: false,
+      finished: false,
+      processing: false,
+      forceZip64: _options.forceZip64,
+      forceLocalTime: _options.forceLocalTime
+    };
+  }
+  _afterAppend(ae) {
+    this._entries.push(ae);
+    if (ae.getGeneralPurposeBit().usesDataDescriptor()) {
+      this._writeDataDescriptor(ae);
+    }
+    this._archive.processing = false;
+    this._entry = null;
+    if (this._archive.finish && !this._archive.finished) {
+      this._finish();
+    }
+  }
+  _appendBuffer(ae, source, callback) {
+    if (source.length === 0) {
+      ae.setMethod(METHOD_STORED);
+    }
+    var method = ae.getMethod();
+    if (method === METHOD_STORED) {
+      ae.setSize(source.length);
+      ae.setCompressedSize(source.length);
+      ae.setCrc(import_crc_323.default.buf(source) >>> 0);
+    }
+    this._writeLocalFileHeader(ae);
+    if (method === METHOD_STORED) {
+      this.write(source);
+      this._afterAppend(ae);
+      callback(null, ae);
+      return;
+    } else if (method === METHOD_DEFLATED) {
+      this._smartStream(ae, callback).end(source);
+      return;
+    } else {
+      callback(new Error("compression method " + method + " not implemented"));
+      return;
+    }
+  }
+  _appendStream(ae, source, callback) {
+    ae.getGeneralPurposeBit().useDataDescriptor(true);
+    ae.setVersionNeededToExtract(MIN_VERSION_DATA_DESCRIPTOR);
+    this._writeLocalFileHeader(ae);
+    var smart = this._smartStream(ae, callback);
+    source.once("error", function(err) {
+      smart.emit("error", err);
+      smart.end();
+    });
+    source.pipe(smart);
+  }
+  _finish() {
+    this._archive.centralOffset = this.offset;
+    this._entries.forEach(
+      function(ae) {
+        this._writeCentralFileHeader(ae);
+      }.bind(this)
+    );
+    this._archive.centralLength = this.offset - this._archive.centralOffset;
+    if (this.isZip64()) {
+      this._writeCentralDirectoryZip64();
+    }
+    this._writeCentralDirectoryEnd();
+    this._archive.processing = false;
+    this._archive.finish = true;
+    this._archive.finished = true;
+    this.end();
+  }
+  _normalizeEntry(ae) {
+    if (ae.getMethod() === -1) {
+      ae.setMethod(METHOD_DEFLATED);
+    }
+    if (ae.getMethod() === METHOD_DEFLATED) {
+      ae.getGeneralPurposeBit().useDataDescriptor(true);
+      ae.setVersionNeededToExtract(MIN_VERSION_DATA_DESCRIPTOR);
+    }
+    if (ae.getTime() === -1) {
+      ae.setTime(/* @__PURE__ */ new Date(), this._archive.forceLocalTime);
+    }
+    ae._offsets = {
+      file: 0,
+      data: 0,
+      contents: 0
+    };
+  }
+  _smartStream(ae, callback) {
+    var deflate = ae.getMethod() === METHOD_DEFLATED;
+    var process2 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();
+    var error3 = null;
+    function handleStuff() {
+      var digest = process2.digest().readUInt32BE(0);
+      ae.setCrc(digest);
+      ae.setSize(process2.size());
+      ae.setCompressedSize(process2.size(true));
+      this._afterAppend(ae);
+      callback(error3, ae);
+    }
+    process2.once("end", handleStuff.bind(this));
+    process2.once("error", function(err) {
+      error3 = err;
+    });
+    process2.pipe(this, { end: false });
+    return process2;
+  }
+  _writeCentralDirectoryEnd() {
+    var records = this._entries.length;
+    var size = this._archive.centralLength;
+    var offset = this._archive.centralOffset;
+    if (this.isZip64()) {
+      records = ZIP64_MAGIC_SHORT;
+      size = ZIP64_MAGIC;
+      offset = ZIP64_MAGIC;
+    }
+    this.write(getLongBytes(SIG_EOCD));
+    this.write(SHORT_ZERO);
+    this.write(SHORT_ZERO);
+    this.write(getShortBytes(records));
+    this.write(getShortBytes(records));
+    this.write(getLongBytes(size));
+    this.write(getLongBytes(offset));
+    var comment = this.getComment();
+    var commentLength = Buffer.byteLength(comment);
+    this.write(getShortBytes(commentLength));
+    this.write(comment);
+  }
+  _writeCentralDirectoryZip64() {
+    this.write(getLongBytes(SIG_ZIP64_EOCD));
+    this.write(getEightBytes(44));
+    this.write(getShortBytes(MIN_VERSION_ZIP64));
+    this.write(getShortBytes(MIN_VERSION_ZIP64));
+    this.write(LONG_ZERO);
+    this.write(LONG_ZERO);
+    this.write(getEightBytes(this._entries.length));
+    this.write(getEightBytes(this._entries.length));
+    this.write(getEightBytes(this._archive.centralLength));
+    this.write(getEightBytes(this._archive.centralOffset));
+    this.write(getLongBytes(SIG_ZIP64_EOCD_LOC));
+    this.write(LONG_ZERO);
+    this.write(
+      getEightBytes(this._archive.centralOffset + this._archive.centralLength)
+    );
+    this.write(getLongBytes(1));
+  }
+  _writeCentralFileHeader(ae) {
+    var gpb = ae.getGeneralPurposeBit();
+    var method = ae.getMethod();
+    var fileOffset = ae._offsets.file;
+    var size = ae.getSize();
+    var compressedSize = ae.getCompressedSize();
+    if (ae.isZip64() || fileOffset > ZIP64_MAGIC) {
+      size = ZIP64_MAGIC;
+      compressedSize = ZIP64_MAGIC;
+      fileOffset = ZIP64_MAGIC;
+      ae.setVersionNeededToExtract(MIN_VERSION_ZIP64);
+      var extraBuf = Buffer.concat(
+        [
+          getShortBytes(ZIP64_EXTRA_ID),
+          getShortBytes(24),
+          getEightBytes(ae.getSize()),
+          getEightBytes(ae.getCompressedSize()),
+          getEightBytes(ae._offsets.file)
+        ],
+        28
+      );
+      ae.setExtra(extraBuf);
+    }
+    this.write(getLongBytes(SIG_CFH));
+    this.write(getShortBytes(ae.getPlatform() << 8 | VERSION_MADEBY));
+    this.write(getShortBytes(ae.getVersionNeededToExtract()));
+    this.write(gpb.encode());
+    this.write(getShortBytes(method));
+    this.write(getLongBytes(ae.getTimeDos()));
+    this.write(getLongBytes(ae.getCrc()));
+    this.write(getLongBytes(compressedSize));
+    this.write(getLongBytes(size));
+    var name = ae.getName();
+    var comment = ae.getComment();
+    var extra = ae.getCentralDirectoryExtra();
+    if (gpb.usesUTF8ForNames()) {
+      name = Buffer.from(name);
+      comment = Buffer.from(comment);
+    }
+    this.write(getShortBytes(name.length));
+    this.write(getShortBytes(extra.length));
+    this.write(getShortBytes(comment.length));
+    this.write(SHORT_ZERO);
+    this.write(getShortBytes(ae.getInternalAttributes()));
+    this.write(getLongBytes(ae.getExternalAttributes()));
+    this.write(getLongBytes(fileOffset));
+    this.write(name);
+    this.write(extra);
+    this.write(comment);
+  }
+  _writeDataDescriptor(ae) {
+    this.write(getLongBytes(SIG_DD));
+    this.write(getLongBytes(ae.getCrc()));
+    if (ae.isZip64()) {
+      this.write(getEightBytes(ae.getCompressedSize()));
+      this.write(getEightBytes(ae.getSize()));
+    } else {
+      this.write(getLongBytes(ae.getCompressedSize()));
+      this.write(getLongBytes(ae.getSize()));
+    }
+  }
+  _writeLocalFileHeader(ae) {
+    var gpb = ae.getGeneralPurposeBit();
+    var method = ae.getMethod();
+    var name = ae.getName();
+    var extra = ae.getLocalFileDataExtra();
+    if (ae.isZip64()) {
+      gpb.useDataDescriptor(true);
+      ae.setVersionNeededToExtract(MIN_VERSION_ZIP64);
+    }
+    if (gpb.usesUTF8ForNames()) {
+      name = Buffer.from(name);
+    }
+    ae._offsets.file = this.offset;
+    this.write(getLongBytes(SIG_LFH));
+    this.write(getShortBytes(ae.getVersionNeededToExtract()));
+    this.write(gpb.encode());
+    this.write(getShortBytes(method));
+    this.write(getLongBytes(ae.getTimeDos()));
+    ae._offsets.data = this.offset;
+    if (gpb.usesDataDescriptor()) {
+      this.write(LONG_ZERO);
+      this.write(LONG_ZERO);
+      this.write(LONG_ZERO);
+    } else {
+      this.write(getLongBytes(ae.getCrc()));
+      this.write(getLongBytes(ae.getCompressedSize()));
+      this.write(getLongBytes(ae.getSize()));
+    }
+    this.write(getShortBytes(name.length));
+    this.write(getShortBytes(extra.length));
+    this.write(name);
+    this.write(extra);
+    ae._offsets.contents = this.offset;
+  }
+  getComment(comment) {
+    return this._archive.comment !== null ? this._archive.comment : "";
+  }
+  isZip64() {
+    return this._archive.forceZip64 || this._entries.length > ZIP64_MAGIC_SHORT || this._archive.centralLength > ZIP64_MAGIC || this._archive.centralOffset > ZIP64_MAGIC;
+  }
+  setComment(comment) {
+    this._archive.comment = comment;
+  }
+};
+
+// node_modules/zip-stream/utils.js
+var import_normalize_path3 = __toESM(require_normalize_path(), 1);
+function dateify2(dateish) {
+  dateish = dateish || /* @__PURE__ */ new Date();
+  if (dateish instanceof Date) {
+    dateish = dateish;
+  } else if (typeof dateish === "string") {
+    dateish = new Date(dateish);
+  } else {
+    dateish = /* @__PURE__ */ new Date();
+  }
+  return dateish;
+}
+function sanitizePath2(filepath) {
+  return (0, import_normalize_path3.default)(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
+}
+
+// node_modules/zip-stream/index.js
+var ZipStream = class extends ZipArchiveOutputStream {
+  /**
+   * @constructor
+   * @extends external:ZipArchiveOutputStream
+   * @param {Object} [options]
+   * @param {String} [options.comment] Sets the zip archive comment.
+   * @param {Boolean} [options.forceLocalTime=false] Forces the archive to contain local file times instead of UTC.
+   * @param {Boolean} [options.forceZip64=false] Forces the archive to contain ZIP64 headers.
+   * @param {Boolean} [options.store=false] Sets the compression method to STORE.
+   * @param {Object} [options.zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}
+   * to control compression.
+   */
+  constructor(options) {
+    options = options || {};
+    options.zlib = options.zlib || {};
+    if (typeof options.level === "number" && options.level >= 0) {
+      options.zlib.level = options.level;
+      delete options.level;
+    }
+    if (!options.forceZip64 && typeof options.zlib.level === "number" && options.zlib.level === 0) {
+      options.store = true;
+    }
+    options.namePrependSlash = options.namePrependSlash || false;
+    super(options);
+    if (options.comment && options.comment.length > 0) {
+      this.setComment(options.comment);
+    }
+  }
+  /**
+   * Normalizes entry data with fallbacks for key properties.
+   *
+   * @private
+   * @param  {Object} data
+   * @return {Object}
+   */
+  _normalizeFileData(data) {
+    data = {
+      type: "file",
+      name: null,
+      namePrependSlash: this.options.namePrependSlash,
+      linkname: null,
+      date: null,
+      mode: null,
+      store: this.options.store,
+      comment: "",
+      ...data
+    };
+    let isDir = data.type === "directory";
+    const isSymlink = data.type === "symlink";
+    if (data.name) {
+      data.name = sanitizePath2(data.name);
+      if (!isSymlink && data.name.slice(-1) === "/") {
+        isDir = true;
+        data.type = "directory";
+      } else if (isDir) {
+        data.name += "/";
+      }
+    }
+    if (isDir || isSymlink) {
+      data.store = true;
+    }
+    data.date = dateify2(data.date);
+    return data;
+  }
+  /**
+   * Appends an entry given an input source (text string, buffer, or stream).
+   *
+   * @param  {(Buffer|Stream|String)} source The input source.
+   * @param  {Object} data
+   * @param  {String} data.name Sets the entry name including internal path.
+   * @param  {String} [data.comment] Sets the entry comment.
+   * @param  {(String|Date)} [data.date=NOW()] Sets the entry date.
+   * @param  {Number} [data.mode=D:0755/F:0644] Sets the entry permissions.
+   * @param  {Boolean} [data.store=options.store] Sets the compression method to STORE.
+   * @param  {String} [data.type=file] Sets the entry type. Defaults to `directory`
+   * if name ends with trailing slash.
+   * @param  {Function} callback
+   * @return this
+   */
+  entry(source, data, callback) {
+    if (typeof callback !== "function") {
+      callback = this._emitErrorCallback.bind(this);
+    }
+    data = this._normalizeFileData(data);
+    if (data.type !== "file" && data.type !== "directory" && data.type !== "symlink") {
+      callback(new Error(data.type + " entries not currently supported"));
+      return;
+    }
+    if (typeof data.name !== "string" || data.name.length === 0) {
+      callback(new Error("entry name must be a non-empty string value"));
+      return;
+    }
+    if (data.type === "symlink" && typeof data.linkname !== "string") {
+      callback(
+        new Error(
+          "entry linkname must be a non-empty string value when type equals symlink"
+        )
+      );
+      return;
+    }
+    const entry = new ZipArchiveEntry(data.name);
+    entry.setTime(data.date, this.options.forceLocalTime);
+    if (data.namePrependSlash) {
+      entry.setName(data.name, true);
+    }
+    if (data.store) {
+      entry.setMethod(0);
+    }
+    if (data.comment.length > 0) {
+      entry.setComment(data.comment);
+    }
+    if (data.type === "symlink" && typeof data.mode !== "number") {
+      data.mode = 40960;
+    }
+    if (typeof data.mode === "number") {
+      if (data.type === "symlink") {
+        data.mode |= 40960;
+      }
+      entry.setUnixMode(data.mode);
+    }
+    if (data.type === "symlink" && typeof data.linkname === "string") {
+      source = Buffer.from(data.linkname);
+    }
+    return super.entry(entry, source, callback);
+  }
+  /**
+   * Finalizes the instance and prevents further appending to the archive
+   * structure (queue will continue til drained).
+   *
+   * @return void
+   */
+  finalize() {
+    this.finish();
+  }
+};
+
+// node_modules/archiver/lib/plugins/zip.js
+var Zip = class {
+  /**
+   * @constructor
+   * @param {ZipOptions} [options]
+   * @param {String} [options.comment] Sets the zip archive comment.
+   * @param {Boolean} [options.forceLocalTime=false] Forces the archive to contain local file times instead of UTC.
+   * @param {Boolean} [options.forceZip64=false] Forces the archive to contain ZIP64 headers.
+   * @param {Boolean} [options.namePrependSlash=false] Prepends a forward slash to archive file paths.
+   * @param {Boolean} [options.store=false] Sets the compression method to STORE.
+   * @param {Object} [options.zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}
+   */
+  constructor(options) {
+    options = this.options = {
+      comment: "",
+      forceUTC: false,
+      namePrependSlash: false,
+      store: false,
+      ...options
+    };
+    this.engine = new ZipStream(options);
+  }
+  /**
+   * @param  {(Buffer|Stream)} source
+   * @param  {ZipEntryData} data
+   * @param  {String} data.name Sets the entry name including internal path.
+   * @param  {(String|Date)} [data.date=NOW()] Sets the entry date.
+   * @param  {Number} [data.mode=D:0755/F:0644] Sets the entry permissions.
+   * @param  {String} [data.prefix] Sets a path prefix for the entry name. Useful
+   * when working with methods like `directory` or `glob`.
+   * @param  {fs.Stats} [data.stats] Sets the fs stat data for this entry allowing
+   * for reduction of fs stat calls when stat data is already known.
+   * @param  {Boolean} [data.store=ZipOptions.store] Sets the compression method to STORE.
+   * @param  {Function} callback
+   * @return void
+   */
+  append(source, data, callback) {
+    this.engine.entry(source, data, callback);
+  }
+  /**
+   * @return void
+   */
+  finalize() {
+    this.engine.finalize();
+  }
+  /**
+   * @return this.engine
+   */
+  on() {
+    return this.engine.on.apply(this.engine, arguments);
+  }
+  /**
+   * @return this.engine
+   */
+  pipe() {
+    return this.engine.pipe.apply(this.engine, arguments);
+  }
+  /**
+   * @return this.engine
+   */
+  unpipe() {
+    return this.engine.unpipe.apply(this.engine, arguments);
+  }
+};
+
+// node_modules/archiver/lib/plugins/tar.js
+var import_tar_stream = __toESM(require_tar_stream(), 1);
+
+// node_modules/archiver/lib/plugins/json.js
+var import_readable_stream6 = __toESM(require_ours(), 1);
+
+// node_modules/buffer-crc32/dist/index.mjs
+var CRC_TABLE = new Int32Array([
+  0,
+  1996959894,
+  3993919788,
+  2567524794,
+  124634137,
+  1886057615,
+  3915621685,
+  2657392035,
+  249268274,
+  2044508324,
+  3772115230,
+  2547177864,
+  162941995,
+  2125561021,
+  3887607047,
+  2428444049,
+  498536548,
+  1789927666,
+  4089016648,
+  2227061214,
+  450548861,
+  1843258603,
+  4107580753,
+  2211677639,
+  325883990,
+  1684777152,
+  4251122042,
+  2321926636,
+  335633487,
+  1661365465,
+  4195302755,
+  2366115317,
+  997073096,
+  1281953886,
+  3579855332,
+  2724688242,
+  1006888145,
+  1258607687,
+  3524101629,
+  2768942443,
+  901097722,
+  1119000684,
+  3686517206,
+  2898065728,
+  853044451,
+  1172266101,
+  3705015759,
+  2882616665,
+  651767980,
+  1373503546,
+  3369554304,
+  3218104598,
+  565507253,
+  1454621731,
+  3485111705,
+  3099436303,
+  671266974,
+  1594198024,
+  3322730930,
+  2970347812,
+  795835527,
+  1483230225,
+  3244367275,
+  3060149565,
+  1994146192,
+  31158534,
+  2563907772,
+  4023717930,
+  1907459465,
+  112637215,
+  2680153253,
+  3904427059,
+  2013776290,
+  251722036,
+  2517215374,
+  3775830040,
+  2137656763,
+  141376813,
+  2439277719,
+  3865271297,
+  1802195444,
+  476864866,
+  2238001368,
+  4066508878,
+  1812370925,
+  453092731,
+  2181625025,
+  4111451223,
+  1706088902,
+  314042704,
+  2344532202,
+  4240017532,
+  1658658271,
+  366619977,
+  2362670323,
+  4224994405,
+  1303535960,
+  984961486,
+  2747007092,
+  3569037538,
+  1256170817,
+  1037604311,
+  2765210733,
+  3554079995,
+  1131014506,
+  879679996,
+  2909243462,
+  3663771856,
+  1141124467,
+  855842277,
+  2852801631,
+  3708648649,
+  1342533948,
+  654459306,
+  3188396048,
+  3373015174,
+  1466479909,
+  544179635,
+  3110523913,
+  3462522015,
+  1591671054,
+  702138776,
+  2966460450,
+  3352799412,
+  1504918807,
+  783551873,
+  3082640443,
+  3233442989,
+  3988292384,
+  2596254646,
+  62317068,
+  1957810842,
+  3939845945,
+  2647816111,
+  81470997,
+  1943803523,
+  3814918930,
+  2489596804,
+  225274430,
+  2053790376,
+  3826175755,
+  2466906013,
+  167816743,
+  2097651377,
+  4027552580,
+  2265490386,
+  503444072,
+  1762050814,
+  4150417245,
+  2154129355,
+  426522225,
+  1852507879,
+  4275313526,
+  2312317920,
+  282753626,
+  1742555852,
+  4189708143,
+  2394877945,
+  397917763,
+  1622183637,
+  3604390888,
+  2714866558,
+  953729732,
+  1340076626,
+  3518719985,
+  2797360999,
+  1068828381,
+  1219638859,
+  3624741850,
+  2936675148,
+  906185462,
+  1090812512,
+  3747672003,
+  2825379669,
+  829329135,
+  1181335161,
+  3412177804,
+  3160834842,
+  628085408,
+  1382605366,
+  3423369109,
+  3138078467,
+  570562233,
+  1426400815,
+  3317316542,
+  2998733608,
+  733239954,
+  1555261956,
+  3268935591,
+  3050360625,
+  752459403,
+  1541320221,
+  2607071920,
+  3965973030,
+  1969922972,
+  40735498,
+  2617837225,
+  3943577151,
+  1913087877,
+  83908371,
+  2512341634,
+  3803740692,
+  2075208622,
+  213261112,
+  2463272603,
+  3855990285,
+  2094854071,
+  198958881,
+  2262029012,
+  4057260610,
+  1759359992,
+  534414190,
+  2176718541,
+  4139329115,
+  1873836001,
+  414664567,
+  2282248934,
+  4279200368,
+  1711684554,
+  285281116,
+  2405801727,
+  4167216745,
+  1634467795,
+  376229701,
+  2685067896,
+  3608007406,
+  1308918612,
+  956543938,
+  2808555105,
+  3495958263,
+  1231636301,
+  1047427035,
+  2932959818,
+  3654703836,
+  1088359270,
+  936918e3,
+  2847714899,
+  3736837829,
+  1202900863,
+  817233897,
+  3183342108,
+  3401237130,
+  1404277552,
+  615818150,
+  3134207493,
+  3453421203,
+  1423857449,
+  601450431,
+  3009837614,
+  3294710456,
+  1567103746,
+  711928724,
+  3020668471,
+  3272380065,
+  1510334235,
+  755167117
+]);
+function ensureBuffer(input) {
+  if (Buffer.isBuffer(input)) {
+    return input;
+  }
+  if (typeof input === "number") {
+    return Buffer.alloc(input);
+  } else if (typeof input === "string") {
+    return Buffer.from(input);
+  } else {
+    throw new Error("input must be buffer, number, or string, received " + typeof input);
+  }
+}
+function bufferizeInt(num) {
+  const tmp = ensureBuffer(4);
+  tmp.writeInt32BE(num, 0);
+  return tmp;
+}
+function _crc32(buf, previous) {
+  buf = ensureBuffer(buf);
+  if (Buffer.isBuffer(previous)) {
+    previous = previous.readUInt32BE(0);
+  }
+  let crc = ~~previous ^ -1;
+  for (var n = 0; n < buf.length; n++) {
+    crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
+  }
+  return crc ^ -1;
+}
+function crc324() {
+  return bufferizeInt(_crc32.apply(null, arguments));
+}
+crc324.signed = function() {
+  return _crc32.apply(null, arguments);
+};
+crc324.unsigned = function() {
+  return _crc32.apply(null, arguments) >>> 0;
+};
+
+// node_modules/archiver/index.js
+var ZipArchive = class extends Archiver {
+  constructor(options) {
+    super(options);
+    this._format = "zip";
+    this._module = new Zip(options);
+    this._supportsDirectory = true;
+    this._supportsSymlink = true;
+    this._modulePipe();
+  }
+};
 
 // src/artifact-scanner.ts
-var fs23 = __toESM(require("fs"));
+var fs24 = __toESM(require("fs"));
 var os6 = __toESM(require("os"));
-var path20 = __toESM(require("path"));
+var path21 = __toESM(require("path"));
 var exec = __toESM(require_exec());
 var GITHUB_PAT_CLASSIC_PATTERN = {
   type: "Personal Access Token (Classic)" /* PersonalAccessClassic */,
@@ -157923,17 +162552,17 @@ function isAuthToken(value, patterns = GITHUB_TOKEN_PATTERNS) {
   }
   return void 0;
 }
-function scanFileForTokens(filePath, relativePath, logger) {
+function scanFileForTokens(filePath, relativePath2, logger) {
   const findings = [];
   try {
-    const content = fs23.readFileSync(filePath, "utf8");
+    const content = fs24.readFileSync(filePath, "utf8");
     for (const { type, pattern } of GITHUB_TOKEN_PATTERNS) {
       const matches = content.match(pattern);
       if (matches) {
         for (let i = 0; i < matches.length; i++) {
-          findings.push({ tokenType: type, filePath: relativePath });
+          findings.push({ tokenType: type, filePath: relativePath2 });
         }
-        logger.debug(`Found ${matches.length} ${type}(s) in ${relativePath}`);
+        logger.debug(`Found ${matches.length} ${type}(s) in ${relativePath2}`);
       }
     }
     return findings;
@@ -157959,10 +162588,10 @@ async function scanArchiveFile(archivePath, relativeArchivePath, extractDir, log
     findings: []
   };
   try {
-    const tempExtractDir = fs23.mkdtempSync(
-      path20.join(extractDir, `extract-${depth}-`)
+    const tempExtractDir = fs24.mkdtempSync(
+      path21.join(extractDir, `extract-${depth}-`)
     );
-    const fileName = path20.basename(archivePath).toLowerCase();
+    const fileName = path21.basename(archivePath).toLowerCase();
     if (fileName.endsWith(".tar.gz") || fileName.endsWith(".tgz")) {
       logger.debug(`Extracting tar.gz file: ${archivePath}`);
       await exec.exec("tar", ["-xzf", archivePath, "-C", tempExtractDir], {
@@ -157979,21 +162608,21 @@ async function scanArchiveFile(archivePath, relativeArchivePath, extractDir, log
       );
     } else if (fileName.endsWith(".zst")) {
       logger.debug(`Extracting zst file: ${archivePath}`);
-      const outputFile = path20.join(
+      const outputFile = path21.join(
         tempExtractDir,
-        path20.basename(archivePath, ".zst")
+        path21.basename(archivePath, ".zst")
       );
       await exec.exec("zstd", ["-d", archivePath, "-o", outputFile], {
         silent: true
       });
     } else if (fileName.endsWith(".gz")) {
       logger.debug(`Extracting gz file: ${archivePath}`);
-      const outputFile = path20.join(
+      const outputFile = path21.join(
         tempExtractDir,
-        path20.basename(archivePath, ".gz")
+        path21.basename(archivePath, ".gz")
       );
       await exec.exec("gunzip", ["-c", archivePath], {
-        outStream: fs23.createWriteStream(outputFile),
+        outStream: fs24.createWriteStream(outputFile),
         silent: true
       });
     } else if (fileName.endsWith(".zip")) {
@@ -158014,7 +162643,7 @@ async function scanArchiveFile(archivePath, relativeArchivePath, extractDir, log
     );
     result.scannedFiles += scanResult.scannedFiles;
     result.findings.push(...scanResult.findings);
-    fs23.rmSync(tempExtractDir, { recursive: true, force: true });
+    fs24.rmSync(tempExtractDir, { recursive: true, force: true });
   } catch (e) {
     logger.debug(
       `Could not extract or scan archive file ${archivePath}: ${getErrorMessage(e)}`
@@ -158022,17 +162651,17 @@ async function scanArchiveFile(archivePath, relativeArchivePath, extractDir, log
   }
   return result;
 }
-async function scanFile(fullPath, relativePath, extractDir, logger, depth = 0) {
+async function scanFile(fullPath, relativePath2, extractDir, logger, depth = 0) {
   const result = {
     scannedFiles: 1,
     findings: []
   };
-  const fileName = path20.basename(fullPath).toLowerCase();
+  const fileName = path21.basename(fullPath).toLowerCase();
   const isArchive = fileName.endsWith(".zip") || fileName.endsWith(".tar.gz") || fileName.endsWith(".tgz") || fileName.endsWith(".tar.zst") || fileName.endsWith(".zst") || fileName.endsWith(".gz");
   if (isArchive) {
     const archiveResult = await scanArchiveFile(
       fullPath,
-      relativePath,
+      relativePath2,
       extractDir,
       logger,
       depth
@@ -158040,7 +162669,7 @@ async function scanFile(fullPath, relativePath, extractDir, logger, depth = 0) {
     result.scannedFiles += archiveResult.scannedFiles;
     result.findings.push(...archiveResult.findings);
   }
-  const fileFindings = scanFileForTokens(fullPath, relativePath, logger);
+  const fileFindings = scanFileForTokens(fullPath, relativePath2, logger);
   result.findings.push(...fileFindings);
   return result;
 }
@@ -158049,14 +162678,14 @@ async function scanDirectory(dirPath, baseRelativePath, logger, depth = 0) {
     scannedFiles: 0,
     findings: []
   };
-  const entries = fs23.readdirSync(dirPath, { withFileTypes: true });
+  const entries = fs24.readdirSync(dirPath, { withFileTypes: true });
   for (const entry of entries) {
-    const fullPath = path20.join(dirPath, entry.name);
-    const relativePath = path20.join(baseRelativePath, entry.name);
+    const fullPath = path21.join(dirPath, entry.name);
+    const relativePath2 = path21.join(baseRelativePath, entry.name);
     if (entry.isDirectory()) {
       const subResult = await scanDirectory(
         fullPath,
-        relativePath,
+        relativePath2,
         logger,
         depth
       );
@@ -158065,8 +162694,8 @@ async function scanDirectory(dirPath, baseRelativePath, logger, depth = 0) {
     } else if (entry.isFile()) {
       const fileResult = await scanFile(
         fullPath,
-        relativePath,
-        path20.dirname(fullPath),
+        relativePath2,
+        path21.dirname(fullPath),
         logger,
         depth
       );
@@ -158084,11 +162713,11 @@ async function scanArtifactsForTokens(filesToScan, logger) {
     scannedFiles: 0,
     findings: []
   };
-  const tempScanDir = fs23.mkdtempSync(path20.join(os6.tmpdir(), "artifact-scan-"));
+  const tempScanDir = fs24.mkdtempSync(path21.join(os6.tmpdir(), "artifact-scan-"));
   try {
     for (const filePath of filesToScan) {
-      const stats = fs23.statSync(filePath);
-      const fileName = path20.basename(filePath);
+      const stats = fs24.statSync(filePath);
+      const fileName = path21.basename(filePath);
       if (stats.isDirectory()) {
         const dirResult = await scanDirectory(filePath, fileName, logger);
         result.scannedFiles += dirResult.scannedFiles;
@@ -158125,7 +162754,7 @@ async function scanArtifactsForTokens(filesToScan, logger) {
     }
   } finally {
     try {
-      fs23.rmSync(tempScanDir, { recursive: true, force: true });
+      fs24.rmSync(tempScanDir, { recursive: true, force: true });
     } catch (e) {
       logger.debug(
         `Could not clean up temporary scan directory: ${getErrorMessage(e)}`
@@ -158145,14 +162774,14 @@ async function uploadCombinedSarifArtifacts(logger, gitHubVariant, codeQlVersion
       logger.info(
         "Uploading available combined SARIF files as Actions debugging artifact..."
       );
-      const baseTempDir = path21.resolve(tempDir, "combined-sarif");
+      const baseTempDir = path22.resolve(tempDir, "combined-sarif");
       const toUpload = [];
-      if (fs24.existsSync(baseTempDir)) {
-        const outputDirs = fs24.readdirSync(baseTempDir);
+      if (fs25.existsSync(baseTempDir)) {
+        const outputDirs = fs25.readdirSync(baseTempDir);
         for (const outputDir of outputDirs) {
-          const sarifFiles = fs24.readdirSync(path21.resolve(baseTempDir, outputDir)).filter((f) => path21.extname(f) === ".sarif");
+          const sarifFiles = fs25.readdirSync(path22.resolve(baseTempDir, outputDir)).filter((f) => path22.extname(f) === ".sarif");
           for (const sarifFile of sarifFiles) {
-            toUpload.push(path21.resolve(baseTempDir, outputDir, sarifFile));
+            toUpload.push(path22.resolve(baseTempDir, outputDir, sarifFile));
           }
         }
       }
@@ -158178,17 +162807,17 @@ async function uploadCombinedSarifArtifacts(logger, gitHubVariant, codeQlVersion
 function tryPrepareSarifDebugArtifact(config, language, logger) {
   try {
     const analyzeActionOutputDir = process.env["CODEQL_ACTION_SARIF_RESULTS_OUTPUT_DIR" /* SARIF_RESULTS_OUTPUT_DIR */];
-    if (analyzeActionOutputDir !== void 0 && fs24.existsSync(analyzeActionOutputDir) && fs24.lstatSync(analyzeActionOutputDir).isDirectory()) {
-      const sarifFile = path21.resolve(
+    if (analyzeActionOutputDir !== void 0 && fs25.existsSync(analyzeActionOutputDir) && fs25.lstatSync(analyzeActionOutputDir).isDirectory()) {
+      const sarifFile = path22.resolve(
         analyzeActionOutputDir,
         `${language}.sarif`
       );
-      if (fs24.existsSync(sarifFile)) {
-        const sarifInDbLocation = path21.resolve(
+      if (fs25.existsSync(sarifFile)) {
+        const sarifInDbLocation = path22.resolve(
           config.dbLocation,
           `${language}.sarif`
         );
-        fs24.copyFileSync(sarifFile, sarifInDbLocation);
+        fs25.copyFileSync(sarifFile, sarifInDbLocation);
         return sarifInDbLocation;
       }
     }
@@ -158239,13 +162868,13 @@ async function tryUploadAllAvailableDebugArtifacts(codeql, config, logger, codeQ
         }
         logger.info("Preparing database logs debug artifact...");
         const databaseDirectory = getCodeQLDatabasePath(config, language);
-        const logsDirectory = path21.resolve(databaseDirectory, "log");
+        const logsDirectory = path22.resolve(databaseDirectory, "log");
         if (doesDirectoryExist(logsDirectory)) {
           filesToUpload.push(...listFolder(logsDirectory));
           logger.info("Database logs debug artifact ready for upload.");
         }
         logger.info("Preparing database cluster logs debug artifact...");
-        const multiLanguageTracingLogsDirectory = path21.resolve(
+        const multiLanguageTracingLogsDirectory = path22.resolve(
           config.dbLocation,
           "log"
         );
@@ -158332,8 +162961,8 @@ async function uploadArtifacts(logger, toUpload, rootDir, artifactName, ghVarian
   try {
     await artifactUploader.uploadArtifact(
       sanitizeArtifactName(`${artifactName}${suffix}`),
-      toUpload.map((file) => path21.normalize(file)),
-      path21.normalize(rootDir),
+      toUpload.map((file) => path22.normalize(file)),
+      path22.normalize(rootDir),
       {
         // ensure we don't keep the debug artifacts around for too long since they can be large.
         retentionDays: 7
@@ -158360,18 +162989,18 @@ async function getArtifactUploaderClient(logger, ghVariant) {
 }
 async function createPartialDatabaseBundle(config, language) {
   const databasePath = getCodeQLDatabasePath(config, language);
-  const databaseBundlePath = path21.resolve(
+  const databaseBundlePath = path22.resolve(
     config.dbLocation,
     `${config.debugDatabaseName}-${language}-partial.zip`
   );
   core16.info(
     `${config.debugDatabaseName}-${language} is not finalized. Uploading partial database bundle at ${databaseBundlePath}...`
   );
-  if (fs24.existsSync(databaseBundlePath)) {
-    await fs24.promises.rm(databaseBundlePath, { force: true });
+  if (fs25.existsSync(databaseBundlePath)) {
+    await fs25.promises.rm(databaseBundlePath, { force: true });
   }
-  const output = fs24.createWriteStream(databaseBundlePath);
-  const zip = (0, import_archiver.default)("zip");
+  const output = fs25.createWriteStream(databaseBundlePath);
+  const zip = new ZipArchive();
   zip.on("error", (err) => {
     throw err;
   });
@@ -158423,9 +163052,9 @@ async function runWrapper2() {
       getCsharpTempDependencyDir()
     ];
     for (const tempDependencyDir of tempDependencyDirs) {
-      if (fs25.existsSync(tempDependencyDir)) {
+      if (fs26.existsSync(tempDependencyDir)) {
         try {
-          fs25.rmSync(tempDependencyDir, { recursive: true });
+          fs26.rmSync(tempDependencyDir, { recursive: true });
         } catch (error3) {
           logger.info(
             `Failed to remove temporary dependencies directory: ${getErrorMessage(error3)}`
@@ -158541,8 +163170,8 @@ async function runWrapper3() {
 }
 
 // src/init-action.ts
-var fs27 = __toESM(require("fs"));
-var path23 = __toESM(require("path"));
+var fs28 = __toESM(require("fs"));
+var path24 = __toESM(require("path"));
 var core20 = __toESM(require_core());
 var github3 = __toESM(require_github());
 var io7 = __toESM(require_io());
@@ -158566,9 +163195,9 @@ function getConfigFileInput(logger, actions, repositoryProperties) {
 }
 
 // src/workflow.ts
-var fs26 = __toESM(require("fs"));
-var path22 = __toESM(require("path"));
-var import_zlib2 = __toESM(require("zlib"));
+var fs27 = __toESM(require("fs"));
+var path23 = __toESM(require("path"));
+var import_zlib3 = __toESM(require("zlib"));
 var core19 = __toESM(require_core());
 function toCodedErrors(errors) {
   return Object.entries(errors).reduce(
@@ -158714,19 +163343,19 @@ async function getWorkflow(logger) {
       "Using the workflow specified by the CODE_SCANNING_WORKFLOW_FILE environment variable."
     );
     return load(
-      import_zlib2.default.gunzipSync(Buffer.from(maybeWorkflow, "base64")).toString()
+      import_zlib3.default.gunzipSync(Buffer.from(maybeWorkflow, "base64")).toString()
     );
   }
   const workflowPath = await getWorkflowAbsolutePath(logger);
-  return load(fs26.readFileSync(workflowPath, "utf-8"));
+  return load(fs27.readFileSync(workflowPath, "utf-8"));
 }
 async function getWorkflowAbsolutePath(logger) {
-  const relativePath = await getWorkflowRelativePath();
-  const absolutePath = path22.join(
+  const relativePath2 = await getWorkflowRelativePath();
+  const absolutePath = path23.join(
     getRequiredEnvParam("GITHUB_WORKSPACE"),
-    relativePath
+    relativePath2
   );
-  if (fs26.existsSync(absolutePath)) {
+  if (fs27.existsSync(absolutePath)) {
     logger.debug(
       `Derived the following absolute path for the currently executing workflow: ${absolutePath}.`
     );
@@ -158946,7 +163575,7 @@ async function run3(startedAt) {
     core20.exportVariable("JOB_RUN_UUID" /* JOB_RUN_UUID */, jobRunUuid);
     core20.exportVariable("CODEQL_ACTION_INIT_HAS_RUN" /* INIT_ACTION_HAS_RUN */, "true");
     configFile = getConfigFileInput(logger, actionsEnv, repositoryProperties);
-    sourceRoot = path23.resolve(
+    sourceRoot = path24.resolve(
       getRequiredEnvParam("GITHUB_WORKSPACE"),
       getOptionalInput("source-root") || ""
     );
@@ -159145,21 +163774,21 @@ async function run3(startedAt) {
         )) {
           try {
             logger.debug(`Applying static binary workaround for Go`);
-            const tempBinPath = path23.resolve(
+            const tempBinPath = path24.resolve(
               getTemporaryDirectory(),
               "codeql-action-go-tracing",
               "bin"
             );
-            fs27.mkdirSync(tempBinPath, { recursive: true });
+            fs28.mkdirSync(tempBinPath, { recursive: true });
             core20.addPath(tempBinPath);
-            const goWrapperPath = path23.resolve(tempBinPath, "go");
-            fs27.writeFileSync(
+            const goWrapperPath = path24.resolve(tempBinPath, "go");
+            fs28.writeFileSync(
               goWrapperPath,
               `#!/bin/bash
 
 exec ${goBinaryPath} "$@"`
             );
-            fs27.chmodSync(goWrapperPath, "755");
+            fs28.chmodSync(goWrapperPath, "755");
             core20.exportVariable("CODEQL_ACTION_GO_BINARY" /* GO_BINARY_LOCATION */, goWrapperPath);
           } catch (e) {
             logger.warning(
@@ -159380,8 +164009,8 @@ async function runWrapper4() {
 var core21 = __toESM(require_core());
 
 // src/init-action-post-helper.ts
-var fs28 = __toESM(require("fs"));
-var import_path5 = __toESM(require("path"));
+var fs29 = __toESM(require("fs"));
+var import_path7 = __toESM(require("path"));
 var github4 = __toESM(require_github());
 function createFailedUploadFailedSarifResult(error3) {
   const wrappedError = wrapError(error3);
@@ -159492,8 +164121,8 @@ async function maybeUploadFailedSarifArtifact(config, features, logger) {
   const name = sanitizeArtifactName(`sarif-artifact-${suffix}`);
   await client.uploadArtifact(
     name,
-    [import_path5.default.normalize(failedSarif.sarifFile)],
-    import_path5.default.normalize("..")
+    [import_path7.default.normalize(failedSarif.sarifFile)],
+    import_path7.default.normalize("..")
   );
   return { sarifID: name };
 }
@@ -159568,7 +164197,7 @@ async function uploadFailureInfo(uploadAllAvailableDebugArtifacts, printDebugLog
   }
   if (isSelfHostedRunner()) {
     try {
-      fs28.rmSync(config.dbLocation, {
+      fs29.rmSync(config.dbLocation, {
         recursive: true,
         force: true,
         maxRetries: 3
@@ -160056,11 +164685,11 @@ async function runWrapper7() {
 
 // src/start-proxy-action.ts
 var import_child_process2 = require("child_process");
-var path27 = __toESM(require("path"));
+var path28 = __toESM(require("path"));
 var core26 = __toESM(require_core());
 
 // src/start-proxy.ts
-var path25 = __toESM(require("path"));
+var path26 = __toESM(require("path"));
 var core25 = __toESM(require_core());
 var toolcache4 = __toESM(require_tool_cache());
 
@@ -160540,7 +165169,7 @@ async function getProxyBinaryPath(logger, features) {
       proxyInfo.version
     );
   }
-  return path25.join(proxyBin, proxyFileName);
+  return path26.join(proxyBin, proxyFileName);
 }
 
 // src/start-proxy/ca.ts
@@ -160605,8 +165234,8 @@ function generateCertificateAuthority() {
 }
 
 // src/start-proxy/environment.ts
-var fs29 = __toESM(require("fs"));
-var path26 = __toESM(require("path"));
+var fs30 = __toESM(require("fs"));
+var path27 = __toESM(require("path"));
 var toolrunner5 = __toESM(require_toolrunner());
 var io8 = __toESM(require_io());
 function checkEnvVar(logger, name) {
@@ -160671,16 +165300,16 @@ function discoverActionsJdks() {
 function checkJdkSettings(logger, jdkHome) {
   const filesToCheck = [
     // JDK 9+
-    path26.join("conf", "net.properties"),
+    path27.join("conf", "net.properties"),
     // JDK 8 and below
-    path26.join("lib", "net.properties")
+    path27.join("lib", "net.properties")
   ];
   for (const fileToCheck of filesToCheck) {
-    const file = path26.join(jdkHome, fileToCheck);
+    const file = path27.join(jdkHome, fileToCheck);
     try {
-      if (fs29.existsSync(file)) {
+      if (fs30.existsSync(file)) {
         logger.debug(`Found '${file}'.`);
-        const lines = String(fs29.readFileSync(file)).split("\n");
+        const lines = String(fs30.readFileSync(file)).split("\n");
         for (const line of lines) {
           for (const property of javaProperties) {
             if (line.startsWith(`${property}=`)) {
@@ -160776,7 +165405,7 @@ var NetworkReachabilityBackend = class {
   proxy;
   agent;
   async checkConnection(url2) {
-    return new Promise((resolve13, reject) => {
+    return new Promise((resolve14, reject) => {
       const req = https2.request(
         url2,
         {
@@ -160789,7 +165418,7 @@ var NetworkReachabilityBackend = class {
         (res) => {
           res.destroy();
           if (res.statusCode !== void 0 && res.statusCode < 400) {
-            resolve13(res.statusCode);
+            resolve14(res.statusCode);
           } else {
             reject(new ReachabilityError(res.statusCode));
           }
@@ -160861,7 +165490,7 @@ async function run7(startedAt) {
   try {
     persistInputs();
     const tempDir = getTemporaryDirectory();
-    const proxyLogFilePath = path27.resolve(tempDir, "proxy.log");
+    const proxyLogFilePath = path28.resolve(tempDir, "proxy.log");
     core26.saveState("proxy-log-file", proxyLogFilePath);
     const repositoryNwo = getRepositoryNwo();
     const gitHubVersion = await getGitHubVersion();
@@ -161256,6 +165885,9 @@ normalize-path/index.js:
    * Released under the MIT License.
    *)
 
+safe-buffer/index.js:
+  (*! safe-buffer. MIT License. Feross Aboukhadijeh  *)
+
 archiver/lib/error.js:
 archiver/lib/core.js:
   (**
@@ -161269,6 +165901,7 @@ archiver/lib/core.js:
 crc-32/crc32.js:
   (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
 
+zip-stream/index.js:
 zip-stream/index.js:
   (**
    * ZipStream
@@ -161278,6 +165911,7 @@ zip-stream/index.js:
    * @copyright (c) 2014 Chris Talkington, contributors.
    *)
 
+archiver/lib/plugins/zip.js:
 archiver/lib/plugins/zip.js:
   (**
    * ZIP Format Plugin
@@ -161287,6 +165921,7 @@ archiver/lib/plugins/zip.js:
    * @copyright (c) 2012-2014 Chris Talkington, contributors.
    *)
 
+archiver/lib/plugins/tar.js:
 archiver/lib/plugins/tar.js:
   (**
    * TAR Format Plugin
@@ -161296,6 +165931,7 @@ archiver/lib/plugins/tar.js:
    * @copyright (c) 2012-2014 Chris Talkington, contributors.
    *)
 
+archiver/lib/plugins/json.js:
 archiver/lib/plugins/json.js:
   (**
    * JSON Format Plugin
diff --git a/package-lock.json b/package-lock.json
index 96c8944700..32cee510b8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,7 +23,7 @@
         "@actions/io": "^2.0.0",
         "@actions/tool-cache": "^3.0.1",
         "@octokit/plugin-retry": "^8.1.0",
-        "archiver": "^7.0.1",
+        "archiver": "^8.0.0",
         "fast-deep-equal": "^3.1.3",
         "follow-redirects": "^1.16.0",
         "get-folder-size": "^5.0.0",
@@ -40,7 +40,7 @@
         "@eslint/compat": "^2.1.0",
         "@microsoft/eslint-formatter-sarif": "^3.1.0",
         "@octokit/types": "^16.0.0",
-        "@types/archiver": "^7.0.0",
+        "@types/archiver": "^8.0.0",
         "@types/follow-redirects": "^1.14.4",
         "@types/js-yaml": "^4.0.9",
         "@types/node": "^20.19.42",
@@ -345,12 +345,115 @@
       "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
       "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg=="
     },
+    "node_modules/@actions/artifact/node_modules/archiver": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/archiver/-/archiver-7.0.1.tgz",
+      "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==",
+      "license": "MIT",
+      "dependencies": {
+        "archiver-utils": "^5.0.2",
+        "async": "^3.2.4",
+        "buffer-crc32": "^1.0.0",
+        "readable-stream": "^4.0.0",
+        "readdir-glob": "^1.1.2",
+        "tar-stream": "^3.0.0",
+        "zip-stream": "^6.0.1"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
     "node_modules/@actions/artifact/node_modules/before-after-hook": {
       "version": "2.2.3",
       "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
       "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==",
       "license": "Apache-2.0"
     },
+    "node_modules/@actions/artifact/node_modules/brace-expansion": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz",
+      "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==",
+      "license": "MIT",
+      "dependencies": {
+        "balanced-match": "^1.0.0"
+      }
+    },
+    "node_modules/@actions/artifact/node_modules/compress-commons": {
+      "version": "6.0.2",
+      "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-6.0.2.tgz",
+      "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==",
+      "license": "MIT",
+      "dependencies": {
+        "crc-32": "^1.2.0",
+        "crc32-stream": "^6.0.0",
+        "is-stream": "^2.0.1",
+        "normalize-path": "^3.0.0",
+        "readable-stream": "^4.0.0"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/@actions/artifact/node_modules/crc32-stream": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-6.0.0.tgz",
+      "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==",
+      "license": "MIT",
+      "dependencies": {
+        "crc-32": "^1.2.0",
+        "readable-stream": "^4.0.0"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/@actions/artifact/node_modules/is-stream": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/@actions/artifact/node_modules/minimatch": {
+      "version": "5.1.9",
+      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",
+      "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",
+      "license": "ISC",
+      "dependencies": {
+        "brace-expansion": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@actions/artifact/node_modules/readdir-glob": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz",
+      "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==",
+      "license": "Apache-2.0",
+      "dependencies": {
+        "minimatch": "^5.1.0"
+      }
+    },
+    "node_modules/@actions/artifact/node_modules/zip-stream": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz",
+      "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==",
+      "license": "MIT",
+      "dependencies": {
+        "archiver-utils": "^5.0.0",
+        "compress-commons": "^6.0.2",
+        "readable-stream": "^4.0.0"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
     "node_modules/@actions/cache": {
       "version": "5.0.5",
       "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-5.0.5.tgz",
@@ -2421,12 +2524,13 @@
       }
     },
     "node_modules/@types/archiver": {
-      "version": "7.0.0",
-      "resolved": "https://registry.npmjs.org/@types/archiver/-/archiver-7.0.0.tgz",
-      "integrity": "sha512-/3vwGwx9n+mCQdYZ2IKGGHEFL30I96UgBlk8EtRDDFQ9uxM1l4O5Ci6r00EMAkiDaTqD9DQ6nVrWRICnBPtzzg==",
+      "version": "8.0.0",
+      "resolved": "https://registry.npmjs.org/@types/archiver/-/archiver-8.0.0.tgz",
+      "integrity": "sha512-YpXPbEuv9+eUIPPQWUPahj3cvs9isWRuF+J4z+KbdYVDO3rWorWQFxUVHnwPu2AgKwvgpki5F2VMX0Xx+mX45A==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
+        "@types/node": "*",
         "@types/readdir-glob": "*"
       }
     },
@@ -3210,6 +3314,8 @@
     },
     "node_modules/abort-controller": {
       "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
+      "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
       "license": "MIT",
       "dependencies": {
         "event-target-shim": "^5.0.0"
@@ -3307,21 +3413,23 @@
       }
     },
     "node_modules/archiver": {
-      "version": "7.0.1",
-      "resolved": "https://registry.npmjs.org/archiver/-/archiver-7.0.1.tgz",
-      "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==",
+      "version": "8.0.0",
+      "resolved": "https://registry.npmjs.org/archiver/-/archiver-8.0.0.tgz",
+      "integrity": "sha512-fV1orZfsnPn9BaSByR/qE67rJCLJEy2Ox5bq7nJh+jquWaNh6Sfec75kJ2T6PtdGUbPQlrVoSVCEOa5SdiTQ1g==",
       "license": "MIT",
       "dependencies": {
-        "archiver-utils": "^5.0.2",
         "async": "^3.2.4",
         "buffer-crc32": "^1.0.0",
+        "is-stream": "^4.0.0",
+        "lazystream": "^1.0.0",
+        "normalize-path": "^3.0.0",
         "readable-stream": "^4.0.0",
-        "readdir-glob": "^1.1.2",
+        "readdir-glob": "^3.0.0",
         "tar-stream": "^3.0.0",
-        "zip-stream": "^6.0.1"
+        "zip-stream": "^7.0.2"
       },
       "engines": {
-        "node": ">= 14"
+        "node": ">=18"
       }
     },
     "node_modules/archiver-utils": {
@@ -4174,31 +4282,19 @@
       "dev": true
     },
     "node_modules/compress-commons": {
-      "version": "6.0.2",
-      "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-6.0.2.tgz",
-      "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==",
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-7.0.1.tgz",
+      "integrity": "sha512-g0S8KAD8qf4+V//pr3BfB1aBnARLXNz2Gx+jmHU0LEriUuoQUOPOulVquHKTJ8+EAIIO7fhseNDr9wK5Q9FKBQ==",
       "license": "MIT",
       "dependencies": {
         "crc-32": "^1.2.0",
-        "crc32-stream": "^6.0.0",
-        "is-stream": "^2.0.1",
+        "crc32-stream": "^7.0.1",
+        "is-stream": "^4.0.0",
         "normalize-path": "^3.0.0",
         "readable-stream": "^4.0.0"
       },
       "engines": {
-        "node": ">= 14"
-      }
-    },
-    "node_modules/compress-commons/node_modules/is-stream": {
-      "version": "2.0.1",
-      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
-      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
-      "license": "MIT",
-      "engines": {
-        "node": ">=8"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
+        "node": ">=18"
       }
     },
     "node_modules/concat-map": {
@@ -4262,16 +4358,16 @@
       }
     },
     "node_modules/crc32-stream": {
-      "version": "6.0.0",
-      "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-6.0.0.tgz",
-      "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==",
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-7.0.1.tgz",
+      "integrity": "sha512-IBWsY8xznyQrcHn8h4bC8/4ErNke5elzgG8GcqF4RFPw6aHkWWRc7Tgw6upjaTX/CT/yQgqYENkxYsTYN+hW2g==",
       "license": "MIT",
       "dependencies": {
         "crc-32": "^1.2.0",
         "readable-stream": "^4.0.0"
       },
       "engines": {
-        "node": ">= 14"
+        "node": ">=18"
       }
     },
     "node_modules/cross-spawn": {
@@ -5556,6 +5652,8 @@
     },
     "node_modules/event-target-shim": {
       "version": "5.0.1",
+      "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
+      "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
       "license": "MIT",
       "engines": {
         "node": ">=6"
@@ -6423,7 +6521,9 @@
       }
     },
     "node_modules/inherits": {
-      "version": "2.0.3",
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+      "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
       "license": "ISC"
     },
     "node_modules/internal-slot": {
@@ -6806,7 +6906,6 @@
       "version": "4.0.1",
       "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz",
       "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==",
-      "dev": true,
       "license": "MIT",
       "engines": {
         "node": ">=18"
@@ -7516,6 +7615,8 @@
     },
     "node_modules/normalize-path": {
       "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+      "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
       "license": "MIT",
       "engines": {
         "node": ">=0.10.0"
@@ -7977,6 +8078,8 @@
     },
     "node_modules/process": {
       "version": "0.11.10",
+      "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
+      "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
       "license": "MIT",
       "engines": {
         "node": ">= 0.6.0"
@@ -8030,9 +8133,9 @@
       "license": "MIT"
     },
     "node_modules/readable-stream": {
-      "version": "4.5.2",
-      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz",
-      "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==",
+      "version": "4.7.0",
+      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz",
+      "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==",
       "license": "MIT",
       "dependencies": {
         "abort-controller": "^3.0.0",
@@ -8046,33 +8149,54 @@
       }
     },
     "node_modules/readdir-glob": {
-      "version": "1.1.3",
-      "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz",
-      "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==",
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-3.0.0.tgz",
+      "integrity": "sha512-AhNB2KgKeVJr16nK9LLZbJNWnYoT23ZrumNKFDebHBdkC8KHSqWo871JAUhoWC/RtjEVdqNMFpM6qrwRbaUqpw==",
       "license": "Apache-2.0",
       "dependencies": {
-        "minimatch": "^5.1.0"
+        "minimatch": "^10.2.2"
+      },
+      "engines": {
+        "node": ">=18"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/yqnn"
+      }
+    },
+    "node_modules/readdir-glob/node_modules/balanced-match": {
+      "version": "4.0.4",
+      "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+      "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+      "license": "MIT",
+      "engines": {
+        "node": "18 || 20 || >=22"
       }
     },
     "node_modules/readdir-glob/node_modules/brace-expansion": {
-      "version": "2.1.0",
-      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.0.tgz",
-      "integrity": "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==",
+      "version": "5.0.6",
+      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",
+      "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",
       "license": "MIT",
       "dependencies": {
-        "balanced-match": "^1.0.0"
+        "balanced-match": "^4.0.2"
+      },
+      "engines": {
+        "node": "18 || 20 || >=22"
       }
     },
     "node_modules/readdir-glob/node_modules/minimatch": {
-      "version": "5.1.9",
-      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",
-      "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",
-      "license": "ISC",
+      "version": "10.2.5",
+      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
+      "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
+      "license": "BlueOak-1.0.0",
       "dependencies": {
-        "brace-expansion": "^2.0.1"
+        "brace-expansion": "^5.0.5"
       },
       "engines": {
-        "node": ">=10"
+        "node": "18 || 20 || >=22"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
       }
     },
     "node_modules/reflect.getprototypeof": {
@@ -9807,17 +9931,17 @@
       }
     },
     "node_modules/zip-stream": {
-      "version": "6.0.1",
-      "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz",
-      "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==",
+      "version": "7.0.5",
+      "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-7.0.5.tgz",
+      "integrity": "sha512-dSvYKdvLsAHCDqPOhIwk/q5CvuWtTB3Dgpoe0uVEFjTzIOAmsQpprX25InCvrvJsirEbu1OHyy67n/kAj1Sw/w==",
       "license": "MIT",
       "dependencies": {
-        "archiver-utils": "^5.0.0",
-        "compress-commons": "^6.0.2",
+        "compress-commons": "^7.0.0",
+        "normalize-path": "^3.0.0",
         "readable-stream": "^4.0.0"
       },
       "engines": {
-        "node": ">= 14"
+        "node": ">=18"
       }
     },
     "pr-checks": {
diff --git a/package.json b/package.json
index d24cfc08c2..5a0a1b0bf1 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
     "@actions/io": "^2.0.0",
     "@actions/tool-cache": "^3.0.1",
     "@octokit/plugin-retry": "^8.1.0",
-    "archiver": "^7.0.1",
+    "archiver": "^8.0.0",
     "fast-deep-equal": "^3.1.3",
     "follow-redirects": "^1.16.0",
     "get-folder-size": "^5.0.0",
@@ -48,7 +48,7 @@
     "@eslint/compat": "^2.1.0",
     "@microsoft/eslint-formatter-sarif": "^3.1.0",
     "@octokit/types": "^16.0.0",
-    "@types/archiver": "^7.0.0",
+    "@types/archiver": "^8.0.0",
     "@types/follow-redirects": "^1.14.4",
     "@types/js-yaml": "^4.0.9",
     "@types/node": "^20.19.42",
diff --git a/src/debug-artifacts.ts b/src/debug-artifacts.ts
index 016fcdf7c4..9f5f1775d4 100644
--- a/src/debug-artifacts.ts
+++ b/src/debug-artifacts.ts
@@ -4,7 +4,7 @@ import * as path from "path";
 import * as artifact from "@actions/artifact";
 import * as artifactLegacy from "@actions/artifact-legacy";
 import * as core from "@actions/core";
-import archiver from "archiver";
+import { ZipArchive } from "archiver";
 
 import { getOptionalInput, getTemporaryDirectory } from "./actions-util";
 import { dbIsFinalized } from "./analyze";
@@ -397,7 +397,7 @@ async function createPartialDatabaseBundle(
     await fs.promises.rm(databaseBundlePath, { force: true });
   }
   const output = fs.createWriteStream(databaseBundlePath);
-  const zip = archiver("zip");
+  const zip = new ZipArchive();
 
   zip.on("error", (err) => {
     throw err;