import"./index-DXEGVToZ.js";import{Z as l,p as f}from"./@vue-TMcuEboY.js";function d(a){const s=l({}),e=Object.keys(a),i=e.map(o=>{const t=a[o];return s[o]=[],()=>t.api(f(t.params)||{})}),r=async()=>{(await Promise.allSettled(i.map(t=>t()))).forEach((t,p)=>{const n=e[p];if(t.status=="fulfilled"){const{transformData:c}=a[n],u=c?c(t.value):t.value;s[n]=u}})};return r(),{optionsData:s,refresh:r}}export{d as u};
