@voidzero-dev/vitepress-theme 0.1.33 → 0.1.34

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 (70) hide show
  1. package/dist/index27.js +1 -1
  2. package/dist/index3.js +3 -3
  3. package/dist/index30.js +8 -8
  4. package/dist/index34.js +12 -12
  5. package/dist/index36.js +7 -7
  6. package/dist/index38.js +16 -17
  7. package/dist/index4.js +6 -6
  8. package/dist/index40.js +26 -2
  9. package/dist/index41.js +18 -14
  10. package/dist/index42.js +16 -20
  11. package/dist/index43.js +16 -16
  12. package/dist/index44.js +13 -13
  13. package/dist/index45.js +14 -14
  14. package/dist/index46.js +2 -26
  15. package/dist/index47.js +25 -2
  16. package/dist/index48.js +1 -1
  17. package/dist/index49.js +2 -2
  18. package/dist/index50.js +2 -2
  19. package/dist/index51.js +49 -2
  20. package/dist/index52.js +7207 -2
  21. package/dist/index53.js +2 -2
  22. package/dist/index54.js +2 -2
  23. package/dist/index55.js +2 -2
  24. package/dist/index56.js +1 -1
  25. package/dist/index57.js +2 -2
  26. package/dist/index58.js +2 -18
  27. package/dist/index59.js +2 -18
  28. package/dist/index6.js +27 -27
  29. package/dist/index60.js +2 -18
  30. package/dist/index61.js +2 -2
  31. package/dist/index62.js +18 -49
  32. package/dist/index63.js +19 -44
  33. package/dist/index64.js +18 -2587
  34. package/dist/index65.js +2 -51
  35. package/dist/index66.js +2 -7207
  36. package/dist/index67.js +2 -14
  37. package/dist/index68.js +2 -34
  38. package/dist/index69.js +1 -1
  39. package/dist/index7.js +1 -1
  40. package/dist/index70.js +34 -2
  41. package/dist/index71.js +2 -2
  42. package/dist/index72.js +2 -2
  43. package/dist/index73.js +1 -1
  44. package/dist/index74.js +2 -2
  45. package/dist/index75.js +2 -2
  46. package/dist/index76.js +1 -1
  47. package/dist/index77.js +1 -1
  48. package/dist/index78.js +5324 -2
  49. package/dist/index79.js +2 -2
  50. package/dist/index8.js +2 -2
  51. package/dist/index80.js +2 -22
  52. package/dist/index81.js +2 -124
  53. package/dist/index82.js +2 -2
  54. package/dist/index83.js +2 -439
  55. package/dist/index84.js +2 -1735
  56. package/dist/index85.js +1 -1
  57. package/dist/index86.js +4 -2
  58. package/dist/index87.js +1735 -2
  59. package/dist/index88.js +5 -2
  60. package/dist/index89.js +1 -1
  61. package/dist/index90.js +446 -2
  62. package/dist/index91.js +314 -32
  63. package/dist/index92.js +2 -1202
  64. package/package.json +1 -1
  65. package/dist/index93.js +0 -448
  66. package/dist/index94.js +0 -7
  67. package/dist/index95.js +0 -4
  68. package/dist/index96.js +0 -317
  69. package/dist/index97.js +0 -4
  70. package/dist/index98.js +0 -6
package/dist/index88.js CHANGED
@@ -1,4 +1,7 @@
1
- import f from "./index44.js";
1
+ import { getDefaultExportFromCjs as r } from "./index86.js";
2
+ import { __require as e } from "./index91.js";
3
+ var o = e();
4
+ const a = /* @__PURE__ */ r(o);
2
5
  export {
3
- f as default
6
+ a as default
4
7
  };
