eddyter 1.3.64 → 1.3.65

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.
@@ -1,10 +1,7 @@
1
1
  var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, Yr = Object.getOwnPropertyNames, es = Object.getPrototypeOf, ts = Object.prototype.hasOwnProperty, E = (e, s) => () => (s || e((s = { exports: {} }).exports, s), s.exports), Qt = (e, s) => {
2
- for (var n in s)
3
- wt(e, n, { get: s[n], enumerable: !0 });
2
+ for (var n in s) wt(e, n, { get: s[n], enumerable: !0 });
4
3
  }, rs = (e, s, n, o) => {
5
- if (s && typeof s == "object" || typeof s == "function")
6
- for (let c of Yr(s))
7
- !ts.call(e, c) && c !== n && wt(e, c, { get: () => s[c], enumerable: !(o = Xr(s, c)) || o.enumerable });
4
+ if (s && typeof s == "object" || typeof s == "function") for (let c of Yr(s)) !ts.call(e, c) && c !== n && wt(e, c, { get: () => s[c], enumerable: !(o = Xr(s, c)) || o.enumerable });
8
5
  return e;
9
6
  }, we = (e, s, n) => (n = e != null ? Kr(es(e)) : {}, rs(wt(n, "default", { value: e, enumerable: !0 }), e)), ss = E((e, s) => {
10
7
  var n = String, o = function() {
@@ -21,8 +18,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
21
18
  this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
22
19
  }
23
20
  showSourceCode(f) {
24
- if (!this.source)
25
- return "";
21
+ if (!this.source) return "";
26
22
  let u = this.source;
27
23
  f == null && (f = n.isColorSupported);
28
24
  let m = (l) => l, p = (l) => l, r = (l) => l;
@@ -72,8 +68,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
72
68
  }
73
69
  atrule(i, f) {
74
70
  let u = "@" + i.name, m = i.params ? this.rawValue(i, "params") : "";
75
- if (typeof i.raws.afterName < "u" ? u += i.raws.afterName : m && (u += " "), i.nodes)
76
- this.block(i, u + m);
71
+ if (typeof i.raws.afterName < "u" ? u += i.raws.afterName : m && (u += " "), i.nodes) this.block(i, u + m);
77
72
  else {
78
73
  let p = (i.raws.between || "") + (f ? ";" : "");
79
74
  this.builder(u + m + p, i);
@@ -83,14 +78,11 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
83
78
  let u;
84
79
  i.type === "decl" ? u = this.raw(i, null, "beforeDecl") : i.type === "comment" ? u = this.raw(i, null, "beforeComment") : f === "before" ? u = this.raw(i, null, "beforeRule") : u = this.raw(i, null, "beforeClose");
85
80
  let m = i.parent, p = 0;
86
- for (; m && m.type !== "root"; )
87
- p += 1, m = m.parent;
81
+ for (; m && m.type !== "root"; ) p += 1, m = m.parent;
88
82
  if (u.includes(`
89
83
  `)) {
90
84
  let r = this.raw(i, null, "indent");
91
- if (r.length)
92
- for (let t = 0; t < p; t++)
93
- u += r;
85
+ if (r.length) for (let t = 0; t < p; t++) u += r;
94
86
  }
95
87
  return u;
96
88
  }
@@ -102,8 +94,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
102
94
  }
103
95
  body(i) {
104
96
  let f = i.nodes.length - 1;
105
- for (; f > 0 && i.nodes[f].type === "comment"; )
106
- f -= 1;
97
+ for (; f > 0 && i.nodes[f].type === "comment"; ) f -= 1;
107
98
  let u = this.raw(i, "semicolon");
108
99
  for (let m = 0; m < i.nodes.length; m++) {
109
100
  let p = i.nodes[m], r = this.raw(p, "before");
@@ -123,23 +114,17 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
123
114
  }
124
115
  raw(i, f, u) {
125
116
  let m;
126
- if (u || (u = f), f && (m = i.raws[f], typeof m < "u"))
127
- return m;
117
+ if (u || (u = f), f && (m = i.raws[f], typeof m < "u")) return m;
128
118
  let p = i.parent;
129
- if (u === "before" && (!p || p.type === "root" && p.first === i || p && p.type === "document"))
130
- return "";
131
- if (!p)
132
- return n[u];
119
+ if (u === "before" && (!p || p.type === "root" && p.first === i || p && p.type === "document")) return "";
120
+ if (!p) return n[u];
133
121
  let r = i.root();
134
- if (r.rawCache || (r.rawCache = {}), typeof r.rawCache[u] < "u")
135
- return r.rawCache[u];
136
- if (u === "before" || u === "after")
137
- return this.beforeAfter(i, u);
122
+ if (r.rawCache || (r.rawCache = {}), typeof r.rawCache[u] < "u") return r.rawCache[u];
123
+ if (u === "before" || u === "after") return this.beforeAfter(i, u);
138
124
  {
139
125
  let t = "raw" + o(u);
140
126
  this[t] ? m = this[t](r, i) : r.walk((h) => {
141
- if (m = h.raws[f], typeof m < "u")
142
- return !1;
127
+ if (m = h.raws[f], typeof m < "u") return !1;
143
128
  });
144
129
  }
145
130
  return typeof m > "u" && (m = n[u]), r.rawCache[u] = m, m;
@@ -147,59 +132,51 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
147
132
  rawBeforeClose(i) {
148
133
  let f;
149
134
  return i.walk((u) => {
150
- if (u.nodes && u.nodes.length > 0 && typeof u.raws.after < "u")
151
- return f = u.raws.after, f.includes(`
135
+ if (u.nodes && u.nodes.length > 0 && typeof u.raws.after < "u") return f = u.raws.after, f.includes(`
152
136
  `) && (f = f.replace(/[^\n]+$/, "")), !1;
153
137
  }), f && (f = f.replace(/\S/g, "")), f;
154
138
  }
155
139
  rawBeforeComment(i, f) {
156
140
  let u;
157
141
  return i.walkComments((m) => {
158
- if (typeof m.raws.before < "u")
159
- return u = m.raws.before, u.includes(`
142
+ if (typeof m.raws.before < "u") return u = m.raws.before, u.includes(`
160
143
  `) && (u = u.replace(/[^\n]+$/, "")), !1;
161
144
  }), typeof u > "u" ? u = this.raw(f, null, "beforeDecl") : u && (u = u.replace(/\S/g, "")), u;
162
145
  }
163
146
  rawBeforeDecl(i, f) {
164
147
  let u;
165
148
  return i.walkDecls((m) => {
166
- if (typeof m.raws.before < "u")
167
- return u = m.raws.before, u.includes(`
149
+ if (typeof m.raws.before < "u") return u = m.raws.before, u.includes(`
168
150
  `) && (u = u.replace(/[^\n]+$/, "")), !1;
169
151
  }), typeof u > "u" ? u = this.raw(f, null, "beforeRule") : u && (u = u.replace(/\S/g, "")), u;
170
152
  }
171
153
  rawBeforeOpen(i) {
172
154
  let f;
173
155
  return i.walk((u) => {
174
- if (u.type !== "decl" && (f = u.raws.between, typeof f < "u"))
175
- return !1;
156
+ if (u.type !== "decl" && (f = u.raws.between, typeof f < "u")) return !1;
176
157
  }), f;
177
158
  }
178
159
  rawBeforeRule(i) {
179
160
  let f;
180
161
  return i.walk((u) => {
181
- if (u.nodes && (u.parent !== i || i.first !== u) && typeof u.raws.before < "u")
182
- return f = u.raws.before, f.includes(`
162
+ if (u.nodes && (u.parent !== i || i.first !== u) && typeof u.raws.before < "u") return f = u.raws.before, f.includes(`
183
163
  `) && (f = f.replace(/[^\n]+$/, "")), !1;
184
164
  }), f && (f = f.replace(/\S/g, "")), f;
185
165
  }
186
166
  rawColon(i) {
187
167
  let f;
188
168
  return i.walkDecls((u) => {
189
- if (typeof u.raws.between < "u")
190
- return f = u.raws.between.replace(/[^\s:]/g, ""), !1;
169
+ if (typeof u.raws.between < "u") return f = u.raws.between.replace(/[^\s:]/g, ""), !1;
191
170
  }), f;
192
171
  }
193
172
  rawEmptyBody(i) {
194
173
  let f;
195
174
  return i.walk((u) => {
196
- if (u.nodes && u.nodes.length === 0 && (f = u.raws.after, typeof f < "u"))
197
- return !1;
175
+ if (u.nodes && u.nodes.length === 0 && (f = u.raws.after, typeof f < "u")) return !1;
198
176
  }), f;
199
177
  }
200
178
  rawIndent(i) {
201
- if (i.raws.indent)
202
- return i.raws.indent;
179
+ if (i.raws.indent) return i.raws.indent;
203
180
  let f;
204
181
  return i.walk((u) => {
205
182
  let m = u.parent;
@@ -213,8 +190,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
213
190
  rawSemicolon(i) {
214
191
  let f;
215
192
  return i.walk((u) => {
216
- if (u.nodes && u.nodes.length && u.last.type === "decl" && (f = u.raws.semicolon, typeof f < "u"))
217
- return !1;
193
+ if (u.nodes && u.nodes.length && u.last.type === "decl" && (f = u.raws.semicolon, typeof f < "u")) return !1;
218
194
  }), f;
219
195
  }
220
196
  rawValue(i, f) {
@@ -228,8 +204,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
228
204
  this.block(i, this.rawValue(i, "selector")), i.raws.ownSemicolon && this.builder(i.raws.ownSemicolon, i, "end");
229
205
  }
230
206
  stringify(i, f) {
231
- if (!this[i.type])
232
- throw new Error("Unknown AST node type " + i.type + ". Maybe you need to change PostCSS stringifier.");
207
+ if (!this[i.type]) throw new Error("Unknown AST node type " + i.type + ". Maybe you need to change PostCSS stringifier.");
233
208
  this[i.type](i, f);
234
209
  }
235
210
  };
@@ -241,22 +216,20 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
241
216
  }
242
217
  s.exports = o, o.default = o;
243
218
  }), kt = E((e, s) => {
244
- s.exports.isClean = Symbol("isClean"), s.exports.my = Symbol("my");
219
+ s.exports.isClean = /* @__PURE__ */ Symbol("isClean"), s.exports.my = /* @__PURE__ */ Symbol("my");
245
220
  }), et = E((e, s) => {
246
221
  var n = bt(), o = xt(), c = Ye(), { isClean: i, my: f } = kt();
247
222
  function u(r, t) {
248
223
  let h = new r.constructor();
249
224
  for (let a in r) {
250
- if (!Object.prototype.hasOwnProperty.call(r, a) || a === "proxyCache")
251
- continue;
225
+ if (!Object.prototype.hasOwnProperty.call(r, a) || a === "proxyCache") continue;
252
226
  let d = r[a], l = typeof d;
253
227
  a === "parent" && l === "object" ? t && (h[a] = t) : a === "source" ? h[a] = d : Array.isArray(d) ? h[a] = d.map((b) => u(b, h)) : (l === "object" && d !== null && (d = u(d)), h[a] = d);
254
228
  }
255
229
  return h;
256
230
  }
257
231
  function m(r, t) {
258
- if (t && typeof t.offset < "u")
259
- return t.offset;
232
+ if (t && typeof t.offset < "u") return t.offset;
260
233
  let h = 1, a = 1, d = 0;
261
234
  for (let l = 0; l < r.length; l++) {
262
235
  if (a === t.line && h === t.column) {
@@ -274,13 +247,10 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
274
247
  }
275
248
  constructor(r = {}) {
276
249
  this.raws = {}, this[i] = !1, this[f] = !0;
277
- for (let t in r)
278
- if (t === "nodes") {
279
- this.nodes = [];
280
- for (let h of r[t])
281
- typeof h.clone == "function" ? this.append(h.clone()) : this.append(h);
282
- } else
283
- this[t] = r[t];
250
+ for (let t in r) if (t === "nodes") {
251
+ this.nodes = [];
252
+ for (let h of r[t]) typeof h.clone == "function" ? this.append(h.clone()) : this.append(h);
253
+ } else this[t] = r[t];
284
254
  }
285
255
  addToError(r) {
286
256
  if (r.postcssNode = this, r.stack && this.source && /\n\s{4}at /.test(r.stack)) {
@@ -293,8 +263,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
293
263
  return this.parent.insertAfter(this, r), this;
294
264
  }
295
265
  assign(r = {}) {
296
- for (let t in r)
297
- this[t] = r[t];
266
+ for (let t in r) this[t] = r[t];
298
267
  return this;
299
268
  }
300
269
  before(r) {
@@ -305,8 +274,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
305
274
  }
306
275
  clone(r = {}) {
307
276
  let t = u(this);
308
- for (let h in r)
309
- t[h] = r[h];
277
+ for (let h in r) t[h] = r[h];
310
278
  return t;
311
279
  }
312
280
  cloneAfter(r = {}) {
@@ -338,20 +306,17 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
338
306
  if (this[i]) {
339
307
  this[i] = !1;
340
308
  let r = this;
341
- for (; r = r.parent; )
342
- r[i] = !1;
309
+ for (; r = r.parent; ) r[i] = !1;
343
310
  }
344
311
  }
345
312
  next() {
346
- if (!this.parent)
347
- return;
313
+ if (!this.parent) return;
348
314
  let r = this.parent.index(this);
349
315
  return this.parent.nodes[r + 1];
350
316
  }
351
317
  positionBy(r = {}) {
352
318
  let t = this.source.start;
353
- if (r.index)
354
- t = this.positionInside(r.index);
319
+ if (r.index) t = this.positionInside(r.index);
355
320
  else if (r.word) {
356
321
  let h = "document" in this.source.input ? this.source.input.document : this.source.input.css, a = h.slice(m(h, this.source.start), m(h, this.source.end)).indexOf(r.word);
357
322
  a !== -1 && (t = this.positionInside(a));
@@ -360,14 +325,12 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
360
325
  }
361
326
  positionInside(r) {
362
327
  let t = this.source.start.column, h = this.source.start.line, a = "document" in this.source.input ? this.source.input.document : this.source.input.css, d = m(a, this.source.start), l = d + r;
363
- for (let b = d; b < l; b++)
364
- a[b] === `
328
+ for (let b = d; b < l; b++) a[b] === `
365
329
  ` ? (t = 1, h += 1) : t += 1;
366
330
  return { column: t, line: h, offset: l };
367
331
  }
368
332
  prev() {
369
- if (!this.parent)
370
- return;
333
+ if (!this.parent) return;
371
334
  let r = this.parent.index(this);
372
335
  return this.parent.nodes[r - 1];
373
336
  }
@@ -376,8 +339,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
376
339
  if (r.word) {
377
340
  let d = t.slice(m(t, this.source.start), m(t, this.source.end)).indexOf(r.word);
378
341
  d !== -1 && (h = this.positionInside(d), a = this.positionInside(d + r.word.length));
379
- } else
380
- r.start ? h = { column: r.start.column, line: r.start.line, offset: m(t, r.start) } : r.index && (h = this.positionInside(r.index)), r.end ? a = { column: r.end.column, line: r.end.line, offset: m(t, r.end) } : typeof r.endIndex == "number" ? a = this.positionInside(r.endIndex) : r.index && (a = this.positionInside(r.index + 1));
342
+ } else r.start ? h = { column: r.start.column, line: r.start.line, offset: m(t, r.start) } : r.index && (h = this.positionInside(r.index)), r.end ? a = { column: r.end.column, line: r.end.line, offset: m(t, r.end) } : typeof r.endIndex == "number" ? a = this.positionInside(r.endIndex) : r.index && (a = this.positionInside(r.index + 1));
381
343
  return (a.line < h.line || a.line === h.line && a.column <= h.column) && (a = { column: h.column + 1, line: h.line, offset: h.offset + 1 }), { end: a, start: h };
382
344
  }
383
345
  raw(r, t) {
@@ -389,16 +351,14 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
389
351
  replaceWith(...r) {
390
352
  if (this.parent) {
391
353
  let t = this, h = !1;
392
- for (let a of r)
393
- a === this ? h = !0 : h ? (this.parent.insertAfter(t, a), t = a) : this.parent.insertBefore(t, a);
354
+ for (let a of r) a === this ? h = !0 : h ? (this.parent.insertAfter(t, a), t = a) : this.parent.insertBefore(t, a);
394
355
  h || this.remove();
395
356
  }
396
357
  return this;
397
358
  }
398
359
  root() {
399
360
  let r = this;
400
- for (; r.parent && r.parent.type !== "document"; )
401
- r = r.parent;
361
+ for (; r.parent && r.parent.type !== "document"; ) r = r.parent;
402
362
  return r;
403
363
  }
404
364
  toJSON(r, t) {
@@ -406,20 +366,15 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
406
366
  t = t || /* @__PURE__ */ new Map();
407
367
  let d = 0;
408
368
  for (let l in this) {
409
- if (!Object.prototype.hasOwnProperty.call(this, l) || l === "parent" || l === "proxyCache")
410
- continue;
369
+ if (!Object.prototype.hasOwnProperty.call(this, l) || l === "parent" || l === "proxyCache") continue;
411
370
  let b = this[l];
412
- if (Array.isArray(b))
413
- h[l] = b.map((y) => typeof y == "object" && y.toJSON ? y.toJSON(null, t) : y);
414
- else if (typeof b == "object" && b.toJSON)
415
- h[l] = b.toJSON(null, t);
371
+ if (Array.isArray(b)) h[l] = b.map((y) => typeof y == "object" && y.toJSON ? y.toJSON(null, t) : y);
372
+ else if (typeof b == "object" && b.toJSON) h[l] = b.toJSON(null, t);
416
373
  else if (l === "source") {
417
- if (b == null)
418
- continue;
374
+ if (b == null) continue;
419
375
  let y = t.get(b.input);
420
376
  y == null && (y = d, t.set(b.input, d), d++), h[l] = { end: b.end, inputId: y, start: b.start };
421
- } else
422
- h[l] = b;
377
+ } else h[l] = b;
423
378
  }
424
379
  return a && (h.inputs = [...t.keys()].map((l) => l.toJSON())), h;
425
380
  }
@@ -435,8 +390,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
435
390
  }
436
391
  warn(r, t, h = {}) {
437
392
  let a = { node: this };
438
- for (let d in h)
439
- a[d] = h[d];
393
+ for (let d in h) a[d] = h[d];
440
394
  return r.warn(t, a);
441
395
  }
442
396
  };
@@ -464,38 +418,29 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
464
418
  return d.map((l) => (l.nodes && (l.nodes = t(l.nodes)), delete l.source, l));
465
419
  }
466
420
  function h(d) {
467
- if (d[i] = !1, d.proxyOf.nodes)
468
- for (let l of d.proxyOf.nodes)
469
- h(l);
421
+ if (d[i] = !1, d.proxyOf.nodes) for (let l of d.proxyOf.nodes) h(l);
470
422
  }
471
423
  var a = class Xt extends c {
472
424
  get first() {
473
- if (this.proxyOf.nodes)
474
- return this.proxyOf.nodes[0];
425
+ if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
475
426
  }
476
427
  get last() {
477
- if (this.proxyOf.nodes)
478
- return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
428
+ if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
479
429
  }
480
430
  append(...l) {
481
431
  for (let b of l) {
482
432
  let y = this.normalize(b, this.last);
483
- for (let v of y)
484
- this.proxyOf.nodes.push(v);
433
+ for (let v of y) this.proxyOf.nodes.push(v);
485
434
  }
486
435
  return this.markDirty(), this;
487
436
  }
488
437
  cleanRaws(l) {
489
- if (super.cleanRaws(l), this.nodes)
490
- for (let b of this.nodes)
491
- b.cleanRaws(l);
438
+ if (super.cleanRaws(l), this.nodes) for (let b of this.nodes) b.cleanRaws(l);
492
439
  }
493
440
  each(l) {
494
- if (!this.proxyOf.nodes)
495
- return;
441
+ if (!this.proxyOf.nodes) return;
496
442
  let b = this.getIterator(), y, v;
497
- for (; this.indexes[b] < this.proxyOf.nodes.length && (y = this.indexes[b], v = l(this.proxyOf.nodes[y], y), v !== !1); )
498
- this.indexes[b] += 1;
443
+ for (; this.indexes[b] < this.proxyOf.nodes.length && (y = this.indexes[b], v = l(this.proxyOf.nodes[y], y), v !== !1); ) this.indexes[b] += 1;
499
444
  return delete this.indexes[b], v;
500
445
  }
501
446
  every(l) {
@@ -519,60 +464,44 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
519
464
  insertAfter(l, b) {
520
465
  let y = this.index(l), v = this.normalize(b, this.proxyOf.nodes[y]).reverse();
521
466
  y = this.index(l);
522
- for (let k of v)
523
- this.proxyOf.nodes.splice(y + 1, 0, k);
467
+ for (let k of v) this.proxyOf.nodes.splice(y + 1, 0, k);
524
468
  let g;
525
- for (let k in this.indexes)
526
- g = this.indexes[k], y < g && (this.indexes[k] = g + v.length);
469
+ for (let k in this.indexes) g = this.indexes[k], y < g && (this.indexes[k] = g + v.length);
527
470
  return this.markDirty(), this;
528
471
  }
529
472
  insertBefore(l, b) {
530
473
  let y = this.index(l), v = y === 0 ? "prepend" : !1, g = this.normalize(b, this.proxyOf.nodes[y], v).reverse();
531
474
  y = this.index(l);
532
- for (let w of g)
533
- this.proxyOf.nodes.splice(y, 0, w);
475
+ for (let w of g) this.proxyOf.nodes.splice(y, 0, w);
534
476
  let k;
535
- for (let w in this.indexes)
536
- k = this.indexes[w], y <= k && (this.indexes[w] = k + g.length);
477
+ for (let w in this.indexes) k = this.indexes[w], y <= k && (this.indexes[w] = k + g.length);
537
478
  return this.markDirty(), this;
538
479
  }
539
480
  normalize(l, b) {
540
- if (typeof l == "string")
541
- l = t(m(l).nodes);
542
- else if (typeof l > "u")
543
- l = [];
481
+ if (typeof l == "string") l = t(m(l).nodes);
482
+ else if (typeof l > "u") l = [];
544
483
  else if (Array.isArray(l)) {
545
484
  l = l.slice(0);
546
- for (let y of l)
547
- y.parent && y.parent.removeChild(y, "ignore");
485
+ for (let y of l) y.parent && y.parent.removeChild(y, "ignore");
548
486
  } else if (l.type === "root" && this.type !== "document") {
549
487
  l = l.nodes.slice(0);
550
- for (let y of l)
551
- y.parent && y.parent.removeChild(y, "ignore");
552
- } else if (l.type)
553
- l = [l];
488
+ for (let y of l) y.parent && y.parent.removeChild(y, "ignore");
489
+ } else if (l.type) l = [l];
554
490
  else if (l.prop) {
555
- if (typeof l.value > "u")
556
- throw new Error("Value field is missed in node creation");
491
+ if (typeof l.value > "u") throw new Error("Value field is missed in node creation");
557
492
  typeof l.value != "string" && (l.value = String(l.value)), l = [new o(l)];
558
- } else if (l.selector || l.selectors)
559
- l = [new r(l)];
560
- else if (l.name)
561
- l = [new u(l)];
562
- else if (l.text)
563
- l = [new n(l)];
564
- else
565
- throw new Error("Unknown node type in node creation");
493
+ } else if (l.selector || l.selectors) l = [new r(l)];
494
+ else if (l.name) l = [new u(l)];
495
+ else if (l.text) l = [new n(l)];
496
+ else throw new Error("Unknown node type in node creation");
566
497
  return l.map((y) => (y[f] || Xt.rebuild(y), y = y.proxyOf, y.parent && y.parent.removeChild(y), y[i] && h(y), y.raws || (y.raws = {}), typeof y.raws.before > "u" && b && typeof b.raws.before < "u" && (y.raws.before = b.raws.before.replace(/\S/g, "")), y.parent = this.proxyOf, y));
567
498
  }
568
499
  prepend(...l) {
569
500
  l = l.reverse();
570
501
  for (let b of l) {
571
502
  let y = this.normalize(b, this.first, "prepend").reverse();
572
- for (let v of y)
573
- this.proxyOf.nodes.unshift(v);
574
- for (let v in this.indexes)
575
- this.indexes[v] = this.indexes[v] + y.length;
503
+ for (let v of y) this.proxyOf.nodes.unshift(v);
504
+ for (let v in this.indexes) this.indexes[v] = this.indexes[v] + y.length;
576
505
  }
577
506
  return this.markDirty(), this;
578
507
  }
@@ -580,15 +509,13 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
580
509
  return l.parent = this, this.proxyOf.nodes.push(l), this;
581
510
  }
582
511
  removeAll() {
583
- for (let l of this.proxyOf.nodes)
584
- l.parent = void 0;
512
+ for (let l of this.proxyOf.nodes) l.parent = void 0;
585
513
  return this.proxyOf.nodes = [], this.markDirty(), this;
586
514
  }
587
515
  removeChild(l) {
588
516
  l = this.index(l), this.proxyOf.nodes[l].parent = void 0, this.proxyOf.nodes.splice(l, 1);
589
517
  let b;
590
- for (let y in this.indexes)
591
- b = this.indexes[y], b >= l && (this.indexes[y] = b - 1);
518
+ for (let y in this.indexes) b = this.indexes[y], b >= l && (this.indexes[y] = b - 1);
592
519
  return this.markDirty(), this;
593
520
  }
594
521
  replaceValues(l, b, y) {
@@ -612,44 +539,34 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
612
539
  }
613
540
  walkAtRules(l, b) {
614
541
  return b ? l instanceof RegExp ? this.walk((y, v) => {
615
- if (y.type === "atrule" && l.test(y.name))
616
- return b(y, v);
542
+ if (y.type === "atrule" && l.test(y.name)) return b(y, v);
617
543
  }) : this.walk((y, v) => {
618
- if (y.type === "atrule" && y.name === l)
619
- return b(y, v);
544
+ if (y.type === "atrule" && y.name === l) return b(y, v);
620
545
  }) : (b = l, this.walk((y, v) => {
621
- if (y.type === "atrule")
622
- return b(y, v);
546
+ if (y.type === "atrule") return b(y, v);
623
547
  }));
624
548
  }
625
549
  walkComments(l) {
626
550
  return this.walk((b, y) => {
627
- if (b.type === "comment")
628
- return l(b, y);
551
+ if (b.type === "comment") return l(b, y);
629
552
  });
630
553
  }
631
554
  walkDecls(l, b) {
632
555
  return b ? l instanceof RegExp ? this.walk((y, v) => {
633
- if (y.type === "decl" && l.test(y.prop))
634
- return b(y, v);
556
+ if (y.type === "decl" && l.test(y.prop)) return b(y, v);
635
557
  }) : this.walk((y, v) => {
636
- if (y.type === "decl" && y.prop === l)
637
- return b(y, v);
558
+ if (y.type === "decl" && y.prop === l) return b(y, v);
638
559
  }) : (b = l, this.walk((y, v) => {
639
- if (y.type === "decl")
640
- return b(y, v);
560
+ if (y.type === "decl") return b(y, v);
641
561
  }));
642
562
  }
643
563
  walkRules(l, b) {
644
564
  return b ? l instanceof RegExp ? this.walk((y, v) => {
645
- if (y.type === "rule" && l.test(y.selector))
646
- return b(y, v);
565
+ if (y.type === "rule" && l.test(y.selector)) return b(y, v);
647
566
  }) : this.walk((y, v) => {
648
- if (y.type === "rule" && y.selector === l)
649
- return b(y, v);
567
+ if (y.type === "rule" && y.selector === l) return b(y, v);
650
568
  }) : (b = l, this.walk((y, v) => {
651
- if (y.type === "rule")
652
- return b(y, v);
569
+ if (y.type === "rule") return b(y, v);
653
570
  }));
654
571
  }
655
572
  };
@@ -669,13 +586,11 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
669
586
  }), ns = E((e, s) => {
670
587
  var n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", o = (i, f = 21) => (u = f) => {
671
588
  let m = "", p = u | 0;
672
- for (; p--; )
673
- m += i[Math.random() * i.length | 0];
589
+ for (; p--; ) m += i[Math.random() * i.length | 0];
674
590
  return m;
675
591
  }, c = (i = 21) => {
676
592
  let f = "", u = i | 0;
677
- for (; u--; )
678
- f += n[Math.random() * 64 | 0];
593
+ for (; u--; ) f += n[Math.random() * 64 | 0];
679
594
  return f;
680
595
  };
681
596
  s.exports = { nanoid: c, customAlphabet: o };
@@ -684,14 +599,12 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
684
599
  s.exports = class {
685
600
  };
686
601
  }), Ne = E((e, s) => {
687
- var { nanoid: n } = ns(), { isAbsolute: o, resolve: c } = {}, { SourceMapConsumer: i, SourceMapGenerator: f } = os(), { fileURLToPath: u, pathToFileURL: m } = {}, p = bt(), r = Yt(), t = Zt(), h = Symbol("lineToIndexCache"), a = !!(i && f), d = !!(c && o);
602
+ var { nanoid: n } = ns(), { isAbsolute: o, resolve: c } = {}, { SourceMapConsumer: i, SourceMapGenerator: f } = os(), { fileURLToPath: u, pathToFileURL: m } = {}, p = bt(), r = Yt(), t = Zt(), h = /* @__PURE__ */ Symbol("lineToIndexCache"), a = !!(i && f), d = !!(c && o);
688
603
  function l(y) {
689
- if (y[h])
690
- return y[h];
604
+ if (y[h]) return y[h];
691
605
  let v = y.css.split(`
692
606
  `), g = new Array(v.length), k = 0;
693
- for (let w = 0, x = v.length; w < x; w++)
694
- g[w] = k, k += v[w].length + 1;
607
+ for (let w = 0, x = v.length; w < x; w++) g[w] = k, k += v[w].length + 1;
695
608
  return y[h] = g, g;
696
609
  }
697
610
  var b = class {
@@ -699,8 +612,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
699
612
  return this.file || this.id;
700
613
  }
701
614
  constructor(y, v = {}) {
702
- if (y === null || typeof y > "u" || typeof y == "object" && !y.toString)
703
- throw new Error(`PostCSS received ${y} instead of CSS string`);
615
+ if (y === null || typeof y > "u" || typeof y == "object" && !y.toString) throw new Error(`PostCSS received ${y} instead of CSS string`);
704
616
  if (this.css = y.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, v.document && (this.document = v.document.toString()), v.from && (!d || /^\w+:\/\//.test(v.from) || o(v.from) ? this.file = v.from : this.file = c(v.from)), d && a) {
705
617
  let g = new r(this.css, v);
706
618
  if (g.text) {
@@ -719,16 +631,13 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
719
631
  T = I.offset;
720
632
  let R = this.fromOffset(T);
721
633
  v = R.line, g = R.col;
722
- } else
723
- v = I.line, g = I.column, T = this.fromLineAndColumn(v, g);
634
+ } else v = I.line, g = I.column, T = this.fromLineAndColumn(v, g);
724
635
  if (typeof N.offset == "number") {
725
636
  O = N.offset;
726
637
  let R = this.fromOffset(O);
727
638
  x = R.line, w = R.col;
728
- } else
729
- x = N.line, w = N.column, O = this.fromLineAndColumn(N.line, N.column);
730
- } else if (g)
731
- T = this.fromLineAndColumn(v, g);
639
+ } else x = N.line, w = N.column, O = this.fromLineAndColumn(N.line, N.column);
640
+ } else if (g) T = this.fromLineAndColumn(v, g);
732
641
  else {
733
642
  T = v;
734
643
  let I = this.fromOffset(T);
@@ -742,19 +651,15 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
742
651
  }
743
652
  fromOffset(y) {
744
653
  let v = l(this), g = v[v.length - 1], k = 0;
745
- if (y >= g)
746
- k = v.length - 1;
654
+ if (y >= g) k = v.length - 1;
747
655
  else {
748
656
  let w = v.length - 2, x;
749
- for (; k < w; )
750
- if (x = k + (w - k >> 1), y < v[x])
751
- w = x - 1;
752
- else if (y >= v[x + 1])
753
- k = x + 1;
754
- else {
755
- k = x;
756
- break;
757
- }
657
+ for (; k < w; ) if (x = k + (w - k >> 1), y < v[x]) w = x - 1;
658
+ else if (y >= v[x + 1]) k = x + 1;
659
+ else {
660
+ k = x;
661
+ break;
662
+ }
758
663
  }
759
664
  return { col: y - v[k] + 1, line: k + 1 };
760
665
  }
@@ -762,28 +667,22 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
762
667
  return /^\w+:\/\//.test(y) ? y : c(this.map.consumer().sourceRoot || this.map.root || ".", y);
763
668
  }
764
669
  origin(y, v, g, k) {
765
- if (!this.map)
766
- return !1;
670
+ if (!this.map) return !1;
767
671
  let w = this.map.consumer(), x = w.originalPositionFor({ column: v, line: y });
768
- if (!x.source)
769
- return !1;
672
+ if (!x.source) return !1;
770
673
  let O;
771
674
  typeof g == "number" && (O = w.originalPositionFor({ column: k, line: g }));
772
675
  let T;
773
676
  o(x.source) ? T = m(x.source) : T = new URL(x.source, this.map.consumer().sourceRoot || m(this.map.mapFile));
774
677
  let _ = { column: x.column, endColumn: O && O.column, endLine: O && O.line, line: x.line, url: T.toString() };
775
- if (T.protocol === "file:")
776
- if (u)
777
- _.file = u(T);
778
- else
779
- throw new Error("file: protocol is not available in this PostCSS build");
678
+ if (T.protocol === "file:") if (u) _.file = u(T);
679
+ else throw new Error("file: protocol is not available in this PostCSS build");
780
680
  let A = w.sourceContentFor(x.source);
781
681
  return A && (_.source = A), _;
782
682
  }
783
683
  toJSON() {
784
684
  let y = {};
785
- for (let v of ["hasBOM", "css", "file", "id"])
786
- this[v] != null && (y[v] = this[v]);
685
+ for (let v of ["hasBOM", "css", "file", "id"]) this[v] != null && (y[v] = this[v]);
787
686
  return this.map && (y.map = { ...this.map }, y.map.consumerCache && (y.map.consumerCache = void 0)), y;
788
687
  }
789
688
  };
@@ -809,11 +708,8 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
809
708
  normalize(f, u, m) {
810
709
  let p = super.normalize(f);
811
710
  if (u) {
812
- if (m === "prepend")
813
- this.nodes.length > 1 ? u.raws.before = this.nodes[1].raws.before : delete u.raws.before;
814
- else if (this.first !== u)
815
- for (let r of p)
816
- r.raws.before = u.raws.before;
711
+ if (m === "prepend") this.nodes.length > 1 ? u.raws.before = this.nodes[1].raws.before : delete u.raws.before;
712
+ else if (this.first !== u) for (let r of p) r.raws.before = u.raws.before;
817
713
  }
818
714
  return p;
819
715
  }
@@ -839,8 +735,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
839
735
  return n.split(o, c);
840
736
  }, split(o, c, i) {
841
737
  let f = [], u = "", m = !1, p = 0, r = !1, t = "", h = !1;
842
- for (let a of o)
843
- h ? h = !1 : a === "\\" ? h = !0 : r ? a === t && (r = !1) : a === '"' || a === "'" ? (r = !0, t = a) : a === "(" ? p += 1 : a === ")" ? p > 0 && (p -= 1) : p === 0 && c.includes(a) && (m = !0), m ? (u !== "" && f.push(u.trim()), u = "", m = !1) : u += a;
738
+ for (let a of o) h ? h = !1 : a === "\\" ? h = !0 : r ? a === t && (r = !1) : a === '"' || a === "'" ? (r = !0, t = a) : a === "(" ? p += 1 : a === ")" ? p > 0 && (p -= 1) : p === 0 && c.includes(a) && (m = !0), m ? (u !== "" && f.push(u.trim()), u = "", m = !1) : u += a;
844
739
  return (i || u !== "") && f.push(u.trim()), f;
845
740
  } };
846
741
  s.exports = n, n.default = n;
@@ -872,10 +767,8 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
872
767
  return O.length === 0 && w >= k;
873
768
  }
874
769
  function I(R) {
875
- if (O.length)
876
- return O.pop();
877
- if (w >= k)
878
- return;
770
+ if (O.length) return O.pop();
771
+ if (w >= k) return;
879
772
  let $ = R ? R.ignoreUnclosed : !1;
880
773
  switch (r = m.charCodeAt(w), r) {
881
774
  case 10:
@@ -905,32 +798,25 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
905
798
  if (g = x.length ? x.pop()[1] : "", v = m.charCodeAt(w + 1), g === "url" && v !== 39 && v !== 34 && v !== 32 && v !== 10 && v !== 9 && v !== 12 && v !== 13) {
906
799
  a = w;
907
800
  do {
908
- if (b = !1, a = m.indexOf(")", a + 1), a === -1)
909
- if (p || $) {
910
- a = w;
911
- break;
912
- } else
913
- _("bracket");
914
- for (y = a; m.charCodeAt(y - 1) === 92; )
915
- y -= 1, b = !b;
801
+ if (b = !1, a = m.indexOf(")", a + 1), a === -1) if (p || $) {
802
+ a = w;
803
+ break;
804
+ } else _("bracket");
805
+ for (y = a; m.charCodeAt(y - 1) === 92; ) y -= 1, b = !b;
916
806
  } while (b);
917
807
  l = ["brackets", m.slice(w, a + 1), w, a], w = a;
918
- } else
919
- a = m.indexOf(")", w + 1), t = m.slice(w, a + 1), a === -1 || c.test(t) ? l = ["(", "(", w] : (l = ["brackets", t, w, a], w = a);
808
+ } else a = m.indexOf(")", w + 1), t = m.slice(w, a + 1), a === -1 || c.test(t) ? l = ["(", "(", w] : (l = ["brackets", t, w, a], w = a);
920
809
  break;
921
810
  }
922
811
  case 39:
923
812
  case 34: {
924
813
  d = r === 39 ? "'" : '"', a = w;
925
814
  do {
926
- if (b = !1, a = m.indexOf(d, a + 1), a === -1)
927
- if (p || $) {
928
- a = w + 1;
929
- break;
930
- } else
931
- _("string");
932
- for (y = a; m.charCodeAt(y - 1) === 92; )
933
- y -= 1, b = !b;
815
+ if (b = !1, a = m.indexOf(d, a + 1), a === -1) if (p || $) {
816
+ a = w + 1;
817
+ break;
818
+ } else _("string");
819
+ for (y = a; m.charCodeAt(y - 1) === 92; ) y -= 1, b = !b;
934
820
  } while (b);
935
821
  l = ["string", m.slice(w, a + 1), w, a], w = a;
936
822
  break;
@@ -940,11 +826,9 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
940
826
  break;
941
827
  }
942
828
  case 92: {
943
- for (a = w, h = !0; m.charCodeAt(a + 1) === 92; )
944
- a += 1, h = !h;
829
+ for (a = w, h = !0; m.charCodeAt(a + 1) === 92; ) a += 1, h = !h;
945
830
  if (r = m.charCodeAt(a + 1), h && r !== 47 && r !== 32 && r !== 10 && r !== 9 && r !== 13 && r !== 12 && (a += 1, i.test(m.charAt(a)))) {
946
- for (; i.test(m.charAt(a + 1)); )
947
- a += 1;
831
+ for (; i.test(m.charAt(a + 1)); ) a += 1;
948
832
  m.charCodeAt(a + 1) === 32 && (a += 1);
949
833
  }
950
834
  l = ["word", m.slice(w, a + 1), w, a], w = a;
@@ -967,8 +851,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
967
851
  function p(t) {
968
852
  for (let h = t.length - 1; h >= 0; h--) {
969
853
  let a = t[h], d = a[3] || a[2];
970
- if (d)
971
- return d;
854
+ if (d) return d;
972
855
  }
973
856
  }
974
857
  var r = class {
@@ -980,25 +863,21 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
980
863
  h.name = t[1].slice(1), h.name === "" && this.unnamedAtrule(h, t), this.init(h, t[2]);
981
864
  let a, d, l, b = !1, y = !1, v = [], g = [];
982
865
  for (; !this.tokenizer.endOfFile(); ) {
983
- if (t = this.tokenizer.nextToken(), a = t[0], a === "(" || a === "[" ? g.push(a === "(" ? ")" : "]") : a === "{" && g.length > 0 ? g.push("}") : a === g[g.length - 1] && g.pop(), g.length === 0)
984
- if (a === ";") {
985
- h.source.end = this.getPosition(t[2]), h.source.end.offset++, this.semicolon = !0;
986
- break;
987
- } else if (a === "{") {
988
- y = !0;
989
- break;
990
- } else if (a === "}") {
991
- if (v.length > 0) {
992
- for (l = v.length - 1, d = v[l]; d && d[0] === "space"; )
993
- d = v[--l];
994
- d && (h.source.end = this.getPosition(d[3] || d[2]), h.source.end.offset++);
995
- }
996
- this.end(t);
997
- break;
998
- } else
999
- v.push(t);
1000
- else
1001
- v.push(t);
866
+ if (t = this.tokenizer.nextToken(), a = t[0], a === "(" || a === "[" ? g.push(a === "(" ? ")" : "]") : a === "{" && g.length > 0 ? g.push("}") : a === g[g.length - 1] && g.pop(), g.length === 0) if (a === ";") {
867
+ h.source.end = this.getPosition(t[2]), h.source.end.offset++, this.semicolon = !0;
868
+ break;
869
+ } else if (a === "{") {
870
+ y = !0;
871
+ break;
872
+ } else if (a === "}") {
873
+ if (v.length > 0) {
874
+ for (l = v.length - 1, d = v[l]; d && d[0] === "space"; ) d = v[--l];
875
+ d && (h.source.end = this.getPosition(d[3] || d[2]), h.source.end.offset++);
876
+ }
877
+ this.end(t);
878
+ break;
879
+ } else v.push(t);
880
+ else v.push(t);
1002
881
  if (this.tokenizer.endOfFile()) {
1003
882
  b = !0;
1004
883
  break;
@@ -1008,24 +887,19 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1008
887
  }
1009
888
  checkMissedSemicolon(t) {
1010
889
  let h = this.colon(t);
1011
- if (h === !1)
1012
- return;
890
+ if (h === !1) return;
1013
891
  let a = 0, d;
1014
- for (let l = h - 1; l >= 0 && (d = t[l], !(d[0] !== "space" && (a += 1, a === 2))); l--)
1015
- ;
892
+ for (let l = h - 1; l >= 0 && (d = t[l], !(d[0] !== "space" && (a += 1, a === 2))); l--) ;
1016
893
  throw this.input.error("Missed semicolon", d[0] === "word" ? d[3] + 1 : d[2]);
1017
894
  }
1018
895
  colon(t) {
1019
896
  let h = 0, a, d, l;
1020
897
  for (let [b, y] of t.entries()) {
1021
- if (d = y, l = d[0], l === "(" && (h += 1), l === ")" && (h -= 1), h === 0 && l === ":")
1022
- if (!a)
1023
- this.doubleColon(d);
1024
- else {
1025
- if (a[0] === "word" && a[1] === "progid")
1026
- continue;
1027
- return b;
1028
- }
898
+ if (d = y, l = d[0], l === "(" && (h += 1), l === ")" && (h -= 1), h === 0 && l === ":") if (!a) this.doubleColon(d);
899
+ else {
900
+ if (a[0] === "word" && a[1] === "progid") continue;
901
+ return b;
902
+ }
1029
903
  a = d;
1030
904
  }
1031
905
  return !1;
@@ -1034,8 +908,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1034
908
  let h = new o();
1035
909
  this.init(h, t[2]), h.source.end = this.getPosition(t[3] || t[2]), h.source.end.offset++;
1036
910
  let a = t[1].slice(2, -2);
1037
- if (/^\s*$/.test(a))
1038
- h.text = "", h.raws.left = a, h.raws.right = "";
911
+ if (/^\s*$/.test(a)) h.text = "", h.raws.left = a, h.raws.right = "";
1039
912
  else {
1040
913
  let d = a.match(/^(\s*)([^]*\S)(\s*)$/);
1041
914
  h.text = d[2], h.raws.left = d[1], h.raws.right = d[3];
@@ -1048,26 +921,21 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1048
921
  let a = new c();
1049
922
  this.init(a, t[0][2]);
1050
923
  let d = t[t.length - 1];
1051
- for (d[0] === ";" && (this.semicolon = !0, t.pop()), a.source.end = this.getPosition(d[3] || d[2] || p(t)), a.source.end.offset++; t[0][0] !== "word"; )
1052
- t.length === 1 && this.unknownWord(t), a.raws.before += t.shift()[1];
924
+ for (d[0] === ";" && (this.semicolon = !0, t.pop()), a.source.end = this.getPosition(d[3] || d[2] || p(t)), a.source.end.offset++; t[0][0] !== "word"; ) t.length === 1 && this.unknownWord(t), a.raws.before += t.shift()[1];
1053
925
  for (a.source.start = this.getPosition(t[0][2]), a.prop = ""; t.length; ) {
1054
926
  let v = t[0][0];
1055
- if (v === ":" || v === "space" || v === "comment")
1056
- break;
927
+ if (v === ":" || v === "space" || v === "comment") break;
1057
928
  a.prop += t.shift()[1];
1058
929
  }
1059
930
  a.raws.between = "";
1060
931
  let l;
1061
- for (; t.length; )
1062
- if (l = t.shift(), l[0] === ":") {
1063
- a.raws.between += l[1];
1064
- break;
1065
- } else
1066
- l[0] === "word" && /\w/.test(l[1]) && this.unknownWord([l]), a.raws.between += l[1];
932
+ for (; t.length; ) if (l = t.shift(), l[0] === ":") {
933
+ a.raws.between += l[1];
934
+ break;
935
+ } else l[0] === "word" && /\w/.test(l[1]) && this.unknownWord([l]), a.raws.between += l[1];
1067
936
  (a.prop[0] === "_" || a.prop[0] === "*") && (a.raws.before += a.prop[0], a.prop = a.prop.slice(1));
1068
937
  let b = [], y;
1069
- for (; t.length && (y = t[0][0], !(y !== "space" && y !== "comment")); )
1070
- b.push(t.shift());
938
+ for (; t.length && (y = t[0][0], !(y !== "space" && y !== "comment")); ) b.push(t.shift());
1071
939
  this.precheckMissedSemicolon(t);
1072
940
  for (let v = t.length - 1; v >= 0; v--) {
1073
941
  if (l = t[v], l[1].toLowerCase() === "!important") {
@@ -1079,14 +947,12 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1079
947
  let g = t.slice(0), k = "";
1080
948
  for (let w = v; w > 0; w--) {
1081
949
  let x = g[w][0];
1082
- if (k.trim().startsWith("!") && x !== "space")
1083
- break;
950
+ if (k.trim().startsWith("!") && x !== "space") break;
1084
951
  k = g.pop()[1] + k;
1085
952
  }
1086
953
  k.trim().startsWith("!") && (a.important = !0, a.raws.important = k, t = g);
1087
954
  }
1088
- if (l[0] !== "space" && l[0] !== "comment")
1089
- break;
955
+ if (l[0] !== "space" && l[0] !== "comment") break;
1090
956
  }
1091
957
  t.some((v) => v[0] !== "space" && v[0] !== "comment") && (a.raws.between += b.map((v) => v[1]).join(""), b = []), this.raw(a, "value", b.concat(t), h), a.value.includes(":") && !h && this.checkMissedSemicolon(t);
1092
958
  }
@@ -1119,71 +985,59 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1119
985
  other(t) {
1120
986
  let h = !1, a = null, d = !1, l = null, b = [], y = t[1].startsWith("--"), v = [], g = t;
1121
987
  for (; g; ) {
1122
- if (a = g[0], v.push(g), a === "(" || a === "[")
1123
- l || (l = g), b.push(a === "(" ? ")" : "]");
1124
- else if (y && d && a === "{")
1125
- l || (l = g), b.push("}");
1126
- else if (b.length === 0)
1127
- if (a === ";")
1128
- if (d) {
1129
- this.decl(v, y);
1130
- return;
1131
- } else
1132
- break;
1133
- else if (a === "{") {
1134
- this.rule(v);
1135
- return;
1136
- } else if (a === "}") {
1137
- this.tokenizer.back(v.pop()), h = !0;
1138
- break;
1139
- } else
1140
- a === ":" && (d = !0);
1141
- else
1142
- a === b[b.length - 1] && (b.pop(), b.length === 0 && (l = null));
988
+ if (a = g[0], v.push(g), a === "(" || a === "[") l || (l = g), b.push(a === "(" ? ")" : "]");
989
+ else if (y && d && a === "{") l || (l = g), b.push("}");
990
+ else if (b.length === 0) if (a === ";") if (d) {
991
+ this.decl(v, y);
992
+ return;
993
+ } else break;
994
+ else if (a === "{") {
995
+ this.rule(v);
996
+ return;
997
+ } else if (a === "}") {
998
+ this.tokenizer.back(v.pop()), h = !0;
999
+ break;
1000
+ } else a === ":" && (d = !0);
1001
+ else a === b[b.length - 1] && (b.pop(), b.length === 0 && (l = null));
1143
1002
  g = this.tokenizer.nextToken();
1144
1003
  }
1145
1004
  if (this.tokenizer.endOfFile() && (h = !0), b.length > 0 && this.unclosedBracket(l), h && d) {
1146
- if (!y)
1147
- for (; v.length && (g = v[v.length - 1][0], !(g !== "space" && g !== "comment")); )
1148
- this.tokenizer.back(v.pop());
1005
+ if (!y) for (; v.length && (g = v[v.length - 1][0], !(g !== "space" && g !== "comment")); ) this.tokenizer.back(v.pop());
1149
1006
  this.decl(v, y);
1150
- } else
1151
- this.unknownWord(v);
1007
+ } else this.unknownWord(v);
1152
1008
  }
1153
1009
  parse() {
1154
1010
  let t;
1155
- for (; !this.tokenizer.endOfFile(); )
1156
- switch (t = this.tokenizer.nextToken(), t[0]) {
1157
- case "space":
1158
- this.spaces += t[1];
1159
- break;
1160
- case ";":
1161
- this.freeSemicolon(t);
1162
- break;
1163
- case "}":
1164
- this.end(t);
1165
- break;
1166
- case "comment":
1167
- this.comment(t);
1168
- break;
1169
- case "at-word":
1170
- this.atrule(t);
1171
- break;
1172
- case "{":
1173
- this.emptyRule(t);
1174
- break;
1175
- default:
1176
- this.other(t);
1177
- break;
1178
- }
1011
+ for (; !this.tokenizer.endOfFile(); ) switch (t = this.tokenizer.nextToken(), t[0]) {
1012
+ case "space":
1013
+ this.spaces += t[1];
1014
+ break;
1015
+ case ";":
1016
+ this.freeSemicolon(t);
1017
+ break;
1018
+ case "}":
1019
+ this.end(t);
1020
+ break;
1021
+ case "comment":
1022
+ this.comment(t);
1023
+ break;
1024
+ case "at-word":
1025
+ this.atrule(t);
1026
+ break;
1027
+ case "{":
1028
+ this.emptyRule(t);
1029
+ break;
1030
+ default:
1031
+ this.other(t);
1032
+ break;
1033
+ }
1179
1034
  this.endFile();
1180
1035
  }
1181
1036
  precheckMissedSemicolon() {
1182
1037
  }
1183
1038
  raw(t, h, a, d) {
1184
1039
  let l, b, y = a.length, v = "", g = !0, k, w;
1185
- for (let x = 0; x < y; x += 1)
1186
- l = a[x], b = l[0], b === "space" && x === y - 1 && !d ? g = !1 : b === "comment" ? (w = a[x - 1] ? a[x - 1][0] : "empty", k = a[x + 1] ? a[x + 1][0] : "empty", !m[w] && !m[k] ? v.slice(-1) === "," ? g = !1 : v += l[1] : g = !1) : v += l[1];
1040
+ for (let x = 0; x < y; x += 1) l = a[x], b = l[0], b === "space" && x === y - 1 && !d ? g = !1 : b === "comment" ? (w = a[x - 1] ? a[x - 1][0] : "empty", k = a[x + 1] ? a[x + 1][0] : "empty", !m[w] && !m[k] ? v.slice(-1) === "," ? g = !1 : v += l[1] : g = !1) : v += l[1];
1187
1041
  if (!g) {
1188
1042
  let x = a.reduce((O, T) => O + T[1], "");
1189
1043
  t.raws[h] = { raw: x, value: v };
@@ -1197,26 +1051,22 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1197
1051
  }
1198
1052
  spacesAndCommentsFromEnd(t) {
1199
1053
  let h, a = "";
1200
- for (; t.length && (h = t[t.length - 1][0], !(h !== "space" && h !== "comment")); )
1201
- a = t.pop()[1] + a;
1054
+ for (; t.length && (h = t[t.length - 1][0], !(h !== "space" && h !== "comment")); ) a = t.pop()[1] + a;
1202
1055
  return a;
1203
1056
  }
1204
1057
  spacesAndCommentsFromStart(t) {
1205
1058
  let h, a = "";
1206
- for (; t.length && (h = t[0][0], !(h !== "space" && h !== "comment")); )
1207
- a += t.shift()[1];
1059
+ for (; t.length && (h = t[0][0], !(h !== "space" && h !== "comment")); ) a += t.shift()[1];
1208
1060
  return a;
1209
1061
  }
1210
1062
  spacesFromEnd(t) {
1211
1063
  let h, a = "";
1212
- for (; t.length && (h = t[t.length - 1][0], h === "space"); )
1213
- a = t.pop()[1] + a;
1064
+ for (; t.length && (h = t[t.length - 1][0], h === "space"); ) a = t.pop()[1] + a;
1214
1065
  return a;
1215
1066
  }
1216
1067
  stringFrom(t, h) {
1217
1068
  let a = "";
1218
- for (let d = h; d < t.length; d++)
1219
- a += t[d][1];
1069
+ for (let d = h; d < t.length; d++) a += t[d][1];
1220
1070
  return t.splice(h, t.length - h), a;
1221
1071
  }
1222
1072
  unclosedBlock() {
@@ -1262,8 +1112,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1262
1112
  `));
1263
1113
  let r = this.input.css.valueOf().substring(this.tokenizer.position());
1264
1114
  m += r, u = c[3] + r.length - m.length;
1265
- } else
1266
- this.tokenizer.back(c);
1115
+ } else this.tokenizer.back(c);
1267
1116
  break;
1268
1117
  }
1269
1118
  f.push(c[1]), u = c[2], c = this.tokenizer.nextToken({ ignoreUnclosed: !0 });
@@ -1272,18 +1121,15 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1272
1121
  return this.inlineComment(p), m && (this.input = new o(m), this.tokenizer = n(this.input)), !0;
1273
1122
  } else if (c[1] === "/") {
1274
1123
  let i = this.tokenizer.nextToken({ ignoreUnclosed: !0 });
1275
- if (i[0] === "comment" && /^\/\*/.test(i[1]))
1276
- return i[0] = "word", i[1] = i[1].slice(1), c[1] = "//", this.tokenizer.back(i), s.exports.isInlineComment.bind(this)(c);
1124
+ if (i[0] === "comment" && /^\/\*/.test(i[1])) return i[0] = "word", i[1] = i[1].slice(1), c[1] = "//", this.tokenizer.back(i), s.exports.isInlineComment.bind(this)(c);
1277
1125
  }
1278
1126
  return !1;
1279
1127
  } };
1280
1128
  }), as = E((e, s) => {
1281
1129
  s.exports = { interpolation(n) {
1282
1130
  let o = [n, this.tokenizer.nextToken()], c = ["word", "}"];
1283
- if (o[0][1].length > 1 || o[1][0] !== "{")
1284
- return this.tokenizer.back(o[1]), !1;
1285
- for (n = this.tokenizer.nextToken(); n && c.includes(n[0]); )
1286
- o.push(n), n = this.tokenizer.nextToken();
1131
+ if (o[0][1].length > 1 || o[1][0] !== "{") return this.tokenizer.back(o[1]), !1;
1132
+ for (n = this.tokenizer.nextToken(); n && c.includes(n[0]); ) o.push(n), n = this.tokenizer.nextToken();
1287
1133
  let i = o.map((p) => p[1]), [f] = o, u = o.pop(), m = ["word", i.join(""), f[2], u[2]];
1288
1134
  return this.tokenizer.back(n), this.tokenizer.back(m), !0;
1289
1135
  } };
@@ -1302,8 +1148,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1302
1148
  let u = n({ css: f });
1303
1149
  for (c.filename = f.replace(o, "$1"); !u.endOfFile(); ) {
1304
1150
  let [m, p] = u.nextToken();
1305
- if (m === "word" && p === "url")
1306
- return;
1151
+ if (m === "word" && p === "url") return;
1307
1152
  if (m === "brackets") {
1308
1153
  c.options = p, c.filename = f.replace(p, "").trim();
1309
1154
  break;
@@ -1341,8 +1186,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1341
1186
  each(r) {
1342
1187
  r[0][1] = ` ${r[0][1]}`;
1343
1188
  let t = r.findIndex((l) => l[0] === "("), h = r.reverse().find((l) => l[0] === ")"), a = r.reverse().indexOf(h), d = r.splice(t, a).map((l) => l[1]).join("");
1344
- for (let l of r.reverse())
1345
- this.tokenizer.back(l);
1189
+ for (let l of r.reverse()) this.tokenizer.back(l);
1346
1190
  this.atrule(this.tokenizer.nextToken()), this.lastNode.function = !0, this.lastNode.params = d;
1347
1191
  }
1348
1192
  init(r, t, h) {
@@ -1350,8 +1194,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1350
1194
  }
1351
1195
  inlineComment(r) {
1352
1196
  let t = new n(), h = r[1].slice(2);
1353
- if (this.init(t, r[2]), t.source.end = this.getPosition(r[3] || r[2]), t.inline = !0, t.raws.begin = "//", /^\s*$/.test(h))
1354
- t.text = "", t.raws.left = h, t.raws.right = "";
1197
+ if (this.init(t, r[2]), t.source.end = this.getPosition(r[3] || r[2]), t.inline = !0, t.raws.begin = "//", /^\s*$/.test(h)) t.text = "", t.raws.left = h, t.raws.right = "";
1355
1198
  else {
1356
1199
  let a = h.match(/^(\s*)([^]*[^\s])(\s*)$/);
1357
1200
  [, t.raws.left, t.text, t.raws.right] = a;
@@ -1364,17 +1207,14 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1364
1207
  r = _, r.push(T), r = r.concat(A);
1365
1208
  }
1366
1209
  let b = [];
1367
- for (let v of r)
1368
- if ((v[1] === "!" || b.length) && b.push(v), v[1] === "important")
1369
- break;
1210
+ for (let v of r) if ((v[1] === "!" || b.length) && b.push(v), v[1] === "important") break;
1370
1211
  if (b.length) {
1371
1212
  let [v] = b, g = r.indexOf(v), k = b[b.length - 1], w = [v[2], v[3]], x = [k[4], k[5]], O = ["word", b.map((T) => T[1]).join("")].concat(w, x);
1372
1213
  r.splice(g, b.length, O);
1373
1214
  }
1374
1215
  let y = r.findIndex((v) => p.test(v[1]));
1375
1216
  y > 0 && ([, l] = r[y], r.splice(y, 1));
1376
- for (let v of r.reverse())
1377
- this.tokenizer.back(v);
1217
+ for (let v of r.reverse()) this.tokenizer.back(v);
1378
1218
  this.atrule(this.tokenizer.nextToken()), this.lastNode.mixin = !0, this.lastNode.raws.identifier = h, l && (this.lastNode.important = !0, this.lastNode.raws.important = l);
1379
1219
  }
1380
1220
  other(r) {
@@ -1385,8 +1225,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1385
1225
  if (h[0] === "at-word" && t[0] === "{" && (this.tokenizer.back(t), i.bind(this)(h))) {
1386
1226
  let a = this.tokenizer.nextToken();
1387
1227
  r = r.slice(0, r.length - 2).concat([a]);
1388
- for (let d of r.reverse())
1389
- this.tokenizer.back(d);
1228
+ for (let d of r.reverse()) this.tokenizer.back(d);
1390
1229
  return;
1391
1230
  }
1392
1231
  super.rule(r), /:extend\(.+\)/i.test(this.lastNode.selector) && (this.lastNode.extend = !0);
@@ -1413,8 +1252,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1413
1252
  return;
1414
1253
  }
1415
1254
  let i = `${o.function ? "" : o.raws.identifier || "@"}${o.name}`, f = o.params ? this.rawValue(o, "params") : "", u = o.raws.important || "";
1416
- if (o.variable && (f = o.value), typeof o.raws.afterName < "u" ? i += o.raws.afterName : f && (i += " "), o.nodes)
1417
- this.block(o, i + f + u);
1255
+ if (o.variable && (f = o.value), typeof o.raws.afterName < "u" ? i += o.raws.afterName : f && (i += " "), o.nodes) this.block(o, i + f + u);
1418
1256
  else {
1419
1257
  let m = (o.raws.between || "") + u + (c ? ";" : "");
1420
1258
  this.builder(i + f + m, o);
@@ -1424,8 +1262,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1424
1262
  if (o.inline) {
1425
1263
  let c = this.raw(o, "left", "commentLeft"), i = this.raw(o, "right", "commentRight");
1426
1264
  this.builder(`//${c}${o.text}${i}`, o);
1427
- } else
1428
- super.comment(o);
1265
+ } else super.comment(o);
1429
1266
  }
1430
1267
  };
1431
1268
  }), hs = E((e, s) => {
@@ -1434,10 +1271,8 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1434
1271
  let u = new n(i, f), m = new o(u);
1435
1272
  return m.parse(), m.root.walk((p) => {
1436
1273
  let r = u.css.lastIndexOf(p.source.input.css);
1437
- if (r === 0)
1438
- return;
1439
- if (r + p.source.input.css.length !== u.css.length)
1440
- throw new Error("Invalid state detected in postcss-less");
1274
+ if (r === 0) return;
1275
+ if (r + p.source.input.css.length !== u.css.length) throw new Error("Invalid state detected in postcss-less");
1441
1276
  let t = r + p.source.start.offset, h = u.fromOffset(r + p.source.start.offset);
1442
1277
  if (p.source.start = { offset: t, line: h.line, column: h.col }, p.source.end) {
1443
1278
  let a = r + p.source.end.offset, d = u.fromOffset(r + p.source.end.offset);
@@ -1469,8 +1304,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1469
1304
  }), ds = E((e, s) => {
1470
1305
  var n = Ot(), o = Re(), c = tt(), i = Ne(), f = Yt(), u = Le(), m = Tt();
1471
1306
  function p(r, t) {
1472
- if (Array.isArray(r))
1473
- return r.map((d) => p(d));
1307
+ if (Array.isArray(r)) return r.map((d) => p(d));
1474
1308
  let { inputs: h, ...a } = r;
1475
1309
  if (h) {
1476
1310
  t = [];
@@ -1483,16 +1317,11 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1483
1317
  let { inputId: d, ...l } = a.source;
1484
1318
  a.source = l, d != null && (a.source.input = t[d]);
1485
1319
  }
1486
- if (a.type === "root")
1487
- return new u(a);
1488
- if (a.type === "decl")
1489
- return new c(a);
1490
- if (a.type === "rule")
1491
- return new m(a);
1492
- if (a.type === "comment")
1493
- return new o(a);
1494
- if (a.type === "atrule")
1495
- return new n(a);
1320
+ if (a.type === "root") return new u(a);
1321
+ if (a.type === "decl") return new c(a);
1322
+ if (a.type === "rule") return new m(a);
1323
+ if (a.type === "comment") return new o(a);
1324
+ if (a.type === "atrule") return new n(a);
1496
1325
  throw new Error("Unknown node type: " + r.type);
1497
1326
  }
1498
1327
  s.exports = p, p.default = p;
@@ -1508,8 +1337,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1508
1337
  let i = c.node.rangeBy(c);
1509
1338
  this.line = i.start.line, this.column = i.start.column, this.endLine = i.end.line, this.endColumn = i.end.column;
1510
1339
  }
1511
- for (let i in c)
1512
- this[i] = c[i];
1340
+ for (let i in c) this[i] = c[i];
1513
1341
  }
1514
1342
  toString() {
1515
1343
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
@@ -1588,10 +1416,8 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1588
1416
  constructor(x, O, T) {
1589
1417
  this.stringified = !1, this.processed = !1;
1590
1418
  let _;
1591
- if (typeof O == "object" && O !== null && (O.type === "root" || O.type === "document"))
1592
- _ = v(O);
1593
- else if (O instanceof or || O instanceof f)
1594
- _ = v(O.root), O.map && (typeof T.map > "u" && (T.map = {}), T.map.inline || (T.map.inline = !1), T.map.prev = O.map);
1419
+ if (typeof O == "object" && O !== null && (O.type === "root" || O.type === "document")) _ = v(O);
1420
+ else if (O instanceof or || O instanceof f) _ = v(O.root), O.map && (typeof T.map > "u" && (T.map = {}), T.map.inline || (T.map.inline = !1), T.map.prev = O.map);
1595
1421
  else {
1596
1422
  let A = i;
1597
1423
  T.syntax && (A = T.syntax.parse), T.parser && (A = T.parser), A.parse && (A = A.parse);
@@ -1630,30 +1456,22 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1630
1456
  let x = (O, T, _) => {
1631
1457
  this.listeners[T] || (this.listeners[T] = []), this.listeners[T].push([O, _]);
1632
1458
  };
1633
- for (let O of this.plugins)
1634
- if (typeof O == "object")
1635
- for (let T in O) {
1636
- if (!h[T] && /^[A-Z]/.test(T))
1637
- throw new Error(`Unknown event ${T} in ${O.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
1638
- if (!a[T])
1639
- if (typeof O[T] == "object")
1640
- for (let _ in O[T])
1641
- _ === "*" ? x(O, T, O[T][_]) : x(O, T + "-" + _.toLowerCase(), O[T][_]);
1642
- else
1643
- typeof O[T] == "function" && x(O, T, O[T]);
1644
- }
1459
+ for (let O of this.plugins) if (typeof O == "object") for (let T in O) {
1460
+ if (!h[T] && /^[A-Z]/.test(T)) throw new Error(`Unknown event ${T} in ${O.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
1461
+ if (!a[T]) if (typeof O[T] == "object") for (let _ in O[T]) _ === "*" ? x(O, T, O[T][_]) : x(O, T + "-" + _.toLowerCase(), O[T][_]);
1462
+ else typeof O[T] == "function" && x(O, T, O[T]);
1463
+ }
1645
1464
  this.hasListener = Object.keys(this.listeners).length > 0;
1646
1465
  }
1647
1466
  async runAsync() {
1648
1467
  this.plugin = 0;
1649
1468
  for (let x = 0; x < this.plugins.length; x++) {
1650
1469
  let O = this.plugins[x], T = this.runOnRoot(O);
1651
- if (l(T))
1652
- try {
1653
- await T;
1654
- } catch (_) {
1655
- throw this.handleError(_);
1656
- }
1470
+ if (l(T)) try {
1471
+ await T;
1472
+ } catch (_) {
1473
+ throw this.handleError(_);
1474
+ }
1657
1475
  }
1658
1476
  if (this.prepareVisitors(), this.hasListener) {
1659
1477
  let x = this.result.root;
@@ -1662,28 +1480,25 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1662
1480
  let O = [y(x)];
1663
1481
  for (; O.length > 0; ) {
1664
1482
  let T = this.visitTick(O);
1665
- if (l(T))
1666
- try {
1667
- await T;
1668
- } catch (_) {
1669
- let A = O[O.length - 1].node;
1670
- throw this.handleError(_, A);
1671
- }
1672
- }
1673
- }
1674
- if (this.listeners.OnceExit)
1675
- for (let [O, T] of this.listeners.OnceExit) {
1676
- this.result.lastPlugin = O;
1677
- try {
1678
- if (x.type === "document") {
1679
- let _ = x.nodes.map((A) => T(A, this.helpers));
1680
- await Promise.all(_);
1681
- } else
1682
- await T(x, this.helpers);
1483
+ if (l(T)) try {
1484
+ await T;
1683
1485
  } catch (_) {
1684
- throw this.handleError(_);
1486
+ let A = O[O.length - 1].node;
1487
+ throw this.handleError(_, A);
1685
1488
  }
1686
1489
  }
1490
+ }
1491
+ if (this.listeners.OnceExit) for (let [O, T] of this.listeners.OnceExit) {
1492
+ this.result.lastPlugin = O;
1493
+ try {
1494
+ if (x.type === "document") {
1495
+ let _ = x.nodes.map((A) => T(A, this.helpers));
1496
+ await Promise.all(_);
1497
+ } else await T(x, this.helpers);
1498
+ } catch (_) {
1499
+ throw this.handleError(_);
1500
+ }
1501
+ }
1687
1502
  }
1688
1503
  return this.processed = !0, this.stringify();
1689
1504
  }
@@ -1696,17 +1511,14 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1696
1511
  return l(O[0]) ? Promise.all(O) : O;
1697
1512
  }
1698
1513
  return x.Once(this.result.root, this.helpers);
1699
- } else if (typeof x == "function")
1700
- return x(this.result.root, this.result);
1514
+ } else if (typeof x == "function") return x(this.result.root, this.result);
1701
1515
  } catch (O) {
1702
1516
  throw this.handleError(O);
1703
1517
  }
1704
1518
  }
1705
1519
  stringify() {
1706
- if (this.error)
1707
- throw this.error;
1708
- if (this.stringified)
1709
- return this.result;
1520
+ if (this.error) throw this.error;
1521
+ if (this.stringified) return this.result;
1710
1522
  this.stringified = !0, this.sync();
1711
1523
  let x = this.result.opts, O = m;
1712
1524
  x.syntax && (O = x.syntax.stringify), x.stringifier && (O = x.stringifier), O.stringify && (O = O.stringify);
@@ -1714,27 +1526,18 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1714
1526
  return this.result.css = T[0], this.result.map = T[1], this.result;
1715
1527
  }
1716
1528
  sync() {
1717
- if (this.error)
1718
- throw this.error;
1719
- if (this.processed)
1720
- return this.result;
1721
- if (this.processed = !0, this.processing)
1722
- throw this.getAsyncError();
1529
+ if (this.error) throw this.error;
1530
+ if (this.processed) return this.result;
1531
+ if (this.processed = !0, this.processing) throw this.getAsyncError();
1723
1532
  for (let x of this.plugins) {
1724
1533
  let O = this.runOnRoot(x);
1725
- if (l(O))
1726
- throw this.getAsyncError();
1534
+ if (l(O)) throw this.getAsyncError();
1727
1535
  }
1728
1536
  if (this.prepareVisitors(), this.hasListener) {
1729
1537
  let x = this.result.root;
1730
- for (; !x[p]; )
1731
- x[p] = !0, this.walkSync(x);
1732
- if (this.listeners.OnceExit)
1733
- if (x.type === "document")
1734
- for (let O of x.nodes)
1735
- this.visitSync(this.listeners.OnceExit, O);
1736
- else
1737
- this.visitSync(this.listeners.OnceExit, x);
1538
+ for (; !x[p]; ) x[p] = !0, this.walkSync(x);
1539
+ if (this.listeners.OnceExit) if (x.type === "document") for (let O of x.nodes) this.visitSync(this.listeners.OnceExit, O);
1540
+ else this.visitSync(this.listeners.OnceExit, x);
1738
1541
  }
1739
1542
  return this.result;
1740
1543
  }
@@ -1753,10 +1556,8 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1753
1556
  } catch (I) {
1754
1557
  throw this.handleError(I, O.proxyOf);
1755
1558
  }
1756
- if (O.type !== "root" && O.type !== "document" && !O.parent)
1757
- return !0;
1758
- if (l(A))
1759
- throw this.getAsyncError();
1559
+ if (O.type !== "root" && O.type !== "document" && !O.parent) return !0;
1560
+ if (l(A)) throw this.getAsyncError();
1760
1561
  }
1761
1562
  }
