import t from"../../../utils/arrayEqual.mjs";function e(e){return function(t){const e=new Set(t.flat());return e.delete("."),[...e]}(e).filter(n=>!function(e,n){const r=e.map(t=>{const e=[];let r=t.indexOf(n);for(;-1!==r;)e.push(r),r=t.indexOf(n,r+1);return e});for(let e=0;e<r.length;e++)for(let n=e+1;n<r.length;n++){const f=r[e],l=r[n];if(!(f&&0===f.length||l&&0===l.length||t(f,l)))return!1}return!0}(e,n))}export{e as default};