@vue/devtools-electron 7.0.25 → 7.0.27
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/client/assets/{index-THmizwtr.css → index-D4yfbSKS.css} +1 -1
- package/client/assets/{index-De6CzrZK.js → index-N1hSW_y4.js} +73 -73
- package/client/assets/shellscript-D4k753MY.js +1 -0
- package/client/assets/unocss-runtime-COcjrKyN.js +2 -0
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +8346 -8328
- package/client/index.html +2 -2
- package/client/shellscript-DQ1J75ow.js +7 -0
- package/client/{unocss-runtime-Dc9jipnd.js → unocss-runtime-mlmxKvvC.js} +238 -230
- package/dist/devtools.js +125 -125
- package/dist/index.cjs +16 -16
- package/dist/index.js +16 -16
- package/dist/user-app.cjs +16 -16
- package/dist/user-app.iife.js +17 -17
- package/dist/user-app.js +16 -16
- package/package.json +5 -5
- package/client/assets/shellscript-BVYSsK7b.js +0 -1
- package/client/assets/unocss-runtime--QU4d9Ny.js +0 -2
- package/client/shellscript-CUUTQKn5.js +0 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Ve = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
|
|
2
|
-
function
|
|
1
|
+
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Ve = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, Ge = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
2
|
+
function He(e, t) {
|
|
3
3
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
4
|
-
|
|
4
|
+
Be(e);
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Be(e) {
|
|
10
10
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
11
11
|
}
|
|
12
12
|
function ze(e, t = {}) {
|
|
@@ -35,7 +35,7 @@ function ze(e, t = {}) {
|
|
|
35
35
|
if (s === "-infinity")
|
|
36
36
|
return Number.NEGATIVE_INFINITY;
|
|
37
37
|
}
|
|
38
|
-
if (!
|
|
38
|
+
if (!Ge.test(e)) {
|
|
39
39
|
if (t.strict)
|
|
40
40
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
41
41
|
return e;
|
|
@@ -44,7 +44,7 @@ function ze(e, t = {}) {
|
|
|
44
44
|
if (Fe.test(e) || Ve.test(e)) {
|
|
45
45
|
if (t.strict)
|
|
46
46
|
throw new Error("[destr] Possible prototype pollution");
|
|
47
|
-
return JSON.parse(e,
|
|
47
|
+
return JSON.parse(e, He);
|
|
48
48
|
}
|
|
49
49
|
return JSON.parse(e);
|
|
50
50
|
} catch (s) {
|
|
@@ -113,7 +113,7 @@ function ft(e = "", t) {
|
|
|
113
113
|
const o = e.indexOf("#");
|
|
114
114
|
o >= 0 && (n = e.slice(0, o), s = e.slice(o));
|
|
115
115
|
const [r, ...a] = n.split("?");
|
|
116
|
-
return (r.slice(0, -1) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
116
|
+
return ((r.endsWith("/") ? r.slice(0, -1) : r) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
117
117
|
}
|
|
118
118
|
function pt(e = "", t) {
|
|
119
119
|
if (!t)
|
|
@@ -208,22 +208,22 @@ function vt(e) {
|
|
|
208
208
|
a,
|
|
209
209
|
e.error ? { cause: e.error } : void 0
|
|
210
210
|
);
|
|
211
|
-
for (const
|
|
212
|
-
Object.defineProperty(l,
|
|
211
|
+
for (const _ of ["request", "options", "response"])
|
|
212
|
+
Object.defineProperty(l, _, {
|
|
213
213
|
get() {
|
|
214
|
-
return e[
|
|
214
|
+
return e[_];
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
|
-
for (const [
|
|
217
|
+
for (const [_, h] of [
|
|
218
218
|
["data", "_data"],
|
|
219
219
|
["status", "status"],
|
|
220
220
|
["statusCode", "status"],
|
|
221
221
|
["statusText", "statusText"],
|
|
222
222
|
["statusMessage", "statusText"]
|
|
223
223
|
])
|
|
224
|
-
Object.defineProperty(l,
|
|
224
|
+
Object.defineProperty(l, _, {
|
|
225
225
|
get() {
|
|
226
|
-
return e.response && e.response[
|
|
226
|
+
return e.response && e.response[h];
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
return l;
|
|
@@ -302,10 +302,9 @@ function Oe(e = {}) {
|
|
|
302
302
|
const u = l.response && l.response.status || 500;
|
|
303
303
|
if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(u) : Ot.has(u))) {
|
|
304
304
|
const d = l.options.retryDelay || 0;
|
|
305
|
-
return d > 0 && await new Promise((
|
|
305
|
+
return d > 0 && await new Promise((_) => setTimeout(_, d)), r(l.request, {
|
|
306
306
|
...l.options,
|
|
307
|
-
retry: i - 1
|
|
308
|
-
timeout: l.options.timeout
|
|
307
|
+
retry: i - 1
|
|
309
308
|
});
|
|
310
309
|
}
|
|
311
310
|
}
|
|
@@ -313,38 +312,45 @@ function Oe(e = {}) {
|
|
|
313
312
|
throw Error.captureStackTrace && Error.captureStackTrace(f, r), f;
|
|
314
313
|
}
|
|
315
314
|
const r = async function(c, f = {}) {
|
|
316
|
-
var
|
|
315
|
+
var _;
|
|
317
316
|
const i = {
|
|
318
317
|
request: c,
|
|
319
318
|
options: At(f, e.defaults, n),
|
|
320
319
|
response: void 0,
|
|
321
320
|
error: void 0
|
|
322
321
|
};
|
|
323
|
-
|
|
322
|
+
i.options.method = (_ = i.options.method) == null ? void 0 : _.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = dt(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = mt(i.request, {
|
|
324
323
|
...i.options.params,
|
|
325
324
|
...i.options.query
|
|
326
325
|
}))), i.options.body && ce(i.options.method) && (St(i.options.body) ? (i.options.body = typeof i.options.body == "string" ? i.options.body : JSON.stringify(i.options.body), i.options.headers = new n(i.options.headers || {}), i.options.headers.has("content-type") || i.options.headers.set("content-type", "application/json"), i.options.headers.has("accept") || i.options.headers.set("accept", "application/json")) : (
|
|
327
326
|
// ReadableStream Body
|
|
328
327
|
("pipeTo" in i.options.body && typeof i.options.body.pipeTo == "function" || // Node.js Stream Body
|
|
329
328
|
typeof i.options.body.pipe == "function") && ("duplex" in i.options || (i.options.duplex = "half"))
|
|
330
|
-
))
|
|
331
|
-
|
|
332
|
-
|
|
329
|
+
));
|
|
330
|
+
let u;
|
|
331
|
+
if (!i.options.signal && i.options.timeout) {
|
|
332
|
+
const h = new s();
|
|
333
|
+
u = setTimeout(
|
|
334
|
+
() => h.abort(),
|
|
335
|
+
i.options.timeout
|
|
336
|
+
), i.options.signal = h.signal;
|
|
333
337
|
}
|
|
334
338
|
try {
|
|
335
339
|
i.response = await t(
|
|
336
340
|
i.request,
|
|
337
341
|
i.options
|
|
338
342
|
);
|
|
339
|
-
} catch (
|
|
340
|
-
return i.error =
|
|
343
|
+
} catch (h) {
|
|
344
|
+
return i.error = h, i.options.onRequestError && await i.options.onRequestError(i), await o(i);
|
|
345
|
+
} finally {
|
|
346
|
+
u && clearTimeout(u);
|
|
341
347
|
}
|
|
342
348
|
if (i.response.body && !Rt.has(i.response.status) && i.options.method !== "HEAD") {
|
|
343
|
-
const
|
|
344
|
-
switch (
|
|
349
|
+
const h = (i.options.parseResponse ? "json" : i.options.responseType) || Ct(i.response.headers.get("content-type") || "");
|
|
350
|
+
switch (h) {
|
|
345
351
|
case "json": {
|
|
346
|
-
const
|
|
347
|
-
i.response._data =
|
|
352
|
+
const m = await i.response.text(), v = i.options.parseResponse || ze;
|
|
353
|
+
i.response._data = v(m);
|
|
348
354
|
break;
|
|
349
355
|
}
|
|
350
356
|
case "stream": {
|
|
@@ -352,7 +358,7 @@ function Oe(e = {}) {
|
|
|
352
358
|
break;
|
|
353
359
|
}
|
|
354
360
|
default:
|
|
355
|
-
i.response._data = await i.response[
|
|
361
|
+
i.response._data = await i.response[h]();
|
|
356
362
|
}
|
|
357
363
|
}
|
|
358
364
|
return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await o(i)) : i.response;
|
|
@@ -378,7 +384,7 @@ const oe = function() {
|
|
|
378
384
|
return global;
|
|
379
385
|
throw new Error("unable to locate global object");
|
|
380
386
|
}(), kt = oe.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), $t = oe.Headers, Tt = oe.AbortController, Lt = Oe({ fetch: kt, Headers: $t, AbortController: Tt }), Mt = Lt;
|
|
381
|
-
function
|
|
387
|
+
function It(e) {
|
|
382
388
|
const t = e.length;
|
|
383
389
|
let n = -1, s, o = "";
|
|
384
390
|
const r = e.charCodeAt(0);
|
|
@@ -419,24 +425,24 @@ function Ut(e) {
|
|
|
419
425
|
}
|
|
420
426
|
return o;
|
|
421
427
|
}
|
|
422
|
-
const X =
|
|
423
|
-
function
|
|
428
|
+
const X = It;
|
|
429
|
+
function U(e = []) {
|
|
424
430
|
return Array.isArray(e) ? e : [e];
|
|
425
431
|
}
|
|
426
432
|
function W(e) {
|
|
427
433
|
return Array.from(new Set(e));
|
|
428
434
|
}
|
|
429
|
-
function
|
|
435
|
+
function Ut(e, t) {
|
|
430
436
|
return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
|
|
431
437
|
}
|
|
432
|
-
function
|
|
438
|
+
function I(e) {
|
|
433
439
|
return typeof e == "string";
|
|
434
440
|
}
|
|
435
|
-
function
|
|
436
|
-
return
|
|
441
|
+
function G(e) {
|
|
442
|
+
return I(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
437
443
|
}
|
|
438
444
|
function Nt(e) {
|
|
439
|
-
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) =>
|
|
445
|
+
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => G(t)) : [e] : [G(e)];
|
|
440
446
|
}
|
|
441
447
|
function Dt(e) {
|
|
442
448
|
return e.filter(([t, n], s) => {
|
|
@@ -451,7 +457,7 @@ function Dt(e) {
|
|
|
451
457
|
function Q(e) {
|
|
452
458
|
return e == null ? "" : Dt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
453
459
|
}
|
|
454
|
-
function
|
|
460
|
+
function H(e) {
|
|
455
461
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
456
462
|
}
|
|
457
463
|
function Re(e, t, n = !1) {
|
|
@@ -459,8 +465,8 @@ function Re(e, t, n = !1) {
|
|
|
459
465
|
if (Array.isArray(o))
|
|
460
466
|
return n && Array.isArray(o) ? [...s, ...o] : [...o];
|
|
461
467
|
const r = { ...s };
|
|
462
|
-
return
|
|
463
|
-
|
|
468
|
+
return H(s) && H(o) && Object.keys(o).forEach((a) => {
|
|
469
|
+
H(s[a]) && H(o[a]) || Array.isArray(s[a]) && Array.isArray(o[a]) ? r[a] = Re(s[a], o[a], n) : Object.assign(r, { [a]: o[a] });
|
|
464
470
|
}), r;
|
|
465
471
|
}
|
|
466
472
|
function z(e) {
|
|
@@ -484,10 +490,10 @@ function z(e) {
|
|
|
484
490
|
return e;
|
|
485
491
|
}
|
|
486
492
|
function jt(e) {
|
|
487
|
-
return
|
|
493
|
+
return I(e[0]);
|
|
488
494
|
}
|
|
489
495
|
function Pt(e) {
|
|
490
|
-
return
|
|
496
|
+
return I(e[0]);
|
|
491
497
|
}
|
|
492
498
|
const le = "$$shortcut-no-merge";
|
|
493
499
|
function Ft(e) {
|
|
@@ -499,9 +505,9 @@ function ue(e) {
|
|
|
499
505
|
function Vt(e) {
|
|
500
506
|
return e != null;
|
|
501
507
|
}
|
|
502
|
-
function
|
|
508
|
+
function Gt() {
|
|
503
509
|
}
|
|
504
|
-
var
|
|
510
|
+
var Ht = Object.defineProperty, Bt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Bt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
505
511
|
class qt {
|
|
506
512
|
constructor() {
|
|
507
513
|
zt(this, "_map", /* @__PURE__ */ new Map());
|
|
@@ -576,10 +582,10 @@ class ke extends Set {
|
|
|
576
582
|
function Y(e) {
|
|
577
583
|
return e instanceof ke;
|
|
578
584
|
}
|
|
579
|
-
const
|
|
585
|
+
const B = {};
|
|
580
586
|
function Qt(e = ["-", ":"]) {
|
|
581
587
|
const t = e.join("|");
|
|
582
|
-
return
|
|
588
|
+
return B[t] || (B[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), B[t].lastIndex = 0, B[t];
|
|
583
589
|
}
|
|
584
590
|
function Yt(e, t = ["-", ":"], n = 5) {
|
|
585
591
|
const s = Qt(t);
|
|
@@ -588,23 +594,23 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
588
594
|
do
|
|
589
595
|
o = !1, r = r.replace(
|
|
590
596
|
s,
|
|
591
|
-
(f, i, u, d,
|
|
597
|
+
(f, i, u, d, _) => {
|
|
592
598
|
var v;
|
|
593
599
|
if (!t.includes(u))
|
|
594
600
|
return f;
|
|
595
601
|
o = !0, a.add(i + u);
|
|
596
|
-
const
|
|
597
|
-
l.set(
|
|
602
|
+
const h = _ + i.length + u.length + 1, m = { length: f.length, items: [] };
|
|
603
|
+
l.set(_, m);
|
|
598
604
|
for (const A of [...d.matchAll(/\S+/g)]) {
|
|
599
|
-
const x =
|
|
600
|
-
let
|
|
601
|
-
|
|
605
|
+
const x = h + A.index;
|
|
606
|
+
let y = (v = l.get(x)) == null ? void 0 : v.items;
|
|
607
|
+
y ? l.delete(x) : y = [{
|
|
602
608
|
offset: x,
|
|
603
609
|
length: A[0].length,
|
|
604
610
|
className: A[0]
|
|
605
611
|
}];
|
|
606
|
-
for (const S of
|
|
607
|
-
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`),
|
|
612
|
+
for (const S of y)
|
|
613
|
+
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), m.items.push(S);
|
|
608
614
|
}
|
|
609
615
|
return "$".repeat(f.length);
|
|
610
616
|
}
|
|
@@ -673,7 +679,7 @@ const q = "default", ne = "preflights", on = "shortcuts", rn = "imports", an = {
|
|
|
673
679
|
[q]: 0
|
|
674
680
|
};
|
|
675
681
|
function Te(e) {
|
|
676
|
-
return
|
|
682
|
+
return U(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
677
683
|
}
|
|
678
684
|
const pe = "_uno_resolved";
|
|
679
685
|
function cn(e) {
|
|
@@ -690,7 +696,7 @@ function cn(e) {
|
|
|
690
696
|
const o = (r) => {
|
|
691
697
|
r[2] || (r[2] = {});
|
|
692
698
|
const a = r[2];
|
|
693
|
-
a.prefix == null && t.prefix && (a.prefix =
|
|
699
|
+
a.prefix == null && t.prefix && (a.prefix = U(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
694
700
|
};
|
|
695
701
|
n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
|
|
696
702
|
}
|
|
@@ -700,12 +706,12 @@ function Le(e) {
|
|
|
700
706
|
const t = cn(e);
|
|
701
707
|
if (!t.presets)
|
|
702
708
|
return [t];
|
|
703
|
-
const n = (t.presets || []).flatMap(
|
|
709
|
+
const n = (t.presets || []).flatMap(U).flatMap(Le);
|
|
704
710
|
return [t, ...n];
|
|
705
711
|
}
|
|
706
712
|
function de(e = {}, t = {}) {
|
|
707
713
|
var S, b;
|
|
708
|
-
const n = Object.assign({}, t, e), s =
|
|
714
|
+
const n = Object.assign({}, t, e), s = Ut((n.presets || []).flatMap(U).flatMap(Le), (p, w) => p.name === w.name), o = [
|
|
709
715
|
...s.filter((p) => p.enforce === "pre"),
|
|
710
716
|
...s.filter((p) => !p.enforce),
|
|
711
717
|
...s.filter((p) => p.enforce === "post")
|
|
@@ -714,33 +720,33 @@ function de(e = {}, t = {}) {
|
|
|
714
720
|
n
|
|
715
721
|
], a = [...r].reverse(), l = Object.assign({}, an, ...r.map((p) => p.layers));
|
|
716
722
|
function c(p) {
|
|
717
|
-
return W(r.flatMap((w) =>
|
|
723
|
+
return W(r.flatMap((w) => U(w[p] || [])));
|
|
718
724
|
}
|
|
719
725
|
const f = c("extractors");
|
|
720
726
|
let i = (S = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : S.extractorDefault;
|
|
721
727
|
i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p, w) => (p.order || 0) - (w.order || 0));
|
|
722
|
-
const u = c("rules"), d = {},
|
|
728
|
+
const u = c("rules"), d = {}, _ = u.length, h = u.map((p, w) => {
|
|
723
729
|
var R;
|
|
724
730
|
if (jt(p)) {
|
|
725
|
-
|
|
731
|
+
U(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((L) => {
|
|
726
732
|
d[L + p[0]] = [w, p[1], p[2], p];
|
|
727
733
|
});
|
|
728
734
|
return;
|
|
729
735
|
}
|
|
730
736
|
return [w, ...p];
|
|
731
737
|
}).filter(Boolean).reverse();
|
|
732
|
-
let
|
|
738
|
+
let m = ln(r.map((p) => p.theme));
|
|
733
739
|
const v = c("extendTheme");
|
|
734
740
|
for (const p of v)
|
|
735
|
-
|
|
741
|
+
m = p(m) || m;
|
|
736
742
|
const A = {
|
|
737
743
|
templates: W(r.flatMap((p) => {
|
|
738
744
|
var w;
|
|
739
|
-
return
|
|
745
|
+
return U((w = p.autocomplete) == null ? void 0 : w.templates);
|
|
740
746
|
})),
|
|
741
747
|
extractors: r.flatMap((p) => {
|
|
742
748
|
var w;
|
|
743
|
-
return
|
|
749
|
+
return U((w = p.autocomplete) == null ? void 0 : w.extractors);
|
|
744
750
|
}).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
745
751
|
shorthands: un(r.map((p) => {
|
|
746
752
|
var w;
|
|
@@ -749,7 +755,7 @@ function de(e = {}, t = {}) {
|
|
|
749
755
|
};
|
|
750
756
|
let x = c("separators");
|
|
751
757
|
x.length || (x = [":", "-"]);
|
|
752
|
-
const
|
|
758
|
+
const y = {
|
|
753
759
|
mergeSelectors: !0,
|
|
754
760
|
warn: !0,
|
|
755
761
|
sortLayers: (p) => p,
|
|
@@ -759,9 +765,9 @@ function de(e = {}, t = {}) {
|
|
|
759
765
|
envMode: n.envMode || "build",
|
|
760
766
|
shortcutsLayer: n.shortcutsLayer || "shortcuts",
|
|
761
767
|
layers: l,
|
|
762
|
-
theme:
|
|
763
|
-
rulesSize:
|
|
764
|
-
rulesDynamic:
|
|
768
|
+
theme: m,
|
|
769
|
+
rulesSize: _,
|
|
770
|
+
rulesDynamic: h,
|
|
765
771
|
rulesStaticMap: d,
|
|
766
772
|
preprocess: c("preprocess"),
|
|
767
773
|
postprocess: c("postprocess"),
|
|
@@ -775,8 +781,8 @@ function de(e = {}, t = {}) {
|
|
|
775
781
|
details: n.details ?? n.envMode === "dev"
|
|
776
782
|
};
|
|
777
783
|
for (const p of r)
|
|
778
|
-
(b = p == null ? void 0 : p.configResolved) == null || b.call(p,
|
|
779
|
-
return
|
|
784
|
+
(b = p == null ? void 0 : p.configResolved) == null || b.call(p, y);
|
|
785
|
+
return y;
|
|
780
786
|
}
|
|
781
787
|
function ln(e) {
|
|
782
788
|
return e.map((t) => t ? z(t) : {}).reduce((t, n) => Re(t, n), {});
|
|
@@ -794,7 +800,7 @@ function un(e) {
|
|
|
794
800
|
};
|
|
795
801
|
}, {});
|
|
796
802
|
}
|
|
797
|
-
const fn = "0.
|
|
803
|
+
const fn = "0.59.0";
|
|
798
804
|
var pn = Object.defineProperty, dn = (e, t, n) => t in e ? pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
799
805
|
class mn {
|
|
800
806
|
constructor(t = {}, n = {}) {
|
|
@@ -870,7 +876,7 @@ class mn {
|
|
|
870
876
|
safelist: a = !0,
|
|
871
877
|
minify: l = !1,
|
|
872
878
|
extendedInfo: c = !1
|
|
873
|
-
} = n, f = this.config.outputToCssLayers, i =
|
|
879
|
+
} = n, f = this.config.outputToCssLayers, i = I(t) ? await this.applyExtractors(
|
|
874
880
|
t,
|
|
875
881
|
s,
|
|
876
882
|
c ? new ke() : /* @__PURE__ */ new Set()
|
|
@@ -879,21 +885,21 @@ class mn {
|
|
|
879
885
|
i.has(b) || i.add(b);
|
|
880
886
|
});
|
|
881
887
|
const u = l ? "" : `
|
|
882
|
-
`, d = /* @__PURE__ */ new Set([q]),
|
|
883
|
-
let
|
|
888
|
+
`, d = /* @__PURE__ */ new Set([q]), _ = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map();
|
|
889
|
+
let m = {};
|
|
884
890
|
const v = Array.from(i).map(async (b) => {
|
|
885
891
|
var w;
|
|
886
|
-
if (
|
|
892
|
+
if (_.has(b))
|
|
887
893
|
return;
|
|
888
894
|
const p = await this.parseToken(b);
|
|
889
895
|
if (p != null) {
|
|
890
|
-
|
|
896
|
+
_ instanceof Map ? _.set(b, {
|
|
891
897
|
data: p,
|
|
892
898
|
count: Y(i) ? i.getCount(b) : -1
|
|
893
|
-
}) :
|
|
899
|
+
}) : _.add(b);
|
|
894
900
|
for (const R of p) {
|
|
895
901
|
const O = R[3] || "", L = (w = R[4]) == null ? void 0 : w.layer;
|
|
896
|
-
|
|
902
|
+
h.has(O) || h.set(O, []), h.get(O).push(R), L && d.add(L);
|
|
897
903
|
}
|
|
898
904
|
}
|
|
899
905
|
});
|
|
@@ -906,7 +912,7 @@ class mn {
|
|
|
906
912
|
}, p = /* @__PURE__ */ new Set([]);
|
|
907
913
|
this.config.preflights.forEach(({ layer: w = ne }) => {
|
|
908
914
|
d.add(w), p.add(w);
|
|
909
|
-
}),
|
|
915
|
+
}), m = Object.fromEntries(
|
|
910
916
|
await Promise.all(Array.from(p).map(
|
|
911
917
|
async (w) => {
|
|
912
918
|
const O = (await Promise.all(
|
|
@@ -917,60 +923,60 @@ class mn {
|
|
|
917
923
|
))
|
|
918
924
|
);
|
|
919
925
|
})();
|
|
920
|
-
const A = this.config.sortLayers(Array.from(d).sort((b, p) => (this.config.layers[b] ?? 0) - (this.config.layers[p] ?? 0) || b.localeCompare(p))), x = {},
|
|
926
|
+
const A = this.config.sortLayers(Array.from(d).sort((b, p) => (this.config.layers[b] ?? 0) - (this.config.layers[p] ?? 0) || b.localeCompare(p))), x = {}, y = (b = q) => {
|
|
921
927
|
var R;
|
|
922
928
|
if (x[b])
|
|
923
929
|
return x[b];
|
|
924
|
-
let p = Array.from(
|
|
930
|
+
let p = Array.from(h).sort((O, L) => {
|
|
925
931
|
var N;
|
|
926
932
|
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(L[0]) ?? 0) || ((N = O[0]) == null ? void 0 : N.localeCompare(L[0] || "")) || 0;
|
|
927
933
|
}).map(([O, L]) => {
|
|
928
934
|
const N = L.length, j = L.filter((k) => {
|
|
929
|
-
var
|
|
930
|
-
return (((
|
|
931
|
-
}).sort((k,
|
|
935
|
+
var g;
|
|
936
|
+
return (((g = k[4]) == null ? void 0 : g.layer) || q) === b;
|
|
937
|
+
}).sort((k, g) => {
|
|
932
938
|
var E, C, M, $, T, V, ie;
|
|
933
|
-
return k[0] -
|
|
934
|
-
}).map(([, k,
|
|
939
|
+
return k[0] - g[0] || (((E = k[4]) == null ? void 0 : E.sort) || 0) - (((C = g[4]) == null ? void 0 : C.sort) || 0) || ((T = (M = k[5]) == null ? void 0 : M.currentSelector) == null ? void 0 : T.localeCompare((($ = g[5]) == null ? void 0 : $.currentSelector) ?? "")) || ((V = k[1]) == null ? void 0 : V.localeCompare(g[1] || "")) || ((ie = k[2]) == null ? void 0 : ie.localeCompare(g[2] || "")) || 0;
|
|
940
|
+
}).map(([, k, g, , E, , C]) => [
|
|
935
941
|
[[(k && gn(k, o)) ?? "", (E == null ? void 0 : E.sort) ?? 0]],
|
|
936
|
-
|
|
942
|
+
g,
|
|
937
943
|
!!(C ?? (E == null ? void 0 : E.noMerge))
|
|
938
944
|
]);
|
|
939
945
|
if (!j.length)
|
|
940
946
|
return;
|
|
941
|
-
const P = j.reverse().map(([k,
|
|
947
|
+
const P = j.reverse().map(([k, g, E], C) => {
|
|
942
948
|
if (!E && this.config.mergeSelectors)
|
|
943
949
|
for (let $ = C + 1; $ < N; $++) {
|
|
944
950
|
const T = j[$];
|
|
945
|
-
if (T && !T[2] && (k && T[0] || k == null && T[0] == null) && T[1] ===
|
|
951
|
+
if (T && !T[2] && (k && T[0] || k == null && T[0] == null) && T[1] === g)
|
|
946
952
|
return k && T[0] && T[0].push(...k), null;
|
|
947
953
|
}
|
|
948
954
|
const M = k ? W(k.sort(($, T) => {
|
|
949
955
|
var V;
|
|
950
956
|
return $[1] - T[1] || ((V = $[0]) == null ? void 0 : V.localeCompare(T[0] || "")) || 0;
|
|
951
957
|
}).map(($) => $[0]).filter(Boolean)) : [];
|
|
952
|
-
return M.length ? `${M.join(`,${u}`)}{${
|
|
958
|
+
return M.length ? `${M.join(`,${u}`)}{${g}}` : g;
|
|
953
959
|
}).filter(Boolean).reverse().join(u);
|
|
954
960
|
if (!O)
|
|
955
961
|
return P;
|
|
956
962
|
const F = O.split(" $$ ");
|
|
957
963
|
return `${F.join("{")}{${u}${P}${u}${"}".repeat(F.length)}`;
|
|
958
964
|
}).filter(Boolean).join(u);
|
|
959
|
-
if (r && (p = [
|
|
965
|
+
if (r && (p = [m[b], p].filter(Boolean).join(u)), f && p) {
|
|
960
966
|
let O = typeof f == "object" ? (R = f.cssLayerName) == null ? void 0 : R.call(f, b) : void 0;
|
|
961
967
|
O !== null && (O || (O = b), p = `@layer ${O}{${u}${p}${u}}`);
|
|
962
968
|
}
|
|
963
969
|
const w = l ? "" : `/* layer: ${b} */${u}`;
|
|
964
970
|
return x[b] = p ? w + p : "";
|
|
965
|
-
}, S = (b = A, p) => b.filter((w) => !(p != null && p.includes(w))).map((w) =>
|
|
971
|
+
}, S = (b = A, p) => b.filter((w) => !(p != null && p.includes(w))).map((w) => y(w) || "").filter(Boolean).join(u);
|
|
966
972
|
return {
|
|
967
973
|
get css() {
|
|
968
974
|
return S();
|
|
969
975
|
},
|
|
970
976
|
layers: A,
|
|
971
|
-
matched:
|
|
977
|
+
matched: _,
|
|
972
978
|
getLayers: S,
|
|
973
|
-
getLayer:
|
|
979
|
+
getLayer: y
|
|
974
980
|
};
|
|
975
981
|
}
|
|
976
982
|
async matchVariants(t, n) {
|
|
@@ -988,7 +994,7 @@ class mn {
|
|
|
988
994
|
continue;
|
|
989
995
|
let f = await c.match(r, l);
|
|
990
996
|
if (f) {
|
|
991
|
-
if (
|
|
997
|
+
if (I(f)) {
|
|
992
998
|
if (f === r)
|
|
993
999
|
continue;
|
|
994
1000
|
f = { matcher: f };
|
|
@@ -1007,14 +1013,14 @@ class mn {
|
|
|
1007
1013
|
applyVariants(t, n = t[4], s = t[1]) {
|
|
1008
1014
|
const r = n.slice().sort((f, i) => (f.order || 0) - (i.order || 0)).reduceRight(
|
|
1009
1015
|
(f, i) => (u) => {
|
|
1010
|
-
var
|
|
1011
|
-
const d = ((
|
|
1016
|
+
var h, m;
|
|
1017
|
+
const d = ((h = i.body) == null ? void 0 : h.call(i, u.entries)) || u.entries, _ = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
|
|
1012
1018
|
return (i.handle ?? bn)({
|
|
1013
1019
|
...u,
|
|
1014
1020
|
entries: d,
|
|
1015
|
-
selector: ((
|
|
1016
|
-
parent:
|
|
1017
|
-
parentOrder:
|
|
1021
|
+
selector: ((m = i.selector) == null ? void 0 : m.call(i, u.selector, d)) || u.selector,
|
|
1022
|
+
parent: _[0] || u.parent,
|
|
1023
|
+
parentOrder: _[1] || u.parentOrder,
|
|
1018
1024
|
layer: i.layer || u.layer,
|
|
1019
1025
|
sort: i.sort || u.sort
|
|
1020
1026
|
}, f);
|
|
@@ -1044,51 +1050,51 @@ class mn {
|
|
|
1044
1050
|
return c;
|
|
1045
1051
|
}
|
|
1046
1052
|
constructCustomCSS(t, n, s) {
|
|
1047
|
-
const o =
|
|
1048
|
-
if (
|
|
1053
|
+
const o = G(n);
|
|
1054
|
+
if (I(o))
|
|
1049
1055
|
return o;
|
|
1050
1056
|
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${Q(a)}}`;
|
|
1051
1057
|
return l ? `${l}{${c}}` : c;
|
|
1052
1058
|
}
|
|
1053
1059
|
async parseUtil(t, n, s = !1, o) {
|
|
1054
1060
|
var i;
|
|
1055
|
-
const [r, a, l] =
|
|
1061
|
+
const [r, a, l] = I(t) ? await this.matchVariants(t) : t;
|
|
1056
1062
|
this.config.details && (n.rules = n.rules ?? []);
|
|
1057
1063
|
const c = this.config.rulesStaticMap[a];
|
|
1058
1064
|
if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
|
|
1059
1065
|
this.config.details && n.rules.push(c[3]);
|
|
1060
|
-
const u = c[0], d =
|
|
1061
|
-
return
|
|
1066
|
+
const u = c[0], d = G(c[1]), _ = c[2];
|
|
1067
|
+
return I(d) ? [[u, d, _]] : [[u, r, d, _, l]];
|
|
1062
1068
|
}
|
|
1063
1069
|
n.variantHandlers = l;
|
|
1064
1070
|
const { rulesDynamic: f } = this.config;
|
|
1065
|
-
for (const [u, d,
|
|
1066
|
-
if (
|
|
1071
|
+
for (const [u, d, _, h] of f) {
|
|
1072
|
+
if (h != null && h.internal && !s)
|
|
1067
1073
|
continue;
|
|
1068
|
-
let
|
|
1069
|
-
if (
|
|
1070
|
-
const
|
|
1074
|
+
let m = a;
|
|
1075
|
+
if (h != null && h.prefix) {
|
|
1076
|
+
const y = U(h.prefix);
|
|
1071
1077
|
if (o) {
|
|
1072
|
-
const S =
|
|
1073
|
-
if (!
|
|
1078
|
+
const S = U(o);
|
|
1079
|
+
if (!y.some((b) => S.includes(b)))
|
|
1074
1080
|
continue;
|
|
1075
1081
|
} else {
|
|
1076
|
-
const S =
|
|
1082
|
+
const S = y.find((b) => a.startsWith(b));
|
|
1077
1083
|
if (S == null)
|
|
1078
1084
|
continue;
|
|
1079
|
-
|
|
1085
|
+
m = a.slice(S.length);
|
|
1080
1086
|
}
|
|
1081
1087
|
}
|
|
1082
|
-
const v =
|
|
1088
|
+
const v = m.match(d);
|
|
1083
1089
|
if (!v)
|
|
1084
1090
|
continue;
|
|
1085
|
-
const A = await
|
|
1091
|
+
const A = await _(v, n);
|
|
1086
1092
|
if (!A)
|
|
1087
1093
|
continue;
|
|
1088
|
-
this.config.details && n.rules.push([d,
|
|
1089
|
-
const x = Nt(A).filter((
|
|
1094
|
+
this.config.details && n.rules.push([d, _, h]);
|
|
1095
|
+
const x = Nt(A).filter((y) => y.length);
|
|
1090
1096
|
if (x.length)
|
|
1091
|
-
return x.map((
|
|
1097
|
+
return x.map((y) => I(y) ? [u, y, h] : [u, r, y, h, l]);
|
|
1092
1098
|
}
|
|
1093
1099
|
}
|
|
1094
1100
|
stringifyUtil(t, n) {
|
|
@@ -1099,12 +1105,12 @@ class mn {
|
|
|
1099
1105
|
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Q(o);
|
|
1100
1106
|
if (!f)
|
|
1101
1107
|
return;
|
|
1102
|
-
const { layer: i, sort: u, ...d } = t[3] ?? {},
|
|
1108
|
+
const { layer: i, sort: u, ...d } = t[3] ?? {}, _ = {
|
|
1103
1109
|
...d,
|
|
1104
1110
|
layer: a ?? i,
|
|
1105
1111
|
sort: l ?? u
|
|
1106
1112
|
};
|
|
1107
|
-
return [t[0], s, f, r,
|
|
1113
|
+
return [t[0], s, f, r, _, this.config.details ? n : void 0, c];
|
|
1108
1114
|
}
|
|
1109
1115
|
async expandShortcut(t, n, s = 5) {
|
|
1110
1116
|
var l;
|
|
@@ -1112,12 +1118,12 @@ class mn {
|
|
|
1112
1118
|
return;
|
|
1113
1119
|
const o = this.config.details ? (c) => {
|
|
1114
1120
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1115
|
-
} :
|
|
1121
|
+
} : Gt;
|
|
1116
1122
|
let r, a;
|
|
1117
1123
|
for (const c of this.config.shortcuts) {
|
|
1118
1124
|
let f = t;
|
|
1119
1125
|
if ((l = c[2]) != null && l.prefix) {
|
|
1120
|
-
const u =
|
|
1126
|
+
const u = U(c[2].prefix).find((d) => t.startsWith(d));
|
|
1121
1127
|
if (u == null)
|
|
1122
1128
|
continue;
|
|
1123
1129
|
f = t.slice(u.length);
|
|
@@ -1135,18 +1141,18 @@ class mn {
|
|
|
1135
1141
|
}
|
|
1136
1142
|
}
|
|
1137
1143
|
}
|
|
1138
|
-
if (
|
|
1139
|
-
const [c, f] =
|
|
1144
|
+
if (I(a) && (a = Zt(a.trim()).split(/\s+/g)), !a) {
|
|
1145
|
+
const [c, f] = I(t) ? await this.matchVariants(t) : t;
|
|
1140
1146
|
if (c !== f) {
|
|
1141
1147
|
const i = await this.expandShortcut(f, n, s - 1);
|
|
1142
|
-
i && (a = i[0].map((u) =>
|
|
1148
|
+
i && (a = i[0].map((u) => I(u) ? c.replace(f, u) : u));
|
|
1143
1149
|
}
|
|
1144
1150
|
}
|
|
1145
1151
|
if (a)
|
|
1146
1152
|
return [
|
|
1147
1153
|
(await Promise.all(a.map(async (c) => {
|
|
1148
1154
|
var f;
|
|
1149
|
-
return (
|
|
1155
|
+
return (I(c) ? (f = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : f[0] : void 0) || [c];
|
|
1150
1156
|
}))).flat(1).filter(Boolean),
|
|
1151
1157
|
r
|
|
1152
1158
|
];
|
|
@@ -1154,7 +1160,7 @@ class mn {
|
|
|
1154
1160
|
async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
|
|
1155
1161
|
var i;
|
|
1156
1162
|
const r = new Wt(), a = (await Promise.all(W(s).map(async (u) => {
|
|
1157
|
-
const d =
|
|
1163
|
+
const d = I(u) ? await this.parseUtil(u, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", G(u), void 0, []]];
|
|
1158
1164
|
return !d && this.config.warn && $e(`unmatched utility "${u}" in shortcut "${t[1]}"`), d || [];
|
|
1159
1165
|
}))).flat(1).filter(Boolean).sort((u, d) => u[0] - d[0]), [l, , c] = t, f = [];
|
|
1160
1166
|
for (const u of a) {
|
|
@@ -1162,31 +1168,31 @@ class mn {
|
|
|
1162
1168
|
f.push([u[0], void 0, u[1], void 0, u[2], n, void 0]);
|
|
1163
1169
|
continue;
|
|
1164
1170
|
}
|
|
1165
|
-
const { selector: d, entries:
|
|
1166
|
-
r.getFallback(A ?? o.layer, new qt()).getFallback(d,
|
|
1171
|
+
const { selector: d, entries: _, parent: h, sort: m, noMerge: v, layer: A } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1172
|
+
r.getFallback(A ?? o.layer, new qt()).getFallback(d, h, [[], u[0]])[0].push([_, !!(v ?? ((i = u[3]) == null ? void 0 : i.noMerge)), m ?? 0]);
|
|
1167
1173
|
}
|
|
1168
1174
|
return f.concat(r.flatMap(
|
|
1169
|
-
(u, d) => u.map(([
|
|
1170
|
-
const A = (
|
|
1175
|
+
(u, d) => u.map(([_, h], m, v) => {
|
|
1176
|
+
const A = (y, S, b) => {
|
|
1171
1177
|
const p = Math.max(...b.map((R) => R[1])), w = b.map((R) => R[0]);
|
|
1172
|
-
return (
|
|
1178
|
+
return (y ? [w.flat(1)] : w).map((R) => {
|
|
1173
1179
|
const O = Q(R);
|
|
1174
1180
|
if (O)
|
|
1175
|
-
return [
|
|
1181
|
+
return [h, m, O, v, { ...o, noMerge: S, sort: p, layer: d }, n, void 0];
|
|
1176
1182
|
});
|
|
1177
1183
|
};
|
|
1178
1184
|
return [
|
|
1179
|
-
[
|
|
1180
|
-
[
|
|
1181
|
-
].map(([
|
|
1182
|
-
...A(!1, S,
|
|
1183
|
-
...A(!0, S,
|
|
1185
|
+
[_.filter(([, y]) => y).map(([y, , S]) => [y, S]), !0],
|
|
1186
|
+
[_.filter(([, y]) => !y).map(([y, , S]) => [y, S]), !1]
|
|
1187
|
+
].map(([y, S]) => [
|
|
1188
|
+
...A(!1, S, y.filter(([b]) => b.some((p) => p[0] === le))),
|
|
1189
|
+
...A(!0, S, y.filter(([b]) => b.every((p) => p[0] !== le)))
|
|
1184
1190
|
]);
|
|
1185
1191
|
}).flat(2).filter(Boolean)
|
|
1186
1192
|
));
|
|
1187
1193
|
}
|
|
1188
1194
|
isBlocked(t) {
|
|
1189
|
-
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) :
|
|
1195
|
+
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) : I(n) ? n === t : n.test(t));
|
|
1190
1196
|
}
|
|
1191
1197
|
}
|
|
1192
1198
|
function hn(e, t) {
|
|
@@ -1206,7 +1212,7 @@ function yn(e) {
|
|
|
1206
1212
|
function bn(e, t) {
|
|
1207
1213
|
return t(e);
|
|
1208
1214
|
}
|
|
1209
|
-
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.2.
|
|
1215
|
+
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.2.8", SHELL: "/bin/zsh", TERM: "xterm-256color", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "5.2.2", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.59.0", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", ZDOTDIR: "/Users/arlo", TERM_SESSION_ID: "w0t0p0:DDA31EE4-6CDF-479F-8347-5407B650E66A", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", PNPM_HOME: "/Users/arlo/Library/pnpm", ZSH: "/Users/arlo/.oh-my-zsh", FNM_COREPACK_ENABLED: "false", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^3.1.0", USER: "arlo", npm_package_license: "MIT", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", COMMAND_MODE: "unix2003", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.KewI4CtKoZ/Listeners", npm_package_devDependencies_dayjs: "^1.11.10", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_devDependencies_unplugin_auto_import: "^0.17.5", npm_package_scripts_build_lib: "vite build --config vite.lib.config.ts", npm_config_frozen_lockfile: "", FNM_VERSION_FILE_STRATEGY: "local", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", FNM_ARCH: "arm64", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/usr/local/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/18168_1712752409744/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/arlo/Library/pnpm:/Users/arlo/Library/Caches/fnm_multishells/16321_1712751495157/bin:/opt/homebrew/bin", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "36391271-BDC9-4CC1-A355-84D7ADF5EA60", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", USER_ZDOTDIR: "/Users/arlo", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_exports____: "./dist/*", npm_lifecycle_event: "build:lib", npm_package_devDependencies_vue: "^3.4.21", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.11.1", npm_package_devDependencies_sass: "^1.74.1", npm_package_devDependencies__unocss_reset: "^0.59.0", npm_package_scripts_build: "tsx ./scripts/pre-build.ts && (nr build:lib & vite build)", NODE_PATH: "/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.8_@types+node@20.12.5_sass@1.74.1/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.8_@types+node@20.12.5_sass@1.74.1/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.8_@types+node@20.12.5_sass@1.74.1/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.2/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.6/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/Library/pnpm/global/5/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", FNM_MULTISHELL_PATH: "/Users/arlo/Library/Caches/fnm_multishells/18168_1712752409744", TURBO_HASH: "74178fe1cfc9995e", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.59.0", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", npm_config_side_effects_cache: "", npm_package_dependencies_colord: "^2.9.3", npm_package_devDependencies__iconify_json: "^2.2.198", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.0.27", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.59.0", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", COLORFGBG: "7;0", HOME: "/Users/arlo", SHLVL: "3", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_dependencies_vite_hot_client: "^0.2.3", LC_TERMINAL_VERSION: "3.4.23", FNM_DIR: "/Users/arlo/Library/Application Support/fnm", npm_package_dependencies_vis_network: "^9.1.9", ITERM_SESSION_ID: "w0t0p0:DDA31EE4-6CDF-479F-8347-5407B650E66A", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", LESS: "-R", LOGNAME: "arlo", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.9.0", VSCODE_GIT_IPC_HANDLE: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/vscode-git-4d965c4849.sock", npm_config_user_agent: "pnpm/8.15.6 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.12.5", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.10.1", npm_package_dependencies_vue_router: "^4.3.0", npm_package_dependencies_shiki: "1.2.4", SECURITYSESSIONID: "186a3", npm_package_dependencies__unocss_preset_icons: "^0.59.0", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1210
1216
|
const vn = Object.freeze(
|
|
1211
1217
|
{
|
|
1212
1218
|
left: 0,
|
|
@@ -1218,17 +1224,17 @@ const vn = Object.freeze(
|
|
|
1218
1224
|
rotate: 0,
|
|
1219
1225
|
vFlip: !1,
|
|
1220
1226
|
hFlip: !1
|
|
1221
|
-
}),
|
|
1227
|
+
}), Ie = Object.freeze({
|
|
1222
1228
|
...vn,
|
|
1223
1229
|
...K
|
|
1224
1230
|
}), wn = Object.freeze({
|
|
1225
|
-
...
|
|
1231
|
+
...Ie,
|
|
1226
1232
|
body: "",
|
|
1227
1233
|
hidden: !1
|
|
1228
1234
|
}), Sn = Object.freeze({
|
|
1229
1235
|
width: null,
|
|
1230
1236
|
height: null
|
|
1231
|
-
}),
|
|
1237
|
+
}), Ue = Object.freeze({
|
|
1232
1238
|
// Dimensions
|
|
1233
1239
|
...Sn,
|
|
1234
1240
|
// Transformations
|
|
@@ -1328,10 +1334,10 @@ function $n(e, t, n) {
|
|
|
1328
1334
|
const re = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1329
1335
|
function Tn(e, t) {
|
|
1330
1336
|
const n = {
|
|
1331
|
-
...
|
|
1337
|
+
...Ie,
|
|
1332
1338
|
...e
|
|
1333
1339
|
}, s = {
|
|
1334
|
-
...
|
|
1340
|
+
...Ue,
|
|
1335
1341
|
...t
|
|
1336
1342
|
}, o = {
|
|
1337
1343
|
left: n.left,
|
|
@@ -1340,16 +1346,16 @@ function Tn(e, t) {
|
|
|
1340
1346
|
height: n.height
|
|
1341
1347
|
};
|
|
1342
1348
|
let r = n.body;
|
|
1343
|
-
[n, s].forEach((
|
|
1344
|
-
const v = [], A =
|
|
1345
|
-
let
|
|
1346
|
-
A ? x ?
|
|
1349
|
+
[n, s].forEach((m) => {
|
|
1350
|
+
const v = [], A = m.hFlip, x = m.vFlip;
|
|
1351
|
+
let y = m.rotate;
|
|
1352
|
+
A ? x ? y += 2 : (v.push(
|
|
1347
1353
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
1348
1354
|
), v.push("scale(-1 1)"), o.top = o.left = 0) : x && (v.push(
|
|
1349
1355
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
1350
1356
|
), v.push("scale(1 -1)"), o.top = o.left = 0);
|
|
1351
1357
|
let S;
|
|
1352
|
-
switch (
|
|
1358
|
+
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
|
1353
1359
|
case 1:
|
|
1354
1360
|
S = o.height / 2 + o.top, v.unshift(
|
|
1355
1361
|
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
@@ -1366,7 +1372,7 @@ function Tn(e, t) {
|
|
|
1366
1372
|
);
|
|
1367
1373
|
break;
|
|
1368
1374
|
}
|
|
1369
|
-
|
|
1375
|
+
y % 2 === 1 && (o.left !== o.top && (S = o.left, o.left = o.top, o.top = S), o.width !== o.height && (S = o.width, o.width = o.height, o.height = S)), v.length && (r = $n(
|
|
1370
1376
|
r,
|
|
1371
1377
|
'<g transform="' + v.join(" ") + '">',
|
|
1372
1378
|
"</g>"
|
|
@@ -1375,14 +1381,14 @@ function Tn(e, t) {
|
|
|
1375
1381
|
const a = s.width, l = s.height, c = o.width, f = o.height;
|
|
1376
1382
|
let i, u;
|
|
1377
1383
|
a === null ? (u = l === null ? "1em" : l === "auto" ? f : l, i = ye(u, c / f)) : (i = a === "auto" ? c : a, u = l === null ? ye(i, f / c) : l === "auto" ? f : l);
|
|
1378
|
-
const d = {},
|
|
1379
|
-
re(v) || (d[
|
|
1384
|
+
const d = {}, _ = (m, v) => {
|
|
1385
|
+
re(v) || (d[m] = v.toString());
|
|
1380
1386
|
};
|
|
1381
|
-
|
|
1382
|
-
const
|
|
1383
|
-
return d.viewBox =
|
|
1387
|
+
_("width", i), _("height", u);
|
|
1388
|
+
const h = [o.left, o.top, c, f];
|
|
1389
|
+
return d.viewBox = h.join(" "), {
|
|
1384
1390
|
attributes: d,
|
|
1385
|
-
viewBox:
|
|
1391
|
+
viewBox: h,
|
|
1386
1392
|
body: r
|
|
1387
1393
|
};
|
|
1388
1394
|
}
|
|
@@ -1399,37 +1405,37 @@ function Mn(e) {
|
|
|
1399
1405
|
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1400
1406
|
)), Ln(t);
|
|
1401
1407
|
}
|
|
1402
|
-
function
|
|
1408
|
+
function In(e) {
|
|
1403
1409
|
return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').replace(/(\s)+\/>/g, "/>").trim();
|
|
1404
1410
|
}
|
|
1405
|
-
const
|
|
1411
|
+
const Un = /\swidth\s*=\s*["']([\w.]+)["']/, Nn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1406
1412
|
function Dn(e, t, n) {
|
|
1407
1413
|
const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
|
|
1408
1414
|
const l = a.exec(s), c = l != null, f = t[r];
|
|
1409
1415
|
return !f && !re(f) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
|
|
1410
1416
|
};
|
|
1411
|
-
return [o("width",
|
|
1417
|
+
return [o("width", Un), o("height", Nn)];
|
|
1412
1418
|
}
|
|
1413
1419
|
async function Ne(e, t, n, s, o, r) {
|
|
1414
1420
|
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (o == null ? void 0 : o()) ?? {};
|
|
1415
|
-
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((
|
|
1416
|
-
const v = c[
|
|
1417
|
-
v != null && (i[
|
|
1421
|
+
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((m) => {
|
|
1422
|
+
const v = c[m];
|
|
1423
|
+
v != null && (i[m] = v);
|
|
1418
1424
|
}), r == null || r(i);
|
|
1419
1425
|
const [u, d] = Dn(e, i, a);
|
|
1420
1426
|
l && (!e.includes("xmlns=") && !i.xmlns && (i.xmlns = "http://www.w3.org/2000/svg"), !e.includes("xmlns:xlink=") && e.includes("xlink:") && !i["xmlns:xlink"] && (i["xmlns:xlink"] = "http://www.w3.org/1999/xlink"));
|
|
1421
|
-
const
|
|
1422
|
-
(
|
|
1423
|
-
).filter((
|
|
1424
|
-
if (
|
|
1425
|
-
const { defaultStyle:
|
|
1426
|
-
v && !e.includes("class=") && (e = e.replace(Z, `<svg class="${v}" `)),
|
|
1427
|
-
}
|
|
1428
|
-
const
|
|
1429
|
-
return
|
|
1430
|
-
const v = i[
|
|
1431
|
-
v != null && (
|
|
1432
|
-
}), typeof i.width < "u" && i.width !== null && (
|
|
1427
|
+
const _ = Object.keys(i).map(
|
|
1428
|
+
(m) => m === "width" && u || m === "height" && d ? null : `${m}="${i[m]}"`
|
|
1429
|
+
).filter((m) => m != null);
|
|
1430
|
+
if (_.length && (e = e.replace(Z, `<svg ${_.join(" ")} `)), s) {
|
|
1431
|
+
const { defaultStyle: m, defaultClass: v } = s;
|
|
1432
|
+
v && !e.includes("class=") && (e = e.replace(Z, `<svg class="${v}" `)), m && !e.includes("style=") && (e = e.replace(Z, `<svg style="${m}" `));
|
|
1433
|
+
}
|
|
1434
|
+
const h = s == null ? void 0 : s.usedProps;
|
|
1435
|
+
return h && (Object.keys(c).forEach((m) => {
|
|
1436
|
+
const v = i[m];
|
|
1437
|
+
v != null && (h[m] = v);
|
|
1438
|
+
}), typeof i.width < "u" && i.width !== null && (h.width = i.width), typeof i.height < "u" && i.height !== null && (h.height = i.height)), e;
|
|
1433
1439
|
}
|
|
1434
1440
|
async function be(e, t, n, s) {
|
|
1435
1441
|
var r;
|
|
@@ -1453,7 +1459,7 @@ async function be(e, t, n, s) {
|
|
|
1453
1459
|
a > 0 && (o = o.slice(a));
|
|
1454
1460
|
const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1455
1461
|
return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Ne(
|
|
1456
|
-
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ?
|
|
1462
|
+
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? In(o) : o,
|
|
1457
1463
|
t,
|
|
1458
1464
|
n,
|
|
1459
1465
|
s,
|
|
@@ -1468,7 +1474,7 @@ async function De(e, t, n, s) {
|
|
|
1468
1474
|
const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1469
1475
|
for (const a of n)
|
|
1470
1476
|
if (o = Cn(e, a), o) {
|
|
1471
|
-
let l = { ...
|
|
1477
|
+
let l = { ...Ue };
|
|
1472
1478
|
typeof r == "function" && (l = r(l));
|
|
1473
1479
|
const {
|
|
1474
1480
|
attributes: { width: c, height: f, ...i },
|
|
@@ -1481,18 +1487,18 @@ async function De(e, t, n, s) {
|
|
|
1481
1487
|
a,
|
|
1482
1488
|
s,
|
|
1483
1489
|
() => ({ ...i }),
|
|
1484
|
-
(
|
|
1485
|
-
const
|
|
1486
|
-
const A = m
|
|
1490
|
+
(_) => {
|
|
1491
|
+
const h = (m, v) => {
|
|
1492
|
+
const A = _[m];
|
|
1487
1493
|
let x;
|
|
1488
1494
|
if (!re(A)) {
|
|
1489
1495
|
if (A)
|
|
1490
1496
|
return;
|
|
1491
1497
|
typeof d == "number" ? d && (x = `${d}em`) : x = v;
|
|
1492
1498
|
}
|
|
1493
|
-
x ? m
|
|
1499
|
+
x ? _[m] = x : delete _[m];
|
|
1494
1500
|
};
|
|
1495
|
-
|
|
1501
|
+
h("width", c), h("height", f);
|
|
1496
1502
|
}
|
|
1497
1503
|
);
|
|
1498
1504
|
}
|
|
@@ -1649,6 +1655,7 @@ var Pn = [
|
|
|
1649
1655
|
"majesticons",
|
|
1650
1656
|
"maki",
|
|
1651
1657
|
"map",
|
|
1658
|
+
"marketeq",
|
|
1652
1659
|
"material-symbols-light",
|
|
1653
1660
|
"material-symbols",
|
|
1654
1661
|
"mdi-light",
|
|
@@ -1703,6 +1710,7 @@ var Pn = [
|
|
|
1703
1710
|
"uis",
|
|
1704
1711
|
"uit",
|
|
1705
1712
|
"uiw",
|
|
1713
|
+
"unjs",
|
|
1706
1714
|
"vaadin",
|
|
1707
1715
|
"vs",
|
|
1708
1716
|
"vscode-icons",
|
|
@@ -1714,7 +1722,7 @@ var Pn = [
|
|
|
1714
1722
|
"zondicons"
|
|
1715
1723
|
];
|
|
1716
1724
|
const Fn = /* @__PURE__ */ jn(Pn), Vn = 3;
|
|
1717
|
-
function
|
|
1725
|
+
function Gn(e) {
|
|
1718
1726
|
return (t = {}) => {
|
|
1719
1727
|
const {
|
|
1720
1728
|
scale: n = 1,
|
|
@@ -1728,7 +1736,7 @@ function Bn(e) {
|
|
|
1728
1736
|
collectionsNodeResolvePath: i,
|
|
1729
1737
|
layer: u = "icons",
|
|
1730
1738
|
unit: d
|
|
1731
|
-
} = t,
|
|
1739
|
+
} = t, _ = Hn(), h = {
|
|
1732
1740
|
addXmlNs: !0,
|
|
1733
1741
|
scale: n,
|
|
1734
1742
|
customCollections: a,
|
|
@@ -1741,12 +1749,12 @@ function Bn(e) {
|
|
|
1741
1749
|
additionalProps: { ...l },
|
|
1742
1750
|
trimCustomSvg: !0,
|
|
1743
1751
|
async iconCustomizer(v, A, x) {
|
|
1744
|
-
var
|
|
1745
|
-
await ((
|
|
1752
|
+
var y;
|
|
1753
|
+
await ((y = c.iconCustomizer) == null ? void 0 : y.call(c, v, A, x)), d && (x.width || (x.width = `${n}${d}`), x.height || (x.height = `${n}${d}`));
|
|
1746
1754
|
}
|
|
1747
1755
|
}
|
|
1748
1756
|
};
|
|
1749
|
-
let
|
|
1757
|
+
let m;
|
|
1750
1758
|
return {
|
|
1751
1759
|
name: "@unocss/preset-icons",
|
|
1752
1760
|
enforce: "pre",
|
|
@@ -1755,18 +1763,18 @@ function Bn(e) {
|
|
|
1755
1763
|
rules: [[
|
|
1756
1764
|
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1757
1765
|
async ([v, A, x = s]) => {
|
|
1758
|
-
let
|
|
1759
|
-
|
|
1766
|
+
let y = "", S = "", b;
|
|
1767
|
+
m = m || await e(t);
|
|
1760
1768
|
const p = {};
|
|
1761
1769
|
if (A.includes(":"))
|
|
1762
|
-
[
|
|
1770
|
+
[y, S] = A.split(":"), b = await m(y, S, { ...h, usedProps: p });
|
|
1763
1771
|
else {
|
|
1764
1772
|
const R = A.split(/-/g);
|
|
1765
|
-
for (let O = Vn; O >= 1 && (
|
|
1773
|
+
for (let O = Vn; O >= 1 && (y = R.slice(0, O).join("-"), S = R.slice(O).join("-"), b = await m(y, S, { ...h, usedProps: p }), !b); O--)
|
|
1766
1774
|
;
|
|
1767
1775
|
}
|
|
1768
1776
|
if (!b) {
|
|
1769
|
-
r && !
|
|
1777
|
+
r && !_.isESLint && $e(`failed to load icon "${v}"`);
|
|
1770
1778
|
return;
|
|
1771
1779
|
}
|
|
1772
1780
|
const w = `url("data:image/svg+xml;utf8,${Mn(b)}")`;
|
|
@@ -1814,7 +1822,7 @@ function Pe(e, t) {
|
|
|
1814
1822
|
return l;
|
|
1815
1823
|
};
|
|
1816
1824
|
}
|
|
1817
|
-
function
|
|
1825
|
+
function Hn() {
|
|
1818
1826
|
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!he.VSCODE_CWD, n = e && !!he.ESLINT;
|
|
1819
1827
|
return {
|
|
1820
1828
|
isNode: e,
|
|
@@ -1822,12 +1830,12 @@ function Gn() {
|
|
|
1822
1830
|
isESLint: n
|
|
1823
1831
|
};
|
|
1824
1832
|
}
|
|
1825
|
-
function
|
|
1833
|
+
function Bn(e) {
|
|
1826
1834
|
return Pe(Mt, e);
|
|
1827
1835
|
}
|
|
1828
|
-
const zn =
|
|
1836
|
+
const zn = Gn(async (e) => {
|
|
1829
1837
|
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1830
|
-
return t && n ? Pe(t, n) : n ?
|
|
1838
|
+
return t && n ? Pe(t, n) : n ? Bn(n) : je;
|
|
1831
1839
|
});
|
|
1832
1840
|
function qn(e) {
|
|
1833
1841
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
@@ -1870,52 +1878,52 @@ function Jn(e = {}) {
|
|
|
1870
1878
|
return;
|
|
1871
1879
|
}
|
|
1872
1880
|
const t = window, n = window.document, s = () => n.documentElement, o = t.__unocss || {}, r = Object.assign({}, e, o.runtime), a = r.defaults || {}, l = r.cloakAttribute ?? "un-cloak";
|
|
1873
|
-
r.autoPrefix && (a.postprocess =
|
|
1874
|
-
const c = hn(o, a), f = (
|
|
1875
|
-
let d = !0,
|
|
1876
|
-
const A = () => new Promise((
|
|
1877
|
-
v.push(
|
|
1881
|
+
r.autoPrefix && (a.postprocess = U(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = r.configResolved) == null || P.call(r, o, a);
|
|
1882
|
+
const c = hn(o, a), f = (g) => r.inject ? r.inject(g) : s().prepend(g), i = () => r.rootElement ? r.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1883
|
+
let d = !0, _ = /* @__PURE__ */ new Set(), h, m, v = [];
|
|
1884
|
+
const A = () => new Promise((g) => {
|
|
1885
|
+
v.push(g), m != null && clearTimeout(m), m = setTimeout(() => S().then(() => {
|
|
1878
1886
|
const E = v;
|
|
1879
1887
|
v = [], E.forEach((C) => C());
|
|
1880
1888
|
}), 0);
|
|
1881
1889
|
});
|
|
1882
|
-
function x(
|
|
1883
|
-
if (
|
|
1890
|
+
function x(g) {
|
|
1891
|
+
if (g.nodeType !== 1)
|
|
1884
1892
|
return;
|
|
1885
|
-
const E =
|
|
1893
|
+
const E = g;
|
|
1886
1894
|
E.hasAttribute(l) && E.removeAttribute(l), E.querySelectorAll(`[${l}]`).forEach((C) => {
|
|
1887
1895
|
C.removeAttribute(l);
|
|
1888
1896
|
});
|
|
1889
1897
|
}
|
|
1890
|
-
function g
|
|
1891
|
-
let C = u.get(
|
|
1898
|
+
function y(g, E) {
|
|
1899
|
+
let C = u.get(g);
|
|
1892
1900
|
if (!C)
|
|
1893
|
-
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer",
|
|
1901
|
+
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", g), u.set(g, C), E == null)
|
|
1894
1902
|
f(C);
|
|
1895
1903
|
else {
|
|
1896
|
-
const M =
|
|
1904
|
+
const M = y(E), $ = M.parentNode;
|
|
1897
1905
|
$ ? $.insertBefore(C, M.nextSibling) : f(C);
|
|
1898
1906
|
}
|
|
1899
1907
|
return C;
|
|
1900
1908
|
}
|
|
1901
1909
|
async function S() {
|
|
1902
|
-
const
|
|
1903
|
-
return
|
|
1904
|
-
...
|
|
1910
|
+
const g = await c.generate(_);
|
|
1911
|
+
return g.layers.reduce((E, C) => (y(C, E).innerHTML = g.getLayer(C) ?? "", C), void 0), _ = g.matched, {
|
|
1912
|
+
...g,
|
|
1905
1913
|
getStyleElement: (E) => u.get(E),
|
|
1906
1914
|
getStyleElements: () => u
|
|
1907
1915
|
};
|
|
1908
1916
|
}
|
|
1909
|
-
async function b(
|
|
1910
|
-
const E =
|
|
1911
|
-
await c.applyExtractors(
|
|
1917
|
+
async function b(g) {
|
|
1918
|
+
const E = _.size;
|
|
1919
|
+
await c.applyExtractors(g, void 0, _), E !== _.size && await A();
|
|
1912
1920
|
}
|
|
1913
|
-
async function p(
|
|
1914
|
-
const E =
|
|
1915
|
-
E && (await b(`${E} ${Kn(E)}`), x(s()), x(
|
|
1921
|
+
async function p(g = i()) {
|
|
1922
|
+
const E = g && g.outerHTML;
|
|
1923
|
+
E && (await b(`${E} ${Kn(E)}`), x(s()), x(g));
|
|
1916
1924
|
}
|
|
1917
|
-
const w = new MutationObserver((
|
|
1918
|
-
d ||
|
|
1925
|
+
const w = new MutationObserver((g) => {
|
|
1926
|
+
d || g.forEach(async (E) => {
|
|
1919
1927
|
if (E.target.nodeType !== 1)
|
|
1920
1928
|
return;
|
|
1921
1929
|
const C = E.target;
|
|
@@ -1927,10 +1935,10 @@ function Jn(e = {}) {
|
|
|
1927
1935
|
if (M.nodeType !== 1)
|
|
1928
1936
|
return;
|
|
1929
1937
|
const $ = M;
|
|
1930
|
-
|
|
1938
|
+
h && !h($) || (await b($.outerHTML), x($));
|
|
1931
1939
|
});
|
|
1932
1940
|
else {
|
|
1933
|
-
if (
|
|
1941
|
+
if (h && !h(C))
|
|
1934
1942
|
return;
|
|
1935
1943
|
if (E.attributeName !== l) {
|
|
1936
1944
|
const M = Array.from(C.attributes).map((T) => T.value ? `${T.name}="${T.value}"` : T.name).join(" "), $ = `<${C.tagName.toLowerCase()} ${M}>`;
|
|
@@ -1945,8 +1953,8 @@ function Jn(e = {}) {
|
|
|
1945
1953
|
var E, C;
|
|
1946
1954
|
if (R)
|
|
1947
1955
|
return;
|
|
1948
|
-
const
|
|
1949
|
-
|
|
1956
|
+
const g = (E = r.observer) != null && E.target ? r.observer.target() : i();
|
|
1957
|
+
g && (w.observe(g, {
|
|
1950
1958
|
childList: !0,
|
|
1951
1959
|
subtree: !0,
|
|
1952
1960
|
attributes: !0,
|
|
@@ -1962,15 +1970,15 @@ function Jn(e = {}) {
|
|
|
1962
1970
|
const j = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1963
1971
|
version: c.version,
|
|
1964
1972
|
uno: c,
|
|
1965
|
-
async extract(
|
|
1966
|
-
|
|
1973
|
+
async extract(g) {
|
|
1974
|
+
I(g) || (g.forEach((E) => _.add(E)), g = ""), await b(g);
|
|
1967
1975
|
},
|
|
1968
1976
|
extractAll: p,
|
|
1969
|
-
inspect(
|
|
1970
|
-
|
|
1977
|
+
inspect(g) {
|
|
1978
|
+
h = g;
|
|
1971
1979
|
},
|
|
1972
|
-
toggleObserver(
|
|
1973
|
-
|
|
1980
|
+
toggleObserver(g) {
|
|
1981
|
+
g === void 0 ? d = !d : d = !!g, !R && !d && N();
|
|
1974
1982
|
},
|
|
1975
1983
|
update: S,
|
|
1976
1984
|
presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
|