{"ast":null,"code":"'use strict';\n\nlet Container = require('./container');\nlet LazyResult, Processor;\nclass Document extends Container {\n  constructor(defaults) {\n    // type needs to be passed to super, otherwise child roots won't be normalized correctly\n    super({\n      type: 'document',\n      ...defaults\n    });\n    if (!this.nodes) {\n      this.nodes = [];\n    }\n  }\n  toResult(opts = {}) {\n    let lazy = new LazyResult(new Processor(), this, opts);\n    return lazy.stringify();\n  }\n}\nDocument.registerLazyResult = dependant => {\n  LazyResult = dependant;\n};\nDocument.registerProcessor = dependant => {\n  Processor = dependant;\n};\nmodule.exports = Document;\nDocument.default = Document;","map":{"version":3,"names":["Container","require","LazyResult","Processor","Document","constructor","defaults","type","nodes","toResult","opts","lazy","stringify","registerLazyResult","dependant","registerProcessor","module","exports","default"],"sources":["C:/Users/user/Desktop/000newport/node_modules/postcss/lib/document.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\n\nlet LazyResult, Processor\n\nclass Document extends Container {\n  constructor(defaults) {\n    // type needs to be passed to super, otherwise child roots won't be normalized correctly\n    super({ type: 'document', ...defaults })\n\n    if (!this.nodes) {\n      this.nodes = []\n    }\n  }\n\n  toResult(opts = {}) {\n    let lazy = new LazyResult(new Processor(), this, opts)\n\n    return lazy.stringify()\n  }\n}\n\nDocument.registerLazyResult = dependant => {\n  LazyResult = dependant\n}\n\nDocument.registerProcessor = dependant => {\n  Processor = dependant\n}\n\nmodule.exports = Document\nDocument.default = Document\n"],"mappings":"AAAA,YAAY;;AAEZ,IAAIA,SAAS,GAAGC,OAAO,CAAC,aAAa,CAAC;AAEtC,IAAIC,UAAU,EAAEC,SAAS;AAEzB,MAAMC,QAAQ,SAASJ,SAAS,CAAC;EAC/BK,WAAWA,CAACC,QAAQ,EAAE;IACpB;IACA,KAAK,CAAC;MAAEC,IAAI,EAAE,UAAU;MAAE,GAAGD;IAAS,CAAC,CAAC;IAExC,IAAI,CAAC,IAAI,CAACE,KAAK,EAAE;MACf,IAAI,CAACA,KAAK,GAAG,EAAE;IACjB;EACF;EAEAC,QAAQA,CAACC,IAAI,GAAG,CAAC,CAAC,EAAE;IAClB,IAAIC,IAAI,GAAG,IAAIT,UAAU,CAAC,IAAIC,SAAS,CAAC,CAAC,EAAE,IAAI,EAAEO,IAAI,CAAC;IAEtD,OAAOC,IAAI,CAACC,SAAS,CAAC,CAAC;EACzB;AACF;AAEAR,QAAQ,CAACS,kBAAkB,GAAGC,SAAS,IAAI;EACzCZ,UAAU,GAAGY,SAAS;AACxB,CAAC;AAEDV,QAAQ,CAACW,iBAAiB,GAAGD,SAAS,IAAI;EACxCX,SAAS,GAAGW,SAAS;AACvB,CAAC;AAEDE,MAAM,CAACC,OAAO,GAAGb,QAAQ;AACzBA,QAAQ,CAACc,OAAO,GAAGd,QAAQ"},"metadata":{},"sourceType":"script","externalDependencies":[]}