import{u as i}from"./account-C850CBTF.js";async function r(a,t){const o=a,p=await(await fetch(o)).blob();try{if(!t){const n=new URL(o).pathname.split("/");n.length>0&&(t=n[n.length-1]||t)}}catch{}if(!t.includes(".")){const n={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":".xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":".pptx","application/msword":".doc","application/vnd.ms-excel":".xls","application/vnd.ms-powerpoint":".ppt","text/plain":".txt","application/pdf":".pdf"}[p.type]||".bin";t=t+n}const s=new FormData;return console.log(t),s.append("file",p,t),await i(s)}export{r as s};
