typerighter 0.57.3 → 0.57.5

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,4 +1,4 @@
1
- import { $ as e, A as t, C as n, D as r, E as i, I as a, L as o, N as s, P as c, R as l, T as u, Y as d, _ as f, a as p, b as m, c as h, f as g, j as _, k as v, l as y, n as b, nt as x, p as S, r as C, rt as w, s as T, v as E, w as ee, y as te } from "./shared-dB08amQA.js";
1
+ import { A as e, C as t, D as n, E as r, I as i, L as a, N as o, P as s, R as c, T as l, X as u, _ as d, a as f, b as p, c as m, et as h, f as g, it as _, j as v, k as y, l as b, n as x, p as S, r as C, rt as w, s as T, v as E, w as ee, y as te } from "./shared-BhUHq27C.js";
2
2
  import { l as ne, o as re } from "./useSidebarConfig-0kMemgUS.js";
3
3
  import { t as ie } from "./es-B_QJMowB.js";
4
4
  import { a as ae, i as D, n as oe, t as se } from "./brand-BSCRFcrY.js";
@@ -3485,19 +3485,19 @@ var Je = Y({
3485
3485
  filepath: ""
3486
3486
  };
3487
3487
  function ki(e, t = {}) {
3488
- let n = a(t.basePath ?? "/"), r = Ce({
3488
+ let n = i(t.basePath ?? "/"), r = Ce({
3489
3489
  path: "/",
3490
3490
  hash: "",
3491
3491
  query: "",
3492
3492
  contentSfc: void 0,
3493
3493
  data: Oi
3494
- }), i = {
3494
+ }), a = {
3495
3495
  route: r,
3496
3496
  async go(e, t) {
3497
- if (e = Pi(e, n), await i.onBeforeRouteChange?.(e) !== !1) {
3497
+ if (e = Pi(e, n), await a.onBeforeRouteChange?.(e) !== !1) {
3498
3498
  Ei && document.documentElement.classList.add("td-navigating");
3499
3499
  try {
3500
- (!Ei || t?.initialLoad || Ni(e, n, t)) && await s(e), c(), await i.onAfterRouteChange?.(e);
3500
+ (!Ei || t?.initialLoad || Ni(e, n, t)) && await s(e), c(), await a.onAfterRouteChange?.(e);
3501
3501
  } finally {
3502
3502
  Ei && document.documentElement.classList.remove("td-navigating");
3503
3503
  }
@@ -3534,8 +3534,8 @@ function ki(e, t = {}) {
3534
3534
  if (!t || t.hasAttribute("download") || t.hasAttribute("target")) return;
3535
3535
  let n = t.getAttribute("href");
3536
3536
  if (n === null) return;
3537
- let { href: r, origin: a, pathname: o } = new URL(n, t.baseURI);
3538
- a === location.origin && !o.match(/\.\w+$/) && (e.preventDefault(), i.go(r));
3537
+ let { href: r, origin: i, pathname: o } = new URL(n, t.baseURI);
3538
+ i === location.origin && !o.match(/\.\w+$/) && (e.preventDefault(), a.go(r));
3539
3539
  }, { capture: !0 }), window.addEventListener("pointerenter", (t) => {
3540
3540
  if (!(t.target instanceof HTMLAnchorElement)) return;
3541
3541
  let r = t.target.getAttribute("href");
@@ -3551,10 +3551,10 @@ function ki(e, t = {}) {
3551
3551
  }), window.addEventListener("popstate", async (e) => {
3552
3552
  if (e.state == null) return;
3553
3553
  let t = Pi(location.href, n);
3554
- await s(t), c(), await i.onAfterRouteChange?.(t);
3554
+ await s(t), c(), await a.onAfterRouteChange?.(t);
3555
3555
  }), window.addEventListener("hashchange", (e) => {
3556
3556
  e.preventDefault(), c();
3557
- })), i;
3557
+ })), a;
3558
3558
  }
3559
3559
  function Ai(e) {
3560
3560
  if (!e) return;
@@ -3584,7 +3584,7 @@ function Ni(e, t, { replace: n = !1 } = {}) {
3584
3584
  }
3585
3585
  function Pi(e, t) {
3586
3586
  let n = new URL(e, "http://a.com"), r = n.pathname.replace(/\.html$/, "");
3587
- return t && t !== "/" && (r === t || r.startsWith(t + "/")) && (r = r.slice(t.length) || "/"), n.pathname = s(r), n.pathname + n.search + n.hash;
3587
+ return t && t !== "/" && (r === t || r.startsWith(t + "/")) && (r = r.slice(t.length) || "/"), n.pathname = o(r), n.pathname + n.search + n.hash;
3588
3588
  }
3589
3589
  // src/client/app/components/Content.ts
3590
3590
  var Fi = I({
@@ -4718,15 +4718,15 @@ function zo(e) {
4718
4718
  let i = !0;
4719
4719
  n(() => {
4720
4720
  i = !1;
4721
- }), import("./renderMath-e3scuxfY.js").then(({ renderInlineMarkup: e }) => {
4721
+ }), import("./renderMath-DzumBAaX.js").then(({ renderInlineMarkup: e }) => {
4722
4722
  i && (t.value = e(r));
4723
4723
  });
4724
4724
  }), t;
4725
4725
  }
4726
4726
  function Bo(e) {
4727
4727
  let t = 0, n = "";
4728
- for (let r of e.matchAll(ce)) n += h(e.slice(t, r.index)), r[1] === void 0 ? n += h(r[0]) : n += `<code>${h(r[1])}</code>`, t = r.index + r[0].length;
4729
- return n += h(e.slice(t)), n;
4728
+ for (let r of e.matchAll(ce)) n += m(e.slice(t, r.index)), r[1] === void 0 ? n += m(r[0]) : n += `<code>${m(r[1])}</code>`, t = r.index + r[0].length;
4729
+ return n += m(e.slice(t)), n;
4730
4730
  }
4731
4731
  // src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
4732
4732
  var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
@@ -4745,17 +4745,17 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4745
4745
  node: {},
4746
4746
  urlPrefix: { default: "" }
4747
4747
  },
4748
- setup(e) {
4749
- let n = ji(), { withBase: i } = $(), a = k(() => ee(e.urlPrefix, e.node.name)), o = k(() => f(e.node)), s = k(() => o.value ? r(o.value.filepath) : u(a.value)), c = k(() => i(s.value)), l = k(() => o.value?.label ?? d(e.node.name)), h = k(() => o.value?.icon ? Ro(o.value.icon.name) : void 0), g = k(() => e.node.entries.filter((e) => e.kind === "dir" || !m(e.item.filepath))), _ = k(() => 0 < e.node.entries.length), v = k(() => y(e.node));
4748
+ setup(t) {
4749
+ let r = ji(), { withBase: i } = $(), a = k(() => ee(t.urlPrefix, t.node.name)), o = k(() => d(t.node)), s = k(() => o.value ? n(o.value.filepath) : l(a.value)), c = k(() => i(s.value)), m = k(() => o.value?.label ?? u(t.node.name)), h = k(() => o.value?.icon ? Ro(o.value.icon.name) : void 0), g = k(() => t.node.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath))), _ = k(() => 0 < t.node.entries.length), v = k(() => y(t.node));
4750
4750
  function y(e) {
4751
4751
  let t = 0;
4752
4752
  for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
4753
4753
  return t;
4754
4754
  }
4755
- let b = V(!t(a.value, n.path)), x = typeof window > "u", S = V(!1), C = k(() => g.value.filter((e) => e.kind === "file")), w = k(() => C.value.length), T = k(() => {
4755
+ let b = V(!e(a.value, r.path)), x = typeof window > "u", S = V(!1), C = k(() => g.value.filter((e) => e.kind === "file")), w = k(() => C.value.length), T = k(() => {
4756
4756
  let e = 0;
4757
4757
  for (let t of g.value) if (t.kind === "file") {
4758
- if (r(t.item.filepath) === n.path) return e;
4758
+ if (n(t.item.filepath) === r.path) return e;
4759
4759
  e++;
4760
4760
  }
4761
4761
  return -1;
@@ -4783,14 +4783,14 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4783
4783
  return n++, i;
4784
4784
  });
4785
4785
  });
4786
- q(() => n.path, (e) => {
4787
- t(a.value, e) && (b.value = !1);
4786
+ q(() => r.path, (t) => {
4787
+ e(a.value, t) && (b.value = !1);
4788
4788
  });
4789
4789
  function ae() {
4790
4790
  S.value = !0;
4791
4791
  }
4792
4792
  function D(e) {
4793
- return n.path === e;
4793
+ return r.path === e;
4794
4794
  }
4795
4795
  function oe(e) {
4796
4796
  e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
@@ -4799,7 +4799,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4799
4799
  b.value = !b.value;
4800
4800
  }
4801
4801
  return (e, t) => {
4802
- let n = Ee("TdTreeNode", !0);
4802
+ let r = Ee("TdTreeNode", !0);
4803
4803
  return _.value ? (B(), M("div", {
4804
4804
  key: 0,
4805
4805
  class: "td-tree-node",
@@ -4816,7 +4816,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4816
4816
  size: 14,
4817
4817
  class: L(["td-tree-caret", { "is-collapsed": b.value }])
4818
4818
  }, null, 8, ["class"]),
4819
- N("span", Wo, W(l.value), 1),
4819
+ N("span", Wo, W(m.value), 1),
4820
4820
  F(Po, {
4821
4821
  text: "Open index page",
4822
4822
  always: ""
@@ -4824,7 +4824,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4824
4824
  default: J(() => [N("a", {
4825
4825
  href: c.value,
4826
4826
  class: L(["td-tree-index-btn", { "is-active": D(s.value) }]),
4827
- "aria-label": `Open index page for ${l.value}`,
4827
+ "aria-label": `Open index page for ${m.value}`,
4828
4828
  onClick: t[0] ||= Le(() => {}, ["stop"])
4829
4829
  }, [h.value ? (B(), A(De(h.value), {
4830
4830
  key: 0,
@@ -4848,7 +4848,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4848
4848
  key: 0,
4849
4849
  href: c.value,
4850
4850
  class: L(["td-tree-link td-tree-index-entry", { "is-active": D(s.value) }]),
4851
- "aria-label": `${l.value} Overview`
4851
+ "aria-label": `${m.value} Overview`
4852
4852
  }, [F(G(lt), {
4853
4853
  size: 14,
4854
4854
  class: "td-tree-file-icon"
@@ -4859,14 +4859,14 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4859
4859
  type: "button",
4860
4860
  onClick: ae
4861
4861
  }, W(ne.value) + " more... ", 1)) : j("", !0),
4862
- (B(!0), M(O, null, H(ie.value, (e) => (B(), M(O, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), A(n, {
4862
+ (B(!0), M(O, null, H(ie.value, (e) => (B(), M(O, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), A(r, {
4863
4863
  key: 0,
4864
4864
  node: e.node,
4865
4865
  "url-prefix": a.value
4866
4866
  }, null, 8, ["node", "url-prefix"])) : (B(), M("a", {
4867
4867
  key: 1,
4868
- href: G(i)(G(r)(e.item.filepath)),
4869
- class: L(["td-tree-link", { "is-active": D(G(r)(e.item.filepath)) }])
4868
+ href: G(i)(G(n)(e.item.filepath)),
4869
+ class: L(["td-tree-link", { "is-active": D(G(n)(e.item.filepath)) }])
4870
4870
  }, [
4871
4871
  e.item.icon && G(Ro)(e.item.icon.name) ? (B(), A(De(G(Ro)(e.item.icon.name)), {
4872
4872
  key: 0,
@@ -4884,7 +4884,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4884
4884
  default: J(() => [F(Ho, { text: G(te)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
4885
4885
  _: 2
4886
4886
  }, 1032, ["text"]),
4887
- e.item.fileMetadata ? (B(), M("span", Yo, W(G(p)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
4887
+ e.item.fileMetadata ? (B(), M("span", Yo, W(G(f)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
4888
4888
  ], 10, Jo))], 64))), 128)),
4889
4889
  re.value > 0 ? (B(), M("button", {
4890
4890
  key: 2,
@@ -4908,13 +4908,13 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4908
4908
  __name: "TdContentNav",
4909
4909
  props: { tree: {} },
4910
4910
  setup(e) {
4911
- let t = ji(), { withBase: n } = $(), i = k(() => e.tree.entries.find((e) => e.kind === "file" && m(e.item.filepath))?.item), a = k(() => e.tree.entries.filter((e) => e.kind === "dir" || !m(e.item.filepath)));
4911
+ let t = ji(), { withBase: r } = $(), i = k(() => e.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), a = k(() => e.tree.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath)));
4912
4912
  function o(e) {
4913
4913
  return t.path === e;
4914
4914
  }
4915
4915
  return (e, t) => (B(), M("nav", Qo, [N("div", $o, [N("a", {
4916
- href: G(n)(i.value ? G(r)(i.value.filepath) : G(u)("/")),
4917
- class: L(["td-root-link", { "is-active": o(i.value ? G(r)(i.value.filepath) : G(u)("/")) }]),
4916
+ href: G(r)(i.value ? G(n)(i.value.filepath) : G(l)("/")),
4917
+ class: L(["td-root-link", { "is-active": o(i.value ? G(n)(i.value.filepath) : G(l)("/")) }]),
4918
4918
  role: "treeitem"
4919
4919
  }, [
4920
4920
  F(G(Tn), {
@@ -4922,14 +4922,14 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4922
4922
  class: "td-root-link-icon"
4923
4923
  }),
4924
4924
  t[0] ||= N("span", { class: "td-root-link-text" }, "Overview", -1),
4925
- i.value ? (B(), M("span", ts, W(i.value.fileMetadata ? G(p)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : j("", !0)
4925
+ i.value ? (B(), M("span", ts, W(i.value.fileMetadata ? G(f)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : j("", !0)
4926
4926
  ], 10, es), (B(!0), M(O, null, H(a.value, (e) => (B(), M(O, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), A(Zo, {
4927
4927
  key: 0,
4928
4928
  node: e.node
4929
4929
  }, null, 8, ["node"])) : (B(), M("a", {
4930
4930
  key: 1,
4931
- href: G(n)(G(r)(e.item.filepath)),
4932
- class: L(["td-root-link", { "is-active": o(G(r)(e.item.filepath)) }]),
4931
+ href: G(r)(G(n)(e.item.filepath)),
4932
+ class: L(["td-root-link", { "is-active": o(G(n)(e.item.filepath)) }]),
4933
4933
  role: "treeitem"
4934
4934
  }, [
4935
4935
  e.item.icon && G(Ro)(e.item.icon.name) ? (B(), A(De(G(Ro)(e.item.icon.name)), {
@@ -4942,7 +4942,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4942
4942
  class: "td-root-link-icon"
4943
4943
  })),
4944
4944
  N("span", rs, W(G(te)(e.item.filepath, e.item.label)), 1),
4945
- e.item.fileMetadata ? (B(), M("span", is, W(G(p)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
4945
+ e.item.fileMetadata ? (B(), M("span", is, W(G(f)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
4946
4946
  ], 10, ns))], 64))), 128))])]));
4947
4947
  }
4948
4948
  }), [["__scopeId", "data-v-038de594"]]), os = { class: "td-footer" }, ss = { key: 0 }, cs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
@@ -5006,28 +5006,28 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
5006
5006
  }, ys = 3, bs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5007
5007
  __name: "TdBreadcrumb",
5008
5008
  setup(e) {
5009
- let t = ji(), { withBase: n } = $(), r = V(!1), i = k(() => {
5010
- let e = a(t.path), r = [{
5009
+ let t = ji(), { withBase: n } = $(), r = V(!1), a = k(() => {
5010
+ let e = i(t.path), r = [{
5011
5011
  name: "Home",
5012
- href: n(u("/"))
5012
+ href: n(l("/"))
5013
5013
  }];
5014
5014
  if (e === "/") return r;
5015
- let i = e.replace(/^\//, "").split("/"), o = v(e) ? i.slice(0, -1) : i;
5015
+ let a = e.replace(/^\//, "").split("/"), o = y(e) ? a.slice(0, -1) : a;
5016
5016
  for (let e = 0; e < o.length; e++) {
5017
5017
  let t = "/" + o.slice(0, e + 1).join("/"), i = e === o.length - 1;
5018
5018
  r.push({
5019
- name: d(o[e]),
5020
- href: n(i ? t : u(t))
5019
+ name: u(o[e]),
5020
+ href: n(i ? t : l(t))
5021
5021
  });
5022
5022
  }
5023
5023
  return r;
5024
- }), o = k(() => ys < i.value.length), s = k(() => i.value.slice(1, -2));
5024
+ }), o = k(() => ys < a.value.length), s = k(() => a.value.slice(1, -2));
5025
5025
  return q(() => t.path, () => {
5026
5026
  r.value = !1;
5027
5027
  }), (e, t) => (B(), M("nav", ds, [N("a", {
5028
- href: i.value[0].href,
5028
+ href: a.value[0].href,
5029
5029
  class: "td-breadcrumb-link td-breadcrumb-home"
5030
- }, W(i.value[0].name), 9, fs), o.value ? (B(), M(O, { key: 0 }, [
5030
+ }, W(a.value[0].name), 9, fs), o.value ? (B(), M(O, { key: 0 }, [
5031
5031
  t[2] ||= N("span", {
5032
5032
  class: "td-breadcrumb-sep",
5033
5033
  "aria-hidden": "true"
@@ -5044,18 +5044,18 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
5044
5044
  }, W(e.name), 9, ms))), 128))]),
5045
5045
  _: 1
5046
5046
  }, 8, ["open"]),
5047
- (B(!0), M(O, null, H(i.value.slice(-2), (e) => (B(), M(O, { key: e.href }, [t[1] ||= N("span", {
5047
+ (B(!0), M(O, null, H(a.value.slice(-2), (e) => (B(), M(O, { key: e.href }, [t[1] ||= N("span", {
5048
5048
  class: "td-breadcrumb-sep",
5049
5049
  "aria-hidden": "true"
5050
- }, "/", -1), e === i.value[i.value.length - 1] ? (B(), M("span", gs, W(e.name), 1)) : (B(), M("a", {
5050
+ }, "/", -1), e === a.value[a.value.length - 1] ? (B(), M("span", gs, W(e.name), 1)) : (B(), M("a", {
5051
5051
  key: 0,
5052
5052
  href: e.href,
5053
5053
  class: "td-breadcrumb-link"
5054
5054
  }, W(e.name), 9, hs))], 64))), 128))
5055
- ], 64)) : (B(!0), M(O, { key: 1 }, H(i.value.slice(1), (e, n) => (B(), M(O, { key: e.href }, [t[3] ||= N("span", {
5055
+ ], 64)) : (B(!0), M(O, { key: 1 }, H(a.value.slice(1), (e, n) => (B(), M(O, { key: e.href }, [t[3] ||= N("span", {
5056
5056
  class: "td-breadcrumb-sep",
5057
5057
  "aria-hidden": "true"
5058
- }, "/", -1), n < i.value.length - 2 ? (B(), M("a", {
5058
+ }, "/", -1), n < a.value.length - 2 ? (B(), M("a", {
5059
5059
  key: 0,
5060
5060
  href: e.href,
5061
5061
  class: "td-breadcrumb-link"
@@ -5073,13 +5073,13 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
5073
5073
  setup(e) {
5074
5074
  let t = $(), { withBase: n } = t, r = ji();
5075
5075
  function i(e) {
5076
- return !_(e) && r.path.startsWith(n(e));
5076
+ return !v(e) && r.path.startsWith(n(e));
5077
5077
  }
5078
5078
  return (e, r) => G(t).nav?.length ? (B(), M("nav", xs, [(B(!0), M(O, null, H(G(t).nav, (e) => (B(), M("a", {
5079
5079
  key: e.link,
5080
- href: G(_)(e.link) ? e.link : G(n)(e.link),
5081
- target: G(_)(e.link) ? "_blank" : void 0,
5082
- rel: G(_)(e.link) ? "noopener noreferrer" : void 0,
5080
+ href: G(v)(e.link) ? e.link : G(n)(e.link),
5081
+ target: G(v)(e.link) ? "_blank" : void 0,
5082
+ rel: G(v)(e.link) ? "noopener noreferrer" : void 0,
5083
5083
  class: L(["td-header-nav-link", { "is-active": i(e.link) }])
5084
5084
  }, [
5085
5085
  e.icon && G(Ro)(e.icon) ? (B(), A(De(G(Ro)(e.icon)), {
@@ -5088,7 +5088,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
5088
5088
  class: "td-header-nav-icon"
5089
5089
  })) : j("", !0),
5090
5090
  P(" " + W(e.title) + " ", 1),
5091
- G(_)(e.link) ? (B(), A(G(tt), {
5091
+ G(v)(e.link) ? (B(), A(G(tt), {
5092
5092
  key: 1,
5093
5093
  size: 14
5094
5094
  })) : j("", !0)
@@ -5117,13 +5117,13 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
5117
5117
  setup(e) {
5118
5118
  let t = $(), { withBase: n } = t, r = ji();
5119
5119
  function i(e) {
5120
- return !_(e) && r.path.startsWith(n(e));
5120
+ return !v(e) && r.path.startsWith(n(e));
5121
5121
  }
5122
5122
  return (e, r) => G(t).nav?.length ? (B(), M("nav", Ts, [(B(!0), M(O, null, H(G(t).nav, (e) => (B(), M("a", {
5123
5123
  key: e.link,
5124
- href: G(_)(e.link) ? e.link : G(n)(e.link),
5125
- target: G(_)(e.link) ? "_blank" : void 0,
5126
- rel: G(_)(e.link) ? "noopener noreferrer" : void 0,
5124
+ href: G(v)(e.link) ? e.link : G(n)(e.link),
5125
+ target: G(v)(e.link) ? "_blank" : void 0,
5126
+ rel: G(v)(e.link) ? "noopener noreferrer" : void 0,
5127
5127
  class: L(["td-menu-nav-item", { "is-active": i(e.link) }])
5128
5128
  }, [
5129
5129
  e.icon ? (B(), A(ws, {
@@ -5132,7 +5132,7 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
5132
5132
  size: 16
5133
5133
  }, null, 8, ["name"])) : j("", !0),
5134
5134
  N("span", null, W(e.title), 1),
5135
- G(_)(e.link) ? (B(), A(G(tt), {
5135
+ G(v)(e.link) ? (B(), A(G(tt), {
5136
5136
  key: 1,
5137
5137
  size: 14
5138
5138
  })) : j("", !0)
@@ -5170,7 +5170,7 @@ function js(e) {
5170
5170
  let t = e.trim();
5171
5171
  return !t || !Ms({ url: t }) ? void 0 : {
5172
5172
  url: t,
5173
- name: o(t),
5173
+ name: a(t),
5174
5174
  isImage: !0
5175
5175
  };
5176
5176
  }
@@ -5179,22 +5179,22 @@ function js(e) {
5179
5179
  if (t.$kind !== void 0 && t.$kind !== "ref") return;
5180
5180
  let n = t.$ref ?? t;
5181
5181
  if (typeof n.url != "string") return;
5182
- let r = n.url, i = n.name ?? o(r), a = n.format ?? t.format;
5182
+ let r = n.url, i = n.name ?? a(r), o = n.format ?? t.format;
5183
5183
  return {
5184
5184
  url: r,
5185
5185
  name: i,
5186
- format: a,
5186
+ format: o,
5187
5187
  icon: n.icon,
5188
5188
  isImage: Ms({
5189
5189
  url: r,
5190
5190
  name: i,
5191
- format: a
5191
+ format: o
5192
5192
  })
5193
5193
  };
5194
5194
  }
5195
5195
  function Ms(e) {
5196
5196
  if (e.format && As.has(e.format.toLowerCase())) return !0;
5197
- let t = l(e.name || e.url).slice(1);
5197
+ let t = c(e.name || e.url).slice(1);
5198
5198
  return t ? As.has(t.toLowerCase()) : !1;
5199
5199
  }
5200
5200
  // src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
@@ -5211,7 +5211,7 @@ var Ns = {
5211
5211
  }
5212
5212
  },
5213
5213
  setup(e) {
5214
- let { withBase: t } = $(), n = k(() => js(e.value)), r = k(() => n.value?.icon ? Ro(n.value.icon.name) : void 0), i = k(() => n.value !== void 0 && _(n.value.url));
5214
+ let { withBase: t } = $(), n = k(() => js(e.value)), r = k(() => n.value?.icon ? Ro(n.value.icon.name) : void 0), i = k(() => n.value !== void 0 && v(n.value.url));
5215
5215
  return (a, o) => n.value ? (B(), M("span", Ns, [n.value.isImage ? (B(), M("a", {
5216
5216
  key: 0,
5217
5217
  href: G(t)(n.value.url),
@@ -5374,10 +5374,10 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5374
5374
  switch (e._type) {
5375
5375
  case "date":
5376
5376
  case "datetime":
5377
- case "time": return typeof e.value == "string" ? b(e.value) : "";
5377
+ case "time": return typeof e.value == "string" ? x(e.value) : "";
5378
5378
  }
5379
5379
  }
5380
- return e.definition.widget === "date" ? b(String(t)) : String(t);
5380
+ return e.definition.widget === "date" ? x(String(t)) : String(t);
5381
5381
  }
5382
5382
  return (t, a) => i.value ? (B(), M("a", {
5383
5383
  key: 0,
@@ -5476,13 +5476,13 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5476
5476
  function l() {
5477
5477
  s.value = !s.value;
5478
5478
  }
5479
- function u() {
5479
+ function d() {
5480
5480
  c.value = !c.value;
5481
5481
  }
5482
5482
  return (t, n) => e.mode === "rail" && i.value.length > 0 ? (B(), M("div", sc, [N("button", {
5483
5483
  type: "button",
5484
5484
  class: "td-fm-rail-header",
5485
- onClick: u
5485
+ onClick: d
5486
5486
  }, [n[0] ||= N("span", { class: "td-fm-rail-label" }, "Properties", -1), F(G(bt), {
5487
5487
  size: 14,
5488
5488
  class: L(["td-fm-rail-caret", { "is-collapsed": c.value }])
@@ -5492,7 +5492,7 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5492
5492
  }, [N("span", cc, [(B(), A(De(o(t.widget)), {
5493
5493
  size: 12,
5494
5494
  class: "td-fm-icon"
5495
- })), P(" " + W(G(d)(e)), 1)]), N("span", lc, [F(oc, {
5495
+ })), P(" " + W(G(u)(e)), 1)]), N("span", lc, [F(oc, {
5496
5496
  definition: t,
5497
5497
  value: r.value[e]
5498
5498
  }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (B(), M("div", uc, [N("button", {
@@ -5508,12 +5508,12 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5508
5508
  }))])]), N("div", { class: L(["td-collapse", { "is-collapsed": s.value }]) }, [N("div", mc, [(B(!0), M(O, null, H(i.value, ([e, t]) => (B(), M(O, { key: e }, [N("span", hc, [(B(), A(De(o(t.widget)), {
5509
5509
  size: 12,
5510
5510
  class: "td-fm-icon"
5511
- })), P(" " + W(G(d)(e)), 1)]), N("span", gc, [F(oc, {
5511
+ })), P(" " + W(G(u)(e)), 1)]), N("span", gc, [F(oc, {
5512
5512
  definition: t,
5513
5513
  value: r.value[e]
5514
5514
  }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : j("", !0);
5515
5515
  }
5516
- }), [["__scopeId", "data-v-88227032"]]);
5516
+ }), [["__scopeId", "data-v-25ee92eb"]]);
5517
5517
  // src/client/theme-default/composables/useMediaQuery.ts
5518
5518
  function vc(e) {
5519
5519
  let t = V(!1), n;
@@ -5650,21 +5650,21 @@ function Oc() {
5650
5650
  };
5651
5651
  }
5652
5652
  function kc(e, t, n) {
5653
- let r = ee(t, e.name), i = f(e);
5653
+ let r = ee(t, e.name), i = d(e);
5654
5654
  i && n.push(jc(i));
5655
- for (let t of e.entries) t.kind === "file" && !m(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, r, n);
5655
+ for (let t of e.entries) t.kind === "file" && !p(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, r, n);
5656
5656
  }
5657
5657
  function Ac(e, t) {
5658
- let n = [], r = e.entries.find((e) => e.kind === "file" && m(e.item.filepath));
5658
+ let n = [], r = e.entries.find((e) => e.kind === "file" && p(e.item.filepath));
5659
5659
  r && r.kind === "file" && n.push(jc(r.item, t));
5660
- for (let t of e.entries) t.kind === "file" && !m(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, "", n);
5660
+ for (let t of e.entries) t.kind === "file" && !p(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, "", n);
5661
5661
  return n;
5662
5662
  }
5663
5663
  function jc(e, t) {
5664
- let n = e.label === void 0 ? t === void 0 ? te(e.filepath) : E(e.filepath, t) : e.label;
5664
+ let r = e.label === void 0 ? t === void 0 ? te(e.filepath) : E(e.filepath, t) : e.label;
5665
5665
  return {
5666
- url: r(e.filepath),
5667
- title: n
5666
+ url: n(e.filepath),
5667
+ title: r
5668
5668
  };
5669
5669
  }
5670
5670
  // src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
@@ -5789,11 +5789,11 @@ var Wc = {
5789
5789
  }, [N("a", {
5790
5790
  href: e.link,
5791
5791
  class: "td-toc-inline-link is-h2",
5792
- innerHTML: G(y)(e.titleHtml)
5792
+ innerHTML: G(b)(e.titleHtml)
5793
5793
  }, null, 8, Kc), e.children.length ? (B(), M("ul", qc, [(B(!0), M(O, null, H(e.children, (e) => (B(), M("li", { key: e.slug }, [N("a", {
5794
5794
  href: e.link,
5795
5795
  class: "td-toc-inline-link is-h3",
5796
- innerHTML: G(y)(e.titleHtml)
5796
+ innerHTML: G(b)(e.titleHtml)
5797
5797
  }, null, 8, Jc)]))), 128))])) : j("", !0)]))), 128))])])) : e.headings.length ? (B(), M("div", Yc, [N("div", {
5798
5798
  ref: "list",
5799
5799
  class: L(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
@@ -5807,7 +5807,7 @@ var Wc = {
5807
5807
  }, [N("a", {
5808
5808
  href: e.link,
5809
5809
  class: L(["td-toc-link", { "is-active": G(n) === e.slug }]),
5810
- innerHTML: G(y)(e.titleHtml)
5810
+ innerHTML: G(b)(e.titleHtml)
5811
5811
  }, null, 10, Zc)], 2))), 128))])], 2)])) : j("", !0);
5812
5812
  }
5813
5813
  }), [["__scopeId", "data-v-f02336c5"]]), $c = {
@@ -5888,27 +5888,27 @@ var Wc = {
5888
5888
  __name: "TdSidebarIcons",
5889
5889
  props: { tree: {} },
5890
5890
  emits: ["search"],
5891
- setup(e, { emit: n }) {
5892
- let i = n, a = ji(), { withBase: o } = $(), s = k(() => e.tree.entries.find((e) => e.kind === "file" && m(e.item.filepath))?.item), c = k(() => {
5893
- let t = [];
5894
- for (let n of e.tree.entries) {
5895
- if (n.kind !== "dir") continue;
5896
- let e = n.node, i = ee("", e.name), a = f(e), s = a ? r(a.filepath) : u(i), c = a?.label ?? d(e.name), l = a?.icon ? Ro(a.icon.name) : void 0;
5897
- t.push({
5891
+ setup(t, { emit: r }) {
5892
+ let i = r, a = ji(), { withBase: o } = $(), s = k(() => t.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), c = k(() => {
5893
+ let e = [];
5894
+ for (let r of t.tree.entries) {
5895
+ if (r.kind !== "dir") continue;
5896
+ let t = r.node, i = ee("", t.name), a = d(t), s = a ? n(a.filepath) : l(i), c = a?.label ?? u(t.name), f = a?.icon ? Ro(a.icon.name) : void 0;
5897
+ e.push({
5898
5898
  label: c,
5899
5899
  href: o(s),
5900
5900
  path: s,
5901
- icon: l,
5902
- isFallback: !l
5901
+ icon: f,
5902
+ isFallback: !f
5903
5903
  });
5904
5904
  }
5905
- return t;
5905
+ return e;
5906
5906
  });
5907
- function l() {
5907
+ function f() {
5908
5908
  i("search");
5909
5909
  }
5910
- function p(e) {
5911
- return a.path === e || t(e, a.path);
5910
+ function m(t) {
5911
+ return a.path === t || e(t, a.path);
5912
5912
  }
5913
5913
  return (e, t) => (B(), M("div", sl, [
5914
5914
  F(Po, {
@@ -5919,7 +5919,7 @@ var Wc = {
5919
5919
  class: "td-sidebar-icon-btn",
5920
5920
  type: "button",
5921
5921
  "aria-label": "Search",
5922
- onClick: l
5922
+ onClick: f
5923
5923
  }, [F(G(Fr), { size: 16 })])]),
5924
5924
  _: 1
5925
5925
  }),
@@ -5929,8 +5929,8 @@ var Wc = {
5929
5929
  always: ""
5930
5930
  }, {
5931
5931
  default: J(() => [N("a", {
5932
- href: G(o)(G(r)(s.value.filepath)),
5933
- class: L(["td-sidebar-icon-btn", { "is-active": p(G(r)(s.value.filepath)) }]),
5932
+ href: G(o)(G(n)(s.value.filepath)),
5933
+ class: L(["td-sidebar-icon-btn", { "is-active": m(G(n)(s.value.filepath)) }]),
5934
5934
  "aria-label": s.value.label ?? "Home"
5935
5935
  }, [F(G(Tn), { size: 16 })], 10, cl)]),
5936
5936
  _: 1
@@ -5943,7 +5943,7 @@ var Wc = {
5943
5943
  }, {
5944
5944
  default: J(() => [N("a", {
5945
5945
  href: e.href,
5946
- class: L(["td-sidebar-icon-btn", { "is-active": p(e.path) }]),
5946
+ class: L(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
5947
5947
  "aria-label": e.label
5948
5948
  }, [e.isFallback ? (B(), A(G(dn), {
5949
5949
  key: 1,
@@ -5959,8 +5959,8 @@ var Wc = {
5959
5959
  }), [["__scopeId", "data-v-48b69ea7"]]);
5960
5960
  // src/client/theme-default/components/TdSiteSearch/highlight.ts
5961
5961
  function fl(e, t) {
5962
- if (!e || !t) return h(e);
5963
- let n = t.trim().split(/\s+/).filter(Boolean), r = h(e);
5962
+ if (!e || !t) return m(e);
5963
+ let n = t.trim().split(/\s+/).filter(Boolean), r = m(e);
5964
5964
  for (let e of n) {
5965
5965
  let t = RegExp(`(${T(e)})`, "gi");
5966
5966
  r = r.replace(t, "<mark>$1</mark>");
@@ -5977,8 +5977,8 @@ function ml() {
5977
5977
  function i() {
5978
5978
  if (t) return t;
5979
5979
  if (e.value) return t = he(ie.loadJSON(e.value, {
5980
- fields: x,
5981
- storeFields: w
5980
+ fields: w,
5981
+ storeFields: _
5982
5982
  })), t;
5983
5983
  }
5984
5984
  function a(e, t) {
@@ -6054,7 +6054,7 @@ var hl = {
6054
6054
  __name: "TdCommandPalette",
6055
6055
  emits: ["toggle-sidebar", "show-shortcuts"],
6056
6056
  setup(e, { expose: t, emit: n }) {
6057
- let r = n, a = V(!1), o = V(""), s = V(0), c = K("input"), l = K("results"), u = ji(), d = Mi(), { withBase: f } = $(), { previous: p, next: m } = Oc(), { results: h, search: g, cancel: _ } = ml(), v = k(() => o.value.trim());
6057
+ let i = n, a = V(!1), o = V(""), s = V(0), c = K("input"), l = K("results"), u = ji(), d = Mi(), { withBase: f } = $(), { previous: p, next: m } = Oc(), { results: h, search: g, cancel: _ } = ml(), v = k(() => o.value.trim());
6058
6058
  function y() {
6059
6059
  a.value = !1, _();
6060
6060
  }
@@ -6068,7 +6068,7 @@ var hl = {
6068
6068
  n(() => _()), g(e), s.value = 0;
6069
6069
  });
6070
6070
  let x = k(() => {
6071
- let e = i(u.path);
6071
+ let e = r(u.path);
6072
6072
  return e === "/" ? void 0 : e;
6073
6073
  }), S = k(() => {
6074
6074
  let e = [];
@@ -6095,13 +6095,13 @@ var hl = {
6095
6095
  label: "Collapse sidebar",
6096
6096
  keys: [X.Meta, X.Backslash],
6097
6097
  keepsOpen: !0,
6098
- action: () => r("toggle-sidebar")
6098
+ action: () => i("toggle-sidebar")
6099
6099
  }), e.push({
6100
6100
  id: "view-shortcuts",
6101
6101
  group: "View",
6102
6102
  label: "Keyboard shortcuts",
6103
6103
  action: () => {
6104
- y(), r("show-shortcuts");
6104
+ y(), i("show-shortcuts");
6105
6105
  }
6106
6106
  }), e.push({
6107
6107
  id: "page-copy",
@@ -6279,15 +6279,15 @@ var hl = {
6279
6279
  },
6280
6280
  emits: /*@__PURE__*/ ge(["select"], ["update:active", "update:query"]),
6281
6281
  setup(e, { expose: t, emit: n }) {
6282
- let r = je(e, "active"), i = je(e, "query"), a = n, o = ji(), { withBase: s } = $(), { results: l, searching: u, indexLoaded: f, search: p, cancel: m } = ml(), h = V(-1), g = k(() => 0 < i.value.trim().length), _ = k(() => {
6282
+ let r = je(e, "active"), i = je(e, "query"), a = n, o = ji(), { withBase: c } = $(), { results: l, searching: d, indexLoaded: f, search: p, cancel: m } = ml(), h = V(-1), g = k(() => 0 < i.value.trim().length), _ = k(() => {
6283
6283
  let e = [], t = /* @__PURE__ */ new Map();
6284
6284
  for (let n of l.value) {
6285
- let r = c(n.id), i = t.get(r);
6285
+ let r = s(n.id), i = t.get(r);
6286
6286
  if (!i) {
6287
6287
  let n = r.split("/").pop() || "index";
6288
6288
  i = {
6289
6289
  pageUrl: r,
6290
- pageTitle: d(n),
6290
+ pageTitle: u(n),
6291
6291
  results: []
6292
6292
  }, t.set(r, i), e.push(i);
6293
6293
  }
@@ -6317,7 +6317,7 @@ var hl = {
6317
6317
  e.preventDefault();
6318
6318
  let t = y.value[h.value];
6319
6319
  if (!t) return;
6320
- document.querySelector(`.td-search-result[href="${CSS.escape(s(t.id))}"]`)?.click();
6320
+ document.querySelector(`.td-search-result[href="${CSS.escape(c(t.id))}"]`)?.click();
6321
6321
  }
6322
6322
  }
6323
6323
  }
@@ -6360,12 +6360,12 @@ var hl = {
6360
6360
  "aria-label": "Search",
6361
6361
  onKeydown: x
6362
6362
  }, null, 544), [[Me, i.value]]),
6363
- !g.value && !G(u) ? (B(), A(Q, {
6363
+ !g.value && !G(d) ? (B(), A(Q, {
6364
6364
  key: 0,
6365
6365
  keys: [G(X).Meta, G(X).k],
6366
6366
  class: "td-search-kbd"
6367
6367
  }, null, 8, ["keys"])) : j("", !0),
6368
- G(u) || !G(f) ? (B(), A(G(Bn), {
6368
+ G(d) || !G(f) ? (B(), A(G(Bn), {
6369
6369
  key: 1,
6370
6370
  size: 12,
6371
6371
  class: "td-search-spinner"
@@ -6383,10 +6383,10 @@ var hl = {
6383
6383
  class: "td-search-group"
6384
6384
  }, [(B(!0), M(O, null, H(e.results, (e) => (B(), M("a", {
6385
6385
  key: e.id,
6386
- href: G(s)(e.id),
6386
+ href: G(c)(e.id),
6387
6387
  class: L(["td-search-result", {
6388
6388
  "is-selected": b.value.get(e.id) === h.value,
6389
- "is-current": G(s)(e.id) === G(o).path
6389
+ "is-current": G(c)(e.id) === G(o).path
6390
6390
  }]),
6391
6391
  onClick: S
6392
6392
  }, [
@@ -7173,17 +7173,17 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7173
7173
  let { title: t, page: n } = df(), r = k(() => {
7174
7174
  let e = n.value.icon;
7175
7175
  return e ? Ro(e.name) : void 0;
7176
- }), i = $(), { withBase: o } = i, s = Mi(), c = yf(), l = k(() => c.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Ec(), h = V(""), g = V(!1), _ = V(!1), v = ji(), y = V(!1);
7176
+ }), a = $(), { withBase: o } = a, s = Mi(), c = yf(), u = k(() => c.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Ec(), h = V(""), g = V(!1), _ = V(!1), v = ji(), y = V(!1);
7177
7177
  q(() => v.path, () => m()), Vl(), Hl(), qu();
7178
7178
  let b = K("sidebarSearch"), x = K("menuSearch"), S = K("palette"), { previous: w, next: T } = Oc();
7179
7179
  function E() {
7180
7180
  y.value = !1;
7181
7181
  }
7182
7182
  function ee(e) {
7183
- let t = i.repo;
7184
- return `${a(t.url)}/edit/main/${[
7183
+ let t = a.repo;
7184
+ return `${i(t.url)}/edit/main/${[
7185
7185
  t.root,
7186
- i.rootDir,
7186
+ a.rootDir,
7187
7187
  e
7188
7188
  ].filter(Boolean).join("/")}`;
7189
7189
  }
@@ -7205,10 +7205,10 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7205
7205
  T.value && s.go(T.value.url);
7206
7206
  }, { ignoreWhenTyping: !0 }), Pe(() => {
7207
7207
  if (typeof document > "u") return;
7208
- let e = t.value, r = i.title;
7208
+ let e = t.value, r = a.title;
7209
7209
  document.title = e && e !== r ? `${e} - ${r}` : r;
7210
- let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
7211
- o && o.setAttribute("content", a);
7210
+ let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
7211
+ o && o.setAttribute("content", i);
7212
7212
  }), Gl();
7213
7213
  let { sidebarWidth: D, isSidebarCollapsed: oe, sidebarWidthStyle: se, expandedSidebarVisibilityStyle: ce, collapsedSidebarVisibilityStyle: O } = re(), le = V(!1);
7214
7214
  function de() {
@@ -7236,9 +7236,9 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7236
7236
  function pe() {
7237
7237
  D.value = Math.max(200, D.value - 20);
7238
7238
  }
7239
- return (e, a) => (B(), M("div", null, [
7239
+ return (e, i) => (B(), M("div", null, [
7240
7240
  U(e.$slots, "layout-top", {}, void 0, !0),
7241
- a[6] ||= N("a", {
7241
+ i[6] ||= N("a", {
7242
7242
  href: "#td-content",
7243
7243
  class: "td-skip-link"
7244
7244
  }, "Skip to content", -1),
@@ -7249,9 +7249,9 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7249
7249
  onClick: G(p)
7250
7250
  }, null, 8, ["onClick"]),
7251
7251
  N("a", {
7252
- href: G(o)(G(u)("/")),
7252
+ href: G(o)(G(l)("/")),
7253
7253
  class: "td-brand"
7254
- }, [F(Bi), N("span", Zu, W(G(i).title || "Typedown"), 1)], 8, Xu),
7254
+ }, [F(Bi), N("span", Zu, W(G(a).title || "Typedown"), 1)], 8, Xu),
7255
7255
  F(bs, { class: "td-header-breadcrumb" })
7256
7256
  ]),
7257
7257
  F(G(Cs)),
@@ -7272,14 +7272,14 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7272
7272
  _: 1
7273
7273
  }, 8, ["shortcut"]),
7274
7274
  F(Bl),
7275
- G(i).repo ? (B(), M("a", {
7275
+ G(a).repo ? (B(), M("a", {
7276
7276
  key: 0,
7277
- href: G(i).repo.url,
7277
+ href: G(a).repo.url,
7278
7278
  target: "_blank",
7279
7279
  rel: "noopener noreferrer",
7280
7280
  class: "td-header-icon-link",
7281
7281
  "aria-label": "GitHub repository"
7282
- }, [...a[5] ||= [N("svg", {
7282
+ }, [...i[5] ||= [N("svg", {
7283
7283
  width: "20",
7284
7284
  height: "20",
7285
7285
  viewBox: "0 0 98 96",
@@ -7297,7 +7297,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7297
7297
  default: J(() => [G(f) ? (B(), M("div", {
7298
7298
  key: 0,
7299
7299
  class: L(["td-drawer-scrim", { "is-open": G(d) }]),
7300
- onClick: a[0] ||= (...e) => G(m) && G(m)(...e)
7300
+ onClick: i[0] ||= (...e) => G(m) && G(m)(...e)
7301
7301
  }, null, 2)) : j("", !0)]),
7302
7302
  _: 1
7303
7303
  }),
@@ -7310,9 +7310,9 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7310
7310
  "aria-label": "Navigation menu"
7311
7311
  }, [
7312
7312
  N("header", ed, [N("a", {
7313
- href: G(o)(G(u)("/")),
7313
+ href: G(o)(G(l)("/")),
7314
7314
  class: "td-brand"
7315
- }, [F(Bi), N("span", nd, W(G(i).title || "Typedown"), 1)], 8, td), F(Io, {
7315
+ }, [F(Bi), N("span", nd, W(G(a).title || "Typedown"), 1)], 8, td), F(Io, {
7316
7316
  label: "Close menu",
7317
7317
  onClick: G(m)
7318
7318
  }, {
@@ -7324,16 +7324,16 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7324
7324
  ref_key: "menuSearch",
7325
7325
  ref: x,
7326
7326
  query: h.value,
7327
- "onUpdate:query": a[1] ||= (e) => h.value = e,
7327
+ "onUpdate:query": i[1] ||= (e) => h.value = e,
7328
7328
  active: _.value,
7329
- "onUpdate:active": a[2] ||= (e) => _.value = e,
7329
+ "onUpdate:active": i[2] ||= (e) => _.value = e,
7330
7330
  onSelect: G(m)
7331
7331
  }, null, 8, [
7332
7332
  "query",
7333
7333
  "active",
7334
7334
  "onSelect"
7335
7335
  ]),
7336
- _.value ? j("", !0) : (B(), M("nav", rd, [l.value ? (B(), A(as, {
7336
+ _.value ? j("", !0) : (B(), M("nav", rd, [u.value ? (B(), A(as, {
7337
7337
  key: 1,
7338
7338
  tree: G(c).contentTree
7339
7339
  }, null, 8, ["tree"])) : (B(), A(al, { key: 0 }))]))
@@ -7358,15 +7358,15 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7358
7358
  ref_key: "sidebarSearch",
7359
7359
  ref: b,
7360
7360
  query: h.value,
7361
- "onUpdate:query": a[3] ||= (e) => h.value = e,
7361
+ "onUpdate:query": i[3] ||= (e) => h.value = e,
7362
7362
  active: g.value,
7363
- "onUpdate:active": a[4] ||= (e) => g.value = e,
7363
+ "onUpdate:active": i[4] ||= (e) => g.value = e,
7364
7364
  class: "td-sidebar-search"
7365
7365
  }, null, 8, ["query", "active"]),
7366
7366
  F(ol, {
7367
7367
  tree: G(c).contentTree,
7368
7368
  "search-active": g.value,
7369
- ready: l.value
7369
+ ready: u.value
7370
7370
  }, null, 8, [
7371
7371
  "tree",
7372
7372
  "search-active",
@@ -7436,7 +7436,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7436
7436
  N("div", hd, [F(G(Fi))]),
7437
7437
  U(e.$slots, "doc-content-after", {}, void 0, !0),
7438
7438
  F(Vc),
7439
- G(i).repo && G(n).filepath ? (B(), M("a", {
7439
+ G(a).repo && G(n).filepath ? (B(), M("a", {
7440
7440
  key: 5,
7441
7441
  href: ee(G(n).filepath),
7442
7442
  target: "_blank",
@@ -7469,20 +7469,20 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7469
7469
  n[2] ||= N("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
7470
7470
  N("a", {
7471
7471
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
7472
- href: G(t)(G(u)("/"))
7472
+ href: G(t)(G(l)("/"))
7473
7473
  }, "Go Home", 8, yd)
7474
7474
  ]));
7475
7475
  }
7476
7476
  }), xd = ["href"], Sd = ["href"], Cd = { class: "td-dir-name" }, wd = { class: "td-dir-count" }, Td = ["href"], Ed = { class: "td-dir-name" }, Dd = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7477
7477
  __name: "TdDirectoryIndex",
7478
7478
  setup(e) {
7479
- let t = ji(), n = yf(), { withBase: r } = $(), a = k(() => {
7480
- let e = i(t.path);
7479
+ let t = ji(), n = yf(), { withBase: i } = $(), a = k(() => {
7480
+ let e = r(t.path);
7481
7481
  return {
7482
7482
  url: e,
7483
7483
  entries: n.value.directoryListings[e]?.entries ?? []
7484
7484
  };
7485
- }), o = k(() => a.value.url === "/"), s = k(() => r(u(i(a.value.url))));
7485
+ }), o = k(() => a.value.url === "/"), s = k(() => i(l(r(a.value.url))));
7486
7486
  return (e, t) => (B(), M("div", null, [o.value ? j("", !0) : (B(), M("a", {
7487
7487
  key: 0,
7488
7488
  href: s.value,
@@ -7492,7 +7492,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7492
7492
  class: "td-dir-icon"
7493
7493
  }), t[0] ||= N("span", { class: "td-dir-parent" }, "..", -1)], 8, xd)), (B(!0), M(O, null, H(a.value.entries, (e) => (B(), M(O, { key: e.kind === "dir" ? e.sub.url : e.item.url }, [e.kind === "dir" ? (B(), M("a", {
7494
7494
  key: 0,
7495
- href: G(r)(e.sub.url),
7495
+ href: G(i)(e.sub.url),
7496
7496
  class: "td-dir-row"
7497
7497
  }, [
7498
7498
  F(G(dn), {
@@ -7503,7 +7503,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7503
7503
  N("span", wd, W(e.sub.count), 1)
7504
7504
  ], 8, Sd)) : (B(), M("a", {
7505
7505
  key: 1,
7506
- href: G(r)(e.item.url),
7506
+ href: G(i)(e.item.url),
7507
7507
  class: "td-dir-row"
7508
7508
  }, [N("span", Ed, W(e.item.name), 1)], 8, Td))], 64))), 128))]));
7509
7509
  }
@@ -7535,7 +7535,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7535
7535
  class: "td-glossary-row"
7536
7536
  }, [
7537
7537
  N("span", kd, W(e.item.name), 1),
7538
- e.item.mtimeSecs ? (B(), M("span", Ad, W(G(p)(e.item.mtimeSecs)), 1)) : j("", !0),
7538
+ e.item.mtimeSecs ? (B(), M("span", Ad, W(G(f)(e.item.mtimeSecs)), 1)) : j("", !0),
7539
7539
  e.item.description ? (B(), M("span", jd, W(e.item.description), 1)) : (B(), M("span", Md, "No description yet")),
7540
7540
  e.showTags && e.item.tags && e.item.tags.length > 0 ? (B(), M("span", Nd, [(B(!0), M(O, null, H(e.item.tags, (e) => (B(), M("span", {
7541
7541
  key: e,
@@ -7556,9 +7556,9 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7556
7556
  __name: "TdGlossaryIndex",
7557
7557
  props: { mode: { default: "informative" } },
7558
7558
  setup(e) {
7559
- let t = ji(), n = yf(), { withBase: r } = $(), a = V(""), o = k(() => {
7560
- let e = i(t.path), r = n.value.directoryListings[e];
7561
- return r ? r.entries.filter((e) => e.kind === "file").map((e) => e.item) : [];
7559
+ let t = ji(), n = yf(), { withBase: i } = $(), a = V(""), o = k(() => {
7560
+ let e = r(t.path), i = n.value.directoryListings[e];
7561
+ return i ? i.entries.filter((e) => e.kind === "file").map((e) => e.item) : [];
7562
7562
  }), s = k(() => o.value.length), c = k(() => {
7563
7563
  let e = /* @__PURE__ */ new Map();
7564
7564
  for (let t of o.value) e.set(t.url, t);
@@ -7613,18 +7613,18 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7613
7613
  placeholder: `Filter ${s.value} entries`
7614
7614
  }, null, 8, Id), [[Me, a.value]])]), u.value ? (B(), M(O, { key: 0 }, [d.value.length === 0 ? (B(), M("div", Ld, " No entries matching \"" + W(a.value.trim()) + "\" ", 1)) : e.mode === "dense" ? (B(), M("div", Rd, [(B(!0), M(O, null, H(d.value, (e) => (B(), M("a", {
7615
7615
  key: e.url,
7616
- href: G(r)(e.url),
7616
+ href: G(i)(e.url),
7617
7617
  class: "td-glossary-dense-link"
7618
7618
  }, W(e.name), 9, zd))), 128))])) : (B(), M("div", Bd, [(B(!0), M(O, null, H(d.value, (e) => (B(), A(Pd, {
7619
7619
  key: e.url,
7620
7620
  item: e,
7621
- href: G(r)(e.url)
7621
+ href: G(i)(e.url)
7622
7622
  }, null, 8, ["item", "href"]))), 128))]))], 64)) : (B(), M(O, { key: 1 }, [e.mode === "dense" ? (B(), M("div", Vd, [(B(!0), M(O, null, H(f.value, (e) => (B(), M("div", {
7623
7623
  key: e.letter,
7624
7624
  class: "td-glossary-dense-group"
7625
7625
  }, [N("div", Hd, [N("span", Ud, W(e.letter), 1), n[1] ||= N("span", { class: "td-glossary-letter-line" }, null, -1)]), (B(!0), M(O, null, H(e.items, (e) => (B(), M("a", {
7626
7626
  key: e.url,
7627
- href: G(r)(e.url),
7627
+ href: G(i)(e.url),
7628
7628
  class: "td-glossary-dense-link"
7629
7629
  }, W(e.name), 9, Wd))), 128))]))), 128))])) : (B(), M("div", Gd, [(B(!0), M(O, null, H(f.value, (e) => (B(), M("div", { key: e.letter }, [N("div", Kd, [
7630
7630
  N("span", qd, W(e.letter), 1),
@@ -7633,7 +7633,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7633
7633
  ]), (B(!0), M(O, null, H(e.items, (e) => (B(), A(Pd, {
7634
7634
  key: e.url,
7635
7635
  item: e,
7636
- href: G(r)(e.url),
7636
+ href: G(i)(e.url),
7637
7637
  "show-tags": ""
7638
7638
  }, null, 8, ["item", "href"]))), 128))]))), 128))]))], 64))]));
7639
7639
  }
@@ -7748,19 +7748,19 @@ function df() {
7748
7748
  }
7749
7749
  // src/client/app/index.ts
7750
7750
  var ff = Symbol("typedown-site-config"), pf = Symbol("typedown-site-data"), mf = Symbol("typedown-page-loader"), hf = Symbol("typedown-search-index");
7751
- async function gf(t, r) {
7752
- let { theme: a } = t;
7753
- function o(t) {
7754
- for (let n of e) {
7755
- let e = t + n;
7756
- for (let t of Object.keys(r.value.pages)) if (t.endsWith(e)) return r.value.pages[t];
7751
+ async function gf(e, n) {
7752
+ let { theme: i } = e;
7753
+ function a(e) {
7754
+ for (let t of h) {
7755
+ let r = n.value.pages[e + t];
7756
+ if (r) return r;
7757
7757
  }
7758
7758
  }
7759
- async function s(e) {
7760
- let t = o(e);
7761
- if (t) return t();
7762
- if (v(e)) {
7763
- let t = n(e), i = r.value.directoryListings[t];
7759
+ async function o(e) {
7760
+ let r = a(e);
7761
+ if (r) return r();
7762
+ if (y(e)) {
7763
+ let r = t(e), i = n.value.directoryListings[r];
7764
7764
  if (i) return {
7765
7765
  default: {
7766
7766
  name: "DirectoryIndex",
@@ -7778,36 +7778,36 @@ async function gf(t, r) {
7778
7778
  };
7779
7779
  }
7780
7780
  }
7781
- typeof document < "u" && t.lang && (document.documentElement.lang = t.lang);
7782
- let c = ki(s, {
7783
- basePath: t.basePath,
7784
- fallbackComponent: a.NotFound
7781
+ typeof document < "u" && e.lang && (document.documentElement.lang = e.lang);
7782
+ let s = ki(o, {
7783
+ basePath: e.basePath,
7784
+ fallbackComponent: i.NotFound
7785
7785
  });
7786
- q(r, (t, n) => {
7787
- if (n.pages === t.pages) return;
7788
- let r = c.route.path, a = e.some((e) => Object.keys(n.pages).some((t) => t.endsWith(r + e))), s = !!o(r);
7789
- !a && s ? c.go(r) : a && !s && c.go(i(r));
7786
+ q(n, (e, t) => {
7787
+ if (t.pages === e.pages) return;
7788
+ let n = s.route.path, i = h.some((e) => t.pages[n + e] !== void 0), o = !!a(n);
7789
+ !i && o ? s.go(n) : i && !o && s.go(r(n));
7790
7790
  });
7791
- let l = I({
7791
+ let c = I({
7792
7792
  name: "TypedownApp",
7793
7793
  setup() {
7794
- return uf(c.route), () => pe(a.Layout);
7794
+ return uf(s.route), () => pe(i.Layout);
7795
7795
  }
7796
- }), u = de(l);
7797
- u.provide(Di, c), u.provide(ff, t), u.provide(pf, r), u.provide(mf, s);
7798
- let d = ke(r.value.searchIndex);
7799
- return u.provide(hf, d), u.component("TypedownContent", Fi), u.component("DirectoryIndex", Dd), u.component("GlossaryIndex", Yd), u.component("Flashcard", af), u.component("Grid", sf), u.component("GridCell", cf), u.component("LucideIcon", ws), a.enhanceApp && await a.enhanceApp({
7800
- app: u,
7801
- router: c,
7802
- siteConfig: t,
7803
- siteData: r
7804
- }), typeof window < "u" && await c.go(location.href, {
7796
+ }), l = de(c);
7797
+ l.provide(Di, s), l.provide(ff, e), l.provide(pf, n), l.provide(mf, o);
7798
+ let u = ke(n.value.searchIndex);
7799
+ return l.provide(hf, u), l.component("TypedownContent", Fi), l.component("DirectoryIndex", Dd), l.component("GlossaryIndex", Yd), l.component("Flashcard", af), l.component("Grid", sf), l.component("GridCell", cf), l.component("LucideIcon", ws), i.enhanceApp && await i.enhanceApp({
7800
+ app: l,
7801
+ router: s,
7802
+ siteConfig: e,
7803
+ siteData: n
7804
+ }), typeof window < "u" && await s.go(location.href, {
7805
7805
  replace: !0,
7806
7806
  initialLoad: !0
7807
7807
  }), {
7808
- app: u,
7809
- router: c,
7810
- searchIndex: d
7808
+ app: l,
7809
+ router: s,
7810
+ searchIndex: u
7811
7811
  };
7812
7812
  }
7813
7813
  function _f() {
@@ -7819,7 +7819,7 @@ function $() {
7819
7819
  description: "",
7820
7820
  basePath: "/",
7821
7821
  theme: Xd
7822
- }), t = a(e.basePath);
7822
+ }), t = i(e.basePath);
7823
7823
  return {
7824
7824
  ...e,
7825
7825
  withBase(e) {