@swissquote/crafty-preset-lightningcss 1.26.0 → 1.27.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,20 +167,7 @@ async function loader(content, map, meta) {
167
167
  });
168
168
  }
169
169
  }
170
- let isTemplateLiteralSupported = false;
171
- if (
172
- // eslint-disable-next-line no-underscore-dangle
173
- this._compilation &&
174
- // eslint-disable-next-line no-underscore-dangle
175
- this._compilation.options &&
176
- // eslint-disable-next-line no-underscore-dangle
177
- this._compilation.options.output &&
178
- // eslint-disable-next-line no-underscore-dangle
179
- this._compilation.options.output.environment &&
180
- // eslint-disable-next-line no-underscore-dangle
181
- this._compilation.options.output.environment.templateLiteral) {
182
- isTemplateLiteralSupported = true;
183
- }
170
+ const isTemplateLiteralSupported = (0, _utils.supportTemplateLiteral)(this);
184
171
  const importCode = (0, _utils.getImportCode)(imports, options);
185
172
  let moduleCode;
186
173
  try {
@@ -378,25 +365,32 @@ exports["default"] = void 0;
378
365
  var _postcssValueParser = _interopRequireDefault(__nccwpck_require__(2905));
379
366
  var _utils = __nccwpck_require__(4017);
380
367
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
381
- function parseNode(atRule, key, options) {
382
- // Convert only top-level @import
383
- if (atRule.parent.type !== "root") {
384
- return;
385
- }
368
+ function isIgnoredAfterName(atRule) {
386
369
  if (atRule.raws && atRule.raws.afterName && atRule.raws.afterName.trim().length > 0) {
387
370
  const lastCommentIndex = atRule.raws.afterName.lastIndexOf("/*");
388
371
  const matched = atRule.raws.afterName.slice(lastCommentIndex).match(_utils.WEBPACK_IGNORE_COMMENT_REGEXP);
389
372
  if (matched && matched[2] === "true") {
390
- return;
373
+ return true;
391
374
  }
392
375
  }
376
+ return false;
377
+ }
378
+ function isIgnoredPrevNode(atRule) {
393
379
  const prevNode = atRule.prev();
394
380
  if (prevNode && prevNode.type === "comment") {
395
381
  const matched = prevNode.text.match(_utils.WEBPACK_IGNORE_COMMENT_REGEXP);
396
382
  if (matched && matched[2] === "true") {
397
- return;
383
+ return true;
398
384
  }
399
385
  }
386
+ return false;
387
+ }
388
+ function parseNode(atRule, key, options) {
389
+ // Convert only top-level @import
390
+ if (atRule.parent.type !== "root") {
391
+ return;
392
+ }
393
+ const isIgnored = isIgnoredAfterName(atRule) || isIgnoredPrevNode(atRule);
400
394
 
401
395
  // Nodes do not exists - `@import url('http://') :root {}`
402
396
  if (atRule.nodes) {
@@ -432,10 +426,14 @@ function parseNode(atRule, key, options) {
432
426
  url = isStringValue ? paramsNodes[0].nodes[0].value : _postcssValueParser.default.stringify(paramsNodes[0].nodes);
433
427
  }
434
428
  url = (0, _utils.normalizeUrl)(url, isStringValue);
435
- const {
436
- requestable,
437
- needResolve
438
- } = (0, _utils.isURLRequestable)(url, options);
429
+ let requestable = false;
430
+ let needResolve = false;
431
+ if (!isIgnored) {
432
+ ({
433
+ requestable,
434
+ needResolve
435
+ } = (0, _utils.isURLRequestable)(url, options));
436
+ }
439
437
  let prefix;
440
438
  if (requestable && needResolve) {
441
439
  const queryParts = url.split("!");
@@ -1050,6 +1048,7 @@ exports.shouldUseModulesPlugins = shouldUseModulesPlugins;
1050
1048
  exports.shouldUseURLPlugin = shouldUseURLPlugin;
1051
1049
  exports.sort = sort;
1052
1050
  exports.stringifyRequest = stringifyRequest;
1051
+ exports.supportTemplateLiteral = supportTemplateLiteral;
1053
1052
  exports.syntaxErrorFactory = syntaxErrorFactory;
1054
1053
  exports.warningFactory = warningFactory;
1055
1054
  var _url = __nccwpck_require__(7310);
@@ -2057,6 +2056,27 @@ function syntaxErrorFactory(error) {
2057
2056
  obj.stack = null;
2058
2057
  return obj;
2059
2058
  }
2059
+ function supportTemplateLiteral(loaderContext) {
2060
+ if (loaderContext.environment && loaderContext.environment.templateLiteral) {
2061
+ return true;
2062
+ }
2063
+
2064
+ // TODO remove in the next major release
2065
+ if (
2066
+ // eslint-disable-next-line no-underscore-dangle
2067
+ loaderContext._compilation &&
2068
+ // eslint-disable-next-line no-underscore-dangle
2069
+ loaderContext._compilation.options &&
2070
+ // eslint-disable-next-line no-underscore-dangle
2071
+ loaderContext._compilation.options.output &&
2072
+ // eslint-disable-next-line no-underscore-dangle
2073
+ loaderContext._compilation.options.output.environment &&
2074
+ // eslint-disable-next-line no-underscore-dangle
2075
+ loaderContext._compilation.options.output.environment.templateLiteral) {
2076
+ return true;
2077
+ }
2078
+ return false;
2079
+ }
2060
2080
 
2061
2081
  /***/ }),
2062
2082
 
@@ -4164,12 +4184,12 @@ Comment.default = Comment
4164
4184
  "use strict";
4165
4185
 
4166
4186
 
4167
- let { isClean, my } = __nccwpck_require__(3298)
4168
- let Declaration = __nccwpck_require__(2095)
4169
4187
  let Comment = __nccwpck_require__(9711)
4188
+ let Declaration = __nccwpck_require__(2095)
4170
4189
  let Node = __nccwpck_require__(944)
4190
+ let { isClean, my } = __nccwpck_require__(3298)
4171
4191
 
4172
- let parse, Rule, AtRule, Root
4192
+ let AtRule, parse, Root, Rule
4173
4193
 
4174
4194
  function cleanSource(nodes) {
4175
4195
  return nodes.map(i => {
@@ -4179,11 +4199,11 @@ function cleanSource(nodes) {
4179
4199
  })
4180
4200
  }
4181
4201
 
4182
- function markDirtyUp(node) {
4202
+ function markTreeDirty(node) {
4183
4203
  node[isClean] = false
4184
4204
  if (node.proxyOf.nodes) {
4185
4205
  for (let i of node.proxyOf.nodes) {
4186
- markDirtyUp(i)
4206
+ markTreeDirty(i)
4187
4207
  }
4188
4208
  }
4189
4209
  }
@@ -4317,7 +4337,11 @@ class Container extends Node {
4317
4337
  insertBefore(exist, add) {
4318
4338
  let existIndex = this.index(exist)
4319
4339
  let type = existIndex === 0 ? 'prepend' : false
4320
- let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse()
4340
+ let nodes = this.normalize(
4341
+ add,
4342
+ this.proxyOf.nodes[existIndex],
4343
+ type
4344
+ ).reverse()
4321
4345
  existIndex = this.index(exist)
4322
4346
  for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node)
4323
4347
 
@@ -4358,7 +4382,7 @@ class Container extends Node {
4358
4382
  nodes.value = String(nodes.value)
4359
4383
  }
4360
4384
  nodes = [new Declaration(nodes)]
4361
- } else if (nodes.selector) {
4385
+ } else if (nodes.selector || nodes.selectors) {
4362
4386
  nodes = [new Rule(nodes)]
4363
4387
  } else if (nodes.name) {
4364
4388
  nodes = [new AtRule(nodes)]
@@ -4370,10 +4394,10 @@ class Container extends Node {
4370
4394
 
4371
4395
  let processed = nodes.map(i => {
4372
4396
  /* c8 ignore next */
4373
- if (!i[my]) Container.rebuild(i)
4397
+ if (!i[my] || !i.markClean) Container.rebuild(i)
4374
4398
  i = i.proxyOf
4375
4399
  if (i.parent) i.parent.removeChild(i)
4376
- if (i[isClean]) markDirtyUp(i)
4400
+ if (i[isClean]) markTreeDirty(i)
4377
4401
  if (typeof i.raws.before === 'undefined') {
4378
4402
  if (sample && typeof sample.raws.before !== 'undefined') {
4379
4403
  i.raws.before = sample.raws.before.replace(/\S/g, '')
@@ -4665,37 +4689,70 @@ class CssSyntaxError extends Error {
4665
4689
 
4666
4690
  let css = this.source
4667
4691
  if (color == null) color = pico.isColorSupported
4668
- if (terminalHighlight) {
4669
- if (color) css = terminalHighlight(css)
4670
- }
4671
-
4672
- let lines = css.split(/\r?\n/)
4673
- let start = Math.max(this.line - 3, 0)
4674
- let end = Math.min(this.line + 2, lines.length)
4675
-
4676
- let maxWidth = String(end).length
4677
4692
 
4678
- let mark, aside
4693
+ let aside = text => text
4694
+ let mark = text => text
4695
+ let highlight = text => text
4679
4696
  if (color) {
4680
4697
  let { bold, gray, red } = pico.createColors(true)
4681
4698
  mark = text => bold(red(text))
4682
4699
  aside = text => gray(text)
4683
- } else {
4684
- mark = aside = str => str
4700
+ if (terminalHighlight) {
4701
+ highlight = text => terminalHighlight(text)
4702
+ }
4685
4703
  }
4686
4704
 
4705
+ let lines = css.split(/\r?\n/)
4706
+ let start = Math.max(this.line - 3, 0)
4707
+ let end = Math.min(this.line + 2, lines.length)
4708
+ let maxWidth = String(end).length
4709
+
4687
4710
  return lines
4688
4711
  .slice(start, end)
4689
4712
  .map((line, index) => {
4690
4713
  let number = start + 1 + index
4691
4714
  let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '
4692
4715
  if (number === this.line) {
4716
+ if (line.length > 160) {
4717
+ let padding = 20
4718
+ let subLineStart = Math.max(0, this.column - padding)
4719
+ let subLineEnd = Math.max(
4720
+ this.column + padding,
4721
+ this.endColumn + padding
4722
+ )
4723
+ let subLine = line.slice(subLineStart, subLineEnd)
4724
+
4725
+ let spacing =
4726
+ aside(gutter.replace(/\d/g, ' ')) +
4727
+ line
4728
+ .slice(0, Math.min(this.column - 1, padding - 1))
4729
+ .replace(/[^\t]/g, ' ')
4730
+
4731
+ return (
4732
+ mark('>') +
4733
+ aside(gutter) +
4734
+ highlight(subLine) +
4735
+ '\n ' +
4736
+ spacing +
4737
+ mark('^')
4738
+ )
4739
+ }
4740
+
4693
4741
  let spacing =
4694
4742
  aside(gutter.replace(/\d/g, ' ')) +
4695
4743
  line.slice(0, this.column - 1).replace(/[^\t]/g, ' ')
4696
- return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^')
4744
+
4745
+ return (
4746
+ mark('>') +
4747
+ aside(gutter) +
4748
+ highlight(line) +
4749
+ '\n ' +
4750
+ spacing +
4751
+ mark('^')
4752
+ )
4697
4753
  }
4698
- return ' ' + aside(gutter) + line
4754
+
4755
+ return ' ' + aside(gutter) + highlight(line)
4699
4756
  })
4700
4757
  .join('\n')
4701
4758
  }
@@ -4794,11 +4851,11 @@ Document.default = Document
4794
4851
  "use strict";
4795
4852
 
4796
4853
 
4797
- let Declaration = __nccwpck_require__(2095)
4798
- let PreviousMap = __nccwpck_require__(3487)
4799
- let Comment = __nccwpck_require__(9711)
4800
4854
  let AtRule = __nccwpck_require__(3917)
4855
+ let Comment = __nccwpck_require__(9711)
4856
+ let Declaration = __nccwpck_require__(2095)
4801
4857
  let Input = __nccwpck_require__(5508)
4858
+ let PreviousMap = __nccwpck_require__(3487)
4802
4859
  let Root = __nccwpck_require__(9659)
4803
4860
  let Rule = __nccwpck_require__(6004)
4804
4861
 
@@ -4856,14 +4913,14 @@ fromJSON.default = fromJSON
4856
4913
  "use strict";
4857
4914
 
4858
4915
 
4916
+ let { nanoid } = __nccwpck_require__(4951)
4917
+ let { isAbsolute, resolve } = __nccwpck_require__(1017)
4859
4918
  let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(175)
4860
4919
  let { fileURLToPath, pathToFileURL } = __nccwpck_require__(7310)
4861
- let { isAbsolute, resolve } = __nccwpck_require__(1017)
4862
- let { nanoid } = __nccwpck_require__(4951)
4863
4920
 
4864
- let terminalHighlight = __nccwpck_require__(1526)
4865
4921
  let CssSyntaxError = __nccwpck_require__(4610)
4866
4922
  let PreviousMap = __nccwpck_require__(3487)
4923
+ let terminalHighlight = __nccwpck_require__(1526)
4867
4924
 
4868
4925
  let fromOffsetCache = Symbol('fromOffsetCache')
4869
4926
 
@@ -4917,7 +4974,7 @@ class Input {
4917
4974
  }
4918
4975
 
4919
4976
  error(message, line, column, opts = {}) {
4920
- let result, endLine, endColumn
4977
+ let endColumn, endLine, result
4921
4978
 
4922
4979
  if (line && typeof line === 'object') {
4923
4980
  let start = line
@@ -5112,15 +5169,15 @@ if (terminalHighlight && terminalHighlight.registerInput) {
5112
5169
  "use strict";
5113
5170
 
5114
5171
 
5115
- let { isClean, my } = __nccwpck_require__(3298)
5116
- let MapGenerator = __nccwpck_require__(2966)
5117
- let stringify = __nccwpck_require__(1880)
5118
5172
  let Container = __nccwpck_require__(7005)
5119
5173
  let Document = __nccwpck_require__(5817)
5120
- let warnOnce = __nccwpck_require__(9759)
5121
- let Result = __nccwpck_require__(3446)
5174
+ let MapGenerator = __nccwpck_require__(2966)
5122
5175
  let parse = __nccwpck_require__(8317)
5176
+ let Result = __nccwpck_require__(3446)
5123
5177
  let Root = __nccwpck_require__(9659)
5178
+ let stringify = __nccwpck_require__(1880)
5179
+ let { isClean, my } = __nccwpck_require__(3298)
5180
+ let warnOnce = __nccwpck_require__(9759)
5124
5181
 
5125
5182
  const TYPE_TO_CLASS_NAME = {
5126
5183
  atrule: 'AtRule',
@@ -5736,8 +5793,8 @@ list.default = list
5736
5793
  "use strict";
5737
5794
 
5738
5795
 
5739
- let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(175)
5740
5796
  let { dirname, relative, resolve, sep } = __nccwpck_require__(1017)
5797
+ let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(175)
5741
5798
  let { pathToFileURL } = __nccwpck_require__(7310)
5742
5799
 
5743
5800
  let Input = __nccwpck_require__(5508)
@@ -5806,12 +5863,12 @@ class MapGenerator {
5806
5863
  for (let i = this.root.nodes.length - 1; i >= 0; i--) {
5807
5864
  node = this.root.nodes[i]
5808
5865
  if (node.type !== 'comment') continue
5809
- if (node.text.indexOf('# sourceMappingURL=') === 0) {
5866
+ if (node.text.startsWith('# sourceMappingURL=')) {
5810
5867
  this.root.removeChild(i)
5811
5868
  }
5812
5869
  }
5813
5870
  } else if (this.css) {
5814
- this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '')
5871
+ this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '')
5815
5872
  }
5816
5873
  }
5817
5874
 
@@ -5879,7 +5936,7 @@ class MapGenerator {
5879
5936
  source: ''
5880
5937
  }
5881
5938
 
5882
- let lines, last
5939
+ let last, lines
5883
5940
  this.stringify(this.root, (str, node, type) => {
5884
5941
  this.css += str
5885
5942
 
@@ -6113,10 +6170,10 @@ module.exports = MapGenerator
6113
6170
 
6114
6171
 
6115
6172
  let MapGenerator = __nccwpck_require__(2966)
6116
- let stringify = __nccwpck_require__(1880)
6117
- let warnOnce = __nccwpck_require__(9759)
6118
6173
  let parse = __nccwpck_require__(8317)
6119
6174
  const Result = __nccwpck_require__(3446)
6175
+ let stringify = __nccwpck_require__(1880)
6176
+ let warnOnce = __nccwpck_require__(9759)
6120
6177
 
6121
6178
  class NoWorkResult {
6122
6179
  constructor(processor, css, opts) {
@@ -6258,10 +6315,10 @@ NoWorkResult.default = NoWorkResult
6258
6315
  "use strict";
6259
6316
 
6260
6317
 
6261
- let { isClean, my } = __nccwpck_require__(3298)
6262
6318
  let CssSyntaxError = __nccwpck_require__(4610)
6263
6319
  let Stringifier = __nccwpck_require__(4224)
6264
6320
  let stringify = __nccwpck_require__(1880)
6321
+ let { isClean, my } = __nccwpck_require__(3298)
6265
6322
 
6266
6323
  function cloneNode(obj, parent) {
6267
6324
  let cloned = new obj.constructor()
@@ -6411,6 +6468,10 @@ class Node {
6411
6468
  }
6412
6469
  }
6413
6470
 
6471
+ markClean() {
6472
+ this[isClean] = true;
6473
+ }
6474
+
6414
6475
  markDirty() {
6415
6476
  if (this[isClean]) {
6416
6477
  this[isClean] = false
@@ -6648,8 +6709,8 @@ Node.default = Node
6648
6709
 
6649
6710
 
6650
6711
  let Container = __nccwpck_require__(7005)
6651
- let Parser = __nccwpck_require__(9760)
6652
6712
  let Input = __nccwpck_require__(5508)
6713
+ let Parser = __nccwpck_require__(9760)
6653
6714
 
6654
6715
  function parse(css, opts) {
6655
6716
  let input = new Input(css, opts)
@@ -6697,12 +6758,12 @@ Container.registerParse(parse)
6697
6758
  "use strict";
6698
6759
 
6699
6760
 
6700
- let Declaration = __nccwpck_require__(2095)
6701
- let tokenizer = __nccwpck_require__(918)
6702
- let Comment = __nccwpck_require__(9711)
6703
6761
  let AtRule = __nccwpck_require__(3917)
6762
+ let Comment = __nccwpck_require__(9711)
6763
+ let Declaration = __nccwpck_require__(2095)
6704
6764
  let Root = __nccwpck_require__(9659)
6705
6765
  let Rule = __nccwpck_require__(6004)
6766
+ let tokenizer = __nccwpck_require__(918)
6706
6767
 
6707
6768
  const SAFE_COMMENT_NEIGHBOR = {
6708
6769
  empty: true,
@@ -6840,7 +6901,7 @@ class Parser {
6840
6901
 
6841
6902
  colon(tokens) {
6842
6903
  let brackets = 0
6843
- let token, type, prev
6904
+ let prev, token, type
6844
6905
  for (let [i, element] of tokens.entries()) {
6845
6906
  token = element
6846
6907
  type = token[0]
@@ -6964,12 +7025,12 @@ class Parser {
6964
7025
  let str = ''
6965
7026
  for (let j = i; j > 0; j--) {
6966
7027
  let type = cache[j][0]
6967
- if (str.trim().indexOf('!') === 0 && type !== 'space') {
7028
+ if (str.trim().startsWith('!') && type !== 'space') {
6968
7029
  break
6969
7030
  }
6970
7031
  str = cache.pop()[1] + str
6971
7032
  }
6972
- if (str.trim().indexOf('!') === 0) {
7033
+ if (str.trim().startsWith('!')) {
6973
7034
  node.important = true
6974
7035
  node.raws.important = str
6975
7036
  tokens = cache
@@ -7314,24 +7375,24 @@ module.exports = Parser
7314
7375
  "use strict";
7315
7376
 
7316
7377
 
7378
+ let AtRule = __nccwpck_require__(3917)
7379
+ let Comment = __nccwpck_require__(9711)
7380
+ let Container = __nccwpck_require__(7005)
7317
7381
  let CssSyntaxError = __nccwpck_require__(4610)
7318
7382
  let Declaration = __nccwpck_require__(2095)
7319
- let LazyResult = __nccwpck_require__(2338)
7320
- let Container = __nccwpck_require__(7005)
7321
- let Processor = __nccwpck_require__(2065)
7322
- let stringify = __nccwpck_require__(1880)
7323
- let fromJSON = __nccwpck_require__(3121)
7324
7383
  let Document = __nccwpck_require__(5817)
7325
- let Warning = __nccwpck_require__(9325)
7326
- let Comment = __nccwpck_require__(9711)
7327
- let AtRule = __nccwpck_require__(3917)
7328
- let Result = __nccwpck_require__(3446)
7384
+ let fromJSON = __nccwpck_require__(3121)
7329
7385
  let Input = __nccwpck_require__(5508)
7330
- let parse = __nccwpck_require__(8317)
7386
+ let LazyResult = __nccwpck_require__(2338)
7331
7387
  let list = __nccwpck_require__(8315)
7332
- let Rule = __nccwpck_require__(6004)
7333
- let Root = __nccwpck_require__(9659)
7334
7388
  let Node = __nccwpck_require__(944)
7389
+ let parse = __nccwpck_require__(8317)
7390
+ let Processor = __nccwpck_require__(2065)
7391
+ let Result = __nccwpck_require__(3446)
7392
+ let Root = __nccwpck_require__(9659)
7393
+ let Rule = __nccwpck_require__(6004)
7394
+ let stringify = __nccwpck_require__(1880)
7395
+ let Warning = __nccwpck_require__(9325)
7335
7396
 
7336
7397
  function postcss(...plugins) {
7337
7398
  if (plugins.length === 1 && Array.isArray(plugins[0])) {
@@ -7423,9 +7484,9 @@ postcss.default = postcss
7423
7484
  "use strict";
7424
7485
 
7425
7486
 
7426
- let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(175)
7427
7487
  let { existsSync, readFileSync } = __nccwpck_require__(7147)
7428
7488
  let { dirname, join } = __nccwpck_require__(1017)
7489
+ let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(175)
7429
7490
 
7430
7491
  function fromBase64(str) {
7431
7492
  if (Buffer) {
@@ -7464,12 +7525,14 @@ class PreviousMap {
7464
7525
  let charsetUri = /^data:application\/json;charset=utf-?8,/
7465
7526
  let uri = /^data:application\/json,/
7466
7527
 
7467
- if (charsetUri.test(text) || uri.test(text)) {
7468
- return decodeURIComponent(text.substr(RegExp.lastMatch.length))
7528
+ let uriMatch = text.match(charsetUri) || text.match(uri)
7529
+ if (uriMatch) {
7530
+ return decodeURIComponent(text.substr(uriMatch[0].length))
7469
7531
  }
7470
7532
 
7471
- if (baseCharsetUri.test(text) || baseUri.test(text)) {
7472
- return fromBase64(text.substr(RegExp.lastMatch.length))
7533
+ let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri)
7534
+ if (baseUriMatch) {
7535
+ return fromBase64(text.substr(baseUriMatch[0].length))
7473
7536
  }
7474
7537
 
7475
7538
  let encoding = text.match(/data:application\/json;([^,]+),/)[1]
@@ -7490,7 +7553,7 @@ class PreviousMap {
7490
7553
  }
7491
7554
 
7492
7555
  loadAnnotation(css) {
7493
- let comments = css.match(/\/\*\s*# sourceMappingURL=/gm)
7556
+ let comments = css.match(/\/\*\s*# sourceMappingURL=/g)
7494
7557
  if (!comments) return
7495
7558
 
7496
7559
  // sourceMappingURLs from comments, strings, etc.
@@ -7573,14 +7636,14 @@ PreviousMap.default = PreviousMap
7573
7636
  "use strict";
7574
7637
 
7575
7638
 
7576
- let NoWorkResult = __nccwpck_require__(2029)
7577
- let LazyResult = __nccwpck_require__(2338)
7578
7639
  let Document = __nccwpck_require__(5817)
7640
+ let LazyResult = __nccwpck_require__(2338)
7641
+ let NoWorkResult = __nccwpck_require__(2029)
7579
7642
  let Root = __nccwpck_require__(9659)
7580
7643
 
7581
7644
  class Processor {
7582
7645
  constructor(plugins = []) {
7583
- this.version = '8.4.38'
7646
+ this.version = '8.4.44'
7584
7647
  this.plugins = this.normalize(plugins)
7585
7648
  }
7586
7649
 
@@ -8302,8 +8365,8 @@ module.exports = function tokenizer(input, options = {}) {
8302
8365
  let css = input.css.valueOf()
8303
8366
  let ignore = options.ignoreErrors
8304
8367
 
8305
- let code, next, quote, content, escape
8306
- let escaped, escapePos, prev, n, currentToken
8368
+ let code, content, escape, next, quote
8369
+ let currentToken, escaped, escapePos, n, prev
8307
8370
 
8308
8371
  let length = css.length
8309
8372
  let pos = 0
@@ -9212,7 +9275,7 @@ module.exports = JSON.parse('{"title":"CSS Loader options","additionalProperties
9212
9275
  /***/ ((module) => {
9213
9276
 
9214
9277
  "use strict";
9215
- module.exports = JSON.parse('{"name":"postcss","version":"8.4.38","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.0","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}');
9278
+ module.exports = JSON.parse('{"name":"postcss","version":"8.4.44","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.1","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}');
9216
9279
 
9217
9280
  /***/ }),
9218
9281