@vue/devtools-electron 7.0.23 → 7.0.25
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-BTSE61ew.js → index-De6CzrZK.js} +67 -67
- package/client/assets/index-THmizwtr.css +1 -0
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +11827 -11776
- package/client/index.html +2 -2
- package/client/{unocss-runtime-CMFxqoTo.js → unocss-runtime-Dc9jipnd.js} +448 -448
- package/dist/devtools.js +139 -139
- package/dist/index.cjs +35 -35
- package/dist/index.js +35 -35
- package/dist/user-app.cjs +46 -46
- package/dist/user-app.iife.js +47 -47
- package/dist/user-app.js +46 -46
- package/package.json +3 -3
- package/client/assets/index-DJqApVWe.css +0 -1
|
@@ -83,19 +83,19 @@ function st(e = "") {
|
|
|
83
83
|
const s = n.match(/([^=]+)=?(.*)/) || [];
|
|
84
84
|
if (s.length < 2)
|
|
85
85
|
continue;
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
86
|
+
const o = tt(s[1]);
|
|
87
|
+
if (o === "__proto__" || o === "constructor")
|
|
88
88
|
continue;
|
|
89
|
-
const
|
|
90
|
-
t[
|
|
89
|
+
const r = nt(s[2] || "");
|
|
90
|
+
t[o] === void 0 ? t[o] = r : Array.isArray(t[o]) ? t[o].push(r) : t[o] = [t[o], r];
|
|
91
91
|
}
|
|
92
92
|
return t;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ot(e, t) {
|
|
95
95
|
return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${J(e)}=${ee(n)}`).join("&") : `${J(e)}=${ee(t)}` : J(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) =>
|
|
97
|
+
function rt(e) {
|
|
98
|
+
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => ot(t, e[t])).filter(Boolean).join("&");
|
|
99
99
|
}
|
|
100
100
|
const it = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, at = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, ct = /^([/\\]\s*){2,}[^/\\]/, lt = /\/$|\/\?|\/#/, ut = /^\.?\//;
|
|
101
101
|
function xe(e, t = {}) {
|
|
@@ -110,10 +110,10 @@ function ft(e = "", t) {
|
|
|
110
110
|
if (!te(e, !0))
|
|
111
111
|
return e || "/";
|
|
112
112
|
let n = e, s = "";
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
const [
|
|
116
|
-
return (
|
|
113
|
+
const o = e.indexOf("#");
|
|
114
|
+
o >= 0 && (n = e.slice(0, o), s = e.slice(o));
|
|
115
|
+
const [r, ...a] = n.split("?");
|
|
116
|
+
return (r.slice(0, -1) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
117
117
|
}
|
|
118
118
|
function pt(e = "", t) {
|
|
119
119
|
if (!t)
|
|
@@ -121,23 +121,23 @@ function pt(e = "", t) {
|
|
|
121
121
|
if (te(e, !0))
|
|
122
122
|
return e || "/";
|
|
123
123
|
let n = e, s = "";
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
124
|
+
const o = e.indexOf("#");
|
|
125
|
+
if (o >= 0 && (n = e.slice(0, o), s = e.slice(o), !n))
|
|
126
126
|
return s;
|
|
127
|
-
const [
|
|
128
|
-
return
|
|
127
|
+
const [r, ...a] = n.split("?");
|
|
128
|
+
return r + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
129
129
|
}
|
|
130
130
|
function dt(e, t) {
|
|
131
|
-
if (
|
|
131
|
+
if (ht(t) || xe(e))
|
|
132
132
|
return e;
|
|
133
133
|
const n = ft(t);
|
|
134
134
|
return e.startsWith(n) ? e : gt(n, e);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function mt(e, t) {
|
|
137
137
|
const n = Ae(e), s = { ...st(n.search), ...t };
|
|
138
|
-
return n.search =
|
|
138
|
+
return n.search = rt(s), yt(n);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function ht(e) {
|
|
141
141
|
return !e || e === "/";
|
|
142
142
|
}
|
|
143
143
|
function _t(e) {
|
|
@@ -145,10 +145,10 @@ function _t(e) {
|
|
|
145
145
|
}
|
|
146
146
|
function gt(e, ...t) {
|
|
147
147
|
let n = e || "";
|
|
148
|
-
for (const s of t.filter((
|
|
148
|
+
for (const s of t.filter((o) => _t(o)))
|
|
149
149
|
if (n) {
|
|
150
|
-
const
|
|
151
|
-
n = pt(n) +
|
|
150
|
+
const o = s.replace(ut, "");
|
|
151
|
+
n = pt(n) + o;
|
|
152
152
|
} else
|
|
153
153
|
n = s;
|
|
154
154
|
return n;
|
|
@@ -172,12 +172,12 @@ function Ae(e = "", t) {
|
|
|
172
172
|
}
|
|
173
173
|
if (!xe(e, { acceptRelative: !0 }))
|
|
174
174
|
return t ? Ae(t + e) : ae(e);
|
|
175
|
-
const [, s = "",
|
|
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
|
);
|
|
178
178
|
return {
|
|
179
179
|
protocol: s.toLowerCase(),
|
|
180
|
-
auth:
|
|
180
|
+
auth: o ? o.slice(0, Math.max(0, o.length - 1)) : "",
|
|
181
181
|
host: a,
|
|
182
182
|
pathname: c,
|
|
183
183
|
search: f,
|
|
@@ -194,45 +194,45 @@ function ae(e = "") {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
function yt(e) {
|
|
197
|
-
const t = e.pathname || "", n = e.search ? (e.search.startsWith("?") ? "" : "?") + e.search : "", s = e.hash || "",
|
|
198
|
-
return (e.protocol || e[Ce] ? (e.protocol || "") + "//" : "") +
|
|
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[Ce] ? (e.protocol || "") + "//" : "") + o + r + t + n + s;
|
|
199
199
|
}
|
|
200
200
|
class bt extends Error {
|
|
201
201
|
constructor(t, n) {
|
|
202
202
|
super(t, n), this.name = "FetchError", n != null && n.cause && !this.cause && (this.cause = n.cause);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function vt(e) {
|
|
206
206
|
var c, f, i, u, d;
|
|
207
|
-
const t = ((c = e.error) == null ? void 0 : c.message) || ((f = e.error) == null ? void 0 : f.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((u = e.options) == null ? void 0 : u.method) || "GET", s = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/",
|
|
207
|
+
const t = ((c = e.error) == null ? void 0 : c.message) || ((f = e.error) == null ? void 0 : f.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((u = e.options) == null ? void 0 : u.method) || "GET", s = ((d = e.request) == null ? void 0 : d.url) || String(e.request) || "/", o = `[${n}] ${JSON.stringify(s)}`, r = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${o}: ${r}${t ? ` ${t}` : ""}`, l = new bt(
|
|
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, y] 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[y];
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
return l;
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const wt = new Set(
|
|
232
232
|
Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
|
|
233
233
|
);
|
|
234
234
|
function ce(e = "GET") {
|
|
235
|
-
return
|
|
235
|
+
return wt.has(e.toUpperCase());
|
|
236
236
|
}
|
|
237
237
|
function St(e) {
|
|
238
238
|
if (e === void 0)
|
|
@@ -265,8 +265,8 @@ function At(e, t, n = globalThis.Headers) {
|
|
|
265
265
|
...e == null ? void 0 : e.query
|
|
266
266
|
}), t != null && t.headers && (e != null && e.headers)) {
|
|
267
267
|
s.headers = new n((t == null ? void 0 : t.headers) || {});
|
|
268
|
-
for (const [
|
|
269
|
-
s.headers.set(
|
|
268
|
+
for (const [o, r] of new n((e == null ? void 0 : e.headers) || {}))
|
|
269
|
+
s.headers.set(o, r);
|
|
270
270
|
}
|
|
271
271
|
return s;
|
|
272
272
|
}
|
|
@@ -294,7 +294,7 @@ function Oe(e = {}) {
|
|
|
294
294
|
Headers: n = globalThis.Headers,
|
|
295
295
|
AbortController: s = globalThis.AbortController
|
|
296
296
|
} = e;
|
|
297
|
-
async function
|
|
297
|
+
async function o(l) {
|
|
298
298
|
const c = l.error && l.error.name === "AbortError" && !l.options.timeout || !1;
|
|
299
299
|
if (l.options.retry !== !1 && !c) {
|
|
300
300
|
let i;
|
|
@@ -302,17 +302,17 @@ 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
|
timeout: l.options.timeout
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
const f =
|
|
313
|
-
throw Error.captureStackTrace && Error.captureStackTrace(f,
|
|
312
|
+
const f = vt(l);
|
|
313
|
+
throw Error.captureStackTrace && Error.captureStackTrace(f, r), f;
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const r = async function(c, f = {}) {
|
|
316
316
|
var d;
|
|
317
317
|
const i = {
|
|
318
318
|
request: c,
|
|
@@ -320,7 +320,7 @@ function Oe(e = {}) {
|
|
|
320
320
|
response: void 0,
|
|
321
321
|
error: void 0
|
|
322
322
|
};
|
|
323
|
-
if (i.options.method = (d = i.options.method) == null ? void 0 : d.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 =
|
|
323
|
+
if (i.options.method = (d = i.options.method) == null ? void 0 : d.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = dt(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = mt(i.request, {
|
|
324
324
|
...i.options.params,
|
|
325
325
|
...i.options.query
|
|
326
326
|
}))), 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")) : (
|
|
@@ -328,23 +328,23 @@ function Oe(e = {}) {
|
|
|
328
328
|
("pipeTo" in i.options.body && typeof i.options.body.pipeTo == "function" || // Node.js Stream Body
|
|
329
329
|
typeof i.options.body.pipe == "function") && ("duplex" in i.options || (i.options.duplex = "half"))
|
|
330
330
|
)), !i.options.signal && i.options.timeout) {
|
|
331
|
-
const
|
|
332
|
-
setTimeout(() =>
|
|
331
|
+
const m = new s();
|
|
332
|
+
setTimeout(() => m.abort(), i.options.timeout), i.options.signal = m.signal;
|
|
333
333
|
}
|
|
334
334
|
try {
|
|
335
335
|
i.response = await t(
|
|
336
336
|
i.request,
|
|
337
337
|
i.options
|
|
338
338
|
);
|
|
339
|
-
} catch (
|
|
340
|
-
return i.error =
|
|
339
|
+
} catch (m) {
|
|
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
|
|
344
|
-
switch (
|
|
343
|
+
const m = (i.options.parseResponse ? "json" : i.options.responseType) || Ct(i.response.headers.get("content-type") || "");
|
|
344
|
+
switch (m) {
|
|
345
345
|
case "json": {
|
|
346
|
-
const y = await i.response.text(),
|
|
347
|
-
i.response._data =
|
|
346
|
+
const y = await i.response.text(), h = i.options.parseResponse || ze;
|
|
347
|
+
i.response._data = h(y);
|
|
348
348
|
break;
|
|
349
349
|
}
|
|
350
350
|
case "stream": {
|
|
@@ -352,14 +352,14 @@ function Oe(e = {}) {
|
|
|
352
352
|
break;
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
|
-
i.response._data = await i.response[
|
|
355
|
+
i.response._data = await i.response[m]();
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await
|
|
358
|
+
return i.options.onResponse && await i.options.onResponse(i), !i.options.ignoreResponseError && i.response.status >= 400 && i.response.status < 600 ? (i.options.onResponseError && await i.options.onResponseError(i), await o(i)) : i.response;
|
|
359
359
|
}, a = async function(c, f) {
|
|
360
|
-
return (await
|
|
360
|
+
return (await r(c, f))._data;
|
|
361
361
|
};
|
|
362
|
-
return a.raw =
|
|
362
|
+
return a.raw = r, a.native = (...l) => t(...l), a.create = (l = {}) => Oe({
|
|
363
363
|
...e,
|
|
364
364
|
defaults: {
|
|
365
365
|
...e.defaults,
|
|
@@ -367,7 +367,7 @@ function Oe(e = {}) {
|
|
|
367
367
|
}
|
|
368
368
|
}), a;
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const oe = function() {
|
|
371
371
|
if (typeof globalThis < "u")
|
|
372
372
|
return globalThis;
|
|
373
373
|
if (typeof self < "u")
|
|
@@ -377,30 +377,30 @@ const re = function() {
|
|
|
377
377
|
if (typeof global < "u")
|
|
378
378
|
return global;
|
|
379
379
|
throw new Error("unable to locate global object");
|
|
380
|
-
}(), kt =
|
|
381
|
-
function
|
|
380
|
+
}(), kt = oe.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), $t = oe.Headers, Tt = oe.AbortController, Lt = Oe({ fetch: kt, Headers: $t, AbortController: Tt }), Mt = Lt;
|
|
381
|
+
function Ut(e) {
|
|
382
382
|
const t = e.length;
|
|
383
|
-
let n = -1, s,
|
|
384
|
-
const
|
|
383
|
+
let n = -1, s, o = "";
|
|
384
|
+
const r = e.charCodeAt(0);
|
|
385
385
|
for (; ++n < t; ) {
|
|
386
386
|
if (s = e.charCodeAt(n), s === 0) {
|
|
387
|
-
|
|
387
|
+
o += "�";
|
|
388
388
|
continue;
|
|
389
389
|
}
|
|
390
390
|
if (s === 37) {
|
|
391
|
-
|
|
391
|
+
o += "\\%";
|
|
392
392
|
continue;
|
|
393
393
|
}
|
|
394
394
|
if (s === 44) {
|
|
395
|
-
|
|
395
|
+
o += "\\,";
|
|
396
396
|
continue;
|
|
397
397
|
}
|
|
398
398
|
if (
|
|
399
399
|
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
|
|
400
400
|
// U+007F, […]
|
|
401
|
-
s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 &&
|
|
401
|
+
s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 && r === 45
|
|
402
402
|
) {
|
|
403
|
-
|
|
403
|
+
o += `\\${s.toString(16)} `;
|
|
404
404
|
continue;
|
|
405
405
|
}
|
|
406
406
|
if (
|
|
@@ -408,60 +408,60 @@ function It(e) {
|
|
|
408
408
|
// there is no second character, […]
|
|
409
409
|
n === 0 && t === 1 && s === 45
|
|
410
410
|
) {
|
|
411
|
-
|
|
411
|
+
o += `\\${e.charAt(n)}`;
|
|
412
412
|
continue;
|
|
413
413
|
}
|
|
414
414
|
if (s >= 128 || s === 45 || s === 95 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122) {
|
|
415
|
-
|
|
415
|
+
o += e.charAt(n);
|
|
416
416
|
continue;
|
|
417
417
|
}
|
|
418
|
-
|
|
418
|
+
o += `\\${e.charAt(n)}`;
|
|
419
419
|
}
|
|
420
|
-
return
|
|
420
|
+
return o;
|
|
421
421
|
}
|
|
422
|
-
const X =
|
|
423
|
-
function
|
|
422
|
+
const X = Ut;
|
|
423
|
+
function I(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
|
|
430
|
-
return e.reduce((n, s) => (n.findIndex((
|
|
429
|
+
function It(e, t) {
|
|
430
|
+
return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function U(e) {
|
|
433
433
|
return typeof e == "string";
|
|
434
434
|
}
|
|
435
435
|
function B(e) {
|
|
436
|
-
return
|
|
436
|
+
return U(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Nt(e) {
|
|
439
439
|
return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => B(t)) : [e] : [B(e)];
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Dt(e) {
|
|
442
442
|
return e.filter(([t, n], s) => {
|
|
443
443
|
if (t.startsWith("$$"))
|
|
444
444
|
return !1;
|
|
445
|
-
for (let
|
|
446
|
-
if (e[
|
|
445
|
+
for (let o = s - 1; o >= 0; o--)
|
|
446
|
+
if (e[o][0] === t && e[o][1] === n)
|
|
447
447
|
return !1;
|
|
448
448
|
return !0;
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function Q(e) {
|
|
452
|
-
return e == null ? "" :
|
|
452
|
+
return e == null ? "" : Dt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
453
453
|
}
|
|
454
454
|
function G(e) {
|
|
455
455
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
456
456
|
}
|
|
457
457
|
function Re(e, t, n = !1) {
|
|
458
|
-
const s = e,
|
|
459
|
-
if (Array.isArray(
|
|
460
|
-
return n && Array.isArray(
|
|
461
|
-
const
|
|
462
|
-
return G(s) && G(
|
|
463
|
-
G(s[a]) && G(
|
|
464
|
-
}),
|
|
458
|
+
const s = e, o = t;
|
|
459
|
+
if (Array.isArray(o))
|
|
460
|
+
return n && Array.isArray(o) ? [...s, ...o] : [...o];
|
|
461
|
+
const r = { ...s };
|
|
462
|
+
return G(s) && G(o) && Object.keys(o).forEach((a) => {
|
|
463
|
+
G(s[a]) && G(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
|
+
}), r;
|
|
465
465
|
}
|
|
466
466
|
function z(e) {
|
|
467
467
|
let t, n, s;
|
|
@@ -484,10 +484,10 @@ function z(e) {
|
|
|
484
484
|
return e;
|
|
485
485
|
}
|
|
486
486
|
function jt(e) {
|
|
487
|
-
return
|
|
487
|
+
return U(e[0]);
|
|
488
488
|
}
|
|
489
489
|
function Pt(e) {
|
|
490
|
-
return
|
|
490
|
+
return U(e[0]);
|
|
491
491
|
}
|
|
492
492
|
const le = "$$shortcut-no-merge";
|
|
493
493
|
function Ft(e) {
|
|
@@ -512,12 +512,12 @@ class qt {
|
|
|
512
512
|
return s.get(n);
|
|
513
513
|
}
|
|
514
514
|
getFallback(t, n, s) {
|
|
515
|
-
let
|
|
516
|
-
return
|
|
515
|
+
let o = this._map.get(t);
|
|
516
|
+
return o || (o = /* @__PURE__ */ new Map(), this._map.set(t, o)), o.has(n) || o.set(n, s), o.get(n);
|
|
517
517
|
}
|
|
518
518
|
set(t, n, s) {
|
|
519
|
-
let
|
|
520
|
-
return
|
|
519
|
+
let o = this._map.get(t);
|
|
520
|
+
return o || (o = /* @__PURE__ */ new Map(), this._map.set(t, o)), o.set(n, s), this;
|
|
521
521
|
}
|
|
522
522
|
has(t, n) {
|
|
523
523
|
var s;
|
|
@@ -531,7 +531,7 @@ class qt {
|
|
|
531
531
|
return this._map.delete(t);
|
|
532
532
|
}
|
|
533
533
|
map(t) {
|
|
534
|
-
return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([
|
|
534
|
+
return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([o, r]) => t(r, n, o)));
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
class Wt extends Map {
|
|
@@ -541,14 +541,14 @@ class Wt extends Map {
|
|
|
541
541
|
}
|
|
542
542
|
map(t) {
|
|
543
543
|
const n = [];
|
|
544
|
-
return this.forEach((s,
|
|
545
|
-
n.push(t(s,
|
|
544
|
+
return this.forEach((s, o) => {
|
|
545
|
+
n.push(t(s, o));
|
|
546
546
|
}), n;
|
|
547
547
|
}
|
|
548
548
|
flatMap(t) {
|
|
549
549
|
const n = [];
|
|
550
|
-
return this.forEach((s,
|
|
551
|
-
n.push(...t(s,
|
|
550
|
+
return this.forEach((s, o) => {
|
|
551
|
+
n.push(...t(s, o));
|
|
552
552
|
}), n;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
@@ -583,33 +583,33 @@ function Qt(e = ["-", ":"]) {
|
|
|
583
583
|
}
|
|
584
584
|
function Yt(e, t = ["-", ":"], n = 5) {
|
|
585
585
|
const s = Qt(t);
|
|
586
|
-
let
|
|
586
|
+
let o, r = e.toString();
|
|
587
587
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
588
588
|
do
|
|
589
|
-
|
|
589
|
+
o = !1, r = r.replace(
|
|
590
590
|
s,
|
|
591
|
-
(f, i, u, d,
|
|
592
|
-
var
|
|
591
|
+
(f, i, u, d, m) => {
|
|
592
|
+
var v;
|
|
593
593
|
if (!t.includes(u))
|
|
594
594
|
return f;
|
|
595
|
-
|
|
596
|
-
const y =
|
|
597
|
-
l.set(
|
|
595
|
+
o = !0, a.add(i + u);
|
|
596
|
+
const y = m + i.length + u.length + 1, h = { length: f.length, items: [] };
|
|
597
|
+
l.set(m, h);
|
|
598
598
|
for (const A of [...d.matchAll(/\S+/g)]) {
|
|
599
599
|
const x = y + A.index;
|
|
600
|
-
let g = (
|
|
600
|
+
let g = (v = l.get(x)) == null ? void 0 : v.items;
|
|
601
601
|
g ? l.delete(x) : g = [{
|
|
602
602
|
offset: x,
|
|
603
603
|
length: A[0].length,
|
|
604
604
|
className: A[0]
|
|
605
605
|
}];
|
|
606
606
|
for (const S of g)
|
|
607
|
-
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`),
|
|
607
|
+
S.className = S.className === "~" ? i : S.className.replace(/^(!?)(.*)/, `$1${i}${u}$2`), h.items.push(S);
|
|
608
608
|
}
|
|
609
609
|
return "$".repeat(f.length);
|
|
610
610
|
}
|
|
611
611
|
), n -= 1;
|
|
612
|
-
while (
|
|
612
|
+
while (o && n);
|
|
613
613
|
let c;
|
|
614
614
|
if (typeof e == "string") {
|
|
615
615
|
c = "";
|
|
@@ -628,7 +628,7 @@ function Yt(e, t = ["-", ":"], n = 5) {
|
|
|
628
628
|
}
|
|
629
629
|
return {
|
|
630
630
|
prefixes: Array.from(a),
|
|
631
|
-
hasChanged:
|
|
631
|
+
hasChanged: o,
|
|
632
632
|
groupsByOffset: l,
|
|
633
633
|
// Computed lazily because MagicString's toString does a lot of work
|
|
634
634
|
get expanded() {
|
|
@@ -666,14 +666,14 @@ function sn() {
|
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
const q = "default", ne = "preflights",
|
|
670
|
-
[
|
|
669
|
+
const q = "default", ne = "preflights", on = "shortcuts", rn = "imports", an = {
|
|
670
|
+
[rn]: -200,
|
|
671
671
|
[ne]: -100,
|
|
672
|
-
[
|
|
672
|
+
[on]: -10,
|
|
673
673
|
[q]: 0
|
|
674
674
|
};
|
|
675
675
|
function Te(e) {
|
|
676
|
-
return
|
|
676
|
+
return I(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
677
677
|
}
|
|
678
678
|
const pe = "_uno_resolved";
|
|
679
679
|
function cn(e) {
|
|
@@ -687,12 +687,12 @@ function cn(e) {
|
|
|
687
687
|
});
|
|
688
688
|
const n = t.shortcuts ? Te(t.shortcuts) : void 0;
|
|
689
689
|
if (t.shortcuts = n, t.prefix || t.layer) {
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
const a =
|
|
693
|
-
a.prefix == null && t.prefix && (a.prefix =
|
|
690
|
+
const o = (r) => {
|
|
691
|
+
r[2] || (r[2] = {});
|
|
692
|
+
const a = r[2];
|
|
693
|
+
a.prefix == null && t.prefix && (a.prefix = I(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
|
|
694
694
|
};
|
|
695
|
-
n == null || n.forEach(
|
|
695
|
+
n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
|
|
696
696
|
}
|
|
697
697
|
return t;
|
|
698
698
|
}
|
|
@@ -700,51 +700,51 @@ 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(I).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 = It((n.presets || []).flatMap(I).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")
|
|
712
|
-
],
|
|
713
|
-
...
|
|
712
|
+
], r = [
|
|
713
|
+
...o,
|
|
714
714
|
n
|
|
715
|
-
], a = [...
|
|
715
|
+
], a = [...r].reverse(), l = Object.assign({}, an, ...r.map((p) => p.layers));
|
|
716
716
|
function c(p) {
|
|
717
|
-
return W(
|
|
717
|
+
return W(r.flatMap((w) => I(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
|
-
i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p,
|
|
722
|
-
const u = c("rules"), d = {},
|
|
721
|
+
i === void 0 && (i = nn), i && !f.includes(i) && f.unshift(i), f.sort((p, w) => (p.order || 0) - (w.order || 0));
|
|
722
|
+
const u = c("rules"), d = {}, m = u.length, y = u.map((p, w) => {
|
|
723
723
|
var R;
|
|
724
724
|
if (jt(p)) {
|
|
725
|
-
|
|
726
|
-
d[L + p[0]] = [
|
|
725
|
+
I(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((L) => {
|
|
726
|
+
d[L + p[0]] = [w, p[1], p[2], p];
|
|
727
727
|
});
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
return [
|
|
730
|
+
return [w, ...p];
|
|
731
731
|
}).filter(Boolean).reverse();
|
|
732
|
-
let
|
|
733
|
-
const
|
|
734
|
-
for (const p of
|
|
735
|
-
|
|
732
|
+
let h = ln(r.map((p) => p.theme));
|
|
733
|
+
const v = c("extendTheme");
|
|
734
|
+
for (const p of v)
|
|
735
|
+
h = p(h) || h;
|
|
736
736
|
const A = {
|
|
737
|
-
templates: W(
|
|
738
|
-
var
|
|
739
|
-
return
|
|
737
|
+
templates: W(r.flatMap((p) => {
|
|
738
|
+
var w;
|
|
739
|
+
return I((w = p.autocomplete) == null ? void 0 : w.templates);
|
|
740
740
|
})),
|
|
741
|
-
extractors:
|
|
742
|
-
var
|
|
743
|
-
return
|
|
744
|
-
}).sort((p,
|
|
745
|
-
shorthands: un(
|
|
746
|
-
var
|
|
747
|
-
return ((
|
|
741
|
+
extractors: r.flatMap((p) => {
|
|
742
|
+
var w;
|
|
743
|
+
return I((w = p.autocomplete) == null ? void 0 : w.extractors);
|
|
744
|
+
}).sort((p, w) => (p.order || 0) - (w.order || 0)),
|
|
745
|
+
shorthands: un(r.map((p) => {
|
|
746
|
+
var w;
|
|
747
|
+
return ((w = p.autocomplete) == null ? void 0 : w.shorthands) || {};
|
|
748
748
|
}))
|
|
749
749
|
};
|
|
750
750
|
let x = c("separators");
|
|
@@ -755,26 +755,26 @@ function de(e = {}, t = {}) {
|
|
|
755
755
|
sortLayers: (p) => p,
|
|
756
756
|
...n,
|
|
757
757
|
blocklist: c("blocklist"),
|
|
758
|
-
presets:
|
|
758
|
+
presets: o,
|
|
759
759
|
envMode: n.envMode || "build",
|
|
760
760
|
shortcutsLayer: n.shortcutsLayer || "shortcuts",
|
|
761
761
|
layers: l,
|
|
762
|
-
theme:
|
|
763
|
-
rulesSize:
|
|
762
|
+
theme: h,
|
|
763
|
+
rulesSize: m,
|
|
764
764
|
rulesDynamic: y,
|
|
765
765
|
rulesStaticMap: d,
|
|
766
766
|
preprocess: c("preprocess"),
|
|
767
767
|
postprocess: c("postprocess"),
|
|
768
768
|
preflights: c("preflights"),
|
|
769
769
|
autocomplete: A,
|
|
770
|
-
variants: c("variants").map(Ft).sort((p,
|
|
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,
|
|
773
773
|
safelist: c("safelist"),
|
|
774
774
|
separators: x,
|
|
775
775
|
details: n.details ?? n.envMode === "dev"
|
|
776
776
|
};
|
|
777
|
-
for (const p of
|
|
777
|
+
for (const p of r)
|
|
778
778
|
(b = p == null ? void 0 : p.configResolved) == null || b.call(p, g);
|
|
779
779
|
return g;
|
|
780
780
|
}
|
|
@@ -784,9 +784,9 @@ function ln(e) {
|
|
|
784
784
|
function un(e) {
|
|
785
785
|
return e.reduce((t, n) => {
|
|
786
786
|
const s = {};
|
|
787
|
-
for (const
|
|
788
|
-
const
|
|
789
|
-
Array.isArray(
|
|
787
|
+
for (const o in n) {
|
|
788
|
+
const r = n[o];
|
|
789
|
+
Array.isArray(r) ? s[o] = `(${r.join("|")})` : s[o] = r;
|
|
790
790
|
}
|
|
791
791
|
return {
|
|
792
792
|
...t,
|
|
@@ -795,17 +795,17 @@ 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,
|
|
799
|
-
class
|
|
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, D = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
799
|
+
class mn {
|
|
800
800
|
constructor(t = {}, n = {}) {
|
|
801
|
-
this.userConfig = t, this.defaults = n,
|
|
801
|
+
this.userConfig = t, this.defaults = n, D(this, "version", fn), D(this, "_cache", /* @__PURE__ */ new Map()), D(this, "config"), D(this, "blocked", /* @__PURE__ */ new Set()), D(this, "parentOrders", /* @__PURE__ */ new Map()), D(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));
|
|
805
805
|
}
|
|
806
806
|
async applyExtractors(t, n, s = /* @__PURE__ */ new Set()) {
|
|
807
|
-
var
|
|
808
|
-
const
|
|
807
|
+
var r;
|
|
808
|
+
const o = {
|
|
809
809
|
original: t,
|
|
810
810
|
code: t,
|
|
811
811
|
id: n,
|
|
@@ -813,7 +813,7 @@ class hn {
|
|
|
813
813
|
envMode: this.config.envMode
|
|
814
814
|
};
|
|
815
815
|
for (const a of this.config.extractors) {
|
|
816
|
-
const l = await ((
|
|
816
|
+
const l = await ((r = a.extract) == null ? void 0 : r.call(a, o));
|
|
817
817
|
if (l)
|
|
818
818
|
if (Y(l) && Y(s))
|
|
819
819
|
for (const c of l)
|
|
@@ -831,7 +831,7 @@ class hn {
|
|
|
831
831
|
theme: this.config.theme,
|
|
832
832
|
generator: this,
|
|
833
833
|
variantHandlers: n[2],
|
|
834
|
-
constructCSS: (...
|
|
834
|
+
constructCSS: (...o) => this.constructCustomCSS(s, ...o),
|
|
835
835
|
variantMatch: n
|
|
836
836
|
};
|
|
837
837
|
return s;
|
|
@@ -843,20 +843,20 @@ class hn {
|
|
|
843
843
|
const s = `${t}${n ? ` ${n}` : ""}`;
|
|
844
844
|
if (this._cache.has(s))
|
|
845
845
|
return this._cache.get(s);
|
|
846
|
-
let
|
|
846
|
+
let o = t;
|
|
847
847
|
for (const i of this.config.preprocess)
|
|
848
|
-
|
|
849
|
-
if (this.isBlocked(
|
|
848
|
+
o = i(t);
|
|
849
|
+
if (this.isBlocked(o)) {
|
|
850
850
|
this.blocked.add(t), this._cache.set(s, null);
|
|
851
851
|
return;
|
|
852
852
|
}
|
|
853
|
-
const
|
|
854
|
-
if (!
|
|
853
|
+
const r = await this.matchVariants(t, o);
|
|
854
|
+
if (!r || this.isBlocked(r[1])) {
|
|
855
855
|
this.blocked.add(t), this._cache.set(s, null);
|
|
856
856
|
return;
|
|
857
857
|
}
|
|
858
|
-
const a = this.makeContext(t, [n ||
|
|
859
|
-
this.config.details && (a.variants = [...
|
|
858
|
+
const a = this.makeContext(t, [n || r[0], r[1], r[2], r[3]]);
|
|
859
|
+
this.config.details && (a.variants = [...r[3]]);
|
|
860
860
|
const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (f = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : f.map((i) => this.stringifyUtil(i, a)).filter(Vt);
|
|
861
861
|
if (c != null && c.length)
|
|
862
862
|
return this._cache.set(s, c), c;
|
|
@@ -865,12 +865,12 @@ class hn {
|
|
|
865
865
|
async generate(t, n = {}) {
|
|
866
866
|
const {
|
|
867
867
|
id: s,
|
|
868
|
-
scope:
|
|
869
|
-
preflights:
|
|
868
|
+
scope: o,
|
|
869
|
+
preflights: r = !0,
|
|
870
870
|
safelist: a = !0,
|
|
871
871
|
minify: l = !1,
|
|
872
872
|
extendedInfo: c = !1
|
|
873
|
-
} = n, f = this.config.outputToCssLayers, i =
|
|
873
|
+
} = n, f = this.config.outputToCssLayers, i = U(t) ? await this.applyExtractors(
|
|
874
874
|
t,
|
|
875
875
|
s,
|
|
876
876
|
c ? new ke() : /* @__PURE__ */ new Set()
|
|
@@ -879,40 +879,40 @@ class hn {
|
|
|
879
879
|
i.has(b) || i.add(b);
|
|
880
880
|
});
|
|
881
881
|
const u = l ? "" : `
|
|
882
|
-
`, d = /* @__PURE__ */ new Set([q]),
|
|
883
|
-
let
|
|
884
|
-
const
|
|
885
|
-
var
|
|
886
|
-
if (
|
|
882
|
+
`, d = /* @__PURE__ */ new Set([q]), m = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map();
|
|
883
|
+
let h = {};
|
|
884
|
+
const v = Array.from(i).map(async (b) => {
|
|
885
|
+
var w;
|
|
886
|
+
if (m.has(b))
|
|
887
887
|
return;
|
|
888
888
|
const p = await this.parseToken(b);
|
|
889
889
|
if (p != null) {
|
|
890
|
-
|
|
890
|
+
m instanceof Map ? m.set(b, {
|
|
891
891
|
data: p,
|
|
892
892
|
count: Y(i) ? i.getCount(b) : -1
|
|
893
|
-
}) :
|
|
893
|
+
}) : m.add(b);
|
|
894
894
|
for (const R of p) {
|
|
895
|
-
const O = R[3] || "", L = (
|
|
895
|
+
const O = R[3] || "", L = (w = R[4]) == null ? void 0 : w.layer;
|
|
896
896
|
y.has(O) || y.set(O, []), y.get(O).push(R), L && d.add(L);
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
|
-
await Promise.all(
|
|
901
|
-
if (!
|
|
900
|
+
await Promise.all(v), await (async () => {
|
|
901
|
+
if (!r)
|
|
902
902
|
return;
|
|
903
903
|
const b = {
|
|
904
904
|
generator: this,
|
|
905
905
|
theme: this.config.theme
|
|
906
906
|
}, p = /* @__PURE__ */ new Set([]);
|
|
907
|
-
this.config.preflights.forEach(({ layer:
|
|
908
|
-
d.add(
|
|
909
|
-
}),
|
|
907
|
+
this.config.preflights.forEach(({ layer: w = ne }) => {
|
|
908
|
+
d.add(w), p.add(w);
|
|
909
|
+
}), h = Object.fromEntries(
|
|
910
910
|
await Promise.all(Array.from(p).map(
|
|
911
|
-
async (
|
|
911
|
+
async (w) => {
|
|
912
912
|
const O = (await Promise.all(
|
|
913
|
-
this.config.preflights.filter((L) => (L.layer || ne) ===
|
|
913
|
+
this.config.preflights.filter((L) => (L.layer || ne) === w).map(async (L) => await L.getCSS(b))
|
|
914
914
|
)).filter(Boolean).join(u);
|
|
915
|
-
return [
|
|
915
|
+
return [w, O];
|
|
916
916
|
}
|
|
917
917
|
))
|
|
918
918
|
);
|
|
@@ -922,17 +922,17 @@ class hn {
|
|
|
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 N;
|
|
926
|
+
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(L[0]) ?? 0) || ((N = O[0]) == null ? void 0 : N.localeCompare(L[0] || "")) || 0;
|
|
927
927
|
}).map(([O, L]) => {
|
|
928
|
-
const
|
|
928
|
+
const N = L.length, j = L.filter((k) => {
|
|
929
929
|
var _;
|
|
930
930
|
return (((_ = k[4]) == null ? void 0 : _.layer) || q) === b;
|
|
931
931
|
}).sort((k, _) => {
|
|
932
932
|
var E, C, M, $, T, V, ie;
|
|
933
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
934
|
}).map(([, k, _, , E, , C]) => [
|
|
935
|
-
[[(k && gn(k,
|
|
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
|
]);
|
|
@@ -940,7 +940,7 @@ class hn {
|
|
|
940
940
|
return;
|
|
941
941
|
const P = j.reverse().map(([k, _, E], C) => {
|
|
942
942
|
if (!E && this.config.mergeSelectors)
|
|
943
|
-
for (let $ = C + 1; $ <
|
|
943
|
+
for (let $ = C + 1; $ < N; $++) {
|
|
944
944
|
const T = j[$];
|
|
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;
|
|
@@ -956,26 +956,26 @@ class hn {
|
|
|
956
956
|
const F = O.split(" $$ ");
|
|
957
957
|
return `${F.join("{")}{${u}${P}${u}${"}".repeat(F.length)}`;
|
|
958
958
|
}).filter(Boolean).join(u);
|
|
959
|
-
if (
|
|
959
|
+
if (r && (p = [h[b], p].filter(Boolean).join(u)), f && p) {
|
|
960
960
|
let O = typeof f == "object" ? (R = f.cssLayerName) == null ? void 0 : R.call(f, b) : void 0;
|
|
961
961
|
O !== null && (O || (O = b), p = `@layer ${O}{${u}${p}${u}}`);
|
|
962
962
|
}
|
|
963
|
-
const
|
|
964
|
-
return x[b] = p ?
|
|
965
|
-
}, S = (b = A, p) => b.filter((
|
|
963
|
+
const w = l ? "" : `/* layer: ${b} */${u}`;
|
|
964
|
+
return x[b] = p ? w + p : "";
|
|
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
970
|
layers: A,
|
|
971
|
-
matched:
|
|
971
|
+
matched: m,
|
|
972
972
|
getLayers: S,
|
|
973
973
|
getLayer: g
|
|
974
974
|
};
|
|
975
975
|
}
|
|
976
976
|
async matchVariants(t, n) {
|
|
977
|
-
const s = /* @__PURE__ */ new Set(),
|
|
978
|
-
let
|
|
977
|
+
const s = /* @__PURE__ */ new Set(), o = [];
|
|
978
|
+
let r = n || t, a = !0;
|
|
979
979
|
const l = {
|
|
980
980
|
rawSelector: t,
|
|
981
981
|
theme: this.config.theme,
|
|
@@ -986,35 +986,35 @@ class hn {
|
|
|
986
986
|
for (const c of this.config.variants) {
|
|
987
987
|
if (!c.multiPass && s.has(c))
|
|
988
988
|
continue;
|
|
989
|
-
let f = await c.match(
|
|
989
|
+
let f = await c.match(r, l);
|
|
990
990
|
if (f) {
|
|
991
|
-
if (
|
|
992
|
-
if (f ===
|
|
991
|
+
if (U(f)) {
|
|
992
|
+
if (f === r)
|
|
993
993
|
continue;
|
|
994
994
|
f = { matcher: f };
|
|
995
995
|
}
|
|
996
|
-
|
|
996
|
+
r = f.matcher, o.unshift(f), s.add(c), a = !0;
|
|
997
997
|
break;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
1000
|
if (!a)
|
|
1001
1001
|
break;
|
|
1002
|
-
if (
|
|
1002
|
+
if (o.length > 500)
|
|
1003
1003
|
throw new Error(`Too many variants applied to "${t}"`);
|
|
1004
1004
|
}
|
|
1005
|
-
return [t,
|
|
1005
|
+
return [t, r, o, s];
|
|
1006
1006
|
}
|
|
1007
1007
|
applyVariants(t, n = t[4], s = t[1]) {
|
|
1008
|
-
const
|
|
1008
|
+
const r = n.slice().sort((f, i) => (f.order || 0) - (i.order || 0)).reduceRight(
|
|
1009
1009
|
(f, i) => (u) => {
|
|
1010
|
-
var y,
|
|
1011
|
-
const d = ((y = i.body) == null ? void 0 : y.call(i, u.entries)) || u.entries,
|
|
1010
|
+
var y, h;
|
|
1011
|
+
const d = ((y = i.body) == null ? void 0 : y.call(i, u.entries)) || u.entries, m = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
|
|
1012
1012
|
return (i.handle ?? bn)({
|
|
1013
1013
|
...u,
|
|
1014
1014
|
entries: d,
|
|
1015
|
-
selector: ((
|
|
1016
|
-
parent:
|
|
1017
|
-
parentOrder:
|
|
1015
|
+
selector: ((h = i.selector) == null ? void 0 : h.call(i, u.selector, d)) || u.selector,
|
|
1016
|
+
parent: m[0] || u.parent,
|
|
1017
|
+
parentOrder: m[1] || u.parentOrder,
|
|
1018
1018
|
layer: i.layer || u.layer,
|
|
1019
1019
|
sort: i.sort || u.sort
|
|
1020
1020
|
}, f);
|
|
@@ -1025,70 +1025,70 @@ class hn {
|
|
|
1025
1025
|
selector: yn(s),
|
|
1026
1026
|
pseudo: "",
|
|
1027
1027
|
entries: t[2]
|
|
1028
|
-
}), { parent: a, parentOrder: l } =
|
|
1028
|
+
}), { parent: a, parentOrder: l } = r;
|
|
1029
1029
|
a != null && l != null && this.parentOrders.set(a, l);
|
|
1030
1030
|
const c = {
|
|
1031
1031
|
selector: [
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1032
|
+
r.prefix,
|
|
1033
|
+
r.selector,
|
|
1034
|
+
r.pseudo
|
|
1035
1035
|
].join(""),
|
|
1036
|
-
entries:
|
|
1036
|
+
entries: r.entries,
|
|
1037
1037
|
parent: a,
|
|
1038
|
-
layer:
|
|
1039
|
-
sort:
|
|
1040
|
-
noMerge:
|
|
1038
|
+
layer: r.layer,
|
|
1039
|
+
sort: r.sort,
|
|
1040
|
+
noMerge: r.noMerge
|
|
1041
1041
|
};
|
|
1042
1042
|
for (const f of this.config.postprocess)
|
|
1043
1043
|
f(c);
|
|
1044
1044
|
return c;
|
|
1045
1045
|
}
|
|
1046
1046
|
constructCustomCSS(t, n, s) {
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
return
|
|
1050
|
-
const { selector:
|
|
1047
|
+
const o = B(n);
|
|
1048
|
+
if (U(o))
|
|
1049
|
+
return o;
|
|
1050
|
+
const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${Q(a)}}`;
|
|
1051
1051
|
return l ? `${l}{${c}}` : c;
|
|
1052
1052
|
}
|
|
1053
|
-
async parseUtil(t, n, s = !1,
|
|
1053
|
+
async parseUtil(t, n, s = !1, o) {
|
|
1054
1054
|
var i;
|
|
1055
|
-
const [
|
|
1055
|
+
const [r, a, l] = U(t) ? await this.matchVariants(t) : t;
|
|
1056
1056
|
this.config.details && (n.rules = n.rules ?? []);
|
|
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 = B(c[1]),
|
|
1061
|
-
return
|
|
1060
|
+
const u = c[0], d = B(c[1]), m = c[2];
|
|
1061
|
+
return U(d) ? [[u, d, m]] : [[u, r, d, m, l]];
|
|
1062
1062
|
}
|
|
1063
1063
|
n.variantHandlers = l;
|
|
1064
1064
|
const { rulesDynamic: f } = this.config;
|
|
1065
|
-
for (const [u, d,
|
|
1065
|
+
for (const [u, d, m, y] of f) {
|
|
1066
1066
|
if (y != null && y.internal && !s)
|
|
1067
1067
|
continue;
|
|
1068
|
-
let
|
|
1068
|
+
let h = a;
|
|
1069
1069
|
if (y != null && y.prefix) {
|
|
1070
|
-
const g =
|
|
1071
|
-
if (
|
|
1072
|
-
const S =
|
|
1070
|
+
const g = I(y.prefix);
|
|
1071
|
+
if (o) {
|
|
1072
|
+
const S = I(o);
|
|
1073
1073
|
if (!g.some((b) => S.includes(b)))
|
|
1074
1074
|
continue;
|
|
1075
1075
|
} else {
|
|
1076
1076
|
const S = g.find((b) => a.startsWith(b));
|
|
1077
1077
|
if (S == null)
|
|
1078
1078
|
continue;
|
|
1079
|
-
|
|
1079
|
+
h = a.slice(S.length);
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
|
-
const
|
|
1083
|
-
if (!
|
|
1082
|
+
const v = h.match(d);
|
|
1083
|
+
if (!v)
|
|
1084
1084
|
continue;
|
|
1085
|
-
const A = await
|
|
1085
|
+
const A = await m(v, n);
|
|
1086
1086
|
if (!A)
|
|
1087
1087
|
continue;
|
|
1088
|
-
this.config.details && n.rules.push([d,
|
|
1089
|
-
const x =
|
|
1088
|
+
this.config.details && n.rules.push([d, m, y]);
|
|
1089
|
+
const x = Nt(A).filter((g) => g.length);
|
|
1090
1090
|
if (x.length)
|
|
1091
|
-
return x.map((g) =>
|
|
1091
|
+
return x.map((g) => U(g) ? [u, g, y] : [u, r, g, y, l]);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
stringifyUtil(t, n) {
|
|
@@ -1096,65 +1096,65 @@ class hn {
|
|
|
1096
1096
|
return;
|
|
1097
1097
|
if (ue(t))
|
|
1098
1098
|
return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
|
|
1099
|
-
const { selector: s, entries:
|
|
1099
|
+
const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Q(o);
|
|
1100
1100
|
if (!f)
|
|
1101
1101
|
return;
|
|
1102
|
-
const { layer: i, sort: u, ...d } = t[3] ?? {},
|
|
1102
|
+
const { layer: i, sort: u, ...d } = t[3] ?? {}, m = {
|
|
1103
1103
|
...d,
|
|
1104
1104
|
layer: a ?? i,
|
|
1105
1105
|
sort: l ?? u
|
|
1106
1106
|
};
|
|
1107
|
-
return [t[0], s, f,
|
|
1107
|
+
return [t[0], s, f, r, m, this.config.details ? n : void 0, c];
|
|
1108
1108
|
}
|
|
1109
1109
|
async expandShortcut(t, n, s = 5) {
|
|
1110
1110
|
var l;
|
|
1111
1111
|
if (s === 0)
|
|
1112
1112
|
return;
|
|
1113
|
-
const
|
|
1113
|
+
const o = this.config.details ? (c) => {
|
|
1114
1114
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1115
1115
|
} : Bt;
|
|
1116
|
-
let
|
|
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 = I(c[2].prefix).find((d) => t.startsWith(d));
|
|
1121
1121
|
if (u == null)
|
|
1122
1122
|
continue;
|
|
1123
1123
|
f = t.slice(u.length);
|
|
1124
1124
|
}
|
|
1125
1125
|
if (Pt(c)) {
|
|
1126
1126
|
if (c[0] === f) {
|
|
1127
|
-
|
|
1127
|
+
r = r || c[2], a = c[1], o(c);
|
|
1128
1128
|
break;
|
|
1129
1129
|
}
|
|
1130
1130
|
} else {
|
|
1131
1131
|
const i = f.match(c[0]);
|
|
1132
1132
|
if (i && (a = c[1](i, n)), a) {
|
|
1133
|
-
|
|
1133
|
+
r = r || c[2], o(c);
|
|
1134
1134
|
break;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
if (
|
|
1139
|
-
const [c, f] =
|
|
1138
|
+
if (U(a) && (a = Zt(a.trim()).split(/\s+/g)), !a) {
|
|
1139
|
+
const [c, f] = U(t) ? await this.matchVariants(t) : t;
|
|
1140
1140
|
if (c !== f) {
|
|
1141
1141
|
const i = await this.expandShortcut(f, n, s - 1);
|
|
1142
|
-
i && (a = i[0].map((u) =>
|
|
1142
|
+
i && (a = i[0].map((u) => U(u) ? c.replace(f, u) : u));
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
if (a)
|
|
1146
1146
|
return [
|
|
1147
1147
|
(await Promise.all(a.map(async (c) => {
|
|
1148
1148
|
var f;
|
|
1149
|
-
return (
|
|
1149
|
+
return (U(c) ? (f = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : f[0] : void 0) || [c];
|
|
1150
1150
|
}))).flat(1).filter(Boolean),
|
|
1151
|
-
|
|
1151
|
+
r
|
|
1152
1152
|
];
|
|
1153
1153
|
}
|
|
1154
|
-
async stringifyShortcuts(t, n, s,
|
|
1154
|
+
async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
|
|
1155
1155
|
var i;
|
|
1156
|
-
const
|
|
1157
|
-
const d =
|
|
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}", B(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,22 +1162,22 @@ class hn {
|
|
|
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:
|
|
1166
|
-
|
|
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
|
-
return f.concat(
|
|
1169
|
-
(u, d) => u.map(([
|
|
1168
|
+
return f.concat(r.flatMap(
|
|
1169
|
+
(u, d) => u.map(([m, y], h, v) => {
|
|
1170
1170
|
const A = (g, S, b) => {
|
|
1171
|
-
const p = Math.max(...b.map((R) => R[1])),
|
|
1172
|
-
return (g ? [
|
|
1171
|
+
const p = Math.max(...b.map((R) => R[1])), w = b.map((R) => R[0]);
|
|
1172
|
+
return (g ? [w.flat(1)] : w).map((R) => {
|
|
1173
1173
|
const O = Q(R);
|
|
1174
1174
|
if (O)
|
|
1175
|
-
return [y,
|
|
1175
|
+
return [y, h, O, v, { ...o, noMerge: S, sort: p, layer: d }, n, void 0];
|
|
1176
1176
|
});
|
|
1177
1177
|
};
|
|
1178
1178
|
return [
|
|
1179
|
-
[
|
|
1180
|
-
[
|
|
1179
|
+
[m.filter(([, g]) => g).map(([g, , S]) => [g, S]), !0],
|
|
1180
|
+
[m.filter(([, g]) => !g).map(([g, , S]) => [g, S]), !1]
|
|
1181
1181
|
].map(([g, S]) => [
|
|
1182
1182
|
...A(!1, S, g.filter(([b]) => b.some((p) => p[0] === le))),
|
|
1183
1183
|
...A(!0, S, g.filter(([b]) => b.every((p) => p[0] !== le)))
|
|
@@ -1186,11 +1186,11 @@ class hn {
|
|
|
1186
1186
|
));
|
|
1187
1187
|
}
|
|
1188
1188
|
isBlocked(t) {
|
|
1189
|
-
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) :
|
|
1189
|
+
return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) : U(n) ? n === t : n.test(t));
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return new
|
|
1192
|
+
function hn(e, t) {
|
|
1193
|
+
return new mn(e, t);
|
|
1194
1194
|
}
|
|
1195
1195
|
const Me = /\s\$\$\s+/g;
|
|
1196
1196
|
function _n(e) {
|
|
@@ -1199,15 +1199,15 @@ function _n(e) {
|
|
|
1199
1199
|
function gn(e, t) {
|
|
1200
1200
|
return _n(e) ? e.replace(Me, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
|
|
1201
1201
|
}
|
|
1202
|
-
const
|
|
1202
|
+
const me = /^\[(.+?)(~?=)"(.*)"\]$/;
|
|
1203
1203
|
function yn(e) {
|
|
1204
|
-
return
|
|
1204
|
+
return me.test(e) ? e.replace(me, (t, n, s, o) => `[${X(n)}${s}"${X(o)}"]`) : `.${X(e)}`;
|
|
1205
1205
|
}
|
|
1206
1206
|
function bn(e, t) {
|
|
1207
1207
|
return t(e);
|
|
1208
1208
|
}
|
|
1209
|
-
var
|
|
1210
|
-
const
|
|
1209
|
+
var he = { npm_package_dependencies__vueuse_core: "^10.9.0", TERM_PROGRAM: "vscode", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/Users/arlo/Library/Application Support/fnm/node-versions/v20.11.0/installation/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", TURBO_INVOCATION_DIR: "/Users/arlo/g/devtools-next", npm_package_devDependencies_vite: "^5.2.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:2E0B5736-117B-4988-B3C1-797FF9A069EE", 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.iiMoEa4udc/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/55361_1711600338060/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/80019_1711455399433/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: "9CD3969C-9E80-46DA-8F0E-F29DBC07DB6B", 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.2.6_@types+node@20.11.30_sass@1.72.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.6_@types+node@20.11.30_sass@1.72.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.2.6_@types+node@20.11.30_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.13.0/node_modules/turbo/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.0/node_modules/turbo/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/turbo@1.13.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/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/55361_1711600338060", TURBO_HASH: "2b8fe82c55078739", 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.195", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.25", 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:2E0B5736-117B-4988-B3C1-797FF9A069EE", 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.30", 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", SECURITYSESSIONID: "186b8", 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
|
+
const vn = Object.freeze(
|
|
1211
1211
|
{
|
|
1212
1212
|
left: 0,
|
|
1213
1213
|
top: 0,
|
|
@@ -1218,17 +1218,17 @@ const wn = Object.freeze(
|
|
|
1218
1218
|
rotate: 0,
|
|
1219
1219
|
vFlip: !1,
|
|
1220
1220
|
hFlip: !1
|
|
1221
|
-
}),
|
|
1222
|
-
...
|
|
1221
|
+
}), Ue = Object.freeze({
|
|
1222
|
+
...vn,
|
|
1223
1223
|
...K
|
|
1224
|
-
}),
|
|
1225
|
-
...
|
|
1224
|
+
}), wn = Object.freeze({
|
|
1225
|
+
...Ue,
|
|
1226
1226
|
body: "",
|
|
1227
1227
|
hidden: !1
|
|
1228
1228
|
}), Sn = Object.freeze({
|
|
1229
1229
|
width: null,
|
|
1230
1230
|
height: null
|
|
1231
|
-
}),
|
|
1231
|
+
}), Ie = Object.freeze({
|
|
1232
1232
|
// Dimensions
|
|
1233
1233
|
...Sn,
|
|
1234
1234
|
// Transformations
|
|
@@ -1242,34 +1242,34 @@ function En(e, t) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
function _e(e, t) {
|
|
1244
1244
|
const n = En(e, t);
|
|
1245
|
-
for (const s in
|
|
1245
|
+
for (const s in wn)
|
|
1246
1246
|
s in K ? s in e && !(s in n) && (n[s] = K[s]) : s in t ? n[s] = t[s] : s in e && (n[s] = e[s]);
|
|
1247
1247
|
return n;
|
|
1248
1248
|
}
|
|
1249
1249
|
function xn(e, t) {
|
|
1250
|
-
const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null),
|
|
1251
|
-
function
|
|
1250
|
+
const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
1251
|
+
function r(a) {
|
|
1252
1252
|
if (n[a])
|
|
1253
|
-
return
|
|
1254
|
-
if (!(a in
|
|
1255
|
-
|
|
1256
|
-
const l = s[a] && s[a].parent, c = l &&
|
|
1257
|
-
c && (
|
|
1253
|
+
return o[a] = [];
|
|
1254
|
+
if (!(a in o)) {
|
|
1255
|
+
o[a] = null;
|
|
1256
|
+
const l = s[a] && s[a].parent, c = l && r(l);
|
|
1257
|
+
c && (o[a] = [l].concat(c));
|
|
1258
1258
|
}
|
|
1259
|
-
return
|
|
1259
|
+
return o[a];
|
|
1260
1260
|
}
|
|
1261
|
-
return (t || Object.keys(n).concat(Object.keys(s))).forEach(
|
|
1261
|
+
return (t || Object.keys(n).concat(Object.keys(s))).forEach(r), o;
|
|
1262
1262
|
}
|
|
1263
1263
|
function ge(e, t, n) {
|
|
1264
|
-
const s = e.icons,
|
|
1265
|
-
let
|
|
1264
|
+
const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
1265
|
+
let r = {};
|
|
1266
1266
|
function a(l) {
|
|
1267
|
-
|
|
1268
|
-
s[l] ||
|
|
1269
|
-
|
|
1267
|
+
r = _e(
|
|
1268
|
+
s[l] || o[l],
|
|
1269
|
+
r
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
1272
|
-
return a(t), n.forEach(a), _e(e,
|
|
1272
|
+
return a(t), n.forEach(a), _e(e, r);
|
|
1273
1273
|
}
|
|
1274
1274
|
function Cn(e, t) {
|
|
1275
1275
|
if (e.icons[t])
|
|
@@ -1288,16 +1288,16 @@ function ye(e, t, n) {
|
|
|
1288
1288
|
const s = e.split(An);
|
|
1289
1289
|
if (s === null || !s.length)
|
|
1290
1290
|
return e;
|
|
1291
|
-
const
|
|
1292
|
-
let
|
|
1291
|
+
const o = [];
|
|
1292
|
+
let r = s.shift(), a = On.test(r);
|
|
1293
1293
|
for (; ; ) {
|
|
1294
1294
|
if (a) {
|
|
1295
|
-
const l = parseFloat(
|
|
1296
|
-
isNaN(l) ?
|
|
1295
|
+
const l = parseFloat(r);
|
|
1296
|
+
isNaN(l) ? o.push(r) : o.push(Math.ceil(l * t * n) / n);
|
|
1297
1297
|
} else
|
|
1298
|
-
|
|
1299
|
-
if (
|
|
1300
|
-
return
|
|
1298
|
+
o.push(r);
|
|
1299
|
+
if (r = s.shift(), r === void 0)
|
|
1300
|
+
return o.join("");
|
|
1301
1301
|
a = !a;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
@@ -1305,13 +1305,13 @@ function Rn(e, t = "defs") {
|
|
|
1305
1305
|
let n = "";
|
|
1306
1306
|
const s = e.indexOf("<" + t);
|
|
1307
1307
|
for (; s >= 0; ) {
|
|
1308
|
-
const
|
|
1309
|
-
if (
|
|
1308
|
+
const o = e.indexOf(">", s), r = e.indexOf("</" + t);
|
|
1309
|
+
if (o === -1 || r === -1)
|
|
1310
1310
|
break;
|
|
1311
|
-
const a = e.indexOf(">",
|
|
1311
|
+
const a = e.indexOf(">", r);
|
|
1312
1312
|
if (a === -1)
|
|
1313
1313
|
break;
|
|
1314
|
-
n += e.slice(
|
|
1314
|
+
n += e.slice(o + 1, r).trim(), e = e.slice(0, s).trim() + e.slice(a + 1);
|
|
1315
1315
|
}
|
|
1316
1316
|
return {
|
|
1317
1317
|
defs: n,
|
|
@@ -1325,65 +1325,65 @@ function $n(e, t, n) {
|
|
|
1325
1325
|
const s = Rn(e);
|
|
1326
1326
|
return kn(s.defs, t + s.content + n);
|
|
1327
1327
|
}
|
|
1328
|
-
const
|
|
1328
|
+
const re = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1329
1329
|
function Tn(e, t) {
|
|
1330
1330
|
const n = {
|
|
1331
|
-
...
|
|
1331
|
+
...Ue,
|
|
1332
1332
|
...e
|
|
1333
1333
|
}, s = {
|
|
1334
|
-
...
|
|
1334
|
+
...Ie,
|
|
1335
1335
|
...t
|
|
1336
|
-
},
|
|
1336
|
+
}, o = {
|
|
1337
1337
|
left: n.left,
|
|
1338
1338
|
top: n.top,
|
|
1339
1339
|
width: n.width,
|
|
1340
1340
|
height: n.height
|
|
1341
1341
|
};
|
|
1342
|
-
let
|
|
1343
|
-
[n, s].forEach((
|
|
1344
|
-
const
|
|
1345
|
-
let g =
|
|
1346
|
-
A ? x ? g += 2 : (
|
|
1347
|
-
"translate(" + (
|
|
1348
|
-
),
|
|
1349
|
-
"translate(" + (0 -
|
|
1350
|
-
),
|
|
1342
|
+
let r = n.body;
|
|
1343
|
+
[n, s].forEach((h) => {
|
|
1344
|
+
const v = [], A = h.hFlip, x = h.vFlip;
|
|
1345
|
+
let g = h.rotate;
|
|
1346
|
+
A ? x ? g += 2 : (v.push(
|
|
1347
|
+
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
1348
|
+
), v.push("scale(-1 1)"), o.top = o.left = 0) : x && (v.push(
|
|
1349
|
+
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
1350
|
+
), v.push("scale(1 -1)"), o.top = o.left = 0);
|
|
1351
1351
|
let S;
|
|
1352
1352
|
switch (g < 0 && (g -= Math.floor(g / 4) * 4), g = g % 4, g) {
|
|
1353
1353
|
case 1:
|
|
1354
|
-
S =
|
|
1354
|
+
S = o.height / 2 + o.top, v.unshift(
|
|
1355
1355
|
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
1356
1356
|
);
|
|
1357
1357
|
break;
|
|
1358
1358
|
case 2:
|
|
1359
|
-
|
|
1360
|
-
"rotate(180 " + (
|
|
1359
|
+
v.unshift(
|
|
1360
|
+
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
1361
1361
|
);
|
|
1362
1362
|
break;
|
|
1363
1363
|
case 3:
|
|
1364
|
-
S =
|
|
1364
|
+
S = o.width / 2 + o.left, v.unshift(
|
|
1365
1365
|
"rotate(-90 " + S.toString() + " " + S.toString() + ")"
|
|
1366
1366
|
);
|
|
1367
1367
|
break;
|
|
1368
1368
|
}
|
|
1369
|
-
g % 2 === 1 && (
|
|
1370
|
-
|
|
1371
|
-
'<g transform="' +
|
|
1369
|
+
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)), v.length && (r = $n(
|
|
1370
|
+
r,
|
|
1371
|
+
'<g transform="' + v.join(" ") + '">',
|
|
1372
1372
|
"</g>"
|
|
1373
1373
|
));
|
|
1374
1374
|
});
|
|
1375
|
-
const a = s.width, l = s.height, c =
|
|
1375
|
+
const a = s.width, l = s.height, c = o.width, f = o.height;
|
|
1376
1376
|
let i, u;
|
|
1377
1377
|
a === null ? (u = l === null ? "1em" : l === "auto" ? f : l, i = ye(u, c / f)) : (i = a === "auto" ? c : a, u = l === null ? ye(i, f / c) : l === "auto" ? f : l);
|
|
1378
|
-
const d = {},
|
|
1379
|
-
|
|
1378
|
+
const d = {}, m = (h, v) => {
|
|
1379
|
+
re(v) || (d[h] = v.toString());
|
|
1380
1380
|
};
|
|
1381
|
-
|
|
1382
|
-
const y = [
|
|
1381
|
+
m("width", i), m("height", u);
|
|
1382
|
+
const y = [o.left, o.top, c, f];
|
|
1383
1383
|
return d.viewBox = y.join(" "), {
|
|
1384
1384
|
attributes: d,
|
|
1385
1385
|
viewBox: y,
|
|
1386
|
-
body:
|
|
1386
|
+
body: r
|
|
1387
1387
|
};
|
|
1388
1388
|
}
|
|
1389
1389
|
function Ln(e) {
|
|
@@ -1399,47 +1399,47 @@ function Mn(e) {
|
|
|
1399
1399
|
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1400
1400
|
)), Ln(t);
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
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
|
|
1407
|
-
const s = e.slice(0, e.indexOf(">")),
|
|
1408
|
-
const l = a.exec(s), c = l != null, f = t[
|
|
1409
|
-
return !f && !
|
|
1405
|
+
const In = /\swidth\s*=\s*["']([\w.]+)["']/, Nn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1406
|
+
function Dn(e, t, n) {
|
|
1407
|
+
const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
|
|
1408
|
+
const l = a.exec(s), c = l != null, f = t[r];
|
|
1409
|
+
return !f && !re(f) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
|
|
1410
1410
|
};
|
|
1411
|
-
return [
|
|
1412
|
-
}
|
|
1413
|
-
async function
|
|
1414
|
-
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (
|
|
1415
|
-
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1418
|
-
}),
|
|
1419
|
-
const [u, d] =
|
|
1411
|
+
return [o("width", In), o("height", Nn)];
|
|
1412
|
+
}
|
|
1413
|
+
async function Ne(e, t, n, s, o, r) {
|
|
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
|
+
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((h) => {
|
|
1416
|
+
const v = c[h];
|
|
1417
|
+
v != null && (i[h] = v);
|
|
1418
|
+
}), r == null || r(i);
|
|
1419
|
+
const [u, d] = Dn(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
|
-
const
|
|
1422
|
-
(
|
|
1423
|
-
).filter((
|
|
1424
|
-
if (
|
|
1425
|
-
const { defaultStyle:
|
|
1426
|
-
|
|
1421
|
+
const m = Object.keys(i).map(
|
|
1422
|
+
(h) => h === "width" && u || h === "height" && d ? null : `${h}="${i[h]}"`
|
|
1423
|
+
).filter((h) => h != null);
|
|
1424
|
+
if (m.length && (e = e.replace(Z, `<svg ${m.join(" ")} `)), s) {
|
|
1425
|
+
const { defaultStyle: h, defaultClass: v } = s;
|
|
1426
|
+
v && !e.includes("class=") && (e = e.replace(Z, `<svg class="${v}" `)), h && !e.includes("style=") && (e = e.replace(Z, `<svg style="${h}" `));
|
|
1427
1427
|
}
|
|
1428
1428
|
const y = s == null ? void 0 : s.usedProps;
|
|
1429
|
-
return y && (Object.keys(c).forEach((
|
|
1430
|
-
const
|
|
1431
|
-
|
|
1429
|
+
return y && (Object.keys(c).forEach((h) => {
|
|
1430
|
+
const v = i[h];
|
|
1431
|
+
v != null && (y[h] = v);
|
|
1432
1432
|
}), typeof i.width < "u" && i.width !== null && (y.width = i.width), typeof i.height < "u" && i.height !== null && (y.height = i.height)), e;
|
|
1433
1433
|
}
|
|
1434
1434
|
async function be(e, t, n, s) {
|
|
1435
|
-
var
|
|
1436
|
-
let
|
|
1435
|
+
var r;
|
|
1436
|
+
let o;
|
|
1437
1437
|
try {
|
|
1438
1438
|
if (typeof e == "function")
|
|
1439
|
-
|
|
1439
|
+
o = await e(n);
|
|
1440
1440
|
else {
|
|
1441
1441
|
const a = e[n];
|
|
1442
|
-
|
|
1442
|
+
o = typeof a == "function" ? await a() : a;
|
|
1443
1443
|
}
|
|
1444
1444
|
} catch (a) {
|
|
1445
1445
|
console.warn(
|
|
@@ -1448,49 +1448,49 @@ async function be(e, t, n, s) {
|
|
|
1448
1448
|
);
|
|
1449
1449
|
return;
|
|
1450
1450
|
}
|
|
1451
|
-
if (
|
|
1452
|
-
const a =
|
|
1453
|
-
a > 0 && (
|
|
1451
|
+
if (o) {
|
|
1452
|
+
const a = o.indexOf("<svg");
|
|
1453
|
+
a > 0 && (o = o.slice(a));
|
|
1454
1454
|
const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1455
|
-
return
|
|
1456
|
-
((
|
|
1455
|
+
return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Ne(
|
|
1456
|
+
((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? Un(o) : o,
|
|
1457
1457
|
t,
|
|
1458
1458
|
n,
|
|
1459
1459
|
s,
|
|
1460
1460
|
void 0
|
|
1461
1461
|
) : (console.warn(
|
|
1462
1462
|
`Custom icon "${n}" in "${t}" is not a valid SVG`
|
|
1463
|
-
),
|
|
1463
|
+
), o);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
async function
|
|
1467
|
-
let
|
|
1468
|
-
const { customize:
|
|
1466
|
+
async function De(e, t, n, s) {
|
|
1467
|
+
let o;
|
|
1468
|
+
const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1469
1469
|
for (const a of n)
|
|
1470
|
-
if (
|
|
1471
|
-
let l = { ...
|
|
1472
|
-
typeof
|
|
1470
|
+
if (o = Cn(e, a), o) {
|
|
1471
|
+
let l = { ...Ie };
|
|
1472
|
+
typeof r == "function" && (l = r(l));
|
|
1473
1473
|
const {
|
|
1474
1474
|
attributes: { width: c, height: f, ...i },
|
|
1475
1475
|
body: u
|
|
1476
|
-
} = Tn(
|
|
1477
|
-
return await
|
|
1476
|
+
} = Tn(o, l), d = s == null ? void 0 : s.scale;
|
|
1477
|
+
return await Ne(
|
|
1478
1478
|
// DON'T remove space on <svg >
|
|
1479
1479
|
`<svg >${u}</svg>`,
|
|
1480
1480
|
t,
|
|
1481
1481
|
a,
|
|
1482
1482
|
s,
|
|
1483
1483
|
() => ({ ...i }),
|
|
1484
|
-
(
|
|
1485
|
-
const y = (
|
|
1486
|
-
const A = h
|
|
1484
|
+
(m) => {
|
|
1485
|
+
const y = (h, v) => {
|
|
1486
|
+
const A = m[h];
|
|
1487
1487
|
let x;
|
|
1488
|
-
if (!
|
|
1488
|
+
if (!re(A)) {
|
|
1489
1489
|
if (A)
|
|
1490
1490
|
return;
|
|
1491
|
-
typeof d == "number" ? d && (x = `${d}em`) : x =
|
|
1491
|
+
typeof d == "number" ? d && (x = `${d}em`) : x = v;
|
|
1492
1492
|
}
|
|
1493
|
-
x ? h
|
|
1493
|
+
x ? m[h] = x : delete m[h];
|
|
1494
1494
|
};
|
|
1495
1495
|
y("width", c), y("height", f);
|
|
1496
1496
|
}
|
|
@@ -1498,13 +1498,13 @@ async function Ue(e, t, n, s) {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
const je = async (e, t, n) => {
|
|
1501
|
-
var
|
|
1502
|
-
const s = (
|
|
1501
|
+
var o;
|
|
1502
|
+
const s = (o = n == null ? void 0 : n.customCollections) == null ? void 0 : o[e];
|
|
1503
1503
|
if (s)
|
|
1504
1504
|
if (typeof s == "function") {
|
|
1505
|
-
let
|
|
1505
|
+
let r;
|
|
1506
1506
|
try {
|
|
1507
|
-
|
|
1507
|
+
r = await s(t);
|
|
1508
1508
|
} catch (a) {
|
|
1509
1509
|
console.warn(
|
|
1510
1510
|
`Failed to load custom icon "${t}" in "${e}":`,
|
|
@@ -1512,22 +1512,22 @@ const je = async (e, t, n) => {
|
|
|
1512
1512
|
);
|
|
1513
1513
|
return;
|
|
1514
1514
|
}
|
|
1515
|
-
if (
|
|
1516
|
-
if (typeof
|
|
1515
|
+
if (r) {
|
|
1516
|
+
if (typeof r == "string")
|
|
1517
1517
|
return await be(
|
|
1518
|
-
() =>
|
|
1518
|
+
() => r,
|
|
1519
1519
|
e,
|
|
1520
1520
|
t,
|
|
1521
1521
|
n
|
|
1522
1522
|
);
|
|
1523
|
-
if ("icons" in
|
|
1523
|
+
if ("icons" in r) {
|
|
1524
1524
|
const a = [
|
|
1525
1525
|
t,
|
|
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
|
|
1530
|
-
|
|
1529
|
+
return await De(
|
|
1530
|
+
r,
|
|
1531
1531
|
e,
|
|
1532
1532
|
a,
|
|
1533
1533
|
n
|
|
@@ -1719,8 +1719,8 @@ function Bn(e) {
|
|
|
1719
1719
|
const {
|
|
1720
1720
|
scale: n = 1,
|
|
1721
1721
|
mode: s = "auto",
|
|
1722
|
-
prefix:
|
|
1723
|
-
warn:
|
|
1722
|
+
prefix: o = "i-",
|
|
1723
|
+
warn: r = !1,
|
|
1724
1724
|
collections: a,
|
|
1725
1725
|
extraProperties: l = {},
|
|
1726
1726
|
customizations: c = {},
|
|
@@ -1728,7 +1728,7 @@ function Bn(e) {
|
|
|
1728
1728
|
collectionsNodeResolvePath: i,
|
|
1729
1729
|
layer: u = "icons",
|
|
1730
1730
|
unit: d
|
|
1731
|
-
} = t,
|
|
1731
|
+
} = t, m = Gn(), y = {
|
|
1732
1732
|
addXmlNs: !0,
|
|
1733
1733
|
scale: n,
|
|
1734
1734
|
customCollections: a,
|
|
@@ -1740,13 +1740,13 @@ function Bn(e) {
|
|
|
1740
1740
|
...c,
|
|
1741
1741
|
additionalProps: { ...l },
|
|
1742
1742
|
trimCustomSvg: !0,
|
|
1743
|
-
async iconCustomizer(
|
|
1743
|
+
async iconCustomizer(v, A, x) {
|
|
1744
1744
|
var g;
|
|
1745
|
-
await ((g = c.iconCustomizer) == null ? void 0 : g.call(c,
|
|
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
|
};
|
|
1749
|
-
let
|
|
1749
|
+
let h;
|
|
1750
1750
|
return {
|
|
1751
1751
|
name: "@unocss/preset-icons",
|
|
1752
1752
|
enforce: "pre",
|
|
@@ -1754,24 +1754,24 @@ function Bn(e) {
|
|
|
1754
1754
|
layers: { icons: -30 },
|
|
1755
1755
|
rules: [[
|
|
1756
1756
|
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1757
|
-
async ([
|
|
1757
|
+
async ([v, A, x = s]) => {
|
|
1758
1758
|
let g = "", S = "", b;
|
|
1759
|
-
|
|
1759
|
+
h = h || await e(t);
|
|
1760
1760
|
const p = {};
|
|
1761
1761
|
if (A.includes(":"))
|
|
1762
|
-
[g, S] = A.split(":"), b = await
|
|
1762
|
+
[g, S] = A.split(":"), b = await h(g, S, { ...y, usedProps: p });
|
|
1763
1763
|
else {
|
|
1764
1764
|
const R = A.split(/-/g);
|
|
1765
|
-
for (let O = Vn; O >= 1 && (g = R.slice(0, O).join("-"), S = R.slice(O).join("-"), b = await
|
|
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
|
}
|
|
1768
1768
|
if (!b) {
|
|
1769
|
-
|
|
1769
|
+
r && !m.isESLint && $e(`failed to load icon "${v}"`);
|
|
1770
1770
|
return;
|
|
1771
1771
|
}
|
|
1772
|
-
const
|
|
1772
|
+
const w = `url("data:image/svg+xml;utf8,${Mn(b)}")`;
|
|
1773
1773
|
return x === "auto" && (x = b.includes("currentColor") ? "mask" : "bg"), x === "mask" ? {
|
|
1774
|
-
"--un-icon":
|
|
1774
|
+
"--un-icon": w,
|
|
1775
1775
|
"-webkit-mask": "var(--un-icon) no-repeat",
|
|
1776
1776
|
mask: "var(--un-icon) no-repeat",
|
|
1777
1777
|
"-webkit-mask-size": "100% 100%",
|
|
@@ -1781,41 +1781,41 @@ function Bn(e) {
|
|
|
1781
1781
|
color: "inherit",
|
|
1782
1782
|
...p
|
|
1783
1783
|
} : {
|
|
1784
|
-
background: `${
|
|
1784
|
+
background: `${w} no-repeat`,
|
|
1785
1785
|
"background-size": "100% 100%",
|
|
1786
1786
|
"background-color": "transparent",
|
|
1787
1787
|
...p
|
|
1788
1788
|
};
|
|
1789
1789
|
},
|
|
1790
|
-
{ layer: u, prefix:
|
|
1790
|
+
{ layer: u, prefix: o }
|
|
1791
1791
|
]]
|
|
1792
1792
|
};
|
|
1793
1793
|
};
|
|
1794
1794
|
}
|
|
1795
1795
|
function Pe(e, t) {
|
|
1796
1796
|
const n = /* @__PURE__ */ new Map();
|
|
1797
|
-
function s(
|
|
1798
|
-
if (Fn.includes(
|
|
1799
|
-
return n.has(
|
|
1797
|
+
function s(o) {
|
|
1798
|
+
if (Fn.includes(o))
|
|
1799
|
+
return n.has(o) || n.set(o, e(`${t}@iconify-json/${o}/icons.json`)), n.get(o);
|
|
1800
1800
|
}
|
|
1801
|
-
return async (
|
|
1802
|
-
let l = await je(
|
|
1801
|
+
return async (o, r, a) => {
|
|
1802
|
+
let l = await je(o, r, a);
|
|
1803
1803
|
if (l)
|
|
1804
1804
|
return l;
|
|
1805
|
-
const c = await s(
|
|
1805
|
+
const c = await s(o);
|
|
1806
1806
|
if (c) {
|
|
1807
1807
|
const f = [
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1808
|
+
r,
|
|
1809
|
+
r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1810
|
+
r.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1811
1811
|
];
|
|
1812
|
-
l = await
|
|
1812
|
+
l = await De(c, o, f, a);
|
|
1813
1813
|
}
|
|
1814
1814
|
return l;
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
1817
|
function Gn() {
|
|
1818
|
-
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!
|
|
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,
|
|
1821
1821
|
isVSCode: t,
|
|
@@ -1832,32 +1832,32 @@ const zn = Bn(async (e) => {
|
|
|
1832
1832
|
function qn(e) {
|
|
1833
1833
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function ve(e) {
|
|
1836
1836
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function we(e) {
|
|
1839
1839
|
return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
|
|
1840
1840
|
}
|
|
1841
1841
|
var Se = ["Webkit", "Moz", "ms"];
|
|
1842
1842
|
function Wn(e) {
|
|
1843
1843
|
const t = {};
|
|
1844
1844
|
function n(s) {
|
|
1845
|
-
const
|
|
1846
|
-
if (
|
|
1847
|
-
return
|
|
1848
|
-
let
|
|
1849
|
-
if (
|
|
1850
|
-
return t[s] =
|
|
1851
|
-
|
|
1845
|
+
const o = t[s];
|
|
1846
|
+
if (o)
|
|
1847
|
+
return o;
|
|
1848
|
+
let r = qn(s);
|
|
1849
|
+
if (r !== "filter" && r in e)
|
|
1850
|
+
return t[s] = we(r);
|
|
1851
|
+
r = ve(r);
|
|
1852
1852
|
for (let a = 0; a < Se.length; a++) {
|
|
1853
|
-
const l = `${Se[a]}${
|
|
1853
|
+
const l = `${Se[a]}${r}`;
|
|
1854
1854
|
if (l in e)
|
|
1855
|
-
return t[s] = ve(
|
|
1855
|
+
return t[s] = we(ve(l));
|
|
1856
1856
|
}
|
|
1857
1857
|
return s;
|
|
1858
1858
|
}
|
|
1859
|
-
return ({ entries: s }) => s.forEach((
|
|
1860
|
-
|
|
1859
|
+
return ({ entries: s }) => s.forEach((o) => {
|
|
1860
|
+
o[0].startsWith("--") || (o[0] = n(o[0]));
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
1863
|
function Kn(e) {
|
|
@@ -1869,14 +1869,14 @@ function Jn(e = {}) {
|
|
|
1869
1869
|
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
1870
1870
|
return;
|
|
1871
1871
|
}
|
|
1872
|
-
const t = window, n = window.document, s = () => n.documentElement,
|
|
1873
|
-
|
|
1874
|
-
const c =
|
|
1875
|
-
let d = !0,
|
|
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 = I(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = r.configResolved) == null || P.call(r, o, a);
|
|
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
|
+
let d = !0, m = /* @__PURE__ */ new Set(), y, h, v = [];
|
|
1876
1876
|
const A = () => new Promise((_) => {
|
|
1877
|
-
|
|
1878
|
-
const E =
|
|
1879
|
-
|
|
1877
|
+
v.push(_), h != null && clearTimeout(h), h = setTimeout(() => S().then(() => {
|
|
1878
|
+
const E = v;
|
|
1879
|
+
v = [], E.forEach((C) => C());
|
|
1880
1880
|
}), 0);
|
|
1881
1881
|
});
|
|
1882
1882
|
function x(_) {
|
|
@@ -1899,22 +1899,22 @@ function Jn(e = {}) {
|
|
|
1899
1899
|
return C;
|
|
1900
1900
|
}
|
|
1901
1901
|
async function S() {
|
|
1902
|
-
const _ = await c.generate(
|
|
1903
|
-
return _.layers.reduce((E, C) => (g(C, E).innerHTML = _.getLayer(C) ?? "", C), void 0),
|
|
1902
|
+
const _ = await c.generate(m);
|
|
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
|
|
1907
1907
|
};
|
|
1908
1908
|
}
|
|
1909
1909
|
async function b(_) {
|
|
1910
|
-
const E =
|
|
1911
|
-
await c.applyExtractors(_, void 0,
|
|
1910
|
+
const E = m.size;
|
|
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;
|
|
1915
1915
|
E && (await b(`${E} ${Kn(E)}`), x(s()), x(_));
|
|
1916
1916
|
}
|
|
1917
|
-
const
|
|
1917
|
+
const w = new MutationObserver((_) => {
|
|
1918
1918
|
d || _.forEach(async (E) => {
|
|
1919
1919
|
if (E.target.nodeType !== 1)
|
|
1920
1920
|
return;
|
|
@@ -1945,37 +1945,37 @@ function Jn(e = {}) {
|
|
|
1945
1945
|
var E, C;
|
|
1946
1946
|
if (R)
|
|
1947
1947
|
return;
|
|
1948
|
-
const _ = (E =
|
|
1949
|
-
_ && (
|
|
1948
|
+
const _ = (E = r.observer) != null && E.target ? r.observer.target() : i();
|
|
1949
|
+
_ && (w.observe(_, {
|
|
1950
1950
|
childList: !0,
|
|
1951
1951
|
subtree: !0,
|
|
1952
1952
|
attributes: !0,
|
|
1953
|
-
attributeFilter: (C =
|
|
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 N() {
|
|
1960
1960
|
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", L) : L();
|
|
1961
1961
|
}
|
|
1962
1962
|
const j = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1963
1963
|
version: c.version,
|
|
1964
1964
|
uno: c,
|
|
1965
1965
|
async extract(_) {
|
|
1966
|
-
|
|
1966
|
+
U(_) || (_.forEach((E) => m.add(E)), _ = ""), await b(_);
|
|
1967
1967
|
},
|
|
1968
1968
|
extractAll: p,
|
|
1969
1969
|
inspect(_) {
|
|
1970
1970
|
y = _;
|
|
1971
1971
|
},
|
|
1972
1972
|
toggleObserver(_) {
|
|
1973
|
-
_ === void 0 ? d = !d : d = !!_, !R && !d &&
|
|
1973
|
+
_ === void 0 ? d = !d : d = !!_, !R && !d && N();
|
|
1974
1974
|
},
|
|
1975
1975
|
update: S,
|
|
1976
1976
|
presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
|
|
1977
1977
|
};
|
|
1978
|
-
((k =
|
|
1978
|
+
((k = r.ready) == null ? void 0 : k.call(r, j)) !== !1 && (d = !1, N());
|
|
1979
1979
|
}
|
|
1980
1980
|
function Xn(e = /* @__PURE__ */ new Set()) {
|
|
1981
1981
|
for (let t = 0; t < document.styleSheets.length; t++) {
|
|
@@ -1984,11 +1984,11 @@ function Xn(e = /* @__PURE__ */ new Set()) {
|
|
|
1984
1984
|
try {
|
|
1985
1985
|
if (s = n.cssRules || n.rules, !s)
|
|
1986
1986
|
continue;
|
|
1987
|
-
Array.from(s).flatMap((
|
|
1988
|
-
var
|
|
1989
|
-
return ((
|
|
1990
|
-
}).forEach((
|
|
1991
|
-
|
|
1987
|
+
Array.from(s).flatMap((o) => {
|
|
1988
|
+
var r;
|
|
1989
|
+
return ((r = o.selectorText) == null ? void 0 : r.split(/,/g)) || [];
|
|
1990
|
+
}).forEach((o) => {
|
|
1991
|
+
o && (o = o.trim(), o.startsWith(".") && (o = o.slice(1)), e.add(o));
|
|
1992
1992
|
});
|
|
1993
1993
|
} catch {
|
|
1994
1994
|
continue;
|