function h(t){const d=t.operations||{},c=t.channels||{},a=Object.keys(c),r={},e={};for(const[n,s]of Object.entries(c))s.address&&(r[s.address]=n);for(const[n,{channel:s}]of Object.entries(d)){if(!s?.address)continue;const o=r[s.address];!o||!a.includes(o)||(e[o]||(e[o]=[]),e[o].push(n))}const i=a.filter(n=>!e[n]);for(const n of i)e[n]=[];return e}export{h as mapChannelToOperations};
