@vue/devtools-electron 7.0.19 → 7.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Ve = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
|
|
2
|
-
function
|
|
1
|
+
const Fe = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, Ve = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, Ge = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
2
|
+
function He(e, t) {
|
|
3
3
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
4
|
-
|
|
4
|
+
Be(e);
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Be(e) {
|
|
10
10
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
11
11
|
}
|
|
12
12
|
function ze(e, t = {}) {
|
|
@@ -35,7 +35,7 @@ function ze(e, t = {}) {
|
|
|
35
35
|
if (s === "-infinity")
|
|
36
36
|
return Number.NEGATIVE_INFINITY;
|
|
37
37
|
}
|
|
38
|
-
if (!
|
|
38
|
+
if (!Ge.test(e)) {
|
|
39
39
|
if (t.strict)
|
|
40
40
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
41
41
|
return e;
|
|
@@ -44,7 +44,7 @@ function ze(e, t = {}) {
|
|
|
44
44
|
if (Fe.test(e) || Ve.test(e)) {
|
|
45
45
|
if (t.strict)
|
|
46
46
|
throw new Error("[destr] Possible prototype pollution");
|
|
47
|
-
return JSON.parse(e,
|
|
47
|
+
return JSON.parse(e, He);
|
|
48
48
|
}
|
|
49
49
|
return JSON.parse(e);
|
|
50
50
|
} catch (s) {
|
|
@@ -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 = Ae(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 Ce = Symbol.for("ufo:protocolRelative");
|
|
157
|
+
function Ae(e = "", t) {
|
|
158
158
|
const n = e.match(
|
|
159
159
|
/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
|
|
160
160
|
);
|
|
@@ -171,7 +171,7 @@ function Ce(e = "", t) {
|
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
if (!xe(e, { acceptRelative: !0 }))
|
|
174
|
-
return t ?
|
|
174
|
+
return t ? Ae(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 Ce(e = "", t) {
|
|
|
182
182
|
pathname: c,
|
|
183
183
|
search: f,
|
|
184
184
|
hash: i,
|
|
185
|
-
[
|
|
185
|
+
[Ce]: !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[Ce] ? (e.protocol || "") + "//" : "") + o + r + t + n + s;
|
|
199
199
|
}
|
|
200
200
|
class bt extends Error {
|
|
201
201
|
constructor(t, n) {
|
|
@@ -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 Ct(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 At(e, t, n = globalThis.Headers) {
|
|
256
256
|
const s = {
|
|
257
257
|
...t,
|
|
258
258
|
...e
|
|
@@ -316,7 +316,7 @@ function Oe(e = {}) {
|
|
|
316
316
|
var d;
|
|
317
317
|
const i = {
|
|
318
318
|
request: c,
|
|
319
|
-
options:
|
|
319
|
+
options: At(f, e.defaults, n),
|
|
320
320
|
response: void 0,
|
|
321
321
|
error: void 0
|
|
322
322
|
};
|
|
@@ -340,7 +340,7 @@ function Oe(e = {}) {
|
|
|
340
340
|
return i.error = m, i.options.onRequestError && await i.options.onRequestError(i), await o(i);
|
|
341
341
|
}
|
|
342
342
|
if (i.response.body && !Rt.has(i.response.status) && i.options.method !== "HEAD") {
|
|
343
|
-
const m = (i.options.parseResponse ? "json" : i.options.responseType) ||
|
|
343
|
+
const m = (i.options.parseResponse ? "json" : i.options.responseType) || Ct(i.response.headers.get("content-type") || "");
|
|
344
344
|
switch (m) {
|
|
345
345
|
case "json": {
|
|
346
346
|
const y = await i.response.text(), h = i.options.parseResponse || ze;
|
|
@@ -420,25 +420,25 @@ function Ut(e) {
|
|
|
420
420
|
return o;
|
|
421
421
|
}
|
|
422
422
|
const X = Ut;
|
|
423
|
-
function
|
|
423
|
+
function N(e = []) {
|
|
424
424
|
return Array.isArray(e) ? e : [e];
|
|
425
425
|
}
|
|
426
426
|
function W(e) {
|
|
427
427
|
return Array.from(new Set(e));
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Nt(e, t) {
|
|
430
430
|
return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
|
|
431
431
|
}
|
|
432
432
|
function U(e) {
|
|
433
433
|
return typeof e == "string";
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function G(e) {
|
|
436
436
|
return U(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) =>
|
|
438
|
+
function It(e) {
|
|
439
|
+
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => G(t)) : [e] : [G(e)];
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function jt(e) {
|
|
442
442
|
return e.filter(([t, n], s) => {
|
|
443
443
|
if (t.startsWith("$$"))
|
|
444
444
|
return !1;
|
|
@@ -449,9 +449,9 @@ function Dt(e) {
|
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function Q(e) {
|
|
452
|
-
return e == null ? "" :
|
|
452
|
+
return e == null ? "" : jt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function H(e) {
|
|
455
455
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
456
456
|
}
|
|
457
457
|
function Re(e, t, n = !1) {
|
|
@@ -459,8 +459,8 @@ function Re(e, t, n = !1) {
|
|
|
459
459
|
if (Array.isArray(o))
|
|
460
460
|
return n && Array.isArray(o) ? [...s, ...o] : [...o];
|
|
461
461
|
const r = { ...s };
|
|
462
|
-
return
|
|
463
|
-
|
|
462
|
+
return H(s) && H(o) && Object.keys(o).forEach((a) => {
|
|
463
|
+
H(s[a]) && H(o[a]) || Array.isArray(s[a]) && Array.isArray(o[a]) ? r[a] = Re(s[a], o[a], n) : Object.assign(r, { [a]: o[a] });
|
|
464
464
|
}), r;
|
|
465
465
|
}
|
|
466
466
|
function z(e) {
|
|
@@ -483,7 +483,7 @@ function z(e) {
|
|
|
483
483
|
}
|
|
484
484
|
return e;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Dt(e) {
|
|
487
487
|
return U(e[0]);
|
|
488
488
|
}
|
|
489
489
|
function Pt(e) {
|
|
@@ -499,9 +499,9 @@ function ue(e) {
|
|
|
499
499
|
function Vt(e) {
|
|
500
500
|
return e != null;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Gt() {
|
|
503
503
|
}
|
|
504
|
-
var
|
|
504
|
+
var Ht = Object.defineProperty, Bt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Bt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
505
505
|
class qt {
|
|
506
506
|
constructor() {
|
|
507
507
|
zt(this, "_map", /* @__PURE__ */ new Map());
|
|
@@ -576,10 +576,10 @@ class ke extends Set {
|
|
|
576
576
|
function Y(e) {
|
|
577
577
|
return e instanceof ke;
|
|
578
578
|
}
|
|
579
|
-
const
|
|
579
|
+
const B = {};
|
|
580
580
|
function Qt(e = ["-", ":"]) {
|
|
581
581
|
const t = e.join("|");
|
|
582
|
-
return
|
|
582
|
+
return B[t] || (B[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), B[t].lastIndex = 0, B[t];
|
|
583
583
|
}
|
|
584
584
|
function Yt(e, t = ["-", ":"], n = 5) {
|
|
585
585
|
const s = Qt(t);
|
|
@@ -595,13 +595,13 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
595
595
|
o = !0, a.add(i + u);
|
|
596
596
|
const y = m + i.length + u.length + 1, h = { length: f.length, items: [] };
|
|
597
597
|
l.set(m, h);
|
|
598
|
-
for (const
|
|
599
|
-
const x = y +
|
|
598
|
+
for (const A of [...d.matchAll(/\S+/g)]) {
|
|
599
|
+
const x = y + A.index;
|
|
600
600
|
let g = (v = l.get(x)) == null ? void 0 : v.items;
|
|
601
601
|
g ? l.delete(x) : g = [{
|
|
602
602
|
offset: x,
|
|
603
|
-
length:
|
|
604
|
-
className:
|
|
603
|
+
length: A[0].length,
|
|
604
|
+
className: A[0]
|
|
605
605
|
}];
|
|
606
606
|
for (const S of g)
|
|
607
607
|
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), h.items.push(S);
|
|
@@ -673,7 +673,7 @@ const q = "default", ne = "preflights", on = "shortcuts", rn = "imports", an = {
|
|
|
673
673
|
[q]: 0
|
|
674
674
|
};
|
|
675
675
|
function Te(e) {
|
|
676
|
-
return
|
|
676
|
+
return N(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
677
677
|
}
|
|
678
678
|
const pe = "_uno_resolved";
|
|
679
679
|
function cn(e) {
|
|
@@ -690,7 +690,7 @@ function cn(e) {
|
|
|
690
690
|
const o = (r) => {
|
|
691
691
|
r[2] || (r[2] = {});
|
|
692
692
|
const a = r[2];
|
|
693
|
-
a.prefix == null && t.prefix && (a.prefix =
|
|
693
|
+
a.prefix == null && t.prefix && (a.prefix = N(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
694
694
|
};
|
|
695
695
|
n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
|
|
696
696
|
}
|
|
@@ -700,12 +700,12 @@ function Le(e) {
|
|
|
700
700
|
const t = cn(e);
|
|
701
701
|
if (!t.presets)
|
|
702
702
|
return [t];
|
|
703
|
-
const n = (t.presets || []).flatMap(
|
|
703
|
+
const n = (t.presets || []).flatMap(N).flatMap(Le);
|
|
704
704
|
return [t, ...n];
|
|
705
705
|
}
|
|
706
706
|
function de(e = {}, t = {}) {
|
|
707
707
|
var S, b;
|
|
708
|
-
const n = Object.assign({}, t, e), s =
|
|
708
|
+
const n = Object.assign({}, t, e), s = Nt((n.presets || []).flatMap(N).flatMap(Le), (p, w) => p.name === w.name), o = [
|
|
709
709
|
...s.filter((p) => p.enforce === "pre"),
|
|
710
710
|
...s.filter((p) => !p.enforce),
|
|
711
711
|
...s.filter((p) => p.enforce === "post")
|
|
@@ -714,15 +714,15 @@ function de(e = {}, t = {}) {
|
|
|
714
714
|
n
|
|
715
715
|
], a = [...r].reverse(), l = Object.assign({}, an, ...r.map((p) => p.layers));
|
|
716
716
|
function c(p) {
|
|
717
|
-
return W(r.flatMap((w) =>
|
|
717
|
+
return W(r.flatMap((w) => N(w[p] || [])));
|
|
718
718
|
}
|
|
719
719
|
const f = c("extractors");
|
|
720
720
|
let i = (S = a.find((p) => p.extractorDefault !== void 0)) == null ? void 0 : S.extractorDefault;
|
|
721
721
|
i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p, w) => (p.order || 0) - (w.order || 0));
|
|
722
722
|
const u = c("rules"), d = {}, m = u.length, y = u.map((p, w) => {
|
|
723
723
|
var R;
|
|
724
|
-
if (
|
|
725
|
-
|
|
724
|
+
if (Dt(p)) {
|
|
725
|
+
N(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((L) => {
|
|
726
726
|
d[L + p[0]] = [w, p[1], p[2], p];
|
|
727
727
|
});
|
|
728
728
|
return;
|
|
@@ -733,14 +733,14 @@ function de(e = {}, t = {}) {
|
|
|
733
733
|
const v = c("extendTheme");
|
|
734
734
|
for (const p of v)
|
|
735
735
|
h = p(h) || h;
|
|
736
|
-
const
|
|
736
|
+
const A = {
|
|
737
737
|
templates: W(r.flatMap((p) => {
|
|
738
738
|
var w;
|
|
739
|
-
return
|
|
739
|
+
return N((w = p.autocomplete) == null ? void 0 : w.templates);
|
|
740
740
|
})),
|
|
741
741
|
extractors: r.flatMap((p) => {
|
|
742
742
|
var w;
|
|
743
|
-
return
|
|
743
|
+
return N((w = p.autocomplete) == null ? void 0 : w.extractors);
|
|
744
744
|
}).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
745
745
|
shorthands: un(r.map((p) => {
|
|
746
746
|
var w;
|
|
@@ -766,7 +766,7 @@ function de(e = {}, t = {}) {
|
|
|
766
766
|
preprocess: c("preprocess"),
|
|
767
767
|
postprocess: c("postprocess"),
|
|
768
768
|
preflights: c("preflights"),
|
|
769
|
-
autocomplete:
|
|
769
|
+
autocomplete: A,
|
|
770
770
|
variants: c("variants").map(Ft).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
771
771
|
shortcuts: Te(c("shortcuts")).reverse(),
|
|
772
772
|
extractors: f,
|
|
@@ -795,10 +795,10 @@ function un(e) {
|
|
|
795
795
|
}, {});
|
|
796
796
|
}
|
|
797
797
|
const fn = "0.58.6";
|
|
798
|
-
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,
|
|
798
|
+
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);
|
|
799
799
|
class mn {
|
|
800
800
|
constructor(t = {}, n = {}) {
|
|
801
|
-
this.userConfig = t, this.defaults = n,
|
|
801
|
+
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);
|
|
802
802
|
}
|
|
803
803
|
setConfig(t, n) {
|
|
804
804
|
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));
|
|
@@ -917,31 +917,31 @@ class mn {
|
|
|
917
917
|
))
|
|
918
918
|
);
|
|
919
919
|
})();
|
|
920
|
-
const
|
|
920
|
+
const A = this.config.sortLayers(Array.from(d).sort((b, p) => (this.config.layers[b] ?? 0) - (this.config.layers[p] ?? 0) || b.localeCompare(p))), x = {}, g = (b = q) => {
|
|
921
921
|
var R;
|
|
922
922
|
if (x[b])
|
|
923
923
|
return x[b];
|
|
924
924
|
let p = Array.from(y).sort((O, L) => {
|
|
925
|
-
var
|
|
926
|
-
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(L[0]) ?? 0) || ((
|
|
925
|
+
var I;
|
|
926
|
+
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(L[0]) ?? 0) || ((I = O[0]) == null ? void 0 : I.localeCompare(L[0] || "")) || 0;
|
|
927
927
|
}).map(([O, L]) => {
|
|
928
|
-
const
|
|
928
|
+
const I = L.length, D = L.filter((k) => {
|
|
929
929
|
var _;
|
|
930
930
|
return (((_ = k[4]) == null ? void 0 : _.layer) || q) === b;
|
|
931
931
|
}).sort((k, _) => {
|
|
932
|
-
var E,
|
|
933
|
-
return k[0] - _[0] || (((E = k[4]) == null ? void 0 : E.sort) || 0) - (((
|
|
934
|
-
}).map(([, k, _, , E, ,
|
|
932
|
+
var E, C, M, $, T, V, ie;
|
|
933
|
+
return k[0] - _[0] || (((E = k[4]) == null ? void 0 : E.sort) || 0) - (((C = _[4]) == null ? void 0 : C.sort) || 0) || ((T = (M = k[5]) == null ? void 0 : M.currentSelector) == null ? void 0 : T.localeCompare((($ = _[5]) == null ? void 0 : $.currentSelector) ?? "")) || ((V = k[1]) == null ? void 0 : V.localeCompare(_[1] || "")) || ((ie = k[2]) == null ? void 0 : ie.localeCompare(_[2] || "")) || 0;
|
|
934
|
+
}).map(([, k, _, , E, , C]) => [
|
|
935
935
|
[[(k && gn(k, o)) ?? "", (E == null ? void 0 : E.sort) ?? 0]],
|
|
936
936
|
_,
|
|
937
|
-
!!(
|
|
937
|
+
!!(C ?? (E == null ? void 0 : E.noMerge))
|
|
938
938
|
]);
|
|
939
|
-
if (!
|
|
939
|
+
if (!D.length)
|
|
940
940
|
return;
|
|
941
|
-
const P =
|
|
941
|
+
const P = D.reverse().map(([k, _, E], C) => {
|
|
942
942
|
if (!E && this.config.mergeSelectors)
|
|
943
|
-
for (let $ =
|
|
944
|
-
const T =
|
|
943
|
+
for (let $ = C + 1; $ < I; $++) {
|
|
944
|
+
const T = D[$];
|
|
945
945
|
if (T && !T[2] && (k && T[0] || k == null && T[0] == null) && T[1] === _)
|
|
946
946
|
return k && T[0] && T[0].push(...k), null;
|
|
947
947
|
}
|
|
@@ -962,12 +962,12 @@ class mn {
|
|
|
962
962
|
}
|
|
963
963
|
const w = l ? "" : `/* layer: ${b} */${u}`;
|
|
964
964
|
return x[b] = p ? w + p : "";
|
|
965
|
-
}, S = (b =
|
|
965
|
+
}, S = (b = A, p) => b.filter((w) => !(p != null && p.includes(w))).map((w) => g(w) || "").filter(Boolean).join(u);
|
|
966
966
|
return {
|
|
967
967
|
get css() {
|
|
968
968
|
return S();
|
|
969
969
|
},
|
|
970
|
-
layers:
|
|
970
|
+
layers: A,
|
|
971
971
|
matched: m,
|
|
972
972
|
getLayers: S,
|
|
973
973
|
getLayer: g
|
|
@@ -1044,7 +1044,7 @@ class mn {
|
|
|
1044
1044
|
return c;
|
|
1045
1045
|
}
|
|
1046
1046
|
constructCustomCSS(t, n, s) {
|
|
1047
|
-
const o =
|
|
1047
|
+
const o = G(n);
|
|
1048
1048
|
if (U(o))
|
|
1049
1049
|
return o;
|
|
1050
1050
|
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${Q(a)}}`;
|
|
@@ -1057,7 +1057,7 @@ class mn {
|
|
|
1057
1057
|
const c = this.config.rulesStaticMap[a];
|
|
1058
1058
|
if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
|
|
1059
1059
|
this.config.details && n.rules.push(c[3]);
|
|
1060
|
-
const u = c[0], d =
|
|
1060
|
+
const u = c[0], d = G(c[1]), m = c[2];
|
|
1061
1061
|
return U(d) ? [[u, d, m]] : [[u, r, d, m, l]];
|
|
1062
1062
|
}
|
|
1063
1063
|
n.variantHandlers = l;
|
|
@@ -1067,9 +1067,9 @@ class mn {
|
|
|
1067
1067
|
continue;
|
|
1068
1068
|
let h = a;
|
|
1069
1069
|
if (y != null && y.prefix) {
|
|
1070
|
-
const g =
|
|
1070
|
+
const g = N(y.prefix);
|
|
1071
1071
|
if (o) {
|
|
1072
|
-
const S =
|
|
1072
|
+
const S = N(o);
|
|
1073
1073
|
if (!g.some((b) => S.includes(b)))
|
|
1074
1074
|
continue;
|
|
1075
1075
|
} else {
|
|
@@ -1082,11 +1082,11 @@ class mn {
|
|
|
1082
1082
|
const v = h.match(d);
|
|
1083
1083
|
if (!v)
|
|
1084
1084
|
continue;
|
|
1085
|
-
const
|
|
1086
|
-
if (!
|
|
1085
|
+
const A = await m(v, n);
|
|
1086
|
+
if (!A)
|
|
1087
1087
|
continue;
|
|
1088
1088
|
this.config.details && n.rules.push([d, m, y]);
|
|
1089
|
-
const x =
|
|
1089
|
+
const x = It(A).filter((g) => g.length);
|
|
1090
1090
|
if (x.length)
|
|
1091
1091
|
return x.map((g) => U(g) ? [u, g, y] : [u, r, g, y, l]);
|
|
1092
1092
|
}
|
|
@@ -1112,12 +1112,12 @@ class mn {
|
|
|
1112
1112
|
return;
|
|
1113
1113
|
const o = this.config.details ? (c) => {
|
|
1114
1114
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1115
|
-
} :
|
|
1115
|
+
} : Gt;
|
|
1116
1116
|
let r, a;
|
|
1117
1117
|
for (const c of this.config.shortcuts) {
|
|
1118
1118
|
let f = t;
|
|
1119
1119
|
if ((l = c[2]) != null && l.prefix) {
|
|
1120
|
-
const u =
|
|
1120
|
+
const u = N(c[2].prefix).find((d) => t.startsWith(d));
|
|
1121
1121
|
if (u == null)
|
|
1122
1122
|
continue;
|
|
1123
1123
|
f = t.slice(u.length);
|
|
@@ -1154,7 +1154,7 @@ class mn {
|
|
|
1154
1154
|
async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
|
|
1155
1155
|
var i;
|
|
1156
1156
|
const r = new Wt(), a = (await Promise.all(W(s).map(async (u) => {
|
|
1157
|
-
const d = U(u) ? await this.parseUtil(u, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}",
|
|
1157
|
+
const d = U(u) ? await this.parseUtil(u, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", G(u), void 0, []]];
|
|
1158
1158
|
return !d && this.config.warn && $e(`unmatched utility "${u}" in shortcut "${t[1]}"`), d || [];
|
|
1159
1159
|
}))).flat(1).filter(Boolean).sort((u, d) => u[0] - d[0]), [l, , c] = t, f = [];
|
|
1160
1160
|
for (const u of a) {
|
|
@@ -1162,12 +1162,12 @@ class mn {
|
|
|
1162
1162
|
f.push([u[0], void 0, u[1], void 0, u[2], n, void 0]);
|
|
1163
1163
|
continue;
|
|
1164
1164
|
}
|
|
1165
|
-
const { selector: d, entries: m, parent: y, sort: h, noMerge: v, layer:
|
|
1166
|
-
r.getFallback(
|
|
1165
|
+
const { selector: d, entries: m, parent: y, sort: h, noMerge: v, layer: A } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1166
|
+
r.getFallback(A ?? o.layer, new qt()).getFallback(d, y, [[], u[0]])[0].push([m, !!(v ?? ((i = u[3]) == null ? void 0 : i.noMerge)), h ?? 0]);
|
|
1167
1167
|
}
|
|
1168
1168
|
return f.concat(r.flatMap(
|
|
1169
1169
|
(u, d) => u.map(([m, y], h, v) => {
|
|
1170
|
-
const
|
|
1170
|
+
const A = (g, S, b) => {
|
|
1171
1171
|
const p = Math.max(...b.map((R) => R[1])), w = b.map((R) => R[0]);
|
|
1172
1172
|
return (g ? [w.flat(1)] : w).map((R) => {
|
|
1173
1173
|
const O = Q(R);
|
|
@@ -1179,8 +1179,8 @@ class mn {
|
|
|
1179
1179
|
[m.filter(([, g]) => g).map(([g, , S]) => [g, S]), !0],
|
|
1180
1180
|
[m.filter(([, g]) => !g).map(([g, , S]) => [g, S]), !1]
|
|
1181
1181
|
].map(([g, S]) => [
|
|
1182
|
-
...
|
|
1183
|
-
...
|
|
1182
|
+
...A(!1, S, g.filter(([b]) => b.some((p) => p[0] === le))),
|
|
1183
|
+
...A(!0, S, g.filter(([b]) => b.every((p) => p[0] !== le)))
|
|
1184
1184
|
]);
|
|
1185
1185
|
}).flat(2).filter(Boolean)
|
|
1186
1186
|
));
|
|
@@ -1206,7 +1206,7 @@ function yn(e) {
|
|
|
1206
1206
|
function bn(e, t) {
|
|
1207
1207
|
return t(e);
|
|
1208
1208
|
}
|
|
1209
|
-
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.1.6", 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.58.6", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", ZDOTDIR: "/Users/arlo", TERM_SESSION_ID: "w0t0p0:
|
|
1209
|
+
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.1.6", 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.58.6", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "1.85.1", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", ZDOTDIR: "/Users/arlo", TERM_SESSION_ID: "w0t0p0:3C2B5114-9A90-4A51-B2F8-91472553EC4F", 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.cthj8DRfxo/Listeners", npm_package_devDependencies_dayjs: "^1.11.10", __CF_USER_TEXT_ENCODING: "0x1F5:0x19:0x34", npm_execpath: "/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.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@8.15.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@8.15.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@8.15.5/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/usr/local/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/34678_1710946799351/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/23666_1710940867382/bin:/opt/homebrew/bin", 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", USER_ZDOTDIR: "/Users/arlo", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", PWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_exports____: "./dist/*", npm_lifecycle_event: "build:lib", npm_package_devDependencies_vue: "^3.4.21", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.11.0", npm_package_devDependencies_sass: "^1.72.0", npm_package_devDependencies__unocss_reset: "^0.58.6", 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.1.6_@types+node@20.11.29_sass@1.72.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.6_@types+node@20.11.29_sass@1.72.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.1.6_@types+node@20.11.29_sass@1.72.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.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@8.15.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.12.5/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.12.5/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.12.5/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.5/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.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/34678_1710946799351", TURBO_HASH: "3398e3aeffa39f45", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "--ms-enable-electron-run-as-node", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.58.6", npm_package_engines_node: ">=v14.21.3", npm_config_node_gyp: "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", npm_config_side_effects_cache: "", npm_package_dependencies_colord: "^2.9.3", npm_package_devDependencies__iconify_json: "^2.2.193", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.20", XPC_SERVICE_NAME: "0", VSCODE_INJECTION: "1", npm_package_devDependencies_unocss: "^0.58.6", 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:3C2B5114-9A90-4A51-B2F8-91472553EC4F", npm_package_peerDependencies_vite: "^3.1.0 || ^4.0.0-0 || ^5.0.0-0", LESS: "-R", LOGNAME: "arlo", npm_lifecycle_script: "vite build --config vite.lib.config.ts", npm_package_dependencies__vue_devtools_kit: "workspace:^", npm_package_dependencies__vueuse_integrations: "^10.9.0", VSCODE_GIT_IPC_HANDLE: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/vscode-git-4d965c4849.sock", npm_config_user_agent: "pnpm/8.15.5 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.11.29", 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.0", npm_package_dependencies_vue_router: "^4.3.0", npm_package_dependencies_shiki: "1.2.0", npm_package_dependencies__unocss_preset_icons: "^0.58.6", npm_node_execpath: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
|
|
1210
1210
|
const vn = Object.freeze(
|
|
1211
1211
|
{
|
|
1212
1212
|
left: 0,
|
|
@@ -1228,7 +1228,7 @@ const vn = Object.freeze(
|
|
|
1228
1228
|
}), Sn = Object.freeze({
|
|
1229
1229
|
width: null,
|
|
1230
1230
|
height: null
|
|
1231
|
-
}),
|
|
1231
|
+
}), Ne = Object.freeze({
|
|
1232
1232
|
// Dimensions
|
|
1233
1233
|
...Sn,
|
|
1234
1234
|
// Transformations
|
|
@@ -1271,13 +1271,13 @@ function ge(e, t, n) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
return a(t), n.forEach(a), _e(e, r);
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Cn(e, t) {
|
|
1275
1275
|
if (e.icons[t])
|
|
1276
1276
|
return ge(e, t, []);
|
|
1277
1277
|
const n = xn(e, [t])[t];
|
|
1278
1278
|
return n ? ge(e, t, n) : null;
|
|
1279
1279
|
}
|
|
1280
|
-
const
|
|
1280
|
+
const An = /(-?[0-9.]*[0-9]+[0-9.]*)/g, On = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
1281
1281
|
function ye(e, t, n) {
|
|
1282
1282
|
if (t === 1)
|
|
1283
1283
|
return e;
|
|
@@ -1285,7 +1285,7 @@ function ye(e, t, n) {
|
|
|
1285
1285
|
return Math.ceil(e * t * n) / n;
|
|
1286
1286
|
if (typeof e != "string")
|
|
1287
1287
|
return e;
|
|
1288
|
-
const s = e.split(
|
|
1288
|
+
const s = e.split(An);
|
|
1289
1289
|
if (s === null || !s.length)
|
|
1290
1290
|
return e;
|
|
1291
1291
|
const o = [];
|
|
@@ -1331,7 +1331,7 @@ function Tn(e, t) {
|
|
|
1331
1331
|
...Ue,
|
|
1332
1332
|
...e
|
|
1333
1333
|
}, s = {
|
|
1334
|
-
...
|
|
1334
|
+
...Ne,
|
|
1335
1335
|
...t
|
|
1336
1336
|
}, o = {
|
|
1337
1337
|
left: n.left,
|
|
@@ -1341,9 +1341,9 @@ function Tn(e, t) {
|
|
|
1341
1341
|
};
|
|
1342
1342
|
let r = n.body;
|
|
1343
1343
|
[n, s].forEach((h) => {
|
|
1344
|
-
const v = [],
|
|
1344
|
+
const v = [], A = h.hFlip, x = h.vFlip;
|
|
1345
1345
|
let g = h.rotate;
|
|
1346
|
-
|
|
1346
|
+
A ? x ? g += 2 : (v.push(
|
|
1347
1347
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
1348
1348
|
), v.push("scale(-1 1)"), o.top = o.left = 0) : x && (v.push(
|
|
1349
1349
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
@@ -1402,21 +1402,21 @@ function Mn(e) {
|
|
|
1402
1402
|
function Un(e) {
|
|
1403
1403
|
return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').replace(/(\s)+\/>/g, "/>").trim();
|
|
1404
1404
|
}
|
|
1405
|
-
const
|
|
1406
|
-
function
|
|
1405
|
+
const Nn = /\swidth\s*=\s*["']([\w.]+)["']/, In = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1406
|
+
function jn(e, t, n) {
|
|
1407
1407
|
const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
|
|
1408
1408
|
const l = a.exec(s), c = l != null, f = t[r];
|
|
1409
1409
|
return !f && !re(f) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
|
|
1410
1410
|
};
|
|
1411
|
-
return [o("width",
|
|
1411
|
+
return [o("width", Nn), o("height", In)];
|
|
1412
1412
|
}
|
|
1413
|
-
async function
|
|
1413
|
+
async function Ie(e, t, n, s, o, r) {
|
|
1414
1414
|
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (o == null ? void 0 : o()) ?? {};
|
|
1415
1415
|
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((h) => {
|
|
1416
1416
|
const v = c[h];
|
|
1417
1417
|
v != null && (i[h] = v);
|
|
1418
1418
|
}), r == null || r(i);
|
|
1419
|
-
const [u, d] =
|
|
1419
|
+
const [u, d] = jn(e, i, a);
|
|
1420
1420
|
l && (!e.includes("xmlns=") && !i.xmlns && (i.xmlns = "http://www.w3.org/2000/svg"), !e.includes("xmlns:xlink=") && e.includes("xlink:") && !i["xmlns:xlink"] && (i["xmlns:xlink"] = "http://www.w3.org/1999/xlink"));
|
|
1421
1421
|
const m = Object.keys(i).map(
|
|
1422
1422
|
(h) => h === "width" && u || h === "height" && d ? null : `${h}="${i[h]}"`
|
|
@@ -1452,7 +1452,7 @@ async function be(e, t, n, s) {
|
|
|
1452
1452
|
const a = o.indexOf("<svg");
|
|
1453
1453
|
a > 0 && (o = o.slice(a));
|
|
1454
1454
|
const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1455
|
-
return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await
|
|
1455
|
+
return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Ie(
|
|
1456
1456
|
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? Un(o) : o,
|
|
1457
1457
|
t,
|
|
1458
1458
|
n,
|
|
@@ -1463,18 +1463,18 @@ async function be(e, t, n, s) {
|
|
|
1463
1463
|
), o);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
async function
|
|
1466
|
+
async function je(e, t, n, s) {
|
|
1467
1467
|
let o;
|
|
1468
1468
|
const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1469
1469
|
for (const a of n)
|
|
1470
|
-
if (o =
|
|
1471
|
-
let l = { ...
|
|
1470
|
+
if (o = Cn(e, a), o) {
|
|
1471
|
+
let l = { ...Ne };
|
|
1472
1472
|
typeof r == "function" && (l = r(l));
|
|
1473
1473
|
const {
|
|
1474
1474
|
attributes: { width: c, height: f, ...i },
|
|
1475
1475
|
body: u
|
|
1476
1476
|
} = Tn(o, l), d = s == null ? void 0 : s.scale;
|
|
1477
|
-
return await
|
|
1477
|
+
return await Ie(
|
|
1478
1478
|
// DON'T remove space on <svg >
|
|
1479
1479
|
`<svg >${u}</svg>`,
|
|
1480
1480
|
t,
|
|
@@ -1483,10 +1483,10 @@ async function De(e, t, n, s) {
|
|
|
1483
1483
|
() => ({ ...i }),
|
|
1484
1484
|
(m) => {
|
|
1485
1485
|
const y = (h, v) => {
|
|
1486
|
-
const
|
|
1486
|
+
const A = m[h];
|
|
1487
1487
|
let x;
|
|
1488
|
-
if (!re(
|
|
1489
|
-
if (
|
|
1488
|
+
if (!re(A)) {
|
|
1489
|
+
if (A)
|
|
1490
1490
|
return;
|
|
1491
1491
|
typeof d == "number" ? d && (x = `${d}em`) : x = v;
|
|
1492
1492
|
}
|
|
@@ -1497,7 +1497,7 @@ async function De(e, t, n, s) {
|
|
|
1497
1497
|
);
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
const
|
|
1500
|
+
const De = async (e, t, n) => {
|
|
1501
1501
|
var o;
|
|
1502
1502
|
const s = (o = n == null ? void 0 : n.customCollections) == null ? void 0 : o[e];
|
|
1503
1503
|
if (s)
|
|
@@ -1526,7 +1526,7 @@ const je = async (e, t, n) => {
|
|
|
1526
1526
|
t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1527
1527
|
t.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1528
1528
|
];
|
|
1529
|
-
return await
|
|
1529
|
+
return await je(
|
|
1530
1530
|
r,
|
|
1531
1531
|
e,
|
|
1532
1532
|
a,
|
|
@@ -1537,7 +1537,7 @@ const je = async (e, t, n) => {
|
|
|
1537
1537
|
} else
|
|
1538
1538
|
return await be(s, e, t, n);
|
|
1539
1539
|
};
|
|
1540
|
-
function
|
|
1540
|
+
function Dn(e) {
|
|
1541
1541
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1542
1542
|
}
|
|
1543
1543
|
var Pn = [
|
|
@@ -1713,8 +1713,8 @@ var Pn = [
|
|
|
1713
1713
|
"zmdi",
|
|
1714
1714
|
"zondicons"
|
|
1715
1715
|
];
|
|
1716
|
-
const Fn = /* @__PURE__ */
|
|
1717
|
-
function
|
|
1716
|
+
const Fn = /* @__PURE__ */ Dn(Pn), Vn = 3;
|
|
1717
|
+
function Gn(e) {
|
|
1718
1718
|
return (t = {}) => {
|
|
1719
1719
|
const {
|
|
1720
1720
|
scale: n = 1,
|
|
@@ -1728,7 +1728,7 @@ function Bn(e) {
|
|
|
1728
1728
|
collectionsNodeResolvePath: i,
|
|
1729
1729
|
layer: u = "icons",
|
|
1730
1730
|
unit: d
|
|
1731
|
-
} = t, m =
|
|
1731
|
+
} = t, m = Hn(), y = {
|
|
1732
1732
|
addXmlNs: !0,
|
|
1733
1733
|
scale: n,
|
|
1734
1734
|
customCollections: a,
|
|
@@ -1740,9 +1740,9 @@ function Bn(e) {
|
|
|
1740
1740
|
...c,
|
|
1741
1741
|
additionalProps: { ...l },
|
|
1742
1742
|
trimCustomSvg: !0,
|
|
1743
|
-
async iconCustomizer(v,
|
|
1743
|
+
async iconCustomizer(v, A, x) {
|
|
1744
1744
|
var g;
|
|
1745
|
-
await ((g = c.iconCustomizer) == null ? void 0 : g.call(c, v,
|
|
1745
|
+
await ((g = c.iconCustomizer) == null ? void 0 : g.call(c, v, A, x)), d && (x.width || (x.width = `${n}${d}`), x.height || (x.height = `${n}${d}`));
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
};
|
|
@@ -1754,14 +1754,14 @@ function Bn(e) {
|
|
|
1754
1754
|
layers: { icons: -30 },
|
|
1755
1755
|
rules: [[
|
|
1756
1756
|
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1757
|
-
async ([v,
|
|
1757
|
+
async ([v, A, x = s]) => {
|
|
1758
1758
|
let g = "", S = "", b;
|
|
1759
1759
|
h = h || await e(t);
|
|
1760
1760
|
const p = {};
|
|
1761
|
-
if (
|
|
1762
|
-
[g, S] =
|
|
1761
|
+
if (A.includes(":"))
|
|
1762
|
+
[g, S] = A.split(":"), b = await h(g, S, { ...y, usedProps: p });
|
|
1763
1763
|
else {
|
|
1764
|
-
const R =
|
|
1764
|
+
const R = A.split(/-/g);
|
|
1765
1765
|
for (let O = Vn; O >= 1 && (g = R.slice(0, O).join("-"), S = R.slice(O).join("-"), b = await h(g, S, { ...y, usedProps: p }), !b); O--)
|
|
1766
1766
|
;
|
|
1767
1767
|
}
|
|
@@ -1799,7 +1799,7 @@ function Pe(e, t) {
|
|
|
1799
1799
|
return n.has(o) || n.set(o, e(`${t}@iconify-json/${o}/icons.json`)), n.get(o);
|
|
1800
1800
|
}
|
|
1801
1801
|
return async (o, r, a) => {
|
|
1802
|
-
let l = await
|
|
1802
|
+
let l = await De(o, r, a);
|
|
1803
1803
|
if (l)
|
|
1804
1804
|
return l;
|
|
1805
1805
|
const c = await s(o);
|
|
@@ -1809,12 +1809,12 @@ function Pe(e, t) {
|
|
|
1809
1809
|
r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1810
1810
|
r.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1811
1811
|
];
|
|
1812
|
-
l = await
|
|
1812
|
+
l = await je(c, o, f, a);
|
|
1813
1813
|
}
|
|
1814
1814
|
return l;
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function Hn() {
|
|
1818
1818
|
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!he.VSCODE_CWD, n = e && !!he.ESLINT;
|
|
1819
1819
|
return {
|
|
1820
1820
|
isNode: e,
|
|
@@ -1822,12 +1822,12 @@ function Gn() {
|
|
|
1822
1822
|
isESLint: n
|
|
1823
1823
|
};
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Bn(e) {
|
|
1826
1826
|
return Pe(Mt, e);
|
|
1827
1827
|
}
|
|
1828
|
-
const zn =
|
|
1828
|
+
const zn = Gn(async (e) => {
|
|
1829
1829
|
const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
|
|
1830
|
-
return t && n ? Pe(t, n) : n ?
|
|
1830
|
+
return t && n ? Pe(t, n) : n ? Bn(n) : De;
|
|
1831
1831
|
});
|
|
1832
1832
|
function qn(e) {
|
|
1833
1833
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
@@ -1870,37 +1870,37 @@ function Jn(e = {}) {
|
|
|
1870
1870
|
return;
|
|
1871
1871
|
}
|
|
1872
1872
|
const t = window, n = window.document, s = () => n.documentElement, o = t.__unocss || {}, r = Object.assign({}, e, o.runtime), a = r.defaults || {}, l = r.cloakAttribute ?? "un-cloak";
|
|
1873
|
-
r.autoPrefix && (a.postprocess =
|
|
1873
|
+
r.autoPrefix && (a.postprocess = N(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = r.configResolved) == null || P.call(r, o, a);
|
|
1874
1874
|
const c = hn(o, a), f = (_) => r.inject ? r.inject(_) : s().prepend(_), i = () => r.rootElement ? r.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1875
1875
|
let d = !0, m = /* @__PURE__ */ new Set(), y, h, v = [];
|
|
1876
|
-
const
|
|
1876
|
+
const A = () => new Promise((_) => {
|
|
1877
1877
|
v.push(_), h != null && clearTimeout(h), h = setTimeout(() => S().then(() => {
|
|
1878
1878
|
const E = v;
|
|
1879
|
-
v = [], E.forEach((
|
|
1879
|
+
v = [], E.forEach((C) => C());
|
|
1880
1880
|
}), 0);
|
|
1881
1881
|
});
|
|
1882
1882
|
function x(_) {
|
|
1883
1883
|
if (_.nodeType !== 1)
|
|
1884
1884
|
return;
|
|
1885
1885
|
const E = _;
|
|
1886
|
-
E.hasAttribute(l) && E.removeAttribute(l), E.querySelectorAll(`[${l}]`).forEach((
|
|
1887
|
-
|
|
1886
|
+
E.hasAttribute(l) && E.removeAttribute(l), E.querySelectorAll(`[${l}]`).forEach((C) => {
|
|
1887
|
+
C.removeAttribute(l);
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
1890
|
function g(_, E) {
|
|
1891
|
-
let
|
|
1892
|
-
if (!
|
|
1893
|
-
if (
|
|
1894
|
-
f(
|
|
1891
|
+
let C = u.get(_);
|
|
1892
|
+
if (!C)
|
|
1893
|
+
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", _), u.set(_, C), E == null)
|
|
1894
|
+
f(C);
|
|
1895
1895
|
else {
|
|
1896
1896
|
const M = g(E), $ = M.parentNode;
|
|
1897
|
-
$ ? $.insertBefore(
|
|
1897
|
+
$ ? $.insertBefore(C, M.nextSibling) : f(C);
|
|
1898
1898
|
}
|
|
1899
|
-
return
|
|
1899
|
+
return C;
|
|
1900
1900
|
}
|
|
1901
1901
|
async function S() {
|
|
1902
1902
|
const _ = await c.generate(m);
|
|
1903
|
-
return _.layers.reduce((E,
|
|
1903
|
+
return _.layers.reduce((E, C) => (g(C, E).innerHTML = _.getLayer(C) ?? "", C), void 0), m = _.matched, {
|
|
1904
1904
|
..._,
|
|
1905
1905
|
getStyleElement: (E) => u.get(E),
|
|
1906
1906
|
getStyleElements: () => u
|
|
@@ -1908,7 +1908,7 @@ function Jn(e = {}) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
async function b(_) {
|
|
1910
1910
|
const E = m.size;
|
|
1911
|
-
await c.applyExtractors(_, void 0, m), E !== m.size && await
|
|
1911
|
+
await c.applyExtractors(_, void 0, m), E !== m.size && await A();
|
|
1912
1912
|
}
|
|
1913
1913
|
async function p(_ = i()) {
|
|
1914
1914
|
const E = _ && _.outerHTML;
|
|
@@ -1918,9 +1918,9 @@ function Jn(e = {}) {
|
|
|
1918
1918
|
d || _.forEach(async (E) => {
|
|
1919
1919
|
if (E.target.nodeType !== 1)
|
|
1920
1920
|
return;
|
|
1921
|
-
const
|
|
1921
|
+
const C = E.target;
|
|
1922
1922
|
for (const M of u)
|
|
1923
|
-
if (
|
|
1923
|
+
if (C === M[1])
|
|
1924
1924
|
return;
|
|
1925
1925
|
if (E.type === "childList")
|
|
1926
1926
|
E.addedNodes.forEach(async (M) => {
|
|
@@ -1930,19 +1930,19 @@ function Jn(e = {}) {
|
|
|
1930
1930
|
y && !y($) || (await b($.outerHTML), x($));
|
|
1931
1931
|
});
|
|
1932
1932
|
else {
|
|
1933
|
-
if (y && !y(
|
|
1933
|
+
if (y && !y(C))
|
|
1934
1934
|
return;
|
|
1935
1935
|
if (E.attributeName !== l) {
|
|
1936
|
-
const M = Array.from(
|
|
1936
|
+
const M = Array.from(C.attributes).map((T) => T.value ? `${T.name}="${T.value}"` : T.name).join(" "), $ = `<${C.tagName.toLowerCase()} ${M}>`;
|
|
1937
1937
|
await b($);
|
|
1938
1938
|
}
|
|
1939
|
-
|
|
1939
|
+
C.hasAttribute(l) && C.removeAttribute(l);
|
|
1940
1940
|
}
|
|
1941
1941
|
});
|
|
1942
1942
|
});
|
|
1943
1943
|
let R = !1;
|
|
1944
1944
|
function O() {
|
|
1945
|
-
var E,
|
|
1945
|
+
var E, C;
|
|
1946
1946
|
if (R)
|
|
1947
1947
|
return;
|
|
1948
1948
|
const _ = (E = r.observer) != null && E.target ? r.observer.target() : i();
|
|
@@ -1950,16 +1950,16 @@ function Jn(e = {}) {
|
|
|
1950
1950
|
childList: !0,
|
|
1951
1951
|
subtree: !0,
|
|
1952
1952
|
attributes: !0,
|
|
1953
|
-
attributeFilter: (
|
|
1953
|
+
attributeFilter: (C = r.observer) == null ? void 0 : C.attributeFilter
|
|
1954
1954
|
}), R = !0);
|
|
1955
1955
|
}
|
|
1956
1956
|
function L() {
|
|
1957
1957
|
r.bypassDefined && Xn(c.blocked), p(), O();
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1959
|
+
function I() {
|
|
1960
1960
|
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", L) : L();
|
|
1961
1961
|
}
|
|
1962
|
-
const
|
|
1962
|
+
const D = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1963
1963
|
version: c.version,
|
|
1964
1964
|
uno: c,
|
|
1965
1965
|
async extract(_) {
|
|
@@ -1970,12 +1970,12 @@ function Jn(e = {}) {
|
|
|
1970
1970
|
y = _;
|
|
1971
1971
|
},
|
|
1972
1972
|
toggleObserver(_) {
|
|
1973
|
-
_ === void 0 ? d = !d : d = !!_, !R && !d &&
|
|
1973
|
+
_ === void 0 ? d = !d : d = !!_, !R && !d && I();
|
|
1974
1974
|
},
|
|
1975
1975
|
update: S,
|
|
1976
1976
|
presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
|
|
1977
1977
|
};
|
|
1978
|
-
((k = r.ready) == null ? void 0 : k.call(r,
|
|
1978
|
+
((k = r.ready) == null ? void 0 : k.call(r, D)) !== !1 && (d = !1, I());
|
|
1979
1979
|
}
|
|
1980
1980
|
function Xn(e = /* @__PURE__ */ new Set()) {
|
|
1981
1981
|
for (let t = 0; t < document.styleSheets.length; t++) {
|