import{E as g,l as v,b as s}from"./jwt-decode.esm-CX61wVx3.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[o]="76db4be8-0191-4f4c-a5d1-e3525366e4a3",l._sentryDebugIdIdentifier="sentry-dbid-76db4be8-0191-4f4c-a5d1-e3525366e4a3")}catch{}})();const p=(l,o={})=>{const e=g({loading:!0,result:null,error:null});let n=null,u=0;const d=(r,t)=>(t===u&&(e.value={loading:!1,result:r,error:null}),r),c=(r,t)=>{t===u&&r.name!=="AbortError"&&(e.value={loading:!1,result:o.keepPreviousOnError?e.value.result:null,error:r})},a=async()=>{n&&n.abort(),n=new AbortController;const r=++u;return e.value={loading:!0,result:e.value.result,error:null},l().then(t=>d(t,r)).catch(t=>c(t,r))};a(),v(()=>{n&&n.abort()});const f=s(()=>e.value.loading),i=s(()=>e.value.result),b=s(()=>e.value.error);return{loading:f,result:i,error:b,refetch:a}};export{p as a};
//# sourceMappingURL=asyncComputed-CygEe1bN.js.map
