UNPKG

blade

Version:
2,359 lines (2,342 loc) 1.27 MB
import { n as __export, r as __toESM, t as __commonJS } from "./chunk-DUEDWNxO.js"; import { i as getPublicFile, t as generateUniqueId, u as PUBLIC_ASSET_PREFIX } from "./utils-BIjILkWh.js"; import os from "node:os"; import minpath, { dirname, join, resolve, default as path } from "node:path"; import { access, constants, cp, mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises"; import minproc, { default as process$1 } from "node:process"; import tty from "node:tty"; import { fileURLToPath, fileURLToPath as urlToPath } from "node:url"; import gradient from "gradient-string"; import { rolldown } from "rolldown"; import withToc from "@stefanprobst/rehype-extract-toc"; import withTocExport from "@stefanprobst/rehype-extract-toc/mdx"; import { compile, optimize } from "@tailwindcss/node"; import { Scanner } from "@tailwindcss/oxide"; //#region ../../node_modules/mimic-function/index.js const copyProperty = (to, from, property, ignoreNonConfigurable) => { if (property === "length" || property === "prototype") return; if (property === "arguments" || property === "caller") return; const toDescriptor = Object.getOwnPropertyDescriptor(to, property); const fromDescriptor = Object.getOwnPropertyDescriptor(from, property); if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return; Object.defineProperty(to, property, fromDescriptor); }; const canCopyProperty = function(toDescriptor, fromDescriptor) { return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value); }; const changePrototype = (to, from) => { const fromPrototype = Object.getPrototypeOf(from); if (fromPrototype === Object.getPrototypeOf(to)) return; Object.setPrototypeOf(to, fromPrototype); }; const wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\n${fromBody}`; const toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString"); const toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"); const changeToString = (to, from, name$1) => { const withName = name$1 === "" ? "" : `with ${name$1.trim()}() `; const newToString = wrappedToString.bind(null, withName, from.toString()); Object.defineProperty(newToString, "name", toStringName); const { writable, enumerable, configurable } = toStringDescriptor; Object.defineProperty(to, "toString", { value: newToString, writable, enumerable, configurable }); }; function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) { const { name: name$1 } = to; for (const property of Reflect.ownKeys(from)) copyProperty(to, from, property, ignoreNonConfigurable); changePrototype(to, from); changeToString(to, from, name$1); return to; } //#endregion //#region ../../node_modules/onetime/index.js const calledFunctions = /* @__PURE__ */ new WeakMap(); const onetime = (function_, options = {}) => { if (typeof function_ !== "function") throw new TypeError("Expected a function"); let returnValue; let callCount = 0; const functionName = function_.displayName || function_.name || "<anonymous>"; const onetime$1 = function(...arguments_) { calledFunctions.set(onetime$1, ++callCount); if (callCount === 1) { returnValue = function_.apply(this, arguments_); function_ = void 0; } else if (options.throw === true) throw new Error(`Function \`${functionName}\` can only be called once`); return returnValue; }; mimicFunction(onetime$1, function_); calledFunctions.set(onetime$1, callCount); return onetime$1; }; onetime.callCount = (function_) => { if (!calledFunctions.has(function_)) throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`); return calledFunctions.get(function_); }; var onetime_default = onetime; //#endregion //#region ../../node_modules/signal-exit/dist/mjs/signals.js /** * This is not the set of all possible signals. * * It IS, however, the set of all signals that trigger * an exit on either Linux or BSD systems. Linux is a * superset of the signal names supported on BSD, and * the unknown signals just fail to register, so we can * catch that easily enough. * * Windows signals are a different set, since there are * signals that terminate Windows processes, but don't * terminate (or don't even exist) on Posix systems. * * Don't bother with SIGKILL. It's uncatchable, which * means that we can't fire any callbacks anyway. * * If a user does happen to register a handler on a non- * fatal signal like SIGWINCH or something, and then * exit, it'll end up firing `process.emit('exit')`, so * the handler will be fired anyway. * * SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised * artificially, inherently leave the process in a * state from which it is not safe to try and enter JS * listeners. */ const signals = []; signals.push("SIGHUP", "SIGINT", "SIGTERM"); if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"); if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT"); //#endregion //#region ../../node_modules/signal-exit/dist/mjs/index.js const processOk = (process$3) => !!process$3 && typeof process$3 === "object" && typeof process$3.removeListener === "function" && typeof process$3.emit === "function" && typeof process$3.reallyExit === "function" && typeof process$3.listeners === "function" && typeof process$3.kill === "function" && typeof process$3.pid === "number" && typeof process$3.on === "function"; const kExitEmitter = Symbol.for("signal-exit emitter"); const global = globalThis; const ObjectDefineProperty = Object.defineProperty.bind(Object); var Emitter = class { emitted = { afterExit: false, exit: false }; listeners = { afterExit: [], exit: [] }; count = 0; id = Math.random(); constructor() { if (global[kExitEmitter]) return global[kExitEmitter]; ObjectDefineProperty(global, kExitEmitter, { value: this, writable: false, enumerable: false, configurable: false }); } on(ev, fn) { this.listeners[ev].push(fn); } removeListener(ev, fn) { const list$3 = this.listeners[ev]; const i$2 = list$3.indexOf(fn); /* c8 ignore start */ if (i$2 === -1) return; /* c8 ignore stop */ if (i$2 === 0 && list$3.length === 1) list$3.length = 0; else list$3.splice(i$2, 1); } emit(ev, code$1, signal) { if (this.emitted[ev]) return false; this.emitted[ev] = true; let ret = false; for (const fn of this.listeners[ev]) ret = fn(code$1, signal) === true || ret; if (ev === "exit") ret = this.emit("afterExit", code$1, signal) || ret; return ret; } }; var SignalExitBase = class {}; const signalExitWrap = (handler) => { return { onExit(cb, opts) { return handler.onExit(cb, opts); }, load() { return handler.load(); }, unload() { return handler.unload(); } }; }; var SignalExitFallback = class extends SignalExitBase { onExit() { return () => {}; } load() {} unload() {} }; var SignalExit = class extends SignalExitBase { /* c8 ignore start */ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP"; /* c8 ignore stop */ #emitter = new Emitter(); #process; #originalProcessEmit; #originalProcessReallyExit; #sigListeners = {}; #loaded = false; constructor(process$3) { super(); this.#process = process$3; this.#sigListeners = {}; for (const sig of signals) this.#sigListeners[sig] = () => { const listeners = this.#process.listeners(sig); let { count } = this.#emitter; /* c8 ignore start */ const p = process$3; if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count; /* c8 ignore stop */ if (listeners.length === count) { this.unload(); const ret = this.#emitter.emit("exit", null, sig); /* c8 ignore start */ const s = sig === "SIGHUP" ? this.#hupSig : sig; if (!ret) process$3.kill(process$3.pid, s); } }; this.#originalProcessReallyExit = process$3.reallyExit; this.#originalProcessEmit = process$3.emit; } onExit(cb, opts) { /* c8 ignore start */ if (!processOk(this.#process)) return () => {}; /* c8 ignore stop */ if (this.#loaded === false) this.load(); const ev = opts?.alwaysLast ? "afterExit" : "exit"; this.#emitter.on(ev, cb); return () => { this.#emitter.removeListener(ev, cb); if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) this.unload(); }; } load() { if (this.#loaded) return; this.#loaded = true; this.#emitter.count += 1; for (const sig of signals) try { const fn = this.#sigListeners[sig]; if (fn) this.#process.on(sig, fn); } catch (_) {} this.#process.emit = (ev, ...a) => { return this.#processEmit(ev, ...a); }; this.#process.reallyExit = (code$1) => { return this.#processReallyExit(code$1); }; } unload() { if (!this.#loaded) return; this.#loaded = false; signals.forEach((sig) => { const listener = this.#sigListeners[sig]; /* c8 ignore start */ if (!listener) throw new Error("Listener not defined for signal: " + sig); /* c8 ignore stop */ try { this.#process.removeListener(sig, listener); } catch (_) {} /* c8 ignore stop */ }); this.#process.emit = this.#originalProcessEmit; this.#process.reallyExit = this.#originalProcessReallyExit; this.#emitter.count -= 1; } #processReallyExit(code$1) { /* c8 ignore start */ if (!processOk(this.#process)) return 0; this.#process.exitCode = code$1 || 0; /* c8 ignore stop */ this.#emitter.emit("exit", this.#process.exitCode, null); return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode); } #processEmit(ev, ...args) { const og = this.#originalProcessEmit; if (ev === "exit" && processOk(this.#process)) { if (typeof args[0] === "number") this.#process.exitCode = args[0]; /* c8 ignore start */ const ret = og.call(this.#process, ev, ...args); /* c8 ignore start */ this.#emitter.emit("exit", this.#process.exitCode, null); /* c8 ignore stop */ return ret; } else return og.call(this.#process, ev, ...args); } }; const process$2 = globalThis.process; const { onExit, load: load$2, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback()); //#endregion //#region ../../node_modules/restore-cursor/index.js const terminal = process$1.stderr.isTTY ? process$1.stderr : process$1.stdout.isTTY ? process$1.stdout : void 0; const restoreCursor = terminal ? onetime_default(() => { onExit(() => { terminal.write("\x1B[?25h"); }, { alwaysLast: true }); }) : () => {}; var restore_cursor_default = restoreCursor; //#endregion //#region ../../node_modules/cli-cursor/index.js let isHidden = false; const cliCursor = {}; cliCursor.show = (writableStream = process$1.stderr) => { if (!writableStream.isTTY) return; isHidden = false; writableStream.write("\x1B[?25h"); }; cliCursor.hide = (writableStream = process$1.stderr) => { if (!writableStream.isTTY) return; restore_cursor_default(); isHidden = true; writableStream.write("\x1B[?25l"); }; cliCursor.toggle = (force, writableStream) => { if (force !== void 0) isHidden = force; if (isHidden) cliCursor.show(writableStream); else cliCursor.hide(writableStream); }; var cli_cursor_default = cliCursor; //#endregion //#region ../../node_modules/cli-spinners/spinners.json var require_spinners = /* @__PURE__ */ __commonJS({ "../../node_modules/cli-spinners/spinners.json": ((exports, module) => { module.exports = { "dots": { "interval": 80, "frames": [ "⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏" ] }, "dots2": { "interval": 80, "frames": [ "⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷" ] }, "dots3": { "interval": 80, "frames": [ "⠋", "⠙", "⠚", "⠞", "⠖", "⠦", "⠴", "⠲", "⠳", "⠓" ] }, "dots4": { "interval": 80, "frames": [ "⠄", "⠆", "⠇", "⠋", "⠙", "⠸", "⠰", "⠠", "⠰", "⠸", "⠙", "⠋", "⠇", "⠆" ] }, "dots5": { "interval": 80, "frames": [ "⠋", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋" ] }, "dots6": { "interval": 80, "frames": [ "⠁", "⠉", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠤", "⠄", "⠄", "⠤", "⠴", "⠲", "⠒", "⠂", "⠂", "⠒", "⠚", "⠙", "⠉", "⠁" ] }, "dots7": { "interval": 80, "frames": [ "⠈", "⠉", "⠋", "⠓", "⠒", "⠐", "⠐", "⠒", "⠖", "⠦", "⠤", "⠠", "⠠", "⠤", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋", "⠉", "⠈" ] }, "dots8": { "interval": 80, "frames": [ "⠁", "⠁", "⠉", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠤", "⠄", "⠄", "⠤", "⠠", "⠠", "⠤", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋", "⠉", "⠈", "⠈" ] }, "dots9": { "interval": 80, "frames": [ "⢹", "⢺", "⢼", "⣸", "⣇", "⡧", "⡗", "⡏" ] }, "dots10": { "interval": 80, "frames": [ "⢄", "⢂", "⢁", "⡁", "⡈", "⡐", "⡠" ] }, "dots11": { "interval": 100, "frames": [ "⠁", "⠂", "⠄", "⡀", "⢀", "⠠", "⠐", "⠈" ] }, "dots12": { "interval": 80, "frames": [ "⢀⠀", "⡀⠀", "⠄⠀", "⢂⠀", "⡂⠀", "⠅⠀", "⢃⠀", "⡃⠀", "⠍⠀", "⢋⠀", "⡋⠀", "⠍⠁", "⢋⠁", "⡋⠁", "⠍⠉", "⠋⠉", "⠋⠉", "⠉⠙", "⠉⠙", "⠉⠩", "⠈⢙", "⠈⡙", "⢈⠩", "⡀⢙", "⠄⡙", "⢂⠩", "⡂⢘", "⠅⡘", "⢃⠨", "⡃⢐", "⠍⡐", "⢋⠠", "⡋⢀", "⠍⡁", "⢋⠁", "⡋⠁", "⠍⠉", "⠋⠉", "⠋⠉", "⠉⠙", "⠉⠙", "⠉⠩", "⠈⢙", "⠈⡙", "⠈⠩", "⠀⢙", "⠀⡙", "⠀⠩", "⠀⢘", "⠀⡘", "⠀⠨", "⠀⢐", "⠀⡐", "⠀⠠", "⠀⢀", "⠀⡀" ] }, "dots13": { "interval": 80, "frames": [ "⣼", "⣹", "⢻", "⠿", "⡟", "⣏", "⣧", "⣶" ] }, "dots8Bit": { "interval": 80, "frames": [ "⠀", "⠁", "⠂", "⠃", "⠄", "⠅", "⠆", "⠇", "⡀", "⡁", "⡂", "⡃", "⡄", "⡅", "⡆", "⡇", "⠈", "⠉", "⠊", "⠋", "⠌", "⠍", "⠎", "⠏", "⡈", "⡉", "⡊", "⡋", "⡌", "⡍", "⡎", "⡏", "⠐", "⠑", "⠒", "⠓", "⠔", "⠕", "⠖", "⠗", "⡐", "⡑", "⡒", "⡓", "⡔", "⡕", "⡖", "⡗", "⠘", "⠙", "⠚", "⠛", "⠜", "⠝", "⠞", "⠟", "⡘", "⡙", "⡚", "⡛", "⡜", "⡝", "⡞", "⡟", "⠠", "⠡", "⠢", "⠣", "⠤", "⠥", "⠦", "⠧", "⡠", "⡡", "⡢", "⡣", "⡤", "⡥", "⡦", "⡧", "⠨", "⠩", "⠪", "⠫", "⠬", "⠭", "⠮", "⠯", "⡨", "⡩", "⡪", "⡫", "⡬", "⡭", "⡮", "⡯", "⠰", "⠱", "⠲", "⠳", "⠴", "⠵", "⠶", "⠷", "⡰", "⡱", "⡲", "⡳", "⡴", "⡵", "⡶", "⡷", "⠸", "⠹", "⠺", "⠻", "⠼", "⠽", "⠾", "⠿", "⡸", "⡹", "⡺", "⡻", "⡼", "⡽", "⡾", "⡿", "⢀", "⢁", "⢂", "⢃", "⢄", "⢅", "⢆", "⢇", "⣀", "⣁", "⣂", "⣃", "⣄", "⣅", "⣆", "⣇", "⢈", "⢉", "⢊", "⢋", "⢌", "⢍", "⢎", "⢏", "⣈", "⣉", "⣊", "⣋", "⣌", "⣍", "⣎", "⣏", "⢐", "⢑", "⢒", "⢓", "⢔", "⢕", "⢖", "⢗", "⣐", "⣑", "⣒", "⣓", "⣔", "⣕", "⣖", "⣗", "⢘", "⢙", "⢚", "⢛", "⢜", "⢝", "⢞", "⢟", "⣘", "⣙", "⣚", "⣛", "⣜", "⣝", "⣞", "⣟", "⢠", "⢡", "⢢", "⢣", "⢤", "⢥", "⢦", "⢧", "⣠", "⣡", "⣢", "⣣", "⣤", "⣥", "⣦", "⣧", "⢨", "⢩", "⢪", "⢫", "⢬", "⢭", "⢮", "⢯", "⣨", "⣩", "⣪", "⣫", "⣬", "⣭", "⣮", "⣯", "⢰", "⢱", "⢲", "⢳", "⢴", "⢵", "⢶", "⢷", "⣰", "⣱", "⣲", "⣳", "⣴", "⣵", "⣶", "⣷", "⢸", "⢹", "⢺", "⢻", "⢼", "⢽", "⢾", "⢿", "⣸", "⣹", "⣺", "⣻", "⣼", "⣽", "⣾", "⣿" ] }, "sand": { "interval": 80, "frames": [ "⠁", "⠂", "⠄", "⡀", "⡈", "⡐", "⡠", "⣀", "⣁", "⣂", "⣄", "⣌", "⣔", "⣤", "⣥", "⣦", "⣮", "⣶", "⣷", "⣿", "⡿", "⠿", "⢟", "⠟", "⡛", "⠛", "⠫", "⢋", "⠋", "⠍", "⡉", "⠉", "⠑", "⠡", "⢁" ] }, "line": { "interval": 130, "frames": [ "-", "\\", "|", "/" ] }, "line2": { "interval": 100, "frames": [ "⠂", "-", "–", "—", "–", "-" ] }, "pipe": { "interval": 100, "frames": [ "┤", "┘", "┴", "└", "├", "┌", "┬", "┐" ] }, "simpleDots": { "interval": 400, "frames": [ ". ", ".. ", "...", " " ] }, "simpleDotsScrolling": { "interval": 200, "frames": [ ". ", ".. ", "...", " ..", " .", " " ] }, "star": { "interval": 70, "frames": [ "✶", "✸", "✹", "✺", "✹", "✷" ] }, "star2": { "interval": 80, "frames": [ "+", "x", "*" ] }, "flip": { "interval": 70, "frames": [ "_", "_", "_", "-", "`", "`", "'", "´", "-", "_", "_", "_" ] }, "hamburger": { "interval": 100, "frames": [ "☱", "☲", "☴" ] }, "growVertical": { "interval": 120, "frames": [ "▁", "▃", "▄", "▅", "▆", "▇", "▆", "▅", "▄", "▃" ] }, "growHorizontal": { "interval": 120, "frames": [ "▏", "▎", "▍", "▌", "▋", "▊", "▉", "▊", "▋", "▌", "▍", "▎" ] }, "balloon": { "interval": 140, "frames": [ " ", ".", "o", "O", "@", "*", " " ] }, "balloon2": { "interval": 120, "frames": [ ".", "o", "O", "°", "O", "o", "." ] }, "noise": { "interval": 100, "frames": [ "▓", "▒", "░" ] }, "bounce": { "interval": 120, "frames": [ "⠁", "⠂", "⠄", "⠂" ] }, "boxBounce": { "interval": 120, "frames": [ "▖", "▘", "▝", "▗" ] }, "boxBounce2": { "interval": 100, "frames": [ "▌", "▀", "▐", "▄" ] }, "triangle": { "interval": 50, "frames": [ "◢", "◣", "◤", "◥" ] }, "binary": { "interval": 80, "frames": [ "010010", "001100", "100101", "111010", "111101", "010111", "101011", "111000", "110011", "110101" ] }, "arc": { "interval": 100, "frames": [ "◜", "◠", "◝", "◞", "◡", "◟" ] }, "circle": { "interval": 120, "frames": [ "◡", "⊙", "◠" ] }, "squareCorners": { "interval": 180, "frames": [ "◰", "◳", "◲", "◱" ] }, "circleQuarters": { "interval": 120, "frames": [ "◴", "◷", "◶", "◵" ] }, "circleHalves": { "interval": 50, "frames": [ "◐", "◓", "◑", "◒" ] }, "squish": { "interval": 100, "frames": ["╫", "╪"] }, "toggle": { "interval": 250, "frames": ["⊶", "⊷"] }, "toggle2": { "interval": 80, "frames": ["▫", "▪"] }, "toggle3": { "interval": 120, "frames": ["□", "■"] }, "toggle4": { "interval": 100, "frames": [ "■", "□", "▪", "▫" ] }, "toggle5": { "interval": 100, "frames": ["▮", "▯"] }, "toggle6": { "interval": 300, "frames": ["ဝ", "၀"] }, "toggle7": { "interval": 80, "frames": ["⦾", "⦿"] }, "toggle8": { "interval": 100, "frames": ["◍", "◌"] }, "toggle9": { "interval": 100, "frames": ["◉", "◎"] }, "toggle10": { "interval": 100, "frames": [ "㊂", "㊀", "㊁" ] }, "toggle11": { "interval": 50, "frames": ["⧇", "⧆"] }, "toggle12": { "interval": 120, "frames": ["☗", "☖"] }, "toggle13": { "interval": 80, "frames": [ "=", "*", "-" ] }, "arrow": { "interval": 100, "frames": [ "←", "↖", "↑", "↗", "→", "↘", "↓", "↙" ] }, "arrow2": { "interval": 80, "frames": [ "⬆️ ", "↗️ ", "➡️ ", "↘️ ", "⬇️ ", "↙️ ", "⬅️ ", "↖️ " ] }, "arrow3": { "interval": 120, "frames": [ "▹▹▹▹▹", "▸▹▹▹▹", "▹▸▹▹▹", "▹▹▸▹▹", "▹▹▹▸▹", "▹▹▹▹▸" ] }, "bouncingBar": { "interval": 80, "frames": [ "[ ]", "[= ]", "[== ]", "[=== ]", "[====]", "[ ===]", "[ ==]", "[ =]", "[ ]", "[ =]", "[ ==]", "[ ===]", "[====]", "[=== ]", "[== ]", "[= ]" ] }, "bouncingBall": { "interval": 80, "frames": [ "( ● )", "( ● )", "( ● )", "( ● )", "( ●)", "( ● )", "( ● )", "( ● )", "( ● )", "(● )" ] }, "smiley": { "interval": 200, "frames": ["😄 ", "😝 "] }, "monkey": { "interval": 300, "frames": [ "🙈 ", "🙈 ", "🙉 ", "🙊 " ] }, "hearts": { "interval": 100, "frames": [ "💛 ", "💙 ", "💜 ", "💚 ", "❤️ " ] }, "clock": { "interval": 100, "frames": [ "🕛 ", "🕐 ", "🕑 ", "🕒 ", "🕓 ", "🕔 ", "🕕 ", "🕖 ", "🕗 ", "🕘 ", "🕙 ", "🕚 " ] }, "earth": { "interval": 180, "frames": [ "🌍 ", "🌎 ", "🌏 " ] }, "material": { "interval": 17, "frames": [ "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "███████▁▁▁▁▁▁▁▁▁▁▁▁▁", "████████▁▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "██████████▁▁▁▁▁▁▁▁▁▁", "███████████▁▁▁▁▁▁▁▁▁", "█████████████▁▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁▁██████████████▁▁▁▁", "▁▁▁██████████████▁▁▁", "▁▁▁▁█████████████▁▁▁", "▁▁▁▁██████████████▁▁", "▁▁▁▁██████████████▁▁", "▁▁▁▁▁██████████████▁", "▁▁▁▁▁██████████████▁", "▁▁▁▁▁██████████████▁", "▁▁▁▁▁▁██████████████", "▁▁▁▁▁▁██████████████", "▁▁▁▁▁▁▁█████████████", "▁▁▁▁▁▁▁█████████████", "▁▁▁▁▁▁▁▁████████████", "▁▁▁▁▁▁▁▁████████████", "▁▁▁▁▁▁▁▁▁███████████", "▁▁▁▁▁▁▁▁▁███████████", "▁▁▁▁▁▁▁▁▁▁██████████", "▁▁▁▁▁▁▁▁▁▁██████████", "▁▁▁▁▁▁▁▁▁▁▁▁████████", "▁▁▁▁▁▁▁▁▁▁▁▁▁███████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████", "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "██████▁▁▁▁▁▁▁▁▁▁▁▁▁█", "████████▁▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "███████████▁▁▁▁▁▁▁▁▁", "████████████▁▁▁▁▁▁▁▁", "████████████▁▁▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁▁▁█████████████▁▁▁▁", "▁▁▁▁▁████████████▁▁▁", "▁▁▁▁▁████████████▁▁▁", "▁▁▁▁▁▁███████████▁▁▁", "▁▁▁▁▁▁▁▁█████████▁▁▁", "▁▁▁▁▁▁▁▁█████████▁▁▁", "▁▁▁▁▁▁▁▁▁█████████▁▁", "▁▁▁▁▁▁▁▁▁█████████▁▁", "▁▁▁▁▁▁▁▁▁▁█████████▁", "▁▁▁▁▁▁▁▁▁▁▁████████▁", "▁▁▁▁▁▁▁▁▁▁▁████████▁", "▁▁▁▁▁▁▁▁▁▁▁▁███████▁", "▁▁▁▁▁▁▁▁▁▁▁▁███████▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁███████", "▁▁▁▁▁▁▁▁▁▁▁▁▁███████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁" ] }, "moon": { "interval": 80, "frames": [ "🌑 ", "🌒 ", "🌓 ", "🌔 ", "🌕 ", "🌖 ", "🌗 ", "🌘 " ] }, "runner": { "interval": 140, "frames": ["🚶 ", "🏃 "] }, "pong": { "interval": 80, "frames": [ "▐⠂ ▌", "▐⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂▌", "▐ ⠠▌", "▐ ⡀▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐⠠ ▌" ] }, "shark": { "interval": 120, "frames": [ "▐|\\____________▌", "▐_|\\___________▌", "▐__|\\__________▌", "▐___|\\_________▌", "▐____|\\________▌", "▐_____|\\_______▌", "▐______|\\______▌", "▐_______|\\_____▌", "▐________|\\____▌", "▐_________|\\___▌", "▐__________|\\__▌", "▐___________|\\_▌", "▐____________|\\▌", "▐____________/|▌", "▐___________/|_▌", "▐__________/|__▌", "▐_________/|___▌", "▐________/|____▌", "▐_______/|_____▌", "▐______/|______▌", "▐_____/|_______▌", "▐____/|________▌", "▐___/|_________▌", "▐__/|__________▌", "▐_/|___________▌", "▐/|____________▌" ] }, "dqpb": { "interval": 100, "frames": [ "d", "q", "p", "b" ] }, "weather": { "interval": 100, "frames": [ "☀️ ", "☀️ ", "☀️ ", "🌤 ", "⛅️ ", "🌥 ", "☁️ ", "🌧 ", "🌨 ", "🌧 ", "🌨 ", "🌧 ", "🌨 ", "⛈ ", "🌨 ", "🌧 ", "🌨 ", "☁️ ", "🌥 ", "⛅️ ", "🌤 ", "☀️ ", "☀️ " ] }, "christmas": { "interval": 400, "frames": ["🌲", "🎄"] }, "grenade": { "interval": 80, "frames": [ "، ", "′ ", " ´ ", " ‾ ", " ⸌", " ⸊", " |", " ⁎", " ⁕", " ෴ ", " ⁓", " ", " ", " " ] }, "point": { "interval": 125, "frames": [ "∙∙∙", "●∙∙", "∙●∙", "∙∙●", "∙∙∙" ] }, "layer": { "interval": 150, "frames": [ "-", "=", "≡" ] }, "betaWave": { "interval": 80, "frames": [ "ρββββββ", "βρβββββ", "ββρββββ", "βββρβββ", "ββββρββ", "βββββρβ", "ββββββρ" ] }, "fingerDance": { "interval": 160, "frames": [ "🤘 ", "🤟 ", "🖖 ", "✋ ", "🤚 ", "👆 " ] }, "fistBump": { "interval": 80, "frames": [ "🤜    🤛 ", "🤜    🤛 ", "🤜    🤛 ", " 🤜  🤛  ", "  🤜🤛   ", " 🤜✨🤛   ", "🤜 ✨ 🤛  " ] }, "soccerHeader": { "interval": 80, "frames": [ " 🧑⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 " ] }, "mindblown": { "interval": 160, "frames": [ "😐 ", "😐 ", "😮 ", "😮 ", "😦 ", "😦 ", "😧 ", "😧 ", "🤯 ", "💥 ", "✨ ", "  ", "  ", "  " ] }, "speaker": { "interval": 160, "frames": [ "🔈 ", "🔉 ", "🔊 ", "🔉 " ] }, "orangePulse": { "interval": 100, "frames": [ "🔸 ", "🔶 ", "🟠 ", "🟠 ", "🔶 " ] }, "bluePulse": { "interval": 100, "frames": [ "🔹 ", "🔷 ", "🔵 ", "🔵 ", "🔷 " ] }, "orangeBluePulse": { "interval": 100, "frames": [ "🔸 ", "🔶 ", "🟠 ", "🟠 ", "🔶 ", "🔹 ", "🔷 ", "🔵 ", "🔵 ", "🔷 " ] }, "timeTravel": { "interval": 100, "frames": [ "🕛 ", "🕚 ", "🕙 ", "🕘 ", "🕗 ", "🕖 ", "🕕 ", "🕔 ", "🕓 ", "🕒 ", "🕑 ", "🕐 " ] }, "aesthetic": { "interval": 80, "frames": [ "▰▱▱▱▱▱▱", "▰▰▱▱▱▱▱", "▰▰▰▱▱▱▱", "▰▰▰▰▱▱▱", "▰▰▰▰▰▱▱", "▰▰▰▰▰▰▱", "▰▰▰▰▰▰▰", "▰▱▱▱▱▱▱" ] }, "dwarfFortress": { "interval": 80, "frames": [ " ██████£££ ", "☺██████£££ ", "☺██████£££ ", "☺▓█████£££ ", "☺▓█████£££ ", "☺▒█████£££ ", "☺▒█████£££ ", "☺░█████£££ ", "☺░█████£££ ", "☺ █████£££ ", " ☺█████£££ ", " ☺█████£££ ", " ☺▓████£££ ", " ☺▓████£££ ", " ☺▒████£££ ", " ☺▒████£££ ", " ☺░████£££ ", " ☺░████£££ ", " ☺ ████£££ ", " ☺████£££ ", " ☺████£££ ", " ☺▓███£££ ", " ☺▓███£££ ", " ☺▒███£££ ", " ☺▒███£££ ", " ☺░███£££ ", " ☺░███£££ ", " ☺ ███£££ ", " ☺███£££ ", " ☺███£££ ", " ☺▓██£££ ", " ☺▓██£££ ", " ☺▒██£££ ", " ☺▒██£££ ", " ☺░██£££ ", " ☺░██£££ ", " ☺ ██£££ ", " ☺██£££ ", " ☺██£££ ", " ☺▓█£££ ", " ☺▓█£££ ", " ☺▒█£££ ", " ☺▒█£££ ", " ☺░█£££ ", " ☺░█£££ ", " ☺ █£££ ", " ☺█£££ ", " ☺█£££ ", " ☺▓£££ ", " ☺▓£££ ", " ☺▒£££ ", " ☺▒£££ ", " ☺░£££ ", " ☺░£££ ", " ☺ £££ ", " ☺£££ ", " ☺£££ ", " ☺▓££ ", " ☺▓££ ", " ☺▒££ ", " ☺▒££ ", " ☺░££ ", " ☺░££ ", " ☺ ££ ", " ☺££ ", " ☺££ ", " ☺▓£ ", " ☺▓£ ", " ☺▒£ ", " ☺▒£ ", " ☺░£ ", " ☺░£ ", " ☺ £ ", " ☺£ ", " ☺£ ", " ☺▓ ", " ☺▓ ", " ☺▒ ", " ☺▒ ", " ☺░ ", " ☺░ ", " ☺ ", " ☺ &", " ☺ ☼&", " ☺ ☼ &", " ☺☼ &", " ☺☼ & ", " ‼ & ", " ☺ & ", " ‼ & ", " ☺ & ", " ‼ & ", " ☺ & ", "‼ & ", " & ", " & ", " & ░ ", " & ▒ ", " & ▓ ", " & £ ", " & ░£ ", " & ▒£ ", " & ▓£ ", " & ££ ", " & ░££ ", " & ▒££ ", "& ▓££ ", "& £££ ", " ░£££ ", " ▒£££ ", " ▓£££ ", " █£££ ", " ░█£££ ", " ▒█£££ ", " ▓█£££ ", " ██£££ ", " ░██£££ ", " ▒██£££ ", " ▓██£££ ", " ███£££ ", " ░███£££ ", " ▒███£££ ", " ▓███£££ ", " ████£££ ", " ░████£££ ", " ▒████£££ ", " ▓████£££ ", " █████£££ ", " ░█████£££ ", " ▒█████£££ ", " ▓█████£££ ", " ██████£££ ", " ██████£££ " ] } }; }) }); //#endregion //#region ../../node_modules/cli-spinners/index.js var require_cli_spinners = /* @__PURE__ */ __commonJS({ "../../node_modules/cli-spinners/index.js": ((exports, module) => { const spinners$1 = Object.assign({}, require_spinners()); const spinnersList = Object.keys(spinners$1); Object.defineProperty(spinners$1, "random", { get() { return spinners$1[spinnersList[Math.floor(Math.random() * spinnersList.length)]]; } }); module.exports = spinners$1; }) }); //#endregion //#region ../../node_modules/log-symbols/node_modules/chalk/source/vendor/ansi-styles/index.js const ANSI_BACKGROUND_OFFSET$2 = 10; const wrapAnsi16$2 = (offset = 0) => (code$1) => `\u001B[${code$1 + offset}m`; const wrapAnsi256$2 = (offset = 0) => (code$1) => `\u001B[${38 + offset};5;${code$1}m`; const wrapAnsi16m$2 = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`; const styles$5 = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } }; const modifierNames$2 = Object.keys(styles$5.modifier); const foregroundColorNames$2 = Object.keys(styles$5.color); const backgroundColorNames$2 = Object.keys(styles$5.bgColor); const colorNames$2 = [...foregroundColorNames$2, ...backgroundColorNames$2]; function assembleStyles$2() { const codes = /* @__PURE__ */ new Map(); for (const [groupName, group] of Object.entries(styles$5)) { for (const [styleName, style] of Object.entries(group)) { styles$5[styleName] = { open: `\u001B[${style[0]}m`, close: `\u001B[${style[1]}m` }; group[styleName] = styles$5[styleName]; codes.set(style[0], style[1]); } Object.defineProperty(styles$5, groupName, { value: group, enumerable: false }); } Object.defineProperty(styles$5, "codes", { value: codes, enumerable: false }); styles$5.color.close = "\x1B[39m"; styles$5.bgColor.close = "\x1B[49m"; styles$5.color.ansi = wrapAnsi16$2(); styles$5.color.ansi256 = wrapAnsi256$2(); styles$5.color.ansi16m = wrapAnsi16m$2(); styles$5.bgColor.ansi = wrapAnsi16$2(ANSI_BACKGROUND_OFFSET$2); styles$5.bgColor.ansi256 = wrapAnsi256$2(ANSI_BACKGROUND_OFFSET$2); styles$5.bgColor.ansi16m = wrapAnsi16m$2(ANSI_BACKGROUND_OFFSET$2); Object.defineProperties(styles$5, { rgbToAnsi256: { value(red, green, blue) { if (red === green && green === blue) { if (red < 8) return 16; if (red > 248) return 231; return Math.round((red - 8) / 247 * 24) + 232; } return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5); }, enumerable: false }, hexToRgb: { value(hex) { const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16)); if (!matches) return [ 0, 0, 0 ]; let [colorString] = matches; if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join(""); const integer = Number.parseInt(colorString, 16); return [ integer >> 16 & 255, integer >> 8 & 255, integer & 255 ]; }, enumerable: false }, hexToAnsi256: { value: (hex) => styles$5.rgbToAnsi256(...styles$5.hexToRgb(hex)), enumerable: false }, ansi256ToAnsi: { value(code$1) { if (code$1 < 8) return 30 + code$1; if (code$1 < 16) return 90 + (code$1 - 8); let red; let green; let blue; if (code$1 >= 232) { red = ((code$1 - 232) * 10 + 8) / 255; green = red; blue = red; } else { code$1 -= 16; const remainder = code$1 % 36; red = Math.floor(code$1 / 36) / 5; green = Math.floor(remainder / 6) / 5; blue = remainder % 6 / 5; } const value = Math.max(red, green, blue) * 2; if (value === 0) return 30; let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red)); if (value === 2) result += 60; return result; }, enumerable: false }, rgbToAnsi: { value: (red, green, blue) => styles$5.ansi256ToAnsi(styles$5.rgbToAnsi256(red, green, blue)), enumerable: false }, hexToAnsi: { value: (hex) => styles$5.ansi256ToAnsi(styles$5.hexToAnsi256(hex)), enumerable: false } }); return styles$5; } const ansiStyles$2 = assembleStyles$2(); var ansi_styles_default$2 = ansiStyles$2; //#endregion //#region ../../node_modules/log-symbols/node_modules/chalk/source/vendor/supports-color/index.js function hasFlag$2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) { const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; const position$2 = argv.indexOf(prefix + flag); const terminatorPosition = argv.indexOf("--"); return position$2 !== -1 && (terminatorPosition === -1 || position$2 < terminatorPosition); } const { env: env$3 } = process$1; let flagForceColor$2; if (hasFlag$2("no-color") || hasFlag$2("no-colors") || hasFlag$2("color=false") || hasFlag$2("color=never")) flagForceColor$2 = 0; else if (hasFlag$2("color") || hasFlag$2("colors") || hasFlag$2("color=true") || hasFlag$2("color=always")) flagForceColor$2 = 1; function envForceColor$2() { if ("FORCE_COLOR" in env$3) { if (env$3.FORCE_COLOR === "true") return 1; if (env$3.FORCE_COLOR === "false") return 0; return env$3.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env$3.FORCE_COLOR, 10), 3); } } function translateLevel$2(level) { if (level === 0) return false; return { level, hasBasic: true, has256: level >= 2, has16m: level >= 3 }; } function _supportsColor$2(haveStream, { streamIsTTY, sniffFlags = true } = {}) { const noFlagForceColor = envForceColor$2(); if (noFlagForceColor !== void 0) flagForceColor$2 = noFlagForceColor; const forceColor = sniffFlags ? flagForceColor$2 : noFlagForceColor; if (forceColor === 0) return 0; if (sniffFlags) { if (hasFlag$2("color=16m") || hasFlag$2("color=full") || hasFlag$2("color=truecolor")) return 3; if (hasFlag$2("color=256")) return 2; } if ("TF_BUILD" in env$3 && "AGENT_NAME" in env$3) return 1; if (haveStream && !streamIsTTY && forceColor === void 0) return 0; const min = forceColor || 0; if (env$3.TERM === "dumb") return min; if (process$1.platform === "win32") { const osRelease = os.release().split("."); if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2; return 1; } if ("CI" in env$3) { if ([ "GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI" ].some((key) => key in env$3)) return 3; if ([ "TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE" ].some((sign) => sign in env$3) || env$3.CI_NAME === "codeship") return 1; return min; } if ("TEAMCITY_VERSION" in env$3) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$3.TEAMCITY_VERSION) ? 1 : 0; if (env$3.COLORTERM === "truecolor") return 3; if (env$3.TERM === "xterm-kitty") return 3; if ("TERM_PROGRAM" in env$3) { const version$1 = Number.parseInt((env$3.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (env$3.TERM_PROGRAM) { case "iTerm.app": return version$1 >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } if (/-256(color)?$/i.test(env$3.TERM)) return 2; if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env$3.TERM)) return 1; if ("COLORTERM" in env$3) return 1; return min; } function createSupportsColor$2(stream, options = {}) { return translateLevel$2(_supportsColor$2(stream, { streamIsTTY: stream && stream.isTTY, ...options })); } const supportsColor$2 = { stdout: createSupportsColor$2({ isTTY: tty.isatty(1) }), stderr: createSupportsColor$2({ isTTY: tty.isatty(2) }) }; var supports_color_default$2 = supportsColor$2; //#endregion //#region ../../node_modules/log-symbols/node_modules/chalk/source/utilities.js function stringReplaceAll$2(string$2, substring, replacer) { let index$2 = string$2.indexOf(substring); if (index$2 === -1) return string$2; const substringLength = substring.length; let endIndex = 0; let returnValue = ""; do { returnValue += string$2.slice(endIndex, index$2) + substring + replacer; endIndex = index$2 + substringLength; index$2 = string$2.indexOf(substring, endIndex); } while (index$2 !== -1); returnValue += string$2.slice(endIndex); return returnValue; } function stringEncaseCRLFWithFirstIndex$2(string$2, prefix, postfix, index$2) { let endIndex = 0; let returnValue = ""; do { const gotCR = string$2[index$2 - 1] === "\r"; returnValue += string$2.slice(endIndex, gotCR ? index$2 - 1 : index$2) + prefix + (gotCR ? "\r\n" : "\n") + postfix; endIndex = index$2 + 1; index$2 = string$2.indexOf("\n", endIndex); } while (index$2 !== -1); returnValue += string$2.slice(endIndex); return returnValue; } //#endregion //#region ../../node_modules/log-symbols/node_modules/chalk/source/index.js const { stdout: stdoutColor$2, stderr: stderrColor$2 } = supports_color_default$2; const GENERATOR$3 = Symbol("GENERATOR"); const STYLER$2 = Symbol("STYLER"); const IS_EMPTY$2 = Symbol("IS_EMPTY"); const levelMapping$2 = [ "ansi", "ansi", "ansi256", "ansi16m" ]; const styles$4 = Object.create(null); const applyOptions$2 = (object, options = {}) => { if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3"); const colorLevel = stdoutColor$2 ? stdoutColor$2.level : 0; object.level = options.level === void 0 ? colorLevel : options.level; }; const chalkFactory$2 = (options) => { const chalk$3 = (...strings) => strings.join(" "); applyOptions$2(chalk$3, options); Object.setPrototypeOf(chalk$3, createChalk$2.prototype); return chalk$3; }; function createChalk$2(options) { return chalkFactory$2(options); } Object.setPrototypeOf(createChalk$2.prototype, Function.prototype); for (const [styleName, style] of Object.entries(ansi_styles_default$2)) styles$4[styleName] = { get() { const builder = createBuilder$2(this, createStyler$2(style.open, style.close, this[STYLER$2]), this[IS_EMPTY$2]); Object.defineProperty(this, styleName, { value: builder }); return builder; } }; styles$4.visible = { get() { const builder = createBuilder$2(this, this[STYLER$2], true); Object.defineProperty(this, "visible", { value: builder }); return builder; } }; const getModelAnsi$2 = (model, level, type$2, ...arguments_) => { if (model === "rgb") { if (level === "ansi16m") return ansi_styles_default$2[type$2].ansi16m(...arguments_); if (level === "ansi256") return ansi_styles_default$2[type$2].ansi256(ansi_styles_default$2.rgbToAnsi256(...arguments_)); return ansi_styles_default$2[type$2].ansi(ansi_styles_default$2.rgbToAnsi(...arguments_)); } if (model === "hex") return getModelAnsi$2("rgb", level, type$2, ...ansi_styles_default$2.hexToRgb(...arguments_)); return ansi_styles_default$2[type$2][model](...arguments_); }; for (const model of [ "rgb", "hex", "ansi256" ]) { styles$4[model] = { get() { const { level } = this; return function(...arguments_) { const styler = createStyler$2(getModelAnsi$2(model, levelMapping$2[level], "color", ...arguments_), ansi_styles_default$2.color.close, this[STYLER$2]); return createBuilder$2(this, styler, this[IS_EMPTY$2]); }; } }; const bgModel = "bg" + model[0].toUpperCase() + model.slice(1); styles$4[bgModel] = { get() { const { level } = this; return function(...arguments_) { const styler = createStyler$2(getModelAnsi$2(model, levelMapping$2[level], "bgColor", ...arguments_), ansi_styles_default$2.bgColor.close, this[STYLER$2]); return createBuilder$2(this, styler, this[IS_EMPTY$2]); }; } }; } const proto$2 = Object.defineProperties(() => {}, { ...styles$4, level: { enumerable: true, get() { return this[GENERATOR$3].level; }, set(level) { this[GENERATOR$3].level = level; } } }); const createStyler$2 = (open$1, close, parent) => { let openAll; let closeAll; if (parent === void 0) { openAll = open$1; closeAll = close; } else { openAll = parent.openAll + open$1; closeAll = close + parent.closeAll; } return { open: open$1, close, openAll, closeAll, parent }; }; const createBuilder$2 = (self$1, _styler, _isEmpty) => { const builder = (...arguments_) => applyStyle$2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" ")); Object.setPrototypeOf(builder, proto$2); builder[GENERATOR$3] = self$1; builder[STYLER$2] = _styler; builder[IS_EMPTY$2] = _isEmpty; return builder; }; const applyStyle$2 = (self$1, string$2) => { if (self$1.level <= 0 || !string$2) return self$1[IS_EMPTY$2] ? "" : string$2; let styler = self$1[STYLER$2]; if (styler === void 0) return string$2; const { openAll, closeAll } = styler; if (string$2.includes("\x1B")) while (styler !== void 0) { string$2 = stringReplaceAll$2(string$2, styler.close, styler.open); styler = styler.parent; } const lfIndex = string$2.indexOf("\n"); if (lfIndex !== -1) string$2 = stringEncaseCRLFWithFirstIndex$2(string$2, closeAll, openAll, lfIndex); return openAll + string$2 + closeAll; }; Object.defineProperties(createChalk$2.prototype, styles$4); const chalk$2 = createChalk$2(); const chalkStderr$2 = createChalk$2({ level: stderrColor$2 ? stderrColor$2.level : 0 }); var source_default$2 = chalk$2; //#endregion //#region ../../node_modules/log-symbols/node_modules/is-unicode-supported/index.js function isUnicodeSupported$1() { if (process$1.platform !== "win32") return process$1.env.TERM !== "linux"; return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm"; } //#endregion //#region ../../node_modules/log-symbols/index.js const main = { info: source_default$2.blue("ℹ"), success: source_default$2.green("✔"), warning: source_default$2.yellow("⚠"), error: source_default$2.red("✖") }; const fallback = { info: source_default$2.blue("i"), success: source_default$2.green("√"), warning: source_default$2.yellow("‼"), error: source_default$2.red("×") }; const logSymbols = isUnicodeSupported$1() ? main : fallback; var log_symbols_default = logSymbols; //#endregion //#region ../../node_modules/ansi-regex/index.js function ansiRegex({ onlyFirst = false } = {}) { return new RegExp(`(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`, onlyFirst ? void 0 : "g"); } //#endregion //#region ../../node_modules/strip-ansi/index.js const regex$1 = ansiRegex(); function stripAnsi(string$2) { if (typeof string$2 !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string$2}\``); return string$2.replace(regex$1, ""); } //#endregion //#region ../../node_modules/get-east-asian-width/lookup.js function isAmbiguous(x) { return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 87