import e from"../../../../_virtual/index20.mjs";const{isComment:n}=e;function t(e){const t=e.nodes.findIndex(e=>!n(e)),o=e.nodes.findLastIndex(e=>!n(e)),r=e.nodes[t];let d=e.nodes[o];if(!r||!d){const n=e.toString().trim(),t=e.sourceIndex??0;return{selector:n,index:t,endIndex:t+n.length}}d=d.rawSpaceAfter.length?d.clone():d,d.rawSpaceAfter="";let s=e.nodes.slice(t,o).map(String).join("");s+=d.toString(),s=s.trim();const i=r.sourceIndex??0;return{selector:s,index:i,endIndex:i+s.length}}export{t as default};