typerighter 0.5.1 → 0.6.0

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.

Potentially problematic release.


This version of typerighter might be problematic. Click here for more details.

@@ -1,9 +1,10 @@
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-C6VJ3Tpf.js";
1
+ import { C as e, S as t, c as n, d as r, h as i, m as a, n as o, r as s, s as c, t as l, u, v as d, w as f } from "../shared-BoWAaUci.js";
2
+ import { a as p, i as m, n as h, o as g, s as _, t as v } from "../brand-BfamszbH.js";
2
3
  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 te, r as ne, s as re } from "../app-DZLkaV9-.js";
4
- import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createVNode as j, defineComponent as M, h as N, inject as ie, markRaw as ae, mergeModels as oe, normalizeClass as P, onMounted as se, onUnmounted as ce, openBlock as F, readonly as le, ref as I, renderList as L, renderSlot as ue, resolveComponent as de, shallowRef as fe, toDisplayString as R, unref as z, useModel as pe, vModelText as me, watch as B, withCtx as V, withDirectives as he } from "vue";
4
+ import { a as b, c as x, d as S, f as C, h as w, i as ee, l as T, m as E, n as te, o as D, p as O, r as ne, s as re } from "../app-BZKg-fe3.js";
5
+ import { Fragment as k, Teleport as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as ie, createVNode as I, defineComponent as L, markRaw as ae, mergeModels as oe, mergeProps as se, nextTick as ce, normalizeClass as R, normalizeStyle as z, onBeforeUnmount as le, onMounted as ue, onUnmounted as B, openBlock as V, readonly as de, ref as H, renderList as U, renderSlot as fe, resolveComponent as pe, shallowRef as me, toDisplayString as W, unref as G, useModel as he, useTemplateRef as ge, vModelText as _e, watch as K, withCtx as q, withDirectives as ve, withModifiers as ye } from "vue";
5
6
  //#region src/shared/utils/debounce.ts
