@vue/devtools-electron 7.1.2 → 7.2.0
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-CDBAuZCi.js +1104 -0
- package/client/assets/index-Cka_f-Nd.css +1 -0
- package/client/assets/shellscript-BZfs-ost.js +1 -0
- package/client/assets/shellscript-C_gmBC5P-BZfs-ost.js +1 -0
- package/client/assets/unocss-runtime-C2aH1Jer.js +2 -0
- package/client/assets/{vitesse-dark-CQ1WWl9n.js → vitesse-dark-Bxkoe-BC.js} +1 -1
- package/client/assets/{vitesse-dark-DX6gc1PC-CQ1WWl9n.js → vitesse-dark-CkUHDarG-Bxkoe-BC.js} +1 -1
- package/client/assets/{vitesse-light-BQX_J3vG-DaCkt_J7.js → vitesse-light-Br6ll-O0.js} +1 -1
- package/client/assets/{vitesse-light-DaCkt_J7.js → vitesse-light-K81-viQS-Br6ll-O0.js} +1 -1
- package/client/assets/{vue-CP4EDFt0.js → vue-CMvPPucx.js} +11 -11
- package/client/assets/vue-apis-9Qvy4Ky5.js +1 -0
- package/client/assets/{vue-html-9lCBN0KK.js → vue-html-DxgvOoVJ.js} +1 -1
- package/client/assets/{vue-html-D0BKftsE-DYUd3QbO.js → vue-html-PWeNQaIl-ChlIBMe8.js} +1 -1
- package/client/assets/{vue-CSiwUDF5-BenY5O_m.js → vue-yccoFuXf-q8nGVquG.js} +11 -11
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +20195 -19304
- package/client/index.html +2 -2
- package/client/shellscript-C_gmBC5P-C_gmBC5P.js +7 -0
- package/client/shellscript-C_gmBC5P.js +7 -0
- package/client/{unocss-runtime-o7rv-_rM.js → unocss-runtime-BDYBRtJJ.js} +336 -327
- package/client/{vitesse-dark-DX6gc1PC.js → vitesse-dark-CkUHDarG-CkUHDarG.js} +8 -6
- package/client/{vitesse-dark-DX6gc1PC-DX6gc1PC.js → vitesse-dark-CkUHDarG.js} +8 -6
- package/client/{vitesse-light-BQX_J3vG-BQX_J3vG.js → vitesse-light-K81-viQS-K81-viQS.js} +6 -4
- package/client/{vitesse-light-BQX_J3vG.js → vitesse-light-K81-viQS.js} +6 -4
- package/client/{vue-apis-CBD-3_AQ.js → vue-apis-Ba6Wxigc.js} +51 -26
- package/client/{vue-html-D0BKftsE-Br4pXe22.js → vue-html-PWeNQaIl-DK3oo545.js} +1 -1
- package/client/{vue-html-D0BKftsE.js → vue-html-PWeNQaIl.js} +1 -1
- package/client/{vue-CSiwUDF5-BrneCaTr.js → vue-yccoFuXf-BOEQuXwA.js} +26 -25
- package/client/{vue-CSiwUDF5.js → vue-yccoFuXf.js} +26 -25
- package/dist/devtools.js +181 -181
- package/dist/index.cjs +62 -62
- package/dist/index.js +62 -62
- package/dist/user-app.cjs +62 -62
- package/dist/user-app.iife.js +75 -75
- package/dist/user-app.js +62 -62
- package/package.json +6 -6
- package/client/assets/index-BFXmWfZp.css +0 -1
- package/client/assets/index-NGtCHpUr.js +0 -1104
- package/client/assets/shellscript-D4k753MY.js +0 -1
- package/client/assets/shellscript-DQ1J75ow-D4k753MY.js +0 -1
- package/client/assets/unocss-runtime-pCzu9suo.js +0 -2
- package/client/assets/vue-apis-buOuct3A.js +0 -1
- package/client/shellscript-DQ1J75ow-DQ1J75ow.js +0 -7
- package/client/shellscript-DQ1J75ow.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
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;
|
|
@@ -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) {
|
|
@@ -53,12 +53,12 @@ function ze(e, t = {}) {
|
|
|
53
53
|
return e;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
const qe = /#/g, We = /&/g, Ke = /\//g, Je = /=/g, se = /\+/g, Xe = /%5e/gi,
|
|
56
|
+
const qe = /#/g, We = /&/g, Ke = /\//g, Je = /=/g, se = /\+/g, Xe = /%5e/gi, Qe = /%60/gi, Ye = /%7c/gi, Ze = /%20/gi;
|
|
57
57
|
function et(e) {
|
|
58
|
-
return encodeURI("" + e).replace(
|
|
58
|
+
return encodeURI("" + e).replace(Ye, "|");
|
|
59
59
|
}
|
|
60
60
|
function ee(e) {
|
|
61
|
-
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(
|
|
61
|
+
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(Qe, "`").replace(Xe, "^").replace(Ke, "%2F");
|
|
62
62
|
}
|
|
63
63
|
function J(e) {
|
|
64
64
|
return ee(e).replace(Je, "%3D");
|
|
@@ -134,7 +134,7 @@ function dt(e, t) {
|
|
|
134
134
|
return e.startsWith(n) ? e : gt(n, e);
|
|
135
135
|
}
|
|
136
136
|
function mt(e, t) {
|
|
137
|
-
const n =
|
|
137
|
+
const n = Ce(e), s = { ...st(n.search), ...t };
|
|
138
138
|
return n.search = rt(s), yt(n);
|
|
139
139
|
}
|
|
140
140
|
function ht(e) {
|
|
@@ -153,8 +153,8 @@ function gt(e, ...t) {
|
|
|
153
153
|
n = s;
|
|
154
154
|
return n;
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
function
|
|
156
|
+
const Ae = Symbol.for("ufo:protocolRelative");
|
|
157
|
+
function Ce(e = "", t) {
|
|
158
158
|
const n = e.match(
|
|
159
159
|
/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
|
|
160
160
|
);
|
|
@@ -171,7 +171,7 @@ function Ae(e = "", t) {
|
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
if (!xe(e, { acceptRelative: !0 }))
|
|
174
|
-
return t ?
|
|
174
|
+
return t ? Ce(t + e) : ae(e);
|
|
175
175
|
const [, s = "", o, r = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = r.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: f, hash: i } = ae(
|
|
176
176
|
l.replace(/\/(?=[A-Za-z]:)/, "")
|
|
177
177
|
);
|
|
@@ -182,7 +182,7 @@ function Ae(e = "", t) {
|
|
|
182
182
|
pathname: c,
|
|
183
183
|
search: f,
|
|
184
184
|
hash: i,
|
|
185
|
-
[
|
|
185
|
+
[Ae]: !s
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
function ae(e = "") {
|
|
@@ -195,7 +195,7 @@ function ae(e = "") {
|
|
|
195
195
|
}
|
|
196
196
|
function yt(e) {
|
|
197
197
|
const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "", o = e.auth ? e.auth + "@" : "", r = e.host || "";
|
|
198
|
-
return (e.protocol || e[
|
|
198
|
+
return (e.protocol || e[Ae] ? (e.protocol || "") + "//" : "") + o + r + t + n + s;
|
|
199
199
|
}
|
|
200
200
|
class bt extends Error {
|
|
201
201
|
constructor(t, n) {
|
|
@@ -208,20 +208,20 @@ 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 m of ["request", "options", "response"])
|
|
212
|
+
Object.defineProperty(l, m, {
|
|
213
213
|
get() {
|
|
214
|
-
return e[
|
|
214
|
+
return e[m];
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
|
-
for (const [
|
|
217
|
+
for (const [m, 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, m, {
|
|
225
225
|
get() {
|
|
226
226
|
return e.response && e.response[h];
|
|
227
227
|
}
|
|
@@ -246,13 +246,13 @@ const Et = /* @__PURE__ */ new Set([
|
|
|
246
246
|
"application/xhtml",
|
|
247
247
|
"application/html"
|
|
248
248
|
]), xt = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
|
|
249
|
-
function
|
|
249
|
+
function At(e = "") {
|
|
250
250
|
if (!e)
|
|
251
251
|
return "json";
|
|
252
252
|
const t = e.split(";").shift() || "";
|
|
253
253
|
return xt.test(t) ? "json" : Et.has(t) || t.startsWith("text/") ? "text" : "blob";
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Ct(e, t, n = globalThis.Headers) {
|
|
256
256
|
const s = {
|
|
257
257
|
...t,
|
|
258
258
|
...e
|
|
@@ -287,7 +287,7 @@ const Ot = /* @__PURE__ */ new Set([
|
|
|
287
287
|
// Service Unavailable
|
|
288
288
|
504
|
|
289
289
|
// Gateway Timeout
|
|
290
|
-
]),
|
|
290
|
+
]), kt = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
291
291
|
function Oe(e = {}) {
|
|
292
292
|
const {
|
|
293
293
|
fetch: t = globalThis.fetch,
|
|
@@ -302,7 +302,7 @@ 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((m) => setTimeout(m, d)), r(l.request, {
|
|
306
306
|
...l.options,
|
|
307
307
|
retry: i - 1
|
|
308
308
|
});
|
|
@@ -312,14 +312,14 @@ function Oe(e = {}) {
|
|
|
312
312
|
throw Error.captureStackTrace && Error.captureStackTrace(f, r), f;
|
|
313
313
|
}
|
|
314
314
|
const r = async function(c, f = {}) {
|
|
315
|
-
var
|
|
315
|
+
var m;
|
|
316
316
|
const i = {
|
|
317
317
|
request: c,
|
|
318
|
-
options:
|
|
318
|
+
options: Ct(f, e.defaults, n),
|
|
319
319
|
response: void 0,
|
|
320
320
|
error: void 0
|
|
321
321
|
};
|
|
322
|
-
i.options.method = (
|
|
322
|
+
i.options.method = (m = i.options.method) == null ? void 0 : m.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, {
|
|
323
323
|
...i.options.params,
|
|
324
324
|
...i.options.query
|
|
325
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")) : (
|
|
@@ -345,12 +345,12 @@ function Oe(e = {}) {
|
|
|
345
345
|
} finally {
|
|
346
346
|
u && clearTimeout(u);
|
|
347
347
|
}
|
|
348
|
-
if (i.response.body && !
|
|
349
|
-
const h = (i.options.parseResponse ? "json" : i.options.responseType) ||
|
|
348
|
+
if (i.response.body && !kt.has(i.response.status) && i.options.method !== "HEAD") {
|
|
349
|
+
const h = (i.options.parseResponse ? "json" : i.options.responseType) || At(i.response.headers.get("content-type") || "");
|
|
350
350
|
switch (h) {
|
|
351
351
|
case "json": {
|
|
352
|
-
const
|
|
353
|
-
i.response._data = b(
|
|
352
|
+
const _ = await i.response.text(), b = i.options.parseResponse || ze;
|
|
353
|
+
i.response._data = b(_);
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
356
356
|
case "stream": {
|
|
@@ -383,7 +383,7 @@ const oe = function() {
|
|
|
383
383
|
if (typeof global < "u")
|
|
384
384
|
return global;
|
|
385
385
|
throw new Error("unable to locate global object");
|
|
386
|
-
}(),
|
|
386
|
+
}(), Rt = oe.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), Tt = oe.Headers, $t = oe.AbortController, Lt = Oe({ fetch: Rt, Headers: Tt, AbortController: $t }), Mt = Lt;
|
|
387
387
|
function Ut(e) {
|
|
388
388
|
const t = e.length;
|
|
389
389
|
let n = -1, s, o = "";
|
|
@@ -435,14 +435,14 @@ function W(e) {
|
|
|
435
435
|
function It(e, t) {
|
|
436
436
|
return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function M(e) {
|
|
439
439
|
return typeof e == "string";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
441
|
+
function G(e) {
|
|
442
|
+
return M(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
443
443
|
}
|
|
444
444
|
function Nt(e) {
|
|
445
|
-
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)];
|
|
446
446
|
}
|
|
447
447
|
function Dt(e) {
|
|
448
448
|
return e.filter(([t, n], s) => {
|
|
@@ -454,19 +454,19 @@ function Dt(e) {
|
|
|
454
454
|
return !0;
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Q(e) {
|
|
458
458
|
return e == null ? "" : Dt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function H(e) {
|
|
461
461
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function ke(e, t, n = !1) {
|
|
464
464
|
const s = e, o = t;
|
|
465
465
|
if (Array.isArray(o))
|
|
466
466
|
return n && Array.isArray(o) ? [...s, ...o] : [...o];
|
|
467
467
|
const r = { ...s };
|
|
468
|
-
return
|
|
469
|
-
|
|
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] = ke(s[a], o[a], n) : Object.assign(r, { [a]: o[a] });
|
|
470
470
|
}), r;
|
|
471
471
|
}
|
|
472
472
|
function z(e) {
|
|
@@ -490,10 +490,10 @@ function z(e) {
|
|
|
490
490
|
return e;
|
|
491
491
|
}
|
|
492
492
|
function jt(e) {
|
|
493
|
-
return
|
|
493
|
+
return M(e[0]);
|
|
494
494
|
}
|
|
495
495
|
function Pt(e) {
|
|
496
|
-
return
|
|
496
|
+
return M(e[0]);
|
|
497
497
|
}
|
|
498
498
|
const le = "$$shortcut-no-merge";
|
|
499
499
|
function Ft(e) {
|
|
@@ -505,9 +505,9 @@ function ue(e) {
|
|
|
505
505
|
function Vt(e) {
|
|
506
506
|
return e != null;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Gt() {
|
|
509
509
|
}
|
|
510
|
-
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, t + "", n), n);
|
|
511
511
|
class qt {
|
|
512
512
|
constructor() {
|
|
513
513
|
zt(this, "_map", /* @__PURE__ */ new Map());
|
|
@@ -558,8 +558,8 @@ class Wt extends Map {
|
|
|
558
558
|
}), n;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
var Kt = Object.defineProperty, Jt = (e, t, n) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xt = (e, t, n) => (Jt(e,
|
|
562
|
-
class
|
|
561
|
+
var Kt = Object.defineProperty, Jt = (e, t, n) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xt = (e, t, n) => (Jt(e, t + "", n), n);
|
|
562
|
+
class Re extends Set {
|
|
563
563
|
constructor(t) {
|
|
564
564
|
super(t), Xt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
|
|
565
565
|
}
|
|
@@ -579,38 +579,38 @@ class ke extends Set {
|
|
|
579
579
|
return this._map.set(t, n), super.add(t);
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return e instanceof
|
|
582
|
+
function Y(e) {
|
|
583
|
+
return e instanceof Re;
|
|
584
584
|
}
|
|
585
585
|
const B = {};
|
|
586
|
-
function
|
|
586
|
+
function Qt(e = ["-", ":"]) {
|
|
587
587
|
const t = e.join("|");
|
|
588
588
|
return B[t] || (B[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), B[t].lastIndex = 0, B[t];
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
const s =
|
|
590
|
+
function Yt(e, t = ["-", ":"], n = 5) {
|
|
591
|
+
const s = Qt(t);
|
|
592
592
|
let o, r = e.toString();
|
|
593
593
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
594
594
|
do
|
|
595
595
|
o = !1, r = r.replace(
|
|
596
596
|
s,
|
|
597
|
-
(f, i, u, d,
|
|
597
|
+
(f, i, u, d, m) => {
|
|
598
598
|
var b;
|
|
599
599
|
if (!t.includes(u))
|
|
600
600
|
return f;
|
|
601
601
|
o = !0, a.add(i + u);
|
|
602
|
-
const h =
|
|
603
|
-
l.set(
|
|
604
|
-
for (const
|
|
605
|
-
const
|
|
606
|
-
let
|
|
607
|
-
|
|
608
|
-
offset:
|
|
609
|
-
length:
|
|
610
|
-
className:
|
|
602
|
+
const h = m + i.length + u.length + 1, _ = { length: f.length, items: [] };
|
|
603
|
+
l.set(m, _);
|
|
604
|
+
for (const C of [...d.matchAll(/\S+/g)]) {
|
|
605
|
+
const A = h + C.index;
|
|
606
|
+
let g = (b = l.get(A)) == null ? void 0 : b.items;
|
|
607
|
+
g ? l.delete(A) : g = [{
|
|
608
|
+
offset: A,
|
|
609
|
+
length: C[0].length,
|
|
610
|
+
className: C[0]
|
|
611
611
|
}];
|
|
612
|
-
for (const S of
|
|
613
|
-
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`),
|
|
612
|
+
for (const S of g)
|
|
613
|
+
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), _.items.push(S);
|
|
614
614
|
}
|
|
615
615
|
return "$".repeat(f.length);
|
|
616
616
|
}
|
|
@@ -643,7 +643,7 @@ function Qt(e, t = ["-", ":"], n = 5) {
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
function Zt(e, t = ["-", ":"], n = 5) {
|
|
646
|
-
const s =
|
|
646
|
+
const s = Yt(e, t, n);
|
|
647
647
|
return typeof e == "string" ? s.expanded : e;
|
|
648
648
|
}
|
|
649
649
|
const fe = /* @__PURE__ */ new Set();
|
|
@@ -710,8 +710,8 @@ function Le(e) {
|
|
|
710
710
|
return [t, ...n];
|
|
711
711
|
}
|
|
712
712
|
function de(e = {}, t = {}) {
|
|
713
|
-
var S,
|
|
714
|
-
const n = Object.assign({}, t, e), s = It((n.presets || []).flatMap(I).flatMap(Le), (p,
|
|
713
|
+
var S, w;
|
|
714
|
+
const n = Object.assign({}, t, e), s = It((n.presets || []).flatMap(I).flatMap(Le), (p, v) => p.name === v.name), o = [
|
|
715
715
|
...s.filter((p) => p.enforce === "pre"),
|
|
716
716
|
...s.filter((p) => !p.enforce),
|
|
717
717
|
...s.filter((p) => p.enforce === "post")
|
|
@@ -720,42 +720,42 @@ function de(e = {}, t = {}) {
|
|
|
720
720
|
n
|
|
721
721
|
], a = [...r].reverse(), l = Object.assign({}, an, ...r.map((p) => p.layers));
|
|
722
722
|
function c(p) {
|
|
723
|
-
return W(r.flatMap((
|
|
723
|
+
return W(r.flatMap((v) => I(v[p] || [])));
|
|
724
724
|
}
|
|
725
725
|
const f = c("extractors");
|
|
726
726
|
let i = (S = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : S.extractorDefault;
|
|
727
|
-
i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p,
|
|
728
|
-
const u = c("rules"), d = {},
|
|
729
|
-
var
|
|
727
|
+
i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p, v) => (p.order || 0) - (v.order || 0));
|
|
728
|
+
const u = c("rules"), d = {}, m = u.length, h = u.map((p, v) => {
|
|
729
|
+
var k;
|
|
730
730
|
if (jt(p)) {
|
|
731
|
-
I(((
|
|
732
|
-
d[
|
|
731
|
+
I(((k = p[2]) == null ? void 0 : k.prefix) || "").forEach((T) => {
|
|
732
|
+
d[T + p[0]] = [v, p[1], p[2], p];
|
|
733
733
|
});
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
return [
|
|
736
|
+
return [v, ...p];
|
|
737
737
|
}).filter(Boolean).reverse();
|
|
738
|
-
let
|
|
738
|
+
let _ = ln(r.map((p) => p.theme));
|
|
739
739
|
const b = c("extendTheme");
|
|
740
740
|
for (const p of b)
|
|
741
|
-
|
|
742
|
-
const
|
|
741
|
+
_ = p(_) || _;
|
|
742
|
+
const C = {
|
|
743
743
|
templates: W(r.flatMap((p) => {
|
|
744
|
-
var
|
|
745
|
-
return I((
|
|
744
|
+
var v;
|
|
745
|
+
return I((v = p.autocomplete) == null ? void 0 : v.templates);
|
|
746
746
|
})),
|
|
747
747
|
extractors: r.flatMap((p) => {
|
|
748
|
-
var
|
|
749
|
-
return I((
|
|
750
|
-
}).sort((p,
|
|
748
|
+
var v;
|
|
749
|
+
return I((v = p.autocomplete) == null ? void 0 : v.extractors);
|
|
750
|
+
}).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
751
751
|
shorthands: un(r.map((p) => {
|
|
752
|
-
var
|
|
753
|
-
return ((
|
|
752
|
+
var v;
|
|
753
|
+
return ((v = p.autocomplete) == null ? void 0 : v.shorthands) || {};
|
|
754
754
|
}))
|
|
755
755
|
};
|
|
756
|
-
let
|
|
757
|
-
|
|
758
|
-
const
|
|
756
|
+
let A = c("separators");
|
|
757
|
+
A.length || (A = [":", "-"]);
|
|
758
|
+
const g = {
|
|
759
759
|
mergeSelectors: !0,
|
|
760
760
|
warn: !0,
|
|
761
761
|
sortLayers: (p) => p,
|
|
@@ -765,27 +765,27 @@ function de(e = {}, t = {}) {
|
|
|
765
765
|
envMode: n.envMode || "build",
|
|
766
766
|
shortcutsLayer: n.shortcutsLayer || "shortcuts",
|
|
767
767
|
layers: l,
|
|
768
|
-
theme:
|
|
769
|
-
rulesSize:
|
|
768
|
+
theme: _,
|
|
769
|
+
rulesSize: m,
|
|
770
770
|
rulesDynamic: h,
|
|
771
771
|
rulesStaticMap: d,
|
|
772
772
|
preprocess: c("preprocess"),
|
|
773
773
|
postprocess: c("postprocess"),
|
|
774
774
|
preflights: c("preflights"),
|
|
775
|
-
autocomplete:
|
|
776
|
-
variants: c("variants").map(Ft).sort((p,
|
|
775
|
+
autocomplete: C,
|
|
776
|
+
variants: c("variants").map(Ft).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
777
777
|
shortcuts: $e(c("shortcuts")).reverse(),
|
|
778
778
|
extractors: f,
|
|
779
779
|
safelist: c("safelist"),
|
|
780
|
-
separators:
|
|
780
|
+
separators: A,
|
|
781
781
|
details: n.details ?? n.envMode === "dev"
|
|
782
782
|
};
|
|
783
783
|
for (const p of r)
|
|
784
|
-
(
|
|
785
|
-
return
|
|
784
|
+
(w = p == null ? void 0 : p.configResolved) == null || w.call(p, g);
|
|
785
|
+
return g;
|
|
786
786
|
}
|
|
787
787
|
function ln(e) {
|
|
788
|
-
return e.map((t) => t ? z(t) : {}).reduce((t, n) =>
|
|
788
|
+
return e.map((t) => t ? z(t) : {}).reduce((t, n) => ke(t, n), {});
|
|
789
789
|
}
|
|
790
790
|
function un(e) {
|
|
791
791
|
return e.reduce((t, n) => {
|
|
@@ -800,11 +800,11 @@ function un(e) {
|
|
|
800
800
|
};
|
|
801
801
|
}, {});
|
|
802
802
|
}
|
|
803
|
-
const fn = "0.
|
|
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,
|
|
803
|
+
const fn = "0.60.2";
|
|
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, j = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
805
805
|
class mn {
|
|
806
806
|
constructor(t = {}, n = {}) {
|
|
807
|
-
this.userConfig = t, this.defaults = n,
|
|
807
|
+
this.userConfig = t, this.defaults = n, j(this, "version", fn), j(this, "_cache", /* @__PURE__ */ new Map()), j(this, "config"), j(this, "blocked", /* @__PURE__ */ new Set()), j(this, "parentOrders", /* @__PURE__ */ new Map()), j(this, "events", sn()), this.config = de(t, n), this.events.emit("config", this.config);
|
|
808
808
|
}
|
|
809
809
|
setConfig(t, n) {
|
|
810
810
|
t && (n && (this.defaults = n), this.userConfig = t, this.blocked.clear(), this.parentOrders.clear(), this._cache.clear(), this.config = de(t, this.defaults), this.events.emit("config", this.config));
|
|
@@ -821,7 +821,7 @@ class mn {
|
|
|
821
821
|
for (const a of this.config.extractors) {
|
|
822
822
|
const l = await ((r = a.extract) == null ? void 0 : r.call(a, o));
|
|
823
823
|
if (l)
|
|
824
|
-
if (
|
|
824
|
+
if (Y(l) && Y(s))
|
|
825
825
|
for (const c of l)
|
|
826
826
|
s.setCount(c, s.getCount(c) + l.getCount(c));
|
|
827
827
|
else
|
|
@@ -876,113 +876,113 @@ class mn {
|
|
|
876
876
|
safelist: a = !0,
|
|
877
877
|
minify: l = !1,
|
|
878
878
|
extendedInfo: c = !1
|
|
879
|
-
} = n, f = this.config.outputToCssLayers, i =
|
|
879
|
+
} = n, f = this.config.outputToCssLayers, i = M(t) ? await this.applyExtractors(
|
|
880
880
|
t,
|
|
881
881
|
s,
|
|
882
|
-
c ? new
|
|
882
|
+
c ? new Re() : /* @__PURE__ */ new Set()
|
|
883
883
|
) : Array.isArray(t) ? new Set(t) : t;
|
|
884
884
|
if (a) {
|
|
885
|
-
const
|
|
885
|
+
const w = {
|
|
886
886
|
generator: this,
|
|
887
887
|
theme: this.config.theme
|
|
888
888
|
};
|
|
889
|
-
this.config.safelist.flatMap((p) => typeof p == "function" ? p(
|
|
889
|
+
this.config.safelist.flatMap((p) => typeof p == "function" ? p(w) : p).forEach((p) => {
|
|
890
890
|
i.has(p) || i.add(p);
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
const u = l ? "" : `
|
|
894
|
-
`, d = /* @__PURE__ */ new Set([q]),
|
|
895
|
-
let
|
|
896
|
-
const b = Array.from(i).map(async (
|
|
897
|
-
var
|
|
898
|
-
if (
|
|
894
|
+
`, d = /* @__PURE__ */ new Set([q]), m = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map();
|
|
895
|
+
let _ = {};
|
|
896
|
+
const b = Array.from(i).map(async (w) => {
|
|
897
|
+
var v;
|
|
898
|
+
if (m.has(w))
|
|
899
899
|
return;
|
|
900
|
-
const p = await this.parseToken(
|
|
900
|
+
const p = await this.parseToken(w);
|
|
901
901
|
if (p != null) {
|
|
902
|
-
|
|
902
|
+
m instanceof Map ? m.set(w, {
|
|
903
903
|
data: p,
|
|
904
|
-
count:
|
|
905
|
-
}) :
|
|
906
|
-
for (const
|
|
907
|
-
const O =
|
|
908
|
-
h.has(O) || h.set(O, []), h.get(O).push(
|
|
904
|
+
count: Y(i) ? i.getCount(w) : -1
|
|
905
|
+
}) : m.add(w);
|
|
906
|
+
for (const k of p) {
|
|
907
|
+
const O = k[3] || "", T = (v = k[4]) == null ? void 0 : v.layer;
|
|
908
|
+
h.has(O) || h.set(O, []), h.get(O).push(k), T && d.add(T);
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
});
|
|
912
912
|
await Promise.all(b), await (async () => {
|
|
913
913
|
if (!r)
|
|
914
914
|
return;
|
|
915
|
-
const
|
|
915
|
+
const w = {
|
|
916
916
|
generator: this,
|
|
917
917
|
theme: this.config.theme
|
|
918
918
|
}, p = /* @__PURE__ */ new Set([]);
|
|
919
|
-
this.config.preflights.forEach(({ layer:
|
|
920
|
-
d.add(
|
|
921
|
-
}),
|
|
919
|
+
this.config.preflights.forEach(({ layer: v = ne }) => {
|
|
920
|
+
d.add(v), p.add(v);
|
|
921
|
+
}), _ = Object.fromEntries(
|
|
922
922
|
await Promise.all(Array.from(p).map(
|
|
923
|
-
async (
|
|
923
|
+
async (v) => {
|
|
924
924
|
const O = (await Promise.all(
|
|
925
|
-
this.config.preflights.filter((
|
|
925
|
+
this.config.preflights.filter((T) => (T.layer || ne) === v).map(async (T) => await T.getCSS(w))
|
|
926
926
|
)).filter(Boolean).join(u);
|
|
927
|
-
return [
|
|
927
|
+
return [v, O];
|
|
928
928
|
}
|
|
929
929
|
))
|
|
930
930
|
);
|
|
931
931
|
})();
|
|
932
|
-
const
|
|
933
|
-
var
|
|
934
|
-
if (
|
|
935
|
-
return
|
|
936
|
-
let p = Array.from(h).sort((O,
|
|
932
|
+
const C = this.config.sortLayers(Array.from(d).sort((w, p) => (this.config.layers[w] ?? 0) - (this.config.layers[p] ?? 0) || w.localeCompare(p))), A = {}, g = (w = q) => {
|
|
933
|
+
var k;
|
|
934
|
+
if (A[w])
|
|
935
|
+
return A[w];
|
|
936
|
+
let p = Array.from(h).sort((O, T) => {
|
|
937
937
|
var N;
|
|
938
|
-
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(
|
|
939
|
-
}).map(([O,
|
|
940
|
-
const N =
|
|
941
|
-
var
|
|
942
|
-
return (((
|
|
943
|
-
}).sort((
|
|
944
|
-
var E,
|
|
945
|
-
return
|
|
946
|
-
}).map(([,
|
|
947
|
-
[[(
|
|
948
|
-
|
|
949
|
-
!!(
|
|
938
|
+
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(T[0]) ?? 0) || ((N = O[0]) == null ? void 0 : N.localeCompare(T[0] || "")) || 0;
|
|
939
|
+
}).map(([O, T]) => {
|
|
940
|
+
const N = T.length, D = T.filter((R) => {
|
|
941
|
+
var y;
|
|
942
|
+
return (((y = R[4]) == null ? void 0 : y.layer) || q) === w;
|
|
943
|
+
}).sort((R, y) => {
|
|
944
|
+
var E, x, U, $, L, V, ie;
|
|
945
|
+
return R[0] - y[0] || (((E = R[4]) == null ? void 0 : E.sort) || 0) - (((x = y[4]) == null ? void 0 : x.sort) || 0) || ((L = (U = R[5]) == null ? void 0 : U.currentSelector) == null ? void 0 : L.localeCompare((($ = y[5]) == null ? void 0 : $.currentSelector) ?? "")) || ((V = R[1]) == null ? void 0 : V.localeCompare(y[1] || "")) || ((ie = R[2]) == null ? void 0 : ie.localeCompare(y[2] || "")) || 0;
|
|
946
|
+
}).map(([, R, y, , E, , x]) => [
|
|
947
|
+
[[(R && gn(R, o)) ?? "", (E == null ? void 0 : E.sort) ?? 0]],
|
|
948
|
+
y,
|
|
949
|
+
!!(x ?? (E == null ? void 0 : E.noMerge))
|
|
950
950
|
]);
|
|
951
|
-
if (!
|
|
951
|
+
if (!D.length)
|
|
952
952
|
return;
|
|
953
|
-
const P =
|
|
953
|
+
const P = D.reverse().map(([R, y, E], x) => {
|
|
954
954
|
if (!E && this.config.mergeSelectors)
|
|
955
|
-
for (let
|
|
956
|
-
const
|
|
957
|
-
if (
|
|
958
|
-
return
|
|
955
|
+
for (let $ = x + 1; $ < N; $++) {
|
|
956
|
+
const L = D[$];
|
|
957
|
+
if (L && !L[2] && (R && L[0] || R == null && L[0] == null) && L[1] === y)
|
|
958
|
+
return R && L[0] && L[0].push(...R), null;
|
|
959
959
|
}
|
|
960
|
-
const
|
|
960
|
+
const U = R ? W(R.sort(($, L) => {
|
|
961
961
|
var V;
|
|
962
|
-
return
|
|
963
|
-
}).map((
|
|
964
|
-
return
|
|
962
|
+
return $[1] - L[1] || ((V = $[0]) == null ? void 0 : V.localeCompare(L[0] || "")) || 0;
|
|
963
|
+
}).map(($) => $[0]).filter(Boolean)) : [];
|
|
964
|
+
return U.length ? `${U.join(`,${u}`)}{${y}}` : y;
|
|
965
965
|
}).filter(Boolean).reverse().join(u);
|
|
966
966
|
if (!O)
|
|
967
967
|
return P;
|
|
968
968
|
const F = O.split(" $$ ");
|
|
969
969
|
return `${F.join("{")}{${u}${P}${u}${"}".repeat(F.length)}`;
|
|
970
970
|
}).filter(Boolean).join(u);
|
|
971
|
-
if (r && (p = [
|
|
972
|
-
let O = typeof f == "object" ? (
|
|
973
|
-
O !== null && (O || (O =
|
|
971
|
+
if (r && (p = [_[w], p].filter(Boolean).join(u)), f && p) {
|
|
972
|
+
let O = typeof f == "object" ? (k = f.cssLayerName) == null ? void 0 : k.call(f, w) : void 0;
|
|
973
|
+
O !== null && (O || (O = w), p = `@layer ${O}{${u}${p}${u}}`);
|
|
974
974
|
}
|
|
975
|
-
const
|
|
976
|
-
return
|
|
977
|
-
}, S = (
|
|
975
|
+
const v = l ? "" : `/* layer: ${w} */${u}`;
|
|
976
|
+
return A[w] = p ? v + p : "";
|
|
977
|
+
}, S = (w = C, p) => w.filter((v) => !(p != null && p.includes(v))).map((v) => g(v) || "").filter(Boolean).join(u);
|
|
978
978
|
return {
|
|
979
979
|
get css() {
|
|
980
980
|
return S();
|
|
981
981
|
},
|
|
982
|
-
layers:
|
|
983
|
-
matched:
|
|
982
|
+
layers: C,
|
|
983
|
+
matched: m,
|
|
984
984
|
getLayers: S,
|
|
985
|
-
getLayer:
|
|
985
|
+
getLayer: g
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
async matchVariants(t, n) {
|
|
@@ -1000,7 +1000,7 @@ class mn {
|
|
|
1000
1000
|
continue;
|
|
1001
1001
|
let f = await c.match(r, l);
|
|
1002
1002
|
if (f) {
|
|
1003
|
-
if (
|
|
1003
|
+
if (M(f)) {
|
|
1004
1004
|
if (f === r)
|
|
1005
1005
|
continue;
|
|
1006
1006
|
f = { matcher: f };
|
|
@@ -1019,14 +1019,14 @@ class mn {
|
|
|
1019
1019
|
applyVariants(t, n = t[4], s = t[1]) {
|
|
1020
1020
|
const r = n.slice().sort((f, i) => (f.order || 0) - (i.order || 0)).reduceRight(
|
|
1021
1021
|
(f, i) => (u) => {
|
|
1022
|
-
var h,
|
|
1023
|
-
const d = ((h = i.body) == null ? void 0 : h.call(i, u.entries)) || u.entries,
|
|
1022
|
+
var h, _;
|
|
1023
|
+
const d = ((h = i.body) == null ? void 0 : h.call(i, u.entries)) || u.entries, m = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
|
|
1024
1024
|
return (i.handle ?? bn)({
|
|
1025
1025
|
...u,
|
|
1026
1026
|
entries: d,
|
|
1027
|
-
selector: ((
|
|
1028
|
-
parent:
|
|
1029
|
-
parentOrder:
|
|
1027
|
+
selector: ((_ = i.selector) == null ? void 0 : _.call(i, u.selector, d)) || u.selector,
|
|
1028
|
+
parent: m[0] || u.parent,
|
|
1029
|
+
parentOrder: m[1] || u.parentOrder,
|
|
1030
1030
|
layer: i.layer || u.layer,
|
|
1031
1031
|
sort: i.sort || u.sort
|
|
1032
1032
|
}, f);
|
|
@@ -1056,51 +1056,51 @@ class mn {
|
|
|
1056
1056
|
return c;
|
|
1057
1057
|
}
|
|
1058
1058
|
constructCustomCSS(t, n, s) {
|
|
1059
|
-
const o =
|
|
1060
|
-
if (
|
|
1059
|
+
const o = G(n);
|
|
1060
|
+
if (M(o))
|
|
1061
1061
|
return o;
|
|
1062
|
-
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${
|
|
1062
|
+
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${Q(a)}}`;
|
|
1063
1063
|
return l ? `${l}{${c}}` : c;
|
|
1064
1064
|
}
|
|
1065
1065
|
async parseUtil(t, n, s = !1, o) {
|
|
1066
1066
|
var i;
|
|
1067
|
-
const [r, a, l] =
|
|
1067
|
+
const [r, a, l] = M(t) ? await this.matchVariants(t) : t;
|
|
1068
1068
|
this.config.details && (n.rules = n.rules ?? []);
|
|
1069
1069
|
const c = this.config.rulesStaticMap[a];
|
|
1070
1070
|
if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
|
|
1071
1071
|
this.config.details && n.rules.push(c[3]);
|
|
1072
|
-
const u = c[0], d =
|
|
1073
|
-
return
|
|
1072
|
+
const u = c[0], d = G(c[1]), m = c[2];
|
|
1073
|
+
return M(d) ? [[u, d, m]] : [[u, r, d, m, l]];
|
|
1074
1074
|
}
|
|
1075
1075
|
n.variantHandlers = l;
|
|
1076
1076
|
const { rulesDynamic: f } = this.config;
|
|
1077
|
-
for (const [u, d,
|
|
1077
|
+
for (const [u, d, m, h] of f) {
|
|
1078
1078
|
if (h != null && h.internal && !s)
|
|
1079
1079
|
continue;
|
|
1080
|
-
let
|
|
1080
|
+
let _ = a;
|
|
1081
1081
|
if (h != null && h.prefix) {
|
|
1082
|
-
const
|
|
1082
|
+
const g = I(h.prefix);
|
|
1083
1083
|
if (o) {
|
|
1084
1084
|
const S = I(o);
|
|
1085
|
-
if (!
|
|
1085
|
+
if (!g.some((w) => S.includes(w)))
|
|
1086
1086
|
continue;
|
|
1087
1087
|
} else {
|
|
1088
|
-
const S =
|
|
1088
|
+
const S = g.find((w) => a.startsWith(w));
|
|
1089
1089
|
if (S == null)
|
|
1090
1090
|
continue;
|
|
1091
|
-
|
|
1091
|
+
_ = a.slice(S.length);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
const b =
|
|
1094
|
+
const b = _.match(d);
|
|
1095
1095
|
if (!b)
|
|
1096
1096
|
continue;
|
|
1097
|
-
const
|
|
1098
|
-
if (!
|
|
1097
|
+
const C = await m(b, n);
|
|
1098
|
+
if (!C)
|
|
1099
1099
|
continue;
|
|
1100
|
-
this.config.details && n.rules.push([d,
|
|
1101
|
-
const
|
|
1102
|
-
if (
|
|
1103
|
-
return
|
|
1100
|
+
this.config.details && n.rules.push([d, m, h]);
|
|
1101
|
+
const A = Nt(C).filter((g) => g.length);
|
|
1102
|
+
if (A.length)
|
|
1103
|
+
return A.map((g) => M(g) ? [u, g, h] : [u, r, g, h, l]);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
stringifyUtil(t, n) {
|
|
@@ -1108,15 +1108,15 @@ class mn {
|
|
|
1108
1108
|
return;
|
|
1109
1109
|
if (ue(t))
|
|
1110
1110
|
return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
|
|
1111
|
-
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f =
|
|
1111
|
+
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Q(o);
|
|
1112
1112
|
if (!f)
|
|
1113
1113
|
return;
|
|
1114
|
-
const { layer: i, sort: u, ...d } = t[3] ?? {},
|
|
1114
|
+
const { layer: i, sort: u, ...d } = t[3] ?? {}, m = {
|
|
1115
1115
|
...d,
|
|
1116
1116
|
layer: a ?? i,
|
|
1117
1117
|
sort: l ?? u
|
|
1118
1118
|
};
|
|
1119
|
-
return [t[0], s, f, r,
|
|
1119
|
+
return [t[0], s, f, r, m, this.config.details ? n : void 0, c];
|
|
1120
1120
|
}
|
|
1121
1121
|
async expandShortcut(t, n, s = 5) {
|
|
1122
1122
|
var l;
|
|
@@ -1124,7 +1124,7 @@ class mn {
|
|
|
1124
1124
|
return;
|
|
1125
1125
|
const o = this.config.details ? (c) => {
|
|
1126
1126
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1127
|
-
} :
|
|
1127
|
+
} : Gt;
|
|
1128
1128
|
let r, a;
|
|
1129
1129
|
for (const c of this.config.shortcuts) {
|
|
1130
1130
|
let f = t;
|
|
@@ -1147,18 +1147,18 @@ class mn {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
if (
|
|
1151
|
-
const [c, f] =
|
|
1150
|
+
if (M(a) && (a = Zt(a.trim()).split(/\s+/g)), !a) {
|
|
1151
|
+
const [c, f] = M(t) ? await this.matchVariants(t) : t;
|
|
1152
1152
|
if (c !== f) {
|
|
1153
1153
|
const i = await this.expandShortcut(f, n, s - 1);
|
|
1154
|
-
i && (a = i[0].map((u) =>
|
|
1154
|
+
i && (a = i[0].map((u) => M(u) ? c.replace(f, u) : u));
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
1157
|
if (a)
|
|
1158
1158
|
return [
|
|
1159
1159
|
(await Promise.all(a.map(async (c) => {
|
|
1160
1160
|
var f;
|
|
1161
|
-
return (
|
|
1161
|
+
return (M(c) ? (f = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : f[0] : void 0) || [c];
|
|
1162
1162
|
}))).flat(1).filter(Boolean),
|
|
1163
1163
|
r
|
|
1164
1164
|
];
|
|
@@ -1166,7 +1166,7 @@ class mn {
|
|
|
1166
1166
|
async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
|
|
1167
1167
|
var i;
|
|
1168
1168
|
const r = new Wt(), a = (await Promise.all(W(s).map(async (u) => {
|
|
1169
|
-
const d =
|
|
1169
|
+
const d = M(u) ? await this.parseUtil(u, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", G(u), void 0, []]];
|
|
1170
1170
|
return !d && this.config.warn && Te(`unmatched utility "${u}" in shortcut "${t[1]}"`), d || [];
|
|
1171
1171
|
}))).flat(1).filter(Boolean).sort((u, d) => u[0] - d[0]), [l, , c] = t, f = [];
|
|
1172
1172
|
for (const u of a) {
|
|
@@ -1174,31 +1174,38 @@ class mn {
|
|
|
1174
1174
|
f.push([u[0], void 0, u[1], void 0, u[2], n, void 0]);
|
|
1175
1175
|
continue;
|
|
1176
1176
|
}
|
|
1177
|
-
const { selector: d, entries:
|
|
1178
|
-
r.getFallback(
|
|
1177
|
+
const { selector: d, entries: m, parent: h, sort: _, noMerge: b, layer: C } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1178
|
+
r.getFallback(C ?? o.layer, new qt()).getFallback(d, h, [[], u[0]])[0].push([m, !!(b ?? ((i = u[3]) == null ? void 0 : i.noMerge)), _ ?? 0]);
|
|
1179
1179
|
}
|
|
1180
1180
|
return f.concat(r.flatMap(
|
|
1181
|
-
(u, d) => u.map(([
|
|
1182
|
-
const
|
|
1183
|
-
const p = Math.max(...
|
|
1184
|
-
return (
|
|
1185
|
-
const O =
|
|
1181
|
+
(u, d) => u.map(([m, h], _, b) => {
|
|
1182
|
+
const C = (g, S, w) => {
|
|
1183
|
+
const p = Math.max(...w.map((k) => k[1])), v = w.map((k) => k[0]);
|
|
1184
|
+
return (g ? [v.flat(1)] : v).map((k) => {
|
|
1185
|
+
const O = Q(k);
|
|
1186
1186
|
if (O)
|
|
1187
|
-
return [h,
|
|
1187
|
+
return [h, _, O, b, { ...o, noMerge: S, sort: p, layer: d }, n, void 0];
|
|
1188
1188
|
});
|
|
1189
1189
|
};
|
|
1190
1190
|
return [
|
|
1191
|
-
[
|
|
1192
|
-
[
|
|
1193
|
-
].map(([
|
|
1194
|
-
...
|
|
1195
|
-
...
|
|
1191
|
+
[m.filter(([, g]) => g).map(([g, , S]) => [g, S]), !0],
|
|
1192
|
+
[m.filter(([, g]) => !g).map(([g, , S]) => [g, S]), !1]
|
|
1193
|
+
].map(([g, S]) => [
|
|
1194
|
+
...C(!1, S, g.filter(([w]) => w.some((p) => p[0] === le))),
|
|
1195
|
+
...C(!0, S, g.filter(([w]) => w.every((p) => p[0] !== le)))
|
|
1196
1196
|
]);
|
|
1197
1197
|
}).flat(2).filter(Boolean)
|
|
1198
1198
|
));
|
|
1199
1199
|
}
|
|
1200
1200
|
isBlocked(t) {
|
|
1201
|
-
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) :
|
|
1201
|
+
return !t || this.config.blocklist.map((n) => Array.isArray(n) ? n[0] : n).some((n) => typeof n == "function" ? n(t) : M(n) ? n === t : n.test(t));
|
|
1202
|
+
}
|
|
1203
|
+
getBlocked(t) {
|
|
1204
|
+
const n = this.config.blocklist.find((s) => {
|
|
1205
|
+
const o = Array.isArray(s) ? s[0] : s;
|
|
1206
|
+
return typeof o == "function" ? o(t) : M(o) ? o === t : o.test(t);
|
|
1207
|
+
});
|
|
1208
|
+
return n ? Array.isArray(n) ? n : [n, void 0] : void 0;
|
|
1202
1209
|
}
|
|
1203
1210
|
}
|
|
1204
1211
|
function hn(e, t) {
|
|
@@ -1218,7 +1225,7 @@ function yn(e) {
|
|
|
1218
1225
|
function bn(e, t) {
|
|
1219
1226
|
return t(e);
|
|
1220
1227
|
}
|
|
1221
|
-
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", COREPACK_ROOT: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/lib/node_modules/corepack", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/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.10", 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.4", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.88.0", 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:234A6DC0-F4C5-4C50-AEE4-FB3A44C50A9C", 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.2bYcbedzEH/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@9.0.5/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@9.0.5/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@9.0.5/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@9.0.5/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/.cache/node/corepack/v1/pnpm/9.0.5/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/58793_1713883409402/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/34428_1713758129440/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: "DA9FCCD3-7DFB-43C5-9302-9E7BC0DC0C15", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", COREPACK_ENABLE_DOWNLOAD_PROMPT: "1", 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.23", 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.75.0", npm_package_devDependencies__unocss_reset: "^0.59.4", 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.10_@types+node@20.12.7_sass@1.75.0_terser@5.26.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_sass@1.75.0_terser@5.26.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.10_@types+node@20.12.7_sass@1.75.0_terser@5.26.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/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@9.0.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/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@9.0.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.0.5/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/58793_1713883409402", TURBO_HASH: "302655beb7363e53", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.59.4", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/.cache/node/corepack/v1/pnpm/9.0.5/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.203", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.1.2", XPC_SERVICE_NAME: "0", npm_package_dependencies__vue_devtools_applet: "workspace:^", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.59.4", 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:234A6DC0-F4C5-4C50-AEE4-FB3A44C50A9C", 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-dffc443db3.sock", npm_config_user_agent: "pnpm/9.0.5 npm/? node/v20.12.2 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.12.7", 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.2", npm_package_dependencies_shiki: "1.3.0", SECURITYSESSIONID: "186a4", npm_package_dependencies__unocss_preset_icons: "^0.59.4", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1228
|
+
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", COREPACK_ROOT: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/lib/node_modules/corepack", MallocProbGuardViaLaunchd: "1", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/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.11", 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.60.2", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.88.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.27.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", ZDOTDIR: "/Users/arlo", TERM_SESSION_ID: "w0t0p0:C01E179E-98A3-44E7-9CED-32216CED5FA5", 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.CoVhIeG5qy/Listeners", npm_package_devDependencies_dayjs: "^1.11.11", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_devDependencies_unplugin_auto_import: "^0.17.6", 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@9.1.1/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@9.1.1/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@9.1.1/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/.cache/node/corepack/v1/pnpm/9.1.1/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/51179_1715775053553/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/89325_1715693945275/bin:/opt/homebrew/bin:/Applications/WebStorm.app/Contents/MacOS:/Applications/WebStorm.app/Contents/MacOS", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "D1B0D8EB-573D-4FE7-A0D4-FE305B4D9B2B", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", COREPACK_ENABLE_DOWNLOAD_PROMPT: "1", 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.27", 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.77.1", npm_package_devDependencies__unocss_reset: "^0.60.2", 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.11_@types+node@20.12.12_sass@1.77.1_terser@5.26.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.11_@types+node@20.12.12_sass@1.77.1_terser@5.26.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.11_@types+node@20.12.12_sass@1.77.1_terser@5.26.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/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@9.1.1/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.3/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.1.1/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/51179_1715775053553", TURBO_HASH: "4548fa37b429bf35", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.60.2", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/.cache/node/corepack/v1/pnpm/9.1.1/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.210", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.2.0", XPC_SERVICE_NAME: "0", npm_package_dependencies__vue_devtools_applet: "workspace:^", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.60.2", 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:C01E179E-98A3-44E7-9CED-32216CED5FA5", 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-dffc443db3.sock", npm_config_user_agent: "pnpm/9.1.1 npm/? node/v20.12.2 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.12.12", 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.2", npm_package_dependencies_shiki: "1.5.2", SECURITYSESSIONID: "186a5", npm_package_dependencies__unocss_preset_icons: "^0.60.2", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1222
1229
|
const vn = Object.freeze(
|
|
1223
1230
|
{
|
|
1224
1231
|
left: 0,
|
|
@@ -1283,13 +1290,13 @@ function ge(e, t, n) {
|
|
|
1283
1290
|
}
|
|
1284
1291
|
return a(t), n.forEach(a), _e(e, r);
|
|
1285
1292
|
}
|
|
1286
|
-
function
|
|
1293
|
+
function An(e, t) {
|
|
1287
1294
|
if (e.icons[t])
|
|
1288
1295
|
return ge(e, t, []);
|
|
1289
1296
|
const n = xn(e, [t])[t];
|
|
1290
1297
|
return n ? ge(e, t, n) : null;
|
|
1291
1298
|
}
|
|
1292
|
-
const
|
|
1299
|
+
const Cn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, On = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
1293
1300
|
function ye(e, t, n) {
|
|
1294
1301
|
if (t === 1)
|
|
1295
1302
|
return e;
|
|
@@ -1297,7 +1304,7 @@ function ye(e, t, n) {
|
|
|
1297
1304
|
return Math.ceil(e * t * n) / n;
|
|
1298
1305
|
if (typeof e != "string")
|
|
1299
1306
|
return e;
|
|
1300
|
-
const s = e.split(
|
|
1307
|
+
const s = e.split(Cn);
|
|
1301
1308
|
if (s === null || !s.length)
|
|
1302
1309
|
return e;
|
|
1303
1310
|
const o = [];
|
|
@@ -1313,7 +1320,7 @@ function ye(e, t, n) {
|
|
|
1313
1320
|
a = !a;
|
|
1314
1321
|
}
|
|
1315
1322
|
}
|
|
1316
|
-
function
|
|
1323
|
+
function kn(e, t = "defs") {
|
|
1317
1324
|
let n = "";
|
|
1318
1325
|
const s = e.indexOf("<" + t);
|
|
1319
1326
|
for (; s >= 0; ) {
|
|
@@ -1330,12 +1337,12 @@ function Rn(e, t = "defs") {
|
|
|
1330
1337
|
content: e
|
|
1331
1338
|
};
|
|
1332
1339
|
}
|
|
1333
|
-
function
|
|
1340
|
+
function Rn(e, t) {
|
|
1334
1341
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
1335
1342
|
}
|
|
1336
1343
|
function Tn(e, t, n) {
|
|
1337
|
-
const s =
|
|
1338
|
-
return
|
|
1344
|
+
const s = kn(e);
|
|
1345
|
+
return Rn(s.defs, t + s.content + n);
|
|
1339
1346
|
}
|
|
1340
1347
|
const re = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1341
1348
|
function $n(e, t) {
|
|
@@ -1352,16 +1359,16 @@ function $n(e, t) {
|
|
|
1352
1359
|
height: n.height
|
|
1353
1360
|
};
|
|
1354
1361
|
let r = n.body;
|
|
1355
|
-
[n, s].forEach((
|
|
1356
|
-
const b = [],
|
|
1357
|
-
let
|
|
1358
|
-
|
|
1362
|
+
[n, s].forEach((_) => {
|
|
1363
|
+
const b = [], C = _.hFlip, A = _.vFlip;
|
|
1364
|
+
let g = _.rotate;
|
|
1365
|
+
C ? A ? g += 2 : (b.push(
|
|
1359
1366
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
1360
|
-
), b.push("scale(-1 1)"), o.top = o.left = 0) :
|
|
1367
|
+
), b.push("scale(-1 1)"), o.top = o.left = 0) : A && (b.push(
|
|
1361
1368
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
1362
1369
|
), b.push("scale(1 -1)"), o.top = o.left = 0);
|
|
1363
1370
|
let S;
|
|
1364
|
-
switch (
|
|
1371
|
+
switch (g < 0 && (g -= Math.floor(g / 4) * 4), g = g % 4, g) {
|
|
1365
1372
|
case 1:
|
|
1366
1373
|
S = o.height / 2 + o.top, b.unshift(
|
|
1367
1374
|
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
@@ -1378,7 +1385,7 @@ function $n(e, t) {
|
|
|
1378
1385
|
);
|
|
1379
1386
|
break;
|
|
1380
1387
|
}
|
|
1381
|
-
|
|
1388
|
+
g % 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)), b.length && (r = Tn(
|
|
1382
1389
|
r,
|
|
1383
1390
|
'<g transform="' + b.join(" ") + '">',
|
|
1384
1391
|
"</g>"
|
|
@@ -1387,10 +1394,10 @@ function $n(e, t) {
|
|
|
1387
1394
|
const a = s.width, l = s.height, c = o.width, f = o.height;
|
|
1388
1395
|
let i, u;
|
|
1389
1396
|
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);
|
|
1390
|
-
const d = {},
|
|
1391
|
-
re(b) || (d[
|
|
1397
|
+
const d = {}, m = (_, b) => {
|
|
1398
|
+
re(b) || (d[_] = b.toString());
|
|
1392
1399
|
};
|
|
1393
|
-
|
|
1400
|
+
m("width", i), m("height", u);
|
|
1394
1401
|
const h = [o.left, o.top, c, f];
|
|
1395
1402
|
return d.viewBox = h.join(" "), {
|
|
1396
1403
|
attributes: d,
|
|
@@ -1424,23 +1431,23 @@ function Dn(e, t, n) {
|
|
|
1424
1431
|
}
|
|
1425
1432
|
async function Ne(e, t, n, s, o, r) {
|
|
1426
1433
|
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (o == null ? void 0 : o()) ?? {};
|
|
1427
|
-
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((
|
|
1428
|
-
const b = c[
|
|
1429
|
-
b != null && (i[
|
|
1434
|
+
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((_) => {
|
|
1435
|
+
const b = c[_];
|
|
1436
|
+
b != null && (i[_] = b);
|
|
1430
1437
|
}), r == null || r(i);
|
|
1431
1438
|
const [u, d] = Dn(e, i, a);
|
|
1432
1439
|
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"));
|
|
1433
|
-
const
|
|
1434
|
-
(
|
|
1435
|
-
).filter((
|
|
1436
|
-
if (
|
|
1437
|
-
const { defaultStyle:
|
|
1438
|
-
b && !e.includes("class=") && (e = e.replace(Z, `<svg class="${b}" `)),
|
|
1440
|
+
const m = Object.keys(i).map(
|
|
1441
|
+
(_) => _ === "width" && u || _ === "height" && d ? null : `${_}="${i[_]}"`
|
|
1442
|
+
).filter((_) => _ != null);
|
|
1443
|
+
if (m.length && (e = e.replace(Z, `<svg ${m.join(" ")} `)), s) {
|
|
1444
|
+
const { defaultStyle: _, defaultClass: b } = s;
|
|
1445
|
+
b && !e.includes("class=") && (e = e.replace(Z, `<svg class="${b}" `)), _ && !e.includes("style=") && (e = e.replace(Z, `<svg style="${_}" `));
|
|
1439
1446
|
}
|
|
1440
1447
|
const h = s == null ? void 0 : s.usedProps;
|
|
1441
|
-
return h && (Object.keys(c).forEach((
|
|
1442
|
-
const b = i[
|
|
1443
|
-
b != null && (h[
|
|
1448
|
+
return h && (Object.keys(c).forEach((_) => {
|
|
1449
|
+
const b = i[_];
|
|
1450
|
+
b != null && (h[_] = b);
|
|
1444
1451
|
}), typeof i.width < "u" && i.width !== null && (h.width = i.width), typeof i.height < "u" && i.height !== null && (h.height = i.height)), e;
|
|
1445
1452
|
}
|
|
1446
1453
|
async function be(e, t, n, s) {
|
|
@@ -1479,7 +1486,7 @@ async function De(e, t, n, s) {
|
|
|
1479
1486
|
let o;
|
|
1480
1487
|
const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1481
1488
|
for (const a of n)
|
|
1482
|
-
if (o =
|
|
1489
|
+
if (o = An(e, a), o) {
|
|
1483
1490
|
let l = { ...Ie };
|
|
1484
1491
|
typeof r == "function" && (l = r(l));
|
|
1485
1492
|
const {
|
|
@@ -1493,16 +1500,16 @@ async function De(e, t, n, s) {
|
|
|
1493
1500
|
a,
|
|
1494
1501
|
s,
|
|
1495
1502
|
() => ({ ...i }),
|
|
1496
|
-
(
|
|
1497
|
-
const h = (
|
|
1498
|
-
const
|
|
1499
|
-
let
|
|
1500
|
-
if (!re(
|
|
1501
|
-
if (
|
|
1503
|
+
(m) => {
|
|
1504
|
+
const h = (_, b) => {
|
|
1505
|
+
const C = m[_];
|
|
1506
|
+
let A;
|
|
1507
|
+
if (!re(C)) {
|
|
1508
|
+
if (C)
|
|
1502
1509
|
return;
|
|
1503
|
-
typeof d == "number" ? d && (
|
|
1510
|
+
typeof d == "number" ? d && (A = `${d}em`) : A = b;
|
|
1504
1511
|
}
|
|
1505
|
-
|
|
1512
|
+
A ? m[_] = A : delete m[_];
|
|
1506
1513
|
};
|
|
1507
1514
|
h("width", c), h("height", f);
|
|
1508
1515
|
}
|
|
@@ -1730,7 +1737,7 @@ var Pn = [
|
|
|
1730
1737
|
"zondicons"
|
|
1731
1738
|
];
|
|
1732
1739
|
const Fn = /* @__PURE__ */ jn(Pn), Vn = 3;
|
|
1733
|
-
function
|
|
1740
|
+
function Gn(e) {
|
|
1734
1741
|
return (t = {}) => {
|
|
1735
1742
|
const {
|
|
1736
1743
|
scale: n = 1,
|
|
@@ -1743,8 +1750,9 @@ function Hn(e) {
|
|
|
1743
1750
|
autoInstall: f = !1,
|
|
1744
1751
|
collectionsNodeResolvePath: i,
|
|
1745
1752
|
layer: u = "icons",
|
|
1746
|
-
unit: d
|
|
1747
|
-
|
|
1753
|
+
unit: d,
|
|
1754
|
+
processor: m
|
|
1755
|
+
} = t, h = Hn(), _ = {
|
|
1748
1756
|
addXmlNs: !0,
|
|
1749
1757
|
scale: n,
|
|
1750
1758
|
customCollections: a,
|
|
@@ -1756,13 +1764,13 @@ function Hn(e) {
|
|
|
1756
1764
|
...c,
|
|
1757
1765
|
additionalProps: { ...l },
|
|
1758
1766
|
trimCustomSvg: !0,
|
|
1759
|
-
async iconCustomizer(
|
|
1760
|
-
var
|
|
1761
|
-
await ((
|
|
1767
|
+
async iconCustomizer(C, A, g) {
|
|
1768
|
+
var S;
|
|
1769
|
+
await ((S = c.iconCustomizer) == null ? void 0 : S.call(c, C, A, g)), d && (g.width || (g.width = `${n}${d}`), g.height || (g.height = `${n}${d}`));
|
|
1762
1770
|
}
|
|
1763
1771
|
}
|
|
1764
1772
|
};
|
|
1765
|
-
let
|
|
1773
|
+
let b;
|
|
1766
1774
|
return {
|
|
1767
1775
|
name: "@unocss/preset-icons",
|
|
1768
1776
|
enforce: "pre",
|
|
@@ -1770,24 +1778,25 @@ function Hn(e) {
|
|
|
1770
1778
|
layers: { icons: -30 },
|
|
1771
1779
|
rules: [[
|
|
1772
1780
|
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1773
|
-
async (
|
|
1774
|
-
let
|
|
1775
|
-
|
|
1776
|
-
const
|
|
1777
|
-
if (
|
|
1778
|
-
[
|
|
1781
|
+
async (C) => {
|
|
1782
|
+
let [A, g, S = s] = C, w = "", p = "", v;
|
|
1783
|
+
b = b || await e(t);
|
|
1784
|
+
const k = {};
|
|
1785
|
+
if (g.includes(":"))
|
|
1786
|
+
[w, p] = g.split(":"), v = await b(w, p, { ..._, usedProps: k });
|
|
1779
1787
|
else {
|
|
1780
|
-
const
|
|
1781
|
-
for (let
|
|
1788
|
+
const N = g.split(/-/g);
|
|
1789
|
+
for (let D = Vn; D >= 1 && (w = N.slice(0, D).join("-"), p = N.slice(D).join("-"), v = await b(w, p, { ..._, usedProps: k }), !v); D--)
|
|
1782
1790
|
;
|
|
1783
1791
|
}
|
|
1784
1792
|
if (!v) {
|
|
1785
|
-
r && !
|
|
1793
|
+
r && !h.isESLint && Te(`failed to load icon "${A}"`);
|
|
1786
1794
|
return;
|
|
1787
1795
|
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1796
|
+
let O;
|
|
1797
|
+
const T = `url("data:image/svg+xml;utf8,${Mn(v)}")`;
|
|
1798
|
+
return S === "auto" && (S = v.includes("currentColor") ? "mask" : "bg"), S === "mask" ? O = {
|
|
1799
|
+
"--un-icon": T,
|
|
1791
1800
|
"-webkit-mask": "var(--un-icon) no-repeat",
|
|
1792
1801
|
mask: "var(--un-icon) no-repeat",
|
|
1793
1802
|
"-webkit-mask-size": "100% 100%",
|
|
@@ -1795,13 +1804,13 @@ function Hn(e) {
|
|
|
1795
1804
|
"background-color": "currentColor",
|
|
1796
1805
|
// for Safari https://github.com/elk-zone/elk/pull/264
|
|
1797
1806
|
color: "inherit",
|
|
1798
|
-
...
|
|
1799
|
-
} : {
|
|
1800
|
-
background: `${
|
|
1807
|
+
...k
|
|
1808
|
+
} : O = {
|
|
1809
|
+
background: `${T} no-repeat`,
|
|
1801
1810
|
"background-size": "100% 100%",
|
|
1802
1811
|
"background-color": "transparent",
|
|
1803
|
-
...
|
|
1804
|
-
};
|
|
1812
|
+
...k
|
|
1813
|
+
}, m == null || m(O, { collection: w, icon: p, svg: v, mode: S }), O;
|
|
1805
1814
|
},
|
|
1806
1815
|
{ layer: u, prefix: o }
|
|
1807
1816
|
]]
|
|
@@ -1830,7 +1839,7 @@ function Pe(e, t) {
|
|
|
1830
1839
|
return l;
|
|
1831
1840
|
};
|
|
1832
1841
|
}
|
|
1833
|
-
function
|
|
1842
|
+
function Hn() {
|
|
1834
1843
|
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!he.VSCODE_CWD, n = e && !!he.ESLINT;
|
|
1835
1844
|
return {
|
|
1836
1845
|
isNode: e,
|
|
@@ -1841,7 +1850,7 @@ function Gn() {
|
|
|
1841
1850
|
function Bn(e) {
|
|
1842
1851
|
return Pe(Mt, e);
|
|
1843
1852
|
}
|
|
1844
|
-
const zn =
|
|
1853
|
+
const zn = Gn(async (e) => {
|
|
1845
1854
|
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1846
1855
|
return t && n ? Pe(t, n) : n ? Bn(n) : je;
|
|
1847
1856
|
});
|
|
@@ -1880,118 +1889,118 @@ function Kn(e) {
|
|
|
1880
1889
|
return e.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<");
|
|
1881
1890
|
}
|
|
1882
1891
|
function Jn(e = {}) {
|
|
1883
|
-
var P, F,
|
|
1892
|
+
var P, F, R;
|
|
1884
1893
|
if (typeof window > "u") {
|
|
1885
1894
|
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
1886
1895
|
return;
|
|
1887
1896
|
}
|
|
1888
1897
|
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";
|
|
1889
1898
|
r.autoPrefix && (a.postprocess = I(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = r.configResolved) == null || P.call(r, o, a);
|
|
1890
|
-
const c = hn(o, a), f = (
|
|
1891
|
-
let d = !0,
|
|
1892
|
-
const
|
|
1893
|
-
b.push(
|
|
1899
|
+
const c = hn(o, a), f = (y) => r.inject ? r.inject(y) : s().prepend(y), i = () => r.rootElement ? r.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1900
|
+
let d = !0, m = /* @__PURE__ */ new Set(), h, _, b = [];
|
|
1901
|
+
const C = () => new Promise((y) => {
|
|
1902
|
+
b.push(y), _ != null && clearTimeout(_), _ = setTimeout(() => S().then(() => {
|
|
1894
1903
|
const E = b;
|
|
1895
|
-
b = [], E.forEach((
|
|
1904
|
+
b = [], E.forEach((x) => x());
|
|
1896
1905
|
}), 0);
|
|
1897
1906
|
});
|
|
1898
|
-
function
|
|
1899
|
-
if (
|
|
1907
|
+
function A(y) {
|
|
1908
|
+
if (y.nodeType !== 1)
|
|
1900
1909
|
return;
|
|
1901
|
-
const E =
|
|
1902
|
-
E.hasAttribute(l) && E.removeAttribute(l), E.querySelectorAll(`[${l}]`).forEach((
|
|
1903
|
-
|
|
1910
|
+
const E = y;
|
|
1911
|
+
E.hasAttribute(l) && E.removeAttribute(l), E.querySelectorAll(`[${l}]`).forEach((x) => {
|
|
1912
|
+
x.removeAttribute(l);
|
|
1904
1913
|
});
|
|
1905
1914
|
}
|
|
1906
|
-
function y
|
|
1907
|
-
let
|
|
1908
|
-
if (!
|
|
1909
|
-
if (
|
|
1910
|
-
f(
|
|
1915
|
+
function g(y, E) {
|
|
1916
|
+
let x = u.get(y);
|
|
1917
|
+
if (!x)
|
|
1918
|
+
if (x = n.createElement("style"), x.setAttribute("data-unocss-runtime-layer", y), u.set(y, x), E == null)
|
|
1919
|
+
f(x);
|
|
1911
1920
|
else {
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1921
|
+
const U = g(E), $ = U.parentNode;
|
|
1922
|
+
$ ? $.insertBefore(x, U.nextSibling) : f(x);
|
|
1914
1923
|
}
|
|
1915
|
-
return
|
|
1924
|
+
return x;
|
|
1916
1925
|
}
|
|
1917
1926
|
async function S() {
|
|
1918
|
-
const
|
|
1919
|
-
return
|
|
1920
|
-
...
|
|
1927
|
+
const y = await c.generate(m);
|
|
1928
|
+
return y.layers.reduce((E, x) => (g(x, E).innerHTML = y.getLayer(x) ?? "", x), void 0), m = y.matched, {
|
|
1929
|
+
...y,
|
|
1921
1930
|
getStyleElement: (E) => u.get(E),
|
|
1922
1931
|
getStyleElements: () => u
|
|
1923
1932
|
};
|
|
1924
1933
|
}
|
|
1925
|
-
async function
|
|
1926
|
-
const E =
|
|
1927
|
-
await c.applyExtractors(
|
|
1934
|
+
async function w(y) {
|
|
1935
|
+
const E = m.size;
|
|
1936
|
+
await c.applyExtractors(y, void 0, m), E !== m.size && await C();
|
|
1928
1937
|
}
|
|
1929
|
-
async function p(
|
|
1930
|
-
const E =
|
|
1931
|
-
E && (await
|
|
1938
|
+
async function p(y = i()) {
|
|
1939
|
+
const E = y && y.outerHTML;
|
|
1940
|
+
E && (await w(`${E} ${Kn(E)}`), A(s()), A(y));
|
|
1932
1941
|
}
|
|
1933
|
-
const
|
|
1934
|
-
d ||
|
|
1942
|
+
const v = new MutationObserver((y) => {
|
|
1943
|
+
d || y.forEach(async (E) => {
|
|
1935
1944
|
if (E.target.nodeType !== 1)
|
|
1936
1945
|
return;
|
|
1937
|
-
const
|
|
1938
|
-
for (const
|
|
1939
|
-
if (
|
|
1946
|
+
const x = E.target;
|
|
1947
|
+
for (const U of u)
|
|
1948
|
+
if (x === U[1])
|
|
1940
1949
|
return;
|
|
1941
1950
|
if (E.type === "childList")
|
|
1942
|
-
E.addedNodes.forEach(async (
|
|
1943
|
-
if (
|
|
1951
|
+
E.addedNodes.forEach(async (U) => {
|
|
1952
|
+
if (U.nodeType !== 1)
|
|
1944
1953
|
return;
|
|
1945
|
-
const
|
|
1946
|
-
h && !h(
|
|
1954
|
+
const $ = U;
|
|
1955
|
+
h && !h($) || (await w($.outerHTML), A($));
|
|
1947
1956
|
});
|
|
1948
1957
|
else {
|
|
1949
|
-
if (h && !h(
|
|
1958
|
+
if (h && !h(x))
|
|
1950
1959
|
return;
|
|
1951
1960
|
if (E.attributeName !== l) {
|
|
1952
|
-
const
|
|
1953
|
-
await
|
|
1961
|
+
const U = Array.from(x.attributes).map((L) => L.value ? `${L.name}="${L.value}"` : L.name).join(" "), $ = `<${x.tagName.toLowerCase()} ${U}>`;
|
|
1962
|
+
await w($);
|
|
1954
1963
|
}
|
|
1955
|
-
|
|
1964
|
+
x.hasAttribute(l) && x.removeAttribute(l);
|
|
1956
1965
|
}
|
|
1957
1966
|
});
|
|
1958
1967
|
});
|
|
1959
|
-
let
|
|
1968
|
+
let k = !1;
|
|
1960
1969
|
function O() {
|
|
1961
|
-
var E,
|
|
1962
|
-
if (
|
|
1970
|
+
var E, x;
|
|
1971
|
+
if (k)
|
|
1963
1972
|
return;
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1973
|
+
const y = (E = r.observer) != null && E.target ? r.observer.target() : i();
|
|
1974
|
+
y && (v.observe(y, {
|
|
1966
1975
|
childList: !0,
|
|
1967
1976
|
subtree: !0,
|
|
1968
1977
|
attributes: !0,
|
|
1969
|
-
attributeFilter: (
|
|
1970
|
-
}),
|
|
1978
|
+
attributeFilter: (x = r.observer) == null ? void 0 : x.attributeFilter
|
|
1979
|
+
}), k = !0);
|
|
1971
1980
|
}
|
|
1972
|
-
function
|
|
1981
|
+
function T() {
|
|
1973
1982
|
r.bypassDefined && Xn(c.blocked), p(), O();
|
|
1974
1983
|
}
|
|
1975
1984
|
function N() {
|
|
1976
|
-
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded",
|
|
1985
|
+
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", T) : T();
|
|
1977
1986
|
}
|
|
1978
|
-
const
|
|
1987
|
+
const D = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1979
1988
|
version: c.version,
|
|
1980
1989
|
uno: c,
|
|
1981
|
-
async extract(
|
|
1982
|
-
|
|
1990
|
+
async extract(y) {
|
|
1991
|
+
M(y) || (y.forEach((E) => m.add(E)), y = ""), await w(y);
|
|
1983
1992
|
},
|
|
1984
1993
|
extractAll: p,
|
|
1985
|
-
inspect(
|
|
1986
|
-
h =
|
|
1994
|
+
inspect(y) {
|
|
1995
|
+
h = y;
|
|
1987
1996
|
},
|
|
1988
|
-
toggleObserver(
|
|
1989
|
-
|
|
1997
|
+
toggleObserver(y) {
|
|
1998
|
+
y === void 0 ? d = !d : d = !!y, !k && !d && N();
|
|
1990
1999
|
},
|
|
1991
2000
|
update: S,
|
|
1992
2001
|
presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
|
|
1993
2002
|
};
|
|
1994
|
-
((
|
|
2003
|
+
((R = r.ready) == null ? void 0 : R.call(r, D)) !== !1 && (d = !1, N());
|
|
1995
2004
|
}
|
|
1996
2005
|
function Xn(e = /* @__PURE__ */ new Set()) {
|
|
1997
2006
|
for (let t = 0; t < document.styleSheets.length; t++) {
|