import{o as e}from"./chunk-CNMia1zD.js";import{t}from"./dayjs.min-BlRU_WWw.js";var n=e(t(),1),r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},o={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:i((...e)=>{},`trace`),debug:i((...e)=>{},`debug`),info:i((...e)=>{},`info`),warn:i((...e)=>{},`warn`),error:i((...e)=>{},`error`),fatal:i((...e)=>{},`fatal`)},c=i(function(e=`fatal`){let t=o.fatal;typeof e==`string`?e.toLowerCase()in o&&(t=o[e]):typeof e==`number`&&(t=e),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},t<=o.fatal&&(s.fatal=console.error?console.error.bind(console,l(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,l(`FATAL`))),t<=o.error&&(s.error=console.error?console.error.bind(console,l(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,l(`ERROR`))),t<=o.warn&&(s.warn=console.warn?console.warn.bind(console,l(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,l(`WARN`))),t<=o.info&&(s.info=console.info?console.info.bind(console,l(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,l(`INFO`))),t<=o.debug&&(s.debug=console.debug?console.debug.bind(console,l(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,l(`DEBUG`))),t<=o.trace&&(s.trace=console.debug?console.debug.bind(console,l(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,l(`TRACE`)))},`setLogLevel`),l=i(e=>`%c${(0,n.default)().format(`ss.SSS`)} : ${e} : `,`format`);export{c as i,i as n,s as r,a as t};