import{__require as s}from"./document.mjs";import{__require as r}from"./lazy-result.mjs";import{__require as e}from"./no-work-result.mjs";import{__require as t}from"./root.mjs";var o,i;function n(){if(i)return o;i=1;let n=s(),u=r(),p=e(),a=t();class l{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let r=[];for(let e of s)if(!0===e.postcss?e=e():e.postcss&&(e=e.postcss),"object"==typeof e&&Array.isArray(e.plugins))r=r.concat(e.plugins);else if("object"==typeof e&&e.postcssPlugin)r.push(e);else if("function"==typeof e)r.push(e);else{if("object"!=typeof e||!e.parse&&!e.stringify)throw new Error(e+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return r}process(s,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new u(this,s,r):new p(this,s,r)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return o=l,l.default=l,a.registerProcessor(l),n.registerProcessor(l),o}export{n as __require};