import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{dn as t,jn as n}from"./vendor-Dnfj1twE.js";import{or as r,sr as i}from"./ws-Dl8XkIy4.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,t){let r=i();return n(()=>{let n=e();if(!n)return;let i=t()?.id;for(let e of a(n)){let t=r.resolveTrackContributor(i,e);if(!t)continue;let n=r.getSocialProfile(t);return{id:t,name:n?.attributes?.name??n?.attributes?.handle??``}}})}var s=e((()=>{t(),r()}));export{o as n,s as t};