standard-log-color 13.3.1 → 13.3.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.
@@ -233,7 +233,12 @@ function consoleFormatter({ args }) {
233
233
  return args;
234
234
  }
235
235
  //#endregion
236
- //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.12_typescript@7.0.2/node_modules/type-plus/esm/object/record.js
236
+ //#region ../log/esm/record.js
237
+ /**
238
+ * Creates a prototype-less object, optionally seeded with `value`.
239
+ *
240
+ * Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.
241
+ */
237
242
  function record(value) {
238
243
  const r = Object.create(null);
239
244
  return value ? Object.assign(r, value) : r;
@@ -1 +1 @@
1
- {"version":3,"file":"standard-log-color.esm.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../../node_modules/.pnpm/type-plus@8.0.0-beta.12_typescript@7.0.2/node_modules/type-plus/esm/object/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n 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(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","export function record(value) {\n const r = Object.create(null);\n return (value ? Object.assign(r, value) : r);\n}\n//# sourceMappingURL=record.js.map","import { record } from \"type-plus\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,3,5,7,12,13,14],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAM,YAAY;;;;CAIjB,MAAM;;;;;;CAMN,WAAW;;;;;;CAMX,OAAO;;;;;;CAMP,UAAU;;;;;;CAMV,OAAO;;;;;;CAMP,MAAM;;;;;;CAMN,QAAQ;;;;;;CAMR,MAAM;;;;;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AElG,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,oBAAoB;AAEhE"}
1
+ {"version":3,"file":"standard-log-color.esm.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../log/esm/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n 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(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","//#region ts/record.ts\n/**\n* Creates a prototype-less object, optionally seeded with `value`.\n*\n* Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.\n*/\nfunction record(value) {\n\tconst r = Object.create(null);\n\treturn value ? Object.assign(r, value) : r;\n}\n//#endregion\nexport { record };\n\n//# sourceMappingURL=record.js.map","import { record } from \"./record.js\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,5,7,12,13,14],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAM,YAAY;;;;CAIjB,MAAM;;;;;;CAMN,WAAW;;;;;;CAMX,OAAO;;;;;;CAMP,UAAU;;;;;;CAMV,OAAO;;;;;;CAMP,MAAM;;;;;;CAMN,QAAQ;;;;;;CAMR,MAAM;;;;;;CAMN,OAAO;;;;;;CAMP,OAAO;;;;;;;CAOP,QAAQ,OAAO;;;;CAIf,KAAK,OAAO;AACb;;;;;;;CCnEA,IAAI,IAAI;CACR,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;CACZ,IAAI,IAAI,IAAI;;;;;;;;;;;;;;CAgBZ,OAAO,UAAU,SAAU,KAAK,SAAS;EACvC,UAAU,WAAW,CAAC;EACtB,IAAI,OAAO,OAA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CACvB,MAAM,QAAQ,IAAI,KAAK;CAEvB,MAAM,IAAI,SAAS,SAAU,QAAQ,SAAS,YAAY,QAAQ,QAAS,UAAU;CACrF,MAAM,IAAI,SAAS,SAAU,QAAQ,SAAS,YAAY,QAAQ,QAAS,UAAU;CACrF,MAAM,IAAI,SAAS,SAAU,QAAQ,SAAS,YAAY,QAAQ,QAAS,UAAU;CAErF,OAAO,IAAI,SAAS,QAAQ,IAAI,SAAS,QAAQ,IAAI,SAAS;AAC/D;AAEA,SAAS,iBAAiB,KAAU;CAInC,OAAO,OAAO;EAHJ,MAAM,IAAI;EACV,MAAM,IAAI;EACV,MAAM,IAAI;CACE,CAAC;AACxB;;;AC/FA,SAAgB,uBAAuB,SAAmC;CACzE,OAAO,yBACN,UACC,EACC,WAAW,yBAAyB,IACjC,mBAAmB,SAAS,mBAAmB,IAC/C,iBACJ,GACA,OACD,CACD;AACD;;AAGA,SAAS,2BAA2B;CAKnC,IAAI,QAAQ,SAAS,SAAS,cAAc,QAAQ,SAAS,QAC5D,OAAO;CAIR,IAAI,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,uBAAuB,GACpE,OAAO;CAKR,OAEC,UAAU,iBAAiB,OAAO,oBAGlC,QAAQ,SAAS,WAEhB,QAAQ,SAAS,aAAa,QAAQ,SAAS,SAG/C,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,gBAAgB,KAAK,OAAO,SAAS,OAAO,IAAI,EAAE,KAAK,MAElG,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,oBAAoB;AAEhE"}
@@ -235,7 +235,12 @@ var StandardLogColor = (function(exports) {
235
235
  return args;
236
236
  }
237
237
  //#endregion
238
- //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.12_typescript@7.0.2/node_modules/type-plus/esm/object/record.js
238
+ //#region ../log/esm/record.js
239
+ /**
240
+ * Creates a prototype-less object, optionally seeded with `value`.
241
+ *
242
+ * Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.
243
+ */
239
244
  function record(value) {
240
245
  const r = Object.create(null);
241
246
  return value ? Object.assign(r, value) : r;
@@ -1 +1 @@
1
- {"version":3,"file":"standard-log-color.iife.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../../node_modules/.pnpm/type-plus@8.0.0-beta.12_typescript@7.0.2/node_modules/type-plus/esm/object/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n 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(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","export function record(value) {\n const r = Object.create(null);\n return (value ? Object.assign(r, value) : r);\n}\n//# sourceMappingURL=record.js.map","import { record } from \"type-plus\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,3,5,7,12,13,14],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;CACA,MAAM,YAAY;;;;EAIjB,MAAM;;;;;;EAMN,WAAW;;;;;;EAMX,OAAO;;;;;;EAMP,UAAU;;;;;;EAMV,OAAO;;;;;;EAMP,MAAM;;;;;;EAMN,QAAQ;;;;;;EAMR,MAAM;;;;;;EAMN,OAAO;;;;;;EAMP,OAAO;;;;;;;EAOP,QAAQ,OAAO;;;;EAIf,KAAK,OAAO;CACb;;;;;;;ECnEA,IAAI,IAAI;EACR,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;;;;;;;;;;;;;;EAgBZ,OAAO,UAAU,SAAU,KAAK,SAAS;GACvC,UAAU,WAAW,CAAC;GACtB,IAAI,OAAO,OAAO;GAClB,IAAI,SAAS,YAAY,IAAI,SAAS,GACpC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IAAI,SAAS,SAAU,QAAQ,SAAS,YAAY,QAAQ,QAAS,UAAU;EACrF,MAAM,IAAI,SAAS,SAAU,QAAQ,SAAS,YAAY,QAAQ,QAAS,UAAU;EACrF,MAAM,IAAI,SAAS,SAAU,QAAQ,SAAS,YAAY,QAAQ,QAAS,UAAU;EAErF,OAAO,IAAI,SAAS,QAAQ,IAAI,SAAS,QAAQ,IAAI,SAAS;CAC/D;CAEA,SAAS,iBAAiB,KAAU;EAInC,OAAO,OAAO;GAHJ,MAAM,IAAI;GACV,MAAM,IAAI;GACV,MAAM,IAAI;EACE,CAAC;CACxB;;;CC/FA,SAAgB,uBAAuB,SAAmC;EACzE,OAAO,yBACN,UACC,EACC,WAAW,yBAAyB,IACjC,mBAAmB,SAAS,mBAAmB,IAC/C,iBACJ,GACA,OACD,CACD;CACD;;CAGA,SAAS,2BAA2B;EAKnC,IAAI,QAAQ,SAAS,SAAS,cAAc,QAAQ,SAAS,QAC5D,OAAO;EAIR,IAAI,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,uBAAuB,GACpE,OAAO;EAKR,OAEC,UAAU,iBAAiB,OAAO,oBAGlC,QAAQ,SAAS,WAEhB,QAAQ,SAAS,aAAa,QAAQ,SAAS,SAG/C,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,gBAAgB,KAAK,OAAO,SAAS,OAAO,IAAI,EAAE,KAAK,MAElG,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,oBAAoB;CAEhE"}
1
+ {"version":3,"file":"standard-log-color.iife.js","names":["ms","sc"],"sources":["../../log/esm/log_levels.js","../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../../log/esm/formatter.js","../../log/esm/record.js","../../log/esm/platform.browser.js","../../../node_modules/.pnpm/unpartial@1.0.8/node_modules/unpartial/esm/index.js","../../log/esm/console.js","../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js","../ts/supportColor.ts","../ts/ansi/constants.ts","../ts/ansi/wrapAnsi.ts","../ts/ansi/ansiFormatter.ts","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColors.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/createColorsFromMap.js","../../../node_modules/.pnpm/color-map@2.0.6/node_modules/color-map/esm/rgbHex.js","../ts/css/colors.ts","../ts/css/cssFormatter.ts","../ts/createColorLogReporter.browser.ts"],"sourcesContent":["//#region ts/log_levels.ts\nconst logLevels = {\n\t/**\n\t* none: 0\n\t*/\n\tnone: 0,\n\t/**\n\t* emergency: 100\n\t*\n\t* emergency -> alert\n\t*/\n\temergency: 100,\n\t/**\n\t* alert: 200\n\t*\n\t* emergency -> alert -> critical\n\t*/\n\talert: 200,\n\t/**\n\t* critical: 300\n\t*\n\t* alert -> critical -> error\n\t*/\n\tcritical: 300,\n\t/**\n\t* error: 400\n\t*\n\t* critical -> error -> warn\n\t*/\n\terror: 400,\n\t/**\n\t* warn: 500\n\t*\n\t* error -> warn -> notice\n\t*/\n\twarn: 500,\n\t/**\n\t* notice: 600\n\t*\n\t* warn -> notice -> info\n\t*/\n\tnotice: 600,\n\t/**\n\t* info: 700\n\t*\n\t* notice -> info -> debug\n\t*/\n\tinfo: 700,\n\t/**\n\t* debug: 800\n\t*\n\t* info -> debug -> trace\n\t*/\n\tdebug: 800,\n\t/**\n\t* trace: 900\n\t*\n\t* debug -> trace -> planck\n\t*/\n\ttrace: 900,\n\t/**\n\t* planck: Infinity\n\t* `planck unit` is a very small unit <https://en.wikipedia.org/wiki/Planck_units>.\n\t*\n\t* trace -> planck\n\t*/\n\tplanck: Number.POSITIVE_INFINITY,\n\t/**\n\t* all: Infinity\n\t*/\n\tall: Number.POSITIVE_INFINITY\n};\n/**\n* Convert default log level value to log level name.\n*/\nfunction toLogLevelName(level) {\n\tif (level <= 100) return \"emergency\";\n\tif (level <= 200) return \"alert\";\n\tif (level <= 300) return \"critical\";\n\tif (level <= 400) return \"error\";\n\tif (level <= 500) return \"warn\";\n\tif (level <= 600) return \"notice\";\n\tif (level <= 700) return \"info\";\n\tif (level <= 800) return \"debug\";\n\tif (level <= 900) return \"trace\";\n\treturn \"planck\";\n}\n/**\n* Convert default log level name to log level value.\n*/\nfunction toLogLevel(name) {\n\treturn logLevels[name.toLocaleLowerCase()];\n}\nconst DEFAULT_LOG_METHOD_NAMES = [\n\t\"emergency\",\n\t\"alert\",\n\t\"critical\",\n\t\"error\",\n\t\"warn\",\n\t\"notice\",\n\t\"info\",\n\t\"debug\",\n\t\"trace\",\n\t\"planck\"\n];\n//#endregion\nexport { DEFAULT_LOG_METHOD_NAMES, logLevels, toLogLevel, toLogLevelName };\n\n//# sourceMappingURL=log_levels.js.map","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n 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(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","import { toLogLevelName } from \"./log_levels.js\";\nimport ms from \"ms\";\n//#region ts/formatter.ts\nfunction createTimestampFormatter(format) {\n\tswitch (format) {\n\t\tcase \"none\": return (_timestamp) => void 0;\n\t\tcase \"iso\": return (timestamp) => timestamp.toISOString();\n\t\tcase \"elapsed\": {\n\t\t\tlet lastTick;\n\t\t\treturn (timestamp) => {\n\t\t\t\tconst newTick = timestamp.getTime();\n\t\t\t\tconst result = ms(lastTick === void 0 ? 0 : newTick - lastTick);\n\t\t\t\tlastTick = newTick;\n\t\t\t\treturn result;\n\t\t\t};\n\t\t}\n\t}\n}\nfunction formatLogLevel(level) {\n\treturn `(${toLogLevelName(level).toUpperCase()})`;\n}\n/**\n* Formats log entry as plain text with the following format:\n* `timestamp id level ...args`\n*\n* This is typically useful for writing logs to file\n*/\nfunction plainLogFormatter({ id, level, args, timestamp }) {\n\treturn [\n\t\ttimestamp.toISOString(),\n\t\tid,\n\t\tformatLogLevel(level),\n\t\t...args\n\t];\n}\n/**\n* Formats log entry like default console log.\n*/\nfunction consoleFormatter({ args }) {\n\treturn args;\n}\n//#endregion\nexport { consoleFormatter, createTimestampFormatter, formatLogLevel, plainLogFormatter };\n\n//# sourceMappingURL=formatter.js.map","//#region ts/record.ts\n/**\n* Creates a prototype-less object, optionally seeded with `value`.\n*\n* Inlined from `type-plus` so the CJS build does not `require()` the ESM-only `type-plus`.\n*/\nfunction record(value) {\n\tconst r = Object.create(null);\n\treturn value ? Object.assign(r, value) : r;\n}\n//#endregion\nexport { record };\n\n//# sourceMappingURL=record.js.map","import { record } from \"./record.js\";\n//#region ts/platform.browser.ts\nconst toInspectLogEntry = (e) => e;\nconst polyfill = record();\n//#endregion\nexport { polyfill, toInspectLogEntry };\n\n//# sourceMappingURL=platform.browser.js.map","//#region ts/index.ts\nfunction required(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => {\n\t\treturn {\n\t\t\t...p,\n\t\t\t...e\n\t\t};\n\t});\n}\nfunction requiredDeep(source1, source2, source3) {\n\treturn merge([\n\t\tsource1,\n\t\tsource2,\n\t\tsource3\n\t], (p, e) => deepmerge(p, e));\n}\nfunction merge(entries, reducer) {\n\tif (entries[0] === void 0 || entries[0] === null) return entries[0];\n\treturn entries.filter((x) => !!x).reduce(reducer, {});\n}\nfunction deepmerge(source1, source2) {\n\tif (typeof source1 !== \"object\" || source1 === null) return source2 !== void 0 ? source2 : source1;\n\tif (Array.isArray(source1)) {\n\t\tif (Array.isArray(source2)) return source2;\n\t\tif (source2 === void 0) return [...source1];\n\t\treturn [...source1, source2];\n\t}\n\treturn getAllKeys(source1).concat(getAllKeys(source2)).reduce((p, k) => {\n\t\tp[k] = deepmerge(source1[k], source2 && source2[k]);\n\t\treturn p;\n\t}, {});\n}\nfunction getAllKeys(subject, internal = false) {\n\tif (typeof subject !== \"object\") return [];\n\tconst propertyNames = Object.getOwnPropertyNames(subject);\n\tconst keys = internal ? propertyNames.filter((n) => n !== \"constructor\") : propertyNames;\n\tconst proto = Object.getPrototypeOf(subject);\n\treturn proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;\n}\nfunction unpartial(s1, s2, s3) {\n\tif (s1 === void 0 || s1 === null) return s1;\n\treturn [\n\t\ts1,\n\t\ts2,\n\t\ts3\n\t].filter(notNil).reduce((p, s) => ({\n\t\t...p,\n\t\t...trimNilProps(s)\n\t}), {});\n}\nfunction trimNilProps(value) {\n\treturn Object.keys(value).reduce((p, k) => {\n\t\tif (notNil(value[k])) p[k] = value[k];\n\t\treturn p;\n\t}, {});\n}\nfunction notNil(value) {\n\treturn value !== null && value !== void 0;\n}\nfunction unpartialRecursively(arg1, arg2, arg3) {\n\treturn requiredDeep(arg1, arg2, arg3);\n}\n//#endregion\nexport { required, requiredDeep, unpartial, unpartialRecursively };\n\n//# sourceMappingURL=index.js.map","import { logLevels } from \"./log_levels.js\";\nimport { consoleFormatter } from \"./formatter.js\";\nimport { polyfill } from \"./platform.js\";\nimport { unpartial } from \"unpartial\";\n//#region ts/console.ts\nfunction toConsoleMethod(level) {\n\tswitch (true) {\n\t\tcase level <= 0: return \"debug\";\n\t\tcase level <= logLevels.error: return \"error\";\n\t\tcase level <= logLevels.warn: return \"warn\";\n\t\tcase level <= logLevels.info: return \"info\";\n\t\tdefault: return \"debug\";\n\t}\n}\n// istanbul ignore next\nfunction buildPolyfillConsole() {\n\tif (!!console.log.bind) return {\n\t\tdebug: (typeof console.info === \"function\" ? console.debug : console.log).bind(console),\n\t\tinfo: (typeof console.info === \"function\" ? console.info : console.log).bind(console),\n\t\twarn: (typeof console.warn === \"function\" ? console.warn : console.log).bind(console),\n\t\terror: (typeof console.error === \"function\" ? console.error : console.log).bind(console)\n\t};\n\treturn {\n\t\tdebug: buildFn(typeof console.debug === \"function\" ? \"debug\" : \"log\"),\n\t\tinfo: buildFn(typeof console.info === \"function\" ? \"info\" : \"log\"),\n\t\twarn: buildFn(typeof console.warn === \"function\" ? \"warn\" : \"log\"),\n\t\terror: buildFn(typeof console.error === \"function\" ? \"error\" : \"log\")\n\t};\n}\n// istanbul ignore next\nfunction buildFn(name) {\n\treturn (...args) => {\n\t\tconsole[name](...args);\n\t};\n}\nfunction createConsoleLogReporter(options) {\n\tconst { id, formatter, filter } = unpartial({\n\t\tid: \"console\",\n\t\tformatter: consoleFormatter\n\t}, options);\n\tif (!polyfill.console) polyfill.console = buildPolyfillConsole();\n\treturn Object.freeze({\n\t\tid,\n\t\tisConsoleReporter: true,\n\t\tget formatter() {\n\t\t\treturn formatter;\n\t\t},\n\t\tget filter() {\n\t\t\treturn filter;\n\t\t},\n\t\tconsole: polyfill.console,\n\t\twrite(entry) {\n\t\t\tif (filter && !filter(entry)) return;\n\t\t\tconst values = formatter(entry);\n\t\t\tconst method = toConsoleMethod(entry.level);\n\t\t\tthis.console[method](...values);\n\t\t}\n\t});\n}\n//#endregion\nexport { createConsoleLogReporter, toConsoleMethod };\n\n//# sourceMappingURL=console.js.map","/* eslint-env browser */\n'use strict';\n\nfunction getChromeVersion() {\n\tconst matches = /(Chrome|Chromium)\\/(?<chromeVersion>\\d+)\\./.exec(navigator.userAgent);\n\n\tif (!matches) {\n\t\treturn;\n\t}\n\n\treturn Number.parseInt(matches.groups.chromeVersion, 10);\n}\n\nconst colorSupport = getChromeVersion() >= 69 ? {\n\tlevel: 1,\n\thasBasic: true,\n\thas256: false,\n\thas16m: false\n} : false;\n\nmodule.exports = {\n\tstdout: colorSupport,\n\tstderr: colorSupport\n};\n","import sc from 'supports-color'\n\n/**\n * Color level.\n * This is the same definition as the `ColorSupportLevel` in `supports-color`.\n * Using the same definition for simplicity\n * @see https://github.com/chalk/supports-color/blob/main/index.d.ts#L19\n */\nexport enum ColorLevels {\n\tDISABLED = 0,\n\t/**\n\t * Basic 16 colors (4-bits)\n\t */\n\tBASIC = 1,\n\t/**\n\t * ANSI 256 colors (8-bits)\n\t */\n\tANSI = 2,\n\t/**\n\t * Truecolor 16 million colors (24-bits)\n\t */\n\tTRUE = 3\n}\n\nexport namespace supportColor {\n\texport type Result = { stdout: ColorLevels; stderr: ColorLevels }\n}\n\nlet value: supportColor.Result\n\n/**\n * Detects if the platform supports color.\n * For browser, the value can only be:\n * - `{ stdout: 0, stderr: 0 }` (DISABLED), or\n * - `{ stdout: 3, stderr: 3 }` (TRUE).\n * So you only need to check one case.\n * The result value is made the same so that it can be used in all platforms.\n */\nexport function supportColor(): supportColor.Result {\n\t// istanbul ignore next\n\treturn (value = value || {\n\t\tstderr: sc.stderr ? sc.stderr.level : ColorLevels.DISABLED,\n\t\tstdout: sc.stdout ? sc.stdout.level : ColorLevels.DISABLED\n\t})\n}\n","export type AnsiColor = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7\nexport const ANSI_BLACK = 0\nexport const ANSI_RED = 1\nexport const ANSI_GREEN = 2\nexport const ANSI_YELLOW = 3\nexport const ANSI_BLUE = 4\nexport const ANSI_MAGENTA = 5\nexport const ANSI_CYAN = 6\nexport const ANSI_WHITE = 7\n\nexport type AnsiStyle = 1 | 4\nexport const ANSI_BRIGHT = 1\nexport const ANSI_UNDERSCORE = 4\n\nexport const ANSI_FOREGROUND = 30\nexport const ANSI_BACKGROUND = 40\n","export function wrapAnsi(text: string, codes: number[]) {\n\treturn `\\u001B[${codes.join(';')}m${text}\\u001B[0m`\n}\n","import { createTimestampFormatter, type LogEntry, type TimestampFormat, toConsoleMethod } from 'standard-log'\nimport { ColorLevels, supportColor } from '../supportColor.js'\nimport {\n\tANSI_BACKGROUND,\n\tANSI_BLACK,\n\tANSI_BLUE,\n\tANSI_BRIGHT,\n\tANSI_CYAN,\n\tANSI_FOREGROUND,\n\tANSI_GREEN,\n\tANSI_MAGENTA,\n\tANSI_RED,\n\tANSI_UNDERSCORE,\n\tANSI_WHITE,\n\tANSI_YELLOW\n} from './constants.js'\nimport { wrapAnsi } from './wrapAnsi.js'\n\nexport type AnsiFormatterOptions = {\n\ttimestamp: TimestampFormat\n}\n\nexport function createAnsiFormatter(options: AnsiFormatterOptions = { timestamp: 'none' }) {\n\tconst timestampFormatter = createTimestampFormatter(options.timestamp)\n\n\treturn function ansiFormatter(entry: LogEntry) {\n\t\tconst consoleMethod = toConsoleMethod(entry.level)\n\t\tconst id = formatID(consoleMethod, entry.id)\n\t\tconst args = formatArgs(timestampFormatter, consoleMethod, entry)\n\t\treturn [id, ...args]\n\t}\n}\n\nfunction formatArgs(\n\ttimestampFormatter: (timestamp: Date) => string | undefined,\n\tmethod: 'error' | 'warn' | 'info' | 'debug',\n\tentry: Pick<LogEntry, 'args' | 'timestamp'>\n) {\n\tconst args = [...entry.args]\n\tconst timestamp = timestampFormatter(entry.timestamp)\n\tif (timestamp !== undefined) args.push(timestamp)\n\tconst textCodes =\n\t\tmethod === 'error'\n\t\t\t? [ANSI_RED + ANSI_FOREGROUND]\n\t\t\t: method === 'warn'\n\t\t\t\t? [ANSI_YELLOW + ANSI_FOREGROUND]\n\t\t\t\t: undefined\n\n\treturn textCodes ? args.map(x => wrapAnsi(x, textCodes)) : args\n}\n\nfunction formatID(method: 'error' | 'warn' | 'info' | 'debug', id: string) {\n\tconst colorLevels = supportColor()\n\tconst colorLevel = method === 'error' ? colorLevels.stderr : colorLevels.stdout\n\treturn toIDFormatter(colorLevel)(id)\n}\n\nfunction toIDFormatter(colorLevel: ColorLevels) {\n\t// istanbul ignore next\n\tswitch (colorLevel) {\n\t\tcase ColorLevels.DISABLED:\n\t\t\treturn (id: string) => id\n\t\tcase ColorLevels.BASIC:\n\t\t\treturn basicIDFormatter\n\t\tcase ColorLevels.ANSI:\n\t\t\treturn ansiIDFormatter\n\t\tcase ColorLevels.TRUE:\n\t\t\treturn truecolorIDFormatter\n\t}\n}\n\nfunction basicIDFormatter(id: string) {\n\tconst codes = getAnsiColor(id)\n\treturn wrapAnsi(` ${id} `, codes)\n}\n\nconst ansiColors: {\n\tcounter: number\n\tlist: Array<number[]>\n} = {\n\tcounter: 0,\n\tlist: [\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_RED + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_GREEN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_YELLOW + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLUE + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_MAGENTA + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_BLACK + ANSI_FOREGROUND, ANSI_CYAN + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE],\n\t\t[ANSI_WHITE + ANSI_FOREGROUND, ANSI_BLACK + ANSI_BACKGROUND, ANSI_BRIGHT, ANSI_UNDERSCORE]\n\t]\n}\nconst ansiColorMap: Record<string, number[]> = Object.create(null)\n\nfunction getAnsiColor(id: string) {\n\treturn (ansiColorMap[id] =\n\t\tansiColorMap[id] || ansiColors.list[ansiColors.counter++ % ansiColors.list.length])\n}\n\n// istanbul ignore next\nfunction ansiIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n\n// istanbul ignore next\nfunction truecolorIDFormatter(id: string) {\n\treturn basicIDFormatter(id)\n}\n","export function createColors(from, to, shades, alpha = [\n from.length === 4 ? from[3] : to.length === 4 ? to[3] : 1,\n to.length === 4 ? to[3] : from.length === 4 ? from[3] : 1\n]) {\n const start = [...from];\n const diff = [\n to[0] - from[0],\n to[1] - from[1],\n to[2] - from[2],\n alpha[1] - alpha[0]\n ];\n if (start.length === 3)\n start.push(alpha[0]);\n const inc = 1 / Math.max(shades - 1, 1);\n const rgba = [];\n for (let i = 0; i < shades; i++) {\n const color = [\n Math.round(start[0] + i * diff[0] * inc),\n Math.round(start[1] + i * diff[1] * inc),\n Math.round(start[2] + i * diff[2] * inc),\n start[3] + i * diff[3] * inc\n ];\n rgba.push(color);\n }\n return rgba;\n}\n//# sourceMappingURL=createColors.js.map","import { createColors } from './createColors.js';\n/**\n * Create colors with specified color map.\n */\nexport function createColorsFromMap(colormap, shades, alpha) {\n if (shades < colormap.length) {\n throw new Error(`Requires at least ${colormap.length} shades.`);\n }\n const result = [];\n const steps = [];\n for (let i = 0; i < colormap.length; i++) {\n steps.push(Math.round(colormap[i].index * shades));\n }\n for (let i = 0; i < colormap.length - 1; i++) {\n const n = steps[i + 1] - steps[i];\n const from = colormap[i].rgb;\n const to = colormap[i + 1].rgb;\n result.push(...createColors(from, to, n, alpha));\n }\n return result;\n}\n//# sourceMappingURL=createColorsFromMap.js.map","/**\n * Convert `RGB` to `#rgb`\n * JavaScript note: no check for array length, use it properly.\n */\nexport function rgbHex(rgb) {\n let hex = '#';\n for (let i = 0; i < 3; i++) {\n hex += d2h(rgb[i]);\n }\n return hex;\n}\nfunction d2h(d) {\n const s = (+d).toString(16);\n return s.length < 2 ? '0' + s : s;\n}\n//# sourceMappingURL=rgbHex.js.map","import type { ColorMap } from 'color-map'\n\nexport const rainbow: ColorMap = [\n\t{ index: 0, rgb: [150, 0, 90] },\n\t{ index: 0.125, rgb: [0, 0, 200] },\n\t{ index: 0.25, rgb: [0, 25, 255] },\n\t{ index: 0.375, rgb: [0, 152, 255] },\n\t{ index: 0.5, rgb: [44, 255, 150] },\n\t{ index: 0.625, rgb: [151, 255, 0] },\n\t{ index: 0.75, rgb: [255, 234, 0] },\n\t{ index: 0.875, rgb: [255, 111, 0] },\n\t{ index: 1, rgb: [255, 0, 0] }\n]\n","import { createColorsFromMap, type RGB, type RGBA, rgbHex } from 'color-map'\nimport { createTimestampFormatter, type LogEntry } from 'standard-log'\nimport { required } from 'unpartial'\nimport type { CssFormatterOptions } from '../types.js'\nimport { rainbow } from './colors.js'\n\nexport function createCssFormatter(options?: CssFormatterOptions) {\n\tconst { maxColor, timestamp, style } = required(\n\t\t{\n\t\t\tmaxColor: 20,\n\t\t\ttimestamp: 'none',\n\t\t\tstyle: 'padding: 2px; line-height: 1rem;'\n\t\t},\n\t\toptions\n\t)\n\tconst loggerMap: Record<string, RGB> = Object.create(null)\n\tconst colorMap: RGBA[] = createColorsFromMap(rainbow, maxColor)\n\tlet count = 0\n\n\tconst timestampFormatter = createTimestampFormatter(timestamp)\n\n\treturn function cssFormatter(entry: LogEntry) {\n\t\tlet idStr = `%c ${entry.id} `\n\t\tlet args: any[]\n\t\tif (firstArgIsColorTemplate(entry.args)) {\n\t\t\tidStr += entry.args[0]\n\t\t\targs = [...entry.args.slice(1)]\n\t\t} else {\n\t\t\targs = [...entry.args]\n\t\t}\n\t\tconst rgb = getRgb(entry.id)\n\t\tconst background = rgbHex(rgb)\n\t\tconst border = rgbHex(rgb.map(x => Math.max(0, x - 32)) as RGB)\n\t\tconst color = getForegroundColor(rgb)\n\t\tconst result = [\n\t\t\tidStr,\n\t\t\t`${style}background: ${background};border: 1px solid ${border};color: ${color};`,\n\t\t\t...args\n\t\t]\n\t\tconst t = timestampFormatter(entry.timestamp)\n\t\tif (t !== undefined) result.push(t)\n\t\treturn result\n\t}\n\n\tfunction firstArgIsColorTemplate(args: any[]) {\n\t\treturn typeof args[0] === 'string' && args[0].indexOf('%c') !== -1\n\t}\n\n\tfunction getRgb(id: string) {\n\t\treturn (loggerMap[id] = loggerMap[id] || colorMap[count++ & maxColor])\n\t}\n}\n\nconst gammaMap = {\n\trc: 0.2126,\n\tgc: 0.7152,\n\tbc: 0.0722,\n\tlowc: 1 / 12.92\n}\n\nfunction getForegroundColor(background: RGB) {\n\t// Setting the contrasting color as default\n\tlet color = getComplementary(background)\n\tconst bgLuminance = getRelativeLuminance(background)\n\tconst fgLuminance =\n\t\tcolor === '#ffffff' ? getRelativeLuminance([255, 255, 255]) : getRelativeLuminance([0, 0, 0])\n\tconst relativeL =\n\t\tbgLuminance > fgLuminance\n\t\t\t? (bgLuminance + 0.05) / (fgLuminance + 0.05)\n\t\t\t: (fgLuminance + 0.05) / (bgLuminance + 0.05)\n\n\t// Can set the contrast ratio based on text size later.\n\tif (relativeL < 4.5) {\n\t\tconst avgLuminance =\n\t\t\tbackground[0] * gammaMap['rc'] + background[1] * gammaMap['gc'] + background[2] * gammaMap['bc']\n\n\t\t// If the relative contrast is lower than standard, we switch color to black/white\n\t\tcolor = avgLuminance < 220 ? '#ffffff' : '#000000'\n\t}\n\treturn color\n}\n\nfunction getRelativeLuminance(rgb: RGB) {\n\t// https://www.w3.org/TR/WCAG/#relativeluminancedef\n\tconst rsrgb = rgb[0] / 255\n\tconst gsrgb = rgb[1] / 255\n\tconst bsrgb = rgb[2] / 255\n\n\tconst r = rsrgb <= 0.03928 ? rsrgb * gammaMap['lowc'] : ((rsrgb + 0.055) / 1.055) ** 2.4\n\tconst g = gsrgb <= 0.03928 ? gsrgb * gammaMap['lowc'] : ((gsrgb + 0.055) / 1.055) ** 2.4\n\tconst b = bsrgb <= 0.03928 ? bsrgb * gammaMap['lowc'] : ((bsrgb + 0.055) / 1.055) ** 2.4\n\n\treturn r * gammaMap['rc'] + g * gammaMap['gc'] + b * gammaMap['bc']\n}\n\nfunction getComplementary(rgb: RGB) {\n\tconst r = 255 - rgb[0]\n\tconst g = 255 - rgb[1]\n\tconst b = 255 - rgb[2]\n\treturn rgbHex([r, g, b])\n}\n","import { consoleFormatter, createConsoleLogReporter } from 'standard-log'\nimport { unpartial } from 'unpartial'\nimport { createCssFormatter } from './css/index.js'\nimport type { ColorLogReporterOptions } from './types.js'\n\nexport function createColorLogReporter(options?: ColorLogReporterOptions) {\n\treturn createConsoleLogReporter(\n\t\tunpartial(\n\t\t\t{\n\t\t\t\tformatter: supportCSSColorInConsole()\n\t\t\t\t\t? createCssFormatter(options?.cssFormatterOptions)\n\t\t\t\t\t: consoleFormatter\n\t\t\t},\n\t\t\toptions\n\t\t)\n\t)\n}\n\n// istanbul ignore next\nfunction supportCSSColorInConsole() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\t// @ts-expect-error\n\tif (window?.process?.type === 'renderer' || window?.process?.__nwjs) {\n\t\treturn true\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (navigator?.userAgent?.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (\n\t\t// @ts-expect-error\n\t\tdocument?.documentElement?.style?.WebkitAppearance ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t// @ts-expect-error\n\t\twindow?.console?.firebug ||\n\t\t// @ts-expect-error\n\t\t(window?.console?.exception && window?.console?.table) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(navigator?.userAgent?.toLowerCase().match(/firefox\\/(\\d+)/) && Number.parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\tnavigator?.userAgent?.toLowerCase().match(/applewebkit\\/(\\d+)/)\n\t)\n}\n"],"x_google_ignoreList":[1,5,7,12,13,14],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;CACA,MAAM,YAAY;;;;EAIjB,MAAM;;;;;;EAMN,WAAW;;;;;;EAMX,OAAO;;;;;;EAMP,UAAU;;;;;;EAMV,OAAO;;;;;;EAMP,MAAM;;;;;;EAMN,QAAQ;;;;;;EAMR,MAAM;;;;;;EAMN,OAAO;;;;;;EAMP,OAAO;;;;;;;EAOP,QAAQ,OAAO;;;;EAIf,KAAK,OAAO;CACb;;;;;;;ECnEA,IAAI,IAAI;EACR,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;EACZ,IAAI,IAAI,IAAI;;;;;;;;;;;;;;EAgBZ,OAAO,UAAU,SAAU,KAAK,SAAS;GACvC,UAAU,WAAW,CAAC;GACtB,IAAI,OAAO,OAAO;GAClB,IAAI,SAAS,YAAY,IAAI,SAAS,GACpC,OAAO,MAAM,GAAG;QACX,IAAI,SAAS,YAAY,SAAS,GAAG,GAC1C,OAAO,QAAQ,OAAO,QAAQ,GAAG,IAAI,SAAS,GAAG;GAEnD,MAAM,IAAI,MACR,0DACE,KAAK,UAAU,GAAG,CACtB;EACF;;;;;;;;EAUA,SAAS,MAAM,KAAK;GAClB,MAAM,OAAO,GAAG;GAChB,IAAI,IAAI,SAAS,KACf;GAEF,IAAI,QAAQ,mIAAmI,KAC7I,GACF;GACA,IAAI,CAAC,OACH;GAEF,IAA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;GACV,MAAM,IAAI;GACV,MAAM,IAAI;EACE,CAAC;CACxB;;;CC/FA,SAAgB,uBAAuB,SAAmC;EACzE,OAAO,yBACN,UACC,EACC,WAAW,yBAAyB,IACjC,mBAAmB,SAAS,mBAAmB,IAC/C,iBACJ,GACA,OACD,CACD;CACD;;CAGA,SAAS,2BAA2B;EAKnC,IAAI,QAAQ,SAAS,SAAS,cAAc,QAAQ,SAAS,QAC5D,OAAO;EAIR,IAAI,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,uBAAuB,GACpE,OAAO;EAKR,OAEC,UAAU,iBAAiB,OAAO,oBAGlC,QAAQ,SAAS,WAEhB,QAAQ,SAAS,aAAa,QAAQ,SAAS,SAG/C,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,gBAAgB,KAAK,OAAO,SAAS,OAAO,IAAI,EAAE,KAAK,MAElG,WAAW,WAAW,YAAY,CAAC,CAAC,MAAM,oBAAoB;CAEhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "standard-log-color",
3
- "version": "13.3.1",
3
+ "version": "13.3.2",
4
4
  "description": "Color console reporter for `standard-log`",
5
5
  "homepage": "https://github.com/cyberuni/standard-log/tree/main/packages/color",
6
6
  "bugs": {
@@ -59,17 +59,17 @@
59
59
  "unpartial": "^1.0.8"
60
60
  },
61
61
  "devDependencies": {
62
- "@repobuddy/vitest": "^2.3.0",
62
+ "@repobuddy/vitest": "^3.0.0",
63
63
  "@types/node": "^24.0.0",
64
64
  "@types/supports-color": "^8.1.3",
65
- "assertron": "^11.6.0",
65
+ "assertron": "^11.7.2",
66
66
  "depcheck": "^1.4.3",
67
67
  "rimraf": "^6.0.0",
68
- "satisfier": "^5.4.4",
69
- "standard-log": "13.3.1",
68
+ "satisfier": "^5.4.6",
69
+ "standard-log": "13.3.2",
70
70
  "tsdown": "^0.23.0",
71
71
  "typescript": "^7.0.2",
72
- "vitest": "^4.1.0"
72
+ "vitest": "^5.0.0"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "standard-log": ">=11.0.1"