"use strict";const e=/\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)/gi,s={dark:"48842621",light:"70318723"},prefersInterfaceColorDepthReplacer=(e,r)=>`(color: ${s[r.toLowerCase()]})`,creator=s=>{const r=Object.assign({preserve:!0},s);return{postcssPlugin:"postcss-prefers-color-scheme",prepare(){const s=new WeakSet;return{AtRule:o=>{if(s.has(o))return;if("media"!==o.name.toLowerCase())return;const{params:t}=o,a=t.replace(e,prefersInterfaceColorDepthReplacer);t!==a&&(s.add(o),o.cloneBefore({params:a}),r.preserve||o.remove())}}}}};creator.postcss=!0,module.exports=creator;