1762
1563
  visitTick(x) {
@@ -1776,11 +1577,10 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1776
1577
  }
1777
1578
  if (O.iterator !== 0) {
1778
1579
  let I = O.iterator, N;
1779
- for (; N = T.nodes[T.indexes[I]]; )
1780
- if (T.indexes[I] += 1, !N[p]) {
1781
- N[p] = !0, x.push(y(N));
1782
- return;
1783
- }
1580
+ for (; N = T.nodes[T.indexes[I]]; ) if (T.indexes[I] += 1, !N[p]) {
1581
+ N[p] = !0, x.push(y(N));
1582
+ return;
1583
+ }
1784
1584
  O.iterator = 0, delete T.indexes[I];
1785
1585
  }
1786
1586
  let A = O.events;
@@ -1799,16 +1599,13 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1799
1599
  walkSync(x) {
1800
1600
  x[p] = !0;
1801
1601
  let O = b(x);
1802
- for (let T of O)
1803
- if (T === d)
1804
- x.nodes && x.each((_) => {
1805
- _[p] || this.walkSync(_);
1806
- });
1807
- else {
1808
- let _ = this.listeners[T];
1809
- if (_ && this.visitSync(_, x.toProxy()))
1810
- return;
1811
- }
1602
+ for (let T of O) if (T === d) x.nodes && x.each((_) => {
1603
+ _[p] || this.walkSync(_);
1604
+ });
1605
+ else {
1606
+ let _ = this.listeners[T];
1607
+ if (_ && this.visitSync(_, x.toProxy())) return;
1608
+ }
1812
1609
  }
