typerighter 0.4.4 → 0.30.3

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 (118) hide show
  1. package/dist/app-gH0dpuch.js +2382 -0
  2. package/dist/brand-CG1fQshq.js +5 -0
  3. package/dist/cli-BFgBPypP.js +440 -0
  4. package/dist/cli.js +1 -1
  5. package/dist/client/app/index.d.ts +43 -4
  6. package/dist/client/app/index.d.ts.map +1 -1
  7. package/dist/client/app/router.d.ts +6 -2
  8. package/dist/client/app/router.d.ts.map +1 -1
  9. package/dist/client/theme-default.js +2314 -593
  10. package/dist/client.js +1 -1
  11. package/dist/fonts.css +2 -0
  12. package/dist/index.js +3 -4
  13. package/dist/init-EKDV1L4U.js +821 -0
  14. package/dist/math.css +1 -0
  15. package/dist/node/build/index.d.ts.map +1 -1
  16. package/dist/node/build/prerender.d.ts +2 -0
  17. package/dist/node/build/prerender.d.ts.map +1 -1
  18. package/dist/node/cli/index.d.ts.map +1 -1
  19. package/dist/node/cli/init.d.ts +7 -1
  20. package/dist/node/cli/init.d.ts.map +1 -1
  21. package/dist/node/context.d.ts.map +1 -1
  22. package/dist/node/lib/html-template.d.ts +22 -0
  23. package/dist/node/lib/html-template.d.ts.map +1 -0
  24. package/dist/node/lib/image-dimensions.d.ts +6 -0
  25. package/dist/node/lib/image-dimensions.d.ts.map +1 -0
  26. package/dist/node/lib/index.d.ts +0 -1
  27. package/dist/node/lib/index.d.ts.map +1 -1
  28. package/dist/node/lib/progress.d.ts +2 -0
  29. package/dist/node/lib/progress.d.ts.map +1 -1
  30. package/dist/node/lib/render/highlight/index.d.ts.map +1 -0
  31. package/dist/node/lib/render/highlight/language.d.ts.map +1 -0
  32. package/dist/node/lib/render/postprocess.d.ts +2 -0
  33. package/dist/node/lib/render/postprocess.d.ts.map +1 -0
  34. package/dist/node/lib/render/vue.d.ts +1 -0
  35. package/dist/node/lib/render/vue.d.ts.map +1 -1
  36. package/dist/node/{plugin/vite/search.d.ts → lib/search-indexer/index.d.ts} +2 -3
  37. package/dist/node/lib/search-indexer/index.d.ts.map +1 -0
  38. package/dist/node/lib/search-indexer/scan.d.ts +4 -0
  39. package/dist/node/lib/search-indexer/scan.d.ts.map +1 -0
  40. package/dist/node/lib/typedown-context.d.ts +6 -10
  41. package/dist/node/lib/typedown-context.d.ts.map +1 -1
  42. package/dist/node/plugin/vite/constants.d.ts +6 -0
  43. package/dist/node/plugin/vite/constants.d.ts.map +1 -1
  44. package/dist/node/plugin/vite/index.d.ts +7 -13
  45. package/dist/node/plugin/vite/index.d.ts.map +1 -1
  46. package/dist/node/plugin/vite/middleware/index.d.ts +3 -0
  47. package/dist/node/plugin/vite/middleware/index.d.ts.map +1 -0
  48. package/dist/node/plugin/vite/middleware/vault-assets.d.ts +5 -0
  49. package/dist/node/plugin/vite/middleware/vault-assets.d.ts.map +1 -0
  50. package/dist/node/plugin/vite/middleware/virtual-html.d.ts +6 -0
  51. package/dist/node/plugin/vite/middleware/virtual-html.d.ts.map +1 -0
  52. package/dist/node/plugin/vite/virtual/app.d.ts +23 -0
  53. package/dist/node/plugin/vite/virtual/app.d.ts.map +1 -0
  54. package/dist/node/plugin/vite/virtual/pages.d.ts +12 -0
  55. package/dist/node/plugin/vite/virtual/pages.d.ts.map +1 -0
  56. package/dist/node/plugin/vite/virtual/search-index.d.ts +11 -0
  57. package/dist/node/plugin/vite/virtual/search-index.d.ts.map +1 -0
  58. package/dist/node/plugin/vite/virtual/site-data.d.ts +13 -0
  59. package/dist/node/plugin/vite/virtual/site-data.d.ts.map +1 -0
  60. package/dist/node/plugin/vite/virtual/utils.d.ts +8 -0
  61. package/dist/node/plugin/vite/virtual/utils.d.ts.map +1 -0
  62. package/dist/shared/constants.d.ts.map +1 -1
  63. package/dist/shared/types/content.d.ts +42 -11
  64. package/dist/shared/types/content.d.ts.map +1 -1
  65. package/dist/shared/types/index.d.ts +0 -1
  66. package/dist/shared/types/index.d.ts.map +1 -1
  67. package/dist/shared/types/ssg.d.ts +15 -3
  68. package/dist/shared/types/ssg.d.ts.map +1 -1
  69. package/dist/shared/utils/content.d.ts +5 -3
  70. package/dist/shared/utils/content.d.ts.map +1 -1
  71. package/dist/shared/utils/field.d.ts +2 -0
  72. package/dist/shared/utils/field.d.ts.map +1 -0
  73. package/dist/shared/utils/html.d.ts +1 -0
  74. package/dist/shared/utils/html.d.ts.map +1 -1
  75. package/dist/shared/utils/index.d.ts +1 -0
  76. package/dist/shared/utils/index.d.ts.map +1 -1
  77. package/dist/shared/utils/path.d.ts +1 -0
  78. package/dist/shared/utils/path.d.ts.map +1 -1
  79. package/dist/shared/utils/url.d.ts +9 -1
  80. package/dist/shared/utils/url.d.ts.map +1 -1
  81. package/dist/shared-BuA2cqMO.js +401 -0
  82. package/dist/shared.js +2 -0
  83. package/dist/temml-DZbhOfRE.js +8146 -0
  84. package/dist/typerighter.css +1 -1
  85. package/dist/vite-CYozrIIG.js +1468 -0
  86. package/dist/vite.js +2 -2
  87. package/package.json +26 -40
  88. package/dist/app-Bw90hv7G.js +0 -266
  89. package/dist/brand-CmL-6h9U.js +0 -203
  90. package/dist/cli-Dz9GEomM.js +0 -640
  91. package/dist/constants-7heqadyd.js +0 -32183
  92. package/dist/init-z0GJPXx4.js +0 -2356
  93. package/dist/node/lib/markdown/index.d.ts +0 -5
  94. package/dist/node/lib/markdown/index.d.ts.map +0 -1
  95. package/dist/node/lib/markdown/plugins/callout-container.d.ts +0 -4
  96. package/dist/node/lib/markdown/plugins/callout-container.d.ts.map +0 -1
  97. package/dist/node/lib/markdown/plugins/custom-container.d.ts +0 -3
  98. package/dist/node/lib/markdown/plugins/custom-container.d.ts.map +0 -1
  99. package/dist/node/lib/markdown/plugins/highlight/index.d.ts.map +0 -1
  100. package/dist/node/lib/markdown/plugins/highlight/language.d.ts.map +0 -1
  101. package/dist/node/lib/markdown/plugins/image.d.ts +0 -3
  102. package/dist/node/lib/markdown/plugins/image.d.ts.map +0 -1
  103. package/dist/node/lib/markdown/plugins/line-number.d.ts +0 -3
  104. package/dist/node/lib/markdown/plugins/line-number.d.ts.map +0 -1
  105. package/dist/node/lib/markdown/plugins/link.d.ts +0 -3
  106. package/dist/node/lib/markdown/plugins/link.d.ts.map +0 -1
  107. package/dist/node/lib/markdown/plugins/pre-wrapper.d.ts +0 -6
  108. package/dist/node/lib/markdown/plugins/pre-wrapper.d.ts.map +0 -1
  109. package/dist/node/lib/markdown/plugins/restore-entities.d.ts +0 -3
  110. package/dist/node/lib/markdown/plugins/restore-entities.d.ts.map +0 -1
  111. package/dist/node/lib/markdown/plugins/table.d.ts +0 -3
  112. package/dist/node/lib/markdown/plugins/table.d.ts.map +0 -1
  113. package/dist/node/plugin/vite/search.d.ts.map +0 -1
  114. package/dist/shared/types/markdown.d.ts +0 -62
  115. package/dist/shared/types/markdown.d.ts.map +0 -1
  116. package/dist/vite-B-ktlRz9.js +0 -309
  117. /package/dist/node/lib/{markdown/plugins → render}/highlight/index.d.ts +0 -0
  118. /package/dist/node/lib/{markdown/plugins → render}/highlight/language.d.ts +0 -0
