@projectwallace/css-analyzer 6.0.0-beta.1 → 6.0.0-beta.2

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,5 +1,5 @@
1
1
  import oi from "css-tree/parser";
2
- import pe from "css-tree/walker";
2
+ import fe from "css-tree/walker";
3
3
  let De = null;
4
4
  class H {
5
5
  static createItem(e) {
@@ -228,20 +228,20 @@ function ai(t, e) {
228
228
  }
229
229
  });
230
230
  }
231
- const Gt = 100, nr = 60, rr = " ";
231
+ const Ht = 100, nr = 60, rr = " ";
232
232
  function ir({ source: t, line: e, column: n, baseLine: r, baseColumn: i }, o) {
233
233
  function a(_, q) {
234
234
  return s.slice(_, q).map(
235
- (V, me) => String(_ + me + 1).padStart(y) + " |" + V
235
+ (V, de) => String(_ + de + 1).padStart(y) + " |" + V
236
236
  ).join(`
237
237
  `);
238
238
  }
239
239
  const f = `
240
240
  `.repeat(Math.max(r - 1, 0)), c = " ".repeat(Math.max(i - 1, 0)), s = (f + c + t).split(/\r\n?|\n|\f/), l = Math.max(1, e - o) - 1, m = Math.min(e + o, s.length + 1), y = Math.max(4, String(m).length) + 1;
241
241
  let C = 0;
242
- n += (rr.length - 1) * (s[e - 1].substr(0, n - 1).match(/\t/g) || []).length, n > Gt && (C = n - nr + 3, n = nr - 2);
242
+ n += (rr.length - 1) * (s[e - 1].substr(0, n - 1).match(/\t/g) || []).length, n > Ht && (C = n - nr + 3, n = nr - 2);
243
243
  for (let _ = l; _ <= m; _++)
244
- _ >= 0 && _ < s.length && (s[_] = s[_].replace(/\t/g, rr), s[_] = (C > 0 && s[_].length > C ? "…" : "") + s[_].substr(C, Gt - 2) + (s[_].length > C + Gt - 1 ? "…" : ""));
244
+ _ >= 0 && _ < s.length && (s[_] = s[_].replace(/\t/g, rr), s[_] = (C > 0 && s[_].length > C ? "…" : "") + s[_].substr(C, Ht - 2) + (s[_].length > C + Ht - 1 ? "…" : ""));
245
245
  return [
246
246
  a(l, e),
247
247
  new Array(n + y + 2).join("-") + "^",
@@ -264,7 +264,7 @@ function sr(t, e, n, r, i, o = 1, a = 1) {
264
264
  }
265
265
  });
266
266
  }
267
- const He = 0, k = 1, N = 2, U = 3, z = 4, Re = 5, li = 6, se = 7, oe = 8, $ = 9, E = 10, M = 11, I = 12, J = 13, Er = 14, ae = 15, ee = 16, Ct = 17, qe = 18, bt = 19, mt = 20, te = 21, O = 22, dn = 23, mn = 24, fe = 25, ci = 0;
267
+ const Ge = 0, k = 1, N = 2, U = 3, F = 4, ze = 5, li = 6, ie = 7, se = 8, $ = 9, L = 10, P = 11, I = 12, J = 13, Er = 14, oe = 15, ee = 16, bt = 17, Re = 18, wt = 19, mt = 20, te = 21, O = 22, dn = 23, mn = 24, he = 25, ci = 0;
268
268
  function Q(t) {
269
269
  return t >= 48 && t <= 57;
270
270
  }
