const a=({firstname:t,lastname:r,username:e,email:n}={})=>e||(t?`${t} ${r??""}`.trim():n??""),c=async t=>{if(!t||!t.email)return null;try{return await i(t.email)}catch{return null}},s=t=>[...new Uint8Array(t)].map(r=>r.toString(16).padStart(2,"0")).join(""),i=async t=>{const r=new TextEncoder().encode(t),e=await crypto.subtle.digest("SHA-256",r);return s(e)};export{a as g,c as h};
