import{M7 as k,Z6 as X,b7 as $,q7 as Y}from"./cli-0.5.4-cbq01zg3.mjs";import{fda as x}from"./cli-0.5.4-7grzwf6q.mjs";import{Zma as Z}from"./cli-0.5.4-aacw1src.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{x();$();k()});
export{H as Y,M as Z};