package/dist/index89.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index45.js";
1
+ import f from "./index70.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/index90.js CHANGED
@@ -1,4 +1,448 @@
1
- import f from "./index46.js";
1
+ /*!
2
+ * @kurkle/color v0.3.4
3
+ * https://github.com/kurkle/color#readme
4
+ * (c) 2024 Jukka Kurkela
5
+ * Released under the MIT License
6
+ */
7
+ function m(f) {
8
+ return f + 0.5 | 0;
9
+ }
10
+ const b = (f, e, t) => Math.max(Math.min(f, t), e);
11
+ function l(f) {
12
+ return b(m(f * 2.55), 0, 255);
13
+ }
14
+ function d(f) {
15
+ return b(m(f * 255), 0, 255);
16
+ }
17
+ function o(f) {
18
+ return b(m(f / 2.55) / 100, 0, 1);
19
+ }
20
+ function X(f) {
21
+ return b(m(f * 100), 0, 100);
22
+ }
23
+ const i = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, w = [..."0123456789ABCDEF"], Z = (f) => w[f & 15], A = (f) => w[(f & 240) >> 4] + w[f & 15], y = (f) => (f & 240) >> 4 === (f & 15), U = (f) => y(f.r) && y(f.g) && y(f.b) && y(f.a);
24
+ function V(f) {
25
+ var e = f.length, t;
26
+ return f[0] === "#" && (e === 4 || e === 5 ? t = {
27
+ r: 255 & i[f[1]] * 17,
28
+ g: 255 & i[f[2]] * 17,
29
+ b: 255 & i[f[3]] * 17,
30
+ a: e === 5 ? i[f[4]] * 17 : 255
31
+ } : (e === 7 || e === 9) && (t = {
32
+ r: i[f[1]] << 4 | i[f[2]],
33
+ g: i[f[3]] << 4 | i[f[4]],
34
+ b: i[f[5]] << 4 | i[f[6]],
35
+ a: e === 9 ? i[f[7]] << 4 | i[f[8]] : 255
36
+ })), t;
37
+ }
38
+ const H = (f, e) => f < 255 ? e(f) : "";
39
+ function W(f) {
40
+ var e = U(f) ? Z : A;
41
+ return f ? "#" + e(f.r) + e(f.g) + e(f.b) + H(f.a, e) : void 0;
42
+ }
43
+ const q = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
44
+ function $(f, e, t) {
45
+ const n = e * Math.min(t, 1 - t), r = (a, s = (a + f / 30) % 12) => t - n * Math.max(Math.min(s - 3, 9 - s, 1), -1);
46
+ return [r(0), r(8), r(4)];
47
+ }
48
+ function L(f, e, t) {
49
+ const n = (r, a = (r + f / 60) % 6) => t - t * e * Math.max(Math.min(a, 4 - a, 1), 0);
50
+ return [n(5), n(3), n(1)];
51
+ }
52
+ function j(f, e, t) {
53
+ const n = $(f, 1, 0.5);
54
+ let r;
55
+ for (e + t > 1 && (r = 1 / (e + t), e *= r, t *= r), r = 0; r < 3; r++)
56
+ n[r] *= 1 - e - t, n[r] += e;
57
+ return n;
58
+ }
59
+ function N(f, e, t, n, r) {
60
+ return f === r ? (e - t) / n + (e < t ? 6 : 0) : e === r ? (t - f) / n + 2 : (f - e) / n + 4;
61
+ }
62
+ function _(f) {
63
+ const t = f.r / 255, n = f.g / 255, r = f.b / 255, a = Math.max(t, n, r), s = Math.min(t, n, r), c = (a + s) / 2;
64
+ let g, h, x;
65
+ return a !== s && (x = a - s, h = c > 0.5 ? x / (2 - a - s) : x / (a + s), g = N(t, n, r, x, a), g = g * 60 + 0.5), [g | 0, h || 0, c];
66
+ }
67
+ function M(f, e, t, n) {
68
+ return (Array.isArray(e) ? f(e[0], e[1], e[2]) : f(e, t, n)).map(d);
69
+ }
70
+ function S(f, e, t) {
71
+ return M($, f, e, t);
72
+ }
73
+ function K(f, e, t) {
74
+ return M(j, f, e, t);
75
+ }
76
+ function B(f, e, t) {
77
+ return M(L, f, e, t);
78
+ }
79
+ function P(f) {
80
+ return (f % 360 + 360) % 360;
81
+ }
82
+ function Q(f) {
83
+ const e = q.exec(f);
84
+ let t = 255, n;
85
+ if (!e)
86
+ return;
87
+ e[5] !== n && (t = e[6] ? l(+e[5]) : d(+e[5]));
88
+ const r = P(+e[2]), a = +e[3] / 100, s = +e[4] / 100;
89
+ return e[1] === "hwb" ? n = K(r, a, s) : e[1] === "hsv" ? n = B(r, a, s) : n = S(r, a, s), {
90
+ r: n[0],
91
+ g: n[1],
92
+ b: n[2],
93
+ a: t
94
+ };
95
+ }
96
+ function C(f, e) {
97
+ var t = _(f);
98
+ t[0] = P(t[0] + e), t = S(t), f.r = t[0], f.g = t[1], f.b = t[2];
99
+ }
100
+ function D(f) {
101
+ if (!f)
102
+ return;
103
+ const e = _(f), t = e[0], n = X(e[1]), r = X(e[2]);
104
+ return f.a < 255 ? `hsla(${t}, ${n}%, ${r}%, ${o(f.a)})` : `hsl(${t}, ${n}%, ${r}%)`;
105
+ }
106
+ const O = {
107
+ x: "dark",
108
+ Z: "light",
109
+ Y: "re",
110
+ X: "blu",
111
+ W: "gr",
112
+ V: "medium",
113
+ U: "slate",
114
+ A: "ee",
115
+ T: "ol",
116
+ S: "or",
117
+ B: "ra",
118
+ C: "lateg",
119
+ D: "ights",
120
+ R: "in",
121
+ Q: "turquois",
122
+ E: "hi",
123
+ P: "ro",
124
+ O: "al",
125
+ N: "le",
126
+ M: "de",
127
+ L: "yello",
128
+ F: "en",
129
+ K: "ch",
130
+ G: "arks",
131
+ H: "ea",
132
+ I: "ightg",
133
+ J: "wh"
134
+ }, E = {
135
+ OiceXe: "f0f8ff",
136
+ antiquewEte: "faebd7",
137
+ aqua: "ffff",
138
+ aquamarRe: "7fffd4",
139
+ azuY: "f0ffff",
140
+ beige: "f5f5dc",
141
+ bisque: "ffe4c4",
142
+ black: "0",
143
+ blanKedOmond: "ffebcd",
144
+ Xe: "ff",
145
+ XeviTet: "8a2be2",
146
+ bPwn: "a52a2a",
147
+ burlywood: "deb887",
148
+ caMtXe: "5f9ea0",
149
+ KartYuse: "7fff00",
150
+ KocTate: "d2691e",
151
+ cSO: "ff7f50",
152
+ cSnflowerXe: "6495ed",
153
+ cSnsilk: "fff8dc",
154
+ crimson: "dc143c",
155
+ cyan: "ffff",
156
+ xXe: "8b",
157
+ xcyan: "8b8b",
158
+ xgTMnPd: "b8860b",
159
+ xWay: "a9a9a9",
160
+ xgYF: "6400",
161
+ xgYy: "a9a9a9",
162
+ xkhaki: "bdb76b",
163
+ xmagFta: "8b008b",
164
+ xTivegYF: "556b2f",
165
+ xSange: "ff8c00",
166
+ xScEd: "9932cc",
167
+ xYd: "8b0000",
168
+ xsOmon: "e9967a",
169
+ xsHgYF: "8fbc8f",
170
+ xUXe: "483d8b",
171
+ xUWay: "2f4f4f",
172
+ xUgYy: "2f4f4f",
173
+ xQe: "ced1",
174
+ xviTet: "9400d3",
175
+ dAppRk: "ff1493",
176
+ dApskyXe: "bfff",
177
+ dimWay: "696969",
178
+ dimgYy: "696969",
179
+ dodgerXe: "1e90ff",
180
+ fiYbrick: "b22222",
181
+ flSOwEte: "fffaf0",
182
+ foYstWAn: "228b22",
183
+ fuKsia: "ff00ff",
184
+ gaRsbSo: "dcdcdc",
185
+ ghostwEte: "f8f8ff",
186
+ gTd: "ffd700",
187
+ gTMnPd: "daa520",
188
+ Way: "808080",
189
+ gYF: "8000",
190
+ gYFLw: "adff2f",
191
+ gYy: "808080",
192
+ honeyMw: "f0fff0",
193
+ hotpRk: "ff69b4",
194
+ RdianYd: "cd5c5c",
195
+ Rdigo: "4b0082",
196
+ ivSy: "fffff0",
197
+ khaki: "f0e68c",
198
+ lavFMr: "e6e6fa",
199
+ lavFMrXsh: "fff0f5",
200
+ lawngYF: "7cfc00",
201
+ NmoncEffon: "fffacd",
202
+ ZXe: "add8e6",
203
+ ZcSO: "f08080",
204
+ Zcyan: "e0ffff",
205
+ ZgTMnPdLw: "fafad2",
206
+ ZWay: "d3d3d3",
207
+ ZgYF: "90ee90",
208
+ ZgYy: "d3d3d3",
209
+ ZpRk: "ffb6c1",
210
+ ZsOmon: "ffa07a",
211
+ ZsHgYF: "20b2aa",
212
+ ZskyXe: "87cefa",
213
+ ZUWay: "778899",
214
+ ZUgYy: "778899",
215
+ ZstAlXe: "b0c4de",
216
+ ZLw: "ffffe0",
217
+ lime: "ff00",
218
+ limegYF: "32cd32",
219
+ lRF: "faf0e6",
220
+ magFta: "ff00ff",
221
+ maPon: "800000",
222
+ VaquamarRe: "66cdaa",
223
+ VXe: "cd",
224
+ VScEd: "ba55d3",
225
+ VpurpN: "9370db",
226
+ VsHgYF: "3cb371",
227
+ VUXe: "7b68ee",
228
+ VsprRggYF: "fa9a",
229
+ VQe: "48d1cc",
230
+ VviTetYd: "c71585",
231
+ midnightXe: "191970",
232
+ mRtcYam: "f5fffa",
233
+ mistyPse: "ffe4e1",
234
+ moccasR: "ffe4b5",
235
+ navajowEte: "ffdead",
236
+ navy: "80",
237
+ Tdlace: "fdf5e6",
238
+ Tive: "808000",
239
+ TivedBb: "6b8e23",
240
+ Sange: "ffa500",
241
+ SangeYd: "ff4500",
242
+ ScEd: "da70d6",
243
+ pOegTMnPd: "eee8aa",
244
+ pOegYF: "98fb98",
245
+ pOeQe: "afeeee",
246
+ pOeviTetYd: "db7093",
247
+ papayawEp: "ffefd5",
248
+ pHKpuff: "ffdab9",
249
+ peru: "cd853f",
250
+ pRk: "ffc0cb",
251
+ plum: "dda0dd",
252
+ powMrXe: "b0e0e6",
253
+ purpN: "800080",
254
+ YbeccapurpN: "663399",
255
+ Yd: "ff0000",
256
+ Psybrown: "bc8f8f",
257
+ PyOXe: "4169e1",
258
+ saddNbPwn: "8b4513",
259
+ sOmon: "fa8072",
260
+ sandybPwn: "f4a460",
261
+ sHgYF: "2e8b57",
262
+ sHshell: "fff5ee",
263
+ siFna: "a0522d",
264
+ silver: "c0c0c0",
265
+ skyXe: "87ceeb",
266
+ UXe: "6a5acd",
267
+ UWay: "708090",
268
+ UgYy: "708090",
269
+ snow: "fffafa",
270
+ sprRggYF: "ff7f",
271
+ stAlXe: "4682b4",
272
+ tan: "d2b48c",
273
+ teO: "8080",
274
+ tEstN: "d8bfd8",
275
+ tomato: "ff6347",
276
+ Qe: "40e0d0",
277
+ viTet: "ee82ee",
278
+ JHt: "f5deb3",
279
+ wEte: "ffffff",
280
+ wEtesmoke: "f5f5f5",
281
+ Lw: "ffff00",
282
+ LwgYF: "9acd32"
283
+ };
284
+ function v() {
285
+ const f = {}, e = Object.keys(E), t = Object.keys(O);
286
+ let n, r, a, s, c;
287
+ for (n = 0; n < e.length; n++) {
288
+ for (s = c = e[n], r = 0; r < t.length; r++)
289
+ a = t[r], c = c.replace(a, O[a]);
290
+ a = parseInt(E[s], 16), f[c] = [a >> 16 & 255, a >> 8 & 255, a & 255];
291
+ }
292
+ return f;
293
+ }
294
+ let F;
295
+ function G(f) {
296
+ F || (F = v(), F.transparent = [0, 0, 0, 0]);
297
+ const e = F[f.toLowerCase()];
298
+ return e && {
299
+ r: e[0],
300
+ g: e[1],
301
+ b: e[2],
302
+ a: e.length === 4 ? e[3] : 255
303
+ };
304
+ }
305
+ const I = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
306
+ function J(f) {
307
+ const e = I.exec(f);
308
+ let t = 255, n, r, a;
309
+ if (e) {
310
+ if (e[7] !== n) {
311
+ const s = +e[7];
312
+ t = e[8] ? l(s) : b(s * 255, 0, 255);
313
+ }
314
+ return n = +e[1], r = +e[3], a = +e[5], n = 255 & (e[2] ? l(n) : b(n, 0, 255)), r = 255 & (e[4] ? l(r) : b(r, 0, 255)), a = 255 & (e[6] ? l(a) : b(a, 0, 255)), {
315
+ r: n,
316
+ g: r,
317
+ b: a,
318
+ a: t
319
+ };
320
+ }
321
+ }
322
+ function z(f) {
323
+ return f && (f.a < 255 ? `rgba(${f.r}, ${f.g}, ${f.b}, ${o(f.a)})` : `rgb(${f.r}, ${f.g}, ${f.b})`);
324
+ }
325
+ const Y = (f) => f <= 31308e-7 ? f * 12.92 : Math.pow(f, 1 / 2.4) * 1.055 - 0.055, u = (f) => f <= 0.04045 ? f / 12.92 : Math.pow((f + 0.055) / 1.055, 2.4);
326
+ function ee(f, e, t) {
327
+ const n = u(o(f.r)), r = u(o(f.g)), a = u(o(f.b));
328
+ return {
329
+ r: d(Y(n + t * (u(o(e.r)) - n))),
330
+ g: d(Y(r + t * (u(o(e.g)) - r))),
331
+ b: d(Y(a + t * (u(o(e.b)) - a))),
332
+ a: f.a + t * (e.a - f.a)
333
+ };
334
+ }
335
+ function p(f, e, t) {
336
+ if (f) {
337
+ let n = _(f);
338
+ n[e] = Math.max(0, Math.min(n[e] + n[e] * t, e === 0 ? 360 : 1)), n = S(n), f.r = n[0], f.g = n[1], f.b = n[2];
339
+ }
340
+ }
341
+ function T(f, e) {
342
+ return f && Object.assign(e || {}, f);
343
+ }
344
+ function R(f) {
345
+ var e = { r: 0, g: 0, b: 0, a: 255 };
346
+ return Array.isArray(f) ? f.length >= 3 && (e = { r: f[0], g: f[1], b: f[2], a: 255 }, f.length > 3 && (e.a = d(f[3]))) : (e = T(f, { r: 0, g: 0, b: 0, a: 1 }), e.a = d(e.a)), e;
347
+ }
348
+ function fe(f) {
349
+ return f.charAt(0) === "r" ? J(f) : Q(f);
350
+ }
351
+ class k {
352
+ constructor(e) {
353
+ if (e instanceof k)
354
+ return e;
355
+ const t = typeof e;
356
+ let n;
357
+ t === "object" ? n = R(e) : t === "string" && (n = V(e) || G(e) || fe(e)), this._rgb = n, this._valid = !!n;
358
+ }
359
+ get valid() {
360
+ return this._valid;
361
+ }
362
+ get rgb() {
363
+ var e = T(this._rgb);
364
+ return e && (e.a = o(e.a)), e;
365
+ }
366
+ set rgb(e) {
367
+ this._rgb = R(e);
368
+ }
369
+ rgbString() {
370
+ return this._valid ? z(this._rgb) : void 0;
371
+ }
372
+ hexString() {
373
+ return this._valid ? W(this._rgb) : void 0;
374
+ }
375
+ hslString() {
376
+ return this._valid ? D(this._rgb) : void 0;
377
+ }
378
+ mix(e, t) {
379
+ if (e) {
380
+ const n = this.rgb, r = e.rgb;
381
+ let a;
382
+ const s = t === a ? 0.5 : t, c = 2 * s - 1, g = n.a - r.a, h = ((c * g === -1 ? c : (c + g) / (1 + c * g)) + 1) / 2;
383
+ a = 1 - h, n.r = 255 & h * n.r + a * r.r + 0.5, n.g = 255 & h * n.g + a * r.g + 0.5, n.b = 255 & h * n.b + a * r.b + 0.5, n.a = s * n.a + (1 - s) * r.a, this.rgb = n;
384
+ }
385
+ return this;
386
+ }
387
+ interpolate(e, t) {
388
+ return e && (this._rgb = ee(this._rgb, e._rgb, t)), this;
389
+ }
390
+ clone() {
391
+ return new k(this.rgb);
392
+ }
393
+ alpha(e) {
394
+ return this._rgb.a = d(e), this;
395
+ }
396
+ clearer(e) {
397
+ const t = this._rgb;
398
+ return t.a *= 1 - e, this;
399
+ }
400
+ greyscale() {
401
+ const e = this._rgb, t = m(e.r * 0.3 + e.g * 0.59 + e.b * 0.11);
402
+ return e.r = e.g = e.b = t, this;
403
+ }
404
+ opaquer(e) {
405
+ const t = this._rgb;
406
+ return t.a *= 1 + e, this;
407
+ }
408
+ negate() {
409
+ const e = this._rgb;
410
+ return e.r = 255 - e.r, e.g = 255 - e.g, e.b = 255 - e.b, this;
411
+ }
412
+ lighten(e) {
413
+ return p(this._rgb, 2, e), this;
414
+ }
415
+ darken(e) {
416
+ return p(this._rgb, 2, -e), this;
417
+ }
418
+ saturate(e) {
419
+ return p(this._rgb, 1, e), this;
420
+ }
421
+ desaturate(e) {
422
+ return p(this._rgb, 1, -e), this;
423
+ }
424
+ rotate(e) {
425
+ return C(this._rgb, e), this;
426
+ }
427
+ }
2
428
  export {
3
- f as default
429
+ k as Color,
430
+ o as b2n,
431
+ V as hexParse,
432
+ W as hexString,
433
+ S as hsl2rgb,
434
+ D as hslString,
435
+ B as hsv2rgb,
436
+ Q as hueParse,
437
+ K as hwb2rgb,
438
+ b as lim,
439
+ d as n2b,
440
+ X as n2p,
441
+ G as nameParse,
442
+ l as p2b,
443
+ _ as rgb2hsl,
444
+ J as rgbParse,
445
+ z as rgbString,
446
+ C as rotate,
447
+ m as round
4
448
  };