typerighter 0.36.0 → 0.38.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.
@@ -1,7 +1,7 @@
1
- import { B as e, D as t, E as n, G as r, K as i, M as a, N as o, O as s, P as c, S as l, _ as u, c as d, d as f, f as p, g as m, h, i as g, j as _, l as v, n as y, o as b, r as x, s as S, v as C, w, x as T, y as ee } from "../shared-hpG9wf_j.js";
1
+ import { D as e, E as t, K as n, M as r, N as i, O as a, P as o, S as s, V as c, _ as l, c as u, d, f, g as p, h as m, i as h, j as g, l as _, n as v, o as y, q as b, r as x, s as S, v as C, w, x as T, y as ee } from "../shared-DwnQV3ZZ.js";
2
2
  import { t as te } from "../temml-DZbhOfRE.js";
3
3
  import { t as ne } from "../es-ClqUVRJn.js";
4
- import { A as E, C as re, D as ie, E as ae, F as oe, I as se, L as D, M as ce, N as le, O as ue, P as de, S as fe, T as pe, _ as me, a as he, b as ge, c as _e, d as ve, f as O, g as ye, h as k, i as A, j as be, k as xe, l as j, m as Se, n as Ce, o as we, p as Te, r as Ee, s as De, v as Oe, w as ke, x as Ae, y as je } from "../app-I-BVWGvX.js";
4
+ import { A as E, C as re, D as ie, E as ae, F as oe, I as se, L as D, M as ce, N as le, O as ue, P as de, S as fe, T as pe, _ as me, a as he, b as ge, c as _e, d as ve, f as O, g as ye, h as k, i as A, j as be, k as xe, l as j, m as Se, n as Ce, o as we, p as Te, r as Ee, s as De, v as Oe, w as ke, x as Ae, y as je } from "../app-Dp7FPdlU.js";
5
5
  import { a as Me, i as Ne, n as Pe, t as Fe } from "../brand-CG1fQshq.js";
6
6
  import { Fragment as M, Teleport as Ie, computed as N, createApp as Le, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentScope as Re, markRaw as ze, mergeModels as Be, mergeProps as Ve, nextTick as He, normalizeClass as V, normalizeStyle as Ue, onBeforeUnmount as We, onMounted as Ge, onScopeDispose as Ke, onUnmounted as qe, openBlock as H, readonly as Je, ref as U, renderList as W, renderSlot as Ye, resolveComponent as Xe, resolveDynamicComponent as G, shallowReadonly as Ze, shallowRef as Qe, toDisplayString as K, toValue as $e, triggerRef as et, unref as q, useModel as tt, useTemplateRef as nt, vModelText as rt, watch as J, watchEffect as it, withCtx as at, withDirectives as ot, withKeys as st, withModifiers as ct } from "vue";
7
7
  var lt = D({
@@ -1045,33 +1045,33 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1045
1045
  node: {},
1046
1046
  urlPrefix: { default: "" }
1047
1047
  },
1048
- setup(n) {
1049
- let r = j(), { withBase: i } = A(), a = N(() => T(n.urlPrefix, n.node.name)), o = N(() => h(n.node)), s = N(() => o.value ? w(o.value.filepath) : l(a.value)), c = N(() => i(s.value)), d = N(() => o.value?.label ?? e(n.node.name)), f = N(() => o.value?.icon ? O(o.value.icon.name) : void 0), p = N(() => n.node.entries.filter((e) => e.kind === "dir" || !C(e.item.filepath))), m = N(() => 0 < n.node.entries.length), _ = N(() => v(n.node));
1048
+ setup(t) {
1049
+ let n = j(), { withBase: r } = A(), i = N(() => T(t.urlPrefix, t.node.name)), a = N(() => m(t.node)), o = N(() => a.value ? w(a.value.filepath) : s(i.value)), u = N(() => r(o.value)), d = N(() => a.value?.label ?? c(t.node.name)), f = N(() => a.value?.icon ? O(a.value.icon.name) : void 0), p = N(() => t.node.entries.filter((e) => e.kind === "dir" || !C(e.item.filepath))), g = N(() => 0 < t.node.entries.length), _ = N(() => v(t.node));
1050
1050
  function v(e) {
1051
1051
  let t = 0;
1052
1052
  for (let n of e.entries) n.kind === "file" ? t++ : t += v(n.node);
1053
1053
  return t;
1054
1054
  }
1055
- let y = U(!t(a.value, r.path)), b = U(!1), x = N(() => p.value.filter((e) => e.kind === "file").length), S = N(() => b.value ? 0 : Math.max(0, x.value - Er)), ee = N(() => {
1055
+ let y = U(!e(i.value, n.path)), b = U(!1), x = N(() => p.value.filter((e) => e.kind === "file").length), S = N(() => b.value ? 0 : Math.max(0, x.value - Er)), ee = N(() => {
1056
1056
  if (b.value) return p.value;
1057
1057
  let e = 0;
1058
1058
  return p.value.filter((t) => t.kind === "dir" || ++e <= Er);
1059
1059
  });
1060
- J(() => r.path, (e) => {
1061
- t(a.value, e) && (y.value = !1);
1060
+ J(() => n.path, (t) => {
1061
+ e(i.value, t) && (y.value = !1);
1062
1062
  });
1063
1063
  function te() {
1064
1064
  b.value = !0;
1065
1065
  }
1066
1066
  function ne(e) {
1067
- return r.path === e;
1067
+ return n.path === e;
1068
1068
  }
1069
1069
  function E() {
1070
1070
  y.value = !y.value;
1071
1071
  }
1072
1072
  return (e, t) => {
1073
1073
  let n = Xe("TdTreeNode", !0);
1074
- return m.value ? (H(), I("div", _r, [L("div", vr, [
1074
+ return g.value ? (H(), I("div", _r, [L("div", vr, [
1075
1075
  L("button", {
1076
1076
  type: "button",
1077
1077
  class: "td-tree-toggle",
@@ -1082,12 +1082,12 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1082
1082
  class: V(["td-tree-caret", { "is-collapsed": y.value }])
1083
1083
  }, null, 8, ["class"]), L("span", br, K(d.value), 1)], 8, yr),
1084
1084
  L("a", {
1085
- href: c.value,
1086
- class: V(["td-tree-index-btn", { "is-active": ne(s.value) }])
1085
+ href: u.value,
1086
+ class: V(["td-tree-index-btn", { "is-active": ne(o.value) }])
1087
1087
  }, [f.value ? (H(), P(G(f.value), {
1088
1088
  key: 0,
1089
1089
  size: 12
1090
- })) : ne(s.value) ? (H(), P(q(pt), {
1090
+ })) : ne(o.value) ? (H(), P(q(pt), {
1091
1091
  key: 1,
1092
1092
  size: 12
1093
1093
  })) : (H(), P(q(pe), {
@@ -1098,10 +1098,10 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1098
1098
  ]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed": y.value }]) }, [L("div", null, [(H(!0), I(M, null, W(ee.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(n, {
1099
1099
  key: 0,
1100
1100
  node: e.node,
1101
- "url-prefix": a.value
1101
+ "url-prefix": i.value
1102
1102
  }, null, 8, ["node", "url-prefix"])) : (H(), I("a", {
1103
1103
  key: 1,
1104
- href: q(i)(q(w)(e.item.filepath)),
1104
+ href: q(r)(q(w)(e.item.filepath)),
1105
1105
  class: V(["td-tree-link", { "is-active": ne(q(w)(e.item.filepath)) }])
1106
1106
  }, [
1107
1107
  e.item.icon && q(O)(e.item.icon.name) ? (H(), P(G(q(O)(e.item.icon.name)), {
@@ -1115,12 +1115,12 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1115
1115
  })),
1116
1116
  z(gr, {
1117
1117
  class: "td-tree-link-text",
1118
- text: q(u)(e.item.filepath, e.item.label)
1118
+ text: q(l)(e.item.filepath, e.item.label)
1119
1119
  }, {
1120
- default: at(() => [L("span", { innerHTML: q(Ot)(q(u)(e.item.filepath, e.item.label)) }, null, 8, wr)]),
1120
+ default: at(() => [L("span", { innerHTML: q(Ot)(q(l)(e.item.filepath, e.item.label)) }, null, 8, wr)]),
1121
1121
  _: 2
1122
1122
  }, 1032, ["text"]),
1123
- e.item.metadata ? (H(), I("span", Tr, K(q(g)(e.item.metadata.mtime)), 1)) : F("", !0)
1123
+ e.item.metadata ? (H(), I("span", Tr, K(q(h)(e.item.metadata.mtime)), 1)) : F("", !0)
1124
1124
  ], 10, Cr))], 64))), 128)), S.value > 0 && !b.value ? (H(), I("button", {
1125
1125
  key: 0,
1126
1126
  class: "td-tree-more",
@@ -1129,13 +1129,13 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1129
1129
  }, K(S.value) + " more... ", 1)) : F("", !0)])], 2)])) : F("", !0);
1130
1130
  };
1131
1131
  }
1132
- }), [["__scopeId", "data-v-d7e7ef3b"]]), Or = ["href"], kr = {
1132
+ }), [["__scopeId", "data-v-8638a605"]]), Or = { class: "td-nav" }, kr = ["href"], Ar = {
1133
1133
  key: 0,
1134
1134
  class: "td-root-link-time"
1135
- }, Ar = ["href"], jr = { class: "td-root-link-text" }, Mr = {
1135
+ }, jr = ["href"], Mr = { class: "td-root-link-text" }, Nr = {
1136
1136
  key: 2,
1137
1137
  class: "td-root-link-time"
1138
- }, Nr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1138
+ }, Pr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1139
1139
  __name: "TdContentNav",
1140
1140
  props: { tree: {} },
1141
1141
  setup(e) {
@@ -1143,17 +1143,17 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1143
1143
  function a(e) {
1144
1144
  return t.path === e;
1145
1145
  }
1146
- return (e, t) => (H(), I("nav", null, [L("a", {
1147
- href: q(n)(r.value ? q(w)(r.value.filepath) : q(l)("/")),
1148
- class: V(["td-root-link", { "is-active": a(r.value ? q(w)(r.value.filepath) : q(l)("/")) }])
1146
+ return (e, t) => (H(), I("nav", Or, [L("a", {
1147
+ href: q(n)(r.value ? q(w)(r.value.filepath) : q(s)("/")),
1148
+ class: V(["td-root-link", { "is-active": a(r.value ? q(w)(r.value.filepath) : q(s)("/")) }])
1149
1149
  }, [
1150
1150
  z(q(ke), {
1151
1151
  size: 14,
1152
1152
  class: "td-root-link-icon"
1153
1153
  }),
1154
1154
  t[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
1155
- r.value ? (H(), I("span", kr, K(r.value.metadata ? q(g)(r.value.metadata.mtime) : ""), 1)) : F("", !0)
1156
- ], 10, Or), (H(!0), I(M, null, W(i.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(Dr, {
1155
+ r.value ? (H(), I("span", Ar, K(r.value.metadata ? q(h)(r.value.metadata.mtime) : ""), 1)) : F("", !0)
1156
+ ], 10, kr), (H(!0), I(M, null, W(i.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(Dr, {
1157
1157
  key: 0,
1158
1158
  node: e.node
1159
1159
  }, null, 8, ["node"])) : (H(), I("a", {
@@ -1170,29 +1170,29 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1170
1170
  size: 14,
1171
1171
  class: "td-root-link-icon"
1172
1172
  })),
1173
- L("span", jr, K(q(u)(e.item.filepath, e.item.label)), 1),
1174
- e.item.metadata ? (H(), I("span", Mr, K(q(g)(e.item.metadata.mtime)), 1)) : F("", !0)
1175
- ], 10, Ar))], 64))), 128))]));
1173
+ L("span", Mr, K(q(l)(e.item.filepath, e.item.label)), 1),
1174
+ e.item.metadata ? (H(), I("span", Nr, K(q(h)(e.item.metadata.mtime)), 1)) : F("", !0)
1175
+ ], 10, jr))], 64))), 128))]));
1176
1176
  }
1177
- }), [["__scopeId", "data-v-13f1dd79"]]), Pr = { class: "td-footer" }, Fr = { key: 0 }, Ir = /*#__PURE__*/ k(/* @__PURE__ */ B({
1177
+ }), [["__scopeId", "data-v-c78d7204"]]), Fr = { class: "td-footer" }, Ir = { key: 0 }, Lr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1178
1178
  __name: "TdFooter",