1813
1610
  warnings() {
1814
1611
  return this.sync().warnings();
@@ -1840,16 +1637,14 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1840
1637
  return this.result.processor;
1841
1638
  }
1842
1639
  get root() {
1843
- if (this._root)
1844
- return this._root;
1640
+ if (this._root) return this._root;
1845
1641
  let u, m = o;
1846
1642
  try {
1847
1643
  u = m(this._css, this._opts);
1848
1644
  } catch (p) {
1849
1645
  this.error = p;
1850
1646
  }
1851
- if (this.error)
1852
- throw this.error;
1647
+ if (this.error) throw this.error;
1853
1648
  return this._root = u, u;
1854
1649
  }
1855
1650
  get [Symbol.toStringTag]() {
@@ -1867,8 +1662,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1867
1662
  if (a.isMap()) {
1868
1663
  let [d, l] = a.generate();
1869
1664
  d && (this.result.css = d), l && (this.result.map = l);
1870
- } else
1871
- a.clearAnnotation(), this.result.css = a.css;
1665
+ } else a.clearAnnotation(), this.result.css = a.css;
1872
1666
  }
1873
1667
  async() {
1874
1668
  return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
@@ -1880,8 +1674,7 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1880
1674
  return this.async().then(u, u);
1881
1675
  }
1882
1676
  sync() {
1883
- if (this.error)
1884
- throw this.error;
1677
+ if (this.error) throw this.error;
1885
1678
  return this.result;
1886
1679
  }
1887
1680
  then(u, m) {
@@ -1902,15 +1695,10 @@ var Kr = Object.create, wt = Object.defineProperty, Xr = Object.getOwnPropertyDe
1902
1695
  }
