@vue/devtools-electron 7.3.0-beta.3 → 7.3.1
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/devtools-panel.css +1 -1
- package/client/devtools-panel.js +17044 -16817
- package/client/{unocss-runtime-N1aIelHJ.js → unocss-runtime-CGXuklnj.js} +85 -85
- package/dist/devtools.js +164 -164
- package/dist/index.cjs +48 -48
- package/dist/index.js +48 -48
- package/dist/user-app.cjs +48 -48
- package/dist/user-app.iife.js +49 -49
- package/dist/user-app.js +48 -48
- package/package.json +5 -5
|
@@ -53,12 +53,12 @@ function qe(e, t = {}) {
|
|
|
53
53
|
return e;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const Ge = /#/g, We = /&/g, Je = /\//g, Qe = /=/g, re = /\+/g, Ke = /%5e/gi, Ye = /%60/gi, Xe = /%7c/gi, Ze = /%20/gi;
|
|
57
57
|
function et(e) {
|
|
58
58
|
return encodeURI("" + e).replace(Xe, "|");
|
|
59
59
|
}
|
|
60
60
|
function ee(e) {
|
|
61
|
-
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(re, "%2B").replace(Ze, "+").replace(
|
|
61
|
+
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(re, "%2B").replace(Ze, "+").replace(Ge, "%23").replace(We, "%26").replace(Ye, "`").replace(Ke, "^").replace(Je, "%2F");
|
|
62
62
|
}
|
|
63
63
|
function Q(e) {
|
|
64
64
|
return ee(e).replace(Qe, "%3D");
|
|
@@ -383,8 +383,8 @@ const se = function() {
|
|
|
383
383
|
if (typeof global < "u")
|
|
384
384
|
return global;
|
|
385
385
|
throw new Error("unable to locate global object");
|
|
386
|
-
}(), Ot = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),
|
|
387
|
-
function
|
|
386
|
+
}(), Ot = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), Tt = se.Headers, jt = se.AbortController, Rt = Ae({ fetch: Ot, Headers: Tt, AbortController: jt }), Mt = Rt;
|
|
387
|
+
function Ut(e) {
|
|
388
388
|
const t = e.length;
|
|
389
389
|
let n = -1, r, s = "";
|
|
390
390
|
const o = e.charCodeAt(0);
|
|
@@ -425,14 +425,14 @@ function Lt(e) {
|
|
|
425
425
|
}
|
|
426
426
|
return s;
|
|
427
427
|
}
|
|
428
|
-
const K =
|
|
429
|
-
function
|
|
428
|
+
const K = Ut;
|
|
429
|
+
function L(e = []) {
|
|
430
430
|
return Array.isArray(e) ? e : [e];
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function W(e) {
|
|
433
433
|
return Array.from(new Set(e));
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Lt(e, t) {
|
|
436
436
|
return e.reduce((n, r) => (n.findIndex((o) => t(r, o)) === -1 && n.push(r), n), []);
|
|
437
437
|
}
|
|
438
438
|
function M(e) {
|
|
@@ -508,7 +508,7 @@ function zt(e) {
|
|
|
508
508
|
function Vt() {
|
|
509
509
|
}
|
|
510
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, qt = (e, t, n) => (Bt(e, t + "", n), n);
|
|
511
|
-
class
|
|
511
|
+
class Gt {
|
|
512
512
|
constructor() {
|
|
513
513
|
qt(this, "_map", /* @__PURE__ */ new Map());
|
|
514
514
|
}
|
|
@@ -540,7 +540,7 @@ class Wt {
|
|
|
540
540
|
return Array.from(this._map.entries()).flatMap(([n, r]) => Array.from(r.entries()).map(([s, o]) => t(o, n, s)));
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
class
|
|
543
|
+
class Wt extends Map {
|
|
544
544
|
getFallback(t, n) {
|
|
545
545
|
const r = this.get(t);
|
|
546
546
|
return r === void 0 ? (this.set(t, n), n) : r;
|
|
@@ -647,7 +647,7 @@ function Zt(e, t = ["-", ":"], n = 5) {
|
|
|
647
647
|
return typeof e == "string" ? r.expanded : e;
|
|
648
648
|
}
|
|
649
649
|
const fe = /* @__PURE__ */ new Set();
|
|
650
|
-
function
|
|
650
|
+
function Te(e) {
|
|
651
651
|
fe.has(e) || (console.warn("[unocss]", e), fe.add(e));
|
|
652
652
|
}
|
|
653
653
|
const en = /[\\:]?[\s'"`;{}]+/g;
|
|
@@ -672,14 +672,14 @@ function rn() {
|
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
const
|
|
675
|
+
const G = "default", ne = "preflights", sn = "shortcuts", on = "imports", an = {
|
|
676
676
|
[on]: -200,
|
|
677
677
|
[ne]: -100,
|
|
678
678
|
[sn]: -10,
|
|
679
|
-
[
|
|
679
|
+
[G]: 0
|
|
680
680
|
};
|
|
681
|
-
function
|
|
682
|
-
return
|
|
681
|
+
function je(e) {
|
|
682
|
+
return L(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
683
683
|
}
|
|
684
684
|
const pe = "_uno_resolved";
|
|
685
685
|
function cn(e) {
|
|
@@ -691,12 +691,12 @@ function cn(e) {
|
|
|
691
691
|
value: !0,
|
|
692
692
|
enumerable: !1
|
|
693
693
|
});
|
|
694
|
-
const n = t.shortcuts ?
|
|
694
|
+
const n = t.shortcuts ? je(t.shortcuts) : void 0;
|
|
695
695
|
if (t.shortcuts = n, t.prefix || t.layer) {
|
|
696
696
|
const s = (o) => {
|
|
697
697
|
o[2] || (o[2] = {});
|
|
698
698
|
const a = o[2];
|
|
699
|
-
a.prefix == null && t.prefix && (a.prefix =
|
|
699
|
+
a.prefix == null && t.prefix && (a.prefix = L(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
700
700
|
};
|
|
701
701
|
n == null || n.forEach(s), (r = t.rules) == null || r.forEach(s);
|
|
702
702
|
}
|
|
@@ -706,12 +706,12 @@ function Re(e) {
|
|
|
706
706
|
const t = cn(e);
|
|
707
707
|
if (!t.presets)
|
|
708
708
|
return [t];
|
|
709
|
-
const n = (t.presets || []).flatMap(
|
|
709
|
+
const n = (t.presets || []).flatMap(L).flatMap(Re);
|
|
710
710
|
return [t, ...n];
|
|
711
711
|
}
|
|
712
712
|
function de(e = {}, t = {}) {
|
|
713
713
|
var S, w;
|
|
714
|
-
const n = Object.assign({}, t, e), r =
|
|
714
|
+
const n = Object.assign({}, t, e), r = Lt((n.presets || []).flatMap(L).flatMap(Re), (p, v) => p.name === v.name), s = [
|
|
715
715
|
...r.filter((p) => p.enforce === "pre"),
|
|
716
716
|
...r.filter((p) => !p.enforce),
|
|
717
717
|
...r.filter((p) => p.enforce === "post")
|
|
@@ -720,7 +720,7 @@ function de(e = {}, t = {}) {
|
|
|
720
720
|
n
|
|
721
721
|
], a = [...o].reverse(), l = Object.assign({}, an, ...o.map((p) => p.layers));
|
|
722
722
|
function c(p) {
|
|
723
|
-
return
|
|
723
|
+
return W(o.flatMap((v) => L(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;
|
|
@@ -728,8 +728,8 @@ function de(e = {}, t = {}) {
|
|
|
728
728
|
const u = c("rules"), d = {}, h = u.length, m = u.map((p, v) => {
|
|
729
729
|
var C;
|
|
730
730
|
if (Dt(p)) {
|
|
731
|
-
|
|
732
|
-
d[
|
|
731
|
+
L(((C = p[2]) == null ? void 0 : C.prefix) || "").forEach((T) => {
|
|
732
|
+
d[T + p[0]] = [v, p[1], p[2], p];
|
|
733
733
|
});
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
@@ -740,13 +740,13 @@ function de(e = {}, t = {}) {
|
|
|
740
740
|
for (const p of b)
|
|
741
741
|
g = p(g) || g;
|
|
742
742
|
const $ = {
|
|
743
|
-
templates:
|
|
743
|
+
templates: W(o.flatMap((p) => {
|
|
744
744
|
var v;
|
|
745
|
-
return
|
|
745
|
+
return L((v = p.autocomplete) == null ? void 0 : v.templates);
|
|
746
746
|
})),
|
|
747
747
|
extractors: o.flatMap((p) => {
|
|
748
748
|
var v;
|
|
749
|
-
return
|
|
749
|
+
return L((v = p.autocomplete) == null ? void 0 : v.extractors);
|
|
750
750
|
}).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
751
751
|
shorthands: un(o.map((p) => {
|
|
752
752
|
var v;
|
|
@@ -774,7 +774,7 @@ function de(e = {}, t = {}) {
|
|
|
774
774
|
preflights: c("preflights"),
|
|
775
775
|
autocomplete: $,
|
|
776
776
|
variants: c("variants").map(Ft).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
777
|
-
shortcuts:
|
|
777
|
+
shortcuts: je(c("shortcuts")).reverse(),
|
|
778
778
|
extractors: f,
|
|
779
779
|
safelist: c("safelist"),
|
|
780
780
|
separators: k,
|
|
@@ -891,7 +891,7 @@ class hn {
|
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
const u = l ? "" : `
|
|
894
|
-
`, d = /* @__PURE__ */ new Set([
|
|
894
|
+
`, d = /* @__PURE__ */ new Set([G]), h = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Map();
|
|
895
895
|
let g = {};
|
|
896
896
|
const b = Array.from(i).map(async (w) => {
|
|
897
897
|
var v;
|
|
@@ -904,8 +904,8 @@ class hn {
|
|
|
904
904
|
count: X(i) ? i.getCount(w) : -1
|
|
905
905
|
}) : h.add(w);
|
|
906
906
|
for (const C of p) {
|
|
907
|
-
const A = C[3] || "",
|
|
908
|
-
m.has(A) || m.set(A, []), m.get(A).push(C),
|
|
907
|
+
const A = C[3] || "", T = (v = C[4]) == null ? void 0 : v.layer;
|
|
908
|
+
m.has(A) || m.set(A, []), m.get(A).push(C), T && d.add(T);
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
});
|
|
@@ -922,27 +922,27 @@ class hn {
|
|
|
922
922
|
await Promise.all(Array.from(p).map(
|
|
923
923
|
async (v) => {
|
|
924
924
|
const A = (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
927
|
return [v, A];
|
|
928
928
|
}
|
|
929
929
|
))
|
|
930
930
|
);
|
|
931
931
|
})();
|
|
932
|
-
const $ = this.config.sortLayers(Array.from(d).sort((w, p) => (this.config.layers[w] ?? 0) - (this.config.layers[p] ?? 0) || w.localeCompare(p))), k = {}, _ = (w =
|
|
932
|
+
const $ = this.config.sortLayers(Array.from(d).sort((w, p) => (this.config.layers[w] ?? 0) - (this.config.layers[p] ?? 0) || w.localeCompare(p))), k = {}, _ = (w = G) => {
|
|
933
933
|
var C;
|
|
934
934
|
if (k[w])
|
|
935
935
|
return k[w];
|
|
936
|
-
let p = Array.from(m).sort((A,
|
|
936
|
+
let p = Array.from(m).sort((A, T) => {
|
|
937
937
|
var P;
|
|
938
|
-
return (this.parentOrders.get(A[0]) ?? 0) - (this.parentOrders.get(
|
|
939
|
-
}).map(([A,
|
|
940
|
-
const P =
|
|
938
|
+
return (this.parentOrders.get(A[0]) ?? 0) - (this.parentOrders.get(T[0]) ?? 0) || ((P = A[0]) == null ? void 0 : P.localeCompare(T[0] || "")) || 0;
|
|
939
|
+
}).map(([A, T]) => {
|
|
940
|
+
const P = T.length, N = T.filter((O) => {
|
|
941
941
|
var y;
|
|
942
|
-
return (((y = O[4]) == null ? void 0 : y.layer) ||
|
|
942
|
+
return (((y = O[4]) == null ? void 0 : y.layer) || G) === w;
|
|
943
943
|
}).sort((O, y) => {
|
|
944
|
-
var x, E,
|
|
945
|
-
return O[0] - y[0] || (((x = O[4]) == null ? void 0 : x.sort) || 0) - (((E = y[4]) == null ? void 0 : E.sort) || 0) || ((R = (
|
|
944
|
+
var x, E, U, j, R, z, ie;
|
|
945
|
+
return O[0] - y[0] || (((x = O[4]) == null ? void 0 : x.sort) || 0) - (((E = y[4]) == null ? void 0 : E.sort) || 0) || ((R = (U = O[5]) == null ? void 0 : U.currentSelector) == null ? void 0 : R.localeCompare(((j = y[5]) == null ? void 0 : j.currentSelector) ?? "")) || ((z = O[1]) == null ? void 0 : z.localeCompare(y[1] || "")) || ((ie = O[2]) == null ? void 0 : ie.localeCompare(y[2] || "")) || 0;
|
|
946
946
|
}).map(([, O, y, , x, , E]) => [
|
|
947
947
|
[[(O && _n(O, s)) ?? "", (x == null ? void 0 : x.sort) ?? 0]],
|
|
948
948
|
y,
|
|
@@ -952,16 +952,16 @@ class hn {
|
|
|
952
952
|
return;
|
|
953
953
|
const I = N.reverse().map(([O, y, x], E) => {
|
|
954
954
|
if (!x && this.config.mergeSelectors)
|
|
955
|
-
for (let
|
|
956
|
-
const R = N[
|
|
955
|
+
for (let j = E + 1; j < P; j++) {
|
|
956
|
+
const R = N[j];
|
|
957
957
|
if (R && !R[2] && (O && R[0] || O == null && R[0] == null) && R[1] === y)
|
|
958
958
|
return O && R[0] && R[0].push(...O), null;
|
|
959
959
|
}
|
|
960
|
-
const
|
|
960
|
+
const U = O ? W(O.sort((j, R) => {
|
|
961
961
|
var z;
|
|
962
|
-
return
|
|
963
|
-
}).map((
|
|
964
|
-
return
|
|
962
|
+
return j[1] - R[1] || ((z = j[0]) == null ? void 0 : z.localeCompare(R[0] || "")) || 0;
|
|
963
|
+
}).map((j) => j[0]).filter(Boolean)) : [];
|
|
964
|
+
return U.length ? `${U.join(`,${u}`)}{${y}}` : y;
|
|
965
965
|
}).filter(Boolean).reverse().join(u);
|
|
966
966
|
if (!A)
|
|
967
967
|
return I;
|
|
@@ -1079,9 +1079,9 @@ class hn {
|
|
|
1079
1079
|
continue;
|
|
1080
1080
|
let g = a;
|
|
1081
1081
|
if (m != null && m.prefix) {
|
|
1082
|
-
const _ =
|
|
1082
|
+
const _ = L(m.prefix);
|
|
1083
1083
|
if (s) {
|
|
1084
|
-
const S =
|
|
1084
|
+
const S = L(s);
|
|
1085
1085
|
if (!_.some((w) => S.includes(w)))
|
|
1086
1086
|
continue;
|
|
1087
1087
|
} else {
|
|
@@ -1129,7 +1129,7 @@ class hn {
|
|
|
1129
1129
|
for (const c of this.config.shortcuts) {
|
|
1130
1130
|
let f = t;
|
|
1131
1131
|
if ((l = c[2]) != null && l.prefix) {
|
|
1132
|
-
const u =
|
|
1132
|
+
const u = L(c[2].prefix).find((d) => t.startsWith(d));
|
|
1133
1133
|
if (u == null)
|
|
1134
1134
|
continue;
|
|
1135
1135
|
f = t.slice(u.length);
|
|
@@ -1165,9 +1165,9 @@ class hn {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
async stringifyShortcuts(t, n, r, s = { layer: this.config.shortcutsLayer }) {
|
|
1167
1167
|
var i;
|
|
1168
|
-
const o = new
|
|
1168
|
+
const o = new Wt(), a = (await Promise.all(W(r).map(async (u) => {
|
|
1169
1169
|
const d = M(u) ? await this.parseUtil(u, n, !0, s.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", V(u), void 0, []]];
|
|
1170
|
-
return !d && this.config.warn &&
|
|
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) {
|
|
1173
1173
|
if (ue(u)) {
|
|
@@ -1175,7 +1175,7 @@ class hn {
|
|
|
1175
1175
|
continue;
|
|
1176
1176
|
}
|
|
1177
1177
|
const { selector: d, entries: h, parent: m, sort: g, noMerge: b, layer: $ } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1178
|
-
o.getFallback($ ?? s.layer, new
|
|
1178
|
+
o.getFallback($ ?? s.layer, new Gt()).getFallback(d, m, [[], u[0]])[0].push([h, !!(b ?? ((i = u[3]) == null ? void 0 : i.noMerge)), g ?? 0]);
|
|
1179
1179
|
}
|
|
1180
1180
|
return f.concat(o.flatMap(
|
|
1181
1181
|
(u, d) => u.map(([h, m], g, b) => {
|
|
@@ -1225,7 +1225,7 @@ function yn(e) {
|
|
|
1225
1225
|
function bn(e, t) {
|
|
1226
1226
|
return t(e);
|
|
1227
1227
|
}
|
|
1228
|
-
var me = { npm_package_dependencies__vueuse_core: "^10.10.0", npm_package_devDependencies__types_splitpanes: "^2.2.6", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.2.
|
|
1228
|
+
var me = { npm_package_dependencies__vueuse_core: "^10.10.0", npm_package_devDependencies__types_splitpanes: "^2.2.6", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.2.13", SHELL: "/bin/zsh", 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:^", npm_package_dependencies__unocss_runtime: "^0.60.4", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", npm_package_devDependencies_unplugin_vue_components: "^0.27.0", npm_config_registry: "https://registry.npmjs.org/", npm_package_private: "true", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_license: "MIT", PNPM_SCRIPT_SRC_DIR: "/Users/arlo/g/devtools-next/packages/client", npm_config_strict_peer_dependencies: "", 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.3.0/node_modules/pnpm/bin/pnpm.cjs", 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: "", npm_package_dependencies_vue_virtual_scroller: "2.0.0-beta.8", npm_package_dependencies_fuse_js: "^7.0.0", PATH: "/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/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.3.0/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.3.0/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.3.0/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/55060_1718685392401/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/49339_1718681164898/bin:/opt/homebrew/bin:/Users/arlo/.cargo/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", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", 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", npm_package_devDependencies_simple_git_hooks: "^2.11.1", npm_package_devDependencies_sass: "^1.77.4", npm_package_devDependencies__unocss_reset: "^0.60.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.13_@types+node@20.14.2_sass@1.77.4_terser@5.26.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_sass@1.77.4_terser@5.26.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.13_@types+node@20.14.2_sass@1.77.4_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.3.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/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.3.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules", npm_package_devDependencies_pinia: "^2.1.7", TURBO_HASH: "0ef2ad804953d63d", npm_package_devDependencies__unocss_core: "^0.60.4", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@9.3.0/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.218", npm_package_dependencies_minimatch: "^9.0.4", npm_package_version: "7.3.1", npm_package_dependencies__vue_devtools_applet: "workspace:^", npm_package_devDependencies_unocss: "^0.60.4", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", HOME: "/Users/arlo", SHLVL: "0", npm_package_dependencies_vite_hot_client: "^0.2.3", npm_package_dependencies_vis_network: "^9.1.9", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.10.0", npm_config_user_agent: "pnpm/9.3.0 npm/? node/v20.12.2 darwin arm64", npm_package_devDependencies__types_node: "^20.14.2", npm_package_scripts_stub: "nr stub:lib & vite build --watch", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.10.1", npm_package_dependencies_vue_router: "^4.3.3", npm_package_dependencies_shiki: "1.6.3", npm_package_dependencies__unocss_preset_icons: "^0.60.4", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.12.2/installation/bin/node", npm_config_shell_emulator: "true", NODE_ENV: "production" };
|
|
1229
1229
|
const vn = Object.freeze(
|
|
1230
1230
|
{
|
|
1231
1231
|
left: 0,
|
|
@@ -1237,17 +1237,17 @@ const vn = Object.freeze(
|
|
|
1237
1237
|
rotate: 0,
|
|
1238
1238
|
vFlip: !1,
|
|
1239
1239
|
hFlip: !1
|
|
1240
|
-
}),
|
|
1240
|
+
}), Ue = Object.freeze({
|
|
1241
1241
|
...vn,
|
|
1242
1242
|
...J
|
|
1243
1243
|
}), wn = Object.freeze({
|
|
1244
|
-
...
|
|
1244
|
+
...Ue,
|
|
1245
1245
|
body: "",
|
|
1246
1246
|
hidden: !1
|
|
1247
1247
|
}), Sn = Object.freeze({
|
|
1248
1248
|
width: null,
|
|
1249
1249
|
height: null
|
|
1250
|
-
}),
|
|
1250
|
+
}), Le = Object.freeze({
|
|
1251
1251
|
// Dimensions
|
|
1252
1252
|
...Sn,
|
|
1253
1253
|
// Transformations
|
|
@@ -1340,17 +1340,17 @@ function Cn(e, t = "defs") {
|
|
|
1340
1340
|
function On(e, t) {
|
|
1341
1341
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Tn(e, t, n) {
|
|
1344
1344
|
const r = Cn(e);
|
|
1345
1345
|
return On(r.defs, t + r.content + n);
|
|
1346
1346
|
}
|
|
1347
1347
|
const oe = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1348
|
-
function
|
|
1348
|
+
function jn(e, t) {
|
|
1349
1349
|
const n = {
|
|
1350
|
-
...
|
|
1350
|
+
...Ue,
|
|
1351
1351
|
...e
|
|
1352
1352
|
}, r = {
|
|
1353
|
-
...
|
|
1353
|
+
...Le,
|
|
1354
1354
|
...t
|
|
1355
1355
|
}, s = {
|
|
1356
1356
|
left: n.left,
|
|
@@ -1385,7 +1385,7 @@ function Tn(e, t) {
|
|
|
1385
1385
|
);
|
|
1386
1386
|
break;
|
|
1387
1387
|
}
|
|
1388
|
-
_ % 2 === 1 && (s.left !== s.top && (S = s.left, s.left = s.top, s.top = S), s.width !== s.height && (S = s.width, s.width = s.height, s.height = S)), b.length && (o =
|
|
1388
|
+
_ % 2 === 1 && (s.left !== s.top && (S = s.left, s.left = s.top, s.top = S), s.width !== s.height && (S = s.width, s.width = s.height, s.height = S)), b.length && (o = Tn(
|
|
1389
1389
|
o,
|
|
1390
1390
|
'<g transform="' + b.join(" ") + '">',
|
|
1391
1391
|
"</g>"
|
|
@@ -1418,16 +1418,16 @@ function Mn(e) {
|
|
|
1418
1418
|
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1419
1419
|
)), Rn(t);
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Un(e) {
|
|
1422
1422
|
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();
|
|
1423
1423
|
}
|
|
1424
|
-
const
|
|
1424
|
+
const Ln = /\swidth\s*=\s*["']([\w.]+)["']/, Pn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1425
1425
|
function Nn(e, t, n) {
|
|
1426
1426
|
const r = e.slice(0, e.indexOf(">")), s = (o, a) => {
|
|
1427
1427
|
const l = a.exec(r), c = l != null, f = t[o];
|
|
1428
1428
|
return !f && !oe(f) && (typeof n == "number" ? n > 0 && (t[o] = `${n}em`) : l && (t[o] = l[1])), c;
|
|
1429
1429
|
};
|
|
1430
|
-
return [s("width",
|
|
1430
|
+
return [s("width", Ln), s("height", Pn)];
|
|
1431
1431
|
}
|
|
1432
1432
|
async function Pe(e, t, n, r, s, o) {
|
|
1433
1433
|
const { scale: a, addXmlNs: l = !1 } = r ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (r == null ? void 0 : r.customizations) ?? {}, i = await (s == null ? void 0 : s()) ?? {};
|
|
@@ -1472,7 +1472,7 @@ async function be(e, t, n, r) {
|
|
|
1472
1472
|
a > 0 && (s = s.slice(a));
|
|
1473
1473
|
const { transform: l } = (r == null ? void 0 : r.customizations) ?? {};
|
|
1474
1474
|
return s = typeof l == "function" ? await l(s, t, n) : s, s.startsWith("<svg") ? await Pe(
|
|
1475
|
-
((o = r == null ? void 0 : r.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ?
|
|
1475
|
+
((o = r == null ? void 0 : r.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ? Un(s) : s,
|
|
1476
1476
|
t,
|
|
1477
1477
|
n,
|
|
1478
1478
|
r,
|
|
@@ -1487,12 +1487,12 @@ async function Ne(e, t, n, r) {
|
|
|
1487
1487
|
const { customize: o } = (r == null ? void 0 : r.customizations) ?? {};
|
|
1488
1488
|
for (const a of n)
|
|
1489
1489
|
if (s = kn(e, a), s) {
|
|
1490
|
-
let l = { ...
|
|
1490
|
+
let l = { ...Le };
|
|
1491
1491
|
typeof o == "function" && (l = o(l));
|
|
1492
1492
|
const {
|
|
1493
1493
|
attributes: { width: c, height: f, ...i },
|
|
1494
1494
|
body: u
|
|
1495
|
-
} =
|
|
1495
|
+
} = jn(s, l), d = r == null ? void 0 : r.scale;
|
|
1496
1496
|
return await Pe(
|
|
1497
1497
|
// DON'T remove space on <svg >
|
|
1498
1498
|
`<svg >${u}</svg>`,
|
|
@@ -1791,13 +1791,13 @@ function Vn(e) {
|
|
|
1791
1791
|
;
|
|
1792
1792
|
}
|
|
1793
1793
|
if (!v) {
|
|
1794
|
-
o && !m.isESLint &&
|
|
1794
|
+
o && !m.isESLint && Te(`failed to load icon "${k}"`);
|
|
1795
1795
|
return;
|
|
1796
1796
|
}
|
|
1797
1797
|
let A;
|
|
1798
|
-
const
|
|
1798
|
+
const T = `url("data:image/svg+xml;utf8,${Mn(v)}")`;
|
|
1799
1799
|
return S === "auto" && (S = v.includes("currentColor") ? "mask" : "bg"), S === "mask" ? A = {
|
|
1800
|
-
"--un-icon":
|
|
1800
|
+
"--un-icon": T,
|
|
1801
1801
|
"-webkit-mask": "var(--un-icon) no-repeat",
|
|
1802
1802
|
mask: "var(--un-icon) no-repeat",
|
|
1803
1803
|
"-webkit-mask-size": "100% 100%",
|
|
@@ -1807,7 +1807,7 @@ function Vn(e) {
|
|
|
1807
1807
|
color: "inherit",
|
|
1808
1808
|
...C
|
|
1809
1809
|
} : A = {
|
|
1810
|
-
background: `${
|
|
1810
|
+
background: `${T} no-repeat`,
|
|
1811
1811
|
"background-size": "100% 100%",
|
|
1812
1812
|
"background-color": "transparent",
|
|
1813
1813
|
...C
|
|
@@ -1855,7 +1855,7 @@ const qn = Vn(async (e) => {
|
|
|
1855
1855
|
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1856
1856
|
return t && n ? Ie(t, n) : n ? Bn(n) : De;
|
|
1857
1857
|
});
|
|
1858
|
-
function
|
|
1858
|
+
function Gn(e) {
|
|
1859
1859
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
1860
1860
|
}
|
|
1861
1861
|
function ve(e) {
|
|
@@ -1865,13 +1865,13 @@ function we(e) {
|
|
|
1865
1865
|
return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
|
|
1866
1866
|
}
|
|
1867
1867
|
var Se = ["Webkit", "Moz", "ms"];
|
|
1868
|
-
function
|
|
1868
|
+
function Wn(e) {
|
|
1869
1869
|
const t = {};
|
|
1870
1870
|
function n(r) {
|
|
1871
1871
|
const s = t[r];
|
|
1872
1872
|
if (s)
|
|
1873
1873
|
return s;
|
|
1874
|
-
let o =
|
|
1874
|
+
let o = Gn(r);
|
|
1875
1875
|
if (o !== "filter" && o in e)
|
|
1876
1876
|
return t[r] = we(o);
|
|
1877
1877
|
o = ve(o);
|
|
@@ -1896,7 +1896,7 @@ function Qn(e = {}) {
|
|
|
1896
1896
|
return;
|
|
1897
1897
|
}
|
|
1898
1898
|
const t = window, n = window.document, r = () => n.documentElement, s = t.__unocss || {}, o = Object.assign({}, e, s.runtime), a = o.defaults || {}, l = o.cloakAttribute ?? "un-cloak";
|
|
1899
|
-
o.autoPrefix && (a.postprocess =
|
|
1899
|
+
o.autoPrefix && (a.postprocess = L(a.postprocess)).unshift(Wn(n.createElement("div").style)), (I = o.configResolved) == null || I.call(o, s, a);
|
|
1900
1900
|
const c = mn(s, a), f = (y) => o.inject ? o.inject(y) : r().prepend(y), i = () => o.rootElement ? o.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1901
1901
|
let d = !0, h = /* @__PURE__ */ new Set(), m, g, b = [];
|
|
1902
1902
|
const $ = () => new Promise((y) => {
|
|
@@ -1919,8 +1919,8 @@ function Qn(e = {}) {
|
|
|
1919
1919
|
if (E = n.createElement("style"), E.setAttribute("data-unocss-runtime-layer", y), u.set(y, E), x == null)
|
|
1920
1920
|
f(E);
|
|
1921
1921
|
else {
|
|
1922
|
-
const
|
|
1923
|
-
|
|
1922
|
+
const U = _(x), j = U.parentNode;
|
|
1923
|
+
j ? j.insertBefore(E, U.nextSibling) : f(E);
|
|
1924
1924
|
}
|
|
1925
1925
|
return E;
|
|
1926
1926
|
}
|
|
@@ -1945,22 +1945,22 @@ function Qn(e = {}) {
|
|
|
1945
1945
|
if (x.target.nodeType !== 1)
|
|
1946
1946
|
return;
|
|
1947
1947
|
const E = x.target;
|
|
1948
|
-
for (const
|
|
1949
|
-
if (E ===
|
|
1948
|
+
for (const U of u)
|
|
1949
|
+
if (E === U[1])
|
|
1950
1950
|
return;
|
|
1951
1951
|
if (x.type === "childList")
|
|
1952
|
-
x.addedNodes.forEach(async (
|
|
1953
|
-
if (
|
|
1952
|
+
x.addedNodes.forEach(async (U) => {
|
|
1953
|
+
if (U.nodeType !== 1)
|
|
1954
1954
|
return;
|
|
1955
|
-
const
|
|
1956
|
-
m && !m(
|
|
1955
|
+
const j = U;
|
|
1956
|
+
m && !m(j) || (await w(j.outerHTML), k(j));
|
|
1957
1957
|
});
|
|
1958
1958
|
else {
|
|
1959
1959
|
if (m && !m(E))
|
|
1960
1960
|
return;
|
|
1961
1961
|
if (x.attributeName !== l) {
|
|
1962
|
-
const
|
|
1963
|
-
await w(
|
|
1962
|
+
const U = Array.from(E.attributes).map((R) => R.value ? `${R.name}="${R.value}"` : R.name).join(" "), j = `<${E.tagName.toLowerCase()} ${U}>`;
|
|
1963
|
+
await w(j);
|
|
1964
1964
|
}
|
|
1965
1965
|
E.hasAttribute(l) && E.removeAttribute(l);
|
|
1966
1966
|
}
|
|
@@ -1979,11 +1979,11 @@ function Qn(e = {}) {
|
|
|
1979
1979
|
attributeFilter: (E = o.observer) == null ? void 0 : E.attributeFilter
|
|
1980
1980
|
}), C = !0);
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function T() {
|
|
1983
1983
|
o.bypassDefined && Kn(c.blocked), p(), A();
|
|
1984
1984
|
}
|
|
1985
1985
|
function P() {
|
|
1986
|
-
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded",
|
|
1986
|
+
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", T) : T();
|
|
1987
1987
|
}
|
|
1988
1988
|
const N = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1989
1989
|
version: c.version,
|