import{v as d,i as n,f as a,e as l,k as f,g as h}from"./app-JmgyQoR0.js";async function m(){const{canceled:c,result:s}=await d({title:n.ts.usernameOrUserId});if(c)return;const t=e=>{f(`/user-info/${e.id}`)},i=a("users/show",l.parse(s)),u=a("users/show",{userId:s});let r=!1;const o=()=>{r?h({type:"error",text:n.ts.noSuchUser}):r=!0};i.then(t).catch(e=>{e.code==="NO_SUCH_USER"&&o()}),u.then(t).catch(e=>{o()})}export{m as l};
