import{mh as R,oh as y,ph as v}from"./cli-0.5.12-d158qgn4.mjs";import{YX as E,_V as c,tX as K}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as O,BZ as N,CZ as M,DZ as U}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as G}from"./cli-0.5.12-w3hy6c60.mjs";import{Maa as L,eba as b}from"./cli-0.5.12-g4wb8mj2.mjs";import{Uca as Z,eda as W}from"./cli-0.5.12-vp5smcs1.mjs";import{ffa as p}from"./cli-0.5.12-2jxq8gnm.mjs";import{Yna as F,aoa as j}from"./cli-0.5.12-xzeb7mtb.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 Mf,r as Nf,n as Of,l as Pf};
