import e from"../../../../_virtual/index20.mjs";function s(e){return t(e),e.walk(t),a(e),e}function t(s){e.isComment(s)?s.remove():(s.rawSpaceBefore="",s.rawSpaceAfter="",s.spaces.before="",s.spaces.after="",e.isAttribute(s)&&(delete s.spaces.insensitive,delete s.spaces.operator,delete s.spaces.attribute,delete s.spaces.value,delete s.raws.spaces))}function a(s){if(e.isContainer(s)&&(s.each(a),e.isRoot(s)||e.isPseudoClass(s)||e.isPseudoElement(s))){const e=s.nodes.map(e=>({node:e,string:e.toString()}));e.sort((e,s)=>e.string.localeCompare(s.string));const t=new Set,a=new Map;e.forEach((e,s)=>{t.has(e.string)||(t.add(e.string),a.set(e.node,s))}),s.nodes=s.nodes.filter(e=>a.has(e)).sort((e,s)=>a.get(e)-a.get(s))}}export{s as default};