@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.
- package/dist/analyze-css.js +1284 -1197
- package/dist/analyze-css.umd.cjs +7 -6
- package/package.json +2 -2
package/dist/analyze-css.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
let
|
|
4
|
-
class
|
|
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
|
|
16
|
+
return H.createItem(e);
|
|
17
17
|
}
|
|
18
18
|
// cursor helpers
|
|
19
19
|
allocateCursor(e, n) {
|
|
20
20
|
let r;
|
|
21
|
-
return
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
232
|
-
function
|
|
233
|
-
function
|
|
234
|
-
return
|
|
235
|
-
(
|
|
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
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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
|
-
|
|
246
|
-
new Array(n +
|
|
247
|
-
|
|
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
|
|
252
|
-
return Object.assign(
|
|
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(
|
|
258
|
-
return
|
|
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
|
-
` +
|
|
263
|
+
` + ir({ source: e, line: r, column: i, baseLine: o, baseColumn: a }, 2);
|
|
263
264
|
}
|
|
264
265
|
});
|
|
265
266
|
}
|
|
266
|
-
const
|
|
267
|
-
function
|
|
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
|
|
271
|
-
return
|
|
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
|
|
276
|
+
function gn(t) {
|
|
276
277
|
return t >= 65 && t <= 90;
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function ui(t) {
|
|
279
280
|
return t >= 97 && t <= 122;
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
282
|
+
function hi(t) {
|
|
283
|
+
return gn(t) || ui(t);
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function fi(t) {
|
|
285
286
|
return t >= 128;
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
288
|
+
function gt(t) {
|
|
289
|
+
return hi(t) || fi(t) || t === 95;
|
|
289
290
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
291
|
+
function _r(t) {
|
|
292
|
+
return gt(t) || Q(t) || t === 45;
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function pi(t) {
|
|
294
295
|
return t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t === 127;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function kt(t) {
|
|
297
298
|
return t === 10 || t === 13 || t === 12;
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
-
return
|
|
300
|
+
function Ye(t) {
|
|
301
|
+
return kt(t) || t === 32 || t === 9;
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
-
return !(t !== 92 ||
|
|
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 ===
|
|
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
|
|
312
|
+
function Tr(t) {
|
|
312
313
|
return t === 65279 || t === 65534 ? 1 : 0;
|
|
313
314
|
}
|
|
314
|
-
const
|
|
315
|
-
for (let t = 0; t <
|
|
316
|
-
|
|
317
|
-
function
|
|
318
|
-
return t < 128 ?
|
|
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
|
|
324
|
+
function cn(t, e, n) {
|
|
324
325
|
return n === 13 && Me(t, e + 1) === 10 ? 2 : 1;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function $r(t, e, n) {
|
|
327
328
|
let r = t.charCodeAt(e);
|
|
328
|
-
return
|
|
329
|
+
return gn(r) && (r = r | 32), r === n;
|
|
329
330
|
}
|
|
330
|
-
function
|
|
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 (
|
|
337
|
+
if (gn(a) && (a = a | 32), a !== o)
|
|
337
338
|
return !1;
|
|
338
339
|
}
|
|
339
340
|
return !0;
|
|
340
341
|
}
|
|
341
|
-
function
|
|
342
|
-
for (; e >= 0 &&
|
|
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
|
|
347
|
-
for (; e < t.length &&
|
|
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
|
|
352
|
-
for (; e < t.length &&
|
|
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
|
|
357
|
-
if (e += 2,
|
|
358
|
-
for (const r = Math.min(t.length, e + 5); e < r &&
|
|
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
|
-
|
|
362
|
+
Ye(n) && (e += cn(t, e, n));
|
|
362
363
|
}
|
|
363
364
|
return e;
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function lt(t, e) {
|
|
366
367
|
for (; e < t.length; e++) {
|
|
367
368
|
const n = t.charCodeAt(e);
|
|
368
|
-
if (!
|
|
369
|
-
if (
|
|
370
|
-
e =
|
|
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
|
|
379
|
+
function Nr(t, e) {
|
|
379
380
|
let n = t.charCodeAt(e);
|
|
380
|
-
if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)),
|
|
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)),
|
|
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
|
-
|
|
399
|
+
ke(n, Me(t, e + 1)) && (e = Qe(t, e));
|
|
399
400
|
}
|
|
400
401
|
return e;
|
|
401
402
|
}
|
|
402
|
-
function
|
|
403
|
-
if (t.length === 1 && !
|
|
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
|
|
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
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
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 ===
|
|
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
|
|
451
|
-
constructor() {
|
|
452
|
-
this.
|
|
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 ||
|
|
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 ||
|
|
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
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
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 =
|
|
498
|
-
let a = 0, f =
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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 =
|
|
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] >>
|
|
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] &
|
|
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 ?
|
|
542
|
+
return e += this.tokenIndex, e < this.tokenCount ? yt(
|
|
532
543
|
this.source,
|
|
533
|
-
this.offsetAndType[e - 1] &
|
|
534
|
-
this.offsetAndType[e] &
|
|
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] &
|
|
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) ===
|
|
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] &
|
|
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 >>
|
|
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 ===
|
|
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] &
|
|
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.
|
|
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 &
|
|
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:
|
|
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
|
|
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 =
|
|
604
|
-
l =
|
|
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 =
|
|
619
|
+
l = P, s++;
|
|
609
620
|
return;
|
|
610
621
|
}
|
|
611
|
-
l =
|
|
622
|
+
l = L;
|
|
612
623
|
}
|
|
613
624
|
function i() {
|
|
614
625
|
const m = s;
|
|
615
|
-
if (s =
|
|
616
|
-
if (s =
|
|
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 =
|
|
631
|
-
const
|
|
632
|
-
switch (
|
|
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
|
|
637
|
-
if (
|
|
638
|
-
s +=
|
|
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
|
|
646
|
-
|
|
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 =
|
|
663
|
+
for (l = ie, s = at(t, s); s < t.length; s++) {
|
|
653
664
|
const m = t.charCodeAt(s);
|
|
654
|
-
switch (
|
|
665
|
+
switch (Qt(m)) {
|
|
655
666
|
case 41:
|
|
656
667
|
s++;
|
|
657
668
|
return;
|
|
658
|
-
case
|
|
659
|
-
if (s =
|
|
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
|
|
679
|
+
case Ir:
|
|
669
680
|
s = Yt(t, s), l = se;
|
|
670
681
|
return;
|
|
671
682
|
case 92:
|
|
672
|
-
if (
|
|
673
|
-
s =
|
|
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 =
|
|
694
|
+
let c = Tr(n(0)), s = c, l;
|
|
684
695
|
for (; s < f; ) {
|
|
685
696
|
const m = t.charCodeAt(s);
|
|
686
|
-
switch (
|
|
687
|
-
case
|
|
688
|
-
l =
|
|
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
|
-
|
|
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 =
|
|
711
|
+
l = te, s++;
|
|
701
712
|
break;
|
|
702
713
|
case 41:
|
|
703
|
-
l =
|
|
714
|
+
l = O, s++;
|
|
704
715
|
break;
|
|
705
716
|
case 43:
|
|
706
|
-
|
|
717
|
+
Kt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
|
|
707
718
|
break;
|
|
708
719
|
case 44:
|
|
709
|
-
l =
|
|
720
|
+
l = Re, s++;
|
|
710
721
|
break;
|
|
711
722
|
case 45:
|
|
712
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
732
|
+
l = ee, s++;
|
|
722
733
|
break;
|
|
723
734
|
case 59:
|
|
724
|
-
l =
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
744
|
+
l = wt, s++;
|
|
734
745
|
break;
|
|
735
746
|
case 92:
|
|
736
|
-
|
|
747
|
+
ke(m, n(s + 1)) ? i() : (l = $, s++);
|
|
737
748
|
break;
|
|
738
749
|
case 93:
|
|
739
|
-
l =
|
|
750
|
+
l = mt, s++;
|
|
740
751
|
break;
|
|
741
752
|
case 123:
|
|
742
|
-
l =
|
|
753
|
+
l = dn, s++;
|
|
743
754
|
break;
|
|
744
755
|
case 125:
|
|
745
|
-
l =
|
|
756
|
+
l = mn, s++;
|
|
746
757
|
break;
|
|
747
|
-
case
|
|
758
|
+
case Or:
|
|
748
759
|
r();
|
|
749
760
|
break;
|
|
750
|
-
case
|
|
761
|
+
case kn:
|
|
751
762
|
i();
|
|
752
763
|
break;
|
|
753
764
|
default:
|
|
754
|
-
l =
|
|
765
|
+
l = $, s++;
|
|
755
766
|
}
|
|
756
767
|
e(l, c, c = s);
|
|
757
768
|
}
|
|
758
769
|
}
|
|
759
|
-
function
|
|
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
|
|
778
|
+
case he:
|
|
768
779
|
this.next();
|
|
769
780
|
continue;
|
|
770
|
-
case
|
|
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
|
|
782
|
-
},
|
|
783
|
-
function
|
|
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
|
|
799
|
+
function Zt(t) {
|
|
789
800
|
const e = /* @__PURE__ */ Object.create(null);
|
|
790
|
-
for (const n
|
|
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
|
|
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:
|
|
801
|
-
pseudo:
|
|
802
|
-
node:
|
|
812
|
+
atrule: Zt(t.atrule),
|
|
813
|
+
pseudo: Zt(t.pseudo),
|
|
814
|
+
node: Zt(t.node)
|
|
803
815
|
};
|
|
804
|
-
for (const n
|
|
805
|
-
switch (typeof
|
|
816
|
+
for (const [n, r] of Object.entries(t.parseContext))
|
|
817
|
+
switch (typeof r) {
|
|
806
818
|
case "function":
|
|
807
|
-
e.context[n] =
|
|
819
|
+
e.context[n] = r;
|
|
808
820
|
break;
|
|
809
821
|
case "string":
|
|
810
|
-
e.context[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
|
|
820
|
-
let e = "", n = "<unknown>", r = !1, i =
|
|
821
|
-
const a = new
|
|
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:
|
|
838
|
+
readSequence: Ci,
|
|
827
839
|
consumeUntilBalanceEnd: () => 0,
|
|
828
840
|
consumeUntilLeftCurlyBracket(s) {
|
|
829
|
-
return s ===
|
|
841
|
+
return s === hr ? 1 : 0;
|
|
830
842
|
},
|
|
831
843
|
consumeUntilLeftCurlyBracketOrSemicolon(s) {
|
|
832
|
-
return s ===
|
|
844
|
+
return s === hr || s === Xt ? 1 : 0;
|
|
833
845
|
},
|
|
834
846
|
consumeUntilExclamationMarkOrSemicolon(s) {
|
|
835
|
-
return s ===
|
|
847
|
+
return s === bi || s === Xt ? 1 : 0;
|
|
836
848
|
},
|
|
837
849
|
consumeUntilSemicolonIncluded(s) {
|
|
838
|
-
return s ===
|
|
850
|
+
return s === Xt ? 2 : 0;
|
|
839
851
|
},
|
|
840
852
|
createList() {
|
|
841
|
-
return new
|
|
853
|
+
return new H();
|
|
842
854
|
},
|
|
843
855
|
createSingleNodeList(s) {
|
|
844
|
-
return new
|
|
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 (
|
|
868
|
+
} catch (y) {
|
|
857
869
|
if (o)
|
|
858
|
-
throw
|
|
859
|
-
|
|
860
|
-
|
|
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 !==
|
|
879
|
+
if (l = this.lookupType(s++), l !== J && l !== he)
|
|
867
880
|
return l;
|
|
868
|
-
while (l !==
|
|
869
|
-
return
|
|
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
|
|
894
|
+
return $r(e, s, l);
|
|
882
895
|
},
|
|
883
896
|
cmpStr(s, l, m) {
|
|
884
|
-
return
|
|
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,
|
|
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 =
|
|
901
|
-
let m = `${/[[\](){}]/.test(l) ? `"${l}"` : l} is expected`,
|
|
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 ? (
|
|
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
|
|
907
|
-
this.isDelim(
|
|
919
|
+
case F:
|
|
920
|
+
this.isDelim(wi) && (this.next(), y++, m = "Name is expected");
|
|
908
921
|
break;
|
|
909
|
-
case
|
|
910
|
-
this.tokenType ===
|
|
922
|
+
case P:
|
|
923
|
+
this.tokenType === L && (y = this.tokenEnd, m = "Percent sign is expected");
|
|
911
924
|
break;
|
|
912
925
|
}
|
|
913
|
-
this.error(m,
|
|
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(
|
|
943
|
-
throw new
|
|
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,
|
|
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 :
|
|
959
|
-
const { context: m = "default", onComment:
|
|
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
|
|
963
|
-
if (
|
|
964
|
-
const
|
|
965
|
-
|
|
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
|
|
969
|
-
return f.eof || f.error(),
|
|
983
|
+
const C = f.context[m].call(f, l);
|
|
984
|
+
return f.eof || f.error(), C;
|
|
970
985
|
}, {
|
|
971
|
-
SyntaxError:
|
|
986
|
+
SyntaxError: sr,
|
|
972
987
|
config: f.config
|
|
973
988
|
});
|
|
974
989
|
}
|
|
975
|
-
const
|
|
976
|
-
function
|
|
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
|
|
999
|
+
function Mi() {
|
|
985
1000
|
switch (this.tokenType) {
|
|
986
|
-
case
|
|
1001
|
+
case wt:
|
|
987
1002
|
return this.AttributeSelector();
|
|
988
|
-
case
|
|
1003
|
+
case F:
|
|
989
1004
|
return this.IdSelector();
|
|
990
|
-
case
|
|
991
|
-
return this.lookupType(1) ===
|
|
1005
|
+
case ee:
|
|
1006
|
+
return this.lookupType(1) === ee ? this.PseudoElementSelector() : this.PseudoClassSelector();
|
|
992
1007
|
case k:
|
|
993
1008
|
return this.TypeSelector();
|
|
994
|
-
case
|
|
995
|
-
case
|
|
1009
|
+
case L:
|
|
1010
|
+
case P:
|
|
996
1011
|
return this.Percentage();
|
|
997
|
-
case
|
|
998
|
-
this.charCodeAt(this.tokenStart) ===
|
|
1012
|
+
case I:
|
|
1013
|
+
this.charCodeAt(this.tokenStart) === pr && this.error("Identifier is expected", this.tokenStart + 1);
|
|
999
1014
|
break;
|
|
1000
|
-
case
|
|
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
|
|
1022
|
+
case pr:
|
|
1008
1023
|
return this.ClassSelector();
|
|
1009
|
-
case
|
|
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
|
|
1022
|
-
onWhiteSpace:
|
|
1023
|
-
getNode:
|
|
1024
|
-
}
|
|
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
|
-
},
|
|
1069
|
+
}, en = {
|
|
1031
1070
|
parse() {
|
|
1032
1071
|
return this.createSingleNodeList(
|
|
1033
1072
|
this.Selector()
|
|
1034
1073
|
);
|
|
1035
1074
|
}
|
|
1036
|
-
},
|
|
1075
|
+
}, Ri = {
|
|
1037
1076
|
parse() {
|
|
1038
1077
|
return this.createSingleNodeList(
|
|
1039
1078
|
this.Identifier()
|
|
1040
1079
|
);
|
|
1041
1080
|
}
|
|
1042
|
-
},
|
|
1081
|
+
}, qi = {
|
|
1082
|
+
parse: zi
|
|
1083
|
+
}, ct = {
|
|
1043
1084
|
parse() {
|
|
1044
1085
|
return this.createSingleNodeList(
|
|
1045
1086
|
this.Nth()
|
|
1046
1087
|
);
|
|
1047
1088
|
}
|
|
1048
|
-
},
|
|
1049
|
-
dir:
|
|
1050
|
-
has:
|
|
1051
|
-
lang:
|
|
1052
|
-
matches:
|
|
1053
|
-
is:
|
|
1054
|
-
"-moz-any":
|
|
1055
|
-
"-webkit-any":
|
|
1056
|
-
where:
|
|
1057
|
-
not:
|
|
1058
|
-
"nth-child":
|
|
1059
|
-
"nth-last-child":
|
|
1060
|
-
"nth-last-of-type":
|
|
1061
|
-
"nth-of-type":
|
|
1062
|
-
slotted:
|
|
1063
|
-
host:
|
|
1064
|
-
"host-context":
|
|
1065
|
-
},
|
|
1066
|
-
function
|
|
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 ===
|
|
1070
|
-
|
|
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
|
|
1073
|
-
return
|
|
1113
|
+
function Pe(t) {
|
|
1114
|
+
return pt.call(this, 0, t);
|
|
1074
1115
|
}
|
|
1075
|
-
function
|
|
1116
|
+
function be(t, e) {
|
|
1076
1117
|
if (!this.cmpChar(this.tokenStart + t, e)) {
|
|
1077
1118
|
let n = "";
|
|
1078
1119
|
switch (e) {
|
|
1079
|
-
case
|
|
1120
|
+
case ft:
|
|
1080
1121
|
n = "N is expected";
|
|
1081
1122
|
break;
|
|
1082
|
-
case
|
|
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
|
|
1130
|
+
function tn() {
|
|
1090
1131
|
let t = 0, e = 0, n = this.tokenType;
|
|
1091
|
-
for (; n ===
|
|
1132
|
+
for (; n === J || n === he; )
|
|
1092
1133
|
n = this.lookupType(++t);
|
|
1093
|
-
if (n !==
|
|
1094
|
-
if (this.isDelim(
|
|
1095
|
-
e = this.isDelim(
|
|
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 ===
|
|
1099
|
-
n !==
|
|
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 !==
|
|
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
|
|
1145
|
+
function Ui() {
|
|
1105
1146
|
const t = this.tokenStart;
|
|
1106
1147
|
let e = null, n = null;
|
|
1107
|
-
if (this.tokenType ===
|
|
1108
|
-
|
|
1109
|
-
else if (this.tokenType === k && this.cmpChar(this.tokenStart,
|
|
1110
|
-
switch (e = "-1",
|
|
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 =
|
|
1153
|
+
this.next(), n = tn.call(this);
|
|
1113
1154
|
break;
|
|
1114
1155
|
case 3:
|
|
1115
|
-
|
|
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
|
-
|
|
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(
|
|
1161
|
+
else if (this.tokenType === k || this.isDelim(ue) && this.lookupType(1) === k) {
|
|
1121
1162
|
let r = 0;
|
|
1122
|
-
switch (e = "1", this.isDelim(
|
|
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 =
|
|
1165
|
+
this.next(), n = tn.call(this);
|
|
1125
1166
|
break;
|
|
1126
1167
|
case 2:
|
|
1127
|
-
|
|
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
|
-
|
|
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 ===
|
|
1133
|
-
const r = this.charCodeAt(this.tokenStart), i = r ===
|
|
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 &&
|
|
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),
|
|
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) ===
|
|
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
|
|
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
|
|
1159
|
-
function
|
|
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(
|
|
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
|
|
1210
|
+
function Qi() {
|
|
1170
1211
|
const t = this.tokenStart, e = this.charCodeAt(t);
|
|
1171
|
-
return e !==
|
|
1172
|
-
e !==
|
|
1173
|
-
e !==
|
|
1174
|
-
e !==
|
|
1175
|
-
e !==
|
|
1176
|
-
e !==
|
|
1177
|
-
}
|
|
1178
|
-
function
|
|
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(
|
|
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
|
|
1191
|
-
this.token(
|
|
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
|
|
1194
|
-
function
|
|
1195
|
-
return this.eatDelim(
|
|
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
|
|
1202
|
-
this.token(
|
|
1242
|
+
function es(t) {
|
|
1243
|
+
this.token($, "."), this.token(k, t.name);
|
|
1203
1244
|
}
|
|
1204
|
-
const
|
|
1205
|
-
function
|
|
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
|
|
1250
|
+
case J:
|
|
1210
1251
|
e = " ";
|
|
1211
1252
|
break;
|
|
1212
|
-
case
|
|
1253
|
+
case $:
|
|
1213
1254
|
switch (this.charCodeAt(this.tokenStart)) {
|
|
1214
|
-
case
|
|
1215
|
-
case
|
|
1216
|
-
case
|
|
1255
|
+
case ns:
|
|
1256
|
+
case ts:
|
|
1257
|
+
case rs:
|
|
1217
1258
|
this.next();
|
|
1218
1259
|
break;
|
|
1219
|
-
case
|
|
1220
|
-
this.next(), this.eatIdent("deep"), this.eatDelim(
|
|
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
|
|
1275
|
+
function ss(t) {
|
|
1235
1276
|
this.tokenize(t.name);
|
|
1236
1277
|
}
|
|
1237
|
-
function
|
|
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
|
|
1285
|
+
function as(t) {
|
|
1245
1286
|
this.token(k, t.name);
|
|
1246
1287
|
}
|
|
1247
|
-
function
|
|
1288
|
+
function ls() {
|
|
1248
1289
|
const t = this.tokenStart;
|
|
1249
|
-
return this.eat(
|
|
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
|
|
1256
|
-
this.token(
|
|
1296
|
+
function cs(t) {
|
|
1297
|
+
this.token($, "#" + t.name);
|
|
1257
1298
|
}
|
|
1258
|
-
const
|
|
1259
|
-
function
|
|
1299
|
+
const us = 38;
|
|
1300
|
+
function hs() {
|
|
1260
1301
|
const t = this.tokenStart;
|
|
1261
|
-
return this.eatDelim(
|
|
1302
|
+
return this.eatDelim(us), {
|
|
1262
1303
|
type: "NestingSelector",
|
|
1263
1304
|
loc: this.getLocation(t, this.tokenStart)
|
|
1264
1305
|
};
|
|
1265
1306
|
}
|
|
1266
|
-
function
|
|
1267
|
-
this.token(
|
|
1307
|
+
function fs() {
|
|
1308
|
+
this.token($, "&");
|
|
1268
1309
|
}
|
|
1269
|
-
function
|
|
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
|
|
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
|
|
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(
|
|
1339
|
+
value: this.consumeNumber(P)
|
|
1288
1340
|
};
|
|
1289
1341
|
}
|
|
1290
|
-
function
|
|
1291
|
-
this.token(
|
|
1342
|
+
function ys(t) {
|
|
1343
|
+
this.token(P, t.value + "%");
|
|
1292
1344
|
}
|
|
1293
|
-
function
|
|
1345
|
+
function Ss() {
|
|
1294
1346
|
const t = this.tokenStart;
|
|
1295
1347
|
let e = null, n, r;
|
|
1296
|
-
return this.eat(
|
|
1297
|
-
this.Raw(
|
|
1298
|
-
)), this.eat(
|
|
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
|
|
1306
|
-
this.token(
|
|
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
|
|
1360
|
+
function Cs() {
|
|
1309
1361
|
const t = this.tokenStart;
|
|
1310
1362
|
let e = null, n, r;
|
|
1311
|
-
return this.eat(
|
|
1312
|
-
this.Raw(
|
|
1313
|
-
)), this.eat(
|
|
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
|
|
1321
|
-
this.token(
|
|
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
|
|
1324
|
-
return this.tokenIndex > 0 && this.lookupType(-1) ===
|
|
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
|
|
1327
|
-
const
|
|
1328
|
-
let
|
|
1329
|
-
return this.skipUntilBalanced(
|
|
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(
|
|
1332
|
-
value: this.substring(
|
|
1383
|
+
loc: this.getLocation(n, r),
|
|
1384
|
+
value: this.substring(n, r)
|
|
1333
1385
|
};
|
|
1334
1386
|
}
|
|
1335
|
-
function
|
|
1387
|
+
function As(t) {
|
|
1336
1388
|
this.tokenize(t.value);
|
|
1337
1389
|
}
|
|
1338
|
-
function
|
|
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
|
|
1398
|
+
function Es(t) {
|
|
1347
1399
|
this.children(t);
|
|
1348
1400
|
}
|
|
1349
|
-
function
|
|
1401
|
+
function _s() {
|
|
1350
1402
|
const t = this.createList();
|
|
1351
1403
|
for (; !this.eof; ) {
|
|
1352
|
-
if (t.push(this.Selector()), this.tokenType ===
|
|
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
|
|
1365
|
-
this.children(t, () => this.token(
|
|
1416
|
+
function Ts(t) {
|
|
1417
|
+
this.children(t, () => this.token(Re, ","));
|
|
1366
1418
|
}
|
|
1367
|
-
const
|
|
1368
|
-
function
|
|
1369
|
-
const e = t.length, n = t.charCodeAt(0), r = n ===
|
|
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 ===
|
|
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),
|
|
1379
|
-
const c = a - 1, s =
|
|
1380
|
-
a = s - 1, o +=
|
|
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
|
|
1389
|
-
const n = '"', r =
|
|
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 ===
|
|
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
|
|
1457
|
+
function Ns() {
|
|
1406
1458
|
return {
|
|
1407
1459
|
type: "String",
|
|
1408
1460
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
1409
|
-
value:
|
|
1461
|
+
value: Is(this.consume(ze))
|
|
1410
1462
|
};
|
|
1411
1463
|
}
|
|
1412
|
-
function
|
|
1413
|
-
this.token(
|
|
1464
|
+
function Ds(t) {
|
|
1465
|
+
this.token(ze, $s(t.value));
|
|
1414
1466
|
}
|
|
1415
|
-
const
|
|
1416
|
-
function
|
|
1417
|
-
this.tokenType !== k && this.isDelim(
|
|
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
|
|
1471
|
+
function Ms() {
|
|
1420
1472
|
const t = this.tokenStart;
|
|
1421
|
-
return this.isDelim(
|
|
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
|
|
1479
|
+
function Fs(t) {
|
|
1428
1480
|
this.tokenize(t.name);
|
|
1429
1481
|
}
|
|
1430
|
-
const
|
|
1482
|
+
const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1431
1483
|
__proto__: null,
|
|
1432
|
-
AnPlusB:
|
|
1433
|
-
AttributeSelector:
|
|
1434
|
-
ClassSelector:
|
|
1435
|
-
Combinator:
|
|
1436
|
-
IdSelector:
|
|
1437
|
-
Identifier:
|
|
1438
|
-
NestingSelector:
|
|
1439
|
-
Nth:
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
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:
|
|
1507
|
+
scope: { Selector: Fi },
|
|
1455
1508
|
atrule: {},
|
|
1456
|
-
pseudo:
|
|
1457
|
-
node:
|
|
1458
|
-
},
|
|
1459
|
-
var
|
|
1460
|
-
|
|
1461
|
-
if (0 <= t && t <
|
|
1462
|
-
return
|
|
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
|
-
|
|
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
|
|
1470
|
-
function
|
|
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
|
|
1526
|
+
function Bs(t) {
|
|
1474
1527
|
var e = (t & 1) === 1, n = t >> 1;
|
|
1475
1528
|
return e ? -n : n;
|
|
1476
1529
|
}
|
|
1477
|
-
|
|
1478
|
-
var n = "", r, i =
|
|
1530
|
+
yn.encode = function(e) {
|
|
1531
|
+
var n = "", r, i = qs(e);
|
|
1479
1532
|
do
|
|
1480
|
-
r = i &
|
|
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
|
-
|
|
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 =
|
|
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 &
|
|
1544
|
+
f = !!(c & Br), c &= qr, o = o + (c << a), a += xn;
|
|
1492
1545
|
} while (f);
|
|
1493
|
-
r.value =
|
|
1546
|
+
r.value = Bs(o), r.rest = n;
|
|
1494
1547
|
};
|
|
1495
|
-
var
|
|
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
|
|
1529
|
-
return h[0] = h[p], h[p] =
|
|
1581
|
+
var X = h[0];
|
|
1582
|
+
return h[0] = h[p], h[p] = X, h[0].result;
|
|
1530
1583
|
}
|
|
1531
|
-
var
|
|
1584
|
+
var j = u(g);
|
|
1532
1585
|
return h.unshift({
|
|
1533
1586
|
input: g,
|
|
1534
|
-
result:
|
|
1535
|
-
}), h.length > a && h.pop(),
|
|
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
|
|
1546
|
-
if (
|
|
1547
|
-
|
|
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 (
|
|
1603
|
+
for (j.push(g.slice(Se, z)); z < g.length && g[z] === "/"; )
|
|
1551
1604
|
z++;
|
|
1552
|
-
for (var
|
|
1553
|
-
|
|
1554
|
-
return 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
|
|
1567
|
-
return p ? (p.path =
|
|
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
|
|
1640
|
+
function y(u) {
|
|
1588
1641
|
return u;
|
|
1589
1642
|
}
|
|
1590
|
-
function
|
|
1643
|
+
function C(u) {
|
|
1591
1644
|
return q(u) ? "$" + u : u;
|
|
1592
1645
|
}
|
|
1593
|
-
t.toSetString = m ?
|
|
1594
|
-
function
|
|
1646
|
+
t.toSetString = m ? y : C;
|
|
1647
|
+
function _(u) {
|
|
1595
1648
|
return q(u) ? u.slice(1) : u;
|
|
1596
1649
|
}
|
|
1597
|
-
t.fromSetString = m ?
|
|
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
|
|
1610
|
-
var p =
|
|
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 :
|
|
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 =
|
|
1614
|
-
function
|
|
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 :
|
|
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 =
|
|
1619
|
-
function
|
|
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 =
|
|
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 =
|
|
1624
|
-
function
|
|
1676
|
+
t.compareByGeneratedPositionsDeflated = Oe;
|
|
1677
|
+
function qe(u, h, g) {
|
|
1625
1678
|
var p = u.generatedColumn - h.generatedColumn;
|
|
1626
|
-
return p !== 0 || g || (p =
|
|
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 =
|
|
1629
|
-
function
|
|
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
|
|
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 =
|
|
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 =
|
|
1637
|
-
function
|
|
1689
|
+
t.compareByGeneratedPositionsInflated = Ze;
|
|
1690
|
+
function et(u) {
|
|
1638
1691
|
return JSON.parse(u.replace(/^\)]}'[^\n]*\n/, ""));
|
|
1639
1692
|
}
|
|
1640
|
-
t.parseSourceMapInput =
|
|
1641
|
-
function
|
|
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
|
|
1648
|
-
|
|
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 =
|
|
1655
|
-
})(
|
|
1656
|
-
var
|
|
1657
|
-
function
|
|
1658
|
-
this._array = [], this._set =
|
|
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
|
-
|
|
1661
|
-
for (var r = new
|
|
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
|
-
|
|
1666
|
-
return
|
|
1718
|
+
ye.prototype.size = function() {
|
|
1719
|
+
return _e ? this._set.size : Object.getOwnPropertyNames(this._set).length;
|
|
1667
1720
|
};
|
|
1668
|
-
|
|
1669
|
-
var r =
|
|
1670
|
-
(!i || n) && this._array.push(e), i || (
|
|
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
|
-
|
|
1673
|
-
if (
|
|
1725
|
+
ye.prototype.has = function(e) {
|
|
1726
|
+
if (_e)
|
|
1674
1727
|
return this._set.has(e);
|
|
1675
|
-
var n =
|
|
1676
|
-
return
|
|
1728
|
+
var n = Cn.toSetString(e);
|
|
1729
|
+
return bn.call(this._set, n);
|
|
1677
1730
|
};
|
|
1678
|
-
|
|
1679
|
-
if (
|
|
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 =
|
|
1685
|
-
if (
|
|
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
|
-
|
|
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
|
-
|
|
1748
|
+
ye.prototype.toArray = function() {
|
|
1696
1749
|
return this._array.slice();
|
|
1697
1750
|
};
|
|
1698
|
-
|
|
1699
|
-
var
|
|
1700
|
-
function
|
|
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 ||
|
|
1755
|
+
return r > n || r == n && o >= i || Vr.compareByGeneratedPositionsInflated(t, e) <= 0;
|
|
1703
1756
|
}
|
|
1704
|
-
function
|
|
1757
|
+
function At() {
|
|
1705
1758
|
this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
|
|
1706
1759
|
}
|
|
1707
|
-
|
|
1760
|
+
At.prototype.unsortedForEach = function(e, n) {
|
|
1708
1761
|
this._array.forEach(e, n);
|
|
1709
1762
|
};
|
|
1710
|
-
|
|
1711
|
-
|
|
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
|
-
|
|
1714
|
-
return this._sorted || (this._array.sort(
|
|
1766
|
+
At.prototype.toArray = function() {
|
|
1767
|
+
return this._sorted || (this._array.sort(Vr.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
|
|
1715
1768
|
};
|
|
1716
|
-
|
|
1717
|
-
var
|
|
1718
|
-
function
|
|
1719
|
-
t || (t = {}), this._file =
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
var r = e.sourceRoot, i = new
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
1746
|
-
var n =
|
|
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
|
-
|
|
1809
|
+
ne.prototype.setSourceContent = function(e, n) {
|
|
1757
1810
|
var r = e;
|
|
1758
|
-
this._sourceRoot != null && (r =
|
|
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
|
-
|
|
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 =
|
|
1771
|
-
var a = new
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
1811
|
-
for (var e = 0, n = 1, r = 0, i = 0, o = 0, a = 0, f = "", c, s, l, m,
|
|
1812
|
-
if (s =
|
|
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 (
|
|
1816
|
-
if (
|
|
1868
|
+
else if (C > 0) {
|
|
1869
|
+
if (!D.compareByGeneratedPositionsInflated(s, y[C - 1]))
|
|
1817
1870
|
continue;
|
|
1818
1871
|
c += ",";
|
|
1819
1872
|
}
|
|
1820
|
-
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
|
-
|
|
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 =
|
|
1829
|
-
var i =
|
|
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
|
-
|
|
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
|
-
|
|
1895
|
+
ne.prototype.toString = function() {
|
|
1843
1896
|
return JSON.stringify(this.toJSON());
|
|
1844
1897
|
};
|
|
1845
|
-
var
|
|
1846
|
-
const
|
|
1847
|
-
function
|
|
1848
|
-
const e = new
|
|
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(
|
|
1864
|
-
if (
|
|
1865
|
-
const
|
|
1866
|
-
(r.line !==
|
|
1867
|
-
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,
|
|
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(
|
|
1876
|
-
for (let q = 0; q <
|
|
1877
|
-
|
|
1878
|
-
l(
|
|
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
|
|
1889
|
-
if (t ===
|
|
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
|
-
},
|
|
1947
|
+
}, Gr = [
|
|
1895
1948
|
[k, k],
|
|
1896
1949
|
[k, N],
|
|
1897
1950
|
[k, ie],
|
|
1898
1951
|
[k, se],
|
|
1899
1952
|
[k, "-"],
|
|
1900
|
-
[k,
|
|
1901
|
-
[k,
|
|
1902
|
-
[k,
|
|
1953
|
+
[k, L],
|
|
1954
|
+
[k, P],
|
|
1955
|
+
[k, I],
|
|
1903
1956
|
[k, oe],
|
|
1904
|
-
[k,
|
|
1905
|
-
[
|
|
1906
|
-
[
|
|
1907
|
-
[
|
|
1908
|
-
[
|
|
1909
|
-
[
|
|
1910
|
-
[
|
|
1911
|
-
[
|
|
1912
|
-
[
|
|
1913
|
-
[
|
|
1914
|
-
[
|
|
1915
|
-
[
|
|
1916
|
-
[
|
|
1917
|
-
[
|
|
1918
|
-
[
|
|
1919
|
-
[
|
|
1920
|
-
[
|
|
1921
|
-
[
|
|
1922
|
-
[
|
|
1923
|
-
[
|
|
1924
|
-
[
|
|
1925
|
-
[
|
|
1926
|
-
[
|
|
1927
|
-
[
|
|
1928
|
-
[
|
|
1929
|
-
[
|
|
1930
|
-
[
|
|
1931
|
-
[
|
|
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
|
-
["#",
|
|
1938
|
-
["#",
|
|
1939
|
-
["#",
|
|
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
|
-
["-",
|
|
1948
|
-
["-",
|
|
1949
|
-
["-",
|
|
2000
|
+
["-", L],
|
|
2001
|
+
["-", P],
|
|
2002
|
+
["-", I],
|
|
1950
2003
|
["-", oe],
|
|
1951
2004
|
// https://github.com/w3c/csswg-drafts/pull/6874
|
|
1952
|
-
[
|
|
1953
|
-
[
|
|
1954
|
-
[
|
|
1955
|
-
[
|
|
1956
|
-
[
|
|
1957
|
-
[
|
|
1958
|
-
[
|
|
1959
|
-
[
|
|
1960
|
-
[
|
|
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
|
-
[".",
|
|
1970
|
-
[".",
|
|
1971
|
-
[".",
|
|
1972
|
-
["+",
|
|
1973
|
-
["+",
|
|
1974
|
-
["+",
|
|
2022
|
+
[".", L],
|
|
2023
|
+
[".", P],
|
|
2024
|
+
[".", I],
|
|
2025
|
+
["+", L],
|
|
2026
|
+
["+", P],
|
|
2027
|
+
["+", I],
|
|
1975
2028
|
["/", "*"]
|
|
1976
|
-
],
|
|
1977
|
-
[k,
|
|
1978
|
-
[
|
|
1979
|
-
[
|
|
1980
|
-
[
|
|
1981
|
-
[
|
|
1982
|
-
[
|
|
1983
|
-
[
|
|
1984
|
-
[
|
|
1985
|
-
[
|
|
1986
|
-
[
|
|
1987
|
-
[
|
|
1988
|
-
[
|
|
1989
|
-
[
|
|
1990
|
-
[
|
|
1991
|
-
[
|
|
1992
|
-
[
|
|
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
|
|
2047
|
+
function Hr(t) {
|
|
1995
2048
|
const e = new Set(
|
|
1996
|
-
t.map(([n, r]) =>
|
|
2049
|
+
t.map(([n, r]) => rn(n) << 16 | rn(r))
|
|
1997
2050
|
);
|
|
1998
2051
|
return function(n, r, i) {
|
|
1999
|
-
const o =
|
|
2000
|
-
return (a ===
|
|
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
|
|
2056
|
+
const Qs = Hr(Gr), Wr = Hr(Ks), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2004
2057
|
__proto__: null,
|
|
2005
|
-
safe:
|
|
2006
|
-
spec:
|
|
2007
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2008
|
-
function
|
|
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
|
|
2019
|
-
|
|
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
|
|
2076
|
+
function Zs(t) {
|
|
2024
2077
|
const e = /* @__PURE__ */ new Map();
|
|
2025
|
-
for (let n
|
|
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:
|
|
2088
|
+
tokenBefore: Wr,
|
|
2038
2089
|
token(c, s) {
|
|
2039
|
-
o = this.tokenBefore(o, c, s), this.emit(s, c, !1), c ===
|
|
2040
|
-
`,
|
|
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 =
|
|
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:
|
|
2103
|
+
children: Ys,
|
|
2053
2104
|
token: (c, s) => a.token(c, s),
|
|
2054
|
-
tokenize:
|
|
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(
|
|
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.
|
|
2114
|
+
this.children(t);
|
|
2084
2115
|
}
|
|
2085
2116
|
function no(t) {
|
|
2086
|
-
this.children(t, (e) => {
|
|
2087
|
-
e.type === "Declaration" && this.token(
|
|
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(
|
|
2122
|
+
this.token($, "["), this.children(t), this.token($, "]");
|
|
2092
2123
|
}
|
|
2093
|
-
function io(
|
|
2094
|
-
this.token(
|
|
2124
|
+
function io() {
|
|
2125
|
+
this.token(oe, "-->");
|
|
2095
2126
|
}
|
|
2096
|
-
function so(
|
|
2097
|
-
this.token(
|
|
2127
|
+
function so() {
|
|
2128
|
+
this.token(Er, "<!--");
|
|
2098
2129
|
}
|
|
2099
2130
|
function oo(t) {
|
|
2100
|
-
this.token(
|
|
2131
|
+
this.token(he, "/*" + t.value + "*/");
|
|
2101
2132
|
}
|
|
2102
2133
|
function ao(t) {
|
|
2103
|
-
|
|
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.
|
|
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.
|
|
2142
|
+
this.children(t, (e) => {
|
|
2143
|
+
e.type === "Declaration" && this.token(bt, ";");
|
|
2144
|
+
});
|
|
2110
2145
|
}
|
|
2111
2146
|
function uo(t) {
|
|
2112
|
-
this.
|
|
2147
|
+
this.token(I, t.value + t.unit);
|
|
2113
2148
|
}
|
|
2114
2149
|
function ho(t) {
|
|
2115
|
-
this.token(
|
|
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(
|
|
2153
|
+
this.token(N, t.feature + "("), this.node(t.value), this.token(O, ")");
|
|
2119
2154
|
}
|
|
2120
2155
|
function po(t) {
|
|
2121
|
-
this.node(t.
|
|
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.
|
|
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 ===
|
|
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
|
|
2147
|
-
this.token(ie,
|
|
2220
|
+
function Fo(t) {
|
|
2221
|
+
this.token(ie, Mo(t.value));
|
|
2148
2222
|
}
|
|
2149
|
-
function
|
|
2223
|
+
function zo(t) {
|
|
2150
2224
|
this.children(t);
|
|
2151
2225
|
}
|
|
2152
|
-
function
|
|
2153
|
-
this.token(
|
|
2226
|
+
function Ro(t) {
|
|
2227
|
+
this.token(J, t.value);
|
|
2154
2228
|
}
|
|
2155
|
-
const
|
|
2229
|
+
const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2156
2230
|
__proto__: null,
|
|
2157
|
-
AnPlusB:
|
|
2158
|
-
Atrule:
|
|
2159
|
-
AtrulePrelude:
|
|
2160
|
-
AttributeSelector:
|
|
2161
|
-
Block:
|
|
2162
|
-
Brackets:
|
|
2163
|
-
CDC:
|
|
2164
|
-
CDO:
|
|
2165
|
-
ClassSelector:
|
|
2166
|
-
Combinator:
|
|
2167
|
-
Comment:
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
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
|
-
},
|
|
2204
|
-
class
|
|
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
|
|
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
|
|
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
|
|
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" ?
|
|
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
|
|
2334
|
+
return xr(this, e);
|
|
2248
2335
|
}
|
|
2249
2336
|
isGreaterThan(e) {
|
|
2250
|
-
return
|
|
2337
|
+
return Cr(this, e);
|
|
2251
2338
|
}
|
|
2252
2339
|
isLessThan(e) {
|
|
2253
|
-
return
|
|
2340
|
+
return br(this, e);
|
|
2254
2341
|
}
|
|
2255
2342
|
static calculate(e) {
|
|
2256
|
-
return
|
|
2343
|
+
return We(e);
|
|
2344
|
+
}
|
|
2345
|
+
static calculateForAST(e) {
|
|
2346
|
+
return Ct(e);
|
|
2257
2347
|
}
|
|
2258
2348
|
static compare(e, n) {
|
|
2259
|
-
return
|
|
2349
|
+
return Xe(e, n);
|
|
2260
2350
|
}
|
|
2261
2351
|
static equals(e, n) {
|
|
2262
|
-
return
|
|
2352
|
+
return xr(e, n);
|
|
2263
2353
|
}
|
|
2264
2354
|
static lessThan(e, n) {
|
|
2265
|
-
return
|
|
2355
|
+
return br(e, n);
|
|
2266
2356
|
}
|
|
2267
2357
|
static greaterThan(e, n) {
|
|
2268
|
-
return
|
|
2358
|
+
return Cr(e, n);
|
|
2269
2359
|
}
|
|
2270
2360
|
static min(...e) {
|
|
2271
|
-
return
|
|
2361
|
+
return Uo(...e);
|
|
2272
2362
|
}
|
|
2273
2363
|
static max(...e) {
|
|
2274
|
-
return
|
|
2364
|
+
return fn(...e);
|
|
2275
2365
|
}
|
|
2276
2366
|
static sortAsc(...e) {
|
|
2277
|
-
return
|
|
2367
|
+
return Qr(...e);
|
|
2278
2368
|
}
|
|
2279
2369
|
static sortDesc(...e) {
|
|
2280
|
-
return
|
|
2370
|
+
return Jr(...e);
|
|
2281
2371
|
}
|
|
2282
2372
|
}
|
|
2283
|
-
const
|
|
2284
|
-
|
|
2285
|
-
a
|
|
2286
|
-
|
|
2287
|
-
|
|
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
|
|
2380
|
+
e += 1;
|
|
2293
2381
|
break;
|
|
2294
2382
|
case "AttributeSelector":
|
|
2295
2383
|
case "ClassSelector":
|
|
2296
|
-
|
|
2384
|
+
n += 1;
|
|
2297
2385
|
break;
|
|
2298
2386
|
case "PseudoClassSelector":
|
|
2299
|
-
switch (
|
|
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 (
|
|
2310
|
-
const
|
|
2311
|
-
e
|
|
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 (
|
|
2317
|
-
const
|
|
2318
|
-
e
|
|
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 (
|
|
2324
|
-
const
|
|
2325
|
-
let
|
|
2326
|
-
|
|
2327
|
-
if (
|
|
2328
|
-
if (
|
|
2329
|
-
return
|
|
2330
|
-
|
|
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
|
|
2333
|
-
e
|
|
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
|
-
|
|
2430
|
+
r += 1;
|
|
2341
2431
|
break;
|
|
2342
2432
|
default:
|
|
2343
|
-
|
|
2433
|
+
n += 1;
|
|
2344
2434
|
break;
|
|
2345
2435
|
}
|
|
2346
2436
|
break;
|
|
2347
2437
|
case "PseudoElementSelector":
|
|
2348
|
-
switch (
|
|
2438
|
+
switch (i.name) {
|
|
2349
2439
|
case "slotted":
|
|
2350
|
-
if (
|
|
2351
|
-
const
|
|
2352
|
-
let
|
|
2353
|
-
|
|
2354
|
-
if (
|
|
2355
|
-
if (
|
|
2356
|
-
return
|
|
2357
|
-
|
|
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
|
|
2360
|
-
e
|
|
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 (
|
|
2457
|
+
if (i.children && i.children.first.value === "*")
|
|
2368
2458
|
break;
|
|
2369
|
-
|
|
2459
|
+
r += 1;
|
|
2370
2460
|
break;
|
|
2371
2461
|
default:
|
|
2372
|
-
|
|
2462
|
+
r += 1;
|
|
2373
2463
|
break;
|
|
2374
2464
|
}
|
|
2375
2465
|
break;
|
|
2376
2466
|
case "TypeSelector":
|
|
2377
|
-
let
|
|
2378
|
-
|
|
2467
|
+
let o = i.name;
|
|
2468
|
+
o.includes("|") && (o = o.split("|")[1]), o !== "*" && (r += 1);
|
|
2379
2469
|
break;
|
|
2380
2470
|
}
|
|
2381
|
-
}), new
|
|
2382
|
-
},
|
|
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
|
|
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
|
|
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
|
-
},
|
|
2495
|
+
}, We = (t) => {
|
|
2406
2496
|
if (!t)
|
|
2407
2497
|
return [];
|
|
2408
|
-
const e =
|
|
2498
|
+
const e = Go(t);
|
|
2409
2499
|
if (e.type === "Selector")
|
|
2410
|
-
return [
|
|
2500
|
+
return [Ct(t)];
|
|
2411
2501
|
if (e.type === "SelectorList") {
|
|
2412
2502
|
const n = [];
|
|
2413
2503
|
return e.children.forEach((r) => {
|
|
2414
|
-
const i =
|
|
2504
|
+
const i = Ct(r);
|
|
2415
2505
|
n.push(i);
|
|
2416
2506
|
}), n;
|
|
2417
2507
|
}
|
|
2418
2508
|
};
|
|
2419
|
-
function
|
|
2509
|
+
function wn(t, e) {
|
|
2420
2510
|
return e >= 65 && e <= 90 && (e = e | 32), t === e;
|
|
2421
2511
|
}
|
|
2422
|
-
function
|
|
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 (
|
|
2517
|
+
if (wn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
|
|
2428
2518
|
return !1;
|
|
2429
2519
|
return !0;
|
|
2430
2520
|
}
|
|
2431
|
-
function
|
|
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 (
|
|
2527
|
+
if (wn(t.charCodeAt(i - r), e.charCodeAt(i)) === !1)
|
|
2438
2528
|
return !1;
|
|
2439
2529
|
return !0;
|
|
2440
2530
|
}
|
|
2441
|
-
function
|
|
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 (
|
|
2536
|
+
if (wn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
|
|
2447
2537
|
return !1;
|
|
2448
2538
|
return !0;
|
|
2449
2539
|
}
|
|
2450
|
-
const
|
|
2451
|
-
function
|
|
2540
|
+
const Ho = "Atrule", Wo = "MediaQuery", Ko = "MediaFeature", Qo = "Rule", An = "Selector", Yr = "TypeSelector", Je = "PseudoClassSelector", Xr = "AttributeSelector", Zr = "PseudoElementSelector", pn = "Declaration", Jo = "Value", pe = "Identifier", Yo = "Nth", Xo = "Combinator", Zo = "Number", ei = "Dimension", Fe = "Operator", ea = "Hash", ta = "Url", Ln = "Function";
|
|
2541
|
+
function wr(t, e, n) {
|
|
2452
2542
|
let r = t.value.children.first;
|
|
2453
|
-
return
|
|
2543
|
+
return W(e, t.property) && r.type === pe && W(n, r.name);
|
|
2454
2544
|
}
|
|
2455
|
-
function
|
|
2545
|
+
function na(t) {
|
|
2456
2546
|
let e = !1;
|
|
2457
|
-
return
|
|
2458
|
-
if (n.type ===
|
|
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
|
|
2552
|
+
function ra(t) {
|
|
2463
2553
|
let e = !1;
|
|
2464
|
-
return
|
|
2554
|
+
return fe(t, function(n) {
|
|
2465
2555
|
let r = n.children, i = n.name, o = n.value;
|
|
2466
|
-
if (n.type ===
|
|
2556
|
+
if (n.type === Wo && r.size === 1 && r.first.type === pe) {
|
|
2467
2557
|
let a = r.first.name;
|
|
2468
|
-
if (
|
|
2558
|
+
if (vn("\\0", a) || ge("\\9 ", a))
|
|
2469
2559
|
return e = !0, this.break;
|
|
2470
|
-
} else if (n.type ===
|
|
2471
|
-
if (o
|
|
2560
|
+
} else if (n.type === Ko) {
|
|
2561
|
+
if (o && o.unit && o.unit === "\\0")
|
|
2472
2562
|
return e = !0, this.break;
|
|
2473
|
-
if (
|
|
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 (
|
|
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
|
|
2486
|
-
function
|
|
2487
|
-
return t.charCodeAt(0) ===
|
|
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
|
|
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
|
|
2586
|
+
function ti(t, e) {
|
|
2500
2587
|
let n = [];
|
|
2501
|
-
return
|
|
2502
|
-
visit:
|
|
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
|
|
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
|
|
2606
|
+
function ri(t) {
|
|
2520
2607
|
let e = !1;
|
|
2521
|
-
return
|
|
2522
|
-
if (n.type ===
|
|
2608
|
+
return fe(t, function(n) {
|
|
2609
|
+
if (n.type === Xr) {
|
|
2523
2610
|
let r = n.name.name;
|
|
2524
|
-
if (
|
|
2611
|
+
if (W("role", r) || vn("aria-", r))
|
|
2525
2612
|
return e = !0, this.break;
|
|
2526
|
-
} else if (n.type ===
|
|
2527
|
-
let r =
|
|
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
|
|
2624
|
+
function ia(t) {
|
|
2538
2625
|
let e = !1;
|
|
2539
|
-
return
|
|
2626
|
+
return fe(t, function(n) {
|
|
2540
2627
|
let r = n.type;
|
|
2541
|
-
if ((r ===
|
|
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
|
|
2632
|
+
function sa(t) {
|
|
2546
2633
|
let e = [];
|
|
2547
|
-
return
|
|
2548
|
-
n.type ===
|
|
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
|
|
2638
|
+
function ii(t) {
|
|
2552
2639
|
let e = 0;
|
|
2553
|
-
return
|
|
2640
|
+
return fe(t, function(n) {
|
|
2554
2641
|
let r = n.type;
|
|
2555
|
-
if (!(r ===
|
|
2556
|
-
if (e++, (r ===
|
|
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 ===
|
|
2559
|
-
let i =
|
|
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
|
|
2569
|
-
|
|
2570
|
-
if (n.type ===
|
|
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
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
2870
|
+
]), ua = new ae([
|
|
2784
2871
|
"transparent",
|
|
2785
2872
|
"currentcolor"
|
|
2786
|
-
]),
|
|
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
|
|
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 ===
|
|
2887
|
+
return r.type === pe && Lt.has(r.name);
|
|
2801
2888
|
}
|
|
2802
|
-
const
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
2823
|
-
function
|
|
2909
|
+
]), pa = 44, Ar = 47;
|
|
2910
|
+
function on(t) {
|
|
2824
2911
|
let e = t.children.first;
|
|
2825
|
-
return e === null ? !1 : e.type ===
|
|
2912
|
+
return e === null ? !1 : e.type === pe && ha.has(e.name);
|
|
2826
2913
|
}
|
|
2827
|
-
function
|
|
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 ===
|
|
2918
|
+
if (f.type === pe && Lt.has(f.name) && n({
|
|
2832
2919
|
type: "keyword",
|
|
2833
2920
|
value: f.name
|
|
2834
|
-
}), l && l.type ===
|
|
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 ===
|
|
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 ===
|
|
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 !==
|
|
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 ===
|
|
2938
|
+
if (f.type === pe) {
|
|
2852
2939
|
let m = f.name;
|
|
2853
|
-
if (
|
|
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
|
|
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
|
-
]),
|
|
2971
|
+
]), ga = new ae([
|
|
2885
2972
|
"cubic-bezier",
|
|
2886
2973
|
"steps"
|
|
2887
2974
|
]);
|
|
2888
|
-
function
|
|
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 ===
|
|
2979
|
+
i === Fe ? n = !1 : i === ei && n === !1 ? (n = !0, e({
|
|
2893
2980
|
type: "duration",
|
|
2894
2981
|
value: r
|
|
2895
|
-
})) : i ===
|
|
2982
|
+
})) : i === pe ? ma.has(o) ? e({
|
|
2896
2983
|
type: "fn",
|
|
2897
2984
|
value: r
|
|
2898
|
-
}) :
|
|
2985
|
+
}) : Lt.has(o) && e({
|
|
2899
2986
|
type: "keyword",
|
|
2900
2987
|
value: r
|
|
2901
|
-
}) : i ===
|
|
2988
|
+
}) : i === Ln && ga.has(o) && e({
|
|
2902
2989
|
type: "fn",
|
|
2903
2990
|
value: r
|
|
2904
2991
|
});
|
|
2905
2992
|
}
|
|
2906
2993
|
}
|
|
2907
|
-
function
|
|
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 ===
|
|
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(
|
|
2965
|
-
let
|
|
3051
|
+
let m = s.map(function(y) {
|
|
3052
|
+
let C = y * 4;
|
|
2966
3053
|
return {
|
|
2967
|
-
line: o[
|
|
2968
|
-
column: o[
|
|
2969
|
-
offset: o[
|
|
2970
|
-
length: o[
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
3060
|
-
if (
|
|
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
|
|
3151
|
+
function En(t) {
|
|
3065
3152
|
return t.length < 3 ? !1 : t.charCodeAt(0) === 45 && t.charCodeAt(1) === 45;
|
|
3066
3153
|
}
|
|
3067
|
-
function
|
|
3068
|
-
return
|
|
3154
|
+
function G(t, e) {
|
|
3155
|
+
return En(e) ? !1 : ge(t, e);
|
|
3069
3156
|
}
|
|
3070
|
-
function
|
|
3071
|
-
return
|
|
3157
|
+
function xa(t) {
|
|
3158
|
+
return we(t) ? t.slice(t.indexOf("-", 2) + 1) : t;
|
|
3072
3159
|
}
|
|
3073
|
-
function
|
|
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
|
|
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 ===
|
|
3168
|
+
return n && n.type === pe && ge("\\9", n.name);
|
|
3082
3169
|
}
|
|
3083
3170
|
return !1;
|
|
3084
3171
|
}
|
|
3085
|
-
let
|
|
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
|
|
3183
|
+
function B(t, e) {
|
|
3097
3184
|
return e === 0 ? 0 : t / e;
|
|
3098
3185
|
}
|
|
3099
|
-
let
|
|
3186
|
+
let va = {
|
|
3100
3187
|
useLocations: !1
|
|
3101
3188
|
};
|
|
3102
|
-
function
|
|
3103
|
-
let r = Object.assign({},
|
|
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
|
|
3109
|
-
return t.substring(
|
|
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(),
|
|
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
|
-
}),
|
|
3125
|
-
|
|
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
|
|
3214
|
+
case Ho: {
|
|
3128
3215
|
q++;
|
|
3129
|
-
let
|
|
3130
|
-
if (
|
|
3131
|
-
let
|
|
3132
|
-
r &&
|
|
3133
|
-
|
|
3134
|
-
}),
|
|
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
|
|
3224
|
+
let S = 1;
|
|
3138
3225
|
if (d.prelude !== null) {
|
|
3139
|
-
let
|
|
3140
|
-
if (
|
|
3141
|
-
|
|
3142
|
-
else if (
|
|
3143
|
-
u.p(
|
|
3144
|
-
else if (
|
|
3145
|
-
let
|
|
3146
|
-
|
|
3147
|
-
} else
|
|
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
|
-
|
|
3150
|
-
|
|
3236
|
+
v === "layer" && (qe.p("<anonymous>", d.loc), S++);
|
|
3237
|
+
V.push(S);
|
|
3151
3238
|
break;
|
|
3152
3239
|
}
|
|
3153
|
-
case
|
|
3154
|
-
let
|
|
3155
|
-
|
|
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
|
|
3159
|
-
let
|
|
3160
|
-
if (this.atrule &&
|
|
3161
|
-
return
|
|
3162
|
-
|
|
3163
|
-
let
|
|
3164
|
-
if (
|
|
3165
|
-
for (let
|
|
3166
|
-
|
|
3167
|
-
let
|
|
3168
|
-
|
|
3169
|
-
let
|
|
3170
|
-
return
|
|
3171
|
-
|
|
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
|
|
3261
|
+
case ei: {
|
|
3175
3262
|
if (!this.declaration)
|
|
3176
3263
|
break;
|
|
3177
|
-
let
|
|
3178
|
-
return
|
|
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
|
|
3181
|
-
if (
|
|
3182
|
-
let
|
|
3183
|
-
l.total++, s +=
|
|
3184
|
-
let
|
|
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
|
|
3196
|
-
|
|
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
|
|
3285
|
+
let A = {
|
|
3199
3286
|
count: 1,
|
|
3200
|
-
size:
|
|
3287
|
+
size: S
|
|
3201
3288
|
};
|
|
3202
|
-
r && (
|
|
3289
|
+
r && (A.uniqueWithLocations = [b]), l.unique.set(T, A);
|
|
3203
3290
|
}
|
|
3204
3291
|
}
|
|
3205
3292
|
break;
|
|
3206
3293
|
}
|
|
3207
|
-
case
|
|
3208
|
-
if (
|
|
3209
|
-
|
|
3294
|
+
case Jo: {
|
|
3295
|
+
if (ut(d)) {
|
|
3296
|
+
Mt.push(1), Ve.p(o(d), d.loc);
|
|
3210
3297
|
break;
|
|
3211
3298
|
}
|
|
3212
|
-
let
|
|
3213
|
-
|
|
3214
|
-
let
|
|
3215
|
-
if (
|
|
3216
|
-
return
|
|
3217
|
-
if (
|
|
3218
|
-
if (
|
|
3219
|
-
let { font_size:
|
|
3220
|
-
|
|
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
|
-
|
|
3309
|
+
Z && zt.p(Z, w), E && Rt.p(E, w), R && qt.p(R, w);
|
|
3223
3310
|
break;
|
|
3224
|
-
} else if (
|
|
3225
|
-
|
|
3311
|
+
} else if (G("font-size", S)) {
|
|
3312
|
+
on(d) || Rt.p(o(d), w);
|
|
3226
3313
|
break;
|
|
3227
|
-
} else if (
|
|
3228
|
-
|
|
3314
|
+
} else if (G("font-family", S)) {
|
|
3315
|
+
on(d) || zt.p(o(d), w);
|
|
3229
3316
|
break;
|
|
3230
|
-
} else if (
|
|
3231
|
-
|
|
3232
|
-
else if (
|
|
3233
|
-
|
|
3234
|
-
|
|
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 (
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
}) :
|
|
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 (
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
}) :
|
|
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 (
|
|
3248
|
-
|
|
3334
|
+
} else if (wa.has(xa(S))) {
|
|
3335
|
+
ut(d) || Wn.push(o(d), S, w);
|
|
3249
3336
|
break;
|
|
3250
|
-
} else
|
|
3251
|
-
|
|
3252
|
-
let
|
|
3253
|
-
switch (
|
|
3254
|
-
case
|
|
3255
|
-
let
|
|
3256
|
-
return
|
|
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
|
|
3259
|
-
|
|
3260
|
-
let
|
|
3261
|
-
if (
|
|
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 (
|
|
3264
|
-
let
|
|
3265
|
-
|
|
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 (
|
|
3269
|
-
let
|
|
3270
|
-
|
|
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 (
|
|
3274
|
-
let
|
|
3275
|
-
|
|
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
|
|
3281
|
-
if (
|
|
3367
|
+
case Ln: {
|
|
3368
|
+
if (W("var", R))
|
|
3282
3369
|
return this.skip;
|
|
3283
|
-
if (
|
|
3284
|
-
|
|
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 (
|
|
3288
|
-
|
|
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
|
|
3383
|
+
case pn: {
|
|
3297
3384
|
if (this.atrulePrelude !== null)
|
|
3298
3385
|
return this.skip;
|
|
3299
|
-
|
|
3300
|
-
let
|
|
3301
|
-
|
|
3302
|
-
let { property:
|
|
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:
|
|
3305
|
-
column:
|
|
3306
|
-
offset:
|
|
3391
|
+
line: T.line,
|
|
3392
|
+
column: T.column,
|
|
3393
|
+
offset: T.offset
|
|
3307
3394
|
},
|
|
3308
3395
|
end: {
|
|
3309
|
-
offset:
|
|
3396
|
+
offset: T.offset + S.length
|
|
3310
3397
|
}
|
|
3311
3398
|
};
|
|
3312
|
-
|
|
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
|
|
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 +
|
|
3321
|
-
linesOfCode:
|
|
3322
|
-
size:
|
|
3323
|
-
complexity:
|
|
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:
|
|
3418
|
+
ratio: B(s, Jn)
|
|
3332
3419
|
},
|
|
3333
3420
|
types: {
|
|
3334
3421
|
total: l.total,
|
|
3335
3422
|
totalUnique: l.unique.size,
|
|
3336
|
-
uniquenessRatio:
|
|
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:
|
|
3343
|
-
total:
|
|
3344
|
-
totalUnique:
|
|
3345
|
-
unique:
|
|
3346
|
-
uniquenessRatio:
|
|
3429
|
+
fontface: M({
|
|
3430
|
+
total: Gt,
|
|
3431
|
+
totalUnique: Gt,
|
|
3432
|
+
unique: de,
|
|
3433
|
+
uniquenessRatio: Gt === 0 ? 0 : 1
|
|
3347
3434
|
}, r ? {
|
|
3348
|
-
uniqueWithLocations:
|
|
3435
|
+
uniqueWithLocations: Oe.c().uniqueWithLocations
|
|
3349
3436
|
} : {}),
|
|
3350
|
-
import:
|
|
3351
|
-
media:
|
|
3352
|
-
|
|
3437
|
+
import: Y.c(),
|
|
3438
|
+
media: M(
|
|
3439
|
+
Ze.c(),
|
|
3353
3440
|
{
|
|
3354
|
-
browserhacks:
|
|
3441
|
+
browserhacks: et.c()
|
|
3355
3442
|
}
|
|
3356
3443
|
),
|
|
3357
|
-
charset:
|
|
3358
|
-
supports:
|
|
3444
|
+
charset: tt.c(),
|
|
3445
|
+
supports: M(
|
|
3359
3446
|
u.c(),
|
|
3360
3447
|
{
|
|
3361
3448
|
browserhacks: h.c()
|
|
3362
3449
|
}
|
|
3363
3450
|
),
|
|
3364
|
-
keyframes:
|
|
3451
|
+
keyframes: M(
|
|
3365
3452
|
g.c(),
|
|
3366
3453
|
{
|
|
3367
|
-
prefixed:
|
|
3454
|
+
prefixed: M(
|
|
3368
3455
|
p.c(),
|
|
3369
3456
|
{
|
|
3370
|
-
ratio:
|
|
3457
|
+
ratio: B(p.size(), g.size())
|
|
3371
3458
|
}
|
|
3372
3459
|
)
|
|
3373
3460
|
}
|
|
3374
3461
|
),
|
|
3375
|
-
container:
|
|
3376
|
-
layer:
|
|
3377
|
-
property:
|
|
3462
|
+
container: X.c(),
|
|
3463
|
+
layer: qe.c(),
|
|
3464
|
+
property: j.c(),
|
|
3378
3465
|
total: q,
|
|
3379
|
-
complexity:
|
|
3466
|
+
complexity: Yn
|
|
3380
3467
|
},
|
|
3381
3468
|
rules: {
|
|
3382
|
-
total:
|
|
3469
|
+
total: Se,
|
|
3383
3470
|
empty: {
|
|
3384
3471
|
total: z,
|
|
3385
|
-
ratio:
|
|
3472
|
+
ratio: B(z, Se)
|
|
3386
3473
|
},
|
|
3387
|
-
sizes:
|
|
3388
|
-
|
|
3474
|
+
sizes: M(
|
|
3475
|
+
xe.aggregate(),
|
|
3389
3476
|
{
|
|
3390
|
-
items:
|
|
3477
|
+
items: xe.toArray()
|
|
3391
3478
|
},
|
|
3392
|
-
|
|
3479
|
+
_n.c()
|
|
3393
3480
|
),
|
|
3394
|
-
selectors:
|
|
3395
|
-
|
|
3481
|
+
selectors: M(
|
|
3482
|
+
me.aggregate(),
|
|
3396
3483
|
{
|
|
3397
|
-
items:
|
|
3484
|
+
items: me.toArray()
|
|
3398
3485
|
},
|
|
3399
|
-
|
|
3486
|
+
Tn.c()
|
|
3400
3487
|
),
|
|
3401
|
-
declarations:
|
|
3402
|
-
|
|
3488
|
+
declarations: M(
|
|
3489
|
+
Et.aggregate(),
|
|
3403
3490
|
{
|
|
3404
|
-
items:
|
|
3491
|
+
items: Et.toArray()
|
|
3405
3492
|
},
|
|
3406
|
-
|
|
3493
|
+
On.c()
|
|
3407
3494
|
)
|
|
3408
3495
|
},
|
|
3409
3496
|
selectors: {
|
|
3410
3497
|
total: Ne,
|
|
3411
|
-
totalUnique:
|
|
3412
|
-
uniquenessRatio:
|
|
3413
|
-
specificity:
|
|
3498
|
+
totalUnique: Qn,
|
|
3499
|
+
uniquenessRatio: B(Qn, Ne),
|
|
3500
|
+
specificity: M(
|
|
3414
3501
|
{
|
|
3415
3502
|
/** @type Specificity */
|
|
3416
|
-
min:
|
|
3503
|
+
min: Ae === void 0 ? [0, 0, 0] : Ae,
|
|
3417
3504
|
/** @type Specificity */
|
|
3418
|
-
max:
|
|
3505
|
+
max: ve === void 0 ? [0, 0, 0] : ve,
|
|
3419
3506
|
/** @type Specificity */
|
|
3420
|
-
sum: [
|
|
3507
|
+
sum: [jt.sum, Ut.sum, Vt.sum],
|
|
3421
3508
|
/** @type Specificity */
|
|
3422
|
-
mean: [
|
|
3509
|
+
mean: [jt.mean, Ut.mean, Vt.mean],
|
|
3423
3510
|
/** @type Specificity */
|
|
3424
|
-
mode: [
|
|
3511
|
+
mode: [jt.mode, Ut.mode, Vt.mode],
|
|
3425
3512
|
/** @type Specificity */
|
|
3426
|
-
items:
|
|
3513
|
+
items: Fn
|
|
3427
3514
|
},
|
|
3428
|
-
|
|
3515
|
+
Pn.c()
|
|
3429
3516
|
),
|
|
3430
|
-
complexity:
|
|
3431
|
-
|
|
3432
|
-
|
|
3517
|
+
complexity: M(
|
|
3518
|
+
Xn,
|
|
3519
|
+
Mn.c(),
|
|
3433
3520
|
{
|
|
3434
|
-
items:
|
|
3521
|
+
items: nt.toArray()
|
|
3435
3522
|
}
|
|
3436
3523
|
),
|
|
3437
|
-
id:
|
|
3438
|
-
|
|
3524
|
+
id: M(
|
|
3525
|
+
Ot.c(),
|
|
3439
3526
|
{
|
|
3440
|
-
ratio:
|
|
3527
|
+
ratio: B(Ot.size(), Ne)
|
|
3441
3528
|
}
|
|
3442
3529
|
),
|
|
3443
|
-
pseudoClasses:
|
|
3444
|
-
accessibility:
|
|
3445
|
-
|
|
3530
|
+
pseudoClasses: zn.c(),
|
|
3531
|
+
accessibility: M(
|
|
3532
|
+
It.c(),
|
|
3446
3533
|
{
|
|
3447
|
-
ratio:
|
|
3534
|
+
ratio: B(It.size(), Ne)
|
|
3448
3535
|
}
|
|
3449
3536
|
),
|
|
3450
|
-
keyframes:
|
|
3451
|
-
prefixed:
|
|
3452
|
-
|
|
3537
|
+
keyframes: _t.c(),
|
|
3538
|
+
prefixed: M(
|
|
3539
|
+
Tt.c(),
|
|
3453
3540
|
{
|
|
3454
|
-
ratio:
|
|
3541
|
+
ratio: B(Tt.size(), Ne)
|
|
3455
3542
|
}
|
|
3456
3543
|
),
|
|
3457
|
-
combinators:
|
|
3544
|
+
combinators: Rn.c()
|
|
3458
3545
|
},
|
|
3459
3546
|
declarations: {
|
|
3460
|
-
total:
|
|
3461
|
-
totalUnique:
|
|
3462
|
-
uniquenessRatio:
|
|
3547
|
+
total: Be,
|
|
3548
|
+
totalUnique: Kn,
|
|
3549
|
+
uniquenessRatio: B(Kn, Be),
|
|
3463
3550
|
importants: {
|
|
3464
|
-
total:
|
|
3465
|
-
ratio:
|
|
3551
|
+
total: rt,
|
|
3552
|
+
ratio: B(rt, Be),
|
|
3466
3553
|
inKeyframes: {
|
|
3467
|
-
total:
|
|
3468
|
-
ratio:
|
|
3554
|
+
total: $t,
|
|
3555
|
+
ratio: B($t, rt)
|
|
3469
3556
|
}
|
|
3470
3557
|
},
|
|
3471
|
-
complexity:
|
|
3558
|
+
complexity: Zn
|
|
3472
3559
|
},
|
|
3473
|
-
properties:
|
|
3474
|
-
|
|
3560
|
+
properties: M(
|
|
3561
|
+
je.c(),
|
|
3475
3562
|
{
|
|
3476
|
-
prefixed:
|
|
3477
|
-
|
|
3563
|
+
prefixed: M(
|
|
3564
|
+
Pt.c(),
|
|
3478
3565
|
{
|
|
3479
|
-
ratio:
|
|
3566
|
+
ratio: B(Pt.size(), je.size())
|
|
3480
3567
|
}
|
|
3481
3568
|
),
|
|
3482
|
-
custom:
|
|
3483
|
-
|
|
3569
|
+
custom: M(
|
|
3570
|
+
it.c(),
|
|
3484
3571
|
{
|
|
3485
|
-
ratio:
|
|
3486
|
-
importants:
|
|
3487
|
-
|
|
3572
|
+
ratio: B(it.size(), je.size()),
|
|
3573
|
+
importants: M(
|
|
3574
|
+
Nt.c(),
|
|
3488
3575
|
{
|
|
3489
|
-
ratio:
|
|
3576
|
+
ratio: B(Nt.size(), it.size())
|
|
3490
3577
|
}
|
|
3491
3578
|
)
|
|
3492
3579
|
}
|
|
3493
3580
|
),
|
|
3494
|
-
browserhacks:
|
|
3495
|
-
|
|
3581
|
+
browserhacks: M(
|
|
3582
|
+
Dt.c(),
|
|
3496
3583
|
{
|
|
3497
|
-
ratio:
|
|
3584
|
+
ratio: B(Dt.size(), je.size())
|
|
3498
3585
|
}
|
|
3499
3586
|
),
|
|
3500
|
-
complexity:
|
|
3587
|
+
complexity: er
|
|
3501
3588
|
}
|
|
3502
3589
|
),
|
|
3503
3590
|
values: {
|
|
3504
|
-
colors:
|
|
3505
|
-
|
|
3591
|
+
colors: M(
|
|
3592
|
+
Ie.count(),
|
|
3506
3593
|
{
|
|
3507
|
-
formats:
|
|
3594
|
+
formats: $e.c()
|
|
3508
3595
|
}
|
|
3509
3596
|
),
|
|
3510
|
-
gradients:
|
|
3511
|
-
fontFamilies:
|
|
3512
|
-
fontSizes:
|
|
3513
|
-
lineHeights:
|
|
3514
|
-
zindexes:
|
|
3515
|
-
textShadows:
|
|
3516
|
-
boxShadows:
|
|
3517
|
-
borderRadiuses:
|
|
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:
|
|
3520
|
-
timingFunctions:
|
|
3606
|
+
durations: ot.c(),
|
|
3607
|
+
timingFunctions: st.c()
|
|
3521
3608
|
},
|
|
3522
|
-
prefixes:
|
|
3523
|
-
browserhacks:
|
|
3524
|
-
units:
|
|
3525
|
-
complexity:
|
|
3526
|
-
keywords:
|
|
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:
|
|
3530
|
-
analyzeTime: Date.now() -
|
|
3616
|
+
parseTime: C - m,
|
|
3617
|
+
analyzeTime: Date.now() - C,
|
|
3531
3618
|
total: Date.now() - i
|
|
3532
3619
|
}
|
|
3533
3620
|
};
|
|
3534
3621
|
}
|
|
3535
|
-
function
|
|
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
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
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
|
};
|