@projectwallace/css-analyzer 6.0.0-beta.0 → 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,7 +1,7 @@
1
- import ii from "css-tree/parser";
2
- import ue from "css-tree/walker";
3
- let $e = null;
4
- class V {
1
+ import oi from "css-tree/parser";
2
+ import fe from "css-tree/walker";
3
+ let De = null;
4
+ class H {
5
5
  static createItem(e) {
6
6
  return {
7
7
  prev: null,
@@ -13,12 +13,12 @@ class V {
13
13
  this.head = null, this.tail = null, this.cursor = null;
14
14
  }
15
15
  createItem(e) {
16
- return V.createItem(e);
16
+ return H.createItem(e);
17
17
  }
18
18
  // cursor helpers
19
19
  allocateCursor(e, n) {
20
20
  let r;
21
- return $e !== null ? (r = $e, $e = $e.cursor, r.prev = e, r.next = n, r.cursor = this.cursor) : r = {
21
+ return De !== null ? (r = De, De = De.cursor, r.prev = e, r.next = n, r.cursor = this.cursor) : r = {
22
22
  prev: e,
23
23
  next: n,
24
24
  cursor: this.cursor
@@ -26,7 +26,7 @@ class V {
26
26
  }
27
27
  releaseCursor() {
28
28
  const { cursor: e } = this;
29
- this.cursor = e.cursor, e.prev = null, e.next = null, e.cursor = $e, $e = e;
29
+ this.cursor = e.cursor, e.prev = null, e.next = null, e.cursor = De, De = e;
30
30
  }
31
31
  updateCursors(e, n, r, i) {
32
32
  let { cursor: o } = this;
@@ -58,7 +58,7 @@ class V {
58
58
  let n = null;
59
59
  this.head = null;
60
60
  for (let r of e) {
61
- const i = V.createItem(r);
61
+ const i = H.createItem(r);
62
62
  n !== null ? n.next = i : this.head = i, i.prev = n, n = i;
63
63
  }
64
64
  return this.tail = n, this;
@@ -105,13 +105,13 @@ class V {
105
105
  return !1;
106
106
  }
107
107
  map(e, n = this) {
108
- const r = new V();
108
+ const r = new H();
109
109
  for (let i = this.head; i !== null; i = i.next)
110
110
  r.appendData(e.call(n, i.data, i, this));
111
111
  return r;
112
112
  }
113
113
  filter(e, n = this) {
114
- const r = new V();
114
+ const r = new H();
115
115
  for (let i = this.head; i !== null; i = i.next)
116
116
  e.call(n, i.data, i, this) && r.appendData(i.data);
117
117
  return r;
@@ -143,7 +143,7 @@ class V {
143
143
  this.head = null, this.tail = null;
144
144
  }
145
145
  copy() {
146
- const e = new V();
146
+ const e = new H();
147
147
  for (let n of this)
148
148
  e.appendData(n);
149
149
  return e;
@@ -152,13 +152,13 @@ class V {
152
152
  return this.updateCursors(null, e, this.head, e), this.head !== null ? (this.head.prev = e, e.next = this.head) : this.tail = e, this.head = e, this;
153
153
  }
154
154
  prependData(e) {
155
- return this.prepend(V.createItem(e));
155
+ return this.prepend(H.createItem(e));
156
156
  }
157
157
  append(e) {
158
158
  return this.insert(e);
159
159
  }
160
160
  appendData(e) {
161
- return this.insert(V.createItem(e));
161
+ return this.insert(H.createItem(e));
162
162
  }
163
163
  insert(e, n = null) {
164
164
  if (n !== null)
@@ -173,7 +173,7 @@ class V {
173
173
  return this;
174
174
  }
175
175
  insertData(e, n) {
176
- return this.insert(V.createItem(e), n);
176
+ return this.insert(H.createItem(e), n);
177
177
  }
178
178
  remove(e) {
179
179
  if (this.updateCursors(e, e.prev, e, e.next), e.prev !== null)
@@ -193,13 +193,13 @@ class V {
193
193
  return e.prev = null, e.next = null, e;
194
194
  }
195
195
  push(e) {
196
- this.insert(V.createItem(e));
196
+ this.insert(H.createItem(e));
197
197
  }
198
198
  pop() {
199
199
  return this.tail !== null ? this.remove(this.tail) : null;
200
200
  }
201
201
  unshift(e) {
202
- this.prepend(V.createItem(e));
202
+ this.prepend(H.createItem(e));
203
203
  }
204
204
  shift() {
205
205
  return this.head !== null ? this.remove(this.head) : null;
@@ -217,7 +217,7 @@ class V {
217
217
  "head" in n ? this.insertList(n, e) : this.insert(n, e), this.remove(e);
218
218
  }
219
219
  }
220
- function si(t, e) {
220
+ function ai(t, e) {
221
221
  const n = Object.create(SyntaxError.prototype), r = new Error();
222
222
  return Object.assign(n, {
223
223
  name: t,
@@ -228,146 +228,147 @@ function si(t, e) {
228
228
  }
229
229
  });
230
230
  }
231
- const Vt = 100, Zn = 60, er = " ";
232
- function tr({ source: t, line: e, column: n }, r) {
233
- function i(l, m) {
234
- return o.slice(l, m).map(
235
- (S, b) => String(l + b + 1).padStart(c) + " |" + S
231
+ const Ht = 100, nr = 60, rr = " ";
232
+ function ir({ source: t, line: e, column: n, baseLine: r, baseColumn: i }, o) {
233
+ function a(_, q) {
234
+ return s.slice(_, q).map(
235
+ (V, de) => String(_ + de + 1).padStart(y) + " |" + V
236
236
  ).join(`
237
237
  `);
238
238
  }
239
- const o = t.split(/\r\n?|\n|\f/), a = Math.max(1, e - r) - 1, f = Math.min(e + r, o.length + 1), c = Math.max(4, String(f).length) + 1;
240
- let s = 0;
241
- n += (er.length - 1) * (o[e - 1].substr(0, n - 1).match(/\t/g) || []).length, n > Vt && (s = n - Zn + 3, n = Zn - 2);
242
- for (let l = a; l <= f; l++)
243
- l >= 0 && l < o.length && (o[l] = o[l].replace(/\t/g, er), o[l] = (s > 0 && o[l].length > s ? "…" : "") + o[l].substr(s, Vt - 2) + (o[l].length > s + Vt - 1 ? "…" : ""));
239
+ const f = `
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
+ let C = 0;
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
+ for (let _ = l; _ <= m; _++)
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 ? "…" : ""));
244
245
  return [
245
- i(a, e),
246
- new Array(n + c + 2).join("-") + "^",
247
- i(e, f)
246
+ a(l, e),
247
+ new Array(n + y + 2).join("-") + "^",
248
+ a(e, m)
248
249
  ].filter(Boolean).join(`
249
- `);
250
+ `).replace(/^(\s+\d+\s+\|\n)+/, "").replace(/\n(\s+\d+\s+\|)+$/, "");
250
251
  }
251
- function nr(t, e, n, r, i) {
252
- return Object.assign(si("SyntaxError", t), {
252
+ function sr(t, e, n, r, i, o = 1, a = 1) {
253
+ return Object.assign(ai("SyntaxError", t), {
253
254
  source: e,
254
255
  offset: n,
255
256
  line: r,
256
257
  column: i,
257
- sourceFragment(a) {
258
- return tr({ source: e, line: r, column: i }, isNaN(a) ? 0 : a);
258
+ sourceFragment(c) {
259
+ return ir({ source: e, line: r, column: i, baseLine: o, baseColumn: a }, isNaN(c) ? 0 : c);
259
260
  },
260
261
  get formattedMessage() {
261
262
  return `Parse error: ${t}
262
- ` + tr({ source: e, line: r, column: i }, 2);
263
+ ` + ir({ source: e, line: r, column: i, baseLine: o, baseColumn: a }, 2);
263
264
  }
264
265
  });
265
266
  }
266
- const Gt = 0, k = 1, N = 2, j = 3, M = 4, We = 5, oi = 6, ie = 7, se = 8, O = 9, E = 10, D = 11, T = 12, ae = 13, Ar = 14, oe = 15, Z = 16, St = 17, xt = 18, Ke = 19, pt = 20, _e = 21, F = 22, Ct = 23, fn = 24, Ee = 25, ai = 0;
267
- function W(t) {
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
+ function Q(t) {
268
269
  return t >= 48 && t <= 57;
269
270
  }
270
- function Ve(t) {
271
- return W(t) || // 0 .. 9
271
+ function Ke(t) {
272
+ return Q(t) || // 0 .. 9
272
273
  t >= 65 && t <= 70 || // A .. F
273
274
  t >= 97 && t <= 102;
274
275
  }
275
- function pn(t) {
276
+ function gn(t) {
276
277
  return t >= 65 && t <= 90;
277
278
  }
278
- function li(t) {
279
+ function ui(t) {
279
280
  return t >= 97 && t <= 122;
280
281
  }
281
- function ci(t) {
282
- return pn(t) || li(t);
282
+ function hi(t) {
283
+ return gn(t) || ui(t);
283
284
  }
284
- function ui(t) {
285
+ function fi(t) {
285
286
  return t >= 128;
286
287
  }
287
- function dt(t) {
288
- return ci(t) || ui(t) || t === 95;
288
+ function gt(t) {
289
+ return hi(t) || fi(t) || t === 95;
289
290
  }
290
- function Lr(t) {
291
- return dt(t) || W(t) || t === 45;
291
+ function _r(t) {
292
+ return gt(t) || Q(t) || t === 45;
292
293
  }
293
- function hi(t) {
294
+ function pi(t) {
294
295
  return t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t === 127;
295
296
  }
296
- function mt(t) {
297
+ function kt(t) {
297
298
  return t === 10 || t === 13 || t === 12;
298
299
  }
299
- function Qe(t) {
300
- return mt(t) || t === 32 || t === 9;
300
+ function Ye(t) {
301
+ return kt(t) || t === 32 || t === 9;
301
302
  }
302
- function de(t, e) {
303
- return !(t !== 92 || mt(e) || e === ai);
304
- }
305
- function Ht(t, e, n) {
306
- return t === 45 ? dt(e) || e === 45 || de(e, n) : dt(t) ? !0 : t === 92 ? de(t, e) : !1;
303
+ function ke(t, e) {
304
+ return !(t !== 92 || kt(e) || e === ci);
307
305
  }
308
306
  function Wt(t, e, n) {
309
- return t === 43 || t === 45 ? W(e) ? 2 : e === 46 && W(n) ? 3 : 0 : t === 46 ? W(e) ? 2 : 0 : W(t) ? 1 : 0;
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
+ return t === 43 || t === 45 ? Q(e) ? 2 : e === 46 && Q(n) ? 3 : 0 : t === 46 ? Q(e) ? 2 : 0 : Q(t) ? 1 : 0;
310
311
  }
311
- function Er(t) {
312
+ function Tr(t) {
312
313
  return t === 65279 || t === 65534 ? 1 : 0;
313
314
  }
314
- const on = new Array(128), fi = 128, ct = 130, _r = 131, dn = 132, Tr = 133;
315
- for (let t = 0; t < on.length; t++)
316
- on[t] = Qe(t) && ct || W(t) && _r || dt(t) && dn || hi(t) && Tr || t || fi;
317
- function Kt(t) {
318
- return t < 128 ? on[t] : dn;
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;
319
320
  }
320
321
  function Me(t, e) {
321
322
  return e < t.length ? t.charCodeAt(e) : 0;
322
323
  }
323
- function an(t, e, n) {
324
+ function cn(t, e, n) {
324
325
  return n === 13 && Me(t, e + 1) === 10 ? 2 : 1;
325
326
  }
326
- function Or(t, e, n) {
327
+ function $r(t, e, n) {
327
328
  let r = t.charCodeAt(e);
328
- return pn(r) && (r = r | 32), r === n;
329
+ return gn(r) && (r = r | 32), r === n;
329
330
  }
330
- function gt(t, e, n, r) {
331
+ function yt(t, e, n, r) {
331
332
  if (n - e !== r.length || e < 0 || n > t.length)
332
333
  return !1;
333
334
  for (let i = e; i < n; i++) {
334
335
  const o = r.charCodeAt(i - e);
335
336
  let a = t.charCodeAt(i);
336
- if (pn(a) && (a = a | 32), a !== o)
337
+ if (gn(a) && (a = a | 32), a !== o)
337
338
  return !1;
338
339
  }
339
340
  return !0;
340
341
  }
341
- function pi(t, e) {
342
- for (; e >= 0 && Qe(t.charCodeAt(e)); e--)
342
+ function mi(t, e) {
343
+ for (; e >= 0 && Ye(t.charCodeAt(e)); e--)
343
344
  ;
344
345
  return e + 1;
345
346
  }
346
- function st(t, e) {
347
- for (; e < t.length && Qe(t.charCodeAt(e)); e++)
347
+ function at(t, e) {
348
+ for (; e < t.length && Ye(t.charCodeAt(e)); e++)
348
349
  ;
349
350
  return e;
350
351
  }
351
- function Qt(t, e) {
352
- for (; e < t.length && W(t.charCodeAt(e)); e++)
352
+ function Jt(t, e) {
353
+ for (; e < t.length && Q(t.charCodeAt(e)); e++)
353
354
  ;
354
355
  return e;
355
356
  }
356
- function Ge(t, e) {
357
- if (e += 2, Ve(Me(t, e - 1))) {
358
- for (const r = Math.min(t.length, e + 5); e < r && Ve(Me(t, e)); e++)
357
+ function Qe(t, 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++)
359
360
  ;
360
361
  const n = Me(t, e);
361
- Qe(n) && (e += an(t, e, n));
362
+ Ye(n) && (e += cn(t, e, n));
362
363
  }
363
364
  return e;
364
365
  }
365
- function ot(t, e) {
366
+ function lt(t, e) {
366
367
  for (; e < t.length; e++) {
367
368
  const n = t.charCodeAt(e);
368
- if (!Lr(n)) {
369
- if (de(n, Me(t, e + 1))) {
370
- e = Ge(t, e) - 1;
369
+ if (!_r(n)) {
370
+ if (ke(n, Me(t, e + 1))) {
371
+ e = Qe(t, e) - 1;
371
372
  continue;
372
373
  }
373
374
  break;
@@ -375,16 +376,16 @@ function ot(t, e) {
375
376
  }
376
377
  return e;
377
378
  }
378
- function Ir(t, e) {
379
+ function Nr(t, e) {
379
380
  let n = t.charCodeAt(e);
380
- if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)), W(n) && (e = Qt(t, e + 1), n = t.charCodeAt(e)), n === 46 && W(t.charCodeAt(e + 1)) && (e += 2, e = Qt(t, e)), Or(
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(
381
382
  t,
382
383
  e,
383
384
  101
384
385
  /* e */
385
386
  )) {
386
387
  let r = 0;
387
- n = t.charCodeAt(e + 1), (n === 45 || n === 43) && (r = 1, n = t.charCodeAt(e + 2)), W(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));
388
389
  }
389
390
  return e;
390
391
  }
@@ -395,19 +396,19 @@ function Yt(t, e) {
395
396
  e++;
396
397
  break;
397
398
  }
398
- de(n, Me(t, e + 1)) && (e = Ge(t, e));
399
+ ke(n, Me(t, e + 1)) && (e = Qe(t, e));
399
400
  }
400
401
  return e;
401
402
  }
402
- function di(t) {
403
- if (t.length === 1 && !Ve(t.charCodeAt(0)))
403
+ function gi(t) {
404
+ if (t.length === 1 && !Ke(t.charCodeAt(0)))
404
405
  return t[0];
405
406
  let e = parseInt(t, 16);
406
407
  return (e === 0 || // If this number is zero,
407
408
  e >= 55296 && e <= 57343 || // or is for a surrogate,
408
409
  e > 1114111) && (e = 65533), String.fromCodePoint(e);
409
410
  }
410
- const Nr = [
411
+ const Dr = [
411
412
  "EOF-token",
412
413
  "ident-token",
413
414
  "function-token",
@@ -432,30 +433,31 @@ const Nr = [
432
433
  "(-token",
433
434
  ")-token",
434
435
  "{-token",
435
- "}-token"
436
- ], mi = 16 * 1024;
437
- function kt(t = null, e) {
438
- return t === null || t.length < e ? new Uint32Array(Math.max(e + 1024, mi)) : t;
439
- }
440
- const rr = 10, gi = 12, ir = 13;
441
- function sr(t) {
442
- const e = t.source, n = e.length, r = e.length > 0 ? Er(e.charCodeAt(0)) : 0, i = kt(t.lines, n), o = kt(t.columns, n);
436
+ "}-token",
437
+ "comment-token"
438
+ ], ki = 16 * 1024;
439
+ function St(t = null, e) {
440
+ return t === null || t.length < e ? new Uint32Array(Math.max(e + 1024, ki)) : t;
441
+ }
442
+ const or = 10, yi = 12, ar = 13;
443
+ function lr(t) {
444
+ const e = t.source, n = e.length, r = e.length > 0 ? Tr(e.charCodeAt(0)) : 0, i = St(t.lines, n), o = St(t.columns, n);
443
445
  let a = t.startLine, f = t.startColumn;
444
446
  for (let c = r; c < n; c++) {
445
447
  const s = e.charCodeAt(c);
446
- i[c] = a, o[c] = f++, (s === rr || s === ir || s === gi) && (s === ir && c + 1 < n && e.charCodeAt(c + 1) === rr && (c++, i[c] = a, o[c] = f), a++, f = 1);
448
+ i[c] = a, o[c] = f++, (s === or || s === ar || s === yi) && (s === ar && c + 1 < n && e.charCodeAt(c + 1) === or && (c++, i[c] = a, o[c] = f), a++, f = 1);
447
449
  }
448
450
  i[n] = a, o[n] = f, t.lines = i, t.columns = o, t.computed = !0;
449
451
  }
450
- class ki {
451
- constructor() {
452
- this.lines = null, this.columns = null, this.computed = !1;
452
+ class Si {
453
+ constructor(e, n, r, i) {
454
+ this.setSource(e, n, r, i), this.lines = null, this.columns = null;
453
455
  }
454
- setSource(e, n = 0, r = 1, i = 1) {
456
+ setSource(e = "", n = 0, r = 1, i = 1) {
455
457
  this.source = e, this.startOffset = n, this.startLine = r, this.startColumn = i, this.computed = !1;
456
458
  }
457
459
  getLocation(e, n) {
458
- return this.computed || sr(this), {
460
+ return this.computed || lr(this), {
459
461
  source: n,
460
462
  offset: this.startOffset + e,
461
463
  line: this.lines[e],
@@ -463,7 +465,7 @@ class ki {
463
465
  };
464
466
  }
465
467
  getLocationRange(e, n, r) {
466
- return this.computed || sr(this), {
468
+ return this.computed || lr(this), {
467
469
  source: r,
468
470
  start: {
469
471
  offset: this.startOffset + e,
@@ -478,13 +480,15 @@ class ki {
478
480
  };
479
481
  }
480
482
  }
481
- const X = 16777215, ye = 24, yi = /* @__PURE__ */ new Map([
482
- [N, F],
483
- [_e, F],
484
- [Ke, pt],
485
- [Ct, fn]
486
- ]);
487
- class Si {
483
+ const le = 16777215, ce = 24, Te = new Uint8Array(32);
484
+ Te[N] = O;
485
+ Te[te] = O;
486
+ Te[wt] = mt;
487
+ Te[dn] = mn;
488
+ function cr(t) {
489
+ return Te[t] !== 0;
490
+ }
491
+ class xi {
488
492
  constructor(e, n) {
489
493
  this.setSource(e, n);
490
494
  }
@@ -494,49 +498,56 @@ class Si {
494
498
  setSource(e = "", n = () => {
495
499
  }) {
496
500
  e = String(e || "");
497
- const r = e.length, i = kt(this.offsetAndType, e.length + 1), o = kt(this.balance, e.length + 1);
498
- let a = 0, f = 0, c = 0, s = -1;
499
- for (this.offsetAndType = null, this.balance = null, n(e, (l, m, S) => {
500
- switch (l) {
501
- default:
502
- o[a] = r;
503
- break;
504
- case f: {
505
- let b = c & X;
506
- for (c = o[b], f = c >> ye, o[a] = b, o[b++] = a; b < a; b++)
507
- o[b] === r && (o[b] = a);
508
- break;
509
- }
510
- case _e:
511
- case N:
512
- case Ke:
513
- case Ct:
514
- o[a] = c, f = yi.get(l), c = f << ye | a;
515
- break;
516
- }
517
- i[a++] = l << ye | S, s === -1 && (s = m);
518
- }), i[a] = Gt << ye | r, o[a] = r, o[r] = r; c !== 0; ) {
519
- const l = c & X;
520
- c = o[l], o[l] = r;
501
+ const r = e.length, i = St(this.offsetAndType, e.length + 1), o = St(this.balance, e.length + 1);
502
+ let a = 0, f = -1, c = 0, s = e.length;
503
+ this.offsetAndType = null, this.balance = null, o.fill(0), n(e, (l, m, y) => {
504
+ const C = a++;
505
+ if (i[C] = l << ce | y, f === -1 && (f = m), o[C] = s, l === c) {
506
+ const _ = o[s];
507
+ o[s] = C, s = _, c = Te[i[_] >> ce];
508
+ } else cr(l) && (s = C, c = Te[l]);
509
+ }), i[a] = Ge << ce | r, o[a] = a;
510
+ for (let l = 0; l < a; l++) {
511
+ const m = o[l];
512
+ if (m <= l) {
513
+ const y = o[m];
514
+ y !== l && (o[l] = y);
515
+ } else m > a && (o[l] = a);
521
516
  }
522
- this.source = e, this.firstCharOffset = s === -1 ? 0 : s, this.tokenCount = a, this.offsetAndType = i, this.balance = o, this.reset(), this.next();
517
+ this.source = e, this.firstCharOffset = f === -1 ? 0 : f, this.tokenCount = a, this.offsetAndType = i, this.balance = o, this.reset(), this.next();
523
518
  }
524
519
  lookupType(e) {
525
- return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ye : Gt;
520
+ return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ce : Ge;
521
+ }
522
+ lookupTypeNonSC(e) {
523
+ for (let n = this.tokenIndex; n < this.tokenCount; n++) {
524
+ const r = this.offsetAndType[n] >> ce;
525
+ if (r !== J && r !== he && e-- === 0)
526
+ return r;
527
+ }
528
+ return Ge;
526
529
  }
527
530
  lookupOffset(e) {
528
- return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & X : this.source.length;
531
+ return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & le : this.source.length;
532
+ }
533
+ lookupOffsetNonSC(e) {
534
+ for (let n = this.tokenIndex; n < this.tokenCount; n++) {
535
+ const r = this.offsetAndType[n] >> ce;
536
+ if (r !== J && r !== he && e-- === 0)
537
+ return n - this.tokenIndex;
538
+ }
539
+ return Ge;
529
540
  }
530
541
  lookupValue(e, n) {
531
- return e += this.tokenIndex, e < this.tokenCount ? gt(
542
+ return e += this.tokenIndex, e < this.tokenCount ? yt(
532
543
  this.source,
533
- this.offsetAndType[e - 1] & X,
534
- this.offsetAndType[e] & X,
544
+ this.offsetAndType[e - 1] & le,
545
+ this.offsetAndType[e] & le,
535
546
  n
536
547
  ) : !1;
537
548
  }
538
549
  getTokenStart(e) {
539
- return e === this.tokenIndex ? this.tokenStart : e > 0 ? e < this.tokenCount ? this.offsetAndType[e - 1] & X : this.offsetAndType[this.tokenCount] & X : 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;
540
551
  }
541
552
  substrToCursor(e) {
542
553
  return this.source.substring(e, this.tokenStart);
@@ -545,41 +556,41 @@ class Si {
545
556
  return this.balance[this.tokenIndex] < e;
546
557
  }
547
558
  isDelim(e, n) {
548
- return n ? this.lookupType(n) === O && this.source.charCodeAt(this.lookupOffset(n)) === e : this.tokenType === O && this.source.charCodeAt(this.tokenStart) === e;
559
+ return n ? this.lookupType(n) === $ && this.source.charCodeAt(this.lookupOffset(n)) === e : this.tokenType === $ && this.source.charCodeAt(this.tokenStart) === e;
549
560
  }
550
561
  skip(e) {
551
562
  let n = this.tokenIndex + e;
552
- n < this.tokenCount ? (this.tokenIndex = n, this.tokenStart = this.offsetAndType[n - 1] & X, n = this.offsetAndType[n], this.tokenType = n >> ye, this.tokenEnd = n & X) : (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());
553
564
  }
554
565
  next() {
555
566
  let e = this.tokenIndex + 1;
556
- e < this.tokenCount ? (this.tokenIndex = e, this.tokenStart = this.tokenEnd, e = this.offsetAndType[e], this.tokenType = e >> ye, this.tokenEnd = e & X) : (this.eof = !0, this.tokenIndex = this.tokenCount, this.tokenType = Gt, 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);
557
568
  }
558
569
  skipSC() {
559
- for (; this.tokenType === ae || this.tokenType === Ee; )
570
+ for (; this.tokenType === J || this.tokenType === he; )
560
571
  this.next();
561
572
  }
562
573
  skipUntilBalanced(e, n) {
563
- let r = e, i, o;
574
+ let r = e, i = 0, o = 0;
564
575
  e:
565
576
  for (; r < this.tokenCount; r++) {
566
577
  if (i = this.balance[r], i < e)
567
578
  break e;
568
- switch (o = r > 0 ? this.offsetAndType[r - 1] & X : this.firstCharOffset, n(this.source.charCodeAt(o))) {
579
+ switch (o = r > 0 ? this.offsetAndType[r - 1] & le : this.firstCharOffset, n(this.source.charCodeAt(o))) {
569
580
  case 1:
570
581
  break e;
571
582
  case 2:
572
583
  r++;
573
584
  break e;
574
585
  default:
575
- this.balance[i] === r && (r = i);
586
+ cr(this.offsetAndType[r] >> ce) && (r = i);
576
587
  }
577
588
  }
578
589
  this.skip(r - this.tokenIndex);
579
590
  }
580
591
  forEachToken(e) {
581
592
  for (let n = 0, r = this.firstCharOffset; n < this.tokenCount; n++) {
582
- const i = r, o = this.offsetAndType[n], a = o & X, f = o >> ye;
593
+ const i = r, o = this.offsetAndType[n], a = o & le, f = o >> ce;
583
594
  r = a, e(f, i, a, n);
584
595
  }
585
596
  }
@@ -588,32 +599,32 @@ class Si {
588
599
  return this.forEachToken((n, r, i, o) => {
589
600
  e[o] = {
590
601
  idx: o,
591
- type: Nr[n],
602
+ type: Dr[n],
592
603
  chunk: this.source.substring(r, i),
593
604
  balance: this.balance[o]
594
605
  };
595
606
  }), e;
596
607
  }
597
608
  }
598
- function $r(t, e) {
609
+ function Pr(t, e) {
599
610
  function n(m) {
600
611
  return m < f ? t.charCodeAt(m) : 0;
601
612
  }
602
613
  function r() {
603
- if (s = Ir(t, s), Ht(n(s), n(s + 1), n(s + 2))) {
604
- l = T, s = ot(t, s);
614
+ if (s = Nr(t, s), Wt(n(s), n(s + 1), n(s + 2))) {
615
+ l = I, s = lt(t, s);
605
616
  return;
606
617
  }
607
618
  if (n(s) === 37) {
608
- l = D, s++;
619
+ l = P, s++;
609
620
  return;
610
621
  }
611
- l = E;
622
+ l = L;
612
623
  }
613
624
  function i() {
614
625
  const m = s;
615
- if (s = ot(t, s), gt(t, m, s, "url") && n(s) === 40) {
616
- if (s = st(t, s + 1), n(s) === 34 || n(s) === 39) {
626
+ if (s = lt(t, s), yt(t, m, s, "url") && n(s) === 40) {
627
+ if (s = at(t, s + 1), n(s) === 34 || n(s) === 39) {
617
628
  l = N, s = m + 4;
618
629
  return;
619
630
  }
@@ -627,36 +638,36 @@ function $r(t, e) {
627
638
  l = k;
628
639
  }
629
640
  function o(m) {
630
- for (m || (m = n(s++)), l = We; s < t.length; s++) {
631
- const S = t.charCodeAt(s);
632
- switch (Kt(S)) {
641
+ for (m || (m = n(s++)), l = ze; s < t.length; s++) {
642
+ const y = t.charCodeAt(s);
643
+ switch (Qt(y)) {
633
644
  case m:
634
645
  s++;
635
646
  return;
636
- case ct:
637
- if (mt(S)) {
638
- s += an(t, s, S), l = oi;
647
+ case ht:
648
+ if (kt(y)) {
649
+ s += cn(t, s, y), l = li;
639
650
  return;
640
651
  }
641
652
  break;
642
653
  case 92:
643
654
  if (s === t.length - 1)
644
655
  break;
645
- const b = n(s + 1);
646
- mt(b) ? s += an(t, s + 1, b) : de(S, b) && (s = Ge(t, s) - 1);
656
+ const C = n(s + 1);
657
+ kt(C) ? s += cn(t, s + 1, C) : ke(y, C) && (s = Qe(t, s) - 1);
647
658
  break;
648
659
  }
649
660
  }
650
661
  }
651
662
  function a() {
652
- for (l = ie, s = st(t, s); s < t.length; s++) {
663
+ for (l = ie, s = at(t, s); s < t.length; s++) {
653
664
  const m = t.charCodeAt(s);
654
- switch (Kt(m)) {
665
+ switch (Qt(m)) {
655
666
  case 41:
656
667
  s++;
657
668
  return;
658
- case ct:
659
- if (s = st(t, s), n(s) === 41 || s >= t.length) {
669
+ case ht:
670
+ if (s = at(t, s), n(s) === 41 || s >= t.length) {
660
671
  s < t.length && s++;
661
672
  return;
662
673
  }
@@ -665,12 +676,12 @@ function $r(t, e) {
665
676
  case 34:
666
677
  case 39:
667
678
  case 40:
668
- case Tr:
679
+ case Ir:
669
680
  s = Yt(t, s), l = se;
670
681
  return;
671
682
  case 92:
672
- if (de(m, n(s + 1))) {
673
- s = Ge(t, s) - 1;
683
+ if (ke(m, n(s + 1))) {
684
+ s = Qe(t, s) - 1;
674
685
  break;
675
686
  }
676
687
  s = Yt(t, s), l = se;
@@ -680,83 +691,83 @@ function $r(t, e) {
680
691
  }
681
692
  t = String(t || "");
682
693
  const f = t.length;
683
- let c = Er(n(0)), s = c, l;
694
+ let c = Tr(n(0)), s = c, l;
684
695
  for (; s < f; ) {
685
696
  const m = t.charCodeAt(s);
686
- switch (Kt(m)) {
687
- case ct:
688
- l = ae, s = st(t, s + 1);
697
+ switch (Qt(m)) {
698
+ case ht:
699
+ l = J, s = at(t, s + 1);
689
700
  break;
690
701
  case 34:
691
702
  o();
692
703
  break;
693
704
  case 35:
694
- Lr(n(s + 1)) || de(n(s + 1), n(s + 2)) ? (l = M, s = ot(t, s + 1)) : (l = O, s++);
705
+ _r(n(s + 1)) || ke(n(s + 1), n(s + 2)) ? (l = F, s = lt(t, s + 1)) : (l = $, s++);
695
706
  break;
696
707
  case 39:
697
708
  o();
698
709
  break;
699
710
  case 40:
700
- l = _e, s++;
711
+ l = te, s++;
701
712
  break;
702
713
  case 41:
703
- l = F, s++;
714
+ l = O, s++;
704
715
  break;
705
716
  case 43:
706
- Wt(m, n(s + 1), n(s + 2)) ? r() : (l = O, s++);
717
+ Kt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
707
718
  break;
708
719
  case 44:
709
- l = xt, s++;
720
+ l = Re, s++;
710
721
  break;
711
722
  case 45:
712
- Wt(m, n(s + 1), n(s + 2)) ? r() : n(s + 1) === 45 && n(s + 2) === 62 ? (l = oe, s = s + 3) : Ht(m, n(s + 1), n(s + 2)) ? i() : (l = O, 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++);
713
724
  break;
714
725
  case 46:
715
- Wt(m, n(s + 1), n(s + 2)) ? r() : (l = O, s++);
726
+ Kt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
716
727
  break;
717
728
  case 47:
718
- n(s + 1) === 42 ? (l = Ee, s = t.indexOf("*/", s + 2), s = s === -1 ? t.length : s + 2) : (l = O, s++);
729
+ n(s + 1) === 42 ? (l = he, s = t.indexOf("*/", s + 2), s = s === -1 ? t.length : s + 2) : (l = $, s++);
719
730
  break;
720
731
  case 58:
721
- l = Z, s++;
732
+ l = ee, s++;
722
733
  break;
723
734
  case 59:
724
- l = St, s++;
735
+ l = bt, s++;
725
736
  break;
726
737
  case 60:
727
- n(s + 1) === 33 && n(s + 2) === 45 && n(s + 3) === 45 ? (l = Ar, s = s + 4) : (l = O, s++);
738
+ n(s + 1) === 33 && n(s + 2) === 45 && n(s + 3) === 45 ? (l = Er, s = s + 4) : (l = $, s++);
728
739
  break;
729
740
  case 64:
730
- Ht(n(s + 1), n(s + 2), n(s + 3)) ? (l = j, s = ot(t, s + 1)) : (l = O, s++);
741
+ Wt(n(s + 1), n(s + 2), n(s + 3)) ? (l = U, s = lt(t, s + 1)) : (l = $, s++);
731
742
  break;
732
743
  case 91:
733
- l = Ke, s++;
744
+ l = wt, s++;
734
745
  break;
735
746
  case 92:
736
- de(m, n(s + 1)) ? i() : (l = O, s++);
747
+ ke(m, n(s + 1)) ? i() : (l = $, s++);
737
748
  break;
738
749
  case 93:
739
- l = pt, s++;
750
+ l = mt, s++;
740
751
  break;
741
752
  case 123:
742
- l = Ct, s++;
753
+ l = dn, s++;
743
754
  break;
744
755
  case 125:
745
- l = fn, s++;
756
+ l = mn, s++;
746
757
  break;
747
- case _r:
758
+ case Or:
748
759
  r();
749
760
  break;
750
- case dn:
761
+ case kn:
751
762
  i();
752
763
  break;
753
764
  default:
754
- l = O, s++;
765
+ l = $, s++;
755
766
  }
756
767
  e(l, c, c = s);
757
768
  }
758
769
  }
759
- function xi(t) {
770
+ function Ci(t) {
760
771
  const e = this.createList();
761
772
  let n = !1;
762
773
  const r = {
@@ -764,10 +775,10 @@ function xi(t) {
764
775
  };
765
776
  for (; !this.eof; ) {
766
777
  switch (this.tokenType) {
767
- case Ee:
778
+ case he:
768
779
  this.next();
769
780
  continue;
770
- case ae:
781
+ case J:
771
782
  n = !0, this.next();
772
783
  continue;
773
784
  }
@@ -778,36 +789,37 @@ function xi(t) {
778
789
  }
779
790
  return n && t.onWhiteSpace && t.onWhiteSpace.call(this, null, e, r), e;
780
791
  }
781
- const or = () => {
782
- }, Ci = 33, bi = 35, Jt = 59, ar = 123, lr = 0;
783
- function wi(t) {
792
+ const ur = () => {
793
+ }, bi = 33, wi = 35, Xt = 59, hr = 123, fr = 0;
794
+ function vi(t) {
784
795
  return function() {
785
796
  return this[t]();
786
797
  };
787
798
  }
788
- function Xt(t) {
799
+ function Zt(t) {
789
800
  const e = /* @__PURE__ */ Object.create(null);
790
- for (const n in t) {
801
+ for (const n of Object.keys(t)) {
791
802
  const r = t[n], i = r.parse || r;
792
803
  i && (e[n] = i);
793
804
  }
794
805
  return e;
795
806
  }
796
- function vi(t) {
807
+ function Ai(t) {
797
808
  const e = {
798
809
  context: /* @__PURE__ */ Object.create(null),
810
+ features: Object.assign(/* @__PURE__ */ Object.create(null), t.features),
799
811
  scope: Object.assign(/* @__PURE__ */ Object.create(null), t.scope),
800
- atrule: Xt(t.atrule),
801
- pseudo: Xt(t.pseudo),
802
- node: Xt(t.node)
812
+ atrule: Zt(t.atrule),
813
+ pseudo: Zt(t.pseudo),
814
+ node: Zt(t.node)
803
815
  };
804
- for (const n in t.parseContext)
805
- switch (typeof t.parseContext[n]) {
816
+ for (const [n, r] of Object.entries(t.parseContext))
817
+ switch (typeof r) {
806
818
  case "function":
807
- e.context[n] = t.parseContext[n];
819
+ e.context[n] = r;
808
820
  break;
809
821
  case "string":
810
- e.context[n] = wi(t.parseContext[n]);
822
+ e.context[n] = vi(r);
811
823
  break;
812
824
  }
813
825
  return {
@@ -816,32 +828,32 @@ function vi(t) {
816
828
  ...e.node
817
829
  };
818
830
  }
819
- function Ai(t) {
820
- let e = "", n = "<unknown>", r = !1, i = or, o = !1;
821
- const a = new ki(), f = Object.assign(new Si(), vi(t || {}), {
831
+ function Li(t) {
832
+ let e = "", n = "<unknown>", r = !1, i = ur, o = !1;
833
+ const a = new Si(), f = Object.assign(new xi(), Ai(t || {}), {
822
834
  parseAtrulePrelude: !0,
823
835
  parseRulePrelude: !0,
824
836
  parseValue: !0,
825
837
  parseCustomProperty: !1,
826
- readSequence: xi,
838
+ readSequence: Ci,
827
839
  consumeUntilBalanceEnd: () => 0,
828
840
  consumeUntilLeftCurlyBracket(s) {
829
- return s === ar ? 1 : 0;
841
+ return s === hr ? 1 : 0;
830
842
  },
831
843
  consumeUntilLeftCurlyBracketOrSemicolon(s) {
832
- return s === ar || s === Jt ? 1 : 0;
844
+ return s === hr || s === Xt ? 1 : 0;
833
845
  },
834
846
  consumeUntilExclamationMarkOrSemicolon(s) {
835
- return s === Ci || s === Jt ? 1 : 0;
847
+ return s === bi || s === Xt ? 1 : 0;
836
848
  },
837
849
  consumeUntilSemicolonIncluded(s) {
838
- return s === Jt ? 2 : 0;
850
+ return s === Xt ? 2 : 0;
839
851
  },
840
852
  createList() {
841
- return new V();
853
+ return new H();
842
854
  },
843
855
  createSingleNodeList(s) {
844
- return new V().appendData(s);
856
+ return new H().appendData(s);
845
857
  },
846
858
  getFirstListNode(s) {
847
859
  return s && s.first;
@@ -853,20 +865,21 @@ function Ai(t) {
853
865
  const m = this.tokenIndex;
854
866
  try {
855
867
  return s.call(this);
856
- } catch (S) {
868
+ } catch (y) {
857
869
  if (o)
858
- throw S;
859
- const b = l.call(this, m);
860
- return o = !0, i(S, b), o = !1, b;
870
+ throw y;
871
+ this.skip(m - this.tokenIndex);
872
+ const C = l.call(this);
873
+ return o = !0, i(y, C), o = !1, C;
861
874
  }
862
875
  },
863
876
  lookupNonWSType(s) {
864
877
  let l;
865
878
  do
866
- if (l = this.lookupType(s++), l !== ae)
879
+ if (l = this.lookupType(s++), l !== J && l !== he)
867
880
  return l;
868
- while (l !== lr);
869
- return lr;
881
+ while (l !== fr);
882
+ return fr;
870
883
  },
871
884
  charCodeAt(s) {
872
885
  return s >= 0 && s < e.length ? e.charCodeAt(s) : 0;
@@ -878,10 +891,10 @@ function Ai(t) {
878
891
  return this.source.substring(s, this.tokenStart);
879
892
  },
880
893
  cmpChar(s, l) {
881
- return Or(e, s, l);
894
+ return $r(e, s, l);
882
895
  },
883
896
  cmpStr(s, l, m) {
884
- return gt(e, s, l, m);
897
+ return yt(e, s, l, m);
885
898
  },
886
899
  consume(s) {
887
900
  const l = this.tokenStart;
@@ -892,25 +905,25 @@ function Ai(t) {
892
905
  return this.eat(N), s;
893
906
  },
894
907
  consumeNumber(s) {
895
- const l = e.substring(this.tokenStart, Ir(e, this.tokenStart));
908
+ const l = e.substring(this.tokenStart, Nr(e, this.tokenStart));
896
909
  return this.eat(s), l;
897
910
  },
898
911
  eat(s) {
899
912
  if (this.tokenType !== s) {
900
- const l = Nr[s].slice(0, -6).replace(/-/g, " ").replace(/^./, (b) => b.toUpperCase());
901
- let m = `${/[[\](){}]/.test(l) ? `"${l}"` : l} is expected`, S = this.tokenStart;
913
+ const l = Dr[s].slice(0, -6).replace(/-/g, " ").replace(/^./, (C) => C.toUpperCase());
914
+ let m = `${/[[\](){}]/.test(l) ? `"${l}"` : l} is expected`, y = this.tokenStart;
902
915
  switch (s) {
903
916
  case k:
904
- this.tokenType === N || this.tokenType === ie ? (S = 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";
905
918
  break;
906
- case M:
907
- this.isDelim(bi) && (this.next(), S++, m = "Name is expected");
919
+ case F:
920
+ this.isDelim(wi) && (this.next(), y++, m = "Name is expected");
908
921
  break;
909
- case D:
910
- this.tokenType === E && (S = this.tokenEnd, m = "Percent sign is expected");
922
+ case P:
923
+ this.tokenType === L && (y = this.tokenEnd, m = "Percent sign is expected");
911
924
  break;
912
925
  }
913
- this.error(m, S);
926
+ this.error(m, y);
914
927
  }
915
928
  this.next();
916
929
  },
@@ -939,41 +952,43 @@ function Ai(t) {
939
952
  return null;
940
953
  },
941
954
  error(s, l) {
942
- const m = typeof l < "u" && l < e.length ? a.getLocation(l) : this.eof ? a.getLocation(pi(e, e.length - 1)) : a.getLocation(this.tokenStart);
943
- throw new nr(
955
+ const m = typeof l < "u" && l < e.length ? a.getLocation(l) : this.eof ? a.getLocation(mi(e, e.length - 1)) : a.getLocation(this.tokenStart);
956
+ throw new sr(
944
957
  s || "Unexpected input",
945
958
  e,
946
959
  m.offset,
947
960
  m.line,
948
- m.column
961
+ m.column,
962
+ a.startLine,
963
+ a.startColumn
949
964
  );
950
965
  }
951
966
  });
952
967
  return Object.assign(function(s, l) {
953
- e = s, l = l || {}, f.setSource(e, $r), a.setSource(
968
+ e = s, l = l || {}, f.setSource(e, Pr), a.setSource(
954
969
  e,
955
970
  l.offset,
956
971
  l.line,
957
972
  l.column
958
- ), n = l.filename || "<unknown>", r = !!l.positions, i = typeof l.onParseError == "function" ? l.onParseError : or, o = !1, f.parseAtrulePrelude = "parseAtrulePrelude" in l ? !!l.parseAtrulePrelude : !0, f.parseRulePrelude = "parseRulePrelude" in l ? !!l.parseRulePrelude : !0, f.parseValue = "parseValue" in l ? !!l.parseValue : !0, f.parseCustomProperty = "parseCustomProperty" in l ? !!l.parseCustomProperty : !1;
959
- const { context: m = "default", onComment: S } = l;
973
+ ), n = l.filename || "<unknown>", r = !!l.positions, i = typeof l.onParseError == "function" ? l.onParseError : ur, o = !1, f.parseAtrulePrelude = "parseAtrulePrelude" in l ? !!l.parseAtrulePrelude : !0, f.parseRulePrelude = "parseRulePrelude" in l ? !!l.parseRulePrelude : !0, f.parseValue = "parseValue" in l ? !!l.parseValue : !0, f.parseCustomProperty = "parseCustomProperty" in l ? !!l.parseCustomProperty : !1;
974
+ const { context: m = "default", onComment: y } = l;
960
975
  if (!(m in f.context))
961
976
  throw new Error("Unknown context `" + m + "`");
962
- typeof S == "function" && f.forEachToken((K, q, te) => {
963
- if (K === Ee) {
964
- const Ce = f.getLocation(q, te), Te = gt(e, te - 2, te, "*/") ? e.slice(q + 2, te - 2) : e.slice(q + 2, te);
965
- S(Te, Ce);
977
+ typeof y == "function" && f.forEachToken((_, q, V) => {
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);
966
981
  }
967
982
  });
968
- const b = f.context[m].call(f, l);
969
- return f.eof || f.error(), b;
983
+ const C = f.context[m].call(f, l);
984
+ return f.eof || f.error(), C;
970
985
  }, {
971
- SyntaxError: nr,
986
+ SyntaxError: sr,
972
987
  config: f.config
973
988
  });
974
989
  }
975
- const Li = 35, Ei = 38, _i = 42, Ti = 43, Oi = 47, cr = 46, Ii = 62, Ni = 124, $i = 126;
976
- function Di(t, e) {
990
+ const Ei = 35, _i = 38, Ti = 42, Oi = 43, Ii = 47, pr = 46, $i = 62, Ni = 124, Di = 126;
991
+ function Pi(t, e) {
977
992
  e.last !== null && e.last.type !== "Combinator" && t !== null && t.type !== "Combinator" && e.push({
978
993
  // FIXME: this.Combinator() should be used instead
979
994
  type: "Combinator",
@@ -981,170 +996,196 @@ function Di(t, e) {
981
996
  name: " "
982
997
  });
983
998
  }
984
- function Pi() {
999
+ function Mi() {
985
1000
  switch (this.tokenType) {
986
- case Ke:
1001
+ case wt:
987
1002
  return this.AttributeSelector();
988
- case M:
1003
+ case F:
989
1004
  return this.IdSelector();
990
- case Z:
991
- return this.lookupType(1) === Z ? this.PseudoElementSelector() : this.PseudoClassSelector();
1005
+ case ee:
1006
+ return this.lookupType(1) === ee ? this.PseudoElementSelector() : this.PseudoClassSelector();
992
1007
  case k:
993
1008
  return this.TypeSelector();
994
- case E:
995
- case D:
1009
+ case L:
1010
+ case P:
996
1011
  return this.Percentage();
997
- case T:
998
- this.charCodeAt(this.tokenStart) === cr && this.error("Identifier is expected", this.tokenStart + 1);
1012
+ case I:
1013
+ this.charCodeAt(this.tokenStart) === pr && this.error("Identifier is expected", this.tokenStart + 1);
999
1014
  break;
1000
- case O: {
1015
+ case $: {
1001
1016
  switch (this.charCodeAt(this.tokenStart)) {
1002
- case Ti:
1003
- case Ii:
1004
- case $i:
1005
1017
  case Oi:
1018
+ case $i:
1019
+ case Di:
1020
+ case Ii:
1006
1021
  return this.Combinator();
1007
- case cr:
1022
+ case pr:
1008
1023
  return this.ClassSelector();
1009
- case _i:
1024
+ case Ti:
1010
1025
  case Ni:
1011
1026
  return this.TypeSelector();
1012
- case Li:
1013
- return this.IdSelector();
1014
1027
  case Ei:
1028
+ return this.IdSelector();
1029
+ case _i:
1015
1030
  return this.NestingSelector();
1016
1031
  }
1017
1032
  break;
1018
1033
  }
1019
1034
  }
1020
1035
  }
1021
- const Mi = {
1022
- onWhiteSpace: Di,
1023
- getNode: Pi
1024
- }, ve = {
1036
+ const Fi = {
1037
+ onWhiteSpace: Pi,
1038
+ getNode: Mi
1039
+ };
1040
+ function zi() {
1041
+ const t = this.createList();
1042
+ this.skipSC();
1043
+ e: for (; !this.eof; ) {
1044
+ switch (this.tokenType) {
1045
+ case k:
1046
+ t.push(this.Identifier());
1047
+ break;
1048
+ case ze:
1049
+ t.push(this.String());
1050
+ break;
1051
+ case Re:
1052
+ t.push(this.Operator());
1053
+ break;
1054
+ case O:
1055
+ break e;
1056
+ default:
1057
+ this.error("Identifier, string or comma is expected");
1058
+ }
1059
+ this.skipSC();
1060
+ }
1061
+ return t;
1062
+ }
1063
+ const Le = {
1025
1064
  parse() {
1026
1065
  return this.createSingleNodeList(
1027
1066
  this.SelectorList()
1028
1067
  );
1029
1068
  }
1030
- }, Zt = {
1069
+ }, en = {
1031
1070
  parse() {
1032
1071
  return this.createSingleNodeList(
1033
1072
  this.Selector()
1034
1073
  );
1035
1074
  }
1036
- }, ur = {
1075
+ }, Ri = {
1037
1076
  parse() {
1038
1077
  return this.createSingleNodeList(
1039
1078
  this.Identifier()
1040
1079
  );
1041
1080
  }
1042
- }, at = {
1081
+ }, qi = {
1082
+ parse: zi
1083
+ }, ct = {
1043
1084
  parse() {
1044
1085
  return this.createSingleNodeList(
1045
1086
  this.Nth()
1046
1087
  );
1047
1088
  }
1048
- }, zi = {
1049
- dir: ur,
1050
- has: ve,
1051
- lang: ur,
1052
- matches: ve,
1053
- is: ve,
1054
- "-moz-any": ve,
1055
- "-webkit-any": ve,
1056
- where: ve,
1057
- not: ve,
1058
- "nth-child": at,
1059
- "nth-last-child": at,
1060
- "nth-last-of-type": at,
1061
- "nth-of-type": at,
1062
- slotted: Zt,
1063
- host: Zt,
1064
- "host-context": Zt
1065
- }, ce = 43, H = 45, ut = 110, Ae = !0, Fi = !1;
1066
- function ht(t, e) {
1089
+ }, Bi = {
1090
+ dir: Ri,
1091
+ has: Le,
1092
+ lang: qi,
1093
+ matches: Le,
1094
+ is: Le,
1095
+ "-moz-any": Le,
1096
+ "-webkit-any": Le,
1097
+ where: Le,
1098
+ not: Le,
1099
+ "nth-child": ct,
1100
+ "nth-last-child": ct,
1101
+ "nth-last-of-type": ct,
1102
+ "nth-of-type": ct,
1103
+ slotted: en,
1104
+ host: en,
1105
+ "host-context": en
1106
+ }, ue = 43, K = 45, ft = 110, Ee = !0, ji = !1;
1107
+ function pt(t, e) {
1067
1108
  let n = this.tokenStart + t;
1068
1109
  const r = this.charCodeAt(n);
1069
- for ((r === ce || r === H) && (e && this.error("Number sign is not allowed"), n++); n < this.tokenEnd; n++)
1070
- W(this.charCodeAt(n)) || this.error("Integer is expected", n);
1110
+ for ((r === ue || r === K) && (e && this.error("Number sign is not allowed"), n++); n < this.tokenEnd; n++)
1111
+ Q(this.charCodeAt(n)) || this.error("Integer is expected", n);
1071
1112
  }
1072
- function De(t) {
1073
- return ht.call(this, 0, t);
1113
+ function Pe(t) {
1114
+ return pt.call(this, 0, t);
1074
1115
  }
1075
- function Se(t, e) {
1116
+ function be(t, e) {
1076
1117
  if (!this.cmpChar(this.tokenStart + t, e)) {
1077
1118
  let n = "";
1078
1119
  switch (e) {
1079
- case ut:
1120
+ case ft:
1080
1121
  n = "N is expected";
1081
1122
  break;
1082
- case H:
1123
+ case K:
1083
1124
  n = "HyphenMinus is expected";
1084
1125
  break;
1085
1126
  }
1086
1127
  this.error(n, this.tokenStart + t);
1087
1128
  }
1088
1129
  }
1089
- function en() {
1130
+ function tn() {
1090
1131
  let t = 0, e = 0, n = this.tokenType;
1091
- for (; n === ae || n === Ee; )
1132
+ for (; n === J || n === he; )
1092
1133
  n = this.lookupType(++t);
1093
- if (n !== E)
1094
- if (this.isDelim(ce, t) || this.isDelim(H, t)) {
1095
- e = this.isDelim(ce, t) ? ce : H;
1134
+ if (n !== L)
1135
+ if (this.isDelim(ue, t) || this.isDelim(K, t)) {
1136
+ e = this.isDelim(ue, t) ? ue : K;
1096
1137
  do
1097
1138
  n = this.lookupType(++t);
1098
- while (n === ae || n === Ee);
1099
- n !== E && (this.skip(t), De.call(this, Ae));
1139
+ while (n === J || n === he);
1140
+ n !== L && (this.skip(t), Pe.call(this, Ee));
1100
1141
  } else
1101
1142
  return null;
1102
- return t > 0 && this.skip(t), e === 0 && (n = this.charCodeAt(this.tokenStart), n !== ce && n !== H && this.error("Number sign is expected")), De.call(this, e !== 0), e === H ? "-" + 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);
1103
1144
  }
1104
- function Ri() {
1145
+ function Ui() {
1105
1146
  const t = this.tokenStart;
1106
1147
  let e = null, n = null;
1107
- if (this.tokenType === E)
1108
- De.call(this, Fi), n = this.consume(E);
1109
- else if (this.tokenType === k && this.cmpChar(this.tokenStart, H))
1110
- switch (e = "-1", Se.call(this, 1, ut), this.tokenEnd - this.tokenStart) {
1148
+ if (this.tokenType === L)
1149
+ Pe.call(this, ji), n = this.consume(L);
1150
+ else if (this.tokenType === k && this.cmpChar(this.tokenStart, K))
1151
+ switch (e = "-1", be.call(this, 1, ft), this.tokenEnd - this.tokenStart) {
1111
1152
  case 2:
1112
- this.next(), n = en.call(this);
1153
+ this.next(), n = tn.call(this);
1113
1154
  break;
1114
1155
  case 3:
1115
- Se.call(this, 2, H), this.next(), this.skipSC(), De.call(this, Ae), n = "-" + this.consume(E);
1156
+ be.call(this, 2, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L);
1116
1157
  break;
1117
1158
  default:
1118
- Se.call(this, 2, H), ht.call(this, 3, Ae), this.next(), n = this.substrToCursor(t + 2);
1159
+ be.call(this, 2, K), pt.call(this, 3, Ee), this.next(), n = this.substrToCursor(t + 2);
1119
1160
  }
1120
- else if (this.tokenType === k || this.isDelim(ce) && this.lookupType(1) === k) {
1161
+ else if (this.tokenType === k || this.isDelim(ue) && this.lookupType(1) === k) {
1121
1162
  let r = 0;
1122
- switch (e = "1", this.isDelim(ce) && (r = 1, this.next()), Se.call(this, 0, ut), this.tokenEnd - this.tokenStart) {
1163
+ switch (e = "1", this.isDelim(ue) && (r = 1, this.next()), be.call(this, 0, ft), this.tokenEnd - this.tokenStart) {
1123
1164
  case 1:
1124
- this.next(), n = en.call(this);
1165
+ this.next(), n = tn.call(this);
1125
1166
  break;
1126
1167
  case 2:
1127
- Se.call(this, 1, H), this.next(), this.skipSC(), De.call(this, Ae), n = "-" + this.consume(E);
1168
+ be.call(this, 1, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L);
1128
1169
  break;
1129
1170
  default:
1130
- Se.call(this, 1, H), ht.call(this, 2, Ae), this.next(), n = this.substrToCursor(t + r + 1);
1171
+ be.call(this, 1, K), pt.call(this, 2, Ee), this.next(), n = this.substrToCursor(t + r + 1);
1131
1172
  }
1132
- } else if (this.tokenType === T) {
1133
- const r = this.charCodeAt(this.tokenStart), i = r === ce || r === H;
1173
+ } else if (this.tokenType === I) {
1174
+ const r = this.charCodeAt(this.tokenStart), i = r === ue || r === K;
1134
1175
  let o = this.tokenStart + i;
1135
- for (; o < this.tokenEnd && W(this.charCodeAt(o)); o++)
1176
+ for (; o < this.tokenEnd && Q(this.charCodeAt(o)); o++)
1136
1177
  ;
1137
- o === this.tokenStart + i && this.error("Integer is expected", this.tokenStart + i), Se.call(this, o - this.tokenStart, ut), e = this.substring(t, o), o + 1 === this.tokenEnd ? (this.next(), n = en.call(this)) : (Se.call(this, o - this.tokenStart + 1, H), o + 2 === this.tokenEnd ? (this.next(), this.skipSC(), De.call(this, Ae), n = "-" + this.consume(E)) : (ht.call(this, o - this.tokenStart + 2, Ae), 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)));
1138
1179
  } else
1139
1180
  this.error();
1140
- return e !== null && e.charCodeAt(0) === ce && (e = e.substr(1)), n !== null && n.charCodeAt(0) === ce && (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)), {
1141
1182
  type: "AnPlusB",
1142
1183
  loc: this.getLocation(t, this.tokenStart),
1143
1184
  a: e,
1144
1185
  b: n
1145
1186
  };
1146
1187
  }
1147
- function qi(t) {
1188
+ function Vi(t) {
1148
1189
  if (t.a) {
1149
1190
  const e = t.a === "+1" && "n" || t.a === "1" && "n" || t.a === "-1" && "-n" || t.a + "n";
1150
1191
  if (t.b) {
@@ -1155,30 +1196,30 @@ function qi(t) {
1155
1196
  } else
1156
1197
  this.tokenize(t.b);
1157
1198
  }
1158
- const Bi = 36, Dr = 42, ft = 61, ji = 94, ln = 124, Ui = 126;
1159
- function Vi() {
1199
+ const Gi = 36, Mr = 42, dt = 61, Hi = 94, un = 124, Wi = 126;
1200
+ function Ki() {
1160
1201
  this.eof && this.error("Unexpected end of input");
1161
1202
  const t = this.tokenStart;
1162
1203
  let e = !1;
1163
- return this.isDelim(Dr) ? (e = !0, this.next()) : this.isDelim(ln) || this.eat(k), this.isDelim(ln) ? this.charCodeAt(this.tokenStart + 1) !== ft ? (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"), {
1164
1205
  type: "Identifier",
1165
1206
  loc: this.getLocation(t, this.tokenStart),
1166
1207
  name: this.substrToCursor(t)
1167
1208
  };
1168
1209
  }
1169
- function Gi() {
1210
+ function Qi() {
1170
1211
  const t = this.tokenStart, e = this.charCodeAt(t);
1171
- return e !== ft && // =
1172
- e !== Ui && // ~=
1173
- e !== ji && // ^=
1174
- e !== Bi && // $=
1175
- e !== Dr && // *=
1176
- e !== ln && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), this.next(), e !== ft && (this.isDelim(ft) || this.error("Equal sign is expected"), this.next()), this.substrToCursor(t);
1177
- }
1178
- function Hi() {
1212
+ return e !== dt && // =
1213
+ e !== Wi && // ~=
1214
+ e !== Hi && // ^=
1215
+ e !== Gi && // $=
1216
+ e !== Mr && // *=
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
+ }
1219
+ function Ji() {
1179
1220
  const t = this.tokenStart;
1180
1221
  let e, n = null, r = null, i = null;
1181
- return this.eat(Ke), this.skipSC(), e = Vi.call(this), this.skipSC(), this.tokenType !== pt && (this.tokenType !== k && (n = Gi.call(this), this.skipSC(), r = this.tokenType === We ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === k && (i = this.consume(k), this.skipSC())), this.eat(pt), {
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), {
1182
1223
  type: "AttributeSelector",
1183
1224
  loc: this.getLocation(t, this.tokenStart),
1184
1225
  name: e,
@@ -1187,37 +1228,37 @@ function Hi() {
1187
1228
  flags: i
1188
1229
  };
1189
1230
  }
1190
- function Wi(t) {
1191
- this.token(O, "["), this.node(t.name), t.matcher !== null && (this.tokenize(t.matcher), this.node(t.value)), t.flags !== null && this.token(k, t.flags), this.token(O, "]");
1231
+ function Yi(t) {
1232
+ this.token($, "["), this.node(t.name), t.matcher !== null && (this.tokenize(t.matcher), this.node(t.value)), t.flags !== null && this.token(k, t.flags), this.token($, "]");
1192
1233
  }
1193
- const Ki = 46;
1194
- function Qi() {
1195
- return this.eatDelim(Ki), {
1234
+ const Xi = 46;
1235
+ function Zi() {
1236
+ return this.eatDelim(Xi), {
1196
1237
  type: "ClassSelector",
1197
1238
  loc: this.getLocation(this.tokenStart - 1, this.tokenEnd),
1198
1239
  name: this.consume(k)
1199
1240
  };
1200
1241
  }
1201
- function Yi(t) {
1202
- this.token(O, "."), this.token(k, t.name);
1242
+ function es(t) {
1243
+ this.token($, "."), this.token(k, t.name);
1203
1244
  }
1204
- const Ji = 43, hr = 47, Xi = 62, Zi = 126;
1205
- function es() {
1245
+ const ts = 43, dr = 47, ns = 62, rs = 126;
1246
+ function is() {
1206
1247
  const t = this.tokenStart;
1207
1248
  let e;
1208
1249
  switch (this.tokenType) {
1209
- case ae:
1250
+ case J:
1210
1251
  e = " ";
1211
1252
  break;
1212
- case O:
1253
+ case $:
1213
1254
  switch (this.charCodeAt(this.tokenStart)) {
1214
- case Xi:
1215
- case Ji:
1216
- case Zi:
1255
+ case ns:
1256
+ case ts:
1257
+ case rs:
1217
1258
  this.next();
1218
1259
  break;
1219
- case hr:
1220
- this.next(), this.eatIdent("deep"), this.eatDelim(hr);
1260
+ case dr:
1261
+ this.next(), this.eatIdent("deep"), this.eatDelim(dr);
1221
1262
  break;
1222
1263
  default:
1223
1264
  this.error("Combinator is expected");
@@ -1231,42 +1272,42 @@ function es() {
1231
1272
  name: e
1232
1273
  };
1233
1274
  }
1234
- function ts(t) {
1275
+ function ss(t) {
1235
1276
  this.tokenize(t.name);
1236
1277
  }
1237
- function ns() {
1278
+ function os() {
1238
1279
  return {
1239
1280
  type: "Identifier",
1240
1281
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1241
1282
  name: this.consume(k)
1242
1283
  };
1243
1284
  }
1244
- function rs(t) {
1285
+ function as(t) {
1245
1286
  this.token(k, t.name);
1246
1287
  }
1247
- function is() {
1288
+ function ls() {
1248
1289
  const t = this.tokenStart;
1249
- return this.eat(M), {
1290
+ return this.eat(F), {
1250
1291
  type: "IdSelector",
1251
1292
  loc: this.getLocation(t, this.tokenStart),
1252
1293
  name: this.substrToCursor(t + 1)
1253
1294
  };
1254
1295
  }
1255
- function ss(t) {
1256
- this.token(O, "#" + t.name);
1296
+ function cs(t) {
1297
+ this.token($, "#" + t.name);
1257
1298
  }
1258
- const os = 38;
1259
- function as() {
1299
+ const us = 38;
1300
+ function hs() {
1260
1301
  const t = this.tokenStart;
1261
- return this.eatDelim(os), {
1302
+ return this.eatDelim(us), {
1262
1303
  type: "NestingSelector",
1263
1304
  loc: this.getLocation(t, this.tokenStart)
1264
1305
  };
1265
1306
  }
1266
- function ls() {
1267
- this.token(O, "&");
1307
+ function fs() {
1308
+ this.token($, "&");
1268
1309
  }
1269
- function cs() {
1310
+ function ps() {
1270
1311
  this.skipSC();
1271
1312
  const t = this.tokenStart;
1272
1313
  let e = t, n = null, r;
@@ -1277,65 +1318,76 @@ function cs() {
1277
1318
  selector: n
1278
1319
  };
1279
1320
  }
1280
- function us(t) {
1321
+ function ds(t) {
1281
1322
  this.node(t.nth), t.selector !== null && (this.token(k, "of"), this.node(t.selector));
1282
1323
  }
1283
- function hs() {
1324
+ function ms() {
1325
+ const t = this.tokenStart;
1326
+ return this.next(), {
1327
+ type: "Operator",
1328
+ loc: this.getLocation(t, this.tokenStart),
1329
+ value: this.substrToCursor(t)
1330
+ };
1331
+ }
1332
+ function gs(t) {
1333
+ this.tokenize(t.value);
1334
+ }
1335
+ function ks() {
1284
1336
  return {
1285
1337
  type: "Percentage",
1286
1338
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1287
- value: this.consumeNumber(D)
1339
+ value: this.consumeNumber(P)
1288
1340
  };
1289
1341
  }
1290
- function fs(t) {
1291
- this.token(D, t.value + "%");
1342
+ function ys(t) {
1343
+ this.token(P, t.value + "%");
1292
1344
  }
1293
- function ps() {
1345
+ function Ss() {
1294
1346
  const t = this.tokenStart;
1295
1347
  let e = null, n, r;
1296
- return this.eat(Z), this.tokenType === N ? (n = this.consumeFunctionName(), r = n.toLowerCase(), hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1297
- this.Raw(this.tokenIndex, null, !1)
1298
- )), this.eat(F)) : n = this.consume(k), {
1348
+ return this.eat(ee), this.tokenType === N ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == O ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1349
+ this.Raw(null, !1)
1350
+ )), this.eat(O)) : n = this.consume(k), {
1299
1351
  type: "PseudoClassSelector",
1300
1352
  loc: this.getLocation(t, this.tokenStart),
1301
1353
  name: n,
1302
1354
  children: e
1303
1355
  };
1304
1356
  }
1305
- function ds(t) {
1306
- this.token(Z, ":"), t.children === null ? this.token(k, t.name) : (this.token(N, t.name + "("), this.children(t), this.token(F, ")"));
1357
+ function xs(t) {
1358
+ this.token(ee, ":"), t.children === null ? this.token(k, t.name) : (this.token(N, t.name + "("), this.children(t), this.token(O, ")"));
1307
1359
  }
1308
- function ms() {
1360
+ function Cs() {
1309
1361
  const t = this.tokenStart;
1310
1362
  let e = null, n, r;
1311
- return this.eat(Z), this.eat(Z), this.tokenType === N ? (n = this.consumeFunctionName(), r = n.toLowerCase(), hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1312
- this.Raw(this.tokenIndex, null, !1)
1313
- )), this.eat(F)) : n = this.consume(k), {
1363
+ return this.eat(ee), this.eat(ee), this.tokenType === N ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == O ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1364
+ this.Raw(null, !1)
1365
+ )), this.eat(O)) : n = this.consume(k), {
1314
1366
  type: "PseudoElementSelector",
1315
1367
  loc: this.getLocation(t, this.tokenStart),
1316
1368
  name: n,
1317
1369
  children: e
1318
1370
  };
1319
1371
  }
1320
- function gs(t) {
1321
- this.token(Z, ":"), this.token(Z, ":"), t.children === null ? this.token(k, t.name) : (this.token(N, t.name + "("), this.children(t), this.token(F, ")"));
1372
+ function bs(t) {
1373
+ this.token(ee, ":"), this.token(ee, ":"), t.children === null ? this.token(k, t.name) : (this.token(N, t.name + "("), this.children(t), this.token(O, ")"));
1322
1374
  }
1323
- function ks() {
1324
- return this.tokenIndex > 0 && this.lookupType(-1) === ae ? this.tokenIndex > 1 ? this.getTokenStart(this.tokenIndex - 1) : this.firstCharOffset : this.tokenStart;
1375
+ function ws() {
1376
+ return this.tokenIndex > 0 && this.lookupType(-1) === J ? this.tokenIndex > 1 ? this.getTokenStart(this.tokenIndex - 1) : this.firstCharOffset : this.tokenStart;
1325
1377
  }
1326
- function ys(t, e, n) {
1327
- const r = this.getTokenStart(t);
1328
- let i;
1329
- return this.skipUntilBalanced(t, e || this.consumeUntilBalanceEnd), n && this.tokenStart > r ? i = ks.call(this) : i = this.tokenStart, {
1378
+ function vs(t, e) {
1379
+ const n = this.getTokenStart(this.tokenIndex);
1380
+ let r;
1381
+ return this.skipUntilBalanced(this.tokenIndex, t || this.consumeUntilBalanceEnd), e && this.tokenStart > n ? r = ws.call(this) : r = this.tokenStart, {
1330
1382
  type: "Raw",
1331
- loc: this.getLocation(r, i),
1332
- value: this.substring(r, i)
1383
+ loc: this.getLocation(n, r),
1384
+ value: this.substring(n, r)
1333
1385
  };
1334
1386
  }
1335
- function Ss(t) {
1387
+ function As(t) {
1336
1388
  this.tokenize(t.value);
1337
1389
  }
1338
- function xs() {
1390
+ function Ls() {
1339
1391
  const t = this.readSequence(this.scope.Selector);
1340
1392
  return this.getFirstListNode(t) === null && this.error("Selector is expected"), {
1341
1393
  type: "Selector",
@@ -1343,13 +1395,13 @@ function xs() {
1343
1395
  children: t
1344
1396
  };
1345
1397
  }
1346
- function Cs(t) {
1398
+ function Es(t) {
1347
1399
  this.children(t);
1348
1400
  }
1349
- function bs() {
1401
+ function _s() {
1350
1402
  const t = this.createList();
1351
1403
  for (; !this.eof; ) {
1352
- if (t.push(this.Selector()), this.tokenType === xt) {
1404
+ if (t.push(this.Selector()), this.tokenType === Re) {
1353
1405
  this.next();
1354
1406
  continue;
1355
1407
  }
@@ -1361,23 +1413,23 @@ function bs() {
1361
1413
  children: t
1362
1414
  };
1363
1415
  }
1364
- function ws(t) {
1365
- this.children(t, () => this.token(xt, ","));
1416
+ function Ts(t) {
1417
+ this.children(t, () => this.token(Re, ","));
1366
1418
  }
1367
- const cn = 92, Pr = 34, vs = 39;
1368
- function As(t) {
1369
- const e = t.length, n = t.charCodeAt(0), r = n === Pr || n === vs ? 1 : 0, i = r === 1 && e > 1 && t.charCodeAt(e - 1) === n ? e - 2 : e - 1;
1419
+ const hn = 92, Fr = 34, Os = 39;
1420
+ function Is(t) {
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;
1370
1422
  let o = "";
1371
1423
  for (let a = r; a <= i; a++) {
1372
1424
  let f = t.charCodeAt(a);
1373
- if (f === cn) {
1425
+ if (f === hn) {
1374
1426
  if (a === i) {
1375
1427
  a !== e - 1 && (o = t.substr(a + 1));
1376
1428
  break;
1377
1429
  }
1378
- if (f = t.charCodeAt(++a), de(cn, f)) {
1379
- const c = a - 1, s = Ge(t, c);
1380
- a = s - 1, o += di(t.substring(c + 1, s));
1430
+ if (f = t.charCodeAt(++a), ke(hn, f)) {
1431
+ const c = a - 1, s = Qe(t, c);
1432
+ a = s - 1, o += gi(t.substring(c + 1, s));
1381
1433
  } else
1382
1434
  f === 13 && t.charCodeAt(a + 1) === 10 && a++;
1383
1435
  } else
@@ -1385,8 +1437,8 @@ function As(t) {
1385
1437
  }
1386
1438
  return o;
1387
1439
  }
1388
- function Ls(t, e) {
1389
- const n = '"', r = Pr;
1440
+ function $s(t, e) {
1441
+ const n = '"', r = Fr;
1390
1442
  let i = "", o = !1;
1391
1443
  for (let a = 0; a < t.length; a++) {
1392
1444
  const f = t.charCodeAt(a);
@@ -1398,101 +1450,102 @@ function Ls(t, e) {
1398
1450
  i += "\\" + f.toString(16), o = !0;
1399
1451
  continue;
1400
1452
  }
1401
- f === r || f === cn ? (i += "\\" + t.charAt(a), o = !1) : (o && (Ve(f) || Qe(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);
1402
1454
  }
1403
1455
  return n + i + n;
1404
1456
  }
1405
- function Es() {
1457
+ function Ns() {
1406
1458
  return {
1407
1459
  type: "String",
1408
1460
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1409
- value: As(this.consume(We))
1461
+ value: Is(this.consume(ze))
1410
1462
  };
1411
1463
  }
1412
- function _s(t) {
1413
- this.token(We, Ls(t.value));
1464
+ function Ds(t) {
1465
+ this.token(ze, $s(t.value));
1414
1466
  }
1415
- const Ts = 42, fr = 124;
1416
- function tn() {
1417
- this.tokenType !== k && this.isDelim(Ts) === !1 && this.error("Identifier or asterisk is expected"), this.next();
1467
+ const Ps = 42, mr = 124;
1468
+ function nn() {
1469
+ this.tokenType !== k && this.isDelim(Ps) === !1 && this.error("Identifier or asterisk is expected"), this.next();
1418
1470
  }
1419
- function Os() {
1471
+ function Ms() {
1420
1472
  const t = this.tokenStart;
1421
- return this.isDelim(fr) ? (this.next(), tn.call(this)) : (tn.call(this), this.isDelim(fr) && (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))), {
1422
1474
  type: "TypeSelector",
1423
1475
  loc: this.getLocation(t, this.tokenStart),
1424
1476
  name: this.substrToCursor(t)
1425
1477
  };
1426
1478
  }
1427
- function Is(t) {
1479
+ function Fs(t) {
1428
1480
  this.tokenize(t.name);
1429
1481
  }
1430
- const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1482
+ const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1431
1483
  __proto__: null,
1432
- AnPlusB: Ri,
1433
- AttributeSelector: Hi,
1434
- ClassSelector: Qi,
1435
- Combinator: es,
1436
- IdSelector: is,
1437
- Identifier: ns,
1438
- NestingSelector: as,
1439
- Nth: cs,
1440
- Percentage: hs,
1441
- PseudoClassSelector: ps,
1442
- PseudoElementSelector: ms,
1443
- Raw: ys,
1444
- Selector: xs,
1445
- SelectorList: bs,
1446
- String: Es,
1447
- TypeSelector: Os
1448
- }, Symbol.toStringTag, { value: "Module" })), $s = {
1484
+ AnPlusB: Ui,
1485
+ AttributeSelector: Ji,
1486
+ ClassSelector: Zi,
1487
+ Combinator: is,
1488
+ IdSelector: ls,
1489
+ Identifier: os,
1490
+ NestingSelector: hs,
1491
+ Nth: ps,
1492
+ Operator: ms,
1493
+ Percentage: ks,
1494
+ PseudoClassSelector: Ss,
1495
+ PseudoElementSelector: Cs,
1496
+ Raw: vs,
1497
+ Selector: Ls,
1498
+ SelectorList: _s,
1499
+ String: Ns,
1500
+ TypeSelector: Ms
1501
+ }, Symbol.toStringTag, { value: "Module" })), Rs = {
1449
1502
  parseContext: {
1450
1503
  default: "SelectorList",
1451
1504
  selectorList: "SelectorList",
1452
1505
  selector: "Selector"
1453
1506
  },
1454
- scope: { Selector: Mi },
1507
+ scope: { Selector: Fi },
1455
1508
  atrule: {},
1456
- pseudo: zi,
1457
- node: Ns
1458
- }, pr = Ai($s);
1459
- var mn = {}, gn = {}, dr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
1460
- gn.encode = function(t) {
1461
- if (0 <= t && t < dr.length)
1462
- return dr[t];
1509
+ pseudo: Bi,
1510
+ node: zs
1511
+ }, gr = Li(Rs);
1512
+ var yn = {}, Sn = {}, kr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
1513
+ Sn.encode = function(t) {
1514
+ if (0 <= t && t < kr.length)
1515
+ return kr[t];
1463
1516
  throw new TypeError("Must be between 0 and 63: " + t);
1464
1517
  };
1465
- gn.decode = function(t) {
1518
+ Sn.decode = function(t) {
1466
1519
  var e = 65, n = 90, r = 97, i = 122, o = 48, a = 57, f = 43, c = 47, s = 26, l = 52;
1467
1520
  return e <= t && t <= n ? t - e : r <= t && t <= i ? t - r + s : o <= t && t <= a ? t - o + l : t == f ? 62 : t == c ? 63 : -1;
1468
1521
  };
1469
- var Mr = gn, kn = 5, zr = 1 << kn, Fr = zr - 1, Rr = zr;
1470
- function Ds(t) {
1522
+ var zr = Sn, xn = 5, Rr = 1 << xn, qr = Rr - 1, Br = Rr;
1523
+ function qs(t) {
1471
1524
  return t < 0 ? (-t << 1) + 1 : (t << 1) + 0;
1472
1525
  }
1473
- function Ps(t) {
1526
+ function Bs(t) {
1474
1527
  var e = (t & 1) === 1, n = t >> 1;
1475
1528
  return e ? -n : n;
1476
1529
  }
1477
- mn.encode = function(e) {
1478
- var n = "", r, i = Ds(e);
1530
+ yn.encode = function(e) {
1531
+ var n = "", r, i = qs(e);
1479
1532
  do
1480
- r = i & Fr, i >>>= kn, i > 0 && (r |= Rr), n += Mr.encode(r);
1533
+ r = i & qr, i >>>= xn, i > 0 && (r |= Br), n += zr.encode(r);
1481
1534
  while (i > 0);
1482
1535
  return n;
1483
1536
  };
1484
- mn.decode = function(e, n, r) {
1537
+ yn.decode = function(e, n, r) {
1485
1538
  var i = e.length, o = 0, a = 0, f, c;
1486
1539
  do {
1487
1540
  if (n >= i)
1488
1541
  throw new Error("Expected more digits in base 64 VLQ value.");
1489
- if (c = Mr.decode(e.charCodeAt(n++)), c === -1)
1542
+ if (c = zr.decode(e.charCodeAt(n++)), c === -1)
1490
1543
  throw new Error("Invalid base64 digit: " + e.charAt(n - 1));
1491
- f = !!(c & Rr), c &= Fr, o = o + (c << a), a += kn;
1544
+ f = !!(c & Br), c &= qr, o = o + (c << a), a += xn;
1492
1545
  } while (f);
1493
- r.value = Ps(o), r.rest = n;
1546
+ r.value = Bs(o), r.rest = n;
1494
1547
  };
1495
- var bt = {};
1548
+ var vt = {};
1496
1549
  (function(t) {
1497
1550
  function e(u, h, g) {
1498
1551
  if (h in u)
@@ -1525,14 +1578,14 @@ var bt = {};
1525
1578
  return function(g) {
1526
1579
  for (var p = 0; p < h.length; p++)
1527
1580
  if (h[p].input === g) {
1528
- var Y = h[0];
1529
- return h[0] = h[p], h[p] = Y, h[0].result;
1581
+ var X = h[0];
1582
+ return h[0] = h[p], h[p] = X, h[0].result;
1530
1583
  }
1531
- var B = u(g);
1584
+ var j = u(g);
1532
1585
  return h.unshift({
1533
1586
  input: g,
1534
- result: B
1535
- }), h.length > a && h.pop(), B;
1587
+ result: j
1588
+ }), h.length > a && h.pop(), j;
1536
1589
  };
1537
1590
  }
1538
1591
  var c = f(function(h) {
@@ -1542,16 +1595,16 @@ var bt = {};
1542
1595
  return h;
1543
1596
  g = p.path;
1544
1597
  }
1545
- for (var Y = t.isAbsolute(g), B = [], ge = 0, z = 0; ; )
1546
- if (ge = z, z = g.indexOf("/", ge), z === -1) {
1547
- B.push(g.slice(ge));
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));
1548
1601
  break;
1549
1602
  } else
1550
- for (B.push(g.slice(ge, z)); z < g.length && g[z] === "/"; )
1603
+ for (j.push(g.slice(Se, z)); z < g.length && g[z] === "/"; )
1551
1604
  z++;
1552
- for (var ke, fe = 0, z = B.length - 1; z >= 0; z--)
1553
- ke = B[z], ke === "." ? B.splice(z, 1) : ke === ".." ? fe++ : fe > 0 && (ke === "" ? (B.splice(z + 1, fe), fe = 0) : (B.splice(z, 2), fe--));
1554
- return g = B.join("/"), g === "" && (g = Y ? "/" : "."), p ? (p.path = g, o(p)) : g;
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
+ return g = j.join("/"), g === "" && (g = X ? "/" : "."), p ? (p.path = g, o(p)) : g;
1555
1608
  });
1556
1609
  t.normalize = c;
1557
1610
  function s(u, h) {
@@ -1563,8 +1616,8 @@ var bt = {};
1563
1616
  return h;
1564
1617
  if (p && !p.host && !p.path)
1565
1618
  return p.host = h, o(p);
1566
- var Y = h.charAt(0) === "/" ? h : c(u.replace(/\/+$/, "") + "/" + h);
1567
- return p ? (p.path = Y, o(p)) : Y;
1619
+ var X = h.charAt(0) === "/" ? h : c(u.replace(/\/+$/, "") + "/" + h);
1620
+ return p ? (p.path = X, o(p)) : X;
1568
1621
  }
1569
1622
  t.join = s, t.isAbsolute = function(u) {
1570
1623
  return u.charAt(0) === "/" || n.test(u);
@@ -1584,17 +1637,17 @@ var bt = {};
1584
1637
  var u = /* @__PURE__ */ Object.create(null);
1585
1638
  return !("__proto__" in u);
1586
1639
  }();
1587
- function S(u) {
1640
+ function y(u) {
1588
1641
  return u;
1589
1642
  }
1590
- function b(u) {
1643
+ function C(u) {
1591
1644
  return q(u) ? "$" + u : u;
1592
1645
  }
1593
- t.toSetString = m ? S : b;
1594
- function K(u) {
1646
+ t.toSetString = m ? y : C;
1647
+ function _(u) {
1595
1648
  return q(u) ? u.slice(1) : u;
1596
1649
  }
1597
- t.fromSetString = m ? S : K;
1650
+ t.fromSetString = m ? y : _;
1598
1651
  function q(u) {
1599
1652
  if (!u)
1600
1653
  return !1;
@@ -1606,121 +1659,121 @@ var bt = {};
1606
1659
  return !1;
1607
1660
  return !0;
1608
1661
  }
1609
- function te(u, h, g) {
1610
- var p = Q(u.source, h.source);
1611
- 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 : Q(u.name, h.name);
1662
+ function V(u, h, g) {
1663
+ var p = Y(u.source, h.source);
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);
1612
1665
  }
1613
- t.compareByOriginalPositions = te;
1614
- function Ce(u, h, g) {
1666
+ t.compareByOriginalPositions = V;
1667
+ function de(u, h, g) {
1615
1668
  var p;
1616
- 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 : Q(u.name, h.name);
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);
1617
1670
  }
1618
- t.compareByOriginalPositionsNoSource = Ce;
1619
- function Te(u, h, g) {
1671
+ t.compareByOriginalPositionsNoSource = de;
1672
+ function Oe(u, h, g) {
1620
1673
  var p = u.generatedLine - h.generatedLine;
1621
- return p !== 0 || (p = u.generatedColumn - h.generatedColumn, p !== 0 || g) || (p = Q(u.source, h.source), p !== 0) || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0) ? p : Q(u.name, h.name);
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);
1622
1675
  }
1623
- t.compareByGeneratedPositionsDeflated = Te;
1624
- function Fe(u, h, g) {
1676
+ t.compareByGeneratedPositionsDeflated = Oe;
1677
+ function qe(u, h, g) {
1625
1678
  var p = u.generatedColumn - h.generatedColumn;
1626
- return p !== 0 || g || (p = Q(u.source, h.source), p !== 0) || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0) ? p : Q(u.name, h.name);
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);
1627
1680
  }
1628
- t.compareByGeneratedPositionsDeflatedNoLine = Fe;
1629
- function Q(u, h) {
1681
+ t.compareByGeneratedPositionsDeflatedNoLine = qe;
1682
+ function Y(u, h) {
1630
1683
  return u === h ? 0 : u === null ? 1 : h === null ? -1 : u > h ? 1 : -1;
1631
1684
  }
1632
- function Je(u, h) {
1685
+ function Ze(u, h) {
1633
1686
  var g = u.generatedLine - h.generatedLine;
1634
- return g !== 0 || (g = u.generatedColumn - h.generatedColumn, g !== 0) || (g = Q(u.source, h.source), g !== 0) || (g = u.originalLine - h.originalLine, g !== 0) || (g = u.originalColumn - h.originalColumn, g !== 0) ? g : Q(u.name, h.name);
1687
+ return g !== 0 || (g = u.generatedColumn - h.generatedColumn, g !== 0) || (g = Y(u.source, h.source), g !== 0) || (g = u.originalLine - h.originalLine, g !== 0) || (g = u.originalColumn - h.originalColumn, g !== 0) ? g : Y(u.name, h.name);
1635
1688
  }
1636
- t.compareByGeneratedPositionsInflated = Je;
1637
- function Xe(u) {
1689
+ t.compareByGeneratedPositionsInflated = Ze;
1690
+ function et(u) {
1638
1691
  return JSON.parse(u.replace(/^\)]}'[^\n]*\n/, ""));
1639
1692
  }
1640
- t.parseSourceMapInput = Xe;
1641
- function Ze(u, h, g) {
1693
+ t.parseSourceMapInput = et;
1694
+ function tt(u, h, g) {
1642
1695
  if (h = h || "", u && (u[u.length - 1] !== "/" && h[0] !== "/" && (u += "/"), h = u + h), g) {
1643
1696
  var p = i(g);
1644
1697
  if (!p)
1645
1698
  throw new Error("sourceMapURL could not be parsed");
1646
1699
  if (p.path) {
1647
- var Y = p.path.lastIndexOf("/");
1648
- Y >= 0 && (p.path = p.path.substring(0, Y + 1));
1700
+ var X = p.path.lastIndexOf("/");
1701
+ X >= 0 && (p.path = p.path.substring(0, X + 1));
1649
1702
  }
1650
1703
  h = s(o(p), h);
1651
1704
  }
1652
1705
  return c(h);
1653
1706
  }
1654
- t.computeSourceURL = Ze;
1655
- })(bt);
1656
- var qr = {}, yn = bt, Sn = Object.prototype.hasOwnProperty, Le = typeof Map < "u";
1657
- function me() {
1658
- this._array = [], this._set = Le ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
1707
+ t.computeSourceURL = tt;
1708
+ })(vt);
1709
+ var jr = {}, Cn = vt, bn = Object.prototype.hasOwnProperty, _e = typeof Map < "u";
1710
+ function ye() {
1711
+ this._array = [], this._set = _e ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
1659
1712
  }
1660
- me.fromArray = function(e, n) {
1661
- for (var r = new me(), 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++)
1662
1715
  r.add(e[i], n);
1663
1716
  return r;
1664
1717
  };
1665
- me.prototype.size = function() {
1666
- return Le ? this._set.size : Object.getOwnPropertyNames(this._set).length;
1718
+ ye.prototype.size = function() {
1719
+ return _e ? this._set.size : Object.getOwnPropertyNames(this._set).length;
1667
1720
  };
1668
- me.prototype.add = function(e, n) {
1669
- var r = Le ? e : yn.toSetString(e), i = Le ? this.has(e) : Sn.call(this._set, r), o = this._array.length;
1670
- (!i || n) && this._array.push(e), i || (Le ? this._set.set(e, o) : this._set[r] = o);
1721
+ ye.prototype.add = function(e, n) {
1722
+ var r = _e ? e : Cn.toSetString(e), i = _e ? this.has(e) : bn.call(this._set, r), o = this._array.length;
1723
+ (!i || n) && this._array.push(e), i || (_e ? this._set.set(e, o) : this._set[r] = o);
1671
1724
  };
1672
- me.prototype.has = function(e) {
1673
- if (Le)
1725
+ ye.prototype.has = function(e) {
1726
+ if (_e)
1674
1727
  return this._set.has(e);
1675
- var n = yn.toSetString(e);
1676
- return Sn.call(this._set, n);
1728
+ var n = Cn.toSetString(e);
1729
+ return bn.call(this._set, n);
1677
1730
  };
1678
- me.prototype.indexOf = function(e) {
1679
- if (Le) {
1731
+ ye.prototype.indexOf = function(e) {
1732
+ if (_e) {
1680
1733
  var n = this._set.get(e);
1681
1734
  if (n >= 0)
1682
1735
  return n;
1683
1736
  } else {
1684
- var r = yn.toSetString(e);
1685
- if (Sn.call(this._set, r))
1737
+ var r = Cn.toSetString(e);
1738
+ if (bn.call(this._set, r))
1686
1739
  return this._set[r];
1687
1740
  }
1688
1741
  throw new Error('"' + e + '" is not in the set.');
1689
1742
  };
1690
- me.prototype.at = function(e) {
1743
+ ye.prototype.at = function(e) {
1691
1744
  if (e >= 0 && e < this._array.length)
1692
1745
  return this._array[e];
1693
1746
  throw new Error("No element indexed by " + e);
1694
1747
  };
1695
- me.prototype.toArray = function() {
1748
+ ye.prototype.toArray = function() {
1696
1749
  return this._array.slice();
1697
1750
  };
1698
- qr.ArraySet = me;
1699
- var Br = {}, jr = bt;
1700
- function Ms(t, e) {
1751
+ jr.ArraySet = ye;
1752
+ var Ur = {}, Vr = vt;
1753
+ function js(t, e) {
1701
1754
  var n = t.generatedLine, r = e.generatedLine, i = t.generatedColumn, o = e.generatedColumn;
1702
- return r > n || r == n && o >= i || jr.compareByGeneratedPositionsInflated(t, e) <= 0;
1755
+ return r > n || r == n && o >= i || Vr.compareByGeneratedPositionsInflated(t, e) <= 0;
1703
1756
  }
1704
- function wt() {
1757
+ function At() {
1705
1758
  this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
1706
1759
  }
1707
- wt.prototype.unsortedForEach = function(e, n) {
1760
+ At.prototype.unsortedForEach = function(e, n) {
1708
1761
  this._array.forEach(e, n);
1709
1762
  };
1710
- wt.prototype.add = function(e) {
1711
- Ms(this._last, e) ? (this._last = e, this._array.push(e)) : (this._sorted = !1, this._array.push(e));
1763
+ At.prototype.add = function(e) {
1764
+ js(this._last, e) ? (this._last = e, this._array.push(e)) : (this._sorted = !1, this._array.push(e));
1712
1765
  };
1713
- wt.prototype.toArray = function() {
1714
- return this._sorted || (this._array.sort(jr.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
1766
+ At.prototype.toArray = function() {
1767
+ return this._sorted || (this._array.sort(Vr.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
1715
1768
  };
1716
- Br.MappingList = wt;
1717
- var Ue = mn, $ = bt, yt = qr.ArraySet, zs = Br.MappingList;
1718
- function ee(t) {
1719
- t || (t = {}), this._file = $.getArg(t, "file", null), this._sourceRoot = $.getArg(t, "sourceRoot", null), this._skipValidation = $.getArg(t, "skipValidation", !1), this._ignoreInvalidMapping = $.getArg(t, "ignoreInvalidMapping", !1), this._sources = new yt(), this._names = new yt(), this._mappings = new zs(), this._sourcesContents = null;
1720
- }
1721
- ee.prototype._version = 3;
1722
- ee.fromSourceMap = function(e, n) {
1723
- var r = e.sourceRoot, i = new ee(Object.assign(n || {}, {
1769
+ Ur.MappingList = At;
1770
+ var He = yn, D = vt, xt = jr.ArraySet, Us = Ur.MappingList;
1771
+ function ne(t) {
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
+ }
1774
+ ne.prototype._version = 3;
1775
+ ne.fromSourceMap = function(e, n) {
1776
+ var r = e.sourceRoot, i = new ne(Object.assign(n || {}, {
1724
1777
  file: e.file,
1725
1778
  sourceRoot: r
1726
1779
  }));
@@ -1731,19 +1784,19 @@ ee.fromSourceMap = function(e, n) {
1731
1784
  column: o.generatedColumn
1732
1785
  }
1733
1786
  };
1734
- o.source != null && (a.source = o.source, r != null && (a.source = $.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 = {
1735
1788
  line: o.originalLine,
1736
1789
  column: o.originalColumn
1737
1790
  }, o.name != null && (a.name = o.name)), i.addMapping(a);
1738
1791
  }), e.sources.forEach(function(o) {
1739
1792
  var a = o;
1740
- r !== null && (a = $.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);
1741
1794
  var f = e.sourceContentFor(o);
1742
1795
  f != null && i.setSourceContent(o, f);
1743
1796
  }), i;
1744
1797
  };
1745
- ee.prototype.addMapping = function(e) {
1746
- var n = $.getArg(e, "generated"), r = $.getArg(e, "original", null), i = $.getArg(e, "source", null), o = $.getArg(e, "name", null);
1798
+ ne.prototype.addMapping = function(e) {
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);
1747
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({
1748
1801
  generatedLine: n.line,
1749
1802
  generatedColumn: n.column,
@@ -1753,11 +1806,11 @@ ee.prototype.addMapping = function(e) {
1753
1806
  name: o
1754
1807
  }));
1755
1808
  };
1756
- ee.prototype.setSourceContent = function(e, n) {
1809
+ ne.prototype.setSourceContent = function(e, n) {
1757
1810
  var r = e;
1758
- this._sourceRoot != null && (r = $.relative(this._sourceRoot, r)), n != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[$.toSetString(r)] = n) : this._sourcesContents && (delete this._sourcesContents[$.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));
1759
1812
  };
1760
- ee.prototype.applySourceMap = function(e, n, r) {
1813
+ ne.prototype.applySourceMap = function(e, n, r) {
1761
1814
  var i = n;
1762
1815
  if (n == null) {
1763
1816
  if (e.file == null)
@@ -1767,15 +1820,15 @@ ee.prototype.applySourceMap = function(e, n, r) {
1767
1820
  i = e.file;
1768
1821
  }
1769
1822
  var o = this._sourceRoot;
1770
- o != null && (i = $.relative(o, i));
1771
- var a = new yt(), f = new yt();
1823
+ o != null && (i = D.relative(o, i));
1824
+ var a = new xt(), f = new xt();
1772
1825
  this._mappings.unsortedForEach(function(c) {
1773
1826
  if (c.source === i && c.originalLine != null) {
1774
1827
  var s = e.originalPositionFor({
1775
1828
  line: c.originalLine,
1776
1829
  column: c.originalColumn
1777
1830
  });
1778
- s.source != null && (c.source = s.source, r != null && (c.source = $.join(r, c.source)), o != null && (c.source = $.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));
1779
1832
  }
1780
1833
  var l = c.source;
1781
1834
  l != null && !a.has(l) && a.add(l);
@@ -1783,10 +1836,10 @@ ee.prototype.applySourceMap = function(e, n, r) {
1783
1836
  m != null && !f.has(m) && f.add(m);
1784
1837
  }, this), this._sources = a, this._names = f, e.sources.forEach(function(c) {
1785
1838
  var s = e.sourceContentFor(c);
1786
- s != null && (r != null && (c = $.join(r, c)), o != null && (c = $.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));
1787
1840
  }, this);
1788
1841
  };
1789
- ee.prototype._validateMapping = function(e, n, r, i) {
1842
+ ne.prototype._validateMapping = function(e, n, r, i) {
1790
1843
  if (n && typeof n.line != "number" && typeof n.column != "number") {
1791
1844
  var o = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
1792
1845
  if (this._ignoreInvalidMapping)
@@ -1807,30 +1860,30 @@ ee.prototype._validateMapping = function(e, n, r, i) {
1807
1860
  throw new Error(o);
1808
1861
  }
1809
1862
  };
1810
- ee.prototype._serializeMappings = function() {
1811
- for (var e = 0, n = 1, r = 0, i = 0, o = 0, a = 0, f = "", c, s, l, m, S = this._mappings.toArray(), b = 0, K = S.length; b < K; b++) {
1812
- if (s = S[b], c = "", s.generatedLine !== n)
1863
+ ne.prototype._serializeMappings = function() {
1864
+ for (var e = 0, n = 1, r = 0, i = 0, o = 0, a = 0, f = "", c, s, l, m, y = this._mappings.toArray(), C = 0, _ = y.length; C < _; C++) {
1865
+ if (s = y[C], c = "", s.generatedLine !== n)
1813
1866
  for (e = 0; s.generatedLine !== n; )
1814
1867
  c += ";", n++;
1815
- else if (b > 0) {
1816
- if (!$.compareByGeneratedPositionsInflated(s, S[b - 1]))
1868
+ else if (C > 0) {
1869
+ if (!D.compareByGeneratedPositionsInflated(s, y[C - 1]))
1817
1870
  continue;
1818
1871
  c += ",";
1819
1872
  }
1820
- c += Ue.encode(s.generatedColumn - e), e = s.generatedColumn, s.source != null && (m = this._sources.indexOf(s.source), c += Ue.encode(m - a), a = m, c += Ue.encode(s.originalLine - 1 - i), i = s.originalLine - 1, c += Ue.encode(s.originalColumn - r), r = s.originalColumn, s.name != null && (l = this._names.indexOf(s.name), c += Ue.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;
1821
1874
  }
1822
1875
  return f;
1823
1876
  };
1824
- ee.prototype._generateSourcesContent = function(e, n) {
1877
+ ne.prototype._generateSourcesContent = function(e, n) {
1825
1878
  return e.map(function(r) {
1826
1879
  if (!this._sourcesContents)
1827
1880
  return null;
1828
- n != null && (r = $.relative(n, r));
1829
- var i = $.toSetString(r);
1881
+ n != null && (r = D.relative(n, r));
1882
+ var i = D.toSetString(r);
1830
1883
  return Object.prototype.hasOwnProperty.call(this._sourcesContents, i) ? this._sourcesContents[i] : null;
1831
1884
  }, this);
1832
1885
  };
1833
- ee.prototype.toJSON = function() {
1886
+ ne.prototype.toJSON = function() {
1834
1887
  var e = {
1835
1888
  version: this._version,
1836
1889
  sources: this._sources.toArray(),
@@ -1839,13 +1892,13 @@ ee.prototype.toJSON = function() {
1839
1892
  };
1840
1893
  return this._file != null && (e.file = this._file), this._sourceRoot != null && (e.sourceRoot = this._sourceRoot), this._sourcesContents && (e.sourcesContent = this._generateSourcesContent(e.sources, e.sourceRoot)), e;
1841
1894
  };
1842
- ee.prototype.toString = function() {
1895
+ ne.prototype.toString = function() {
1843
1896
  return JSON.stringify(this.toJSON());
1844
1897
  };
1845
- var Fs = ee;
1846
- const mr = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
1847
- function Rs(t) {
1848
- const e = new Fs(), n = {
1898
+ var Vs = ne;
1899
+ const yr = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
1900
+ function Gs(t) {
1901
+ const e = new Vs(), n = {
1849
1902
  line: 1,
1850
1903
  column: 0
1851
1904
  }, r = {
@@ -1860,22 +1913,22 @@ function Rs(t) {
1860
1913
  };
1861
1914
  let a = 1, f = 0, c = !1;
1862
1915
  const s = t.node;
1863
- t.node = function(S) {
1864
- if (S.loc && S.loc.start && mr.has(S.type)) {
1865
- const b = S.loc.start.line, K = S.loc.start.column - 1;
1866
- (r.line !== b || r.column !== K) && (r.line = b, r.column = K, n.line = a, n.column = f, c && (c = !1, (n.line !== i.line || n.column !== i.column) && e.addMapping(o)), c = !0, e.addMapping({
1867
- source: S.loc.source,
1916
+ t.node = function(y) {
1917
+ if (y.loc && y.loc.start && yr.has(y.type)) {
1918
+ const C = y.loc.start.line, _ = y.loc.start.column - 1;
1919
+ (r.line !== C || r.column !== _) && (r.line = C, r.column = _, n.line = a, n.column = f, c && (c = !1, (n.line !== i.line || n.column !== i.column) && e.addMapping(o)), c = !0, e.addMapping({
1920
+ source: y.loc.source,
1868
1921
  original: r,
1869
1922
  generated: n
1870
1923
  }));
1871
1924
  }
1872
- s.call(this, S), c && mr.has(S.type) && (i.line = a, i.column = f);
1925
+ s.call(this, y), c && yr.has(y.type) && (i.line = a, i.column = f);
1873
1926
  };
1874
1927
  const l = t.emit;
1875
- t.emit = function(S, b, K) {
1876
- for (let q = 0; q < S.length; q++)
1877
- S.charCodeAt(q) === 10 ? (a++, f = 0) : f++;
1878
- l(S, b, K);
1928
+ t.emit = function(y, C, _) {
1929
+ for (let q = 0; q < y.length; q++)
1930
+ y.charCodeAt(q) === 10 ? (a++, f = 0) : f++;
1931
+ l(y, C, _);
1879
1932
  };
1880
1933
  const m = t.result;
1881
1934
  return t.result = function() {
@@ -1885,58 +1938,58 @@ function Rs(t) {
1885
1938
  };
1886
1939
  }, t;
1887
1940
  }
1888
- const qs = 43, Bs = 45, nn = (t, e) => {
1889
- if (t === O && (t = e), typeof t == "string") {
1941
+ const Hs = 43, Ws = 45, rn = (t, e) => {
1942
+ if (t === $ && (t = e), typeof t == "string") {
1890
1943
  const n = t.charCodeAt(0);
1891
1944
  return n > 127 ? 32768 : n << 8;
1892
1945
  }
1893
1946
  return t;
1894
- }, Ur = [
1947
+ }, Gr = [
1895
1948
  [k, k],
1896
1949
  [k, N],
1897
1950
  [k, ie],
1898
1951
  [k, se],
1899
1952
  [k, "-"],
1900
- [k, E],
1901
- [k, D],
1902
- [k, T],
1953
+ [k, L],
1954
+ [k, P],
1955
+ [k, I],
1903
1956
  [k, oe],
1904
- [k, _e],
1905
- [j, k],
1906
- [j, N],
1907
- [j, ie],
1908
- [j, se],
1909
- [j, "-"],
1910
- [j, E],
1911
- [j, D],
1912
- [j, T],
1913
- [j, oe],
1914
- [M, k],
1915
- [M, N],
1916
- [M, ie],
1917
- [M, se],
1918
- [M, "-"],
1919
- [M, E],
1920
- [M, D],
1921
- [M, T],
1922
- [M, oe],
1923
- [T, k],
1924
- [T, N],
1925
- [T, ie],
1926
- [T, se],
1927
- [T, "-"],
1928
- [T, E],
1929
- [T, D],
1930
- [T, T],
1931
- [T, oe],
1957
+ [k, te],
1958
+ [U, k],
1959
+ [U, N],
1960
+ [U, ie],
1961
+ [U, se],
1962
+ [U, "-"],
1963
+ [U, L],
1964
+ [U, P],
1965
+ [U, I],
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
+ [I, k],
1977
+ [I, N],
1978
+ [I, ie],
1979
+ [I, se],
1980
+ [I, "-"],
1981
+ [I, L],
1982
+ [I, P],
1983
+ [I, I],
1984
+ [I, oe],
1932
1985
  ["#", k],
1933
1986
  ["#", N],
1934
1987
  ["#", ie],
1935
1988
  ["#", se],
1936
1989
  ["#", "-"],
1937
- ["#", E],
1938
- ["#", D],
1939
- ["#", T],
1990
+ ["#", L],
1991
+ ["#", P],
1992
+ ["#", I],
1940
1993
  ["#", oe],
1941
1994
  // https://github.com/w3c/csswg-drafts/pull/6874
1942
1995
  ["-", k],
@@ -1944,20 +1997,20 @@ const qs = 43, Bs = 45, nn = (t, e) => {
1944
1997
  ["-", ie],
1945
1998
  ["-", se],
1946
1999
  ["-", "-"],
1947
- ["-", E],
1948
- ["-", D],
1949
- ["-", T],
2000
+ ["-", L],
2001
+ ["-", P],
2002
+ ["-", I],
1950
2003
  ["-", oe],
1951
2004
  // https://github.com/w3c/csswg-drafts/pull/6874
1952
- [E, k],
1953
- [E, N],
1954
- [E, ie],
1955
- [E, se],
1956
- [E, E],
1957
- [E, D],
1958
- [E, T],
1959
- [E, "%"],
1960
- [E, oe],
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],
1961
2014
  // https://github.com/w3c/csswg-drafts/pull/6874
1962
2015
  ["@", k],
1963
2016
  ["@", N],
@@ -1966,46 +2019,46 @@ const qs = 43, Bs = 45, nn = (t, e) => {
1966
2019
  ["@", "-"],
1967
2020
  ["@", oe],
1968
2021
  // https://github.com/w3c/csswg-drafts/pull/6874
1969
- [".", E],
1970
- [".", D],
1971
- [".", T],
1972
- ["+", E],
1973
- ["+", D],
1974
- ["+", T],
2022
+ [".", L],
2023
+ [".", P],
2024
+ [".", I],
2025
+ ["+", L],
2026
+ ["+", P],
2027
+ ["+", I],
1975
2028
  ["/", "*"]
1976
- ], js = Ur.concat([
1977
- [k, M],
1978
- [T, M],
1979
- [M, M],
1980
- [j, _e],
1981
- [j, We],
1982
- [j, Z],
1983
- [D, D],
1984
- [D, T],
1985
- [D, N],
1986
- [D, "-"],
1987
- [F, k],
1988
- [F, N],
1989
- [F, D],
1990
- [F, T],
1991
- [F, M],
1992
- [F, "-"]
2029
+ ], Ks = Gr.concat([
2030
+ [k, F],
2031
+ [I, F],
2032
+ [F, F],
2033
+ [U, te],
2034
+ [U, ze],
2035
+ [U, ee],
2036
+ [P, P],
2037
+ [P, I],
2038
+ [P, N],
2039
+ [P, "-"],
2040
+ [O, k],
2041
+ [O, N],
2042
+ [O, P],
2043
+ [O, I],
2044
+ [O, F],
2045
+ [O, "-"]
1993
2046
  ]);
1994
- function Vr(t) {
2047
+ function Hr(t) {
1995
2048
  const e = new Set(
1996
- t.map(([n, r]) => nn(n) << 16 | nn(r))
2049
+ t.map(([n, r]) => rn(n) << 16 | rn(r))
1997
2050
  );
1998
2051
  return function(n, r, i) {
1999
- const o = nn(r, i), a = i.charCodeAt(0);
2000
- return (a === Bs && r !== k && r !== N && r !== oe || a === qs ? e.has(n << 16 | a << 8) : e.has(n << 16 | o)) && this.emit(" ", ae, !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;
2001
2054
  };
2002
2055
  }
2003
- const Us = Vr(Ur), Gr = Vr(js), gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2056
+ const Qs = Hr(Gr), Wr = Hr(Ks), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2004
2057
  __proto__: null,
2005
- safe: Gr,
2006
- spec: Us
2007
- }, Symbol.toStringTag, { value: "Module" })), Vs = 92;
2008
- function Gs(t, e) {
2058
+ safe: Wr,
2059
+ spec: Qs
2060
+ }, Symbol.toStringTag, { value: "Module" })), Js = 92;
2061
+ function Ys(t, e) {
2009
2062
  if (typeof e == "function") {
2010
2063
  let n = null;
2011
2064
  t.children.forEach((r) => {
@@ -2015,17 +2068,15 @@ function Gs(t, e) {
2015
2068
  }
2016
2069
  t.children.forEach(this.node, this);
2017
2070
  }
2018
- function Hs(t) {
2019
- $r(t, (e, n, r) => {
2071
+ function Xs(t) {
2072
+ Pr(t, (e, n, r) => {
2020
2073
  this.token(e, t.slice(n, r));
2021
2074
  });
2022
2075
  }
2023
- function Ws(t) {
2076
+ function Zs(t) {
2024
2077
  const e = /* @__PURE__ */ new Map();
2025
- for (let n in t.node) {
2026
- const r = t.node[n];
2078
+ for (let [n, r] of Object.entries(t.node))
2027
2079
  typeof (r.generate || r) == "function" && e.set(n, r.generate || r);
2028
- }
2029
2080
  return function(n, r) {
2030
2081
  let i = "", o = 0, a = {
2031
2082
  node(c) {
@@ -2034,10 +2085,10 @@ function Ws(t) {
2034
2085
  else
2035
2086
  throw new Error("Unknown node type: " + c.type);
2036
2087
  },
2037
- tokenBefore: Gr,
2088
+ tokenBefore: Wr,
2038
2089
  token(c, s) {
2039
- o = this.tokenBefore(o, c, s), this.emit(s, c, !1), c === O && s.charCodeAt(0) === Vs && this.emit(`
2040
- `, ae, !0);
2090
+ o = this.tokenBefore(o, c, s), this.emit(s, c, !1), c === $ && s.charCodeAt(0) === Js && this.emit(`
2091
+ `, J, !0);
2041
2092
  },
2042
2093
  emit(c) {
2043
2094
  i += c;
@@ -2046,88 +2097,111 @@ function Ws(t) {
2046
2097
  return i;
2047
2098
  }
2048
2099
  };
2049
- r && (typeof r.decorator == "function" && (a = r.decorator(a)), r.sourceMap && (a = Rs(a)), r.mode in gr && (a.tokenBefore = gr[r.mode]));
2100
+ r && (typeof r.decorator == "function" && (a = r.decorator(a)), r.sourceMap && (a = Gs(a)), r.mode in Sr && (a.tokenBefore = Sr[r.mode]));
2050
2101
  const f = {
2051
2102
  node: (c) => a.node(c),
2052
- children: Gs,
2103
+ children: Ys,
2053
2104
  token: (c, s) => a.token(c, s),
2054
- tokenize: Hs
2105
+ tokenize: Xs
2055
2106
  };
2056
2107
  return a.node(n), a.result();
2057
2108
  };
2058
2109
  }
2059
- function Ks(t) {
2060
- this.token(j, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(St, ";");
2061
- }
2062
- function Qs(t) {
2063
- this.children(t);
2064
- }
2065
- function Ys(t) {
2066
- this.token(Ct, "{"), this.children(t, (e) => {
2067
- e.type === "Declaration" && this.token(St, ";");
2068
- }), this.token(fn, "}");
2069
- }
2070
- function Js(t) {
2071
- this.token(O, "["), this.children(t), this.token(O, "]");
2072
- }
2073
- function Xs() {
2074
- this.token(oe, "-->");
2075
- }
2076
- function Zs() {
2077
- this.token(Ar, "<!--");
2078
- }
2079
2110
  function eo(t) {
2080
- this.token(Ee, "/*" + t.value + "*/");
2111
+ this.token(U, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(bt, ";");
2081
2112
  }
2082
2113
  function to(t) {
2083
- this.token(k, t.property), this.token(Z, ":"), this.node(t.value), t.important && (this.token(O, "!"), this.token(k, t.important === !0 ? "important" : t.important));
2114
+ this.children(t);
2084
2115
  }
2085
2116
  function no(t) {
2086
- this.children(t, (e) => {
2087
- e.type === "Declaration" && this.token(St, ";");
2088
- });
2117
+ this.token(dn, "{"), this.children(t, (e) => {
2118
+ e.type === "Declaration" && this.token(bt, ";");
2119
+ }), this.token(mn, "}");
2089
2120
  }
2090
2121
  function ro(t) {
2091
- this.token(T, t.value + t.unit);
2122
+ this.token($, "["), this.children(t), this.token($, "]");
2092
2123
  }
2093
- function io(t) {
2094
- this.token(N, t.name + "("), this.children(t), this.token(F, ")");
2124
+ function io() {
2125
+ this.token(oe, "-->");
2095
2126
  }
2096
- function so(t) {
2097
- this.token(M, "#" + t.value);
2127
+ function so() {
2128
+ this.token(Er, "<!--");
2098
2129
  }
2099
2130
  function oo(t) {
2100
- this.token(_e, "("), this.token(k, t.name), t.value !== null && (this.token(Z, ":"), this.node(t.value)), this.token(F, ")");
2131
+ this.token(he, "/*" + t.value + "*/");
2101
2132
  }
2102
2133
  function ao(t) {
2103
- this.children(t);
2134
+ t.children.forEach((e) => {
2135
+ e.type === "Condition" ? (this.token(te, "("), this.node(e), this.token(O, ")")) : this.node(e);
2136
+ });
2104
2137
  }
2105
2138
  function lo(t) {
2106
- this.children(t, () => this.token(xt, ","));
2139
+ this.token(k, t.property), this.token(ee, ":"), this.node(t.value), t.important && (this.token($, "!"), this.token(k, t.important === !0 ? "important" : t.important));
2107
2140
  }
2108
2141
  function co(t) {
2109
- this.token(E, t.value);
2142
+ this.children(t, (e) => {
2143
+ e.type === "Declaration" && this.token(bt, ";");
2144
+ });
2110
2145
  }
2111
2146
  function uo(t) {
2112
- this.tokenize(t.value);
2147
+ this.token(I, t.value + t.unit);
2113
2148
  }
2114
2149
  function ho(t) {
2115
- this.token(_e, "("), this.children(t), this.token(F, ")");
2150
+ this.token(te, "("), this.token(k, t.name), t.value !== null && (this.token(ee, ":"), this.node(t.value)), this.token(O, ")");
2116
2151
  }
2117
2152
  function fo(t) {
2118
- this.token(E, t.left), this.token(O, "/"), this.token(E, t.right);
2153
+ this.token(N, t.feature + "("), this.node(t.value), this.token(O, ")");
2119
2154
  }
2120
2155
  function po(t) {
2121
- this.node(t.prelude), this.node(t.block);
2156
+ this.token(te, "("), this.node(t.left), this.tokenize(t.leftComparison), this.node(t.middle), t.right && (this.tokenize(t.rightComparison), this.node(t.right)), this.token(O, ")");
2122
2157
  }
2123
2158
  function mo(t) {
2124
- this.children(t);
2159
+ this.token(N, t.name + "("), this.children(t), this.token(O, ")");
2125
2160
  }
2126
2161
  function go(t) {
2127
- this.tokenize(t.value);
2162
+ t.function ? this.token(N, t.function + "(") : this.token(te, "("), this.children(t), this.token(O, ")");
2163
+ }
2164
+ function ko(t) {
2165
+ this.token(F, "#" + t.value);
2166
+ }
2167
+ function yo(t) {
2168
+ this.tokenize(t.name);
2169
+ }
2170
+ function So(t) {
2171
+ this.children(t, () => this.token(Re, ","));
2172
+ }
2173
+ function xo(t) {
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
+ }
2176
+ function Co(t) {
2177
+ this.children(t, () => this.token(Re, ","));
2178
+ }
2179
+ function bo(t) {
2180
+ this.token(L, t.value);
2128
2181
  }
2129
- const ko = 32, yo = 92, So = 34, xo = 39, Co = 40, bo = 41;
2130
2182
  function wo(t) {
2183
+ this.token(te, "("), this.children(t), this.token(O, ")");
2184
+ }
2185
+ function vo(t) {
2186
+ this.node(t.left), this.token($, "/"), t.right ? this.node(t.right) : this.node(L, 1);
2187
+ }
2188
+ function Ao(t) {
2189
+ this.node(t.prelude), this.node(t.block);
2190
+ }
2191
+ function Lo(t) {
2192
+ t.root && (this.token(te, "("), this.node(t.root), this.token(O, ")")), t.limit && (this.token(k, "to"), this.token(te, "("), this.node(t.limit), this.token(O, ")"));
2193
+ }
2194
+ function Eo(t) {
2195
+ this.children(t);
2196
+ }
2197
+ function _o(t) {
2198
+ this.token(te, "("), this.node(t.declaration), this.token(O, ")");
2199
+ }
2200
+ function To(t) {
2201
+ this.tokenize(t.value);
2202
+ }
2203
+ const Oo = 32, Io = 92, $o = 34, No = 39, Do = 40, Po = 41;
2204
+ function Mo(t) {
2131
2205
  let e = "", n = !1;
2132
2206
  for (let r = 0; r < t.length; r++) {
2133
2207
  const i = t.charCodeAt(r);
@@ -2139,69 +2213,82 @@ function wo(t) {
2139
2213
  e += "\\" + i.toString(16), n = !0;
2140
2214
  continue;
2141
2215
  }
2142
- i === ko || i === yo || i === So || i === xo || i === Co || i === bo ? (e += "\\" + t.charAt(r), n = !1) : (n && Ve(i) && (e += " "), e += t.charAt(r), n = !1);
2216
+ i === Oo || i === Io || i === $o || i === No || i === Do || i === Po ? (e += "\\" + t.charAt(r), n = !1) : (n && Ke(i) && (e += " "), e += t.charAt(r), n = !1);
2143
2217
  }
2144
2218
  return "url(" + e + ")";
2145
2219
  }
2146
- function vo(t) {
2147
- this.token(ie, wo(t.value));
2220
+ function Fo(t) {
2221
+ this.token(ie, Mo(t.value));
2148
2222
  }
2149
- function Ao(t) {
2223
+ function zo(t) {
2150
2224
  this.children(t);
2151
2225
  }
2152
- function Lo(t) {
2153
- this.token(ae, t.value);
2226
+ function Ro(t) {
2227
+ this.token(J, t.value);
2154
2228
  }
2155
- const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2229
+ const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2156
2230
  __proto__: null,
2157
- AnPlusB: qi,
2158
- Atrule: Ks,
2159
- AtrulePrelude: Qs,
2160
- AttributeSelector: Wi,
2161
- Block: Ys,
2162
- Brackets: Js,
2163
- CDC: Xs,
2164
- CDO: Zs,
2165
- ClassSelector: Yi,
2166
- Combinator: ts,
2167
- Comment: eo,
2168
- Declaration: to,
2169
- DeclarationList: no,
2170
- Dimension: ro,
2171
- Function: io,
2172
- Hash: so,
2173
- IdSelector: ss,
2174
- Identifier: rs,
2175
- MediaFeature: oo,
2176
- MediaQuery: ao,
2177
- MediaQueryList: lo,
2178
- NestingSelector: ls,
2179
- Nth: us,
2180
- Number: co,
2181
- Operator: uo,
2182
- Parentheses: ho,
2183
- Percentage: fs,
2184
- PseudoClassSelector: ds,
2185
- PseudoElementSelector: gs,
2186
- Ratio: fo,
2187
- Raw: Ss,
2188
- Rule: po,
2189
- Selector: Cs,
2190
- SelectorList: ws,
2191
- String: _s,
2192
- StyleSheet: mo,
2193
- TypeSelector: Is,
2194
- UnicodeRange: go,
2195
- Url: vo,
2196
- Value: Ao,
2197
- WhiteSpace: Lo
2198
- }, Symbol.toStringTag, { value: "Module" })), _o = {
2199
- node: Eo
2200
- }, To = Ws(_o), Ye = (t, e) => t.a === e.a ? t.b === e.b ? t.c - e.c : t.b - e.b : t.a - e.a, kr = (t, e) => Ye(t, e) === 0, yr = (t, e) => Ye(t, e) > 0, Sr = (t, e) => Ye(t, e) < 0, Hr = (t, e = "ASC") => {
2201
- const n = t.sort(Ye);
2231
+ AnPlusB: Vi,
2232
+ Atrule: eo,
2233
+ AtrulePrelude: to,
2234
+ AttributeSelector: Yi,
2235
+ Block: no,
2236
+ Brackets: ro,
2237
+ CDC: io,
2238
+ CDO: so,
2239
+ ClassSelector: es,
2240
+ Combinator: ss,
2241
+ Comment: oo,
2242
+ Condition: ao,
2243
+ Declaration: lo,
2244
+ DeclarationList: co,
2245
+ Dimension: uo,
2246
+ Feature: ho,
2247
+ FeatureFunction: fo,
2248
+ FeatureRange: po,
2249
+ Function: mo,
2250
+ GeneralEnclosed: go,
2251
+ Hash: ko,
2252
+ IdSelector: cs,
2253
+ Identifier: as,
2254
+ Layer: yo,
2255
+ LayerList: So,
2256
+ MediaQuery: xo,
2257
+ MediaQueryList: Co,
2258
+ NestingSelector: fs,
2259
+ Nth: ds,
2260
+ Number: bo,
2261
+ Operator: gs,
2262
+ Parentheses: wo,
2263
+ Percentage: ys,
2264
+ PseudoClassSelector: xs,
2265
+ PseudoElementSelector: bs,
2266
+ Ratio: vo,
2267
+ Raw: As,
2268
+ Rule: Ao,
2269
+ Scope: Lo,
2270
+ Selector: Es,
2271
+ SelectorList: Ts,
2272
+ String: Ds,
2273
+ StyleSheet: Eo,
2274
+ SupportsDeclaration: _o,
2275
+ TypeSelector: Fs,
2276
+ UnicodeRange: To,
2277
+ Url: Fo,
2278
+ Value: zo,
2279
+ WhiteSpace: Ro
2280
+ }, Symbol.toStringTag, { value: "Module" })), Bo = {
2281
+ node: qo
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
+ const n = t.sort(Xe);
2202
2284
  return e === "DESC" ? n.reverse() : n;
2203
- }, Wr = (...t) => Hr(t, "ASC"), Kr = (...t) => Hr(t, "DESC"), un = (...t) => Kr(...t)[0], Oo = (...t) => Wr(...t)[0];
2204
- class Io {
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
+ constructor() {
2288
+ super("Manipulating a Specificity instance is not allowed. Instead, create a new Specificity()");
2289
+ }
2290
+ }
2291
+ class Vo {
2205
2292
  constructor(e, n = null) {
2206
2293
  this.value = e, this.selector = n;
2207
2294
  }
@@ -2209,22 +2296,22 @@ class Io {
2209
2296
  return this.value.a;
2210
2297
  }
2211
2298
  set a(e) {
2212
- throw new Error("Manipulating the port of the specificity directly is not allowed. Instead, directly set a new value");
2299
+ throw new sn();
2213
2300
  }
2214
2301
  get b() {
2215
2302
  return this.value.b;
2216
2303
  }
2217
2304
  set b(e) {
2218
- throw new Error("Manipulating the port of the specificity directly is not allowed. Instead, directly set a new value");
2305
+ throw new sn();
2219
2306
  }
2220
2307
  get c() {
2221
2308
  return this.value.c;
2222
2309
  }
2223
2310
  set c(e) {
2224
- throw new Error("Manipulating the port of the specificity directly is not allowed. Instead, directly set a new value");
2311
+ throw new sn();
2225
2312
  }
2226
2313
  selectorString() {
2227
- return typeof this.selector == "string" || this.selector instanceof String ? this.selector : this.selector instanceof Object && this.selector.type === "Selector" ? To(this.selector) : "";
2314
+ return typeof this.selector == "string" || this.selector instanceof String ? this.selector : this.selector instanceof Object && this.selector.type === "Selector" ? jo(this.selector) : "";
2228
2315
  }
2229
2316
  toObject() {
2230
2317
  return this.value;
@@ -2244,145 +2331,148 @@ class Io {
2244
2331
  };
2245
2332
  }
2246
2333
  isEqualTo(e) {
2247
- return kr(this, e);
2334
+ return xr(this, e);
2248
2335
  }
2249
2336
  isGreaterThan(e) {
2250
- return yr(this, e);
2337
+ return Cr(this, e);
2251
2338
  }
2252
2339
  isLessThan(e) {
2253
- return Sr(this, e);
2340
+ return br(this, e);
2254
2341
  }
2255
2342
  static calculate(e) {
2256
- return Pe(e);
2343
+ return We(e);
2344
+ }
2345
+ static calculateForAST(e) {
2346
+ return Ct(e);
2257
2347
  }
2258
2348
  static compare(e, n) {
2259
- return Ye(e, n);
2349
+ return Xe(e, n);
2260
2350
  }
2261
2351
  static equals(e, n) {
2262
- return kr(e, n);
2352
+ return xr(e, n);
2263
2353
  }
2264
2354
  static lessThan(e, n) {
2265
- return Sr(e, n);
2355
+ return br(e, n);
2266
2356
  }
2267
2357
  static greaterThan(e, n) {
2268
- return yr(e, n);
2358
+ return Cr(e, n);
2269
2359
  }
2270
2360
  static min(...e) {
2271
- return Oo(...e);
2361
+ return Uo(...e);
2272
2362
  }
2273
2363
  static max(...e) {
2274
- return un(...e);
2364
+ return fn(...e);
2275
2365
  }
2276
2366
  static sortAsc(...e) {
2277
- return Wr(...e);
2367
+ return Qr(...e);
2278
2368
  }
2279
2369
  static sortDesc(...e) {
2280
- return Kr(...e);
2370
+ return Jr(...e);
2281
2371
  }
2282
2372
  }
2283
- const xr = (t) => {
2284
- const e = {
2285
- a: 0,
2286
- b: 0,
2287
- c: 0
2288
- };
2289
- return t.children.forEach((n) => {
2290
- switch (n.type) {
2373
+ const Ct = (t) => {
2374
+ if (!t || t.type !== "Selector")
2375
+ throw new TypeError("Passed in source is not a Selector AST");
2376
+ let e = 0, n = 0, r = 0;
2377
+ return t.children.forEach((i) => {
2378
+ switch (i.type) {
2291
2379
  case "IdSelector":
2292
- e.a += 1;
2380
+ e += 1;
2293
2381
  break;
2294
2382
  case "AttributeSelector":
2295
2383
  case "ClassSelector":
2296
- e.b += 1;
2384
+ n += 1;
2297
2385
  break;
2298
2386
  case "PseudoClassSelector":
2299
- switch (n.name.toLowerCase()) {
2387
+ switch (i.name.toLowerCase()) {
2300
2388
  case "where":
2301
2389
  break;
2302
- case "is":
2303
- case "matches":
2304
2390
  case "-webkit-any":
2305
- case "-moz-any":
2306
2391
  case "any":
2392
+ i.children && (n += 1);
2393
+ break;
2394
+ case "-moz-any":
2395
+ case "is":
2396
+ case "matches":
2307
2397
  case "not":
2308
2398
  case "has":
2309
- if (n.children) {
2310
- const i = un(...Pe(n.children.first));
2311
- e.a += i.a, e.b += i.b, e.c += i.c;
2399
+ if (i.children) {
2400
+ const a = fn(...We(i.children.first));
2401
+ e += a.a, n += a.b, r += a.c;
2312
2402
  }
2313
2403
  break;
2314
2404
  case "nth-child":
2315
2405
  case "nth-last-child":
2316
- if (e.b += 1, n.children.first.selector) {
2317
- const i = un(...Pe(n.children.first.selector));
2318
- e.a += i.a, e.b += i.b, e.c += i.c;
2406
+ if (n += 1, i.children && i.children.first.selector) {
2407
+ const a = fn(...We(i.children.first.selector));
2408
+ e += a.a, n += a.b, r += a.c;
2319
2409
  }
2320
2410
  break;
2321
2411
  case "host-context":
2322
2412
  case "host":
2323
- if (e.b += 1, n.children) {
2324
- const i = { type: "Selector", children: [] };
2325
- let o = !1;
2326
- n.children.first.children.forEach((f) => {
2327
- if (o) return !1;
2328
- if (f.type === "Combinator")
2329
- return o = !0, !1;
2330
- i.children.push(f);
2413
+ if (n += 1, i.children) {
2414
+ const a = { type: "Selector", children: [] };
2415
+ let f = !1;
2416
+ i.children.first.children.forEach((s) => {
2417
+ if (f) return !1;
2418
+ if (s.type === "Combinator")
2419
+ return f = !0, !1;
2420
+ a.children.push(s);
2331
2421
  });
2332
- const a = Pe(i)[0];
2333
- e.a += a.a, e.b += a.b, e.c += a.c;
2422
+ const c = We(a)[0];
2423
+ e += c.a, n += c.b, r += c.c;
2334
2424
  }
2335
2425
  break;
2336
2426
  case "after":
2337
2427
  case "before":
2338
2428
  case "first-letter":
2339
2429
  case "first-line":
2340
- e.c += 1;
2430
+ r += 1;
2341
2431
  break;
2342
2432
  default:
2343
- e.b += 1;
2433
+ n += 1;
2344
2434
  break;
2345
2435
  }
2346
2436
  break;
2347
2437
  case "PseudoElementSelector":
2348
- switch (n.name) {
2438
+ switch (i.name) {
2349
2439
  case "slotted":
2350
- if (e.c += 1, n.children) {
2351
- const i = { type: "Selector", children: [] };
2352
- let o = !1;
2353
- n.children.first.children.forEach((f) => {
2354
- if (o) return !1;
2355
- if (f.type === "Combinator")
2356
- return o = !0, !1;
2357
- i.children.push(f);
2440
+ if (r += 1, i.children) {
2441
+ const a = { type: "Selector", children: [] };
2442
+ let f = !1;
2443
+ i.children.first.children.forEach((s) => {
2444
+ if (f) return !1;
2445
+ if (s.type === "Combinator")
2446
+ return f = !0, !1;
2447
+ a.children.push(s);
2358
2448
  });
2359
- const a = Pe(i)[0];
2360
- e.a += a.a, e.b += a.b, e.c += a.c;
2449
+ const c = We(a)[0];
2450
+ e += c.a, n += c.b, r += c.c;
2361
2451
  }
2362
2452
  break;
2363
2453
  case "view-transition-group":
2364
2454
  case "view-transition-image-pair":
2365
2455
  case "view-transition-old":
2366
2456
  case "view-transition-new":
2367
- if (n.children && n.children.first.value === "*")
2457
+ if (i.children && i.children.first.value === "*")
2368
2458
  break;
2369
- e.c += 1;
2459
+ r += 1;
2370
2460
  break;
2371
2461
  default:
2372
- e.c += 1;
2462
+ r += 1;
2373
2463
  break;
2374
2464
  }
2375
2465
  break;
2376
2466
  case "TypeSelector":
2377
- let r = n.name;
2378
- r.includes("|") && (r = r.split("|")[1]), r !== "*" && (e.c += 1);
2467
+ let o = i.name;
2468
+ o.includes("|") && (o = o.split("|")[1]), o !== "*" && (r += 1);
2379
2469
  break;
2380
2470
  }
2381
- }), new Io(e, t);
2382
- }, No = (t) => {
2471
+ }), new Vo({ a: e, b: n, c: r }, t);
2472
+ }, Go = (t) => {
2383
2473
  if (typeof t == "string" || t instanceof String)
2384
2474
  try {
2385
- return pr(t, {
2475
+ return gr(t, {
2386
2476
  context: "selectorList"
2387
2477
  });
2388
2478
  } catch (e) {
@@ -2393,7 +2483,7 @@ const xr = (t) => {
2393
2483
  return t;
2394
2484
  if (t.type && t.type === "Raw")
2395
2485
  try {
2396
- return pr(t.value, {
2486
+ return gr(t.value, {
2397
2487
  context: "selectorList"
2398
2488
  });
2399
2489
  } catch (e) {
@@ -2402,91 +2492,88 @@ const xr = (t) => {
2402
2492
  throw new TypeError("Passed in source is an Object but no AST / AST of the type Selector or SelectorList");
2403
2493
  }
2404
2494
  throw new TypeError("Passed in source is not a String nor an Object. I don't know what to do with it.");
2405
- }, Pe = (t) => {
2495
+ }, We = (t) => {
2406
2496
  if (!t)
2407
2497
  return [];
2408
- const e = No(t);
2498
+ const e = Go(t);
2409
2499
  if (e.type === "Selector")
2410
- return [xr(t)];
2500
+ return [Ct(t)];
2411
2501
  if (e.type === "SelectorList") {
2412
2502
  const n = [];
2413
2503
  return e.children.forEach((r) => {
2414
- const i = xr(r);
2504
+ const i = Ct(r);
2415
2505
  n.push(i);
2416
2506
  }), n;
2417
2507
  }
2418
2508
  };
2419
- function xn(t, e) {
2509
+ function wn(t, e) {
2420
2510
  return e >= 65 && e <= 90 && (e = e | 32), t === e;
2421
2511
  }
2422
- function G(t, e) {
2512
+ function W(t, e) {
2423
2513
  if (t === e) return !0;
2424
2514
  let n = t.length;
2425
2515
  if (n !== e.length) return !1;
2426
2516
  for (let r = 0; r < n; r++)
2427
- if (xn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2517
+ if (wn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2428
2518
  return !1;
2429
2519
  return !0;
2430
2520
  }
2431
- function pe(t, e) {
2521
+ function ge(t, e) {
2432
2522
  if (t === e) return !0;
2433
2523
  let n = e.length, r = n - t.length;
2434
2524
  if (r < 0)
2435
2525
  return !1;
2436
2526
  for (let i = n - 1; i >= r; i--)
2437
- if (xn(t.charCodeAt(i - r), e.charCodeAt(i)) === !1)
2527
+ if (wn(t.charCodeAt(i - r), e.charCodeAt(i)) === !1)
2438
2528
  return !1;
2439
2529
  return !0;
2440
2530
  }
2441
- function Cn(t, e) {
2531
+ function vn(t, e) {
2442
2532
  if (t === e) return !0;
2443
2533
  let n = t.length;
2444
2534
  if (e.length < n) return !1;
2445
2535
  for (let r = 0; r < n; r++)
2446
- if (xn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2536
+ if (wn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2447
2537
  return !1;
2448
2538
  return !0;
2449
2539
  }
2450
- const $o = "Atrule", Do = "MediaQuery", Po = "MediaFeature", Mo = "Rule", bn = "Selector", Qr = "TypeSelector", He = "PseudoClassSelector", Yr = "AttributeSelector", Jr = "PseudoElementSelector", hn = "Declaration", zo = "Value", he = "Identifier", Fo = "Nth", Ro = "Combinator", qo = "Number", Xr = "Dimension", ze = "Operator", Bo = "Hash", jo = "Url", wn = "Function";
2451
- function Cr(t, e, n) {
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
+ function wr(t, e, n) {
2452
2542
  let r = t.value.children.first;
2453
- return G(e, t.property) && r.type === he && G(n, r.name);
2543
+ return W(e, t.property) && r.type === pe && W(n, r.name);
2454
2544
  }
2455
- function Uo(t) {
2545
+ function na(t) {
2456
2546
  let e = !1;
2457
- return ue(t, function(n) {
2458
- if (n.type === hn && (Cr(n, "-webkit-appearance", "none") || Cr(n, "-moz-appearance", "meterbar")))
2547
+ return fe(t, function(n) {
2548
+ if (n.type === pn && (wr(n, "-webkit-appearance", "none") || wr(n, "-moz-appearance", "meterbar")))
2459
2549
  return e = !0, this.break;
2460
2550
  }), e;
2461
2551
  }
2462
- function Vo(t) {
2552
+ function ra(t) {
2463
2553
  let e = !1;
2464
- return ue(t, function(n) {
2554
+ return fe(t, function(n) {
2465
2555
  let r = n.children, i = n.name, o = n.value;
2466
- if (n.type === Do && r.size === 1 && r.first.type === he) {
2556
+ if (n.type === Wo && r.size === 1 && r.first.type === pe) {
2467
2557
  let a = r.first.name;
2468
- if (Cn("\\0", a) || pe("\\9 ", a))
2558
+ if (vn("\\0", a) || ge("\\9 ", a))
2469
2559
  return e = !0, this.break;
2470
- } else if (n.type === Po) {
2471
- if (o !== null && o.unit === "\\0")
2560
+ } else if (n.type === Ko) {
2561
+ if (o && o.unit && o.unit === "\\0")
2472
2562
  return e = !0, this.break;
2473
- if (G("-moz-images-in-menus", i) || G("min--moz-device-pixel-ratio", i) || G("-ms-high-contrast", i))
2563
+ if (W("-moz-images-in-menus", i) || W("min--moz-device-pixel-ratio", i) || W("-ms-high-contrast", i))
2474
2564
  return e = !0, this.break;
2475
- if (G("min-resolution", i) && G(".001", o.value) && G("dpcm", o.unit))
2565
+ if (W("min-resolution", i) && o && W(".001", o.value) && W("dpcm", o.unit))
2566
+ return e = !0, this.break;
2567
+ if (W("-webkit-min-device-pixel-ratio", i) && o && o.value && (W("0", o.value) || W("10000", o.value)))
2476
2568
  return e = !0, this.break;
2477
- if (G("-webkit-min-device-pixel-ratio", i)) {
2478
- let a = o.value;
2479
- if (G("0", a) || G("10000", a))
2480
- return e = !0, this.break;
2481
- }
2482
2569
  }
2483
2570
  }), e;
2484
2571
  }
2485
- const br = 45;
2486
- function xe(t) {
2487
- return t.charCodeAt(0) === br && t.charCodeAt(1) !== br && t.indexOf("-", 2) !== -1;
2572
+ const vr = 45;
2573
+ function we(t) {
2574
+ return t.charCodeAt(0) === vr && t.charCodeAt(1) !== vr && t.indexOf("-", 2) !== -1;
2488
2575
  }
2489
- class le {
2576
+ class ae {
2490
2577
  /** @param {string[]} items */
2491
2578
  constructor(e) {
2492
2579
  this.set = new Set(e);
@@ -2496,16 +2583,16 @@ class le {
2496
2583
  return this.set.has(e.toLowerCase());
2497
2584
  }
2498
2585
  }
2499
- function Zr(t, e) {
2586
+ function ti(t, e) {
2500
2587
  let n = [];
2501
- return ue(t, {
2502
- visit: bn,
2588
+ return fe(t, {
2589
+ visit: An,
2503
2590
  enter: function(r) {
2504
2591
  n.push(e(r));
2505
2592
  }
2506
2593
  }), n;
2507
2594
  }
2508
- const ei = new le([
2595
+ const ni = new ae([
2509
2596
  "nth-child",
2510
2597
  "where",
2511
2598
  "not",
@@ -2516,15 +2603,15 @@ const ei = new le([
2516
2603
  "-webkit-any",
2517
2604
  "-moz-any"
2518
2605
  ]);
2519
- function ti(t) {
2606
+ function ri(t) {
2520
2607
  let e = !1;
2521
- return ue(t, function(n) {
2522
- if (n.type === Yr) {
2608
+ return fe(t, function(n) {
2609
+ if (n.type === Xr) {
2523
2610
  let r = n.name.name;
2524
- if (G("role", r) || Cn("aria-", r))
2611
+ if (W("role", r) || vn("aria-", r))
2525
2612
  return e = !0, this.break;
2526
- } else if (n.type === He && ei.has(n.name)) {
2527
- let r = Zr(n, ti);
2613
+ } else if (n.type === Je && ni.has(n.name)) {
2614
+ let r = ti(n, ri);
2528
2615
  for (let i of r)
2529
2616
  if (i === !0) {
2530
2617
  e = !0;
@@ -2534,29 +2621,29 @@ function ti(t) {
2534
2621
  }
2535
2622
  }), e;
2536
2623
  }
2537
- function Go(t) {
2624
+ function ia(t) {
2538
2625
  let e = !1;
2539
- return ue(t, function(n) {
2626
+ return fe(t, function(n) {
2540
2627
  let r = n.type;
2541
- if ((r === Jr || r === Qr || r === He) && xe(n.name))
2628
+ if ((r === Zr || r === Yr || r === Je) && we(n.name))
2542
2629
  return e = !0, this.break;
2543
2630
  }), e;
2544
2631
  }
2545
- function Ho(t) {
2632
+ function sa(t) {
2546
2633
  let e = [];
2547
- return ue(t, function(n) {
2548
- n.type === He && e.push(n.name);
2634
+ return fe(t, function(n) {
2635
+ n.type === Je && e.push(n.name);
2549
2636
  }), e.length === 0 ? !1 : e;
2550
2637
  }
2551
- function ni(t) {
2638
+ function ii(t) {
2552
2639
  let e = 0;
2553
- return ue(t, function(n) {
2640
+ return fe(t, function(n) {
2554
2641
  let r = n.type;
2555
- if (!(r === bn || r === Fo)) {
2556
- if (e++, (r === Jr || r === Qr || r === He) && xe(n.name) && e++, r === Yr)
2642
+ if (!(r === An || r === Yo)) {
2643
+ if (e++, (r === Zr || r === Yr || r === Je) && we(n.name) && e++, r === Xr)
2557
2644
  return n.value && e++, this.skip;
2558
- if (r === He && ei.has(n.name)) {
2559
- let i = Zr(n, ni);
2645
+ if (r === Je && ni.has(n.name)) {
2646
+ let i = ti(n, ii);
2560
2647
  if (i.length === 0) return;
2561
2648
  for (let o of i)
2562
2649
  e += o;
@@ -2565,9 +2652,9 @@ function ni(t) {
2565
2652
  }
2566
2653
  }), e;
2567
2654
  }
2568
- function Wo(t, e) {
2569
- ue(t, function(n, r) {
2570
- if (n.type === Ro) {
2655
+ function oa(t, e) {
2656
+ fe(t, function(n, r) {
2657
+ if (n.type === Xo) {
2571
2658
  let i = n.loc, o = n.name;
2572
2659
  if (i === null) {
2573
2660
  let a = r.prev.data.loc.end, f = {
@@ -2594,7 +2681,7 @@ function Wo(t, e) {
2594
2681
  }
2595
2682
  });
2596
2683
  }
2597
- const Ko = new le([
2684
+ const aa = new ae([
2598
2685
  // CSS Named Colors
2599
2686
  // Spec: https://drafts.csswg.org/css-color/#named-colors
2600
2687
  // Heuristic: popular names first for quick finding in set.has()
@@ -2747,7 +2834,7 @@ const Ko = new le([
2747
2834
  "mediumorchid",
2748
2835
  "darksalmon",
2749
2836
  "mediumspringgreen"
2750
- ]), Qo = new le([
2837
+ ]), la = new ae([
2751
2838
  // CSS System Colors
2752
2839
  // Spec: https://drafts.csswg.org/css-color/#css-system-colors
2753
2840
  "accentcolor",
@@ -2769,7 +2856,7 @@ const Ko = new le([
2769
2856
  "selecteditem",
2770
2857
  "selecteditemtext",
2771
2858
  "visitedtext"
2772
- ]), Yo = new le([
2859
+ ]), ca = new ae([
2773
2860
  "rgba",
2774
2861
  "rgb",
2775
2862
  "hsla",
@@ -2780,10 +2867,10 @@ const Ko = new le([
2780
2867
  "lch",
2781
2868
  "lab",
2782
2869
  "oklab"
2783
- ]), Jo = new le([
2870
+ ]), ua = new ae([
2784
2871
  "transparent",
2785
2872
  "currentcolor"
2786
- ]), vt = new le([
2873
+ ]), Lt = new ae([
2787
2874
  "auto",
2788
2875
  "none",
2789
2876
  // for `text-shadow`, `box-shadow` and `background`
@@ -2793,20 +2880,20 @@ const Ko = new le([
2793
2880
  "revert",
2794
2881
  "revert-layer"
2795
2882
  ]);
2796
- function lt(t) {
2883
+ function ut(t) {
2797
2884
  let e = t.children, n = e.size;
2798
2885
  if (!e || n > 1 || n === 0) return !1;
2799
2886
  let r = e.first;
2800
- return r.type === he && vt.has(r.name);
2887
+ return r.type === pe && Lt.has(r.name);
2801
2888
  }
2802
- const Xo = new le([
2889
+ const ha = new ae([
2803
2890
  "caption",
2804
2891
  "icon",
2805
2892
  "menu",
2806
2893
  "message-box",
2807
2894
  "small-caption",
2808
2895
  "status-bar"
2809
- ]), Zo = new le([
2896
+ ]), fa = new ae([
2810
2897
  /* <absolute-size> values */
2811
2898
  "xx-small",
2812
2899
  "x-small",
@@ -2819,38 +2906,38 @@ const Xo = new le([
2819
2906
  /* <relative-size> values */
2820
2907
  "smaller",
2821
2908
  "larger"
2822
- ]), ea = 44, wr = 47;
2823
- function rn(t) {
2909
+ ]), pa = 44, Ar = 47;
2910
+ function on(t) {
2824
2911
  let e = t.children.first;
2825
- return e === null ? !1 : e.type === he && Xo.has(e.name);
2912
+ return e === null ? !1 : e.type === pe && ha.has(e.name);
2826
2913
  }
2827
- function ta(t, e, n) {
2914
+ function da(t, e, n) {
2828
2915
  let r = Array.from({ length: 2 }), i, o;
2829
2916
  t.children.forEach(function(f, c) {
2830
2917
  let s = c.prev ? c.prev.data : void 0, l = c.next ? c.next.data : void 0;
2831
- if (f.type === he && vt.has(f.name) && n({
2918
+ if (f.type === pe && Lt.has(f.name) && n({
2832
2919
  type: "keyword",
2833
2920
  value: f.name
2834
- }), l && l.type === ze && l.value.charCodeAt(0) === wr) {
2921
+ }), l && l.type === Fe && l.value.charCodeAt(0) === Ar) {
2835
2922
  i = e(f);
2836
2923
  return;
2837
2924
  }
2838
- if (s && s.type === ze && s.value.charCodeAt(0) === wr) {
2925
+ if (s && s.type === Fe && s.value.charCodeAt(0) === Ar) {
2839
2926
  o = e(f);
2840
2927
  return;
2841
2928
  }
2842
- if (l && l.type === ze && l.value.charCodeAt(0) === ea && !r[0]) {
2929
+ if (l && l.type === Fe && l.value.charCodeAt(0) === pa && !r[0]) {
2843
2930
  r[0] = f, !i && s && (i = e(s));
2844
2931
  return;
2845
2932
  }
2846
- if (f.type !== qo) {
2933
+ if (f.type !== Zo) {
2847
2934
  if (c.next === null) {
2848
2935
  r[1] = f, !i && !r[0] && s && (i = e(s));
2849
2936
  return;
2850
2937
  }
2851
- if (f.type === he) {
2938
+ if (f.type === pe) {
2852
2939
  let m = f.name;
2853
- if (Zo.has(m)) {
2940
+ if (fa.has(m)) {
2854
2941
  i = m;
2855
2942
  return;
2856
2943
  }
@@ -2873,7 +2960,7 @@ function ta(t, e, n) {
2873
2960
  font_family: a
2874
2961
  };
2875
2962
  }
2876
- const na = new le([
2963
+ const ma = new ae([
2877
2964
  "linear",
2878
2965
  "ease",
2879
2966
  "ease-in",
@@ -2881,36 +2968,36 @@ const na = new le([
2881
2968
  "ease-in-out",
2882
2969
  "step-start",
2883
2970
  "step-end"
2884
- ]), ra = new le([
2971
+ ]), ga = new ae([
2885
2972
  "cubic-bezier",
2886
2973
  "steps"
2887
2974
  ]);
2888
- function ia(t, e) {
2975
+ function ka(t, e) {
2889
2976
  let n = !1;
2890
2977
  for (let r of t) {
2891
2978
  let i = r.type, o = r.name;
2892
- i === ze ? n = !1 : i === Xr && n === !1 ? (n = !0, e({
2979
+ i === Fe ? n = !1 : i === ei && n === !1 ? (n = !0, e({
2893
2980
  type: "duration",
2894
2981
  value: r
2895
- })) : i === he ? na.has(o) ? e({
2982
+ })) : i === pe ? ma.has(o) ? e({
2896
2983
  type: "fn",
2897
2984
  value: r
2898
- }) : vt.has(o) && e({
2985
+ }) : Lt.has(o) && e({
2899
2986
  type: "keyword",
2900
2987
  value: r
2901
- }) : i === wn && ra.has(o) && e({
2988
+ }) : i === Ln && ga.has(o) && e({
2902
2989
  type: "fn",
2903
2990
  value: r
2904
2991
  });
2905
2992
  }
2906
2993
  }
2907
- function ri(t) {
2994
+ function si(t) {
2908
2995
  let e = t.children;
2909
2996
  if (!e)
2910
2997
  return !1;
2911
2998
  for (let n of e) {
2912
2999
  let { type: r, name: i } = n;
2913
- if (r === he && xe(i) || r === wn && (xe(i) || ri(n)))
3000
+ if (r === pe && we(i) || r === Ln && (we(i) || si(n)))
2914
3001
  return !0;
2915
3002
  }
2916
3003
  return !1;
@@ -2921,7 +3008,7 @@ class x {
2921
3008
  this._items = /* @__PURE__ */ new Map(), this._total = 0, e && (this._nodes = []), this._useLocations = e;
2922
3009
  }
2923
3010
  /**
2924
- * @param {string} item
3011
+ * @param {string | number} item
2925
3012
  * @param {import('css-tree').CssLocation} node_location
2926
3013
  */
2927
3014
  p(e, n) {
@@ -2961,13 +3048,13 @@ class x {
2961
3048
  let e = /* @__PURE__ */ new Map(), n = {}, r = this._useLocations, i = this._items, o = this._nodes, a = i.size;
2962
3049
  i.forEach((s, l) => {
2963
3050
  if (r) {
2964
- let m = s.map(function(S) {
2965
- let b = S * 4;
3051
+ let m = s.map(function(y) {
3052
+ let C = y * 4;
2966
3053
  return {
2967
- line: o[b],
2968
- column: o[b + 1],
2969
- offset: o[b + 2],
2970
- length: o[b + 3]
3054
+ line: o[C],
3055
+ column: o[C + 1],
3056
+ offset: o[C + 2],
3057
+ length: o[C + 3]
2971
3058
  };
2972
3059
  });
2973
3060
  e.set(l, m);
@@ -2983,7 +3070,7 @@ class x {
2983
3070
  return r && (c.uniqueWithLocations = Object.fromEntries(e)), c;
2984
3071
  }
2985
3072
  }
2986
- class sn {
3073
+ class an {
2987
3074
  /** @param {boolean} useLocations */
2988
3075
  constructor(e) {
2989
3076
  this._list = new x(e), this._contexts = /* @__PURE__ */ new Map(), this._useLocations = e;
@@ -3006,7 +3093,7 @@ class sn {
3006
3093
  });
3007
3094
  }
3008
3095
  }
3009
- function sa(t) {
3096
+ function ya(t) {
3010
3097
  let e = /* @__PURE__ */ new Map(), n = -1, r = 0, i = 0, o = t.length;
3011
3098
  for (let a = 0; a < o; a++) {
3012
3099
  let f = t[a], c = (e.get(f) || 0) + 1;
@@ -3039,7 +3126,7 @@ class re {
3039
3126
  range: 0,
3040
3127
  sum: 0
3041
3128
  };
3042
- let n = this._items.slice().sort((f, c) => f - c), r = n[0], i = n[e - 1], o = sa(n), a = this._sum;
3129
+ let n = this._items.slice().sort((f, c) => f - c), r = n[0], i = n[e - 1], o = ya(n), a = this._sum;
3043
3130
  return {
3044
3131
  min: r,
3045
3132
  max: i,
@@ -3056,33 +3143,33 @@ class re {
3056
3143
  return this._items;
3057
3144
  }
3058
3145
  }
3059
- function oa(t) {
3060
- if (vn(t) || xe(t)) return !1;
3146
+ function Sa(t) {
3147
+ if (En(t) || we(t)) return !1;
3061
3148
  let e = t.charCodeAt(0);
3062
3149
  return e === 47 || e === 42 || e === 95 || e === 43 || e === 38 || e === 36 || e === 35;
3063
3150
  }
3064
- function vn(t) {
3151
+ function En(t) {
3065
3152
  return t.length < 3 ? !1 : t.charCodeAt(0) === 45 && t.charCodeAt(1) === 45;
3066
3153
  }
3067
- function U(t, e) {
3068
- return vn(e) ? !1 : pe(t, e);
3154
+ function G(t, e) {
3155
+ return En(e) ? !1 : ge(t, e);
3069
3156
  }
3070
- function aa(t) {
3071
- return xe(t) ? t.slice(t.indexOf("-", 2) + 1) : t;
3157
+ function xa(t) {
3158
+ return we(t) ? t.slice(t.indexOf("-", 2) + 1) : t;
3072
3159
  }
3073
- function la(t) {
3160
+ function Ca(t) {
3074
3161
  let e = 5, n = t.indexOf(";"), r = t.indexOf(",");
3075
3162
  return n === -1 || r !== -1 && r < n ? t.substring(e, r) : t.substring(e, n);
3076
3163
  }
3077
- function ca(t) {
3164
+ function ba(t) {
3078
3165
  let e = t.children;
3079
3166
  if (e) {
3080
3167
  let n = e.last;
3081
- return n && n.type === he && pe("\\9", n.name);
3168
+ return n && n.type === pe && ge("\\9", n.name);
3082
3169
  }
3083
3170
  return !1;
3084
3171
  }
3085
- let ua = new le([
3172
+ let wa = new ae([
3086
3173
  "border-radius",
3087
3174
  "border-top-left-radius",
3088
3175
  "border-top-right-radius",
@@ -3093,26 +3180,26 @@ let ua = new le([
3093
3180
  "border-end-end-radius",
3094
3181
  "border-end-start-radius"
3095
3182
  ]);
3096
- function R(t, e) {
3183
+ function B(t, e) {
3097
3184
  return e === 0 ? 0 : t / e;
3098
3185
  }
3099
- let ha = {
3186
+ let va = {
3100
3187
  useLocations: !1
3101
3188
  };
3102
- function da(t, e = {}) {
3103
- let r = Object.assign({}, ha, e).useLocations === !0, i = Date.now();
3189
+ function Ea(t, e = {}) {
3190
+ let r = Object.assign({}, va, e).useLocations === !0, i = Date.now();
3104
3191
  function o(d) {
3105
3192
  return a(d).trim();
3106
3193
  }
3107
3194
  function a(d) {
3108
- let w = d.loc;
3109
- return t.substring(w.start.offset, w.end.offset);
3195
+ let v = d.loc;
3196
+ return t.substring(v.start.offset, v.end.offset);
3110
3197
  }
3111
3198
  let f = 0, c = 0, s = 0, l = {
3112
3199
  total: 0,
3113
3200
  /** @type {Map<string, { size: number, count: number } & ({ uniqueWithLocations?: undefined } | ({ uniqueWithLocations: { offset: number, line: number, column: number, length: number }[] })) }>} */
3114
3201
  unique: /* @__PURE__ */ new Map()
3115
- }, m = Date.now(), S = ii(t, {
3202
+ }, m = Date.now(), y = oi(t, {
3116
3203
  parseCustomProperty: !0,
3117
3204
  // To find font-families, colors, etc.
3118
3205
  positions: !0,
@@ -3121,67 +3208,67 @@ function da(t, e = {}) {
3121
3208
  onComment: function(d) {
3122
3209
  f++, c += d.length;
3123
3210
  }
3124
- }), b = Date.now(), K = S.loc.end.line - S.loc.start.line + 1, q = 0, te = new re(), Ce = [], Te = new x(r), Fe = new x(r), Q = new x(r), Je = new x(r), Xe = new x(r), Ze = new x(r), u = new x(r), h = new x(r), g = new x(r), p = new x(r), Y = new x(r), B = new x(r), ge = 0, z = 0, ke = new re(), fe = new re(), At = new re(), An = new x(r), Ln = new x(r), En = new x(r), Lt = new x(r), _n = /* @__PURE__ */ new Set(), Et = new x(r), be, we, Tn = new re(), On = new re(), In = new re(), Nn = new x(r), et = new re(), $n = new x(r), Dn = [], _t = new x(r), Tt = new x(r), Pn = new x(r), Mn = new x(r), zn = /* @__PURE__ */ new Set(), Re = 0, Fn = new re(), tt = 0, Ot = 0, It = new x(r), qe = new x(r), Nt = new x(r), $t = new x(r), nt = new x(r), Be = new re(), Dt = new re(), Rn = new x(r), Pt = new x(r), qn = new x(r), Bn = new x(r), jn = new x(r), Mt = new x(r), zt = new x(r), Ft = new x(r), rt = new x(r), it = new x(r), Oe = new sn(r), Ie = new x(r), Rt = new sn(r), Un = new x(r), je = new x(r), Vn = new sn(r);
3125
- ue(S, 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) {
3126
3213
  switch (d.type) {
3127
- case $o: {
3214
+ case Ho: {
3128
3215
  q++;
3129
- let w = d.name;
3130
- if (w === "font-face") {
3131
- let _ = {};
3132
- r && Te.p(d.loc.start.offset, d.loc), d.block.children.forEach((A) => {
3133
- A.type === hn && (_[A.property] = o(A.value));
3134
- }), Ce.push(_), te.push(1);
3216
+ let v = d.name;
3217
+ if (v === "font-face") {
3218
+ let T = {};
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);
3135
3222
  break;
3136
3223
  }
3137
- let y = 1;
3224
+ let S = 1;
3138
3225
  if (d.prelude !== null) {
3139
- let _ = d.prelude, A = _ && o(d.prelude), v = _.loc;
3140
- if (w === "media")
3141
- Je.p(A, v), Vo(_) && (Xe.p(A, v), y++);
3142
- else if (w === "supports")
3143
- u.p(A, v), Uo(_) && (h.p(A, v), y++);
3144
- else if (pe("keyframes", w)) {
3145
- let C = "@" + w + " " + A;
3146
- xe(w) && (p.p(C, v), y++), g.p(C, v);
3147
- } else w === "import" ? Q.p(A, v) : w === "charset" ? Ze.p(A, v) : w === "container" ? Y.p(A, v) : w === "layer" ? A.split(",").forEach((C) => Fe.p(C.trim(), v)) : w === "property" && B.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);
3148
3235
  } else
3149
- w === "layer" && (Fe.p("<anonymous>", d.loc), y++);
3150
- te.push(y);
3236
+ v === "layer" && (qe.p("<anonymous>", d.loc), S++);
3237
+ V.push(S);
3151
3238
  break;
3152
3239
  }
3153
- case Mo: {
3154
- let w = d.prelude, y = d.block, _ = w.children, A = y.children, v = _ ? _.size : 0, C = A ? A.size : 0;
3155
- ke.push(v + C), An.p(v + C, d.loc), fe.push(v), Ln.p(v, w.loc), At.push(C), En.p(C, y.loc), ge++, C === 0 && z++;
3240
+ case Qo: {
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++;
3156
3243
  break;
3157
3244
  }
3158
- case bn: {
3159
- let w = o(d);
3160
- if (this.atrule && pe("keyframes", this.atrule.name))
3161
- return Lt.p(w, d.loc), this.skip;
3162
- ti(d) && Tt.p(w, d.loc);
3163
- let y = Ho(d);
3164
- if (y !== !1)
3165
- for (let J of y)
3166
- Pn.p(J, d.loc);
3167
- let _ = ni(d);
3168
- Go(d) && Et.p(w, d.loc), _n.add(w), et.push(_), $n.p(_, d.loc);
3169
- let [{ value: A }] = Pe(d), v = A.a, C = A.b, L = A.c, I = [v, C, L];
3170
- return Nn.p(v + "," + C + "," + L, d.loc), Tn.push(v), On.push(C), In.push(L), be === void 0 && (be = I), we === void 0 && (we = I), we !== void 0 && vr(we, I) < 0 && (we = I), be !== void 0 && vr(be, I) > 0 && (be = I), Dn.push(I), v > 0 && _t.p(w, d.loc), Wo(d, function(ne) {
3171
- Mn.p(ne.name, ne.loc);
3245
+ case An: {
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
+ let S = sa(d);
3251
+ if (S !== !1)
3252
+ for (let R of S)
3253
+ zn.p(R, d.loc);
3254
+ let T = ii(d);
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);
3172
3259
  }), this.skip;
3173
3260
  }
3174
- case Xr: {
3261
+ case ei: {
3175
3262
  if (!this.declaration)
3176
3263
  break;
3177
- let w = d.unit;
3178
- return pe("\\9", w) ? Rt.push(w.substring(0, w.length - 2), this.declaration.property, d.loc) : Rt.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;
3179
3266
  }
3180
- case jo: {
3181
- if (Cn("data:", d.value)) {
3182
- let w = d.value, y = w.length, _ = la(w);
3183
- l.total++, s += y;
3184
- let A = {
3267
+ case ta: {
3268
+ if (vn("data:", d.value)) {
3269
+ let v = d.value, S = v.length, T = Ca(v);
3270
+ l.total++, s += S;
3271
+ let b = {
3185
3272
  /** @type {number} */
3186
3273
  line: d.loc.start.line,
3187
3274
  /** @type {number} */
@@ -3191,101 +3278,101 @@ function da(t, e = {}) {
3191
3278
  /** @type {number} */
3192
3279
  length: d.loc.end.offset - d.loc.start.offset
3193
3280
  };
3194
- if (l.unique.has(_)) {
3195
- let v = l.unique.get(_);
3196
- v.count++, v.size += y, l.unique.set(_, v), r && v.uniqueWithLocations.push(A);
3281
+ if (l.unique.has(T)) {
3282
+ let A = l.unique.get(T);
3283
+ A.count++, A.size += S, l.unique.set(T, A), r && A.uniqueWithLocations.push(b);
3197
3284
  } else {
3198
- let v = {
3285
+ let A = {
3199
3286
  count: 1,
3200
- size: y
3287
+ size: S
3201
3288
  };
3202
- r && (v.uniqueWithLocations = [A]), l.unique.set(_, v);
3289
+ r && (A.uniqueWithLocations = [b]), l.unique.set(T, A);
3203
3290
  }
3204
3291
  }
3205
3292
  break;
3206
3293
  }
3207
- case zo: {
3208
- if (lt(d)) {
3209
- Dt.push(1), je.p(o(d), d.loc);
3294
+ case Jo: {
3295
+ if (ut(d)) {
3296
+ Mt.push(1), Ve.p(o(d), d.loc);
3210
3297
  break;
3211
3298
  }
3212
- let w = this.declaration, { property: y, important: _ } = w, A = 1;
3213
- ri(d) && (Rn.p(o(d), d.loc), A++), typeof _ == "string" && (Pt.p(a(d) + "!" + _, d.loc), A++), ca(d) && (Pt.p(o(d), d.loc), A++);
3214
- let v = d.children, C = d.loc;
3215
- if (Dt.push(A), U("z-index", y))
3216
- return qn.p(o(d), C), this.skip;
3217
- if (U("font", y)) {
3218
- if (rn(d)) return;
3219
- let { font_size: L, line_height: I, font_family: J } = ta(d, o, function(ne) {
3220
- ne.type === "keyword" && je.p(ne.value, C);
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
+ if (G("font", S)) {
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);
3221
3308
  });
3222
- J && Mt.p(J, C), L && zt.p(L, C), I && Ft.p(I, C);
3309
+ Z && zt.p(Z, w), E && Rt.p(E, w), R && qt.p(R, w);
3223
3310
  break;
3224
- } else if (U("font-size", y)) {
3225
- rn(d) || zt.p(o(d), C);
3311
+ } else if (G("font-size", S)) {
3312
+ on(d) || Rt.p(o(d), w);
3226
3313
  break;
3227
- } else if (U("font-family", y)) {
3228
- rn(d) || Mt.p(o(d), C);
3314
+ } else if (G("font-family", S)) {
3315
+ on(d) || zt.p(o(d), w);
3229
3316
  break;
3230
- } else if (U("line-height", y))
3231
- Ft.p(o(d), C);
3232
- else if (U("transition", y) || U("animation", y)) {
3233
- ia(v, function(L) {
3234
- L.type === "fn" ? rt.p(o(L.value), C) : L.type === "duration" ? it.p(o(L.value), C) : L.type === "keyword" && je.p(o(L.value), C);
3317
+ } else if (G("line-height", S))
3318
+ qt.p(o(d), w);
3319
+ else if (G("transition", S) || G("animation", S)) {
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);
3235
3322
  });
3236
3323
  break;
3237
- } else if (U("animation-duration", y) || U("transition-duration", y)) {
3238
- v && v.size > 1 ? v.forEach((L) => {
3239
- L.type !== ze && it.p(o(L), C);
3240
- }) : it.p(o(d), C);
3324
+ } else if (G("animation-duration", S) || G("transition-duration", S)) {
3325
+ A && A.size > 1 ? A.forEach((E) => {
3326
+ E.type !== Fe && ot.p(o(E), w);
3327
+ }) : ot.p(o(d), w);
3241
3328
  break;
3242
- } else if (U("transition-timing-function", y) || U("animation-timing-function", y)) {
3243
- v && v.size > 1 ? v.forEach((L) => {
3244
- L.type !== ze && rt.p(o(L), C);
3245
- }) : rt.p(o(d), C);
3329
+ } else if (G("transition-timing-function", S) || G("animation-timing-function", S)) {
3330
+ A && A.size > 1 ? A.forEach((E) => {
3331
+ E.type !== Fe && st.p(o(E), w);
3332
+ }) : st.p(o(d), w);
3246
3333
  break;
3247
- } else if (ua.has(aa(y))) {
3248
- lt(d) || Vn.push(o(d), y, C);
3334
+ } else if (wa.has(xa(S))) {
3335
+ ut(d) || Wn.push(o(d), S, w);
3249
3336
  break;
3250
- } else U("text-shadow", y) ? lt(d) || Bn.p(o(d), C) : U("box-shadow", y) && (lt(d) || jn.p(o(d), C));
3251
- ue(d, function(L) {
3252
- let I = L.name;
3253
- switch (L.type) {
3254
- case Bo: {
3255
- let J = L.value.length;
3256
- return pe("\\9", L.value) && (J = J - 2), Oe.push("#" + L.value, y, C), Ie.p("hex" + J, C), this.skip;
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
+ case ea: {
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;
3257
3344
  }
3258
- case he: {
3259
- vt.has(I) && je.p(I, C);
3260
- let J = I.length;
3261
- if (J > 20 || J < 3)
3345
+ case pe: {
3346
+ Lt.has(R) && Ve.p(R, w);
3347
+ let Z = R.length;
3348
+ if (Z > 20 || Z < 3)
3262
3349
  return this.skip;
3263
- if (Jo.has(I)) {
3264
- let ne = o(L);
3265
- Oe.push(ne, y, C), Ie.p(I.toLowerCase(), C);
3350
+ if (ua.has(R)) {
3351
+ let Ce = o(E);
3352
+ Ie.push(Ce, S, w), $e.p(R.toLowerCase(), w);
3266
3353
  return;
3267
3354
  }
3268
- if (Ko.has(I)) {
3269
- let ne = o(L);
3270
- Oe.push(ne, y, C), Ie.p("named", C);
3355
+ if (aa.has(R)) {
3356
+ let Ce = o(E);
3357
+ Ie.push(Ce, S, w), $e.p("named", w);
3271
3358
  return;
3272
3359
  }
3273
- if (Qo.has(I)) {
3274
- let ne = o(L);
3275
- Oe.push(ne, y, C), Ie.p("system", C);
3360
+ if (la.has(R)) {
3361
+ let Ce = o(E);
3362
+ Ie.push(Ce, S, w), $e.p("system", w);
3276
3363
  return;
3277
3364
  }
3278
3365
  return this.skip;
3279
3366
  }
3280
- case wn: {
3281
- if (G("var", I))
3367
+ case Ln: {
3368
+ if (W("var", R))
3282
3369
  return this.skip;
3283
- if (Yo.has(I)) {
3284
- Oe.push(o(L), y, L.loc), Ie.p(I.toLowerCase(), L.loc);
3370
+ if (ca.has(R)) {
3371
+ Ie.push(o(E), S, E.loc), $e.p(R.toLowerCase(), E.loc);
3285
3372
  return;
3286
3373
  }
3287
- if (pe("gradient", I)) {
3288
- Un.p(o(L), L.loc);
3374
+ if (ge("gradient", R)) {
3375
+ Hn.p(o(E), E.loc);
3289
3376
  return;
3290
3377
  }
3291
3378
  }
@@ -3293,34 +3380,34 @@ function da(t, e = {}) {
3293
3380
  });
3294
3381
  break;
3295
3382
  }
3296
- case hn: {
3383
+ case pn: {
3297
3384
  if (this.atrulePrelude !== null)
3298
3385
  return this.skip;
3299
- Re++;
3300
- let w = 1;
3301
- zn.add(o(d)), d.important === !0 && (tt++, w++, this.atrule && pe("keyframes", this.atrule.name) && (Ot++, w++)), Fn.push(w);
3302
- let { property: y, loc: { start: _ } } = 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 = {
3303
3390
  start: {
3304
- line: _.line,
3305
- column: _.column,
3306
- offset: _.offset
3391
+ line: T.line,
3392
+ column: T.column,
3393
+ offset: T.offset
3307
3394
  },
3308
3395
  end: {
3309
- offset: _.offset + y.length
3396
+ offset: T.offset + S.length
3310
3397
  }
3311
3398
  };
3312
- qe.p(y, A), xe(y) ? ($t.p(y, A), Be.push(2)) : oa(y) ? (Nt.p(y, A), Be.push(2)) : vn(y) ? (nt.p(y, A), Be.push(d.important ? 3 : 2), d.important === !0 && It.p(y, A)) : Be.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);
3313
3400
  break;
3314
3401
  }
3315
3402
  }
3316
3403
  });
3317
- let Gn = zn.size, Ne = et.size(), qt = Tn.aggregate(), Bt = On.aggregate(), jt = In.aggregate(), Hn = _n.size, P = Object.assign, Wn = t.length, Ut = Ce.length, Kn = te.aggregate(), Qn = et.aggregate(), Yn = Fn.aggregate(), Jn = Be.aggregate(), Xn = Dt.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();
3318
3405
  return {
3319
3406
  stylesheet: {
3320
- sourceLinesOfCode: q + Ne + Re + Lt.size(),
3321
- linesOfCode: K,
3322
- size: Wn,
3323
- complexity: Kn.sum + Qn.sum + Yn.sum + Jn.sum + Xn.sum,
3407
+ sourceLinesOfCode: q + Ne + Be + _t.size(),
3408
+ linesOfCode: _,
3409
+ size: Jn,
3410
+ complexity: Yn.sum + Xn.sum + Zn.sum + er.sum + tr.sum,
3324
3411
  comments: {
3325
3412
  total: f,
3326
3413
  size: c
@@ -3328,222 +3415,222 @@ function da(t, e = {}) {
3328
3415
  embeddedContent: {
3329
3416
  size: {
3330
3417
  total: s,
3331
- ratio: R(s, Wn)
3418
+ ratio: B(s, Jn)
3332
3419
  },
3333
3420
  types: {
3334
3421
  total: l.total,
3335
3422
  totalUnique: l.unique.size,
3336
- uniquenessRatio: R(l.unique.size, l.total),
3423
+ uniquenessRatio: B(l.unique.size, l.total),
3337
3424
  unique: Object.fromEntries(l.unique)
3338
3425
  }
3339
3426
  }
3340
3427
  },
3341
3428
  atrules: {
3342
- fontface: P({
3343
- total: Ut,
3344
- totalUnique: Ut,
3345
- unique: Ce,
3346
- uniquenessRatio: Ut === 0 ? 0 : 1
3429
+ fontface: M({
3430
+ total: Gt,
3431
+ totalUnique: Gt,
3432
+ unique: de,
3433
+ uniquenessRatio: Gt === 0 ? 0 : 1
3347
3434
  }, r ? {
3348
- uniqueWithLocations: Te.c().uniqueWithLocations
3435
+ uniqueWithLocations: Oe.c().uniqueWithLocations
3349
3436
  } : {}),
3350
- import: Q.c(),
3351
- media: P(
3352
- Je.c(),
3437
+ import: Y.c(),
3438
+ media: M(
3439
+ Ze.c(),
3353
3440
  {
3354
- browserhacks: Xe.c()
3441
+ browserhacks: et.c()
3355
3442
  }
3356
3443
  ),
3357
- charset: Ze.c(),
3358
- supports: P(
3444
+ charset: tt.c(),
3445
+ supports: M(
3359
3446
  u.c(),
3360
3447
  {
3361
3448
  browserhacks: h.c()
3362
3449
  }
3363
3450
  ),
3364
- keyframes: P(
3451
+ keyframes: M(
3365
3452
  g.c(),
3366
3453
  {
3367
- prefixed: P(
3454
+ prefixed: M(
3368
3455
  p.c(),
3369
3456
  {
3370
- ratio: R(p.size(), g.size())
3457
+ ratio: B(p.size(), g.size())
3371
3458
  }
3372
3459
  )
3373
3460
  }
3374
3461
  ),
3375
- container: Y.c(),
3376
- layer: Fe.c(),
3377
- property: B.c(),
3462
+ container: X.c(),
3463
+ layer: qe.c(),
3464
+ property: j.c(),
3378
3465
  total: q,
3379
- complexity: Kn
3466
+ complexity: Yn
3380
3467
  },
3381
3468
  rules: {
3382
- total: ge,
3469
+ total: Se,
3383
3470
  empty: {
3384
3471
  total: z,
3385
- ratio: R(z, ge)
3472
+ ratio: B(z, Se)
3386
3473
  },
3387
- sizes: P(
3388
- ke.aggregate(),
3474
+ sizes: M(
3475
+ xe.aggregate(),
3389
3476
  {
3390
- items: ke.toArray()
3477
+ items: xe.toArray()
3391
3478
  },
3392
- An.c()
3479
+ _n.c()
3393
3480
  ),
3394
- selectors: P(
3395
- fe.aggregate(),
3481
+ selectors: M(
3482
+ me.aggregate(),
3396
3483
  {
3397
- items: fe.toArray()
3484
+ items: me.toArray()
3398
3485
  },
3399
- Ln.c()
3486
+ Tn.c()
3400
3487
  ),
3401
- declarations: P(
3402
- At.aggregate(),
3488
+ declarations: M(
3489
+ Et.aggregate(),
3403
3490
  {
3404
- items: At.toArray()
3491
+ items: Et.toArray()
3405
3492
  },
3406
- En.c()
3493
+ On.c()
3407
3494
  )
3408
3495
  },
3409
3496
  selectors: {
3410
3497
  total: Ne,
3411
- totalUnique: Hn,
3412
- uniquenessRatio: R(Hn, Ne),
3413
- specificity: P(
3498
+ totalUnique: Qn,
3499
+ uniquenessRatio: B(Qn, Ne),
3500
+ specificity: M(
3414
3501
  {
3415
3502
  /** @type Specificity */
3416
- min: we === void 0 ? [0, 0, 0] : we,
3503
+ min: Ae === void 0 ? [0, 0, 0] : Ae,
3417
3504
  /** @type Specificity */
3418
- max: be === void 0 ? [0, 0, 0] : be,
3505
+ max: ve === void 0 ? [0, 0, 0] : ve,
3419
3506
  /** @type Specificity */
3420
- sum: [qt.sum, Bt.sum, jt.sum],
3507
+ sum: [jt.sum, Ut.sum, Vt.sum],
3421
3508
  /** @type Specificity */
3422
- mean: [qt.mean, Bt.mean, jt.mean],
3509
+ mean: [jt.mean, Ut.mean, Vt.mean],
3423
3510
  /** @type Specificity */
3424
- mode: [qt.mode, Bt.mode, jt.mode],
3511
+ mode: [jt.mode, Ut.mode, Vt.mode],
3425
3512
  /** @type Specificity */
3426
- items: Dn
3513
+ items: Fn
3427
3514
  },
3428
- Nn.c()
3515
+ Pn.c()
3429
3516
  ),
3430
- complexity: P(
3431
- Qn,
3432
- $n.c(),
3517
+ complexity: M(
3518
+ Xn,
3519
+ Mn.c(),
3433
3520
  {
3434
- items: et.toArray()
3521
+ items: nt.toArray()
3435
3522
  }
3436
3523
  ),
3437
- id: P(
3438
- _t.c(),
3524
+ id: M(
3525
+ Ot.c(),
3439
3526
  {
3440
- ratio: R(_t.size(), Ne)
3527
+ ratio: B(Ot.size(), Ne)
3441
3528
  }
3442
3529
  ),
3443
- pseudoClasses: Pn.c(),
3444
- accessibility: P(
3445
- Tt.c(),
3530
+ pseudoClasses: zn.c(),
3531
+ accessibility: M(
3532
+ It.c(),
3446
3533
  {
3447
- ratio: R(Tt.size(), Ne)
3534
+ ratio: B(It.size(), Ne)
3448
3535
  }
3449
3536
  ),
3450
- keyframes: Lt.c(),
3451
- prefixed: P(
3452
- Et.c(),
3537
+ keyframes: _t.c(),
3538
+ prefixed: M(
3539
+ Tt.c(),
3453
3540
  {
3454
- ratio: R(Et.size(), Ne)
3541
+ ratio: B(Tt.size(), Ne)
3455
3542
  }
3456
3543
  ),
3457
- combinators: Mn.c()
3544
+ combinators: Rn.c()
3458
3545
  },
3459
3546
  declarations: {
3460
- total: Re,
3461
- totalUnique: Gn,
3462
- uniquenessRatio: R(Gn, Re),
3547
+ total: Be,
3548
+ totalUnique: Kn,
3549
+ uniquenessRatio: B(Kn, Be),
3463
3550
  importants: {
3464
- total: tt,
3465
- ratio: R(tt, Re),
3551
+ total: rt,
3552
+ ratio: B(rt, Be),
3466
3553
  inKeyframes: {
3467
- total: Ot,
3468
- ratio: R(Ot, tt)
3554
+ total: $t,
3555
+ ratio: B($t, rt)
3469
3556
  }
3470
3557
  },
3471
- complexity: Yn
3558
+ complexity: Zn
3472
3559
  },
3473
- properties: P(
3474
- qe.c(),
3560
+ properties: M(
3561
+ je.c(),
3475
3562
  {
3476
- prefixed: P(
3477
- $t.c(),
3563
+ prefixed: M(
3564
+ Pt.c(),
3478
3565
  {
3479
- ratio: R($t.size(), qe.size())
3566
+ ratio: B(Pt.size(), je.size())
3480
3567
  }
3481
3568
  ),
3482
- custom: P(
3483
- nt.c(),
3569
+ custom: M(
3570
+ it.c(),
3484
3571
  {
3485
- ratio: R(nt.size(), qe.size()),
3486
- importants: P(
3487
- It.c(),
3572
+ ratio: B(it.size(), je.size()),
3573
+ importants: M(
3574
+ Nt.c(),
3488
3575
  {
3489
- ratio: R(It.size(), nt.size())
3576
+ ratio: B(Nt.size(), it.size())
3490
3577
  }
3491
3578
  )
3492
3579
  }
3493
3580
  ),
3494
- browserhacks: P(
3495
- Nt.c(),
3581
+ browserhacks: M(
3582
+ Dt.c(),
3496
3583
  {
3497
- ratio: R(Nt.size(), qe.size())
3584
+ ratio: B(Dt.size(), je.size())
3498
3585
  }
3499
3586
  ),
3500
- complexity: Jn
3587
+ complexity: er
3501
3588
  }
3502
3589
  ),
3503
3590
  values: {
3504
- colors: P(
3505
- Oe.count(),
3591
+ colors: M(
3592
+ Ie.count(),
3506
3593
  {
3507
- formats: Ie.c()
3594
+ formats: $e.c()
3508
3595
  }
3509
3596
  ),
3510
- gradients: Un.c(),
3511
- fontFamilies: Mt.c(),
3512
- fontSizes: zt.c(),
3513
- lineHeights: Ft.c(),
3514
- zindexes: qn.c(),
3515
- textShadows: Bn.c(),
3516
- boxShadows: jn.c(),
3517
- borderRadiuses: Vn.count(),
3597
+ gradients: Hn.c(),
3598
+ fontFamilies: zt.c(),
3599
+ fontSizes: Rt.c(),
3600
+ lineHeights: qt.c(),
3601
+ zindexes: Un.c(),
3602
+ textShadows: Vn.c(),
3603
+ boxShadows: Gn.c(),
3604
+ borderRadiuses: Wn.count(),
3518
3605
  animations: {
3519
- durations: it.c(),
3520
- timingFunctions: rt.c()
3606
+ durations: ot.c(),
3607
+ timingFunctions: st.c()
3521
3608
  },
3522
- prefixes: Rn.c(),
3523
- browserhacks: Pt.c(),
3524
- units: Rt.count(),
3525
- complexity: Xn,
3526
- keywords: je.c()
3609
+ prefixes: jn.c(),
3610
+ browserhacks: Ft.c(),
3611
+ units: Bt.count(),
3612
+ complexity: tr,
3613
+ keywords: Ve.c()
3527
3614
  },
3528
3615
  __meta__: {
3529
- parseTime: b - m,
3530
- analyzeTime: Date.now() - b,
3616
+ parseTime: C - m,
3617
+ analyzeTime: Date.now() - C,
3531
3618
  total: Date.now() - i
3532
3619
  }
3533
3620
  };
3534
3621
  }
3535
- function vr(t, e) {
3622
+ function Lr(t, e) {
3536
3623
  return t[0] === e[0] ? t[1] === e[1] ? e[2] - t[2] : e[1] - t[1] : e[0] - t[0];
3537
3624
  }
3538
3625
  export {
3539
- da as analyze,
3540
- vr as compareSpecificity,
3541
- xe as hasVendorPrefix,
3542
- ti as isAccessibilitySelector,
3543
- Vo as isMediaBrowserhack,
3544
- oa as isPropertyHack,
3545
- Go as isSelectorPrefixed,
3546
- Uo as isSupportsBrowserhack,
3547
- ri as isValuePrefixed,
3548
- ni as selectorComplexity
3626
+ Ea as analyze,
3627
+ Lr as compareSpecificity,
3628
+ we as hasVendorPrefix,
3629
+ ri as isAccessibilitySelector,
3630
+ ra as isMediaBrowserhack,
3631
+ Sa as isPropertyHack,
3632
+ ia as isSelectorPrefixed,
3633
+ na as isSupportsBrowserhack,
3634
+ si as isValuePrefixed,
3635
+ ii as selectorComplexity
3549
3636
  };