async function a(e,n){let r=await fetch(e,n);if(!r.ok){let t=new Error("An error occurred while fetching the data.");try{t.info=(await r.json()).error}catch{t.info=await r.text()}throw t.status=r.status,t}return r.json()}export{a};