1179
1179
  setup(e) {
1180
1180
  let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
1181
- return (e, r) => (H(), I("footer", Pr, [r[0] ||= L("span", null, [R(" Powered by "), L("a", {
1181
+ return (e, r) => (H(), I("footer", Fr, [r[0] ||= L("span", null, [R(" Powered by "), L("a", {
1182
1182
  href: "https://github.com/huydo862003/typerighter",
1183
1183
  target: "_blank",
1184
1184
  rel: "noopener noreferrer",
1185
1185
  class: "td-footer-link"
1186
- }, "Typerighter")], -1), q(t).author || q(t).license ? (H(), I("span", Fr, [
1186
+ }, "Typerighter")], -1), q(t).author || q(t).license ? (H(), I("span", Ir, [
1187
1187
  q(t).license ? (H(), I(M, { key: 0 }, [R(K(q(t).license), 1)], 64)) : F("", !0),
1188
1188
  q(t).license && q(t).author ? (H(), I(M, { key: 1 }, [R(" · ")], 64)) : F("", !0),
1189
1189
  q(t).author ? (H(), I(M, { key: 2 }, [R("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : F("", !0)
1190
1190
  ])) : F("", !0)]));
1191
1191
  }
1192
- }), [["__scopeId", "data-v-50e2a5bc"]]), Lr = {
1192
+ }), [["__scopeId", "data-v-50e2a5bc"]]), Rr = {
1193
1193
  key: 0,
1194
1194
  class: "td-dropdown-panel"
1195
- }, Rr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1195
+ }, zr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1196
1196
  inheritAttrs: !1,
1197
1197
  __name: "TdDropdown",
1198
1198
  props: {
@@ -1218,122 +1218,122 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1218
1218
  }), (e, r) => (H(), I("span", Ve({
1219
1219
  ref_key: "wrapper",
1220
1220
  ref: n
1221
- }, e.$attrs, { class: "td-dropdown" }), [L("span", { onClick: i }, [Ye(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), I("div", Lr, [Ye(e.$slots, "default", {}, void 0, !0)])) : F("", !0)], 16));
1221
+ }, e.$attrs, { class: "td-dropdown" }), [L("span", { onClick: i }, [Ye(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), I("div", Rr, [Ye(e.$slots, "default", {}, void 0, !0)])) : F("", !0)], 16));
1222
1222
  }
1223
- }), [["__scopeId", "data-v-80759150"]]), zr = {
1223
+ }), [["__scopeId", "data-v-80759150"]]), Br = {
1224
1224
  class: "td-breadcrumb",
1225
1225
  "aria-label": "Breadcrumb"
1226
- }, Br = ["href"], Vr = {
1226
+ }, Vr = ["href"], Hr = {
1227
1227
  type: "button",
1228
1228
  class: "td-breadcrumb-ellipsis"
1229
- }, Hr = ["href"], Ur = ["href"], Wr = {
1229
+ }, Ur = ["href"], Wr = ["href"], Gr = {
1230
1230
  key: 1,
1231
1231
  class: "td-breadcrumb-current"
1232
- }, Gr = ["href"], Kr = {
1232
+ }, Kr = ["href"], qr = {
1233
1233
  key: 1,
1234
1234
  class: "td-breadcrumb-current"
1235
- }, qr = 3, Jr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1235
+ }, Jr = 3, Yr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1236
1236
  __name: "TdBreadcrumb",
1237
- setup(t) {
1238
- let r = j(), { withBase: i } = A(), o = U(!1), s = N(() => {
1239
- let t = a(r.path), o = [{
1237
+ setup(e) {
1238
+ let n = j(), { withBase: i } = A(), a = U(!1), o = N(() => {
1239
+ let e = r(n.path), a = [{
1240
1240
  name: "Home",
1241
- href: i(l("/"))
1241
+ href: i(s("/"))
1242
1242
  }];
1243
- if (t === "/") return o;
1244
- let s = t.replace(/^\//, "").split("/"), c = n(t) ? s.slice(0, -1) : s;
1245
- for (let t = 0; t < c.length; t++) {
1246
- let n = "/" + c.slice(0, t + 1).join("/"), r = t === c.length - 1;
1247
- o.push({
1248
- name: e(c[t]),
1249
- href: i(r ? n : l(n))
1243
+ if (e === "/") return a;
1244
+ let o = e.replace(/^\//, "").split("/"), l = t(e) ? o.slice(0, -1) : o;
1245
+ for (let e = 0; e < l.length; e++) {
1246
+ let t = "/" + l.slice(0, e + 1).join("/"), n = e === l.length - 1;
1247
+ a.push({
1248
+ name: c(l[e]),
1249
+ href: i(n ? t : s(t))
1250
1250
  });
1251
1251
  }
1252
- return o;
1253
- }), c = N(() => qr < s.value.length), u = N(() => s.value.slice(1, -2));
1254
- return J(() => r.path, () => {
1255
- o.value = !1;
1256
- }), (e, t) => (H(), I("nav", zr, [L("a", {
1257
- href: s.value[0].href,
1252
+ return a;
1253
+ }), l = N(() => Jr < o.value.length), u = N(() => o.value.slice(1, -2));
1254
+ return J(() => n.path, () => {
1255
+ a.value = !1;
1256
+ }), (e, t) => (H(), I("nav", Br, [L("a", {
1257
+ href: o.value[0].href,
1258
1258
  class: "td-breadcrumb-link td-breadcrumb-home"
1259
- }, K(s.value[0].name), 9, Br), c.value ? (H(), I(M, { key: 0 }, [
1259
+ }, K(o.value[0].name), 9, Vr), l.value ? (H(), I(M, { key: 0 }, [
1260
1260
  t[2] ||= L("span", {
1261
1261
  class: "td-breadcrumb-sep",
1262
1262
  "aria-hidden": "true"
1263
1263
  }, "/", -1),
1264
- z(Rr, {
1265
- open: o.value,
1266
- "onUpdate:open": t[0] ||= (e) => o.value = e
1264
+ z(zr, {
1265
+ open: a.value,
1266
+ "onUpdate:open": t[0] ||= (e) => a.value = e
1267
1267
  }, {
1268
- trigger: at(() => [L("button", Vr, [z(q(ue), { size: 14 })])]),
1268
+ trigger: at(() => [L("button", Hr, [z(q(ue), { size: 14 })])]),
1269
1269
  default: at(() => [(H(!0), I(M, null, W(u.value, (e) => (H(), I("a", {
1270
1270
  key: e.href,
1271
1271
  href: e.href,
1272
1272
  class: "td-breadcrumb-dropdown-item"
1273
- }, K(e.name), 9, Hr))), 128))]),
1273
+ }, K(e.name), 9, Ur))), 128))]),
1274
1274
  _: 1
1275
1275
  }, 8, ["open"]),
1276
- (H(!0), I(M, null, W(s.value.slice(-2), (e) => (H(), I(M, { key: e.href }, [t[1] ||= L("span", {
1276
+ (H(!0), I(M, null, W(o.value.slice(-2), (e) => (H(), I(M, { key: e.href }, [t[1] ||= L("span", {
1277
1277
  class: "td-breadcrumb-sep",
1278
1278
  "aria-hidden": "true"
1279
- }, "/", -1), e === s.value[s.value.length - 1] ? (H(), I("span", Wr, K(e.name), 1)) : (H(), I("a", {
1279
+ }, "/", -1), e === o.value[o.value.length - 1] ? (H(), I("span", Gr, K(e.name), 1)) : (H(), I("a", {
1280
1280
  key: 0,
1281
1281
  href: e.href,
1282
1282
  class: "td-breadcrumb-link"
1283
- }, K(e.name), 9, Ur))], 64))), 128))
1284
- ], 64)) : (H(!0), I(M, { key: 1 }, W(s.value.slice(1), (e, n) => (H(), I(M, { key: e.href }, [t[3] ||= L("span", {
1283
+ }, K(e.name), 9, Wr))], 64))), 128))
1284
+ ], 64)) : (H(!0), I(M, { key: 1 }, W(o.value.slice(1), (e, n) => (H(), I(M, { key: e.href }, [t[3] ||= L("span", {
1285
1285
  class: "td-breadcrumb-sep",
1286
1286
  "aria-hidden": "true"
1287
- }, "/", -1), n < s.value.length - 2 ? (H(), I("a", {
1287
+ }, "/", -1), n < o.value.length - 2 ? (H(), I("a", {
1288
1288
  key: 0,
1289
1289
  href: e.href,
1290
1290
  class: "td-breadcrumb-link"
1291
- }, K(e.name), 9, Gr)) : (H(), I("span", Kr, K(e.name), 1))], 64))), 128))]));
1291
+ }, K(e.name), 9, Kr)) : (H(), I("span", qr, K(e.name), 1))], 64))), 128))]));
1292
1292
  }
1293
- }), [["__scopeId", "data-v-3400a7c6"]]), Yr = {
1293
+ }), [["__scopeId", "data-v-3400a7c6"]]), Xr = {
1294
1294
  key: 0,
1295
1295
  class: "td-header-nav"
1296
- }, Xr = [
1296
+ }, Zr = [
1297
1297
  "href",
1298
1298
  "target",
1299
1299
  "rel"
1300
- ], Zr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1300
+ ], Qr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1301
1301
  __name: "TdHeaderNavBar",
1302
1302
  setup(e) {
1303
1303
  let t = A(), { withBase: n } = t, r = j();
1304
1304
  function i(e) {
1305
- return !s(e) && r.path.startsWith(n(e));
1305
+ return !a(e) && r.path.startsWith(n(e));
1306
1306
  }
1307
- return (e, r) => q(t).nav?.length ? (H(), I("nav", Yr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1307
+ return (e, r) => q(t).nav?.length ? (H(), I("nav", Xr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1308
1308
  key: e.link,
1309
- href: q(s)(e.link) ? e.link : q(n)(e.link),
1310
- target: q(s)(e.link) ? "_blank" : void 0,
1311
- rel: q(s)(e.link) ? "noopener noreferrer" : void 0,
1309
+ href: q(a)(e.link) ? e.link : q(n)(e.link),
1310
+ target: q(a)(e.link) ? "_blank" : void 0,
1311
+ rel: q(a)(e.link) ? "noopener noreferrer" : void 0,
1312
1312
  class: V(["td-header-nav-link", { "is-active": i(e.link) }])
1313
- }, [R(K(e.title), 1), q(s)(e.link) ? (H(), P(q(le), {
1313
+ }, [R(K(e.title), 1), q(a)(e.link) ? (H(), P(q(le), {
1314
1314
  key: 0,
1315
1315
  size: 14
1316
- })) : F("", !0)], 10, Xr))), 128))])) : F("", !0);
1316
+ })) : F("", !0)], 10, Zr))), 128))])) : F("", !0);
1317
1317
  }
1318
- }), [["__scopeId", "data-v-f416755c"]]), Qr = {
1318
+ }), [["__scopeId", "data-v-f416755c"]]), $r = {
1319
1319
  key: 0,
1320
1320
  class: "td-menu-nav"
1321
- }, $r = [
1321
+ }, ei = [
1322
1322
  "href",
1323
1323
  "target",
1324
1324
  "rel"
1325
- ], ei = /*#__PURE__*/ k(/* @__PURE__ */ B({
1325
+ ], ti = /*#__PURE__*/ k(/* @__PURE__ */ B({
1326
1326
  __name: "TdHeaderNavMenu",
1327
1327
  setup(e) {
1328
1328
  let t = A(), { withBase: n } = t, r = j();
1329
1329
  function i(e) {
1330
- return !s(e) && r.path.startsWith(n(e));
1330
+ return !a(e) && r.path.startsWith(n(e));
1331
1331
  }
1332
- return (e, r) => q(t).nav?.length ? (H(), I("nav", Qr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1332
+ return (e, r) => q(t).nav?.length ? (H(), I("nav", $r, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1333
1333
  key: e.link,
1334
- href: q(s)(e.link) ? e.link : q(n)(e.link),
1335
- target: q(s)(e.link) ? "_blank" : void 0,
1336
- rel: q(s)(e.link) ? "noopener noreferrer" : void 0,
1334
+ href: q(a)(e.link) ? e.link : q(n)(e.link),
1335
+ target: q(a)(e.link) ? "_blank" : void 0,
1336
+ rel: q(a)(e.link) ? "noopener noreferrer" : void 0,
1337
1337
  class: V(["td-menu-nav-item", { "is-active": i(e.link) }])
1338
1338
  }, [
1339
1339
  e.icon ? (H(), P(ve, {
@@ -1342,17 +1342,17 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1342
1342
  size: 16
1343
1343
  }, null, 8, ["name"])) : F("", !0),
1344
1344
  L("span", null, K(e.title), 1),
1345
- q(s)(e.link) ? (H(), P(q(le), {
1345
+ q(a)(e.link) ? (H(), P(q(le), {
1346
1346
  key: 1,
1347
1347
  size: 14
1348
1348
  })) : F("", !0)
1349
- ], 10, $r))), 128))])) : F("", !0);
1349
+ ], 10, ei))), 128))])) : F("", !0);
1350
1350
  }
