typerighter 0.30.3 → 0.30.4

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