import{__require as e}from"./container.mjs";var r,s;function t(){if(s)return r;s=1;let t,o,i=e();class n extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,s){let t=super.normalize(e);if(r)if("prepend"===s)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let e of t)e.raws.before=r.raws.before;return t}removeChild(e,r){let s=this.index(e);return!r&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new t(new o,this,e).stringify()}}return n.registerLazyResult=e=>{t=e},n.registerProcessor=e=>{o=e},r=n,n.default=n,i.registerRoot(n),r}export{t as __require};