import{y as s}from"./vendor-utils-_C9URqjS.js";import{r as l}from"./base32-Cx5Qjcq5.js";import{bi as i,_ as w,bj as o}from"./index-CgSpL7jz.js";var c=l();function a(e,r,t,p=!1){if(e&&e.startsWith(i)){const n=window.env.apiPrefix||"/";if(t){if(p&&window.blocklet?.serverDid){const d=`https://${c.encode(window.blocklet?.serverDid)}.${w}`;return`${s(d,o,r,e.replace(i,""))}?imageFilter=resize&w=64&h=64`}return`${s(n,o,e.replace(i,""))}?imageFilter=resize&w=64&h=64`}return`${s(n,o,r,e.replace(i,""))}?imageFilter=resize&w=64&h=64`}return e}const m=(e,r)=>e.nodeOwner&&e.nodeOwner.did===r,R=(e,r)=>e&&e.did===r;export{R as a,m as i,a as p};
