@vue/devtools-electron 7.0.12 → 7.0.14

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.
Files changed (44) hide show
  1. package/cli.d.ts +1 -0
  2. package/client/assets/{css-a-KJtBLB.js → css-tuEqSfZX.js} +347 -347
  3. package/client/assets/html-NT1OIsSF.js +74 -0
  4. package/client/assets/index-KXVUFBYX.js +1096 -0
  5. package/client/assets/{index-598L0Wdv.css → index-fx3Lb9Fg.css} +1 -1
  6. package/client/assets/{javascript-Of8SnKfU.js → javascript-4rbEI_qn.js} +507 -507
  7. package/client/assets/json-xL80yL3n.js +25 -0
  8. package/client/assets/{shellscript-h1L64xId.js → shellscript-82BvnTib.js} +3 -3
  9. package/client/assets/{typescript-b1Nw_bQe.js → typescript-IWNmnGsa.js} +487 -487
  10. package/client/assets/unocss-runtime-TAqnQCrJ.js +2 -0
  11. package/client/assets/{vue-nOwTje1i.js → vue-YzhXM3IG.js} +1508 -1508
  12. package/client/assets/{vue-html-eJ6eRCYJ.js → vue-html-K7eG1nl_.js} +1 -1
  13. package/client/assets/yaml-zytfnWoA.js +200 -0
  14. package/client/{css-hXHVOlj5.js → css-FzZ_BjSq.js} +347 -347
  15. package/client/devtools-panel.css +1 -1
  16. package/client/devtools-panel.js +12834 -12546
  17. package/client/html-WFjUqgJ3.js +84 -0
  18. package/client/index.html +3 -3
  19. package/client/{javascript-iu2g-HpL.js → javascript-_oSuCsY2.js} +507 -507
  20. package/client/json-GUBx_oBO.js +31 -0
  21. package/client/logo.svg +208 -0
  22. package/client/{shellscript-lFevXvOp.js → shellscript-OgCjrX59.js} +3 -3
  23. package/client/{typescript-SzFP_hYV.js → typescript-Pt1W475c.js} +487 -487
  24. package/client/unocss-runtime-Pdo20xvb.js +1988 -0
  25. package/client/{vue-vFbCUJfs.js → vue-CJRD3BeY.js} +1529 -1529
  26. package/client/{vue-html-IdJrwrVJ.js → vue-html-9E-FEOoO.js} +7 -7
  27. package/client/yaml-0qnKYER3.js +206 -0
  28. package/dist/devtools.js +3298 -3298
  29. package/dist/index.cjs +41 -41
  30. package/dist/{index.mjs → index.js} +43 -43
  31. package/dist/user-app.cjs +42 -42
  32. package/dist/user-app.iife.js +38 -38
  33. package/dist/{user-app.mjs → user-app.js} +42 -42
  34. package/package.json +7 -7
  35. package/client/assets/html-5-AIf93y.js +0 -74
  36. package/client/assets/index-cEmzwhNg.js +0 -1096
  37. package/client/assets/json-t1qiHl76.js +0 -25
  38. package/client/assets/unocss-runtime-402WFgCt.js +0 -2
  39. package/client/assets/yaml-FtfhlYqU.js +0 -200
  40. package/client/html-r4dic7N6.js +0 -84
  41. package/client/json-6ED1Ntns.js +0 -31
  42. package/client/unocss-runtime-WFlXz1xh.js +0 -1974
  43. package/client/yaml-n_HyS7lr.js +0 -206
  44. /package/dist/{app.mjs → app.js} +0 -0
