import"./commonUtil.mjs";function e(e,t,n){let r=new Set(e);return e.filter(e=>{let i=t[e],a=i?i.parent:null,o=i?i.children:null;return n===`SHOW_CHILD`?!(o&&o.some(e=>e.key&&r.has(e.key))):!(a&&!a.node.disabled&&r.has(a.key))})}function t(e,t,n,r=!1){let i=t,a=[];for(let t=0;t<e.length;t+=1){let o=e[t],s=i?.findIndex(e=>{let t=e[n.value];return r?String(t)===String(o):t===o}),c=s===-1?null:i?.[s];a.push({value:c?.[n.value]??o,index:s,option:c}),i=c?.[n.children]}return a}export{e as formatStrategyValues,t as toPathOptions};