import{parseCommaSeparatedListOfComponentValues as s,stringify as e}from"@csstools/css-parser-algorithms";import{tokenize as r}from"@csstools/css-tokenizer";const t=/^container$/i,creator=o=>{const a=Object.assign({preserve:!1},o);return{postcssPlugin:"postcss-container-rule-prelude-list",AtRule(o){if(!t.test(o.name))return;if(!o.params.includes(","))return;const c=s(r({css:o.params})).map(s=>e([s]));c.length<=1||(c.forEach(s=>{o.cloneBefore({params:s.trim()})}),a.preserve||o.remove())}}};creator.postcss=!0;export{creator as default,creator as"module.exports"};
