// Force strict mode and setup for ESM
"use strict";
import {
  init_esbuild_shims
} from "./chunk-5O2XNYP6.js";
import {
  __esm,
  __export,
  __name
} from "./chunk-J2S4EL5Y.js";

// node_modules/ansi-regex/index.js
var ansi_regex_exports = {};
__export(ansi_regex_exports, {
  default: () => ansiRegex
});
function ansiRegex({ onlyFirst = false } = {}) {
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
  const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
  const pattern = `${osc}|${csi}`;
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
}
var init_ansi_regex = __esm({
  "node_modules/ansi-regex/index.js"() {
    init_esbuild_shims();
    __name(ansiRegex, "ansiRegex");
  }
});

// node_modules/strip-ansi/index.js
init_esbuild_shims();
init_ansi_regex();
var regex = ansiRegex();
function stripAnsi(string) {
  if (typeof string !== "string") {
    throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
  }
  return string.replace(regex, "");
}
__name(stripAnsi, "stripAnsi");

export {
  ansiRegex,
  ansi_regex_exports,
  init_ansi_regex,
  stripAnsi
};