@@ -1,547 +1,1802 @@
1
- import { A as e, O as t, _ as n, a as r, c as i, g as a, h as o, i as s, k as c, l, m as u, n as d, o as f, s as p, t as m, u as h, v as g, w as _, x as v } from "../brand-CmL-6h9U.js";
2
- import { t as y } from "../es-ClqUVRJn.js";
3
- import { a as b, c as x, d as S, i as C, l as w, n as ee, o as T, r as te, s as ne } from "../app-Bw90hv7G.js";
4
- import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createVNode as M, defineComponent as N, h as P, inject as re, markRaw as ie, mergeModels as ae, normalizeClass as F, normalizeStyle as I, onMounted as oe, onUnmounted as se, openBlock as L, readonly as ce, ref as R, renderList as z, renderSlot as le, resolveComponent as ue, shallowRef as de, toDisplayString as B, unref as V, useModel as H, vModelText as fe, watch as U, withCtx as W, withDirectives as pe } from "vue";
5
- //#region src/shared/utils/debounce.ts
6
- function me(e, t) {
7
- let n;
8
- return (...r) => {
9
- clearTimeout(n), n = setTimeout(() => e(...r), t);
10
- };
11
- }
12
- //#endregion
13
- //#region src/shared/utils/regex.ts
14
- function G(e) {
15
- return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
16
- }
17
- //#endregion
18
- //#region ../../node_modules/.pnpm/@lucide+vue@1.30.0_vue@3.5.40_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
19
- var K = (e) => e === "", he = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ge = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), _e = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ve = (e) => {
20
- let t = _e(e);
21
- return t.charAt(0).toUpperCase() + t.slice(1);
22
- }, q = {
23
- xmlns: "http://www.w3.org/2000/svg",
24
- width: 24,
25
- height: 24,
26
- viewBox: "0 0 24 24",
27
- fill: "none",
28
- stroke: "currentColor",
29
- "stroke-width": 2,
30
- "stroke-linecap": "round",
31
- "stroke-linejoin": "round"
32
- }, ye = /* @__PURE__ */ Symbol("lucide-icons");
33
- function be() {
34
- return re(ye, {});
35
- }
36
- //#endregion
37
- //#region ../../node_modules/.pnpm/@lucide+vue@1.30.0_vue@3.5.40_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
38
- var xe = ({ name: e, iconNode: t, "icon-node": n, absoluteStrokeWidth: r, "absolute-stroke-width": i, strokeWidth: a, "stroke-width": o, size: s, color: c, ...l }, { slots: u }) => {
39
- let { size: d, color: f, strokeWidth: p = 2, absoluteStrokeWidth: m = !1, class: h = "" } = be(), g = D(() => {
40
- let e = K(r) || K(i) || r === !0 || i === !0 || m === !0, t = a || o || p || q["stroke-width"];
41
- return e ? Number(t) * 24 / Number(s ?? d ?? q.width) : t;
42
- });
43
- return P("svg", {
44
- ...q,
45
- ...l,
46
- width: s ?? d ?? q.width,
47
- height: s ?? d ?? q.height,
48
- stroke: c ?? f ?? q.stroke,
49
- "stroke-width": g.value,
50
- class: he("lucide", h, ...e ? [`lucide-${ge(ve(e))}-icon`, `lucide-${ge(e)}`] : ["lucide-icon"])
51
- }, [...(t ?? n ?? []).map((e) => P(...e)), ...u.default ? [u.default()] : []]);
52
- }, J = (e, t) => (n, { slots: r, attrs: i }) => P(xe, {
53
- ...i,
54
- ...n,
55
- iconNode: t,
56
- name: e
57
- }, r.default ? { default: r.default } : void 0), Se = J("chevron-down", [["path", {
58
- d: "m6 9 6 6 6-6",
59
- key: "qrunsl"
60
- }]]), Ce = J("corner-left-up", [["path", {
61
- d: "M14 9 9 4 4 9",
62
- key: "1af5af"
1
+ import { A as e, C as t, D as n, E as r, G as i, M as a, N as o, T as s, W as c, _ as l, b as u, c as d, d as f, g as p, i as m, j as h, m as g, n as _, o as v, r as y, s as b, u as x, v as S, x as C, z as w } from "../shared-BuA2cqMO.js";
2
+ import { t as T } from "../temml-DZbhOfRE.js";
3
+ import { t as ee } from "../es-ClqUVRJn.js";
4
+ import { C as te, E, S as D, T as O, _ as ne, a as re, b as ie, c as ae, d as oe, f as se, g as ce, h as k, i as A, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, v as ge, w as _e, x as ve, y as ye } from "../app-gH0dpuch.js";
5
+ import { a as be, i as xe, n as Se, t as Ce } from "../brand-CG1fQshq.js";
6
+ import { Fragment as j, Teleport as we, computed as M, createApp as Te, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ee, markRaw as De, mergeModels as Oe, mergeProps as ke, nextTick as Ae, normalizeClass as B, normalizeStyle as je, onBeforeUnmount as Me, onMounted as Ne, onScopeDispose as Pe, onUnmounted as Fe, openBlock as V, readonly as Ie, ref as H, renderList as U, renderSlot as Le, resolveComponent as Re, resolveDynamicComponent as W, shallowReadonly as ze, shallowRef as Be, toDisplayString as G, toValue as Ve, triggerRef as He, unref as K, useModel as Ue, useTemplateRef as We, vModelText as Ge, watch as q, watchEffect as Ke, withCtx as qe, withDirectives as Je, withKeys as Ye, withModifiers as Xe } from "vue";
7
+ var Ze = E("arrow-down", [["path", {
8
+ d: "M12 5v14",
9
+ key: "s699le"
63
10
  }], ["path", {
64
- d: "M20 20h-7a4 4 0 0 1-4-4V4",
65
- key: "1blwi3"
66
- }]]), Y = J("file", [["path", {
67
- d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
68
- key: "1oefj6"
11
+ d: "m19 12-7 7-7-7",
12
+ key: "1idqje"
13
+ }]]), Qe = E("arrow-left", [["path", {
14
+ d: "m12 19-7-7 7-7",
15
+ key: "1l729n"
69
16
  }], ["path", {
70
- d: "M14 2v5a1 1 0 0 0 1 1h5",
71
- key: "wfsgrz"
72
- }]]), we = J("folder-open", [["path", {
73
- d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
74
- key: "usdka0"
75
- }]]), Te = J("house", [["path", {
76
- d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
77
- key: "5wwlr5"
17
+ d: "M19 12H5",
18
+ key: "x3x0zl"
19
+ }]]), $e = E("arrow-right", [["path", {
20
+ d: "M5 12h14",
21
+ key: "1ays0h"
22
+ }], ["path", {
23
+ d: "m12 5 7 7-7 7",
24
+ key: "xquz4c"
25
+ }]]), et = E("arrow-up", [["path", {
26
+ d: "m5 12 7-7 7 7",
27
+ key: "hav0vg"
28
+ }], ["path", {
29
+ d: "M12 19V5",
30
+ key: "x0mq9r"
31
+ }]]), tt = E("chevron-down", [["path", {
32
+ d: "m6 9 6 6 6-6",
33
+ key: "qrunsl"
34
+ }]]), nt = E("chevron-left", [["path", {
35
+ d: "m15 18-6-6 6-6",
36
+ key: "1wnfg3"
37
+ }]]), rt = E("chevron-right", [["path", {
38
+ d: "m9 18 6-6-6-6",
39
+ key: "mthhwq"
40
+ }]]), it = E("circle-dot", [["circle", {
41
+ cx: "12",
42
+ cy: "12",
43
+ r: "1",
44
+ key: "41hilf"
45
+ }], ["circle", {
46
+ cx: "12",
47
+ cy: "12",
48
+ r: "10",
49
+ key: "1mglay"
50
+ }]]), at = E("command", [["path", {
51
+ d: "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",
52
+ key: "11bfej"
53
+ }]]), ot = E("corner-down-left", [["path", {
54
+ d: "M20 4v7a4 4 0 0 1-4 4H4",
55
+ key: "6o5b7l"
78
56
  }], ["path", {
79
- d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
80
- key: "r6nss1"
81
- }]]), Ee = J("menu", [
57
+ d: "m9 10-5 5 5 5",
58
+ key: "1kshq7"
59
+ }]]), st = E("delete", [
82
60
  ["path", {
83
- d: "M4 5h16",
84
- key: "1tepv9"
61
+ d: "M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",
62
+ key: "1yo7s0"
85
63
  }],
86
64
  ["path", {
87
- d: "M4 12h16",
88
- key: "1lakjw"
65
+ d: "m12 9 6 6",
66
+ key: "anjzzh"
89
67
  }],
90
68
  ["path", {
91
- d: "M4 19h16",
92
- key: "1djgab"
69
+ d: "m18 9-6 6",
70
+ key: "1fp51s"
93
71
  }]
94
- ]), De = J("moon", [["path", {
95
- d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
96
- key: "kfwtm"
97
- }]]), Oe = J("search", [["path", {
98
- d: "m21 21-4.34-4.34",
99
- key: "14j7rj"
100
- }], ["circle", {
101
- cx: "11",
102
- cy: "11",
103
- r: "8",
104
- key: "4ej97u"
105
- }]]), ke = J("sun", [
72
+ ]), ct = E("ellipsis", [
106
73
  ["circle", {
107
74
  cx: "12",
108
75
  cy: "12",
109
- r: "4",
110
- key: "4exip2"
76
+ r: "1",
77
+ key: "41hilf"
111
78
  }],
79
+ ["circle", {
80
+ cx: "19",
81
+ cy: "12",
82
+ r: "1",
83
+ key: "1wjl8i"
84
+ }],
85
+ ["circle", {
86
+ cx: "5",
87
+ cy: "12",
88
+ r: "1",
89
+ key: "1pcz8c"
90
+ }]
91
+ ]), lt = E("folder-open", [["path", {
92
+ d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
93
+ key: "usdka0"
94
+ }]]), ut = E("list", [
112
95
  ["path", {
113
- d: "M12 2v2",
114
- key: "tus03m"
96
+ d: "M3 5h.01",
97
+ key: "18ugdj"
115
98
  }],
116
99
  ["path", {
117
- d: "M12 20v2",
118
- key: "1lh1kg"
100
+ d: "M3 12h.01",
101
+ key: "nlz23k"
119
102
  }],
120
103
  ["path", {
121
- d: "m4.93 4.93 1.41 1.41",
122
- key: "149t6j"
104
+ d: "M3 19h.01",
105
+ key: "noohij"
123
106
  }],
124
107
  ["path", {
125
- d: "m17.66 17.66 1.41 1.41",
126
- key: "ptbguv"
108
+ d: "M8 5h13",
109
+ key: "1pao27"
127
110
  }],
128
111
  ["path", {
129
- d: "M2 12h2",
130
- key: "1t8f8n"
112
+ d: "M8 12h13",
113
+ key: "1za7za"
131
114
  }],
132
115
  ["path", {
133
- d: "M20 12h2",
134
- key: "1q8mjw"
116
+ d: "M8 19h13",
117
+ key: "m83p4d"
118
+ }]
119
+ ]), dt = E("loader-circle", [["path", {
120
+ d: "M21 12a9 9 0 1 1-6.219-8.56",
121
+ key: "13zald"
122
+ }]]), ft = E("menu", [
123
+ ["path", {
124
+ d: "M4 5h16",
125
+ key: "1tepv9"
126
+ }],
127
+ ["path", {
128
+ d: "M4 12h16",
129
+ key: "1lakjw"
135
130
  }],
136
131
  ["path", {
137
- d: "m6.34 17.66-1.41 1.41",
138
- key: "1m8zz5"
132
+ d: "M4 19h16",
133
+ key: "1djgab"
134
+ }]
135
+ ]), pt = E("option", [["path", {
136
+ d: "M14 3h7",
137
+ key: "16f0ms"
138
+ }], ["path", {
139
+ d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
140
+ key: "1qf1im"
141
+ }]]), mt = E("space", [["path", {
142
+ d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
143
+ key: "lt2kga"
144
+ }]]), ht = E("square-check-big", [["path", {
145
+ d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
146
+ key: "2acyp4"
147
+ }], ["path", {
148
+ d: "m9 11 3 3L22 4",
149
+ key: "1pflzl"
150
+ }]]), gt = E("tags", [
151
+ ["path", {
152
+ d: "M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",
153
+ key: "16rjxf"
139
154
  }],
140
155
  ["path", {
141
- d: "m19.07 4.93-1.41 1.41",
142
- key: "1shlcs"
156
+ d: "M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",
157
+ key: "178nd4"
158
+ }],
159
+ ["circle", {
160
+ cx: "10.5",
161
+ cy: "6.5",
162
+ r: ".5",
163
+ fill: "currentColor",
164
+ key: "12ikhr"
143
165
  }]
144
- ]), X = J("x", [["path", {
166
+ ]), _t = E("type", [
167
+ ["path", {
168
+ d: "M12 4v16",
169
+ key: "1654pz"
170
+ }],
171
+ ["path", {
172
+ d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",
173
+ key: "e0r10z"
174
+ }],
175
+ ["path", {
176
+ d: "M9 20h6",
177
+ key: "s66wpe"
178
+ }]
179
+ ]), vt = E("x", [["path", {
145
180
  d: "M18 6 6 18",
146
181
  key: "1bl5f8"
147
182
  }], ["path", {
148
183
  d: "m6 6 12 12",
149
184
  key: "d8bk6v"
150
- }]]), Ae = [
185
+ }]]), yt = [
151
186
  "height",
152
187
  "width",
153
188
  "viewBox"
154
- ], je = ["d"], Me = ["d"], Ne = ["d"], Pe = /* @__PURE__ */ N({
189
+ ], bt = ["d"], xt = ["d"], St = ["d"], Ct = /* @__PURE__ */ z({
155
190
  __name: "TdBrandIcon",
156
191
  props: { size: { default: 28 } },
157
192
  setup(e) {
158
- return (t, n) => (L(), A("svg", {
193
+ return (t, n) => (V(), F("svg", {
159
194
  fill: "none",
160
195
  height: e.size,
161
196
  width: e.size * 208 / 128,
162
- viewBox: V(r),
197
+ viewBox: K(be),
163
198
  xmlns: "http://www.w3.org/2000/svg"
164
199
  }, [
165
- j("path", {
200
+ I("path", {
166
201
  "clip-rule": "evenodd",
167
- d: V(d),
202
+ d: K(Se),
168
203
  "fill-rule": "evenodd",
169
204
  fill: "currentColor"
170
- }, null, 8, je),
171
- j("path", {
172
- d: V(s),
205
+ }, null, 8, bt),
206
+ I("path", {
207
+ d: K(xe),
173
208
  fill: "currentColor"
174
- }, null, 8, Me),
175
- j("path", {
176
- d: V(m),
209
+ }, null, 8, xt),
210
+ I("path", {
211
+ d: K(Ce),
177
212
  fill: "currentColor"
178
- }, null, 8, Ne)
179
- ], 8, Ae));
213
+ }, null, 8, St)
214
+ ], 8, yt));
180
215
  }
181
- }), Fe = ["title", "aria-label"], Z = /* @__PURE__ */ N({
216
+ }), wt = ["title", "aria-label"], Tt = /* @__PURE__ */ z({
182
217
  __name: "TdButton",
183
218
  props: { label: {} },
184
219
  setup(e) {
185
- return (t, n) => (L(), A("button", {
220
+ return (t, n) => (V(), F("button", {
186
221
  type: "button",
187
222
  class: "inline-flex items-center justify-center cursor-pointer",
188
223
  title: e.label,
189
224
  "aria-label": e.label
190
- }, [le(t.$slots, "default")], 8, Fe));
225
+ }, [Le(t.$slots, "default")], 8, wt));
226
+ }
227
+ }), Et = /`([^`]+)`|\$([^$]+)\$/g;
228
+ function Dt(e) {
229
+ let t = 0, n = "";
230
+ for (let r of e.matchAll(Et)) {
231
+ if (n += b(e.slice(t, r.index)), r[1] !== void 0) n += `<code>${b(r[1])}</code>`;
232
+ else if (r[2] !== void 0) try {
233
+ n += T.renderToString(r[2], { throwOnError: !1 });
234
+ } catch {
235
+ n += b(r[0]);
236
+ }
237
+ t = r.index + r[0].length;
238
+ }
239
+ return n += b(e.slice(t)), n;
240
+ }
241
+ //#endregion
242
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
243
+ var Ot = Math.min, kt = Math.max, At = Math.round, J = (e) => ({
244
+ x: e,
245
+ y: e
246
+ }), jt = {
247
+ left: "right",
248
+ right: "left",
249
+ bottom: "top",
250
+ top: "bottom"
251
+ };
252
+ function Mt(e, t, n) {
253
+ return kt(e, Ot(t, n));
254
+ }
255
+ function Nt(e, t) {
256
+ return typeof e == "function" ? e(t) : e;
257
+ }
258
+ function Pt(e) {
259
+ return e.split("-")[0];
260
+ }
261
+ function Ft(e) {
262
+ return e.split("-")[1];
263
+ }
264
+ function It(e) {
265
+ return e === "x" ? "y" : "x";
266
+ }
267
+ function Lt(e) {
268
+ return e === "y" ? "height" : "width";
269
+ }
270
+ function Y(e) {
271
+ let t = e[0];
272
+ return t === "t" || t === "b" ? "y" : "x";
273
+ }
274
+ function Rt(e) {
275
+ return It(Y(e));
276
+ }
277
+ function zt(e, t, n) {
278
+ n === void 0 && (n = !1);
279
+ let r = Ft(e), i = Rt(e), a = Lt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
280
+ return t.reference[a] > t.floating[a] && (o = Jt(o)), [o, Jt(o)];
281
+ }
282
+ function Bt(e) {
283
+ let t = Jt(e);
284
+ return [
285
+ Vt(e),
286
+ t,
287
+ Vt(t)
288
+ ];
289
+ }
290
+ function Vt(e) {
291
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
292
+ }
293
+ var Ht = ["left", "right"], Ut = ["right", "left"], Wt = ["top", "bottom"], Gt = ["bottom", "top"];
294
+ function Kt(e, t, n) {
295
+ switch (e) {
296
+ case "top":
297
+ case "bottom": return n ? t ? Ut : Ht : t ? Ht : Ut;
298
+ case "left":
299
+ case "right": return t ? Wt : Gt;
300
+ default: return [];
301
+ }
302
+ }
303
+ function qt(e, t, n, r) {
304
+ let i = Ft(e), a = Kt(Pt(e), n === "start", r);
305
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Vt)))), a;
306
+ }
307
+ function Jt(e) {
308
+ let t = Pt(e);
309
+ return jt[t] + e.slice(t.length);
310
+ }
311
+ function Yt(e) {
312
+ return {
313
+ top: e.top ?? 0,
314
+ right: e.right ?? 0,
315
+ bottom: e.bottom ?? 0,
316
+ left: e.left ?? 0
317
+ };
318
+ }
319
+ function Xt(e) {
320
+ return typeof e == "number" ? {
321
+ top: e,
322
+ right: e,
323
+ bottom: e,
324
+ left: e
325
+ } : Yt(e);
326
+ }
327
+ function Zt(e) {
328
+ let { x: t, y: n, width: r, height: i } = e;
329
+ return {
330
+ width: r,
331
+ height: i,
332
+ top: n,
333
+ left: t,
334
+ right: t + r,
335
+ bottom: n + i,
336
+ x: t,
337
+ y: n
338
+ };
339
+ }
340
+ //#endregion
341
+ //#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
342
+ function Qt(e, t, n) {
343
+ let { reference: r, floating: i } = e, a = Y(t), o = Rt(t), s = Lt(o), c = Pt(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
344
+ switch (c) {
345
+ case "top":
346
+ p = {
347
+ x: u,
348
+ y: r.y - i.height
349
+ };
350
+ break;
351
+ case "bottom":
352
+ p = {
353
+ x: u,
354
+ y: r.y + r.height
355
+ };
356
+ break;
357
+ case "right":
358
+ p = {
359
+ x: r.x + r.width,
360
+ y: d
361
+ };
362
+ break;
363
+ case "left":
364
+ p = {
365
+ x: r.x - i.width,
366
+ y: d
367
+ };
368
+ break;
369
+ default: p = {
370
+ x: r.x,
371
+ y: r.y
372
+ };
373
+ }
374
+ let m = Ft(t);
375
+ return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
376
+ }
377
+ async function $t(e, t) {
378
+ t === void 0 && (t = {});
379
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Nt(t, e), p = Xt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Zt(await i.getClippingRect({
380
+ element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
381
+ boundary: c,
382
+ rootBoundary: l,
383
+ strategy: s
384
+ })), g = u === "floating" ? {
385
+ x: n,
386
+ y: r,
387
+ width: a.floating.width,
388
+ height: a.floating.height
389
+ } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
390
+ x: 1,
391
+ y: 1
392
+ }, y = Zt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
393
+ elements: o,
394
+ rect: g,
395
+ offsetParent: _,
396
+ strategy: s
397
+ }) : g);
398
+ return {
399
+ top: (h.top - y.top + p.top) / v.y,
400
+ bottom: (y.bottom - h.bottom + p.bottom) / v.y,
401
+ left: (h.left - y.left + p.left) / v.x,
402
+ right: (y.right - h.right + p.right) / v.x
403
+ };
404
+ }
405
+ var en = 50, tn = async (e, t, n) => {
406
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
407
+ ...o,
408
+ detectOverflow: $t
409
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
410
+ reference: e,
411
+ floating: t,
412
+ strategy: i
413
+ }), { x: u, y: d } = Qt(l, r, c), f = r, p = 0, m = {};
414
+ for (let n = 0; n < a.length; n++) {
415
+ let h = a[n];
416
+ if (!h) continue;
417
+ let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
418
+ x: u,
419
+ y: d,
420
+ initialPlacement: r,
421
+ placement: f,
422
+ strategy: i,
423
+ middlewareData: m,
424
+ rects: l,
425
+ platform: s,
426
+ elements: {
427
+ reference: e,
428
+ floating: t
429
+ }
430
+ });
431
+ u = v ?? u, d = y ?? d, m[g] = {
432
+ ...m[g],
433
+ ...b
434
+ }, x && p < en && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
435
+ reference: e,
436
+ floating: t,
437
+ strategy: i
438
+ }) : x.rects), {x: u, y: d} = Qt(l, f, c)), n = -1);
439
+ }
440
+ return {
441
+ x: u,
442
+ y: d,
443
+ placement: f,
444
+ strategy: i,
445
+ middlewareData: m
446
+ };
447
+ }, nn = (e) => ({
448
+ name: "arrow",
449
+ options: e,
450
+ async fn(t) {
451
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Nt(e, t) || {};
452
+ if (l == null) return {};
453
+ let d = Xt(u), f = {
454
+ x: n,
455
+ y: r
456
+ }, p = Rt(i), m = Lt(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
457
+ (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
458
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = Ot(d[_], T), te = Ot(d[v], T), E = C - h[m] - te, D = C / 2 - h[m] / 2 + w, O = Mt(ee, D, E), ne = !c.arrow && Ft(i) != null && D !== O && a.reference[m] / 2 - (D < ee ? ee : te) - h[m] / 2 < 0, re = ne ? D < ee ? D - ee : D - E : 0;
459
+ return {
460
+ [p]: f[p] + re,
461
+ data: {
462
+ [p]: O,
463
+ centerOffset: D - O - re,
464
+ ...ne && { alignmentOffset: re }
465
+ },
466
+ reset: ne
467
+ };
468
+ }
469
+ }), rn = function(e) {
470
+ return e === void 0 && (e = {}), {
471
+ name: "flip",
472
+ options: e,
473
+ async fn(t) {
474
+ var n;
475
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Nt(e, t);
476
+ if ((n = i.arrow) != null && n.alignmentOffset) return {};
477
+ let g = Pt(r), _ = Y(o), v = Pt(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Jt(o)] : Bt(o)), x = p !== "none";
478
+ !d && x && b.push(...qt(o, m, p, y));
479
+ let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
480
+ if (l && w.push(C[g]), u) {
481
+ let e = zt(r, a, y);
482
+ w.push(C[e[0]], C[e[1]]);
483
+ }
484
+ if (T = [...T, {
485
+ placement: r,
486
+ overflows: w
487
+ }], !w.every((e) => e <= 0)) {
488
+ let e = (i.flip?.index || 0) + 1, t = S[e];
489
+ if (t && (u !== "alignment" || _ === Y(t) || T.every((e) => Y(e.placement) !== _ || e.overflows[0] > 0))) return {
490
+ data: {
491
+ index: e,
492
+ overflows: T
493
+ },
494
+ reset: { placement: t }
495
+ };
496
+ let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
497
+ if (!n) switch (f) {
498
+ case "bestFit": {
499
+ let e = T.filter((e) => {
500
+ if (x) {
501
+ let t = Y(e.placement);
502
+ return t === _ || t === "y";
503
+ }
504
+ return !0;
505
+ }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
506
+ e && (n = e);
507
+ break;
508
+ }
509
+ case "initialPlacement": n = o;
510
+ }
511
+ if (r !== n) return { reset: { placement: n } };
512
+ }
513
+ return {};
514
+ }
515
+ };
516
+ }, an = /*#__PURE__*/ new Set(["left", "top"]);
517
+ async function on(e, t) {
518
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Pt(n), s = Ft(n), c = Y(n) === "y", l = an.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Nt(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
519
+ mainAxis: d,
520
+ crossAxis: 0,
521
+ alignmentAxis: null
522
+ } : {
523
+ mainAxis: d.mainAxis || 0,
524
+ crossAxis: d.crossAxis || 0,
525
+ alignmentAxis: d.alignmentAxis
526
+ };
527
+ return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
528
+ x: p * u,
529
+ y: f * l
530
+ } : {
531
+ x: f * l,
532
+ y: p * u
533
+ };
534
+ }
535
+ var sn = function(e) {
536
+ return e === void 0 && (e = 0), {
537
+ name: "offset",
538
+ options: e,
539
+ async fn(t) {
540
+ var n;
541
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await on(t, e);
542
+ return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
543
+ x: r + s.x,
544
+ y: i + s.y,
545
+ data: {
546
+ ...s,
547
+ placement: a
548
+ }
549
+ };
550
+ }
551
+ };
552
+ }, cn = function(e) {
553
+ return e === void 0 && (e = {}), {
554
+ name: "shift",
555
+ options: e,
556
+ async fn(t) {
557
+ let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
558
+ let { x: t, y: n } = e;
559
+ return {
560
+ x: t,
561
+ y: n
562
+ };
563
+ } }, ...l } = Nt(e, t), u = {
564
+ x: n,
565
+ y: r
566
+ }, d = await a.detectOverflow(t, l), f = Y(i), p = It(f), m = u[p], h = u[f], g = (e, t) => Mt(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
567
+ o && (m = g(p, m)), s && (h = g(f, h));
568
+ let _ = c.fn({
569
+ ...t,
570
+ [p]: m,
571
+ [f]: h
572
+ });
573
+ return {
574
+ ..._,
575
+ data: {
576
+ x: _.x - n,
577
+ y: _.y - r,
578
+ enabled: {
579
+ [p]: o,
580
+ [f]: s
581
+ }
582
+ }
583
+ };
584
+ }
585
+ };
586
+ };
587
+ //#endregion
588
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
589
+ function ln() {
590
+ return typeof window < "u";
591
+ }
592
+ function un(e) {
593
+ return fn(e) ? (e.nodeName || "").toLowerCase() : "#document";
594
+ }
595
+ function X(e) {
596
+ var t;
597
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
598
+ }
599
+ function dn(e) {
600
+ return ((fn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
601
+ }
602
+ function fn(e) {
603
+ return ln() ? e instanceof Node || e instanceof X(e).Node : !1;
604
+ }
605
+ function Z(e) {
606
+ return ln() ? e instanceof Element || e instanceof X(e).Element : !1;
607
+ }
608
+ function pn(e) {
609
+ return ln() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
610
+ }
611
+ function mn(e) {
612
+ return !ln() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
613
+ }
614
+ function hn(e) {
615
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = Q(e);
616
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
617
+ }
618
+ function gn(e) {
619
+ return /^(table|td|th)$/.test(un(e));
620
+ }
621
+ function _n(e) {
622
+ try {
623
+ if (e.matches(":popover-open")) return !0;
624
+ } catch {}
625
+ try {
626
+ return e.matches(":modal");
627
+ } catch {
628
+ return !1;
629
+ }
630
+ }
631
+ var vn = /transform|translate|scale|rotate|perspective|filter/, yn = /paint|layout|strict|content/, bn = (e) => !!e && e !== "none", xn;
632
+ function Sn(e) {
633
+ let t = Z(e) ? Q(e) : e;
634
+ return bn(t.transform) || bn(t.translate) || bn(t.scale) || bn(t.rotate) || bn(t.perspective) || !wn() && (bn(t.backdropFilter) || bn(t.filter)) || vn.test(t.willChange || "") || yn.test(t.contain || "");
635
+ }
636
+ function Cn(e) {
637
+ let t = Dn(e);
638
+ for (; pn(t) && !Tn(t);) {
639
+ if (Sn(t)) return t;
640
+ if (_n(t)) return null;
641
+ t = Dn(t);
642
+ }
643
+ return null;
644
+ }
645
+ function wn() {
646
+ return xn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), xn;
647
+ }
648
+ function Tn(e) {
649
+ return /^(html|body|#document)$/.test(un(e));
650
+ }
651
+ function Q(e) {
652
+ return X(e).getComputedStyle(e);
653
+ }
654
+ function En(e) {
655
+ return Z(e) ? {
656
+ scrollLeft: e.scrollLeft,
657
+ scrollTop: e.scrollTop
658
+ } : {
659
+ scrollLeft: e.scrollX,
660
+ scrollTop: e.scrollY
661
+ };
662
+ }
663
+ function Dn(e) {
664
+ if (un(e) === "html") return e;
665
+ let t = e.assignedSlot || e.parentNode || mn(e) && e.host || dn(e);
666
+ return mn(t) ? t.host : t;
667
+ }
668
+ function On(e) {
669
+ let t = Dn(e);
670
+ return Tn(t) ? (e.ownerDocument || e).body : pn(t) && hn(t) ? t : On(t);
671
+ }
672
+ function kn(e, t, n) {
673
+ t === void 0 && (t = []), n === void 0 && (n = !0);
674
+ let r = On(e), i = r === e.ownerDocument?.body, a = X(r);
675
+ if (i) {
676
+ let e = An(a);
677
+ return t.concat(a, a.visualViewport || [], hn(r) ? r : [], e && n ? kn(e) : []);
678
+ }
679
+ return t.concat(r, kn(r, [], n));
680
+ }
681
+ function An(e) {
682
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
683
+ }
684
+ //#endregion
685
+ //#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
686
+ function jn(e) {
687
+ let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = pn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = At(n) !== a || At(r) !== o;
688
+ return s && (n = a, r = o), {
689
+ width: n,
690
+ height: r,
691
+ $: s
692
+ };
693
+ }
694
+ function Mn(e) {
695
+ return Z(e) ? e : e.contextElement;
696
+ }
697
+ function Nn(e) {
698
+ let t = Mn(e);
699
+ if (!pn(t)) return J(1);
700
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = jn(t), o = (a ? At(n.width) : n.width) / r, s = (a ? At(n.height) : n.height) / i;
701
+ return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
702
+ x: o,
703
+ y: s
704
+ };
705
+ }
706
+ var Pn = /*#__PURE__*/ J(0);
707
+ function Fn(e) {
708
+ let t = X(e);
709
+ return !wn() || !t.visualViewport ? Pn : {
710
+ x: t.visualViewport.offsetLeft,
711
+ y: t.visualViewport.offsetTop
712
+ };
713
+ }
714
+ function In(e, t, n) {
715
+ return t === void 0 && (t = !1), !!n && t && n === X(e);
716
+ }
717
+ function Ln(e, t, n, r) {
718
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
719
+ let i = e.getBoundingClientRect(), a = Mn(e), o = J(1);
720
+ t && (r ? Z(r) && (o = Nn(r)) : o = Nn(e));
721
+ let s = In(a, n, r) ? Fn(a) : J(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
722
+ if (a && r) {
723
+ let e = X(a), t = Z(r) ? X(r) : r, n = e, i = An(n);
724
+ for (; i && t !== n;) {
725
+ let e = Nn(i), t = i.getBoundingClientRect(), r = Q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
726
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = An(n);
727
+ }
728
+ }
729
+ return Zt({
730
+ width: u,
731
+ height: d,
732
+ x: c,
733
+ y: l
734
+ });
735
+ }
736
+ function Rn(e, t) {
737
+ let n = En(e).scrollLeft;
738
+ return t ? t.left + n : Ln(dn(e)).left + n;
739
+ }
740
+ function zn(e, t) {
741
+ let n = e.getBoundingClientRect();
742
+ return {
743
+ x: n.left + t.scrollLeft - Rn(e, n),
744
+ y: n.top + t.scrollTop
745
+ };
746
+ }
747
+ function Bn(e) {
748
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = dn(r), s = t ? _n(t.floating) : !1;
749
+ if (r === o || s && a) return n;
750
+ let c = {
751
+ scrollLeft: 0,
752
+ scrollTop: 0
753
+ }, l = J(1), u = J(0), d = pn(r);
754
+ if ((d || !a) && ((un(r) !== "body" || hn(o)) && (c = En(r)), d)) {
755
+ let e = Ln(r);
756
+ l = Nn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
191
757
  }
192
- }), Ie = {
758
+ let f = o && !d && !a ? zn(o, c) : J(0);
759
+ return {
760
+ width: n.width * l.x,
761
+ height: n.height * l.y,
762
+ x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
763
+ y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
764
+ };
765
+ }
766
+ function Vn(e) {
767
+ return e.getClientRects ? Array.from(e.getClientRects()) : [];
768
+ }
769
+ function Hn(e) {
770
+ let t = En(e), n = e.ownerDocument.body, r = kt(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = kt(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Rn(e), o = -t.scrollTop;
771
+ return Q(n).direction === "rtl" && (a += kt(e.clientWidth, n.clientWidth) - r), {
772
+ width: r,
773
+ height: i,
774
+ x: a,
775
+ y: o
776
+ };
777
+ }
778
+ var Un = 25;
779
+ function Wn(e, t, n) {
780
+ n === void 0 && (n = "viewport");
781
+ let r = n === "layoutViewport", i = X(e), a = dn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
782
+ if (o) {
783
+ let e = !wn() || t === "fixed";
784
+ r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
785
+ }
786
+ if (Rn(a) <= 0) {
787
+ let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
788
+ o <= Un && (s -= o);
789
+ }
790
+ return {
791
+ width: s,
792
+ height: c,
793
+ x: l,
794
+ y: u
795
+ };
796
+ }
797
+ function Gn(e, t) {
798
+ let n = Ln(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Nn(e);
799
+ return {
800
+ width: e.clientWidth * a.x,
801
+ height: e.clientHeight * a.y,
802
+ x: i * a.x,
803
+ y: r * a.y
804
+ };
805
+ }
806
+ function Kn(e, t, n) {
807
+ let r;
808
+ if (t === "viewport" || t === "layoutViewport") r = Wn(e, n, t);
809
+ else if (t === "document") r = Hn(dn(e));
810
+ else if (Z(t)) r = Gn(t, n);
811
+ else {
812
+ let n = Fn(e);
813
+ r = {
814
+ x: t.x - n.x,
815
+ y: t.y - n.y,
816
+ width: t.width,
817
+ height: t.height
818
+ };
819
+ }
820
+ return Zt(r);
821
+ }
822
+ function qn(e, t) {
823
+ let n = t.get(e);
824
+ if (n) return n;
825
+ let r = kn(e, [], !1).filter((e) => Z(e) && un(e) !== "body"), i = null, a = Q(e).position === "fixed", o = a ? Dn(e) : e;
826
+ for (; Z(o) && !Tn(o);) {
827
+ let e = Q(o), t = Sn(o), n = i ? i.position : a ? "fixed" : "";
828
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Dn(o);
829
+ }
830
+ return t.set(e, r), r;
831
+ }
832
+ function Jn(e) {
833
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? _n(t) ? [] : qn(t, this._c) : [].concat(n), r], o = Kn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
834
+ for (let e = 1; e < a.length; e++) {
835
+ let n = Kn(t, a[e], i);
836
+ s = kt(n.top, s), c = Ot(n.right, c), l = Ot(n.bottom, l), u = kt(n.left, u);
837
+ }
838
+ return {
839
+ width: c - u,
840
+ height: l - s,
841
+ x: u,
842
+ y: s
843
+ };
844
+ }
845
+ function Yn(e) {
846
+ let { width: t, height: n } = jn(e);
847
+ return {
848
+ width: t,
849
+ height: n
850
+ };
851
+ }
852
+ function Xn(e, t, n) {
853
+ let r = pn(t), i = dn(t), a = n === "fixed", o = Ln(e, !0, a, t), s = {
854
+ scrollLeft: 0,
855
+ scrollTop: 0
856
+ }, c = J(0);
857
+ if ((r || !a) && ((un(t) !== "body" || hn(i)) && (s = En(t)), r)) {
858
+ let e = Ln(t, !0, a, t);
859
+ c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
860
+ }
861
+ !r && i && (c.x = Rn(i));
862
+ let l = i && !r && !a ? zn(i, s) : J(0);
863
+ return {
864
+ x: o.left + s.scrollLeft - c.x - l.x,
865
+ y: o.top + s.scrollTop - c.y - l.y,
866
+ width: o.width,
867
+ height: o.height
868
+ };
869
+ }
870
+ function Zn(e) {
871
+ return Q(e).position === "static";
872
+ }
873
+ function Qn(e, t) {
874
+ if (!pn(e) || Q(e).position === "fixed") return null;
875
+ if (t) return t(e);
876
+ let n = e.offsetParent;
877
+ return dn(e) === n && (n = n.ownerDocument.body), n;
878
+ }
879
+ function $n(e, t) {
880
+ let n = X(e);
881
+ if (_n(e)) return n;
882
+ if (!pn(e)) {
883
+ let t = Dn(e);
884
+ for (; t && !Tn(t);) {
885
+ if (Z(t) && !Zn(t)) return t;
886
+ t = Dn(t);
887
+ }
888
+ return n;
889
+ }
890
+ let r = Qn(e, t);
891
+ for (; r && gn(r) && Zn(r);) r = Qn(r, t);
892
+ return r && Tn(r) && Zn(r) && !Sn(r) ? n : r || Cn(e) || n;
893
+ }
894
+ var er = async function(e) {
895
+ let t = this.getOffsetParent || $n, n = this.getDimensions, r = await n(e.floating);
896
+ return {
897
+ reference: Xn(e.reference, await t(e.floating), e.strategy),
898
+ floating: {
899
+ x: 0,
900
+ y: 0,
901
+ width: r.width,
902
+ height: r.height
903
+ }
904
+ };
905
+ };
906
+ function tr(e) {
907
+ return Q(e).direction === "rtl";
908
+ }
909
+ var nr = {
910
+ convertOffsetParentRelativeRectToViewportRelativeRect: Bn,
911
+ getDocumentElement: dn,
912
+ getClippingRect: Jn,
913
+ getOffsetParent: $n,
914
+ getElementRects: er,
915
+ getClientRects: Vn,
916
+ getDimensions: Yn,
917
+ getScale: Nn,
918
+ isElement: Z,
919
+ isRTL: tr
920
+ }, rr = sn, ir = cn, ar = rn, or = nn, sr = (e, t, n) => {
921
+ let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
922
+ ...nr,
923
+ ...i.platform,
924
+ _c: r
925
+ };
926
+ return tn(e, t, {
927
+ ...i,
928
+ platform: a
929
+ });
930
+ };
931
+ //#endregion
932
+ //#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.42_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
933
+ function cr(e) {
934
+ return typeof e == "object" && !!e && "$el" in e;
935
+ }
936
+ function lr(e) {
937
+ if (cr(e)) {
938
+ let t = e.$el;
939
+ return fn(t) && un(t) === "#comment" ? null : t;
940
+ }
941
+ return e;
942
+ }
943
+ function ur(e) {
944
+ return {
945
+ name: "arrow",
946
+ options: e,
947
+ fn(t) {
948
+ let n = lr(Ve(e.element));
949
+ return n == null ? {} : or({
950
+ element: n,
951
+ padding: e.padding
952
+ }).fn(t);
953
+ }
954
+ };
955
+ }
956
+ function dr(e) {
957
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
958
+ }
959
+ function fr(e, t) {
960
+ let n = dr(e);
961
+ return Math.round(t * n) / n;
962
+ }
963
+ function pr(e, t, n) {
964
+ n === void 0 && (n = {});
965
+ let r = n.whileElementsMounted, i = M(() => Ve(n.open) ?? !0), a = M(() => Ve(n.middleware)), o = M(() => Ve(n.placement) ?? "bottom"), s = M(() => Ve(n.strategy) ?? "absolute"), c = M(() => Ve(n.transform) ?? !0), l = M(() => lr(e.value)), u = M(() => lr(t.value)), d = H(0), f = H(0), p = H(s.value), m = H(o.value), h = Be({}), g = H(!1), _ = M(() => {
966
+ let e = {
967
+ position: p.value,
968
+ left: "0",
969
+ top: "0"
970
+ };
971
+ if (!u.value) return e;
972
+ let t = fr(u.value, d.value), n = fr(u.value, f.value);
973
+ return c.value ? {
974
+ ...e,
975
+ transform: "translate(" + t + "px, " + n + "px)",
976
+ ...dr(u.value) >= 1.5 && { willChange: "transform" }
977
+ } : {
978
+ position: p.value,
979
+ left: t + "px",
980
+ top: n + "px"
981
+ };
982
+ }), v;
983
+ function y() {
984
+ if (l.value == null || u.value == null) return;
985
+ let e = i.value;
986
+ sr(l.value, u.value, {
987
+ middleware: a.value,
988
+ placement: o.value,
989
+ strategy: s.value
990
+ }).then((t) => {
991
+ d.value = t.x, f.value = t.y, p.value = t.strategy, m.value = t.placement, h.value = t.middlewareData, g.value = e !== !1;
992
+ });
993
+ }
994
+ function b() {
995
+ typeof v == "function" && (v(), v = void 0);
996
+ }
997
+ function x() {
998
+ if (b(), r === void 0) {
999
+ y();
1000
+ return;
1001
+ }
1002
+ if (l.value != null && u.value != null) {
1003
+ v = r(l.value, u.value, y);
1004
+ return;
1005
+ }
1006
+ }
1007
+ function S() {
1008
+ i.value || (g.value = !1);
1009
+ }
1010
+ return q([
1011
+ a,
1012
+ o,
1013
+ s,
1014
+ i
1015
+ ], y, { flush: "sync" }), q([l, u], x, { flush: "sync" }), q(i, S, { flush: "sync" }), Ee() && Pe(b), {
1016
+ x: ze(d),
1017
+ y: ze(f),
1018
+ strategy: ze(p),
1019
+ placement: ze(m),
1020
+ middlewareData: ze(h),
1021
+ isPositioned: ze(g),
1022
+ floatingStyles: _,
1023
+ update: y
1024
+ };
1025
+ }
1026
+ //#endregion
1027
+ //#region src/client/theme-default/components/TdTooltip.vue
1028
+ var mr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1029
+ inheritAttrs: !1,
1030
+ __name: "TdTooltip",
1031
+ props: { text: {} },
1032
+ setup(e) {
1033
+ let t = We("trigger"), n = We("tooltip"), r = We("arrowEl"), i = H(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = pr(t, n, {
1034
+ placement: "right",
1035
+ middleware: [
1036
+ rr(8),
1037
+ ar(),
1038
+ ir({ padding: 8 }),
1039
+ ur({ element: r })
1040
+ ]
1041
+ });
1042
+ function u() {
1043
+ a !== void 0 && (clearTimeout(a), a = void 0), o !== void 0 && (clearTimeout(o), o = void 0);
1044
+ }
1045
+ function d() {
1046
+ let e = t.value;
1047
+ !e || e.scrollWidth <= e.clientWidth || (u(), a = setTimeout(() => {
1048
+ i.value = !0;
1049
+ }, 400));
1050
+ }
1051
+ Me(u);
1052
+ function f() {
1053
+ u(), o = setTimeout(() => {
1054
+ i.value = !1;
1055
+ }, 100);
1056
+ }
1057
+ return (r, a) => (V(), F(j, null, [I("span", ke({
1058
+ ref_key: "trigger",
1059
+ ref: t
1060
+ }, r.$attrs, {
1061
+ class: "td-tooltip-trigger",
1062
+ onMouseenter: d,
1063
+ onMouseleave: f
1064
+ }), [Le(r.$slots, "default", {}, void 0, !0)], 16), (V(), N(we, { to: "body" }, [i.value ? (V(), F("div", {
1065
+ key: 0,
1066
+ ref_key: "tooltip",
1067
+ ref: n,
1068
+ class: "td-tooltip",
1069
+ style: je(K(s)),
1070
+ role: "tooltip",
1071
+ onMouseenter: u,
1072
+ onMouseleave: f
1073
+ }, [L(G(e.text) + " ", 1), I("div", {
1074
+ ref: "arrowEl",
1075
+ class: "td-tooltip-arrow",
1076
+ style: je({
1077
+ left: K(c).arrow?.x === void 0 ? "" : `${K(c).arrow.x}px`,
1078
+ top: K(c).arrow?.y === void 0 ? "" : `${K(c).arrow.y}px`,
1079
+ ...K(l).startsWith("bottom") ? { top: "-4px" } : {},
1080
+ ...K(l).startsWith("top") ? { bottom: "-4px" } : {},
1081
+ ...K(l).startsWith("right") ? { left: "-4px" } : {},
1082
+ ...K(l).startsWith("left") ? { right: "-4px" } : {}
1083
+ })
1084
+ }, null, 4)], 36)) : P("", !0)]))], 64));
1085
+ }
1086
+ }), [["__scopeId", "data-v-c90aabc2"]]), hr = {
193
1087
  key: 0,
194
1088
  class: "td-tree-node"
195
- }, Le = ["aria-expanded"], Re = { class: "td-tree-label-text" }, ze = { class: "td-tree-count" }, Be = ["href"], Ve = { class: "td-tree-link-text" }, He = {
1089
+ }, gr = { class: "td-tree-label" }, _r = ["aria-expanded"], vr = { class: "td-tree-label-text" }, yr = ["href"], br = { class: "td-tree-count" }, xr = {
196
1090
  key: 0,
1091
+ class: "td-tree-children"
1092
+ }, Sr = ["href"], Cr = ["innerHTML"], wr = {
1093
+ key: 2,
197
1094
  class: "td-tree-time"
198
- }, Ue = ["href"], We = { class: "td-tree-link-text" }, Ge = { class: "td-tree-time" }, Ke = 4, qe = /*#__PURE__*/ S(/* @__PURE__ */ N({
1095
+ }, Tr = 5, Er = /*#__PURE__*/ k(/* @__PURE__ */ z({
199
1096
  __name: "TdTreeNode",
200
1097
  props: {
201
1098
  node: {},
202
- depth: { default: 0 },
203
1099
  urlPrefix: { default: "" }
204
1100
  },
205
1101
  setup(e) {
206
- let r = w(), a = o(e.urlPrefix, e.node.name), s = e.node.items.find((e) => v(e.filepath) === t), c = e.node.items.filter((e) => v(e.filepath) !== t), l = 0 < e.node.children.length || 0 < e.node.items.length, d = D(() => f(e.node));
207
- function f(e) {
208
- return e.items.length + e.children.reduce((e, t) => e + f(t), 0);
1102
+ let n = le(), { withBase: i } = A(), a = M(() => u(e.urlPrefix, e.node.name)), o = M(() => g(e.node)), s = M(() => o.value ? t(o.value.filepath) : C(a.value)), c = M(() => i(s.value)), d = M(() => o.value?.label ?? w(e.node.name)), f = M(() => o.value?.icon ? se(o.value.icon.name) : void 0), h = M(() => e.node.entries.filter((e) => e.kind === "dir" || !l(e.item.filepath))), _ = M(() => 0 < e.node.entries.length), v = M(() => y(e.node));
1103
+ function y(e) {
1104
+ let t = 0;
1105
+ for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
1106
+ return t;
209
1107
  }
210
- let p = R(!g(a, r.path)), m = R(!1), h = D(() => m.value ? c : c.slice(0, Ke)), y = D(() => Math.max(0, c.length - Ke));
211
- U(() => r.path, (e) => {
212
- g(a, e) && (p.value = !1);
1108
+ let b = H(!r(a.value, n.path)), x = H(!1), S = M(() => h.value.filter((e) => e.kind === "file").length), T = M(() => x.value ? 0 : Math.max(0, S.value - Tr)), ee = M(() => {
1109
+ if (x.value) return h.value;
1110
+ let e = 0;
1111
+ return h.value.filter((t) => t.kind === "dir" || ++e <= Tr);
213
1112
  });
214
- function b() {
215
- m.value = !0;
1113
+ q(() => n.path, (e) => {
1114
+ r(a.value, e) && (b.value = !1);
1115
+ });
1116
+ function E() {
1117
+ x.value = !0;
216
1118
  }
217
- function x(e) {
218
- return r.path === e;
1119
+ function O(e) {
1120
+ return n.path === e;
219
1121
  }
220
- function S() {
221
- p.value = !p.value;
1122
+ function ne() {
1123
+ b.value = !b.value;
222
1124
  }
223
- return (t, r) => {
224
- let o = ue("TdTreeNode", !0);
225
- return V(l) ? (L(), A("div", Ie, [j("button", {
226
- type: "button",
227
- class: "td-tree-label",
228
- "aria-expanded": !p.value,
229
- style: I({ paddingLeft: `${12 + e.depth * 12}px` }),
230
- onClick: S
231
- }, [
232
- M(V(Se), {
1125
+ return (e, n) => {
1126
+ let r = Re("TdTreeNode", !0);
1127
+ return _.value ? (V(), F("div", hr, [I("div", gr, [
1128
+ I("button", {
1129
+ type: "button",
1130
+ class: "td-tree-toggle",
1131
+ "aria-expanded": !b.value,
1132
+ onClick: ne
1133
+ }, [R(K(tt), {
233
1134
  size: 14,
234
- class: F(["td-tree-caret", { "is-collapsed": p.value }])
235
- }, null, 8, ["class"]),
236
- j("span", Re, B(V(_)(e.node.name)), 1),
237
- j("span", ze, B(d.value), 1)
238
- ], 12, Le), p.value ? k("", !0) : (L(), A("div", {
1135
+ class: B(["td-tree-caret", { "is-collapsed": b.value }])
1136
+ }, null, 8, ["class"]), I("span", vr, G(d.value), 1)], 8, _r),
1137
+ I("a", {
1138
+ href: c.value,
1139
+ class: B(["td-tree-index-btn", { "is-active": O(s.value) }])
1140
+ }, [f.value ? (V(), N(W(f.value), {
1141
+ key: 0,
1142
+ size: 12
1143
+ })) : O(s.value) ? (V(), N(K(lt), {
1144
+ key: 1,
1145
+ size: 12
1146
+ })) : (V(), N(K(D), {
1147
+ key: 2,
1148
+ size: 12
1149
+ }))], 10, yr),
1150
+ I("span", br, G(v.value), 1)
1151
+ ]), b.value ? P("", !0) : (V(), F("div", xr, [(V(!0), F(j, null, U(ee.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(r, {
239
1152
  key: 0,
240
- class: "td-tree-children",
241
- style: I({ marginLeft: `${14 + e.depth * 10}px` })
1153
+ node: e.node,
1154
+ "url-prefix": a.value
1155
+ }, null, 8, ["node", "url-prefix"])) : (V(), F("a", {
1156
+ key: 1,
1157
+ href: K(i)(K(t)(e.item.filepath)),
1158
+ class: B(["td-tree-link", { "is-active": O(K(t)(e.item.filepath)) }])
242
1159
  }, [
243
- j("a", {
244
- href: V(s) ? V(n)(V(s).filepath) : V(a),
245
- class: F(["td-tree-link", { "is-active": x(V(s) ? V(n)(V(s).filepath) : V(a)) }]),
246
- style: I({ paddingLeft: `${32 + e.depth * 12}px` })
247
- }, [
248
- M(V(Te), {
249
- size: 14,
250
- class: "td-tree-file-icon"
251
- }),
252
- j("span", Ve, B(V(_)(e.node.name)), 1),
253
- V(s) ? (L(), A("span", He, B(V(i)(V(s).metadata.mtime)), 1)) : k("", !0)
254
- ], 14, Be),
255
- (L(!0), A(E, null, z(e.node.children, (t) => (L(), O(o, {
256
- key: t.name,
257
- node: t,
258
- depth: e.depth + 1,
259
- "url-prefix": V(a)
260
- }, null, 8, [
261
- "node",
262
- "depth",
263
- "url-prefix"
264
- ]))), 128)),
265
- (L(!0), A(E, null, z(h.value, (t) => (L(), A("a", {
266
- key: t.filepath,
267
- href: V(n)(t.filepath),
268
- class: F(["td-tree-link", { "is-active": x(V(n)(t.filepath)) }]),
269
- style: I({ paddingLeft: `${32 + e.depth * 12}px` })
270
- }, [
271
- M(V(Y), {
272
- size: 14,
273
- class: "td-tree-file-icon"
274
- }),
275
- j("span", We, B(V(u)(t.header, t.filepath)), 1),
276
- j("span", Ge, B(V(i)(t.metadata.mtime)), 1)
277
- ], 14, Ue))), 128)),
278
- y.value > 0 && !m.value ? (L(), A("button", {
1160
+ e.item.icon && K(se)(e.item.icon.name) ? (V(), N(W(K(se)(e.item.icon.name)), {
279
1161
  key: 0,
280
- class: "td-tree-more",
281
- type: "button",
282
- style: I({ paddingLeft: `${32 + e.depth * 12}px` }),
283
- onClick: b
284
- }, B(y.value) + " more ", 5)) : k("", !0)
285
- ], 4))])) : k("", !0);
1162
+ size: 14,
1163
+ class: "td-tree-file-icon"
1164
+ })) : (V(), N(K(te), {
1165
+ key: 1,
1166
+ size: 14,
1167
+ class: "td-tree-file-icon"
1168
+ })),
1169
+ R(mr, {
1170
+ class: "td-tree-link-text",
1171
+ text: K(p)(e.item.filepath, e.item.label)
1172
+ }, {
1173
+ default: qe(() => [I("span", { innerHTML: K(Dt)(K(p)(e.item.filepath, e.item.label)) }, null, 8, Cr)]),
1174
+ _: 2
1175
+ }, 1032, ["text"]),
1176
+ e.item.metadata ? (V(), F("span", wr, G(K(m)(e.item.metadata.mtime)), 1)) : P("", !0)
1177
+ ], 10, Sr))], 64))), 128)), T.value > 0 && !x.value ? (V(), F("button", {
1178
+ key: 0,
1179
+ class: "td-tree-more",
1180
+ type: "button",
1181
+ onClick: E
1182
+ }, G(T.value) + " more... ", 1)) : P("", !0)]))])) : P("", !0);
286
1183
  };
287
1184
  }
288
- }), [["__scopeId", "data-v-06253791"]]), Je = ["href"], Ye = {
1185
+ }), [["__scopeId", "data-v-2c080833"]]), Dr = ["href"], Or = {
289
1186
  key: 0,
290
1187
  class: "td-root-link-time"
291
- }, Xe = ["href"], Ze = { class: "td-root-link-text" }, Qe = { class: "td-root-link-time" }, $e = /*#__PURE__*/ S(/* @__PURE__ */ N({
1188
+ }, kr = ["href"], Ar = { class: "td-root-link-text" }, jr = {
1189
+ key: 0,
1190
+ class: "td-root-link-time"
1191
+ }, Mr = /*#__PURE__*/ k(/* @__PURE__ */ z({
292
1192
  __name: "TdContentNav",
293
1193
  props: { tree: {} },
294
1194
  setup(e) {
295
- let r = w(), a = e.tree.rootItems.find((e) => v(e.filepath) === t), o = e.tree.rootItems.filter((e) => v(e.filepath) !== t);
296
- function s(e) {
297
- return r.path === e;
1195
+ let n = le(), { withBase: r } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && l(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !l(e.item.filepath)));
1196
+ function o(e) {
1197
+ return n.path === e;
298
1198
  }
299
- return (t, r) => (L(), A("nav", null, [
300
- j("a", {
301
- href: V(a) ? V(n)(V(a).filepath) : "/",
302
- class: F(["td-root-link", { "is-active": s(V(a) ? V(n)(V(a).filepath) : "/") }])
303
- }, [
304
- M(V(Te), {
305
- size: 14,
306
- class: "td-root-link-icon"
307
- }),
308
- r[0] ||= j("span", { class: "td-root-link-text" }, "Overview", -1),
309
- V(a) ? (L(), A("span", Ye, B(V(i)(V(a).metadata.mtime)), 1)) : k("", !0)
310
- ], 10, Je),
311
- (L(!0), A(E, null, z(V(o), (e) => (L(), A("a", {
312
- key: e.filepath,
313
- href: V(n)(e.filepath),
314
- class: F(["td-root-link", { "is-active": s(V(n)(e.filepath)) }])
315
- }, [
316
- M(V(Y), {
317
- size: 14,
318
- class: "td-root-link-icon"
319
- }),
320
- j("span", Ze, B(V(u)(e.header, e.filepath)), 1),
321
- j("span", Qe, B(V(i)(e.metadata.mtime)), 1)
322
- ], 10, Xe))), 128)),
323
- (L(!0), A(E, null, z(e.tree.children, (e) => (L(), O(qe, {
324
- key: e.name,
325
- node: e
326
- }, null, 8, ["node"]))), 128))
327
- ]));
1199
+ return (e, n) => (V(), F("nav", null, [I("a", {
1200
+ href: K(r)(i.value ? K(t)(i.value.filepath) : K(C)("/")),
1201
+ class: B(["td-root-link", { "is-active": o(i.value ? K(t)(i.value.filepath) : K(C)("/")) }])
1202
+ }, [
1203
+ R(K(ve), {
1204
+ size: 14,
1205
+ class: "td-root-link-icon"
1206
+ }),
1207
+ n[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
1208
+ i.value ? (V(), F("span", Or, G(i.value.metadata ? K(m)(i.value.metadata.mtime) : ""), 1)) : P("", !0)
1209
+ ], 10, Dr), (V(!0), F(j, null, U(a.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(Er, {
1210
+ key: 0,
1211
+ node: e.node
1212
+ }, null, 8, ["node"])) : (V(), F("a", {
1213
+ key: 1,
1214
+ href: K(r)(K(t)(e.item.filepath)),
1215
+ class: B(["td-root-link", { "is-active": o(K(t)(e.item.filepath)) }])
1216
+ }, [
1217
+ R(K(te), {
1218
+ size: 14,
1219
+ class: "td-root-link-icon"
1220
+ }),
1221
+ I("span", Ar, G(K(p)(e.item.filepath, e.item.label)), 1),
1222
+ e.item.metadata ? (V(), F("span", jr, G(K(m)(e.item.metadata.mtime)), 1)) : P("", !0)
1223
+ ], 10, kr))], 64))), 128))]));
1224
+ }
1225
+ }), [["__scopeId", "data-v-7cee93ed"]]), Nr = { class: "td-footer" }, Pr = { key: 0 }, Fr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1226
+ __name: "TdFooter",
1227
+ setup(e) {
1228
+ let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
1229
+ return (e, r) => (V(), F("footer", Nr, [r[0] ||= I("span", null, [L(" Powered by "), I("a", {
1230
+ href: "https://github.com/huydo862003/typerighter",
1231
+ target: "_blank",
1232
+ rel: "noopener noreferrer",
1233
+ class: "td-footer-link"
1234
+ }, "Typerighter")], -1), K(t).author || K(t).license ? (V(), F("span", Pr, [
1235
+ K(t).license ? (V(), F(j, { key: 0 }, [L(G(K(t).license), 1)], 64)) : P("", !0),
1236
+ K(t).license && K(t).author ? (V(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
1237
+ K(t).author ? (V(), F(j, { key: 2 }, [L("© " + G(K(n)) + " " + G(K(t).author), 1)], 64)) : P("", !0)
1238
+ ])) : P("", !0)]));
1239
+ }
1240
+ }), [["__scopeId", "data-v-1295a06e"]]), Ir = {
1241
+ key: 0,
1242
+ class: "td-dropdown-panel"
1243
+ }, Lr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1244
+ inheritAttrs: !1,
1245
+ __name: "TdDropdown",
1246
+ props: {
1247
+ open: {
1248
+ type: Boolean,
1249
+ default: !1
1250
+ },
1251
+ openModifiers: {}
1252
+ },
1253
+ emits: ["update:open"],
1254
+ setup(e) {
1255
+ let t = Ue(e, "open"), n = We("wrapper");
1256
+ function r(e) {
1257
+ n.value?.contains(e.target) || (t.value = !1);
1258
+ }
1259
+ function i() {
1260
+ t.value = !t.value;
1261
+ }
1262
+ return q(t, (e) => {
1263
+ typeof document > "u" || (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
1264
+ }), Fe(() => {
1265
+ typeof document > "u" || document.removeEventListener("click", r);
1266
+ }), (e, r) => (V(), F("span", ke({
1267
+ ref_key: "wrapper",
1268
+ ref: n
1269
+ }, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [Le(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (V(), F("div", Ir, [Le(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
328
1270
  }
329
- }), [["__scopeId", "data-v-392b5753"]]), et = {
1271
+ }), [["__scopeId", "data-v-d71f3c74"]]), Rr = {
330
1272
  class: "td-breadcrumb",
331
1273
  "aria-label": "Breadcrumb"
332
- }, tt = {
333
- key: 0,
334
- class: "td-breadcrumb-sep"
335
- }, nt = ["href"], rt = {
336
- key: 2,
1274
+ }, zr = ["href"], Br = {
1275
+ type: "button",
1276
+ class: "td-breadcrumb-ellipsis"
1277
+ }, Vr = ["href"], Hr = ["href"], Ur = {
1278
+ key: 1,
1279
+ class: "td-breadcrumb-current"
1280
+ }, Wr = ["href"], Gr = {
1281
+ key: 1,
337
1282
  class: "td-breadcrumb-current"
338
- }, it = /*#__PURE__*/ S(/* @__PURE__ */ N({
1283
+ }, Kr = 3, qr = /*#__PURE__*/ k(/* @__PURE__ */ z({
339
1284
  __name: "TdBreadcrumb",
340
1285
  setup(e) {
341
- let t = w(), n = D(() => {
342
- let e = t.path === "/" ? "/" : t.path.replace(/\/$/, ""), n = [{
1286
+ let t = le(), { withBase: n } = A(), r = H(!1), i = M(() => {
1287
+ let e = h(t.path), r = [{
343
1288
  name: "Home",
344
- href: "/"
1289
+ href: n(C("/"))
345
1290
  }];
346
- if (e === "/") return n;
347
- let r = e.replace(/^\//, "").split("/");
348
- for (let e = 0; e < r.length; e++) n.push({
349
- name: _(r[e]),
350
- href: "/" + r.slice(0, e + 1).join("/")
351
- });
352
- return n;
353
- });
354
- return (e, t) => (L(), A("nav", et, [(L(!0), A(E, null, z(n.value, (e, t) => (L(), A(E, { key: e.href }, [t > 0 ? (L(), A("span", tt, "/")) : k("", !0), t < n.value.length - 1 ? (L(), A("a", {
355
- key: 1,
1291
+ if (e === "/") return r;
1292
+ let i = e.replace(/^\//, "").split("/"), a = s(e) ? i.slice(0, -1) : i;
1293
+ for (let e = 0; e < a.length; e++) {
1294
+ let t = "/" + a.slice(0, e + 1).join("/"), i = e === a.length - 1;
1295
+ r.push({
1296
+ name: w(a[e]),
1297
+ href: n(i ? t : C(t))
1298
+ });
1299
+ }
1300
+ return r;
1301
+ }), a = M(() => Kr < i.value.length), o = M(() => i.value.slice(1, -2));
1302
+ return q(() => t.path, () => {
1303
+ r.value = !1;
1304
+ }), (e, t) => (V(), F("nav", Rr, [I("a", {
1305
+ href: i.value[0].href,
1306
+ class: "td-breadcrumb-link td-breadcrumb-home"
1307
+ }, G(i.value[0].name), 9, zr), a.value ? (V(), F(j, { key: 0 }, [
1308
+ t[2] ||= I("span", {
1309
+ class: "td-breadcrumb-sep",
1310
+ "aria-hidden": "true"
1311
+ }, "/", -1),
1312
+ R(Lr, {
1313
+ open: r.value,
1314
+ "onUpdate:open": t[0] ||= (e) => r.value = e
1315
+ }, {
1316
+ trigger: qe(() => [I("button", Br, [R(K(ct), { size: 14 })])]),
1317
+ default: qe(() => [(V(!0), F(j, null, U(o.value, (e) => (V(), F("a", {
1318
+ key: e.href,
1319
+ href: e.href,
1320
+ class: "td-breadcrumb-dropdown-item"
1321
+ }, G(e.name), 9, Vr))), 128))]),
1322
+ _: 1
1323
+ }, 8, ["open"]),
1324
+ (V(!0), F(j, null, U(i.value.slice(-2), (e) => (V(), F(j, { key: e.href }, [t[1] ||= I("span", {
1325
+ class: "td-breadcrumb-sep",
1326
+ "aria-hidden": "true"
1327
+ }, "/", -1), e === i.value[i.value.length - 1] ? (V(), F("span", Ur, G(e.name), 1)) : (V(), F("a", {
1328
+ key: 0,
1329
+ href: e.href,
1330
+ class: "td-breadcrumb-link"
1331
+ }, G(e.name), 9, Hr))], 64))), 128))
1332
+ ], 64)) : (V(!0), F(j, { key: 1 }, U(i.value.slice(1), (e, n) => (V(), F(j, { key: e.href }, [t[3] ||= I("span", {
1333
+ class: "td-breadcrumb-sep",
1334
+ "aria-hidden": "true"
1335
+ }, "/", -1), n < i.value.length - 2 ? (V(), F("a", {
1336
+ key: 0,
356
1337
  href: e.href,
357
1338
  class: "td-breadcrumb-link"
358
- }, B(e.name), 9, nt)) : (L(), A("span", rt, B(e.name), 1))], 64))), 128))]));
1339
+ }, G(e.name), 9, Wr)) : (V(), F("span", Gr, G(e.name), 1))], 64))), 128))]));
1340
+ }
1341
+ }), [["__scopeId", "data-v-5315d390"]]), Jr = {
1342
+ key: 0,
1343
+ class: "td-header-nav"
1344
+ }, Yr = [
1345
+ "href",
1346
+ "target",
1347
+ "rel"
1348
+ ], Xr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1349
+ __name: "TdHeaderNavBar",
1350
+ setup(e) {
1351
+ let t = A(), { withBase: r } = t, i = le();
1352
+ function a(e) {
1353
+ return !n(e) && i.path.startsWith(r(e));
1354
+ }
1355
+ return (e, i) => K(t).nav?.length ? (V(), F("nav", Jr, [(V(!0), F(j, null, U(K(t).nav, (e) => (V(), F("a", {
1356
+ key: e.link,
1357
+ href: K(n)(e.link) ? e.link : K(r)(e.link),
1358
+ target: K(n)(e.link) ? "_blank" : void 0,
1359
+ rel: K(n)(e.link) ? "noopener noreferrer" : void 0,
1360
+ class: B(["td-header-nav-link", { "is-active": a(e.link) }])
1361
+ }, [L(G(e.title), 1), K(n)(e.link) ? (V(), N(K(O), {
1362
+ key: 0,
1363
+ size: 14
1364
+ })) : P("", !0)], 10, Yr))), 128))])) : P("", !0);
1365
+ }
1366
+ }), [["__scopeId", "data-v-fbe56ebb"]]), Zr = {
1367
+ key: 0,
1368
+ class: "td-menu-nav"
1369
+ }, Qr = [
1370
+ "href",
1371
+ "target",
1372
+ "rel"
1373
+ ], $r = /*#__PURE__*/ k(/* @__PURE__ */ z({
1374
+ __name: "TdHeaderNavMenu",
1375
+ setup(e) {
1376
+ let t = A(), { withBase: r } = t, i = le();
1377
+ function a(e) {
1378
+ return !n(e) && i.path.startsWith(r(e));
1379
+ }
1380
+ return (e, i) => K(t).nav?.length ? (V(), F("nav", Zr, [(V(!0), F(j, null, U(K(t).nav, (e) => (V(), F("a", {
1381
+ key: e.link,
1382
+ href: K(n)(e.link) ? e.link : K(r)(e.link),
1383
+ target: K(n)(e.link) ? "_blank" : void 0,
1384
+ rel: K(n)(e.link) ? "noopener noreferrer" : void 0,
1385
+ class: B(["td-menu-nav-item", { "is-active": a(e.link) }])
1386
+ }, [
1387
+ e.icon ? (V(), N(oe, {
1388
+ key: 0,
1389
+ name: e.icon,
1390
+ size: 16
1391
+ }, null, 8, ["name"])) : P("", !0),
1392
+ I("span", null, G(e.title), 1),
1393
+ K(n)(e.link) ? (V(), N(K(O), {
1394
+ key: 1,
1395
+ size: 14
1396
+ })) : P("", !0)
1397
+ ], 10, Qr))), 128))])) : P("", !0);
359
1398
  }
360
- }), [["__scopeId", "data-v-7273c2c0"]]), at = { class: "td-widget-checkbox" }, ot = /*#__PURE__*/ S(/* @__PURE__ */ N({
1399
+ }), [["__scopeId", "data-v-9c46cb6a"]]), ei = { class: "td-widget-checkbox" }, ti = /*#__PURE__*/ k(/* @__PURE__ */ z({
361
1400
  __name: "TdWidgetCheckbox",
362
1401
  props: { value: {} },
363
1402
  setup(e) {
364
- return (t, n) => (L(), A("span", at, B(e.value ? "☑" : "☐"), 1));
1403
+ return (t, n) => (V(), F("span", ei, [e.value ? (V(), N(K(ht), {
1404
+ key: 0,
1405
+ size: 16,
1406
+ class: "td-widget-checkbox-icon is-checked"
1407
+ })) : (V(), N(K(ge), {
1408
+ key: 1,
1409
+ size: 16,
1410
+ class: "td-widget-checkbox-icon"
1411
+ }))]));
365
1412
  }
366
- }), [["__scopeId", "data-v-32f57a06"]]);
367
- //#endregion
368
- //#region src/client/theme-default/components/TdFrontmatter/widgets/ref.ts
369
- function st(e) {
370
- if (typeof e != "object" || !e) return;
371
- let t = e.$ref;
372
- if (typeof t != "object" || !t) return;
373
- let { url: n, name: r } = t;
374
- if (!(typeof n != "string" || typeof r != "string")) return {
375
- url: n,
376
- name: r
1413
+ }), [["__scopeId", "data-v-0efb2919"]]), ni = /* @__PURE__ */ new Set([
1414
+ "png",
1415
+ "jpg",
1416
+ "jpeg",
1417
+ "gif",
1418
+ "webp",
1419
+ "svg",
1420
+ "avif",
1421
+ "bmp",
1422
+ "ico",
1423
+ "tiff"
1424
+ ]);
1425
+ function ri(e) {
1426
+ if (!e) return;
1427
+ if (typeof e == "string") {
1428
+ let t = e.trim();
1429
+ return !t || !ii({ url: t }) ? void 0 : {
1430
+ url: t,
1431
+ name: a(t),
1432
+ isImage: !0
1433
+ };
1434
+ }
1435
+ if (typeof e != "object") return;
1436
+ let t = e, n = t.$ref ?? t;
1437
+ if (typeof n.url != "string") return;
1438
+ let r = n.url, i = n.name ?? a(r), o = n.format ?? t.format;
1439
+ return {
1440
+ url: r,
1441
+ name: i,
1442
+ format: o,
1443
+ icon: n.icon,
1444
+ isImage: ii({
1445
+ url: r,
1446
+ name: i,
1447
+ format: o
1448
+ })
377
1449
  };
378
1450
  }
1451
+ function ii(e) {
1452
+ if (e.format && ni.has(e.format.toLowerCase())) return !0;
1453
+ let t = o(e.name || e.url).slice(1);
1454
+ return t ? ni.has(t.toLowerCase()) : !1;
1455
+ }
379
1456
  //#endregion
380
- //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetList.vue?vue&type=script&setup=true&lang.ts
381
- var ct = ["href"], lt = { class: "td-widget-list" }, Q = 5, ut = /*#__PURE__*/ S(/* @__PURE__ */ N({
1457
+ //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
1458
+ var ai = {
1459
+ key: 0,
1460
+ class: "td-widget-relation-wrapper"
1461
+ }, oi = ["href", "title"], si = ["src", "alt"], ci = ["href"], li = { class: "td-widget-file-name" }, ui = ["href"], di = ["href"], fi = { key: 1 }, pi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1462
+ __name: "TdWidgetRelation",
1463
+ props: {
1464
+ value: {},
1465
+ hideIcon: {
1466
+ type: Boolean,
1467
+ default: !1
1468
+ }
1469
+ },
1470
+ setup(e) {
1471
+ let { withBase: t } = A(), r = M(() => ri(e.value)), i = M(() => r.value?.icon ? se(r.value.icon.name) : void 0), a = M(() => r.value !== void 0 && n(r.value.url));
1472
+ return (n, o) => r.value ? (V(), F("span", ai, [r.value.isImage ? (V(), F("a", {
1473
+ key: 0,
1474
+ href: K(t)(r.value.url),
1475
+ target: "_blank",
1476
+ rel: "noopener noreferrer",
1477
+ class: "td-widget-image-preview",
1478
+ title: r.value.name
1479
+ }, [I("img", {
1480
+ src: K(t)(r.value.url),
1481
+ alt: r.value.name,
1482
+ class: "td-widget-image-img",
1483
+ loading: "lazy"
1484
+ }, null, 8, si)], 8, oi)) : r.value.format || r.value.url.includes(".") ? (V(), F("a", {
1485
+ key: 1,
1486
+ href: K(t)(r.value.url),
1487
+ target: "_blank",
1488
+ rel: "noopener noreferrer",
1489
+ class: "td-widget-file-link"
1490
+ }, [R(K(_e), { class: "td-widget-file-icon" }), I("span", li, G(r.value.name), 1)], 8, ci)) : a.value ? (V(), F("a", {
1491
+ key: 2,
1492
+ href: r.value.url,
1493
+ target: "_blank",
1494
+ rel: "noopener noreferrer",
1495
+ class: "td-widget-ref td-widget-ref-external"
1496
+ }, [R(K(O), {
1497
+ size: 12,
1498
+ class: "td-widget-external-icon"
1499
+ })], 8, ui)) : (V(), F("a", {
1500
+ key: 3,
1501
+ href: K(t)(r.value.url),
1502
+ class: "td-widget-ref"
1503
+ }, [i.value && !e.hideIcon ? (V(), N(W(i.value), {
1504
+ key: 0,
1505
+ size: 14,
1506
+ class: "td-widget-ref-icon"
1507
+ })) : P("", !0), L(G(r.value.name), 1)], 8, di))])) : (V(), F("span", fi, G(e.value), 1));
1508
+ }
1509
+ }), [["__scopeId", "data-v-7f310d52"]]), mi = { key: 0 }, hi = { class: "td-widget-list td-widget-list-icons" }, gi = { key: 1 }, _i = { class: "td-widget-list" }, vi = 5, yi = /*#__PURE__*/ k(/* @__PURE__ */ z({
382
1510
  __name: "TdWidgetList",
383
1511
  props: {
384
1512
  definition: {},
385
1513
  value: {}
386
1514
  },
387
1515
  setup(e) {
388
- let t = R(!1), n = Array.isArray(e.value) ? e.value : [], r = e.definition.items?.widget === "relation", i = r ? n.map((e) => st(e)).filter((e) => e !== void 0) : [], a = r ? Math.max(0, i.length - Q) : Math.max(0, n.length - Q);
1516
+ let t = H(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => e.definition.items?.widget === "relation"), i = M(() => r.value ? n.value.map((e) => ri(e)).filter((e) => e !== void 0) : []), a = M(() => r.value ? Math.max(0, i.value.length - vi) : Math.max(0, n.value.length - vi));
389
1517
  function o() {
390
1518
  t.value = !t.value;
391
1519
  }
392
1520
  function s(e) {
393
- return t.value ? e : e.slice(0, Q);
1521
+ return t.value ? e : e.slice(0, vi);
394
1522
  }
395
- return (e, c) => r ? (L(), A(E, { key: 0 }, [(L(!0), A(E, null, z(s(V(i)), (e, t) => (L(), A("a", {
396
- key: t,
397
- href: e.url,
398
- class: "td-widget-ref"
399
- }, B(e.name), 9, ct))), 128)), V(a) > 0 ? (L(), A("button", {
1523
+ return (e, c) => r.value ? (V(), F("div", mi, [I("ul", hi, [(V(!0), F(j, null, U(s(i.value), (e, t) => (V(), F("li", { key: t }, [(V(), N(W(e.icon ? K(se)(e.icon.name) ?? K(te) : K(te)), {
1524
+ size: 14,
1525
+ class: "td-widget-list-icon"
1526
+ })), R(pi, {
1527
+ value: { $ref: e },
1528
+ "hide-icon": ""
1529
+ }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (V(), F("button", {
400
1530
  key: 0,
401
1531
  class: "td-widget-more",
402
1532
  type: "button",
403
1533
  onClick: o
404
- }, B(t.value ? "show less" : `+${V(a)} more`), 1)) : k("", !0)], 64)) : (L(), A(E, { key: 1 }, [j("ul", lt, [(L(!0), A(E, null, z(s(V(n)), (e, t) => (L(), A("li", { key: t }, B(e), 1))), 128))]), V(a) > 0 ? (L(), A("button", {
1534
+ }, G(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (V(), F("div", gi, [I("ul", _i, [(V(!0), F(j, null, U(s(n.value), (e, t) => (V(), F("li", { key: t }, [K(ri)(e) ? (V(), N(pi, {
1535
+ key: 0,
1536
+ value: e
1537
+ }, null, 8, ["value"])) : (V(), F(j, { key: 1 }, [L(G(e), 1)], 64))]))), 128))]), a.value > 0 ? (V(), F("button", {
405
1538
  key: 0,
406
1539
  class: "td-widget-more",
407
1540
  type: "button",
408
1541
  onClick: o
409
- }, B(t.value ? "show less" : `+${V(a)} more`), 1)) : k("", !0)], 64));
1542
+ }, G(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
410
1543
  }
411
- }), [["__scopeId", "data-v-5428367c"]]), dt = 5, ft = /*#__PURE__*/ S(/* @__PURE__ */ N({
1544
+ }), [["__scopeId", "data-v-30022220"]]), bi = [
1545
+ {
1546
+ fg: "#a0522d",
1547
+ bg: "rgba(160, 82, 45, 0.1)"
1548
+ },
1549
+ {
1550
+ fg: "#4F6BCA",
1551
+ bg: "rgba(79, 107, 202, 0.1)"
1552
+ },
1553
+ {
1554
+ fg: "#10b981",
1555
+ bg: "rgba(16, 185, 129, 0.1)"
1556
+ },
1557
+ {
1558
+ fg: "#8b5cf6",
1559
+ bg: "rgba(139, 92, 246, 0.1)"
1560
+ },
1561
+ {
1562
+ fg: "#ec4899",
1563
+ bg: "rgba(236, 72, 153, 0.1)"
1564
+ },
1565
+ {
1566
+ fg: "#f59e0b",
1567
+ bg: "rgba(245, 158, 11, 0.1)"
1568
+ },
1569
+ {
1570
+ fg: "#06b6d4",
1571
+ bg: "rgba(6, 182, 212, 0.1)"
1572
+ },
1573
+ {
1574
+ fg: "#ef4444",
1575
+ bg: "rgba(239, 68, 68, 0.1)"
1576
+ }
1577
+ ];
1578
+ function xi(e) {
1579
+ let t = bi[Si(String(e ?? "")) % bi.length];
1580
+ return {
1581
+ color: t.fg,
1582
+ background: t.bg
1583
+ };
1584
+ }
1585
+ function Si(e) {
1586
+ let t = 0;
1587
+ for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
1588
+ return Math.abs(t);
1589
+ }
1590
+ //#endregion
1591
+ //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
1592
+ var Ci = 5, wi = /*#__PURE__*/ k(/* @__PURE__ */ z({
412
1593
  __name: "TdWidgetMultiSelect",
413
1594
  props: { value: {} },
414
1595
  setup(e) {
415
- let t = R(!1), n = Array.isArray(e.value) ? e.value : [], r = () => t.value ? n : n.slice(0, dt), i = Math.max(0, n.length - dt);
1596
+ let t = H(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => t.value ? n.value : n.value.slice(0, Ci)), i = M(() => Math.max(0, n.value.length - Ci));
416
1597
  function a() {
417
1598
  t.value = !t.value;
418
1599
  }
419
- return (e, n) => (L(), A(E, null, [(L(!0), A(E, null, z(r(), (e, t) => (L(), A("span", {
1600
+ return (e, n) => (V(), F(j, null, [(V(!0), F(j, null, U(r.value, (e, t) => (V(), F("span", {
420
1601
  key: t,
421
- class: "td-widget-pill"
422
- }, B(e), 1))), 128)), V(i) > 0 ? (L(), A("button", {
1602
+ class: "td-widget-pill",
1603
+ style: je(K(xi)(e))
1604
+ }, G(e), 5))), 128)), i.value > 0 ? (V(), F("button", {
423
1605
  key: 0,
424
1606
  class: "td-widget-more",
425
1607
  type: "button",
426
1608
  onClick: a
427
- }, B(t.value ? "show less" : `+${V(i)} more`), 1)) : k("", !0)], 64));
1609
+ }, G(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
428
1610
  }
429
- }), [["__scopeId", "data-v-3d5db69d"]]), pt = ["href"], mt = { key: 1 }, ht = /*#__PURE__*/ S(/* @__PURE__ */ N({
430
- __name: "TdWidgetRelation",
431
- props: { value: {} },
432
- setup(e) {
433
- let t = st(e.value);
434
- return (n, r) => V(t) ? (L(), A("a", {
435
- key: 0,
436
- href: V(t).url,
437
- class: "td-widget-ref"
438
- }, B(V(t).name), 9, pt)) : (L(), A("span", mt, B(e.value), 1));
439
- }
440
- }), [["__scopeId", "data-v-32528101"]]), gt = { class: "td-widget-pill" }, _t = /*#__PURE__*/ S(/* @__PURE__ */ N({
1611
+ }), [["__scopeId", "data-v-9686facf"]]), Ti = /*#__PURE__*/ k(/* @__PURE__ */ z({
441
1612
  __name: "TdWidgetSelect",
442
1613
  props: { value: {} },
443
1614
  setup(e) {
444
- return (t, n) => (L(), A("span", gt, B(e.value), 1));
1615
+ return (t, n) => (V(), F("span", {
1616
+ class: "td-widget-pill",
1617
+ style: je(K(xi)(e.value))
1618
+ }, G(e.value), 5));
445
1619
  }
446
- }), [["__scopeId", "data-v-99c8837d"]]), vt = /* @__PURE__ */ N({
1620
+ }), [["__scopeId", "data-v-b9e2b4fd"]]), Ei = ["href", "title"], Di = ["src", "alt"], Oi = ["href"], ki = { class: "td-widget-file-name" }, Ai = /*#__PURE__*/ k(/* @__PURE__ */ z({
447
1621
  __name: "TdWidgetText",
448
1622
  props: {
449
1623
  definition: {},
450
1624
  value: {}
451
1625
  },
452
1626
  setup(e) {
453
- function t(t) {
454
- return t == null ? "" : e.definition.widget === "date" ? f(String(t)) : String(t);
1627
+ let { withBase: t } = A(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => ri(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && ii({ url: n.value })), a = M(() => r.value ? r.value.url : n.value), o = M(() => t(a.value)), s = M(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
1628
+ function c(t) {
1629
+ return t == null ? "" : e.definition.widget === "date" ? _(String(t)) : String(t);
455
1630
  }
456
- return (n, r) => B(t(e.value));
1631
+ return (t, a) => i.value ? (V(), F("a", {
1632
+ key: 0,
1633
+ href: o.value,
1634
+ target: "_blank",
1635
+ rel: "noopener noreferrer",
1636
+ class: "td-widget-image-preview",
1637
+ title: r.value ? r.value.name : n.value
1638
+ }, [I("img", {
1639
+ src: o.value,
1640
+ alt: r.value ? r.value.name : n.value,
1641
+ class: "td-widget-image-img",
1642
+ loading: "lazy"
1643
+ }, null, 8, Di)], 8, Ei)) : s.value ? (V(), F("a", {
1644
+ key: 1,
1645
+ href: o.value,
1646
+ target: "_blank",
1647
+ rel: "noopener noreferrer",
1648
+ class: "td-widget-file-link"
1649
+ }, [R(K(_e), { class: "td-widget-file-icon" }), I("span", ki, G(n.value.split("/").pop() ?? n.value), 1)], 8, Oi)) : (V(), F(j, { key: 2 }, [L(G(c(e.value)), 1)], 64));
457
1650
  }
458
- }), yt = {
1651
+ }), [["__scopeId", "data-v-571e6598"]]), ji = {
459
1652
  key: 0,
460
1653
  class: "td-frontmatter-empty"
461
- }, bt = /*#__PURE__*/ S(/* @__PURE__ */ N({
1654
+ }, Mi = /*#__PURE__*/ k(/* @__PURE__ */ z({
462
1655
  __name: "TdFrontmatterValue",
463
1656
  props: {
464
1657
  definition: {},
465
1658
  value: {}
466
1659
  },
467
1660
  setup(e) {
468
- return (t, n) => e.value === void 0 || e.value === null ? (L(), A("span", yt, "Empty")) : e.definition.widget === "checkbox" ? (L(), O(ot, {
1661
+ return (t, n) => e.value === void 0 || e.value === null ? (V(), F("span", ji, "Empty")) : e.definition.widget === "checkbox" ? (V(), N(ti, {
469
1662
  key: 1,
470
1663
  value: e.value
471
- }, null, 8, ["value"])) : e.definition.widget === "select" ? (L(), O(_t, {
1664
+ }, null, 8, ["value"])) : e.definition.widget === "select" ? (V(), N(Ti, {
472
1665
  key: 2,
473
1666
  value: e.value
474
- }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (L(), O(ft, {
1667
+ }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (V(), N(wi, {
475
1668
  key: 3,
476
1669
  value: e.value
477
- }, null, 8, ["value"])) : e.definition.widget === "relation" ? (L(), O(ht, {
1670
+ }, null, 8, ["value"])) : K(ri)(e.value) || e.definition.widget === "relation" ? (V(), N(pi, {
478
1671
  key: 4,
479
1672
  value: e.value
480
- }, null, 8, ["value"])) : e.definition.widget === "list" ? (L(), O(ut, {
1673
+ }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (V(), N(yi, {
481
1674
  key: 5,
482
1675
  definition: e.definition,
483
1676
  value: e.value
484
- }, null, 8, ["definition", "value"])) : (L(), O(vt, {
1677
+ }, null, 8, ["definition", "value"])) : (V(), N(Ai, {
485
1678
  key: 6,
486
1679
  definition: e.definition,
487
1680
  value: e.value
488
1681
  }, null, 8, ["definition", "value"]));
489
1682
  }
490
- }), [["__scopeId", "data-v-0bce73aa"]]), xt = {
1683
+ }), [["__scopeId", "data-v-d9b33f7b"]]), Ni = {
491
1684
  key: 0,
492
- class: "td-frontmatter"
493
- }, St = { class: "td-frontmatter-label" }, Ct = { class: "td-frontmatter-value" }, wt = /*#__PURE__*/ S(/* @__PURE__ */ N({
1685
+ class: "td-fm-rail"
1686
+ }, Pi = { key: 0 }, Fi = { class: "td-fm-rail-key" }, Ii = { class: "td-fm-rail-value" }, Li = {
1687
+ key: 1,
1688
+ class: "td-fm-box"
1689
+ }, Ri = { class: "td-fm-box-label" }, zi = { class: "td-fm-box-count" }, Bi = { class: "td-fm-box-toggle" }, Vi = {
1690
+ key: 0,
1691
+ class: "td-fm-box-body"
1692
+ }, Hi = { class: "td-fm-box-key" }, Ui = { class: "td-fm-box-value" }, Wi = /*#__PURE__*/ k(/* @__PURE__ */ z({
494
1693
  __name: "TdFrontmatter",
495
1694
  props: {
1695
+ mode: { default: "inline" },
496
1696
  schema: { default: () => void 0 },
497
1697
  frontmatter: {}
498
1698
  },
499
1699
  setup(e) {
500
- let t = b(), n = D(() => {
501
- if (e.schema) return t.schemas[e.schema];
502
- }), r = D(() => {
503
- let e = n.value;
504
- return e ? Object.entries(e).filter(([e]) => !e.startsWith("_")) : [];
505
- });
506
- return (t, n) => r.value.length > 0 ? (L(), A("div", xt, [(L(!0), A(E, null, z(r.value, ([t, n]) => (L(), A("div", {
1700
+ let t = re(), n = M(() => {
1701
+ if (e.schema) return t.value.schemas[e.schema];
1702
+ }), r = M(() => {
1703
+ let t = n.value, r = [], i = /* @__PURE__ */ new Set();
1704
+ t && Object.keys(t).forEach((e) => i.add(e)), Object.keys(e.frontmatter).forEach((e) => i.add(e));
1705
+ for (let n of i) {
1706
+ if (x(n)) continue;
1707
+ let i = e.frontmatter[n];
1708
+ if (i == null || Array.isArray(i) && i.length === 0) continue;
1709
+ let a = t?.[n] ?? { widget: "text" };
1710
+ r.push([n, a]);
1711
+ }
1712
+ return r;
1713
+ }), i = {
1714
+ text: _t,
1715
+ checkbox: it,
1716
+ select: ce,
1717
+ multiSelect: gt,
1718
+ relation: O,
1719
+ list: ut
1720
+ };
1721
+ function a(e) {
1722
+ return i[e] ?? _t;
1723
+ }
1724
+ let o = H(!1), s = H(!1);
1725
+ function c() {
1726
+ o.value = !o.value;
1727
+ }
1728
+ function l() {
1729
+ s.value = !s.value;
1730
+ }
1731
+ return (t, n) => e.mode === "rail" && r.value.length > 0 ? (V(), F("div", Ni, [I("button", {
1732
+ type: "button",
1733
+ class: "td-fm-rail-header",
1734
+ onClick: l
1735
+ }, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(K(tt), {
1736
+ size: 14,
1737
+ class: B(["td-fm-rail-caret", { "is-collapsed": s.value }])
1738
+ }, null, 8, ["class"])]), s.value ? P("", !0) : (V(), F("div", Pi, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F("div", {
507
1739
  key: t,
508
- class: "td-frontmatter-row"
509
- }, [j("span", St, B(V(_)(t)), 1), j("span", Ct, [M(bt, {
1740
+ class: "td-fm-rail-row"
1741
+ }, [I("span", Fi, [(V(), N(W(a(n.widget)), {
1742
+ size: 12,
1743
+ class: "td-fm-icon"
1744
+ })), L(" " + G(K(w)(t)), 1)]), I("span", Ii, [R(Mi, {
1745
+ definition: n,
1746
+ value: e.frontmatter[t]
1747
+ }, null, 8, ["definition", "value"])])]))), 128))]))])) : r.value.length > 0 ? (V(), F("div", Li, [I("button", {
1748
+ type: "button",
1749
+ class: "td-fm-box-header",
1750
+ onClick: c
1751
+ }, [I("span", Ri, [n[1] ||= L("Properties ", -1), I("span", zi, G(r.value.length), 1)]), I("span", Bi, [L(G(o.value ? "Show" : "Hide") + " ", 1), o.value ? (V(), N(K(rt), {
1752
+ key: 1,
1753
+ size: 14
1754
+ })) : (V(), N(K(tt), {
1755
+ key: 0,
1756
+ size: 14
1757
+ }))])]), o.value ? P("", !0) : (V(), F("div", Vi, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F(j, { key: t }, [I("span", Hi, [(V(), N(W(a(n.widget)), {
1758
+ size: 12,
1759
+ class: "td-fm-icon"
1760
+ })), L(" " + G(K(w)(t)), 1)]), I("span", Ui, [R(Mi, {
510
1761
  definition: n,
511
1762
  value: e.frontmatter[t]
512
- }, null, 8, ["definition", "value"])])]))), 128))])) : k("", !0);
1763
+ }, null, 8, ["definition", "value"])])], 64))), 128))]))])) : P("", !0);
513
1764
  }
514
- }), [["__scopeId", "data-v-76ddc55f"]]), $ = R(!1);
515
- function Tt() {
1765
+ }), [["__scopeId", "data-v-b72cea28"]]), Gi = H(!1);
1766
+ function Ki() {
516
1767
  function e() {
517
- $.value = !$.value;
1768
+ Gi.value = !Gi.value;
518
1769
  }
519
1770
  function t() {
520
- $.value = !1;
1771
+ Gi.value = !0;
1772
+ }
1773
+ function n() {
1774
+ Gi.value = !1;
521
1775
  }
522
1776
  return {
523
- isOpen: ce($),
1777
+ isOpen: Ie(Gi),
524
1778
  toggle: e,
525
- close: t
1779
+ open: t,
1780
+ close: n
526
1781
  };
527
1782
  }
528
1783
  //#endregion
529
1784
  //#region src/client/theme-default/components/TdMenuButton.vue
530
- var Et = /* @__PURE__ */ N({
1785
+ var qi = /* @__PURE__ */ z({
531
1786
  __name: "TdMenuButton",
532
1787
  setup(e) {
533
- let { isOpen: t, toggle: n } = Tt();
534
- return (e, r) => (L(), O(Z, {
1788
+ let { isOpen: t, toggle: n } = Ki();
1789
+ return (e, r) => (V(), N(Tt, {
535
1790
  class: "td-menu-button w-9 h-9 text-td-neutral-fg-muted group",
536
- label: V(t) ? "Close menu" : "Open menu",
537
- "aria-expanded": V(t),
538
- onClick: V(n)
1791
+ label: K(t) ? "Close menu" : "Open menu",
1792
+ "aria-expanded": K(t),
1793
+ onClick: K(n)
539
1794
  }, {
540
- default: W(() => [V(t) ? (L(), O(V(X), {
1795
+ default: qe(() => [K(t) ? (V(), N(K(vt), {
541
1796
  key: 0,
542
1797
  size: 20,
543
1798
  class: "group-hover:text-td-primary-solid transition-colors"
544
- })) : (L(), O(V(Ee), {
1799
+ })) : (V(), N(K(ft), {
545
1800
  key: 1,
546
1801
  size: 20,
547
1802
  class: "group-hover:text-td-primary-solid transition-colors"
@@ -553,20 +1808,374 @@ var Et = /* @__PURE__ */ N({
553
1808
  "onClick"
554
1809
  ]));
555
1810
  }
556
- }), Dt = { class: "td-search" }, Ot = { class: "td-search-input-wrap" }, kt = {
1811
+ });
1812
+ //#endregion
1813
+ //#region src/client/theme-default/composables/usePreviousNext.ts
1814
+ function Ji() {
1815
+ let e = re(), t = le(), { withBase: n } = A(), r = M(() => {
1816
+ let r = Xi(e.value.contentTree, t.path);
1817
+ if (r === void 0) return {};
1818
+ let i = r.pages.findIndex((e) => e.url === t.path);
1819
+ if (i === -1) return { groupName: r.groupName };
1820
+ let a = 0 < i ? r.pages[i - 1] : void 0, o = i < r.pages.length - 1 ? r.pages[i + 1] : void 0;
1821
+ return {
1822
+ previous: a ? {
1823
+ ...a,
1824
+ url: n(a.url)
1825
+ } : void 0,
1826
+ next: o ? {
1827
+ ...o,
1828
+ url: n(o.url)
1829
+ } : void 0,
1830
+ groupName: r.groupName
1831
+ };
1832
+ });
1833
+ return {
1834
+ previous: M(() => r.value.previous),
1835
+ next: M(() => r.value.next),
1836
+ groupName: M(() => r.value.groupName)
1837
+ };
1838
+ }
1839
+ function Yi(e, t) {
1840
+ let n = [];
1841
+ for (let r of e) r.kind === "file" ? n.push(Qi(r.item)) : n.push($i(r.node, t));
1842
+ return n;
1843
+ }
1844
+ function Xi(e, n) {
1845
+ if (e.entries.some((e) => e.kind === "file" && t(e.item.filepath) === n)) return {
1846
+ pages: Yi(e.entries, ""),
1847
+ groupName: ""
1848
+ };
1849
+ for (let t of e.entries) {
1850
+ if (t.kind !== "dir") continue;
1851
+ let e = Zi(t.node, n, "");
1852
+ if (e !== void 0) return e;
1853
+ }
1854
+ }
1855
+ function Zi(e, n, r) {
1856
+ let i = u(r, e.name);
1857
+ if (e.entries.some((e) => e.kind === "file" && t(e.item.filepath) === n)) {
1858
+ let t = [], n = g(e);
1859
+ n && t.push(Qi(n));
1860
+ for (let n of e.entries) n.kind === "file" ? l(n.item.filepath) || t.push(Qi(n.item)) : t.push($i(n.node, i));
1861
+ return {
1862
+ pages: t,
1863
+ groupName: w(e.name)
1864
+ };
1865
+ }
1866
+ for (let t of e.entries) {
1867
+ if (t.kind !== "dir") continue;
1868
+ let e = Zi(t.node, n, i);
1869
+ if (e !== void 0) return e;
1870
+ }
1871
+ }
1872
+ function Qi(e) {
1873
+ return {
1874
+ url: t(e.filepath),
1875
+ title: p(e.filepath, e.label)
1876
+ };
1877
+ }
1878
+ function $i(e, t) {
1879
+ let n = u(t, e.name), r = g(e);
1880
+ return r ? Qi(r) : {
1881
+ url: C(n),
1882
+ title: w(e.name)
1883
+ };
1884
+ }
1885
+ //#endregion
1886
+ //#region src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
1887
+ var ea = {
557
1888
  key: 0,
1889
+ class: "td-prevnext",
1890
+ "aria-label": "Page navigation"
1891
+ }, ta = { class: "td-prevnext-row" }, na = ["href"], ra = { class: "td-prevnext-label" }, ia = { class: "td-prevnext-title" }, aa = {
1892
+ key: 1,
1893
+ class: "td-prevnext-spacer"
1894
+ }, oa = ["href"], sa = { class: "td-prevnext-label" }, ca = { class: "td-prevnext-title" }, la = {
1895
+ key: 3,
1896
+ class: "td-prevnext-spacer"
1897
+ }, ua = /*#__PURE__*/ k(/* @__PURE__ */ z({
1898
+ __name: "TdPreviousNext",
1899
+ setup(e) {
1900
+ let { previous: t, next: n, groupName: r } = Ji();
1901
+ return (e, i) => K(t) || K(n) ? (V(), F("nav", ea, [I("div", ta, [K(t) ? (V(), F("a", {
1902
+ key: 0,
1903
+ href: K(t).url,
1904
+ class: "td-prevnext-link is-previous"
1905
+ }, [I("span", ra, [R(K(nt), {
1906
+ size: 16,
1907
+ class: "td-prevnext-chevron"
1908
+ }), L(" " + G(K(r) ? `Previous in ${K(r)}` : "Previous"), 1)]), I("span", ia, G(K(t).title), 1)], 8, na)) : (V(), F("span", aa)), K(n) ? (V(), F("a", {
1909
+ key: 2,
1910
+ href: K(n).url,
1911
+ class: "td-prevnext-link is-next"
1912
+ }, [I("span", sa, [L(G(K(r) ? `Next in ${K(r)}` : "Next") + " ", 1), R(K(rt), {
1913
+ size: 16,
1914
+ class: "td-prevnext-chevron"
1915
+ })]), I("span", ca, G(K(n).title), 1)], 8, oa)) : (V(), F("span", la))])])) : P("", !0);
1916
+ }
1917
+ }), [["__scopeId", "data-v-c670dcea"]]), da = 100;
1918
+ function fa(e) {
1919
+ let t = H(void 0), n = [], r;
1920
+ function i() {
1921
+ if (n.length === 0) return;
1922
+ let e = window.scrollY;
1923
+ if (document.body.offsetHeight <= e + window.innerHeight) {
1924
+ t.value = n.at(-1).id;
1925
+ return;
1926
+ }
1927
+ let r;
1928
+ for (let t of n) if (pa(t) <= e + da) r = t.id;
1929
+ else break;
1930
+ t.value = r;
1931
+ }
1932
+ function a() {
1933
+ r !== void 0 && cancelAnimationFrame(r), r = requestAnimationFrame(i);
1934
+ }
1935
+ function o(e) {
1936
+ if (typeof document > "u") return;
1937
+ t.value = void 0;
1938
+ let r = new Set(e.map((e) => e.slug));
1939
+ n = Array.from(document.querySelectorAll(".td-content h2[id], .td-content h3[id], .td-content h4[id], .td-content h5[id]")).filter((e) => r.has(e.id)), i();
1940
+ }
1941
+ return Ne(() => {
1942
+ window.addEventListener("scroll", a);
1943
+ }), Fe(() => {
1944
+ window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
1945
+ }), q(e, (e) => {
1946
+ typeof window > "u" || Ae(() => o(e));
1947
+ }, { immediate: !0 }), t;
1948
+ }
1949
+ function pa(e) {
1950
+ let t = 0, n = e;
1951
+ for (; n;) t += n.offsetTop, n = n.offsetParent;
1952
+ return t;
1953
+ }
1954
+ //#endregion
1955
+ //#region src/client/theme-default/components/TdToc.vue?vue&type=script&setup=true&lang.ts
1956
+ var ma = {
1957
+ key: 0,
1958
+ class: "td-toc"
1959
+ }, ha = { class: "td-toc-list" }, ga = ["href"], _a = /*#__PURE__*/ k(/* @__PURE__ */ z({
1960
+ __name: "TdToc",
1961
+ props: {
1962
+ headings: {},
1963
+ static: {
1964
+ type: Boolean,
1965
+ default: !1
1966
+ }
1967
+ },
1968
+ setup(e) {
1969
+ let t = e.static ? M(() => void 0) : fa(() => e.headings);
1970
+ return (n, r) => e.headings.length ? (V(), F("div", ma, [r[0] ||= I("div", { class: "td-toc-label" }, " On this page ", -1), I("ul", ha, [(V(!0), F(j, null, U(e.headings, (e) => (V(), F("li", {
1971
+ key: e.slug,
1972
+ class: B({
1973
+ "td-toc-indent-1": e.level === 3,
1974
+ "td-toc-indent-2": e.level === 4,
1975
+ "td-toc-indent-3": e.level === 5
1976
+ })
1977
+ }, [I("a", {
1978
+ href: e.link,
1979
+ class: B(["td-toc-link", { "is-active": K(t) === e.slug }])
1980
+ }, G(e.title), 11, ga)], 2))), 128))])])) : P("", !0);
1981
+ }
1982
+ }), [["__scopeId", "data-v-e8f610de"]]), va = { class: "td-rail" }, ya = /*#__PURE__*/ k(/* @__PURE__ */ z({
1983
+ __name: "TdRail",
1984
+ setup(e) {
1985
+ let { page: t } = fe();
1986
+ return (e, n) => (V(), F("aside", va, [R(K(Wi), {
1987
+ mode: "rail",
1988
+ schema: K(t).schema,
1989
+ frontmatter: K(t).frontmatter
1990
+ }, null, 8, ["schema", "frontmatter"]), R(_a, { headings: K(t).headings }, null, 8, ["headings"])]));
1991
+ }
1992
+ }), [["__scopeId", "data-v-51f03a3f"]]), ba = {
1993
+ class: "td-skeleton",
1994
+ role: "status",
1995
+ "aria-label": "Loading"
1996
+ }, xa = /*#__PURE__*/ k(/* @__PURE__ */ z({
1997
+ __name: "TdSkeleton",
1998
+ props: { lines: { default: 5 } },
1999
+ setup(e) {
2000
+ let t = [
2001
+ 87,
2002
+ 64,
2003
+ 75,
2004
+ 58,
2005
+ 68,
2006
+ 80,
2007
+ 55,
2008
+ 72
2009
+ ];
2010
+ return (n, r) => (V(), F("div", ba, [(V(!0), F(j, null, U(e.lines, (e) => (V(), F("div", {
2011
+ key: e,
2012
+ class: "td-skeleton-line",
2013
+ style: je({ width: `${t[(e - 1) % t.length]}%` })
2014
+ }, null, 4))), 128))]));
2015
+ }
2016
+ }), [["__scopeId", "data-v-3a90c590"]]), $ = /* @__PURE__ */ function(e) {
2017
+ return e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Enter = "Enter", e.Tab = "Tab", e.Space = " ", e.Escape = "Escape", e.Shift = "Shift", e.Control = "Control", e.Alt = "Alt", e.Meta = "Meta", e.Delete = "Delete", e.Backspace = "Backspace", e.F1 = "F1", e.F2 = "F2", e.F3 = "F3", e.F4 = "F4", e.F5 = "F5", e.F6 = "F6", e.F7 = "F7", e.F8 = "F8", e.F9 = "F9", e.F10 = "F10", e.F11 = "F11", e.F12 = "F12", e.a = "a", e.b = "b", e.c = "c", e.d = "d", e.e = "e", e.f = "f", e.g = "g", e.h = "h", e.i = "i", e.j = "j", e.k = "k", e.l = "l", e.m = "m", e.n = "n", e.o = "o", e.p = "p", e.q = "q", e.r = "r", e.s = "s", e.t = "t", e.u = "u", e.v = "v", e.w = "w", e.x = "x", e.y = "y", e.z = "z", e.FSlash = "/", e.Question = "?", e;
2018
+ }({}), Sa = { class: "td-kbd-shortcut" }, Ca = /*#__PURE__*/ k(/* @__PURE__ */ z({
2019
+ __name: "TdKbdShortcut",
2020
+ props: { keys: {} },
2021
+ setup(e) {
2022
+ let t = {
2023
+ [$.ArrowDown]: Ze,
2024
+ [$.ArrowUp]: et,
2025
+ [$.ArrowLeft]: Qe,
2026
+ [$.ArrowRight]: $e,
2027
+ [$.Meta]: at,
2028
+ [$.Alt]: pt,
2029
+ [$.Enter]: ot,
2030
+ [$.Delete]: st,
2031
+ [$.Space]: mt
2032
+ }, n = {
2033
+ [$.Control]: "⌃",
2034
+ [$.Shift]: "⇧",
2035
+ [$.Escape]: "Esc",
2036
+ [$.Tab]: "Tab",
2037
+ [$.Backspace]: "⌫"
2038
+ }, r = M(() => e.keys.map((e) => {
2039
+ let r = t[e];
2040
+ if (r) return { icon: r };
2041
+ let i = n[e];
2042
+ return i ? { label: i } : { label: e.toUpperCase() };
2043
+ }));
2044
+ return (e, t) => (V(), F("span", Sa, [(V(!0), F(j, null, U(r.value, (e, t) => (V(), F("kbd", { key: t }, [e.icon ? (V(), N(W(e.icon), {
2045
+ key: 0,
2046
+ size: 12
2047
+ })) : (V(), F(j, { key: 1 }, [L(G(e.label), 1)], 64))]))), 128))]));
2048
+ }
2049
+ }), [["__scopeId", "data-v-01ed4b9d"]]), wa = 120, Ta = /^h[1-6]$/i, Ea = 16;
2050
+ function Da() {
2051
+ let t = me(), n = de(), r, a = !1, o = Be([]), s = Be(!1), l = /* @__PURE__ */ new Map();
2052
+ q(t, () => {
2053
+ r = void 0, l.clear();
2054
+ });
2055
+ function u() {
2056
+ if (r) return r;
2057
+ if (t.value) return r = De(ee.loadJSON(t.value, {
2058
+ fields: c,
2059
+ storeFields: i
2060
+ })), r;
2061
+ }
2062
+ function p(e) {
2063
+ let t = /* @__PURE__ */ new Map(), n = Te(e), r = document.createElement("div");
2064
+ n.config.warnHandler = () => {};
2065
+ try {
2066
+ n.mount(r);
2067
+ let e = r.querySelectorAll("h1, h2, h3, h4, h5, h6");
2068
+ for (let n of e) {
2069
+ let e = n.querySelector("a")?.getAttribute("href")?.slice(1) ?? "", r = "", i = n.nextElementSibling;
2070
+ for (; i && !Ta.test(i.tagName);) r += i.outerHTML, i = i.nextElementSibling;
2071
+ t.set(e, d(r));
2072
+ }
2073
+ t.size === 0 ? t.set("", d(r.innerHTML)) : t.set("", [...t.values()].join(" "));
2074
+ } finally {
2075
+ n.unmount();
2076
+ }
2077
+ return t;
2078
+ }
2079
+ async function m(t) {
2080
+ if (!n) return "";
2081
+ let r = e(t), i = S(t), a = l.get(r);
2082
+ if (!a) try {
2083
+ let e = (await n(r))?.default;
2084
+ if (!e) return "";
2085
+ if (a = p(e), Ea <= l.size) {
2086
+ let e = l.keys().next().value;
2087
+ e !== void 0 && l.delete(e);
2088
+ }
2089
+ l.set(r, a);
2090
+ } catch {
2091
+ return "";
2092
+ }
2093
+ return a.get(i) ?? a.get("") ?? "";
2094
+ }
2095
+ function h(e, t) {
2096
+ if (!e) return "";
2097
+ let n = Object.keys(t);
2098
+ if (n.length === 0) return e.slice(0, wa);
2099
+ let r = e.toLowerCase(), i = e.length;
2100
+ for (let e of n) {
2101
+ let t = r.indexOf(e.toLowerCase());
2102
+ t !== -1 && t < i && (i = t);
2103
+ }
2104
+ let a = Math.max(0, i - 30), o = Math.min(e.length, a + wa), s = e.slice(a, o).trim();
2105
+ return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
2106
+ }
2107
+ async function g(e) {
2108
+ let t = u();
2109
+ if (!t) {
2110
+ s.value = !1;
2111
+ return;
2112
+ }
2113
+ let n = t.search(e, {
2114
+ prefix: !0,
2115
+ fuzzy: (e) => 3 < e.length && .2,
2116
+ boost: {
2117
+ title: 4,
2118
+ text: 2
2119
+ }
2120
+ }).slice(0, 20);
2121
+ o.value = n.map((e) => ({
2122
+ id: e.id,
2123
+ title: e.title,
2124
+ excerpt: "",
2125
+ score: e.score
2126
+ })), s.value = !1;
2127
+ for (let [e, t] of n.entries()) {
2128
+ if (a) return;
2129
+ let n = h(await m(t.id), t.match);
2130
+ if (a) return;
2131
+ o.value[e].excerpt = n, He(o);
2132
+ }
2133
+ }
2134
+ let _ = f((e) => g(e), 150);
2135
+ function v(e) {
2136
+ a = !1;
2137
+ let t = e.trim();
2138
+ if (!t) {
2139
+ o.value = [], s.value = !1;
2140
+ return;
2141
+ }
2142
+ s.value = !0, _(t);
2143
+ }
2144
+ function y() {
2145
+ a = !0;
2146
+ }
2147
+ return {
2148
+ results: o,
2149
+ searching: M(() => s.value),
2150
+ indexLoaded: M(() => t.value !== void 0),
2151
+ search: v,
2152
+ cancel: y
2153
+ };
2154
+ }
2155
+ //#endregion
2156
+ //#region src/client/theme-default/components/TdSiteSearch/highlight.ts
2157
+ function Oa(e, t) {
2158
+ if (!e || !t) return b(e);
2159
+ let n = t.trim().split(/\s+/).filter(Boolean), r = b(e);
2160
+ for (let e of n) {
2161
+ let t = RegExp(`(${v(e)})`, "gi");
2162
+ r = r.replace(t, "<mark>$1</mark>");
2163
+ }
2164
+ return r;
2165
+ }
2166
+ //#endregion
2167
+ //#region src/client/theme-default/components/TdSiteSearch/TdSiteSearch.vue?vue&type=script&setup=true&lang.ts
2168
+ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
2169
+ key: 2,
558
2170
  class: "td-search-count"
559
- }, At = {
2171
+ }, Ma = {
560
2172
  key: 0,
561
2173
  class: "td-search-results"
562
- }, jt = ["href"], Mt = { class: "td-search-result-header" }, Nt = ["innerHTML"], Pt = {
563
- key: 0,
564
- class: "td-search-result-badge"
565
- }, Ft = { class: "td-search-result-breadcrumb" }, It = ["innerHTML"], Lt = {
2174
+ }, Na = { class: "td-search-group-label" }, Pa = ["href"], Fa = ["innerHTML"], Ia = ["innerHTML"], La = {
566
2175
  key: 1,
567
2176
  class: "td-search-empty"
568
- }, Rt = 120, zt = /*#__PURE__*/ S(/* @__PURE__ */ N({
569
- __name: "TdSearch",
2177
+ }, Ra = /*#__PURE__*/ k(/* @__PURE__ */ z({
2178
+ __name: "TdSiteSearch",
570
2179
  props: {
571
2180
  active: {
572
2181
  type: Boolean,
@@ -576,155 +2185,137 @@ var Et = /* @__PURE__ */ N({
576
2185
  query: { default: "" },
577
2186
  queryModifiers: {}
578
2187
  },
579
- emits: /*@__PURE__*/ ae(["select"], ["update:active", "update:query"]),
580
- setup(t, { emit: n }) {
581
- let r = H(t, "active"), i = H(t, "query"), a = n, o = w(), s = de([]), u = D(() => 0 < i.value.trim().length);
582
- U(u, (e) => {
583
- r.value = e;
584
- });
585
- let d = te(), f = ee(), p;
586
- U(d, () => {
587
- p = void 0;
588
- });
589
- function m() {
590
- if (p) return p;
591
- if (d.value) return p = ie(y.loadJSON(d.value, {
592
- fields: c,
593
- storeFields: e
594
- })), p;
595
- }
596
- let g = !1, _ = me((e) => O(e), 150);
597
- U(i, (e, t, n) => {
598
- n(() => {
599
- g = !0;
600
- }), g = !1;
601
- let r = e.trim();
602
- if (!r) {
603
- s.value = [];
604
- return;
2188
+ emits: /*@__PURE__*/ Oe(["select"], ["update:active", "update:query"]),
2189
+ setup(t, { expose: n, emit: r }) {
2190
+ let i = Ue(t, "active"), a = Ue(t, "query"), o = r, s = le(), { withBase: c } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Da(), m = H(-1), h = M(() => 0 < a.value.trim().length), g = M(() => {
2191
+ let t = [], n = /* @__PURE__ */ new Map();
2192
+ for (let r of l.value) {
2193
+ let i = e(r.id), a = n.get(i);
2194
+ if (!a) {
2195
+ let e = i.split("/").pop() || "index";
2196
+ a = {
2197
+ pageUrl: i,
2198
+ pageTitle: w(e),
2199
+ results: []
2200
+ }, n.set(i, a), t.push(a);
2201
+ }
2202
+ a.results.push(r);
605
2203
  }
606
- _(r);
2204
+ return t;
607
2205
  });
608
- function v() {
609
- i.value = "";
610
- }
611
- function b(e, t) {
612
- let n = RegExp(`id="${G(t)}"[^>]*>`, "i").exec(e);
613
- if (!n) return h(e);
614
- let r = e.slice(n.index + n[0].length), i = r.search(/<h[1-6]/i);
615
- return h(0 <= i ? r.slice(0, i) : r);
616
- }
617
- function x(e, t) {
618
- if (!e) return "";
619
- let n = Object.keys(t);
620
- if (n.length === 0) return e.slice(0, Rt);
621
- let r = e.toLowerCase(), i = e.length;
622
- for (let e of n) {
623
- let t = r.indexOf(e.toLowerCase());
624
- t !== -1 && t < i && (i = t);
625
- }
626
- let a = Math.max(0, i - 30), o = Math.min(e.length, a + Rt), s = e.slice(a, o).trim();
627
- return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
628
- }
629
- async function S(e, t, n) {
630
- let r = t.indexOf("#"), i = 0 <= r ? t.slice(0, r) : t, a = 0 <= r ? t.slice(r + 1) : "";
631
- try {
632
- let t = (await e(i))?.default, r = (typeof t?.data == "function" ? t.data() : {}).__html ?? "";
633
- return x(a ? b(r, a) : h(r), n);
634
- } catch {
635
- return "";
636
- }
2206
+ q(h, (e) => {
2207
+ i.value = e;
2208
+ }), q(a, (e, t, n) => {
2209
+ n(() => p()), m.value = -1, f(e);
2210
+ });
2211
+ function _() {
2212
+ a.value = "";
637
2213
  }
638
- function C(e, t) {
639
- if (!e || !t) return l(e);
640
- let n = t.trim().split(/\s+/).filter(Boolean), r = l(e);
641
- for (let e of n) {
642
- let t = RegExp(`(${G(e)})`, "gi");
643
- r = r.replace(t, "<mark>$1</mark>");
2214
+ let v = M(() => g.value.flatMap((e) => e.results)), y = M(() => {
2215
+ let e = /* @__PURE__ */ new Map();
2216
+ for (let t = 0; t < v.value.length; t++) e.set(v.value[t].id, t);
2217
+ return e;
2218
+ });
2219
+ function b(e) {
2220
+ let t = y.value.size;
2221
+ if (t !== 0) {
2222
+ if (e.key === "ArrowDown") e.preventDefault(), m.value = (m.value + 1) % t;
2223
+ else if (e.key === "ArrowUp") e.preventDefault(), m.value = (m.value - 1 + t) % t;
2224
+ else if (e.key === "Enter" && 0 <= m.value) {
2225
+ e.preventDefault();
2226
+ let t = v.value[m.value];
2227
+ if (!t) return;
2228
+ document.querySelector(`.td-search-result[href="${CSS.escape(c(t.id))}"]`)?.click();
2229
+ }
644
2230
  }
645
- return r;
646
2231
  }
647
- function T(e) {
648
- let t = e.split("#")[0];
649
- return o.path === t;
650
- }
651
- function ne() {
652
- a("select");
653
- }
654
- async function O(e) {
655
- let t = m();
656
- if (!t) return;
657
- let n = t.search(e, {
658
- prefix: !0,
659
- fuzzy: .2,
660
- boost: { title: 2 }
661
- }), r = await Promise.all(n.slice(0, 20).map(async (e) => {
662
- let t = f ? await S(f, e.id, e.match) : "";
663
- return {
664
- id: e.id,
665
- title: e.title,
666
- titles: e.titles,
667
- excerpt: t,
668
- score: e.score
669
- };
670
- }));
671
- g || (s.value = r);
2232
+ function x() {
2233
+ o("select");
672
2234
  }
673
- return (e, t) => (L(), A("div", Dt, [
674
- j("div", Ot, [
675
- M(V(Oe), {
2235
+ let S = We("searchInput");
2236
+ return n({
2237
+ focus() {
2238
+ S.value?.focus();
2239
+ },
2240
+ blur() {
2241
+ S.value?.blur();
2242
+ },
2243
+ get isVisible() {
2244
+ return S.value?.offsetParent !== null;
2245
+ },
2246
+ get isFocused() {
2247
+ return document.activeElement === S.value;
2248
+ }
2249
+ }), (e, t) => (V(), F("div", ka, [
2250
+ I("div", Aa, [
2251
+ R(K(ye), {
676
2252
  size: 14,
677
2253
  class: "td-search-icon"
678
2254
  }),
679
- pe(j("input", {
680
- "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
2255
+ Je(I("input", {
2256
+ ref_key: "searchInput",
2257
+ ref: S,
2258
+ "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
681
2259
  class: "td-search-input",
682
2260
  type: "text",
683
- placeholder: "Search..."
684
- }, null, 512), [[fe, i.value]]),
685
- u.value ? (L(), A("span", kt, B(s.value.length), 1)) : k("", !0),
686
- i.value ? (L(), A("button", {
2261
+ size: "1",
2262
+ placeholder: "Search...",
2263
+ onKeydown: b
2264
+ }, null, 544), [[Ge, a.value]]),
2265
+ !h.value && !K(u) ? (V(), N(Ca, {
2266
+ key: 0,
2267
+ keys: [K($).Meta, K($).k],
2268
+ class: "td-search-kbd"
2269
+ }, null, 8, ["keys"])) : P("", !0),
2270
+ K(u) || !K(d) ? (V(), N(K(dt), {
687
2271
  key: 1,
2272
+ size: 12,
2273
+ class: "td-search-spinner"
2274
+ })) : h.value ? (V(), F("span", ja, G(K(l).length), 1)) : P("", !0),
2275
+ a.value ? (V(), F("button", {
2276
+ key: 3,
688
2277
  class: "td-search-clear",
689
2278
  type: "button",
690
2279
  "aria-label": "Clear search",
691
- onClick: v
692
- }, [M(V(X), { size: 12 })])) : k("", !0)
2280
+ onClick: _
2281
+ }, [R(K(vt), { size: 12 })])) : P("", !0)
693
2282
  ]),
694
- u.value && s.value.length > 0 ? (L(), A("div", At, [(L(!0), A(E, null, z(s.value, (e) => (L(), A("a", {
2283
+ h.value && K(l).length > 0 ? (V(), F("div", Ma, [(V(!0), F(j, null, U(g.value, (e) => (V(), F("div", {
2284
+ key: e.pageUrl,
2285
+ class: "td-search-group"
2286
+ }, [I("div", Na, G(e.pageTitle), 1), (V(!0), F(j, null, U(e.results, (e) => (V(), F("a", {
695
2287
  key: e.id,
696
- href: e.id,
697
- class: "td-search-result",
698
- onClick: ne
699
- }, [
700
- j("span", Mt, [j("span", {
701
- class: "td-search-result-title",
702
- innerHTML: C(e.title, i.value)
703
- }, null, 8, Nt), T(e.id) ? (L(), A("span", Pt, "current page")) : k("", !0)]),
704
- j("span", Ft, B(e.titles.join(" / ")), 1),
705
- e.excerpt ? (L(), A("span", {
706
- key: 0,
707
- class: "td-search-result-excerpt",
708
- innerHTML: C(e.excerpt, i.value)
709
- }, null, 8, It)) : k("", !0)
710
- ], 8, jt))), 128))])) : k("", !0),
711
- u.value && s.value.length === 0 ? (L(), A("div", Lt, " No results for \"" + B(i.value) + "\" ", 1)) : k("", !0)
2288
+ href: K(c)(e.id),
2289
+ class: B(["td-search-result", {
2290
+ "is-selected": y.value.get(e.id) === m.value,
2291
+ "is-current": K(c)(e.id) === K(s).path
2292
+ }]),
2293
+ onClick: x
2294
+ }, [I("span", {
2295
+ class: "td-search-result-title",
2296
+ innerHTML: K(Oa)(e.title, a.value)
2297
+ }, null, 8, Fa), e.excerpt ? (V(), F("span", {
2298
+ key: 0,
2299
+ class: "td-search-result-excerpt",
2300
+ innerHTML: K(Oa)(e.excerpt, a.value)
2301
+ }, null, 8, Ia)) : P("", !0)], 10, Pa))), 128))]))), 128))])) : P("", !0),
2302
+ h.value && K(l).length === 0 ? (V(), F("div", La, " No results for \"" + G(a.value) + "\" ", 1)) : P("", !0)
712
2303
  ]));
713
2304
  }
714
- }), [["__scopeId", "data-v-44fb07da"]]), Bt = /* @__PURE__ */ N({
2305
+ }), [["__scopeId", "data-v-93a329d9"]]), za = /* @__PURE__ */ z({
715
2306
  __name: "TdThemeToggle",
716
2307
  setup(e) {
717
- let { isDark: t, toggle: n } = ne();
718
- return (e, r) => (L(), O(Z, {
2308
+ let { isDark: t, toggle: n } = he();
2309
+ return (e, r) => (V(), N(Tt, {
719
2310
  class: "w-9 h-9 text-td-neutral-fg-muted group hover:opacity-70",
720
- label: V(t) ? "Switch to light mode" : "Switch to dark mode",
721
- onClick: V(n)
2311
+ label: K(t) ? "Switch to light mode" : "Switch to dark mode",
2312
+ onClick: K(n)
722
2313
  }, {
723
- default: W(() => [V(t) ? (L(), O(V(ke), {
2314
+ default: qe(() => [K(t) ? (V(), N(K(ne), {
724
2315
  key: 0,
725
2316
  size: 18,
726
2317
  class: "group-hover:text-td-primary-solid transition-colors"
727
- })) : (L(), O(V(De), {
2318
+ })) : (V(), N(K(ie), {
728
2319
  key: 1,
729
2320
  size: 18,
730
2321
  class: "group-hover:text-td-primary-solid transition-colors"
@@ -735,7 +2326,7 @@ var Et = /* @__PURE__ */ N({
735
2326
  });
736
2327
  //#endregion
737
2328
  //#region src/client/theme-default/composables/useCopyCode.ts
738
- function Vt() {
2329
+ function Ba() {
739
2330
  function e(e) {
740
2331
  let t = e.target?.closest(".copy");
741
2332
  if (!t) return;
@@ -747,152 +2338,282 @@ function Vt() {
747
2338
  t.classList.remove("copied"), t.setAttribute("title", i);
748
2339
  }, 2e3);
749
2340
  }
750
- oe(() => {
2341
+ Ne(() => {
751
2342
  document.addEventListener("click", e);
752
- }), se(() => {
2343
+ }), Fe(() => {
753
2344
  document.removeEventListener("click", e);
754
2345
  });
755
2346
  }
756
2347
  //#endregion
2348
+ //#region src/client/theme-default/composables/useHotkey.ts
2349
+ var Va = /* @__PURE__ */ new Map([
2350
+ [$.Control, "ctrlKey"],
2351
+ [$.Alt, "altKey"],
2352
+ [$.Shift, "shiftKey"],
2353
+ [$.Meta, "metaKey"]
2354
+ ]);
2355
+ function Ha(e, t) {
2356
+ function n(n) {
2357
+ n.defaultPrevented || Wa(n, e) && (n.preventDefault(), t(n));
2358
+ }
2359
+ Ne(() => window.addEventListener("keydown", n)), Fe(() => window.removeEventListener("keydown", n));
2360
+ }
2361
+ function Ua(e) {
2362
+ let t = [];
2363
+ function n(e, n) {
2364
+ t.push({
2365
+ keys: e,
2366
+ handler: n
2367
+ });
2368
+ }
2369
+ function r(e) {
2370
+ for (let n of t) if (Wa(e, n.keys)) {
2371
+ e.preventDefault(), e.stopPropagation(), n.handler(e);
2372
+ return;
2373
+ }
2374
+ }
2375
+ return q(e, (e, t) => {
2376
+ t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
2377
+ }, { immediate: !0 }), Fe(() => {
2378
+ e.value?.removeEventListener("keydown", r);
2379
+ }), { register: n };
2380
+ }
2381
+ function Wa(e, t) {
2382
+ let n = t.filter((e) => Va.has(e)), r = t.filter((e) => !Va.has(e));
2383
+ if (r.length !== 1 || e.key.toLowerCase() !== r[0].toLowerCase()) return !1;
2384
+ for (let t of n) if (!e[Va.get(t)]) return !1;
2385
+ return !(e.ctrlKey && !n.includes($.Control) || e.altKey && !n.includes($.Alt) || e.shiftKey && !n.includes($.Shift) || e.metaKey && !n.includes($.Meta));
2386
+ }
2387
+ //#endregion
2388
+ //#region src/client/theme-default/composables/useResizableTable.ts
2389
+ var Ga = 6, Ka = 40;
2390
+ function qa() {
2391
+ let e, t = !1;
2392
+ function n(e, t) {
2393
+ return e.getBoundingClientRect().right - t < Ga;
2394
+ }
2395
+ function r(r) {
2396
+ if (t) return;
2397
+ let i = r.target;
2398
+ if (!i?.closest(".td-content")) {
2399
+ e &&= (e.classList.remove("is-near-border"), void 0);
2400
+ return;
2401
+ }
2402
+ let a = i.closest("th");
2403
+ e && e !== a && (e.classList.remove("is-near-border"), e = void 0), !(!a || !a.nextElementSibling) && (n(a, r.clientX) ? (a.classList.add("is-near-border"), e = a) : (a.classList.remove("is-near-border"), e = void 0));
2404
+ }
2405
+ function i(e) {
2406
+ let r = e.target?.closest(".td-content th");
2407
+ if (!r || !r.nextElementSibling || !n(r, e.clientX)) return;
2408
+ e.preventDefault(), t = !0;
2409
+ let i = e.clientX, a = r.offsetWidth;
2410
+ r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
2411
+ function o(e) {
2412
+ let t = e.clientX - i;
2413
+ r && (r.style.width = `${Math.max(Ka, a + t)}px`);
2414
+ }
2415
+ function s() {
2416
+ t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
2417
+ }
2418
+ document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
2419
+ }
2420
+ Ne(() => {
2421
+ document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
2422
+ }), Fe(() => {
2423
+ document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
2424
+ });
2425
+ }
2426
+ //#endregion
757
2427
  //#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
758
- var Ht = { class: "td-header" }, Ut = { class: "td-header-left" }, Wt = {
759
- href: "/",
760
- class: "td-brand"
761
- }, Gt = { class: "td-brand-name" }, Kt = { class: "td-header-right" }, qt = { class: "td-menu-header" }, Jt = { class: "td-header-left" }, Yt = {
762
- href: "/",
763
- class: "td-brand"
764
- }, Xt = { class: "td-brand-name" }, Zt = {
2428
+ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"], Za = { class: "td-brand-name" }, Qa = { class: "td-header-right" }, $a = ["href"], eo = { class: "td-menu-header" }, to = { class: "td-header-left" }, no = ["href"], ro = { class: "td-brand-name" }, io = {
765
2429
  key: 0,
766
2430
  class: "pt-4",
767
2431
  "aria-label": "Site navigation"
768
- }, Qt = { class: "td-page" }, $t = {
769
- class: "td-sidebar-left",
770
- "aria-label": "Site navigation"
771
- }, en = { class: "td-main-and-toc" }, tn = { class: "td-main" }, nn = { class: "td-content" }, rn = {
2432
+ }, ao = { class: "td-page" }, oo = { class: "td-sidebar-scroll" }, so = ["onKeydown"], co = { class: "td-main-and-rail" }, lo = { class: "td-main" }, uo = {
2433
+ id: "td-content",
2434
+ class: "td-content"
2435
+ }, fo = {
772
2436
  key: 0,
773
- class: "td-page-title"
774
- }, an = {
2437
+ class: "td-page-eyebrow"
2438
+ }, po = {
775
2439
  key: 1,
2440
+ class: "td-page-icon"
2441
+ }, mo = ["innerHTML"], ho = {
2442
+ key: 3,
776
2443
  class: "td-page-meta"
777
- }, on = { key: 0 }, sn = {
778
- class: "td-sidebar-right",
779
- "aria-label": "Table of contents"
780
- }, cn = {
781
- key: 0,
782
- class: "td-toc"
783
- }, ln = { class: "td-toc-list" }, un = ["href"], dn = /*#__PURE__*/ S(/* @__PURE__ */ N({
2444
+ }, go = { key: 0 }, _o = { class: "td-content-body" }, vo = 200, yo = 500, bo = 272, xo = "td-sidebar-width", So = /*#__PURE__*/ k(/* @__PURE__ */ z({
784
2445
  __name: "TdLayout",
785
2446
  setup(e) {
786
- let { title: t, page: n } = T(), r = C(), i = b(), { isOpen: a, close: o } = Tt(), s = R(""), c = R(!1), l = R(!1), u = w();
787
- return U(() => u.path, () => o()), Vt(), (e, u) => (L(), A("div", null, [
788
- j("header", Ht, [j("div", Ut, [M(Et), j("a", Wt, [M(Pe), j("span", Gt, B(V(r).title || "Typedown"), 1)])]), j("div", Kt, [M(Bt)])]),
789
- j("div", { class: F(["td-menu-overlay", { "is-open": V(a) }]) }, [
790
- j("header", qt, [j("div", Jt, [M(Z, {
2447
+ let { title: t, page: n } = fe(), r = M(() => {
2448
+ let e = n.value.icon;
2449
+ return e ? se(e.name) : void 0;
2450
+ }), i = A(), { withBase: a } = i, o = re(), s = M(() => o.value.ready), { isOpen: c, open: l, close: u } = Ki(), d = H(""), f = H(!1), p = H(!1), m = le();
2451
+ q(() => m.path, () => u()), Ba();
2452
+ let h = We("sidebarSearch"), g = We("menuSearch");
2453
+ function _() {
2454
+ if (g.value?.isFocused || h.value?.isFocused) {
2455
+ g.value?.blur(), h.value?.blur(), c.value && u();
2456
+ return;
2457
+ }
2458
+ c.value ? g.value?.focus() : h.value?.isVisible ? h.value.focus() : (l(), Ae(() => g.value?.focus()));
2459
+ }
2460
+ Ha([$.Control, $.k], _), Ha([$.Meta, $.k], _), Ke(() => {
2461
+ if (typeof document > "u") return;
2462
+ let e = t.value, r = i.title;
2463
+ document.title = e && e !== r ? `${e} - ${r}` : r;
2464
+ let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
2465
+ o && o.setAttribute("content", a);
2466
+ }), qa();
2467
+ let v = H(typeof localStorage < "u" && Number(localStorage.getItem(xo)) || bo);
2468
+ function b() {
2469
+ v.value = Math.min(yo, v.value + 20);
2470
+ }
2471
+ function x(e) {
2472
+ let t = e.clientX, n = v.value, r = e.currentTarget;
2473
+ r.setPointerCapture(e.pointerId);
2474
+ function i(e) {
2475
+ let r = Math.min(yo, Math.max(vo, n + e.clientX - t));
2476
+ v.value = r;
2477
+ }
2478
+ function a() {
2479
+ document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(xo, String(v.value));
2480
+ }
2481
+ document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
2482
+ }
2483
+ function S() {
2484
+ v.value = Math.max(vo, v.value - 20);
2485
+ }
2486
+ return (e, l) => (V(), F("div", null, [
2487
+ l[5] ||= I("a", {
2488
+ href: "#td-content",
2489
+ class: "td-skip-link"
2490
+ }, "Skip to content", -1),
2491
+ I("header", Ja, [
2492
+ I("div", Ya, [
2493
+ R(qi),
2494
+ I("a", {
2495
+ href: K(a)(K(C)("/")),
2496
+ class: "td-brand"
2497
+ }, [R(Ct), I("span", Za, G(K(i).title || "Typedown"), 1)], 8, Xa),
2498
+ R(qr, { class: "td-header-breadcrumb" })
2499
+ ]),
2500
+ R(K(Xr)),
2501
+ I("div", Qa, [R(za), K(i).repo ? (V(), F("a", {
2502
+ key: 0,
2503
+ href: K(i).repo,
2504
+ target: "_blank",
2505
+ rel: "noopener noreferrer",
2506
+ class: "td-header-icon-link",
2507
+ "aria-label": "GitHub repository"
2508
+ }, [...l[4] ||= [I("svg", {
2509
+ width: "20",
2510
+ height: "20",
2511
+ viewBox: "0 0 98 96",
2512
+ xmlns: "http://www.w3.org/2000/svg",
2513
+ "aria-hidden": "true",
2514
+ fill: "currentColor"
2515
+ }, [I("path", {
2516
+ "fill-rule": "evenodd",
2517
+ "clip-rule": "evenodd",
2518
+ d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59\n 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367\n 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778\n 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125\n 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2\n 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364\n 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
2519
+ })], -1)]], 8, $a)) : P("", !0)])
2520
+ ]),
2521
+ I("div", { class: B(["td-menu-overlay", { "is-open": K(c) }]) }, [
2522
+ I("header", eo, [I("div", to, [R(Tt, {
791
2523
  class: "w-9 h-9 text-td-neutral-fg-muted hover:text-td-primary-solid",
792
2524
  label: "Close menu",
793
- onClick: V(o)
2525
+ onClick: K(u)
794
2526
  }, {
795
- default: W(() => [M(V(X), { size: 20 })]),
2527
+ default: qe(() => [R(K(vt), { size: 20 })]),
796
2528
  _: 1
797
- }, 8, ["onClick"]), j("a", Yt, [M(Pe), j("span", Xt, B(V(r).title || "Typedown"), 1)])])]),
798
- M(zt, {
799
- query: s.value,
800
- "onUpdate:query": u[0] ||= (e) => s.value = e,
801
- active: l.value,
802
- "onUpdate:active": u[1] ||= (e) => l.value = e,
803
- onSelect: V(o)
2529
+ }, 8, ["onClick"]), I("a", {
2530
+ href: K(a)(K(C)("/")),
2531
+ class: "td-brand"
2532
+ }, [R(Ct), I("span", ro, G(K(i).title || "Typedown"), 1)], 8, no)])]),
2533
+ R(K($r)),
2534
+ R(Ra, {
2535
+ ref_key: "menuSearch",
2536
+ ref: g,
2537
+ query: d.value,
2538
+ "onUpdate:query": l[0] ||= (e) => d.value = e,
2539
+ active: p.value,
2540
+ "onUpdate:active": l[1] ||= (e) => p.value = e,
2541
+ onSelect: K(u)
804
2542
  }, null, 8, [
805
2543
  "query",
806
2544
  "active",
807
2545
  "onSelect"
808
2546
  ]),
809
- l.value ? k("", !0) : (L(), A("nav", Zt, [M($e, { tree: V(i).contentTree }, null, 8, ["tree"])]))
2547
+ p.value ? P("", !0) : (V(), F("nav", io, [s.value ? (V(), N(Mr, {
2548
+ key: 1,
2549
+ tree: K(o).contentTree
2550
+ }, null, 8, ["tree"])) : (V(), N(xa, { key: 0 }))]))
810
2551
  ], 2),
811
- j("div", Qt, [j("nav", $t, [M(zt, {
812
- query: s.value,
813
- "onUpdate:query": u[2] ||= (e) => s.value = e,
814
- active: c.value,
815
- "onUpdate:active": u[3] ||= (e) => c.value = e
816
- }, null, 8, ["query", "active"]), c.value ? k("", !0) : (L(), O($e, {
817
- key: 0,
818
- tree: V(i).contentTree
819
- }, null, 8, ["tree"]))]), j("div", en, [j("main", tn, [j("article", nn, [
820
- M(it),
821
- V(t) ? (L(), A("h1", rn, B(V(t)), 1)) : k("", !0),
822
- V(n).metadata ? (L(), A("div", an, [j("span", null, B(V(p)(V(n).metadata.mtime, "Modified")), 1), V(n).metadata.ctime === V(n).metadata.mtime ? k("", !0) : (L(), A("span", on, " · " + B(V(p)(V(n).metadata.ctime, "Created")), 1))])) : k("", !0),
823
- M(V(wt), {
824
- schema: V(n).schema,
825
- frontmatter: V(n).frontmatter
2552
+ I("div", ao, [I("nav", {
2553
+ class: "td-sidebar-left",
2554
+ "aria-label": "Site navigation",
2555
+ style: je({ width: `${v.value}px` })
2556
+ }, [I("div", oo, [R(Ra, {
2557
+ ref_key: "sidebarSearch",
2558
+ ref: h,
2559
+ query: d.value,
2560
+ "onUpdate:query": l[2] ||= (e) => d.value = e,
2561
+ active: f.value,
2562
+ "onUpdate:active": l[3] ||= (e) => f.value = e
2563
+ }, null, 8, ["query", "active"]), !f.value && !s.value ? (V(), N(xa, { key: 0 })) : f.value ? P("", !0) : (V(), N(Mr, {
2564
+ key: 1,
2565
+ tree: K(o).contentTree
2566
+ }, null, 8, ["tree"]))]), I("div", {
2567
+ class: "td-sidebar-resize",
2568
+ role: "separator",
2569
+ "aria-orientation": "vertical",
2570
+ "aria-label": "Resize sidebar",
2571
+ tabindex: "0",
2572
+ onPointerdown: Xe(x, ["prevent"]),
2573
+ onKeydown: [Ye(Xe(S, ["prevent"]), ["left"]), Ye(Xe(b, ["prevent"]), ["right"])]
2574
+ }, null, 40, so)], 4), I("div", co, [I("main", lo, [I("article", uo, [
2575
+ K(n).schema ? (V(), F("div", fo, G(K(n).schemaLabel ?? K(n).schema), 1)) : P("", !0),
2576
+ r.value ? (V(), F("div", po, [(V(), N(W(r.value), { size: 32 }))])) : P("", !0),
2577
+ K(t) ? (V(), F("h1", {
2578
+ key: 2,
2579
+ class: "td-page-title",
2580
+ innerHTML: K(Dt)(K(t))
2581
+ }, null, 8, mo)) : P("", !0),
2582
+ K(n).metadata ? (V(), F("div", ho, [I("span", null, G(K(y)(K(n).metadata.mtime, "Modified")), 1), K(n).metadata.ctime === K(n).metadata.mtime ? P("", !0) : (V(), F("span", go, " · " + G(K(y)(K(n).metadata.ctime, "Created")), 1))])) : P("", !0),
2583
+ R(K(Wi), {
2584
+ class: "td-frontmatter-inline",
2585
+ schema: K(n).schema,
2586
+ frontmatter: K(n).frontmatter
826
2587
  }, null, 8, ["schema", "frontmatter"]),
827
- M(V(x))
828
- ])]), j("nav", sn, [V(n).headings.length ? (L(), A("div", cn, [u[4] ||= j("div", { class: "td-toc-label" }, " On this page ", -1), j("ul", ln, [(L(!0), A(E, null, z(V(n).headings, (e) => (L(), A("li", {
829
- key: e.slug,
830
- class: F({
831
- "td-toc-indent-1": e.level === 3,
832
- "td-toc-indent-2": e.level === 4,
833
- "td-toc-indent-3": e.level === 5
834
- })
835
- }, [j("a", {
836
- href: e.link,
837
- class: "td-toc-link"
838
- }, B(e.title), 9, un)], 2))), 128))])])) : k("", !0)])])])
2588
+ K(n).headings.length > 0 ? (V(), N(_a, {
2589
+ key: 4,
2590
+ class: "td-toc-inline",
2591
+ headings: K(n).headings,
2592
+ static: ""
2593
+ }, null, 8, ["headings"])) : P("", !0),
2594
+ I("div", _o, [R(K(ae))]),
2595
+ R(ua)
2596
+ ])]), R(ya, { class: "td-rail" })])]),
2597
+ R(Fr)
839
2598
  ]));
840
2599
  }
841
- }), [["__scopeId", "data-v-24088016"]]), fn = {}, pn = { class: "pt-16 pb-24" };
842
- function mn(e, t) {
843
- return L(), A("div", pn, [...t[0] ||= [
844
- j("p", { class: "text-td-display font-td-heading leading-none tracking-td-title text-td-fg-muted" }, " 404 ", -1),
845
- j("h1", { class: "text-td-h2 font-td-heading leading-td-heading tracking-td-heading mt-4" }, " Page Not Found ", -1),
846
- j("p", { class: "text-td-fg-muted mt-2 text-td-body leading-td-body" }, " The page you are looking for does not exist. ", -1),
847
- j("a", {
848
- class: "inline-flex items-center mt-6 text-td-primary-solid text-td-ui font-td-heading tracking-td-heading hover:text-td-primary-solid-hover",
849
- href: "/"
850
- }, "Go Home", -1)
851
- ]]);
852
- }
853
- var hn = /*#__PURE__*/ S(fn, [["render", mn]]), gn = ["href"], _n = { key: 1 }, vn = ["href"], yn = { class: "font-td-semibold text-td-body-sm" }, bn = { class: "text-td-label text-td-neutral-fg-muted ml-auto" }, xn = { key: 2 }, Sn = ["href"], Cn = { class: "font-td-semibold text-td-body-sm" }, wn = /*#__PURE__*/ S(/* @__PURE__ */ N({
854
- __name: "TdDirectoryIndex",
855
- props: {
856
- url: {},
857
- subdirectories: { default: () => [] },
858
- items: { default: () => [] }
859
- },
2600
+ }), [["__scopeId", "data-v-b3cf814d"]]), Co = { class: "pt-16 pb-24" }, wo = ["href"], To = /* @__PURE__ */ z({
2601
+ __name: "TdNotFound",
860
2602
  setup(e) {
861
- let t = D(() => e.url === "/"), n = D(() => a(e.url));
862
- return (r, i) => (L(), A("div", null, [
863
- t.value ? k("", !0) : (L(), A("a", {
864
- key: 0,
865
- href: n.value,
866
- class: "td-dir-row"
867
- }, [M(V(Ce), {
868
- size: 16,
869
- class: "text-td-gray-500 flex-shrink-0"
870
- }), i[0] ||= j("span", { class: "font-td-semibold text-td-body-sm text-td-neutral-fg-muted" }, "..", -1)], 8, gn)),
871
- e.subdirectories.length > 0 ? (L(), A("div", _n, [(L(!0), A(E, null, z(e.subdirectories, (e) => (L(), A("a", {
872
- key: e.url,
873
- href: e.url,
874
- class: "td-dir-row"
875
- }, [
876
- M(V(we), {
877
- size: 16,
878
- class: "text-td-gray-500 flex-shrink-0"
879
- }),
880
- j("span", yn, B(e.name), 1),
881
- j("span", bn, B(e.count), 1)
882
- ], 8, vn))), 128))])) : k("", !0),
883
- e.items.length > 0 ? (L(), A("div", xn, [(L(!0), A(E, null, z(e.items, (e) => (L(), A("a", {
884
- key: e.url,
885
- href: e.url,
886
- class: "td-dir-row"
887
- }, [M(V(Y), {
888
- size: 16,
889
- class: "text-td-gray-500 flex-shrink-0"
890
- }), j("span", Cn, B(e.name), 1)], 8, Sn))), 128))])) : k("", !0)
2603
+ let { withBase: t } = A();
2604
+ return (e, n) => (V(), F("div", Co, [
2605
+ n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
2606
+ n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
2607
+ n[2] ||= I("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
2608
+ I("a", {
2609
+ class: "inline-flex items-center mt-6 text-td-primary-solid text-td-sm font-extrabold tracking-td-tight hover:text-td-primary-solid-hover",
2610
+ href: K(t)(K(C)("/"))
2611
+ }, "Go Home", 8, wo)
891
2612
  ]));
892
2613
  }
893
- }), [["__scopeId", "data-v-d08106fa"]]), Tn = {
894
- Layout: dn,
895
- NotFound: hn
2614
+ }), Eo = {
2615
+ Layout: So,
2616
+ NotFound: To
896
2617
  };
897
2618
  //#endregion
898
- export { wn as TdDirectoryIndex, dn as TdLayout, hn as TdNotFound, Tn as default, Vt as useCopyCode };
2619
+ export { ue as TdDirectoryIndex, pe as TdGlossaryIndex, Ca as TdKbdShortcut, $ as TdKeyName, So as TdLayout, To as TdNotFound, Eo as default, Ba as useCopyCode, Ha as useGlobalHotkey, Ua as useLocalHotkeys };