const t=(t,B=2)=>{if(0===t)return"0 Bytes";const a=B<0?0:B,e=Math.floor(Math.log(t)/Math.log(1024));return`${parseFloat((t/1024**e).toFixed(a))} ${["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][e]}`},B=(t,B=document)=>[].slice.call(B.querySelectorAll(t)),a=(t,B=document)=>B.querySelector(t);export{a,t as f,B as q}