import{h as e}from"./index-_dGt2VRU.js";async function t(t,n,r){return Promise.allSettled(n.map(async n=>{let i=await e({...t,director:n});try{return await r({client:i,director:n})}finally{i.disconnect()}}))}function n(e){return e.filter(e=>e.status===`fulfilled`).map(e=>e.value)}function r(e,t,n){return e.flatMap((e,r)=>e.status===`rejected`?[{director:t[r],message:e.reason?.message??n}]:[])}export{n,t as r,r as t};