
//#region ../unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs
const logger = (content, details) => {
	const isVerbose = details?.isVerbose ?? false;
	const mode = details?.config?.mode ?? "default";
	const level = details?.level ?? "info";
	const prefix = details?.config?.prefix ? details?.config?.prefix : void 0;
	const log = details?.config?.log ?? console.log;
	const info = details?.config?.info ?? console.info;
	const warn = details?.config?.warn ?? console.warn;
	const error = details?.config?.error ?? console.error;
	const debug = details?.config?.debug ?? console.debug;
	if (mode === "disabled") return;
	if (isVerbose && mode !== "verbose") return;
	const flatContent = prefix ? [prefix, ...[content].flat()] : [content].flat();
	if (level === "debug") return debug(...flatContent);
	if (level === "info") return info(...flatContent);
	if (level === "warn") return warn(...flatContent);
	if (level === "error") return error(...flatContent);
	log(...flatContent);
};
let ANSIColors = /* @__PURE__ */ function(ANSIColors$1) {
	ANSIColors$1["RESET"] = "\x1B[0m";
	ANSIColors$1["GREY"] = "\x1B[90m";
	ANSIColors$1["GREY_DARK"] = "\x1B[38;5;239m";
	ANSIColors$1["GREY_LIGHT"] = "\x1B[38;5;252m";
	ANSIColors$1["BLUE"] = "\x1B[34m";
	ANSIColors$1["RED"] = "\x1B[31m";
	ANSIColors$1["GREEN"] = "\x1B[32m";
	ANSIColors$1["YELLOW"] = "\x1B[38;5;226m";
	ANSIColors$1["MAGENTA"] = "\x1B[35m";
	ANSIColors$1["BEIGE"] = "\x1B[38;5;3m";
	ANSIColors$1["ORANGE"] = "\x1B[38;5;208m";
	ANSIColors$1["CYAN"] = "\x1B[36m";
	ANSIColors$1["WHITE"] = "\x1B[37m";
	ANSIColors$1["BOLD"] = "\x1B[1m";
	return ANSIColors$1;
}({});
const colorize = (s, color, reset) => color ? `${color}${s}${reset ? typeof reset === "boolean" ? ANSIColors.RESET : reset : ANSIColors.RESET}` : s;
colorize("✗", ANSIColors.RED);
colorize("✓", ANSIColors.GREEN);
colorize("⏲", ANSIColors.BLUE);

//#endregion
exports.ANSIColors = ANSIColors;
exports.logger = logger;
//# sourceMappingURL=logger.cjs.map