1351
- }), [["__scopeId", "data-v-f3c16d10"]]), ti = { class: "td-widget-checkbox" }, ni = /*#__PURE__*/ k(/* @__PURE__ */ B({
1351
+ }), [["__scopeId", "data-v-f3c16d10"]]), ni = { class: "td-widget-checkbox" }, ri = /*#__PURE__*/ k(/* @__PURE__ */ B({
1352
1352
  __name: "TdWidgetCheckbox",
1353
1353
  props: { value: {} },
1354
1354
  setup(e) {
1355
- return (t, n) => (H(), I("span", ti, [e.value ? (H(), P(q(_t), {
1355
+ return (t, n) => (H(), I("span", ni, [e.value ? (H(), P(q(_t), {
1356
1356
  key: 0,
1357
1357
  size: 16,
1358
1358
  class: "td-widget-checkbox-icon is-checked"
@@ -1362,7 +1362,7 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1362
1362
  class: "td-widget-checkbox-icon"
1363
1363
  }))]));
1364
1364
  }
1365
- }), [["__scopeId", "data-v-13241c06"]]), ri = /* @__PURE__ */ new Set([
1365
+ }), [["__scopeId", "data-v-13241c06"]]), ii = /* @__PURE__ */ new Set([
1366
1366
  "png",
1367
1367
  "jpg",
1368
1368
  "jpeg",
@@ -1374,43 +1374,43 @@ var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
1374
1374
  "ico",
1375
1375
  "tiff"
1376
1376
  ]);
1377
- function ii(e) {
1377
+ function ai(e) {
1378
1378
  if (!e) return;
1379
1379
  if (typeof e == "string") {
1380
1380
  let t = e.trim();
1381
- return !t || !ai({ url: t }) ? void 0 : {
1381
+ return !t || !oi({ url: t }) ? void 0 : {
1382
1382
  url: t,
1383
- name: o(t),
1383
+ name: i(t),
1384
1384
  isImage: !0
1385
1385
  };
1386
1386
  }
1387
1387
  if (typeof e != "object") return;
1388
1388
  let t = e, n = t.$ref ?? t;
1389
1389
  if (typeof n.url != "string") return;
1390
- let r = n.url, i = n.name ?? o(r), a = n.format ?? t.format;
1390
+ let r = n.url, a = n.name ?? i(r), o = n.format ?? t.format;
1391
1391
  return {
1392
1392
  url: r,
1393
- name: i,
1394
- format: a,
1393
+ name: a,
1394
+ format: o,
1395
1395
  icon: n.icon,
1396
- isImage: ai({
1396
+ isImage: oi({
1397
1397
  url: r,
1398
- name: i,
1399
- format: a
1398
+ name: a,
1399
+ format: o
1400
1400
  })
1401
1401
  };
1402
1402
  }
1403
- function ai(e) {
1404
- if (e.format && ri.has(e.format.toLowerCase())) return !0;
1405
- let t = c(e.name || e.url).slice(1);
1406
- return t ? ri.has(t.toLowerCase()) : !1;
1403
+ function oi(e) {
1404
+ if (e.format && ii.has(e.format.toLowerCase())) return !0;
1405
+ let t = o(e.name || e.url).slice(1);
1406
+ return t ? ii.has(t.toLowerCase()) : !1;
1407
1407
  }
1408
1408
  //#endregion
1409
1409
  //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
1410
- var oi = {
1410
+ var si = {
1411
1411
  key: 0,
1412
1412
  class: "td-widget-relation-wrapper"
1413
- }, si = ["href", "title"], ci = ["src", "alt"], li = ["href"], ui = { class: "td-widget-file-name" }, di = ["href"], fi = ["href"], pi = { key: 1 }, mi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1413
+ }, ci = ["href", "title"], li = ["src", "alt"], ui = ["href"], di = { class: "td-widget-file-name" }, fi = ["href"], pi = ["href"], mi = { key: 1 }, hi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1414
1414
  __name: "TdWidgetRelation",
1415
1415
  props: {
1416
1416
  value: {},
@@ -1420,8 +1420,8 @@ var oi = {
1420
1420
  }
1421
1421
  },
1422
1422
  setup(e) {
1423
- let { withBase: t } = A(), n = N(() => ii(e.value)), r = N(() => n.value?.icon ? O(n.value.icon.name) : void 0), i = N(() => n.value !== void 0 && s(n.value.url));
1424
- return (a, o) => n.value ? (H(), I("span", oi, [n.value.isImage ? (H(), I("a", {
1423
+ let { withBase: t } = A(), n = N(() => ai(e.value)), r = N(() => n.value?.icon ? O(n.value.icon.name) : void 0), i = N(() => n.value !== void 0 && a(n.value.url));
1424
+ return (a, o) => n.value ? (H(), I("span", si, [n.value.isImage ? (H(), I("a", {
1425
1425
  key: 0,
1426
1426
  href: q(t)(n.value.url),
1427
1427
  target: "_blank",
@@ -1433,13 +1433,13 @@ var oi = {
1433
1433
  alt: n.value.name,
1434
1434
  class: "td-widget-image-img",
1435
1435
  loading: "lazy"
1436
- }, null, 8, ci)], 8, si)) : n.value.format || n.value.url.includes(".") ? (H(), I("a", {
1436
+ }, null, 8, li)], 8, ci)) : n.value.format || n.value.url.includes(".") ? (H(), I("a", {
1437
1437
  key: 1,
1438
1438
  href: q(t)(n.value.url),
1439
1439
  target: "_blank",
1440
1440
  rel: "noopener noreferrer",
1441
1441
  class: "td-widget-file-link"
1442
- }, [z(q(ie), { class: "td-widget-file-icon" }), L("span", ui, K(n.value.name), 1)], 8, li)) : i.value ? (H(), I("a", {
1442
+ }, [z(q(ie), { class: "td-widget-file-icon" }), L("span", di, K(n.value.name), 1)], 8, ui)) : i.value ? (H(), I("a", {
1443
1443
  key: 2,
1444
1444
  href: n.value.url,
1445
1445
  target: "_blank",
@@ -1448,7 +1448,7 @@ var oi = {
1448
1448
  }, [z(q(le), {
1449
1449
  size: 12,
1450
1450
  class: "td-widget-external-icon"
1451
- })], 8, di)) : (H(), I("a", {
1451
+ })], 8, fi)) : (H(), I("a", {
1452
1452
  key: 3,
1453
1453
  href: q(t)(n.value.url),
1454
1454
  class: "td-widget-ref"
@@ -1456,26 +1456,26 @@ var oi = {
1456
1456
  key: 0,
1457
1457
  size: 14,
1458
1458
  class: "td-widget-ref-icon"
1459
- })) : F("", !0), R(K(n.value.name), 1)], 8, fi))])) : (H(), I("span", pi, K(e.value), 1));
1459
+ })) : F("", !0), R(K(n.value.name), 1)], 8, pi))])) : (H(), I("span", mi, K(e.value), 1));
1460
1460
  }
1461
- }), [["__scopeId", "data-v-e593af69"]]), hi = { key: 0 }, gi = { class: "td-widget-list td-widget-list-icons" }, _i = { key: 1 }, vi = { class: "td-widget-list" }, yi = 5, bi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1461
+ }), [["__scopeId", "data-v-e593af69"]]), gi = { key: 0 }, _i = { class: "td-widget-list td-widget-list-icons" }, vi = { key: 1 }, yi = { class: "td-widget-list" }, bi = 5, xi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1462
1462
  __name: "TdWidgetList",
1463
1463
  props: {
1464
1464
  definition: {},
1465
1465
  value: {}
1466
1466
  },
1467
1467
  setup(e) {
1468
- let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => e.definition.items?.widget === "relation"), i = N(() => r.value ? n.value.map((e) => ii(e)).filter((e) => e !== void 0) : []), a = N(() => r.value ? Math.max(0, i.value.length - yi) : Math.max(0, n.value.length - yi));
1468
+ let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => e.definition.items?.widget === "relation"), i = N(() => r.value ? n.value.map((e) => ai(e)).filter((e) => e !== void 0) : []), a = N(() => r.value ? Math.max(0, i.value.length - bi) : Math.max(0, n.value.length - bi));
1469
1469
  function o() {
1470
1470
  t.value = !t.value;
1471
1471
  }
1472
1472
  function s(e) {
1473
- return t.value ? e : e.slice(0, yi);
1473
+ return t.value ? e : e.slice(0, bi);
1474
1474
  }
