function e(e,t=`An unexpected error occurred`){if(!e||typeof e!=`object`)return t;let n=e,r=n.data??n.response?.data;if(r?.errors){let e=r.errors.non_field_errors;if(e?.length)return e[0];let t=Object.values(r.errors)[0];if(t?.length)return t[0]}return r?.detail?r.detail:r?.message?r.message:n.message?n.message:t}export{e as t};