import{computed as e}from"vue";function t(e,n,r,i,a,o){let s=[];s.push({record:e,indent:n,index:o});let c=a(e),l=i?.has(c);if(e&&Array.isArray(e[r])&&l)for(let o=0;o<e[r].length;o+=1){let c=t(e[r][o],n+1,r,i,a,o);s.push(...c)}return s}function n(n,r,i,a){return e(()=>{let e=r.value,o=i.value,s=n.value;if(o?.size){let n=[];for(let r=0;r<s?.length;r+=1){let i=s[r];n.push(...t(i,0,e,o,a.value,r))}return n}return s?.map((e,t)=>({record:e,indent:0,index:t}))})}export{n as default};