import{jh as R,lh as y,mh as v}from"./cli-0.5.3-q7rc4gf8.mjs";import{KW as K,nX as E,pV as c}from"./cli-0.5.3-842pf3t4.mjs";import{MY as O,NY as N,OY as M,PY as U}from"./cli-0.5.3-vqmxwet2.mjs";import{QY as G}from"./cli-0.5.3-rch86nhn.mjs";import{Faa as L,Yaa as b}from"./cli-0.5.3-t65dek0m.mjs";import{Tca as Z,dda as W}from"./cli-0.5.3-9bdwhdys.mjs";import{Nea as p}from"./cli-0.5.3-9vh3vpap.mjs";import{Tma as F,Xma as j}from"./cli-0.5.3-0df3r78b.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
export{f as Vf,r as Wf,n as Xf,l as Yf};
