import{b as n,z as d,A as u}from"./lodash-ZyeDnt0e.js";const f=["user","repository","default"];function i(o,s){return n(Object.values(d(s,o)),e=>{if(e.length===1)return e;const t=u(e,({type:r})=>f.indexOf(r));return t.map((r,a)=>a===0?r:{...r,shadowedBy:t[a-1].type})})}export{i as a};
