@hot-updater/cloudflare 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -310,7 +310,7 @@ Object.keys(r.modifier);
310
310
  const tD = Object.keys(r.color), eD = Object.keys(r.bgColor);
311
311
  [...tD, ...eD];
312
312
  function sD() {
313
- const t = new Map();
313
+ const t = /* @__PURE__ */ new Map();
314
314
  for (const [u$2, F$1] of Object.entries(r)) {
315
315
  for (const [e$1, s] of Object.entries(F$1)) r[e$1] = {
316
316
  open: `\x1B[${s[0]}m`,
@@ -525,7 +525,7 @@ var AD = Object.defineProperty, pD = (t, u$2, F$1) => u$2 in t ? AD(t, u$2, {
525
525
  }) : t[u$2] = F$1, h$1 = (t, u$2, F$1) => (pD(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
526
526
  var x = class {
527
527
  constructor(u$2, F$1 = !0) {
528
- h$1(this, "input"), h$1(this, "output"), h$1(this, "_abortSignal"), h$1(this, "rl"), h$1(this, "opts"), h$1(this, "_render"), h$1(this, "_track", !1), h$1(this, "_prevFrame", ""), h$1(this, "_subscribers", new Map()), h$1(this, "_cursor", 0), h$1(this, "state", "initial"), h$1(this, "error", ""), h$1(this, "value");
528
+ h$1(this, "input"), h$1(this, "output"), h$1(this, "_abortSignal"), h$1(this, "rl"), h$1(this, "opts"), h$1(this, "_render"), h$1(this, "_track", !1), h$1(this, "_prevFrame", ""), h$1(this, "_subscribers", /* @__PURE__ */ new Map()), h$1(this, "_cursor", 0), h$1(this, "state", "initial"), h$1(this, "error", ""), h$1(this, "value");
529
529
  const { input: e$1 = node_process.stdin, output: s = node_process.stdout, render: i$1, signal: D$1,...C$1 } = u$2;
530
530
  this.opts = C$1, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i$1.bind(this), this._track = F$1, this._abortSignal = D$1, this.input = e$1, this.output = s;
531
531
  }
@@ -1316,8 +1316,8 @@ var require_dayjs_min = __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/nod
1316
1316
  return m$2.parse = function(t$1) {
1317
1317
  this.$d = function(t$2) {
1318
1318
  var e$2 = t$2.date, n$2 = t$2.utc;
1319
- if (null === e$2) return new Date(NaN);
1320
- if (b$2.u(e$2)) return new Date();
1319
+ if (null === e$2) return /* @__PURE__ */ new Date(NaN);
1320
+ if (b$2.u(e$2)) return /* @__PURE__ */ new Date();
1321
1321
  if (e$2 instanceof Date) return new Date(e$2);
1322
1322
  if ("string" == typeof e$2 && !/Z$/i.test(e$2)) {
1323
1323
  var r$2 = e$2.match($$2);
@@ -2242,7 +2242,7 @@ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, command
2242
2242
  type,
2243
2243
  escapedCommand,
2244
2244
  commandId: `${commandId}`,
2245
- timestamp: new Date(),
2245
+ timestamp: /* @__PURE__ */ new Date(),
2246
2246
  piped,
2247
2247
  result,
2248
2248
  options
@@ -3363,7 +3363,7 @@ const getFromStream = (source, from = "stdout") => {
3363
3363
  if (sourceStream === null || sourceStream === void 0) throw new TypeError(getInvalidStdioOptionMessage(fdNumber, from, options, isWritable));
3364
3364
  return sourceStream;
3365
3365
  };
3366
- const SUBPROCESS_OPTIONS = new WeakMap();
3366
+ const SUBPROCESS_OPTIONS = /* @__PURE__ */ new WeakMap();
3367
3367
  const getFdNumber = (fileDescriptors, fdName, isWritable) => {
3368
3368
  const fdNumber = parseFdNumber(fdName, isWritable);
3369
3369
  validateFdNumber(fdNumber, fdName, isWritable, fileDescriptors);
@@ -3492,7 +3492,7 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
3492
3492
  ipcEmitter.connected = false;
3493
3493
  ipcEmitter.emit("disconnect");
3494
3494
  };
3495
- const INCOMING_MESSAGES = new WeakMap();
3495
+ const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
3496
3496
 
3497
3497
  //#endregion
3498
3498
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
@@ -3509,7 +3509,7 @@ const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
3509
3509
  });
3510
3510
  return ipcEmitter;
3511
3511
  };
3512
- const IPC_EMITTERS = new WeakMap();
3512
+ const IPC_EMITTERS = /* @__PURE__ */ new WeakMap();
3513
3513
  const forwardEvents = ({ ipcEmitter, anyProcess, channel, isSubprocess }) => {
3514
3514
  const boundOnMessage = onMessage.bind(void 0, {
3515
3515
  anyProcess,
@@ -3608,7 +3608,7 @@ const RESPONSE_TYPE = "execa:ipc:response";
3608
3608
  //#endregion
3609
3609
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
3610
3610
  const startSendMessage = (anyProcess, wrappedMessage, strict) => {
3611
- if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, new Set());
3611
+ if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
3612
3612
  const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
3613
3613
  const onMessageSent = createDeferred();
3614
3614
  const id = strict ? wrappedMessage.id : void 0;
@@ -3633,7 +3633,7 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
3633
3633
  await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
3634
3634
  }
3635
3635
  };
3636
- const OUTGOING_MESSAGES = new WeakMap();
3636
+ const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
3637
3637
  const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
3638
3638
  const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
3639
3639
 
@@ -3705,7 +3705,7 @@ const getSendMethod = (anyProcess) => {
3705
3705
  PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
3706
3706
  return sendMethod;
3707
3707
  };
3708
- const PROCESS_SEND_METHODS = new WeakMap();
3708
+ const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
3709
3709
 
3710
3710
  //#endregion
3711
3711
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
@@ -4022,14 +4022,14 @@ const CR_BINARY = CR.codePointAt(0);
4022
4022
  function isStream(stream, { checkOpen = true } = {}) {
4023
4023
  return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
4024
4024
  }
4025
- function isWritableStream$1(stream, { checkOpen = true } = {}) {
4025
+ function isWritableStream(stream, { checkOpen = true } = {}) {
4026
4026
  return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
4027
4027
  }
4028
- function isReadableStream$1(stream, { checkOpen = true } = {}) {
4028
+ function isReadableStream(stream, { checkOpen = true } = {}) {
4029
4029
  return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
4030
4030
  }
4031
4031
  function isDuplexStream(stream, options) {
4032
- return isWritableStream$1(stream, options) && isReadableStream$1(stream, options);
4032
+ return isWritableStream(stream, options) && isReadableStream(stream, options);
4033
4033
  }
4034
4034
 
4035
4035
  //#endregion
@@ -4116,7 +4116,7 @@ function h({ preventCancel: r$1 = !1 } = {}) {
4116
4116
  //#endregion
4117
4117
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
4118
4118
  const getAsyncIterable = (stream) => {
4119
- if (isReadableStream$1(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
4119
+ if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
4120
4120
  if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
4121
4121
  if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
4122
4122
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -4815,10 +4815,10 @@ const KNOWN_STDIO_STRINGS = new Set([
4815
4815
  "overlapped",
4816
4816
  "pipe"
4817
4817
  ]);
4818
- const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
4819
- const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
4820
- const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
4821
- const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
4818
+ const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
4819
+ const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
4820
+ const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
4821
+ const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
4822
4822
  const isAsyncIterableObject = (value) => isObject$1(value) && typeof value[Symbol.asyncIterator] === "function";
4823
4823
  const isIterableObject = (value) => isObject$1(value) && typeof value[Symbol.iterator] === "function";
4824
4824
  const isObject$1 = (value) => typeof value === "object" && value !== null;
@@ -4982,10 +4982,10 @@ const guessStreamDirection = {
4982
4982
  iterable: alwaysInput,
4983
4983
  asyncIterable: alwaysInput,
4984
4984
  uint8Array: alwaysInput,
4985
- webStream: (value) => isWritableStream(value) ? "output" : "input",
4985
+ webStream: (value) => isWritableStream$1(value) ? "output" : "input",
4986
4986
  nodeStream(value) {
4987
- if (!isReadableStream$1(value, { checkOpen: false })) return "output";
4988
- return isWritableStream$1(value, { checkOpen: false }) ? void 0 : "input";
4987
+ if (!isReadableStream(value, { checkOpen: false })) return "output";
4988
+ return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
4989
4989
  },
4990
4990
  webTransform: anyDirection,
4991
4991
  duplex: anyDirection,
@@ -5115,7 +5115,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
5115
5115
  optionName: "input"
5116
5116
  }];
5117
5117
  const getInputType = (input) => {
5118
- if (isReadableStream$1(input, { checkOpen: false })) return "nodeStream";
5118
+ if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
5119
5119
  if (typeof input === "string") return "string";
5120
5120
  if (isUint8Array(input)) return "uint8Array";
5121
5121
  throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
@@ -6253,7 +6253,7 @@ var MergedStream = class extends node_stream.PassThrough {
6253
6253
  #aborted = new Set([]);
6254
6254
  #onFinished;
6255
6255
  #unpipeEvent = Symbol("unpipe");
6256
- #streamPromises = new WeakMap();
6256
+ #streamPromises = /* @__PURE__ */ new WeakMap();
6257
6257
  add(stream) {
6258
6258
  validateStream(stream);
6259
6259
  if (this.#streams.has(stream)) return;
@@ -6433,7 +6433,7 @@ const abortSourceStream = (source) => {
6433
6433
  //#endregion
6434
6434
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
6435
6435
  const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
6436
- const pipeGroups = new Map();
6436
+ const pipeGroups = /* @__PURE__ */ new Map();
6437
6437
  for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
6438
6438
  for (const { stream } of stdioItems.filter(({ type }) => TRANSFORM_TYPES.has(type))) pipeTransform(subprocess, stream, direction, fdNumber);
6439
6439
  for (const { stream } of stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type))) pipeStdioItem({
@@ -6839,7 +6839,7 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
6839
6839
  } catch {}
6840
6840
  MERGED_STREAMS.delete(destinationStream);
6841
6841
  };
6842
- const MERGED_STREAMS = new WeakMap();
6842
+ const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
6843
6843
  const SOURCE_LISTENERS_PER_PIPE = 2;
6844
6844
  const DESTINATION_LISTENERS_PER_PIPE = 1;
6845
6845
 
@@ -7325,9 +7325,9 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
7325
7325
  //#endregion
7326
7326
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
7327
7327
  const initializeConcurrentStreams = () => ({
7328
- readableDestroy: new WeakMap(),
7329
- writableFinal: new WeakMap(),
7330
- writableDestroy: new WeakMap()
7328
+ readableDestroy: /* @__PURE__ */ new WeakMap(),
7329
+ writableFinal: /* @__PURE__ */ new WeakMap(),
7330
+ writableDestroy: /* @__PURE__ */ new WeakMap()
7331
7331
  });
7332
7332
  const addConcurrentStream = (concurrentStreams, stream, waitName) => {
7333
7333
  const weakMap = concurrentStreams[waitName];
@@ -12283,13 +12283,13 @@ var require_mod_cjs = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0
12283
12283
  //#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js
12284
12284
  var mod_esm_exports = {};
12285
12285
  __export(mod_esm_exports, { default: () => mod_esm_default });
12286
- var import_mod_cjs = __toESM(require_mod_cjs());
12287
- __reExport(mod_esm_exports, __toESM(require_mod_cjs()));
12286
+ var import_mod_cjs = __toESM(require_mod_cjs(), 1);
12287
+ __reExport(mod_esm_exports, __toESM(require_mod_cjs(), 1));
12288
12288
  var mod_esm_default = import_mod_cjs.default;
12289
12289
 
12290
12290
  //#endregion
12291
12291
  //#region iac/getWranglerLoginAuthToken.ts
12292
- var import_toml = __toESM(require_toml(), 1);
12292
+ var import_toml = __toESM(require_toml());
12293
12293
  const isDirectory = (configPath) => {
12294
12294
  try {
12295
12295
  return fs.default.statSync(configPath).isDirectory();
@@ -12315,7 +12315,7 @@ const getWranglerLoginAuthToken = () => {
12315
12315
 
12316
12316
  //#endregion
12317
12317
  //#region iac/index.ts
12318
- var import_dayjs_min = __toESM(require_dayjs_min(), 1);
12318
+ var import_dayjs_min = __toESM(require_dayjs_min());
12319
12319
  const getConfigTemplate = (build) => {
12320
12320
  const storageConfig = {
12321
12321
  imports: [{
@@ -6,6 +6,5 @@ declare const runInit: ({
6
6
  }: {
7
7
  build: BuildType;
8
8
  }) => Promise<void>;
9
-
10
9
  //#endregion
11
10
  export { runInit };
@@ -6,6 +6,5 @@ declare const runInit: ({
6
6
  }: {
7
7
  build: BuildType;
8
8
  }) => Promise<void>;
9
-
10
9
  //#endregion
11
10
  export { runInit };
package/dist/iac/index.js CHANGED
@@ -313,7 +313,7 @@ Object.keys(r.modifier);
313
313
  const tD = Object.keys(r.color), eD = Object.keys(r.bgColor);
314
314
  [...tD, ...eD];
315
315
  function sD() {
316
- const t = new Map();
316
+ const t = /* @__PURE__ */ new Map();
317
317
  for (const [u$2, F$1] of Object.entries(r)) {
318
318
  for (const [e$1, s] of Object.entries(F$1)) r[e$1] = {
319
319
  open: `\x1B[${s[0]}m`,
@@ -528,7 +528,7 @@ var AD = Object.defineProperty, pD = (t, u$2, F$1) => u$2 in t ? AD(t, u$2, {
528
528
  }) : t[u$2] = F$1, h$1 = (t, u$2, F$1) => (pD(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
529
529
  var x = class {
530
530
  constructor(u$2, F$1 = !0) {
531
- h$1(this, "input"), h$1(this, "output"), h$1(this, "_abortSignal"), h$1(this, "rl"), h$1(this, "opts"), h$1(this, "_render"), h$1(this, "_track", !1), h$1(this, "_prevFrame", ""), h$1(this, "_subscribers", new Map()), h$1(this, "_cursor", 0), h$1(this, "state", "initial"), h$1(this, "error", ""), h$1(this, "value");
531
+ h$1(this, "input"), h$1(this, "output"), h$1(this, "_abortSignal"), h$1(this, "rl"), h$1(this, "opts"), h$1(this, "_render"), h$1(this, "_track", !1), h$1(this, "_prevFrame", ""), h$1(this, "_subscribers", /* @__PURE__ */ new Map()), h$1(this, "_cursor", 0), h$1(this, "state", "initial"), h$1(this, "error", ""), h$1(this, "value");
532
532
  const { input: e$1 = stdin, output: s = stdout, render: i$1, signal: D$1,...C$1 } = u$2;
533
533
  this.opts = C$1, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i$1.bind(this), this._track = F$1, this._abortSignal = D$1, this.input = e$1, this.output = s;
534
534
  }
@@ -1319,8 +1319,8 @@ var require_dayjs_min = __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/nod
1319
1319
  return m$2.parse = function(t$1) {
1320
1320
  this.$d = function(t$2) {
1321
1321
  var e$2 = t$2.date, n$2 = t$2.utc;
1322
- if (null === e$2) return new Date(NaN);
1323
- if (b$2.u(e$2)) return new Date();
1322
+ if (null === e$2) return /* @__PURE__ */ new Date(NaN);
1323
+ if (b$2.u(e$2)) return /* @__PURE__ */ new Date();
1324
1324
  if (e$2 instanceof Date) return new Date(e$2);
1325
1325
  if ("string" == typeof e$2 && !/Z$/i.test(e$2)) {
1326
1326
  var r$2 = e$2.match($$1);
@@ -2245,7 +2245,7 @@ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, command
2245
2245
  type,
2246
2246
  escapedCommand,
2247
2247
  commandId: `${commandId}`,
2248
- timestamp: new Date(),
2248
+ timestamp: /* @__PURE__ */ new Date(),
2249
2249
  piped,
2250
2250
  result,
2251
2251
  options
@@ -3366,7 +3366,7 @@ const getFromStream = (source, from = "stdout") => {
3366
3366
  if (sourceStream === null || sourceStream === void 0) throw new TypeError(getInvalidStdioOptionMessage(fdNumber, from, options, isWritable));
3367
3367
  return sourceStream;
3368
3368
  };
3369
- const SUBPROCESS_OPTIONS = new WeakMap();
3369
+ const SUBPROCESS_OPTIONS = /* @__PURE__ */ new WeakMap();
3370
3370
  const getFdNumber = (fileDescriptors, fdName, isWritable) => {
3371
3371
  const fdNumber = parseFdNumber(fdName, isWritable);
3372
3372
  validateFdNumber(fdNumber, fdName, isWritable, fileDescriptors);
@@ -3495,7 +3495,7 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
3495
3495
  ipcEmitter.connected = false;
3496
3496
  ipcEmitter.emit("disconnect");
3497
3497
  };
3498
- const INCOMING_MESSAGES = new WeakMap();
3498
+ const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
3499
3499
 
3500
3500
  //#endregion
3501
3501
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
@@ -3512,7 +3512,7 @@ const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
3512
3512
  });
3513
3513
  return ipcEmitter;
3514
3514
  };
3515
- const IPC_EMITTERS = new WeakMap();
3515
+ const IPC_EMITTERS = /* @__PURE__ */ new WeakMap();
3516
3516
  const forwardEvents = ({ ipcEmitter, anyProcess, channel, isSubprocess }) => {
3517
3517
  const boundOnMessage = onMessage.bind(void 0, {
3518
3518
  anyProcess,
@@ -3611,7 +3611,7 @@ const RESPONSE_TYPE = "execa:ipc:response";
3611
3611
  //#endregion
3612
3612
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
3613
3613
  const startSendMessage = (anyProcess, wrappedMessage, strict) => {
3614
- if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, new Set());
3614
+ if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
3615
3615
  const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
3616
3616
  const onMessageSent = createDeferred();
3617
3617
  const id = strict ? wrappedMessage.id : void 0;
@@ -3636,7 +3636,7 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
3636
3636
  await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
3637
3637
  }
3638
3638
  };
3639
- const OUTGOING_MESSAGES = new WeakMap();
3639
+ const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
3640
3640
  const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
3641
3641
  const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
3642
3642
 
@@ -3708,7 +3708,7 @@ const getSendMethod = (anyProcess) => {
3708
3708
  PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
3709
3709
  return sendMethod;
3710
3710
  };
3711
- const PROCESS_SEND_METHODS = new WeakMap();
3711
+ const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
3712
3712
 
3713
3713
  //#endregion
3714
3714
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
@@ -4025,14 +4025,14 @@ const CR_BINARY = CR.codePointAt(0);
4025
4025
  function isStream(stream, { checkOpen = true } = {}) {
4026
4026
  return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
4027
4027
  }
4028
- function isWritableStream$1(stream, { checkOpen = true } = {}) {
4028
+ function isWritableStream(stream, { checkOpen = true } = {}) {
4029
4029
  return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
4030
4030
  }
4031
- function isReadableStream$1(stream, { checkOpen = true } = {}) {
4031
+ function isReadableStream(stream, { checkOpen = true } = {}) {
4032
4032
  return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
4033
4033
  }
4034
4034
  function isDuplexStream(stream, options) {
4035
- return isWritableStream$1(stream, options) && isReadableStream$1(stream, options);
4035
+ return isWritableStream(stream, options) && isReadableStream(stream, options);
4036
4036
  }
4037
4037
 
4038
4038
  //#endregion
@@ -4119,7 +4119,7 @@ function h({ preventCancel: r$1 = !1 } = {}) {
4119
4119
  //#endregion
4120
4120
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
4121
4121
  const getAsyncIterable = (stream) => {
4122
- if (isReadableStream$1(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
4122
+ if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
4123
4123
  if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
4124
4124
  if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
4125
4125
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -4818,10 +4818,10 @@ const KNOWN_STDIO_STRINGS = new Set([
4818
4818
  "overlapped",
4819
4819
  "pipe"
4820
4820
  ]);
4821
- const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
4822
- const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
4823
- const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
4824
- const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
4821
+ const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
4822
+ const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
4823
+ const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
4824
+ const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
4825
4825
  const isAsyncIterableObject = (value) => isObject$1(value) && typeof value[Symbol.asyncIterator] === "function";
4826
4826
  const isIterableObject = (value) => isObject$1(value) && typeof value[Symbol.iterator] === "function";
4827
4827
  const isObject$1 = (value) => typeof value === "object" && value !== null;
@@ -4985,10 +4985,10 @@ const guessStreamDirection = {
4985
4985
  iterable: alwaysInput,
4986
4986
  asyncIterable: alwaysInput,
4987
4987
  uint8Array: alwaysInput,
4988
- webStream: (value) => isWritableStream(value) ? "output" : "input",
4988
+ webStream: (value) => isWritableStream$1(value) ? "output" : "input",
4989
4989
  nodeStream(value) {
4990
- if (!isReadableStream$1(value, { checkOpen: false })) return "output";
4991
- return isWritableStream$1(value, { checkOpen: false }) ? void 0 : "input";
4990
+ if (!isReadableStream(value, { checkOpen: false })) return "output";
4991
+ return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
4992
4992
  },
4993
4993
  webTransform: anyDirection,
4994
4994
  duplex: anyDirection,
@@ -5118,7 +5118,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
5118
5118
  optionName: "input"
5119
5119
  }];
5120
5120
  const getInputType = (input) => {
5121
- if (isReadableStream$1(input, { checkOpen: false })) return "nodeStream";
5121
+ if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
5122
5122
  if (typeof input === "string") return "string";
5123
5123
  if (isUint8Array(input)) return "uint8Array";
5124
5124
  throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
@@ -6256,7 +6256,7 @@ var MergedStream = class extends PassThrough {
6256
6256
  #aborted = new Set([]);
6257
6257
  #onFinished;
6258
6258
  #unpipeEvent = Symbol("unpipe");
6259
- #streamPromises = new WeakMap();
6259
+ #streamPromises = /* @__PURE__ */ new WeakMap();
6260
6260
  add(stream) {
6261
6261
  validateStream(stream);
6262
6262
  if (this.#streams.has(stream)) return;
@@ -6436,7 +6436,7 @@ const abortSourceStream = (source) => {
6436
6436
  //#endregion
6437
6437
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
6438
6438
  const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
6439
- const pipeGroups = new Map();
6439
+ const pipeGroups = /* @__PURE__ */ new Map();
6440
6440
  for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
6441
6441
  for (const { stream } of stdioItems.filter(({ type }) => TRANSFORM_TYPES.has(type))) pipeTransform(subprocess, stream, direction, fdNumber);
6442
6442
  for (const { stream } of stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type))) pipeStdioItem({
@@ -6842,7 +6842,7 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
6842
6842
  } catch {}
6843
6843
  MERGED_STREAMS.delete(destinationStream);
6844
6844
  };
6845
- const MERGED_STREAMS = new WeakMap();
6845
+ const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
6846
6846
  const SOURCE_LISTENERS_PER_PIPE = 2;
6847
6847
  const DESTINATION_LISTENERS_PER_PIPE = 1;
6848
6848
 
@@ -7328,9 +7328,9 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
7328
7328
  //#endregion
7329
7329
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
7330
7330
  const initializeConcurrentStreams = () => ({
7331
- readableDestroy: new WeakMap(),
7332
- writableFinal: new WeakMap(),
7333
- writableDestroy: new WeakMap()
7331
+ readableDestroy: /* @__PURE__ */ new WeakMap(),
7332
+ writableFinal: /* @__PURE__ */ new WeakMap(),
7333
+ writableDestroy: /* @__PURE__ */ new WeakMap()
7334
7334
  });
7335
7335
  const addConcurrentStream = (concurrentStreams, stream, waitName) => {
7336
7336
  const weakMap = concurrentStreams[waitName];
@@ -12286,13 +12286,13 @@ var require_mod_cjs = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0
12286
12286
  //#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js
12287
12287
  var mod_esm_exports = {};
12288
12288
  __export(mod_esm_exports, { default: () => mod_esm_default });
12289
- var import_mod_cjs = __toESM(require_mod_cjs());
12290
- __reExport(mod_esm_exports, __toESM(require_mod_cjs()));
12289
+ var import_mod_cjs = __toESM(require_mod_cjs(), 1);
12290
+ __reExport(mod_esm_exports, __toESM(require_mod_cjs(), 1));
12291
12291
  var mod_esm_default = import_mod_cjs.default;
12292
12292
 
12293
12293
  //#endregion
12294
12294
  //#region iac/getWranglerLoginAuthToken.ts
12295
- var import_toml = __toESM(require_toml(), 1);
12295
+ var import_toml = __toESM(require_toml());
12296
12296
  const isDirectory = (configPath) => {
12297
12297
  try {
12298
12298
  return fs.statSync(configPath).isDirectory();
@@ -12318,7 +12318,7 @@ const getWranglerLoginAuthToken = () => {
12318
12318
 
12319
12319
  //#endregion
12320
12320
  //#region iac/index.ts
12321
- var import_dayjs_min = __toESM(require_dayjs_min(), 1);
12321
+ var import_dayjs_min = __toESM(require_dayjs_min());
12322
12322
  const getConfigTemplate = (build) => {
12323
12323
  const storageConfig = {
12324
12324
  imports: [{