@@ -0,0 +1,1988 @@
1
+ const Ie = /"(?:_|\\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*:/, De = /"(?: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*:/, Pe = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
2
+ function Fe(e, t) {
3
+ if (e === "__proto__" || e === "constructor" && t && typeof t == "object" && "prototype" in t) {
4
+ Be(e);
5
+ return;
6
+ }
7
+ return t;
8
+ }
9
+ function Be(e) {
10
+ console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);
11
+ }
12
+ function Ve(e, t = {}) {
13
+ if (typeof e != "string")
14
+ return e;
15
+ const n = e.trim();
16
+ if (
17
+ // eslint-disable-next-line unicorn/prefer-at
18
+ e[0] === '"' && e.at(-1) === '"' && !e.includes("\\")
19
+ )
20
+ return n.slice(1, -1);
21
+ if (n.length <= 9) {
22
+ const s = n.toLowerCase();
23
+ if (s === "true")
24
+ return !0;
25
+ if (s === "false")
26
+ return !1;
27
+ if (s === "undefined")
28
+ return;
29
+ if (s === "null")
30
+ return null;
31
+ if (s === "nan")
32
+ return Number.NaN;
33
+ if (s === "infinity")
34
+ return Number.POSITIVE_INFINITY;
35
+ if (s === "-infinity")
36
+ return Number.NEGATIVE_INFINITY;
37
+ }
38
+ if (!Pe.test(e)) {
39
+ if (t.strict)
40
+ throw new SyntaxError("[destr] Invalid JSON");
41
+ return e;
42
+ }
43
+ try {
44
+ if (Ie.test(e) || De.test(e)) {
45
+ if (t.strict)
46
+ throw new Error("[destr] Possible prototype pollution");
47
+ return JSON.parse(e, Fe);
48
+ }
49
+ return JSON.parse(e);
50
+ } catch (s) {
51
+ if (t.strict)
52
+ throw s;
53
+ return e;
54
+ }
55
+ }
56
+ const He = /#/g, ze = /&/g, Ge = /=/g, ne = /\+/g, qe = /%5e/gi, We = /%60/gi, Je = /%7c/gi, Ke = /%20/gi;
57
+ function Ye(e) {
58
+ return encodeURI("" + e).replace(Je, "|");
59
+ }
60
+ function X(e) {
61
+ return Ye(typeof e == "string" ? e : JSON.stringify(e)).replace(ne, "%2B").replace(Ke, "+").replace(He, "%23").replace(ze, "%26").replace(We, "`").replace(qe, "^");
62
+ }
63
+ function W(e) {
64
+ return X(e).replace(Ge, "%3D");
65
+ }
66
+ function we(e = "") {
67
+ try {
68
+ return decodeURIComponent("" + e);
69
+ } catch {
70
+ return "" + e;
71
+ }
72
+ }
73
+ function Qe(e) {
74
+ return we(e.replace(ne, " "));
75
+ }
76
+ function Xe(e) {
77
+ return we(e.replace(ne, " "));
78
+ }
79
+ function Ze(e = "") {
80
+ const t = {};
81
+ e[0] === "?" && (e = e.slice(1));
82
+ for (const n of e.split("&")) {
83
+ const s = n.match(/([^=]+)=?(.*)/) || [];
84
+ if (s.length < 2)
85
+ continue;
86
+ const o = Qe(s[1]);
87
+ if (o === "__proto__" || o === "constructor")
88
+ continue;
89
+ const r = Xe(s[2] || "");
90
+ t[o] === void 0 ? t[o] = r : Array.isArray(t[o]) ? t[o].push(r) : t[o] = [t[o], r];
91
+ }
92
+ return t;
93
+ }
94
+ function et(e, t) {
95
+ return (typeof t == "number" || typeof t == "boolean") && (t = String(t)), t ? Array.isArray(t) ? t.map((n) => `${W(e)}=${X(n)}`).join("&") : `${W(e)}=${X(t)}` : W(e);
96
+ }
97
+ function tt(e) {
98
+ return Object.keys(e).filter((t) => e[t] !== void 0).map((t) => et(t, e[t])).filter(Boolean).join("&");
99
+ }
100
+ const nt = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/, st = /^[\s\w\0+.-]{2,}:([/\\]{2})?/, ot = /^([/\\]\s*){2,}[^/\\]/;
101
+ function Se(e, t = {}) {
102
+ return typeof t == "boolean" && (t = { acceptRelative: t }), t.strict ? nt.test(e) : st.test(e) || (t.acceptRelative ? ot.test(e) : !1);
103
+ }
104
+ const rt = /\/$|\/\?|\/#/;
105
+ function Z(e = "", t) {
106
+ return t ? rt.test(e) : e.endsWith("/");
107
+ }
108
+ function it(e = "", t) {
109
+ if (!t)
110
+ return (Z(e) ? e.slice(0, -1) : e) || "/";
111
+ if (!Z(e, !0))
112
+ return e || "/";
113
+ let n = e, s = "";
114
+ const o = e.indexOf("#");
115
+ o >= 0 && (n = e.slice(0, o), s = e.slice(o));
116
+ const [r, ...a] = n.split("?");
117
+ return (r.slice(0, -1) || "/") + (a.length > 0 ? `?${a.join("?")}` : "") + s;
118
+ }
119
+ function at(e = "", t) {
120
+ if (!t)
121
+ return e.endsWith("/") ? e : e + "/";
122
+ if (Z(e, !0))
123
+ return e || "/";
124
+ let n = e, s = "";
125
+ const o = e.indexOf("#");
126
+ if (o >= 0 && (n = e.slice(0, o), s = e.slice(o), !n))
127
+ return s;
128
+ const [r, ...a] = n.split("?");
129
+ return r + "/" + (a.length > 0 ? `?${a.join("?")}` : "") + s;
130
+ }
131
+ function ct(e, t) {
132
+ if (ut(t) || Se(e))
133
+ return e;
134
+ const n = it(t);
135
+ return e.startsWith(n) ? e : pt(n, e);
136
+ }
137
+ function lt(e, t) {
138
+ const n = xe(e), s = { ...Ze(n.search), ...t };
139
+ return n.search = tt(s), mt(n);
140
+ }
141
+ function ut(e) {
142
+ return !e || e === "/";
143
+ }
144
+ function ft(e) {
145
+ return e && e !== "/";
146
+ }
147
+ const dt = /^\.?\//;
148
+ function pt(e, ...t) {
149
+ let n = e || "";
150
+ for (const s of t.filter((o) => ft(o)))
151
+ if (n) {
152
+ const o = s.replace(dt, "");
153
+ n = at(n) + o;
154
+ } else
155
+ n = s;
156
+ return n;
157
+ }
158
+ function xe(e = "", t) {
159
+ const n = e.match(
160
+ /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
161
+ );
162
+ if (n) {
163
+ const [, f, p = ""] = n;
164
+ return {
165
+ protocol: f.toLowerCase(),
166
+ pathname: p,
167
+ href: f + p,
168
+ auth: "",
169
+ host: "",
170
+ search: "",
171
+ hash: ""
172
+ };
173
+ }
174
+ if (!Se(e, { acceptRelative: !0 }))
175
+ return t ? xe(t + e) : re(e);
176
+ const [, s = "", o, r = ""] = e.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], [, a = "", l = ""] = r.match(/([^#/?]*)(.*)?/) || [], { pathname: c, search: u, hash: i } = re(
177
+ l.replace(/\/(?=[A-Za-z]:)/, "")
178
+ );
179
+ return {
180
+ protocol: s.toLowerCase(),
181
+ auth: o ? o.slice(0, Math.max(0, o.length - 1)) : "",
182
+ host: a,
183
+ pathname: c,
184
+ search: u,
185
+ hash: i
186
+ };
187
+ }
188
+ function re(e = "") {
189
+ const [t = "", n = "", s = ""] = (e.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
190
+ return {
191
+ pathname: t,
192
+ search: n,
193
+ hash: s
194
+ };
195
+ }
196
+ function mt(e) {
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.protocol + "//" : "") + o + r + t + n + s;
199
+ }
200
+ class ht extends Error {
201
+ constructor(t, n) {
202
+ super(t, n), this.name = "FetchError", n != null && n.cause && !this.cause && (this.cause = n.cause);
203
+ }
204
+ }
205
+ function _t(e) {
206
+ var c, u, i, f, p;
207
+ const t = ((c = e.error) == null ? void 0 : c.message) || ((u = e.error) == null ? void 0 : u.toString()) || "", n = ((i = e.request) == null ? void 0 : i.method) || ((f = e.options) == null ? void 0 : f.method) || "GET", s = ((p = e.request) == null ? void 0 : p.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 ht(
208
+ a,
209
+ e.error ? { cause: e.error } : void 0
210
+ );
211
+ for (const h of ["request", "options", "response"])
212
+ Object.defineProperty(l, h, {
213
+ get() {
214
+ return e[h];
215
+ }
216
+ });
217
+ for (const [h, g] of [
218
+ ["data", "_data"],
219
+ ["status", "status"],
220
+ ["statusCode", "status"],
221
+ ["statusText", "statusText"],
222
+ ["statusMessage", "statusText"]
223
+ ])
224
+ Object.defineProperty(l, h, {
225
+ get() {
226
+ return e.response && e.response[g];
227
+ }
228
+ });
229
+ return l;
230
+ }
231
+ const gt = new Set(
232
+ Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
233
+ );
234
+ function ie(e = "GET") {
235
+ return gt.has(e.toUpperCase());
236
+ }
237
+ function yt(e) {
238
+ if (e === void 0)
239
+ return !1;
240
+ const t = typeof e;
241
+ return t === "string" || t === "number" || t === "boolean" || t === null ? !0 : t !== "object" ? !1 : Array.isArray(e) ? !0 : e.buffer ? !1 : e.constructor && e.constructor.name === "Object" || typeof e.toJSON == "function";
242
+ }
243
+ const bt = /* @__PURE__ */ new Set([
244
+ "image/svg",
245
+ "application/xml",
246
+ "application/xhtml",
247
+ "application/html"
248
+ ]), vt = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
249
+ function wt(e = "") {
250
+ if (!e)
251
+ return "json";
252
+ const t = e.split(";").shift() || "";
253
+ return vt.test(t) ? "json" : bt.has(t) || t.startsWith("text/") ? "text" : "blob";
254
+ }
255
+ function St(e, t, n = globalThis.Headers) {
256
+ const s = {
257
+ ...t,
258
+ ...e
259
+ };
260
+ if (t != null && t.params && (e != null && e.params) && (s.params = {
261
+ ...t == null ? void 0 : t.params,
262
+ ...e == null ? void 0 : e.params
263
+ }), t != null && t.query && (e != null && e.query) && (s.query = {
264
+ ...t == null ? void 0 : t.query,
265
+ ...e == null ? void 0 : e.query
266
+ }), t != null && t.headers && (e != null && e.headers)) {
267
+ s.headers = new n((t == null ? void 0 : t.headers) || {});
268
+ for (const [o, r] of new n((e == null ? void 0 : e.headers) || {}))
269
+ s.headers.set(o, r);
270
+ }
271
+ return s;
272
+ }
273
+ const xt = /* @__PURE__ */ new Set([
274
+ 408,
275
+ // Request Timeout
276
+ 409,
277
+ // Conflict
278
+ 425,
279
+ // Too Early
280
+ 429,
281
+ // Too Many Requests
282
+ 500,
283
+ // Internal Server Error
284
+ 502,
285
+ // Bad Gateway
286
+ 503,
287
+ // Service Unavailable
288
+ 504
289
+ // Gateway Timeout
290
+ ]), Et = /* @__PURE__ */ new Set([101, 204, 205, 304]);
291
+ function Ee(e = {}) {
292
+ const {
293
+ fetch: t = globalThis.fetch,
294
+ Headers: n = globalThis.Headers,
295
+ AbortController: s = globalThis.AbortController
296
+ } = e;
297
+ async function o(l) {
298
+ const c = l.error && l.error.name === "AbortError" && !l.options.timeout || !1;
299
+ if (l.options.retry !== !1 && !c) {
300
+ let i;
301
+ typeof l.options.retry == "number" ? i = l.options.retry : i = ie(l.options.method) ? 0 : 1;
302
+ const f = l.response && l.response.status || 500;
303
+ if (i > 0 && (Array.isArray(l.options.retryStatusCodes) ? l.options.retryStatusCodes.includes(f) : xt.has(f))) {
304
+ const p = l.options.retryDelay || 0;
305
+ return p > 0 && await new Promise((h) => setTimeout(h, p)), r(l.request, {
306
+ ...l.options,
307
+ retry: i - 1,
308
+ timeout: l.options.timeout
309
+ });
310
+ }
311
+ }
312
+ const u = _t(l);
313
+ throw Error.captureStackTrace && Error.captureStackTrace(u, r), u;
314
+ }
315
+ const r = async function(c, u = {}) {
316
+ var p;
317
+ const i = {
318
+ request: c,
319
+ options: St(u, e.defaults, n),
320
+ response: void 0,
321
+ error: void 0
322
+ };
323
+ if (i.options.method = (p = i.options.method) == null ? void 0 : p.toUpperCase(), i.options.onRequest && await i.options.onRequest(i), typeof i.request == "string" && (i.options.baseURL && (i.request = ct(i.request, i.options.baseURL)), (i.options.query || i.options.params) && (i.request = lt(i.request, {
324
+ ...i.options.params,
325
+ ...i.options.query
326
+ }))), i.options.body && ie(i.options.method) && (yt(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")) : (
327
+ // ReadableStream Body
328
+ ("pipeTo" in i.options.body && typeof i.options.body.pipeTo == "function" || // Node.js Stream Body
329
+ typeof i.options.body.pipe == "function") && ("duplex" in i.options || (i.options.duplex = "half"))
330
+ )), !i.options.signal && i.options.timeout) {
331
+ const h = new s();
332
+ setTimeout(() => h.abort(), i.options.timeout), i.options.signal = h.signal;
333
+ }
334
+ try {
335
+ i.response = await t(
336
+ i.request,
337
+ i.options
338
+ );
339
+ } catch (h) {
340
+ return i.error = h, i.options.onRequestError && await i.options.onRequestError(i), await o(i);
341
+ }
342
+ if (i.response.body && !Et.has(i.response.status) && i.options.method !== "HEAD") {
343
+ const h = (i.options.parseResponse ? "json" : i.options.responseType) || wt(i.response.headers.get("content-type") || "");
344
+ switch (h) {
345
+ case "json": {
346
+ const g = await i.response.text(), _ = i.options.parseResponse || Ve;
347
+ i.response._data = _(g);
348
+ break;
349
+ }
350
+ case "stream": {
351
+ i.response._data = i.response.body;
352
+ break;
353
+ }
354
+ default:
355
+ i.response._data = await i.response[h]();
356
+ }
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 o(i)) : i.response;
359
+ }, a = async function(c, u) {
360
+ return (await r(c, u))._data;
361
+ };
362
+ return a.raw = r, a.native = (...l) => t(...l), a.create = (l = {}) => Ee({
363
+ ...e,
364
+ defaults: {
365
+ ...e.defaults,
366
+ ...l
367
+ }
368
+ }), a;
369
+ }
370
+ const se = function() {
371
+ if (typeof globalThis < "u")
372
+ return globalThis;
373
+ if (typeof self < "u")
374
+ return self;
375
+ if (typeof window < "u")
376
+ return window;
377
+ if (typeof global < "u")
378
+ return global;
379
+ throw new Error("unable to locate global object");
380
+ }(), Ct = se.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!"))), At = se.Headers, kt = se.AbortController, $t = Ee({ fetch: Ct, Headers: At, AbortController: kt }), Ot = $t;
381
+ function Rt(e) {
382
+ const t = e.length;
383
+ let n = -1, s, o = "";
384
+ const r = e.charCodeAt(0);
385
+ for (; ++n < t; ) {
386
+ if (s = e.charCodeAt(n), s === 0) {
387
+ o += "�";
388
+ continue;
389
+ }
390
+ if (s === 37) {
391
+ o += "\\%";
392
+ continue;
393
+ }
394
+ if (s === 44) {
395
+ o += "\\,";
396
+ continue;
397
+ }
398
+ if (
399
+ // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
400
+ // U+007F, […]
401
+ s >= 1 && s <= 31 || s === 127 || n === 0 && s >= 48 && s <= 57 || n === 1 && s >= 48 && s <= 57 && r === 45
402
+ ) {
403
+ o += `\\${s.toString(16)} `;
404
+ continue;
405
+ }
406
+ if (
407
+ // If the character is the first character and is a `-` (U+002D), and
408
+ // there is no second character, […]
409
+ n === 0 && t === 1 && s === 45
410
+ ) {
411
+ o += `\\${e.charAt(n)}`;
412
+ continue;
413
+ }
414
+ if (s >= 128 || s === 45 || s === 95 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122) {
415
+ o += e.charAt(n);
416
+ continue;
417
+ }
418
+ o += `\\${e.charAt(n)}`;
419
+ }
420
+ return o;
421
+ }
422
+ const J = Rt;
423
+ function j(e = []) {
424
+ return Array.isArray(e) ? e : [e];
425
+ }
426
+ function G(e) {
427
+ return Array.from(new Set(e));
428
+ }
429
+ function Tt(e, t) {
430
+ return e.reduce((n, s) => (n.findIndex((r) => t(s, r)) === -1 && n.push(s), n), []);
431
+ }
432
+ function T(e) {
433
+ return typeof e == "string";
434
+ }
435
+ function F(e) {
436
+ return T(e) ? e : (Array.isArray(e) ? e : Object.entries(e)).filter((t) => t[1] != null);
437
+ }
438
+ function Ut(e) {
439
+ return Array.isArray(e) ? e.find((t) => !Array.isArray(t) || Array.isArray(t[0])) ? e.map((t) => F(t)) : [e] : [F(e)];
440
+ }
441
+ function Lt(e) {
442
+ return e.filter(([t, n], s) => {
443
+ if (t.startsWith("$$"))
444
+ return !1;
445
+ for (let o = s - 1; o >= 0; o--)
446
+ if (e[o][0] === t && e[o][1] === n)
447
+ return !1;
448
+ return !0;
449
+ });
450
+ }
451
+ function K(e) {
452
+ return e == null ? "" : Lt(e).map(([t, n]) => n != null ? `${t}:${n};` : void 0).filter(Boolean).join("");
453
+ }
454
+ function V(e) {
455
+ return e && typeof e == "object" && !Array.isArray(e);
456
+ }
457
+ function Ce(e, t, n = !1) {
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 V(s) && V(o) && Object.keys(o).forEach((a) => {
463
+ V(s[a]) && V(o[a]) || Array.isArray(s[a]) && Array.isArray(o[a]) ? r[a] = Ce(s[a], o[a], n) : Object.assign(r, { [a]: o[a] });
464
+ }), r;
465
+ }
466
+ function z(e) {
467
+ let t, n, s;
468
+ if (Array.isArray(e)) {
469
+ for (n = Array(t = e.length); t--; )
470
+ n[t] = (s = e[t]) && typeof s == "object" ? z(s) : s;
471
+ return n;
472
+ }
473
+ if (Object.prototype.toString.call(e) === "[object Object]") {
474
+ n = {};
475
+ for (t in e)
476
+ t === "__proto__" ? Object.defineProperty(n, t, {
477
+ value: z(e[t]),
478
+ configurable: !0,
479
+ enumerable: !0,
480
+ writable: !0
481
+ }) : n[t] = (s = e[t]) && typeof s == "object" ? z(s) : s;
482
+ return n;
483
+ }
484
+ return e;
485
+ }
486
+ function Mt(e) {
487
+ return T(e[0]);
488
+ }
489
+ function jt(e) {
490
+ return T(e[0]);
491
+ }
492
+ const ae = "$$shortcut-no-merge";
493
+ function Nt(e) {
494
+ return typeof e == "function" ? { match: e } : e;
495
+ }
496
+ function ce(e) {
497
+ return e.length === 3;
498
+ }
499
+ function It(e) {
500
+ return e != null;
501
+ }
502
+ function Dt() {
503
+ }
504
+ var Pt = Object.defineProperty, Ft = (e, t, n) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bt = (e, t, n) => (Ft(e, typeof t != "symbol" ? t + "" : t, n), n);
505
+ class Vt {
506
+ constructor() {
507
+ Bt(this, "_map", /* @__PURE__ */ new Map());
508
+ }
509
+ get(t, n) {
510
+ const s = this._map.get(t);
511
+ if (s)
512
+ return s.get(n);
513
+ }
514
+ getFallback(t, n, s) {
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
+ }
518
+ set(t, n, s) {
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
+ }
522
+ has(t, n) {
523
+ var s;
524
+ return (s = this._map.get(t)) == null ? void 0 : s.has(n);
525
+ }
526
+ delete(t, n) {
527
+ var s;
528
+ return ((s = this._map.get(t)) == null ? void 0 : s.delete(n)) || !1;
529
+ }
530
+ deleteTop(t) {
531
+ return this._map.delete(t);
532
+ }
533
+ map(t) {
534
+ return Array.from(this._map.entries()).flatMap(([n, s]) => Array.from(s.entries()).map(([o, r]) => t(r, n, o)));
535
+ }
536
+ }
537
+ var Ht = Object.defineProperty, zt = (e, t, n) => t in e ? Ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gt = (e, t, n) => (zt(e, typeof t != "symbol" ? t + "" : t, n), n);
538
+ class Ae extends Set {
539
+ constructor(t) {
540
+ super(t), Gt(this, "_map"), this._map ?? (this._map = /* @__PURE__ */ new Map());
541
+ }
542
+ add(t) {
543
+ return this._map ?? (this._map = /* @__PURE__ */ new Map()), this._map.set(t, (this._map.get(t) ?? 0) + 1), super.add(t);
544
+ }
545
+ delete(t) {
546
+ return this._map.delete(t), super.delete(t);
547
+ }
548
+ clear() {
549
+ this._map.clear(), super.clear();
550
+ }
551
+ getCount(t) {
552
+ return this._map.get(t) ?? 0;
553
+ }
554
+ setCount(t, n) {
555
+ return this._map.set(t, n), super.add(t);
556
+ }
557
+ }
558
+ function Y(e) {
559
+ return e instanceof Ae;
560
+ }
561
+ const H = {};
562
+ function qt(e = ["-", ":"]) {
563
+ const t = e.join("|");
564
+ return H[t] || (H[t] = new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`, "gm")), H[t].lastIndex = 0, H[t];
565
+ }
566
+ function Wt(e, t = ["-", ":"], n = 5) {
567
+ const s = qt(t);
568
+ let o, r = e.toString();
569
+ const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
570
+ do
571
+ o = !1, r = r.replace(
572
+ s,
573
+ (u, i, f, p, h) => {
574
+ var y;
575
+ if (!t.includes(f))
576
+ return u;
577
+ o = !0, a.add(i + f);
578
+ const g = h + i.length + f.length + 1, _ = { length: u.length, items: [] };
579
+ l.set(h, _);
580
+ for (const v of [...p.matchAll(/\S+/g)]) {
581
+ const w = g + v.index;
582
+ let S = (y = l.get(w)) == null ? void 0 : y.items;
583
+ S ? l.delete(w) : S = [{
584
+ offset: w,
585
+ length: v[0].length,
586
+ className: v[0]
587
+ }];
588
+ for (const m of S)
589
+ m.className = m.className === "~" ? i : m.className.replace(/^(!?)(.*)/, `$1${i}${f}$2`), _.items.push(m);
590
+ }
591
+ return "$".repeat(u.length);
592
+ }
593
+ ), n -= 1;
594
+ while (o && n);
595
+ let c;
596
+ if (typeof e == "string") {
597
+ c = "";
598
+ let u = 0;
599
+ for (const [i, f] of l)
600
+ c += e.slice(u, i), c += f.items.map((p) => p.className).join(" "), u = i + f.length;
601
+ c += e.slice(u);
602
+ } else {
603
+ c = e;
604
+ for (const [u, i] of l)
605
+ c.overwrite(
606
+ u,
607
+ u + i.length,
608
+ i.items.map((f) => f.className).join(" ")
609
+ );
610
+ }
611
+ return {
612
+ prefixes: Array.from(a),
613
+ hasChanged: o,
614
+ groupsByOffset: l,
615
+ // Computed lazily because MagicString's toString does a lot of work
616
+ get expanded() {
617
+ return c.toString();
618
+ }
619
+ };
620
+ }
621
+ function Jt(e, t = ["-", ":"], n = 5) {
622
+ const s = Wt(e, t, n);
623
+ return typeof e == "string" ? s.expanded : e;
624
+ }
625
+ const le = /* @__PURE__ */ new Set();
626
+ function ke(e) {
627
+ le.has(e) || (console.warn("[unocss]", e), le.add(e));
628
+ }
629
+ const Kt = /[\\:]?[\s'"`;{}]+/g;
630
+ function Yt(e) {
631
+ return e.split(Kt);
632
+ }
633
+ const Qt = {
634
+ name: "@unocss/core/extractor-split",
635
+ order: 0,
636
+ extract({ code: e }) {
637
+ return Yt(e);
638
+ }
639
+ };
640
+ function Xt() {
641
+ return {
642
+ events: {},
643
+ emit(e, ...t) {
644
+ (this.events[e] || []).forEach((n) => n(...t));
645
+ },
646
+ on(e, t) {
647
+ return (this.events[e] = this.events[e] || []).push(t), () => this.events[e] = (this.events[e] || []).filter((n) => n !== t);
648
+ }
649
+ };
650
+ }
651
+ const ee = "default", te = "preflights", Zt = "shortcuts", en = "imports", tn = {
652
+ [en]: -200,
653
+ [te]: -100,
654
+ [Zt]: -10,
655
+ [ee]: 0
656
+ };
657
+ function $e(e) {
658
+ return j(e).flatMap((t) => Array.isArray(t) ? [t] : Object.entries(t));
659
+ }
660
+ const ue = "_uno_resolved";
661
+ function nn(e) {
662
+ var s;
663
+ let t = typeof e == "function" ? e() : e;
664
+ if (ue in t)
665
+ return t;
666
+ t = { ...t }, Object.defineProperty(t, ue, {
667
+ value: !0,
668
+ enumerable: !1
669
+ });
670
+ const n = t.shortcuts ? $e(t.shortcuts) : void 0;
671
+ if (t.shortcuts = n, t.prefix || t.layer) {
672
+ const o = (r) => {
673
+ r[2] || (r[2] = {});
674
+ const a = r[2];
675
+ a.prefix == null && t.prefix && (a.prefix = j(t.prefix)), a.layer == null && t.layer && (a.layer = t.layer);
676
+ };
677
+ n == null || n.forEach(o), (s = t.rules) == null || s.forEach(o);
678
+ }
679
+ return t;
680
+ }
681
+ function Oe(e) {
682
+ const t = nn(e);
683
+ if (!t.presets)
684
+ return [t];
685
+ const n = (t.presets || []).flatMap(j).flatMap(Oe);
686
+ return [t, ...n];
687
+ }
688
+ function fe(e = {}, t = {}) {
689
+ var m, E;
690
+ const n = Object.assign({}, t, e), s = Tt((n.presets || []).flatMap(j).flatMap(Oe), (d, x) => d.name === x.name), o = [
691
+ ...s.filter((d) => d.enforce === "pre"),
692
+ ...s.filter((d) => !d.enforce),
693
+ ...s.filter((d) => d.enforce === "post")
694
+ ], r = [
695
+ ...o,
696
+ n
697
+ ], a = [...r].reverse(), l = Object.assign({}, tn, ...r.map((d) => d.layers));
698
+ function c(d) {
699
+ return G(r.flatMap((x) => j(x[d] || [])));
700
+ }
701
+ const u = c("extractors");
702
+ let i = (m = a.find((d) => d.extractorDefault !== void 0)) == null ? void 0 : m.extractorDefault;
703
+ i === void 0 && (i = Qt), i && !u.includes(i) && u.unshift(i), u.sort((d, x) => (d.order || 0) - (x.order || 0));
704
+ const f = c("rules"), p = {}, h = f.length, g = f.map((d, x) => {
705
+ var k;
706
+ if (Mt(d)) {
707
+ j(((k = d[2]) == null ? void 0 : k.prefix) || "").forEach((N) => {
708
+ p[N + d[0]] = [x, d[1], d[2], d];
709
+ });
710
+ return;
711
+ }
712
+ return [x, ...d];
713
+ }).filter(Boolean).reverse();
714
+ let _ = sn(r.map((d) => d.theme));
715
+ const y = c("extendTheme");
716
+ for (const d of y)
717
+ _ = d(_) || _;
718
+ const v = {
719
+ templates: G(r.flatMap((d) => {
720
+ var x;
721
+ return j((x = d.autocomplete) == null ? void 0 : x.templates);
722
+ })),
723
+ extractors: r.flatMap((d) => {
724
+ var x;
725
+ return j((x = d.autocomplete) == null ? void 0 : x.extractors);
726
+ }).sort((d, x) => (d.order || 0) - (x.order || 0)),
727
+ shorthands: on(r.map((d) => {
728
+ var x;
729
+ return ((x = d.autocomplete) == null ? void 0 : x.shorthands) || {};
730
+ }))
731
+ };
732
+ let w = c("separators");
733
+ w.length || (w = [":", "-"]);
734
+ const S = {
735
+ mergeSelectors: !0,
736
+ warn: !0,
737
+ sortLayers: (d) => d,
738
+ ...n,
739
+ blocklist: c("blocklist"),
740
+ presets: o,
741
+ envMode: n.envMode || "build",
742
+ shortcutsLayer: n.shortcutsLayer || "shortcuts",
743
+ layers: l,
744
+ theme: _,
745
+ rulesSize: h,
746
+ rulesDynamic: g,
747
+ rulesStaticMap: p,
748
+ preprocess: c("preprocess"),
749
+ postprocess: c("postprocess"),
750
+ preflights: c("preflights"),
751
+ autocomplete: v,
752
+ variants: c("variants").map(Nt).sort((d, x) => (d.order || 0) - (x.order || 0)),
753
+ shortcuts: $e(c("shortcuts")).reverse(),
754
+ extractors: u,
755
+ safelist: c("safelist"),
756
+ separators: w,
757
+ details: n.details ?? n.envMode === "dev"
758
+ };
759
+ for (const d of r)
760
+ (E = d == null ? void 0 : d.configResolved) == null || E.call(d, S);
761
+ return S;
762
+ }
763
+ function sn(e) {
764
+ return e.map((t) => t ? z(t) : {}).reduce((t, n) => Ce(t, n), {});
765
+ }
766
+ function on(e) {
767
+ return e.reduce((t, n) => {
768
+ const s = {};
769
+ for (const o in n) {
770
+ const r = n[o];
771
+ Array.isArray(r) ? s[o] = `(${r.join("|")})` : s[o] = r;
772
+ }
773
+ return {
774
+ ...t,
775
+ ...s
776
+ };
777
+ }, {});
778
+ }
779
+ const rn = "0.58.4";
780
+ var an = Object.defineProperty, cn = (e, t, n) => t in e ? an(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, D = (e, t, n) => (cn(e, typeof t != "symbol" ? t + "" : t, n), n);
781
+ class ln {
782
+ constructor(t = {}, n = {}) {
783
+ this.userConfig = t, this.defaults = n, D(this, "version", rn), D(this, "_cache", /* @__PURE__ */ new Map()), D(this, "config"), D(this, "blocked", /* @__PURE__ */ new Set()), D(this, "parentOrders", /* @__PURE__ */ new Map()), D(this, "events", Xt()), this.config = fe(t, n), this.events.emit("config", this.config);
784
+ }
785
+ setConfig(t, n) {
786
+ t && (n && (this.defaults = n), this.userConfig = t, this.blocked.clear(), this.parentOrders.clear(), this._cache.clear(), this.config = fe(t, this.defaults), this.events.emit("config", this.config));
787
+ }
788
+ async applyExtractors(t, n, s = /* @__PURE__ */ new Set()) {
789
+ var r;
790
+ const o = {
791
+ original: t,
792
+ code: t,
793
+ id: n,
794
+ extracted: s,
795
+ envMode: this.config.envMode
796
+ };
797
+ for (const a of this.config.extractors) {
798
+ const l = await ((r = a.extract) == null ? void 0 : r.call(a, o));
799
+ if (l)
800
+ if (Y(l) && Y(s))
801
+ for (const c of l)
802
+ s.setCount(c, s.getCount(c) + l.getCount(c));
803
+ else
804
+ for (const c of l)
805
+ s.add(c);
806
+ }
807
+ return s;
808
+ }
809
+ makeContext(t, n) {
810
+ const s = {
811
+ rawSelector: t,
812
+ currentSelector: n[1],
813
+ theme: this.config.theme,
814
+ generator: this,
815
+ variantHandlers: n[2],
816
+ constructCSS: (...o) => this.constructCustomCSS(s, ...o),
817
+ variantMatch: n
818
+ };
819
+ return s;
820
+ }
821
+ async parseToken(t, n) {
822
+ var u;
823
+ if (this.blocked.has(t))
824
+ return;
825
+ const s = `${t}${n ? ` ${n}` : ""}`;
826
+ if (this._cache.has(s))
827
+ return this._cache.get(s);
828
+ let o = t;
829
+ for (const i of this.config.preprocess)
830
+ o = i(t);
831
+ if (this.isBlocked(o)) {
832
+ this.blocked.add(t), this._cache.set(s, null);
833
+ return;
834
+ }
835
+ const r = await this.matchVariants(t, o);
836
+ if (!r || this.isBlocked(r[1])) {
837
+ this.blocked.add(t), this._cache.set(s, null);
838
+ return;
839
+ }
840
+ const a = this.makeContext(t, [n || r[0], r[1], r[2], r[3]]);
841
+ this.config.details && (a.variants = [...r[3]]);
842
+ const l = await this.expandShortcut(a.currentSelector, a), c = l ? await this.stringifyShortcuts(a.variantMatch, a, l[0], l[1]) : (u = await this.parseUtil(a.variantMatch, a)) == null ? void 0 : u.map((i) => this.stringifyUtil(i, a)).filter(It);
843
+ if (c != null && c.length)
844
+ return this._cache.set(s, c), c;
845
+ this._cache.set(s, null);
846
+ }
847
+ async generate(t, n = {}) {
848
+ const {
849
+ id: s,
850
+ scope: o,
851
+ preflights: r = !0,
852
+ safelist: a = !0,
853
+ minify: l = !1,
854
+ extendedInfo: c = !1
855
+ } = n, u = T(t) ? await this.applyExtractors(
856
+ t,
857
+ s,
858
+ c ? new Ae() : /* @__PURE__ */ new Set()
859
+ ) : Array.isArray(t) ? new Set(t) : t;
860
+ a && this.config.safelist.forEach((m) => {
861
+ u.has(m) || u.add(m);
862
+ });
863
+ const i = l ? "" : `
864
+ `, f = /* @__PURE__ */ new Set([ee]), p = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map();
865
+ let g = {};
866
+ const _ = Array.from(u).map(async (m) => {
867
+ var d;
868
+ if (p.has(m))
869
+ return;
870
+ const E = await this.parseToken(m);
871
+ if (E != null) {
872
+ p instanceof Map ? p.set(m, {
873
+ data: E,
874
+ count: Y(u) ? u.getCount(m) : -1
875
+ }) : p.add(m);
876
+ for (const x of E) {
877
+ const k = x[3] || "", U = (d = x[4]) == null ? void 0 : d.layer;
878
+ h.has(k) || h.set(k, []), h.get(k).push(x), U && f.add(U);
879
+ }
880
+ }
881
+ });
882
+ await Promise.all(_), await (async () => {
883
+ if (!r)
884
+ return;
885
+ const m = {
886
+ generator: this,
887
+ theme: this.config.theme
888
+ }, E = /* @__PURE__ */ new Set([]);
889
+ this.config.preflights.forEach(({ layer: d = te }) => {
890
+ f.add(d), E.add(d);
891
+ }), g = Object.fromEntries(
892
+ await Promise.all(Array.from(E).map(
893
+ async (d) => {
894
+ const k = (await Promise.all(
895
+ this.config.preflights.filter((U) => (U.layer || te) === d).map(async (U) => await U.getCSS(m))
896
+ )).filter(Boolean).join(i);
897
+ return [d, k];
898
+ }
899
+ ))
900
+ );
901
+ })();
902
+ const y = this.config.sortLayers(Array.from(f).sort((m, E) => (this.config.layers[m] ?? 0) - (this.config.layers[E] ?? 0) || m.localeCompare(E))), v = {}, w = (m) => {
903
+ if (v[m])
904
+ return v[m];
905
+ let E = Array.from(h).sort((x, k) => {
906
+ var U;
907
+ return (this.parentOrders.get(x[0]) ?? 0) - (this.parentOrders.get(k[0]) ?? 0) || ((U = x[0]) == null ? void 0 : U.localeCompare(k[0] || "")) || 0;
908
+ }).map(([x, k]) => {
909
+ const U = k.length, N = k.filter((O) => {
910
+ var R;
911
+ return (((R = O[4]) == null ? void 0 : R.layer) || ee) === m;
912
+ }).sort((O, R) => {
913
+ var L, b, A, C, $, M, I;
914
+ return O[0] - R[0] || (((L = O[4]) == null ? void 0 : L.sort) || 0) - (((b = R[4]) == null ? void 0 : b.sort) || 0) || (($ = (A = O[5]) == null ? void 0 : A.currentSelector) == null ? void 0 : $.localeCompare(((C = R[5]) == null ? void 0 : C.currentSelector) ?? "")) || ((M = O[1]) == null ? void 0 : M.localeCompare(R[1] || "")) || ((I = O[2]) == null ? void 0 : I.localeCompare(R[2] || "")) || 0;
915
+ }).map(([, O, R, , L, , b]) => [
916
+ [[(O && dn(O, o)) ?? "", (L == null ? void 0 : L.sort) ?? 0]],
917
+ R,
918
+ !!(b ?? (L == null ? void 0 : L.noMerge))
919
+ ]);
920
+ if (!N.length)
921
+ return;
922
+ const P = N.reverse().map(([O, R, L], b) => {
923
+ if (!L && this.config.mergeSelectors)
924
+ for (let C = b + 1; C < U; C++) {
925
+ const $ = N[C];
926
+ if ($ && !$[2] && (O && $[0] || O == null && $[0] == null) && $[1] === R)
927
+ return O && $[0] && $[0].push(...O), null;
928
+ }
929
+ const A = O ? G(O.sort((C, $) => {
930
+ var M;
931
+ return C[1] - $[1] || ((M = C[0]) == null ? void 0 : M.localeCompare($[0] || "")) || 0;
932
+ }).map((C) => C[0]).filter(Boolean)) : [];
933
+ return A.length ? `${A.join(`,${i}`)}{${R}}` : R;
934
+ }).filter(Boolean).reverse().join(i);
935
+ if (!x)
936
+ return P;
937
+ const B = x.split(" $$ ");
938
+ return `${B.join("{")}{${i}${P}${i}${"}".repeat(B.length)}`;
939
+ }).filter(Boolean).join(i);
940
+ r && (E = [g[m], E].filter(Boolean).join(i));
941
+ const d = l ? "" : `/* layer: ${m} */${i}`;
942
+ return v[m] = E ? d + E : "";
943
+ }, S = (m = y, E) => m.filter((d) => !(E != null && E.includes(d))).map((d) => w(d) || "").filter(Boolean).join(i);
944
+ return {
945
+ get css() {
946
+ return S();
947
+ },
948
+ layers: y,
949
+ matched: p,
950
+ getLayers: S,
951
+ getLayer: w
952
+ };
953
+ }
954
+ async matchVariants(t, n) {
955
+ const s = /* @__PURE__ */ new Set(), o = [];
956
+ let r = n || t, a = !0;
957
+ const l = {
958
+ rawSelector: t,
959
+ theme: this.config.theme,
960
+ generator: this
961
+ };
962
+ for (; a; ) {
963
+ a = !1;
964
+ for (const c of this.config.variants) {
965
+ if (!c.multiPass && s.has(c))
966
+ continue;
967
+ let u = await c.match(r, l);
968
+ if (u) {
969
+ if (T(u)) {
970
+ if (u === r)
971
+ continue;
972
+ u = { matcher: u };
973
+ }
974
+ r = u.matcher, o.unshift(u), s.add(c), a = !0;
975
+ break;
976
+ }
977
+ }
978
+ if (!a)
979
+ break;
980
+ if (o.length > 500)
981
+ throw new Error(`Too many variants applied to "${t}"`);
982
+ }
983
+ return [t, r, o, s];
984
+ }
985
+ applyVariants(t, n = t[4], s = t[1]) {
986
+ const r = n.slice().sort((u, i) => (u.order || 0) - (i.order || 0)).reduceRight(
987
+ (u, i) => (f) => {
988
+ var g, _;
989
+ const p = ((g = i.body) == null ? void 0 : g.call(i, f.entries)) || f.entries, h = Array.isArray(i.parent) ? i.parent : [i.parent, void 0];
990
+ return (i.handle ?? mn)({
991
+ ...f,
992
+ entries: p,
993
+ selector: ((_ = i.selector) == null ? void 0 : _.call(i, f.selector, p)) || f.selector,
994
+ parent: h[0] || f.parent,
995
+ parentOrder: h[1] || f.parentOrder,
996
+ layer: i.layer || f.layer,
997
+ sort: i.sort || f.sort
998
+ }, u);
999
+ },
1000
+ (u) => u
1001
+ )({
1002
+ prefix: "",
1003
+ selector: pn(s),
1004
+ pseudo: "",
1005
+ entries: t[2]
1006
+ }), { parent: a, parentOrder: l } = r;
1007
+ a != null && l != null && this.parentOrders.set(a, l);
1008
+ const c = {
1009
+ selector: [
1010
+ r.prefix,
1011
+ r.selector,
1012
+ r.pseudo
1013
+ ].join(""),
1014
+ entries: r.entries,
1015
+ parent: a,
1016
+ layer: r.layer,
1017
+ sort: r.sort,
1018
+ noMerge: r.noMerge
1019
+ };
1020
+ for (const u of this.config.postprocess)
1021
+ u(c);
1022
+ return c;
1023
+ }
1024
+ constructCustomCSS(t, n, s) {
1025
+ const o = F(n);
1026
+ if (T(o))
1027
+ return o;
1028
+ const { selector: r, entries: a, parent: l } = this.applyVariants([0, s || t.rawSelector, o, void 0, t.variantHandlers]), c = `${r}{${K(a)}}`;
1029
+ return l ? `${l}{${c}}` : c;
1030
+ }
1031
+ async parseUtil(t, n, s = !1, o) {
1032
+ var i;
1033
+ const [r, a, l] = T(t) ? await this.matchVariants(t) : t;
1034
+ this.config.details && (n.rules = n.rules ?? []);
1035
+ const c = this.config.rulesStaticMap[a];
1036
+ if (c && c[1] && (s || !((i = c[2]) != null && i.internal))) {
1037
+ this.config.details && n.rules.push(c[3]);
1038
+ const f = c[0], p = F(c[1]), h = c[2];
1039
+ return T(p) ? [[f, p, h]] : [[f, r, p, h, l]];
1040
+ }
1041
+ n.variantHandlers = l;
1042
+ const { rulesDynamic: u } = this.config;
1043
+ for (const [f, p, h, g] of u) {
1044
+ if (g != null && g.internal && !s)
1045
+ continue;
1046
+ let _ = a;
1047
+ if (g != null && g.prefix) {
1048
+ const S = j(g.prefix);
1049
+ if (o) {
1050
+ const m = j(o);
1051
+ if (!S.some((E) => m.includes(E)))
1052
+ continue;
1053
+ } else {
1054
+ const m = S.find((E) => a.startsWith(E));
1055
+ if (m == null)
1056
+ continue;
1057
+ _ = a.slice(m.length);
1058
+ }
1059
+ }
1060
+ const y = _.match(p);
1061
+ if (!y)
1062
+ continue;
1063
+ const v = await h(y, n);
1064
+ if (!v)
1065
+ continue;
1066
+ this.config.details && n.rules.push([p, h, g]);
1067
+ const w = Ut(v).filter((S) => S.length);
1068
+ if (w.length)
1069
+ return w.map((S) => T(S) ? [f, S, g] : [f, r, S, g, l]);
1070
+ }
1071
+ }
1072
+ stringifyUtil(t, n) {
1073
+ if (!t)
1074
+ return;
1075
+ if (ce(t))
1076
+ return [t[0], void 0, t[1], void 0, t[2], this.config.details ? n : void 0, void 0];
1077
+ const { selector: s, entries: o, parent: r, layer: a, sort: l, noMerge: c } = this.applyVariants(t), u = K(o);
1078
+ if (!u)
1079
+ return;
1080
+ const { layer: i, sort: f, ...p } = t[3] ?? {}, h = {
1081
+ ...p,
1082
+ layer: a ?? i,
1083
+ sort: l ?? f
1084
+ };
1085
+ return [t[0], s, u, r, h, this.config.details ? n : void 0, c];
1086
+ }
1087
+ async expandShortcut(t, n, s = 5) {
1088
+ var l;
1089
+ if (s === 0)
1090
+ return;
1091
+ const o = this.config.details ? (c) => {
1092
+ n.shortcuts = n.shortcuts ?? [], n.shortcuts.push(c);
1093
+ } : Dt;
1094
+ let r, a;
1095
+ for (const c of this.config.shortcuts) {
1096
+ let u = t;
1097
+ if ((l = c[2]) != null && l.prefix) {
1098
+ const f = j(c[2].prefix).find((p) => t.startsWith(p));
1099
+ if (f == null)
1100
+ continue;
1101
+ u = t.slice(f.length);
1102
+ }
1103
+ if (jt(c)) {
1104
+ if (c[0] === u) {
1105
+ r = r || c[2], a = c[1], o(c);
1106
+ break;
1107
+ }
1108
+ } else {
1109
+ const i = u.match(c[0]);
1110
+ if (i && (a = c[1](i, n)), a) {
1111
+ r = r || c[2], o(c);
1112
+ break;
1113
+ }
1114
+ }
1115
+ }
1116
+ if (T(a) && (a = Jt(a.trim()).split(/\s+/g)), !a) {
1117
+ const [c, u] = T(t) ? await this.matchVariants(t) : t;
1118
+ if (c !== u) {
1119
+ const i = await this.expandShortcut(u, n, s - 1);
1120
+ i && (a = i[0].map((f) => T(f) ? c.replace(u, f) : f));
1121
+ }
1122
+ }
1123
+ if (a)
1124
+ return [
1125
+ (await Promise.all(a.map(async (c) => {
1126
+ var u;
1127
+ return (T(c) ? (u = await this.expandShortcut(c, n, s - 1)) == null ? void 0 : u[0] : void 0) || [c];
1128
+ }))).flat(1).filter(Boolean),
1129
+ r
1130
+ ];
1131
+ }
1132
+ async stringifyShortcuts(t, n, s, o = { layer: this.config.shortcutsLayer }) {
1133
+ var i;
1134
+ const r = new Vt(), a = (await Promise.all(G(s).map(async (f) => {
1135
+ const p = T(f) ? await this.parseUtil(f, n, !0, o.prefix) : [[Number.POSITIVE_INFINITY, "{inline}", F(f), void 0, []]];
1136
+ return !p && this.config.warn && ke(`unmatched utility "${f}" in shortcut "${t[1]}"`), p || [];
1137
+ }))).flat(1).filter(Boolean).sort((f, p) => f[0] - p[0]), [l, , c] = t, u = [];
1138
+ for (const f of a) {
1139
+ if (ce(f)) {
1140
+ u.push([f[0], void 0, f[1], void 0, f[2], n, void 0]);
1141
+ continue;
1142
+ }
1143
+ const { selector: p, entries: h, parent: g, sort: _, noMerge: y } = this.applyVariants(f, [...f[4], ...c], l);
1144
+ r.getFallback(p, g, [[], f[0]])[0].push([h, !!(y ?? ((i = f[3]) == null ? void 0 : i.noMerge)), _ ?? 0]);
1145
+ }
1146
+ return u.concat(r.map(([f, p], h, g) => {
1147
+ const _ = (v, w, S) => {
1148
+ const m = Math.max(...S.map((d) => d[1])), E = S.map((d) => d[0]);
1149
+ return (v ? [E.flat(1)] : E).map((d) => {
1150
+ const x = K(d);
1151
+ if (x)
1152
+ return [p, h, x, g, { ...o, noMerge: w, sort: m }, n, void 0];
1153
+ });
1154
+ };
1155
+ return [
1156
+ [f.filter(([, v]) => v).map(([v, , w]) => [v, w]), !0],
1157
+ [f.filter(([, v]) => !v).map(([v, , w]) => [v, w]), !1]
1158
+ ].map(([v, w]) => [
1159
+ ..._(!1, w, v.filter(([S]) => S.some((m) => m[0] === ae))),
1160
+ ..._(!0, w, v.filter(([S]) => S.every((m) => m[0] !== ae)))
1161
+ ]);
1162
+ }).flat(2).filter(Boolean));
1163
+ }
1164
+ isBlocked(t) {
1165
+ return !t || this.config.blocklist.some((n) => typeof n == "function" ? n(t) : T(n) ? n === t : n.test(t));
1166
+ }
1167
+ }
1168
+ function un(e, t) {
1169
+ return new ln(e, t);
1170
+ }
1171
+ const Re = /\s\$\$\s+/g;
1172
+ function fn(e) {
1173
+ return Re.test(e);
1174
+ }
1175
+ function dn(e, t) {
1176
+ return fn(e) ? e.replace(Re, t ? ` ${t} ` : " ") : t ? `${t} ${e}` : e;
1177
+ }
1178
+ const de = /^\[(.+?)(~?=)"(.*)"\]$/;
1179
+ function pn(e) {
1180
+ return de.test(e) ? e.replace(de, (t, n, s, o) => `[${J(n)}${s}"${J(o)}"]`) : `.${J(e)}`;
1181
+ }
1182
+ function mn(e, t) {
1183
+ return t(e);
1184
+ }
1185
+ var pe = { npm_package_dependencies__vueuse_core: "^10.7.2", npm_package_dependencies__vue_devtools_schema: "workspace:*", TERM_PROGRAM: "iTerm.app", npm_package_devDependencies__types_splitpanes: "^2.2.6", FNM_LOGLEVEL: "info", NODE: "/usr/local/bin/node", INIT_CWD: "/Users/arlo/g/devtools-next/packages/client", npm_package_devDependencies_vite: "^5.0.12", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_config_shamefully_hoist: "true", npm_package_devDependencies_ohash: "^1.1.3", npm_package_devDependencies_floating_vue: "2.0.0", npm_package_dependencies__vue_devtools_shared: "workspace:^", FNM_NODE_DIST_MIRROR: "https://nodejs.org/dist", npm_package_dependencies__unocss_runtime: "^0.58.4", TMPDIR: "/var/folders/6s/79hm4q7x5f982tndmbvckmn80000gn/T/", TERM_PROGRAM_VERSION: "3.4.23", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.3", npm_package_devDependencies_unplugin_vue_components: "^0.26.0", TERM_SESSION_ID: "w0t0p0:FB106173-92F1-4DCB-88AD-60B781B92E39", 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.1DnXYu7f3x/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.0/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.0/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/packages/client/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/dist/node-gyp-bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.bin:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/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/pnpm:/Users/arlo/Library/Caches/fnm_multishells/87492_1706793599726/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", npm_package_dependencies__vue_devtools_ui: "workspace:*", npm_package_scripts_stub_lib: "vite build --config vite.lib.config.ts --watch", LaunchInstanceID: "E85F189D-F09F-474B-886B-4AAAE42FBC59", npm_package_dependencies_splitpanes: "^3.1.5", npm_package_author: "webfansplz", __CFBundleIdentifier: "com.googlecode.iterm2", 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.15", npm_package_name: "@vue/devtools-client", LANG: "zh_CN.UTF-8", ITERM_PROFILE: "Default", npm_package_devDependencies_simple_git_hooks: "^2.9.0", npm_package_devDependencies_sass: "^1.70.0", npm_package_devDependencies__unocss_reset: "^0.58.4", npm_package_scripts_build: "tsx ./scripts/pre-build.ts && (nr build:lib & vite build)", NODE_PATH: "/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.0.12_@types+node@20.11.10_sass@1.70.0/node_modules/vite/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.0.12_@types+node@20.11.10_sass@1.70.0/node_modules/vite/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/vite@5.0.12_@types+node@20.11.10_sass@1.70.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules/pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/pnpm@8.15.0/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/bin/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/@antfu+ni@0.21.12/node_modules:/Users/arlo/g/devtools-next/node_modules/.pnpm/node_modules:/Users/arlo/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/87492_1706793599726", XPC_FLAGS: "0x0", npm_package_devDependencies__unocss_core: "^0.58.4", 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.176", npm_package_dependencies_minimatch: "^9.0.3", npm_package_version: "7.0.14", XPC_SERVICE_NAME: "0", npm_package_devDependencies_unocss: "^0.58.4", npm_package_dependencies__vue_devtools_core: "workspace:^", npm_package_type: "module", SHLVL: "1", HOME: "/Users/arlo", COLORFGBG: "7;0", 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:FB106173-92F1-4DCB-88AD-60B781B92E39", 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.7.2", npm_config_user_agent: "pnpm/8.15.0 npm/? node/v20.11.0 darwin arm64", FNM_RESOLVE_ENGINES: "false", npm_package_devDependencies__types_node: "^20.11.10", npm_package_scripts_stub: "nr stub:lib & vite build --watch", LC_TERMINAL: "iTerm2", npm_package_files_0: "dist", npm_package_devDependencies_unplugin: "^1.6.0", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies_shiki: "1.0.0-beta.0", SECURITYSESSIONID: "186a3", npm_package_dependencies__unocss_preset_icons: "^0.58.4", npm_node_execpath: "/usr/local/bin/node", npm_config_shell_emulator: "true", COLORTERM: "truecolor", NODE_ENV: "production" };
1186
+ const hn = Object.freeze(
1187
+ {
1188
+ left: 0,
1189
+ top: 0,
1190
+ width: 16,
1191
+ height: 16
1192
+ }
1193
+ ), q = Object.freeze({
1194
+ rotate: 0,
1195
+ vFlip: !1,
1196
+ hFlip: !1
1197
+ }), Te = Object.freeze({
1198
+ ...hn,
1199
+ ...q
1200
+ }), _n = Object.freeze({
1201
+ ...Te,
1202
+ body: "",
1203
+ hidden: !1
1204
+ }), gn = Object.freeze({
1205
+ width: null,
1206
+ height: null
1207
+ }), Ue = Object.freeze({
1208
+ // Dimensions
1209
+ ...gn,
1210
+ // Transformations
1211
+ ...q
1212
+ });
1213
+ function yn(e, t) {
1214
+ const n = {};
1215
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
1216
+ const s = ((e.rotate || 0) + (t.rotate || 0)) % 4;
1217
+ return s && (n.rotate = s), n;
1218
+ }
1219
+ function me(e, t) {
1220
+ const n = yn(e, t);
1221
+ for (const s in _n)
1222
+ s in q ? s in e && !(s in n) && (n[s] = q[s]) : s in t ? n[s] = t[s] : s in e && (n[s] = e[s]);
1223
+ return n;
1224
+ }
1225
+ function bn(e, t) {
1226
+ const n = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
1227
+ function r(a) {
1228
+ if (n[a])
1229
+ return o[a] = [];
1230
+ if (!(a in o)) {
1231
+ o[a] = null;
1232
+ const l = s[a] && s[a].parent, c = l && r(l);
1233
+ c && (o[a] = [l].concat(c));
1234
+ }
1235
+ return o[a];
1236
+ }
1237
+ return (t || Object.keys(n).concat(Object.keys(s))).forEach(r), o;
1238
+ }
1239
+ function he(e, t, n) {
1240
+ const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
1241
+ let r = {};
1242
+ function a(l) {
1243
+ r = me(
1244
+ s[l] || o[l],
1245
+ r
1246
+ );
1247
+ }
1248
+ return a(t), n.forEach(a), me(e, r);
1249
+ }
1250
+ function vn(e, t) {
1251
+ if (e.icons[t])
1252
+ return he(e, t, []);
1253
+ const n = bn(e, [t])[t];
1254
+ return n ? he(e, t, n) : null;
1255
+ }
1256
+ const wn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Sn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1257
+ function _e(e, t, n) {
1258
+ if (t === 1)
1259
+ return e;
1260
+ if (n = n || 100, typeof e == "number")
1261
+ return Math.ceil(e * t * n) / n;
1262
+ if (typeof e != "string")
1263
+ return e;
1264
+ const s = e.split(wn);
1265
+ if (s === null || !s.length)
1266
+ return e;
1267
+ const o = [];
1268
+ let r = s.shift(), a = Sn.test(r);
1269
+ for (; ; ) {
1270
+ if (a) {
1271
+ const l = parseFloat(r);
1272
+ isNaN(l) ? o.push(r) : o.push(Math.ceil(l * t * n) / n);
1273
+ } else
1274
+ o.push(r);
1275
+ if (r = s.shift(), r === void 0)
1276
+ return o.join("");
1277
+ a = !a;
1278
+ }
1279
+ }
1280
+ function xn(e, t = "defs") {
1281
+ let n = "";
1282
+ const s = e.indexOf("<" + t);
1283
+ for (; s >= 0; ) {
1284
+ const o = e.indexOf(">", s), r = e.indexOf("</" + t);
1285
+ if (o === -1 || r === -1)
1286
+ break;
1287
+ const a = e.indexOf(">", r);
1288
+ if (a === -1)
1289
+ break;
1290
+ n += e.slice(o + 1, r).trim(), e = e.slice(0, s).trim() + e.slice(a + 1);
1291
+ }
1292
+ return {
1293
+ defs: n,
1294
+ content: e
1295
+ };
1296
+ }
1297
+ function En(e, t) {
1298
+ return e ? "<defs>" + e + "</defs>" + t : t;
1299
+ }
1300
+ function Cn(e, t, n) {
1301
+ const s = xn(e);
1302
+ return En(s.defs, t + s.content + n);
1303
+ }
1304
+ const oe = (e) => e === "unset" || e === "undefined" || e === "none";
1305
+ function An(e, t) {
1306
+ const n = {
1307
+ ...Te,
1308
+ ...e
1309
+ }, s = {
1310
+ ...Ue,
1311
+ ...t
1312
+ }, o = {
1313
+ left: n.left,
1314
+ top: n.top,
1315
+ width: n.width,
1316
+ height: n.height
1317
+ };
1318
+ let r = n.body;
1319
+ [n, s].forEach((_) => {
1320
+ const y = [], v = _.hFlip, w = _.vFlip;
1321
+ let S = _.rotate;
1322
+ v ? w ? S += 2 : (y.push(
1323
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
1324
+ ), y.push("scale(-1 1)"), o.top = o.left = 0) : w && (y.push(
1325
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
1326
+ ), y.push("scale(1 -1)"), o.top = o.left = 0);
1327
+ let m;
1328
+ switch (S < 0 && (S -= Math.floor(S / 4) * 4), S = S % 4, S) {
1329
+ case 1:
1330
+ m = o.height / 2 + o.top, y.unshift(
1331
+ "rotate(90 " + m.toString() + " " + m.toString() + ")"
1332
+ );
1333
+ break;
1334
+ case 2:
1335
+ y.unshift(
1336
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
1337
+ );
1338
+ break;
1339
+ case 3:
1340
+ m = o.width / 2 + o.left, y.unshift(
1341
+ "rotate(-90 " + m.toString() + " " + m.toString() + ")"
1342
+ );
1343
+ break;
1344
+ }
1345
+ S % 2 === 1 && (o.left !== o.top && (m = o.left, o.left = o.top, o.top = m), o.width !== o.height && (m = o.width, o.width = o.height, o.height = m)), y.length && (r = Cn(
1346
+ r,
1347
+ '<g transform="' + y.join(" ") + '">',
1348
+ "</g>"
1349
+ ));
1350
+ });
1351
+ const a = s.width, l = s.height, c = o.width, u = o.height;
1352
+ let i, f;
1353
+ a === null ? (f = l === null ? "1em" : l === "auto" ? u : l, i = _e(f, c / u)) : (i = a === "auto" ? c : a, f = l === null ? _e(i, u / c) : l === "auto" ? u : l);
1354
+ const p = {}, h = (_, y) => {
1355
+ oe(y) || (p[_] = y.toString());
1356
+ };
1357
+ h("width", i), h("height", f);
1358
+ const g = [o.left, o.top, c, u];
1359
+ return p.viewBox = g.join(" "), {
1360
+ attributes: p,
1361
+ viewBox: g,
1362
+ body: r
1363
+ };
1364
+ }
1365
+ function kn(e) {
1366
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1367
+ }
1368
+ function $n(e) {
1369
+ let t = e.startsWith("<svg>") ? e.replace("<svg>", "<svg >") : e;
1370
+ return !t.includes(" xmlns:xlink=") && t.includes(" xlink:") && (t = t.replace(
1371
+ "<svg ",
1372
+ '<svg xmlns:xlink="http://www.w3.org/1999/xlink" '
1373
+ )), t.includes(" xmlns=") || (t = t.replace(
1374
+ "<svg ",
1375
+ '<svg xmlns="http://www.w3.org/2000/svg" '
1376
+ )), kn(t);
1377
+ }
1378
+ function On(e) {
1379
+ 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();
1380
+ }
1381
+ const Rn = /\swidth\s*=\s*["']([\w.]+)["']/, Tn = /\sheight\s*=\s*["']([\w.]+)["']/, Q = /<svg\s+/;
1382
+ function Un(e, t, n) {
1383
+ const s = e.slice(0, e.indexOf(">")), o = (r, a) => {
1384
+ const l = a.exec(s), c = l != null, u = t[r];
1385
+ return !u && !oe(u) && (typeof n == "number" ? n > 0 && (t[r] = `${n}em`) : l && (t[r] = l[1])), c;
1386
+ };
1387
+ return [o("width", Rn), o("height", Tn)];
1388
+ }
1389
+ async function Le(e, t, n, s, o, r) {
1390
+ const { scale: a, addXmlNs: l = !1 } = s ?? {}, { additionalProps: c = {}, iconCustomizer: u } = (s == null ? void 0 : s.customizations) ?? {}, i = await (o == null ? void 0 : o()) ?? {};
1391
+ await (u == null ? void 0 : u(t, n, i)), Object.keys(c).forEach((_) => {
1392
+ const y = c[_];
1393
+ y != null && (i[_] = y);
1394
+ }), r == null || r(i);
1395
+ const [f, p] = Un(e, i, a);
1396
+ 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"));
1397
+ const h = Object.keys(i).map(
1398
+ (_) => _ === "width" && f || _ === "height" && p ? null : `${_}="${i[_]}"`
1399
+ ).filter((_) => _ != null);
1400
+ if (h.length && (e = e.replace(Q, `<svg ${h.join(" ")} `)), s) {
1401
+ const { defaultStyle: _, defaultClass: y } = s;
1402
+ y && !e.includes("class=") && (e = e.replace(Q, `<svg class="${y}" `)), _ && !e.includes("style=") && (e = e.replace(Q, `<svg style="${_}" `));
1403
+ }
1404
+ const g = s == null ? void 0 : s.usedProps;
1405
+ return g && (Object.keys(c).forEach((_) => {
1406
+ const y = i[_];
1407
+ y != null && (g[_] = y);
1408
+ }), typeof i.width < "u" && i.width !== null && (g.width = i.width), typeof i.height < "u" && i.height !== null && (g.height = i.height)), e;
1409
+ }
1410
+ async function ge(e, t, n, s) {
1411
+ var r;
1412
+ let o;
1413
+ try {
1414
+ if (typeof e == "function")
1415
+ o = await e(n);
1416
+ else {
1417
+ const a = e[n];
1418
+ o = typeof a == "function" ? await a() : a;
1419
+ }
1420
+ } catch (a) {
1421
+ console.warn(
1422
+ `Failed to load custom icon "${n}" in "${t}":`,
1423
+ a
1424
+ );
1425
+ return;
1426
+ }
1427
+ if (o) {
1428
+ const a = o.indexOf("<svg");
1429
+ a > 0 && (o = o.slice(a));
1430
+ const { transform: l } = (s == null ? void 0 : s.customizations) ?? {};
1431
+ return o = typeof l == "function" ? await l(o, t, n) : o, o.startsWith("<svg") ? await Le(
1432
+ ((r = s == null ? void 0 : s.customizations) == null ? void 0 : r.trimCustomSvg) === !0 ? On(o) : o,
1433
+ t,
1434
+ n,
1435
+ s,
1436
+ void 0
1437
+ ) : (console.warn(
1438
+ `Custom icon "${n}" in "${t}" is not a valid SVG`
1439
+ ), o);
1440
+ }
1441
+ }
1442
+ async function Me(e, t, n, s) {
1443
+ let o;
1444
+ const { customize: r } = (s == null ? void 0 : s.customizations) ?? {};
1445
+ for (const a of n)
1446
+ if (o = vn(e, a), o) {
1447
+ let l = { ...Ue };
1448
+ typeof r == "function" && (l = r(l));
1449
+ const {
1450
+ attributes: { width: c, height: u, ...i },
1451
+ body: f
1452
+ } = An(o, l), p = s == null ? void 0 : s.scale;
1453
+ return await Le(
1454
+ // DON'T remove space on <svg >
1455
+ `<svg >${f}</svg>`,
1456
+ t,
1457
+ a,
1458
+ s,
1459
+ () => ({ ...i }),
1460
+ (h) => {
1461
+ const g = (_, y) => {
1462
+ const v = h[_];
1463
+ let w;
1464
+ if (!oe(v)) {
1465
+ if (v)
1466
+ return;
1467
+ typeof p == "number" ? p && (w = `${p}em`) : w = y;
1468
+ }
1469
+ w ? h[_] = w : delete h[_];
1470
+ };
1471
+ g("width", c), g("height", u);
1472
+ }
1473
+ );
1474
+ }
1475
+ }
1476
+ const je = async (e, t, n) => {
1477
+ var o;
1478
+ const s = (o = n == null ? void 0 : n.customCollections) == null ? void 0 : o[e];
1479
+ if (s)
1480
+ if (typeof s == "function") {
1481
+ let r;
1482
+ try {
1483
+ r = await s(t);
1484
+ } catch (a) {
1485
+ console.warn(
1486
+ `Failed to load custom icon "${t}" in "${e}":`,
1487
+ a
1488
+ );
1489
+ return;
1490
+ }
1491
+ if (r) {
1492
+ if (typeof r == "string")
1493
+ return await ge(
1494
+ () => r,
1495
+ e,
1496
+ t,
1497
+ n
1498
+ );
1499
+ if ("icons" in r) {
1500
+ const a = [
1501
+ t,
1502
+ t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1503
+ t.replace(/([a-z])(\d+)/g, "$1-$2")
1504
+ ];
1505
+ return await Me(
1506
+ r,
1507
+ e,
1508
+ a,
1509
+ n
1510
+ );
1511
+ }
1512
+ }
1513
+ } else
1514
+ return await ge(s, e, t, n);
1515
+ };
1516
+ function Ln(e) {
1517
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1518
+ }
1519
+ var Mn = [
1520
+ "academicons",
1521
+ "akar-icons",
1522
+ "ant-design",
1523
+ "arcticons",
1524
+ "basil",
1525
+ "bi",
1526
+ "bitcoin-icons",
1527
+ "bpmn",
1528
+ "brandico",
1529
+ "bx",
1530
+ "bxl",
1531
+ "bxs",
1532
+ "bytesize",
1533
+ "carbon",
1534
+ "cbi",
1535
+ "charm",
1536
+ "ci",
1537
+ "cib",
1538
+ "cif",
1539
+ "cil",
1540
+ "circle-flags",
1541
+ "circum",
1542
+ "clarity",
1543
+ "codicon",
1544
+ "covid",
1545
+ "cryptocurrency-color",
1546
+ "cryptocurrency",
1547
+ "dashicons",
1548
+ "devicon-line",
1549
+ "devicon-original",
1550
+ "devicon-plain",
1551
+ "devicon",
1552
+ "ei",
1553
+ "el",
1554
+ "emblemicons",
1555
+ "emojione-monotone",
1556
+ "emojione-v1",
1557
+ "emojione",
1558
+ "entypo-social",
1559
+ "entypo",
1560
+ "eos-icons",
1561
+ "ep",
1562
+ "et",
1563
+ "eva",
1564
+ "f7",
1565
+ "fa-brands",
1566
+ "fa-regular",
1567
+ "fa-solid",
1568
+ "fa",
1569
+ "fa6-brands",
1570
+ "fa6-regular",
1571
+ "fa6-solid",
1572
+ "fad",
1573
+ "fe",
1574
+ "feather",
1575
+ "file-icons",
1576
+ "flag",
1577
+ "flagpack",
1578
+ "flat-color-icons",
1579
+ "flat-ui",
1580
+ "flowbite",
1581
+ "fluent-emoji-flat",
1582
+ "fluent-emoji-high-contrast",
1583
+ "fluent-emoji",
1584
+ "fluent-mdl2",
1585
+ "fluent",
1586
+ "fontelico",
1587
+ "fontisto",
1588
+ "formkit",
1589
+ "foundation",
1590
+ "fxemoji",
1591
+ "gala",
1592
+ "game-icons",
1593
+ "geo",
1594
+ "gg",
1595
+ "gis",
1596
+ "gravity-ui",
1597
+ "gridicons",
1598
+ "grommet-icons",
1599
+ "guidance",
1600
+ "healthicons",
1601
+ "heroicons-outline",
1602
+ "heroicons-solid",
1603
+ "heroicons",
1604
+ "humbleicons",
1605
+ "ic",
1606
+ "icomoon-free",
1607
+ "icon-park-outline",
1608
+ "icon-park-solid",
1609
+ "icon-park-twotone",
1610
+ "icon-park",
1611
+ "iconamoon",
1612
+ "iconoir",
1613
+ "icons8",
1614
+ "il",
1615
+ "ion",
1616
+ "iwwa",
1617
+ "jam",
1618
+ "la",
1619
+ "lets-icons",
1620
+ "line-md",
1621
+ "logos",
1622
+ "ls",
1623
+ "lucide",
1624
+ "majesticons",
1625
+ "maki",
1626
+ "map",
1627
+ "material-symbols-light",
1628
+ "material-symbols",
1629
+ "mdi-light",
1630
+ "mdi",
1631
+ "medical-icon",
1632
+ "memory",
1633
+ "meteocons",
1634
+ "mi",
1635
+ "mingcute",
1636
+ "mono-icons",
1637
+ "mynaui",
1638
+ "nimbus",
1639
+ "nonicons",
1640
+ "noto-v1",
1641
+ "noto",
1642
+ "octicon",
1643
+ "oi",
1644
+ "ooui",
1645
+ "openmoji",
1646
+ "oui",
1647
+ "pajamas",
1648
+ "pepicons-pencil",
1649
+ "pepicons-pop",
1650
+ "pepicons-print",
1651
+ "pepicons",
1652
+ "ph",
1653
+ "pixelarticons",
1654
+ "prime",
1655
+ "ps",
1656
+ "quill",
1657
+ "radix-icons",
1658
+ "raphael",
1659
+ "ri",
1660
+ "si-glyph",
1661
+ "simple-icons",
1662
+ "simple-line-icons",
1663
+ "skill-icons",
1664
+ "solar",
1665
+ "streamline-emojis",
1666
+ "streamline",
1667
+ "subway",
1668
+ "svg-spinners",
1669
+ "system-uicons",
1670
+ "tabler",
1671
+ "tdesign",
1672
+ "teenyicons",
1673
+ "topcoat",
1674
+ "twemoji",
1675
+ "typcn",
1676
+ "uil",
1677
+ "uim",
1678
+ "uis",
1679
+ "uit",
1680
+ "uiw",
1681
+ "vaadin",
1682
+ "vs",
1683
+ "vscode-icons",
1684
+ "websymbol",
1685
+ "whh",
1686
+ "wi",
1687
+ "wpf",
1688
+ "zmdi",
1689
+ "zondicons"
1690
+ ];
1691
+ const jn = /* @__PURE__ */ Ln(Mn), Nn = 3;
1692
+ function In(e) {
1693
+ return (t = {}) => {
1694
+ const {
1695
+ scale: n = 1,
1696
+ mode: s = "auto",
1697
+ prefix: o = "i-",
1698
+ warn: r = !1,
1699
+ collections: a,
1700
+ extraProperties: l = {},
1701
+ customizations: c = {},
1702
+ autoInstall: u = !1,
1703
+ layer: i = "icons",
1704
+ unit: f
1705
+ } = t, p = Dn(), h = {
1706
+ addXmlNs: !0,
1707
+ scale: n,
1708
+ customCollections: a,
1709
+ autoInstall: u,
1710
+ // avoid warn from @iconify/loader: we'll warn below if not found
1711
+ warn: void 0,
1712
+ customizations: {
1713
+ ...c,
1714
+ additionalProps: { ...l },
1715
+ trimCustomSvg: !0,
1716
+ async iconCustomizer(_, y, v) {
1717
+ var w;
1718
+ await ((w = c.iconCustomizer) == null ? void 0 : w.call(c, _, y, v)), f && (v.width || (v.width = `${n}${f}`), v.height || (v.height = `${n}${f}`));
1719
+ }
1720
+ }
1721
+ };
1722
+ let g;
1723
+ return {
1724
+ name: "@unocss/preset-icons",
1725
+ enforce: "pre",
1726
+ options: t,
1727
+ layers: { icons: -30 },
1728
+ rules: [[
1729
+ /^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
1730
+ async ([_, y, v = s]) => {
1731
+ let w = "", S = "", m;
1732
+ g = g || await e(t);
1733
+ const E = {};
1734
+ if (y.includes(":"))
1735
+ [w, S] = y.split(":"), m = await g(w, S, { ...h, usedProps: E });
1736
+ else {
1737
+ const x = y.split(/-/g);
1738
+ for (let k = Nn; k >= 1 && (w = x.slice(0, k).join("-"), S = x.slice(k).join("-"), m = await g(w, S, { ...h, usedProps: E }), !m); k--)
1739
+ ;
1740
+ }
1741
+ if (!m) {
1742
+ r && !p.isESLint && ke(`failed to load icon "${_}"`);
1743
+ return;
1744
+ }
1745
+ const d = `url("data:image/svg+xml;utf8,${$n(m)}")`;
1746
+ return v === "auto" && (v = m.includes("currentColor") ? "mask" : "bg"), v === "mask" ? {
1747
+ "--un-icon": d,
1748
+ "-webkit-mask": "var(--un-icon) no-repeat",
1749
+ mask: "var(--un-icon) no-repeat",
1750
+ "-webkit-mask-size": "100% 100%",
1751
+ "mask-size": "100% 100%",
1752
+ "background-color": "currentColor",
1753
+ // for Safari https://github.com/elk-zone/elk/pull/264
1754
+ color: "inherit",
1755
+ ...E
1756
+ } : {
1757
+ background: `${d} no-repeat`,
1758
+ "background-size": "100% 100%",
1759
+ "background-color": "transparent",
1760
+ ...E
1761
+ };
1762
+ },
1763
+ { layer: i, prefix: o }
1764
+ ]]
1765
+ };
1766
+ };
1767
+ }
1768
+ function Ne(e, t) {
1769
+ const n = /* @__PURE__ */ new Map();
1770
+ function s(o) {
1771
+ if (jn.includes(o))
1772
+ return n.has(o) || n.set(o, e(`${t}@iconify-json/${o}/icons.json`)), n.get(o);
1773
+ }
1774
+ return async (o, r, a) => {
1775
+ let l = await je(o, r, a);
1776
+ if (l)
1777
+ return l;
1778
+ const c = await s(o);
1779
+ if (c) {
1780
+ const u = [
1781
+ r,
1782
+ r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
1783
+ r.replace(/([a-z])(\d+)/g, "$1-$2")
1784
+ ];
1785
+ l = await Me(c, o, u, a);
1786
+ }
1787
+ return l;
1788
+ };
1789
+ }
1790
+ function Dn() {
1791
+ const e = typeof process < "u" && process.stdout && !process.versions.deno, t = e && !!pe.VSCODE_CWD, n = e && !!pe.ESLINT;
1792
+ return {
1793
+ isNode: e,
1794
+ isVSCode: t,
1795
+ isESLint: n
1796
+ };
1797
+ }
1798
+ function Pn(e) {
1799
+ return Ne(Ot, e);
1800
+ }
1801
+ const Fn = In(async (e) => {
1802
+ const t = e == null ? void 0 : e.customFetch, n = e == null ? void 0 : e.cdn;
1803
+ return t && n ? Ne(t, n) : n ? Pn(n) : je;
1804
+ });
1805
+ function Bn(e) {
1806
+ return e.replace(/-(\w)/g, (t, n) => n ? n.toUpperCase() : "");
1807
+ }
1808
+ function ye(e) {
1809
+ return e.charAt(0).toUpperCase() + e.slice(1);
1810
+ }
1811
+ function be(e) {
1812
+ return e.replace(/(?:^|\B)([A-Z])/g, "-$1").toLowerCase();
1813
+ }
1814
+ var ve = ["Webkit", "Moz", "ms"];
1815
+ function Vn(e) {
1816
+ const t = {};
1817
+ function n(s) {
1818
+ const o = t[s];
1819
+ if (o)
1820
+ return o;
1821
+ let r = Bn(s);
1822
+ if (r !== "filter" && r in e)
1823
+ return t[s] = be(r);
1824
+ r = ye(r);
1825
+ for (let a = 0; a < ve.length; a++) {
1826
+ const l = `${ve[a]}${r}`;
1827
+ if (l in e)
1828
+ return t[s] = be(ye(l));
1829
+ }
1830
+ return s;
1831
+ }
1832
+ return ({ entries: s }) => s.forEach((o) => {
1833
+ o[0].startsWith("--") || (o[0] = n(o[0]));
1834
+ });
1835
+ }
1836
+ function Hn(e) {
1837
+ return e.replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<");
1838
+ }
1839
+ function zn(e = {}) {
1840
+ var O, R, L;
1841
+ if (typeof window > "u") {
1842
+ console.warn("@unocss/runtime been used in non-browser environment, skipped.");
1843
+ return;
1844
+ }
1845
+ 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";
1846
+ r.autoPrefix && (a.postprocess = j(a.postprocess)).unshift(Vn(n.createElement("div").style)), (O = r.configResolved) == null || O.call(r, o, a);
1847
+ const c = un(o, a), u = (b) => r.inject ? r.inject(b) : s().prepend(b), i = () => r.rootElement ? r.rootElement() : n.body, f = /* @__PURE__ */ new Map();
1848
+ let p = !0, h = /* @__PURE__ */ new Set(), g, _, y = [];
1849
+ const v = () => new Promise((b) => {
1850
+ y.push(b), _ != null && clearTimeout(_), _ = setTimeout(() => m().then(() => {
1851
+ const A = y;
1852
+ y = [], A.forEach((C) => C());
1853
+ }), 0);
1854
+ });
1855
+ function w(b) {
1856
+ if (b.nodeType !== 1)
1857
+ return;
1858
+ const A = b;
1859
+ A.hasAttribute(l) && A.removeAttribute(l), A.querySelectorAll(`[${l}]`).forEach((C) => {
1860
+ C.removeAttribute(l);
1861
+ });
1862
+ }
1863
+ function S(b, A) {
1864
+ let C = f.get(b);
1865
+ if (!C)
1866
+ if (C = n.createElement("style"), C.setAttribute("data-unocss-runtime-layer", b), f.set(b, C), A == null)
1867
+ u(C);
1868
+ else {
1869
+ const $ = S(A), M = $.parentNode;
1870
+ M ? M.insertBefore(C, $.nextSibling) : u(C);
1871
+ }
1872
+ return C;
1873
+ }
1874
+ async function m() {
1875
+ const b = await c.generate(h);
1876
+ return b.layers.reduce((A, C) => (S(C, A).innerHTML = b.getLayer(C) ?? "", C), void 0), h = b.matched, {
1877
+ ...b,
1878
+ getStyleElement: (A) => f.get(A),
1879
+ getStyleElements: () => f
1880
+ };
1881
+ }
1882
+ async function E(b) {
1883
+ const A = h.size;
1884
+ await c.applyExtractors(b, void 0, h), A !== h.size && await v();
1885
+ }
1886
+ async function d(b = i()) {
1887
+ const A = b && b.outerHTML;
1888
+ A && (await E(`${A} ${Hn(A)}`), w(s()), w(b));
1889
+ }
1890
+ const x = new MutationObserver((b) => {
1891
+ p || b.forEach(async (A) => {
1892
+ if (A.target.nodeType !== 1)
1893
+ return;
1894
+ const C = A.target;
1895
+ for (const $ of f)
1896
+ if (C === $[1])
1897
+ return;
1898
+ if (A.type === "childList")
1899
+ A.addedNodes.forEach(async ($) => {
1900
+ if ($.nodeType !== 1)
1901
+ return;
1902
+ const M = $;
1903
+ g && !g(M) || (await E(M.outerHTML), w(M));
1904
+ });
1905
+ else {
1906
+ if (g && !g(C))
1907
+ return;
1908
+ if (A.attributeName !== l) {
1909
+ const $ = Array.from(C.attributes).map((I) => I.value ? `${I.name}="${I.value}"` : I.name).join(" "), M = `<${C.tagName.toLowerCase()} ${$}>`;
1910
+ await E(M);
1911
+ }
1912
+ C.hasAttribute(l) && C.removeAttribute(l);
1913
+ }
1914
+ });
1915
+ });
1916
+ let k = !1;
1917
+ function U() {
1918
+ var A, C;
1919
+ if (k)
1920
+ return;
1921
+ const b = (A = r.observer) != null && A.target ? r.observer.target() : i();
1922
+ b && (x.observe(b, {
1923
+ childList: !0,
1924
+ subtree: !0,
1925
+ attributes: !0,
1926
+ attributeFilter: (C = r.observer) == null ? void 0 : C.attributeFilter
1927
+ }), k = !0);
1928
+ }
1929
+ function N() {
1930
+ r.bypassDefined && Gn(c.blocked), d(), U();
1931
+ }
1932
+ function P() {
1933
+ n.readyState === "loading" ? t.addEventListener("DOMContentLoaded", N) : N();
1934
+ }
1935
+ const B = t.__unocss_runtime = t.__unocss_runtime = {
1936
+ version: c.version,
1937
+ uno: c,
1938
+ async extract(b) {
1939
+ T(b) || (b.forEach((A) => h.add(A)), b = ""), await E(b);
1940
+ },
1941
+ extractAll: d,
1942
+ inspect(b) {
1943
+ g = b;
1944
+ },
1945
+ toggleObserver(b) {
1946
+ b === void 0 ? p = !p : p = !!b, !k && !p && P();
1947
+ },
1948
+ update: m,
1949
+ presets: ((R = t.__unocss_runtime) == null ? void 0 : R.presets) ?? {}
1950
+ };
1951
+ ((L = r.ready) == null ? void 0 : L.call(r, B)) !== !1 && (p = !1, P());
1952
+ }
1953
+ function Gn(e = /* @__PURE__ */ new Set()) {
1954
+ for (let t = 0; t < document.styleSheets.length; t++) {
1955
+ const n = document.styleSheets[t];
1956
+ let s;
1957
+ try {
1958
+ if (s = n.cssRules || n.rules, !s)
1959
+ continue;
1960
+ Array.from(s).flatMap((o) => {
1961
+ var r;
1962
+ return ((r = o.selectorText) == null ? void 0 : r.split(/,/g)) || [];
1963
+ }).forEach((o) => {
1964
+ o && (o = o.trim(), o.startsWith(".") && (o = o.slice(1)), e.add(o));
1965
+ });
1966
+ } catch {
1967
+ continue;
1968
+ }
1969
+ }
1970
+ return e;
1971
+ }
1972
+ zn({
1973
+ defaults: {
1974
+ presets: [
1975
+ Fn({
1976
+ prefix: ["i-", ""],
1977
+ collections: {},
1978
+ cdn: "https://esm.sh/",
1979
+ scale: 1.2,
1980
+ extraProperties: {
1981
+ display: "inline-block",
1982
+ "vertical-align": "middle"
1983
+ }
1984
+ })
1985
+ ]
1986
+ },
1987
+ bypassDefined: !0
1988
+ });