import{WY as K,YY as Z}from"./cli-0.5.4-5shjmmkz.mjs";import{$Y as Y,ZY as J}from"./cli-0.5.4-zb412kkm.mjs";import{B3 as X,b3 as D,f0 as B,g3 as F,h3 as G,k0 as W}from"./cli-0.5.4-jqt00ywx.mjs";import{F5 as z,X5 as V}from"./cli-0.5.4-j7kkqxv6.mjs";import{Lea as y,Mea as Q}from"./cli-0.5.4-e822fzaq.mjs";import{Zma as N}from"./cli-0.5.4-aacw1src.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
export{P as nh,_ as oh};
