: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
LazyResult.default = LazyResult
Root.registerLazyResult(LazyResult)
Document.registerLazyResult(LazyResult)
return list.split(string, [','], true)
let spaces = [' ', '\n', '\t']
return list.split(string, spaces)
split(string, separators, last) {
for (let letter of string) {
} else if (letter === '\\') {
if (letter === prevQuote) {
} else if (letter === '"' || letter === "'") {
} else if (letter === '(') {
} else if (letter === ')') {
if (separators.includes(letter)) split = true
if (current !== '') array.push(current.trim())
if (last || current !== '') array.push(current.trim())
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
let { SourceMapConsumer, SourceMapGenerator } = __webpack_require__(1866)
let { dirname, relative, resolve, sep } = __webpack_require__(197)
let { pathToFileURL } = __webpack_require__(2739)
let Input = __webpack_require__(5380)
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)
let pathAvailable = Boolean(dirname && resolve && relative && sep)
constructor(stringify, root, opts, cssString) {
this.stringify = stringify
this.mapOpts = opts.map || {}
this.originalCSS = cssString
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute
this.memoizedFileURLs = new Map()
this.memoizedPaths = new Map()
this.memoizedURLs = new Map()
'data:application/json;base64,' + this.toBase64(this.map.toString())
} else if (typeof this.mapOpts.annotation === 'string') {
content = this.mapOpts.annotation
} else if (typeof this.mapOpts.annotation === 'function') {
content = this.mapOpts.annotation(this.opts.to, this.root)
content = this.outputFile() + '.map'
if (this.css.includes('\r\n')) eol = '\r\n'
this.css += eol + '/*# sourceMappingURL=' + content + ' */'
for (let prev of this.previous()) {
let from = this.toUrl(this.path(prev.file))
let root = prev.root || dirname(prev.file)
if (this.mapOpts.sourcesContent === false) {
map = new SourceMapConsumer(prev.text)
if (map.sourcesContent) {
map.sourcesContent = null
this.map.applySourceMap(map, from, this.toUrl(this.path(root)))
if (this.mapOpts.annotation === false) return
for (let i = this.root.nodes.length - 1; i >= 0; i--) {
node = this.root.nodes[i]
if (node.type !== 'comment') continue
if (node.text.indexOf('# sourceMappingURL=') === 0) {
this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '')
if (pathAvailable && sourceMapAvailable && this.isMap()) {
return this.generateMap()
this.stringify(this.root, i => {
} else if (this.previous().length === 1) {
let prev = this.previous()[0].consumer()
prev.file = this.outputFile()
this.map = SourceMapGenerator.fromSourceMap(prev, {
ignoreInvalidMapping: true
this.map = new SourceMapGenerator({
ignoreInvalidMapping: true
generated: { column: 0, line: 1 },
original: { column: 0, line: 1 },
? this.toUrl(this.path(this.opts.from))
if (this.isSourcesContent()) this.setSourcesContent()
if (this.root && this.previous().length > 0) this.applyPrevMaps()
if (this.isAnnotation()) this.addAnnotation()
return [this.css, this.map]
this.map = new SourceMapGenerator({
ignoreInvalidMapping: true
let noSource = '<no source>'
generated: { column: 0, line: 0 },
original: { column: 0, line: 0 },
this.stringify(this.root, (str, node, type) => {
if (node && type !== 'end') {
mapping.generated.line = line
mapping.generated.column = column - 1
if (node.source && node.source.start) {
mapping.source = this.sourcePath(node)
mapping.original.line = node.source.start.line
mapping.original.column = node.source.start.column - 1
this.map.addMapping(mapping)
mapping.source = noSource
mapping.original.line = 1
mapping.original.column = 0
this.map.addMapping(mapping)
last = str.lastIndexOf('\n')
column = str.length - last
if (node && type !== 'start') {
let p = node.parent || { raws: {} }
node.type === 'decl' || (node.type === 'atrule' && !node.nodes)
if (!childless || node !== p.last || p.raws.semicolon) {
if (node.source && node.source.end) {
mapping.source = this.sourcePath(node)
mapping.original.line = node.source.end.line
mapping.original.column = node.source.end.column - 1
mapping.generated.line = line
mapping.generated.column = column - 2
this.map.addMapping(mapping)
mapping.source = noSource
mapping.original.line = 1
mapping.original.column = 0
mapping.generated.line = line
mapping.generated.column = column - 1
this.map.addMapping(mapping)
if (typeof this.mapOpts.annotation !== 'undefined') {
return this.mapOpts.annotation
if (this.previous().length) {
return this.previous().some(i => i.annotation)
if (typeof this.mapOpts.inline !== 'undefined') {
return this.mapOpts.inline
let annotation = this.mapOpts.annotation
if (typeof annotation !== 'undefined' && annotation !== true) {
if (this.previous().length) {
return this.previous().some(i => i.inline)
if (typeof this.opts.map !== 'undefined') {
return this.previous().length > 0
if (typeof this.mapOpts.sourcesContent !== 'undefined') {
return this.mapOpts.sourcesContent
if (this.previous().length) {
return this.previous().some(i => i.withContent())
return this.path(this.opts.to)
} else if (this.opts.from) {
return this.path(this.opts.from)
if (this.mapOpts.absolute) return file
if (file.charCodeAt(0) === 60 /* `<` */) return file
if (/^\w+:\/\//.test(file)) return file
let cached = this.memoizedPaths.get(file)
if (cached) return cached
let from = this.opts.to ? dirname(this.opts.to) : '.'
if (typeof this.mapOpts.annotation === 'string') {
from = dirname(resolve(from, this.mapOpts.annotation))
let path = relative(from, file)
this.memoizedPaths.set(file, path)
if (!this.previousMaps) {
if (node.source && node.source.input.map) {
let map = node.source.input.map
if (!this.previousMaps.includes(map)) {
this.previousMaps.push(map)
let input = new Input(this.originalCSS, this.opts)
if (input.map) this.previousMaps.push(input.map)
let from = node.source.input.from
if (from && !already[from]) {
let fromUrl = this.usesFileUrls
: this.toUrl(this.path(from))
this.map.setSourceContent(fromUrl, node.source.input.css)
let from = this.opts.from
? this.toUrl(this.path(this.opts.from))
this.map.setSourceContent(from, this.css)
return this.toUrl(this.mapOpts.from)
} else if (this.usesFileUrls) {
return this.toFileUrl(node.source.input.from)
return this.toUrl(this.path(node.source.input.from))
return Buffer.from(str).toString('base64')
return window.btoa(unescape(encodeURIComponent(str)))
let cached = this.memoizedFileURLs.get(path)
if (cached) return cached
let fileURL = pathToFileURL(path).toString()
this.memoizedFileURLs.set(path, fileURL)
'`map.absolute` option is not available in this PostCSS build'
let cached = this.memoizedURLs.get(path)
if (cached) return cached
path = path.replace(/\\/g, '/')
let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent)
this.memoizedURLs.set(path, url)
module.exports = MapGenerator
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
let MapGenerator = __webpack_require__(1670)
let stringify = __webpack_require__(633)
let warnOnce = __webpack_require__(3122)
let parse = __webpack_require__(4295)
const Result = __webpack_require__(9055)
constructor(processor, css, opts) {
this._processor = processor
this.result = new Result(this._processor, root, this._opts)
Object.defineProperty(this.result, 'root', {
let map = new MapGenerator(str, root, this._opts, css)
let [generatedCSS, generatedMap] = map.generate()
this.result.css = generatedCSS
this.result.map = generatedMap
this.result.css = map.css