let e=require("vue");function t(t){let n=(0,e.ref)(0),r=(0,e.shallowRef)();return(0,e.watchEffect)(()=>{let e=new Map,i=0,a=t.value||{};for(let t in a)if(Object.prototype.hasOwnProperty.call(a,t)){let n=a[t],{level:r}=n,o=e.get(r);o||(o=new Set,e.set(r,o)),o.add(n),i=Math.max(i,r)}n.value=i,r.value=e}),{maxLevel:n,levelEntities:r}}exports.default=t;