function r(o){let n,d,s=new Promise((e,v)=>{n=e,d=v}),i=e=>{i=l=null,d(e),o?.onRejected?.(e),o?.onFulfilled?.()},l=e=>{l=i=null,n(e),o?.onResolved?.(e),o?.onFulfilled?.()};return{isFulfilled:()=>l===i,promise:s,reject:e=>i?.(e),resolve:e=>l?.(e)}}export{r as a};
