import{a}from"./chunk-FKLXONKR.mjs";var h=(e,n)=>{let s=e.split("."),t=s.pop()||"",r=s.join("."),o=3;return r.length+t.length+1<=n?`${r}.${t}`:n<=o+t.length+1?`${r.slice(0,o)}.${t}`:`${a(r,n-t.length-1)}${r.slice(-2)}.${t}`},p=(e,n)=>{if(e.length<=n)return e;let[s,...t]=e.split("/"),r=t.join("/"),c=Math.max(12,Math.floor(n/2)),i=h(s,c),m=Math.max(0,n-i.length-1),u=a(r,m);return`${i}/${u}`};export{p as a};
