"use strict";const d=require("./container.js");let a=d,n,f;class s extends a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,r){let o=this.index(e);return!r&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(e)}normalize(e,r,o){let i=super.normalize(e);if(r){if(o==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let l of i)l.raws.before=r.raws.before}return i}toResult(e={}){return new n(new f,this,e).stringify()}}s.registerLazyResult=t=>{n=t};s.registerProcessor=t=>{f=t};var h=s;s.default=s;module.exports=h;
//# sourceMappingURL=root.js.map
