"use strict";Object.defineProperty(exports, "__esModule", {value: true});


var _chunkO4SGVAEBcjs = require('./chunk-O4SGVAEB.cjs');



var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');

// src/logger/get-log-level.ts
_chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
var getLogLevel = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (label) => {
  switch (label) {
    case "all":
      return _chunkO4SGVAEBcjs.LogLevel.ALL;
    case "trace":
      return _chunkO4SGVAEBcjs.LogLevel.TRACE;
    case "debug":
      return _chunkO4SGVAEBcjs.LogLevel.DEBUG;
    case "info":
      return _chunkO4SGVAEBcjs.LogLevel.INFO;
    case "warn":
      return _chunkO4SGVAEBcjs.LogLevel.WARN;
    case "error":
      return _chunkO4SGVAEBcjs.LogLevel.ERROR;
    case "fatal":
      return _chunkO4SGVAEBcjs.LogLevel.FATAL;
    case "silent":
      return _chunkO4SGVAEBcjs.LogLevel.SILENT;
    default:
      return _chunkO4SGVAEBcjs.LogLevel.INFO;
  }
}, "getLogLevel");
var getLogLevelLabel = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (logLevel = _chunkO4SGVAEBcjs.LogLevel.INFO) => {
  if (logLevel >= _chunkO4SGVAEBcjs.LogLevel.ALL) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.ALL;
  }
  if (logLevel >= _chunkO4SGVAEBcjs.LogLevel.TRACE) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.TRACE;
  }
  if (logLevel >= _chunkO4SGVAEBcjs.LogLevel.DEBUG) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.DEBUG;
  }
  if (logLevel >= _chunkO4SGVAEBcjs.LogLevel.INFO) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.INFO;
  }
  if (logLevel >= _chunkO4SGVAEBcjs.LogLevel.WARN) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.WARN;
  }
  if (logLevel >= _chunkO4SGVAEBcjs.LogLevel.ERROR) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.ERROR;
  }
  if (logLevel >= _chunkO4SGVAEBcjs.LogLevel.FATAL) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.FATAL;
  }
  if (logLevel <= _chunkO4SGVAEBcjs.LogLevel.SILENT) {
    return _chunkO4SGVAEBcjs.LogLevelLabel.SILENT;
  }
  return _chunkO4SGVAEBcjs.LogLevelLabel.INFO;
}, "getLogLevelLabel");
var isVerbose = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (label = _chunkO4SGVAEBcjs.LogLevelLabel.SILENT) => {
  const logLevel = typeof label === "string" ? getLogLevel(label) : label;
  return logLevel >= _chunkO4SGVAEBcjs.LogLevel.DEBUG;
}, "isVerbose");





exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose;