1475
- return (e, c) => r.value ? (H(), I("div", hi, [L("ul", gi, [(H(!0), I(M, null, W(s(i.value), (e, t) => (H(), I("li", { key: t }, [(H(), P(G(e.icon ? q(O)(e.icon.name) ?? q(ae) : q(ae)), {
1475
+ return (e, c) => r.value ? (H(), I("div", gi, [L("ul", _i, [(H(!0), I(M, null, W(s(i.value), (e, t) => (H(), I("li", { key: t }, [(H(), P(G(e.icon ? q(O)(e.icon.name) ?? q(ae) : q(ae)), {
1476
1476
  size: 14,
1477
1477
  class: "td-widget-list-icon"
1478
- })), z(mi, {
1478
+ })), z(hi, {
1479
1479
  value: { $ref: e },
1480
1480
  "hide-icon": ""
1481
1481
  }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), I("button", {
@@ -1483,7 +1483,7 @@ var oi = {
1483
1483
  class: "td-widget-more",
1484
1484
  type: "button",
1485
1485
  onClick: o
1486
- }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)])) : (H(), I("div", _i, [L("ul", vi, [(H(!0), I(M, null, W(s(n.value), (e, t) => (H(), I("li", { key: t }, [q(ii)(e) ? (H(), P(mi, {
1486
+ }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)])) : (H(), I("div", vi, [L("ul", yi, [(H(!0), I(M, null, W(s(n.value), (e, t) => (H(), I("li", { key: t }, [q(ai)(e) ? (H(), P(hi, {
1487
1487
  key: 0,
1488
1488
  value: e
1489
1489
  }, null, 8, ["value"])) : (H(), I(M, { key: 1 }, [R(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), I("button", {
@@ -1493,7 +1493,7 @@ var oi = {
1493
1493
  onClick: o
1494
1494
  }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)]));
1495
1495
  }
1496
- }), [["__scopeId", "data-v-e838ea77"]]), xi = [
1496
+ }), [["__scopeId", "data-v-e838ea77"]]), Si = [
1497
1497
  {
1498
1498
  fg: "#a0522d",
1499
1499
  bg: "rgba(160, 82, 45, 0.1)"
@@ -1527,32 +1527,32 @@ var oi = {
1527
1527
  bg: "rgba(239, 68, 68, 0.1)"
1528
1528
  }
1529
1529
  ];
1530
- function Si(e) {
1531
- let t = xi[Ci(String(e ?? "")) % xi.length];
1530
+ function Ci(e) {
1531
+ let t = Si[wi(String(e ?? "")) % Si.length];
1532
1532
  return {
1533
1533
  color: t.fg,
1534
1534
  background: t.bg
1535
1535
  };
1536
1536
  }
1537
- function Ci(e) {
1537
+ function wi(e) {
1538
1538
  let t = 0;
1539
1539
  for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
1540
1540
  return Math.abs(t);
1541
1541
  }
1542
1542
  //#endregion
1543
1543
  //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
1544
- var wi = 5, Ti = /*#__PURE__*/ k(/* @__PURE__ */ B({
1544
+ var Ti = 5, Ei = /*#__PURE__*/ k(/* @__PURE__ */ B({
1545
1545
  __name: "TdWidgetMultiSelect",
1546
1546
  props: { value: {} },
1547
1547
  setup(e) {
1548
- let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => t.value ? n.value : n.value.slice(0, wi)), i = N(() => Math.max(0, n.value.length - wi));
1548
+ let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => t.value ? n.value : n.value.slice(0, Ti)), i = N(() => Math.max(0, n.value.length - Ti));
1549
1549
  function a() {
1550
1550
  t.value = !t.value;
1551
1551
  }
1552
1552
  return (e, n) => (H(), I(M, null, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("span", {
1553
1553
  key: t,
1554
1554
  class: "td-widget-pill",
1555
- style: Ue(q(Si)(e))
1555
+ style: Ue(q(Ci)(e))
1556
1556
  }, K(e), 5))), 128)), i.value > 0 ? (H(), I("button", {
1557
1557
  key: 0,
1558
1558
  class: "td-widget-more",
@@ -1560,25 +1560,25 @@ var wi = 5, Ti = /*#__PURE__*/ k(/* @__PURE__ */ B({
1560
1560
  onClick: a
1561
1561
  }, K(t.value ? "show less" : `+${i.value} more`), 1)) : F("", !0)], 64));
1562
1562
  }
1563
- }), [["__scopeId", "data-v-2f88152d"]]), Ei = /*#__PURE__*/ k(/* @__PURE__ */ B({
1563
+ }), [["__scopeId", "data-v-2f88152d"]]), Di = /*#__PURE__*/ k(/* @__PURE__ */ B({
1564
1564
  __name: "TdWidgetSelect",
1565
1565
  props: { value: {} },
1566
1566
  setup(e) {
1567
1567
  return (t, n) => (H(), I("span", {
1568
1568
  class: "td-widget-pill",
1569
- style: Ue(q(Si)(e.value))
1569
+ style: Ue(q(Ci)(e.value))
1570
1570
  }, K(e.value), 5));
1571
1571
  }
1572
- }), [["__scopeId", "data-v-b9e2b4fd"]]), Di = ["href", "title"], Oi = ["src", "alt"], ki = ["href"], Ai = { class: "td-widget-file-name" }, ji = /*#__PURE__*/ k(/* @__PURE__ */ B({
1572
+ }), [["__scopeId", "data-v-b9e2b4fd"]]), Oi = ["href", "title"], ki = ["src", "alt"], Ai = ["href"], ji = { class: "td-widget-file-name" }, Mi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1573
1573
  __name: "TdWidgetText",
1574
1574
  props: {
1575
1575
  definition: {},
1576
1576
  value: {}
1577
1577
  },
1578
1578
  setup(e) {
1579
- let { withBase: t } = A(), n = N(() => typeof e.value == "string" ? e.value.trim() : ""), r = N(() => ii(e.value)), i = N(() => r.value ? r.value.isImage : 0 < n.value.length && ai({ url: n.value })), a = N(() => r.value ? r.value.url : n.value), o = N(() => t(a.value)), s = N(() => !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"));
1579
+ let { withBase: t } = A(), n = N(() => typeof e.value == "string" ? e.value.trim() : ""), r = N(() => ai(e.value)), i = N(() => r.value ? r.value.isImage : 0 < n.value.length && oi({ url: n.value })), a = N(() => r.value ? r.value.url : n.value), o = N(() => t(a.value)), s = N(() => !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"));
1580
1580
  function c(t) {
1581
- return t == null ? "" : e.definition.widget === "date" ? y(String(t)) : String(t);
1581
+ return t == null ? "" : e.definition.widget === "date" ? v(String(t)) : String(t);
1582
1582
  }
1583
1583
  return (t, a) => i.value ? (H(), I("a", {
1584
1584
  key: 0,
@@ -1592,74 +1592,74 @@ var wi = 5, Ti = /*#__PURE__*/ k(/* @__PURE__ */ B({
1592
1592
  alt: r.value ? r.value.name : n.value,
1593
1593
  class: "td-widget-image-img",
1594
1594
  loading: "lazy"
1595
- }, null, 8, Oi)], 8, Di)) : s.value ? (H(), I("a", {
1595
+ }, null, 8, ki)], 8, Oi)) : s.value ? (H(), I("a", {
1596
1596
  key: 1,
1597
1597
  href: o.value,
1598
1598
  target: "_blank",
1599
1599
  rel: "noopener noreferrer",
1600
1600
  class: "td-widget-file-link"
1601
- }, [z(q(ie), { class: "td-widget-file-icon" }), L("span", Ai, K(n.value.split("/").pop() ?? n.value), 1)], 8, ki)) : (H(), I(M, { key: 2 }, [R(K(c(e.value)), 1)], 64));
1601
+ }, [z(q(ie), { class: "td-widget-file-icon" }), L("span", ji, K(n.value.split("/").pop() ?? n.value), 1)], 8, Ai)) : (H(), I(M, { key: 2 }, [R(K(c(e.value)), 1)], 64));
1602
1602
  }
1603
- }), [["__scopeId", "data-v-37708635"]]), Mi = {
1603
+ }), [["__scopeId", "data-v-37708635"]]), Ni = {
1604
1604
  key: 0,
1605
1605
  class: "td-frontmatter-empty"
1606
- }, Ni = /*#__PURE__*/ k(/* @__PURE__ */ B({
1606
+ }, Pi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1607
1607
  __name: "TdFrontmatterValue",
1608
1608
  props: {
1609
1609
  definition: {},
1610
1610
  value: {}
1611
1611
  },
1612
1612
  setup(e) {
1613
- return (t, n) => e.value === void 0 || e.value === null ? (H(), I("span", Mi, "Empty")) : e.definition.widget === "checkbox" ? (H(), P(ni, {
1613
+ return (t, n) => e.value === void 0 || e.value === null ? (H(), I("span", Ni, "Empty")) : e.definition.widget === "checkbox" ? (H(), P(ri, {
1614
1614
  key: 1,
1615
1615
  value: e.value
1616
- }, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), P(Ei, {
1616
+ }, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), P(Di, {
1617
1617
  key: 2,
1618
1618
  value: e.value
1619
- }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), P(Ti, {
1619
+ }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), P(Ei, {
1620
1620
  key: 3,
1621
1621
  value: e.value
1622
- }, null, 8, ["value"])) : q(ii)(e.value) || e.definition.widget === "relation" ? (H(), P(mi, {
1622
+ }, null, 8, ["value"])) : q(ai)(e.value) || e.definition.widget === "relation" ? (H(), P(hi, {
1623
1623
  key: 4,
1624
1624
  value: e.value
1625
- }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), P(bi, {
1625
+ }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), P(xi, {
1626
1626
  key: 5,
1627
1627
  definition: e.definition,
1628
1628
  value: e.value
1629
- }, null, 8, ["definition", "value"])) : (H(), P(ji, {
1629
+ }, null, 8, ["definition", "value"])) : (H(), P(Mi, {
1630
1630
  key: 6,
1631
1631
  definition: e.definition,
1632
1632
  value: e.value
1633
1633
  }, null, 8, ["definition", "value"]));
1634
1634
  }
1635
- }), [["__scopeId", "data-v-1deedc98"]]), Pi = {
1635
+ }), [["__scopeId", "data-v-1deedc98"]]), Fi = {
1636
1636
  key: 0,
1637
1637
  class: "td-fm-rail"
1638
- }, Fi = { class: "td-fm-rail-key" }, Ii = { class: "td-fm-rail-value" }, Li = {
1638
+ }, Ii = { class: "td-fm-rail-key" }, Li = { class: "td-fm-rail-value" }, Ri = {
1639
1639
  key: 1,
1640
1640
  class: "td-fm-box"
1641
- }, Ri = { class: "td-fm-box-label" }, zi = { class: "td-fm-box-count" }, Bi = { class: "td-fm-box-toggle" }, Vi = { class: "td-fm-box-body" }, Hi = { class: "td-fm-box-key" }, Ui = { class: "td-fm-box-value" }, Wi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1641
+ }, zi = { class: "td-fm-box-label" }, Bi = { class: "td-fm-box-count" }, Vi = { class: "td-fm-box-toggle" }, Hi = { class: "td-fm-box-body" }, Ui = { class: "td-fm-box-key" }, Wi = { class: "td-fm-box-value" }, Gi = /*#__PURE__*/ k(/* @__PURE__ */ B({
1642
1642
  __name: "TdFrontmatter",
1643
1643
  props: {
1644
1644
  mode: { default: "inline" },
1645
1645
  schema: { default: () => void 0 },
1646
1646
  frontmatter: {}
1647
1647
  },
1648
- setup(t) {
1649
- let n = he(), r = N(() => {
1650
- if (t.schema) return n.value.schemas[t.schema];
1651
- }), i = N(() => {
1652
- let e = r.value, n = [], i = /* @__PURE__ */ new Set();
1653
- e && Object.keys(e).forEach((e) => i.add(e)), Object.keys(t.frontmatter).forEach((e) => i.add(e));
1654
- for (let r of i) {
1655
- if (f(r)) continue;
1656
- let i = t.frontmatter[r];
1648
+ setup(e) {
1649
+ let t = he(), n = N(() => {
1650
+ if (e.schema) return t.value.schemas[e.schema];
1651
+ }), r = N(() => {
1652
+ let t = n.value, r = [], i = /* @__PURE__ */ new Set();
1653
+ t && Object.keys(t).forEach((e) => i.add(e)), Object.keys(e.frontmatter).forEach((e) => i.add(e));
1654
+ for (let n of i) {
1655
+ if (d(n)) continue;
1656
+ let i = e.frontmatter[n];
1657
1657
  if (i == null || Array.isArray(i) && i.length === 0) continue;
1658
- let a = e?.[r] ?? { widget: "text" };
1659
- n.push([r, a]);
1658
+ let a = t?.[n] ?? { widget: "text" };
1659
+ r.push([n, a]);
1660
1660
  }
1661
- return n;
1662
- }), a = {
1661
+ return r;
1662
+ }), i = {
1663
1663
  text: yt,
1664
1664
  checkbox: lt,
1665
1665
  select: me,
@@ -1667,63 +1667,63 @@ var wi = 5, Ti = /*#__PURE__*/ k(/* @__PURE__ */ B({
1667
1667
  relation: le,
1668
1668
  list: re
1669
1669
  };
1670
- function o(e) {
1671
- return a[e] ?? yt;
1670
+ function a(e) {
1671
+ return i[e] ?? yt;
1672
1672
  }
1673
- let s = U(!1), c = U(!1);
1673
+ let o = U(!1), s = U(!1);
1674
1674
  function l() {
1675
- s.value = !s.value;
1675
+ o.value = !o.value;
1676
1676
  }
1677
1677
  function u() {
1678
- c.value = !c.value;
1678
+ s.value = !s.value;
1679
1679
  }
1680
- return (n, r) => t.mode === "rail" && i.value.length > 0 ? (H(), I("div", Pi, [L("button", {
1680
+ return (t, n) => e.mode === "rail" && r.value.length > 0 ? (H(), I("div", Fi, [L("button", {
1681
1681
  type: "button",
1682
1682
  class: "td-fm-rail-header",
1683
1683
  onClick: u
1684
- }, [r[0] ||= L("span", { class: "td-fm-rail-label" }, "Properties", -1), z(q(be), {
1684
+ }, [n[0] ||= L("span", { class: "td-fm-rail-label" }, "Properties", -1), z(q(be), {
1685
1685
  size: 14,
1686
- class: V(["td-fm-rail-caret", { "is-collapsed": c.value }])
1687
- }, null, 8, ["class"])]), L("div", { class: V(["td-collapse", { "is-collapsed": c.value }]) }, [L("div", null, [(H(!0), I(M, null, W(i.value, ([n, r]) => (H(), I("div", {
1688
- key: n,
1686
+ class: V(["td-fm-rail-caret", { "is-collapsed": s.value }])
1687
+ }, null, 8, ["class"])]), L("div", { class: V(["td-collapse", { "is-collapsed": s.value }]) }, [L("div", null, [(H(!0), I(M, null, W(r.value, ([t, n]) => (H(), I("div", {
1688
+ key: t,
1689
1689
  class: "td-fm-rail-row"
1690
- }, [L("span", Fi, [(H(), P(G(o(r.widget)), {
1690
+ }, [L("span", Ii, [(H(), P(G(a(n.widget)), {
1691
1691
  size: 12,
1692
1692
  class: "td-fm-icon"
1693
- })), R(" " + K(q(e)(n)), 1)]), L("span", Ii, [z(Ni, {
1694
- definition: r,
1695
- value: t.frontmatter[n]
1696
- }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(), I("div", Li, [L("button", {
1693
+ })), R(" " + K(q(c)(t)), 1)]), L("span", Li, [z(Pi, {
1694
+ definition: n,
1695
+ value: e.frontmatter[t]
1696
+ }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (H(), I("div", Ri, [L("button", {
1697
1697
  type: "button",
1698
1698
  class: "td-fm-box-header",
1699
1699
  onClick: l
1700
- }, [L("span", Ri, [r[1] ||= R("Properties ", -1), L("span", zi, K(i.value.length), 1)]), L("span", Bi, [R(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (H(), P(q(xe), {
1700
+ }, [L("span", zi, [n[1] ||= R("Properties ", -1), L("span", Bi, K(r.value.length), 1)]), L("span", Vi, [R(K(o.value ? "Show" : "Hide") + " ", 1), o.value ? (H(), P(q(xe), {
1701
1701
  key: 1,
1702
1702
  size: 14
1703
1703
  })) : (H(), P(q(be), {
1704
1704
  key: 0,
1705
1705
  size: 14
1706
- }))])]), L("div", { class: V(["td-collapse", { "is-collapsed": s.value }]) }, [L("div", Vi, [(H(!0), I(M, null, W(i.value, ([n, r]) => (H(), I(M, { key: n }, [L("span", Hi, [(H(), P(G(o(r.widget)), {
1706
+ }))])]), L("div", { class: V(["td-collapse", { "is-collapsed": o.value }]) }, [L("div", Hi, [(H(!0), I(M, null, W(r.value, ([t, n]) => (H(), I(M, { key: t }, [L("span", Ui, [(H(), P(G(a(n.widget)), {
1707
1707
  size: 12,
1708
1708
  class: "td-fm-icon"
1709
- })), R(" " + K(q(e)(n)), 1)]), L("span", Ui, [z(Ni, {
1710
- definition: r,
1711
- value: t.frontmatter[n]
1709
+ })), R(" " + K(q(c)(t)), 1)]), L("span", Wi, [z(Pi, {
1710
+ definition: n,
1711
+ value: e.frontmatter[t]
1712
1712
  }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : F("", !0);
1713
1713
  }
1714
- }), [["__scopeId", "data-v-1b3924e7"]]), Gi = U(!1);
1715
- function Ki() {
1714
+ }), [["__scopeId", "data-v-1b3924e7"]]), Ki = U(!1);
1715
+ function qi() {
1716
1716
  function e() {
1717
- Gi.value = !Gi.value;
1717
+ Ki.value = !Ki.value;
1718
1718
  }
1719
1719
  function t() {
1720
- Gi.value = !0;
1720
+ Ki.value = !0;
1721
1721
  }
1722
1722
  function n() {
1723
- Gi.value = !1;
1723
+ Ki.value = !1;
1724
1724
  }
1725
1725
  return {
1726
- isOpen: Je(Gi),
1726
+ isOpen: Je(Ki),
1727
1727
  toggle: e,
1728
1728
  open: t,
1729
1729
  close: n
@@ -1731,10 +1731,10 @@ function Ki() {
1731
1731
  }
1732
1732
  //#endregion
1733
1733
  //#region src/client/theme-default/components/TdMenuButton.vue
1734
- var qi = /* @__PURE__ */ B({
1734
+ var Ji = /* @__PURE__ */ B({
1735
1735
  __name: "TdMenuButton",
1736
1736
  setup(e) {
1737
- let { isOpen: t, toggle: n } = Ki();
1737
+ let { isOpen: t, toggle: n } = qi();
1738
1738
  return (e, r) => (H(), P(Et, {
1739
1739
  class: "td-menu-button",
1740
1740
  label: q(t) ? "Close menu" : "Open menu",
@@ -1758,9 +1758,9 @@ var qi = /* @__PURE__ */ B({
1758
1758
  });
1759
1759
  //#endregion
1760
1760
  //#region src/client/theme-default/composables/usePreviousNext.ts
1761
- function Ji() {
1761
+ function Yi() {
1762
1762
  let e = he(), t = j(), { withBase: n, title: r } = A(), i = N(() => {
1763
- let i = Yi(e.value.contentTree, t.path, r);
1763
+ let i = Xi(e.value.contentTree, t.path, r);
1764
1764
  if (i === void 0) return {};
1765
1765
  let a = i.pages.findIndex((e) => e.url === t.path);
1766
1766
  if (a === -1) return { groupName: i.groupName };
@@ -1783,11 +1783,11 @@ function Ji() {
1783
1783
  groupName: N(() => i.value.groupName)
1784
1784
  };
1785
1785
  }
1786
- function Yi(e, t, n) {
1786
+ function Xi(e, t, n) {
1787
1787
  if (e.entries.some((e) => e.kind === "file" && w(e.item.filepath) === t)) {
1788
1788
  let t = [], r = e.entries.find((e) => e.kind === "file" && C(e.item.filepath));
1789
- r && r.kind === "file" && t.push(Zi(r.item, n));
1790
- for (let n of e.entries) n.kind === "file" ? C(n.item.filepath) || t.push(Zi(n.item)) : t.push(Qi(n.node, ""));
1789
+ r && r.kind === "file" && t.push(Qi(r.item, n));
1790
+ for (let n of e.entries) n.kind === "file" ? C(n.item.filepath) || t.push(Qi(n.item)) : t.push($i(n.node, ""));
1791
1791
  return {
1792
1792
  pages: t,
1793
1793
  groupName: ""
@@ -1795,75 +1795,75 @@ function Yi(e, t, n) {
1795
1795
  }
1796
1796
  for (let r of e.entries) {
1797
1797
  if (r.kind !== "dir") continue;
1798
- let e = Xi(r.node, t, "", n);
1798
+ let e = Zi(r.node, t, "", n);
1799
1799
  if (e !== void 0) return e;
1800
1800
  }
1801
1801
  }
1802
- function Xi(t, n, r, i) {
1803
- let a = T(r, t.name);
1804
- if (t.entries.some((e) => e.kind === "file" && w(e.item.filepath) === n)) {
1805
- let n = [], r = h(t);
1806
- r && n.push(Zi(r));
1807
- for (let e of t.entries) e.kind === "file" ? C(e.item.filepath) || n.push(Zi(e.item)) : n.push(Qi(e.node, a));
1802
+ function Zi(e, t, n, r) {
1803
+ let i = T(n, e.name);
1804
+ if (e.entries.some((e) => e.kind === "file" && w(e.item.filepath) === t)) {
1805
+ let t = [], n = m(e);
1806
+ n && t.push(Qi(n));
1807
+ for (let n of e.entries) n.kind === "file" ? C(n.item.filepath) || t.push(Qi(n.item)) : t.push($i(n.node, i));
1808
1808
  return {
1809
- pages: n,
1810
- groupName: e(t.name)
1809
+ pages: t,
1810
+ groupName: c(e.name)
1811
1811
  };
1812
1812
  }
1813
- for (let e of t.entries) {
1814
- if (e.kind !== "dir") continue;
1815
- let t = Xi(e.node, n, a, i);
1816
- if (t !== void 0) return t;
1813
+ for (let n of e.entries) {
1814
+ if (n.kind !== "dir") continue;
1815
+ let e = Zi(n.node, t, i, r);
1816
+ if (e !== void 0) return e;
1817
1817
  }
1818
1818
  }
1819
- function Zi(e, t) {
1820
- let n = e.label === void 0 ? t === void 0 ? u(e.filepath) : m(e.filepath, t) : e.label;
1819
+ function Qi(e, t) {
1820
+ let n = e.label === void 0 ? t === void 0 ? l(e.filepath) : p(e.filepath, t) : e.label;
1821
1821
  return {
1822
1822
  url: w(e.filepath),
1823
1823
  title: n
1824
1824
  };
1825
1825
  }
1826
- function Qi(t, n) {
1827
- let r = T(n, t.name), i = h(t);
1826
+ function $i(e, t) {
1827
+ let n = T(t, e.name), r = m(e);
1828
1828
  return {
1829
- url: i ? w(i.filepath) : l(r),
1830
- title: i ? u(i.filepath, i.label) : e(t.name)
1829
+ url: r ? w(r.filepath) : s(n),
1830
+ title: r ? l(r.filepath, r.label) : c(e.name)
1831
1831
  };
1832
1832
  }
1833
1833
  //#endregion
1834
1834
  //#region src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
1835
- var $i = {
1835
+ var ea = {
1836
1836
  key: 0,
1837
1837
  class: "td-prevnext",
1838
1838
  "aria-label": "Page navigation"
1839
- }, ea = ["href"], ta = { class: "td-prevnext-label" }, na = { class: "td-prevnext-title" }, ra = {
1839
+ }, ta = ["href"], na = { class: "td-prevnext-label" }, ra = { class: "td-prevnext-title" }, ia = {
1840
1840
  key: 1,
1841
1841
  class: "td-prevnext-spacer"
1842
- }, ia = ["href"], aa = { class: "td-prevnext-label" }, oa = { class: "td-prevnext-title" }, sa = {
1842
+ }, aa = ["href"], oa = { class: "td-prevnext-label" }, sa = { class: "td-prevnext-title" }, ca = {
1843
1843
  key: 3,
1844
1844
  class: "td-prevnext-spacer"
1845
- }, ca = /*#__PURE__*/ k(/* @__PURE__ */ B({
1845
+ }, la = /*#__PURE__*/ k(/* @__PURE__ */ B({
1846
1846
  __name: "TdPreviousNext",
1847
1847
  setup(e) {
1848
- let { previous: t, next: n, groupName: r } = Ji();
1849
- return (e, i) => q(t) || q(n) ? (H(), I("nav", $i, [q(t) ? (H(), I("a", {
1848
+ let { previous: t, next: n, groupName: r } = Yi();
1849
+ return (e, i) => q(t) || q(n) ? (H(), I("nav", ea, [q(t) ? (H(), I("a", {
1850
1850
  key: 0,
1851
1851
  href: q(t).url,
1852
1852
  class: "td-prevnext-link is-previous"
1853
- }, [L("span", ta, [z(q(E), {
1853
+ }, [L("span", na, [z(q(E), {
1854
1854
  size: 14,
1855
1855
  class: "td-prevnext-chevron"
1856
- }), R(" " + K(q(r) ? `Previous in ${q(r)}` : "Previous"), 1)]), L("span", na, K(q(t).title), 1)], 8, ea)) : (H(), I("span", ra)), q(n) ? (H(), I("a", {
1856
+ }), R(" " + K(q(r) ? `Previous in ${q(r)}` : "Previous"), 1)]), L("span", ra, K(q(t).title), 1)], 8, ta)) : (H(), I("span", ia)), q(n) ? (H(), I("a", {
1857
1857
  key: 2,
1858
1858
  href: q(n).url,
1859
1859
  class: "td-prevnext-link is-next"
1860
- }, [L("span", aa, [R(K(q(r) ? `Next in ${q(r)}` : "Next") + " ", 1), z(q(xe), {
1860
+ }, [L("span", oa, [R(K(q(r) ? `Next in ${q(r)}` : "Next") + " ", 1), z(q(xe), {
1861
1861
  size: 14,
1862
1862
  class: "td-prevnext-chevron"
1863
- })]), L("span", oa, K(q(n).title), 1)], 8, ia)) : (H(), I("span", sa))])) : F("", !0);
1863
+ })]), L("span", sa, K(q(n).title), 1)], 8, aa)) : (H(), I("span", ca))])) : F("", !0);
1864
1864
  }
1865
- }), [["__scopeId", "data-v-8ea01cd7"]]), la = 100;
1866
- function ua(e) {
1865
+ }), [["__scopeId", "data-v-8ea01cd7"]]), ua = 100;
1866
+ function da(e) {
1867
1867
  let t = U(void 0), n = [], r;
1868
1868
  function i() {
1869
1869
  if (n.length === 0) return;
@@ -1873,7 +1873,7 @@ function ua(e) {
1873
1873
  return;
1874
1874
  }
1875
1875
  let r;
1876
- for (let t of n) if (da(t) <= e + la) r = t.id;
1876
+ for (let t of n) if (fa(t) <= e + ua) r = t.id;
1877
1877
  else break;
1878
1878
  t.value = r;
1879
1879
  }
@@ -1894,17 +1894,17 @@ function ua(e) {
1894
1894
  typeof window > "u" || He(() => o(e));
1895
1895
  }, { immediate: !0 }), t;
1896
1896
  }
1897
- function da(e) {
1897
+ function fa(e) {
1898
1898
  let t = 0, n = e;
1899
1899
  for (; n;) t += n.offsetTop, n = n.offsetParent;
1900
1900
  return t;
1901
1901
  }
1902
1902
  //#endregion
1903
1903
  //#region src/client/theme-default/components/TdToc.vue?vue&type=script&setup=true&lang.ts
1904
- var fa = {
1904
+ var pa = {
1905
1905
  key: 0,
1906
1906
  class: "td-toc"
1907
- }, pa = { class: "td-toc-list" }, ma = ["href", "innerHTML"], ha = /*#__PURE__*/ k(/* @__PURE__ */ B({
1907
+ }, ma = { class: "td-toc-list" }, ha = ["href", "innerHTML"], ga = /*#__PURE__*/ k(/* @__PURE__ */ B({
1908
1908
  __name: "TdToc",
1909
1909
  props: {
1910
1910
  headings: {},
@@ -1914,8 +1914,8 @@ var fa = {
1914
1914
  }
1915
1915
  },
1916
1916
  setup(e) {
1917
- let t = e.static ? N(() => void 0) : ua(() => e.headings);
1918
- return (n, r) => e.headings.length ? (H(), I("div", fa, [r[0] ||= L("div", { class: "td-toc-label" }, " On this page ", -1), L("ul", pa, [(H(!0), I(M, null, W(e.headings, (e) => (H(), I("li", {
1917
+ let t = e.static ? N(() => void 0) : da(() => e.headings);
1918
+ return (n, r) => e.headings.length ? (H(), I("div", pa, [r[0] ||= L("div", { class: "td-toc-label" }, " On this page ", -1), L("ul", ma, [(H(!0), I(M, null, W(e.headings, (e) => (H(), I("li", {
1919
1919
  key: e.slug,
1920
1920
  class: V({
1921
1921
  "td-toc-indent-1": e.level === 3,
@@ -1925,24 +1925,24 @@ var fa = {
1925
1925
  }, [L("a", {
1926
1926
  href: e.link,
1927
1927
  class: V(["td-toc-link", { "is-active": q(t) === e.slug }]),
1928
- innerHTML: q(d)(e.titleHtml)
1929
- }, null, 10, ma)], 2))), 128))])])) : F("", !0);
1928
+ innerHTML: q(u)(e.titleHtml)
1929
+ }, null, 10, ha)], 2))), 128))])])) : F("", !0);
1930
1930
  }
1931
- }), [["__scopeId", "data-v-91e96e92"]]), ga = { class: "td-rail" }, _a = /*#__PURE__*/ k(/* @__PURE__ */ B({
1931
+ }), [["__scopeId", "data-v-91e96e92"]]), _a = { class: "td-rail" }, va = /*#__PURE__*/ k(/* @__PURE__ */ B({
1932
1932
  __name: "TdRail",
1933
1933
  setup(e) {
1934
1934
  let { page: t } = we();
1935
- return (e, n) => (H(), I("aside", ga, [z(q(Wi), {
1935
+ return (e, n) => (H(), I("aside", _a, [z(q(Gi), {
1936
1936
  mode: "rail",
1937
1937
  schema: q(t).schema,
1938
1938
  frontmatter: q(t).frontmatter
1939
- }, null, 8, ["schema", "frontmatter"]), z(ha, { headings: q(t).headings }, null, 8, ["headings"])]));
1939
+ }, null, 8, ["schema", "frontmatter"]), z(ga, { headings: q(t).headings }, null, 8, ["headings"])]));
1940
1940
  }
1941
- }), [["__scopeId", "data-v-22485c1b"]]), va = {
1941
+ }), [["__scopeId", "data-v-22485c1b"]]), ya = {
1942
1942
  class: "td-skeleton",
1943
1943
  role: "status",
1944
1944
  "aria-label": "Loading"
1945
- }, ya = /*#__PURE__*/ k(/* @__PURE__ */ B({
1945
+ }, ba = /*#__PURE__*/ k(/* @__PURE__ */ B({
1946
1946
  __name: "TdSkeleton",
1947
1947
  props: { lines: { default: 5 } },
1948
1948
  setup(e) {
@@ -1956,7 +1956,7 @@ var fa = {
1956
1956
  55,
1957
1957
  72
1958
1958
  ];
1959
- return (n, r) => (H(), I("div", va, [(H(!0), I(M, null, W(e.lines, (e) => (H(), I("div", {
1959
+ return (n, r) => (H(), I("div", ya, [(H(!0), I(M, null, W(e.lines, (e) => (H(), I("div", {
1960
1960
  key: e,
1961
1961
  class: "td-skeleton-line",
1962
1962
  style: Ue({ width: `${t[(e - 1) % t.length]}%` })
@@ -1964,7 +1964,7 @@ var fa = {
1964
1964
  }
1965
1965
  }), [["__scopeId", "data-v-312f021d"]]), $ = /* @__PURE__ */ function(e) {
1966
1966
  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;
1967
- }({}), ba = { class: "td-kbd-shortcut" }, xa = /*#__PURE__*/ k(/* @__PURE__ */ B({
1967
+ }({}), xa = { class: "td-kbd-shortcut" }, Sa = /*#__PURE__*/ k(/* @__PURE__ */ B({
1968
1968
  __name: "TdKbdShortcut",
1969
1969
  props: { keys: {} },
1970
1970
  setup(e) {
@@ -1990,25 +1990,25 @@ var fa = {
1990
1990
  let i = n[e];
1991
1991
  return i ? { label: i } : { label: e.toUpperCase() };
1992
1992
  }));
1993
- return (e, t) => (H(), I("span", ba, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("kbd", { key: t }, [e.icon ? (H(), P(G(e.icon), {
1993
+ return (e, t) => (H(), I("span", xa, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("kbd", { key: t }, [e.icon ? (H(), P(G(e.icon), {
1994
1994
  key: 0,
1995
1995
  size: 12
1996
1996
  })) : (H(), I(M, { key: 1 }, [R(K(e.label), 1)], 64))]))), 128))]));
1997
1997
  }
1998
- }), [["__scopeId", "data-v-b61b97da"]]), Sa = 120, Ca = /^h[1-6]$/i, wa = 16;
1999
- function Ta() {
2000
- let e = Ee(), t = Ce(), n, a = !1, o = Qe([]), s = Qe(!1), c = /* @__PURE__ */ new Map();
1998
+ }), [["__scopeId", "data-v-b61b97da"]]), Ca = 120, wa = /^h[1-6]$/i, Ta = 16;
1999
+ function Ea() {
2000
+ let e = Ee(), t = Ce(), r, i = !1, a = Qe([]), o = Qe(!1), s = /* @__PURE__ */ new Map();
2001
2001
  J(e, () => {
2002
- n = void 0, c.clear();
2002
+ r = void 0, s.clear();
2003
2003
  });
2004
- function l() {
2005
- if (n) return n;
2006
- if (e.value) return n = ze(ne.loadJSON(e.value, {
2007
- fields: r,
2008
- storeFields: i
2009
- })), n;
2010
- }
2011
- function u(e) {
2004
+ function c() {
2005
+ if (r) return r;
2006
+ if (e.value) return r = ze(ne.loadJSON(e.value, {
2007
+ fields: n,
2008
+ storeFields: b
2009
+ })), r;
2010
+ }
2011
+ function l(e) {
2012
2012
  let t = /* @__PURE__ */ new Map(), n = Le(e), r = document.createElement("div");
2013
2013
  n.config.warnHandler = () => {};
2014
2014
  try {
@@ -2016,47 +2016,47 @@ function Ta() {
2016
2016
  let e = r.querySelectorAll("h1, h2, h3, h4, h5, h6");
2017
2017
  for (let n of e) {
2018
2018
  let e = n.querySelector("a")?.getAttribute("href")?.slice(1) ?? "", r = "", i = n.nextElementSibling;
2019
- for (; i && !Ca.test(i.tagName);) r += i.outerHTML, i = i.nextElementSibling;
2020
- t.set(e, v(r));
2019
+ for (; i && !wa.test(i.tagName);) r += i.outerHTML, i = i.nextElementSibling;
2020
+ t.set(e, _(r));
2021
2021
  }
2022
- t.size === 0 ? t.set("", v(r.innerHTML)) : t.set("", [...t.values()].join(" "));
2022
+ t.size === 0 ? t.set("", _(r.innerHTML)) : t.set("", [...t.values()].join(" "));
2023
2023
  } finally {
2024
2024
  n.unmount();
2025
2025
  }
2026
2026
  return t;
2027
2027
  }
2028
- async function d(e) {
2028
+ async function u(e) {
2029
2029
  if (!t) return "";
2030
- let n = _(e), r = ee(e), i = c.get(n);
2030
+ let n = g(e), r = ee(e), i = s.get(n);
2031
2031
  if (!i) try {
2032
2032
  let e = (await t(n))?.default;
2033
2033
  if (!e) return "";
2034
- if (i = u(e), wa <= c.size) {
2035
- let e = c.keys().next().value;
2036
- e !== void 0 && c.delete(e);
2034
+ if (i = l(e), Ta <= s.size) {
2035
+ let e = s.keys().next().value;
2036
+ e !== void 0 && s.delete(e);
2037
2037
  }
2038
- c.set(n, i);
2038
+ s.set(n, i);
2039
2039
  } catch {
2040
2040
  return "";
2041
2041
  }
2042
2042
  return i.get(r) ?? i.get("") ?? "";
2043
2043
  }
2044
- function f(e, t) {
2044
+ function d(e, t) {
2045
2045
  if (!e) return "";
2046
2046
  let n = Object.keys(t);
2047
- if (n.length === 0) return e.slice(0, Sa);
2047
+ if (n.length === 0) return e.slice(0, Ca);
2048
2048
  let r = e.toLowerCase(), i = e.length;
2049
2049
  for (let e of n) {
2050
2050
  let t = r.indexOf(e.toLowerCase());
2051
2051
  t !== -1 && t < i && (i = t);
2052
2052
  }
2053
- let a = Math.max(0, i - 30), o = Math.min(e.length, a + Sa), s = e.slice(a, o).trim();
2053
+ let a = Math.max(0, i - 30), o = Math.min(e.length, a + Ca), s = e.slice(a, o).trim();
2054
2054
  return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
2055
2055
  }
2056
- async function m(e) {
2057
- let t = l();
2056
+ async function p(e) {
2057
+ let t = c();
2058
2058
  if (!t) {
2059
- s.value = !1;
2059
+ o.value = !1;
2060
2060
  return;
2061
2061
  }
2062
2062
  let n = t.search(e, {
@@ -2067,63 +2067,63 @@ function Ta() {
2067
2067
  text: 2
2068
2068
  }
2069
2069
  }).slice(0, 20);
2070
- o.value = n.map((e) => ({
2070
+ a.value = n.map((e) => ({
2071
2071
  id: e.id,
2072
2072
  title: e.title,
2073
2073
  excerpt: "",
2074
2074
  score: e.score
2075
- })), s.value = !1;
2075
+ })), o.value = !1;
2076
2076
  for (let [e, t] of n.entries()) {
2077
- if (a) return;
2078
- let n = f(await d(t.id), t.match);
2079
- if (a) return;
2080
- o.value[e].excerpt = n, et(o);
2077
+ if (i) return;
2078
+ let n = d(await u(t.id), t.match);
2079
+ if (i) return;
2080
+ a.value[e].excerpt = n, et(a);
2081
2081
  }
2082
2082
  }
2083
- let h = p((e) => m(e), 150);
2084
- function g(e) {
2085
- a = !1;
2083
+ let m = f((e) => p(e), 150);
2084
+ function h(e) {
2085
+ i = !1;
2086
2086
  let t = e.trim();
2087
2087
  if (!t) {
2088
- o.value = [], s.value = !1;
2088
+ a.value = [], o.value = !1;
2089
2089
  return;
2090
2090
  }
2091
- s.value = !0, h(t);
2091
+ o.value = !0, m(t);
2092
2092
  }
2093
- function y() {
2094
- a = !0;
2093
+ function v() {
2094
+ i = !0;
2095
2095
  }
2096
2096
  return {
2097
- results: o,
2098
- searching: N(() => s.value),
2097
+ results: a,
2098
+ searching: N(() => o.value),
2099
2099
  indexLoaded: N(() => e.value !== void 0),
2100
- search: g,
2101
- cancel: y
2100
+ search: h,
2101
+ cancel: v
2102
2102
  };
2103
2103
  }
2104
2104
  //#endregion
2105
2105
  //#region src/client/theme-default/components/TdSiteSearch/highlight.ts
2106
- function Ea(e, t) {
2106
+ function Da(e, t) {
2107
2107
  if (!e || !t) return S(e);
2108
2108
  let n = t.trim().split(/\s+/).filter(Boolean), r = S(e);
2109
2109
  for (let e of n) {
2110
- let t = RegExp(`(${b(e)})`, "gi");
2110
+ let t = RegExp(`(${y(e)})`, "gi");
2111
2111
  r = r.replace(t, "<mark>$1</mark>");
2112
2112
  }
2113
2113
  return r;
2114
2114
  }
2115
2115
  //#endregion
2116
2116
  //#region src/client/theme-default/components/TdSiteSearch/TdSiteSearch.vue?vue&type=script&setup=true&lang.ts
2117
- var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2117
+ var Oa = { class: "td-search" }, ka = { class: "td-search-input-wrap" }, Aa = {
2118
2118
  key: 2,
2119
2119
  class: "td-search-count"
2120
- }, Aa = {
2120
+ }, ja = {
2121
2121
  key: 0,
2122
2122
  class: "td-search-results"
2123
- }, ja = { class: "td-search-group-label" }, Ma = ["href"], Na = ["innerHTML"], Pa = ["innerHTML"], Fa = {
2123
+ }, Ma = { class: "td-search-group-label" }, Na = ["href"], Pa = ["innerHTML"], Fa = ["innerHTML"], Ia = {
2124
2124
  key: 1,
2125
2125
  class: "td-search-empty"
2126
- }, Ia = /*#__PURE__*/ k(/* @__PURE__ */ B({
2126
+ }, La = /*#__PURE__*/ k(/* @__PURE__ */ B({
2127
2127
  __name: "TdSiteSearch",
2128
2128
  props: {
2129
2129
  active: {
@@ -2135,32 +2135,32 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2135
2135
  queryModifiers: {}
2136
2136
  },
2137
2137
  emits: /*@__PURE__*/ Be(["select"], ["update:active", "update:query"]),
2138
- setup(t, { expose: n, emit: r }) {
2139
- let i = tt(t, "active"), a = tt(t, "query"), o = r, s = j(), { withBase: c } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Ta(), m = U(-1), h = N(() => 0 < a.value.trim().length), g = N(() => {
2140
- let t = [], n = /* @__PURE__ */ new Map();
2141
- for (let r of l.value) {
2142
- let i = _(r.id), a = n.get(i);
2143
- if (!a) {
2144
- let r = i.split("/").pop() || "index";
2145
- a = {
2146
- pageUrl: i,
2147
- pageTitle: e(r),
2138
+ setup(e, { expose: t, emit: n }) {
2139
+ let r = tt(e, "active"), i = tt(e, "query"), a = n, o = j(), { withBase: s } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Ea(), m = U(-1), h = N(() => 0 < i.value.trim().length), _ = N(() => {
2140
+ let e = [], t = /* @__PURE__ */ new Map();
2141
+ for (let n of l.value) {
2142
+ let r = g(n.id), i = t.get(r);
2143
+ if (!i) {
2144
+ let n = r.split("/").pop() || "index";
2145
+ i = {
2146
+ pageUrl: r,
2147
+ pageTitle: c(n),
2148
2148
  results: []
2149
- }, n.set(i, a), t.push(a);
2149
+ }, t.set(r, i), e.push(i);
2150
2150
  }
2151
- a.results.push(r);
2151
+ i.results.push(n);
2152
2152
  }
2153
- return t;
2153
+ return e;
2154
2154
  });
2155
2155
  J(h, (e) => {
2156
- i.value = e;
2157
- }), J(a, (e, t, n) => {
2156
+ r.value = e;
2157
+ }), J(i, (e, t, n) => {
2158
2158
  n(() => p()), m.value = 0, f(e);
2159
2159
  });
2160
2160
  function v() {
2161
- a.value = "";
2161
+ i.value = "";
2162
2162
  }
2163
- let y = N(() => g.value.flatMap((e) => e.results)), b = N(() => {
2163
+ let y = N(() => _.value.flatMap((e) => e.results)), b = N(() => {
2164
2164
  let e = /* @__PURE__ */ new Map();
2165
2165
  for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
2166
2166
  return e;
@@ -2174,12 +2174,12 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2174
2174
  e.preventDefault();
2175
2175
  let t = y.value[m.value];
2176
2176
  if (!t) return;
2177
- document.querySelector(`.td-search-result[href="${CSS.escape(c(t.id))}"]`)?.click();
2177
+ document.querySelector(`.td-search-result[href="${CSS.escape(s(t.id))}"]`)?.click();
2178
2178
  }
2179
2179
  }
2180
2180
  }
2181
2181
  function S() {
2182
- o("select");
2182
+ a("select");
2183
2183
  }
2184
2184
  function C() {
2185
2185
  requestAnimationFrame(() => {
@@ -2187,7 +2187,7 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2187
2187
  });
2188
2188
  }
2189
2189
  let w = nt("searchInput");
2190
- return n({
2190
+ return t({
2191
2191
  focus() {
2192
2192
  w.value?.focus();
2193
2193
  },
@@ -2200,8 +2200,8 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2200
2200
  get isFocused() {
2201
2201
  return document.activeElement === w.value;
2202
2202
  }
2203
- }), (e, t) => (H(), I("div", Da, [
2204
- L("div", Oa, [
2203
+ }), (e, t) => (H(), I("div", Oa, [
2204
+ L("div", ka, [
2205
2205
  z(q(ge), {
2206
2206
  size: 14,
2207
2207
  class: "td-search-icon"
@@ -2209,14 +2209,14 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2209
2209
  ot(L("input", {
2210
2210
  ref_key: "searchInput",
2211
2211
  ref: w,
2212
- "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
2212
+ "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
2213
2213
  class: "td-search-input",
2214
2214
  type: "text",
2215
2215
  size: "1",
2216
2216
  placeholder: "Search...",
2217
2217
  onKeydown: x
2218
- }, null, 544), [[rt, a.value]]),
2219
- !h.value && !q(u) ? (H(), P(xa, {
2218
+ }, null, 544), [[rt, i.value]]),
2219
+ !h.value && !q(u) ? (H(), P(Sa, {
2220
2220
  key: 0,
2221
2221
  keys: [q($).Meta, q($).k],
2222
2222
  class: "td-search-kbd"
@@ -2225,8 +2225,8 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2225
2225
  key: 1,
2226
2226
  size: 12,
2227
2227
  class: "td-search-spinner"
2228
- })) : h.value ? (H(), I("span", ka, K(q(l).length), 1)) : F("", !0),
2229
- a.value ? (H(), I("button", {
2228
+ })) : h.value ? (H(), I("span", Aa, K(q(l).length), 1)) : F("", !0),
2229
+ i.value ? (H(), I("button", {
2230
2230
  key: 3,
2231
2231
  class: "td-search-clear",
2232
2232
  type: "button",
@@ -2234,29 +2234,29 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2234
2234
  onClick: v
2235
2235
  }, [z(q(ye), { size: 12 })])) : F("", !0)
2236
2236
  ]),
2237
- h.value && q(l).length > 0 ? (H(), I("div", Aa, [(H(!0), I(M, null, W(g.value, (e) => (H(), I("div", {
2237
+ h.value && q(l).length > 0 ? (H(), I("div", ja, [(H(!0), I(M, null, W(_.value, (e) => (H(), I("div", {
2238
2238
  key: e.pageUrl,
2239
2239
  class: "td-search-group"
2240
- }, [L("div", ja, K(e.pageTitle), 1), (H(!0), I(M, null, W(e.results, (e) => (H(), I("a", {
2240
+ }, [L("div", Ma, K(e.pageTitle), 1), (H(!0), I(M, null, W(e.results, (e) => (H(), I("a", {
2241
2241
  key: e.id,
2242
- href: q(c)(e.id),
2242
+ href: q(s)(e.id),
2243
2243
  class: V(["td-search-result", {
2244
2244
  "is-selected": b.value.get(e.id) === m.value,
2245
- "is-current": q(c)(e.id) === q(s).path
2245
+ "is-current": q(s)(e.id) === q(o).path
2246
2246
  }]),
2247
2247
  onClick: S
2248
2248
  }, [L("span", {
2249
2249
  class: "td-search-result-title",
2250
- innerHTML: q(Ea)(e.title, a.value)
2251
- }, null, 8, Na), e.excerpt ? (H(), I("span", {
2250
+ innerHTML: q(Da)(e.title, i.value)
2251
+ }, null, 8, Pa), e.excerpt ? (H(), I("span", {
2252
2252
  key: 0,
2253
2253
  class: "td-search-result-excerpt",
2254
- innerHTML: q(Ea)(e.excerpt, a.value)
2255
- }, null, 8, Pa)) : F("", !0)], 10, Ma))), 128))]))), 128))])) : F("", !0),
2256
- h.value && q(l).length === 0 ? (H(), I("div", Fa, " No results for \"" + K(a.value) + "\" ", 1)) : F("", !0)
2254
+ innerHTML: q(Da)(e.excerpt, i.value)
2255
+ }, null, 8, Fa)) : F("", !0)], 10, Na))), 128))]))), 128))])) : F("", !0),
2256
+ h.value && q(l).length === 0 ? (H(), I("div", Ia, " No results for \"" + K(i.value) + "\" ", 1)) : F("", !0)
2257
2257
  ]));
2258
2258
  }
2259
- }), [["__scopeId", "data-v-2b0a2205"]]), La = /* @__PURE__ */ B({
2259
+ }), [["__scopeId", "data-v-2b0a2205"]]), Ra = /* @__PURE__ */ B({
2260
2260
  __name: "TdThemeToggle",
2261
2261
  setup(e) {
2262
2262
  let { isDark: t, toggle: n } = De();
@@ -2277,7 +2277,7 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
2277
2277
  });
2278
2278
  //#endregion
2279
2279
  //#region src/client/theme-default/composables/useCopyCode.ts
2280
- function Ra() {
2280
+ function za() {
2281
2281
  function e(e) {
2282
2282
  let t = e.target?.closest(".copy");
2283
2283
  if (!t) return;
@@ -2297,19 +2297,19 @@ function Ra() {
2297
2297
  }
2298
2298
  //#endregion
2299
2299
  //#region src/client/theme-default/composables/useHotkey.ts
2300
- var za = /* @__PURE__ */ new Map([
2300
+ var Ba = /* @__PURE__ */ new Map([
2301
2301
  [$.Control, "ctrlKey"],
2302
2302
  [$.Alt, "altKey"],
2303
2303
  [$.Shift, "shiftKey"],
2304
2304
  [$.Meta, "metaKey"]
2305
2305
  ]);
2306
- function Ba(e, t) {
2306
+ function Va(e, t) {
2307
2307
  function n(n) {
2308
- n.defaultPrevented || Ha(n, e) && (n.preventDefault(), t(n));
2308
+ n.defaultPrevented || Ua(n, e) && (n.preventDefault(), t(n));
2309
2309
  }
2310
2310
  Ge(() => window.addEventListener("keydown", n)), qe(() => window.removeEventListener("keydown", n));
2311
2311
  }
2312
- function Va(e) {
2312
+ function Ha(e) {
2313
2313
  let t = [];
2314
2314
  function n(e, n) {
2315
2315
  t.push({
@@ -2318,7 +2318,7 @@ function Va(e) {
2318
2318
  });
2319
2319
  }
2320
2320
  function r(e) {
2321
- for (let n of t) if (Ha(e, n.keys)) {
2321
+ for (let n of t) if (Ua(e, n.keys)) {
2322
2322
  e.preventDefault(), e.stopPropagation(), n.handler(e);
2323
2323
  return;
2324
2324
  }
@@ -2329,19 +2329,19 @@ function Va(e) {
2329
2329
  e.value?.removeEventListener("keydown", r);
2330
2330
  }), { register: n };
2331
2331
  }
2332
- function Ha(e, t) {
2333
- let n = t.filter((e) => za.has(e)), r = t.filter((e) => !za.has(e));
2332
+ function Ua(e, t) {
2333
+ let n = t.filter((e) => Ba.has(e)), r = t.filter((e) => !Ba.has(e));
2334
2334
  if (r.length !== 1 || e.key.toLowerCase() !== r[0].toLowerCase()) return !1;
2335
- for (let t of n) if (!e[za.get(t)]) return !1;
2335
+ for (let t of n) if (!e[Ba.get(t)]) return !1;
2336
2336
  return !(e.ctrlKey && !n.includes($.Control) || e.altKey && !n.includes($.Alt) || e.shiftKey && !n.includes($.Shift) || e.metaKey && !n.includes($.Meta));
2337
2337
  }
2338
2338
  //#endregion
2339
2339
  //#region src/client/theme-default/composables/useResizableTable.ts
2340
- var Ua = 6, Wa = 40;
2341
- function Ga() {
2340
+ var Wa = 6, Ga = 40;
2341
+ function Ka() {
2342
2342
  let e, t = !1;
2343
2343
  function n(e, t) {
2344
- return e.getBoundingClientRect().right - t < Ua;
2344
+ return e.getBoundingClientRect().right - t < Wa;
2345
2345
  }
2346
2346
  function r(r) {
2347
2347
  if (t) return;
@@ -2361,7 +2361,7 @@ function Ga() {
2361
2361
  r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
2362
2362
  function o(e) {
2363
2363
  let t = e.clientX - i;
2364
- r && (r.style.width = `${Math.max(Wa, a + t)}px`);
2364
+ r && (r.style.width = `${Math.max(Ga, a + t)}px`);
2365
2365
  }
2366
2366
  function s() {
2367
2367
  t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
@@ -2376,19 +2376,19 @@ function Ga() {
2376
2376
  }
2377
2377
  //#endregion
2378
2378
  //#region src/client/theme-default/composables/useMermaid.ts
2379
- var Ka = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", qa, Ja = 0;
2380
- function Ya() {
2381
- let e = j();
2379
+ var qa = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Ja, Ya = 0;
2380
+ function Xa() {
2381
+ let e;
2382
2382
  async function t() {
2383
2383
  let e = document.getElementById("td-content");
2384
2384
  if (!e) return;
2385
2385
  let t = e.querySelectorAll(".td-mermaid-placeholder");
2386
2386
  if (t.length === 0) return;
2387
- let n = await Xa();
2387
+ let n = await Za();
2388
2388
  if (n !== void 0) for (let e of t) {
2389
2389
  let t = e.querySelector("code");
2390
2390
  if (!t) continue;
2391
- let r = `td-mermaid-${Ja++}`;
2391
+ let r = `td-mermaid-${Ya++}`;
2392
2392
  try {
2393
2393
  let { svg: i } = await n.default.render(r, t.textContent ?? ""), a = document.createElement("div");
2394
2394
  a.className = "td-mermaid", a.innerHTML = i, e.replaceWith(a);
@@ -2397,99 +2397,109 @@ function Ya() {
2397
2397
  }
2398
2398
  }
2399
2399
  }
2400
- Ge(t), J(() => e.path, t);
2400
+ Ge(() => {
2401
+ t();
2402
+ let n = document.getElementById("td-content");
2403
+ n && (e = new MutationObserver(t), e.observe(n, {
2404
+ childList: !0,
2405
+ subtree: !0
2406
+ }));
2407
+ }), qe(() => {
2408
+ e?.disconnect();
2409
+ });
2401
2410
  }
2402
- async function Xa() {
2403
- if (qa !== void 0) return qa;
2411
+ async function Za() {
2412
+ if (Ja !== void 0) return Ja;
2404
2413
  try {
2405
- qa = await import(
2414
+ Ja = await import(
2406
2415
  /* @vite-ignore */
2407
- Ka
2416
+ qa
2408
2417
  );
2409
2418
  } catch {
2410
2419
  return;
2411
2420
  }
2412
- return qa.default.initialize({
2421
+ return Ja.default.initialize({
2413
2422
  startOnLoad: !1,
2414
2423
  theme: document.documentElement.classList.contains("dark") ? "dark" : "default"
2415
- }), qa;
2424
+ }), Ja;
2416
2425
  }
2417
2426
  //#endregion
2418
2427
  //#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
2419
- var Za = { class: "td-header" }, Qa = { class: "td-header-left" }, $a = ["href"], eo = { class: "td-brand-name" }, to = { class: "td-header-right" }, no = ["href"], ro = { class: "td-drawer-header" }, io = ["href"], ao = { class: "td-brand-name" }, oo = {
2428
+ var Qa = { class: "td-header" }, $a = { class: "td-header-left" }, eo = ["href"], to = { class: "td-brand-name" }, no = { class: "td-header-right" }, ro = ["href"], io = { class: "td-drawer-header" }, ao = ["href"], oo = { class: "td-brand-name" }, so = {
2420
2429
  key: 0,
2421
2430
  class: "pt-4",
2422
2431
  "aria-label": "Site navigation"
2423
- }, so = { class: "td-page" }, co = { class: "td-sidebar-scroll" }, lo = ["onKeydown"], uo = { class: "td-main-and-rail" }, fo = { class: "td-main" }, po = {
2432
+ }, co = { class: "td-page" }, lo = { class: "td-sidebar-scroll" }, uo = ["onKeydown"], fo = { class: "td-main-and-rail" }, po = { class: "td-main" }, mo = {
2424
2433
  id: "td-content",
2425
- class: "td-content"
2426
- }, mo = {
2434
+ class: "td-content",
2435
+ "data-testid": "content"
2436
+ }, ho = {
2427
2437
  key: 0,
2428
2438
  class: "td-page-eyebrow"
2429
- }, ho = {
2439
+ }, go = {
2430
2440
  key: 1,
2431
2441
  class: "td-page-icon"
2432
- }, go = ["innerHTML"], _o = {
2442
+ }, _o = ["innerHTML"], vo = {
2433
2443
  key: 3,
2434
2444
  class: "td-page-meta"
2435
- }, vo = { key: 0 }, yo = { class: "td-content-body" }, bo = 200, xo = 500, So = 300, Co = "td-sidebar-width", wo = /*#__PURE__*/ k(/* @__PURE__ */ B({
2445
+ }, yo = { key: 0 }, bo = { class: "td-content-body" }, xo = 200, So = 500, Co = 300, wo = "td-sidebar-width", To = /*#__PURE__*/ k(/* @__PURE__ */ B({
2436
2446
  __name: "TdLayout",
2437
2447
  setup(e) {
2438
2448
  let { title: t, page: n } = we(), r = N(() => {
2439
2449
  let e = n.value.icon;
2440
2450
  return e ? O(e.name) : void 0;
2441
- }), i = A(), { withBase: a } = i, o = he(), s = N(() => o.value.ready), { isOpen: c, open: u, close: d } = Ki(), f = U(""), p = U(!1), m = U(!1), h = j();
2442
- J(() => h.path, () => d()), Ra(), Ya();
2451
+ }), i = A(), { withBase: a } = i, o = he(), c = N(() => o.value.ready), { isOpen: l, open: u, close: d } = qi(), f = U(""), p = U(!1), m = U(!1), h = j();
2452
+ J(() => h.path, () => d()), za(), Xa();
2443
2453
  let g = nt("sidebarSearch"), _ = nt("menuSearch");
2444
2454
  function v() {
2445
2455
  if (_.value?.isFocused || g.value?.isFocused) {
2446
- _.value?.blur(), g.value?.blur(), c.value && d();
2456
+ _.value?.blur(), g.value?.blur(), l.value && d();
2447
2457
  return;
2448
2458
  }
2449
- c.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), He(() => _.value?.focus()));
2459
+ l.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), He(() => _.value?.focus()));
2450
2460
  }
2451
- Ba([$.Control, $.k], v), Ba([$.Meta, $.k], v), it(() => {
2461
+ Va([$.Control, $.k], v), Va([$.Meta, $.k], v), it(() => {
2452
2462
  if (typeof document > "u") return;
2453
2463
  let e = t.value, r = i.title;
2454
2464
  document.title = e && e !== r ? `${e} - ${r}` : r;
2455
2465
  let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
2456
2466
  o && o.setAttribute("content", a);
2457
- }), Ga();
2458
- let y = U(typeof localStorage < "u" && Number(localStorage.getItem(Co)) || So);
2467
+ }), Ka();
2468
+ let y = U(typeof localStorage < "u" && Number(localStorage.getItem(wo)) || Co);
2459
2469
  function b() {
2460
- y.value = Math.min(xo, y.value + 20);
2470
+ y.value = Math.min(So, y.value + 20);
2461
2471
  }
2462
2472
  function S(e) {
2463
2473
  let t = e.clientX, n = y.value, r = e.currentTarget;
2464
2474
  r.setPointerCapture(e.pointerId);
2465
2475
  function i(e) {
2466
- let r = Math.min(xo, window.innerWidth * .85), i = Math.min(r, Math.max(bo, n + e.clientX - t));
2476
+ let r = Math.min(So, window.innerWidth * .85), i = Math.min(r, Math.max(xo, n + e.clientX - t));
2467
2477
  y.value = i;
2468
2478
  }
2469
2479
  function a() {
2470
- document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(Co, String(y.value));
2480
+ document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(wo, String(y.value));
2471
2481
  }
2472
2482
  document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
2473
2483
  }
2474
2484
  function C() {
2475
- y.value = Math.max(bo, y.value - 20);
2485
+ y.value = Math.max(xo, y.value - 20);
2476
2486
  }
2477
2487
  return (e, u) => (H(), I("div", null, [
2478
2488
  u[6] ||= L("a", {
2479
2489
  href: "#td-content",
2480
2490
  class: "td-skip-link"
2481
2491
  }, "Skip to content", -1),
2482
- L("header", Za, [
2483
- L("div", Qa, [
2484
- z(qi),
2492
+ L("header", Qa, [
2493
+ L("div", $a, [
2494
+ z(Ji),
2485
2495
  L("a", {
2486
- href: q(a)(q(l)("/")),
2496
+ href: q(a)(q(s)("/")),
2487
2497
  class: "td-brand"
2488
- }, [z(wt), L("span", eo, K(q(i).title || "Typedown"), 1)], 8, $a),
2489
- z(Jr, { class: "td-header-breadcrumb" })
2498
+ }, [z(wt), L("span", to, K(q(i).title || "Typedown"), 1)], 8, eo),
2499
+ z(Yr, { class: "td-header-breadcrumb" })
2490
2500
  ]),
2491
- z(q(Zr)),
2492
- L("div", to, [z(La), q(i).repo ? (H(), I("a", {
2501
+ z(q(Qr)),
2502
+ L("div", no, [z(Ra), q(i).repo ? (H(), I("a", {
2493
2503
  key: 0,
2494
2504
  href: q(i).repo,
2495
2505
  target: "_blank",
@@ -2507,32 +2517,32 @@ var Za = { class: "td-header" }, Qa = { class: "td-header-left" }, $a = ["href"]
2507
2517
  "fill-rule": "evenodd",
2508
2518
  "clip-rule": "evenodd",
2509
2519
  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"
2510
- })], -1)]], 8, no)) : F("", !0)])
2520
+ })], -1)]], 8, ro)) : F("", !0)])
2511
2521
  ]),
2512
2522
  L("div", {
2513
- class: V(["td-drawer-scrim", { "is-open": q(c) }]),
2523
+ class: V(["td-drawer-scrim", { "is-open": q(l) }]),
2514
2524
  onClick: u[0] ||= (...e) => q(d) && q(d)(...e)
2515
2525
  }, null, 2),
2516
2526
  L("aside", {
2517
- class: V(["td-drawer", { "is-open": q(c) }]),
2527
+ class: V(["td-drawer", { "is-open": q(l) }]),
2518
2528
  style: Ue({ width: `${y.value}px` })
2519
2529
  }, [
2520
2530
  L("div", {
2521
2531
  class: "td-resize-handle",
2522
2532
  onPointerdown: ct(S, ["prevent"])
2523
2533
  }, null, 32),
2524
- L("header", ro, [L("a", {
2525
- href: q(a)(q(l)("/")),
2534
+ L("header", io, [L("a", {
2535
+ href: q(a)(q(s)("/")),
2526
2536
  class: "td-brand"
2527
- }, [z(wt), L("span", ao, K(q(i).title || "Typedown"), 1)], 8, io), z(Et, {
2537
+ }, [z(wt), L("span", oo, K(q(i).title || "Typedown"), 1)], 8, ao), z(Et, {
2528
2538
  label: "Close menu",
2529
2539
  onClick: q(d)
2530
2540
  }, {
2531
2541
  default: at(() => [z(q(ye), { size: 20 })]),
2532
2542
  _: 1
2533
2543
  }, 8, ["onClick"])]),
2534
- z(q(ei)),
2535
- z(Ia, {
2544
+ z(q(ti)),
2545
+ z(La, {
2536
2546
  ref_key: "menuSearch",
2537
2547
  ref: _,
2538
2548
  query: f.value,
@@ -2545,76 +2555,82 @@ var Za = { class: "td-header" }, Qa = { class: "td-header-left" }, $a = ["href"]
2545
2555
  "active",
2546
2556
  "onSelect"
2547
2557
  ]),
2548
- m.value ? F("", !0) : (H(), I("nav", oo, [s.value ? (H(), P(Nr, {
2558
+ m.value ? F("", !0) : (H(), I("nav", so, [c.value ? (H(), P(Pr, {
2549
2559
  key: 1,
2550
2560
  tree: q(o).contentTree
2551
- }, null, 8, ["tree"])) : (H(), P(ya, { key: 0 }))]))
2561
+ }, null, 8, ["tree"])) : (H(), P(ba, { key: 0 }))]))
2552
2562
  ], 6),
2553
- L("div", so, [L("nav", {
2563
+ L("div", co, [L("nav", {
2554
2564
  class: "td-sidebar-left",
2565
+ "data-testid": "sidebar",
2555
2566
  "aria-label": "Site navigation",
2556
2567
  style: Ue({ width: `${y.value}px` })
2557
- }, [L("div", co, [z(Ia, {
2558
- ref_key: "sidebarSearch",
2559
- ref: g,
2560
- query: f.value,
2561
- "onUpdate:query": u[3] ||= (e) => f.value = e,
2562
- active: p.value,
2563
- "onUpdate:active": u[4] ||= (e) => p.value = e
2564
- }, null, 8, ["query", "active"]), !p.value && !s.value ? (H(), P(ya, { key: 0 })) : p.value ? F("", !0) : (H(), P(Nr, {
2565
- key: 1,
2566
- tree: q(o).contentTree
2567
- }, null, 8, ["tree"]))]), L("div", {
2568
- class: "td-resize-handle",
2569
- role: "separator",
2570
- "aria-orientation": "vertical",
2571
- "aria-label": "Resize sidebar",
2572
- tabindex: "0",
2573
- onPointerdown: ct(S, ["prevent"]),
2574
- onKeydown: [st(ct(C, ["prevent"]), ["left"]), st(ct(b, ["prevent"]), ["right"])]
2575
- }, null, 40, lo)], 4), L("div", uo, [L("main", fo, [L("article", po, [
2576
- q(n).schema ? (H(), I("div", mo, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
2577
- r.value ? (H(), I("div", ho, [(H(), P(G(r.value), { size: 32 }))])) : F("", !0),
2568
+ }, [
2569
+ z(La, {
2570
+ ref_key: "sidebarSearch",
2571
+ ref: g,
2572
+ query: f.value,
2573
+ "onUpdate:query": u[3] ||= (e) => f.value = e,
2574
+ active: p.value,
2575
+ "onUpdate:active": u[4] ||= (e) => p.value = e,
2576
+ class: "td-sidebar-search"
2577
+ }, null, 8, ["query", "active"]),
2578
+ L("div", lo, [!p.value && !c.value ? (H(), P(ba, { key: 0 })) : p.value ? F("", !0) : (H(), P(Pr, {
2579
+ key: 1,
2580
+ tree: q(o).contentTree
2581
+ }, null, 8, ["tree"]))]),
2582
+ L("div", {
2583
+ class: "td-resize-handle",
2584
+ role: "separator",
2585
+ "aria-orientation": "vertical",
2586
+ "aria-label": "Resize sidebar",
2587
+ tabindex: "0",
2588
+ onPointerdown: ct(S, ["prevent"]),
2589
+ onKeydown: [st(ct(C, ["prevent"]), ["left"]), st(ct(b, ["prevent"]), ["right"])]
2590
+ }, null, 40, uo)
2591
+ ], 4), L("div", fo, [L("main", po, [L("article", mo, [
2592
+ q(n).schema ? (H(), I("div", ho, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
2593
+ r.value ? (H(), I("div", go, [(H(), P(G(r.value), { size: 32 }))])) : F("", !0),
2578
2594
  q(t) ? (H(), I("h1", {
2579
2595
  key: 2,
2580
2596
  class: "td-page-title",
2581
2597
  innerHTML: q(Ot)(q(t))
2582
- }, null, 8, go)) : F("", !0),
2583
- q(n).metadata ? (H(), I("div", _o, [L("span", null, K(q(x)(q(n).metadata.mtime, "Modified")), 1), q(n).metadata.ctime === q(n).metadata.mtime ? F("", !0) : (H(), I("span", vo, " · " + K(q(x)(q(n).metadata.ctime, "Created")), 1))])) : F("", !0),
2584
- z(q(Wi), {
2598
+ }, null, 8, _o)) : F("", !0),
2599
+ q(n).metadata ? (H(), I("div", vo, [L("span", null, K(q(x)(q(n).metadata.mtime, "Modified")), 1), q(n).metadata.ctime === q(n).metadata.mtime ? F("", !0) : (H(), I("span", yo, " · " + K(q(x)(q(n).metadata.ctime, "Created")), 1))])) : F("", !0),
2600
+ z(q(Gi), {
2585
2601
  class: "td-frontmatter-inline",
2586
2602
  schema: q(n).schema,
2587
2603
  frontmatter: q(n).frontmatter
2588
2604
  }, null, 8, ["schema", "frontmatter"]),
2589
- q(n).headings.length > 0 ? (H(), P(ha, {
2605
+ q(n).headings.length > 0 ? (H(), P(ga, {
2590
2606
  key: 4,
2591
2607
  class: "td-toc-inline",
2592
2608
  headings: q(n).headings,
2593
2609
  static: ""
2594
2610
  }, null, 8, ["headings"])) : F("", !0),
2595
- L("div", yo, [z(q(_e))]),
2596
- z(ca)
2597
- ])]), z(_a, { class: "td-rail" })])]),
2598
- z(Ir)
2611
+ L("div", bo, [z(q(_e))]),
2612
+ z(la)
2613
+ ])]), z(va, { class: "td-rail" })])]),
2614
+ z(Lr)
2599
2615
  ]));
2600
2616
  }
2601
- }), [["__scopeId", "data-v-eb85c0a2"]]), To = { class: "pt-16 pb-24" }, Eo = ["href"], Do = /* @__PURE__ */ B({
2617
+ }), [["__scopeId", "data-v-4fb28506"]]), Eo = { class: "pt-16 pb-24" }, Do = ["href"], Oo = /* @__PURE__ */ B({
2602
2618
  __name: "TdNotFound",
2603
2619
  setup(e) {
2604
2620
  let { withBase: t } = A();
2605
- return (e, n) => (H(), I("div", To, [
2621
+ return (e, n) => (H(), I("div", Eo, [
2606
2622
  n[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
2607
2623
  n[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
2608
2624
  n[2] ||= L("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
2609
2625
  L("a", {
2610
2626
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
2611
- href: q(t)(q(l)("/"))
2612
- }, "Go Home", 8, Eo)
2627
+ href: q(t)(q(s)("/"))
2628
+ }, "Go Home", 8, Do)
2613
2629
  ]));
2614
2630
  }
2615
- }), Oo = {
2616
- Layout: wo,
2617
- NotFound: Do
2631
+ }), ko = {
2632
+ Layout: To,
2633
+ NotFound: Oo
2618
2634
  };
2619
2635
  //#endregion
2620
- export { Se as TdDirectoryIndex, Te as TdGlossaryIndex, xa as TdKbdShortcut, $ as TdKeyName, wo as TdLayout, Do as TdNotFound, Oo as default, Ra as useCopyCode, Ba as useGlobalHotkey, Va as useLocalHotkeys };
2636
+ export { Se as TdDirectoryIndex, Te as TdGlossaryIndex, Sa as TdKbdShortcut, $ as TdKeyName, To as TdLayout, Oo as TdNotFound, ko as default, za as useCopyCode, Va as useGlobalHotkey, Ha as useLocalHotkeys };