import{t as e}from"./truncate--NEd5u1m.mjs";const t=(e,t)=>{let n=e.split(`.`),r=n.pop()||``;return`${n.join(`.`).slice(0,t)}...${r}`},n=(n,r)=>{if(n.length<=r)return n;let[i,...a]=n.split(`/`),o=e(a.join(`/`),r-8);return`${t(i,r-o.length)}/${o}`};export{n as t};
//# sourceMappingURL=smart-truncate-rnnVmdlf.mjs.map