6
- function ge(e, t) {
7
+ function be(e, t) {
7
8
  let n;
8
9
  return (...r) => {
9
10
  clearTimeout(n), n = setTimeout(() => e(...r), t);
@@ -11,77 +12,25 @@ function ge(e, t) {
11
12
  }
12
13
  //#endregion
13
14
  //#region src/shared/utils/regex.ts
14
- function H(e) {
15
+ function J(e) {
15
16
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
16
17
  }
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 U = (e) => e === "", _e = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ve = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ye = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), be = (e) => {
20
- let t = ye(e);
21
- return t.charAt(0).toUpperCase() + t.slice(1);
22
- }, W = {
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
- }, xe = /* @__PURE__ */ Symbol("lucide-icons");
33
- function Se() {
34
- return ie(xe, {});
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 Ce = ({ 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 = "" } = Se(), g = E(() => {
40
- let e = U(r) || U(i) || r === !0 || i === !0 || m === !0, t = a || o || p || W["stroke-width"];
41
- return e ? Number(t) * 24 / Number(s ?? d ?? W.width) : t;
42
- });
43
- return N("svg", {
44
- ...W,
45
- ...l,
46
- width: s ?? d ?? W.width,
47
- height: s ?? d ?? W.height,
48
- stroke: c ?? f ?? W.stroke,
49
- "stroke-width": g.value,
50
- class: _e("lucide", h, ...e ? [`lucide-${ve(be(e))}-icon`, `lucide-${ve(e)}`] : ["lucide-icon"])
51
- }, [...(t ?? n ?? []).map((e) => N(...e)), ...u.default ? [u.default()] : []]);
52
- }, G = (e, t) => (n, { slots: r, attrs: i }) => N(Ce, {
53
- ...i,
54
- ...n,
55
- iconNode: t,
56
- name: e
57
- }, r.default ? { default: r.default } : void 0), we = G("chevron-down", [["path", {
18
+ var xe = w("chevron-down", [["path", {
58
19
  d: "m6 9 6 6 6-6",
59
20
  key: "qrunsl"
60
- }]]), Te = G("corner-left-up", [["path", {
61
- d: "M14 9 9 4 4 9",
62
- key: "1af5af"
63
- }], ["path", {
64
- d: "M20 20h-7a4 4 0 0 1-4-4V4",
65
- key: "1blwi3"
66
- }]]), K = G("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"
69
- }], ["path", {
70
- d: "M14 2v5a1 1 0 0 0 1 1h5",
71
- key: "wfsgrz"
72
- }]]), q = G("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
- }]]), Ee = G("folder", [["path", {
21
+ }]]), Se = w("folder", [["path", {
76
22
  d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
77
23
  key: "1kt360"
78
- }]]), De = G("house", [["path", {
24
+ }]]), Ce = w("house", [["path", {
79
25
  d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
80
26
  key: "5wwlr5"
81
27
  }], ["path", {
82
28
  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",
83
29
  key: "r6nss1"
84
- }]]), Oe = G("menu", [
30
+ }]]), we = w("loader-circle", [["path", {
31
+ d: "M21 12a9 9 0 1 1-6.219-8.56",
32
+ key: "13zald"
33
+ }]]), Te = w("menu", [
85
34
  ["path", {
86
35
  d: "M4 5h16",
87
36
  key: "1tepv9"
@@ -94,10 +43,10 @@ var Ce = ({ name: e, iconNode: t, "icon-node": n, absoluteStrokeWidth: r, "absol
94
43
  d: "M4 19h16",
95
44
  key: "1djgab"
96
45
  }]
97
- ]), ke = G("moon", [["path", {
46
+ ]), Ee = w("moon", [["path", {
98
47
  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",
99
48
  key: "kfwtm"
100
- }]]), Ae = G("search", [["path", {
49
+ }]]), De = w("search", [["path", {
101
50
  d: "m21 21-4.34-4.34",
102
51
  key: "14j7rj"
103
52
  }], ["circle", {
@@ -105,7 +54,20 @@ var Ce = ({ name: e, iconNode: t, "icon-node": n, absoluteStrokeWidth: r, "absol
105
54
  cy: "11",
106
55
  r: "8",
107
56
  key: "4ej97u"
108
- }]]), je = G("sun", [
57
+ }]]), Oe = w("square-check-big", [["path", {
58
+ d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
59
+ key: "2acyp4"
60
+ }], ["path", {
61
+ d: "m9 11 3 3L22 4",
62
+ key: "1pflzl"
63
+ }]]), ke = w("square", [["rect", {
64
+ width: "18",
65
+ height: "18",
66
+ x: "3",
67
+ y: "3",
68
+ rx: "2",
69
+ key: "afitv7"
70
+ }]]), Ae = w("sun", [
109
71
  ["circle", {
110
72
  cx: "12",
111
73
  cy: "12",
@@ -144,188 +106,240 @@ var Ce = ({ name: e, iconNode: t, "icon-node": n, absoluteStrokeWidth: r, "absol
144
106
  d: "m19.07 4.93-1.41 1.41",
145
107
  key: "1shlcs"
146
108
  }]
147
- ]), J = G("x", [["path", {
109
+ ]), Y = w("x", [["path", {
148
110
  d: "M18 6 6 18",
149
111
  key: "1bl5f8"
150
112
  }], ["path", {
151
113
  d: "m6 6 12 12",
152
114
  key: "d8bk6v"
153
- }]]), Me = [
115
+ }]]), je = [
154
116
  "height",
155
117
  "width",
156
118
  "viewBox"
157
- ], Ne = ["d"], Pe = ["d"], Fe = ["d"], Y = /* @__PURE__ */ M({
119
+ ], Me = ["d"], Ne = ["d"], Pe = ["d"], Fe = /* @__PURE__ */ L({
158
120
  __name: "TdBrandIcon",
159
121
  props: { size: { default: 28 } },
160
122
  setup(e) {
161
- return (t, n) => (F(), k("svg", {
123
+ return (t, n) => (V(), P("svg", {
162
124
  fill: "none",
163
125
  height: e.size,
164
126
  width: e.size * 208 / 128,
165
- viewBox: z(r),
127
+ viewBox: G(p),
166
128
  xmlns: "http://www.w3.org/2000/svg"
167
129
  }, [
168
- A("path", {
130
+ F("path", {
169
131
  "clip-rule": "evenodd",
170
- d: z(d),
132
+ d: G(h),
171
133
  "fill-rule": "evenodd",
172
134
  fill: "currentColor"
173
- }, null, 8, Ne),
174
- A("path", {
175
- d: z(s),
135
+ }, null, 8, Me),
136
+ F("path", {
137
+ d: G(m),
176
138
  fill: "currentColor"
177
- }, null, 8, Pe),
178
- A("path", {
179
- d: z(m),
139
+ }, null, 8, Ne),
140
+ F("path", {
141
+ d: G(v),
180
142
  fill: "currentColor"
181
- }, null, 8, Fe)
182
- ], 8, Me));
143
+ }, null, 8, Pe)
144
+ ], 8, je));
183
145
  }
184
- }), Ie = ["title", "aria-label"], X = /* @__PURE__ */ M({
146
+ }), Ie = ["title", "aria-label"], X = /* @__PURE__ */ L({
185
147
  __name: "TdButton",
186
148
  props: { label: {} },
187
149
  setup(e) {
188
- return (t, n) => (F(), k("button", {
150
+ return (t, n) => (V(), P("button", {
189
151
  type: "button",
190
152
  class: "inline-flex items-center justify-center cursor-pointer",
191
153
  title: e.label,
192
154
  "aria-label": e.label
193
- }, [ue(t.$slots, "default")], 8, Ie));
155
+ }, [fe(t.$slots, "default")], 8, Ie));
194
156
  }
195
- }), Le = {
157
+ }), Le = /*#__PURE__*/ C(/* @__PURE__ */ L({
158
+ inheritAttrs: !1,
159
+ __name: "TdTooltip",
160
+ props: { text: {} },
161
+ setup(e) {
162
+ let t = ge("wrapper"), n = H(!1), r = H({
163
+ top: "0px",
164
+ left: "0px"
165
+ }), i;
166
+ function a() {
167
+ i !== void 0 && (clearTimeout(i), i = void 0);
168
+ }
169
+ function o() {
170
+ i = setTimeout(() => {
171
+ n.value = !1;
172
+ }, 100);
173
+ }
174
+ function s() {
175
+ let e = t.value;
176
+ if (!e || e.scrollWidth <= e.clientWidth) return;
177
+ a();
178
+ let i = e.getBoundingClientRect();
179
+ r.value = {
180
+ top: `${i.bottom + 6}px`,
181
+ left: `${i.left}px`
182
+ }, n.value = !0;
183
+ }
184
+ return le(() => {
185
+ a();
186
+ }), (i, c) => (V(), P(k, null, [F("span", se({
187
+ ref_key: "wrapper",
188
+ ref: t
189
+ }, i.$attrs, {
190
+ class: "td-tooltip-trigger",
191
+ onMouseenter: s,
192
+ onMouseleave: o
193
+ }), [fe(i.$slots, "default", {}, void 0, !0)], 16), (V(), M(A, { to: "body" }, [n.value ? (V(), P("span", {
194
+ key: 0,
195
+ class: "td-tooltip",
196
+ style: z(r.value),
197
+ role: "tooltip",
198
+ onMouseenter: a,
199
+ onMouseleave: o
200
+ }, W(e.text), 37)) : N("", !0)]))], 64));
201
+ }
202
+ }), [["__scopeId", "data-v-018d7f4b"]]), Re = {
196
203
  key: 0,
197
204
  class: "td-tree-node"
198
- }, Re = { class: "td-tree-label" }, ze = ["aria-expanded"], Be = { class: "td-tree-label-text" }, Ve = ["href"], He = { class: "td-tree-count" }, Ue = {
205
+ }, ze = { class: "td-tree-label" }, Be = ["aria-expanded"], Ve = { class: "td-tree-label-text" }, He = ["href"], Ue = { class: "td-tree-count" }, We = {
199
206
  key: 0,
200
207
  class: "td-tree-children"
201
- }, We = ["href"], Ge = { class: "td-tree-link-text" }, Ke = { class: "td-tree-time" }, qe = 4, Je = /*#__PURE__*/ S(/* @__PURE__ */ M({
208
+ }, Ge = ["href"], Ke = { class: "td-tree-time" }, qe = 4, Je = /*#__PURE__*/ C(/* @__PURE__ */ L({
202
209
  __name: "TdTreeNode",
203
210
  props: {
204
211
  node: {},
205
212
  urlPrefix: { default: "" }
206
213
  },
207
214
  setup(e) {
208
- 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 = E(() => f(e.node));
209
- function f(e) {
210
- return e.items.length + e.children.reduce((e, t) => e + f(t), 0);
215
+ let a = T(), o = n(e.urlPrefix, e.node.name), l = e.node.items.find((e) => i(e.filepath) === t), f = e.node.items.filter((e) => i(e.filepath) !== t), p = 0 < e.node.children.length || 0 < e.node.items.length, m = j(() => h(e.node));
216
+ function h(e) {
217
+ return e.items.length + e.children.reduce((e, t) => e + h(t), 0);
211
218
  }
212
- let p = I(!g(a, r.path)), m = I(!1), h = E(() => m.value ? c : c.slice(0, qe)), y = E(() => Math.max(0, c.length - qe));
213
- B(() => r.path, (e) => {
214
- g(a, e) && (p.value = !1);
219
+ let g = H(!r(o, a.path)), _ = H(!1), v = j(() => _.value ? f : f.slice(0, qe)), y = j(() => Math.max(0, f.length - qe));
220
+ K(() => a.path, (e) => {
221
+ r(o, e) && (g.value = !1);
215
222
  });
216
223
  function b() {
217
- m.value = !0;
224
+ _.value = !0;
218
225
  }
219
226
  function x(e) {
220
- return r.path === e;
227
+ return a.path === e;
221
228
  }
222
229
  function S() {
223
- p.value = !p.value;
230
+ g.value = !g.value;
224
231
  }
225
- return (t, r) => {
226
- let o = de("TdTreeNode", !0);
227
- return z(l) ? (F(), k("div", Le, [A("div", Re, [
228
- A("button", {
232
+ return (t, n) => {
233
+ let r = pe("TdTreeNode", !0);
234
+ return G(p) ? (V(), P("div", Re, [F("div", ze, [
235
+ F("button", {
229
236
  type: "button",
230
237
  class: "td-tree-toggle",
231
- "aria-expanded": !p.value,
238
+ "aria-expanded": !g.value,
232
239
  onClick: S
233
- }, [j(z(we), {
240
+ }, [I(G(xe), {
234
241
  size: 14,
235
- class: P(["td-tree-caret", { "is-collapsed": p.value }])
236
- }, null, 8, ["class"]), A("span", Be, R(z(_)(e.node.name)), 1)], 8, ze),
237
- A("a", {
238
- href: z(s) ? z(n)(z(s).filepath) : z(a),
239
- class: P(["td-tree-index-btn", { "is-active": x(z(s) ? z(n)(z(s).filepath) : z(a)) }])
240
- }, [x(z(s) ? z(n)(z(s).filepath) : z(a)) ? (F(), D(z(q), {
242
+ class: R(["td-tree-caret", { "is-collapsed": g.value }])
243
+ }, null, 8, ["class"]), F("span", Ve, W(G(d)(e.node.name)), 1)], 8, Be),
244
+ F("a", {
245
+ href: G(l) ? G(u)(G(l).filepath) : G(o),
246
+ class: R(["td-tree-index-btn", { "is-active": x(G(l) ? G(u)(G(l).filepath) : G(o)) }])
247
+ }, [x(G(l) ? G(u)(G(l).filepath) : G(o)) ? (V(), M(G(O), {
241
248
  key: 0,
242
249
  size: 12
243
- })) : (F(), D(z(Ee), {
250
+ })) : (V(), M(G(Se), {
244
251
  key: 1,
245
252
  size: 12
246
- }))], 10, Ve),
247
- A("span", He, R(d.value), 1)
248
- ]), p.value ? O("", !0) : (F(), k("div", Ue, [
249
- (F(!0), k(T, null, L(e.node.children, (e) => (F(), D(o, {
253
+ }))], 10, He),
254
+ F("span", Ue, W(m.value), 1)
255
+ ]), g.value ? N("", !0) : (V(), P("div", We, [
256
+ (V(!0), P(k, null, U(e.node.children, (e) => (V(), M(r, {
250
257
  key: e.name,
251
258
  node: e,
252
- "url-prefix": z(a)
259
+ "url-prefix": G(o)
253
260
  }, null, 8, ["node", "url-prefix"]))), 128)),
254
- (F(!0), k(T, null, L(h.value, (e) => (F(), k("a", {
261
+ (V(!0), P(k, null, U(v.value, (e) => (V(), P("a", {
255
262
  key: e.filepath,
256
- href: z(n)(e.filepath),
257
- class: P(["td-tree-link", { "is-active": x(z(n)(e.filepath)) }])
263
+ href: G(u)(e.filepath),
264
+ class: R(["td-tree-link", { "is-active": x(G(u)(e.filepath)) }])
258
265
  }, [
259
- j(z(K), {
266
+ I(G(E), {
260
267
  size: 14,
261
268
  class: "td-tree-file-icon"
262
269
  }),
263
- A("span", Ge, R(z(u)(e.header, e.filepath)), 1),
264
- A("span", Ke, R(z(i)(e.metadata.mtime)), 1)
265
- ], 10, We))), 128)),
266
- y.value > 0 && !m.value ? (F(), k("button", {
270
+ I(Le, {
271
+ class: "td-tree-link-text",
272
+ text: G(c)(e.header, e.filepath)
273
+ }, {
274
+ default: q(() => [ie(W(G(c)(e.header, e.filepath)), 1)]),
275
+ _: 2
276
+ }, 1032, ["text"]),
277
+ F("span", Ke, W(G(s)(e.metadata.mtime)), 1)
278
+ ], 10, Ge))), 128)),
279
+ y.value > 0 && !_.value ? (V(), P("button", {
267
280
  key: 0,
268
281
  class: "td-tree-more",
269
282
  type: "button",
270
283
  onClick: b
271
- }, R(y.value) + " more ", 1)) : O("", !0)
272
- ]))])) : O("", !0);
284
+ }, W(y.value) + " more ", 1)) : N("", !0)
285
+ ]))])) : N("", !0);
273
286
  };
274
287
  }
275
- }), [["__scopeId", "data-v-a6c2934f"]]), Ye = ["href"], Xe = {
288
+ }), [["__scopeId", "data-v-cfecc9ff"]]), Ye = ["href"], Xe = {
276
289
  key: 0,
277
290
  class: "td-root-link-time"
278
- }, Ze = ["href"], Qe = { class: "td-root-link-text" }, $e = { class: "td-root-link-time" }, et = /*#__PURE__*/ S(/* @__PURE__ */ M({
291
+ }, Ze = ["href"], Qe = { class: "td-root-link-text" }, $e = { class: "td-root-link-time" }, et = /*#__PURE__*/ C(/* @__PURE__ */ L({
279
292
  __name: "TdContentNav",
280
293
  props: { tree: {} },
281
294
  setup(e) {
282
- let r = w(), a = e.tree.rootItems.find((e) => v(e.filepath) === t), o = e.tree.rootItems.filter((e) => v(e.filepath) !== t);
283
- function s(e) {
284
- return r.path === e;
295
+ let n = T(), r = e.tree.rootItems.find((e) => i(e.filepath) === t), a = e.tree.rootItems.filter((e) => i(e.filepath) !== t);
296
+ function o(e) {
297
+ return n.path === e;
285
298
  }
286
- return (t, r) => (F(), k("nav", null, [
287
- A("a", {
288
- href: z(a) ? z(n)(z(a).filepath) : "/",
289
- class: P(["td-root-link", { "is-active": s(z(a) ? z(n)(z(a).filepath) : "/") }])
299
+ return (t, n) => (V(), P("nav", null, [
300
+ F("a", {
301
+ href: G(r) ? G(u)(G(r).filepath) : "/",
302
+ class: R(["td-root-link", { "is-active": o(G(r) ? G(u)(G(r).filepath) : "/") }])
290
303
  }, [
291
- j(z(De), {
304
+ I(G(Ce), {
292
305
  size: 14,
293
306
  class: "td-root-link-icon"
294
307
  }),
295
- r[0] ||= A("span", { class: "td-root-link-text" }, "Overview", -1),
296
- z(a) ? (F(), k("span", Xe, R(z(i)(z(a).metadata.mtime)), 1)) : O("", !0)
308
+ n[0] ||= F("span", { class: "td-root-link-text" }, "Overview", -1),
309
+ G(r) ? (V(), P("span", Xe, W(G(s)(G(r).metadata.mtime)), 1)) : N("", !0)
297
310
  ], 10, Ye),
298
- (F(!0), k(T, null, L(z(o), (e) => (F(), k("a", {
311
+ (V(!0), P(k, null, U(G(a), (e) => (V(), P("a", {
299
312
  key: e.filepath,
300
- href: z(n)(e.filepath),
301
- class: P(["td-root-link", { "is-active": s(z(n)(e.filepath)) }])
313
+ href: G(u)(e.filepath),
314
+ class: R(["td-root-link", { "is-active": o(G(u)(e.filepath)) }])
302
315
  }, [
303
- j(z(K), {
316
+ I(G(E), {
304
317
  size: 14,
305
318
  class: "td-root-link-icon"
306
319
  }),
307
- A("span", Qe, R(z(u)(e.header, e.filepath)), 1),
308
- A("span", $e, R(z(i)(e.metadata.mtime)), 1)
320
+ F("span", Qe, W(G(c)(e.header, e.filepath)), 1),
321
+ F("span", $e, W(G(s)(e.metadata.mtime)), 1)
309
322
  ], 10, Ze))), 128)),
310
- (F(!0), k(T, null, L(e.tree.children, (e) => (F(), D(Je, {
323
+ (V(!0), P(k, null, U(e.tree.children, (e) => (V(), M(Je, {
311
324
  key: e.name,
312
325
  node: e
313
326
  }, null, 8, ["node"]))), 128))
314
327
  ]));
315
328
  }
316
- }), [["__scopeId", "data-v-392b5753"]]), tt = {
329
+ }), [["__scopeId", "data-v-b997c6ec"]]), tt = {
317
330
  class: "td-breadcrumb",
318
331
  "aria-label": "Breadcrumb"
319
332
  }, nt = {
320
333
  key: 0,
321
- class: "td-breadcrumb-sep"
334
+ class: "td-breadcrumb-sep",
335
+ "aria-hidden": "true"
322
336
  }, rt = ["href"], it = {
323
337
  key: 2,
324
338
  class: "td-breadcrumb-current"
325
- }, at = /*#__PURE__*/ S(/* @__PURE__ */ M({
339
+ }, at = /*#__PURE__*/ C(/* @__PURE__ */ L({
326
340
  __name: "TdBreadcrumb",
327
341
  setup(e) {
328
- let t = w(), n = E(() => {
342
+ let t = T(), n = j(() => {
329
343
  let e = t.path === "/" ? "/" : t.path.replace(/\/$/, ""), n = [{
330
344
  name: "Home",
331
345
  href: "/"
@@ -333,27 +347,35 @@ var Ce = ({ name: e, iconNode: t, "icon-node": n, absoluteStrokeWidth: r, "absol
333
347
  if (e === "/") return n;
334
348
  let r = e.replace(/^\//, "").split("/");
335
349
  for (let e = 0; e < r.length; e++) n.push({
336
- name: _(r[e]),
350
+ name: d(r[e]),
337
351
  href: "/" + r.slice(0, e + 1).join("/")
338
352
  });
339
353
  return n;
340
354
  });
341
- return (e, t) => (F(), k("nav", tt, [(F(!0), k(T, null, L(n.value, (e, t) => (F(), k(T, { key: e.href }, [t > 0 ? (F(), k("span", nt, "/")) : O("", !0), t < n.value.length - 1 ? (F(), k("a", {
355
+ return (e, t) => (V(), P("nav", tt, [(V(!0), P(k, null, U(n.value, (e, t) => (V(), P(k, { key: e.href }, [t > 0 ? (V(), P("span", nt, "/")) : N("", !0), t < n.value.length - 1 ? (V(), P("a", {
342
356
  key: 1,
343
357
  href: e.href,
344
358
  class: "td-breadcrumb-link"
345
- }, R(e.name), 9, rt)) : (F(), k("span", it, R(e.name), 1))], 64))), 128))]));
359
+ }, W(e.name), 9, rt)) : (V(), P("span", it, W(e.name), 1))], 64))), 128))]));
346
360
  }
347
- }), [["__scopeId", "data-v-7273c2c0"]]), ot = { class: "td-widget-checkbox" }, st = /*#__PURE__*/ S(/* @__PURE__ */ M({
361
+ }), [["__scopeId", "data-v-12edfa89"]]), ot = { class: "td-widget-checkbox" }, st = /*#__PURE__*/ C(/* @__PURE__ */ L({
348
362
  __name: "TdWidgetCheckbox",
349
363
  props: { value: {} },
350
364
  setup(e) {
351
- return (t, n) => (F(), k("span", ot, R(e.value ? "☑" : "☐"), 1));
365
+ return (t, n) => (V(), P("span", ot, [e.value ? (V(), M(G(Oe), {
366
+ key: 0,
367
+ size: 16,
368
+ class: "td-widget-checkbox-icon is-checked"
369
+ })) : (V(), M(G(ke), {
370
+ key: 1,
371
+ size: 16,
372
+ class: "td-widget-checkbox-icon"
373
+ }))]));
352
374
  }
353
- }), [["__scopeId", "data-v-32f57a06"]]);
375
+ }), [["__scopeId", "data-v-0efb2919"]]);
354
376
  //#endregion
355
377
  //#region src/client/theme-default/components/TdFrontmatter/widgets/ref.ts
356
- function Z(e) {
378
+ function ct(e) {
357
379
  if (typeof e != "object" || !e) return;
358
380
  let t = e.$ref;
359
381
  if (typeof t != "object" || !t) return;
@@ -365,72 +387,124 @@ function Z(e) {
365
387
  }
366
388
  //#endregion
367
389
  //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetList.vue?vue&type=script&setup=true&lang.ts
368
- var ct = ["href"], lt = { class: "td-widget-list" }, Q = 5, ut = /*#__PURE__*/ S(/* @__PURE__ */ M({
390
+ var lt = ["href"], ut = { class: "td-widget-list" }, Z = 5, dt = /*#__PURE__*/ C(/* @__PURE__ */ L({
369
391
  __name: "TdWidgetList",
370
392
  props: {
371
393
  definition: {},
372
394
  value: {}
373
395
  },
374
396
  setup(e) {
375
- let t = I(!1), n = Array.isArray(e.value) ? e.value : [], r = e.definition.items?.widget === "relation", i = r ? n.map((e) => Z(e)).filter((e) => e !== void 0) : [], a = r ? Math.max(0, i.length - Q) : Math.max(0, n.length - Q);
397
+ let t = H(!1), n = Array.isArray(e.value) ? e.value : [], r = e.definition.items?.widget === "relation", i = r ? n.map((e) => ct(e)).filter((e) => e !== void 0) : [], a = r ? Math.max(0, i.length - Z) : Math.max(0, n.length - Z);
376
398
  function o() {
377
399
  t.value = !t.value;
378
400
  }
379
401
  function s(e) {
380
- return t.value ? e : e.slice(0, Q);
402
+ return t.value ? e : e.slice(0, Z);
381
403
  }
382
- return (e, c) => r ? (F(), k(T, { key: 0 }, [(F(!0), k(T, null, L(s(z(i)), (e, t) => (F(), k("a", {
404
+ return (e, c) => r ? (V(), P(k, { key: 0 }, [(V(!0), P(k, null, U(s(G(i)), (e, t) => (V(), P("a", {
383
405
  key: t,
384
406
  href: e.url,
385
407
  class: "td-widget-ref"
386
- }, R(e.name), 9, ct))), 128)), z(a) > 0 ? (F(), k("button", {
408
+ }, W(e.name), 9, lt))), 128)), G(a) > 0 ? (V(), P("button", {
387
409
  key: 0,
388
410
  class: "td-widget-more",
389
411
  type: "button",
390
412
  onClick: o
391
- }, R(t.value ? "show less" : `+${z(a)} more`), 1)) : O("", !0)], 64)) : (F(), k(T, { key: 1 }, [A("ul", lt, [(F(!0), k(T, null, L(s(z(n)), (e, t) => (F(), k("li", { key: t }, R(e), 1))), 128))]), z(a) > 0 ? (F(), k("button", {
413
+ }, W(t.value ? "show less" : `+${G(a)} more`), 1)) : N("", !0)], 64)) : (V(), P(k, { key: 1 }, [F("ul", ut, [(V(!0), P(k, null, U(s(G(n)), (e, t) => (V(), P("li", { key: t }, W(e), 1))), 128))]), G(a) > 0 ? (V(), P("button", {
392
414
  key: 0,
393
415
  class: "td-widget-more",
394
416
  type: "button",
395
417
  onClick: o
396
- }, R(t.value ? "show less" : `+${z(a)} more`), 1)) : O("", !0)], 64));
418
+ }, W(t.value ? "show less" : `+${G(a)} more`), 1)) : N("", !0)], 64));
419
+ }
420
+ }), [["__scopeId", "data-v-a933ebef"]]), ft = [
421
+ {
422
+ fg: "#a0522d",
423
+ bg: "rgba(160, 82, 45, 0.1)"
424
+ },
425
+ {
426
+ fg: "#4F6BCA",
427
+ bg: "rgba(79, 107, 202, 0.1)"
428
+ },
429
+ {
430
+ fg: "#10b981",
431
+ bg: "rgba(16, 185, 129, 0.1)"
432
+ },
433
+ {
434
+ fg: "#8b5cf6",
435
+ bg: "rgba(139, 92, 246, 0.1)"
436
+ },
437
+ {
438
+ fg: "#ec4899",
439
+ bg: "rgba(236, 72, 153, 0.1)"
440
+ },
441
+ {
442
+ fg: "#f59e0b",
443
+ bg: "rgba(245, 158, 11, 0.1)"
444
+ },
445
+ {
446
+ fg: "#06b6d4",
447
+ bg: "rgba(6, 182, 212, 0.1)"
448
+ },
449
+ {
450
+ fg: "#ef4444",
451
+ bg: "rgba(239, 68, 68, 0.1)"
397
452
  }
398
- }), [["__scopeId", "data-v-5428367c"]]), dt = 5, ft = /*#__PURE__*/ S(/* @__PURE__ */ M({
453
+ ];
454
+ function Q(e) {
455
+ let t = ft[pt(String(e ?? "")) % ft.length];
456
+ return {
457
+ color: t.fg,
458
+ background: t.bg
459
+ };
460
+ }
461
+ function pt(e) {
462
+ let t = 0;
463
+ for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
464
+ return Math.abs(t);
465
+ }
466
+ //#endregion
467
+ //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
468
+ var mt = 5, ht = /*#__PURE__*/ C(/* @__PURE__ */ L({
399
469
  __name: "TdWidgetMultiSelect",
400
470
  props: { value: {} },
401
471
  setup(e) {
402
- let t = I(!1), n = Array.isArray(e.value) ? e.value : [], r = () => t.value ? n : n.slice(0, dt), i = Math.max(0, n.length - dt);
472
+ let t = H(!1), n = Array.isArray(e.value) ? e.value : [], r = () => t.value ? n : n.slice(0, mt), i = Math.max(0, n.length - mt);
403
473
  function a() {
404
474
  t.value = !t.value;
405
475
  }
406
- return (e, n) => (F(), k(T, null, [(F(!0), k(T, null, L(r(), (e, t) => (F(), k("span", {
476
+ return (e, n) => (V(), P(k, null, [(V(!0), P(k, null, U(r(), (e, t) => (V(), P("span", {
407
477
  key: t,
408
- class: "td-widget-pill"
409
- }, R(e), 1))), 128)), z(i) > 0 ? (F(), k("button", {
478
+ class: "td-widget-pill",
479
+ style: z(G(Q)(e))
480
+ }, W(e), 5))), 128)), G(i) > 0 ? (V(), P("button", {
410
481
  key: 0,
411
482
  class: "td-widget-more",
412
483
  type: "button",
413
484
  onClick: a
414
- }, R(t.value ? "show less" : `+${z(i)} more`), 1)) : O("", !0)], 64));
485
+ }, W(t.value ? "show less" : `+${G(i)} more`), 1)) : N("", !0)], 64));
415
486
  }
416
- }), [["__scopeId", "data-v-3d5db69d"]]), pt = ["href"], mt = { key: 1 }, ht = /*#__PURE__*/ S(/* @__PURE__ */ M({
487
+ }), [["__scopeId", "data-v-33269637"]]), gt = ["href"], _t = { key: 1 }, vt = /*#__PURE__*/ C(/* @__PURE__ */ L({
417
488
  __name: "TdWidgetRelation",
418
489
  props: { value: {} },
419
490
  setup(e) {
420
- let t = Z(e.value);
421
- return (n, r) => z(t) ? (F(), k("a", {
491
+ let t = ct(e.value);
492
+ return (n, r) => G(t) ? (V(), P("a", {
422
493
  key: 0,
423
- href: z(t).url,
494
+ href: G(t).url,
424
495
  class: "td-widget-ref"
425
- }, R(z(t).name), 9, pt)) : (F(), k("span", mt, R(e.value), 1));
496
+ }, W(G(t).name), 9, gt)) : (V(), P("span", _t, W(e.value), 1));
426
497
  }
427
- }), [["__scopeId", "data-v-32528101"]]), gt = { class: "td-widget-pill" }, _t = /*#__PURE__*/ S(/* @__PURE__ */ M({
498
+ }), [["__scopeId", "data-v-32528101"]]), yt = /*#__PURE__*/ C(/* @__PURE__ */ L({
428
499
  __name: "TdWidgetSelect",
429
500
  props: { value: {} },
430
501
  setup(e) {
431
- return (t, n) => (F(), k("span", gt, R(e.value), 1));
502
+ return (t, n) => (V(), P("span", {
503
+ class: "td-widget-pill",
504
+ style: z(G(Q)(e.value))
505
+ }, W(e.value), 5));
432
506
  }
433
- }), [["__scopeId", "data-v-99c8837d"]]), vt = /* @__PURE__ */ M({
507
+ }), [["__scopeId", "data-v-7dea5e20"]]), bt = /* @__PURE__ */ L({
434
508
  __name: "TdWidgetText",
435
509
  props: {
436
510
  definition: {},
@@ -438,68 +512,68 @@ var ct = ["href"], lt = { class: "td-widget-list" }, Q = 5, ut = /*#__PURE__*/ S
438
512
  },
439
513
  setup(e) {
440
514
  function t(t) {
441
- return t == null ? "" : e.definition.widget === "date" ? f(String(t)) : String(t);
515
+ return t == null ? "" : e.definition.widget === "date" ? l(String(t)) : String(t);
442
516
  }
443
- return (n, r) => R(t(e.value));
517
+ return (n, r) => W(t(e.value));
444
518
  }
445
- }), yt = {
519
+ }), xt = {
446
520
  key: 0,
447
521
  class: "td-frontmatter-empty"
448
- }, bt = /*#__PURE__*/ S(/* @__PURE__ */ M({
522
+ }, St = /*#__PURE__*/ C(/* @__PURE__ */ L({
449
523
  __name: "TdFrontmatterValue",
450
524
  props: {
451
525
  definition: {},
452
526
  value: {}
453
527
  },
454
528
  setup(e) {
455
- return (t, n) => e.value === void 0 || e.value === null ? (F(), k("span", yt, "Empty")) : e.definition.widget === "checkbox" ? (F(), D(st, {
529
+ return (t, n) => e.value === void 0 || e.value === null ? (V(), P("span", xt, "Empty")) : e.definition.widget === "checkbox" ? (V(), M(st, {
456
530
  key: 1,
457
531
  value: e.value
458
- }, null, 8, ["value"])) : e.definition.widget === "select" ? (F(), D(_t, {
532
+ }, null, 8, ["value"])) : e.definition.widget === "select" ? (V(), M(yt, {
459
533
  key: 2,
460
534
  value: e.value
461
- }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (F(), D(ft, {
535
+ }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (V(), M(ht, {
462
536
  key: 3,
463
537
  value: e.value
464
- }, null, 8, ["value"])) : e.definition.widget === "relation" ? (F(), D(ht, {
538
+ }, null, 8, ["value"])) : e.definition.widget === "relation" ? (V(), M(vt, {
465
539
  key: 4,
466
540
  value: e.value
467
- }, null, 8, ["value"])) : e.definition.widget === "list" ? (F(), D(ut, {
541
+ }, null, 8, ["value"])) : e.definition.widget === "list" ? (V(), M(dt, {
468
542
  key: 5,
469
543
  definition: e.definition,
470
544
  value: e.value
471
- }, null, 8, ["definition", "value"])) : (F(), D(vt, {
545
+ }, null, 8, ["definition", "value"])) : (V(), M(bt, {
472
546
  key: 6,
473
547
  definition: e.definition,
474
548
  value: e.value
475
549
  }, null, 8, ["definition", "value"]));
476
550
  }
477
- }), [["__scopeId", "data-v-0bce73aa"]]), xt = {
551
+ }), [["__scopeId", "data-v-2d482376"]]), Ct = {
478
552
  key: 0,
479
553
  class: "td-frontmatter"
480
- }, St = { class: "td-frontmatter-label" }, Ct = { class: "td-frontmatter-value" }, wt = /*#__PURE__*/ S(/* @__PURE__ */ M({
554
+ }, wt = { class: "td-frontmatter-label" }, Tt = { class: "td-frontmatter-value" }, Et = /*#__PURE__*/ C(/* @__PURE__ */ L({
481
555
  __name: "TdFrontmatter",
482
556
  props: {
483
557
  schema: { default: () => void 0 },
484
558
  frontmatter: {}
485
559
  },
486
560
  setup(e) {
487
- let t = b(), n = E(() => {
561
+ let t = b(), n = j(() => {
488
562
  if (e.schema) return t.schemas[e.schema];
489
- }), r = E(() => {
563
+ }), r = j(() => {
490
564
  let e = n.value;
491
565
  return e ? Object.entries(e).filter(([e]) => !e.startsWith("_")) : [];
492
566
  });
493
- return (t, n) => r.value.length > 0 ? (F(), k("div", xt, [(F(!0), k(T, null, L(r.value, ([t, n]) => (F(), k("div", {
567
+ return (t, n) => r.value.length > 0 ? (V(), P("div", Ct, [(V(!0), P(k, null, U(r.value, ([t, n]) => (V(), P("div", {
494
568
  key: t,
495
569
  class: "td-frontmatter-row"
496
- }, [A("span", St, R(z(_)(t)), 1), A("span", Ct, [j(bt, {
570
+ }, [F("span", wt, W(G(d)(t)), 1), F("span", Tt, [I(St, {
497
571
  definition: n,
498
572
  value: e.frontmatter[t]
499
- }, null, 8, ["definition", "value"])])]))), 128))])) : O("", !0);
573
+ }, null, 8, ["definition", "value"])])]))), 128))])) : N("", !0);
500
574
  }
501
- }), [["__scopeId", "data-v-76ddc55f"]]), $ = I(!1);
502
- function Tt() {
575
+ }), [["__scopeId", "data-v-1d3c9aa2"]]), $ = H(!1);
576
+ function Dt() {
503
577
  function e() {
504
578
  $.value = !$.value;
505
579
  }
@@ -507,28 +581,28 @@ function Tt() {
507
581
  $.value = !1;
508
582
  }
509
583
  return {
510
- isOpen: le($),
584
+ isOpen: de($),
511
585
  toggle: e,
512
586
  close: t
513
587
  };
514
588
  }
515
589
  //#endregion
516
590
  //#region src/client/theme-default/components/TdMenuButton.vue
517
- var Et = /* @__PURE__ */ M({
591
+ var Ot = /* @__PURE__ */ L({
518
592
  __name: "TdMenuButton",
519
593
  setup(e) {
520
- let { isOpen: t, toggle: n } = Tt();
521
- return (e, r) => (F(), D(X, {
594
+ let { isOpen: t, toggle: n } = Dt();
595
+ return (e, r) => (V(), M(X, {
522
596
  class: "td-menu-button w-9 h-9 text-td-neutral-fg-muted group",
523
- label: z(t) ? "Close menu" : "Open menu",
524
- "aria-expanded": z(t),
525
- onClick: z(n)
597
+ label: G(t) ? "Close menu" : "Open menu",
598
+ "aria-expanded": G(t),
599
+ onClick: G(n)
526
600
  }, {
527
- default: V(() => [z(t) ? (F(), D(z(J), {
601
+ default: q(() => [G(t) ? (V(), M(G(Y), {
528
602
  key: 0,
529
603
  size: 20,
530
604
  class: "group-hover:text-td-primary-solid transition-colors"
531
- })) : (F(), D(z(Oe), {
605
+ })) : (V(), M(G(Te), {
532
606
  key: 1,
533
607
  size: 20,
534
608
  class: "group-hover:text-td-primary-solid transition-colors"
@@ -540,19 +614,16 @@ var Et = /* @__PURE__ */ M({
540
614
  "onClick"
541
615
  ]));
542
616
  }
543
- }), Dt = { class: "td-search" }, Ot = { class: "td-search-input-wrap" }, kt = {
544
- key: 0,
617
+ }), kt = { class: "td-search" }, At = { class: "td-search-input-wrap" }, jt = {
618
+ key: 1,
545
619
  class: "td-search-count"
546
- }, At = {
620
+ }, Mt = {
547
621
  key: 0,
548
622
  class: "td-search-results"
549
- }, jt = ["href"], Mt = { class: "td-search-result-header" }, Nt = ["innerHTML"], Pt = {
550
- key: 0,
551
- class: "td-search-result-badge"
552
- }, Ft = { class: "td-search-result-breadcrumb" }, It = ["innerHTML"], Lt = {
623
+ }, Nt = { class: "td-search-group-label" }, Pt = ["href"], Ft = ["innerHTML"], It = ["innerHTML"], Lt = {
553
624
  key: 1,
554
625
  class: "td-search-empty"
555
- }, Rt = 120, zt = /*#__PURE__*/ S(/* @__PURE__ */ M({
626
+ }, Rt = 120, zt = /*#__PURE__*/ C(/* @__PURE__ */ L({
556
627
  __name: "TdSearch",
557
628
  props: {
558
629
  active: {
@@ -565,43 +636,54 @@ var Et = /* @__PURE__ */ M({
565
636
  },
566
637
  emits: /*@__PURE__*/ oe(["select"], ["update:active", "update:query"]),
567
638
  setup(t, { emit: n }) {
568
- let r = pe(t, "active"), i = pe(t, "query"), a = n, o = w(), s = fe([]), u = E(() => 0 < i.value.trim().length);
569
- B(u, (e) => {
639
+ let r = he(t, "active"), i = he(t, "query"), o = n, s = me([]), c = H(!1), l = H(-1), u = j(() => 0 < i.value.trim().length), p = j(() => {
640
+ let e = [], t = /* @__PURE__ */ new Map();
641
+ for (let n of s.value) {
642
+ let r = a(n.id), i = t.get(r);
643
+ i || (i = {
644
+ pageUrl: r,
645
+ pageTitle: d(r.split("/").pop() || "index"),
646
+ results: []
647
+ }, t.set(r, i), e.push(i)), i.results.push(n);
648
+ }
649
+ return e;
650
+ });
651
+ K(u, (e) => {
570
652
  r.value = e;
571
653
  });
572
- let d = ne(), f = ee(), p;
573
- B(d, () => {
574
- p = void 0;
654
+ let m = ne(), h = te(), v;
655
+ K(m, () => {
656
+ v = void 0;
575
657
  });
576
- function m() {
577
- if (p) return p;
578
- if (d.value) return p = ae(y.loadJSON(d.value, {
579
- fields: c,
580
- storeFields: e
581
- })), p;
658
+ function b() {
659
+ if (v) return v;
660
+ if (m.value) return v = ae(y.loadJSON(m.value, {
661
+ fields: e,
662
+ storeFields: f
663
+ })), v;
582
664
  }
583
- let g = !1, _ = ge((e) => D(e), 150);
584
- B(i, (e, t, n) => {
665
+ let x = !1, S = be((e) => ie(e), 150);
666
+ K(i, (e, t, n) => {
585
667
  n(() => {
586
- g = !0;
587
- }), g = !1;
668
+ x = !0;
669
+ }), x = !1;
588
670
  let r = e.trim();
589
671
  if (!r) {
590
- s.value = [];
672
+ s.value = [], c.value = !1;
591
673
  return;
592
674
  }
593
- _(r);
675
+ c.value = !0, l.value = -1, S(r);
594
676
  });
595
- function v() {
677
+ function C() {
596
678
  i.value = "";
597
679
  }
598
- function b(e, t) {
599
- let n = RegExp(`id="${H(t)}"[^>]*>`, "i").exec(e);
600
- if (!n) return h(e);
680
+ function w(e, t) {
681
+ let n = RegExp(`id="${J(t)}"[^>]*>`, "i").exec(e);
682
+ if (!n) return _(e);
601
683
  let r = e.slice(n.index + n[0].length), i = r.search(/<h[1-6]/i);
602
- return h(0 <= i ? r.slice(0, i) : r);
684
+ return _(0 <= i ? r.slice(0, i) : r);
603
685
  }
604
- function x(e, t) {
686
+ function ee(e, t) {
605
687
  if (!e) return "";
606
688
  let n = Object.keys(t);
607
689
  if (n.length === 0) return e.slice(0, Rt);
@@ -613,105 +695,128 @@ var Et = /* @__PURE__ */ M({
613
695
  let a = Math.max(0, i - 30), o = Math.min(e.length, a + Rt), s = e.slice(a, o).trim();
614
696
  return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
615
697
  }
616
- async function S(e, t, n) {
617
- let r = t.indexOf("#"), i = 0 <= r ? t.slice(0, r) : t, a = 0 <= r ? t.slice(r + 1) : "";
698
+ async function T(e, t, n) {
699
+ let r = a(t), i = t.indexOf("#"), o = 0 <= i ? t.slice(i + 1) : "";
618
700
  try {
619
- let t = (await e(i))?.default, r = (typeof t?.data == "function" ? t.data() : {}).__html ?? "";
620
- return x(a ? b(r, a) : h(r), n);
701
+ let t = (await e(r))?.default, i = (typeof t?.data == "function" ? t.data() : {}).__html ?? "";
702
+ return ee(o ? w(i, o) : _(i), n);
621
703
  } catch {
622
704
  return "";
623
705
  }
624
706
  }
625
- function C(e, t) {
626
- if (!e || !t) return l(e);
627
- let n = t.trim().split(/\s+/).filter(Boolean), r = l(e);
707
+ let E = j(() => p.value.flatMap((e) => e.results)), D = j(() => {
708
+ let e = /* @__PURE__ */ new Map();
709
+ for (let t = 0; t < E.value.length; t++) e.set(E.value[t].id, t);
710
+ return e;
711
+ });
712
+ function O(e, t) {
713
+ if (!e || !t) return g(e);
714
+ let n = t.trim().split(/\s+/).filter(Boolean), r = g(e);
628
715
  for (let e of n) {
629
- let t = RegExp(`(${H(e)})`, "gi");
716
+ let t = RegExp(`(${J(e)})`, "gi");
630
717
  r = r.replace(t, "<mark>$1</mark>");
631
718
  }
632
719
  return r;
633
720
  }
634
- function te(e) {
635
- let t = e.split("#")[0];
636
- return o.path === t;
721
+ function re(e) {
722
+ let t = D.value.size;
723
+ if (t !== 0) {
724
+ if (e.key === "ArrowDown") e.preventDefault(), l.value = (l.value + 1) % t;
725
+ else if (e.key === "ArrowUp") e.preventDefault(), l.value = (l.value - 1 + t) % t;
726
+ else if (e.key === "Enter" && 0 <= l.value) {
727
+ e.preventDefault();
728
+ let t = E.value[l.value];
729
+ if (!t) return;
730
+ document.querySelector(`.td-search-result[href="${CSS.escape(t.id)}"]`)?.click();
731
+ }
732
+ }
637
733
  }
638
- function re() {
639
- a("select");
734
+ function A() {
735
+ o("select");
640
736
  }
641
- async function D(e) {
642
- let t = m();
643
- if (!t) return;
644
- let n = t.search(e, {
645
- prefix: !0,
646
- fuzzy: .2,
647
- boost: { title: 2 }
648
- }), r = await Promise.all(n.slice(0, 20).map(async (e) => {
649
- let t = f ? await S(f, e.id, e.match) : "";
650
- return {
651
- id: e.id,
652
- title: e.title,
653
- titles: e.titles,
654
- excerpt: t,
655
- score: e.score
656
- };
657
- }));
658
- g || (s.value = r);
737
+ async function ie(e) {
738
+ let t = b();
739
+ if (t) try {
740
+ let n = t.search(e, {
741
+ prefix: !0,
742
+ fuzzy: .2,
743
+ boost: { title: 2 }
744
+ }), r = await Promise.all(n.slice(0, 20).map(async (e) => {
745
+ let t = h ? await T(h, e.id, e.match) : "";
746
+ return {
747
+ id: e.id,
748
+ title: e.title,
749
+ titles: e.titles,
750
+ excerpt: t,
751
+ score: e.score
752
+ };
753
+ }));
754
+ if (x) return;
755
+ s.value = r;
756
+ } finally {
757
+ x || (c.value = !1);
758
+ }
659
759
  }
660
- return (e, t) => (F(), k("div", Dt, [
661
- A("div", Ot, [
662
- j(z(Ae), {
760
+ return (e, t) => (V(), P("div", kt, [
761
+ F("div", At, [
762
+ I(G(De), {
663
763
  size: 14,
664
764
  class: "td-search-icon"
665
765
  }),
666
- he(A("input", {
766
+ ve(F("input", {
667
767
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
668
768
  class: "td-search-input",
669
769
  type: "text",
670
- placeholder: "Search..."
671
- }, null, 512), [[me, i.value]]),
672
- u.value ? (F(), k("span", kt, R(s.value.length), 1)) : O("", !0),
673
- i.value ? (F(), k("button", {
674
- key: 1,
770
+ size: "1",
771
+ placeholder: "Search...",
772
+ onKeydown: re
773
+ }, null, 544), [[_e, i.value]]),
774
+ c.value ? (V(), M(G(we), {
775
+ key: 0,
776
+ size: 12,
777
+ class: "td-search-spinner"
778
+ })) : u.value ? (V(), P("span", jt, W(s.value.length), 1)) : N("", !0),
779
+ i.value ? (V(), P("button", {
780
+ key: 2,
675
781
  class: "td-search-clear",
676
782
  type: "button",
677
783
  "aria-label": "Clear search",
678
- onClick: v
679
- }, [j(z(J), { size: 12 })])) : O("", !0)
784
+ onClick: C
785
+ }, [I(G(Y), { size: 12 })])) : N("", !0)
680
786
  ]),
681
- u.value && s.value.length > 0 ? (F(), k("div", At, [(F(!0), k(T, null, L(s.value, (e) => (F(), k("a", {
787
+ u.value && s.value.length > 0 ? (V(), P("div", Mt, [(V(!0), P(k, null, U(p.value, (e) => (V(), P("div", {
788
+ key: e.pageUrl,
789
+ class: "td-search-group"
790
+ }, [F("div", Nt, W(e.pageTitle), 1), (V(!0), P(k, null, U(e.results, (e) => (V(), P("a", {
682
791
  key: e.id,
683
792
  href: e.id,
684
- class: "td-search-result",
685
- onClick: re
686
- }, [
687
- A("span", Mt, [A("span", {
688
- class: "td-search-result-title",
689
- innerHTML: C(e.title, i.value)
690
- }, null, 8, Nt), te(e.id) ? (F(), k("span", Pt, "current page")) : O("", !0)]),
691
- A("span", Ft, R(e.titles.join(" / ")), 1),
692
- e.excerpt ? (F(), k("span", {
693
- key: 0,
694
- class: "td-search-result-excerpt",
695
- innerHTML: C(e.excerpt, i.value)
696
- }, null, 8, It)) : O("", !0)
697
- ], 8, jt))), 128))])) : O("", !0),
698
- u.value && s.value.length === 0 ? (F(), k("div", Lt, " No results for \"" + R(i.value) + "\" ", 1)) : O("", !0)
793
+ class: R(["td-search-result", { "is-selected": D.value.get(e.id) === l.value }]),
794
+ onClick: A
795
+ }, [F("span", {
796
+ class: "td-search-result-title",
797
+ innerHTML: O(e.title, i.value)
798
+ }, null, 8, Ft), e.excerpt ? (V(), P("span", {
799
+ key: 0,
800
+ class: "td-search-result-excerpt",
801
+ innerHTML: O(e.excerpt, i.value)
802
+ }, null, 8, It)) : N("", !0)], 10, Pt))), 128))]))), 128))])) : N("", !0),
803
+ u.value && s.value.length === 0 ? (V(), P("div", Lt, " No results for \"" + W(i.value) + "\" ", 1)) : N("", !0)
699
804
  ]));
700
805
  }
701
- }), [["__scopeId", "data-v-44fb07da"]]), Bt = /* @__PURE__ */ M({
806
+ }), [["__scopeId", "data-v-dc5caa87"]]), Bt = /* @__PURE__ */ L({
702
807
  __name: "TdThemeToggle",
703
808
  setup(e) {
704
809
  let { isDark: t, toggle: n } = re();
705
- return (e, r) => (F(), D(X, {
810
+ return (e, r) => (V(), M(X, {
706
811
  class: "w-9 h-9 text-td-neutral-fg-muted group hover:opacity-70",
707
- label: z(t) ? "Switch to light mode" : "Switch to dark mode",
708
- onClick: z(n)
812
+ label: G(t) ? "Switch to light mode" : "Switch to dark mode",
813
+ onClick: G(n)
709
814
  }, {
710
- default: V(() => [z(t) ? (F(), D(z(je), {
815
+ default: q(() => [G(t) ? (V(), M(G(Ae), {
711
816
  key: 0,
712
817
  size: 18,
713
818
  class: "group-hover:text-td-primary-solid transition-colors"
714
- })) : (F(), D(z(ke), {
819
+ })) : (V(), M(G(Ee), {
715
820
  key: 1,
716
821
  size: 18,
717
822
  class: "group-hover:text-td-primary-solid transition-colors"
@@ -734,152 +839,209 @@ function Vt() {
734
839
  t.classList.remove("copied"), t.setAttribute("title", i);
735
840
  }, 2e3);
736
841
  }
737
- se(() => {
842
+ ue(() => {
738
843
  document.addEventListener("click", e);
739
- }), ce(() => {
844
+ }), B(() => {
740
845
  document.removeEventListener("click", e);
741
846
  });
742
847
  }
743
848
  //#endregion
744
- //#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
745
- var Ht = { class: "td-header" }, Ut = { class: "td-header-left" }, Wt = {
849
+ //#region src/client/theme-default/composables/useResizableTable.ts
850
+ var Ht = 6, Ut = 40;
851
+ function Wt() {
852
+ let e, t = !1;
853
+ function n(e, t) {
854
+ return e.getBoundingClientRect().right - t < Ht;
855
+ }
856
+ function r(r) {
857
+ if (t) return;
858
+ let i = r.target;
859
+ if (!i?.closest(".td-content")) {
860
+ e &&= (e.classList.remove("is-near-border"), void 0);
861
+ return;
862
+ }
863
+ let a = i.closest("th");
864
+ 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));
865
+ }
866
+ function i(e) {
867
+ let r = e.target?.closest(".td-content th");
868
+ if (!r || !r.nextElementSibling || !n(r, e.clientX)) return;
869
+ e.preventDefault(), t = !0;
870
+ let i = e.clientX, a = r.offsetWidth;
871
+ r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
872
+ function o(e) {
873
+ let t = e.clientX - i;
874
+ r && (r.style.width = `${Math.max(Ut, a + t)}px`);
875
+ }
876
+ function s() {
877
+ t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
878
+ }
879
+ document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
880
+ }
881
+ ue(() => {
882
+ document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
883
+ }), B(() => {
884
+ document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
885
+ });
886
+ }
887
+ //#endregion
888
+ //#region src/client/theme-default/composables/useActiveTocHeading.ts
889
+ function Gt(e) {
890
+ let t = H(""), n;
891
+ function r() {
892
+ n?.disconnect(), t.value = "";
893
+ let e = Array.from(document.querySelectorAll(".td-content h2[id], .td-content h3[id], .td-content h4[id], .td-content h5[id]"));
894
+ if (e.length !== 0) {
895
+ n = new IntersectionObserver((n) => {
896
+ for (let e of n) if (e.isIntersecting) {
897
+ t.value = e.target.id;
898
+ return;
899
+ }
900
+ let r = window.scrollY;
901
+ for (let n = e.length - 1; 0 <= n; n--) if (e[n].offsetTop <= r + 100) {
902
+ t.value = e[n].id;
903
+ return;
904
+ }
905
+ }, {
906
+ rootMargin: "-64px 0px -70% 0px",
907
+ threshold: 0
908
+ });
909
+ for (let t of e) n.observe(t);
910
+ }
911
+ }
912
+ return K(e, () => ce(r), { immediate: !0 }), B(() => {
913
+ n?.disconnect();
914
+ }), t;
915
+ }
916
+ //#endregion
917
+ //#region src/client/theme-default/components/TdToc.vue?vue&type=script&setup=true&lang.ts
918
+ var Kt = {
919
+ key: 0,
920
+ class: "td-toc"
921
+ }, qt = { class: "td-toc-list" }, Jt = ["href"], Yt = /*#__PURE__*/ C(/* @__PURE__ */ L({
922
+ __name: "TdToc",
923
+ props: { headings: {} },
924
+ setup(e) {
925
+ let t = Gt(() => e.headings);
926
+ return (n, r) => e.headings.length ? (V(), P("div", Kt, [r[0] ||= F("div", { class: "td-toc-label" }, " On this page ", -1), F("ul", qt, [(V(!0), P(k, null, U(e.headings, (e) => (V(), P("li", {
927
+ key: e.slug,
928
+ class: R({
929
+ "td-toc-indent-1": e.level === 3,
930
+ "td-toc-indent-2": e.level === 4,
931
+ "td-toc-indent-3": e.level === 5
932
+ })
933
+ }, [F("a", {
934
+ href: e.link,
935
+ class: R(["td-toc-link", { "is-active": G(t) === e.slug }])
936
+ }, W(e.title), 11, Jt)], 2))), 128))])])) : N("", !0);
937
+ }
938
+ }), [["__scopeId", "data-v-84e4402d"]]), Xt = { class: "td-header" }, Zt = { class: "td-header-left" }, Qt = {
746
939
  href: "/",
747
940
  class: "td-brand"
748
- }, Gt = { class: "td-brand-name" }, Kt = { class: "td-header-right" }, qt = { class: "td-menu-header" }, Jt = { class: "td-header-left" }, Yt = {
941
+ }, $t = { class: "td-brand-name" }, en = { class: "td-header-right" }, tn = { class: "td-menu-header" }, nn = { class: "td-header-left" }, rn = {
749
942
  href: "/",
750
943
  class: "td-brand"
751
- }, Xt = { class: "td-brand-name" }, Zt = {
944
+ }, an = { class: "td-brand-name" }, on = {
752
945
  key: 0,
753
946
  class: "pt-4",
754
947
  "aria-label": "Site navigation"
755
- }, Qt = { class: "td-page" }, $t = {
756
- class: "td-sidebar-left",
757
- "aria-label": "Site navigation"
758
- }, en = { class: "td-main-and-toc" }, tn = { class: "td-main" }, nn = { class: "td-content" }, rn = {
948
+ }, sn = { class: "td-page" }, cn = { class: "td-main-and-toc" }, ln = { class: "td-main" }, un = { class: "td-content" }, dn = {
759
949
  key: 0,
760
950
  class: "td-page-title"
761
- }, an = {
951
+ }, fn = {
762
952
  key: 1,
763
953
  class: "td-page-meta"
764
- }, on = { key: 0 }, sn = {
954
+ }, pn = { key: 0 }, mn = {
765
955
  class: "td-sidebar-right",
766
956
  "aria-label": "Table of contents"
767
- }, cn = {
768
- key: 0,
769
- class: "td-toc"
770
- }, ln = { class: "td-toc-list" }, un = ["href"], dn = /*#__PURE__*/ S(/* @__PURE__ */ M({
957
+ }, hn = 200, gn = 500, _n = 272, vn = "td-sidebar-width", yn = /*#__PURE__*/ C(/* @__PURE__ */ L({
771
958
  __name: "TdLayout",
772
959
  setup(e) {
773
- let { title: t, page: n } = te(), r = C(), i = b(), { isOpen: a, close: o } = Tt(), s = I(""), c = I(!1), l = I(!1), u = w();
774
- return B(() => u.path, () => o()), Vt(), (e, u) => (F(), k("div", null, [
775
- A("header", Ht, [A("div", Ut, [j(Et), A("a", Wt, [j(Y), A("span", Gt, R(z(r).title || "Typedown"), 1)])]), A("div", Kt, [j(Bt)])]),
776
- A("div", { class: P(["td-menu-overlay", { "is-open": z(a) }]) }, [
777
- A("header", qt, [A("div", Jt, [j(X, {
960
+ let { title: t, page: n } = D(), r = ee(), i = b(), { isOpen: a, close: s } = Dt(), c = H(""), l = H(!1), u = H(!1), d = T();
961
+ K(() => d.path, () => s()), Vt(), Wt();
962
+ let f = H(typeof localStorage < "u" && Number(localStorage.getItem(vn)) || _n);
963
+ function p(e) {
964
+ let t = e.clientX, n = f.value, r = e.currentTarget;
965
+ r.setPointerCapture(e.pointerId);
966
+ function i(e) {
967
+ let r = Math.min(gn, Math.max(hn, n + e.clientX - t));
968
+ f.value = r;
969
+ }
970
+ function a() {
971
+ document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(vn, String(f.value));
972
+ }
973
+ document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
974
+ }
975
+ return (e, d) => (V(), P("div", null, [
976
+ F("header", Xt, [F("div", Zt, [I(Ot), F("a", Qt, [I(Fe), F("span", $t, W(G(r).title || "Typedown"), 1)])]), F("div", en, [I(Bt)])]),
977
+ F("div", { class: R(["td-menu-overlay", { "is-open": G(a) }]) }, [
978
+ F("header", tn, [F("div", nn, [I(X, {
778
979
  class: "w-9 h-9 text-td-neutral-fg-muted hover:text-td-primary-solid",
779
980
  label: "Close menu",
780
- onClick: z(o)
981
+ onClick: G(s)
781
982
  }, {
782
- default: V(() => [j(z(J), { size: 20 })]),
983
+ default: q(() => [I(G(Y), { size: 20 })]),
783
984
  _: 1
784
- }, 8, ["onClick"]), A("a", Yt, [j(Y), A("span", Xt, R(z(r).title || "Typedown"), 1)])])]),
785
- j(zt, {
786
- query: s.value,
787
- "onUpdate:query": u[0] ||= (e) => s.value = e,
788
- active: l.value,
789
- "onUpdate:active": u[1] ||= (e) => l.value = e,
790
- onSelect: z(o)
985
+ }, 8, ["onClick"]), F("a", rn, [I(Fe), F("span", an, W(G(r).title || "Typedown"), 1)])])]),
986
+ I(zt, {
987
+ query: c.value,
988
+ "onUpdate:query": d[0] ||= (e) => c.value = e,
989
+ active: u.value,
990
+ "onUpdate:active": d[1] ||= (e) => u.value = e,
991
+ onSelect: G(s)
791
992
  }, null, 8, [
792
993
  "query",
793
994
  "active",
794
995
  "onSelect"
795
996
  ]),
796
- l.value ? O("", !0) : (F(), k("nav", Zt, [j(et, { tree: z(i).contentTree }, null, 8, ["tree"])]))
997
+ u.value ? N("", !0) : (V(), P("nav", on, [I(et, { tree: G(i).contentTree }, null, 8, ["tree"])]))
797
998
  ], 2),
798
- A("div", Qt, [A("nav", $t, [j(zt, {
799
- query: s.value,
800
- "onUpdate:query": u[2] ||= (e) => s.value = e,
801
- active: c.value,
802
- "onUpdate:active": u[3] ||= (e) => c.value = e
803
- }, null, 8, ["query", "active"]), c.value ? O("", !0) : (F(), D(et, {
804
- key: 0,
805
- tree: z(i).contentTree
806
- }, null, 8, ["tree"]))]), A("div", en, [A("main", tn, [A("article", nn, [
807
- j(at),
808
- z(t) ? (F(), k("h1", rn, R(z(t)), 1)) : O("", !0),
809
- z(n).metadata ? (F(), k("div", an, [A("span", null, R(z(p)(z(n).metadata.mtime, "Modified")), 1), z(n).metadata.ctime === z(n).metadata.mtime ? O("", !0) : (F(), k("span", on, " · " + R(z(p)(z(n).metadata.ctime, "Created")), 1))])) : O("", !0),
810
- j(z(wt), {
811
- schema: z(n).schema,
812
- frontmatter: z(n).frontmatter
999
+ F("div", sn, [F("nav", {
1000
+ class: "td-sidebar-left",
1001
+ "aria-label": "Site navigation",
1002
+ style: z({ width: `${f.value}px` })
1003
+ }, [
1004
+ I(zt, {
1005
+ query: c.value,
1006
+ "onUpdate:query": d[2] ||= (e) => c.value = e,
1007
+ active: l.value,
1008
+ "onUpdate:active": d[3] ||= (e) => l.value = e
1009
+ }, null, 8, ["query", "active"]),
1010
+ l.value ? N("", !0) : (V(), M(et, {
1011
+ key: 0,
1012
+ tree: G(i).contentTree
1013
+ }, null, 8, ["tree"])),
1014
+ F("div", {
1015
+ class: "td-sidebar-resize",
1016
+ onPointerdown: ye(p, ["prevent"])
1017
+ }, null, 32)
1018
+ ], 4), F("div", cn, [F("main", ln, [F("article", un, [
1019
+ I(at),
1020
+ G(t) ? (V(), P("h1", dn, W(G(t)), 1)) : N("", !0),
1021
+ G(n).metadata ? (V(), P("div", fn, [F("span", null, W(G(o)(G(n).metadata.mtime, "Modified")), 1), G(n).metadata.ctime === G(n).metadata.mtime ? N("", !0) : (V(), P("span", pn, " · " + W(G(o)(G(n).metadata.ctime, "Created")), 1))])) : N("", !0),
1022
+ I(G(Et), {
1023
+ schema: G(n).schema,
1024
+ frontmatter: G(n).frontmatter
813
1025
  }, null, 8, ["schema", "frontmatter"]),
814
- j(z(x))
815
- ])]), A("nav", sn, [z(n).headings.length ? (F(), k("div", cn, [u[4] ||= A("div", { class: "td-toc-label" }, " On this page ", -1), A("ul", ln, [(F(!0), k(T, null, L(z(n).headings, (e) => (F(), k("li", {
816
- key: e.slug,
817
- class: P({
818
- "td-toc-indent-1": e.level === 3,
819
- "td-toc-indent-2": e.level === 4,
820
- "td-toc-indent-3": e.level === 5
821
- })
822
- }, [A("a", {
823
- href: e.link,
824
- class: "td-toc-link"
825
- }, R(e.title), 9, un)], 2))), 128))])])) : O("", !0)])])])
1026
+ I(G(x))
1027
+ ])]), F("nav", mn, [I(Yt, { headings: G(n).headings }, null, 8, ["headings"])])])])
826
1028
  ]));
827
1029
  }
828
- }), [["__scopeId", "data-v-24088016"]]), fn = {}, pn = { class: "pt-16 pb-24" };
829
- function mn(e, t) {
830
- return F(), k("div", pn, [...t[0] ||= [
831
- A("p", { class: "text-td-display font-td-heading leading-none tracking-td-title text-td-fg-muted" }, " 404 ", -1),
832
- A("h1", { class: "text-td-h2 font-td-heading leading-td-heading tracking-td-heading mt-4" }, " Page Not Found ", -1),
833
- A("p", { class: "text-td-fg-muted mt-2 text-td-body leading-td-body" }, " The page you are looking for does not exist. ", -1),
834
- A("a", {
1030
+ }), [["__scopeId", "data-v-1b48ef38"]]), bn = {}, xn = { class: "pt-16 pb-24" };
1031
+ function Sn(e, t) {
1032
+ return V(), P("div", xn, [...t[0] ||= [
1033
+ F("p", { class: "text-td-display font-td-heading leading-none tracking-td-title text-td-fg-muted" }, " 404 ", -1),
1034
+ F("h1", { class: "text-td-h2 font-td-heading leading-td-heading tracking-td-heading mt-4" }, " Page Not Found ", -1),
1035
+ F("p", { class: "text-td-fg-muted mt-2 text-td-body leading-td-body" }, " The page you are looking for does not exist. ", -1),
1036
+ F("a", {
835
1037
  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",
836
1038
  href: "/"
837
1039
  }, "Go Home", -1)
838
1040
  ]]);
839
1041
  }
840
- 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__ */ M({
841
- __name: "TdDirectoryIndex",
842
- props: {
843
- url: {},
844
- subdirectories: { default: () => [] },
845
- items: { default: () => [] }
846
- },
847
- setup(e) {
848
- let t = E(() => e.url === "/"), n = E(() => a(e.url));
849
- return (r, i) => (F(), k("div", null, [
850
- t.value ? O("", !0) : (F(), k("a", {
851
- key: 0,
852
- href: n.value,
853
- class: "td-dir-row"
854
- }, [j(z(Te), {
855
- size: 16,
856
- class: "text-td-gray-500 flex-shrink-0"
857
- }), i[0] ||= A("span", { class: "font-td-semibold text-td-body-sm text-td-neutral-fg-muted" }, "..", -1)], 8, gn)),
858
- e.subdirectories.length > 0 ? (F(), k("div", _n, [(F(!0), k(T, null, L(e.subdirectories, (e) => (F(), k("a", {
859
- key: e.url,
860
- href: e.url,
861
- class: "td-dir-row"
862
- }, [
863
- j(z(q), {
864
- size: 16,
865
- class: "text-td-gray-500 flex-shrink-0"
866
- }),
867
- A("span", yn, R(e.name), 1),
868
- A("span", bn, R(e.count), 1)
869
- ], 8, vn))), 128))])) : O("", !0),
870
- e.items.length > 0 ? (F(), k("div", xn, [(F(!0), k(T, null, L(e.items, (e) => (F(), k("a", {
871
- key: e.url,
872
- href: e.url,
873
- class: "td-dir-row"
874
- }, [j(z(K), {
875
- size: 16,
876
- class: "text-td-gray-500 flex-shrink-0"
877
- }), A("span", Cn, R(e.name), 1)], 8, Sn))), 128))])) : O("", !0)
878
- ]));
879
- }
880
- }), [["__scopeId", "data-v-d08106fa"]]), Tn = {
881
- Layout: dn,
882
- NotFound: hn
1042
+ var Cn = /*#__PURE__*/ C(bn, [["render", Sn]]), wn = {
1043
+ Layout: yn,
1044
+ NotFound: Cn
883
1045
  };
884
1046
  //#endregion
885
- export { wn as TdDirectoryIndex, dn as TdLayout, hn as TdNotFound, Tn as default, Vt as useCopyCode };
1047
+ export { S as TdDirectoryIndex, yn as TdLayout, Cn as TdNotFound, wn as default, Vt as useCopyCode };