import{a as e}from"./chunk-TX7AAHER.js";var c=(...t)=>async()=>{if(t.length===0)throw new e("No providers in chain");let o;for(let n of t)try{return await n()}catch(r){if(o=r,r?.tryNextLink)continue;throw r}throw o};export{c as a};