1903
1696
  normalize(u) {
1904
1697
  let m = [];
1905
- for (let p of u)
1906
- if (p.postcss === !0 ? p = p() : p.postcss && (p = p.postcss), typeof p == "object" && Array.isArray(p.plugins))
1907
- m = m.concat(p.plugins);
1908
- else if (typeof p == "object" && p.postcssPlugin)
1909
- m.push(p);
1910
- else if (typeof p == "function")
1911
- m.push(p);
1912
- else if (!(typeof p == "object" && (p.parse || p.stringify)))
1913
- throw new Error(p + " is not a PostCSS plugin");
1698
+ for (let p of u) if (p.postcss === !0 ? p = p() : p.postcss && (p = p.postcss), typeof p == "object" && Array.isArray(p.plugins)) m = m.concat(p.plugins);
1699
+ else if (typeof p == "object" && p.postcssPlugin) m.push(p);
1700
+ else if (typeof p == "function") m.push(p);
1701
+ else if (!(typeof p == "object" && (p.parse || p.stringify))) throw new Error(p + " is not a PostCSS plugin");
1914
1702
  return m;
1915
1703
  }
1916
1704
  process(u, m = {}) {
@@ -1963,14 +1751,11 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
1963
1751
  }
1964
1752
  function N() {
1965
1753
  let M = 1, P = !1, D = !1;
1966
- for (; M > 0; )
1967
- h += 1, p.length <= h && A("interpolation"), t = p.charCodeAt(h), v = p.charCodeAt(h + 1), P ? !D && t === P ? (P = !1, D = !1) : t === 92 ? D = !D : D && (D = !1) : t === 39 || t === 34 ? P = t : t === 125 ? M -= 1 : t === 35 && v === 123 && (M += 1);
1754
+ for (; M > 0; ) h += 1, p.length <= h && A("interpolation"), t = p.charCodeAt(h), v = p.charCodeAt(h + 1), P ? !D && t === P ? (P = !1, D = !1) : t === 92 ? D = !D : D && (D = !1) : t === 39 || t === 34 ? P = t : t === 125 ? M -= 1 : t === 35 && v === 123 && (M += 1);
1968
1755
  }
1969
1756
  function R(M) {
1970
- if (O.length)
1971
- return O.pop();
1972
- if (w >= k)
1973
- return;
1757
+ if (O.length) return O.pop();
1758
+ if (w >= k) return;
1974
1759
  let P = M ? M.ignoreUnclosed : !1;
1975
1760
  switch (t = p.charCodeAt(w), t) {
1976
1761
  case 10:
@@ -2003,23 +1788,18 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2003
1788
  case 40: {
2004
1789
  if (y = x.length ? x.pop()[1] : "", v = p.charCodeAt(w + 1), y === "url" && v !== 39 && v !== 34) {
2005
1790
  for (T = 1, b = !1, h = w + 1; h <= p.length - 1; ) {
2006
- if (v = p.charCodeAt(h), v === 92)
2007
- b = !b;
2008
- else if (v === 40)
2009
- T += 1;
2010
- else if (v === 41 && (T -= 1, T === 0))
2011
- break;
1791
+ if (v = p.charCodeAt(h), v === 92) b = !b;
1792
+ else if (v === 40) T += 1;
1793
+ else if (v === 41 && (T -= 1, T === 0)) break;
2012
1794
  h += 1;
2013
1795
  }
2014
1796
  d = p.slice(w, h + 1), g = ["brackets", d, w, h], w = h;
2015
- } else
2016
- h = p.indexOf(")", w + 1), d = p.slice(w, h + 1), h === -1 || c.test(d) ? g = ["(", "(", w] : (g = ["brackets", d, w, h], w = h);
1797
+ } else h = p.indexOf(")", w + 1), d = p.slice(w, h + 1), h === -1 || c.test(d) ? g = ["(", "(", w] : (g = ["brackets", d, w, h], w = h);
2017
1798
  break;
2018
1799
  }
2019
1800
  case 39:
2020
1801
  case 34: {
2021
- for (a = t, h = w, b = !1; h < k && (h++, h === k && A("string"), t = p.charCodeAt(h), v = p.charCodeAt(h + 1), !(!b && t === a)); )
2022
- t === 92 ? b = !b : b ? b = !1 : t === 35 && v === 123 && N();
1802
+ for (a = t, h = w, b = !1; h < k && (h++, h === k && A("string"), t = p.charCodeAt(h), v = p.charCodeAt(h + 1), !(!b && t === a)); ) t === 92 ? b = !b : b ? b = !1 : t === 35 && v === 123 && N();
2023
1803
  g = ["string", p.slice(w, h + 1), w, h], w = h;
2024
1804
  break;
2025
1805
  }
@@ -2028,11 +1808,9 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2028
1808
  break;
2029
1809
  }
2030
1810
  case 92: {
2031
- for (h = w, l = !0; p.charCodeAt(h + 1) === 92; )
2032
- h += 1, l = !l;
1811
+ for (h = w, l = !0; p.charCodeAt(h + 1) === 92; ) h += 1, l = !l;
2033
1812
  if (t = p.charCodeAt(h + 1), l && t !== 47 && t !== 32 && t !== 10 && t !== 9 && t !== 13 && t !== 12 && (h += 1, i.test(p.charAt(h)))) {
2034
- for (; i.test(p.charAt(h + 1)); )
2035
- h += 1;
1813
+ for (; i.test(p.charAt(h + 1)); ) h += 1;
2036
1814
  p.charCodeAt(h + 1) === 32 && (h += 1);
2037
1815
  }
2038
1816
  g = ["word", p.slice(w, h + 1), w, h], w = h;
@@ -2055,8 +1833,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2055
1833
  let m = u[1], p = u;
2056
1834
  for (; !this.tokenizer.endOfFile(); ) {
2057
1835
  let r = this.tokenizer.nextToken();
2058
- if (r[0] === "word" && r[2] === p[3] + 1)
2059
- m += r[1], p = r;
1836
+ if (r[0] === "word" && r[2] === p[3] + 1) m += r[1], p = r;
2060
1837
  else {
2061
1838
  this.tokenizer.back(r);
2062
1839
  break;
@@ -2071,14 +1848,12 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2071
1848
  let p = this.input.fromOffset(u[3]);
2072
1849
  m.source.end = { column: p.col, line: p.line, offset: u[3] + 1 };
2073
1850
  let r = u[1].slice(2);
2074
- if (/^\s*$/.test(r))
2075
- m.text = "", m.raws.left = r, m.raws.right = "";
1851
+ if (/^\s*$/.test(r)) m.text = "", m.raws.left = r, m.raws.right = "";
2076
1852
  else {
2077
1853
  let t = r.match(/^(\s*)([^]*\S)(\s*)$/), h = t[2].replace(/(\*\/|\/\*)/g, "*//*");
2078
1854
  m.text = h, m.raws.left = t[1], m.raws.right = t[3], m.raws.text = t[2];
2079
1855
  }
2080
- } else
2081
- super.comment(u);
1856
+ } else super.comment(u);
2082
1857
  }
2083
1858
  createTokenizer() {
2084
1859
  this.tokenizer = i(this.input);
@@ -2090,34 +1865,28 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2090
1865
  if (a[0] === "comment" && a[4] === "inline") {
2091
1866
  let d = a[1].slice(2).replace(/(\*\/|\/\*)/g, "*//*");
2092
1867
  return h + "/*" + d + "*/";
2093
- } else
2094
- return h + a[1];
1868
+ } else return h + a[1];
2095
1869
  }, ""), t !== u.raws[m].raw && (u.raws[m].scss = t);
2096
1870
  }
2097
1871
  }
