@vue/devtools-electron 7.0.22 → 7.0.23
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-ZUOE1mxz.js → index-BTSE61ew.js} +67 -67
- package/client/assets/index-DJqApVWe.css +1 -0
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +11282 -11327
- package/client/index.html +2 -2
- package/client/{unocss-runtime-czrFVoqY.js → unocss-runtime-CMFxqoTo.js} +337 -337
- package/dist/devtools.js +125 -125
- package/package.json +3 -3
- package/client/assets/index-THmizwtr.css +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
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*:/,
|
|
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*:/, Be = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
2
|
+
function Ge(e, t) {
|
|
3
3
|
if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
4
|
-
|
|
4
|
+
He(e);
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function He(e) {
|
|
10
10
|
console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e, t = {}) {
|
|
13
13
|
if (typeof e != "string")
|
|
14
14
|
return e;
|
|
15
15
|
const n = e.trim();
|
|
@@ -35,16 +35,16 @@ function Ge(e, t = {}) {
|
|
|
35
35
|
if (s === "-infinity")
|
|
36
36
|
return Number.NEGATIVE_INFINITY;
|
|
37
37
|
}
|
|
38
|
-
if (!
|
|
38
|
+
if (!Be.test(e)) {
|
|
39
39
|
if (t.strict)
|
|
40
40
|
throw new SyntaxError("[destr] Invalid JSON");
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
43
|
try {
|
|
44
|
-
if (Fe.test(e) ||
|
|
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, Ge);
|
|
48
48
|
}
|
|
49
49
|
return JSON.parse(e);
|
|
50
50
|
} catch (s) {
|
|
@@ -53,15 +53,15 @@ function Ge(e, t = {}) {
|
|
|
53
53
|
return e;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
const qe = /#/g, We = /&/g,
|
|
56
|
+
const qe = /#/g, We = /&/g, Ke = /\//g, Je = /=/g, se = /\+/g, Xe = /%5e/gi, Qe = /%60/gi, Ye = /%7c/gi, Ze = /%20/gi;
|
|
57
57
|
function et(e) {
|
|
58
|
-
return encodeURI("" + e).replace(
|
|
58
|
+
return encodeURI("" + e).replace(Ye, "|");
|
|
59
59
|
}
|
|
60
60
|
function ee(e) {
|
|
61
|
-
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(
|
|
61
|
+
return et(typeof e == "string" ? e : JSON.stringify(e)).replace(se, "%2B").replace(Ze, "+").replace(qe, "%23").replace(We, "%26").replace(Qe, "`").replace(Xe, "^").replace(Ke, "%2F");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return ee(e).replace(
|
|
63
|
+
function J(e) {
|
|
64
|
+
return ee(e).replace(Je, "%3D");
|
|
65
65
|
}
|
|
66
66
|
function Ee(e = "") {
|
|
67
67
|
try {
|
|
@@ -92,7 +92,7 @@ function st(e = "") {
|
|
|
92
92
|
return t;
|
|
93
93
|
}
|
|
94
94
|
function rt(e, t) {
|
|
95
|
-
return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${
|
|
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
97
|
function ot(e) {
|
|
98
98
|
return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => rt(t, e[t])).filter(Boolean).join("&");
|
|
@@ -128,16 +128,16 @@ function pt(e = "", t) {
|
|
|
128
128
|
return o + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
|
|
129
129
|
}
|
|
130
130
|
function dt(e, t) {
|
|
131
|
-
if (
|
|
131
|
+
if (mt(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 ht(e, t) {
|
|
137
137
|
const n = Ae(e), s = { ...st(n.search), ...t };
|
|
138
138
|
return n.search = ot(s), yt(n);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function mt(e) {
|
|
141
141
|
return !e || e === "/";
|
|
142
142
|
}
|
|
143
143
|
function _t(e) {
|
|
@@ -202,37 +202,37 @@ class bt extends Error {
|
|
|
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 wt(e) {
|
|
206
206
|
var c, f, i, u, d;
|
|
207
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) || "/", r = `[${n}] ${JSON.stringify(s)}`, o = e.response ? `${e.response.status} ${e.response.statusText}` : "<no response>", a = `${r}: ${o}${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 h of ["request", "options", "response"])
|
|
212
|
+
Object.defineProperty(l, h, {
|
|
213
213
|
get() {
|
|
214
|
-
return e[
|
|
214
|
+
return e[h];
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
|
-
for (const [
|
|
217
|
+
for (const [h, 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, h, {
|
|
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 vt = new Set(
|
|
232
232
|
Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
|
|
233
233
|
);
|
|
234
234
|
function ce(e = "GET") {
|
|
235
|
-
return
|
|
235
|
+
return vt.has(e.toUpperCase());
|
|
236
236
|
}
|
|
237
237
|
function St(e) {
|
|
238
238
|
if (e === void 0)
|
|
@@ -270,7 +270,7 @@ function At(e, t, n = globalThis.Headers) {
|
|
|
270
270
|
}
|
|
271
271
|
return s;
|
|
272
272
|
}
|
|
273
|
-
const
|
|
273
|
+
const Ot = /* @__PURE__ */ new Set([
|
|
274
274
|
408,
|
|
275
275
|
// Request Timeout
|
|
276
276
|
409,
|
|
@@ -288,7 +288,7 @@ const $t = /* @__PURE__ */ new Set([
|
|
|
288
288
|
504
|
|
289
289
|
// Gateway Timeout
|
|
290
290
|
]), Rt = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
291
|
-
function
|
|
291
|
+
function Oe(e = {}) {
|
|
292
292
|
const {
|
|
293
293
|
fetch: t = globalThis.fetch,
|
|
294
294
|
Headers: n = globalThis.Headers,
|
|
@@ -300,16 +300,16 @@ function $e(e = {}) {
|
|
|
300
300
|
let i;
|
|
301
301
|
typeof l.options.retry == "number" ? i = l.options.retry : i = ce(l.options.method) ? 0 : 1;
|
|
302
302
|
const u = l.response && l.response.status || 500;
|
|
303
|
-
if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(u) :
|
|
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((h) => setTimeout(h, d)), o(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 =
|
|
312
|
+
const f = wt(l);
|
|
313
313
|
throw Error.captureStackTrace && Error.captureStackTrace(f, o), f;
|
|
314
314
|
}
|
|
315
315
|
const o = async function(c, f = {}) {
|
|
@@ -320,7 +320,7 @@ function $e(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 = ht(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 $e(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 h = new s();
|
|
332
|
+
setTimeout(() => h.abort(), i.options.timeout), i.options.signal = h.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 (h) {
|
|
340
|
+
return i.error = h, i.options.onRequestError && await i.options.onRequestError(i), await r(i);
|
|
341
341
|
}
|
|
342
342
|
if (i.response.body && !Rt.has(i.response.status) && i.options.method !== "HEAD") {
|
|
343
|
-
const
|
|
344
|
-
switch (
|
|
343
|
+
const h = (i.options.parseResponse ? "json" : i.options.responseType) || Ct(i.response.headers.get("content-type") || "");
|
|
344
|
+
switch (h) {
|
|
345
345
|
case "json": {
|
|
346
|
-
const y = await i.response.text(),
|
|
347
|
-
i.response._data =
|
|
346
|
+
const y = await i.response.text(), m = i.options.parseResponse || ze;
|
|
347
|
+
i.response._data = m(y);
|
|
348
348
|
break;
|
|
349
349
|
}
|
|
350
350
|
case "stream": {
|
|
@@ -352,14 +352,14 @@ function $e(e = {}) {
|
|
|
352
352
|
break;
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
|
-
i.response._data = await i.response[
|
|
355
|
+
i.response._data = await i.response[h]();
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
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 r(i)) : i.response;
|
|
359
359
|
}, a = async function(c, f) {
|
|
360
360
|
return (await o(c, f))._data;
|
|
361
361
|
};
|
|
362
|
-
return a.raw = o, a.native = (...l) => t(...l), a.create = (l = {}) =>
|
|
362
|
+
return a.raw = o, a.native = (...l) => t(...l), a.create = (l = {}) => Oe({
|
|
363
363
|
...e,
|
|
364
364
|
defaults: {
|
|
365
365
|
...e.defaults,
|
|
@@ -377,8 +377,8 @@ const re = function() {
|
|
|
377
377
|
if (typeof global < "u")
|
|
378
378
|
return global;
|
|
379
379
|
throw new Error("unable to locate global object");
|
|
380
|
-
}(),
|
|
381
|
-
function
|
|
380
|
+
}(), kt = re.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), $t = re.Headers, Tt = re.AbortController, Lt = Oe({ fetch: kt, Headers: $t, AbortController: Tt }), Mt = Lt;
|
|
381
|
+
function It(e) {
|
|
382
382
|
const t = e.length;
|
|
383
383
|
let n = -1, s, r = "";
|
|
384
384
|
const o = e.charCodeAt(0);
|
|
@@ -419,7 +419,7 @@ function Ut(e) {
|
|
|
419
419
|
}
|
|
420
420
|
return r;
|
|
421
421
|
}
|
|
422
|
-
const
|
|
422
|
+
const X = It;
|
|
423
423
|
function N(e = []) {
|
|
424
424
|
return Array.isArray(e) ? e : [e];
|
|
425
425
|
}
|
|
@@ -429,16 +429,16 @@ function W(e) {
|
|
|
429
429
|
function Nt(e, t) {
|
|
430
430
|
return e.reduce((n, s) => (n.findIndex((o) => t(s, o)) === -1 && n.push(s), n), []);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function I(e) {
|
|
433
433
|
return typeof e == "string";
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
return
|
|
435
|
+
function B(e) {
|
|
436
|
+
return I(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 Dt(e) {
|
|
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 Ut(e) {
|
|
442
442
|
return e.filter(([t, n], s) => {
|
|
443
443
|
if (t.startsWith("$$"))
|
|
444
444
|
return !1;
|
|
@@ -448,10 +448,10 @@ function It(e) {
|
|
|
448
448
|
return !0;
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return e == null ? "" :
|
|
451
|
+
function Q(e) {
|
|
452
|
+
return e == null ? "" : Ut(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function G(e) {
|
|
455
455
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
456
456
|
}
|
|
457
457
|
function Re(e, t, n = !1) {
|
|
@@ -459,35 +459,35 @@ function Re(e, t, n = !1) {
|
|
|
459
459
|
if (Array.isArray(r))
|
|
460
460
|
return n && Array.isArray(r) ? [...s, ...r] : [...r];
|
|
461
461
|
const o = { ...s };
|
|
462
|
-
return
|
|
463
|
-
|
|
462
|
+
return G(s) && G(r) && Object.keys(r).forEach((a) => {
|
|
463
|
+
G(s[a]) && G(r[a]) || Array.isArray(s[a]) && Array.isArray(r[a]) ? o[a] = Re(s[a], r[a], n) : Object.assign(o, { [a]: r[a] });
|
|
464
464
|
}), o;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function z(e) {
|
|
467
467
|
let t, n, s;
|
|
468
468
|
if (Array.isArray(e)) {
|
|
469
469
|
for (n = Array(t = e.length); t--; )
|
|
470
|
-
n[t] = (s = e[t]) && typeof s == "object" ?
|
|
470
|
+
n[t] = (s = e[t]) && typeof s == "object" ? z(s) : s;
|
|
471
471
|
return n;
|
|
472
472
|
}
|
|
473
473
|
if (Object.prototype.toString.call(e) === "[object Object]") {
|
|
474
474
|
n = {};
|
|
475
475
|
for (t in e)
|
|
476
476
|
t === "__proto__" ? Object.defineProperty(n, t, {
|
|
477
|
-
value:
|
|
477
|
+
value: z(e[t]),
|
|
478
478
|
configurable: !0,
|
|
479
479
|
enumerable: !0,
|
|
480
480
|
writable: !0
|
|
481
|
-
}) : n[t] = (s = e[t]) && typeof s == "object" ?
|
|
481
|
+
}) : n[t] = (s = e[t]) && typeof s == "object" ? z(s) : s;
|
|
482
482
|
return n;
|
|
483
483
|
}
|
|
484
484
|
return e;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
return
|
|
486
|
+
function jt(e) {
|
|
487
|
+
return I(e[0]);
|
|
488
488
|
}
|
|
489
489
|
function Pt(e) {
|
|
490
|
-
return
|
|
490
|
+
return I(e[0]);
|
|
491
491
|
}
|
|
492
492
|
const le = "$$shortcut-no-merge";
|
|
493
493
|
function Ft(e) {
|
|
@@ -496,15 +496,15 @@ function Ft(e) {
|
|
|
496
496
|
function ue(e) {
|
|
497
497
|
return e.length === 3;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Vt(e) {
|
|
500
500
|
return e != null;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Bt() {
|
|
503
503
|
}
|
|
504
|
-
var
|
|
504
|
+
var Gt = Object.defineProperty, Ht = (e, t, n) => t in e ? Gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Ht(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
505
505
|
class qt {
|
|
506
506
|
constructor() {
|
|
507
|
-
|
|
507
|
+
zt(this, "_map", /* @__PURE__ */ new Map());
|
|
508
508
|
}
|
|
509
509
|
get(t, n) {
|
|
510
510
|
const s = this._map.get(t);
|
|
@@ -552,10 +552,10 @@ class Wt extends Map {
|
|
|
552
552
|
}), n;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
class
|
|
555
|
+
var Kt = Object.defineProperty, Jt = (e, t, n) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xt = (e, t, n) => (Jt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
556
|
+
class ke extends Set {
|
|
557
557
|
constructor(t) {
|
|
558
|
-
super(t),
|
|
558
|
+
super(t), Xt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
|
|
559
559
|
}
|
|
560
560
|
add(t) {
|
|
561
561
|
return this._map ?? (this._map = /* @__PURE__ */ new Map()), this._map.set(t, (this._map.get(t) ?? 0) + 1), super.add(t);
|
|
@@ -573,38 +573,38 @@ class Oe extends Set {
|
|
|
573
573
|
return this._map.set(t, n), super.add(t);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
return e instanceof
|
|
576
|
+
function Y(e) {
|
|
577
|
+
return e instanceof ke;
|
|
578
578
|
}
|
|
579
|
-
const
|
|
580
|
-
function
|
|
579
|
+
const H = {};
|
|
580
|
+
function Qt(e = ["-", ":"]) {
|
|
581
581
|
const t = e.join("|");
|
|
582
|
-
return
|
|
582
|
+
return H[t] || (H[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), H[t].lastIndex = 0, H[t];
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
const s =
|
|
584
|
+
function Yt(e, t = ["-", ":"], n = 5) {
|
|
585
|
+
const s = Qt(t);
|
|
586
586
|
let r, o = e.toString();
|
|
587
587
|
const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
588
588
|
do
|
|
589
589
|
r = !1, o = o.replace(
|
|
590
590
|
s,
|
|
591
|
-
(f, i, u, d,
|
|
592
|
-
var
|
|
591
|
+
(f, i, u, d, h) => {
|
|
592
|
+
var w;
|
|
593
593
|
if (!t.includes(u))
|
|
594
594
|
return f;
|
|
595
595
|
r = !0, a.add(i + u);
|
|
596
|
-
const y =
|
|
597
|
-
l.set(
|
|
596
|
+
const y = h + i.length + u.length + 1, m = { length: f.length, items: [] };
|
|
597
|
+
l.set(h, m);
|
|
598
598
|
for (const A of [...d.matchAll(/\S+/g)]) {
|
|
599
599
|
const x = y + A.index;
|
|
600
|
-
let g = (
|
|
600
|
+
let g = (w = l.get(x)) == null ? void 0 : w.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`), m.items.push(S);
|
|
608
608
|
}
|
|
609
609
|
return "$".repeat(f.length);
|
|
610
610
|
}
|
|
@@ -637,11 +637,11 @@ function Xt(e, t = ["-", ":"], n = 5) {
|
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
639
|
function Zt(e, t = ["-", ":"], n = 5) {
|
|
640
|
-
const s =
|
|
640
|
+
const s = Yt(e, t, n);
|
|
641
641
|
return typeof e == "string" ? s.expanded : e;
|
|
642
642
|
}
|
|
643
643
|
const fe = /* @__PURE__ */ new Set();
|
|
644
|
-
function
|
|
644
|
+
function $e(e) {
|
|
645
645
|
fe.has(e) || (console.warn("[unocss]", e), fe.add(e));
|
|
646
646
|
}
|
|
647
647
|
const en = /[\\:]?[\s'"`;{}]+/g;
|
|
@@ -672,7 +672,7 @@ const q = "default", ne = "preflights", rn = "shortcuts", on = "imports", an = {
|
|
|
672
672
|
[rn]: -10,
|
|
673
673
|
[q]: 0
|
|
674
674
|
};
|
|
675
|
-
function
|
|
675
|
+
function Te(e) {
|
|
676
676
|
return N(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
|
|
677
677
|
}
|
|
678
678
|
const pe = "_uno_resolved";
|
|
@@ -685,7 +685,7 @@ function cn(e) {
|
|
|
685
685
|
value: !0,
|
|
686
686
|
enumerable: !1
|
|
687
687
|
});
|
|
688
|
-
const n = t.shortcuts ?
|
|
688
|
+
const n = t.shortcuts ? Te(t.shortcuts) : void 0;
|
|
689
689
|
if (t.shortcuts = n, t.prefix || t.layer) {
|
|
690
690
|
const r = (o) => {
|
|
691
691
|
o[2] || (o[2] = {});
|
|
@@ -696,16 +696,16 @@ function cn(e) {
|
|
|
696
696
|
}
|
|
697
697
|
return t;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Le(e) {
|
|
700
700
|
const t = cn(e);
|
|
701
701
|
if (!t.presets)
|
|
702
702
|
return [t];
|
|
703
|
-
const n = (t.presets || []).flatMap(N).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 = Nt((n.presets || []).flatMap(N).flatMap(
|
|
708
|
+
const n = Object.assign({}, t, e), s = Nt((n.presets || []).flatMap(N).flatMap(Le), (p, v) => p.name === v.name), r = [
|
|
709
709
|
...s.filter((p) => p.enforce === "pre"),
|
|
710
710
|
...s.filter((p) => !p.enforce),
|
|
711
711
|
...s.filter((p) => p.enforce === "post")
|
|
@@ -714,37 +714,37 @@ function de(e = {}, t = {}) {
|
|
|
714
714
|
n
|
|
715
715
|
], a = [...o].reverse(), l = Object.assign({}, an, ...o.map((p) => p.layers));
|
|
716
716
|
function c(p) {
|
|
717
|
-
return W(o.flatMap((
|
|
717
|
+
return W(o.flatMap((v) => N(v[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, v) => (p.order || 0) - (v.order || 0));
|
|
722
|
+
const u = c("rules"), d = {}, h = u.length, y = u.map((p, v) => {
|
|
723
723
|
var R;
|
|
724
|
-
if (
|
|
725
|
-
N(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((
|
|
726
|
-
d[
|
|
724
|
+
if (jt(p)) {
|
|
725
|
+
N(((R = p[2]) == null ? void 0 : R.prefix) || "").forEach((L) => {
|
|
726
|
+
d[L + p[0]] = [v, p[1], p[2], p];
|
|
727
727
|
});
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
return [
|
|
730
|
+
return [v, ...p];
|
|
731
731
|
}).filter(Boolean).reverse();
|
|
732
|
-
let
|
|
733
|
-
const
|
|
734
|
-
for (const p of
|
|
735
|
-
|
|
732
|
+
let m = ln(o.map((p) => p.theme));
|
|
733
|
+
const w = c("extendTheme");
|
|
734
|
+
for (const p of w)
|
|
735
|
+
m = p(m) || m;
|
|
736
736
|
const A = {
|
|
737
737
|
templates: W(o.flatMap((p) => {
|
|
738
|
-
var
|
|
739
|
-
return N((
|
|
738
|
+
var v;
|
|
739
|
+
return N((v = p.autocomplete) == null ? void 0 : v.templates);
|
|
740
740
|
})),
|
|
741
741
|
extractors: o.flatMap((p) => {
|
|
742
|
-
var
|
|
743
|
-
return N((
|
|
744
|
-
}).sort((p,
|
|
742
|
+
var v;
|
|
743
|
+
return N((v = p.autocomplete) == null ? void 0 : v.extractors);
|
|
744
|
+
}).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
745
745
|
shorthands: un(o.map((p) => {
|
|
746
|
-
var
|
|
747
|
-
return ((
|
|
746
|
+
var v;
|
|
747
|
+
return ((v = p.autocomplete) == null ? void 0 : v.shorthands) || {};
|
|
748
748
|
}))
|
|
749
749
|
};
|
|
750
750
|
let x = c("separators");
|
|
@@ -759,16 +759,16 @@ function de(e = {}, t = {}) {
|
|
|
759
759
|
envMode: n.envMode || "build",
|
|
760
760
|
shortcutsLayer: n.shortcutsLayer || "shortcuts",
|
|
761
761
|
layers: l,
|
|
762
|
-
theme:
|
|
763
|
-
rulesSize:
|
|
762
|
+
theme: m,
|
|
763
|
+
rulesSize: h,
|
|
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,
|
|
771
|
-
shortcuts:
|
|
770
|
+
variants: c("variants").map(Ft).sort((p, v) => (p.order || 0) - (v.order || 0)),
|
|
771
|
+
shortcuts: Te(c("shortcuts")).reverse(),
|
|
772
772
|
extractors: f,
|
|
773
773
|
safelist: c("safelist"),
|
|
774
774
|
separators: x,
|
|
@@ -779,7 +779,7 @@ function de(e = {}, t = {}) {
|
|
|
779
779
|
return g;
|
|
780
780
|
}
|
|
781
781
|
function ln(e) {
|
|
782
|
-
return e.map((t) => t ?
|
|
782
|
+
return e.map((t) => t ? z(t) : {}).reduce((t, n) => Re(t, n), {});
|
|
783
783
|
}
|
|
784
784
|
function un(e) {
|
|
785
785
|
return e.reduce((t, n) => {
|
|
@@ -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,
|
|
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, U = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
799
|
+
class hn {
|
|
800
800
|
constructor(t = {}, n = {}) {
|
|
801
|
-
this.userConfig = t, this.defaults = n,
|
|
801
|
+
this.userConfig = t, this.defaults = n, U(this, "version", fn), U(this, "_cache", /* @__PURE__ */ new Map()), U(this, "config"), U(this, "blocked", /* @__PURE__ */ new Set()), U(this, "parentOrders", /* @__PURE__ */ new Map()), U(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));
|
|
@@ -815,7 +815,7 @@ class mn {
|
|
|
815
815
|
for (const a of this.config.extractors) {
|
|
816
816
|
const l = await ((o = a.extract) == null ? void 0 : o.call(a, r));
|
|
817
817
|
if (l)
|
|
818
|
-
if (
|
|
818
|
+
if (Y(l) && Y(s))
|
|
819
819
|
for (const c of l)
|
|
820
820
|
s.setCount(c, s.getCount(c) + l.getCount(c));
|
|
821
821
|
else
|
|
@@ -857,7 +857,7 @@ class mn {
|
|
|
857
857
|
}
|
|
858
858
|
const a = this.makeContext(t, [n || o[0], o[1], o[2], o[3]]);
|
|
859
859
|
this.config.details && (a.variants = [...o[3]]);
|
|
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(
|
|
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;
|
|
863
863
|
this._cache.set(s, null);
|
|
@@ -870,49 +870,49 @@ class mn {
|
|
|
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 = I(t) ? await this.applyExtractors(
|
|
874
874
|
t,
|
|
875
875
|
s,
|
|
876
|
-
c ? new
|
|
876
|
+
c ? new ke() : /* @__PURE__ */ new Set()
|
|
877
877
|
) : Array.isArray(t) ? new Set(t) : t;
|
|
878
878
|
a && this.config.safelist.forEach((b) => {
|
|
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]), h = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map();
|
|
883
|
+
let m = {};
|
|
884
|
+
const w = Array.from(i).map(async (b) => {
|
|
885
|
+
var v;
|
|
886
|
+
if (h.has(b))
|
|
887
887
|
return;
|
|
888
888
|
const p = await this.parseToken(b);
|
|
889
889
|
if (p != null) {
|
|
890
|
-
|
|
890
|
+
h instanceof Map ? h.set(b, {
|
|
891
891
|
data: p,
|
|
892
|
-
count:
|
|
893
|
-
}) :
|
|
892
|
+
count: Y(i) ? i.getCount(b) : -1
|
|
893
|
+
}) : h.add(b);
|
|
894
894
|
for (const R of p) {
|
|
895
|
-
const
|
|
896
|
-
y.has(
|
|
895
|
+
const O = R[3] || "", L = (v = R[4]) == null ? void 0 : v.layer;
|
|
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(
|
|
900
|
+
await Promise.all(w), await (async () => {
|
|
901
901
|
if (!o)
|
|
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: v = ne }) => {
|
|
908
|
+
d.add(v), p.add(v);
|
|
909
|
+
}), m = Object.fromEntries(
|
|
910
910
|
await Promise.all(Array.from(p).map(
|
|
911
|
-
async (
|
|
912
|
-
const
|
|
913
|
-
this.config.preflights.filter((
|
|
911
|
+
async (v) => {
|
|
912
|
+
const O = (await Promise.all(
|
|
913
|
+
this.config.preflights.filter((L) => (L.layer || ne) === v).map(async (L) => await L.getCSS(b))
|
|
914
914
|
)).filter(Boolean).join(u);
|
|
915
|
-
return [
|
|
915
|
+
return [v, O];
|
|
916
916
|
}
|
|
917
917
|
))
|
|
918
918
|
);
|
|
@@ -921,54 +921,54 @@ class mn {
|
|
|
921
921
|
var R;
|
|
922
922
|
if (x[b])
|
|
923
923
|
return x[b];
|
|
924
|
-
let p = Array.from(y).sort((
|
|
925
|
-
var
|
|
926
|
-
return (this.parentOrders.get(
|
|
927
|
-
}).map(([
|
|
928
|
-
const
|
|
924
|
+
let p = Array.from(y).sort((O, L) => {
|
|
925
|
+
var D;
|
|
926
|
+
return (this.parentOrders.get(O[0]) ?? 0) - (this.parentOrders.get(L[0]) ?? 0) || ((D = O[0]) == null ? void 0 : D.localeCompare(L[0] || "")) || 0;
|
|
927
|
+
}).map(([O, L]) => {
|
|
928
|
+
const D = L.length, j = L.filter((k) => {
|
|
929
929
|
var _;
|
|
930
|
-
return (((_ =
|
|
931
|
-
}).sort((
|
|
932
|
-
var E, C, M,
|
|
933
|
-
return
|
|
934
|
-
}).map(([,
|
|
935
|
-
[[(
|
|
930
|
+
return (((_ = k[4]) == null ? void 0 : _.layer) || q) === b;
|
|
931
|
+
}).sort((k, _) => {
|
|
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
|
+
[[(k && gn(k, r)) ?? "", (E == null ? void 0 : E.sort) ?? 0]],
|
|
936
936
|
_,
|
|
937
937
|
!!(C ?? (E == null ? void 0 : E.noMerge))
|
|
938
938
|
]);
|
|
939
|
-
if (!
|
|
939
|
+
if (!j.length)
|
|
940
940
|
return;
|
|
941
|
-
const P =
|
|
941
|
+
const P = j.reverse().map(([k, _, E], C) => {
|
|
942
942
|
if (!E && this.config.mergeSelectors)
|
|
943
|
-
for (let
|
|
944
|
-
const
|
|
945
|
-
if (
|
|
946
|
-
return
|
|
943
|
+
for (let $ = C + 1; $ < D; $++) {
|
|
944
|
+
const T = j[$];
|
|
945
|
+
if (T && !T[2] && (k && T[0] || k == null && T[0] == null) && T[1] === _)
|
|
946
|
+
return k && T[0] && T[0].push(...k), null;
|
|
947
947
|
}
|
|
948
|
-
const M =
|
|
949
|
-
var
|
|
950
|
-
return
|
|
951
|
-
}).map((
|
|
948
|
+
const M = k ? W(k.sort(($, T) => {
|
|
949
|
+
var V;
|
|
950
|
+
return $[1] - T[1] || ((V = $[0]) == null ? void 0 : V.localeCompare(T[0] || "")) || 0;
|
|
951
|
+
}).map(($) => $[0]).filter(Boolean)) : [];
|
|
952
952
|
return M.length ? `${M.join(`,${u}`)}{${_}}` : _;
|
|
953
953
|
}).filter(Boolean).reverse().join(u);
|
|
954
|
-
if (
|
|
954
|
+
if (!O)
|
|
955
955
|
return P;
|
|
956
|
-
const F =
|
|
956
|
+
const F = O.split(" $$ ");
|
|
957
957
|
return `${F.join("{")}{${u}${P}${u}${"}".repeat(F.length)}`;
|
|
958
958
|
}).filter(Boolean).join(u);
|
|
959
|
-
if (o && (p = [
|
|
960
|
-
let
|
|
961
|
-
|
|
959
|
+
if (o && (p = [m[b], p].filter(Boolean).join(u)), f && p) {
|
|
960
|
+
let O = typeof f == "object" ? (R = f.cssLayerName) == null ? void 0 : R.call(f, b) : void 0;
|
|
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 v = l ? "" : `/* layer: ${b} */${u}`;
|
|
964
|
+
return x[b] = p ? v + p : "";
|
|
965
|
+
}, S = (b = A, p) => b.filter((v) => !(p != null && p.includes(v))).map((v) => g(v) || "").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: h,
|
|
972
972
|
getLayers: S,
|
|
973
973
|
getLayer: g
|
|
974
974
|
};
|
|
@@ -988,7 +988,7 @@ class mn {
|
|
|
988
988
|
continue;
|
|
989
989
|
let f = await c.match(o, l);
|
|
990
990
|
if (f) {
|
|
991
|
-
if (
|
|
991
|
+
if (I(f)) {
|
|
992
992
|
if (f === o)
|
|
993
993
|
continue;
|
|
994
994
|
f = { matcher: f };
|
|
@@ -1007,14 +1007,14 @@ class mn {
|
|
|
1007
1007
|
applyVariants(t, n = t[4], s = t[1]) {
|
|
1008
1008
|
const o = 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, m;
|
|
1011
|
+
const d = ((y = i.body) == null ? void 0 : y.call(i, u.entries)) || u.entries, h = 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: ((m = i.selector) == null ? void 0 : m.call(i, u.selector, d)) || u.selector,
|
|
1016
|
+
parent: h[0] || u.parent,
|
|
1017
|
+
parentOrder: h[1] || u.parentOrder,
|
|
1018
1018
|
layer: i.layer || u.layer,
|
|
1019
1019
|
sort: i.sort || u.sort
|
|
1020
1020
|
}, f);
|
|
@@ -1044,28 +1044,28 @@ class mn {
|
|
|
1044
1044
|
return c;
|
|
1045
1045
|
}
|
|
1046
1046
|
constructCustomCSS(t, n, s) {
|
|
1047
|
-
const r =
|
|
1048
|
-
if (
|
|
1047
|
+
const r = B(n);
|
|
1048
|
+
if (I(r))
|
|
1049
1049
|
return r;
|
|
1050
|
-
const { selector: o, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, r, void 0, t.variantHandlers]), c = `${o}{${
|
|
1050
|
+
const { selector: o, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, r, void 0, t.variantHandlers]), c = `${o}{${Q(a)}}`;
|
|
1051
1051
|
return l ? `${l}{${c}}` : c;
|
|
1052
1052
|
}
|
|
1053
1053
|
async parseUtil(t, n, s = !1, r) {
|
|
1054
1054
|
var i;
|
|
1055
|
-
const [o, a, l] =
|
|
1055
|
+
const [o, a, l] = I(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 =
|
|
1061
|
-
return
|
|
1060
|
+
const u = c[0], d = B(c[1]), h = c[2];
|
|
1061
|
+
return I(d) ? [[u, d, h]] : [[u, o, d, h, 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, h, y] of f) {
|
|
1066
1066
|
if (y != null && y.internal && !s)
|
|
1067
1067
|
continue;
|
|
1068
|
-
let
|
|
1068
|
+
let m = a;
|
|
1069
1069
|
if (y != null && y.prefix) {
|
|
1070
1070
|
const g = N(y.prefix);
|
|
1071
1071
|
if (r) {
|
|
@@ -1076,19 +1076,19 @@ class mn {
|
|
|
1076
1076
|
const S = g.find((b) => a.startsWith(b));
|
|
1077
1077
|
if (S == null)
|
|
1078
1078
|
continue;
|
|
1079
|
-
|
|
1079
|
+
m = a.slice(S.length);
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
|
-
const
|
|
1083
|
-
if (!
|
|
1082
|
+
const w = m.match(d);
|
|
1083
|
+
if (!w)
|
|
1084
1084
|
continue;
|
|
1085
|
-
const A = await
|
|
1085
|
+
const A = await h(w, 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, h, y]);
|
|
1089
|
+
const x = Dt(A).filter((g) => g.length);
|
|
1090
1090
|
if (x.length)
|
|
1091
|
-
return x.map((g) =>
|
|
1091
|
+
return x.map((g) => I(g) ? [u, g, y] : [u, o, g, y, l]);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
stringifyUtil(t, n) {
|
|
@@ -1096,15 +1096,15 @@ class mn {
|
|
|
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: r, parent: o, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f =
|
|
1099
|
+
const { selector: s, entries: r, parent: o, layer: a, sort: l, noMerge: c } = this.applyVariants(t), f = Q(r);
|
|
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] ?? {}, h = {
|
|
1103
1103
|
...d,
|
|
1104
1104
|
layer: a ?? i,
|
|
1105
1105
|
sort: l ?? u
|
|
1106
1106
|
};
|
|
1107
|
-
return [t[0], s, f, o,
|
|
1107
|
+
return [t[0], s, f, o, h, this.config.details ? n : void 0, c];
|
|
1108
1108
|
}
|
|
1109
1109
|
async expandShortcut(t, n, s = 5) {
|
|
1110
1110
|
var l;
|
|
@@ -1112,7 +1112,7 @@ class mn {
|
|
|
1112
1112
|
return;
|
|
1113
1113
|
const r = this.config.details ? (c) => {
|
|
1114
1114
|
n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
|
|
1115
|
-
} :
|
|
1115
|
+
} : Bt;
|
|
1116
1116
|
let o, a;
|
|
1117
1117
|
for (const c of this.config.shortcuts) {
|
|
1118
1118
|
let f = t;
|
|
@@ -1135,18 +1135,18 @@ class mn {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
if (
|
|
1139
|
-
const [c, f] =
|
|
1138
|
+
if (I(a) && (a = Zt(a.trim()).split(/\s+/g)), !a) {
|
|
1139
|
+
const [c, f] = I(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) => I(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 (I(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
|
o
|
|
1152
1152
|
];
|
|
@@ -1154,30 +1154,30 @@ class mn {
|
|
|
1154
1154
|
async stringifyShortcuts(t, n, s, r = { layer: this.config.shortcutsLayer }) {
|
|
1155
1155
|
var i;
|
|
1156
1156
|
const o = new Wt(), a = (await Promise.all(W(s).map(async (u) => {
|
|
1157
|
-
const d =
|
|
1158
|
-
return !d && this.config.warn &&
|
|
1157
|
+
const d = I(u) ? await this.parseUtil(u, n, !0, r.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", B(u), void 0, []]];
|
|
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) {
|
|
1161
1161
|
if (ue(u)) {
|
|
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
|
-
o.getFallback(A ?? r.layer, new qt()).getFallback(d, y, [[], u[0]])[0].push([
|
|
1165
|
+
const { selector: d, entries: h, parent: y, sort: m, noMerge: w, layer: A } = this.applyVariants(u, [...u[4], ...c], l);
|
|
1166
|
+
o.getFallback(A ?? r.layer, new qt()).getFallback(d, y, [[], u[0]])[0].push([h, !!(w ?? ((i = u[3]) == null ? void 0 : i.noMerge)), m ?? 0]);
|
|
1167
1167
|
}
|
|
1168
1168
|
return f.concat(o.flatMap(
|
|
1169
|
-
(u, d) => u.map(([
|
|
1169
|
+
(u, d) => u.map(([h, y], m, w) => {
|
|
1170
1170
|
const A = (g, S, b) => {
|
|
1171
|
-
const p = Math.max(...b.map((R) => R[1])),
|
|
1172
|
-
return (g ? [
|
|
1173
|
-
const
|
|
1174
|
-
if (
|
|
1175
|
-
return [y,
|
|
1171
|
+
const p = Math.max(...b.map((R) => R[1])), v = b.map((R) => R[0]);
|
|
1172
|
+
return (g ? [v.flat(1)] : v).map((R) => {
|
|
1173
|
+
const O = Q(R);
|
|
1174
|
+
if (O)
|
|
1175
|
+
return [y, m, O, w, { ...r, noMerge: S, sort: p, layer: d }, n, void 0];
|
|
1176
1176
|
});
|
|
1177
1177
|
};
|
|
1178
1178
|
return [
|
|
1179
|
-
[
|
|
1180
|
-
[
|
|
1179
|
+
[h.filter(([, g]) => g).map(([g, , S]) => [g, S]), !0],
|
|
1180
|
+
[h.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 mn {
|
|
|
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) : I(n) ? n === t : n.test(t));
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return new
|
|
1192
|
+
function mn(e, t) {
|
|
1193
|
+
return new hn(e, t);
|
|
1194
1194
|
}
|
|
1195
1195
|
const Me = /\s\$\$\s+/g;
|
|
1196
1196
|
function _n(e) {
|
|
@@ -1199,30 +1199,30 @@ 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 he = /^\[(.+?)(~?=)"(.*)"\]$/;
|
|
1203
1203
|
function yn(e) {
|
|
1204
|
-
return
|
|
1204
|
+
return he.test(e) ? e.replace(he, (t, n, s, r) => `[${X(n)}${s}"${X(r)}"]`) : `.${X(e)}`;
|
|
1205
1205
|
}
|
|
1206
1206
|
function bn(e, t) {
|
|
1207
1207
|
return t(e);
|
|
1208
1208
|
}
|
|
1209
|
-
var
|
|
1210
|
-
const
|
|
1209
|
+
var me = { 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:/usr/local/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/Library/Caches/fnm_multishells/83922_1711457313522/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/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/83922_1711457313522", TURBO_HASH: "73a8a949739ebd91", 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.23", 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 wn = Object.freeze(
|
|
1211
1211
|
{
|
|
1212
1212
|
left: 0,
|
|
1213
1213
|
top: 0,
|
|
1214
1214
|
width: 16,
|
|
1215
1215
|
height: 16
|
|
1216
1216
|
}
|
|
1217
|
-
),
|
|
1217
|
+
), K = Object.freeze({
|
|
1218
1218
|
rotate: 0,
|
|
1219
1219
|
vFlip: !1,
|
|
1220
1220
|
hFlip: !1
|
|
1221
|
-
}),
|
|
1222
|
-
...
|
|
1223
|
-
...
|
|
1224
|
-
}),
|
|
1225
|
-
...
|
|
1221
|
+
}), Ie = Object.freeze({
|
|
1222
|
+
...wn,
|
|
1223
|
+
...K
|
|
1224
|
+
}), vn = Object.freeze({
|
|
1225
|
+
...Ie,
|
|
1226
1226
|
body: "",
|
|
1227
1227
|
hidden: !1
|
|
1228
1228
|
}), Sn = Object.freeze({
|
|
@@ -1232,7 +1232,7 @@ const vn = Object.freeze(
|
|
|
1232
1232
|
// Dimensions
|
|
1233
1233
|
...Sn,
|
|
1234
1234
|
// Transformations
|
|
1235
|
-
...
|
|
1235
|
+
...K
|
|
1236
1236
|
});
|
|
1237
1237
|
function En(e, t) {
|
|
1238
1238
|
const n = {};
|
|
@@ -1242,8 +1242,8 @@ function En(e, t) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
function _e(e, t) {
|
|
1244
1244
|
const n = En(e, t);
|
|
1245
|
-
for (const s in
|
|
1246
|
-
s in
|
|
1245
|
+
for (const s in vn)
|
|
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) {
|
|
@@ -1277,7 +1277,7 @@ function Cn(e, t) {
|
|
|
1277
1277
|
const n = xn(e, [t])[t];
|
|
1278
1278
|
return n ? ge(e, t, n) : null;
|
|
1279
1279
|
}
|
|
1280
|
-
const An = /(-?[0-9.]*[0-9]+[0-9.]*)/g,
|
|
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;
|
|
@@ -1289,7 +1289,7 @@ function ye(e, t, n) {
|
|
|
1289
1289
|
if (s === null || !s.length)
|
|
1290
1290
|
return e;
|
|
1291
1291
|
const r = [];
|
|
1292
|
-
let o = s.shift(), a =
|
|
1292
|
+
let o = s.shift(), a = On.test(o);
|
|
1293
1293
|
for (; ; ) {
|
|
1294
1294
|
if (a) {
|
|
1295
1295
|
const l = parseFloat(o);
|
|
@@ -1318,17 +1318,17 @@ function Rn(e, t = "defs") {
|
|
|
1318
1318
|
content: e
|
|
1319
1319
|
};
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function kn(e, t) {
|
|
1322
1322
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function $n(e, t, n) {
|
|
1325
1325
|
const s = Rn(e);
|
|
1326
|
-
return
|
|
1326
|
+
return kn(s.defs, t + s.content + n);
|
|
1327
1327
|
}
|
|
1328
1328
|
const oe = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
1329
|
-
function
|
|
1329
|
+
function Tn(e, t) {
|
|
1330
1330
|
const n = {
|
|
1331
|
-
...
|
|
1331
|
+
...Ie,
|
|
1332
1332
|
...e
|
|
1333
1333
|
}, s = {
|
|
1334
1334
|
...Ne,
|
|
@@ -1340,45 +1340,45 @@ function Ln(e, t) {
|
|
|
1340
1340
|
height: n.height
|
|
1341
1341
|
};
|
|
1342
1342
|
let o = n.body;
|
|
1343
|
-
[n, s].forEach((
|
|
1344
|
-
const
|
|
1345
|
-
let g =
|
|
1346
|
-
A ? x ? g += 2 : (
|
|
1343
|
+
[n, s].forEach((m) => {
|
|
1344
|
+
const w = [], A = m.hFlip, x = m.vFlip;
|
|
1345
|
+
let g = m.rotate;
|
|
1346
|
+
A ? x ? g += 2 : (w.push(
|
|
1347
1347
|
"translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
|
|
1348
|
-
),
|
|
1348
|
+
), w.push("scale(-1 1)"), r.top = r.left = 0) : x && (w.push(
|
|
1349
1349
|
"translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
|
|
1350
|
-
),
|
|
1350
|
+
), w.push("scale(1 -1)"), r.top = r.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 = r.height / 2 + r.top,
|
|
1354
|
+
S = r.height / 2 + r.top, w.unshift(
|
|
1355
1355
|
"rotate(90 " + S.toString() + " " + S.toString() + ")"
|
|
1356
1356
|
);
|
|
1357
1357
|
break;
|
|
1358
1358
|
case 2:
|
|
1359
|
-
|
|
1359
|
+
w.unshift(
|
|
1360
1360
|
"rotate(180 " + (r.width / 2 + r.left).toString() + " " + (r.height / 2 + r.top).toString() + ")"
|
|
1361
1361
|
);
|
|
1362
1362
|
break;
|
|
1363
1363
|
case 3:
|
|
1364
|
-
S = r.width / 2 + r.left,
|
|
1364
|
+
S = r.width / 2 + r.left, w.unshift(
|
|
1365
1365
|
"rotate(-90 " + S.toString() + " " + S.toString() + ")"
|
|
1366
1366
|
);
|
|
1367
1367
|
break;
|
|
1368
1368
|
}
|
|
1369
|
-
g % 2 === 1 && (r.left !== r.top && (S = r.left, r.left = r.top, r.top = S), r.width !== r.height && (S = r.width, r.width = r.height, r.height = S)),
|
|
1369
|
+
g % 2 === 1 && (r.left !== r.top && (S = r.left, r.left = r.top, r.top = S), r.width !== r.height && (S = r.width, r.width = r.height, r.height = S)), w.length && (o = $n(
|
|
1370
1370
|
o,
|
|
1371
|
-
'<g transform="' +
|
|
1371
|
+
'<g transform="' + w.join(" ") + '">',
|
|
1372
1372
|
"</g>"
|
|
1373
1373
|
));
|
|
1374
1374
|
});
|
|
1375
1375
|
const a = s.width, l = s.height, c = r.width, f = r.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
|
-
oe(
|
|
1378
|
+
const d = {}, h = (m, w) => {
|
|
1379
|
+
oe(w) || (d[m] = w.toString());
|
|
1380
1380
|
};
|
|
1381
|
-
|
|
1381
|
+
h("width", i), h("height", u);
|
|
1382
1382
|
const y = [r.left, r.top, c, f];
|
|
1383
1383
|
return d.viewBox = y.join(" "), {
|
|
1384
1384
|
attributes: d,
|
|
@@ -1386,7 +1386,7 @@ function Ln(e, t) {
|
|
|
1386
1386
|
body: o
|
|
1387
1387
|
};
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Ln(e) {
|
|
1390
1390
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1391
1391
|
}
|
|
1392
1392
|
function Mn(e) {
|
|
@@ -1397,38 +1397,38 @@ function Mn(e) {
|
|
|
1397
1397
|
)), t.includes(" xmlns=") || (t = t.replace(
|
|
1398
1398
|
"<svg ",
|
|
1399
1399
|
'<svg xmlns="http://www.w3.org/2000/svg" '
|
|
1400
|
-
)),
|
|
1400
|
+
)), Ln(t);
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function In(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 Nn = /\swidth\s*=\s*["']([\w.]+)["']/,
|
|
1406
|
-
function
|
|
1405
|
+
const Nn = /\swidth\s*=\s*["']([\w.]+)["']/, Dn = /\sheight\s*=\s*["']([\w.]+)["']/, Z = /<svg\s+/;
|
|
1406
|
+
function Un(e, t, n) {
|
|
1407
1407
|
const s = e.slice(0, e.indexOf(">")), r = (o, a) => {
|
|
1408
1408
|
const l = a.exec(s), c = l != null, f = t[o];
|
|
1409
1409
|
return !f && !oe(f) && (typeof n == "number" ? n > 0 && (t[o] = `${n}em`) : l && (t[o] = l[1])), c;
|
|
1410
1410
|
};
|
|
1411
|
-
return [r("width", Nn), r("height",
|
|
1411
|
+
return [r("width", Nn), r("height", Dn)];
|
|
1412
1412
|
}
|
|
1413
|
-
async function
|
|
1413
|
+
async function De(e, t, n, s, r, o) {
|
|
1414
1414
|
const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: f } = (s == null ? void 0 : s.customizations) ?? {}, i = await (r == null ? void 0 : r()) ?? {};
|
|
1415
|
-
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1415
|
+
await (f == null ? void 0 : f(t, n, i)), Object.keys(c).forEach((m) => {
|
|
1416
|
+
const w = c[m];
|
|
1417
|
+
w != null && (i[m] = w);
|
|
1418
1418
|
}), o == null || o(i);
|
|
1419
|
-
const [u, d] =
|
|
1419
|
+
const [u, d] = Un(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 h = Object.keys(i).map(
|
|
1422
|
+
(m) => m === "width" && u || m === "height" && d ? null : `${m}="${i[m]}"`
|
|
1423
|
+
).filter((m) => m != null);
|
|
1424
|
+
if (h.length && (e = e.replace(Z, `<svg ${h.join(" ")} `)), s) {
|
|
1425
|
+
const { defaultStyle: m, defaultClass: w } = s;
|
|
1426
|
+
w && !e.includes("class=") && (e = e.replace(Z, `<svg class="${w}" `)), m && !e.includes("style=") && (e = e.replace(Z, `<svg style="${m}" `));
|
|
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((m) => {
|
|
1430
|
+
const w = i[m];
|
|
1431
|
+
w != null && (y[m] = w);
|
|
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) {
|
|
@@ -1452,8 +1452,8 @@ async function be(e, t, n, s) {
|
|
|
1452
1452
|
const a = r.indexOf("<svg");
|
|
1453
1453
|
a > 0 && (r = r.slice(a));
|
|
1454
1454
|
const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1455
|
-
return r = typeof l == "function" ? await l(r, t, n) : r, r.startsWith("<svg") ? await
|
|
1456
|
-
((o = s == null ? void 0 : s.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ?
|
|
1455
|
+
return r = typeof l == "function" ? await l(r, t, n) : r, r.startsWith("<svg") ? await De(
|
|
1456
|
+
((o = s == null ? void 0 : s.customizations) == null ? void 0 : o.trimCustomSvg) === !0 ? In(r) : r,
|
|
1457
1457
|
t,
|
|
1458
1458
|
n,
|
|
1459
1459
|
s,
|
|
@@ -1463,7 +1463,7 @@ async function be(e, t, n, s) {
|
|
|
1463
1463
|
), r);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
async function
|
|
1466
|
+
async function Ue(e, t, n, s) {
|
|
1467
1467
|
let r;
|
|
1468
1468
|
const { customize: o } = (s == null ? void 0 : s.customizations) ?? {};
|
|
1469
1469
|
for (const a of n)
|
|
@@ -1473,31 +1473,31 @@ async function Ie(e, t, n, s) {
|
|
|
1473
1473
|
const {
|
|
1474
1474
|
attributes: { width: c, height: f, ...i },
|
|
1475
1475
|
body: u
|
|
1476
|
-
} =
|
|
1477
|
-
return await
|
|
1476
|
+
} = Tn(r, l), d = s == null ? void 0 : s.scale;
|
|
1477
|
+
return await De(
|
|
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 = m
|
|
1484
|
+
(h) => {
|
|
1485
|
+
const y = (m, w) => {
|
|
1486
|
+
const A = h[m];
|
|
1487
1487
|
let x;
|
|
1488
1488
|
if (!oe(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 = w;
|
|
1492
1492
|
}
|
|
1493
|
-
x ? m
|
|
1493
|
+
x ? h[m] = x : delete h[m];
|
|
1494
1494
|
};
|
|
1495
1495
|
y("width", c), y("height", f);
|
|
1496
1496
|
}
|
|
1497
1497
|
);
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
const
|
|
1500
|
+
const je = async (e, t, n) => {
|
|
1501
1501
|
var r;
|
|
1502
1502
|
const s = (r = n == null ? void 0 : n.customCollections) == null ? void 0 : r[e];
|
|
1503
1503
|
if (s)
|
|
@@ -1526,7 +1526,7 @@ const De = 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 Ue(
|
|
1530
1530
|
o,
|
|
1531
1531
|
e,
|
|
1532
1532
|
a,
|
|
@@ -1537,7 +1537,7 @@ const De = async (e, t, n) => {
|
|
|
1537
1537
|
} else
|
|
1538
1538
|
return await be(s, e, t, n);
|
|
1539
1539
|
};
|
|
1540
|
-
function
|
|
1540
|
+
function jn(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__ */ jn(Pn), Vn = 3;
|
|
1717
|
+
function Bn(e) {
|
|
1718
1718
|
return (t = {}) => {
|
|
1719
1719
|
const {
|
|
1720
1720
|
scale: n = 1,
|
|
@@ -1728,7 +1728,7 @@ function Vn(e) {
|
|
|
1728
1728
|
collectionsNodeResolvePath: i,
|
|
1729
1729
|
layer: u = "icons",
|
|
1730
1730
|
unit: d
|
|
1731
|
-
} = t,
|
|
1731
|
+
} = t, h = Gn(), y = {
|
|
1732
1732
|
addXmlNs: !0,
|
|
1733
1733
|
scale: n,
|
|
1734
1734
|
customCollections: a,
|
|
@@ -1740,13 +1740,13 @@ function Vn(e) {
|
|
|
1740
1740
|
...c,
|
|
1741
1741
|
additionalProps: { ...l },
|
|
1742
1742
|
trimCustomSvg: !0,
|
|
1743
|
-
async iconCustomizer(
|
|
1743
|
+
async iconCustomizer(w, 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, w, 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 m;
|
|
1750
1750
|
return {
|
|
1751
1751
|
name: "@unocss/preset-icons",
|
|
1752
1752
|
enforce: "pre",
|
|
@@ -1754,24 +1754,24 @@ function Vn(e) {
|
|
|
1754
1754
|
layers: { icons: -30 },
|
|
1755
1755
|
rules: [[
|
|
1756
1756
|
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
|
|
1757
|
-
async ([
|
|
1757
|
+
async ([w, A, x = s]) => {
|
|
1758
1758
|
let g = "", S = "", b;
|
|
1759
|
-
|
|
1759
|
+
m = m || 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 m(g, S, { ...y, usedProps: p });
|
|
1763
1763
|
else {
|
|
1764
1764
|
const R = A.split(/-/g);
|
|
1765
|
-
for (let
|
|
1765
|
+
for (let O = Vn; O >= 1 && (g = R.slice(0, O).join("-"), S = R.slice(O).join("-"), b = await m(g, S, { ...y, usedProps: p }), !b); O--)
|
|
1766
1766
|
;
|
|
1767
1767
|
}
|
|
1768
1768
|
if (!b) {
|
|
1769
|
-
o && !
|
|
1769
|
+
o && !h.isESLint && $e(`failed to load icon "${w}"`);
|
|
1770
1770
|
return;
|
|
1771
1771
|
}
|
|
1772
|
-
const
|
|
1772
|
+
const v = `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": v,
|
|
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,7 +1781,7 @@ function Vn(e) {
|
|
|
1781
1781
|
color: "inherit",
|
|
1782
1782
|
...p
|
|
1783
1783
|
} : {
|
|
1784
|
-
background: `${
|
|
1784
|
+
background: `${v} no-repeat`,
|
|
1785
1785
|
"background-size": "100% 100%",
|
|
1786
1786
|
"background-color": "transparent",
|
|
1787
1787
|
...p
|
|
@@ -1799,7 +1799,7 @@ function Pe(e, t) {
|
|
|
1799
1799
|
return n.has(r) || n.set(r, e(`${t}@iconify-json/${r}/icons.json`)), n.get(r);
|
|
1800
1800
|
}
|
|
1801
1801
|
return async (r, o, a) => {
|
|
1802
|
-
let l = await
|
|
1802
|
+
let l = await je(r, o, a);
|
|
1803
1803
|
if (l)
|
|
1804
1804
|
return l;
|
|
1805
1805
|
const c = await s(r);
|
|
@@ -1809,33 +1809,33 @@ function Pe(e, t) {
|
|
|
1809
1809
|
o.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
1810
1810
|
o.replace(/([a-z])(\d+)/g, "$1-$2")
|
|
1811
1811
|
];
|
|
1812
|
-
l = await
|
|
1812
|
+
l = await Ue(c, r, f, a);
|
|
1813
1813
|
}
|
|
1814
1814
|
return l;
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1818
|
-
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!
|
|
1817
|
+
function Gn() {
|
|
1818
|
+
const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!me.VSCODE_CWD, n = e && !!me.ESLINT;
|
|
1819
1819
|
return {
|
|
1820
1820
|
isNode: e,
|
|
1821
1821
|
isVSCode: t,
|
|
1822
1822
|
isESLint: n
|
|
1823
1823
|
};
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Hn(e) {
|
|
1826
1826
|
return Pe(Mt, e);
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1828
|
+
const zn = Bn(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 ? Hn(n) : je;
|
|
1831
1831
|
});
|
|
1832
1832
|
function qn(e) {
|
|
1833
1833
|
return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function we(e) {
|
|
1836
1836
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function ve(e) {
|
|
1839
1839
|
return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
|
|
1840
1840
|
}
|
|
1841
1841
|
var Se = ["Webkit", "Moz", "ms"];
|
|
@@ -1847,12 +1847,12 @@ function Wn(e) {
|
|
|
1847
1847
|
return r;
|
|
1848
1848
|
let o = qn(s);
|
|
1849
1849
|
if (o !== "filter" && o in e)
|
|
1850
|
-
return t[s] =
|
|
1851
|
-
o =
|
|
1850
|
+
return t[s] = ve(o);
|
|
1851
|
+
o = we(o);
|
|
1852
1852
|
for (let a = 0; a < Se.length; a++) {
|
|
1853
1853
|
const l = `${Se[a]}${o}`;
|
|
1854
1854
|
if (l in e)
|
|
1855
|
-
return t[s] = we(
|
|
1855
|
+
return t[s] = ve(we(l));
|
|
1856
1856
|
}
|
|
1857
1857
|
return s;
|
|
1858
1858
|
}
|
|
@@ -1860,23 +1860,23 @@ function Wn(e) {
|
|
|
1860
1860
|
r[0].startsWith("--") || (r[0] = n(r[0]));
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function Kn(e) {
|
|
1864
1864
|
return e.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<");
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1867
|
-
var P, F,
|
|
1866
|
+
function Jn(e = {}) {
|
|
1867
|
+
var P, F, k;
|
|
1868
1868
|
if (typeof window > "u") {
|
|
1869
1869
|
console.warn("@unocss/runtime been used in non-browser environment, skipped.");
|
|
1870
1870
|
return;
|
|
1871
1871
|
}
|
|
1872
1872
|
const t = window, n = window.document, s = () => n.documentElement, r = t.__unocss || {}, o = Object.assign({}, e, r.runtime), a = o.defaults || {}, l = o.cloakAttribute ?? "un-cloak";
|
|
1873
1873
|
o.autoPrefix && (a.postprocess = N(a.postprocess)).unshift(Wn(n.createElement("div").style)), (P = o.configResolved) == null || P.call(o, r, a);
|
|
1874
|
-
const c =
|
|
1875
|
-
let d = !0,
|
|
1874
|
+
const c = mn(r, a), f = (_) => o.inject ? o.inject(_) : s().prepend(_), i = () => o.rootElement ? o.rootElement() : n.body, u = /* @__PURE__ */ new Map();
|
|
1875
|
+
let d = !0, h = /* @__PURE__ */ new Set(), y, m, w = [];
|
|
1876
1876
|
const A = () => new Promise((_) => {
|
|
1877
|
-
|
|
1878
|
-
const E =
|
|
1879
|
-
|
|
1877
|
+
w.push(_), m != null && clearTimeout(m), m = setTimeout(() => S().then(() => {
|
|
1878
|
+
const E = w;
|
|
1879
|
+
w = [], E.forEach((C) => C());
|
|
1880
1880
|
}), 0);
|
|
1881
1881
|
});
|
|
1882
1882
|
function x(_) {
|
|
@@ -1893,28 +1893,28 @@ function Kn(e = {}) {
|
|
|
1893
1893
|
if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", _), u.set(_, C), E == null)
|
|
1894
1894
|
f(C);
|
|
1895
1895
|
else {
|
|
1896
|
-
const M = g(E),
|
|
1897
|
-
|
|
1896
|
+
const M = g(E), $ = M.parentNode;
|
|
1897
|
+
$ ? $.insertBefore(C, M.nextSibling) : f(C);
|
|
1898
1898
|
}
|
|
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(h);
|
|
1903
|
+
return _.layers.reduce((E, C) => (g(C, E).innerHTML = _.getLayer(C) ?? "", C), void 0), h = _.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 = h.size;
|
|
1911
|
+
await c.applyExtractors(_, void 0, h), E !== h.size && await A();
|
|
1912
1912
|
}
|
|
1913
1913
|
async function p(_ = i()) {
|
|
1914
1914
|
const E = _ && _.outerHTML;
|
|
1915
|
-
E && (await b(`${E} ${
|
|
1915
|
+
E && (await b(`${E} ${Kn(E)}`), x(s()), x(_));
|
|
1916
1916
|
}
|
|
1917
|
-
const
|
|
1917
|
+
const v = new MutationObserver((_) => {
|
|
1918
1918
|
d || _.forEach(async (E) => {
|
|
1919
1919
|
if (E.target.nodeType !== 1)
|
|
1920
1920
|
return;
|
|
@@ -1926,58 +1926,58 @@ function Kn(e = {}) {
|
|
|
1926
1926
|
E.addedNodes.forEach(async (M) => {
|
|
1927
1927
|
if (M.nodeType !== 1)
|
|
1928
1928
|
return;
|
|
1929
|
-
const
|
|
1930
|
-
y && !y(
|
|
1929
|
+
const $ = M;
|
|
1930
|
+
y && !y($) || (await b($.outerHTML), x($));
|
|
1931
1931
|
});
|
|
1932
1932
|
else {
|
|
1933
1933
|
if (y && !y(C))
|
|
1934
1934
|
return;
|
|
1935
1935
|
if (E.attributeName !== l) {
|
|
1936
|
-
const M = Array.from(C.attributes).map((
|
|
1937
|
-
await b(
|
|
1936
|
+
const M = Array.from(C.attributes).map((T) => T.value ? `${T.name}="${T.value}"` : T.name).join(" "), $ = `<${C.tagName.toLowerCase()} ${M}>`;
|
|
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
|
-
function
|
|
1944
|
+
function O() {
|
|
1945
1945
|
var E, C;
|
|
1946
1946
|
if (R)
|
|
1947
1947
|
return;
|
|
1948
1948
|
const _ = (E = o.observer) != null && E.target ? o.observer.target() : i();
|
|
1949
|
-
_ && (
|
|
1949
|
+
_ && (v.observe(_, {
|
|
1950
1950
|
childList: !0,
|
|
1951
1951
|
subtree: !0,
|
|
1952
1952
|
attributes: !0,
|
|
1953
1953
|
attributeFilter: (C = o.observer) == null ? void 0 : C.attributeFilter
|
|
1954
1954
|
}), R = !0);
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1957
|
-
o.bypassDefined &&
|
|
1956
|
+
function L() {
|
|
1957
|
+
o.bypassDefined && Xn(c.blocked), p(), O();
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1960
|
-
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded",
|
|
1959
|
+
function D() {
|
|
1960
|
+
n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", L) : L();
|
|
1961
1961
|
}
|
|
1962
|
-
const
|
|
1962
|
+
const j = t.__unocss_runtime = t.__unocss_runtime = {
|
|
1963
1963
|
version: c.version,
|
|
1964
1964
|
uno: c,
|
|
1965
1965
|
async extract(_) {
|
|
1966
|
-
|
|
1966
|
+
I(_) || (_.forEach((E) => h.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 && D();
|
|
1974
1974
|
},
|
|
1975
1975
|
update: S,
|
|
1976
1976
|
presets: ((F = t.__unocss_runtime) == null ? void 0 : F.presets) ?? {}
|
|
1977
1977
|
};
|
|
1978
|
-
((
|
|
1978
|
+
((k = o.ready) == null ? void 0 : k.call(o, j)) !== !1 && (d = !1, D());
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function Xn(e = /* @__PURE__ */ new Set()) {
|
|
1981
1981
|
for (let t = 0; t < document.styleSheets.length; t++) {
|
|
1982
1982
|
const n = document.styleSheets[t];
|
|
1983
1983
|
let s;
|
|
@@ -1996,10 +1996,10 @@ function Qn(e = /* @__PURE__ */ new Set()) {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
return e;
|
|
1998
1998
|
}
|
|
1999
|
-
|
|
1999
|
+
Jn({
|
|
2000
2000
|
defaults: {
|
|
2001
2001
|
presets: [
|
|
2002
|
-
|
|
2002
|
+
zn({
|
|
2003
2003
|
prefix: ["i-", ""],
|
|
2004
2004
|
collections: {},
|
|
2005
2005
|
cdn: "https://esm.sh/",
|