"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./commonUtil.js");function S(r,s,l){const i=new Set(r);return r.filter(u=>{const t=s[u],n=t?t.parent:null,e=t?t.children:null;return l===f.SHOW_CHILD?!(e&&e.some(o=>o.key&&i.has(o.key))):!(n&&!n.node.disabled&&i.has(n.key))})}function p(r,s,l,i=!1){let u=s;const t=[];for(let n=0;n<r.length;n+=1){const e=r[n],o=u?.findIndex(d=>{const c=d[l.value];return i?String(c)===String(e):c===e}),a=o!==-1?u?.[o]:null;t.push({value:a?.[l.value]??e,index:o,option:a}),u=a?.[l.children]}return t}exports.formatStrategyValues=S;exports.toPathOptions=p;