@@ -300,29 +300,29 @@ function kt(t) {
300
300
  function Ye(t) {
301
301
  return kt(t) || t === 32 || t === 9;
302
302
  }
303
- function ye(t, e) {
303
+ function ke(t, e) {
304
304
  return !(t !== 92 || kt(e) || e === ci);
305
305
  }
306
- function Ht(t, e, n) {
307
- return t === 45 ? gt(e) || e === 45 || ye(e, n) : gt(t) ? !0 : t === 92 ? ye(t, e) : !1;
308
- }
309
306
  function Wt(t, e, n) {
307
+ return t === 45 ? gt(e) || e === 45 || ke(e, n) : gt(t) ? !0 : t === 92 ? ke(t, e) : !1;
308
+ }
309
+ function Kt(t, e, n) {
310
310
  return t === 43 || t === 45 ? Q(e) ? 2 : e === 46 && Q(n) ? 3 : 0 : t === 46 ? Q(e) ? 2 : 0 : Q(t) ? 1 : 0;
311
311
  }
312
312
  function Tr(t) {
313
313
  return t === 65279 || t === 65534 ? 1 : 0;
314
314
  }
315
- const an = new Array(128), di = 128, ht = 130, Or = 131, kn = 132, Ir = 133;
316
- for (let t = 0; t < an.length; t++)
317
- an[t] = Ye(t) && ht || Q(t) && Or || gt(t) && kn || pi(t) && Ir || t || di;
318
- function Kt(t) {
319
- return t < 128 ? an[t] : kn;
315
+ const ln = new Array(128), di = 128, ht = 130, Or = 131, kn = 132, Ir = 133;
316
+ for (let t = 0; t < ln.length; t++)
317
+ ln[t] = Ye(t) && ht || Q(t) && Or || gt(t) && kn || pi(t) && Ir || t || di;
318
+ function Qt(t) {
319
+ return t < 128 ? ln[t] : kn;
320
320
  }
321
- function Fe(t, e) {
321
+ function Me(t, e) {
322
322
  return e < t.length ? t.charCodeAt(e) : 0;
323
323
  }
324
- function ln(t, e, n) {
325
- return n === 13 && Fe(t, e + 1) === 10 ? 2 : 1;
324
+ function cn(t, e, n) {
325
+ return n === 13 && Me(t, e + 1) === 10 ? 2 : 1;
326
326
  }
327
327
  function $r(t, e, n) {
328
328
  let r = t.charCodeAt(e);
@@ -349,17 +349,17 @@ function at(t, e) {
349
349
  ;
350
350
  return e;
351
351
  }
352
- function Qt(t, e) {
352
+ function Jt(t, e) {
353
353
  for (; e < t.length && Q(t.charCodeAt(e)); e++)
354
354
  ;
355
355
  return e;
356
356
  }
357
357
  function Qe(t, e) {
358
- if (e += 2, Ke(Fe(t, e - 1))) {
359
- for (const r = Math.min(t.length, e + 5); e < r && Ke(Fe(t, e)); e++)
358
+ if (e += 2, Ke(Me(t, e - 1))) {
359
+ for (const r = Math.min(t.length, e + 5); e < r && Ke(Me(t, e)); e++)
360
360
  ;
361
- const n = Fe(t, e);
362
- Ye(n) && (e += ln(t, e, n));
361
+ const n = Me(t, e);
362
+ Ye(n) && (e += cn(t, e, n));
363
363
  }
364
364
  return e;
365
365
  }
@@ -367,7 +367,7 @@ function lt(t, e) {
367
367
  for (; e < t.length; e++) {
368
368
  const n = t.charCodeAt(e);
369
369
  if (!_r(n)) {
370
- if (ye(n, Fe(t, e + 1))) {
370
+ if (ke(n, Me(t, e + 1))) {
371
371
  e = Qe(t, e) - 1;
372
372
  continue;
373
373
  }
@@ -378,25 +378,25 @@ function lt(t, e) {
378
378
  }
379
379
  function Nr(t, e) {
380
380
  let n = t.charCodeAt(e);
381
- if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)), Q(n) && (e = Qt(t, e + 1), n = t.charCodeAt(e)), n === 46 && Q(t.charCodeAt(e + 1)) && (e += 2, e = Qt(t, e)), $r(
381
+ if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)), Q(n) && (e = Jt(t, e + 1), n = t.charCodeAt(e)), n === 46 && Q(t.charCodeAt(e + 1)) && (e += 2, e = Jt(t, e)), $r(
382
382
  t,
383
383
  e,
384
384
  101
385
385
  /* e */
386
386
  )) {
387
387
  let r = 0;
388
- n = t.charCodeAt(e + 1), (n === 45 || n === 43) && (r = 1, n = t.charCodeAt(e + 2)), Q(n) && (e = Qt(t, e + 1 + r + 1));
388
+ n = t.charCodeAt(e + 1), (n === 45 || n === 43) && (r = 1, n = t.charCodeAt(e + 2)), Q(n) && (e = Jt(t, e + 1 + r + 1));
389
389
  }
390
390
  return e;
391
391
  }
392
- function Jt(t, e) {
392
+ function Yt(t, e) {
393
393
  for (; e < t.length; e++) {
394
394
  const n = t.charCodeAt(e);
395
395
  if (n === 41) {
396
396
  e++;
397
397
  break;
398
398
  }
399
- ye(n, Fe(t, e + 1)) && (e = Qe(t, e));
399
+ ke(n, Me(t, e + 1)) && (e = Qe(t, e));
400
400
  }
401
401
  return e;
402
402
  }
@@ -480,10 +480,10 @@ class Si {
480
480
  };
481
481
  }
482
482
  }
483
- const ce = 16777215, ue = 24, Te = new Uint8Array(32);
483
+ const le = 16777215, ce = 24, Te = new Uint8Array(32);
484
484
  Te[N] = O;
485
485
  Te[te] = O;
486
- Te[bt] = mt;
486
+ Te[wt] = mt;
487
487
  Te[dn] = mn;
488
488
  function cr(t) {
489
489
  return Te[t] !== 0;
@@ -502,11 +502,11 @@ class xi {
502
502
  let a = 0, f = -1, c = 0, s = e.length;
503
503
  this.offsetAndType = null, this.balance = null, o.fill(0), n(e, (l, m, y) => {
504
504
  const C = a++;
505
- if (i[C] = l << ue | y, f === -1 && (f = m), o[C] = s, l === c) {
505
+ if (i[C] = l << ce | y, f === -1 && (f = m), o[C] = s, l === c) {
506
506
  const _ = o[s];
507
- o[s] = C, s = _, c = Te[i[_] >> ue];
507
+ o[s] = C, s = _, c = Te[i[_] >> ce];
508
508
  } else cr(l) && (s = C, c = Te[l]);
509
- }), i[a] = He << ue | r, o[a] = a;
509
+ }), i[a] = Ge << ce | r, o[a] = a;
510
510
  for (let l = 0; l < a; l++) {
511
511
  const m = o[l];
512
512
  if (m <= l) {
@@ -517,37 +517,37 @@ class xi {
517
517
  this.source = e, this.firstCharOffset = f === -1 ? 0 : f, this.tokenCount = a, this.offsetAndType = i, this.balance = o, this.reset(), this.next();
518
518
  }
519
519
  lookupType(e) {
520
- return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ue : He;
520
+ return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ce : Ge;
521
521
  }
522
522
  lookupTypeNonSC(e) {
523
523
  for (let n = this.tokenIndex; n < this.tokenCount; n++) {
524
- const r = this.offsetAndType[n] >> ue;
525
- if (r !== J && r !== fe && e-- === 0)
524
+ const r = this.offsetAndType[n] >> ce;
525
+ if (r !== J && r !== he && e-- === 0)
526
526
  return r;
527
527
  }
528
- return He;
528
+ return Ge;
529
529
  }
530
530
  lookupOffset(e) {
531
- return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & ce : this.source.length;
531
+ return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & le : this.source.length;
532
532
  }
533
533
  lookupOffsetNonSC(e) {
534
534
  for (let n = this.tokenIndex; n < this.tokenCount; n++) {
535
- const r = this.offsetAndType[n] >> ue;
536
- if (r !== J && r !== fe && e-- === 0)
535
+ const r = this.offsetAndType[n] >> ce;
536
+ if (r !== J && r !== he && e-- === 0)
537
537
  return n - this.tokenIndex;
538
538
  }
539
- return He;
539
+ return Ge;
540
540
  }
541
541
  lookupValue(e, n) {
542
542
  return e += this.tokenIndex, e < this.tokenCount ? yt(
543
543
  this.source,
544
- this.offsetAndType[e - 1] & ce,
545
- this.offsetAndType[e] & ce,
544
+ this.offsetAndType[e - 1] & le,
545
+ this.offsetAndType[e] & le,
546
546
  n
547
547
  ) : !1;
548
548
  }
549
549
  getTokenStart(e) {
550
- return e === this.tokenIndex ? this.tokenStart : e > 0 ? e < this.tokenCount ? this.offsetAndType[e - 1] & ce : this.offsetAndType[this.tokenCount] & ce : this.firstCharOffset;
550
+ return e === this.tokenIndex ? this.tokenStart : e > 0 ? e < this.tokenCount ? this.offsetAndType[e - 1] & le : this.offsetAndType[this.tokenCount] & le : this.firstCharOffset;
551
551
  }
552
552
  substrToCursor(e) {
553
553
  return this.source.substring(e, this.tokenStart);
@@ -560,14 +560,14 @@ class xi {
560
560
  }
561
561
  skip(e) {
562
562
  let n = this.tokenIndex + e;
563
- n < this.tokenCount ? (this.tokenIndex = n, this.tokenStart = this.offsetAndType[n - 1] & ce, n = this.offsetAndType[n], this.tokenType = n >> ue, this.tokenEnd = n & ce) : (this.tokenIndex = this.tokenCount, this.next());
563
+ n < this.tokenCount ? (this.tokenIndex = n, this.tokenStart = this.offsetAndType[n - 1] & le, n = this.offsetAndType[n], this.tokenType = n >> ce, this.tokenEnd = n & le) : (this.tokenIndex = this.tokenCount, this.next());
564
564
  }
565
565
  next() {
566
566
  let e = this.tokenIndex + 1;
567
- e < this.tokenCount ? (this.tokenIndex = e, this.tokenStart = this.tokenEnd, e = this.offsetAndType[e], this.tokenType = e >> ue, this.tokenEnd = e & ce) : (this.eof = !0, this.tokenIndex = this.tokenCount, this.tokenType = He, this.tokenStart = this.tokenEnd = this.source.length);
567
+ e < this.tokenCount ? (this.tokenIndex = e, this.tokenStart = this.tokenEnd, e = this.offsetAndType[e], this.tokenType = e >> ce, this.tokenEnd = e & le) : (this.eof = !0, this.tokenIndex = this.tokenCount, this.tokenType = Ge, this.tokenStart = this.tokenEnd = this.source.length);
568
568
  }
569
569
  skipSC() {
570
- for (; this.tokenType === J || this.tokenType === fe; )
570
+ for (; this.tokenType === J || this.tokenType === he; )
571
571
  this.next();
572
572
  }
573
573
  skipUntilBalanced(e, n) {
@@ -576,21 +576,21 @@ class xi {
576
576
  for (; r < this.tokenCount; r++) {
577
577
  if (i = this.balance[r], i < e)
578
578
  break e;
579
- switch (o = r > 0 ? this.offsetAndType[r - 1] & ce : this.firstCharOffset, n(this.source.charCodeAt(o))) {
579
+ switch (o = r > 0 ? this.offsetAndType[r - 1] & le : this.firstCharOffset, n(this.source.charCodeAt(o))) {
580
580
  case 1:
581
581
  break e;
582
582
  case 2:
583
583
  r++;
584
584
  break e;
585
585
  default:
586
- cr(this.offsetAndType[r] >> ue) && (r = i);
586
+ cr(this.offsetAndType[r] >> ce) && (r = i);
587
587
  }
588
588
  }
589
589
  this.skip(r - this.tokenIndex);
590
590
  }
591
591
  forEachToken(e) {
592
592
  for (let n = 0, r = this.firstCharOffset; n < this.tokenCount; n++) {
593
- const i = r, o = this.offsetAndType[n], a = o & ce, f = o >> ue;
593
+ const i = r, o = this.offsetAndType[n], a = o & le, f = o >> ce;
594
594
  r = a, e(f, i, a, n);
595
595
  }
596
596
  }
@@ -611,15 +611,15 @@ function Pr(t, e) {
611
611
  return m < f ? t.charCodeAt(m) : 0;
612
612
  }
613
613
  function r() {
614
- if (s = Nr(t, s), Ht(n(s), n(s + 1), n(s + 2))) {
614
+ if (s = Nr(t, s), Wt(n(s), n(s + 1), n(s + 2))) {
615
615
  l = I, s = lt(t, s);
616
616
  return;
617
617
  }
618
618
  if (n(s) === 37) {
619
- l = M, s++;
619
+ l = P, s++;
620
620
  return;
621
621
  }
622
- l = E;
622
+ l = L;
623
623
  }
624
624
  function i() {
625
625
  const m = s;
@@ -638,15 +638,15 @@ function Pr(t, e) {
638
638
  l = k;
639
639
  }
640
640
  function o(m) {
641
- for (m || (m = n(s++)), l = Re; s < t.length; s++) {
641
+ for (m || (m = n(s++)), l = ze; s < t.length; s++) {
642
642
  const y = t.charCodeAt(s);
643
- switch (Kt(y)) {
643
+ switch (Qt(y)) {
644
644
  case m:
645
645
  s++;
646
646
  return;
647
647
  case ht:
648
648
  if (kt(y)) {
649
- s += ln(t, s, y), l = li;
649
+ s += cn(t, s, y), l = li;
650
650
  return;
651
651
  }
652
652
  break;
@@ -654,15 +654,15 @@ function Pr(t, e) {
654
654
  if (s === t.length - 1)
655
655
  break;
656
656
  const C = n(s + 1);
657
- kt(C) ? s += ln(t, s + 1, C) : ye(y, C) && (s = Qe(t, s) - 1);
657
+ kt(C) ? s += cn(t, s + 1, C) : ke(y, C) && (s = Qe(t, s) - 1);
658
658
  break;
659
659
  }
660
660
  }
661
661
  }
662
662
  function a() {
663
- for (l = se, s = at(t, s); s < t.length; s++) {
663
+ for (l = ie, s = at(t, s); s < t.length; s++) {
664
664
  const m = t.charCodeAt(s);
665
- switch (Kt(m)) {
665
+ switch (Qt(m)) {
666
666
  case 41:
667
667
  s++;
668
668
  return;
@@ -671,20 +671,20 @@ function Pr(t, e) {
671
671
  s < t.length && s++;
672
672
  return;
673
673
  }
674
- s = Jt(t, s), l = oe;
674
+ s = Yt(t, s), l = se;
675
675
  return;
676
676
  case 34:
677
677
  case 39:
678
678
  case 40:
679
679
  case Ir:
680
- s = Jt(t, s), l = oe;
680
+ s = Yt(t, s), l = se;
681
681
  return;
682
682
  case 92:
683
- if (ye(m, n(s + 1))) {
683
+ if (ke(m, n(s + 1))) {
684
684
  s = Qe(t, s) - 1;
685
685
  break;
686
686
  }
687
- s = Jt(t, s), l = oe;
687
+ s = Yt(t, s), l = se;
688
688
  return;
689
689
  }
690
690
  }
@@ -694,7 +694,7 @@ function Pr(t, e) {
694
694
  let c = Tr(n(0)), s = c, l;
695
695
  for (; s < f; ) {
696
696
  const m = t.charCodeAt(s);
697
- switch (Kt(m)) {
697
+ switch (Qt(m)) {
698
698
  case ht:
699
699
  l = J, s = at(t, s + 1);
700
700
  break;
@@ -702,7 +702,7 @@ function Pr(t, e) {
702
702
  o();
703
703
  break;
704
704
  case 35:
705
- _r(n(s + 1)) || ye(n(s + 1), n(s + 2)) ? (l = z, s = lt(t, s + 1)) : (l = $, s++);
705
+ _r(n(s + 1)) || ke(n(s + 1), n(s + 2)) ? (l = F, s = lt(t, s + 1)) : (l = $, s++);
706
706
  break;
707
707
  case 39:
708
708
  o();
@@ -714,37 +714,37 @@ function Pr(t, e) {
714
714
  l = O, s++;
715
715
  break;
716
716
  case 43:
717
- Wt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
717
+ Kt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
718
718
  break;
719
719
  case 44:
720
- l = qe, s++;
720
+ l = Re, s++;
721
721
  break;
722
722
  case 45:
723
- Wt(m, n(s + 1), n(s + 2)) ? r() : n(s + 1) === 45 && n(s + 2) === 62 ? (l = ae, s = s + 3) : Ht(m, n(s + 1), n(s + 2)) ? i() : (l = $, s++);
723
+ Kt(m, n(s + 1), n(s + 2)) ? r() : n(s + 1) === 45 && n(s + 2) === 62 ? (l = oe, s = s + 3) : Wt(m, n(s + 1), n(s + 2)) ? i() : (l = $, s++);
724
724
  break;
725
725
  case 46:
726
- Wt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
726
+ Kt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
727
727
  break;
728
728
  case 47:
729
- n(s + 1) === 42 ? (l = fe, s = t.indexOf("*/", s + 2), s = s === -1 ? t.length : s + 2) : (l = $, s++);
729
+ n(s + 1) === 42 ? (l = he, s = t.indexOf("*/", s + 2), s = s === -1 ? t.length : s + 2) : (l = $, s++);
730
730
  break;
731
731
  case 58:
732
732
  l = ee, s++;
733
733
  break;
734
734
  case 59:
735
- l = Ct, s++;
735
+ l = bt, s++;
736
736
  break;
737
737
  case 60:
738
738
  n(s + 1) === 33 && n(s + 2) === 45 && n(s + 3) === 45 ? (l = Er, s = s + 4) : (l = $, s++);
739
739
  break;
740
740
  case 64:
741
- Ht(n(s + 1), n(s + 2), n(s + 3)) ? (l = U, s = lt(t, s + 1)) : (l = $, s++);
741
+ Wt(n(s + 1), n(s + 2), n(s + 3)) ? (l = U, s = lt(t, s + 1)) : (l = $, s++);
742
742
  break;
743
743
  case 91:
744
- l = bt, s++;
744
+ l = wt, s++;
745
745
  break;
746
746
  case 92:
747
- ye(m, n(s + 1)) ? i() : (l = $, s++);
747
+ ke(m, n(s + 1)) ? i() : (l = $, s++);
748
748
  break;
749
749
  case 93:
750
750
  l = mt, s++;
@@ -775,7 +775,7 @@ function Ci(t) {
775
775
  };
776
776
  for (; !this.eof; ) {
777
777
  switch (this.tokenType) {
778
- case fe:
778
+ case he:
779
779
  this.next();
780
780
  continue;
781
781
  case J:
@@ -790,13 +790,13 @@ function Ci(t) {
790
790
  return n && t.onWhiteSpace && t.onWhiteSpace.call(this, null, e, r), e;
791
791
  }
792
792
  const ur = () => {
793
- }, bi = 33, wi = 35, Yt = 59, hr = 123, fr = 0;
793
+ }, bi = 33, wi = 35, Xt = 59, hr = 123, fr = 0;
794
794
  function vi(t) {
795
795
  return function() {
796
796
  return this[t]();
797
797
  };
798
798
  }
799
- function Xt(t) {
799
+ function Zt(t) {
800
800
  const e = /* @__PURE__ */ Object.create(null);
801
801
  for (const n of Object.keys(t)) {
802
802
  const r = t[n], i = r.parse || r;
@@ -809,9 +809,9 @@ function Ai(t) {
809
809
  context: /* @__PURE__ */ Object.create(null),
810
810
  features: Object.assign(/* @__PURE__ */ Object.create(null), t.features),
811
811
  scope: Object.assign(/* @__PURE__ */ Object.create(null), t.scope),
812
- atrule: Xt(t.atrule),
813
- pseudo: Xt(t.pseudo),
814
- node: Xt(t.node)
812
+ atrule: Zt(t.atrule),
813
+ pseudo: Zt(t.pseudo),
814
+ node: Zt(t.node)
815
815
  };
816
816
  for (const [n, r] of Object.entries(t.parseContext))
817
817
  switch (typeof r) {
@@ -841,13 +841,13 @@ function Li(t) {
841
841
  return s === hr ? 1 : 0;
842
842
  },
843
843
  consumeUntilLeftCurlyBracketOrSemicolon(s) {
844
- return s === hr || s === Yt ? 1 : 0;
844
+ return s === hr || s === Xt ? 1 : 0;
845
845
  },
846
846
  consumeUntilExclamationMarkOrSemicolon(s) {
847
- return s === bi || s === Yt ? 1 : 0;
847
+ return s === bi || s === Xt ? 1 : 0;
848
848
  },
849
849
  consumeUntilSemicolonIncluded(s) {
850
- return s === Yt ? 2 : 0;
850
+ return s === Xt ? 2 : 0;
851
851
  },
852
852
  createList() {
853
853
  return new H();
@@ -876,7 +876,7 @@ function Li(t) {
876
876
  lookupNonWSType(s) {
877
877
  let l;
878
878
  do
879
- if (l = this.lookupType(s++), l !== J && l !== fe)
879
+ if (l = this.lookupType(s++), l !== J && l !== he)
880
880
  return l;
881
881
  while (l !== fr);
882
882
  return fr;
@@ -914,13 +914,13 @@ function Li(t) {
914
914
  let m = `${/[[\](){}]/.test(l) ? `"${l}"` : l} is expected`, y = this.tokenStart;
915
915
  switch (s) {
916
916
  case k:
917
- this.tokenType === N || this.tokenType === se ? (y = this.tokenEnd - 1, m = "Identifier is expected but function found") : m = "Identifier is expected";
917
+ this.tokenType === N || this.tokenType === ie ? (y = this.tokenEnd - 1, m = "Identifier is expected but function found") : m = "Identifier is expected";
918
918
  break;
919
- case z:
919
+ case F:
920
920
  this.isDelim(wi) && (this.next(), y++, m = "Name is expected");
921
921
  break;
922
- case M:
923
- this.tokenType === E && (y = this.tokenEnd, m = "Percent sign is expected");
922
+ case P:
923
+ this.tokenType === L && (y = this.tokenEnd, m = "Percent sign is expected");
924
924
  break;
925
925
  }
926
926
  this.error(m, y);
@@ -975,9 +975,9 @@ function Li(t) {
975
975
  if (!(m in f.context))
976
976
  throw new Error("Unknown context `" + m + "`");
977
977
  typeof y == "function" && f.forEachToken((_, q, V) => {
978
- if (_ === fe) {
979
- const me = f.getLocation(q, V), Oe = yt(e, V - 2, V, "*/") ? e.slice(q + 2, V - 2) : e.slice(q + 2, V);
980
- y(Oe, me);
978
+ if (_ === he) {
979
+ const de = f.getLocation(q, V), Oe = yt(e, V - 2, V, "*/") ? e.slice(q + 2, V - 2) : e.slice(q + 2, V);
980
+ y(Oe, de);
981
981
  }
982
982
  });
983
983
  const C = f.context[m].call(f, l);
@@ -998,16 +998,16 @@ function Pi(t, e) {
998
998
  }
999
999
  function Mi() {
1000
1000
  switch (this.tokenType) {
1001
- case bt:
1001
+ case wt:
1002
1002
  return this.AttributeSelector();
1003
- case z:
1003
+ case F:
1004
1004
  return this.IdSelector();
1005
1005
  case ee:
1006
1006
  return this.lookupType(1) === ee ? this.PseudoElementSelector() : this.PseudoClassSelector();
1007
1007
  case k:
1008
1008
  return this.TypeSelector();
1009
- case E:
1010
- case M:
1009
+ case L:
1010
+ case P:
1011
1011
  return this.Percentage();
1012
1012
  case I:
1013
1013
  this.charCodeAt(this.tokenStart) === pr && this.error("Identifier is expected", this.tokenStart + 1);
@@ -1045,10 +1045,10 @@ function zi() {
1045
1045
  case k:
1046
1046
  t.push(this.Identifier());
1047
1047
  break;
1048
- case Re:
1048
+ case ze:
1049
1049
  t.push(this.String());
1050
1050
  break;
1051
- case qe:
1051
+ case Re:
1052
1052
  t.push(this.Operator());
1053
1053
  break;
1054
1054
  case O:
@@ -1066,7 +1066,7 @@ const Le = {
1066
1066
  this.SelectorList()
1067
1067
  );
1068
1068
  }
1069
- }, Zt = {
1069
+ }, en = {
1070
1070
  parse() {
1071
1071
  return this.createSingleNodeList(
1072
1072
  this.Selector()
@@ -1100,14 +1100,14 @@ const Le = {
1100
1100
  "nth-last-child": ct,
1101
1101
  "nth-last-of-type": ct,
1102
1102
  "nth-of-type": ct,
1103
- slotted: Zt,
1104
- host: Zt,
1105
- "host-context": Zt
1106
- }, he = 43, K = 45, ft = 110, Ee = !0, ji = !1;
1103
+ slotted: en,
1104
+ host: en,
1105
+ "host-context": en
1106
+ }, ue = 43, K = 45, ft = 110, Ee = !0, ji = !1;
1107
1107
  function pt(t, e) {
1108
1108
  let n = this.tokenStart + t;
1109
1109
  const r = this.charCodeAt(n);
1110
- for ((r === he || r === K) && (e && this.error("Number sign is not allowed"), n++); n < this.tokenEnd; n++)
1110
+ for ((r === ue || r === K) && (e && this.error("Number sign is not allowed"), n++); n < this.tokenEnd; n++)
1111
1111
  Q(this.charCodeAt(n)) || this.error("Integer is expected", n);
1112
1112
  }
1113
1113
  function Pe(t) {
@@ -1127,58 +1127,58 @@ function be(t, e) {
1127
1127
  this.error(n, this.tokenStart + t);
1128
1128
  }
1129
1129
  }
1130
- function en() {
1130
+ function tn() {
1131
1131
  let t = 0, e = 0, n = this.tokenType;
1132
- for (; n === J || n === fe; )
1132
+ for (; n === J || n === he; )
1133
1133
  n = this.lookupType(++t);
1134
- if (n !== E)
1135
- if (this.isDelim(he, t) || this.isDelim(K, t)) {
1136
- e = this.isDelim(he, t) ? he : K;
1134
+ if (n !== L)
1135
+ if (this.isDelim(ue, t) || this.isDelim(K, t)) {
1136
+ e = this.isDelim(ue, t) ? ue : K;
1137
1137
  do
1138
1138
  n = this.lookupType(++t);
1139
- while (n === J || n === fe);
1140
- n !== E && (this.skip(t), Pe.call(this, Ee));
1139
+ while (n === J || n === he);
1140
+ n !== L && (this.skip(t), Pe.call(this, Ee));
1141
1141
  } else
1142
1142
  return null;
1143
- return t > 0 && this.skip(t), e === 0 && (n = this.charCodeAt(this.tokenStart), n !== he && n !== K && this.error("Number sign is expected")), Pe.call(this, e !== 0), e === K ? "-" + this.consume(E) : this.consume(E);
1143
+ return t > 0 && this.skip(t), e === 0 && (n = this.charCodeAt(this.tokenStart), n !== ue && n !== K && this.error("Number sign is expected")), Pe.call(this, e !== 0), e === K ? "-" + this.consume(L) : this.consume(L);
1144
1144
  }
1145
1145
  function Ui() {
1146
1146
  const t = this.tokenStart;
1147
1147
  let e = null, n = null;
1148
- if (this.tokenType === E)
1149
- Pe.call(this, ji), n = this.consume(E);
1148
+ if (this.tokenType === L)
1149
+ Pe.call(this, ji), n = this.consume(L);
1150
1150
  else if (this.tokenType === k && this.cmpChar(this.tokenStart, K))
1151
1151
  switch (e = "-1", be.call(this, 1, ft), this.tokenEnd - this.tokenStart) {
1152
1152
  case 2:
1153
- this.next(), n = en.call(this);
1153
+ this.next(), n = tn.call(this);
1154
1154
  break;
1155
1155
  case 3:
1156
- be.call(this, 2, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(E);
1156
+ be.call(this, 2, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L);
1157
1157
  break;
1158
1158
  default:
1159
1159
  be.call(this, 2, K), pt.call(this, 3, Ee), this.next(), n = this.substrToCursor(t + 2);
1160
1160
  }
1161
- else if (this.tokenType === k || this.isDelim(he) && this.lookupType(1) === k) {
1161
+ else if (this.tokenType === k || this.isDelim(ue) && this.lookupType(1) === k) {
1162
1162
  let r = 0;
1163
- switch (e = "1", this.isDelim(he) && (r = 1, this.next()), be.call(this, 0, ft), this.tokenEnd - this.tokenStart) {
1163
+ switch (e = "1", this.isDelim(ue) && (r = 1, this.next()), be.call(this, 0, ft), this.tokenEnd - this.tokenStart) {
1164
1164
  case 1:
1165
- this.next(), n = en.call(this);
1165
+ this.next(), n = tn.call(this);
1166
1166
  break;
1167
1167
  case 2:
1168
- be.call(this, 1, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(E);
1168
+ be.call(this, 1, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L);
1169
1169
  break;
1170
1170
  default:
1171
1171
  be.call(this, 1, K), pt.call(this, 2, Ee), this.next(), n = this.substrToCursor(t + r + 1);
1172
1172
  }
1173
1173
  } else if (this.tokenType === I) {
1174
- const r = this.charCodeAt(this.tokenStart), i = r === he || r === K;
1174
+ const r = this.charCodeAt(this.tokenStart), i = r === ue || r === K;
1175
1175
  let o = this.tokenStart + i;
1176
1176
  for (; o < this.tokenEnd && Q(this.charCodeAt(o)); o++)
1177
1177
  ;
1178
- o === this.tokenStart + i && this.error("Integer is expected", this.tokenStart + i), be.call(this, o - this.tokenStart, ft), e = this.substring(t, o), o + 1 === this.tokenEnd ? (this.next(), n = en.call(this)) : (be.call(this, o - this.tokenStart + 1, K), o + 2 === this.tokenEnd ? (this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(E)) : (pt.call(this, o - this.tokenStart + 2, Ee), this.next(), n = this.substrToCursor(o + 1)));
1178
+ o === this.tokenStart + i && this.error("Integer is expected", this.tokenStart + i), be.call(this, o - this.tokenStart, ft), e = this.substring(t, o), o + 1 === this.tokenEnd ? (this.next(), n = tn.call(this)) : (be.call(this, o - this.tokenStart + 1, K), o + 2 === this.tokenEnd ? (this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L)) : (pt.call(this, o - this.tokenStart + 2, Ee), this.next(), n = this.substrToCursor(o + 1)));
1179
1179
  } else
1180
1180
  this.error();
1181
- return e !== null && e.charCodeAt(0) === he && (e = e.substr(1)), n !== null && n.charCodeAt(0) === he && (n = n.substr(1)), {
1181
+ return e !== null && e.charCodeAt(0) === ue && (e = e.substr(1)), n !== null && n.charCodeAt(0) === ue && (n = n.substr(1)), {
1182
1182
  type: "AnPlusB",
1183
1183
  loc: this.getLocation(t, this.tokenStart),
1184
1184
  a: e,
@@ -1196,12 +1196,12 @@ function Vi(t) {
1196
1196
  } else
1197
1197
  this.tokenize(t.b);
1198
1198
  }
1199
- const Gi = 36, Mr = 42, dt = 61, Hi = 94, cn = 124, Wi = 126;
1199
+ const Gi = 36, Mr = 42, dt = 61, Hi = 94, un = 124, Wi = 126;
1200
1200
  function Ki() {
1201
1201
  this.eof && this.error("Unexpected end of input");
1202
1202
  const t = this.tokenStart;
1203
1203
  let e = !1;
1204
- return this.isDelim(Mr) ? (e = !0, this.next()) : this.isDelim(cn) || this.eat(k), this.isDelim(cn) ? this.charCodeAt(this.tokenStart + 1) !== dt ? (this.next(), this.eat(k)) : e && this.error("Identifier is expected", this.tokenEnd) : e && this.error("Vertical line is expected"), {
1204
+ return this.isDelim(Mr) ? (e = !0, this.next()) : this.isDelim(un) || this.eat(k), this.isDelim(un) ? this.charCodeAt(this.tokenStart + 1) !== dt ? (this.next(), this.eat(k)) : e && this.error("Identifier is expected", this.tokenEnd) : e && this.error("Vertical line is expected"), {
1205
1205
  type: "Identifier",
1206
1206
  loc: this.getLocation(t, this.tokenStart),
1207
1207
  name: this.substrToCursor(t)
@@ -1214,12 +1214,12 @@ function Qi() {
1214
1214
  e !== Hi && // ^=
1215
1215
  e !== Gi && // $=
1216
1216
  e !== Mr && // *=
1217
- e !== cn && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), this.next(), e !== dt && (this.isDelim(dt) || this.error("Equal sign is expected"), this.next()), this.substrToCursor(t);
1217
+ e !== un && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), this.next(), e !== dt && (this.isDelim(dt) || this.error("Equal sign is expected"), this.next()), this.substrToCursor(t);
1218
1218
  }
1219
1219
  function Ji() {
1220
1220
  const t = this.tokenStart;
1221
1221
  let e, n = null, r = null, i = null;
1222
- return this.eat(bt), this.skipSC(), e = Ki.call(this), this.skipSC(), this.tokenType !== mt && (this.tokenType !== k && (n = Qi.call(this), this.skipSC(), r = this.tokenType === Re ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === k && (i = this.consume(k), this.skipSC())), this.eat(mt), {
1222
+ return this.eat(wt), this.skipSC(), e = Ki.call(this), this.skipSC(), this.tokenType !== mt && (this.tokenType !== k && (n = Qi.call(this), this.skipSC(), r = this.tokenType === ze ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === k && (i = this.consume(k), this.skipSC())), this.eat(mt), {
1223
1223
  type: "AttributeSelector",
1224
1224
  loc: this.getLocation(t, this.tokenStart),
1225
1225
  name: e,
@@ -1287,7 +1287,7 @@ function as(t) {
1287
1287
  }
1288
1288
  function ls() {
1289
1289
  const t = this.tokenStart;
1290
- return this.eat(z), {
1290
+ return this.eat(F), {
1291
1291
  type: "IdSelector",
1292
1292
  loc: this.getLocation(t, this.tokenStart),
1293
1293
  name: this.substrToCursor(t + 1)
@@ -1336,11 +1336,11 @@ function ks() {
1336
1336
  return {
1337
1337
  type: "Percentage",
1338
1338
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1339
- value: this.consumeNumber(M)
1339
+ value: this.consumeNumber(P)
1340
1340
  };
1341
1341
  }
1342
1342
  function ys(t) {
1343
- this.token(M, t.value + "%");
1343
+ this.token(P, t.value + "%");
1344
1344
  }
1345
1345
  function Ss() {
1346
1346
  const t = this.tokenStart;
@@ -1401,7 +1401,7 @@ function Es(t) {
1401
1401
  function _s() {
1402
1402
  const t = this.createList();
1403
1403
  for (; !this.eof; ) {
1404
- if (t.push(this.Selector()), this.tokenType === qe) {
1404
+ if (t.push(this.Selector()), this.tokenType === Re) {
1405
1405
  this.next();
1406
1406
  continue;
1407
1407
  }
@@ -1414,20 +1414,20 @@ function _s() {
1414
1414
  };
1415
1415
  }
1416
1416
  function Ts(t) {
1417
- this.children(t, () => this.token(qe, ","));
1417
+ this.children(t, () => this.token(Re, ","));
1418
1418
  }
1419
- const un = 92, Fr = 34, Os = 39;
1419
+ const hn = 92, Fr = 34, Os = 39;
1420
1420
  function Is(t) {
1421
1421
  const e = t.length, n = t.charCodeAt(0), r = n === Fr || n === Os ? 1 : 0, i = r === 1 && e > 1 && t.charCodeAt(e - 1) === n ? e - 2 : e - 1;
1422
1422
  let o = "";
1423
1423
  for (let a = r; a <= i; a++) {
1424
1424
  let f = t.charCodeAt(a);
1425
- if (f === un) {
1425
+ if (f === hn) {
1426
1426
  if (a === i) {
1427
1427
  a !== e - 1 && (o = t.substr(a + 1));
1428
1428
  break;
1429
1429
  }
1430
- if (f = t.charCodeAt(++a), ye(un, f)) {
1430
+ if (f = t.charCodeAt(++a), ke(hn, f)) {
1431
1431
  const c = a - 1, s = Qe(t, c);
1432
1432
  a = s - 1, o += gi(t.substring(c + 1, s));
1433
1433
  } else
@@ -1450,7 +1450,7 @@ function $s(t, e) {
1450
1450
  i += "\\" + f.toString(16), o = !0;
1451
1451
  continue;
1452
1452
  }
1453
- f === r || f === un ? (i += "\\" + t.charAt(a), o = !1) : (o && (Ke(f) || Ye(f)) && (i += " "), i += t.charAt(a), o = !1);
1453
+ f === r || f === hn ? (i += "\\" + t.charAt(a), o = !1) : (o && (Ke(f) || Ye(f)) && (i += " "), i += t.charAt(a), o = !1);
1454
1454
  }
1455
1455
  return n + i + n;
1456
1456
  }
@@ -1458,19 +1458,19 @@ function Ns() {
1458
1458
  return {
1459
1459
  type: "String",
1460
1460
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1461
- value: Is(this.consume(Re))
1461
+ value: Is(this.consume(ze))
1462
1462
  };
1463
1463
  }
1464
1464
  function Ds(t) {
1465
- this.token(Re, $s(t.value));
1465
+ this.token(ze, $s(t.value));
1466
1466
  }
1467
1467
  const Ps = 42, mr = 124;
1468
- function tn() {
1468
+ function nn() {
1469
1469
  this.tokenType !== k && this.isDelim(Ps) === !1 && this.error("Identifier or asterisk is expected"), this.next();
1470
1470
  }
1471
1471
  function Ms() {
1472
1472
  const t = this.tokenStart;
1473
- return this.isDelim(mr) ? (this.next(), tn.call(this)) : (tn.call(this), this.isDelim(mr) && (this.next(), tn.call(this))), {
1473
+ return this.isDelim(mr) ? (this.next(), nn.call(this)) : (nn.call(this), this.isDelim(mr) && (this.next(), nn.call(this))), {
1474
1474
  type: "TypeSelector",
1475
1475
  loc: this.getLocation(t, this.tokenStart),
1476
1476
  name: this.substrToCursor(t)
@@ -1545,7 +1545,7 @@ yn.decode = function(e, n, r) {
1545
1545
  } while (f);
1546
1546
  r.value = Bs(o), r.rest = n;
1547
1547
  };
1548
- var wt = {};
1548
+ var vt = {};
1549
1549
  (function(t) {
1550
1550
  function e(u, h, g) {
1551
1551
  if (h in u)
@@ -1595,15 +1595,15 @@ var wt = {};
1595
1595
  return h;
1596
1596
  g = p.path;
1597
1597
  }
1598
- for (var X = t.isAbsolute(g), j = [], xe = 0, R = 0; ; )
1599
- if (xe = R, R = g.indexOf("/", xe), R === -1) {
1600
- j.push(g.slice(xe));
1598
+ for (var X = t.isAbsolute(g), j = [], Se = 0, z = 0; ; )
1599
+ if (Se = z, z = g.indexOf("/", Se), z === -1) {
1600
+ j.push(g.slice(Se));
1601
1601
  break;
1602
1602
  } else
1603
- for (j.push(g.slice(xe, R)); R < g.length && g[R] === "/"; )
1604
- R++;
1605
- for (var Ce, ge = 0, R = j.length - 1; R >= 0; R--)
1606
- Ce = j[R], Ce === "." ? j.splice(R, 1) : Ce === ".." ? ge++ : ge > 0 && (Ce === "" ? (j.splice(R + 1, ge), ge = 0) : (j.splice(R, 2), ge--));
1603
+ for (j.push(g.slice(Se, z)); z < g.length && g[z] === "/"; )
1604
+ z++;
1605
+ for (var xe, me = 0, z = j.length - 1; z >= 0; z--)
1606
+ xe = j[z], xe === "." ? j.splice(z, 1) : xe === ".." ? me++ : me > 0 && (xe === "" ? (j.splice(z + 1, me), me = 0) : (j.splice(z, 2), me--));
1607
1607
  return g = j.join("/"), g === "" && (g = X ? "/" : "."), p ? (p.path = g, o(p)) : g;
1608
1608
  });
1609
1609
  t.normalize = c;
@@ -1664,21 +1664,21 @@ var wt = {};
1664
1664
  return p !== 0 || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0 || g) || (p = u.generatedColumn - h.generatedColumn, p !== 0) || (p = u.generatedLine - h.generatedLine, p !== 0) ? p : Y(u.name, h.name);
1665
1665
  }
1666
1666
  t.compareByOriginalPositions = V;
1667
- function me(u, h, g) {
1667
+ function de(u, h, g) {
1668
1668
  var p;
1669
1669
  return p = u.originalLine - h.originalLine, p !== 0 || (p = u.originalColumn - h.originalColumn, p !== 0 || g) || (p = u.generatedColumn - h.generatedColumn, p !== 0) || (p = u.generatedLine - h.generatedLine, p !== 0) ? p : Y(u.name, h.name);
1670
1670
  }
1671
- t.compareByOriginalPositionsNoSource = me;
1671
+ t.compareByOriginalPositionsNoSource = de;
1672
1672
  function Oe(u, h, g) {
1673
1673
  var p = u.generatedLine - h.generatedLine;
1674
1674
  return p !== 0 || (p = u.generatedColumn - h.generatedColumn, p !== 0 || g) || (p = Y(u.source, h.source), p !== 0) || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0) ? p : Y(u.name, h.name);
1675
1675
  }
1676
1676
  t.compareByGeneratedPositionsDeflated = Oe;
1677
- function Be(u, h, g) {
1677
+ function qe(u, h, g) {
1678
1678
  var p = u.generatedColumn - h.generatedColumn;
1679
1679
  return p !== 0 || g || (p = Y(u.source, h.source), p !== 0) || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0) ? p : Y(u.name, h.name);
1680
1680
  }
1681
- t.compareByGeneratedPositionsDeflatedNoLine = Be;
1681
+ t.compareByGeneratedPositionsDeflatedNoLine = qe;
1682
1682
  function Y(u, h) {
1683
1683
  return u === h ? 0 : u === null ? 1 : h === null ? -1 : u > h ? 1 : -1;
1684
1684
  }
@@ -1705,30 +1705,30 @@ var wt = {};
1705
1705
  return c(h);
1706
1706
  }
1707
1707
  t.computeSourceURL = tt;
1708
- })(wt);
1709
- var jr = {}, Cn = wt, bn = Object.prototype.hasOwnProperty, _e = typeof Map < "u";
1710
- function Se() {
1708
+ })(vt);
1709
+ var jr = {}, Cn = vt, bn = Object.prototype.hasOwnProperty, _e = typeof Map < "u";
1710
+ function ye() {
1711
1711
  this._array = [], this._set = _e ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
1712
1712
  }
1713
- Se.fromArray = function(e, n) {
1714
- for (var r = new Se(), i = 0, o = e.length; i < o; i++)
1713
+ ye.fromArray = function(e, n) {
1714
+ for (var r = new ye(), i = 0, o = e.length; i < o; i++)
1715
1715
  r.add(e[i], n);
1716
1716
  return r;
1717
1717
  };
1718
- Se.prototype.size = function() {
1718
+ ye.prototype.size = function() {
1719
1719
  return _e ? this._set.size : Object.getOwnPropertyNames(this._set).length;
1720
1720
  };
1721
- Se.prototype.add = function(e, n) {
1721
+ ye.prototype.add = function(e, n) {
1722
1722
  var r = _e ? e : Cn.toSetString(e), i = _e ? this.has(e) : bn.call(this._set, r), o = this._array.length;
1723
1723
  (!i || n) && this._array.push(e), i || (_e ? this._set.set(e, o) : this._set[r] = o);
1724
1724
  };
1725
- Se.prototype.has = function(e) {
1725
+ ye.prototype.has = function(e) {
1726
1726
  if (_e)
1727
1727
  return this._set.has(e);
1728
1728
  var n = Cn.toSetString(e);
1729
1729
  return bn.call(this._set, n);
1730
1730
  };
1731
- Se.prototype.indexOf = function(e) {
1731
+ ye.prototype.indexOf = function(e) {
1732
1732
  if (_e) {
1733
1733
  var n = this._set.get(e);
1734
1734
  if (n >= 0)
@@ -1740,36 +1740,36 @@ Se.prototype.indexOf = function(e) {
1740
1740
  }
1741
1741
  throw new Error('"' + e + '" is not in the set.');
1742
1742
  };
1743
- Se.prototype.at = function(e) {
1743
+ ye.prototype.at = function(e) {
1744
1744
  if (e >= 0 && e < this._array.length)
1745
1745
  return this._array[e];
1746
1746
  throw new Error("No element indexed by " + e);
1747
1747
  };
1748
- Se.prototype.toArray = function() {
1748
+ ye.prototype.toArray = function() {
1749
1749
  return this._array.slice();
1750
1750
  };
1751
- jr.ArraySet = Se;
1752
- var Ur = {}, Vr = wt;
1751
+ jr.ArraySet = ye;
1752
+ var Ur = {}, Vr = vt;
1753
1753
  function js(t, e) {
1754
1754
  var n = t.generatedLine, r = e.generatedLine, i = t.generatedColumn, o = e.generatedColumn;
1755
1755
  return r > n || r == n && o >= i || Vr.compareByGeneratedPositionsInflated(t, e) <= 0;
1756
1756
  }
1757
- function vt() {
1757
+ function At() {
1758
1758
  this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
1759
1759
  }
1760
- vt.prototype.unsortedForEach = function(e, n) {
1760
+ At.prototype.unsortedForEach = function(e, n) {
1761
1761
  this._array.forEach(e, n);
1762
1762
  };
1763
- vt.prototype.add = function(e) {
1763
+ At.prototype.add = function(e) {
1764
1764
  js(this._last, e) ? (this._last = e, this._array.push(e)) : (this._sorted = !1, this._array.push(e));
1765
1765
  };
1766
- vt.prototype.toArray = function() {
1766
+ At.prototype.toArray = function() {
1767
1767
  return this._sorted || (this._array.sort(Vr.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
1768
1768
  };
1769
- Ur.MappingList = vt;
1770
- var We = yn, P = wt, xt = jr.ArraySet, Us = Ur.MappingList;
1769
+ Ur.MappingList = At;
1770
+ var He = yn, D = vt, xt = jr.ArraySet, Us = Ur.MappingList;
1771
1771
  function ne(t) {
1772
- t || (t = {}), this._file = P.getArg(t, "file", null), this._sourceRoot = P.getArg(t, "sourceRoot", null), this._skipValidation = P.getArg(t, "skipValidation", !1), this._ignoreInvalidMapping = P.getArg(t, "ignoreInvalidMapping", !1), this._sources = new xt(), this._names = new xt(), this._mappings = new Us(), this._sourcesContents = null;
1772
+ t || (t = {}), this._file = D.getArg(t, "file", null), this._sourceRoot = D.getArg(t, "sourceRoot", null), this._skipValidation = D.getArg(t, "skipValidation", !1), this._ignoreInvalidMapping = D.getArg(t, "ignoreInvalidMapping", !1), this._sources = new xt(), this._names = new xt(), this._mappings = new Us(), this._sourcesContents = null;
1773
1773
  }
1774
1774
  ne.prototype._version = 3;
1775
1775
  ne.fromSourceMap = function(e, n) {
@@ -1784,19 +1784,19 @@ ne.fromSourceMap = function(e, n) {
1784
1784
  column: o.generatedColumn
1785
1785
  }
1786
1786
  };
1787
- o.source != null && (a.source = o.source, r != null && (a.source = P.relative(r, a.source)), a.original = {
1787
+ o.source != null && (a.source = o.source, r != null && (a.source = D.relative(r, a.source)), a.original = {
1788
1788
  line: o.originalLine,
1789
1789
  column: o.originalColumn
1790
1790
  }, o.name != null && (a.name = o.name)), i.addMapping(a);
1791
1791
  }), e.sources.forEach(function(o) {
1792
1792
  var a = o;
1793
- r !== null && (a = P.relative(r, o)), i._sources.has(a) || i._sources.add(a);
1793
+ r !== null && (a = D.relative(r, o)), i._sources.has(a) || i._sources.add(a);
1794
1794
  var f = e.sourceContentFor(o);
1795
1795
  f != null && i.setSourceContent(o, f);
1796
1796
  }), i;
1797
1797
  };
1798
1798
  ne.prototype.addMapping = function(e) {
1799
- var n = P.getArg(e, "generated"), r = P.getArg(e, "original", null), i = P.getArg(e, "source", null), o = P.getArg(e, "name", null);
1799
+ var n = D.getArg(e, "generated"), r = D.getArg(e, "original", null), i = D.getArg(e, "source", null), o = D.getArg(e, "name", null);
1800
1800
  !this._skipValidation && this._validateMapping(n, r, i, o) === !1 || (i != null && (i = String(i), this._sources.has(i) || this._sources.add(i)), o != null && (o = String(o), this._names.has(o) || this._names.add(o)), this._mappings.add({
1801
1801
  generatedLine: n.line,
1802
1802
  generatedColumn: n.column,
@@ -1808,7 +1808,7 @@ ne.prototype.addMapping = function(e) {
1808
1808
  };
1809
1809
  ne.prototype.setSourceContent = function(e, n) {
1810
1810
  var r = e;
1811
- this._sourceRoot != null && (r = P.relative(this._sourceRoot, r)), n != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[P.toSetString(r)] = n) : this._sourcesContents && (delete this._sourcesContents[P.toSetString(r)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
1811
+ this._sourceRoot != null && (r = D.relative(this._sourceRoot, r)), n != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[D.toSetString(r)] = n) : this._sourcesContents && (delete this._sourcesContents[D.toSetString(r)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
1812
1812
  };
1813
1813
  ne.prototype.applySourceMap = function(e, n, r) {
1814
1814
  var i = n;
@@ -1820,7 +1820,7 @@ ne.prototype.applySourceMap = function(e, n, r) {
1820
1820
  i = e.file;
1821
1821
  }
1822
1822
  var o = this._sourceRoot;
1823
- o != null && (i = P.relative(o, i));
1823
+ o != null && (i = D.relative(o, i));
1824
1824
  var a = new xt(), f = new xt();
1825
1825
  this._mappings.unsortedForEach(function(c) {
1826
1826
  if (c.source === i && c.originalLine != null) {
@@ -1828,7 +1828,7 @@ ne.prototype.applySourceMap = function(e, n, r) {
1828
1828
  line: c.originalLine,
1829
1829
  column: c.originalColumn
1830
1830
  });
1831
- s.source != null && (c.source = s.source, r != null && (c.source = P.join(r, c.source)), o != null && (c.source = P.relative(o, c.source)), c.originalLine = s.line, c.originalColumn = s.column, s.name != null && (c.name = s.name));
1831
+ s.source != null && (c.source = s.source, r != null && (c.source = D.join(r, c.source)), o != null && (c.source = D.relative(o, c.source)), c.originalLine = s.line, c.originalColumn = s.column, s.name != null && (c.name = s.name));
1832
1832
  }
1833
1833
  var l = c.source;
1834
1834
  l != null && !a.has(l) && a.add(l);
@@ -1836,7 +1836,7 @@ ne.prototype.applySourceMap = function(e, n, r) {
1836
1836
  m != null && !f.has(m) && f.add(m);
1837
1837
  }, this), this._sources = a, this._names = f, e.sources.forEach(function(c) {
1838
1838
  var s = e.sourceContentFor(c);
1839
- s != null && (r != null && (c = P.join(r, c)), o != null && (c = P.relative(o, c)), this.setSourceContent(c, s));
1839
+ s != null && (r != null && (c = D.join(r, c)), o != null && (c = D.relative(o, c)), this.setSourceContent(c, s));
1840
1840
  }, this);
1841
1841
  };
1842
1842
  ne.prototype._validateMapping = function(e, n, r, i) {
@@ -1866,11 +1866,11 @@ ne.prototype._serializeMappings = function() {
1866
1866
  for (e = 0; s.generatedLine !== n; )
1867
1867
  c += ";", n++;
1868
1868
  else if (C > 0) {
1869
- if (!P.compareByGeneratedPositionsInflated(s, y[C - 1]))
1869
+ if (!D.compareByGeneratedPositionsInflated(s, y[C - 1]))
1870
1870
  continue;
1871
1871
  c += ",";
1872
1872
  }
1873
- c += We.encode(s.generatedColumn - e), e = s.generatedColumn, s.source != null && (m = this._sources.indexOf(s.source), c += We.encode(m - a), a = m, c += We.encode(s.originalLine - 1 - i), i = s.originalLine - 1, c += We.encode(s.originalColumn - r), r = s.originalColumn, s.name != null && (l = this._names.indexOf(s.name), c += We.encode(l - o), o = l)), f += c;
1873
+ c += He.encode(s.generatedColumn - e), e = s.generatedColumn, s.source != null && (m = this._sources.indexOf(s.source), c += He.encode(m - a), a = m, c += He.encode(s.originalLine - 1 - i), i = s.originalLine - 1, c += He.encode(s.originalColumn - r), r = s.originalColumn, s.name != null && (l = this._names.indexOf(s.name), c += He.encode(l - o), o = l)), f += c;
1874
1874
  }
1875
1875
  return f;
1876
1876
  };
@@ -1878,8 +1878,8 @@ ne.prototype._generateSourcesContent = function(e, n) {
1878
1878
  return e.map(function(r) {
1879
1879
  if (!this._sourcesContents)
1880
1880
  return null;
1881
- n != null && (r = P.relative(n, r));
1882
- var i = P.toSetString(r);
1881
+ n != null && (r = D.relative(n, r));
1882
+ var i = D.toSetString(r);
1883
1883
  return Object.prototype.hasOwnProperty.call(this._sourcesContents, i) ? this._sourcesContents[i] : null;
1884
1884
  }, this);
1885
1885
  };
@@ -1938,7 +1938,7 @@ function Gs(t) {
1938
1938
  };
1939
1939
  }, t;
1940
1940
  }
1941
- const Hs = 43, Ws = 45, nn = (t, e) => {
1941
+ const Hs = 43, Ws = 45, rn = (t, e) => {
1942
1942
  if (t === $ && (t = e), typeof t == "string") {
1943
1943
  const n = t.charCodeAt(0);
1944
1944
  return n > 127 ? 32768 : n << 8;
@@ -1947,110 +1947,110 @@ const Hs = 43, Ws = 45, nn = (t, e) => {
1947
1947
  }, Gr = [
1948
1948
  [k, k],
1949
1949
  [k, N],
1950
+ [k, ie],
1950
1951
  [k, se],
1951
- [k, oe],
1952
1952
  [k, "-"],
1953
- [k, E],
1954
- [k, M],
1953
+ [k, L],
1954
+ [k, P],
1955
1955
  [k, I],
1956
- [k, ae],
1956
+ [k, oe],
1957
1957
  [k, te],
1958
1958
  [U, k],
1959
1959
  [U, N],
1960
+ [U, ie],
1960
1961
  [U, se],
1961
- [U, oe],
1962
1962
  [U, "-"],
1963
- [U, E],
1964
- [U, M],
1963
+ [U, L],
1964
+ [U, P],
1965
1965
  [U, I],
1966
- [U, ae],
1967
- [z, k],
1968
- [z, N],
1969
- [z, se],
1970
- [z, oe],
1971
- [z, "-"],
1972
- [z, E],
1973
- [z, M],
1974
- [z, I],
1975
- [z, ae],
1966
+ [U, oe],
1967
+ [F, k],
1968
+ [F, N],
1969
+ [F, ie],
1970
+ [F, se],
1971
+ [F, "-"],
1972
+ [F, L],
1973
+ [F, P],
1974
+ [F, I],
1975
+ [F, oe],
1976
1976
  [I, k],
1977
1977
  [I, N],
1978
+ [I, ie],
1978
1979
  [I, se],
1979
- [I, oe],
1980
1980
  [I, "-"],
1981
- [I, E],
1982
- [I, M],
1981
+ [I, L],
1982
+ [I, P],
1983
1983
  [I, I],
1984
- [I, ae],
1984
+ [I, oe],
1985
1985
  ["#", k],
1986
1986
  ["#", N],
1987
+ ["#", ie],
1987
1988
  ["#", se],
1988
- ["#", oe],
1989
1989
  ["#", "-"],
1990
- ["#", E],
1991
- ["#", M],
1990
+ ["#", L],
1991
+ ["#", P],
1992
1992
  ["#", I],
1993
- ["#", ae],
1993
+ ["#", oe],
1994
1994
  // https://github.com/w3c/csswg-drafts/pull/6874
1995
1995
  ["-", k],
1996
1996
  ["-", N],
1997
+ ["-", ie],
1997
1998
  ["-", se],
1998
- ["-", oe],
1999
1999
  ["-", "-"],
2000
- ["-", E],
2001
- ["-", M],
2000
+ ["-", L],
2001
+ ["-", P],
2002
2002
  ["-", I],
2003
- ["-", ae],
2003
+ ["-", oe],
2004
2004
  // https://github.com/w3c/csswg-drafts/pull/6874
2005
- [E, k],
2006
- [E, N],
2007
- [E, se],
2008
- [E, oe],
2009
- [E, E],
2010
- [E, M],
2011
- [E, I],
2012
- [E, "%"],
2013
- [E, ae],
2005
+ [L, k],
2006
+ [L, N],
2007
+ [L, ie],
2008
+ [L, se],
2009
+ [L, L],
2010
+ [L, P],
2011
+ [L, I],
2012
+ [L, "%"],
2013
+ [L, oe],
2014
2014
  // https://github.com/w3c/csswg-drafts/pull/6874
2015
2015
  ["@", k],
2016
2016
  ["@", N],
2017
+ ["@", ie],
2017
2018
  ["@", se],
2018
- ["@", oe],
2019
2019
  ["@", "-"],
2020
- ["@", ae],
2020
+ ["@", oe],
2021
2021
  // https://github.com/w3c/csswg-drafts/pull/6874
2022
- [".", E],
2023
- [".", M],
2022
+ [".", L],
2023
+ [".", P],
2024
2024
  [".", I],
2025
- ["+", E],
2026
- ["+", M],
2025
+ ["+", L],
2026
+ ["+", P],
2027
2027
  ["+", I],
2028
2028
  ["/", "*"]
2029
2029
  ], Ks = Gr.concat([
2030
- [k, z],
2031
- [I, z],
2032
- [z, z],
2030
+ [k, F],
2031
+ [I, F],
2032
+ [F, F],
2033
2033
  [U, te],
2034
- [U, Re],
2034
+ [U, ze],
2035
2035
  [U, ee],
2036
- [M, M],
2037
- [M, I],
2038
- [M, N],
2039
- [M, "-"],
2036
+ [P, P],
2037
+ [P, I],
2038
+ [P, N],
2039
+ [P, "-"],
2040
2040
  [O, k],
2041
2041
  [O, N],
2042
- [O, M],
2042
+ [O, P],
2043
2043
  [O, I],
2044
- [O, z],
2044
+ [O, F],
2045
2045
  [O, "-"]
2046
2046
  ]);
2047
2047
  function Hr(t) {
2048
2048
  const e = new Set(
2049
- t.map(([n, r]) => nn(n) << 16 | nn(r))
2049
+ t.map(([n, r]) => rn(n) << 16 | rn(r))
2050
2050
  );
2051
2051
  return function(n, r, i) {
2052
- const o = nn(r, i), a = i.charCodeAt(0);
2053
- return (a === Ws && r !== k && r !== N && r !== ae || a === Hs ? e.has(n << 16 | a << 8) : e.has(n << 16 | o)) && this.emit(" ", J, !0), o;
2052
+ const o = rn(r, i), a = i.charCodeAt(0);
2053
+ return (a === Ws && r !== k && r !== N && r !== oe || a === Hs ? e.has(n << 16 | a << 8) : e.has(n << 16 | o)) && this.emit(" ", J, !0), o;
2054
2054
  };
2055
2055
  }
2056
2056
  const Qs = Hr(Gr), Wr = Hr(Ks), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -2108,27 +2108,27 @@ function Zs(t) {
2108
2108
  };
2109
2109
  }
2110
2110
  function eo(t) {
2111
- this.token(U, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(Ct, ";");
2111
+ this.token(U, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(bt, ";");
2112
2112
  }
2113
2113
  function to(t) {
2114
2114
  this.children(t);
2115
2115
  }
2116
2116
  function no(t) {
2117
2117
  this.token(dn, "{"), this.children(t, (e) => {
2118
- e.type === "Declaration" && this.token(Ct, ";");
2118
+ e.type === "Declaration" && this.token(bt, ";");
2119
2119
  }), this.token(mn, "}");
2120
2120
  }
2121
2121
  function ro(t) {
2122
2122
  this.token($, "["), this.children(t), this.token($, "]");
2123
2123
  }
2124
2124
  function io() {
2125
- this.token(ae, "-->");
2125
+ this.token(oe, "-->");
2126
2126
  }
2127
2127
  function so() {
2128
2128
  this.token(Er, "<!--");
2129
2129
  }
2130
2130
  function oo(t) {
2131
- this.token(fe, "/*" + t.value + "*/");
2131
+ this.token(he, "/*" + t.value + "*/");
2132
2132
  }
2133
2133
  function ao(t) {
2134
2134
  t.children.forEach((e) => {
@@ -2140,7 +2140,7 @@ function lo(t) {
2140
2140
  }
2141
2141
  function co(t) {
2142
2142
  this.children(t, (e) => {
2143
- e.type === "Declaration" && this.token(Ct, ";");
2143
+ e.type === "Declaration" && this.token(bt, ";");
2144
2144
  });
2145
2145
  }
2146
2146
  function uo(t) {
@@ -2162,28 +2162,28 @@ function go(t) {
2162
2162
  t.function ? this.token(N, t.function + "(") : this.token(te, "("), this.children(t), this.token(O, ")");
2163
2163
  }
2164
2164
  function ko(t) {
2165
- this.token(z, "#" + t.value);
2165
+ this.token(F, "#" + t.value);
2166
2166
  }
2167
2167
  function yo(t) {
2168
2168
  this.tokenize(t.name);
2169
2169
  }
2170
2170
  function So(t) {
2171
- this.children(t, () => this.token(qe, ","));
2171
+ this.children(t, () => this.token(Re, ","));
2172
2172
  }
2173
2173
  function xo(t) {
2174
2174
  t.mediaType ? (t.modifier && this.token(k, t.modifier), this.token(k, t.mediaType), t.condition && (this.token(k, "and"), this.node(t.condition))) : t.condition && this.node(t.condition);
2175
2175
  }
2176
2176
  function Co(t) {
2177
- this.children(t, () => this.token(qe, ","));
2177
+ this.children(t, () => this.token(Re, ","));
2178
2178
  }
2179
2179
  function bo(t) {
2180
- this.token(E, t.value);
2180
+ this.token(L, t.value);
2181
2181
  }
2182
2182
  function wo(t) {
2183
2183
  this.token(te, "("), this.children(t), this.token(O, ")");
2184
2184
  }
2185
2185
  function vo(t) {
2186
- this.node(t.left), this.token($, "/"), t.right ? this.node(t.right) : this.node(E, 1);
2186
+ this.node(t.left), this.token($, "/"), t.right ? this.node(t.right) : this.node(L, 1);
2187
2187
  }
2188
2188
  function Ao(t) {
2189
2189
  this.node(t.prelude), this.node(t.block);
@@ -2218,7 +2218,7 @@ function Mo(t) {
2218
2218
  return "url(" + e + ")";
2219
2219
  }
2220
2220
  function Fo(t) {
2221
- this.token(se, Mo(t.value));
2221
+ this.token(ie, Mo(t.value));
2222
2222
  }
2223
2223
  function zo(t) {
2224
2224
  this.children(t);
@@ -2282,8 +2282,8 @@ const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2282
2282
  }, jo = Zs(Bo), Xe = (t, e) => t.a === e.a ? t.b === e.b ? t.c - e.c : t.b - e.b : t.a - e.a, xr = (t, e) => Xe(t, e) === 0, Cr = (t, e) => Xe(t, e) > 0, br = (t, e) => Xe(t, e) < 0, Kr = (t, e = "ASC") => {
2283
2283
  const n = t.sort(Xe);
2284
2284
  return e === "DESC" ? n.reverse() : n;
2285
- }, Qr = (...t) => Kr(t, "ASC"), Jr = (...t) => Kr(t, "DESC"), hn = (...t) => Jr(...t)[0], Uo = (...t) => Qr(...t)[0];
2286
- class rn extends Error {
2285
+ }, Qr = (...t) => Kr(t, "ASC"), Jr = (...t) => Kr(t, "DESC"), fn = (...t) => Jr(...t)[0], Uo = (...t) => Qr(...t)[0];
2286
+ class sn extends Error {
2287
2287
  constructor() {
2288
2288
  super("Manipulating a Specificity instance is not allowed. Instead, create a new Specificity()");
2289
2289
  }
@@ -2296,19 +2296,19 @@ class Vo {
2296
2296
  return this.value.a;
2297
2297
  }
2298
2298
  set a(e) {
2299
- throw new rn();
2299
+ throw new sn();
2300
2300
  }
2301
2301
  get b() {
2302
2302
  return this.value.b;
2303
2303
  }
2304
2304
  set b(e) {
2305
- throw new rn();
2305
+ throw new sn();
2306
2306
  }
2307
2307
  get c() {
2308
2308
  return this.value.c;
2309
2309
  }
2310
2310
  set c(e) {
2311
- throw new rn();
2311
+ throw new sn();
2312
2312
  }
2313
2313
  selectorString() {
2314
2314
  return typeof this.selector == "string" || this.selector instanceof String ? this.selector : this.selector instanceof Object && this.selector.type === "Selector" ? jo(this.selector) : "";
@@ -2340,10 +2340,10 @@ class Vo {
2340
2340
  return br(this, e);
2341
2341
  }
2342
2342
  static calculate(e) {
2343
- return Me(e);
2343
+ return We(e);
2344
2344
  }
2345
2345
  static calculateForAST(e) {
2346
- return fn(e);
2346
+ return Ct(e);
2347
2347
  }
2348
2348
  static compare(e, n) {
2349
2349
  return Xe(e, n);
@@ -2361,7 +2361,7 @@ class Vo {
2361
2361
  return Uo(...e);
2362
2362
  }
2363
2363
  static max(...e) {
2364
- return hn(...e);
2364
+ return fn(...e);
2365
2365
  }
2366
2366
  static sortAsc(...e) {
2367
2367
  return Qr(...e);
@@ -2370,7 +2370,7 @@ class Vo {
2370
2370
  return Jr(...e);
2371
2371
  }
2372
2372
  }
2373
- const fn = (t) => {
2373
+ const Ct = (t) => {
2374
2374
  if (!t || t.type !== "Selector")
2375
2375
  throw new TypeError("Passed in source is not a Selector AST");
2376
2376
  let e = 0, n = 0, r = 0;
@@ -2397,14 +2397,14 @@ const fn = (t) => {
2397
2397
  case "not":
2398
2398
  case "has":
2399
2399
  if (i.children) {
2400
- const a = hn(...Me(i.children.first));
2400
+ const a = fn(...We(i.children.first));
2401
2401
  e += a.a, n += a.b, r += a.c;
2402
2402
  }
2403
2403
  break;
2404
2404
  case "nth-child":
2405
2405
  case "nth-last-child":
2406
2406
  if (n += 1, i.children && i.children.first.selector) {
2407
- const a = hn(...Me(i.children.first.selector));
2407
+ const a = fn(...We(i.children.first.selector));
2408
2408
  e += a.a, n += a.b, r += a.c;
2409
2409
  }
2410
2410
  break;
@@ -2419,7 +2419,7 @@ const fn = (t) => {
2419
2419
  return f = !0, !1;
2420
2420
  a.children.push(s);
2421
2421
  });
2422
- const c = Me(a)[0];
2422
+ const c = We(a)[0];
2423
2423
  e += c.a, n += c.b, r += c.c;
2424
2424
  }
2425
2425
  break;
@@ -2446,7 +2446,7 @@ const fn = (t) => {
2446
2446
  return f = !0, !1;
2447
2447
  a.children.push(s);
2448
2448
  });
2449
- const c = Me(a)[0];
2449
+ const c = We(a)[0];
2450
2450
  e += c.a, n += c.b, r += c.c;
2451
2451
  }
2452
2452
  break;
@@ -2492,16 +2492,16 @@ const fn = (t) => {
2492
2492
  throw new TypeError("Passed in source is an Object but no AST / AST of the type Selector or SelectorList");
2493
2493
  }
2494
2494
  throw new TypeError("Passed in source is not a String nor an Object. I don't know what to do with it.");
2495
- }, Me = (t) => {
2495
+ }, We = (t) => {
2496
2496
  if (!t)
2497
2497
  return [];
2498
2498
  const e = Go(t);
2499
2499
  if (e.type === "Selector")
2500
- return [fn(t)];
2500
+ return [Ct(t)];
2501
2501
  if (e.type === "SelectorList") {
2502
2502
  const n = [];
2503
2503
  return e.children.forEach((r) => {
2504
- const i = fn(r);
2504
+ const i = Ct(r);
2505
2505
  n.push(i);
2506
2506
  }), n;
2507
2507
  }
@@ -2518,7 +2518,7 @@ function W(t, e) {
2518
2518
  return !1;
2519
2519
  return !0;
2520
2520
  }
2521
- function ke(t, e) {
2521
+ function ge(t, e) {
2522
2522
  if (t === e) return !0;
2523
2523
  let n = e.length, r = n - t.length;
2524
2524
  if (r < 0)
@@ -2537,25 +2537,25 @@ function vn(t, e) {
2537
2537
  return !1;
2538
2538
  return !0;
2539
2539
  }
2540
- const Ho = "Atrule", Wo = "MediaQuery", Ko = "MediaFeature", Qo = "Rule", An = "Selector", Yr = "TypeSelector", Je = "PseudoClassSelector", Xr = "AttributeSelector", Zr = "PseudoElementSelector", pn = "Declaration", Jo = "Value", de = "Identifier", Yo = "Nth", Xo = "Combinator", Zo = "Number", ei = "Dimension", ze = "Operator", ea = "Hash", ta = "Url", Ln = "Function";
2540
+ const Ho = "Atrule", Wo = "MediaQuery", Ko = "MediaFeature", Qo = "Rule", An = "Selector", Yr = "TypeSelector", Je = "PseudoClassSelector", Xr = "AttributeSelector", Zr = "PseudoElementSelector", pn = "Declaration", Jo = "Value", pe = "Identifier", Yo = "Nth", Xo = "Combinator", Zo = "Number", ei = "Dimension", Fe = "Operator", ea = "Hash", ta = "Url", Ln = "Function";
2541
2541
  function wr(t, e, n) {
2542
2542
  let r = t.value.children.first;
2543
- return W(e, t.property) && r.type === de && W(n, r.name);
2543
+ return W(e, t.property) && r.type === pe && W(n, r.name);
2544
2544
  }
2545
2545
  function na(t) {
2546
2546
  let e = !1;
2547
- return pe(t, function(n) {
2547
+ return fe(t, function(n) {
2548
2548
  if (n.type === pn && (wr(n, "-webkit-appearance", "none") || wr(n, "-moz-appearance", "meterbar")))
2549
2549
  return e = !0, this.break;
2550
2550
  }), e;
2551
2551
  }
2552
2552
  function ra(t) {
2553
2553
  let e = !1;
2554
- return pe(t, function(n) {
2554
+ return fe(t, function(n) {
2555
2555
  let r = n.children, i = n.name, o = n.value;
2556
- if (n.type === Wo && r.size === 1 && r.first.type === de) {
2556
+ if (n.type === Wo && r.size === 1 && r.first.type === pe) {
2557
2557
  let a = r.first.name;
2558
- if (vn("\\0", a) || ke("\\9 ", a))
2558
+ if (vn("\\0", a) || ge("\\9 ", a))
2559
2559
  return e = !0, this.break;
2560
2560
  } else if (n.type === Ko) {
2561
2561
  if (o && o.unit && o.unit === "\\0")
@@ -2573,7 +2573,7 @@ const vr = 45;
2573
2573
  function we(t) {
2574
2574
  return t.charCodeAt(0) === vr && t.charCodeAt(1) !== vr && t.indexOf("-", 2) !== -1;
2575
2575
  }
2576
- class le {
2576
+ class ae {
2577
2577
  /** @param {string[]} items */
2578
2578
  constructor(e) {
2579
2579
  this.set = new Set(e);
@@ -2585,14 +2585,14 @@ class le {
2585
2585
  }
2586
2586
  function ti(t, e) {
2587
2587
  let n = [];
2588
- return pe(t, {
2588
+ return fe(t, {
2589
2589
  visit: An,
2590
2590
  enter: function(r) {
2591
2591
  n.push(e(r));
2592
2592
  }
2593
2593
  }), n;
2594
2594
  }
2595
- const ni = new le([
2595
+ const ni = new ae([
2596
2596
  "nth-child",
2597
2597
  "where",
2598
2598
  "not",
@@ -2605,7 +2605,7 @@ const ni = new le([
2605
2605
  ]);
2606
2606
  function ri(t) {
2607
2607
  let e = !1;
2608
- return pe(t, function(n) {
2608
+ return fe(t, function(n) {
2609
2609
  if (n.type === Xr) {
2610
2610
  let r = n.name.name;
2611
2611
  if (W("role", r) || vn("aria-", r))
@@ -2623,7 +2623,7 @@ function ri(t) {
2623
2623
  }
2624
2624
  function ia(t) {
2625
2625
  let e = !1;
2626
- return pe(t, function(n) {
2626
+ return fe(t, function(n) {
2627
2627
  let r = n.type;
2628
2628
  if ((r === Zr || r === Yr || r === Je) && we(n.name))
2629
2629
  return e = !0, this.break;
@@ -2631,13 +2631,13 @@ function ia(t) {
2631
2631
  }
2632
2632
  function sa(t) {
2633
2633
  let e = [];
2634
- return pe(t, function(n) {
2634
+ return fe(t, function(n) {
2635
2635
  n.type === Je && e.push(n.name);
2636
2636
  }), e.length === 0 ? !1 : e;
2637
2637
  }
2638
2638
  function ii(t) {
2639
2639
  let e = 0;
2640
- return pe(t, function(n) {
2640
+ return fe(t, function(n) {
2641
2641
  let r = n.type;
2642
2642
  if (!(r === An || r === Yo)) {
2643
2643
  if (e++, (r === Zr || r === Yr || r === Je) && we(n.name) && e++, r === Xr)
@@ -2653,7 +2653,7 @@ function ii(t) {
2653
2653
  }), e;
2654
2654
  }
2655
2655
  function oa(t, e) {
2656
- pe(t, function(n, r) {
2656
+ fe(t, function(n, r) {
2657
2657
  if (n.type === Xo) {
2658
2658
  let i = n.loc, o = n.name;
2659
2659
  if (i === null) {
@@ -2681,7 +2681,7 @@ function oa(t, e) {
2681
2681
  }
2682
2682
  });
2683
2683
  }
2684
- const aa = new le([
2684
+ const aa = new ae([
2685
2685
  // CSS Named Colors
2686
2686
  // Spec: https://drafts.csswg.org/css-color/#named-colors
2687
2687
  // Heuristic: popular names first for quick finding in set.has()
@@ -2834,7 +2834,7 @@ const aa = new le([
2834
2834
  "mediumorchid",
2835
2835
  "darksalmon",
2836
2836
  "mediumspringgreen"
2837
- ]), la = new le([
2837
+ ]), la = new ae([
2838
2838
  // CSS System Colors
2839
2839
  // Spec: https://drafts.csswg.org/css-color/#css-system-colors
2840
2840
  "accentcolor",
@@ -2856,7 +2856,7 @@ const aa = new le([
2856
2856
  "selecteditem",
2857
2857
  "selecteditemtext",
2858
2858
  "visitedtext"
2859
- ]), ca = new le([
2859
+ ]), ca = new ae([
2860
2860
  "rgba",
2861
2861
  "rgb",
2862
2862
  "hsla",
@@ -2867,10 +2867,10 @@ const aa = new le([
2867
2867
  "lch",
2868
2868
  "lab",
2869
2869
  "oklab"
2870
- ]), ua = new le([
2870
+ ]), ua = new ae([
2871
2871
  "transparent",
2872
2872
  "currentcolor"
2873
- ]), At = new le([
2873
+ ]), Lt = new ae([
2874
2874
  "auto",
2875
2875
  "none",
2876
2876
  // for `text-shadow`, `box-shadow` and `background`
@@ -2884,16 +2884,16 @@ function ut(t) {
2884
2884
  let e = t.children, n = e.size;
2885
2885
  if (!e || n > 1 || n === 0) return !1;
2886
2886
  let r = e.first;
2887
- return r.type === de && At.has(r.name);
2887
+ return r.type === pe && Lt.has(r.name);
2888
2888
  }
2889
- const ha = new le([
2889
+ const ha = new ae([
2890
2890
  "caption",
2891
2891
  "icon",
2892
2892
  "menu",
2893
2893
  "message-box",
2894
2894
  "small-caption",
2895
2895
  "status-bar"
2896
- ]), fa = new le([
2896
+ ]), fa = new ae([
2897
2897
  /* <absolute-size> values */
2898
2898
  "xx-small",
2899
2899
  "x-small",
@@ -2907,26 +2907,26 @@ const ha = new le([
2907
2907
  "smaller",
2908
2908
  "larger"
2909
2909
  ]), pa = 44, Ar = 47;
2910
- function sn(t) {
2910
+ function on(t) {
2911
2911
  let e = t.children.first;
2912
- return e === null ? !1 : e.type === de && ha.has(e.name);
2912
+ return e === null ? !1 : e.type === pe && ha.has(e.name);
2913
2913
  }
2914
2914
  function da(t, e, n) {
2915
2915
  let r = Array.from({ length: 2 }), i, o;
2916
2916
  t.children.forEach(function(f, c) {
2917
2917
  let s = c.prev ? c.prev.data : void 0, l = c.next ? c.next.data : void 0;
2918
- if (f.type === de && At.has(f.name) && n({
2918
+ if (f.type === pe && Lt.has(f.name) && n({
2919
2919
  type: "keyword",
2920
2920
  value: f.name
2921
- }), l && l.type === ze && l.value.charCodeAt(0) === Ar) {
2921
+ }), l && l.type === Fe && l.value.charCodeAt(0) === Ar) {
2922
2922
  i = e(f);
2923
2923
  return;
2924
2924
  }
2925
- if (s && s.type === ze && s.value.charCodeAt(0) === Ar) {
2925
+ if (s && s.type === Fe && s.value.charCodeAt(0) === Ar) {
2926
2926
  o = e(f);
2927
2927
  return;
2928
2928
  }
2929
- if (l && l.type === ze && l.value.charCodeAt(0) === pa && !r[0]) {
2929
+ if (l && l.type === Fe && l.value.charCodeAt(0) === pa && !r[0]) {
2930
2930
  r[0] = f, !i && s && (i = e(s));
2931
2931
  return;
2932
2932
  }
@@ -2935,7 +2935,7 @@ function da(t, e, n) {
2935
2935
  r[1] = f, !i && !r[0] && s && (i = e(s));
2936
2936
  return;
2937
2937
  }
2938
- if (f.type === de) {
2938
+ if (f.type === pe) {
2939
2939
  let m = f.name;
2940
2940
  if (fa.has(m)) {
2941
2941
  i = m;
@@ -2960,7 +2960,7 @@ function da(t, e, n) {
2960
2960
  font_family: a
2961
2961
  };
2962
2962
  }
2963
- const ma = new le([
2963
+ const ma = new ae([
2964
2964
  "linear",
2965
2965
  "ease",
2966
2966
  "ease-in",
@@ -2968,7 +2968,7 @@ const ma = new le([
2968
2968
  "ease-in-out",
2969
2969
  "step-start",
2970
2970
  "step-end"
2971
- ]), ga = new le([
2971
+ ]), ga = new ae([
2972
2972
  "cubic-bezier",
2973
2973
  "steps"
2974
2974
  ]);
@@ -2976,13 +2976,13 @@ function ka(t, e) {
2976
2976
  let n = !1;
2977
2977
  for (let r of t) {
2978
2978
  let i = r.type, o = r.name;
2979
- i === ze ? n = !1 : i === ei && n === !1 ? (n = !0, e({
2979
+ i === Fe ? n = !1 : i === ei && n === !1 ? (n = !0, e({
2980
2980
  type: "duration",
2981
2981
  value: r
2982
- })) : i === de ? ma.has(o) ? e({
2982
+ })) : i === pe ? ma.has(o) ? e({
2983
2983
  type: "fn",
2984
2984
  value: r
2985
- }) : At.has(o) && e({
2985
+ }) : Lt.has(o) && e({
2986
2986
  type: "keyword",
2987
2987
  value: r
2988
2988
  }) : i === Ln && ga.has(o) && e({
@@ -2997,7 +2997,7 @@ function si(t) {
2997
2997
  return !1;
2998
2998
  for (let n of e) {
2999
2999
  let { type: r, name: i } = n;
3000
- if (r === de && we(i) || r === Ln && (we(i) || si(n)))
3000
+ if (r === pe && we(i) || r === Ln && (we(i) || si(n)))
3001
3001
  return !0;
3002
3002
  }
3003
3003
  return !1;
@@ -3008,7 +3008,7 @@ class x {
3008
3008
  this._items = /* @__PURE__ */ new Map(), this._total = 0, e && (this._nodes = []), this._useLocations = e;
3009
3009
  }
3010
3010
  /**
3011
- * @param {string} item
3011
+ * @param {string | number} item
3012
3012
  * @param {import('css-tree').CssLocation} node_location
3013
3013
  */
3014
3014
  p(e, n) {
@@ -3070,7 +3070,7 @@ class x {
3070
3070
  return r && (c.uniqueWithLocations = Object.fromEntries(e)), c;
3071
3071
  }
3072
3072
  }
3073
- class on {
3073
+ class an {
3074
3074
  /** @param {boolean} useLocations */
3075
3075
  constructor(e) {
3076
3076
  this._list = new x(e), this._contexts = /* @__PURE__ */ new Map(), this._useLocations = e;
@@ -3101,7 +3101,7 @@ function ya(t) {
3101
3101
  }
3102
3102
  return i / r;
3103
3103
  }
3104
- class ie {
3104
+ class re {
3105
3105
  constructor() {
3106
3106
  this._items = [], this._sum = 0;
3107
3107
  }
@@ -3152,7 +3152,7 @@ function En(t) {
3152
3152
  return t.length < 3 ? !1 : t.charCodeAt(0) === 45 && t.charCodeAt(1) === 45;
3153
3153
  }
3154
3154
  function G(t, e) {
3155
- return En(e) ? !1 : ke(t, e);
3155
+ return En(e) ? !1 : ge(t, e);
3156
3156
  }
3157
3157
  function xa(t) {
3158
3158
  return we(t) ? t.slice(t.indexOf("-", 2) + 1) : t;
@@ -3165,11 +3165,11 @@ function ba(t) {
3165
3165
  let e = t.children;
3166
3166
  if (e) {
3167
3167
  let n = e.last;
3168
- return n && n.type === de && ke("\\9", n.name);
3168
+ return n && n.type === pe && ge("\\9", n.name);
3169
3169
  }
3170
3170
  return !1;
3171
3171
  }
3172
- let wa = new le([
3172
+ let wa = new ae([
3173
3173
  "border-radius",
3174
3174
  "border-top-left-radius",
3175
3175
  "border-top-right-radius",
@@ -3192,8 +3192,8 @@ function Ea(t, e = {}) {
3192
3192
  return a(d).trim();
3193
3193
  }
3194
3194
  function a(d) {
3195
- let w = d.loc;
3196
- return t.substring(w.start.offset, w.end.offset);
3195
+ let v = d.loc;
3196
+ return t.substring(v.start.offset, v.end.offset);
3197
3197
  }
3198
3198
  let f = 0, c = 0, s = 0, l = {
3199
3199
  total: 0,
@@ -3208,67 +3208,67 @@ function Ea(t, e = {}) {
3208
3208
  onComment: function(d) {
3209
3209
  f++, c += d.length;
3210
3210
  }
3211
- }), C = Date.now(), _ = y.loc.end.line - y.loc.start.line + 1, q = 0, V = new ie(), me = [], Oe = new x(r), Be = new x(r), Y = new x(r), Ze = new x(r), et = new x(r), tt = new x(r), u = new x(r), h = new x(r), g = new x(r), p = new x(r), X = new x(r), j = new x(r), xe = 0, R = 0, Ce = new ie(), ge = new ie(), Lt = new ie(), _n = new x(r), Tn = new x(r), On = new x(r), Et = new x(r), In = /* @__PURE__ */ new Set(), _t = new x(r), ve, Ae, $n = new ie(), Nn = new ie(), Dn = new ie(), Pn = new x(r), nt = new ie(), Mn = new x(r), Fn = [], Tt = new x(r), Ot = new x(r), zn = new x(r), Rn = new x(r), qn = /* @__PURE__ */ new Set(), je = 0, Bn = new ie(), rt = 0, It = 0, $t = new x(r), Ue = new x(r), Nt = new x(r), Dt = new x(r), it = new x(r), Ve = new ie(), Pt = new ie(), jn = new x(r), Mt = new x(r), Un = new x(r), Vn = new x(r), Gn = new x(r), Ft = new x(r), zt = new x(r), Rt = new x(r), st = new x(r), ot = new x(r), Ie = new on(r), $e = new x(r), qt = new on(r), Hn = new x(r), Ge = new x(r), Wn = new on(r);
3212
- pe(y, function(d) {
3211
+ }), C = Date.now(), _ = y.loc.end.line - y.loc.start.line + 1, q = 0, V = new re(), de = [], Oe = new x(r), qe = new x(r), Y = new x(r), Ze = new x(r), et = new x(r), tt = new x(r), u = new x(r), h = new x(r), g = new x(r), p = new x(r), X = new x(r), j = new x(r), Se = 0, z = 0, xe = new re(), me = new re(), Et = new re(), _n = new x(r), Tn = new x(r), On = new x(r), _t = new x(r), In = /* @__PURE__ */ new Set(), Tt = new x(r), ve, Ae, $n = new re(), Nn = new re(), Dn = new re(), Pn = new x(r), nt = new re(), Mn = new x(r), Fn = [], Ot = new x(r), It = new x(r), zn = new x(r), Rn = new x(r), qn = /* @__PURE__ */ new Set(), Be = 0, Bn = new re(), rt = 0, $t = 0, Nt = new x(r), je = new x(r), Dt = new x(r), Pt = new x(r), it = new x(r), Ue = new re(), Mt = new re(), jn = new x(r), Ft = new x(r), Un = new x(r), Vn = new x(r), Gn = new x(r), zt = new x(r), Rt = new x(r), qt = new x(r), st = new x(r), ot = new x(r), Ie = new an(r), $e = new x(r), Bt = new an(r), Hn = new x(r), Ve = new x(r), Wn = new an(r);
3212
+ fe(y, function(d) {
3213
3213
  switch (d.type) {
3214
3214
  case Ho: {
3215
3215
  q++;
3216
- let w = d.name;
3217
- if (w === "font-face") {
3216
+ let v = d.name;
3217
+ if (v === "font-face") {
3218
3218
  let T = {};
3219
- r && Oe.p(d.loc.start.offset, d.loc), d.block.children.forEach((A) => {
3220
- A.type === pn && (T[A.property] = o(A.value));
3221
- }), me.push(T), V.push(1);
3219
+ r && Oe.p(d.loc.start.offset, d.loc), d.block.children.forEach((b) => {
3220
+ b.type === pn && (T[b.property] = o(b.value));
3221
+ }), de.push(T), V.push(1);
3222
3222
  break;
3223
3223
  }
3224
3224
  let S = 1;
3225
3225
  if (d.prelude !== null) {
3226
- let T = d.prelude, A = T && o(d.prelude), v = T.loc;
3227
- if (w === "media")
3228
- Ze.p(A, v), ra(T) && (et.p(A, v), S++);
3229
- else if (w === "supports")
3230
- u.p(A, v), na(T) && (h.p(A, v), S++);
3231
- else if (ke("keyframes", w)) {
3232
- let b = "@" + w + " " + A;
3233
- we(w) && (p.p(b, v), S++), g.p(b, v);
3234
- } else w === "import" ? Y.p(A, v) : w === "charset" ? tt.p(A, v) : w === "container" ? X.p(A, v) : w === "layer" ? A.split(",").forEach((b) => Be.p(b.trim(), v)) : w === "property" && j.p(A, v);
3226
+ let T = d.prelude, b = T && o(d.prelude), A = T.loc;
3227
+ if (v === "media")
3228
+ Ze.p(b, A), ra(T) && (et.p(b, A), S++);
3229
+ else if (v === "supports")
3230
+ u.p(b, A), na(T) && (h.p(b, A), S++);
3231
+ else if (ge("keyframes", v)) {
3232
+ let w = "@" + v + " " + b;
3233
+ we(v) && (p.p(w, A), S++), g.p(w, A);
3234
+ } else v === "import" ? Y.p(b, A) : v === "charset" ? tt.p(b, A) : v === "container" ? X.p(b, A) : v === "layer" ? b.split(",").forEach((w) => qe.p(w.trim(), A)) : v === "property" && j.p(b, A);
3235
3235
  } else
3236
- w === "layer" && (Be.p("<anonymous>", d.loc), S++);
3236
+ v === "layer" && (qe.p("<anonymous>", d.loc), S++);
3237
3237
  V.push(S);
3238
3238
  break;
3239
3239
  }
3240
3240
  case Qo: {
3241
- let w = d.prelude, S = d.block, T = w.children, A = S.children, v = T ? T.size : 0, b = A ? A.size : 0;
3242
- Ce.push(v + b), _n.p(v + b, d.loc), ge.push(v), Tn.p(v, w.loc), Lt.push(b), On.p(b, S.loc), xe++, b === 0 && R++;
3241
+ let v = d.prelude, S = d.block, T = v.children, b = S.children, A = T ? T.size : 0, w = b ? b.size : 0;
3242
+ xe.push(A + w), _n.p(A + w, d.loc), me.push(A), Tn.p(A, v.loc), Et.push(w), On.p(w, S.loc), Se++, w === 0 && z++;
3243
3243
  break;
3244
3244
  }
3245
3245
  case An: {
3246
- let w = o(d);
3247
- if (this.atrule && ke("keyframes", this.atrule.name))
3248
- return Et.p(w, d.loc), this.skip;
3249
- ri(d) && Ot.p(w, d.loc);
3246
+ let v = o(d);
3247
+ if (this.atrule && ge("keyframes", this.atrule.name))
3248
+ return _t.p(v, d.loc), this.skip;
3249
+ ri(d) && It.p(v, d.loc);
3250
3250
  let S = sa(d);
3251
3251
  if (S !== !1)
3252
- for (let Z of S)
3253
- zn.p(Z, d.loc);
3252
+ for (let R of S)
3253
+ zn.p(R, d.loc);
3254
3254
  let T = ii(d);
3255
- ia(d) && _t.p(w, d.loc), In.add(w), nt.push(T), Mn.p(T, d.loc);
3256
- let [{ value: A }] = Me(d), v = A.a, b = A.b, L = A.c, D = [v, b, L];
3257
- return Pn.p(v + "," + b + "," + L, d.loc), $n.push(v), Nn.push(b), Dn.push(L), ve === void 0 && (ve = D), Ae === void 0 && (Ae = D), Ae !== void 0 && Lr(Ae, D) < 0 && (Ae = D), ve !== void 0 && Lr(ve, D) > 0 && (ve = D), Fn.push(D), v > 0 && Tt.p(w, d.loc), oa(d, function(re) {
3258
- Rn.p(re.name, re.loc);
3255
+ ia(d) && Tt.p(v, d.loc), In.add(v), nt.push(T), Mn.p(T, d.loc);
3256
+ let b = Ct(d).toArray(), [A, w, E] = b;
3257
+ return Pn.p(b.toString(), d.loc), $n.push(A), Nn.push(w), Dn.push(E), ve === void 0 && (ve = b), Ae === void 0 && (Ae = b), Ae !== void 0 && Lr(Ae, b) < 0 && (Ae = b), ve !== void 0 && Lr(ve, b) > 0 && (ve = b), Fn.push(b), A > 0 && Ot.p(v, d.loc), oa(d, function(Z) {
3258
+ Rn.p(Z.name, Z.loc);
3259
3259
  }), this.skip;
3260
3260
  }
3261
3261
  case ei: {
3262
3262
  if (!this.declaration)
3263
3263
  break;
3264
- let w = d.unit;
3265
- return ke("\\9", w) ? qt.push(w.substring(0, w.length - 2), this.declaration.property, d.loc) : qt.push(w, this.declaration.property, d.loc), this.skip;
3264
+ let v = d.unit;
3265
+ return ge("\\9", v) ? Bt.push(v.substring(0, v.length - 2), this.declaration.property, d.loc) : Bt.push(v, this.declaration.property, d.loc), this.skip;
3266
3266
  }
3267
3267
  case ta: {
3268
3268
  if (vn("data:", d.value)) {
3269
- let w = d.value, S = w.length, T = Ca(w);
3269
+ let v = d.value, S = v.length, T = Ca(v);
3270
3270
  l.total++, s += S;
3271
- let A = {
3271
+ let b = {
3272
3272
  /** @type {number} */
3273
3273
  line: d.loc.start.line,
3274
3274
  /** @type {number} */
@@ -3279,100 +3279,100 @@ function Ea(t, e = {}) {
3279
3279
  length: d.loc.end.offset - d.loc.start.offset
3280
3280
  };
3281
3281
  if (l.unique.has(T)) {
3282
- let v = l.unique.get(T);
3283
- v.count++, v.size += S, l.unique.set(T, v), r && v.uniqueWithLocations.push(A);
3282
+ let A = l.unique.get(T);
3283
+ A.count++, A.size += S, l.unique.set(T, A), r && A.uniqueWithLocations.push(b);
3284
3284
  } else {
3285
- let v = {
3285
+ let A = {
3286
3286
  count: 1,
3287
3287
  size: S
3288
3288
  };
3289
- r && (v.uniqueWithLocations = [A]), l.unique.set(T, v);
3289
+ r && (A.uniqueWithLocations = [b]), l.unique.set(T, A);
3290
3290
  }
3291
3291
  }
3292
3292
  break;
3293
3293
  }
3294
3294
  case Jo: {
3295
3295
  if (ut(d)) {
3296
- Pt.push(1), Ge.p(o(d), d.loc);
3296
+ Mt.push(1), Ve.p(o(d), d.loc);
3297
3297
  break;
3298
3298
  }
3299
- let w = this.declaration, { property: S, important: T } = w, A = 1;
3300
- si(d) && (jn.p(o(d), d.loc), A++), typeof T == "string" && (Mt.p(a(d) + "!" + T, d.loc), A++), ba(d) && (Mt.p(o(d), d.loc), A++);
3301
- let v = d.children, b = d.loc;
3302
- if (Pt.push(A), G("z-index", S))
3303
- return Un.p(o(d), b), this.skip;
3299
+ let v = this.declaration, { property: S, important: T } = v, b = 1;
3300
+ si(d) && (jn.p(o(d), d.loc), b++), typeof T == "string" && (Ft.p(a(d) + "!" + T, d.loc), b++), ba(d) && (Ft.p(o(d), d.loc), b++);
3301
+ let A = d.children, w = d.loc;
3302
+ if (Mt.push(b), G("z-index", S))
3303
+ return Un.p(o(d), w), this.skip;
3304
3304
  if (G("font", S)) {
3305
- if (sn(d)) return;
3306
- let { font_size: L, line_height: D, font_family: Z } = da(d, o, function(re) {
3307
- re.type === "keyword" && Ge.p(re.value, b);
3305
+ if (on(d)) return;
3306
+ let { font_size: E, line_height: R, font_family: Z } = da(d, o, function(Ce) {
3307
+ Ce.type === "keyword" && Ve.p(Ce.value, w);
3308
3308
  });
3309
- Z && Ft.p(Z, b), L && zt.p(L, b), D && Rt.p(D, b);
3309
+ Z && zt.p(Z, w), E && Rt.p(E, w), R && qt.p(R, w);
3310
3310
  break;
3311
3311
  } else if (G("font-size", S)) {
3312
- sn(d) || zt.p(o(d), b);
3312
+ on(d) || Rt.p(o(d), w);
3313
3313
  break;
3314
3314
  } else if (G("font-family", S)) {
3315
- sn(d) || Ft.p(o(d), b);
3315
+ on(d) || zt.p(o(d), w);
3316
3316
  break;
3317
3317
  } else if (G("line-height", S))
3318
- Rt.p(o(d), b);
3318
+ qt.p(o(d), w);
3319
3319
  else if (G("transition", S) || G("animation", S)) {
3320
- ka(v, function(L) {
3321
- L.type === "fn" ? st.p(o(L.value), b) : L.type === "duration" ? ot.p(o(L.value), b) : L.type === "keyword" && Ge.p(o(L.value), b);
3320
+ ka(A, function(E) {
3321
+ E.type === "fn" ? st.p(o(E.value), w) : E.type === "duration" ? ot.p(o(E.value), w) : E.type === "keyword" && Ve.p(o(E.value), w);
3322
3322
  });
3323
3323
  break;
3324
3324
  } else if (G("animation-duration", S) || G("transition-duration", S)) {
3325
- v && v.size > 1 ? v.forEach((L) => {
3326
- L.type !== ze && ot.p(o(L), b);
3327
- }) : ot.p(o(d), b);
3325
+ A && A.size > 1 ? A.forEach((E) => {
3326
+ E.type !== Fe && ot.p(o(E), w);
3327
+ }) : ot.p(o(d), w);
3328
3328
  break;
3329
3329
  } else if (G("transition-timing-function", S) || G("animation-timing-function", S)) {
3330
- v && v.size > 1 ? v.forEach((L) => {
3331
- L.type !== ze && st.p(o(L), b);
3332
- }) : st.p(o(d), b);
3330
+ A && A.size > 1 ? A.forEach((E) => {
3331
+ E.type !== Fe && st.p(o(E), w);
3332
+ }) : st.p(o(d), w);
3333
3333
  break;
3334
3334
  } else if (wa.has(xa(S))) {
3335
- ut(d) || Wn.push(o(d), S, b);
3335
+ ut(d) || Wn.push(o(d), S, w);
3336
3336
  break;
3337
- } else G("text-shadow", S) ? ut(d) || Vn.p(o(d), b) : G("box-shadow", S) && (ut(d) || Gn.p(o(d), b));
3338
- pe(d, function(L) {
3339
- let D = L.name;
3340
- switch (L.type) {
3337
+ } else G("text-shadow", S) ? ut(d) || Vn.p(o(d), w) : G("box-shadow", S) && (ut(d) || Gn.p(o(d), w));
3338
+ fe(d, function(E) {
3339
+ let R = E.name;
3340
+ switch (E.type) {
3341
3341
  case ea: {
3342
- let Z = L.value.length;
3343
- return ke("\\9", L.value) && (Z = Z - 2), Ie.push("#" + L.value, S, b), $e.p("hex" + Z, b), this.skip;
3342
+ let Z = E.value.length;
3343
+ return ge("\\9", E.value) && (Z = Z - 2), Ie.push("#" + E.value, S, w), $e.p("hex" + Z, w), this.skip;
3344
3344
  }
3345
- case de: {
3346
- At.has(D) && Ge.p(D, b);
3347
- let Z = D.length;
3345
+ case pe: {
3346
+ Lt.has(R) && Ve.p(R, w);
3347
+ let Z = R.length;
3348
3348
  if (Z > 20 || Z < 3)
3349
3349
  return this.skip;
3350
- if (ua.has(D)) {
3351
- let re = o(L);
3352
- Ie.push(re, S, b), $e.p(D.toLowerCase(), b);
3350
+ if (ua.has(R)) {
3351
+ let Ce = o(E);
3352
+ Ie.push(Ce, S, w), $e.p(R.toLowerCase(), w);
3353
3353
  return;
3354
3354
  }
3355
- if (aa.has(D)) {
3356
- let re = o(L);
3357
- Ie.push(re, S, b), $e.p("named", b);
3355
+ if (aa.has(R)) {
3356
+ let Ce = o(E);
3357
+ Ie.push(Ce, S, w), $e.p("named", w);
3358
3358
  return;
3359
3359
  }
3360
- if (la.has(D)) {
3361
- let re = o(L);
3362
- Ie.push(re, S, b), $e.p("system", b);
3360
+ if (la.has(R)) {
3361
+ let Ce = o(E);
3362
+ Ie.push(Ce, S, w), $e.p("system", w);
3363
3363
  return;
3364
3364
  }
3365
3365
  return this.skip;
3366
3366
  }
3367
3367
  case Ln: {
3368
- if (W("var", D))
3368
+ if (W("var", R))
3369
3369
  return this.skip;
3370
- if (ca.has(D)) {
3371
- Ie.push(o(L), S, L.loc), $e.p(D.toLowerCase(), L.loc);
3370
+ if (ca.has(R)) {
3371
+ Ie.push(o(E), S, E.loc), $e.p(R.toLowerCase(), E.loc);
3372
3372
  return;
3373
3373
  }
3374
- if (ke("gradient", D)) {
3375
- Hn.p(o(L), L.loc);
3374
+ if (ge("gradient", R)) {
3375
+ Hn.p(o(E), E.loc);
3376
3376
  return;
3377
3377
  }
3378
3378
  }
@@ -3383,10 +3383,10 @@ function Ea(t, e = {}) {
3383
3383
  case pn: {
3384
3384
  if (this.atrulePrelude !== null)
3385
3385
  return this.skip;
3386
- je++;
3387
- let w = 1;
3388
- qn.add(o(d)), d.important === !0 && (rt++, w++, this.atrule && ke("keyframes", this.atrule.name) && (It++, w++)), Bn.push(w);
3389
- let { property: S, loc: { start: T } } = d, A = {
3386
+ Be++;
3387
+ let v = 1;
3388
+ qn.add(o(d)), d.important === !0 && (rt++, v++, this.atrule && ge("keyframes", this.atrule.name) && ($t++, v++)), Bn.push(v);
3389
+ let { property: S, loc: { start: T } } = d, b = {
3390
3390
  start: {
3391
3391
  line: T.line,
3392
3392
  column: T.column,
@@ -3396,15 +3396,15 @@ function Ea(t, e = {}) {
3396
3396
  offset: T.offset + S.length
3397
3397
  }
3398
3398
  };
3399
- Ue.p(S, A), we(S) ? (Dt.p(S, A), Ve.push(2)) : Sa(S) ? (Nt.p(S, A), Ve.push(2)) : En(S) ? (it.p(S, A), Ve.push(d.important ? 3 : 2), d.important === !0 && $t.p(S, A)) : Ve.push(1);
3399
+ je.p(S, b), we(S) ? (Pt.p(S, b), Ue.push(2)) : Sa(S) ? (Dt.p(S, b), Ue.push(2)) : En(S) ? (it.p(S, b), Ue.push(d.important ? 3 : 2), d.important === !0 && Nt.p(S, b)) : Ue.push(1);
3400
3400
  break;
3401
3401
  }
3402
3402
  }
3403
3403
  });
3404
- let Kn = qn.size, Ne = nt.size(), Bt = $n.aggregate(), jt = Nn.aggregate(), Ut = Dn.aggregate(), Qn = In.size, F = Object.assign, Jn = t.length, Vt = me.length, Yn = V.aggregate(), Xn = nt.aggregate(), Zn = Bn.aggregate(), er = Ve.aggregate(), tr = Pt.aggregate();
3404
+ let Kn = qn.size, Ne = nt.size(), jt = $n.aggregate(), Ut = Nn.aggregate(), Vt = Dn.aggregate(), Qn = In.size, M = Object.assign, Jn = t.length, Gt = de.length, Yn = V.aggregate(), Xn = nt.aggregate(), Zn = Bn.aggregate(), er = Ue.aggregate(), tr = Mt.aggregate();
3405
3405
  return {
3406
3406
  stylesheet: {
3407
- sourceLinesOfCode: q + Ne + je + Et.size(),
3407
+ sourceLinesOfCode: q + Ne + Be + _t.size(),
3408
3408
  linesOfCode: _,
3409
3409
  size: Jn,
3410
3410
  complexity: Yn.sum + Xn.sum + Zn.sum + er.sum + tr.sum,
@@ -3426,32 +3426,32 @@ function Ea(t, e = {}) {
3426
3426
  }
3427
3427
  },
3428
3428
  atrules: {
3429
- fontface: F({
3430
- total: Vt,
3431
- totalUnique: Vt,
3432
- unique: me,
3433
- uniquenessRatio: Vt === 0 ? 0 : 1
3429
+ fontface: M({
3430
+ total: Gt,
3431
+ totalUnique: Gt,
3432
+ unique: de,
3433
+ uniquenessRatio: Gt === 0 ? 0 : 1
3434
3434
  }, r ? {
3435
3435
  uniqueWithLocations: Oe.c().uniqueWithLocations
3436
3436
  } : {}),
3437
3437
  import: Y.c(),
3438
- media: F(
3438
+ media: M(
3439
3439
  Ze.c(),
3440
3440
  {
3441
3441
  browserhacks: et.c()
3442
3442
  }
3443
3443
  ),
3444
3444
  charset: tt.c(),
3445
- supports: F(
3445
+ supports: M(
3446
3446
  u.c(),
3447
3447
  {
3448
3448
  browserhacks: h.c()
3449
3449
  }
3450
3450
  ),
3451
- keyframes: F(
3451
+ keyframes: M(
3452
3452
  g.c(),
3453
3453
  {
3454
- prefixed: F(
3454
+ prefixed: M(
3455
3455
  p.c(),
3456
3456
  {
3457
3457
  ratio: B(p.size(), g.size())
@@ -3460,35 +3460,35 @@ function Ea(t, e = {}) {
3460
3460
  }
3461
3461
  ),
3462
3462
  container: X.c(),
3463
- layer: Be.c(),
3463
+ layer: qe.c(),
3464
3464
  property: j.c(),
3465
3465
  total: q,
3466
3466
  complexity: Yn
3467
3467
  },
3468
3468
  rules: {
3469
- total: xe,
3469
+ total: Se,
3470
3470
  empty: {
3471
- total: R,
3472
- ratio: B(R, xe)
3471
+ total: z,
3472
+ ratio: B(z, Se)
3473
3473
  },
3474
- sizes: F(
3475
- Ce.aggregate(),
3474
+ sizes: M(
3475
+ xe.aggregate(),
3476
3476
  {
3477
- items: Ce.toArray()
3477
+ items: xe.toArray()
3478
3478
  },
3479
3479
  _n.c()
3480
3480
  ),
3481
- selectors: F(
3482
- ge.aggregate(),
3481
+ selectors: M(
3482
+ me.aggregate(),
3483
3483
  {
3484
- items: ge.toArray()
3484
+ items: me.toArray()
3485
3485
  },
3486
3486
  Tn.c()
3487
3487
  ),
3488
- declarations: F(
3489
- Lt.aggregate(),
3488
+ declarations: M(
3489
+ Et.aggregate(),
3490
3490
  {
3491
- items: Lt.toArray()
3491
+ items: Et.toArray()
3492
3492
  },
3493
3493
  On.c()
3494
3494
  )
@@ -3497,107 +3497,107 @@ function Ea(t, e = {}) {
3497
3497
  total: Ne,
3498
3498
  totalUnique: Qn,
3499
3499
  uniquenessRatio: B(Qn, Ne),
3500
- specificity: F(
3500
+ specificity: M(
3501
3501
  {
3502
3502
  /** @type Specificity */
3503
3503
  min: Ae === void 0 ? [0, 0, 0] : Ae,
3504
3504
  /** @type Specificity */
3505
3505
  max: ve === void 0 ? [0, 0, 0] : ve,
3506
3506
  /** @type Specificity */
3507
- sum: [Bt.sum, jt.sum, Ut.sum],
3507
+ sum: [jt.sum, Ut.sum, Vt.sum],
3508
3508
  /** @type Specificity */
3509
- mean: [Bt.mean, jt.mean, Ut.mean],
3509
+ mean: [jt.mean, Ut.mean, Vt.mean],
3510
3510
  /** @type Specificity */
3511
- mode: [Bt.mode, jt.mode, Ut.mode],
3511
+ mode: [jt.mode, Ut.mode, Vt.mode],
3512
3512
  /** @type Specificity */
3513
3513
  items: Fn
3514
3514
  },
3515
3515
  Pn.c()
3516
3516
  ),
3517
- complexity: F(
3517
+ complexity: M(
3518
3518
  Xn,
3519
3519
  Mn.c(),
3520
3520
  {
3521
3521
  items: nt.toArray()
3522
3522
  }
3523
3523
  ),
3524
- id: F(
3525
- Tt.c(),
3524
+ id: M(
3525
+ Ot.c(),
3526
3526
  {
3527
- ratio: B(Tt.size(), Ne)
3527
+ ratio: B(Ot.size(), Ne)
3528
3528
  }
3529
3529
  ),
3530
3530
  pseudoClasses: zn.c(),
3531
- accessibility: F(
3532
- Ot.c(),
3531
+ accessibility: M(
3532
+ It.c(),
3533
3533
  {
3534
- ratio: B(Ot.size(), Ne)
3534
+ ratio: B(It.size(), Ne)
3535
3535
  }
3536
3536
  ),
3537
- keyframes: Et.c(),
3538
- prefixed: F(
3539
- _t.c(),
3537
+ keyframes: _t.c(),
3538
+ prefixed: M(
3539
+ Tt.c(),
3540
3540
  {
3541
- ratio: B(_t.size(), Ne)
3541
+ ratio: B(Tt.size(), Ne)
3542
3542
  }
3543
3543
  ),
3544
3544
  combinators: Rn.c()
3545
3545
  },
3546
3546
  declarations: {
3547
- total: je,
3547
+ total: Be,
3548
3548
  totalUnique: Kn,
3549
- uniquenessRatio: B(Kn, je),
3549
+ uniquenessRatio: B(Kn, Be),
3550
3550
  importants: {
3551
3551
  total: rt,
3552
- ratio: B(rt, je),
3552
+ ratio: B(rt, Be),
3553
3553
  inKeyframes: {
3554
- total: It,
3555
- ratio: B(It, rt)
3554
+ total: $t,
3555
+ ratio: B($t, rt)
3556
3556
  }
3557
3557
  },
3558
3558
  complexity: Zn
3559
3559
  },
3560
- properties: F(
3561
- Ue.c(),
3560
+ properties: M(
3561
+ je.c(),
3562
3562
  {
3563
- prefixed: F(
3564
- Dt.c(),
3563
+ prefixed: M(
3564
+ Pt.c(),
3565
3565
  {
3566
- ratio: B(Dt.size(), Ue.size())
3566
+ ratio: B(Pt.size(), je.size())
3567
3567
  }
3568
3568
  ),
3569
- custom: F(
3569
+ custom: M(
3570
3570
  it.c(),
3571
3571
  {
3572
- ratio: B(it.size(), Ue.size()),
3573
- importants: F(
3574
- $t.c(),
3572
+ ratio: B(it.size(), je.size()),
3573
+ importants: M(
3574
+ Nt.c(),
3575
3575
  {
3576
- ratio: B($t.size(), it.size())
3576
+ ratio: B(Nt.size(), it.size())
3577
3577
  }
3578
3578
  )
3579
3579
  }
3580
3580
  ),
3581
- browserhacks: F(
3582
- Nt.c(),
3581
+ browserhacks: M(
3582
+ Dt.c(),
3583
3583
  {
3584
- ratio: B(Nt.size(), Ue.size())
3584
+ ratio: B(Dt.size(), je.size())
3585
3585
  }
3586
3586
  ),
3587
3587
  complexity: er
3588
3588
  }
3589
3589
  ),
3590
3590
  values: {
3591
- colors: F(
3591
+ colors: M(
3592
3592
  Ie.count(),
3593
3593
  {
3594
3594
  formats: $e.c()
3595
3595
  }
3596
3596
  ),
3597
3597
  gradients: Hn.c(),
3598
- fontFamilies: Ft.c(),
3599
- fontSizes: zt.c(),
3600
- lineHeights: Rt.c(),
3598
+ fontFamilies: zt.c(),
3599
+ fontSizes: Rt.c(),
3600
+ lineHeights: qt.c(),
3601
3601
  zindexes: Un.c(),
3602
3602
  textShadows: Vn.c(),
3603
3603
  boxShadows: Gn.c(),
@@ -3607,10 +3607,10 @@ function Ea(t, e = {}) {
3607
3607
  timingFunctions: st.c()
3608
3608
  },
3609
3609
  prefixes: jn.c(),
3610
- browserhacks: Mt.c(),
3611
- units: qt.count(),
3610
+ browserhacks: Ft.c(),
3611
+ units: Bt.count(),
3612
3612
  complexity: tr,
3613
- keywords: Ge.c()
3613
+ keywords: Ve.c()
3614
3614
  },
3615
3615
  __meta__: {
3616
3616
  parseTime: C - m,