function i(t,r){return t.length<=r?t:`${t.slice(0,r)}...`}function a(t){return t==null||t===""}function u(t,r=2){if(t=Number(t),Number.isNaN(t)||t===0)return"0 Bytes";const e=1024,o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(t)/Math.log(e));return`${Number.parseFloat((t/e**n).toString()).toFixed(r)}${o[n]}`}function l(t){let r=t.replace(/ /g,"&nbsp;");return r=r.replace(/\t/g,"&emsp;"),r=r.replace(/\n/g,"<br />"),r}export{l as a,u as f,a as i,i as t};