2098
1872
  rule(u) {
2099
1873
  let m = !1, p = 0, r = "";
2100
- for (let t of u)
2101
- if (m)
2102
- t[0] !== "comment" && t[0] !== "{" && (r += t[1]);
2103
- else {
2104
- if (t[0] === "space" && t[1].includes(`
2105
- `))
2106
- break;
2107
- t[0] === "(" ? p += 1 : t[0] === ")" ? p -= 1 : p === 0 && t[0] === ":" && (m = !0);
2108
- }
2109
- if (!m || r.trim() === "" || /^[#:A-Za-z-]/.test(r))
2110
- super.rule(u);
1874
+ for (let t of u) if (m) t[0] !== "comment" && t[0] !== "{" && (r += t[1]);
1875
+ else {
1876
+ if (t[0] === "space" && t[1].includes(`
1877
+ `)) break;
1878
+ t[0] === "(" ? p += 1 : t[0] === ")" ? p -= 1 : p === 0 && t[0] === ":" && (m = !0);
1879
+ }
1880
+ if (!m || r.trim() === "" || /^[#:A-Za-z-]/.test(r)) super.rule(u);
2111
1881
  else {
2112
1882
  u.pop();
2113
1883
  let t = new c();
2114
1884
  this.init(t, u[0][2]);
2115
1885
  let h;
2116
- for (let d = u.length - 1; d >= 0; d--)
2117
- if (u[d][0] !== "space") {
2118
- h = u[d];
2119
- break;
2120
- }
1886
+ for (let d = u.length - 1; d >= 0; d--) if (u[d][0] !== "space") {
1887
+ h = u[d];
1888
+ break;
1889
+ }
2121
1890
  if (h[3]) {
2122
1891
  let d = this.input.fromOffset(h[3]);
2123
1892
  t.source.end = { column: d.col, line: d.line, offset: h[3] + 1 };
@@ -2125,26 +1894,22 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2125
1894
  let d = this.input.fromOffset(h[2]);
2126
1895
  t.source.end = { column: d.col, line: d.line, offset: h[2] + 1 };
2127
1896
  }
2128
- for (; u[0][0] !== "word"; )
2129
- t.raws.before += u.shift()[1];
1897
+ for (; u[0][0] !== "word"; ) t.raws.before += u.shift()[1];
2130
1898
  if (u[0][2]) {
2131
1899
  let d = this.input.fromOffset(u[0][2]);
2132
1900
  t.source.start = { column: d.col, line: d.line, offset: u[0][2] };
2133
1901
  }
2134
1902
  for (t.prop = ""; u.length; ) {
2135
1903
  let d = u[0][0];
2136
- if (d === ":" || d === "space" || d === "comment")
2137
- break;
1904
+ if (d === ":" || d === "space" || d === "comment") break;
2138
1905
  t.prop += u.shift()[1];
2139
1906
  }
2140
1907
  t.raws.between = "";
2141
1908
  let a;
2142
- for (; u.length; )
2143
- if (a = u.shift(), a[0] === ":") {
2144
- t.raws.between += a[1];
2145
- break;
2146
- } else
2147
- t.raws.between += a[1];
1909
+ for (; u.length; ) if (a = u.shift(), a[0] === ":") {
1910
+ t.raws.between += a[1];
1911
+ break;
1912
+ } else t.raws.between += a[1];
2148
1913
  (t.prop[0] === "_" || t.prop[0] === "*") && (t.raws.before += t.prop[0], t.prop = t.prop.slice(1)), t.raws.between += this.spacesAndCommentsFromStart(u), this.precheckMissedSemicolon(u);
2149
1914
  for (let d = u.length - 1; d > 0; d--) {
2150
1915
  if (a = u[d], a[1] === "!important") {
@@ -2156,14 +1921,12 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2156
1921
  let l = u.slice(0), b = "";
2157
1922
  for (let y = d; y > 0; y--) {
2158
1923
  let v = l[y][0];
2159
- if (b.trim().indexOf("!") === 0 && v !== "space")
2160
- break;
1924
+ if (b.trim().indexOf("!") === 0 && v !== "space") break;
2161
1925
  b = l.pop()[1] + b;
2162
1926
  }
2163
1927
  b.trim().indexOf("!") === 0 && (t.important = !0, t.raws.important = b, u = l);
2164
1928
  }
2165
- if (a[0] !== "space" && a[0] !== "comment")
2166
- break;
1929
+ if (a[0] !== "space" && a[0] !== "comment") break;
2167
1930
  }
2168
1931
  this.raw(t, "value", u), t.value.includes(":") && this.checkMissedSemicolon(u), this.current = t;
2169
1932
  }
@@ -2197,16 +1960,14 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2197
1960
  c.prototype = Object.create(n.default.prototype), c.constructor = n.default, c.prototype.walk = function(i, f) {
2198
1961
  for (var u = typeof i == "string" || i instanceof RegExp, m = u ? f : i, p = typeof i == "string" ? new RegExp(i) : i, r = 0; r < this.nodes.length; r++) {
2199
1962
  var t = this.nodes[r], h = u ? p.test(t.type) : !0;
2200
- if (h && m && m(t, r, this.nodes) === !1 || t.nodes && t.walk(i, f) === !1)
2201
- return !1;
1963
+ if (h && m && m(t, r, this.nodes) === !1 || t.nodes && t.walk(i, f) === !1) return !1;
2202
1964
  }
2203
1965
  return !0;
2204
1966
  }, c.prototype.each = function() {
2205
1967
  for (var i = arguments.length <= 0 || arguments[0] === void 0 ? function() {
2206
1968
  } : arguments[0], f = 0; f < this.nodes.length; f++) {
2207
1969
  var u = this.nodes[f];
2208
- if (i(u, f, this.nodes) === !1)
2209
- return !1;
1970
+ if (i(u, f, this.nodes) === !1) return !1;
2210
1971
  }
2211
1972
  return !0;
2212
1973
  }, e.default = c;
@@ -2240,48 +2001,47 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2240
2001
  var y = p[b];
2241
2002
  a ? (d.value += y, (y === "{" || y === "(") && h++, (y === ")" || y === "}") && h--) : y.search(/\s/) !== -1 ? d.before += y : (y === "(" && (d.type = "media-feature-expression", h++), d.value = y, d.sourceIndex = r + b, a = !0), a && h === 0 && (y === ")" || b === p.length - 1 || p[b + 1].search(/\s/) !== -1) && (["not", "only", "and"].indexOf(d.value) !== -1 && (d.type = "keyword"), d.type === "media-feature-expression" && (d.nodes = f(d.value, d.sourceIndex)), t.push(Array.isArray(d.nodes) ? new c.default(d) : new n.default(d)), d = l(), a = !1);
2242
2003
  }
2243
- for (var v = 0; v < t.length; v++)
2244
- if (d = t[v], v > 0 && (t[v - 1].after = d.before), d.type === void 0) {
2245
- if (v > 0) {
2246
- if (t[v - 1].type === "media-feature-expression") {
2247
- d.type = "keyword";
2248
- continue;
2249
- }
2250
- if (t[v - 1].value === "not" || t[v - 1].value === "only") {
2251
- d.type = "media-type";
2252
- continue;
2253
- }
2254
- if (t[v - 1].value === "and") {
2255
- d.type = "media-feature-expression";
2256
- continue;
2257
- }
2258
- t[v - 1].type === "media-type" && (t[v + 1] ? d.type = t[v + 1].type === "media-feature-expression" ? "keyword" : "media-feature-expression" : d.type = "media-feature-expression");
2004
+ for (var v = 0; v < t.length; v++) if (d = t[v], v > 0 && (t[v - 1].after = d.before), d.type === void 0) {
2005
+ if (v > 0) {
2006
+ if (t[v - 1].type === "media-feature-expression") {
2007
+ d.type = "keyword";
2008
+ continue;
2259
2009
  }
2260
- if (v === 0) {
2261
- if (!t[v + 1]) {
2262
- d.type = "media-type";
2263
- continue;
2264
- }
2265
- if (t[v + 1] && (t[v + 1].type === "media-feature-expression" || t[v + 1].type === "keyword")) {
2266
- d.type = "media-type";
2010
+ if (t[v - 1].value === "not" || t[v - 1].value === "only") {
2011
+ d.type = "media-type";
2012
+ continue;
2013
+ }
2014
+ if (t[v - 1].value === "and") {
2015
+ d.type = "media-feature-expression";
2016
+ continue;
2017
+ }
2018
+ t[v - 1].type === "media-type" && (t[v + 1] ? d.type = t[v + 1].type === "media-feature-expression" ? "keyword" : "media-feature-expression" : d.type = "media-feature-expression");
2019
+ }
2020
+ if (v === 0) {
2021
+ if (!t[v + 1]) {
2022
+ d.type = "media-type";
2023
+ continue;
2024
+ }
2025
+ if (t[v + 1] && (t[v + 1].type === "media-feature-expression" || t[v + 1].type === "keyword")) {
2026
+ d.type = "media-type";
2027
+ continue;
2028
+ }
2029
+ if (t[v + 2]) {
2030
+ if (t[v + 2].type === "media-feature-expression") {
2031
+ d.type = "media-type", t[v + 1].type = "keyword";
2267
2032
  continue;
2268
2033
  }
2269
- if (t[v + 2]) {
2270
- if (t[v + 2].type === "media-feature-expression") {
2271
- d.type = "media-type", t[v + 1].type = "keyword";
2272
- continue;
2273
- }
2274
- if (t[v + 2].type === "keyword") {
2275
- d.type = "keyword", t[v + 1].type = "media-type";
2276
- continue;
2277
- }
2278
- }
2279
- if (t[v + 3] && t[v + 3].type === "media-feature-expression") {
2280
- d.type = "keyword", t[v + 1].type = "media-type", t[v + 2].type = "keyword";
2034
+ if (t[v + 2].type === "keyword") {
2035
+ d.type = "keyword", t[v + 1].type = "media-type";
2281
2036
  continue;
2282
2037
  }
2283
2038
  }
2039
+ if (t[v + 3] && t[v + 3].type === "media-feature-expression") {
2040
+ d.type = "keyword", t[v + 1].type = "media-type", t[v + 2].type = "keyword";
2041
+ continue;
2042
+ }
2284
2043
  }
2044
+ }
2285
2045
  return t;
2286
2046
  }
2287
2047
  function m(p) {
@@ -2314,10 +2074,9 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2314
2074
  }
2315
2075
  }), ur = E((e, s) => {
2316
2076
  s.exports = function(n, o) {
2317
- if (o = typeof o == "number" ? o : 1 / 0, !o)
2318
- return Array.isArray(n) ? n.map(function(i) {
2319
- return i;
2320
- }) : n;
2077
+ if (o = typeof o == "number" ? o : 1 / 0, !o) return Array.isArray(n) ? n.map(function(i) {
2078
+ return i;
2079
+ }) : n;
2321
2080
  return c(n, 1);
2322
2081
  function c(i, f) {
2323
2082
  return i.reduce(function(u, m) {
@@ -2327,31 +2086,28 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2327
2086
  };
2328
2087
  }), lr = E((e, s) => {
2329
2088
  s.exports = function(n, o) {
2330
- for (var c = -1, i = []; (c = n.indexOf(o, c + 1)) !== -1; )
2331
- i.push(c);
2089
+ for (var c = -1, i = []; (c = n.indexOf(o, c + 1)) !== -1; ) i.push(c);
2332
2090
  return i;
2333
2091
  };
2334
2092
  }), cr = E((e, s) => {
2335
2093
  function n(i, f) {
2336
- for (var u = 1, m = i.length, p = i[0], r = i[0], t = 1; t < m; ++t)
2337
- if (r = p, p = i[t], f(p, r)) {
2338
- if (t === u) {
2339
- u++;
2340
- continue;
2341
- }
2342
- i[u++] = p;
2094
+ for (var u = 1, m = i.length, p = i[0], r = i[0], t = 1; t < m; ++t) if (r = p, p = i[t], f(p, r)) {
2095
+ if (t === u) {
2096
+ u++;
2097
+ continue;
2343
2098
  }
2099
+ i[u++] = p;
2100
+ }
2344
2101
  return i.length = u, i;
2345
2102
  }
2346
2103
  function o(i) {
2347
- for (var f = 1, u = i.length, m = i[0], p = i[0], r = 1; r < u; ++r, p = m)
2348
- if (p = m, m = i[r], m !== p) {
2349
- if (r === f) {
2350
- f++;
2351
- continue;
2352
- }
2353
- i[f++] = m;
2104
+ for (var f = 1, u = i.length, m = i[0], p = i[0], r = 1; r < u; ++r, p = m) if (p = m, m = i[r], m !== p) {
2105
+ if (r === f) {
2106
+ f++;
2107
+ continue;
2354
2108
  }
2109
+ i[f++] = m;
2110
+ }
2355
2111
  return i.length = f, i;
2356
2112
  }
2357
2113
  function c(i, f, u) {
@@ -2366,27 +2122,23 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2366
2122
  return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
2367
2123
  };
2368
2124
  function o(f, u) {
2369
- if (!(f instanceof u))
2370
- throw new TypeError("Cannot call a class as a function");
2125
+ if (!(f instanceof u)) throw new TypeError("Cannot call a class as a function");
2371
2126
  }
2372
2127
  var c = function f(u, m) {
2373
- if ((typeof u > "u" ? "undefined" : n(u)) !== "object")
2374
- return u;
2128
+ if ((typeof u > "u" ? "undefined" : n(u)) !== "object") return u;
2375
2129
  var p = new u.constructor();
2376
- for (var r in u)
2377
- if (u.hasOwnProperty(r)) {
2378
- var t = u[r], h = typeof t > "u" ? "undefined" : n(t);
2379
- r === "parent" && h === "object" ? m && (p[r] = m) : t instanceof Array ? p[r] = t.map(function(a) {
2380
- return f(a, p);
2381
- }) : p[r] = f(t, p);
2382
- }
2130
+ for (var r in u) if (u.hasOwnProperty(r)) {
2131
+ var t = u[r], h = typeof t > "u" ? "undefined" : n(t);
2132
+ r === "parent" && h === "object" ? m && (p[r] = m) : t instanceof Array ? p[r] = t.map(function(a) {
2133
+ return f(a, p);
2134
+ }) : p[r] = f(t, p);
2135
+ }
2383
2136
  return p;
2384
- }, i = function() {
2137
+ }, i = (function() {
2385
2138
  function f() {
2386
2139
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2387
2140
  o(this, f);
2388
- for (var m in u)
2389
- this[m] = u[m];
2141
+ for (var m in u) this[m] = u[m];
2390
2142
  var p = u.spaces;
2391
2143
  p = p === void 0 ? {} : p;
2392
2144
  var r = p.before, t = r === void 0 ? "" : r, h = p.after, a = h === void 0 ? "" : h;
@@ -2396,8 +2148,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2396
2148
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
2397
2149
  }, f.prototype.replaceWith = function() {
2398
2150
  if (this.parent) {
2399
- for (var u in arguments)
2400
- this.parent.insertBefore(this, arguments[u]);
2151
+ for (var u in arguments) this.parent.insertBefore(this, arguments[u]);
2401
2152
  this.remove();
2402
2153
  }
2403
2154
  return this;
@@ -2407,19 +2158,18 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2407
2158
  return this.parent.at(this.parent.index(this) - 1);
2408
2159
  }, f.prototype.clone = function() {
2409
2160
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, m = c(this);
2410
- for (var p in u)
2411
- m[p] = u[p];
2161
+ for (var p in u) m[p] = u[p];
2412
2162
  return m;
2413
2163
  }, f.prototype.toString = function() {
2414
2164
  return [this.spaces.before, String(this.value), this.spaces.after].join("");
2415
2165
  }, f;
2416
- }();
2166
+ })();
2417
2167
  e.default = i, s.exports = e.default;
2418
2168
  }), J = E((e) => {
2419
2169
  e.__esModule = !0, e.TAG = "tag", e.STRING = "string", e.SELECTOR = "selector", e.ROOT = "root", e.PSEUDO = "pseudo", e.NESTING = "nesting", e.ID = "id", e.COMMENT = "comment", e.COMBINATOR = "combinator", e.CLASS = "class", e.ATTRIBUTE = "attribute", e.UNIVERSAL = "universal";
2420
2170
  }), jt = E((e, s) => {
2421
2171
  e.__esModule = !0;
2422
- var n = function() {
2172
+ var n = /* @__PURE__ */ (function() {
2423
2173
  function a(d, l) {
2424
2174
  for (var b = 0; b < l.length; b++) {
2425
2175
  var y = l[b];
@@ -2429,34 +2179,28 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2429
2179
  return function(d, l, b) {
2430
2180
  return l && a(d.prototype, l), b && a(d, b), d;
2431
2181
  };
2432
- }(), o = be(), c = m(o), i = J(), f = u(i);
2182
+ })(), o = be(), c = m(o), i = J(), f = u(i);
2433
2183
  function u(a) {
2434
- if (a && a.__esModule)
2435
- return a;
2184
+ if (a && a.__esModule) return a;
2436
2185
  var d = {};
2437
- if (a != null)
2438
- for (var l in a)
2439
- Object.prototype.hasOwnProperty.call(a, l) && (d[l] = a[l]);
2186
+ if (a != null) for (var l in a) Object.prototype.hasOwnProperty.call(a, l) && (d[l] = a[l]);
2440
2187
  return d.default = a, d;
2441
2188
  }
2442
2189
  function m(a) {
2443
2190
  return a && a.__esModule ? a : { default: a };
2444
2191
  }
2445
2192
  function p(a, d) {
2446
- if (!(a instanceof d))
2447
- throw new TypeError("Cannot call a class as a function");
2193
+ if (!(a instanceof d)) throw new TypeError("Cannot call a class as a function");
2448
2194
  }
2449
2195
  function r(a, d) {
2450
- if (!a)
2451
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2196
+ if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2452
2197
  return d && (typeof d == "object" || typeof d == "function") ? d : a;
2453
2198
  }
2454
2199
  function t(a, d) {
2455
- if (typeof d != "function" && d !== null)
2456
- throw new TypeError("Super expression must either be null or a function, not " + typeof d);
2200
+ if (typeof d != "function" && d !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof d);
2457
2201
  a.prototype = Object.create(d && d.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), d && (Object.setPrototypeOf ? Object.setPrototypeOf(a, d) : a.__proto__ = d);
2458
2202
  }
2459
- var h = function(a) {
2203
+ var h = (function(a) {
2460
2204
  t(d, a);
2461
2205
  function d(l) {
2462
2206
  p(this, d);
@@ -2474,19 +2218,16 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2474
2218
  }, d.prototype.removeChild = function(l) {
2475
2219
  l = this.index(l), this.at(l).parent = void 0, this.nodes.splice(l, 1);
2476
2220
  var b = void 0;
2477
- for (var y in this.indexes)
2478
- b = this.indexes[y], b >= l && (this.indexes[y] = b - 1);
2221
+ for (var y in this.indexes) b = this.indexes[y], b >= l && (this.indexes[y] = b - 1);
2479
2222
  return this;
2480
2223
  }, d.prototype.removeAll = function() {
2481
2224
  for (var y = this.nodes, l = Array.isArray(y), b = 0, y = l ? y : y[Symbol.iterator](); ; ) {
2482
2225
  var v;
2483
2226
  if (l) {
2484
- if (b >= y.length)
2485
- break;
2227
+ if (b >= y.length) break;
2486
2228
  v = y[b++];
2487
2229
  } else {
2488
- if (b = y.next(), b.done)
2489
- break;
2230
+ if (b = y.next(), b.done) break;
2490
2231
  v = b.value;
2491
2232
  }
2492
2233
  var g = v;
@@ -2499,84 +2240,70 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2499
2240
  var y = this.index(l);
2500
2241
  this.nodes.splice(y + 1, 0, b);
2501
2242
  var v = void 0;
2502
- for (var g in this.indexes)
2503
- v = this.indexes[g], y <= v && (this.indexes[g] = v + this.nodes.length);
2243
+ for (var g in this.indexes) v = this.indexes[g], y <= v && (this.indexes[g] = v + this.nodes.length);
2504
2244
  return this;
2505
2245
  }, d.prototype.insertBefore = function(l, b) {
2506
2246
  var y = this.index(l);
2507
2247
  this.nodes.splice(y, 0, b);
2508
2248
  var v = void 0;
2509
- for (var g in this.indexes)
2510
- v = this.indexes[g], y <= v && (this.indexes[g] = v + this.nodes.length);
2249
+ for (var g in this.indexes) v = this.indexes[g], y <= v && (this.indexes[g] = v + this.nodes.length);
2511
2250
  return this;
2512
2251
  }, d.prototype.each = function(l) {
2513
2252
  this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach++;
2514
2253
  var b = this.lastEach;
2515
2254
  if (this.indexes[b] = 0, !!this.length) {
2516
- for (var y = void 0, v = void 0; this.indexes[b] < this.length && (y = this.indexes[b], v = l(this.at(y), y), v !== !1); )
2517
- this.indexes[b] += 1;
2518
- if (delete this.indexes[b], v === !1)
2519
- return !1;
2255
+ for (var y = void 0, v = void 0; this.indexes[b] < this.length && (y = this.indexes[b], v = l(this.at(y), y), v !== !1); ) this.indexes[b] += 1;
2256
+ if (delete this.indexes[b], v === !1) return !1;
2520
2257
  }
2521
2258
  }, d.prototype.walk = function(l) {
2522
2259
  return this.each(function(b, y) {
2523
2260
  var v = l(b, y);
2524
- if (v !== !1 && b.length && (v = b.walk(l)), v === !1)
2525
- return !1;
2261
+ if (v !== !1 && b.length && (v = b.walk(l)), v === !1) return !1;
2526
2262
  });
2527
2263
  }, d.prototype.walkAttributes = function(l) {
2528
2264
  var b = this;
2529
2265
  return this.walk(function(y) {
2530
- if (y.type === f.ATTRIBUTE)
2531
- return l.call(b, y);
2266
+ if (y.type === f.ATTRIBUTE) return l.call(b, y);
2532
2267
  });
2533
2268
  }, d.prototype.walkClasses = function(l) {
2534
2269
  var b = this;
2535
2270
  return this.walk(function(y) {
2536
- if (y.type === f.CLASS)
2537
- return l.call(b, y);
2271
+ if (y.type === f.CLASS) return l.call(b, y);
2538
2272
  });
2539
2273
  }, d.prototype.walkCombinators = function(l) {
2540
2274
  var b = this;
2541
2275
  return this.walk(function(y) {
2542
- if (y.type === f.COMBINATOR)
2543
- return l.call(b, y);
2276
+ if (y.type === f.COMBINATOR) return l.call(b, y);
2544
2277
  });
2545
2278
  }, d.prototype.walkComments = function(l) {
2546
2279
  var b = this;
2547
2280
  return this.walk(function(y) {
2548
- if (y.type === f.COMMENT)
2549
- return l.call(b, y);
2281
+ if (y.type === f.COMMENT) return l.call(b, y);
2550
2282
  });
2551
2283
  }, d.prototype.walkIds = function(l) {
2552
2284
  var b = this;
2553
2285
  return this.walk(function(y) {
2554
- if (y.type === f.ID)
2555
- return l.call(b, y);
2286
+ if (y.type === f.ID) return l.call(b, y);
2556
2287
  });
2557
2288
  }, d.prototype.walkNesting = function(l) {
2558
2289
  var b = this;
2559
2290
  return this.walk(function(y) {
2560
- if (y.type === f.NESTING)
2561
- return l.call(b, y);
2291
+ if (y.type === f.NESTING) return l.call(b, y);
2562
2292
  });
2563
2293
  }, d.prototype.walkPseudos = function(l) {
2564
2294
  var b = this;
2565
2295
  return this.walk(function(y) {
2566
- if (y.type === f.PSEUDO)
2567
- return l.call(b, y);
2296
+ if (y.type === f.PSEUDO) return l.call(b, y);
2568
2297
  });
2569
2298
  }, d.prototype.walkTags = function(l) {
2570
2299
  var b = this;
2571
2300
  return this.walk(function(y) {
2572
- if (y.type === f.TAG)
2573
- return l.call(b, y);
2301
+ if (y.type === f.TAG) return l.call(b, y);
2574
2302
  });
2575
2303
  }, d.prototype.walkUniversals = function(l) {
2576
2304
  var b = this;
2577
2305
  return this.walk(function(y) {
2578
- if (y.type === f.UNIVERSAL)
2579
- return l.call(b, y);
2306
+ if (y.type === f.UNIVERSAL) return l.call(b, y);
2580
2307
  });
2581
2308
  }, d.prototype.split = function(l) {
2582
2309
  var b = this, y = [];
@@ -2605,7 +2332,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2605
2332
  } }, { key: "length", get: function() {
2606
2333
  return this.nodes.length;
2607
2334
  } }]), d;
2608
- }(c.default);
2335
+ })(c.default);
2609
2336
  e.default = h, s.exports = e.default;
2610
2337
  }), Os = E((e, s) => {
2611
2338
  e.__esModule = !0;
@@ -2614,20 +2341,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2614
2341
  return r && r.__esModule ? r : { default: r };
2615
2342
  }
2616
2343
  function f(r, t) {
2617
- if (!(r instanceof t))
2618
- throw new TypeError("Cannot call a class as a function");
2344
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2619
2345
  }
2620
2346
  function u(r, t) {
2621
- if (!r)
2622
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2347
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2623
2348
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2624
2349
  }
2625
2350
  function m(r, t) {
2626
- if (typeof t != "function" && t !== null)
2627
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2351
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2628
2352
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2629
2353
  }
2630
- var p = function(r) {
2354
+ var p = (function(r) {
2631
2355
  m(t, r);
2632
2356
  function t(h) {
2633
2357
  f(this, t);
@@ -2641,7 +2365,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2641
2365
  }, "").slice(0, -1);
2642
2366
  return this.trailingComma ? h + "," : h;
2643
2367
  }, t;
2644
- }(o.default);
2368
+ })(o.default);
2645
2369
  e.default = p, s.exports = e.default;
2646
2370
  }), Ts = E((e, s) => {
2647
2371
  e.__esModule = !0;
@@ -2650,20 +2374,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2650
2374
  return r && r.__esModule ? r : { default: r };
2651
2375
  }
2652
2376
  function f(r, t) {
2653
- if (!(r instanceof t))
2654
- throw new TypeError("Cannot call a class as a function");
2377
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2655
2378
  }
2656
2379
  function u(r, t) {
2657
- if (!r)
2658
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2380
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2659
2381
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2660
2382
  }
2661
2383
  function m(r, t) {
2662
- if (typeof t != "function" && t !== null)
2663
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2384
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2664
2385
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2665
2386
  }
2666
- var p = function(r) {
2387
+ var p = (function(r) {
2667
2388
  m(t, r);
2668
2389
  function t(h) {
2669
2390
  f(this, t);
@@ -2671,11 +2392,11 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2671
2392
  return a.type = c.SELECTOR, a;
2672
2393
  }
2673
2394
  return t;
2674
- }(o.default);
2395
+ })(o.default);
2675
2396
  e.default = p, s.exports = e.default;
2676
2397
  }), We = E((e, s) => {
2677
2398
  e.__esModule = !0;
2678
- var n = function() {
2399
+ var n = /* @__PURE__ */ (function() {
2679
2400
  function r(t, h) {
2680
2401
  for (var a = 0; a < h.length; a++) {
2681
2402
  var d = h[a];
@@ -2685,25 +2406,22 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2685
2406
  return function(t, h, a) {
2686
2407
  return h && r(t.prototype, h), a && r(t, a), t;
2687
2408
  };
2688
- }(), o = be(), c = i(o);
2409
+ })(), o = be(), c = i(o);
2689
2410
  function i(r) {
2690
2411
  return r && r.__esModule ? r : { default: r };
2691
2412
  }
2692
2413
  function f(r, t) {
2693
- if (!(r instanceof t))
2694
- throw new TypeError("Cannot call a class as a function");
2414
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2695
2415
  }
2696
2416
  function u(r, t) {
2697
- if (!r)
2698
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2417
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2699
2418
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2700
2419
  }
2701
2420
  function m(r, t) {
2702
- if (typeof t != "function" && t !== null)
2703
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2421
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2704
2422
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2705
2423
  }
2706
- var p = function(r) {
2424
+ var p = (function(r) {
2707
2425
  m(t, r);
2708
2426
  function t() {
2709
2427
  return f(this, t), u(this, r.apply(this, arguments));
@@ -2714,7 +2432,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2714
2432
  var h = this.namespace;
2715
2433
  return h ? (typeof h == "string" ? h : "") + "|" : "";
2716
2434
  } }]), t;
2717
- }(c.default);
2435
+ })(c.default);
2718
2436
  e.default = p, s.exports = e.default;
2719
2437
  }), Cs = E((e, s) => {
2720
2438
  e.__esModule = !0;
@@ -2723,20 +2441,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2723
2441
  return r && r.__esModule ? r : { default: r };
2724
2442
  }
2725
2443
  function f(r, t) {
2726
- if (!(r instanceof t))
2727
- throw new TypeError("Cannot call a class as a function");
2444
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2728
2445
  }
2729
2446
  function u(r, t) {
2730
- if (!r)
2731
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2447
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2732
2448
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2733
2449
  }
2734
2450
  function m(r, t) {
2735
- if (typeof t != "function" && t !== null)
2736
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2451
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2737
2452
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2738
2453
  }
2739
- var p = function(r) {
2454
+ var p = (function(r) {
2740
2455
  m(t, r);
2741
2456
  function t(h) {
2742
2457
  f(this, t);
@@ -2746,7 +2461,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2746
2461
  return t.prototype.toString = function() {
2747
2462
  return [this.spaces.before, this.ns, "." + this.value, this.spaces.after].join("");
2748
2463
  }, t;
2749
- }(o.default);
2464
+ })(o.default);
2750
2465
  e.default = p, s.exports = e.default;
2751
2466
  }), Ss = E((e, s) => {
2752
2467
  e.__esModule = !0;
@@ -2755,20 +2470,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2755
2470
  return r && r.__esModule ? r : { default: r };
2756
2471
  }
2757
2472
  function f(r, t) {
2758
- if (!(r instanceof t))
2759
- throw new TypeError("Cannot call a class as a function");
2473
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2760
2474
  }
2761
2475
  function u(r, t) {
2762
- if (!r)
2763
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2476
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2764
2477
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2765
2478
  }
2766
2479
  function m(r, t) {
2767
- if (typeof t != "function" && t !== null)
2768
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2480
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2769
2481
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2770
2482
  }
2771
- var p = function(r) {
2483
+ var p = (function(r) {
2772
2484
  m(t, r);
2773
2485
  function t(h) {
2774
2486
  f(this, t);
@@ -2776,7 +2488,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2776
2488
  return a.type = c.COMMENT, a;
2777
2489
  }
2778
2490
  return t;
2779
- }(o.default);
2491
+ })(o.default);
2780
2492
  e.default = p, s.exports = e.default;
2781
2493
  }), _s = E((e, s) => {
2782
2494
  e.__esModule = !0;
@@ -2785,20 +2497,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2785
2497
  return r && r.__esModule ? r : { default: r };
2786
2498
  }
2787
2499
  function f(r, t) {
2788
- if (!(r instanceof t))
2789
- throw new TypeError("Cannot call a class as a function");
2500
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2790
2501
  }
2791
2502
  function u(r, t) {
2792
- if (!r)
2793
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2503
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2794
2504
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2795
2505
  }
2796
2506
  function m(r, t) {
2797
- if (typeof t != "function" && t !== null)
2798
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2507
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2799
2508
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2800
2509
  }
2801
- var p = function(r) {
2510
+ var p = (function(r) {
2802
2511
  m(t, r);
2803
2512
  function t(h) {
2804
2513
  f(this, t);
@@ -2808,7 +2517,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2808
2517
  return t.prototype.toString = function() {
2809
2518
  return [this.spaces.before, this.ns, "#" + this.value, this.spaces.after].join("");
2810
2519
  }, t;
2811
- }(o.default);
2520
+ })(o.default);
2812
2521
  e.default = p, s.exports = e.default;
2813
2522
  }), Es = E((e, s) => {
2814
2523
  e.__esModule = !0;
@@ -2817,20 +2526,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2817
2526
  return r && r.__esModule ? r : { default: r };
2818
2527
  }
2819
2528
  function f(r, t) {
2820
- if (!(r instanceof t))
2821
- throw new TypeError("Cannot call a class as a function");
2529
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2822
2530
  }
2823
2531
  function u(r, t) {
2824
- if (!r)
2825
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2532
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2826
2533
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2827
2534
  }
2828
2535
  function m(r, t) {
2829
- if (typeof t != "function" && t !== null)
2830
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2536
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2831
2537
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2832
2538
  }
2833
- var p = function(r) {
2539
+ var p = (function(r) {
2834
2540
  m(t, r);
2835
2541
  function t(h) {
2836
2542
  f(this, t);
@@ -2838,7 +2544,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2838
2544
  return a.type = c.TAG, a;
2839
2545
  }
2840
2546
  return t;
2841
- }(o.default);
2547
+ })(o.default);
2842
2548
  e.default = p, s.exports = e.default;
2843
2549
  }), As = E((e, s) => {
2844
2550
  e.__esModule = !0;
@@ -2847,20 +2553,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2847
2553
  return r && r.__esModule ? r : { default: r };
2848
2554
  }
2849
2555
  function f(r, t) {
2850
- if (!(r instanceof t))
2851
- throw new TypeError("Cannot call a class as a function");
2556
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2852
2557
  }
2853
2558
  function u(r, t) {
2854
- if (!r)
2855
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2559
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2856
2560
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2857
2561
  }
2858
2562
  function m(r, t) {
2859
- if (typeof t != "function" && t !== null)
2860
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2563
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2861
2564
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2862
2565
  }
2863
- var p = function(r) {
2566
+ var p = (function(r) {
2864
2567
  m(t, r);
2865
2568
  function t(h) {
2866
2569
  f(this, t);
@@ -2868,7 +2571,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2868
2571
  return a.type = c.STRING, a;
2869
2572
  }
2870
2573
  return t;
2871
- }(o.default);
2574
+ })(o.default);
2872
2575
  e.default = p, s.exports = e.default;
2873
2576
  }), js = E((e, s) => {
2874
2577
  e.__esModule = !0;
@@ -2877,20 +2580,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2877
2580
  return r && r.__esModule ? r : { default: r };
2878
2581
  }
2879
2582
  function f(r, t) {
2880
- if (!(r instanceof t))
2881
- throw new TypeError("Cannot call a class as a function");
2583
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2882
2584
  }
2883
2585
  function u(r, t) {
2884
- if (!r)
2885
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2586
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2886
2587
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2887
2588
  }
2888
2589
  function m(r, t) {
2889
- if (typeof t != "function" && t !== null)
2890
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2590
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2891
2591
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2892
2592
  }
2893
- var p = function(r) {
2593
+ var p = (function(r) {
2894
2594
  m(t, r);
2895
2595
  function t(h) {
2896
2596
  f(this, t);
@@ -2901,7 +2601,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2901
2601
  var h = this.length ? "(" + this.map(String).join(",") + ")" : "";
2902
2602
  return [this.spaces.before, String(this.value), h, this.spaces.after].join("");
2903
2603
  }, t;
2904
- }(o.default);
2604
+ })(o.default);
2905
2605
  e.default = p, s.exports = e.default;
2906
2606
  }), Is = E((e, s) => {
2907
2607
  e.__esModule = !0;
@@ -2910,20 +2610,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2910
2610
  return r && r.__esModule ? r : { default: r };
2911
2611
  }
2912
2612
  function f(r, t) {
2913
- if (!(r instanceof t))
2914
- throw new TypeError("Cannot call a class as a function");
2613
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2915
2614
  }
2916
2615
  function u(r, t) {
2917
- if (!r)
2918
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2616
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2919
2617
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2920
2618
  }
2921
2619
  function m(r, t) {
2922
- if (typeof t != "function" && t !== null)
2923
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2620
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2924
2621
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2925
2622
  }
2926
- var p = function(r) {
2623
+ var p = (function(r) {
2927
2624
  m(t, r);
2928
2625
  function t(h) {
2929
2626
  f(this, t);
@@ -2934,7 +2631,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2934
2631
  var h = [this.spaces.before, "[", this.ns, this.attribute];
2935
2632
  return this.operator && h.push(this.operator), this.value && h.push(this.value), this.raws.insensitive ? h.push(this.raws.insensitive) : this.insensitive && h.push(" i"), h.push("]"), h.concat(this.spaces.after).join("");
2936
2633
  }, t;
2937
- }(o.default);
2634
+ })(o.default);
2938
2635
  e.default = p, s.exports = e.default;
2939
2636
  }), Ps = E((e, s) => {
2940
2637
  e.__esModule = !0;
@@ -2943,20 +2640,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2943
2640
  return r && r.__esModule ? r : { default: r };
2944
2641
  }
2945
2642
  function f(r, t) {
2946
- if (!(r instanceof t))
2947
- throw new TypeError("Cannot call a class as a function");
2643
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2948
2644
  }
2949
2645
  function u(r, t) {
2950
- if (!r)
2951
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2646
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2952
2647
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2953
2648
  }
2954
2649
  function m(r, t) {
2955
- if (typeof t != "function" && t !== null)
2956
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2650
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2957
2651
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2958
2652
  }
2959
- var p = function(r) {
2653
+ var p = (function(r) {
2960
2654
  m(t, r);
2961
2655
  function t(h) {
2962
2656
  f(this, t);
@@ -2964,7 +2658,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2964
2658
  return a.type = c.UNIVERSAL, a.value = "*", a;
2965
2659
  }
2966
2660
  return t;
2967
- }(o.default);
2661
+ })(o.default);
2968
2662
  e.default = p, s.exports = e.default;
2969
2663
  }), Ms = E((e, s) => {
2970
2664
  e.__esModule = !0;
@@ -2973,20 +2667,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2973
2667
  return r && r.__esModule ? r : { default: r };
2974
2668
  }
2975
2669
  function f(r, t) {
2976
- if (!(r instanceof t))
2977
- throw new TypeError("Cannot call a class as a function");
2670
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
2978
2671
  }
2979
2672
  function u(r, t) {
2980
- if (!r)
2981
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2673
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2982
2674
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
2983
2675
  }
2984
2676
  function m(r, t) {
2985
- if (typeof t != "function" && t !== null)
2986
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2677
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2987
2678
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
2988
2679
  }
2989
- var p = function(r) {
2680
+ var p = (function(r) {
2990
2681
  m(t, r);
2991
2682
  function t(h) {
2992
2683
  f(this, t);
@@ -2994,7 +2685,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
2994
2685
  return a.type = c.COMBINATOR, a;
2995
2686
  }
2996
2687
  return t;
2997
- }(o.default);
2688
+ })(o.default);
2998
2689
  e.default = p, s.exports = e.default;
2999
2690
  }), $s = E((e, s) => {
3000
2691
  e.__esModule = !0;
@@ -3003,20 +2694,17 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3003
2694
  return r && r.__esModule ? r : { default: r };
3004
2695
  }
3005
2696
  function f(r, t) {
3006
- if (!(r instanceof t))
3007
- throw new TypeError("Cannot call a class as a function");
2697
+ if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function");
3008
2698
  }
3009
2699
  function u(r, t) {
3010
- if (!r)
3011
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2700
+ if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3012
2701
  return t && (typeof t == "object" || typeof t == "function") ? t : r;
3013
2702
  }
3014
2703
  function m(r, t) {
3015
- if (typeof t != "function" && t !== null)
3016
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2704
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
3017
2705
  r.prototype = Object.create(t && t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t);
3018
2706
  }
3019
- var p = function(r) {
2707
+ var p = (function(r) {
3020
2708
  m(t, r);
3021
2709
  function t(h) {
3022
2710
  f(this, t);
@@ -3024,7 +2712,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3024
2712
  return a.type = c.NESTING, a.value = "&", a;
3025
2713
  }
3026
2714
  return t;
3027
- }(o.default);
2715
+ })(o.default);
3028
2716
  e.default = p, s.exports = e.default;
3029
2717
  }), Rs = E((e, s) => {
3030
2718
  e.__esModule = !0, e.default = n;
@@ -3039,10 +2727,8 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3039
2727
  var n = 39, o = 34, c = 92, i = 47, f = 10, u = 32, m = 12, p = 9, r = 13, t = 43, h = 62, a = 126, d = 124, l = 44, b = 40, y = 41, v = 91, g = 93, k = 59, w = 42, x = 58, O = 38, T = 64, _ = /[ \n\t\r\{\(\)'"\\;/]/g, A = /[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;
3040
2728
  function I(N) {
3041
2729
  for (var R = [], $ = N.css.valueOf(), M = void 0, P = void 0, D = void 0, ke = void 0, le = void 0, ce = void 0, pe = void 0, fe = void 0, he = void 0, z = void 0, Oe = void 0, lt = $.length, j = -1, C = 1, S = 0, L = function(W, q) {
3042
- if (N.safe)
3043
- $ += q, P = $.length - 1;
3044
- else
3045
- throw N.error("Unclosed " + W, C, S - j, S);
2730
+ if (N.safe) $ += q, P = $.length - 1;
2731
+ else throw N.error("Unclosed " + W, C, S - j, S);
3046
2732
  }; S < lt; ) {
3047
2733
  switch (M = $.charCodeAt(S), M === f && (j = S, C += 1), M) {
3048
2734
  case f:
@@ -3097,8 +2783,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3097
2783
  case o:
3098
2784
  D = M === n ? "'" : '"', P = S;
3099
2785
  do
3100
- for (z = !1, P = $.indexOf(D, P + 1), P === -1 && L("quote", D), Oe = P; $.charCodeAt(Oe - 1) === c; )
3101
- Oe -= 1, z = !z;
2786
+ for (z = !1, P = $.indexOf(D, P + 1), P === -1 && L("quote", D), Oe = P; $.charCodeAt(Oe - 1) === c; ) Oe -= 1, z = !z;
3102
2787
  while (z);
3103
2788
  R.push(["string", $.slice(S, P + 1), C, S - j, C, P - j, S]), S = P;
3104
2789
  break;
@@ -3106,8 +2791,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3106
2791
  _.lastIndex = S + 1, _.test($), _.lastIndex === 0 ? P = $.length - 1 : P = _.lastIndex - 2, R.push(["at-word", $.slice(S, P + 1), C, S - j, C, P - j, S]), S = P;
3107
2792
  break;
3108
2793
  case c:
3109
- for (P = S, pe = !0; $.charCodeAt(P + 1) === c; )
3110
- P += 1, pe = !pe;
2794
+ for (P = S, pe = !0; $.charCodeAt(P + 1) === c; ) P += 1, pe = !pe;
3111
2795
  M = $.charCodeAt(P + 1), pe && M !== i && M !== u && M !== f && M !== p && M !== r && M !== m && (P += 1), R.push(["word", $.slice(S, P + 1), C, S - j, C, P - j, S]), S = P;
3112
2796
  break;
3113
2797
  default:
@@ -3122,7 +2806,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3122
2806
  s.exports = e.default;
3123
2807
  }), Ls = E((e, s) => {
3124
2808
  e.__esModule = !0;
3125
- var n = function() {
2809
+ var n = /* @__PURE__ */ (function() {
3126
2810
  function j(C, S) {
3127
2811
  for (var L = 0; L < S.length; L++) {
3128
2812
  var W = S[L];
@@ -3132,24 +2816,20 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3132
2816
  return function(C, S, L) {
3133
2817
  return S && j(C.prototype, S), L && j(C, L), C;
3134
2818
  };
3135
- }(), o = ur(), c = z(o), i = lr(), f = z(i), u = cr(), m = z(u), p = Os(), r = z(p), t = Ts(), h = z(t), a = Cs(), d = z(a), l = Ss(), b = z(l), y = _s(), v = z(y), g = Es(), k = z(g), w = As(), x = z(w), O = js(), T = z(O), _ = Is(), A = z(_), I = Ps(), N = z(I), R = Ms(), $ = z(R), M = $s(), P = z(M), D = Rs(), ke = z(D), le = Ns(), ce = z(le), pe = J(), fe = he(pe);
2819
+ })(), o = ur(), c = z(o), i = lr(), f = z(i), u = cr(), m = z(u), p = Os(), r = z(p), t = Ts(), h = z(t), a = Cs(), d = z(a), l = Ss(), b = z(l), y = _s(), v = z(y), g = Es(), k = z(g), w = As(), x = z(w), O = js(), T = z(O), _ = Is(), A = z(_), I = Ps(), N = z(I), R = Ms(), $ = z(R), M = $s(), P = z(M), D = Rs(), ke = z(D), le = Ns(), ce = z(le), pe = J(), fe = he(pe);
3136
2820
  function he(j) {
3137
- if (j && j.__esModule)
3138
- return j;
2821
+ if (j && j.__esModule) return j;
3139
2822
  var C = {};
3140
- if (j != null)
3141
- for (var S in j)
3142
- Object.prototype.hasOwnProperty.call(j, S) && (C[S] = j[S]);
2823
+ if (j != null) for (var S in j) Object.prototype.hasOwnProperty.call(j, S) && (C[S] = j[S]);
3143
2824
  return C.default = j, C;
3144
2825
  }
3145
2826
  function z(j) {
3146
2827
  return j && j.__esModule ? j : { default: j };
3147
2828
  }
3148
2829
  function Oe(j, C) {
3149
- if (!(j instanceof C))
3150
- throw new TypeError("Cannot call a class as a function");
2830
+ if (!(j instanceof C)) throw new TypeError("Cannot call a class as a function");
3151
2831
  }
3152
- var lt = function() {
2832
+ var lt = (function() {
3153
2833
  function j(C) {
3154
2834
  Oe(this, j), this.input = C, this.lossy = C.options.lossless === !1, this.position = 0, this.root = new r.default();
3155
2835
  var S = new h.default();
@@ -3157,8 +2837,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3157
2837
  }
3158
2838
  return j.prototype.attribute = function() {
3159
2839
  var C = "", S = void 0, L = this.currToken;
3160
- for (this.position++; this.position < this.tokens.length && this.currToken[0] !== "]"; )
3161
- C += this.tokens[this.position][1], this.position++;
2840
+ for (this.position++; this.position < this.tokens.length && this.currToken[0] !== "]"; ) C += this.tokens[this.position][1], this.position++;
3162
2841
  this.position === this.tokens.length && !~C.indexOf("]") && this.error("Expected a closing square bracket.");
3163
2842
  var W = C.split(/((?:[*~^$|]?=))([^]*)/), q = W[0].split(/(\|)/g), X = { operator: W[1], value: W[2], source: { start: { line: L[2], column: L[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: L[4] };
3164
2843
  if (q.length > 1 ? (q[0] === "" && (q[0] = !0), X.attribute = this.parseValue(q[2]), X.namespace = this.parseNamespace(q[0])) : X.attribute = this.parseValue(W[0]), S = new A.default(X), W[2]) {
@@ -3167,10 +2846,8 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3167
2846
  }
3168
2847
  this.newNode(S), this.position++;
3169
2848
  }, j.prototype.combinator = function() {
3170
- if (this.currToken[1] === "|")
3171
- return this.namespace();
3172
- for (var C = new $.default({ value: "", source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }); this.position < this.tokens.length && this.currToken && (this.currToken[0] === "space" || this.currToken[0] === "combinator"); )
3173
- this.nextToken && this.nextToken[0] === "combinator" ? (C.spaces.before = this.parseSpace(this.currToken[1]), C.source.start.line = this.nextToken[2], C.source.start.column = this.nextToken[3], C.source.end.column = this.nextToken[3], C.source.end.line = this.nextToken[2], C.sourceIndex = this.nextToken[4]) : this.prevToken && this.prevToken[0] === "combinator" ? C.spaces.after = this.parseSpace(this.currToken[1]) : this.currToken[0] === "combinator" ? C.value = this.currToken[1] : this.currToken[0] === "space" && (C.value = this.parseSpace(this.currToken[1], " ")), this.position++;
2849
+ if (this.currToken[1] === "|") return this.namespace();
2850
+ for (var C = new $.default({ value: "", source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }); this.position < this.tokens.length && this.currToken && (this.currToken[0] === "space" || this.currToken[0] === "combinator"); ) this.nextToken && this.nextToken[0] === "combinator" ? (C.spaces.before = this.parseSpace(this.currToken[1]), C.source.start.line = this.nextToken[2], C.source.start.column = this.nextToken[3], C.source.end.column = this.nextToken[3], C.source.end.line = this.nextToken[2], C.sourceIndex = this.nextToken[4]) : this.prevToken && this.prevToken[0] === "combinator" ? C.spaces.after = this.parseSpace(this.currToken[1]) : this.currToken[0] === "combinator" ? C.value = this.currToken[1] : this.currToken[0] === "space" && (C.value = this.parseSpace(this.currToken[1], " ")), this.position++;
3174
2851
  return this.newNode(C);
3175
2852
  }, j.prototype.comma = function() {
3176
2853
  if (this.position === this.tokens.length - 1) {
@@ -3192,10 +2869,8 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3192
2869
  return this.error("Expected opening square bracket.");
3193
2870
  }, j.prototype.namespace = function() {
3194
2871
  var C = this.prevToken && this.prevToken[1] || !0;
3195
- if (this.nextToken[0] === "word")
3196
- return this.position++, this.word(C);
3197
- if (this.nextToken[0] === "*")
3198
- return this.position++, this.universal(C);
2872
+ if (this.nextToken[0] === "word") return this.position++, this.word(C);
2873
+ if (this.nextToken[0] === "*") return this.position++, this.universal(C);
3199
2874
  }, j.prototype.nesting = function() {
3200
2875
  this.newNode(new P.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] })), this.position++;
3201
2876
  }, j.prototype.parentheses = function() {
@@ -3204,27 +2879,22 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3204
2879
  var S = new h.default(), L = this.current;
3205
2880
  C.append(S), this.current = S;
3206
2881
  var W = 1;
3207
- for (this.position++; this.position < this.tokens.length && W; )
3208
- this.currToken[0] === "(" && W++, this.currToken[0] === ")" && W--, W ? this.parse() : (S.parent.source.end.line = this.currToken[2], S.parent.source.end.column = this.currToken[3], this.position++);
2882
+ for (this.position++; this.position < this.tokens.length && W; ) this.currToken[0] === "(" && W++, this.currToken[0] === ")" && W--, W ? this.parse() : (S.parent.source.end.line = this.currToken[2], S.parent.source.end.column = this.currToken[3], this.position++);
3209
2883
  W && this.error("Expected closing parenthesis."), this.current = L;
3210
2884
  } else {
3211
2885
  var q = 1;
3212
- for (this.position++, C.value += "("; this.position < this.tokens.length && q; )
3213
- this.currToken[0] === "(" && q++, this.currToken[0] === ")" && q--, C.value += this.parseParenthesisToken(this.currToken), this.position++;
2886
+ for (this.position++, C.value += "("; this.position < this.tokens.length && q; ) this.currToken[0] === "(" && q++, this.currToken[0] === ")" && q--, C.value += this.parseParenthesisToken(this.currToken), this.position++;
3214
2887
  q && this.error("Expected closing parenthesis.");
3215
2888
  }
3216
2889
  }, j.prototype.pseudo = function() {
3217
- for (var C = this, S = "", L = this.currToken; this.currToken && this.currToken[0] === ":"; )
3218
- S += this.currToken[1], this.position++;
3219
- if (!this.currToken)
3220
- return this.error("Expected pseudo-class or pseudo-element");
2890
+ for (var C = this, S = "", L = this.currToken; this.currToken && this.currToken[0] === ":"; ) S += this.currToken[1], this.position++;
2891
+ if (!this.currToken) return this.error("Expected pseudo-class or pseudo-element");
3221
2892
  if (this.currToken[0] === "word") {
3222
2893
  var W = void 0;
3223
2894
  this.splitWord(!1, function(q, X) {
3224
2895
  S += q, W = new T.default({ value: S, source: { start: { line: L[2], column: L[3] }, end: { line: C.currToken[4], column: C.currToken[5] } }, sourceIndex: L[4] }), C.newNode(W), X > 1 && C.nextToken && C.nextToken[0] === "(" && C.error("Misplaced parenthesis.");
3225
2896
  });
3226
- } else
3227
- this.error('Unexpected "' + this.currToken[0] + '" found.');
2897
+ } else this.error('Unexpected "' + this.currToken[0] + '" found.');
3228
2898
  }, j.prototype.space = function() {
3229
2899
  var C = this.currToken;
3230
2900
  this.position === 0 || this.prevToken[0] === "," || this.prevToken[0] === "(" ? (this.spaces = this.parseSpace(C[1]), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[0] === "," || this.nextToken[0] === ")" ? (this.current.last.spaces.after = this.parseSpace(C[1]), this.position++) : this.combinator();
@@ -3233,8 +2903,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3233
2903
  this.newNode(new x.default({ value: this.currToken[1], source: { start: { line: C[2], column: C[3] }, end: { line: C[4], column: C[5] } }, sourceIndex: C[6] })), this.position++;
3234
2904
  }, j.prototype.universal = function(C) {
3235
2905
  var S = this.nextToken;
3236
- if (S && S[1] === "|")
3237
- return this.position++, this.namespace();
2906
+ if (S && S[1] === "|") return this.position++, this.namespace();
3238
2907
  this.newNode(new N.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }), C), this.position++;
3239
2908
  }, j.prototype.splitWord = function(C, S) {
3240
2909
  for (var L = this, W = this.nextToken, q = this.currToken[1]; W && W[0] === "word"; ) {
@@ -3253,8 +2922,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3253
2922
  var de = (0, ke.default)((0, m.default)((0, c.default)([[0], re, qe])));
3254
2923
  de.forEach(function(se, Te) {
3255
2924
  var Be = de[Te + 1] || q.length, Fe = q.slice(se, Be);
3256
- if (Te === 0 && S)
3257
- return S.call(L, Fe, de.length);
2925
+ if (Te === 0 && S) return S.call(L, Fe, de.length);
3258
2926
  var De = void 0;
3259
2927
  ~re.indexOf(se) ? De = new d.default({ value: Fe.slice(1), source: { start: { line: L.currToken[2], column: L.currToken[3] + se }, end: { line: L.currToken[4], column: L.currToken[3] + (Be - 1) } }, sourceIndex: L.currToken[6] + de[Te] }) : ~qe.indexOf(se) ? De = new v.default({ value: Fe.slice(1), source: { start: { line: L.currToken[2], column: L.currToken[3] + se }, end: { line: L.currToken[4], column: L.currToken[3] + (Be - 1) } }, sourceIndex: L.currToken[6] + de[Te] }) : De = new k.default({ value: Fe, source: { start: { line: L.currToken[2], column: L.currToken[3] + se }, end: { line: L.currToken[4], column: L.currToken[3] + (Be - 1) } }, sourceIndex: L.currToken[6] + de[Te] }), L.newNode(De, C);
3260
2928
  }), this.position++;
@@ -3262,8 +2930,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3262
2930
  var S = this.nextToken;
3263
2931
  return S && S[1] === "|" ? (this.position++, this.namespace()) : this.splitWord(C);
3264
2932
  }, j.prototype.loop = function() {
3265
- for (; this.position < this.tokens.length; )
3266
- this.parse(!0);
2933
+ for (; this.position < this.tokens.length; ) this.parse(!0);
3267
2934
  return this.root;
3268
2935
  }, j.prototype.parse = function(C) {
3269
2936
  switch (this.currToken[0]) {
@@ -3332,11 +2999,11 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3332
2999
  } }, { key: "prevToken", get: function() {
3333
3000
  return this.tokens[this.position - 1];
3334
3001
  } }]), j;
3335
- }();
3002
+ })();
3336
3003
  e.default = lt, s.exports = e.default;
3337
3004
  }), Ws = E((e, s) => {
3338
3005
  e.__esModule = !0;
3339
- var n = function() {
3006
+ var n = /* @__PURE__ */ (function() {
3340
3007
  function m(p, r) {
3341
3008
  for (var t = 0; t < r.length; t++) {
3342
3009
  var h = r[t];
@@ -3346,15 +3013,14 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3346
3013
  return function(p, r, t) {
3347
3014
  return r && m(p.prototype, r), t && m(p, t), p;
3348
3015
  };
3349
- }(), o = Ls(), c = i(o);
3016
+ })(), o = Ls(), c = i(o);
3350
3017
  function i(m) {
3351
3018
  return m && m.__esModule ? m : { default: m };
3352
3019
  }
3353
3020
  function f(m, p) {
3354
- if (!(m instanceof p))
3355
- throw new TypeError("Cannot call a class as a function");
3021
+ if (!(m instanceof p)) throw new TypeError("Cannot call a class as a function");
3356
3022
  }
3357
- var u = function() {
3023
+ var u = (function() {
3358
3024
  function m(p) {
3359
3025
  return f(this, m), this.func = p || function() {
3360
3026
  }, this;
@@ -3367,14 +3033,13 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3367
3033
  }, n(m, [{ key: "result", get: function() {
3368
3034
  return String(this.res);
3369
3035
  } }]), m;
3370
- }();
3036
+ })();
3371
3037
  e.default = u, s.exports = e.default;
3372
3038
  }), ee = E((e, s) => {
3373
3039
  var n = function(o, c) {
3374
3040
  let i = new o.constructor();
3375
3041
  for (let f in o) {
3376
- if (!o.hasOwnProperty(f))
3377
- continue;
3042
+ if (!o.hasOwnProperty(f)) continue;
3378
3043
  let u = o[f], m = typeof u;
3379
3044
  f === "parent" && m === "object" ? c && (i[f] = c) : f === "source" ? i[f] = u : u instanceof Array ? i[f] = u.map((p) => n(p, i)) : f !== "before" && f !== "after" && f !== "between" && f !== "semicolon" && (m === "object" && u !== null && (u = n(u)), i[f] = u);
3380
3045
  }
@@ -3383,8 +3048,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3383
3048
  s.exports = class {
3384
3049
  constructor(o) {
3385
3050
  o = o || {}, this.raws = { before: "", after: "" };
3386
- for (let c in o)
3387
- this[c] = o[c];
3051
+ for (let c in o) this[c] = o[c];
3388
3052
  }
3389
3053
  remove() {
3390
3054
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -3395,8 +3059,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3395
3059
  clone(o) {
3396
3060
  o = o || {};
3397
3061
  let c = n(this);
3398
- for (let i in o)
3399
- c[i] = o[i];
3062
+ for (let i in o) c[i] = o[i];
3400
3063
  return c;
3401
3064
  }
3402
3065
  cloneBefore(o) {
@@ -3412,8 +3075,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3412
3075
  replaceWith() {
3413
3076
  let o = Array.prototype.slice.call(arguments);
3414
3077
  if (this.parent) {
3415
- for (let c of o)
3416
- this.parent.insertBefore(this, c);
3078
+ for (let c of o) this.parent.insertBefore(this, c);
3417
3079
  this.remove();
3418
3080
  }
3419
3081
  return this;
@@ -3438,8 +3100,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3438
3100
  toJSON() {
3439
3101
  let o = {};
3440
3102
  for (let c in this) {
3441
- if (!this.hasOwnProperty(c) || c === "parent")
3442
- continue;
3103
+ if (!this.hasOwnProperty(c) || c === "parent") continue;
3443
3104
  let i = this[c];
3444
3105
  i instanceof Array ? o[c] = i.map((f) => typeof f == "object" && f.toJSON ? f.toJSON() : f) : typeof i == "object" && i.toJSON ? o[c] = i.toJSON() : o[c] = i;
3445
3106
  }
@@ -3447,8 +3108,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3447
3108
  }
3448
3109
  root() {
3449
3110
  let o = this;
3450
- for (; o.parent; )
3451
- o = o.parent;
3111
+ for (; o.parent; ) o = o.parent;
3452
3112
  return o;
3453
3113
  }
3454
3114
  cleanRaws(o) {
@@ -3456,15 +3116,13 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3456
3116
  }
3457
3117
  positionInside(o) {
3458
3118
  let c = this.toString(), i = this.source.start.column, f = this.source.start.line;
3459
- for (let u = 0; u < o; u++)
3460
- c[u] === `
3119
+ for (let u = 0; u < o; u++) c[u] === `
3461
3120
  ` ? (i = 1, f += 1) : i += 1;
3462
3121
  return { line: f, column: i };
3463
3122
  }
3464
3123
  positionBy(o) {
3465
3124
  let c = this.source.start;
3466
- if (Object(o).index)
3467
- c = this.positionInside(o.index);
3125
+ if (Object(o).index) c = this.positionInside(o.index);
3468
3126
  else if (Object(o).word) {
3469
3127
  let i = this.toString().indexOf(o.word);
3470
3128
  i !== -1 && (c = this.positionInside(i));
@@ -3484,8 +3142,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3484
3142
  this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
3485
3143
  let i = this.lastEach, f, u;
3486
3144
  if (this.indexes[i] = 0, !!this.nodes) {
3487
- for (; this.indexes[i] < this.nodes.length && (f = this.indexes[i], u = c(this.nodes[f], f), u !== !1); )
3488
- this.indexes[i] += 1;
3145
+ for (; this.indexes[i] < this.nodes.length && (f = this.indexes[i], u = c(this.nodes[f], f), u !== !1); ) this.indexes[i] += 1;
3489
3146
  return delete this.indexes[i], u;
3490
3147
  }
3491
3148
  }
@@ -3496,12 +3153,10 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3496
3153
  });
3497
3154
  }
3498
3155
  walkType(c, i) {
3499
- if (!c || !i)
3500
- throw new Error("Parameters {type} and {callback} are required.");
3156
+ if (!c || !i) throw new Error("Parameters {type} and {callback} are required.");
3501
3157
  let f = typeof c == "function";
3502
3158
  return this.walk((u, m) => {
3503
- if (f && u instanceof c || !f && u.type === c)
3504
- return i.call(this, u, m);
3159
+ if (f && u instanceof c || !f && u.type === c) return i.call(this, u, m);
3505
3160
  });
3506
3161
  }
3507
3162
  append(c) {
@@ -3511,34 +3166,28 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3511
3166
  return c.parent = this, this.nodes.unshift(c), this;
3512
3167
  }
3513
3168
  cleanRaws(c) {
3514
- if (super.cleanRaws(c), this.nodes)
3515
- for (let i of this.nodes)
3516
- i.cleanRaws(c);
3169
+ if (super.cleanRaws(c), this.nodes) for (let i of this.nodes) i.cleanRaws(c);
3517
3170
  }
3518
3171
  insertAfter(c, i) {
3519
3172
  let f = this.index(c), u;
3520
3173
  this.nodes.splice(f + 1, 0, i);
3521
- for (let m in this.indexes)
3522
- u = this.indexes[m], f <= u && (this.indexes[m] = u + this.nodes.length);
3174
+ for (let m in this.indexes) u = this.indexes[m], f <= u && (this.indexes[m] = u + this.nodes.length);
3523
3175
  return this;
3524
3176
  }
3525
3177
  insertBefore(c, i) {
3526
3178
  let f = this.index(c), u;
3527
3179
  this.nodes.splice(f, 0, i);
3528
- for (let m in this.indexes)
3529
- u = this.indexes[m], f <= u && (this.indexes[m] = u + this.nodes.length);
3180
+ for (let m in this.indexes) u = this.indexes[m], f <= u && (this.indexes[m] = u + this.nodes.length);
3530
3181
  return this;
3531
3182
  }
3532
3183
  removeChild(c) {
3533
3184
  c = this.index(c), this.nodes[c].parent = void 0, this.nodes.splice(c, 1);
3534
3185
  let i;
3535
- for (let f in this.indexes)
3536
- i = this.indexes[f], i >= c && (this.indexes[f] = i - 1);
3186
+ for (let f in this.indexes) i = this.indexes[f], i >= c && (this.indexes[f] = i - 1);
3537
3187
  return this;
3538
3188
  }
3539
3189
  removeAll() {
3540
- for (let c of this.nodes)
3541
- c.parent = void 0;
3190
+ for (let c of this.nodes) c.parent = void 0;
3542
3191
  return this.nodes = [], this;
3543
3192
  }
3544
3193
  every(c) {
@@ -3551,12 +3200,10 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3551
3200
  return typeof c == "number" ? c : this.nodes.indexOf(c);
3552
3201
  }
3553
3202
  get first() {
3554
- if (this.nodes)
3555
- return this.nodes[0];
3203
+ if (this.nodes) return this.nodes[0];
3556
3204
  }
3557
3205
  get last() {
3558
- if (this.nodes)
3559
- return this.nodes[this.nodes.length - 1];
3206
+ if (this.nodes) return this.nodes[this.nodes.length - 1];
3560
3207
  }
3561
3208
  toString() {
3562
3209
  let c = this.nodes.map(String).join("");
@@ -3724,8 +3371,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3724
3371
  case 34:
3725
3372
  k = v === 39 ? "'" : '"', g = l;
3726
3373
  do
3727
- for (A = !1, g = t.indexOf(k, g + 1), g === -1 && R("quote"), I = g; t.charCodeAt(I - 1) === 92; )
3728
- I -= 1, A = !A;
3374
+ for (A = !1, g = t.indexOf(k, g + 1), g === -1 && R("quote"), I = g; t.charCodeAt(I - 1) === 92; ) I -= 1, A = !A;
3729
3375
  while (A);
3730
3376
  r.push(["string", t.slice(l, g + 1), d, l - a, d, g - a, l]), l = g;
3731
3377
  break;
@@ -3746,8 +3392,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3746
3392
  break;
3747
3393
  default:
3748
3394
  if (v === 47 && (t.charCodeAt(l + 1) === 42 || p.loose && !y && t.charCodeAt(l + 1) === 47)) {
3749
- if (t.charCodeAt(l + 1) === 42)
3750
- g = t.indexOf("*/", l + 2) + 1, g === 0 && R("comment");
3395
+ if (t.charCodeAt(l + 1) === 42) g = t.indexOf("*/", l + 2) + 1, g === 0 && R("comment");
3751
3396
  else {
3752
3397
  let $ = t.indexOf(`
3753
3398
  `, l + 2);
@@ -3755,16 +3400,14 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3755
3400
  }
3756
3401
  O = t.slice(l, g + 1), w = O.split(`
3757
3402
  `), x = w.length - 1, x > 0 ? (T = d + x, _ = g - w[x].length) : (T = d, _ = a), r.push(["comment", O, d, l - a, T, g - _, l]), a = _, d = T, l = g;
3758
- } else if (v === 35 && !i.test(t.slice(l + 1, l + 2)))
3759
- g = l + 1, r.push(["#", t.slice(l, g), d, l - a, d, g - a, l]), l = g - 1;
3403
+ } else if (v === 35 && !i.test(t.slice(l + 1, l + 2))) g = l + 1, r.push(["#", t.slice(l, g), d, l - a, d, g - a, l]), l = g - 1;
3760
3404
  else if ((v === 117 || v === 85) && t.charCodeAt(l + 1) === 43) {
3761
3405
  g = l + 2;
3762
3406
  do
3763
3407
  g += 1, v = t.charCodeAt(g);
3764
3408
  while (g < h && f.test(t.slice(g, g + 1)));
3765
3409
  r.push(["unicoderange", t.slice(l, g), d, l - a, d, g - a, l]), l = g - 1;
3766
- } else if (v === 47)
3767
- g = l + 1, r.push(["operator", t.slice(l, g), d, l - a, d, g - a, l]), l = g - 1;
3410
+ } else if (v === 47) g = l + 1, r.push(["operator", t.slice(l, g), d, l - a, d, g - a, l]), l = g - 1;
3768
3411
  else {
3769
3412
  let $ = o;
3770
3413
  if (v >= 48 && v <= 57 && ($ = c), $.lastIndex = l + 1, $.test(t), $.lastIndex === 0 ? g = t.length - 1 : g = $.lastIndex - 2, $ === c || v === 46) {
@@ -3817,18 +3460,15 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3817
3460
  throw new g(w + ` at line: ${x[2]}, column ${x[3]}`);
3818
3461
  }
3819
3462
  loop() {
3820
- for (; this.position < this.tokens.length; )
3821
- this.parseTokens();
3463
+ for (; this.position < this.tokens.length; ) this.parseTokens();
3822
3464
  return !this.current.last && this.spaces ? this.current.raws.before += this.spaces : this.spaces && (this.current.last.raws.after += this.spaces), this.spaces = "", this.root;
3823
3465
  }
3824
3466
  operator() {
3825
3467
  let w = this.currToken[1], x;
3826
3468
  if (w === "+" || w === "-") {
3827
3469
  if (this.options.loose || this.position > 0 && (this.current.type === "func" && this.current.value === "calc" ? this.prevToken[0] !== "space" && this.prevToken[0] !== "(" ? this.error("Syntax Error", this.currToken) : this.nextToken[0] !== "space" && this.nextToken[0] !== "word" ? this.error("Syntax Error", this.currToken) : this.nextToken[0] === "word" && this.current.last.type !== "operator" && this.current.last.value !== "(" && this.error("Syntax Error", this.currToken) : (this.nextToken[0] === "space" || this.nextToken[0] === "operator" || this.prevToken[0] === "operator") && this.error("Syntax Error", this.currToken)), this.options.loose) {
3828
- if ((!this.current.nodes.length || this.current.last && this.current.last.type === "operator") && this.nextToken[0] === "word")
3829
- return this.word();
3830
- } else if (this.nextToken[0] === "word")
3831
- return this.word();
3470
+ if ((!this.current.nodes.length || this.current.last && this.current.last.type === "operator") && this.nextToken[0] === "word") return this.word();
3471
+ } else if (this.nextToken[0] === "word") return this.word();
3832
3472
  }
3833
3473
  return x = new r({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }), this.position++, this.newNode(x);
3834
3474
  }
@@ -3878,8 +3518,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3878
3518
  }
3879
3519
  if (w && this.error("Expected closing parenthesis", O), T = this.current.last, T && T.type === "func" && T.unbalanced < 0 && (T.unbalanced = 0, this.current = T), this.current.unbalanced++, this.newNode(new t({ value: O[1], source: { start: { line: O[2], column: O[3] }, end: { line: O[4], column: O[5] } }, sourceIndex: O[6] })), this.position++, this.current.type === "func" && this.current.unbalanced && this.current.value === "url" && this.currToken[0] !== "string" && this.currToken[0] !== ")" && !this.options.loose) {
3880
3520
  let _ = this.nextToken, A = this.currToken[1], I = { line: this.currToken[2], column: this.currToken[3] };
3881
- for (; _ && _[0] !== ")" && this.current.unbalanced; )
3882
- this.position++, A += this.currToken[1], _ = this.nextToken;
3521
+ for (; _ && _[0] !== ")" && this.current.unbalanced; ) this.position++, A += this.currToken[1], _ = this.nextToken;
3883
3522
  this.position !== this.tokens.length - 1 && (this.position++, this.newNode(new a({ value: A, source: { start: I, end: { line: this.currToken[4], column: this.currToken[5] } }, sourceIndex: this.currToken[6] })));
3884
3523
  }
3885
3524
  }
@@ -3897,21 +3536,18 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3897
3536
  }
3898
3537
  splitWord() {
3899
3538
  let w = this.nextToken, x = this.currToken[1], O = /^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/, T = /^(?!\#([a-z0-9]+))[\#\{\}]/gi, _, A;
3900
- if (!T.test(x))
3901
- for (; w && w[0] === "word"; ) {
3902
- this.position++;
3903
- let I = this.currToken[1];
3904
- x += I, w = this.nextToken;
3905
- }
3539
+ if (!T.test(x)) for (; w && w[0] === "word"; ) {
3540
+ this.position++;
3541
+ let I = this.currToken[1];
3542
+ x += I, w = this.nextToken;
3543
+ }
3906
3544
  _ = y(x, "@"), A = k(v(b([[0], _]))), A.forEach((I, N) => {
3907
3545
  let R = A[N + 1] || x.length, $ = x.slice(I, R), M;
3908
- if (~_.indexOf(I))
3909
- M = new c({ value: $.slice(1), source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + A[N] });
3546
+ if (~_.indexOf(I)) M = new c({ value: $.slice(1), source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + A[N] });
3910
3547
  else if (O.test(this.currToken[1])) {
3911
3548
  let P = $.replace(O, "");
3912
3549
  M = new p({ value: $.replace(P, ""), source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + A[N], unit: P });
3913
- } else
3914
- M = new (w && w[0] === "(" ? m : a)({ value: $, source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + A[N] }), M.type === "word" ? (M.isHex = /^#(.+)/.test($), M.isColor = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test($)) : this.cache.push(this.current);
3550
+ } else M = new (w && w[0] === "(" ? m : a)({ value: $, source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + A[N] }), M.type === "word" ? (M.isHex = /^#(.+)/.test($), M.isColor = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test($)) : this.cache.push(this.current);
3915
3551
  this.newNode(M);
3916
3552
  }), this.position++;
3917
3553
  }
@@ -3938,34 +3574,25 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
3938
3574
  }), pr = {};
3939
3575
  Qt(pr, { languages: () => pi, options: () => di, parsers: () => Dr, printers: () => Hi });
3940
3576
  var rn = (e, s, n, o) => {
3941
- if (!(e && s == null))
3942
- return s.replaceAll ? s.replaceAll(n, o) : n.global ? s.replace(n, o) : s.split(n).join(o);
3577
+ if (!(e && s == null)) return s.replaceAll ? s.replaceAll(n, o) : n.global ? s.replace(n, o) : s.split(n).join(o);
3943
3578
  }, F = rn, fr = "string", hr = "array", dr = "cursor", st = "indent", It = "align", mr = "trim", nt = "group", ot = "fill", it = "if-break", vr = "indent-if-break", Pt = "line-suffix", yr = "line-suffix-boundary", xe = "line", gr = "label", Mt = "break-parent", wr = /* @__PURE__ */ new Set([dr, st, It, mr, nt, ot, it, vr, Pt, yr, xe, gr, Mt]), sn = (e, s, n) => {
3944
- if (!(e && s == null))
3945
- return Array.isArray(s) || typeof s == "string" ? s[n < 0 ? s.length + n : n] : s.at(n);
3579
+ if (!(e && s == null)) return Array.isArray(s) || typeof s == "string" ? s[n < 0 ? s.length + n : n] : s.at(n);
3946
3580
  }, ge = sn;
3947
3581
  function nn(e) {
3948
- if (typeof e == "string")
3949
- return fr;
3950
- if (Array.isArray(e))
3951
- return hr;
3952
- if (!e)
3953
- return;
3582
+ if (typeof e == "string") return fr;
3583
+ if (Array.isArray(e)) return hr;
3584
+ if (!e) return;
3954
3585
  let { type: s } = e;
3955
- if (wr.has(s))
3956
- return s;
3586
+ if (wr.has(s)) return s;
3957
3587
  }
3958
3588
  var Ie = nn, on = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
3959
3589
  function an(e) {
3960
3590
  let s = e === null ? "null" : typeof e;
3961
- if (s !== "string" && s !== "object")
3962
- return `Unexpected doc '${s}',
3591
+ if (s !== "string" && s !== "object") return `Unexpected doc '${s}',
3963
3592
  Expected it to be 'string' or 'object'.`;
3964
- if (Ie(e))
3965
- throw new Error("doc is valid.");
3593
+ if (Ie(e)) throw new Error("doc is valid.");
3966
3594
  let n = Object.prototype.toString.call(e);
3967
- if (n !== "[object Object]")
3968
- return `Unexpected doc '${n}'.`;
3595
+ if (n !== "[object Object]") return `Unexpected doc '${n}'.`;
3969
3596
  let o = on([...wr].map((c) => `'${c}'`));
3970
3597
  return `Unexpected doc.type '${e.type}'.
3971
3598
  Expected it to be ${o}.`;
@@ -3977,13 +3604,11 @@ var un = class extends Error {
3977
3604
  }
3978
3605
  }, ln = un;
3979
3606
  function cn(e, s) {
3980
- if (typeof e == "string")
3981
- return s(e);
3607
+ if (typeof e == "string") return s(e);
3982
3608
  let n = /* @__PURE__ */ new Map();
3983
3609
  return o(e);
3984
3610
  function o(i) {
3985
- if (n.has(i))
3986
- return n.get(i);
3611
+ if (n.has(i)) return n.get(i);
3987
3612
  let f = c(i);
3988
3613
  return n.set(i, f), f;
3989
3614
  }
@@ -4052,8 +3677,7 @@ function vn(e) {
4052
3677
  var $t = { type: Mt }, yn = { type: xe, hard: !0 }, U = { type: xe }, Z = { type: xe, soft: !0 }, B = [yn, $t];
4053
3678
  function oe(e, s) {
4054
3679
  let n = [];
4055
- for (let o = 0; o < s.length; o++)
4056
- o !== 0 && n.push(e), n.push(s[o]);
3680
+ for (let o = 0; o < s.length; o++) o !== 0 && n.push(e), n.push(s[o]);
4057
3681
  return n;
4058
3682
  }
4059
3683
  function gn(e) {
@@ -4063,8 +3687,7 @@ var at = gn, kr = new Proxy(() => {
4063
3687
  }, { get: () => kr }), wn = kr, Ue = "'", Ft = '"';
4064
3688
  function bn(e, s) {
4065
3689
  let n = s === !0 || s === Ue ? Ue : Ft, o = n === Ue ? Ft : Ue, c = 0, i = 0;
4066
- for (let f of e)
4067
- f === n ? c++ : f === o && i++;
3690
+ for (let f of e) f === n ? c++ : f === o && i++;
4068
3691
  return c > i ? o : n;
4069
3692
  }
4070
3693
  var xn = bn;
@@ -4089,8 +3712,7 @@ function _n(e) {
4089
3712
  }
4090
3713
  var Xe = _n, En = /* @__PURE__ */ new Set(["raw", "raws", "sourceIndex", "source", "before", "after", "trailingComma", "spaces"]);
4091
3714
  function Tr(e, s, n) {
4092
- if (Xe(e) && e.language === "yaml" && delete s.value, e.type === "css-comment" && n.type === "css-root" && n.nodes.length > 0 && ((n.nodes[0] === e || Xe(n.nodes[0]) && n.nodes[1] === e) && (delete s.text, /^\*\s*@(?:format|prettier)\s*$/u.test(e.text)) || n.type === "css-root" && ge(!1, n.nodes, -1) === e))
4093
- return null;
3715
+ if (Xe(e) && e.language === "yaml" && delete s.value, e.type === "css-comment" && n.type === "css-root" && n.nodes.length > 0 && ((n.nodes[0] === e || Xe(n.nodes[0]) && n.nodes[1] === e) && (delete s.text, /^\*\s*@(?:format|prettier)\s*$/u.test(e.text)) || n.type === "css-root" && ge(!1, n.nodes, -1) === e)) return null;
4094
3716
  if (e.type === "value-root" && delete s.text, (e.type === "media-query" || e.type === "media-query-list" || e.type === "media-feature-expression") && delete s.value, e.type === "css-rule" && delete s.params, (e.type === "media-feature" || e.type === "media-keyword" || e.type === "media-type" || e.type === "media-unknown" || e.type === "media-url" || e.type === "media-value" || e.type === "selector-attribute" || e.type === "selector-string" || e.type === "selector-class" || e.type === "selector-combinator" || e.type === "value-string") && e.value && (s.value = An(e.value)), e.type === "selector-combinator" && (s.value = F(!1, s.value, /\s+/gu, " ")), e.type === "media-feature" && (s.value = F(!1, s.value, " ", "")), (e.type === "value-word" && (e.isColor && e.isHex || ["initial", "inherit", "unset", "revert"].includes(e.value.toLowerCase())) || e.type === "media-feature" || e.type === "selector-root-invalid" || e.type === "selector-pseudo") && (s.value = s.value.toLowerCase()), e.type === "css-decl" && (s.prop = e.prop.toLowerCase()), (e.type === "css-atrule" || e.type === "css-import") && (s.name = e.name.toLowerCase()), e.type === "value-number" && (s.unit = e.unit.toLowerCase()), e.type === "value-unknown" && (s.value = F(!1, s.value, /;$/gu, "")), e.type === "selector-attribute" && (s.attribute = e.attribute.trim(), e.namespace && typeof e.namespace == "string" && (s.namespace = e.namespace.trim() || !0), e.value && (s.value = F(!1, s.value.trim(), /^["']|["']$/gu, ""), delete s.quoted)), (e.type === "media-value" || e.type === "media-type" || e.type === "value-number" || e.type === "selector-root-invalid" || e.type === "selector-class" || e.type === "selector-combinator" || e.type === "selector-tag") && e.value && (s.value = F(!1, s.value, /([\d+.e-]+)([a-z]*)/giu, (o, c, i) => {
4095
3717
  let f = Number(c);
4096
3718
  return Number.isNaN(f) ? o : f + i.toLowerCase();
@@ -4102,8 +3724,7 @@ function Tr(e, s, n) {
4102
3724
  let o = e.groups.findIndex((c) => c.type === "value-number" && c.unit === "...");
4103
3725
  o !== -1 && (s.groups[o].unit = "", s.groups.splice(o + 1, 0, { type: "value-word", value: "...", isColor: !1, isHex: !1 }));
4104
3726
  }
4105
- if (e.type === "value-comma_group" && e.groups.some((o) => o.type === "value-atword" && o.value.endsWith("[") || o.type === "value-word" && o.value.startsWith("]")))
4106
- return { type: "value-atword", value: e.groups.map((o) => o.value).join(""), group: { open: null, close: null, groups: [], type: "value-paren_group" } };
3727
+ if (e.type === "value-comma_group" && e.groups.some((o) => o.type === "value-atword" && o.value.endsWith("[") || o.type === "value-word" && o.value.startsWith("]"))) return { type: "value-atword", value: e.groups.map((o) => o.value).join(""), group: { open: null, close: null, groups: [], type: "value-paren_group" } };
4107
3728
  }
4108
3729
  Tr.ignoredProperties = En;
4109
3730
  function An(e) {
@@ -4119,11 +3740,10 @@ async function In(e, s) {
4119
3740
  var Pn = In;
4120
3741
  function Cr(e) {
4121
3742
  let { node: s } = e;
4122
- if (s.type === "front-matter")
4123
- return async (n) => {
4124
- let o = await Pn(s, n);
4125
- return o ? [o, B] : void 0;
4126
- };
3743
+ if (s.type === "front-matter") return async (n) => {
3744
+ let o = await Pn(s, n);
3745
+ return o ? [o, B] : void 0;
3746
+ };
4127
3747
  }
4128
3748
  Cr.getVisitorKeys = (e) => e.type === "css-root" ? ["frontMatter"] : [];
4129
3749
  var Mn = Cr, Ce = null;
@@ -4135,8 +3755,7 @@ function Pe(e) {
4135
3755
  return Ce = Pe.prototype = e ?? /* @__PURE__ */ Object.create(null), new Pe();
4136
3756
  }
4137
3757
  var $n = 10;
4138
- for (let e = 0; e <= $n; e++)
4139
- Pe();
3758
+ for (let e = 0; e <= $n; e++) Pe();
4140
3759
  function Rn(e) {
4141
3760
  return Pe(e);
4142
3761
  }
@@ -4144,8 +3763,7 @@ function Nn(e, s = "type") {
4144
3763
  Rn(e);
4145
3764
  function n(o) {
4146
3765
  let c = o[s], i = e[c];
4147
- if (!Array.isArray(i))
4148
- throw Object.assign(new Error(`Missing visitor keys for '${c}'.`), { node: o });
3766
+ if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${c}'.`), { node: o });
4149
3767
  return i;
4150
3768
  }
4151
3769
  return n;
@@ -4153,8 +3771,7 @@ function Nn(e, s = "type") {
4153
3771
  var Ln = Nn, Wn = { "front-matter": [], "css-root": ["frontMatter", "nodes"], "css-comment": [], "css-rule": ["selector", "nodes"], "css-decl": ["value", "selector", "nodes"], "css-atrule": ["selector", "params", "value", "nodes"], "media-query-list": ["nodes"], "media-query": ["nodes"], "media-type": [], "media-feature-expression": ["nodes"], "media-feature": [], "media-colon": [], "media-value": [], "media-keyword": [], "media-url": [], "media-unknown": [], "selector-root": ["nodes"], "selector-selector": ["nodes"], "selector-comment": [], "selector-string": [], "selector-tag": [], "selector-id": [], "selector-class": [], "selector-attribute": [], "selector-combinator": ["nodes"], "selector-universal": [], "selector-pseudo": ["nodes"], "selector-nesting": [], "selector-unknown": [], "value-value": ["group"], "value-root": ["group"], "value-comment": [], "value-comma_group": ["groups"], "value-paren_group": ["open", "groups", "close"], "value-func": ["group"], "value-paren": [], "value-number": [], "value-operator": [], "value-word": [], "value-colon": [], "value-comma": [], "value-string": [], "value-atword": [], "value-unicode-range": [], "value-unknown": [] }, zn = Wn, qn = Ln(zn), Bn = qn;
4154
3772
  function Fn(e, s) {
4155
3773
  let n = 0;
4156
- for (let o = 0; o < e.line - 1; ++o)
4157
- n = s.indexOf(`
3774
+ for (let o = 0; o < e.line - 1; ++o) n = s.indexOf(`
4158
3775
  `, n) + 1;
4159
3776
  return n + e.column;
4160
3777
  }
@@ -4162,16 +3779,13 @@ var Sr = Fn;
4162
3779
  function Rt(e) {
4163
3780
  return (s, n, o) => {
4164
3781
  let c = !!(o != null && o.backwards);
4165
- if (n === !1)
4166
- return !1;
3782
+ if (n === !1) return !1;
4167
3783
  let { length: i } = s, f = n;
4168
3784
  for (; f >= 0 && f < i; ) {
4169
3785
  let u = s.charAt(f);
4170
3786
  if (e instanceof RegExp) {
4171
- if (!e.test(u))
4172
- return f;
4173
- } else if (!e.includes(u))
4174
- return f;
3787
+ if (!e.test(u)) return f;
3788
+ } else if (!e.includes(u)) return f;
4175
3789
  c ? f-- : f++;
4176
3790
  }
4177
3791
  return f === -1 || f === i ? f : !1;
@@ -4184,27 +3798,21 @@ function Ar(e, s) {
4184
3798
  }
4185
3799
  function jr(e, s) {
4186
3800
  var n, o, c;
4187
- if (typeof ((o = (n = e.source) == null ? void 0 : n.start) == null ? void 0 : o.offset) == "number")
4188
- return e.source.start.offset;
4189
- if (typeof e.sourceIndex == "number")
4190
- return e.type === "value-word" ? Ar(e, e.sourceIndex) : e.sourceIndex;
4191
- if ((c = e.source) != null && c.start)
4192
- return Sr(e.source.start, s);
3801
+ if (typeof ((o = (n = e.source) == null ? void 0 : n.start) == null ? void 0 : o.offset) == "number") return e.source.start.offset;
3802
+ if (typeof e.sourceIndex == "number") return e.type === "value-word" ? Ar(e, e.sourceIndex) : e.sourceIndex;
3803
+ if ((c = e.source) != null && c.start) return Sr(e.source.start, s);
4193
3804
  throw Object.assign(new Error("Can not locate node."), { node: e });
4194
3805
  }
4195
3806
  function Nt(e, s) {
4196
3807
  var n, o;
4197
- if (e.type === "css-comment" && e.inline)
4198
- return Er(s, e.source.startOffset);
4199
- if (typeof ((o = (n = e.source) == null ? void 0 : n.end) == null ? void 0 : o.offset) == "number")
4200
- return e.source.end.offset;
3808
+ if (e.type === "css-comment" && e.inline) return Er(s, e.source.startOffset);
3809
+ if (typeof ((o = (n = e.source) == null ? void 0 : n.end) == null ? void 0 : o.offset) == "number") return e.source.end.offset;
4201
3810
  if (e.source) {
4202
3811
  if (e.source.end) {
4203
3812
  let c = Sr(e.source.end, s);
4204
3813
  return e.type === "value-word" ? Ar(e, c) : c;
4205
3814
  }
4206
- if (at(e.nodes))
4207
- return Nt(ge(!1, e.nodes, -1), s);
3815
+ if (at(e.nodes)) return Nt(ge(!1, e.nodes, -1), s);
4208
3816
  }
4209
3817
  return null;
4210
3818
  }
@@ -4256,18 +3864,15 @@ function Vn(e) {
4256
3864
  continue;
4257
3865
  case "single-quotes":
4258
3866
  if (u === "'" && e[f - 1] !== "\\" && (s = n, n = "initial"), u === `
4259
- ` || u === "\r")
4260
- return e;
3867
+ ` || u === "\r") return e;
4261
3868
  continue;
4262
3869
  case "double-quotes":
4263
3870
  if (u === '"' && e[f - 1] !== "\\" && (s = n, n = "initial"), u === `
4264
- ` || u === "\r")
4265
- return e;
3871
+ ` || u === "\r") return e;
4266
3872
  continue;
4267
3873
  case "url":
4268
3874
  if (u === ")" && (s = "initial"), u === `
4269
- ` || u === "\r")
4270
- return e;
3875
+ ` || u === "\r") return e;
4271
3876
  if (u === "'") {
4272
3877
  s = "single-quotes", n = "url";
4273
3878
  continue;
@@ -4286,8 +3891,7 @@ function Vn(e) {
4286
3891
  continue;
4287
3892
  }
4288
3893
  }
4289
- for (let [f, u] of i)
4290
- e = e.slice(0, f) + F(!1, e.slice(f, u), /["'*]/gu, " ") + e.slice(u);
3894
+ for (let [f, u] of i) e = e.slice(0, f) + F(!1, e.slice(f, u), /["'*]/gu, " ") + e.slice(u);
4291
3895
  return e;
4292
3896
  }
4293
3897
  function V(e) {
@@ -4312,8 +3916,7 @@ function Yn(e) {
4312
3916
  `;
4313
3917
  e = F(!1, e.replace(Jn, "").replace(Gn, ""), Zn, "$1");
4314
3918
  let n = "";
4315
- for (; n !== e; )
4316
- n = e, e = F(!1, e, Qn, `${s}$1 $2${s}`);
3919
+ for (; n !== e; ) n = e, e = F(!1, e, Qn, `${s}$1 $2${s}`);
4317
3920
  e = e.replace(Dt, "").trimEnd();
4318
3921
  let o = /* @__PURE__ */ Object.create(null), c = F(!1, e, Ut, "").replace(Dt, "").trimEnd(), i;
4319
3922
  for (; i = Ut.exec(e); ) {
@@ -4321,8 +3924,7 @@ function Yn(e) {
4321
3924
  if (typeof o[i[1]] == "string" || Array.isArray(o[i[1]])) {
4322
3925
  let u = o[i[1]];
4323
3926
  o[i[1]] = [...$r, ...Array.isArray(u) ? u : [u], f];
4324
- } else
4325
- o[i[1]] = f;
3927
+ } else o[i[1]] = f;
4326
3928
  }
4327
3929
  return { comments: c, pragmas: o };
4328
3930
  }
@@ -4330,8 +3932,7 @@ function eo({ comments: e = "", pragmas: s = {} }) {
4330
3932
  let n = `
4331
3933
  `, o = "/**", c = " *", i = " */", f = Object.keys(s), u = f.flatMap((p) => Vt(p, s[p])).map((p) => `${c} ${p}${n}`).join("");
4332
3934
  if (!e) {
4333
- if (f.length === 0)
4334
- return "";
3935
+ if (f.length === 0) return "";
4335
3936
  if (f.length === 1 && !Array.isArray(s[f[0]])) {
4336
3937
  let p = s[f[0]];
4337
3938
  return `${o} ${Vt(f[0], p)[0]}${i}`;
@@ -4345,8 +3946,7 @@ function Vt(e, s) {
4345
3946
  }
4346
3947
  var to = ["noformat", "noprettier"], ro = ["format", "prettier"], so = "format";
4347
3948
  function no(e) {
4348
- if (!e.startsWith("#!"))
4349
- return "";
3949
+ if (!e.startsWith("#!")) return "";
4350
3950
  let s = e.indexOf(`
4351
3951
  `);
4352
3952
  return s === -1 ? e : e.slice(0, s);
@@ -4378,27 +3978,22 @@ function uo(e) {
4378
3978
  var Se = 3;
4379
3979
  function lo(e) {
4380
3980
  let s = e.slice(0, Se);
4381
- if (s !== "---" && s !== "+++")
4382
- return;
3981
+ if (s !== "---" && s !== "+++") return;
4383
3982
  let n = e.indexOf(`
4384
3983
  `, Se);
4385
- if (n === -1)
4386
- return;
3984
+ if (n === -1) return;
4387
3985
  let o = e.slice(Se, n).trim(), c = e.indexOf(`
4388
3986
  ${s}`, n), i = o;
4389
3987
  if (i || (i = s === "+++" ? "toml" : "yaml"), c === -1 && s === "---" && i === "yaml" && (c = e.indexOf(`
4390
- ...`, n)), c === -1)
4391
- return;
3988
+ ...`, n)), c === -1) return;
4392
3989
  let f = c + 1 + Se, u = e.charAt(f + 1);
4393
- if (!/\s?/u.test(u))
4394
- return;
3990
+ if (!/\s?/u.test(u)) return;
4395
3991
  let m = e.slice(0, f);
4396
3992
  return { type: "front-matter", language: i, explicitLanguage: o, value: e.slice(n + 1, c), startDelimiter: s, endDelimiter: m.slice(-Se), raw: m };
4397
3993
  }
4398
3994
  function co(e) {
4399
3995
  let s = lo(e);
4400
- if (!s)
4401
- return { content: e };
3996
+ if (!s) return { content: e };
4402
3997
  let { raw: n } = s;
4403
3998
  return { frontMatter: s, content: F(!1, n, /[^\n]/gu, " ") + e.slice(n.length) };
4404
3999
  }
@@ -4532,14 +4127,11 @@ function ft(e) {
4532
4127
  }
4533
4128
  function Rr(e, s) {
4534
4129
  var n;
4535
- if (s.parser !== "scss")
4536
- return !1;
4130
+ if (s.parser !== "scss") return !1;
4537
4131
  let { node: o } = e;
4538
- if (o.groups.length === 0)
4539
- return !1;
4132
+ if (o.groups.length === 0) return !1;
4540
4133
  let c = e.grandparent;
4541
- if (!ft(o) && !(c && ft(c)))
4542
- return !1;
4134
+ if (!ft(o) && !(c && ft(c))) return !1;
4543
4135
  let i = e.findAncestor((f) => f.type === "css-decl");
4544
4136
  return !!((n = i?.prop) != null && n.startsWith("$") || ft(c) || c.type === "value-func");
4545
4137
  }
@@ -4562,8 +4154,7 @@ function Ke(e) {
4562
4154
  return e?.type === "value-colon";
4563
4155
  }
4564
4156
  function Ro(e, s) {
4565
- if (!Wt(s))
4566
- return !1;
4157
+ if (!Wt(s)) return !1;
4567
4158
  let { groups: n } = s, o = n.indexOf(e);
4568
4159
  return o === -1 ? !1 : Ke(n[o + 1]);
4569
4160
  }
@@ -4581,12 +4172,10 @@ function Ge(e) {
4581
4172
  }
4582
4173
  function Wo(e, s) {
4583
4174
  var n, o;
4584
- if (((n = e.open) == null ? void 0 : n.value) !== "(" || ((o = e.close) == null ? void 0 : o.value) !== ")" || e.groups.some((c) => c.type !== "value-comma_group"))
4585
- return !1;
4175
+ if (((n = e.open) == null ? void 0 : n.value) !== "(" || ((o = e.close) == null ? void 0 : o.value) !== ")" || e.groups.some((c) => c.type !== "value-comma_group")) return !1;
4586
4176
  if (s.type === "value-comma_group") {
4587
4177
  let c = s.groups.indexOf(e) - 1, i = s.groups[c];
4588
- if (i?.type === "value-word" && i.value === "with")
4589
- return !0;
4178
+ if (i?.type === "value-word" && i.value === "with") return !0;
4590
4179
  }
4591
4180
  return !1;
4592
4181
  }
@@ -4607,17 +4196,14 @@ function zo(e, s, n) {
4607
4196
  (k && ne(k) || ne(g)) && a.push([a.pop(), " "]);
4608
4197
  continue;
4609
4198
  }
4610
- if (Ke(k) && g.type === "value-word" && a.length > 2 && c.groups.slice(0, y).every((I) => I.type === "value-comment") && !Ee(v) && (a[a.length - 2] = $e(ge(!1, a, -2))), Me(e, "forward") && g.type === "value-word" && g.value && v !== void 0 && v.type === "value-word" && v.value === "as" && k.type === "value-operator" && k.value === "*" || Me(e, "utility") && g.type === "value-word" && k && k.type === "value-operator" && k.value === "*" || !k || g.type === "value-word" && Ge(k) && G(g) === V(k))
4611
- continue;
4199
+ if (Ke(k) && g.type === "value-word" && a.length > 2 && c.groups.slice(0, y).every((I) => I.type === "value-comment") && !Ee(v) && (a[a.length - 2] = $e(ge(!1, a, -2))), Me(e, "forward") && g.type === "value-word" && g.value && v !== void 0 && v.type === "value-word" && v.value === "as" && k.type === "value-operator" && k.value === "*" || Me(e, "utility") && g.type === "value-word" && k && k.type === "value-operator" && k.value === "*" || !k || g.type === "value-word" && Ge(k) && G(g) === V(k)) continue;
4612
4200
  if (g.type === "value-string" && g.quoted) {
4613
4201
  let I = g.value.lastIndexOf("#{"), N = g.value.lastIndexOf("}");
4614
4202
  I !== -1 && N !== -1 ? l = I > N : I !== -1 ? l = !0 : N !== -1 && (l = !1);
4615
4203
  }
4616
- if (l || Ke(g) || Ke(k) || g.type === "value-atword" && (g.value === "" || g.value.endsWith("[")) || k.type === "value-word" && k.value.startsWith("]") || g.value === "~" || g.type !== "value-string" && g.value && g.value.includes("\\") && k && k.type !== "value-comment" || v != null && v.value && v.value.indexOf("\\") === v.value.length - 1 && g.type === "value-operator" && g.value === "/" || g.value === "\\" || Po(g, k) || ht(g) || Jt(g) || dt(k) || Jt(k) && me(k) || dt(g) && me(k) || g.value === "--" && ht(k))
4617
- continue;
4204
+ if (l || Ke(g) || Ke(k) || g.type === "value-atword" && (g.value === "" || g.value.endsWith("[")) || k.type === "value-word" && k.value.startsWith("]") || g.value === "~" || g.type !== "value-string" && g.value && g.value.includes("\\") && k && k.type !== "value-comment" || v != null && v.value && v.value.indexOf("\\") === v.value.length - 1 && g.type === "value-operator" && g.value === "/" || g.value === "\\" || Po(g, k) || ht(g) || Jt(g) || dt(k) || Jt(k) && me(k) || dt(g) && me(k) || g.value === "--" && ht(k)) continue;
4618
4205
  let x = ct(g), O = ct(k);
4619
- if ((x && ht(k) || O && dt(g)) && me(k) || !v && Ze(g) || Qe(e, "calc") && (ne(g) || ne(k) || ye(g) || ye(k)) && me(k))
4620
- continue;
4206
+ if ((x && ht(k) || O && dt(g)) && me(k) || !v && Ze(g) || Qe(e, "calc") && (ne(g) || ne(k) || ye(g) || ye(k)) && me(k)) continue;
4621
4207
  let T = (ne(g) || ye(g)) && y === 0 && (k.type === "value-number" || k.isHex) && f && Lo(f) && !me(k), _ = w?.type === "value-func" || w && Ve(w) || g.type === "value-func" || Ve(g), A = k.type === "value-func" || Ve(k) || v?.type === "value-func" || v && Ve(v);
4622
4208
  if (s.parser === "scss" && x && g.value === "-" && k.type === "value-func" && G(g) !== V(k)) {
4623
4209
  a.push([a.pop(), " "]);
@@ -4691,23 +4277,18 @@ function Ho(e) {
4691
4277
  }
4692
4278
  function Qo(e, s, n) {
4693
4279
  let o = !!(n != null && n.backwards);
4694
- if (s === !1)
4695
- return !1;
4280
+ if (s === !1) return !1;
4696
4281
  let c = e.charAt(s);
4697
4282
  if (o) {
4698
4283
  if (e.charAt(s - 1) === "\r" && c === `
4699
- `)
4700
- return s - 2;
4284
+ `) return s - 2;
4701
4285
  if (c === `
4702
- ` || c === "\r" || c === "\u2028" || c === "\u2029")
4703
- return s - 1;
4286
+ ` || c === "\r" || c === "\u2028" || c === "\u2029") return s - 1;
4704
4287
  } else {
4705
4288
  if (c === "\r" && e.charAt(s + 1) === `
4706
- `)
4707
- return s + 2;
4289
+ `) return s + 2;
4708
4290
  if (c === `
4709
- ` || c === "\r" || c === "\u2028" || c === "\u2029")
4710
- return s + 1;
4291
+ ` || c === "\r" || c === "\u2028" || c === "\u2029") return s + 1;
4711
4292
  }
4712
4293
  return s;
4713
4294
  }
@@ -4718,12 +4299,9 @@ function Zo(e, s, n = {}) {
4718
4299
  }
4719
4300
  var qr = Zo;
4720
4301
  function Ko(e, s) {
4721
- if (s === !1)
4722
- return !1;
4302
+ if (s === !1) return !1;
4723
4303
  if (e.charAt(s) === "/" && e.charAt(s + 1) === "*") {
4724
- for (let n = s + 2; n < e.length; ++n)
4725
- if (e.charAt(n) === "*" && e.charAt(n + 1) === "/")
4726
- return n + 2;
4304
+ for (let n = s + 2; n < e.length; ++n) if (e.charAt(n) === "*" && e.charAt(n + 1) === "/") return n + 2;
4727
4305
  }
4728
4306
  return s;
4729
4307
  }
@@ -4734,8 +4312,7 @@ function Yo(e, s) {
4734
4312
  var ei = Yo;
4735
4313
  function ti(e, s) {
4736
4314
  let n = null, o = s;
4737
- for (; o !== n; )
4738
- n = o, o = Dn(e, o), o = Xo(e, o), o = _r(e, o);
4315
+ for (; o !== n; ) n = o, o = Dn(e, o), o = Xo(e, o), o = _r(e, o);
4739
4316
  return o = ei(e, o), o = zr(e, o), o !== !1 && qr(e, o);
4740
4317
  }
4741
4318
  var Br = ti;
@@ -4747,8 +4324,7 @@ function si(e, s) {
4747
4324
  }
4748
4325
  function ni(e, s, n) {
4749
4326
  let { node: o, parent: c } = e, i = e.map(({ node: a }) => typeof a == "string" ? a : n(), "groups");
4750
- if (c && ko(c) && (o.groups.length === 1 || o.groups.length > 0 && o.groups[0].type === "value-comma_group" && o.groups[0].groups.length > 0 && o.groups[0].groups[0].type === "value-word" && o.groups[0].groups[0].value.startsWith("data:")))
4751
- return [o.open ? n("open") : "", oe(",", i), o.close ? n("close") : ""];
4327
+ if (c && ko(c) && (o.groups.length === 1 || o.groups.length > 0 && o.groups[0].type === "value-comma_group" && o.groups[0].groups.length > 0 && o.groups[0].groups[0].type === "value-word" && o.groups[0].groups[0].value.startsWith("data:"))) return [o.open ? n("open") : "", oe(",", i), o.close ? n("close") : ""];
4752
4328
  if (!o.open) {
4753
4329
  let a = Fr(e), d = ii(oe(",", i), 2), l = oe(a ? B : U, d);
4754
4330
  return H(a ? [B, l] : K([oi(e) ? Z : "", He(l)]));
@@ -4774,16 +4350,14 @@ function oi(e) {
4774
4350
  }
4775
4351
  function ii(e, s) {
4776
4352
  let n = [];
4777
- for (let o = 0; o < e.length; o += s)
4778
- n.push(e.slice(o, o + s));
4353
+ for (let o = 0; o < e.length; o += s) n.push(e.slice(o, o + s));
4779
4354
  return n;
4780
4355
  }
4781
4356
  function ai(e, s, n) {
4782
4357
  let o = [];
4783
4358
  return e.each(() => {
4784
4359
  let { node: c, previous: i } = e;
4785
- if (i?.type === "css-comment" && i.text.trim() === "prettier-ignore" ? o.push(s.originalText.slice(V(c), G(c))) : o.push(n()), e.isLast)
4786
- return;
4360
+ if (i?.type === "css-comment" && i.text.trim() === "prettier-ignore" ? o.push(s.originalText.slice(V(c), G(c))) : o.push(n()), e.isLast) return;
4787
4361
  let { next: f } = e;
4788
4362
  f.type === "css-comment" && !qr(s.originalText, V(f), { backwards: !0 }) && !Xe(c) || f.type === "css-atrule" && f.name === "else" && c.type !== "css-comment" ? o.push(" ") : (o.push(s.__isHTMLStyleAttribute ? U : B), Br(s.originalText, G(c)) && !Xe(c) && o.push(B));
4789
4363
  }, "nodes"), o;
@@ -4812,12 +4386,9 @@ function ui(e, s, n) {
4812
4386
  case "css-atrule": {
4813
4387
  let r = e.parent, t = pt(p) && !r.raws.semicolon && s.originalText[G(p) - 1] !== ";";
4814
4388
  if (s.parser === "less") {
4815
- if (p.mixin)
4816
- return [n("selector"), p.important ? " !important" : "", t ? "" : ";"];
4817
- if (p.function)
4818
- return [p.name, typeof p.params == "string" ? p.params : n("params"), t ? "" : ";"];
4819
- if (p.variable)
4820
- return ["@", p.name, ": ", p.value ? n("value") : "", p.raws.between.trim() ? p.raws.between.trim() + " " : "", p.nodes ? ["{", H([p.nodes.length > 0 ? Z : "", je(e, s, n)]), Z, "}"] : "", t ? "" : ";"];
4389
+ if (p.mixin) return [n("selector"), p.important ? " !important" : "", t ? "" : ";"];
4390
+ if (p.function) return [p.name, typeof p.params == "string" ? p.params : n("params"), t ? "" : ";"];
4391
+ if (p.variable) return ["@", p.name, ": ", p.value ? n("value") : "", p.raws.between.trim() ? p.raws.between.trim() + " " : "", p.nodes ? ["{", H([p.nodes.length > 0 ? Z : "", je(e, s, n)]), Z, "}"] : "", t ? "" : ";"];
4821
4392
  }
4822
4393
  let h = p.name === "import" && ((f = p.params) == null ? void 0 : f.type) === "value-unknown" && p.params.value.endsWith(";");
4823
4394
  return ["@", Gt(p) || p.name.endsWith(":") || pt(p) ? p.name : _e(p.name), p.params ? [Gt(p) ? "" : pt(p) ? p.raws.afterName === "" ? "" : p.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(p.raws.afterName) ? [B, B] : /^\s*\n/u.test(p.raws.afterName) ? B : " " : " ", typeof p.params == "string" ? p.params : n("params")] : "", p.selector ? H([" ", n("selector")]) : "", p.value ? K([" ", n("value"), vt(p, s) ? $o(p) ? " " : U : ""]) : p.name === "else" ? " " : "", p.nodes ? [vt(p, s) ? "" : p.selector && !p.selector.nodes && typeof p.selector.value == "string" && Ae(p.selector.value) || !p.selector && typeof p.params == "string" && Ae(p.params) ? U : " ", "{", H([p.nodes.length > 0 ? Z : "", je(e, s, n)]), Z, "}"] : t || h ? "" : ";"];
@@ -4880,8 +4451,7 @@ function ui(e, s, n) {
4880
4451
  return p.value;
4881
4452
  case "selector-unknown": {
4882
4453
  let r = e.findAncestor((a) => a.type === "css-rule");
4883
- if (r != null && r.isSCSSNesterProperty)
4884
- return ve(Y(_e(p.value), s));
4454
+ if (r != null && r.isSCSSNesterProperty) return ve(Y(_e(p.value), s));
4885
4455
  let t = e.parent;
4886
4456
  if ((m = t.raws) != null && m.selector) {
4887
4457
  let a = V(t), d = a + t.raws.selector.length;
@@ -4925,7 +4495,6 @@ function ui(e, s, n) {
4925
4495
  return p.value;
4926
4496
  case "value-unknown":
4927
4497
  return p.value;
4928
- case "value-comma":
4929
4498
  default:
4930
4499
  throw new Sn(p, "PostCSS");
4931
4500
  }
@@ -4941,16 +4510,14 @@ var wi = gi, bi = we(ks());
4941
4510
  function ze(e, s, n) {
4942
4511
  if (e && typeof e == "object") {
4943
4512
  delete e.parent;
4944
- for (let o in e)
4945
- ze(e[o], s, n), o === "type" && typeof e[o] == "string" && !e[o].startsWith(s) && (!n || !n.test(e[o])) && (e[o] = s + e[o]);
4513
+ for (let o in e) ze(e[o], s, n), o === "type" && typeof e[o] == "string" && !e[o].startsWith(s) && (!n || !n.test(e[o])) && (e[o] = s + e[o]);
4946
4514
  }
4947
4515
  return e;
4948
4516
  }
4949
4517
  function Ur(e) {
4950
4518
  if (e && typeof e == "object") {
4951
4519
  delete e.parent;
4952
- for (let s in e)
4953
- Ur(e[s]);
4520
+ for (let s in e) Ur(e[s]);
4954
4521
  !Array.isArray(e) && e.value && !e.type && (e.type = "unknown");
4955
4522
  }
4956
4523
  return e;
@@ -4967,8 +4534,7 @@ function ki(e) {
4967
4534
  }
4968
4535
  var Oi = ki, Ti = we(Ws());
4969
4536
  function Ci(e) {
4970
- if (/\/\/|\/\*/u.test(e))
4971
- return { type: "selector-unknown", value: e.trim() };
4537
+ if (/\/\/|\/\*/u.test(e)) return { type: "selector-unknown", value: e.trim() };
4972
4538
  let s;
4973
4539
  try {
4974
4540
  new Ti.default((n) => {
@@ -4980,8 +4546,7 @@ function Ci(e) {
4980
4546
  return ze(s, "selector-");
4981
4547
  }
4982
4548
  var ae = Ci, Si = we(tn()), _i = (e) => {
4983
- for (; e.parent; )
4984
- e = e.parent;
4549
+ for (; e.parent; ) e = e.parent;
4985
4550
  return e;
4986
4551
  }, Vr = _i;
4987
4552
  function Ei(e) {
@@ -4990,9 +4555,7 @@ function Ei(e) {
4990
4555
  var Ai = Ei;
4991
4556
  function ji(e) {
4992
4557
  if (at(e)) {
4993
- for (let s = e.length - 1; s > 0; s--)
4994
- if (e[s].type === "word" && e[s].value === "{" && e[s - 1].type === "word" && e[s - 1].value.endsWith("#"))
4995
- return !0;
4558
+ for (let s = e.length - 1; s > 0; s--) if (e[s].type === "word" && e[s].value === "{" && e[s - 1].type === "word" && e[s - 1].value.endsWith("#")) return !0;
4996
4559
  }
4997
4560
  return !1;
4998
4561
  }
@@ -5018,18 +4581,14 @@ function Ni(e, s) {
5018
4581
  }
5019
4582
  (Ii(h) || !Mi(h) && !Ri(h[0], s)) && (r.group.groups = [Ai(r)]);
5020
4583
  }
5021
- if (r.type === "paren" && r.value === "(")
5022
- c = { open: r, close: null, groups: [], type: "paren_group" }, i.push(c), u = { groups: [], type: "comma_group" }, m.push(u);
4584
+ if (r.type === "paren" && r.value === "(") c = { open: r, close: null, groups: [], type: "paren_group" }, i.push(c), u = { groups: [], type: "comma_group" }, m.push(u);
5023
4585
  else if (Ht(r)) {
5024
- if (u.groups.length > 0 && c.groups.push(u), c.close = r, m.length === 1)
5025
- throw new Error("Unbalanced parenthesis");
4586
+ if (u.groups.length > 0 && c.groups.push(u), c.close = r, m.length === 1) throw new Error("Unbalanced parenthesis");
5026
4587
  m.pop(), u = ge(!1, m, -1), u.groups.push(c), i.pop(), c = ge(!1, i, -1);
5027
4588
  } else if (r.type === "comma") {
5028
- if (p === o.length - 3 && o[p + 1].type === "comment" && Ht(o[p + 2]))
5029
- continue;
4589
+ if (p === o.length - 3 && o[p + 1].type === "comment" && Ht(o[p + 2])) continue;
5030
4590
  c.groups.push(u), u = { groups: [], type: "comma_group" }, m[m.length - 1] = u;
5031
- } else
5032
- u.groups.push(r);
4591
+ } else u.groups.push(r);
5033
4592
  }
5034
4593
  return u.groups.length > 0 && c.groups.push(u), f;
5035
4594
  }
@@ -5037,14 +4596,11 @@ function gt(e) {
5037
4596
  return e.type === "paren_group" && !e.open && !e.close && e.groups.length === 1 || e.type === "comma_group" && e.groups.length === 1 ? gt(e.groups[0]) : e.type === "paren_group" || e.type === "comma_group" ? { ...e, groups: e.groups.map(gt) } : e;
5038
4597
  }
5039
4598
  function Gr(e, s) {
5040
- if (e && typeof e == "object")
5041
- for (let n in e)
5042
- n !== "parent" && (Gr(e[n], s), n === "nodes" && (e.group = gt(Ni(e, s)), delete e[n]));
4599
+ if (e && typeof e == "object") for (let n in e) n !== "parent" && (Gr(e[n], s), n === "nodes" && (e.group = gt(Ni(e, s)), delete e[n]));
5043
4600
  return e;
5044
4601
  }
5045
4602
  function Li(e, s) {
5046
- if (s.parser === "less" && e.startsWith("~`"))
5047
- return { type: "value-unknown", value: e };
4603
+ if (s.parser === "less" && e.startsWith("~`")) return { type: "value-unknown", value: e };
5048
4604
  let n = null;
5049
4605
  try {
5050
4606
  n = new Si.default(e, { loose: !0 }).parse();
@@ -5068,10 +4624,8 @@ function Jr(e, s) {
5068
4624
  var n, o;
5069
4625
  if (e && typeof e == "object") {
5070
4626
  delete e.parent;
5071
- for (let u in e)
5072
- Jr(e[u], s);
5073
- if (!e.type)
5074
- return e;
4627
+ for (let u in e) Jr(e[u], s);
4628
+ if (!e.type) return e;
5075
4629
  if (e.raws ?? (e.raws = {}), e.type === "css-decl" && typeof e.prop == "string" && e.prop.startsWith("--") && typeof e.value == "string" && e.value.startsWith("{")) {
5076
4630
  let u;
5077
4631
  if (e.value.trimEnd().endsWith("}")) {
@@ -5091,14 +4645,12 @@ function Jr(e, s) {
5091
4645
  let i = "";
5092
4646
  typeof e.value == "string" && (i = e.raws.value ? e.raws.value.scss ?? e.raws.value.raw : e.value, e.raws.value = i.trim());
5093
4647
  let f = "";
5094
- if (typeof e.params == "string" && (f = e.raws.params ? e.raws.params.scss ?? e.raws.params.raw : e.params, e.raws.afterName && e.raws.afterName.trim().length > 0 && (f = e.raws.afterName + f), e.raws.between && e.raws.between.trim().length > 0 && (f = f + e.raws.between), f = f.trim(), e.raws.params = f), c.trim().length > 0)
5095
- return c.startsWith("@") && c.endsWith(":") ? e : e.mixin ? (e.selector = ie(c, s), e) : (Fi(e, s) && (e.isSCSSNesterProperty = !0), e.selector = ae(c), e);
4648
+ if (typeof e.params == "string" && (f = e.raws.params ? e.raws.params.scss ?? e.raws.params.raw : e.params, e.raws.afterName && e.raws.afterName.trim().length > 0 && (f = e.raws.afterName + f), e.raws.between && e.raws.between.trim().length > 0 && (f = f + e.raws.between), f = f.trim(), e.raws.params = f), c.trim().length > 0) return c.startsWith("@") && c.endsWith(":") ? e : e.mixin ? (e.selector = ie(c, s), e) : (Fi(e, s) && (e.isSCSSNesterProperty = !0), e.selector = ae(c), e);
5096
4649
  if (i.trim().length > 0) {
5097
4650
  let u = i.match(Di);
5098
4651
  u && (i = i.slice(0, u.index), e.scssDefault = !0, u[0].trim() !== "!default" && (e.raws.scssDefault = u[0]));
5099
4652
  let m = i.match(Ui);
5100
- if (m && (i = i.slice(0, m.index), e.scssGlobal = !0, m[0].trim() !== "!global" && (e.raws.scssGlobal = m[0])), i.startsWith("progid:"))
5101
- return { type: "value-unknown", value: i };
4653
+ if (m && (i = i.slice(0, m.index), e.scssGlobal = !0, m[0].trim() !== "!global" && (e.raws.scssGlobal = m[0])), i.startsWith("progid:")) return { type: "value-unknown", value: i };
5102
4654
  e.value = ie(i, s);
5103
4655
  }
5104
4656
  if (s.parser === "less" && e.type === "css-decl" && i.startsWith("extend(") && (e.extend || (e.extend = e.raws.between === ":"), e.extend && !e.selector && (delete e.value, e.selector = ae(i.slice(7, -1)))), e.type === "css-atrule") {
@@ -5107,8 +4659,7 @@ function Jr(e, s) {
5107
4659
  let u = e.raws.identifier + e.name + e.raws.afterName + e.raws.params;
5108
4660
  return e.selector = ae(u), delete e.params, e;
5109
4661
  }
5110
- if (e.function)
5111
- return e;
4662
+ if (e.function) return e;
5112
4663
  }
5113
4664
  if (s.parser === "css" && e.name === "custom-selector") {
5114
4665
  let u = e.params.match(/:--\S+\s+/u)[0].trim();
@@ -5125,8 +4676,7 @@ function Jr(e, s) {
5125
4676
  let u = e.params.slice(1);
5126
4677
  u && (e.value = ie(u, s)), e.raws.afterName += ":";
5127
4678
  }
5128
- if (e.variable)
5129
- return delete e.params, e.value || delete e.value, e;
4679
+ if (e.variable) return delete e.params, e.value || delete e.value, e;
5130
4680
  }
5131
4681
  }
5132
4682
  if (e.type === "css-atrule" && f.length > 0) {