import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{Dn as t,sn as n}from"./vendor-Dcerr41Y.js";import{h as r,m as i}from"./ws-DjAvcWfg.js";function a(e){let t=[];e?.id&&t.push(String(e.id));let n=e?.attributes?.playParams?.catalogId??e?.relationships?.catalog?.data?.[0]?.id;return n&&t.push(String(n)),t}function o(e,n){let i=r();return t(()=>{let t=e();if(!t)return;let r=n()?.id;for(let e of a(t)){let t=i.resolveTrackContributor(r,e);if(!t)continue;let n=i.getSocialProfile(t);return{id:t,name:n?.attributes?.name??n?.attributes?.handle??``}}})}var s=e((()=>{n(),i()}));export{o as n,s as t};