import e from"../../../../_virtual/index22.mjs";import o from"../../../../_virtual/index20.mjs";import t from"./getRuleSelector.mjs";import r from"./isStandardSyntaxSelector.mjs";import s from"./parseSelector.mjs";function n(n,l){const i=s(t(n),l,n);if(!i)return[];const m=[];for(const t of i.nodes){const i=t.toString(),c=e(i,n);if(1!==c.length||c[0]!==i)for(const e of c){if(!r(e))return[];const o=s(e,l,n);o&&m.push({selector:t,resolvedSelectors:o,nested:!0})}else m.push({selector:t,resolvedSelectors:o.root({value:"",nodes:[t]}),nested:!1})}return m}export{n as default};