typerighter 0.56.1 → 0.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-Dh1RgRtN.js → app-Dm08HnZG.js} +2 -2
- package/dist/{cli-Be64NWBp.js → cli-D-sgJzkz.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default/composables/client-preferences/useSidebarConfig.d.ts +9 -5
- package/dist/client/theme-default/composables/client-preferences/useSidebarConfig.d.ts.map +1 -1
- package/dist/client/theme-default/composables/client-preferences/useTheme.d.ts +7 -1
- package/dist/client/theme-default/composables/client-preferences/useTheme.d.ts.map +1 -1
- package/dist/client/theme-default/composables/client-preferences/utils/buildHeadScript.d.ts +2 -2
- package/dist/client/theme-default/composables/client-preferences/utils/buildHeadScript.d.ts.map +1 -1
- package/dist/client/theme-default.js +982 -971
- package/dist/client.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{init-BmrfQCbP.js → init-CRbtpr2v.js} +1 -1
- package/dist/{page-RL9qA6-j.js → page-BreMA8X5.js} +3 -3
- package/dist/prerenderWorker.js +2 -2
- package/dist/{renderMath-CJKXI63h.js → renderMath-e3scuxfY.js} +1 -1
- package/dist/shared/utils/time.d.ts.map +1 -1
- package/dist/{shared-BK7uzYmy.js → shared-dB08amQA.js} +88 -88
- package/dist/shared.js +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{useSidebarConfig-n149FAq4.js → useSidebarConfig-DUcdHn0W.js} +13 -11
- package/dist/useTheme-BF8TNao6.js +65 -0
- package/dist/{vite-C2ruOX7H.js → vite-BeHH_un1.js} +2 -2
- package/dist/vite.js +1 -1
- package/package.json +4 -3
- package/dist/useTheme-B-j0bXCL.js +0 -62
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { A as e, D as t, E as n, I as r, L as i, P as a, R as o, T as s, Y as c, _ as l, a as u, b as d, c as f, f as p, j as m, k as h, l as g, n as _, nt as v, p as y, r as b, rt as x, s as S, v as C, w, y as T } from "../shared-
|
|
2
|
-
import { n as E } from "../useTheme-
|
|
3
|
-
import { i as ee, n as te, o as D, r as ne, s as re, t as ie } from "../useSidebarConfig-
|
|
1
|
+
import { A as e, D as t, E as n, I as r, L as i, P as a, R as o, T as s, Y as c, _ as l, a as u, b as d, c as f, f as p, j as m, k as h, l as g, n as _, nt as v, p as y, r as b, rt as x, s as S, v as C, w, y as T } from "../shared-dB08amQA.js";
|
|
2
|
+
import { n as E } from "../useTheme-BF8TNao6.js";
|
|
3
|
+
import { i as ee, n as te, o as D, r as ne, s as re, t as ie } from "../useSidebarConfig-DUcdHn0W.js";
|
|
4
4
|
import { t as ae } from "../es-B_QJMowB.js";
|
|
5
|
-
import { A as
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
var xt =
|
|
5
|
+
import { A as oe, B as se, C as ce, D as le, E as ue, F as de, H as O, I as fe, L as pe, M as me, N as he, O as ge, P as _e, R as ve, S as ye, T as be, V as xe, _ as Se, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, i as Ae, j as je, k as Me, l as Ne, m as Pe, n as Fe, o as Ie, p as k, r as A, s as Le, u as Re, v as ze, w as Be, x as Ve, y as He, z as Ue } from "../app-Dm08HnZG.js";
|
|
6
|
+
import { a as We, i as Ge, n as Ke, t as qe } from "../brand-BSCRFcrY.js";
|
|
7
|
+
import { t as Je } from "../inlineRe-CoUp2DgK.js";
|
|
8
|
+
import { Fragment as j, Teleport as Ye, Transition as Xe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ze, h as Qe, markRaw as $e, mergeModels as et, mergeProps as tt, nextTick as nt, normalizeClass as B, normalizeStyle as V, onBeforeUnmount as rt, onMounted as it, onScopeDispose as at, onUnmounted as ot, openBlock as H, readonly as st, ref as U, render as ct, renderList as W, renderSlot as G, resolveComponent as lt, resolveDynamicComponent as ut, shallowReadonly as dt, shallowRef as ft, toDisplayString as K, toValue as pt, unref as q, useModel as mt, useTemplateRef as J, vModelText as ht, vShow as gt, watch as Y, watchEffect as _t, withCtx as X, withDirectives as vt, withKeys as yt, withModifiers as bt } from "vue";
|
|
9
|
+
var xt = O({
|
|
10
10
|
name: "check",
|
|
11
11
|
size: 24,
|
|
12
12
|
node: [["path", {
|
|
13
13
|
d: "M20 6 9 17l-5-5",
|
|
14
14
|
key: "1gmf2c"
|
|
15
15
|
}]]
|
|
16
|
-
}), St =
|
|
16
|
+
}), St = O({
|
|
17
17
|
name: "chevrons-left",
|
|
18
18
|
size: 24,
|
|
19
19
|
node: [["path", {
|
|
@@ -23,7 +23,7 @@ var xt = k({
|
|
|
23
23
|
d: "m18 17-5-5 5-5",
|
|
24
24
|
key: "h8a8et"
|
|
25
25
|
}]]
|
|
26
|
-
}), Ct =
|
|
26
|
+
}), Ct = O({
|
|
27
27
|
name: "chevrons-right",
|
|
28
28
|
size: 24,
|
|
29
29
|
node: [["path", {
|
|
@@ -33,7 +33,7 @@ var xt = k({
|
|
|
33
33
|
d: "m13 17 5-5-5-5",
|
|
34
34
|
key: "17xmmf"
|
|
35
35
|
}]]
|
|
36
|
-
}), wt =
|
|
36
|
+
}), wt = O({
|
|
37
37
|
name: "circle-dot",
|
|
38
38
|
size: 24,
|
|
39
39
|
node: [["circle", {
|
|
@@ -47,7 +47,7 @@ var xt = k({
|
|
|
47
47
|
r: "10",
|
|
48
48
|
key: "1mglay"
|
|
49
49
|
}]]
|
|
50
|
-
}), Tt =
|
|
50
|
+
}), Tt = O({
|
|
51
51
|
name: "clipboard-copy",
|
|
52
52
|
size: 24,
|
|
53
53
|
node: [
|
|
@@ -77,14 +77,14 @@ var xt = k({
|
|
|
77
77
|
key: "5dvupr"
|
|
78
78
|
}]
|
|
79
79
|
]
|
|
80
|
-
}), Et =
|
|
80
|
+
}), Et = O({
|
|
81
81
|
name: "command",
|
|
82
82
|
size: 24,
|
|
83
83
|
node: [["path", {
|
|
84
84
|
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",
|
|
85
85
|
key: "11bfej"
|
|
86
86
|
}]]
|
|
87
|
-
}), Dt =
|
|
87
|
+
}), Dt = O({
|
|
88
88
|
name: "corner-down-left",
|
|
89
89
|
size: 24,
|
|
90
90
|
node: [["path", {
|
|
@@ -94,7 +94,7 @@ var xt = k({
|
|
|
94
94
|
d: "m9 10-5 5 5 5",
|
|
95
95
|
key: "1kshq7"
|
|
96
96
|
}]]
|
|
97
|
-
}), Ot =
|
|
97
|
+
}), Ot = O({
|
|
98
98
|
name: "delete",
|
|
99
99
|
size: 24,
|
|
100
100
|
node: [
|
|
@@ -111,14 +111,14 @@ var xt = k({
|
|
|
111
111
|
key: "1fp51s"
|
|
112
112
|
}]
|
|
113
113
|
]
|
|
114
|
-
}), kt =
|
|
114
|
+
}), kt = O({
|
|
115
115
|
name: "folder-open",
|
|
116
116
|
size: 24,
|
|
117
117
|
node: [["path", {
|
|
118
118
|
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",
|
|
119
119
|
key: "usdka0"
|
|
120
120
|
}]]
|
|
121
|
-
}), At =
|
|
121
|
+
}), At = O({
|
|
122
122
|
name: "loader-circle",
|
|
123
123
|
size: 24,
|
|
124
124
|
node: [["path", {
|
|
@@ -126,7 +126,7 @@ var xt = k({
|
|
|
126
126
|
key: "13zald"
|
|
127
127
|
}]],
|
|
128
128
|
aliases: ["loader-2"]
|
|
129
|
-
}), jt =
|
|
129
|
+
}), jt = O({
|
|
130
130
|
name: "maximize",
|
|
131
131
|
size: 24,
|
|
132
132
|
node: [
|
|
@@ -147,7 +147,7 @@ var xt = k({
|
|
|
147
147
|
key: "18trek"
|
|
148
148
|
}]
|
|
149
149
|
]
|
|
150
|
-
}), Mt =
|
|
150
|
+
}), Mt = O({
|
|
151
151
|
name: "option",
|
|
152
152
|
size: 24,
|
|
153
153
|
node: [["path", {
|
|
@@ -157,14 +157,14 @@ var xt = k({
|
|
|
157
157
|
d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
|
|
158
158
|
key: "1qf1im"
|
|
159
159
|
}]]
|
|
160
|
-
}), Nt =
|
|
160
|
+
}), Nt = O({
|
|
161
161
|
name: "space",
|
|
162
162
|
size: 24,
|
|
163
163
|
node: [["path", {
|
|
164
164
|
d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
|
|
165
165
|
key: "lt2kga"
|
|
166
166
|
}]]
|
|
167
|
-
}), Pt =
|
|
167
|
+
}), Pt = O({
|
|
168
168
|
name: "square-check-big",
|
|
169
169
|
size: 24,
|
|
170
170
|
node: [["path", {
|
|
@@ -175,7 +175,7 @@ var xt = k({
|
|
|
175
175
|
key: "1pflzl"
|
|
176
176
|
}]],
|
|
177
177
|
aliases: ["check-square"]
|
|
178
|
-
}), Ft =
|
|
178
|
+
}), Ft = O({
|
|
179
179
|
name: "tags",
|
|
180
180
|
size: 24,
|
|
181
181
|
node: [
|
|
@@ -195,7 +195,7 @@ var xt = k({
|
|
|
195
195
|
key: "12ikhr"
|
|
196
196
|
}]
|
|
197
197
|
]
|
|
198
|
-
}), It =
|
|
198
|
+
}), It = O({
|
|
199
199
|
name: "type",
|
|
200
200
|
size: 24,
|
|
201
201
|
node: [
|
|
@@ -216,113 +216,102 @@ var xt = k({
|
|
|
216
216
|
"height",
|
|
217
217
|
"width",
|
|
218
218
|
"viewBox"
|
|
219
|
-
], Rt = ["d"], zt = ["d"], Bt = ["d"], Vt = /* @__PURE__ */
|
|
219
|
+
], Rt = ["d"], zt = ["d"], Bt = ["d"], Vt = /* @__PURE__ */ z({
|
|
220
220
|
__name: "TdBrandIcon",
|
|
221
221
|
props: { size: { default: 28 } },
|
|
222
222
|
setup(e) {
|
|
223
|
-
return (t, n) => (H(),
|
|
223
|
+
return (t, n) => (H(), F("svg", {
|
|
224
224
|
fill: "none",
|
|
225
225
|
height: e.size,
|
|
226
226
|
width: e.size * 208 / 128,
|
|
227
|
-
viewBox: q(
|
|
227
|
+
viewBox: q(We),
|
|
228
228
|
xmlns: "http://www.w3.org/2000/svg"
|
|
229
229
|
}, [
|
|
230
|
-
|
|
230
|
+
I("path", {
|
|
231
231
|
"clip-rule": "evenodd",
|
|
232
|
-
d: q(
|
|
232
|
+
d: q(Ke),
|
|
233
233
|
"fill-rule": "evenodd",
|
|
234
234
|
fill: "currentColor"
|
|
235
235
|
}, null, 8, Rt),
|
|
236
|
-
|
|
237
|
-
d: q(
|
|
236
|
+
I("path", {
|
|
237
|
+
d: q(Ge),
|
|
238
238
|
fill: "currentColor"
|
|
239
239
|
}, null, 8, zt),
|
|
240
|
-
|
|
241
|
-
d: q(
|
|
240
|
+
I("path", {
|
|
241
|
+
d: q(qe),
|
|
242
242
|
fill: "currentColor"
|
|
243
243
|
}, null, 8, Bt)
|
|
244
244
|
], 8, Lt));
|
|
245
245
|
}
|
|
246
|
-
}), Ht =
|
|
247
|
-
__name: "TdButton",
|
|
248
|
-
props: { label: {} },
|
|
249
|
-
setup(e) {
|
|
250
|
-
return (t, n) => (H(), I("button", {
|
|
251
|
-
type: "button",
|
|
252
|
-
class: "td-icon-btn",
|
|
253
|
-
title: e.label,
|
|
254
|
-
"aria-label": e.label
|
|
255
|
-
}, [G(t.$slots, "default", {}, void 0, !0)], 8, Ht));
|
|
256
|
-
}
|
|
257
|
-
}), [["__scopeId", "data-v-b1861a4a"]]), Wt = Math.min, Gt = Math.max, Kt = Math.round, qt = (e) => ({
|
|
246
|
+
}), Ht = Math.min, Ut = Math.max, Wt = Math.round, Gt = (e) => ({
|
|
258
247
|
x: e,
|
|
259
248
|
y: e
|
|
260
|
-
}),
|
|
249
|
+
}), Kt = {
|
|
261
250
|
left: "right",
|
|
262
251
|
right: "left",
|
|
263
252
|
bottom: "top",
|
|
264
253
|
top: "bottom"
|
|
265
254
|
};
|
|
266
|
-
function
|
|
267
|
-
return
|
|
255
|
+
function qt(e, t, n) {
|
|
256
|
+
return Ut(e, Ht(t, n));
|
|
268
257
|
}
|
|
269
|
-
function
|
|
258
|
+
function Jt(e, t) {
|
|
270
259
|
return typeof e == "function" ? e(t) : e;
|
|
271
260
|
}
|
|
272
|
-
function
|
|
261
|
+
function Yt(e) {
|
|
273
262
|
return e.split("-")[0];
|
|
274
263
|
}
|
|
275
|
-
function
|
|
264
|
+
function Xt(e) {
|
|
276
265
|
return e.split("-")[1];
|
|
277
266
|
}
|
|
278
|
-
function
|
|
267
|
+
function Zt(e) {
|
|
279
268
|
return e === "x" ? "y" : "x";
|
|
280
269
|
}
|
|
281
|
-
function
|
|
270
|
+
function Qt(e) {
|
|
282
271
|
return e === "y" ? "height" : "width";
|
|
283
272
|
}
|
|
284
|
-
function
|
|
273
|
+
function $t(e) {
|
|
285
274
|
let t = e[0];
|
|
286
275
|
return t === "t" || t === "b" ? "y" : "x";
|
|
287
276
|
}
|
|
288
|
-
function
|
|
289
|
-
return $t(
|
|
277
|
+
function en(e) {
|
|
278
|
+
return Zt($t(e));
|
|
290
279
|
}
|
|
291
|
-
function
|
|
280
|
+
function tn(e, t, n) {
|
|
292
281
|
n === void 0 && (n = !1);
|
|
293
|
-
let r =
|
|
294
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
282
|
+
let r = Xt(e), i = en(e), a = Qt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
283
|
+
return t.reference[a] > t.floating[a] && (o = dn(o)), [o, dn(o)];
|
|
295
284
|
}
|
|
296
|
-
function
|
|
297
|
-
let t =
|
|
285
|
+
function nn(e) {
|
|
286
|
+
let t = dn(e);
|
|
298
287
|
return [
|
|
299
|
-
|
|
288
|
+
rn(e),
|
|
300
289
|
t,
|
|
301
|
-
|
|
290
|
+
rn(t)
|
|
302
291
|
];
|
|
303
292
|
}
|
|
304
|
-
function
|
|
293
|
+
function rn(e) {
|
|
305
294
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
306
295
|
}
|
|
307
|
-
var
|
|
308
|
-
function
|
|
296
|
+
var an = ["left", "right"], on = ["right", "left"], sn = ["top", "bottom"], cn = ["bottom", "top"];
|
|
297
|
+
function ln(e, t, n) {
|
|
309
298
|
switch (e) {
|
|
310
299
|
case "top":
|
|
311
|
-
case "bottom": return n ? t ?
|
|
300
|
+
case "bottom": return n ? t ? on : an : t ? an : on;
|
|
312
301
|
case "left":
|
|
313
|
-
case "right": return t ?
|
|
302
|
+
case "right": return t ? sn : cn;
|
|
314
303
|
default: return [];
|
|
315
304
|
}
|
|
316
305
|
}
|
|
317
|
-
function
|
|
318
|
-
let i =
|
|
319
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
306
|
+
function un(e, t, n, r) {
|
|
307
|
+
let i = Xt(e), a = ln(Yt(e), n === "start", r);
|
|
308
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(rn)))), a;
|
|
320
309
|
}
|
|
321
|
-
function
|
|
322
|
-
let t =
|
|
323
|
-
return
|
|
310
|
+
function dn(e) {
|
|
311
|
+
let t = Yt(e);
|
|
312
|
+
return Kt[t] + e.slice(t.length);
|
|
324
313
|
}
|
|
325
|
-
function
|
|
314
|
+
function fn(e) {
|
|
326
315
|
return {
|
|
327
316
|
top: e.top ?? 0,
|
|
328
317
|
right: e.right ?? 0,
|
|
@@ -330,15 +319,15 @@ function mn(e) {
|
|
|
330
319
|
left: e.left ?? 0
|
|
331
320
|
};
|
|
332
321
|
}
|
|
333
|
-
function
|
|
322
|
+
function pn(e) {
|
|
334
323
|
return typeof e == "number" ? {
|
|
335
324
|
top: e,
|
|
336
325
|
right: e,
|
|
337
326
|
bottom: e,
|
|
338
327
|
left: e
|
|
339
|
-
} :
|
|
328
|
+
} : fn(e);
|
|
340
329
|
}
|
|
341
|
-
function
|
|
330
|
+
function mn(e) {
|
|
342
331
|
let { x: t, y: n, width: r, height: i } = e;
|
|
343
332
|
return {
|
|
344
333
|
width: r,
|
|
@@ -352,8 +341,8 @@ function gn(e) {
|
|
|
352
341
|
};
|
|
353
342
|
}
|
|
354
343
|
// ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
355
|
-
function
|
|
356
|
-
let { reference: r, floating: i } = e, a =
|
|
344
|
+
function hn(e, t, n) {
|
|
345
|
+
let { reference: r, floating: i } = e, a = $t(t), o = en(t), s = Qt(o), c = Yt(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;
|
|
357
346
|
switch (c) {
|
|
358
347
|
case "top":
|
|
359
348
|
p = {
|
|
@@ -384,12 +373,12 @@ function _n(e, t, n) {
|
|
|
384
373
|
y: r.y
|
|
385
374
|
};
|
|
386
375
|
}
|
|
387
|
-
let m =
|
|
376
|
+
let m = Xt(t);
|
|
388
377
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
389
378
|
}
|
|
390
|
-
async function
|
|
379
|
+
async function gn(e, t) {
|
|
391
380
|
t === void 0 && (t = {});
|
|
392
|
-
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 } =
|
|
381
|
+
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 } = Jt(t, e), p = pn(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = mn(await i.getClippingRect({
|
|
393
382
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
394
383
|
boundary: c,
|
|
395
384
|
rootBoundary: l,
|
|
@@ -402,7 +391,7 @@ async function vn(e, t) {
|
|
|
402
391
|
} : 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(_)) || {
|
|
403
392
|
x: 1,
|
|
404
393
|
y: 1
|
|
405
|
-
}, y =
|
|
394
|
+
}, y = mn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
406
395
|
elements: o,
|
|
407
396
|
rect: g,
|
|
408
397
|
offsetParent: _,
|
|
@@ -415,15 +404,15 @@ async function vn(e, t) {
|
|
|
415
404
|
right: (y.right - h.right + p.right) / v.x
|
|
416
405
|
};
|
|
417
406
|
}
|
|
418
|
-
var
|
|
407
|
+
var _n = 50, vn = async (e, t, n) => {
|
|
419
408
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
420
409
|
...o,
|
|
421
|
-
detectOverflow:
|
|
410
|
+
detectOverflow: gn
|
|
422
411
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
423
412
|
reference: e,
|
|
424
413
|
floating: t,
|
|
425
414
|
strategy: i
|
|
426
|
-
}), { x: u, y: d } =
|
|
415
|
+
}), { x: u, y: d } = hn(l, r, c), f = r, p = 0, m = {};
|
|
427
416
|
for (let n = 0; n < a.length; n++) {
|
|
428
417
|
let h = a[n];
|
|
429
418
|
if (!h) continue;
|
|
@@ -444,11 +433,11 @@ var yn = 50, bn = async (e, t, n) => {
|
|
|
444
433
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
445
434
|
...m[g],
|
|
446
435
|
...b
|
|
447
|
-
}, x && p <
|
|
436
|
+
}, x && p < _n && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
448
437
|
reference: e,
|
|
449
438
|
floating: t,
|
|
450
439
|
strategy: i
|
|
451
|
-
}) : x.rects), {x: u, y: d} =
|
|
440
|
+
}) : x.rects), {x: u, y: d} = hn(l, f, c)), n = -1);
|
|
452
441
|
}
|
|
453
442
|
return {
|
|
454
443
|
x: u,
|
|
@@ -457,18 +446,18 @@ var yn = 50, bn = async (e, t, n) => {
|
|
|
457
446
|
strategy: i,
|
|
458
447
|
middlewareData: m
|
|
459
448
|
};
|
|
460
|
-
},
|
|
449
|
+
}, yn = (e) => ({
|
|
461
450
|
name: "arrow",
|
|
462
451
|
options: e,
|
|
463
452
|
async fn(t) {
|
|
464
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
453
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Jt(e, t) || {};
|
|
465
454
|
if (l == null) return {};
|
|
466
|
-
let d =
|
|
455
|
+
let d = pn(u), f = {
|
|
467
456
|
x: n,
|
|
468
457
|
y: r
|
|
469
|
-
}, p =
|
|
458
|
+
}, p = en(i), m = Qt(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;
|
|
470
459
|
C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
|
|
471
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
460
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Ht(d[_], T), ee = Ht(d[v], T), te = C - h[m] - ee, D = C / 2 - h[m] / 2 + w, ne = qt(E, D, te), re = !c.arrow && Xt(i) != null && D !== ne && a.reference[m] / 2 - (D < E ? E : ee) - h[m] / 2 < 0, ie = re ? D < E ? D - E : D - te : 0;
|
|
472
461
|
return {
|
|
473
462
|
[p]: f[p] + ie,
|
|
474
463
|
data: {
|
|
@@ -479,19 +468,19 @@ var yn = 50, bn = async (e, t, n) => {
|
|
|
479
468
|
reset: re
|
|
480
469
|
};
|
|
481
470
|
}
|
|
482
|
-
}),
|
|
471
|
+
}), bn = function(e) {
|
|
483
472
|
return e === void 0 && (e = {}), {
|
|
484
473
|
name: "flip",
|
|
485
474
|
options: e,
|
|
486
475
|
async fn(t) {
|
|
487
476
|
var n;
|
|
488
|
-
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 } =
|
|
477
|
+
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 } = Jt(e, t);
|
|
489
478
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
490
|
-
let g =
|
|
491
|
-
!d && x && b.push(...
|
|
479
|
+
let g = Yt(r), _ = $t(o), v = Yt(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [dn(o)] : nn(o)), x = p !== "none";
|
|
480
|
+
!d && x && b.push(...un(o, m, p, y));
|
|
492
481
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
493
482
|
if (l && w.push(C[g]), u) {
|
|
494
|
-
let e =
|
|
483
|
+
let e = tn(r, a, y);
|
|
495
484
|
w.push(C[e[0]], C[e[1]]);
|
|
496
485
|
}
|
|
497
486
|
if (T = [...T, {
|
|
@@ -499,7 +488,7 @@ var yn = 50, bn = async (e, t, n) => {
|
|
|
499
488
|
overflows: w
|
|
500
489
|
}], !w.every((e) => e <= 0)) {
|
|
501
490
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
502
|
-
if (t && (u !== "alignment" || _ ===
|
|
491
|
+
if (t && (u !== "alignment" || _ === $t(t) || T.every((e) => $t(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
503
492
|
data: {
|
|
504
493
|
index: e,
|
|
505
494
|
overflows: T
|
|
@@ -511,7 +500,7 @@ var yn = 50, bn = async (e, t, n) => {
|
|
|
511
500
|
case "bestFit": {
|
|
512
501
|
let e = T.filter((e) => {
|
|
513
502
|
if (x) {
|
|
514
|
-
let t =
|
|
503
|
+
let t = $t(e.placement);
|
|
515
504
|
return t === _ || t === "y";
|
|
516
505
|
}
|
|
517
506
|
return !0;
|
|
@@ -526,9 +515,9 @@ var yn = 50, bn = async (e, t, n) => {
|
|
|
526
515
|
return {};
|
|
527
516
|
}
|
|
528
517
|
};
|
|
529
|
-
},
|
|
530
|
-
async function
|
|
531
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
518
|
+
}, xn = /*#__PURE__*/ new Set(["left", "top"]);
|
|
519
|
+
async function Sn(e, t) {
|
|
520
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Yt(n), s = Xt(n), c = $t(n) === "y", l = xn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Jt(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
532
521
|
mainAxis: d,
|
|
533
522
|
crossAxis: 0,
|
|
534
523
|
alignmentAxis: null
|
|
@@ -545,13 +534,13 @@ async function wn(e, t) {
|
|
|
545
534
|
y: p * u
|
|
546
535
|
};
|
|
547
536
|
}
|
|
548
|
-
var
|
|
537
|
+
var Cn = function(e) {
|
|
549
538
|
return e === void 0 && (e = 0), {
|
|
550
539
|
name: "offset",
|
|
551
540
|
options: e,
|
|
552
541
|
async fn(t) {
|
|
553
542
|
var n;
|
|
554
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
543
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Sn(t, e);
|
|
555
544
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
556
545
|
x: r + s.x,
|
|
557
546
|
y: i + s.y,
|
|
@@ -562,7 +551,7 @@ var Tn = function(e) {
|
|
|
562
551
|
};
|
|
563
552
|
}
|
|
564
553
|
};
|
|
565
|
-
},
|
|
554
|
+
}, wn = function(e) {
|
|
566
555
|
return e === void 0 && (e = {}), {
|
|
567
556
|
name: "shift",
|
|
568
557
|
options: e,
|
|
@@ -573,10 +562,10 @@ var Tn = function(e) {
|
|
|
573
562
|
x: t,
|
|
574
563
|
y: n
|
|
575
564
|
};
|
|
576
|
-
} }, ...l } =
|
|
565
|
+
} }, ...l } = Jt(e, t), u = {
|
|
577
566
|
x: n,
|
|
578
567
|
y: r
|
|
579
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
568
|
+
}, d = await a.detectOverflow(t, l), f = $t(i), p = Zt(f), m = u[p], h = u[f], g = (e, t) => qt(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
|
|
580
569
|
o && (m = g(p, m)), s && (h = g(f, h));
|
|
581
570
|
let _ = c.fn({
|
|
582
571
|
...t,
|
|
@@ -598,39 +587,39 @@ var Tn = function(e) {
|
|
|
598
587
|
};
|
|
599
588
|
};
|
|
600
589
|
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
601
|
-
function
|
|
590
|
+
function Tn() {
|
|
602
591
|
return typeof window < "u";
|
|
603
592
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
593
|
+
function En(e) {
|
|
594
|
+
return On(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
606
595
|
}
|
|
607
596
|
function Z(e) {
|
|
608
597
|
var t;
|
|
609
598
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
610
599
|
}
|
|
600
|
+
function Dn(e) {
|
|
601
|
+
return ((On(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
602
|
+
}
|
|
603
|
+
function On(e) {
|
|
604
|
+
return Tn() ? e instanceof Node || e instanceof Z(e).Node : !1;
|
|
605
|
+
}
|
|
611
606
|
function kn(e) {
|
|
612
|
-
return (
|
|
607
|
+
return Tn() ? e instanceof Element || e instanceof Z(e).Element : !1;
|
|
613
608
|
}
|
|
614
609
|
function An(e) {
|
|
615
|
-
return
|
|
610
|
+
return Tn() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
|
|
616
611
|
}
|
|
617
612
|
function jn(e) {
|
|
618
|
-
return
|
|
613
|
+
return !Tn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
|
|
619
614
|
}
|
|
620
615
|
function Mn(e) {
|
|
621
|
-
|
|
616
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Un(e);
|
|
617
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
622
618
|
}
|
|
623
619
|
function Nn(e) {
|
|
624
|
-
return
|
|
620
|
+
return /^(table|td|th)$/.test(En(e));
|
|
625
621
|
}
|
|
626
622
|
function Pn(e) {
|
|
627
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } = Gn(e);
|
|
628
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
629
|
-
}
|
|
630
|
-
function Fn(e) {
|
|
631
|
-
return /^(table|td|th)$/.test(On(e));
|
|
632
|
-
}
|
|
633
|
-
function In(e) {
|
|
634
623
|
try {
|
|
635
624
|
if (e.matches(":popover-open")) return !0;
|
|
636
625
|
} catch {}
|
|
@@ -640,31 +629,31 @@ function In(e) {
|
|
|
640
629
|
return !1;
|
|
641
630
|
}
|
|
642
631
|
}
|
|
643
|
-
var
|
|
644
|
-
function
|
|
645
|
-
let t =
|
|
646
|
-
return
|
|
632
|
+
var Fn = /transform|translate|scale|rotate|perspective|filter/, In = /paint|layout|strict|content/, Ln = (e) => !!e && e !== "none", Rn;
|
|
633
|
+
function zn(e) {
|
|
634
|
+
let t = kn(e) ? Un(e) : e;
|
|
635
|
+
return Ln(t.transform) || Ln(t.translate) || Ln(t.scale) || Ln(t.rotate) || Ln(t.perspective) || !Vn() && (Ln(t.backdropFilter) || Ln(t.filter)) || Fn.test(t.willChange || "") || In.test(t.contain || "");
|
|
647
636
|
}
|
|
648
|
-
function
|
|
649
|
-
let t =
|
|
650
|
-
for (;
|
|
651
|
-
if (
|
|
652
|
-
if (
|
|
653
|
-
t =
|
|
637
|
+
function Bn(e) {
|
|
638
|
+
let t = Gn(e);
|
|
639
|
+
for (; An(t) && !Hn(t);) {
|
|
640
|
+
if (zn(t)) return t;
|
|
641
|
+
if (Pn(t)) return null;
|
|
642
|
+
t = Gn(t);
|
|
654
643
|
}
|
|
655
644
|
return null;
|
|
656
645
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
646
|
+
function Vn() {
|
|
647
|
+
return Rn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Rn;
|
|
659
648
|
}
|
|
660
|
-
function
|
|
661
|
-
return /^(html|body|#document)$/.test(
|
|
649
|
+
function Hn(e) {
|
|
650
|
+
return /^(html|body|#document)$/.test(En(e));
|
|
662
651
|
}
|
|
663
|
-
function
|
|
652
|
+
function Un(e) {
|
|
664
653
|
return Z(e).getComputedStyle(e);
|
|
665
654
|
}
|
|
666
|
-
function
|
|
667
|
-
return
|
|
655
|
+
function Wn(e) {
|
|
656
|
+
return kn(e) ? {
|
|
668
657
|
scrollLeft: e.scrollLeft,
|
|
669
658
|
scrollTop: e.scrollTop
|
|
670
659
|
} : {
|
|
@@ -672,101 +661,101 @@ function Kn(e) {
|
|
|
672
661
|
scrollTop: e.scrollY
|
|
673
662
|
};
|
|
674
663
|
}
|
|
675
|
-
function
|
|
676
|
-
if (
|
|
677
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
678
|
-
return
|
|
664
|
+
function Gn(e) {
|
|
665
|
+
if (En(e) === "html") return e;
|
|
666
|
+
let t = e.assignedSlot || e.parentNode || jn(e) && e.host || Dn(e);
|
|
667
|
+
return jn(t) ? t.host : t;
|
|
679
668
|
}
|
|
680
|
-
function
|
|
681
|
-
let t =
|
|
682
|
-
return
|
|
669
|
+
function Kn(e) {
|
|
670
|
+
let t = Gn(e);
|
|
671
|
+
return Hn(t) ? (e.ownerDocument || e).body : An(t) && Mn(t) ? t : Kn(t);
|
|
683
672
|
}
|
|
684
|
-
function
|
|
673
|
+
function qn(e, t, n) {
|
|
685
674
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
686
|
-
let r =
|
|
675
|
+
let r = Kn(e), i = r === e.ownerDocument?.body, a = Z(r);
|
|
687
676
|
if (i) {
|
|
688
|
-
let e =
|
|
689
|
-
return t.concat(a, a.visualViewport || [],
|
|
677
|
+
let e = Jn(a);
|
|
678
|
+
return t.concat(a, a.visualViewport || [], Mn(r) ? r : [], e && n ? qn(e) : []);
|
|
690
679
|
}
|
|
691
|
-
return t.concat(r,
|
|
680
|
+
return t.concat(r, qn(r, [], n));
|
|
692
681
|
}
|
|
693
|
-
function
|
|
682
|
+
function Jn(e) {
|
|
694
683
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
695
684
|
}
|
|
696
685
|
// ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
697
|
-
function
|
|
698
|
-
let t =
|
|
686
|
+
function Yn(e) {
|
|
687
|
+
let t = Un(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = An(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Wt(n) !== a || Wt(r) !== o;
|
|
699
688
|
return s && (n = a, r = o), {
|
|
700
689
|
width: n,
|
|
701
690
|
height: r,
|
|
702
691
|
$: s
|
|
703
692
|
};
|
|
704
693
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
694
|
+
function Xn(e) {
|
|
695
|
+
return kn(e) ? e : e.contextElement;
|
|
707
696
|
}
|
|
708
|
-
function
|
|
709
|
-
let t =
|
|
710
|
-
if (!
|
|
711
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
697
|
+
function Zn(e) {
|
|
698
|
+
let t = Xn(e);
|
|
699
|
+
if (!An(t)) return Gt(1);
|
|
700
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Yn(t), o = (a ? Wt(n.width) : n.width) / r, s = (a ? Wt(n.height) : n.height) / i;
|
|
712
701
|
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
|
|
713
702
|
x: o,
|
|
714
703
|
y: s
|
|
715
704
|
};
|
|
716
705
|
}
|
|
717
|
-
var
|
|
718
|
-
function
|
|
706
|
+
var Qn = /*#__PURE__*/ Gt(0);
|
|
707
|
+
function $n(e) {
|
|
719
708
|
let t = Z(e);
|
|
720
|
-
return !
|
|
709
|
+
return !Vn() || !t.visualViewport ? Qn : {
|
|
721
710
|
x: t.visualViewport.offsetLeft,
|
|
722
711
|
y: t.visualViewport.offsetTop
|
|
723
712
|
};
|
|
724
713
|
}
|
|
725
|
-
function
|
|
714
|
+
function er(e, t, n) {
|
|
726
715
|
return t === void 0 && (t = !1), !!n && t && n === Z(e);
|
|
727
716
|
}
|
|
728
|
-
function
|
|
717
|
+
function tr(e, t, n, r) {
|
|
729
718
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
730
|
-
let i = e.getBoundingClientRect(), a =
|
|
731
|
-
t && (r ?
|
|
732
|
-
let s =
|
|
719
|
+
let i = e.getBoundingClientRect(), a = Xn(e), o = Gt(1);
|
|
720
|
+
t && (r ? kn(r) && (o = Zn(r)) : o = Zn(e));
|
|
721
|
+
let s = er(a, n, r) ? $n(a) : Gt(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;
|
|
733
722
|
if (a && r) {
|
|
734
|
-
let e = Z(a), t =
|
|
723
|
+
let e = Z(a), t = kn(r) ? Z(r) : r, n = e, i = Jn(n);
|
|
735
724
|
for (; i && t !== n;) {
|
|
736
|
-
let e =
|
|
737
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i =
|
|
725
|
+
let e = Zn(i), t = i.getBoundingClientRect(), r = Un(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 = Z(i), i = Jn(n);
|
|
738
727
|
}
|
|
739
728
|
}
|
|
740
|
-
return
|
|
729
|
+
return mn({
|
|
741
730
|
width: u,
|
|
742
731
|
height: d,
|
|
743
732
|
x: c,
|
|
744
733
|
y: l
|
|
745
734
|
});
|
|
746
735
|
}
|
|
747
|
-
function
|
|
748
|
-
let n =
|
|
749
|
-
return t ? t.left + n :
|
|
736
|
+
function nr(e, t) {
|
|
737
|
+
let n = Wn(e).scrollLeft;
|
|
738
|
+
return t ? t.left + n : tr(Dn(e)).left + n;
|
|
750
739
|
}
|
|
751
|
-
function
|
|
740
|
+
function rr(e, t) {
|
|
752
741
|
let n = e.getBoundingClientRect();
|
|
753
742
|
return {
|
|
754
|
-
x: n.left + t.scrollLeft -
|
|
743
|
+
x: n.left + t.scrollLeft - nr(e, n),
|
|
755
744
|
y: n.top + t.scrollTop
|
|
756
745
|
};
|
|
757
746
|
}
|
|
758
|
-
function
|
|
759
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
747
|
+
function ir(e) {
|
|
748
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Dn(r), s = t ? Pn(t.floating) : !1;
|
|
760
749
|
if (r === o || s && a) return n;
|
|
761
750
|
let c = {
|
|
762
751
|
scrollLeft: 0,
|
|
763
752
|
scrollTop: 0
|
|
764
|
-
}, l =
|
|
765
|
-
if ((d || !a) && ((
|
|
766
|
-
let e =
|
|
767
|
-
l =
|
|
753
|
+
}, l = Gt(1), u = Gt(0), d = An(r);
|
|
754
|
+
if ((d || !a) && ((En(r) !== "body" || Mn(o)) && (c = Wn(r)), d)) {
|
|
755
|
+
let e = tr(r);
|
|
756
|
+
l = Zn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
768
757
|
}
|
|
769
|
-
let f = o && !d && !a ?
|
|
758
|
+
let f = o && !d && !a ? rr(o, c) : Gt(0);
|
|
770
759
|
return {
|
|
771
760
|
width: n.width * l.x,
|
|
772
761
|
height: n.height * l.y,
|
|
@@ -774,29 +763,29 @@ function or(e) {
|
|
|
774
763
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
775
764
|
};
|
|
776
765
|
}
|
|
777
|
-
function
|
|
766
|
+
function ar(e) {
|
|
778
767
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
779
768
|
}
|
|
780
|
-
function
|
|
781
|
-
let t =
|
|
782
|
-
return
|
|
769
|
+
function or(e) {
|
|
770
|
+
let t = Wn(e), n = e.ownerDocument.body, r = Ut(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Ut(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + nr(e), o = -t.scrollTop;
|
|
771
|
+
return Un(n).direction === "rtl" && (a += Ut(e.clientWidth, n.clientWidth) - r), {
|
|
783
772
|
width: r,
|
|
784
773
|
height: i,
|
|
785
774
|
x: a,
|
|
786
775
|
y: o
|
|
787
776
|
};
|
|
788
777
|
}
|
|
789
|
-
var
|
|
790
|
-
function
|
|
778
|
+
var sr = 25;
|
|
779
|
+
function cr(e, t, n) {
|
|
791
780
|
n === void 0 && (n = "viewport");
|
|
792
|
-
let r = n === "layoutViewport", i = Z(e), a =
|
|
781
|
+
let r = n === "layoutViewport", i = Z(e), a = Dn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
793
782
|
if (o) {
|
|
794
|
-
let e = !
|
|
783
|
+
let e = !Vn() || t === "fixed";
|
|
795
784
|
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
796
785
|
}
|
|
797
|
-
if (
|
|
786
|
+
if (nr(a) <= 0) {
|
|
798
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;
|
|
799
|
-
o <=
|
|
788
|
+
o <= sr && (s -= o);
|
|
800
789
|
}
|
|
801
790
|
return {
|
|
802
791
|
width: s,
|
|
@@ -805,8 +794,8 @@ function ur(e, t, n) {
|
|
|
805
794
|
y: u
|
|
806
795
|
};
|
|
807
796
|
}
|
|
808
|
-
function
|
|
809
|
-
let n =
|
|
797
|
+
function lr(e, t) {
|
|
798
|
+
let n = tr(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Zn(e);
|
|
810
799
|
return {
|
|
811
800
|
width: e.clientWidth * a.x,
|
|
812
801
|
height: e.clientHeight * a.y,
|
|
@@ -814,13 +803,13 @@ function dr(e, t) {
|
|
|
814
803
|
y: r * a.y
|
|
815
804
|
};
|
|
816
805
|
}
|
|
817
|
-
function
|
|
806
|
+
function ur(e, t, n) {
|
|
818
807
|
let r;
|
|
819
|
-
if (t === "viewport" || t === "layoutViewport") r =
|
|
820
|
-
else if (t === "document") r =
|
|
821
|
-
else if (
|
|
808
|
+
if (t === "viewport" || t === "layoutViewport") r = cr(e, n, t);
|
|
809
|
+
else if (t === "document") r = or(Dn(e));
|
|
810
|
+
else if (kn(t)) r = lr(t, n);
|
|
822
811
|
else {
|
|
823
|
-
let n =
|
|
812
|
+
let n = $n(e);
|
|
824
813
|
r = {
|
|
825
814
|
x: t.x - n.x,
|
|
826
815
|
y: t.y - n.y,
|
|
@@ -828,23 +817,23 @@ function fr(e, t, n) {
|
|
|
828
817
|
height: t.height
|
|
829
818
|
};
|
|
830
819
|
}
|
|
831
|
-
return
|
|
820
|
+
return mn(r);
|
|
832
821
|
}
|
|
833
|
-
function
|
|
822
|
+
function dr(e, t) {
|
|
834
823
|
let n = t.get(e);
|
|
835
824
|
if (n) return n;
|
|
836
|
-
let r =
|
|
837
|
-
for (;
|
|
838
|
-
let e =
|
|
839
|
-
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o =
|
|
825
|
+
let r = qn(e, [], !1).filter((e) => kn(e) && En(e) !== "body"), i = null, a = Un(e).position === "fixed", o = a ? Gn(e) : e;
|
|
826
|
+
for (; kn(o) && !Hn(o);) {
|
|
827
|
+
let e = Un(o), t = zn(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 = Gn(o);
|
|
840
829
|
}
|
|
841
830
|
return t.set(e, r), r;
|
|
842
831
|
}
|
|
843
|
-
function
|
|
844
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
832
|
+
function fr(e) {
|
|
833
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Pn(t) ? [] : dr(t, this._c) : [].concat(n), r], o = ur(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
845
834
|
for (let e = 1; e < a.length; e++) {
|
|
846
|
-
let n =
|
|
847
|
-
s =
|
|
835
|
+
let n = ur(t, a[e], i);
|
|
836
|
+
s = Ut(n.top, s), c = Ht(n.right, c), l = Ht(n.bottom, l), u = Ut(n.left, u);
|
|
848
837
|
}
|
|
849
838
|
return {
|
|
850
839
|
width: c - u,
|
|
@@ -853,24 +842,24 @@ function mr(e) {
|
|
|
853
842
|
y: s
|
|
854
843
|
};
|
|
855
844
|
}
|
|
856
|
-
function
|
|
857
|
-
let { width: t, height: n } =
|
|
845
|
+
function pr(e) {
|
|
846
|
+
let { width: t, height: n } = Yn(e);
|
|
858
847
|
return {
|
|
859
848
|
width: t,
|
|
860
849
|
height: n
|
|
861
850
|
};
|
|
862
851
|
}
|
|
863
|
-
function
|
|
864
|
-
let r =
|
|
852
|
+
function mr(e, t, n) {
|
|
853
|
+
let r = An(t), i = Dn(t), a = n === "fixed", o = tr(e, !0, a, t), s = {
|
|
865
854
|
scrollLeft: 0,
|
|
866
855
|
scrollTop: 0
|
|
867
|
-
}, c =
|
|
868
|
-
if ((r || !a) && ((
|
|
869
|
-
let e =
|
|
856
|
+
}, c = Gt(0);
|
|
857
|
+
if ((r || !a) && ((En(t) !== "body" || Mn(i)) && (s = Wn(t)), r)) {
|
|
858
|
+
let e = tr(t, !0, a, t);
|
|
870
859
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
871
860
|
}
|
|
872
|
-
!r && i && (c.x =
|
|
873
|
-
let l = i && !r && !a ?
|
|
861
|
+
!r && i && (c.x = nr(i));
|
|
862
|
+
let l = i && !r && !a ? rr(i, s) : Gt(0);
|
|
874
863
|
return {
|
|
875
864
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
876
865
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -878,34 +867,34 @@ function gr(e, t, n) {
|
|
|
878
867
|
height: o.height
|
|
879
868
|
};
|
|
880
869
|
}
|
|
881
|
-
function
|
|
882
|
-
return
|
|
870
|
+
function hr(e) {
|
|
871
|
+
return Un(e).position === "static";
|
|
883
872
|
}
|
|
884
|
-
function
|
|
885
|
-
if (!
|
|
873
|
+
function gr(e, t) {
|
|
874
|
+
if (!An(e) || Un(e).position === "fixed") return null;
|
|
886
875
|
if (t) return t(e);
|
|
887
876
|
let n = e.offsetParent;
|
|
888
|
-
return
|
|
877
|
+
return Dn(e) === n && (n = n.ownerDocument.body), n;
|
|
889
878
|
}
|
|
890
|
-
function
|
|
879
|
+
function _r(e, t) {
|
|
891
880
|
let n = Z(e);
|
|
892
|
-
if (
|
|
893
|
-
if (!
|
|
894
|
-
let t =
|
|
895
|
-
for (; t && !
|
|
896
|
-
if (
|
|
897
|
-
t =
|
|
881
|
+
if (Pn(e)) return n;
|
|
882
|
+
if (!An(e)) {
|
|
883
|
+
let t = Gn(e);
|
|
884
|
+
for (; t && !Hn(t);) {
|
|
885
|
+
if (kn(t) && !hr(t)) return t;
|
|
886
|
+
t = Gn(t);
|
|
898
887
|
}
|
|
899
888
|
return n;
|
|
900
889
|
}
|
|
901
|
-
let r =
|
|
902
|
-
for (; r &&
|
|
903
|
-
return r &&
|
|
890
|
+
let r = gr(e, t);
|
|
891
|
+
for (; r && Nn(r) && hr(r);) r = gr(r, t);
|
|
892
|
+
return r && Hn(r) && hr(r) && !zn(r) ? n : r || Bn(e) || n;
|
|
904
893
|
}
|
|
905
|
-
var
|
|
906
|
-
let t = this.getOffsetParent ||
|
|
894
|
+
var vr = async function(e) {
|
|
895
|
+
let t = this.getOffsetParent || _r, n = this.getDimensions, r = await n(e.floating);
|
|
907
896
|
return {
|
|
908
|
-
reference:
|
|
897
|
+
reference: mr(e.reference, await t(e.floating), e.strategy),
|
|
909
898
|
floating: {
|
|
910
899
|
x: 0,
|
|
911
900
|
y: 0,
|
|
@@ -914,76 +903,76 @@ var br = async function(e) {
|
|
|
914
903
|
}
|
|
915
904
|
};
|
|
916
905
|
};
|
|
917
|
-
function
|
|
918
|
-
return
|
|
919
|
-
}
|
|
920
|
-
var
|
|
921
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
922
|
-
getDocumentElement:
|
|
923
|
-
getClippingRect:
|
|
924
|
-
getOffsetParent:
|
|
925
|
-
getElementRects:
|
|
926
|
-
getClientRects:
|
|
927
|
-
getDimensions:
|
|
928
|
-
getScale:
|
|
929
|
-
isElement:
|
|
930
|
-
isRTL:
|
|
931
|
-
},
|
|
906
|
+
function yr(e) {
|
|
907
|
+
return Un(e).direction === "rtl";
|
|
908
|
+
}
|
|
909
|
+
var br = {
|
|
910
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ir,
|
|
911
|
+
getDocumentElement: Dn,
|
|
912
|
+
getClippingRect: fr,
|
|
913
|
+
getOffsetParent: _r,
|
|
914
|
+
getElementRects: vr,
|
|
915
|
+
getClientRects: ar,
|
|
916
|
+
getDimensions: pr,
|
|
917
|
+
getScale: Zn,
|
|
918
|
+
isElement: kn,
|
|
919
|
+
isRTL: yr
|
|
920
|
+
}, xr = Cn, Sr = wn, Cr = bn, wr = yn, Tr = (e, t, n) => {
|
|
932
921
|
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
933
|
-
...
|
|
922
|
+
...br,
|
|
934
923
|
...i.platform,
|
|
935
924
|
_c: r
|
|
936
925
|
};
|
|
937
|
-
return
|
|
926
|
+
return vn(e, t, {
|
|
938
927
|
...i,
|
|
939
928
|
platform: a
|
|
940
929
|
});
|
|
941
930
|
};
|
|
942
931
|
// ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.44_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
943
|
-
function
|
|
932
|
+
function Er(e) {
|
|
944
933
|
return typeof e == "object" && !!e && "$el" in e;
|
|
945
934
|
}
|
|
946
|
-
function
|
|
947
|
-
if (
|
|
935
|
+
function Dr(e) {
|
|
936
|
+
if (Er(e)) {
|
|
948
937
|
let t = e.$el;
|
|
949
|
-
return
|
|
938
|
+
return On(t) && En(t) === "#comment" ? null : t;
|
|
950
939
|
}
|
|
951
940
|
return e;
|
|
952
941
|
}
|
|
953
|
-
function
|
|
942
|
+
function Or(e) {
|
|
954
943
|
return {
|
|
955
944
|
name: "arrow",
|
|
956
945
|
options: e,
|
|
957
946
|
fn(t) {
|
|
958
|
-
let n =
|
|
959
|
-
return n == null ? {} :
|
|
947
|
+
let n = Dr(pt(e.element));
|
|
948
|
+
return n == null ? {} : wr({
|
|
960
949
|
element: n,
|
|
961
950
|
padding: e.padding
|
|
962
951
|
}).fn(t);
|
|
963
952
|
}
|
|
964
953
|
};
|
|
965
954
|
}
|
|
966
|
-
function
|
|
955
|
+
function kr(e) {
|
|
967
956
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
968
957
|
}
|
|
969
|
-
function
|
|
970
|
-
let n =
|
|
958
|
+
function Ar(e, t) {
|
|
959
|
+
let n = kr(e);
|
|
971
960
|
return Math.round(t * n) / n;
|
|
972
961
|
}
|
|
973
|
-
function
|
|
962
|
+
function jr(e, t, n) {
|
|
974
963
|
n === void 0 && (n = {});
|
|
975
|
-
let r = n.whileElementsMounted, i =
|
|
964
|
+
let r = n.whileElementsMounted, i = M(() => pt(n.open) ?? !0), a = M(() => pt(n.middleware)), o = M(() => pt(n.placement) ?? "bottom"), s = M(() => pt(n.strategy) ?? "absolute"), c = M(() => pt(n.transform) ?? !0), l = M(() => Dr(e.value)), u = M(() => Dr(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = ft({}), g = U(!1), _ = M(() => {
|
|
976
965
|
let e = {
|
|
977
966
|
position: p.value,
|
|
978
967
|
left: "0",
|
|
979
968
|
top: "0"
|
|
980
969
|
};
|
|
981
970
|
if (!u.value) return e;
|
|
982
|
-
let t =
|
|
971
|
+
let t = Ar(u.value, d.value), n = Ar(u.value, f.value);
|
|
983
972
|
return c.value ? {
|
|
984
973
|
...e,
|
|
985
974
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
986
|
-
...
|
|
975
|
+
...kr(u.value) >= 1.5 && { willChange: "transform" }
|
|
987
976
|
} : {
|
|
988
977
|
position: p.value,
|
|
989
978
|
left: t + "px",
|
|
@@ -993,7 +982,7 @@ function Nr(e, t, n) {
|
|
|
993
982
|
function y() {
|
|
994
983
|
if (l.value == null || u.value == null) return;
|
|
995
984
|
let e = i.value;
|
|
996
|
-
|
|
985
|
+
Tr(l.value, u.value, {
|
|
997
986
|
middleware: a.value,
|
|
998
987
|
placement: o.value,
|
|
999
988
|
strategy: s.value
|
|
@@ -1015,7 +1004,7 @@ function Nr(e, t, n) {
|
|
|
1015
1004
|
o,
|
|
1016
1005
|
s,
|
|
1017
1006
|
i
|
|
1018
|
-
], y, { flush: "sync" }), Y([l, u], x, { flush: "sync" }), Y(i, S, { flush: "sync" }),
|
|
1007
|
+
], y, { flush: "sync" }), Y([l, u], x, { flush: "sync" }), Y(i, S, { flush: "sync" }), Ze() && at(b), {
|
|
1019
1008
|
x: dt(d),
|
|
1020
1009
|
y: dt(f),
|
|
1021
1010
|
strategy: dt(p),
|
|
@@ -1029,15 +1018,15 @@ function Nr(e, t, n) {
|
|
|
1029
1018
|
// src/client/theme-default/utils/keys.ts
|
|
1030
1019
|
var Q = /* @__PURE__ */ function(e) {
|
|
1031
1020
|
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.Backslash = "\\", e;
|
|
1032
|
-
}({}),
|
|
1021
|
+
}({}), Mr = { class: "td-kbd-shortcut" }, $ = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1033
1022
|
__name: "TdKbdShortcut",
|
|
1034
1023
|
props: { keys: {} },
|
|
1035
1024
|
setup(e) {
|
|
1036
1025
|
let t = {
|
|
1037
|
-
[Q.ArrowDown]:
|
|
1038
|
-
[Q.ArrowUp]:
|
|
1039
|
-
[Q.ArrowLeft]:
|
|
1040
|
-
[Q.ArrowRight]:
|
|
1026
|
+
[Q.ArrowDown]: xe,
|
|
1027
|
+
[Q.ArrowUp]: pe,
|
|
1028
|
+
[Q.ArrowLeft]: se,
|
|
1029
|
+
[Q.ArrowRight]: Ue,
|
|
1041
1030
|
[Q.Control]: Et,
|
|
1042
1031
|
[Q.Meta]: Et,
|
|
1043
1032
|
[Q.Alt]: Mt,
|
|
@@ -1049,18 +1038,18 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
1049
1038
|
[Q.Escape]: "Esc",
|
|
1050
1039
|
[Q.Tab]: "Tab",
|
|
1051
1040
|
[Q.Backspace]: "⌫"
|
|
1052
|
-
}, r =
|
|
1041
|
+
}, r = M(() => e.keys.map((e) => {
|
|
1053
1042
|
let r = t[e];
|
|
1054
1043
|
if (r) return { icon: r };
|
|
1055
1044
|
let i = n[e];
|
|
1056
1045
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
1057
1046
|
}));
|
|
1058
|
-
return (e, t) => (H(),
|
|
1047
|
+
return (e, t) => (H(), F("span", Mr, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("kbd", { key: t }, [e.icon ? (H(), N(ut(e.icon), {
|
|
1059
1048
|
key: 0,
|
|
1060
1049
|
size: 12
|
|
1061
|
-
})) : (H(),
|
|
1050
|
+
})) : (H(), F(j, { key: 1 }, [L(K(e.label), 1)], 64))]))), 128))]));
|
|
1062
1051
|
}
|
|
1063
|
-
}), [["__scopeId", "data-v-ad94203e"]]),
|
|
1052
|
+
}), [["__scopeId", "data-v-ad94203e"]]), Nr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1064
1053
|
inheritAttrs: !1,
|
|
1065
1054
|
__name: "TdTooltip",
|
|
1066
1055
|
props: {
|
|
@@ -1073,13 +1062,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
1073
1062
|
shortcut: { default: () => void 0 }
|
|
1074
1063
|
},
|
|
1075
1064
|
setup(e) {
|
|
1076
|
-
let t = J("trigger"), n = J("tooltip"), r = J("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } =
|
|
1065
|
+
let t = J("trigger"), n = J("tooltip"), r = J("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = jr(t, n, {
|
|
1077
1066
|
placement: e.placement,
|
|
1078
1067
|
middleware: [
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1068
|
+
xr(8),
|
|
1069
|
+
Cr(),
|
|
1070
|
+
Sr({ padding: 8 }),
|
|
1071
|
+
Or({ element: r })
|
|
1083
1072
|
]
|
|
1084
1073
|
});
|
|
1085
1074
|
function u() {
|
|
@@ -1097,33 +1086,33 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
1097
1086
|
i.value = !1;
|
|
1098
1087
|
}, 100);
|
|
1099
1088
|
}
|
|
1100
|
-
return (r, a) => (H(),
|
|
1089
|
+
return (r, a) => (H(), F(j, null, [I("span", tt({
|
|
1101
1090
|
ref_key: "trigger",
|
|
1102
1091
|
ref: t
|
|
1103
1092
|
}, r.$attrs, {
|
|
1104
1093
|
class: "td-tooltip-trigger",
|
|
1105
1094
|
onMouseenter: d,
|
|
1106
1095
|
onMouseleave: f
|
|
1107
|
-
}), [G(r.$slots, "default", {}, void 0, !0)], 16), (H(),
|
|
1096
|
+
}), [G(r.$slots, "default", {}, void 0, !0)], 16), (H(), N(Ye, { to: "body" }, [i.value ? (H(), F("div", {
|
|
1108
1097
|
key: 0,
|
|
1109
1098
|
ref_key: "tooltip",
|
|
1110
1099
|
ref: n,
|
|
1111
1100
|
class: "td-tooltip",
|
|
1112
|
-
style:
|
|
1101
|
+
style: V(q(s)),
|
|
1113
1102
|
role: "tooltip",
|
|
1114
1103
|
onMouseenter: u,
|
|
1115
1104
|
onMouseleave: f
|
|
1116
1105
|
}, [
|
|
1117
|
-
|
|
1118
|
-
e.shortcut ? (H(),
|
|
1106
|
+
L(K(e.text) + " ", 1),
|
|
1107
|
+
e.shortcut ? (H(), N($, {
|
|
1119
1108
|
key: 0,
|
|
1120
1109
|
keys: e.shortcut,
|
|
1121
1110
|
class: "td-tooltip-shortcut"
|
|
1122
|
-
}, null, 8, ["keys"])) :
|
|
1123
|
-
|
|
1111
|
+
}, null, 8, ["keys"])) : P("", !0),
|
|
1112
|
+
I("div", {
|
|
1124
1113
|
ref: "arrowEl",
|
|
1125
1114
|
class: "td-tooltip-arrow",
|
|
1126
|
-
style:
|
|
1115
|
+
style: V({
|
|
1127
1116
|
left: q(c).arrow?.x === void 0 ? "" : `${q(c).arrow.x}px`,
|
|
1128
1117
|
top: q(c).arrow?.y === void 0 ? "" : `${q(c).arrow.y}px`,
|
|
1129
1118
|
...q(l).startsWith("bottom") ? { top: "-4px" } : {},
|
|
@@ -1132,9 +1121,26 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
1132
1121
|
...q(l).startsWith("left") ? { right: "-4px" } : {}
|
|
1133
1122
|
})
|
|
1134
1123
|
}, null, 4)
|
|
1135
|
-
], 36)) :
|
|
1124
|
+
], 36)) : P("", !0)]))], 64));
|
|
1136
1125
|
}
|
|
1137
|
-
}), [["__scopeId", "data-v-db48de27"]])
|
|
1126
|
+
}), [["__scopeId", "data-v-db48de27"]]), Pr = ["aria-label"], Fr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1127
|
+
__name: "TdButton",
|
|
1128
|
+
props: { label: {} },
|
|
1129
|
+
setup(e) {
|
|
1130
|
+
return (t, n) => (H(), N(Nr, {
|
|
1131
|
+
always: !!e.label,
|
|
1132
|
+
text: e.label,
|
|
1133
|
+
placement: "bottom"
|
|
1134
|
+
}, {
|
|
1135
|
+
default: X(() => [I("button", {
|
|
1136
|
+
type: "button",
|
|
1137
|
+
class: "td-icon-btn",
|
|
1138
|
+
"aria-label": e.label
|
|
1139
|
+
}, [G(t.$slots, "default", {}, void 0, !0)], 8, Pr)]),
|
|
1140
|
+
_: 3
|
|
1141
|
+
}, 8, ["always", "text"]));
|
|
1142
|
+
}
|
|
1143
|
+
}), [["__scopeId", "data-v-94181c7e"]]);
|
|
1138
1144
|
// src/client/theme-default/utils/renderInlineMarkup.ts
|
|
1139
1145
|
function Ir(e) {
|
|
1140
1146
|
let t = U(Lr(e()));
|
|
@@ -1147,48 +1153,48 @@ function Ir(e) {
|
|
|
1147
1153
|
let i = !0;
|
|
1148
1154
|
n(() => {
|
|
1149
1155
|
i = !1;
|
|
1150
|
-
}), import("../renderMath-
|
|
1156
|
+
}), import("../renderMath-e3scuxfY.js").then(({ renderInlineMarkup: e }) => {
|
|
1151
1157
|
i && (t.value = e(r));
|
|
1152
1158
|
});
|
|
1153
1159
|
}), t;
|
|
1154
1160
|
}
|
|
1155
1161
|
function Lr(e) {
|
|
1156
1162
|
let t = 0, n = "";
|
|
1157
|
-
for (let r of e.matchAll(
|
|
1163
|
+
for (let r of e.matchAll(Je)) n += f(e.slice(t, r.index)), r[1] === void 0 ? n += f(r[0]) : n += `<code>${f(r[1])}</code>`, t = r.index + r[0].length;
|
|
1158
1164
|
return n += f(e.slice(t)), n;
|
|
1159
1165
|
}
|
|
1160
1166
|
// src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
|
|
1161
|
-
var Rr = ["innerHTML"], zr = /* @__PURE__ */
|
|
1167
|
+
var Rr = ["innerHTML"], zr = /* @__PURE__ */ z({
|
|
1162
1168
|
__name: "TdTreeNodeLabel",
|
|
1163
1169
|
props: { text: {} },
|
|
1164
1170
|
setup(e) {
|
|
1165
1171
|
let t = Ir(() => e.text);
|
|
1166
|
-
return (e, n) => (H(),
|
|
1172
|
+
return (e, n) => (H(), F("span", { innerHTML: q(t) }, null, 8, Rr));
|
|
1167
1173
|
}
|
|
1168
1174
|
}), Br = ["aria-expanded"], Vr = { class: "td-tree-label-text" }, Hr = ["href"], Ur = { class: "td-tree-count" }, Wr = ["href"], Gr = ["href"], Kr = {
|
|
1169
1175
|
key: 2,
|
|
1170
1176
|
class: "td-tree-time"
|
|
1171
|
-
}, qr = 10, Jr = /*#__PURE__*/
|
|
1177
|
+
}, qr = 10, Jr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1172
1178
|
__name: "TdTreeNode",
|
|
1173
1179
|
props: {
|
|
1174
1180
|
node: {},
|
|
1175
1181
|
urlPrefix: { default: "" }
|
|
1176
1182
|
},
|
|
1177
1183
|
setup(n) {
|
|
1178
|
-
let r =
|
|
1184
|
+
let r = Le(), { withBase: i } = A(), a = M(() => w(n.urlPrefix, n.node.name)), o = M(() => l(n.node)), f = M(() => o.value ? t(o.value.filepath) : s(a.value)), p = M(() => i(f.value)), m = M(() => o.value?.label ?? c(n.node.name)), h = M(() => o.value?.icon ? Re(o.value.icon.name) : void 0), g = M(() => n.node.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath))), _ = M(() => 0 < n.node.entries.length), v = M(() => y(n.node));
|
|
1179
1185
|
function y(e) {
|
|
1180
1186
|
let t = 0;
|
|
1181
1187
|
for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
|
|
1182
1188
|
return t;
|
|
1183
1189
|
}
|
|
1184
|
-
let b = U(!e(a.value, r.path)), x = U(!1), S =
|
|
1190
|
+
let b = U(!e(a.value, r.path)), x = U(!1), S = M(() => g.value.filter((e) => e.kind === "file")), C = M(() => S.value.length), E = M(() => {
|
|
1185
1191
|
let e = 0;
|
|
1186
1192
|
for (let n of g.value) if (n.kind === "file") {
|
|
1187
1193
|
if (t(n.item.filepath) === r.path) return e;
|
|
1188
1194
|
e++;
|
|
1189
1195
|
}
|
|
1190
1196
|
return -1;
|
|
1191
|
-
}), ee =
|
|
1197
|
+
}), ee = M(() => {
|
|
1192
1198
|
if (C.value <= qr) return {
|
|
1193
1199
|
start: 0,
|
|
1194
1200
|
end: C.value
|
|
@@ -1203,7 +1209,7 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1203
1209
|
start: t,
|
|
1204
1210
|
end: n
|
|
1205
1211
|
};
|
|
1206
|
-
}), te =
|
|
1212
|
+
}), te = M(() => x.value ? 0 : ee.value.start), D = M(() => x.value ? 0 : Math.max(0, C.value - ee.value.end)), ne = M(() => {
|
|
1207
1213
|
if (x.value) return g.value;
|
|
1208
1214
|
let { start: e, end: t } = ee.value, n = 0;
|
|
1209
1215
|
return g.value.filter((r) => {
|
|
@@ -1224,101 +1230,101 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1224
1230
|
function ae(e) {
|
|
1225
1231
|
e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
|
|
1226
1232
|
}
|
|
1227
|
-
function
|
|
1233
|
+
function oe() {
|
|
1228
1234
|
b.value = !b.value;
|
|
1229
1235
|
}
|
|
1230
1236
|
return (e, n) => {
|
|
1231
1237
|
let r = lt("TdTreeNode", !0);
|
|
1232
|
-
return _.value ? (H(),
|
|
1238
|
+
return _.value ? (H(), F("div", {
|
|
1233
1239
|
key: 0,
|
|
1234
1240
|
class: "td-tree-node",
|
|
1235
1241
|
role: "treeitem",
|
|
1236
1242
|
"aria-expanded": !b.value
|
|
1237
|
-
}, [
|
|
1243
|
+
}, [I("div", {
|
|
1238
1244
|
class: "td-tree-label",
|
|
1239
1245
|
role: "button",
|
|
1240
1246
|
tabindex: "0",
|
|
1241
|
-
onClick:
|
|
1247
|
+
onClick: oe,
|
|
1242
1248
|
onKeydown: ae
|
|
1243
1249
|
}, [
|
|
1244
|
-
|
|
1250
|
+
R(q(de), {
|
|
1245
1251
|
size: 14,
|
|
1246
|
-
class:
|
|
1252
|
+
class: B(["td-tree-caret", { "is-collapsed": b.value }])
|
|
1247
1253
|
}, null, 8, ["class"]),
|
|
1248
|
-
|
|
1249
|
-
|
|
1254
|
+
I("span", Vr, K(m.value), 1),
|
|
1255
|
+
R(Nr, {
|
|
1250
1256
|
text: "Open index page",
|
|
1251
1257
|
always: ""
|
|
1252
1258
|
}, {
|
|
1253
|
-
default: X(() => [
|
|
1259
|
+
default: X(() => [I("a", {
|
|
1254
1260
|
href: p.value,
|
|
1255
|
-
class:
|
|
1261
|
+
class: B(["td-tree-index-btn", { "is-active": ie(f.value) }]),
|
|
1256
1262
|
onClick: n[0] ||= bt(() => {}, ["stop"])
|
|
1257
|
-
}, [h.value ? (H(),
|
|
1263
|
+
}, [h.value ? (H(), N(ut(h.value), {
|
|
1258
1264
|
key: 0,
|
|
1259
1265
|
size: 12
|
|
1260
|
-
})) : ie(f.value) ? (H(),
|
|
1266
|
+
})) : ie(f.value) ? (H(), N(q(kt), {
|
|
1261
1267
|
key: 1,
|
|
1262
1268
|
size: 12
|
|
1263
|
-
})) : (H(),
|
|
1269
|
+
})) : (H(), N(q(le), {
|
|
1264
1270
|
key: 2,
|
|
1265
1271
|
size: 12
|
|
1266
1272
|
}))], 10, Hr)]),
|
|
1267
1273
|
_: 1
|
|
1268
1274
|
}),
|
|
1269
|
-
|
|
1270
|
-
], 32),
|
|
1271
|
-
class:
|
|
1275
|
+
I("span", Ur, K(v.value), 1)
|
|
1276
|
+
], 32), I("div", {
|
|
1277
|
+
class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
|
|
1272
1278
|
role: "group"
|
|
1273
|
-
}, [
|
|
1274
|
-
o.value ? (H(),
|
|
1279
|
+
}, [I("div", null, [
|
|
1280
|
+
o.value ? (H(), F("a", {
|
|
1275
1281
|
key: 0,
|
|
1276
1282
|
href: p.value,
|
|
1277
|
-
class:
|
|
1278
|
-
}, [
|
|
1283
|
+
class: B(["td-tree-link td-tree-index-entry", { "is-active": ie(f.value) }])
|
|
1284
|
+
}, [R(q(fe), {
|
|
1279
1285
|
size: 14,
|
|
1280
1286
|
class: "td-tree-file-icon"
|
|
1281
|
-
}), n[1] ||=
|
|
1282
|
-
te.value > 0 ? (H(),
|
|
1287
|
+
}), n[1] ||= I("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, Wr)) : P("", !0),
|
|
1288
|
+
te.value > 0 ? (H(), F("button", {
|
|
1283
1289
|
key: 1,
|
|
1284
1290
|
class: "td-tree-more",
|
|
1285
1291
|
type: "button",
|
|
1286
1292
|
onClick: re
|
|
1287
|
-
}, K(te.value) + " more... ", 1)) :
|
|
1288
|
-
(H(!0),
|
|
1293
|
+
}, K(te.value) + " more... ", 1)) : P("", !0),
|
|
1294
|
+
(H(!0), F(j, null, W(ne.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(r, {
|
|
1289
1295
|
key: 0,
|
|
1290
1296
|
node: e.node,
|
|
1291
1297
|
"url-prefix": a.value
|
|
1292
|
-
}, null, 8, ["node", "url-prefix"])) : (H(),
|
|
1298
|
+
}, null, 8, ["node", "url-prefix"])) : (H(), F("a", {
|
|
1293
1299
|
key: 1,
|
|
1294
1300
|
href: q(i)(q(t)(e.item.filepath)),
|
|
1295
|
-
class:
|
|
1301
|
+
class: B(["td-tree-link", { "is-active": ie(q(t)(e.item.filepath)) }])
|
|
1296
1302
|
}, [
|
|
1297
|
-
e.item.icon && q(
|
|
1303
|
+
e.item.icon && q(Re)(e.item.icon.name) ? (H(), N(ut(q(Re)(e.item.icon.name)), {
|
|
1298
1304
|
key: 0,
|
|
1299
1305
|
size: 14,
|
|
1300
1306
|
class: "td-tree-file-icon"
|
|
1301
|
-
})) : (H(),
|
|
1307
|
+
})) : (H(), N(q(ge), {
|
|
1302
1308
|
key: 1,
|
|
1303
1309
|
size: 14,
|
|
1304
1310
|
class: "td-tree-file-icon"
|
|
1305
1311
|
})),
|
|
1306
|
-
|
|
1312
|
+
R(Nr, {
|
|
1307
1313
|
class: "td-tree-link-text",
|
|
1308
1314
|
text: q(T)(e.item.filepath, e.item.label)
|
|
1309
1315
|
}, {
|
|
1310
|
-
default: X(() => [
|
|
1316
|
+
default: X(() => [R(zr, { text: q(T)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
|
|
1311
1317
|
_: 2
|
|
1312
1318
|
}, 1032, ["text"]),
|
|
1313
|
-
e.item.fileMetadata ? (H(),
|
|
1319
|
+
e.item.fileMetadata ? (H(), F("span", Kr, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : P("", !0)
|
|
1314
1320
|
], 10, Gr))], 64))), 128)),
|
|
1315
|
-
D.value > 0 ? (H(),
|
|
1321
|
+
D.value > 0 ? (H(), F("button", {
|
|
1316
1322
|
key: 2,
|
|
1317
1323
|
class: "td-tree-more",
|
|
1318
1324
|
type: "button",
|
|
1319
1325
|
onClick: re
|
|
1320
|
-
}, K(D.value) + " more... ", 1)) :
|
|
1321
|
-
])], 2)], 8, Br)) :
|
|
1326
|
+
}, K(D.value) + " more... ", 1)) : P("", !0)
|
|
1327
|
+
])], 2)], 8, Br)) : P("", !0);
|
|
1322
1328
|
};
|
|
1323
1329
|
}
|
|
1324
1330
|
}), [["__scopeId", "data-v-f9c9c250"]]), Yr = {
|
|
@@ -1330,66 +1336,66 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1330
1336
|
}, $r = ["href"], ei = { class: "td-root-link-text" }, ti = {
|
|
1331
1337
|
key: 2,
|
|
1332
1338
|
class: "td-root-link-time"
|
|
1333
|
-
}, ni = /*#__PURE__*/
|
|
1339
|
+
}, ni = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1334
1340
|
__name: "TdContentNav",
|
|
1335
1341
|
props: { tree: {} },
|
|
1336
1342
|
setup(e) {
|
|
1337
|
-
let n =
|
|
1343
|
+
let n = Le(), { withBase: r } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath)));
|
|
1338
1344
|
function o(e) {
|
|
1339
1345
|
return n.path === e;
|
|
1340
1346
|
}
|
|
1341
|
-
return (e, n) => (H(),
|
|
1347
|
+
return (e, n) => (H(), F("nav", Yr, [I("div", Xr, [I("a", {
|
|
1342
1348
|
href: q(r)(i.value ? q(t)(i.value.filepath) : q(s)("/")),
|
|
1343
|
-
class:
|
|
1349
|
+
class: B(["td-root-link", { "is-active": o(i.value ? q(t)(i.value.filepath) : q(s)("/")) }]),
|
|
1344
1350
|
role: "treeitem"
|
|
1345
1351
|
}, [
|
|
1346
|
-
|
|
1352
|
+
R(q(ue), {
|
|
1347
1353
|
size: 14,
|
|
1348
1354
|
class: "td-root-link-icon"
|
|
1349
1355
|
}),
|
|
1350
|
-
n[0] ||=
|
|
1351
|
-
i.value ? (H(),
|
|
1352
|
-
], 10, Zr), (H(!0),
|
|
1356
|
+
n[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1357
|
+
i.value ? (H(), F("span", Qr, K(i.value.fileMetadata ? q(u)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : P("", !0)
|
|
1358
|
+
], 10, Zr), (H(!0), F(j, null, W(a.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(Jr, {
|
|
1353
1359
|
key: 0,
|
|
1354
1360
|
node: e.node
|
|
1355
|
-
}, null, 8, ["node"])) : (H(),
|
|
1361
|
+
}, null, 8, ["node"])) : (H(), F("a", {
|
|
1356
1362
|
key: 1,
|
|
1357
1363
|
href: q(r)(q(t)(e.item.filepath)),
|
|
1358
|
-
class:
|
|
1364
|
+
class: B(["td-root-link", { "is-active": o(q(t)(e.item.filepath)) }]),
|
|
1359
1365
|
role: "treeitem"
|
|
1360
1366
|
}, [
|
|
1361
|
-
e.item.icon && q(
|
|
1367
|
+
e.item.icon && q(Re)(e.item.icon.name) ? (H(), N(ut(q(Re)(e.item.icon.name)), {
|
|
1362
1368
|
key: 0,
|
|
1363
1369
|
size: 14,
|
|
1364
1370
|
class: "td-root-link-icon"
|
|
1365
|
-
})) : (H(),
|
|
1371
|
+
})) : (H(), N(q(ge), {
|
|
1366
1372
|
key: 1,
|
|
1367
1373
|
size: 14,
|
|
1368
1374
|
class: "td-root-link-icon"
|
|
1369
1375
|
})),
|
|
1370
|
-
|
|
1371
|
-
e.item.fileMetadata ? (H(),
|
|
1376
|
+
I("span", ei, K(q(T)(e.item.filepath, e.item.label)), 1),
|
|
1377
|
+
e.item.fileMetadata ? (H(), F("span", ti, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : P("", !0)
|
|
1372
1378
|
], 10, $r))], 64))), 128))])]));
|
|
1373
1379
|
}
|
|
1374
|
-
}), [["__scopeId", "data-v-038de594"]]), ri = { class: "td-footer" }, ii = { key: 0 }, ai = /*#__PURE__*/
|
|
1380
|
+
}), [["__scopeId", "data-v-038de594"]]), ri = { class: "td-footer" }, ii = { key: 0 }, ai = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1375
1381
|
__name: "TdFooter",
|
|
1376
1382
|
setup(e) {
|
|
1377
|
-
let t =
|
|
1378
|
-
return (e, r) => (H(),
|
|
1383
|
+
let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1384
|
+
return (e, r) => (H(), F("footer", ri, [r[0] ||= I("span", null, [L(" Powered by "), I("a", {
|
|
1379
1385
|
href: "https://github.com/huydo862003/typerighter",
|
|
1380
1386
|
target: "_blank",
|
|
1381
1387
|
rel: "noopener noreferrer",
|
|
1382
1388
|
class: "td-footer-link"
|
|
1383
|
-
}, "Typerighter")], -1), q(t).author || q(t).license ? (H(),
|
|
1384
|
-
q(t).license ? (H(),
|
|
1385
|
-
q(t).license && q(t).author ? (H(),
|
|
1386
|
-
q(t).author ? (H(),
|
|
1387
|
-
])) :
|
|
1389
|
+
}, "Typerighter")], -1), q(t).author || q(t).license ? (H(), F("span", ii, [
|
|
1390
|
+
q(t).license ? (H(), F(j, { key: 0 }, [L(K(q(t).license), 1)], 64)) : P("", !0),
|
|
1391
|
+
q(t).license && q(t).author ? (H(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
|
|
1392
|
+
q(t).author ? (H(), F(j, { key: 2 }, [L("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : P("", !0)
|
|
1393
|
+
])) : P("", !0)]));
|
|
1388
1394
|
}
|
|
1389
1395
|
}), [["__scopeId", "data-v-696804f8"]]), oi = {
|
|
1390
1396
|
key: 0,
|
|
1391
1397
|
class: "td-dropdown-panel"
|
|
1392
|
-
}, si = /*#__PURE__*/
|
|
1398
|
+
}, si = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1393
1399
|
inheritAttrs: !1,
|
|
1394
1400
|
__name: "TdDropdown",
|
|
1395
1401
|
props: {
|
|
@@ -1412,10 +1418,10 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1412
1418
|
typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
1413
1419
|
}), ot(() => {
|
|
1414
1420
|
typeof document < "u" && document.removeEventListener("click", r);
|
|
1415
|
-
}), (e, r) => (H(),
|
|
1421
|
+
}), (e, r) => (H(), F("span", tt({
|
|
1416
1422
|
ref_key: "wrapper",
|
|
1417
1423
|
ref: n
|
|
1418
|
-
}, e.$attrs, { class: "td-dropdown" }), [
|
|
1424
|
+
}, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [G(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), F("div", oi, [G(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
|
|
1419
1425
|
}
|
|
1420
1426
|
}), [["__scopeId", "data-v-645fe3f0"]]), ci = {
|
|
1421
1427
|
class: "td-breadcrumb",
|
|
@@ -1429,10 +1435,10 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1429
1435
|
}, mi = ["href"], hi = {
|
|
1430
1436
|
key: 1,
|
|
1431
1437
|
class: "td-breadcrumb-current"
|
|
1432
|
-
}, gi = 3, _i = /*#__PURE__*/
|
|
1438
|
+
}, gi = 3, _i = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1433
1439
|
__name: "TdBreadcrumb",
|
|
1434
1440
|
setup(e) {
|
|
1435
|
-
let t =
|
|
1441
|
+
let t = Le(), { withBase: n } = A(), i = U(!1), a = M(() => {
|
|
1436
1442
|
let e = r(t.path), i = [{
|
|
1437
1443
|
name: "Home",
|
|
1438
1444
|
href: n(s("/"))
|
|
@@ -1447,45 +1453,45 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1447
1453
|
});
|
|
1448
1454
|
}
|
|
1449
1455
|
return i;
|
|
1450
|
-
}), o =
|
|
1456
|
+
}), o = M(() => gi < a.value.length), l = M(() => a.value.slice(1, -2));
|
|
1451
1457
|
return Y(() => t.path, () => {
|
|
1452
1458
|
i.value = !1;
|
|
1453
|
-
}), (e, t) => (H(),
|
|
1459
|
+
}), (e, t) => (H(), F("nav", ci, [I("a", {
|
|
1454
1460
|
href: a.value[0].href,
|
|
1455
1461
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1456
|
-
}, K(a.value[0].name), 9, li), o.value ? (H(),
|
|
1457
|
-
t[2] ||=
|
|
1462
|
+
}, K(a.value[0].name), 9, li), o.value ? (H(), F(j, { key: 0 }, [
|
|
1463
|
+
t[2] ||= I("span", {
|
|
1458
1464
|
class: "td-breadcrumb-sep",
|
|
1459
1465
|
"aria-hidden": "true"
|
|
1460
1466
|
}, "/", -1),
|
|
1461
|
-
|
|
1467
|
+
R(si, {
|
|
1462
1468
|
open: i.value,
|
|
1463
1469
|
"onUpdate:open": t[0] ||= (e) => i.value = e
|
|
1464
1470
|
}, {
|
|
1465
|
-
trigger: X(() => [
|
|
1466
|
-
default: X(() => [(H(!0),
|
|
1471
|
+
trigger: X(() => [I("button", ui, [R(q(oe), { size: 14 })])]),
|
|
1472
|
+
default: X(() => [(H(!0), F(j, null, W(l.value, (e) => (H(), F("a", {
|
|
1467
1473
|
key: e.href,
|
|
1468
1474
|
href: e.href,
|
|
1469
1475
|
class: "td-breadcrumb-dropdown-item"
|
|
1470
1476
|
}, K(e.name), 9, di))), 128))]),
|
|
1471
1477
|
_: 1
|
|
1472
1478
|
}, 8, ["open"]),
|
|
1473
|
-
(H(!0),
|
|
1479
|
+
(H(!0), F(j, null, W(a.value.slice(-2), (e) => (H(), F(j, { key: e.href }, [t[1] ||= I("span", {
|
|
1474
1480
|
class: "td-breadcrumb-sep",
|
|
1475
1481
|
"aria-hidden": "true"
|
|
1476
|
-
}, "/", -1), e === a.value[a.value.length - 1] ? (H(),
|
|
1482
|
+
}, "/", -1), e === a.value[a.value.length - 1] ? (H(), F("span", pi, K(e.name), 1)) : (H(), F("a", {
|
|
1477
1483
|
key: 0,
|
|
1478
1484
|
href: e.href,
|
|
1479
1485
|
class: "td-breadcrumb-link"
|
|
1480
1486
|
}, K(e.name), 9, fi))], 64))), 128))
|
|
1481
|
-
], 64)) : (H(!0),
|
|
1487
|
+
], 64)) : (H(!0), F(j, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), F(j, { key: e.href }, [t[3] ||= I("span", {
|
|
1482
1488
|
class: "td-breadcrumb-sep",
|
|
1483
1489
|
"aria-hidden": "true"
|
|
1484
|
-
}, "/", -1), n < a.value.length - 2 ? (H(),
|
|
1490
|
+
}, "/", -1), n < a.value.length - 2 ? (H(), F("a", {
|
|
1485
1491
|
key: 0,
|
|
1486
1492
|
href: e.href,
|
|
1487
1493
|
class: "td-breadcrumb-link"
|
|
1488
|
-
}, K(e.name), 9, mi)) : (H(),
|
|
1494
|
+
}, K(e.name), 9, mi)) : (H(), F("span", hi, K(e.name), 1))], 64))), 128))]));
|
|
1489
1495
|
}
|
|
1490
1496
|
}), [["__scopeId", "data-v-89f87a49"]]), vi = {
|
|
1491
1497
|
key: 0,
|
|
@@ -1494,31 +1500,31 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1494
1500
|
"href",
|
|
1495
1501
|
"target",
|
|
1496
1502
|
"rel"
|
|
1497
|
-
], bi = /*#__PURE__*/
|
|
1503
|
+
], bi = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1498
1504
|
__name: "TdHeaderNavBar",
|
|
1499
1505
|
setup(e) {
|
|
1500
|
-
let t =
|
|
1506
|
+
let t = A(), { withBase: n } = t, r = Le();
|
|
1501
1507
|
function i(e) {
|
|
1502
1508
|
return !m(e) && r.path.startsWith(n(e));
|
|
1503
1509
|
}
|
|
1504
|
-
return (e, r) => q(t).nav?.length ? (H(),
|
|
1510
|
+
return (e, r) => q(t).nav?.length ? (H(), F("nav", vi, [(H(!0), F(j, null, W(q(t).nav, (e) => (H(), F("a", {
|
|
1505
1511
|
key: e.link,
|
|
1506
1512
|
href: q(m)(e.link) ? e.link : q(n)(e.link),
|
|
1507
1513
|
target: q(m)(e.link) ? "_blank" : void 0,
|
|
1508
1514
|
rel: q(m)(e.link) ? "noopener noreferrer" : void 0,
|
|
1509
|
-
class:
|
|
1515
|
+
class: B(["td-header-nav-link", { "is-active": i(e.link) }])
|
|
1510
1516
|
}, [
|
|
1511
|
-
e.icon && q(
|
|
1517
|
+
e.icon && q(Re)(e.icon) ? (H(), N(ut(q(Re)(e.icon)), {
|
|
1512
1518
|
key: 0,
|
|
1513
1519
|
size: 14,
|
|
1514
1520
|
class: "td-header-nav-icon"
|
|
1515
|
-
})) :
|
|
1516
|
-
|
|
1517
|
-
q(m)(e.link) ? (H(),
|
|
1521
|
+
})) : P("", !0),
|
|
1522
|
+
L(" " + K(e.title) + " ", 1),
|
|
1523
|
+
q(m)(e.link) ? (H(), N(q(ve), {
|
|
1518
1524
|
key: 1,
|
|
1519
1525
|
size: 14
|
|
1520
|
-
})) :
|
|
1521
|
-
], 10, yi))), 128))])) :
|
|
1526
|
+
})) : P("", !0)
|
|
1527
|
+
], 10, yi))), 128))])) : P("", !0);
|
|
1522
1528
|
}
|
|
1523
1529
|
}), [["__scopeId", "data-v-b7b3bb7c"]]), xi = {
|
|
1524
1530
|
key: 0,
|
|
@@ -1527,41 +1533,41 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
|
|
|
1527
1533
|
"href",
|
|
1528
1534
|
"target",
|
|
1529
1535
|
"rel"
|
|
1530
|
-
], Ci = /*#__PURE__*/
|
|
1536
|
+
], Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1531
1537
|
__name: "TdHeaderNavMenu",
|
|
1532
1538
|
setup(e) {
|
|
1533
|
-
let t =
|
|
1539
|
+
let t = A(), { withBase: n } = t, r = Le();
|
|
1534
1540
|
function i(e) {
|
|
1535
1541
|
return !m(e) && r.path.startsWith(n(e));
|
|
1536
1542
|
}
|
|
1537
|
-
return (e, r) => q(t).nav?.length ? (H(),
|
|
1543
|
+
return (e, r) => q(t).nav?.length ? (H(), F("nav", xi, [(H(!0), F(j, null, W(q(t).nav, (e) => (H(), F("a", {
|
|
1538
1544
|
key: e.link,
|
|
1539
1545
|
href: q(m)(e.link) ? e.link : q(n)(e.link),
|
|
1540
1546
|
target: q(m)(e.link) ? "_blank" : void 0,
|
|
1541
1547
|
rel: q(m)(e.link) ? "noopener noreferrer" : void 0,
|
|
1542
|
-
class:
|
|
1548
|
+
class: B(["td-menu-nav-item", { "is-active": i(e.link) }])
|
|
1543
1549
|
}, [
|
|
1544
|
-
e.icon ? (H(),
|
|
1550
|
+
e.icon ? (H(), N(Ne, {
|
|
1545
1551
|
key: 0,
|
|
1546
1552
|
name: e.icon,
|
|
1547
1553
|
size: 16
|
|
1548
|
-
}, null, 8, ["name"])) :
|
|
1549
|
-
|
|
1550
|
-
q(m)(e.link) ? (H(),
|
|
1554
|
+
}, null, 8, ["name"])) : P("", !0),
|
|
1555
|
+
I("span", null, K(e.title), 1),
|
|
1556
|
+
q(m)(e.link) ? (H(), N(q(ve), {
|
|
1551
1557
|
key: 1,
|
|
1552
1558
|
size: 14
|
|
1553
|
-
})) :
|
|
1554
|
-
], 10, Si))), 128))])) :
|
|
1559
|
+
})) : P("", !0)
|
|
1560
|
+
], 10, Si))), 128))])) : P("", !0);
|
|
1555
1561
|
}
|
|
1556
|
-
}), [["__scopeId", "data-v-8b23de5a"]]), wi = { class: "td-widget-checkbox" }, Ti = /*#__PURE__*/
|
|
1562
|
+
}), [["__scopeId", "data-v-8b23de5a"]]), wi = { class: "td-widget-checkbox" }, Ti = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1557
1563
|
__name: "TdWidgetCheckbox",
|
|
1558
1564
|
props: { value: {} },
|
|
1559
1565
|
setup(e) {
|
|
1560
|
-
return (t, n) => (H(),
|
|
1566
|
+
return (t, n) => (H(), F("span", wi, [e.value ? (H(), N(q(Pt), {
|
|
1561
1567
|
key: 0,
|
|
1562
1568
|
size: 16,
|
|
1563
1569
|
class: "td-widget-checkbox-icon is-checked"
|
|
1564
|
-
})) : (H(),
|
|
1570
|
+
})) : (H(), N(q(ze), {
|
|
1565
1571
|
key: 1,
|
|
1566
1572
|
size: 16,
|
|
1567
1573
|
class: "td-widget-checkbox-icon"
|
|
@@ -1616,7 +1622,7 @@ function Oi(e) {
|
|
|
1616
1622
|
var ki = {
|
|
1617
1623
|
key: 0,
|
|
1618
1624
|
class: "td-widget-relation-wrapper"
|
|
1619
|
-
}, Ai = ["href", "title"], ji = ["src", "alt"], Mi = ["href"], Ni = { class: "td-widget-file-name" }, Pi = ["href"], Fi = ["href"], Ii = { key: 1 }, Li = /*#__PURE__*/
|
|
1625
|
+
}, Ai = ["href", "title"], ji = ["src", "alt"], Mi = ["href"], Ni = { class: "td-widget-file-name" }, Pi = ["href"], Fi = ["href"], Ii = { key: 1 }, Li = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1620
1626
|
__name: "TdWidgetRelation",
|
|
1621
1627
|
props: {
|
|
1622
1628
|
value: {},
|
|
@@ -1626,78 +1632,78 @@ var ki = {
|
|
|
1626
1632
|
}
|
|
1627
1633
|
},
|
|
1628
1634
|
setup(e) {
|
|
1629
|
-
let { withBase: t } =
|
|
1630
|
-
return (a, o) => n.value ? (H(),
|
|
1635
|
+
let { withBase: t } = A(), n = M(() => Di(e.value)), r = M(() => n.value?.icon ? Re(n.value.icon.name) : void 0), i = M(() => n.value !== void 0 && m(n.value.url));
|
|
1636
|
+
return (a, o) => n.value ? (H(), F("span", ki, [n.value.isImage ? (H(), F("a", {
|
|
1631
1637
|
key: 0,
|
|
1632
1638
|
href: q(t)(n.value.url),
|
|
1633
1639
|
target: "_blank",
|
|
1634
1640
|
rel: "noopener noreferrer",
|
|
1635
1641
|
class: "td-widget-image-preview",
|
|
1636
1642
|
title: n.value.name
|
|
1637
|
-
}, [
|
|
1643
|
+
}, [I("img", {
|
|
1638
1644
|
src: q(t)(n.value.url),
|
|
1639
1645
|
alt: n.value.name,
|
|
1640
1646
|
class: "td-widget-image-img",
|
|
1641
1647
|
loading: "lazy"
|
|
1642
|
-
}, null, 8, ji)], 8, Ai)) : n.value.format || n.value.url.includes(".") ? (H(),
|
|
1648
|
+
}, null, 8, ji)], 8, Ai)) : n.value.format || n.value.url.includes(".") ? (H(), F("a", {
|
|
1643
1649
|
key: 1,
|
|
1644
1650
|
href: q(t)(n.value.url),
|
|
1645
1651
|
target: "_blank",
|
|
1646
1652
|
rel: "noopener noreferrer",
|
|
1647
1653
|
class: "td-widget-file-link"
|
|
1648
|
-
}, [
|
|
1654
|
+
}, [R(q(Me), { class: "td-widget-file-icon" }), I("span", Ni, K(n.value.name), 1)], 8, Mi)) : i.value ? (H(), F("a", {
|
|
1649
1655
|
key: 2,
|
|
1650
1656
|
href: n.value.url,
|
|
1651
1657
|
target: "_blank",
|
|
1652
1658
|
rel: "noopener noreferrer",
|
|
1653
1659
|
class: "td-widget-ref td-widget-ref-external"
|
|
1654
|
-
}, [
|
|
1660
|
+
}, [R(q(ve), {
|
|
1655
1661
|
size: 12,
|
|
1656
1662
|
class: "td-widget-external-icon"
|
|
1657
|
-
})], 8, Pi)) : (H(),
|
|
1663
|
+
})], 8, Pi)) : (H(), F("a", {
|
|
1658
1664
|
key: 3,
|
|
1659
1665
|
href: q(t)(n.value.url),
|
|
1660
1666
|
class: "td-widget-ref"
|
|
1661
|
-
}, [r.value && !e.hideIcon ? (H(),
|
|
1667
|
+
}, [r.value && !e.hideIcon ? (H(), N(ut(r.value), {
|
|
1662
1668
|
key: 0,
|
|
1663
1669
|
size: 14,
|
|
1664
1670
|
class: "td-widget-ref-icon"
|
|
1665
|
-
})) :
|
|
1671
|
+
})) : P("", !0), L(K(n.value.name), 1)], 8, Fi))])) : (H(), F("span", Ii, K(e.value), 1));
|
|
1666
1672
|
}
|
|
1667
|
-
}), [["__scopeId", "data-v-20319819"]]), Ri = { key: 0 }, zi = { class: "td-widget-list td-widget-list-icons" }, Bi = { key: 1 }, Vi = { class: "td-widget-list" }, Hi = 5, Ui = /*#__PURE__*/
|
|
1673
|
+
}), [["__scopeId", "data-v-20319819"]]), Ri = { key: 0 }, zi = { class: "td-widget-list td-widget-list-icons" }, Bi = { key: 1 }, Vi = { class: "td-widget-list" }, Hi = 5, Ui = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1668
1674
|
__name: "TdWidgetList",
|
|
1669
1675
|
props: {
|
|
1670
1676
|
definition: {},
|
|
1671
1677
|
value: {}
|
|
1672
1678
|
},
|
|
1673
1679
|
setup(e) {
|
|
1674
|
-
let t = U(!1), n =
|
|
1680
|
+
let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => e.definition.items?.widget === "relation"), i = M(() => r.value ? n.value.map((e) => Di(e)).filter((e) => e !== void 0) : []), a = M(() => r.value ? Math.max(0, i.value.length - Hi) : Math.max(0, n.value.length - Hi));
|
|
1675
1681
|
function o() {
|
|
1676
1682
|
t.value = !t.value;
|
|
1677
1683
|
}
|
|
1678
1684
|
function s(e) {
|
|
1679
1685
|
return t.value ? e : e.slice(0, Hi);
|
|
1680
1686
|
}
|
|
1681
|
-
return (e, c) => r.value ? (H(),
|
|
1687
|
+
return (e, c) => r.value ? (H(), F("div", Ri, [I("ul", zi, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [I("div", null, [(H(), N(ut(e.icon ? q(Re)(e.icon.name) ?? q(ge) : q(ge)), {
|
|
1682
1688
|
size: 14,
|
|
1683
1689
|
class: "td-widget-list-icon"
|
|
1684
|
-
}))]),
|
|
1690
|
+
}))]), R(Li, {
|
|
1685
1691
|
value: { $ref: e },
|
|
1686
1692
|
"hide-icon": ""
|
|
1687
|
-
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(),
|
|
1693
|
+
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), F("button", {
|
|
1688
1694
|
key: 0,
|
|
1689
1695
|
class: "td-widget-more",
|
|
1690
1696
|
type: "button",
|
|
1691
1697
|
onClick: o
|
|
1692
|
-
}, K(t.value ? "show less" : `+${a.value} more`), 1)) :
|
|
1698
|
+
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (H(), F("div", Bi, [I("ul", Vi, [(H(!0), F(j, null, W(s(n.value), (e, t) => (H(), F("li", { key: t }, [q(Di)(e) ? (H(), N(Li, {
|
|
1693
1699
|
key: 0,
|
|
1694
1700
|
value: e
|
|
1695
|
-
}, null, 8, ["value"])) : (H(),
|
|
1701
|
+
}, null, 8, ["value"])) : (H(), F(j, { key: 1 }, [L(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), F("button", {
|
|
1696
1702
|
key: 0,
|
|
1697
1703
|
class: "td-widget-more",
|
|
1698
1704
|
type: "button",
|
|
1699
1705
|
onClick: o
|
|
1700
|
-
}, K(t.value ? "show less" : `+${a.value} more`), 1)) :
|
|
1706
|
+
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
|
|
1701
1707
|
}
|
|
1702
1708
|
}), [["__scopeId", "data-v-bc659020"]]), Wi = [
|
|
1703
1709
|
{
|
|
@@ -1746,42 +1752,42 @@ function Ki(e) {
|
|
|
1746
1752
|
return Math.abs(t);
|
|
1747
1753
|
}
|
|
1748
1754
|
// src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1749
|
-
var qi = 5, Ji = /*#__PURE__*/
|
|
1755
|
+
var qi = 5, Ji = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1750
1756
|
__name: "TdWidgetMultiSelect",
|
|
1751
1757
|
props: { value: {} },
|
|
1752
1758
|
setup(e) {
|
|
1753
|
-
let t = U(!1), n =
|
|
1759
|
+
let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => t.value ? n.value : n.value.slice(0, qi)), i = M(() => Math.max(0, n.value.length - qi));
|
|
1754
1760
|
function a() {
|
|
1755
1761
|
t.value = !t.value;
|
|
1756
1762
|
}
|
|
1757
|
-
return (e, n) => (H(),
|
|
1763
|
+
return (e, n) => (H(), F(j, null, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("span", {
|
|
1758
1764
|
key: t,
|
|
1759
1765
|
class: "td-widget-pill",
|
|
1760
|
-
style:
|
|
1761
|
-
}, K(e), 5))), 128)), i.value > 0 ? (H(),
|
|
1766
|
+
style: V(q(Gi)(e))
|
|
1767
|
+
}, K(e), 5))), 128)), i.value > 0 ? (H(), F("button", {
|
|
1762
1768
|
key: 0,
|
|
1763
1769
|
class: "td-widget-more",
|
|
1764
1770
|
type: "button",
|
|
1765
1771
|
onClick: a
|
|
1766
|
-
}, K(t.value ? "show less" : `+${i.value} more`), 1)) :
|
|
1772
|
+
}, K(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
|
|
1767
1773
|
}
|
|
1768
|
-
}), [["__scopeId", "data-v-b3656329"]]), Yi = /*#__PURE__*/
|
|
1774
|
+
}), [["__scopeId", "data-v-b3656329"]]), Yi = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1769
1775
|
__name: "TdWidgetSelect",
|
|
1770
1776
|
props: { value: {} },
|
|
1771
1777
|
setup(e) {
|
|
1772
|
-
return (t, n) => (H(),
|
|
1778
|
+
return (t, n) => (H(), F("span", {
|
|
1773
1779
|
class: "td-widget-pill",
|
|
1774
|
-
style:
|
|
1780
|
+
style: V(q(Gi)(e.value))
|
|
1775
1781
|
}, K(e.value), 5));
|
|
1776
1782
|
}
|
|
1777
|
-
}), [["__scopeId", "data-v-b9e2b4fd"]]), Xi = ["href", "title"], Zi = ["src", "alt"], Qi = ["href"], $i = { class: "td-widget-file-name" }, ea = /*#__PURE__*/
|
|
1783
|
+
}), [["__scopeId", "data-v-b9e2b4fd"]]), Xi = ["href", "title"], Zi = ["src", "alt"], Qi = ["href"], $i = { class: "td-widget-file-name" }, ea = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1778
1784
|
__name: "TdWidgetText",
|
|
1779
1785
|
props: {
|
|
1780
1786
|
definition: {},
|
|
1781
1787
|
value: {}
|
|
1782
1788
|
},
|
|
1783
1789
|
setup(e) {
|
|
1784
|
-
let { withBase: t } =
|
|
1790
|
+
let { withBase: t } = A(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => Di(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && Oi({ 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"));
|
|
1785
1791
|
function c(t) {
|
|
1786
1792
|
if (t == null) return "";
|
|
1787
1793
|
if (typeof t == "object" && !Array.isArray(t)) {
|
|
@@ -1794,53 +1800,53 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1794
1800
|
}
|
|
1795
1801
|
return e.definition.widget === "date" ? _(String(t)) : String(t);
|
|
1796
1802
|
}
|
|
1797
|
-
return (t, a) => i.value ? (H(),
|
|
1803
|
+
return (t, a) => i.value ? (H(), F("a", {
|
|
1798
1804
|
key: 0,
|
|
1799
1805
|
href: o.value,
|
|
1800
1806
|
target: "_blank",
|
|
1801
1807
|
rel: "noopener noreferrer",
|
|
1802
1808
|
class: "td-widget-image-preview",
|
|
1803
1809
|
title: r.value ? r.value.name : n.value
|
|
1804
|
-
}, [
|
|
1810
|
+
}, [I("img", {
|
|
1805
1811
|
src: o.value,
|
|
1806
1812
|
alt: r.value ? r.value.name : n.value,
|
|
1807
1813
|
class: "td-widget-image-img",
|
|
1808
1814
|
loading: "lazy"
|
|
1809
|
-
}, null, 8, Zi)], 8, Xi)) : s.value ? (H(),
|
|
1815
|
+
}, null, 8, Zi)], 8, Xi)) : s.value ? (H(), F("a", {
|
|
1810
1816
|
key: 1,
|
|
1811
1817
|
href: o.value,
|
|
1812
1818
|
target: "_blank",
|
|
1813
1819
|
rel: "noopener noreferrer",
|
|
1814
1820
|
class: "td-widget-file-link"
|
|
1815
|
-
}, [
|
|
1821
|
+
}, [R(q(Me), { class: "td-widget-file-icon" }), I("span", $i, K(n.value.split("/").pop() ?? n.value), 1)], 8, Qi)) : (H(), F(j, { key: 2 }, [L(K(c(e.value)), 1)], 64));
|
|
1816
1822
|
}
|
|
1817
1823
|
}), [["__scopeId", "data-v-2ea0f146"]]), ta = {
|
|
1818
1824
|
key: 0,
|
|
1819
1825
|
class: "td-frontmatter-empty"
|
|
1820
|
-
}, na = /*#__PURE__*/
|
|
1826
|
+
}, na = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1821
1827
|
__name: "TdFrontmatterValue",
|
|
1822
1828
|
props: {
|
|
1823
1829
|
definition: {},
|
|
1824
1830
|
value: {}
|
|
1825
1831
|
},
|
|
1826
1832
|
setup(e) {
|
|
1827
|
-
return (t, n) => e.value === void 0 || e.value === null ? (H(),
|
|
1833
|
+
return (t, n) => e.value === void 0 || e.value === null ? (H(), F("span", ta, "Empty")) : e.definition.widget === "checkbox" ? (H(), N(Ti, {
|
|
1828
1834
|
key: 1,
|
|
1829
1835
|
value: e.value
|
|
1830
|
-
}, null, 8, ["value"])) : e.definition.widget === "select" ? (H(),
|
|
1836
|
+
}, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), N(Yi, {
|
|
1831
1837
|
key: 2,
|
|
1832
1838
|
value: e.value
|
|
1833
|
-
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(),
|
|
1839
|
+
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), N(Ji, {
|
|
1834
1840
|
key: 3,
|
|
1835
1841
|
value: e.value
|
|
1836
|
-
}, null, 8, ["value"])) : q(Di)(e.value) || e.definition.widget === "relation" ? (H(),
|
|
1842
|
+
}, null, 8, ["value"])) : q(Di)(e.value) || e.definition.widget === "relation" ? (H(), N(Li, {
|
|
1837
1843
|
key: 4,
|
|
1838
1844
|
value: e.value
|
|
1839
|
-
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(),
|
|
1845
|
+
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), N(Ui, {
|
|
1840
1846
|
key: 5,
|
|
1841
1847
|
definition: e.definition,
|
|
1842
1848
|
value: e.value
|
|
1843
|
-
}, null, 8, ["definition", "value"])) : (H(),
|
|
1849
|
+
}, null, 8, ["definition", "value"])) : (H(), N(ea, {
|
|
1844
1850
|
key: 6,
|
|
1845
1851
|
definition: e.definition,
|
|
1846
1852
|
value: e.value
|
|
@@ -1852,7 +1858,7 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1852
1858
|
}, ia = { class: "td-fm-rail-key" }, aa = { class: "td-fm-rail-value" }, oa = {
|
|
1853
1859
|
key: 1,
|
|
1854
1860
|
class: "td-fm-box"
|
|
1855
|
-
}, sa = { class: "td-fm-box-label" }, ca = { class: "td-fm-box-count" }, la = { class: "td-fm-box-toggle" }, ua = { class: "td-fm-box-body" }, da = { class: "td-fm-box-key" }, fa = { class: "td-fm-box-value" }, pa = /*#__PURE__*/
|
|
1861
|
+
}, sa = { class: "td-fm-box-label" }, ca = { class: "td-fm-box-count" }, la = { class: "td-fm-box-toggle" }, ua = { class: "td-fm-box-body" }, da = { class: "td-fm-box-key" }, fa = { class: "td-fm-box-value" }, pa = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1856
1862
|
__name: "TdFrontmatter",
|
|
1857
1863
|
props: {
|
|
1858
1864
|
mode: { default: "inline" },
|
|
@@ -1860,12 +1866,12 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1860
1866
|
frontmatter: {}
|
|
1861
1867
|
},
|
|
1862
1868
|
setup(e) {
|
|
1863
|
-
let t =
|
|
1869
|
+
let t = Ae(), n = M(() => {
|
|
1864
1870
|
if (e.schema) return t.value.schemas[e.schema];
|
|
1865
|
-
}), r =
|
|
1871
|
+
}), r = M(() => {
|
|
1866
1872
|
let t = e.frontmatter;
|
|
1867
1873
|
return t._type && t.fields && typeof t.fields == "object" && !Array.isArray(t.fields) ? t.fields : t;
|
|
1868
|
-
}), i =
|
|
1874
|
+
}), i = M(() => {
|
|
1869
1875
|
let e = n.value, t = r.value, i = [], a = /* @__PURE__ */ new Set();
|
|
1870
1876
|
e && Object.keys(e).forEach((e) => a.add(e)), Object.keys(t).forEach((e) => a.add(e));
|
|
1871
1877
|
for (let n of a) {
|
|
@@ -1879,10 +1885,10 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1879
1885
|
}), a = {
|
|
1880
1886
|
text: It,
|
|
1881
1887
|
checkbox: wt,
|
|
1882
|
-
select:
|
|
1888
|
+
select: Oe,
|
|
1883
1889
|
multiSelect: Ft,
|
|
1884
|
-
relation:
|
|
1885
|
-
list:
|
|
1890
|
+
relation: ve,
|
|
1891
|
+
list: be
|
|
1886
1892
|
};
|
|
1887
1893
|
function o(e) {
|
|
1888
1894
|
return a[e] ?? It;
|
|
@@ -1894,39 +1900,39 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1894
1900
|
function d() {
|
|
1895
1901
|
l.value = !l.value;
|
|
1896
1902
|
}
|
|
1897
|
-
return (t, n) => e.mode === "rail" && i.value.length > 0 ? (H(),
|
|
1903
|
+
return (t, n) => e.mode === "rail" && i.value.length > 0 ? (H(), F("div", ra, [I("button", {
|
|
1898
1904
|
type: "button",
|
|
1899
1905
|
class: "td-fm-rail-header",
|
|
1900
1906
|
onClick: d
|
|
1901
|
-
}, [n[0] ||=
|
|
1907
|
+
}, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(q(de), {
|
|
1902
1908
|
size: 14,
|
|
1903
|
-
class:
|
|
1904
|
-
}, null, 8, ["class"])]),
|
|
1909
|
+
class: B(["td-fm-rail-caret", { "is-collapsed": l.value }])
|
|
1910
|
+
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": l.value }]) }, [I("div", null, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F("div", {
|
|
1905
1911
|
key: e,
|
|
1906
1912
|
class: "td-fm-rail-row"
|
|
1907
|
-
}, [
|
|
1913
|
+
}, [I("span", ia, [(H(), N(ut(o(t.widget)), {
|
|
1908
1914
|
size: 12,
|
|
1909
1915
|
class: "td-fm-icon"
|
|
1910
|
-
})),
|
|
1916
|
+
})), L(" " + K(q(c)(e)), 1)]), I("span", aa, [R(na, {
|
|
1911
1917
|
definition: t,
|
|
1912
1918
|
value: r.value[e]
|
|
1913
|
-
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(),
|
|
1919
|
+
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(), F("div", oa, [I("button", {
|
|
1914
1920
|
type: "button",
|
|
1915
1921
|
class: "td-fm-box-header",
|
|
1916
1922
|
onClick: u
|
|
1917
|
-
}, [
|
|
1923
|
+
}, [I("span", sa, [n[1] ||= L("Properties ", -1), I("span", ca, K(i.value.length), 1)]), I("span", la, [L(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (H(), N(q(he), {
|
|
1918
1924
|
key: 1,
|
|
1919
1925
|
size: 14
|
|
1920
|
-
})) : (H(),
|
|
1926
|
+
})) : (H(), N(q(de), {
|
|
1921
1927
|
key: 0,
|
|
1922
1928
|
size: 14
|
|
1923
|
-
}))])]),
|
|
1929
|
+
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", ua, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F(j, { key: e }, [I("span", da, [(H(), N(ut(o(t.widget)), {
|
|
1924
1930
|
size: 12,
|
|
1925
1931
|
class: "td-fm-icon"
|
|
1926
|
-
})),
|
|
1932
|
+
})), L(" " + K(q(c)(e)), 1)]), I("span", fa, [R(na, {
|
|
1927
1933
|
definition: t,
|
|
1928
1934
|
value: r.value[e]
|
|
1929
|
-
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) :
|
|
1935
|
+
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
|
|
1930
1936
|
}
|
|
1931
1937
|
}), [["__scopeId", "data-v-88227032"]]);
|
|
1932
1938
|
// src/client/theme-default/composables/useMediaQuery.ts
|
|
@@ -1994,7 +2000,7 @@ function ba(e, t) {
|
|
|
1994
2000
|
// src/client/theme-default/composables/useMenu.ts
|
|
1995
2001
|
var xa = U(!1);
|
|
1996
2002
|
function Sa() {
|
|
1997
|
-
let e = ma("(width >= 64rem)"), t =
|
|
2003
|
+
let e = ma("(width >= 64rem)"), t = M(() => !e.value);
|
|
1998
2004
|
function n() {
|
|
1999
2005
|
xa.value = !xa.value;
|
|
2000
2006
|
}
|
|
@@ -2017,20 +2023,20 @@ function Sa() {
|
|
|
2017
2023
|
};
|
|
2018
2024
|
}
|
|
2019
2025
|
// src/client/theme-default/components/TdMenuButton.vue
|
|
2020
|
-
var Ca = /* @__PURE__ */
|
|
2026
|
+
var Ca = /* @__PURE__ */ z({
|
|
2021
2027
|
__name: "TdMenuButton",
|
|
2022
2028
|
setup(e) {
|
|
2023
2029
|
let { isOpen: t, toggle: n } = Sa();
|
|
2024
|
-
return (e, r) => (H(),
|
|
2030
|
+
return (e, r) => (H(), N(Fr, {
|
|
2025
2031
|
class: "td-menu-button",
|
|
2026
2032
|
label: q(t) ? "Close menu" : "Open menu",
|
|
2027
2033
|
"aria-expanded": q(t),
|
|
2028
2034
|
onClick: q(n)
|
|
2029
2035
|
}, {
|
|
2030
|
-
default: X(() => [q(t) ? (H(),
|
|
2036
|
+
default: X(() => [q(t) ? (H(), N(q(Pe), {
|
|
2031
2037
|
key: 0,
|
|
2032
2038
|
size: 20
|
|
2033
|
-
})) : (H(),
|
|
2039
|
+
})) : (H(), N(q(Be), {
|
|
2034
2040
|
key: 1,
|
|
2035
2041
|
size: 20
|
|
2036
2042
|
}))]),
|
|
@@ -2044,7 +2050,7 @@ var Ca = /* @__PURE__ */ B({
|
|
|
2044
2050
|
});
|
|
2045
2051
|
// src/client/theme-default/composables/usePreviousNext.ts
|
|
2046
2052
|
function wa() {
|
|
2047
|
-
let e =
|
|
2053
|
+
let e = Ae(), t = Le(), { withBase: n, title: r } = A(), i = M(() => {
|
|
2048
2054
|
let i = Ea(e.value.contentTree, r), a = i.findIndex((e) => e.url === t.path);
|
|
2049
2055
|
if (a === -1) return {};
|
|
2050
2056
|
let o = 0 < a ? i[a - 1] : void 0, s = a < i.length - 1 ? i[a + 1] : void 0;
|
|
@@ -2060,8 +2066,8 @@ function wa() {
|
|
|
2060
2066
|
};
|
|
2061
2067
|
});
|
|
2062
2068
|
return {
|
|
2063
|
-
previous:
|
|
2064
|
-
next:
|
|
2069
|
+
previous: M(() => i.value.previous),
|
|
2070
|
+
next: M(() => i.value.next)
|
|
2065
2071
|
};
|
|
2066
2072
|
}
|
|
2067
2073
|
function Ta(e, t, n) {
|
|
@@ -2093,48 +2099,47 @@ var Oa = {
|
|
|
2093
2099
|
}, Na = ["href"], Pa = { class: "td-prevnext-label" }, Fa = { class: "td-prevnext-title" }, Ia = {
|
|
2094
2100
|
key: 3,
|
|
2095
2101
|
class: "td-prevnext-spacer"
|
|
2096
|
-
}, La = /*#__PURE__*/
|
|
2102
|
+
}, La = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2097
2103
|
__name: "TdPreviousNext",
|
|
2098
2104
|
setup(e) {
|
|
2099
2105
|
let { previous: t, next: n } = wa();
|
|
2100
|
-
return (e, r) => q(t) || q(n) ? (H(),
|
|
2106
|
+
return (e, r) => q(t) || q(n) ? (H(), F("nav", Oa, [q(t) ? (H(), F("a", {
|
|
2101
2107
|
key: 0,
|
|
2102
2108
|
href: q(t).url,
|
|
2103
2109
|
class: "td-prevnext-link is-previous"
|
|
2104
|
-
}, [
|
|
2105
|
-
|
|
2110
|
+
}, [I("span", Aa, [
|
|
2111
|
+
R(q(_e), {
|
|
2106
2112
|
size: 14,
|
|
2107
2113
|
class: "td-prevnext-chevron"
|
|
2108
2114
|
}),
|
|
2109
|
-
r[0] ||=
|
|
2110
|
-
|
|
2111
|
-
]),
|
|
2115
|
+
r[0] ||= L(" Previous ", -1),
|
|
2116
|
+
R($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])
|
|
2117
|
+
]), I("span", ja, K(q(t).title), 1)], 8, ka)) : (H(), F("span", Ma)), q(n) ? (H(), F("a", {
|
|
2112
2118
|
key: 2,
|
|
2113
2119
|
href: q(n).url,
|
|
2114
2120
|
class: "td-prevnext-link is-next"
|
|
2115
|
-
}, [
|
|
2116
|
-
|
|
2117
|
-
r[1] ||=
|
|
2118
|
-
|
|
2121
|
+
}, [I("span", Pa, [
|
|
2122
|
+
R($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"]),
|
|
2123
|
+
r[1] ||= L(" Next ", -1),
|
|
2124
|
+
R(q(he), {
|
|
2119
2125
|
size: 14,
|
|
2120
2126
|
class: "td-prevnext-chevron"
|
|
2121
2127
|
})
|
|
2122
|
-
]),
|
|
2128
|
+
]), I("span", Fa, K(q(n).title), 1)], 8, Na)) : (H(), F("span", Ia))])) : P("", !0);
|
|
2123
2129
|
}
|
|
2124
2130
|
}), [["__scopeId", "data-v-b937f37a"]]), Ra = 100;
|
|
2125
2131
|
function za(e) {
|
|
2126
2132
|
let t = U(void 0), n = [], r;
|
|
2127
2133
|
function i() {
|
|
2128
2134
|
if (n.length === 0) return;
|
|
2129
|
-
|
|
2130
|
-
if (document.body.offsetHeight <= e + window.innerHeight) {
|
|
2135
|
+
if (document.body.offsetHeight <= window.scrollY + window.innerHeight) {
|
|
2131
2136
|
t.value = n.at(-1).id;
|
|
2132
2137
|
return;
|
|
2133
2138
|
}
|
|
2134
|
-
let
|
|
2135
|
-
for (let t of n) if (
|
|
2139
|
+
let e;
|
|
2140
|
+
for (let t of n) if (t.getBoundingClientRect().top <= Ra) e = t.id;
|
|
2136
2141
|
else break;
|
|
2137
|
-
t.value =
|
|
2142
|
+
t.value = e;
|
|
2138
2143
|
}
|
|
2139
2144
|
function a() {
|
|
2140
2145
|
r !== void 0 && cancelAnimationFrame(r), r = requestAnimationFrame(i);
|
|
@@ -2150,26 +2155,21 @@ function za(e) {
|
|
|
2150
2155
|
}), ot(() => {
|
|
2151
2156
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
2152
2157
|
}), Y(e, (e) => {
|
|
2153
|
-
typeof window < "u" &&
|
|
2158
|
+
typeof window < "u" && nt(() => o(e));
|
|
2154
2159
|
}, { immediate: !0 }), t;
|
|
2155
2160
|
}
|
|
2156
|
-
function Ba(e) {
|
|
2157
|
-
let t = 0, n = e;
|
|
2158
|
-
for (; n;) t += n.offsetTop, n = n.offsetParent;
|
|
2159
|
-
return t;
|
|
2160
|
-
}
|
|
2161
2161
|
// src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
|
|
2162
|
-
var
|
|
2162
|
+
var Ba = {
|
|
2163
2163
|
key: 0,
|
|
2164
2164
|
class: "td-toc-inline-wrap"
|
|
2165
|
-
},
|
|
2165
|
+
}, Va = { class: "td-toc-inline-list" }, Ha = ["href", "innerHTML"], Ua = {
|
|
2166
2166
|
key: 0,
|
|
2167
2167
|
class: "td-toc-inline-children"
|
|
2168
|
-
},
|
|
2168
|
+
}, Wa = ["href", "innerHTML"], Ga = {
|
|
2169
2169
|
key: 1,
|
|
2170
2170
|
class: "td-toc",
|
|
2171
2171
|
"data-testid": "toc"
|
|
2172
|
-
},
|
|
2172
|
+
}, Ka = { class: "td-toc-list" }, qa = ["href", "innerHTML"], Ja = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2173
2173
|
__name: "TdToc",
|
|
2174
2174
|
props: {
|
|
2175
2175
|
headings: {},
|
|
@@ -2187,55 +2187,60 @@ var Va = {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
},
|
|
2189
2189
|
setup(e) {
|
|
2190
|
-
let t =
|
|
2190
|
+
let t = M(() => {
|
|
2191
2191
|
let t = [];
|
|
2192
2192
|
for (let n of e.headings) {
|
|
2193
2193
|
t.push(n);
|
|
2194
2194
|
for (let e of n.children) t.push(e);
|
|
2195
2195
|
}
|
|
2196
2196
|
return t;
|
|
2197
|
-
}), n = e.static || e.inline ?
|
|
2197
|
+
}), n = e.static || e.inline ? M(() => void 0) : za(() => t.value), r = J("list");
|
|
2198
2198
|
return Y(n, () => {
|
|
2199
|
-
|
|
2200
|
-
r.value?.querySelector("a.is-active")
|
|
2199
|
+
nt(() => {
|
|
2200
|
+
let e = r.value, t = e?.querySelector("a.is-active");
|
|
2201
|
+
if (!e || !t) return;
|
|
2202
|
+
let n = e.closest(".td-toc") ?? e;
|
|
2203
|
+
if (n.scrollHeight <= n.clientHeight) return;
|
|
2204
|
+
let i = n.getBoundingClientRect(), a = t.getBoundingClientRect().top - i.top - n.clientHeight / 2 + t.clientHeight / 2;
|
|
2205
|
+
n.scrollTop += a;
|
|
2201
2206
|
});
|
|
2202
|
-
}), (r, i) => e.inline ? (H(),
|
|
2207
|
+
}), (r, i) => e.inline ? (H(), F("div", Ba, [i[0] ||= I("div", { class: "td-toc-inline-label" }, " On this page ", -1), I("ul", Va, [(H(!0), F(j, null, W(e.headings, (e) => (H(), F("li", {
|
|
2203
2208
|
key: e.slug,
|
|
2204
2209
|
class: "td-toc-inline-item"
|
|
2205
|
-
}, [
|
|
2210
|
+
}, [I("a", {
|
|
2206
2211
|
href: e.link,
|
|
2207
2212
|
class: "td-toc-inline-link is-h2",
|
|
2208
2213
|
innerHTML: q(g)(e.titleHtml)
|
|
2209
|
-
}, null, 8,
|
|
2214
|
+
}, null, 8, Ha), e.children.length ? (H(), F("ul", Ua, [(H(!0), F(j, null, W(e.children, (e) => (H(), F("li", { key: e.slug }, [I("a", {
|
|
2210
2215
|
href: e.link,
|
|
2211
2216
|
class: "td-toc-inline-link is-h3",
|
|
2212
2217
|
innerHTML: q(g)(e.titleHtml)
|
|
2213
|
-
}, null, 8,
|
|
2218
|
+
}, null, 8, Wa)]))), 128))])) : P("", !0)]))), 128))])])) : e.headings.length ? (H(), F("div", Ga, [I("div", {
|
|
2214
2219
|
ref: "list",
|
|
2215
|
-
class:
|
|
2216
|
-
}, [
|
|
2220
|
+
class: B(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
|
|
2221
|
+
}, [I("ul", Ka, [(H(!0), F(j, null, W(t.value, (e) => (H(), F("li", {
|
|
2217
2222
|
key: e.slug,
|
|
2218
|
-
class:
|
|
2223
|
+
class: B({
|
|
2219
2224
|
"td-toc-indent-1": e.level === 3,
|
|
2220
2225
|
"td-toc-indent-2": e.level === 4,
|
|
2221
2226
|
"td-toc-indent-3": e.level === 5
|
|
2222
2227
|
})
|
|
2223
|
-
}, [
|
|
2228
|
+
}, [I("a", {
|
|
2224
2229
|
href: e.link,
|
|
2225
|
-
class:
|
|
2230
|
+
class: B(["td-toc-link", { "is-active": q(n) === e.slug }]),
|
|
2226
2231
|
innerHTML: q(g)(e.titleHtml)
|
|
2227
|
-
}, null, 10,
|
|
2232
|
+
}, null, 10, qa)], 2))), 128))])], 2)])) : P("", !0);
|
|
2228
2233
|
}
|
|
2229
|
-
}), [["__scopeId", "data-v-
|
|
2234
|
+
}), [["__scopeId", "data-v-f02336c5"]]), Ya = {
|
|
2230
2235
|
key: 0,
|
|
2231
2236
|
class: "td-rail"
|
|
2232
|
-
},
|
|
2237
|
+
}, Xa = { class: "td-rail-inner" }, Za = {
|
|
2233
2238
|
class: "td-rail-indicators",
|
|
2234
2239
|
"aria-hidden": "true"
|
|
2235
|
-
},
|
|
2240
|
+
}, Qa = { class: "td-rail-panel" }, $a = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2236
2241
|
__name: "TdRail",
|
|
2237
2242
|
setup(e) {
|
|
2238
|
-
let { page: t } =
|
|
2243
|
+
let { page: t } = Ce(), n = M(() => {
|
|
2239
2244
|
let e = [];
|
|
2240
2245
|
for (let n of t.value.headings) {
|
|
2241
2246
|
e.push(n);
|
|
@@ -2243,19 +2248,19 @@ var Va = {
|
|
|
2243
2248
|
}
|
|
2244
2249
|
return e;
|
|
2245
2250
|
}), r = za(() => n.value);
|
|
2246
|
-
return (e, i) => q(t).headings.length > 1 ? (H(),
|
|
2251
|
+
return (e, i) => q(t).headings.length > 1 ? (H(), F("aside", Ya, [I("div", Xa, [I("div", Za, [(H(!0), F(j, null, W(n.value, (e) => (H(), F("div", {
|
|
2247
2252
|
key: e.slug,
|
|
2248
|
-
class:
|
|
2253
|
+
class: B(["td-rail-indicator", {
|
|
2249
2254
|
"is-h3": e.level === 3,
|
|
2250
2255
|
"is-active": q(r) === e.slug
|
|
2251
2256
|
}])
|
|
2252
|
-
}, null, 2))), 128))]),
|
|
2257
|
+
}, null, 2))), 128))]), I("div", Qa, [R(Ja, { headings: q(t).headings }, null, 8, ["headings"])])])])) : P("", !0);
|
|
2253
2258
|
}
|
|
2254
|
-
}), [["__scopeId", "data-v-ebea8dba"]]),
|
|
2259
|
+
}), [["__scopeId", "data-v-ebea8dba"]]), eo = {
|
|
2255
2260
|
class: "td-skeleton",
|
|
2256
2261
|
role: "status",
|
|
2257
2262
|
"aria-label": "Loading"
|
|
2258
|
-
},
|
|
2263
|
+
}, to = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2259
2264
|
__name: "TdSkeleton",
|
|
2260
2265
|
props: { lines: { default: 5 } },
|
|
2261
2266
|
setup(e) {
|
|
@@ -2269,13 +2274,13 @@ var Va = {
|
|
|
2269
2274
|
55,
|
|
2270
2275
|
72
|
|
2271
2276
|
];
|
|
2272
|
-
return (n, r) => (H(),
|
|
2277
|
+
return (n, r) => (H(), F("div", eo, [(H(!0), F(j, null, W(e.lines, (e) => (H(), F("div", {
|
|
2273
2278
|
key: e,
|
|
2274
2279
|
class: "td-skeleton-line",
|
|
2275
|
-
style:
|
|
2280
|
+
style: V({ width: `${t[(e - 1) % t.length]}%` })
|
|
2276
2281
|
}, null, 4))), 128))]));
|
|
2277
2282
|
}
|
|
2278
|
-
}), [["__scopeId", "data-v-f78bb079"]]),
|
|
2283
|
+
}), [["__scopeId", "data-v-f78bb079"]]), no = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2279
2284
|
__name: "TdSidebarNav",
|
|
2280
2285
|
props: {
|
|
2281
2286
|
tree: {},
|
|
@@ -2283,33 +2288,33 @@ var Va = {
|
|
|
2283
2288
|
ready: { type: Boolean }
|
|
2284
2289
|
},
|
|
2285
2290
|
setup(e) {
|
|
2286
|
-
let t =
|
|
2291
|
+
let t = Le(), n = J("scrollElement");
|
|
2287
2292
|
return Y(() => t.path, () => {
|
|
2288
|
-
|
|
2293
|
+
nt(() => {
|
|
2289
2294
|
n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
|
|
2290
2295
|
});
|
|
2291
|
-
}, { immediate: !0 }), (t, r) => (H(),
|
|
2296
|
+
}, { immediate: !0 }), (t, r) => (H(), F("div", {
|
|
2292
2297
|
ref_key: "scrollElement",
|
|
2293
2298
|
ref: n,
|
|
2294
2299
|
class: "td-sidebar-scroll"
|
|
2295
|
-
}, [!e.searchActive && !e.ready ? (H(),
|
|
2300
|
+
}, [!e.searchActive && !e.ready ? (H(), N(to, { key: 0 })) : e.searchActive ? P("", !0) : (H(), N(ni, {
|
|
2296
2301
|
key: 1,
|
|
2297
2302
|
tree: e.tree
|
|
2298
2303
|
}, null, 8, ["tree"]))], 512));
|
|
2299
2304
|
}
|
|
2300
|
-
}), [["__scopeId", "data-v-ca83b6cd"]]),
|
|
2305
|
+
}), [["__scopeId", "data-v-ca83b6cd"]]), ro = { class: "td-sidebar-icons" }, io = ["href", "aria-label"], ao = {
|
|
2301
2306
|
key: 1,
|
|
2302
2307
|
class: "td-sidebar-icon-sep"
|
|
2303
|
-
},
|
|
2308
|
+
}, oo = ["href", "aria-label"], so = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2304
2309
|
__name: "TdSidebarIcons",
|
|
2305
2310
|
props: { tree: {} },
|
|
2306
2311
|
emits: ["search"],
|
|
2307
2312
|
setup(n, { emit: r }) {
|
|
2308
|
-
let i = r, a =
|
|
2313
|
+
let i = r, a = Le(), { withBase: o } = A(), u = M(() => n.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), f = M(() => {
|
|
2309
2314
|
let e = [];
|
|
2310
2315
|
for (let r of n.tree.entries) {
|
|
2311
2316
|
if (r.kind !== "dir") continue;
|
|
2312
|
-
let n = r.node, i = w("", n.name), a = l(n), u = a ? t(a.filepath) : s(i), d = a?.label ?? c(n.name), f = a?.icon ?
|
|
2317
|
+
let n = r.node, i = w("", n.name), a = l(n), u = a ? t(a.filepath) : s(i), d = a?.label ?? c(n.name), f = a?.icon ? Re(a.icon.name) : void 0;
|
|
2313
2318
|
e.push({
|
|
2314
2319
|
label: d,
|
|
2315
2320
|
href: o(u),
|
|
@@ -2326,55 +2331,55 @@ var Va = {
|
|
|
2326
2331
|
function m(t) {
|
|
2327
2332
|
return a.path === t || e(t, a.path);
|
|
2328
2333
|
}
|
|
2329
|
-
return (e, n) => (H(),
|
|
2330
|
-
|
|
2334
|
+
return (e, n) => (H(), F("div", ro, [
|
|
2335
|
+
R(Nr, {
|
|
2331
2336
|
text: "Search",
|
|
2332
2337
|
always: ""
|
|
2333
2338
|
}, {
|
|
2334
|
-
default: X(() => [
|
|
2339
|
+
default: X(() => [I("button", {
|
|
2335
2340
|
class: "td-sidebar-icon-btn",
|
|
2336
2341
|
type: "button",
|
|
2337
2342
|
"aria-label": "Search",
|
|
2338
2343
|
onClick: p
|
|
2339
|
-
}, [
|
|
2344
|
+
}, [R(q(He), { size: 16 })])]),
|
|
2340
2345
|
_: 1
|
|
2341
2346
|
}),
|
|
2342
|
-
u.value ? (H(),
|
|
2347
|
+
u.value ? (H(), N(Nr, {
|
|
2343
2348
|
key: 0,
|
|
2344
2349
|
text: u.value.label ?? "Home",
|
|
2345
2350
|
always: ""
|
|
2346
2351
|
}, {
|
|
2347
|
-
default: X(() => [
|
|
2352
|
+
default: X(() => [I("a", {
|
|
2348
2353
|
href: q(o)(q(t)(u.value.filepath)),
|
|
2349
|
-
class:
|
|
2354
|
+
class: B(["td-sidebar-icon-btn", { "is-active": m(q(t)(u.value.filepath)) }]),
|
|
2350
2355
|
"aria-label": u.value.label ?? "Home"
|
|
2351
|
-
}, [
|
|
2356
|
+
}, [R(q(ue), { size: 16 })], 10, io)]),
|
|
2352
2357
|
_: 1
|
|
2353
|
-
}, 8, ["text"])) :
|
|
2354
|
-
f.value.length ? (H(),
|
|
2355
|
-
(H(!0),
|
|
2358
|
+
}, 8, ["text"])) : P("", !0),
|
|
2359
|
+
f.value.length ? (H(), F("div", ao)) : P("", !0),
|
|
2360
|
+
(H(!0), F(j, null, W(f.value, (e) => (H(), N(Nr, {
|
|
2356
2361
|
key: e.href,
|
|
2357
2362
|
text: e.label,
|
|
2358
2363
|
always: ""
|
|
2359
2364
|
}, {
|
|
2360
|
-
default: X(() => [
|
|
2365
|
+
default: X(() => [I("a", {
|
|
2361
2366
|
href: e.href,
|
|
2362
|
-
class:
|
|
2367
|
+
class: B(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
|
|
2363
2368
|
"aria-label": e.label
|
|
2364
|
-
}, [e.isFallback ? (H(),
|
|
2369
|
+
}, [e.isFallback ? (H(), N(q(le), {
|
|
2365
2370
|
key: 1,
|
|
2366
2371
|
size: 16
|
|
2367
|
-
})) : (H(),
|
|
2372
|
+
})) : (H(), N(ut(e.icon), {
|
|
2368
2373
|
key: 0,
|
|
2369
2374
|
size: 16
|
|
2370
|
-
}))], 10,
|
|
2375
|
+
}))], 10, oo)]),
|
|
2371
2376
|
_: 2
|
|
2372
2377
|
}, 1032, ["text"]))), 128))
|
|
2373
2378
|
]));
|
|
2374
2379
|
}
|
|
2375
|
-
}), [["__scopeId", "data-v-
|
|
2380
|
+
}), [["__scopeId", "data-v-48b69ea7"]]);
|
|
2376
2381
|
// src/client/theme-default/components/TdSiteSearch/highlight.ts
|
|
2377
|
-
function
|
|
2382
|
+
function co(e, t) {
|
|
2378
2383
|
if (!e || !t) return f(e);
|
|
2379
2384
|
let n = t.trim().split(/\s+/).filter(Boolean), r = f(e);
|
|
2380
2385
|
for (let e of n) {
|
|
@@ -2384,15 +2389,15 @@ function lo(e, t) {
|
|
|
2384
2389
|
return r;
|
|
2385
2390
|
}
|
|
2386
2391
|
// src/client/theme-default/components/TdSiteSearch/useSiteSearch.ts
|
|
2387
|
-
var
|
|
2388
|
-
function
|
|
2389
|
-
let e =
|
|
2392
|
+
var lo = 120;
|
|
2393
|
+
function uo() {
|
|
2394
|
+
let e = Fe(), t, n = ft([]), r = ft(!1);
|
|
2390
2395
|
Y(e, () => {
|
|
2391
2396
|
t = void 0;
|
|
2392
2397
|
});
|
|
2393
2398
|
function i() {
|
|
2394
2399
|
if (t) return t;
|
|
2395
|
-
if (e.value) return t =
|
|
2400
|
+
if (e.value) return t = $e(ae.loadJSON(e.value, {
|
|
2396
2401
|
fields: v,
|
|
2397
2402
|
storeFields: x
|
|
2398
2403
|
})), t;
|
|
@@ -2400,13 +2405,13 @@ function fo() {
|
|
|
2400
2405
|
function a(e, t) {
|
|
2401
2406
|
if (!e) return "";
|
|
2402
2407
|
let n = Object.keys(t);
|
|
2403
|
-
if (n.length === 0) return e.slice(0,
|
|
2408
|
+
if (n.length === 0) return e.slice(0, lo);
|
|
2404
2409
|
let r = e.toLowerCase(), i = e.length;
|
|
2405
2410
|
for (let e of n) {
|
|
2406
2411
|
let t = r.indexOf(e.toLowerCase());
|
|
2407
2412
|
t !== -1 && t < i && (i = t);
|
|
2408
2413
|
}
|
|
2409
|
-
let a = Math.max(0, i - 30), o = Math.min(e.length, a +
|
|
2414
|
+
let a = Math.max(0, i - 30), o = Math.min(e.length, a + lo), s = e.slice(a, o).trim();
|
|
2410
2415
|
return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
|
|
2411
2416
|
}
|
|
2412
2417
|
async function o(e) {
|
|
@@ -2450,31 +2455,31 @@ function fo() {
|
|
|
2450
2455
|
};
|
|
2451
2456
|
}
|
|
2452
2457
|
// src/client/theme-default/components/TdCommandPalette.vue?vue&type=script&setup=true&lang.ts
|
|
2453
|
-
var
|
|
2458
|
+
var fo = {
|
|
2454
2459
|
class: "td-palette",
|
|
2455
2460
|
role: "dialog",
|
|
2456
2461
|
"aria-modal": "true",
|
|
2457
2462
|
"aria-label": "Command palette"
|
|
2458
|
-
},
|
|
2463
|
+
}, po = { class: "td-palette-input-row" }, mo = {
|
|
2459
2464
|
ref: "results",
|
|
2460
2465
|
class: "td-palette-results"
|
|
2461
|
-
},
|
|
2466
|
+
}, ho = [
|
|
2462
2467
|
"href",
|
|
2463
2468
|
"onClick",
|
|
2464
2469
|
"onMouseenter"
|
|
2465
|
-
],
|
|
2470
|
+
], go = ["innerHTML"], _o = { class: "td-palette-item-path" }, vo = { class: "td-palette-group-label" }, yo = { class: "td-palette-item-label" }, bo = {
|
|
2466
2471
|
key: 1,
|
|
2467
2472
|
class: "td-palette-empty"
|
|
2468
|
-
},
|
|
2473
|
+
}, xo = { class: "td-palette-footer" }, So = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2469
2474
|
__name: "TdCommandPalette",
|
|
2470
2475
|
emits: ["toggle-sidebar", "show-shortcuts"],
|
|
2471
2476
|
setup(e, { expose: t, emit: r }) {
|
|
2472
|
-
let i = r, a = U(!1), o = U(""), s = U(0), c = J("input"), l = J("results"), u =
|
|
2477
|
+
let i = r, a = U(!1), o = U(""), s = U(0), c = J("input"), l = J("results"), u = Le(), d = Te(), { withBase: f } = A(), { previous: p, next: m } = wa(), { results: h, search: g, cancel: _ } = uo(), v = M(() => o.value.trim());
|
|
2473
2478
|
function y() {
|
|
2474
2479
|
a.value = !1, _();
|
|
2475
2480
|
}
|
|
2476
2481
|
function b() {
|
|
2477
|
-
o.value = "", a.value = !0, s.value = 0,
|
|
2482
|
+
o.value = "", a.value = !0, s.value = 0, nt(() => c.value?.focus());
|
|
2478
2483
|
}
|
|
2479
2484
|
t({
|
|
2480
2485
|
open: b,
|
|
@@ -2482,10 +2487,10 @@ var po = {
|
|
|
2482
2487
|
}), Y(v, (e, t, n) => {
|
|
2483
2488
|
n(() => _()), g(e), s.value = 0;
|
|
2484
2489
|
});
|
|
2485
|
-
let x =
|
|
2490
|
+
let x = M(() => {
|
|
2486
2491
|
let e = n(u.path);
|
|
2487
2492
|
return e === "/" ? void 0 : e;
|
|
2488
|
-
}), S =
|
|
2493
|
+
}), S = M(() => {
|
|
2489
2494
|
let e = [];
|
|
2490
2495
|
return m.value && e.push({
|
|
2491
2496
|
id: "nav-next",
|
|
@@ -2526,18 +2531,18 @@ var po = {
|
|
|
2526
2531
|
navigator.clipboard.writeText(window.location.href).catch(() => {}), y();
|
|
2527
2532
|
}
|
|
2528
2533
|
}), e;
|
|
2529
|
-
}), C =
|
|
2534
|
+
}), C = M(() => {
|
|
2530
2535
|
if (!v.value) return S.value;
|
|
2531
2536
|
let e = v.value.toLowerCase();
|
|
2532
2537
|
return S.value.filter((t) => t.label.toLowerCase().includes(e) || t.group.toLowerCase().includes(e));
|
|
2533
|
-
}), w =
|
|
2538
|
+
}), w = M(() => {
|
|
2534
2539
|
let e = /* @__PURE__ */ new Map();
|
|
2535
2540
|
for (let t of C.value) e.has(t.group) || e.set(t.group, []), e.get(t.group).push(t);
|
|
2536
2541
|
return [...e.entries()].map(([e, t]) => ({
|
|
2537
2542
|
name: e,
|
|
2538
2543
|
commands: t
|
|
2539
2544
|
}));
|
|
2540
|
-
}), T =
|
|
2545
|
+
}), T = M(() => h.value.length + C.value.length);
|
|
2541
2546
|
function E(e) {
|
|
2542
2547
|
return h.value.length + C.value.indexOf(e);
|
|
2543
2548
|
}
|
|
@@ -2567,16 +2572,16 @@ var po = {
|
|
|
2567
2572
|
requestAnimationFrame(() => {
|
|
2568
2573
|
l.value?.querySelector(".is-selected")?.scrollIntoView({ block: "nearest" });
|
|
2569
2574
|
});
|
|
2570
|
-
}), (e, t) => (H(),
|
|
2575
|
+
}), (e, t) => (H(), N(Ye, { to: "body" }, [a.value ? (H(), F(j, { key: 0 }, [I("div", {
|
|
2571
2576
|
class: "td-palette-scrim",
|
|
2572
2577
|
onClick: y
|
|
2573
|
-
}),
|
|
2574
|
-
|
|
2575
|
-
|
|
2578
|
+
}), I("div", fo, [
|
|
2579
|
+
I("div", po, [
|
|
2580
|
+
R(q(He), {
|
|
2576
2581
|
size: 14,
|
|
2577
2582
|
class: "td-palette-input-icon"
|
|
2578
2583
|
}),
|
|
2579
|
-
vt(
|
|
2584
|
+
vt(I("input", {
|
|
2580
2585
|
ref: "input",
|
|
2581
2586
|
"onUpdate:modelValue": t[0] ||= (e) => o.value = e,
|
|
2582
2587
|
class: "td-palette-input",
|
|
@@ -2586,54 +2591,53 @@ var po = {
|
|
|
2586
2591
|
spellcheck: "false",
|
|
2587
2592
|
onKeydown: ee
|
|
2588
2593
|
}, null, 544), [[ht, o.value]]),
|
|
2589
|
-
|
|
2594
|
+
I("button", {
|
|
2590
2595
|
class: "td-palette-esc",
|
|
2591
2596
|
type: "button",
|
|
2592
2597
|
"aria-label": "Close",
|
|
2593
2598
|
onClick: y
|
|
2594
2599
|
}, " esc ")
|
|
2595
2600
|
]),
|
|
2596
|
-
|
|
2597
|
-
q(h).length > 0 ? (H(),
|
|
2601
|
+
I("div", mo, [
|
|
2602
|
+
q(h).length > 0 ? (H(), F(j, { key: 0 }, [t[1] ||= I("div", { class: "td-palette-group-label" }, " Pages ", -1), (H(!0), F(j, null, W(q(h), (e, t) => (H(), F("a", {
|
|
2598
2603
|
key: e.id,
|
|
2599
2604
|
href: q(f)(e.id),
|
|
2600
|
-
class:
|
|
2605
|
+
class: B(["td-palette-item", { "is-selected": t === s.value }]),
|
|
2601
2606
|
onClick: bt(() => ne(t), ["prevent"]),
|
|
2602
2607
|
onMouseenter: () => s.value = t
|
|
2603
|
-
}, [
|
|
2608
|
+
}, [I("span", {
|
|
2604
2609
|
class: "td-palette-item-label",
|
|
2605
|
-
innerHTML: q(
|
|
2606
|
-
}, null, 8,
|
|
2607
|
-
(H(!0),
|
|
2610
|
+
innerHTML: q(co)(e.title, v.value)
|
|
2611
|
+
}, null, 8, go), I("span", _o, K(e.id), 1)], 42, ho))), 128))], 64)) : P("", !0),
|
|
2612
|
+
(H(!0), F(j, null, W(w.value, (e) => (H(), F(j, { key: e.name }, [I("div", vo, K(e.name), 1), (H(!0), F(j, null, W(e.commands, (e) => (H(), N(ut(e.href ? "a" : "button"), tt({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
|
|
2608
2613
|
class: ["td-palette-item", { "is-selected": E(e) === s.value }],
|
|
2609
2614
|
onClick: () => te(e),
|
|
2610
2615
|
onMouseenter: () => s.value = E(e)
|
|
2611
2616
|
}), {
|
|
2612
|
-
default: X(() => [
|
|
2617
|
+
default: X(() => [I("span", yo, K(e.label), 1), e.keys ? (H(), N($, {
|
|
2613
2618
|
key: 0,
|
|
2614
2619
|
keys: e.keys
|
|
2615
|
-
}, null, 8, ["keys"])) :
|
|
2620
|
+
}, null, 8, ["keys"])) : P("", !0)]),
|
|
2616
2621
|
_: 2
|
|
2617
2622
|
}, 1040, [
|
|
2618
2623
|
"class",
|
|
2619
2624
|
"onClick",
|
|
2620
2625
|
"onMouseenter"
|
|
2621
2626
|
]))), 128))], 64))), 128)),
|
|
2622
|
-
T.value === 0 && v.value ? (H(),
|
|
2627
|
+
T.value === 0 && v.value ? (H(), F("div", bo, " No results for \"" + K(v.value) + "\" ", 1)) : P("", !0)
|
|
2623
2628
|
], 512),
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
t[3] ||= R(" navigate", -1)
|
|
2629
|
+
I("div", xo, [
|
|
2630
|
+
I("span", null, [
|
|
2631
|
+
R($, { keys: [q(Q).ArrowUp] }, null, 8, ["keys"]),
|
|
2632
|
+
R($, { keys: [q(Q).ArrowDown] }, null, 8, ["keys"]),
|
|
2633
|
+
t[2] ||= L(" navigate ", -1)
|
|
2630
2634
|
]),
|
|
2631
|
-
|
|
2632
|
-
|
|
2635
|
+
I("span", null, [R($, { keys: [q(Q).Enter] }, null, 8, ["keys"]), t[3] ||= L(" select ", -1)]),
|
|
2636
|
+
I("span", null, [R($, { keys: [q(Q).Escape] }, null, 8, ["keys"]), t[4] ||= L(" close ", -1)])
|
|
2633
2637
|
])
|
|
2634
|
-
])], 64)) :
|
|
2638
|
+
])], 64)) : P("", !0)]));
|
|
2635
2639
|
}
|
|
2636
|
-
}), [["__scopeId", "data-v-
|
|
2640
|
+
}), [["__scopeId", "data-v-a0789270"]]), Co = ["onKeydown"], wo = { class: "td-shortcuts-header" }, To = { class: "td-shortcuts-table" }, Eo = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2637
2641
|
__name: "TdShortcutsDialog",
|
|
2638
2642
|
props: { open: { type: Boolean } },
|
|
2639
2643
|
emits: ["close"],
|
|
@@ -2643,11 +2647,11 @@ var po = {
|
|
|
2643
2647
|
n("close");
|
|
2644
2648
|
}
|
|
2645
2649
|
return Y(() => e.open, (e) => {
|
|
2646
|
-
e &&
|
|
2647
|
-
}), (t, n) => (H(),
|
|
2650
|
+
e && nt(() => r.value?.focus());
|
|
2651
|
+
}), (t, n) => (H(), N(Ye, { to: "body" }, [e.open ? (H(), F(j, { key: 0 }, [I("div", {
|
|
2648
2652
|
class: "td-shortcuts-scrim",
|
|
2649
2653
|
onClick: i
|
|
2650
|
-
}),
|
|
2654
|
+
}), I("div", {
|
|
2651
2655
|
ref: "dialog",
|
|
2652
2656
|
class: "td-shortcuts-dialog",
|
|
2653
2657
|
role: "dialog",
|
|
@@ -2655,30 +2659,30 @@ var po = {
|
|
|
2655
2659
|
"aria-label": "Keyboard shortcuts",
|
|
2656
2660
|
tabindex: "-1",
|
|
2657
2661
|
onKeydown: yt(bt(i, ["stop"]), ["esc"])
|
|
2658
|
-
}, [
|
|
2662
|
+
}, [I("div", wo, [n[0] ||= I("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), I("button", {
|
|
2659
2663
|
class: "td-shortcuts-close",
|
|
2660
2664
|
type: "button",
|
|
2661
2665
|
"aria-label": "Close",
|
|
2662
2666
|
onClick: i
|
|
2663
|
-
}, [
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
])])], 40,
|
|
2671
|
-
}
|
|
2672
|
-
}), [["__scopeId", "data-v-09d6a93c"]]),
|
|
2667
|
+
}, [R(q(Pe), { size: 16 })])]), I("table", To, [I("tbody", null, [
|
|
2668
|
+
I("tr", null, [n[1] ||= I("td", null, "Search", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).k] }, null, 8, ["keys"])])]),
|
|
2669
|
+
I("tr", null, [n[2] ||= I("td", null, "Commands", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).FSlash] }, null, 8, ["keys"])])]),
|
|
2670
|
+
I("tr", null, [n[3] ||= I("td", null, "Next page", -1), I("td", null, [R($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"])])]),
|
|
2671
|
+
I("tr", null, [n[4] ||= I("td", null, "Previous page", -1), I("td", null, [R($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])])]),
|
|
2672
|
+
I("tr", null, [n[5] ||= I("td", null, "Toggle sidebar", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).Backslash] }, null, 8, ["keys"])])]),
|
|
2673
|
+
I("tr", null, [n[6] ||= I("td", null, "Close", -1), I("td", null, [R($, { keys: [q(Q).Escape] }, null, 8, ["keys"])])])
|
|
2674
|
+
])])], 40, Co)], 64)) : P("", !0)]));
|
|
2675
|
+
}
|
|
2676
|
+
}), [["__scopeId", "data-v-09d6a93c"]]), Do = { class: "td-search" }, Oo = { class: "td-search-input-wrap" }, ko = {
|
|
2673
2677
|
key: 2,
|
|
2674
2678
|
class: "td-search-count"
|
|
2675
|
-
},
|
|
2679
|
+
}, Ao = {
|
|
2676
2680
|
key: 0,
|
|
2677
2681
|
class: "td-search-results"
|
|
2678
|
-
},
|
|
2682
|
+
}, jo = ["href"], Mo = ["innerHTML"], No = { class: "td-search-result-path" }, Po = ["innerHTML"], Fo = {
|
|
2679
2683
|
key: 1,
|
|
2680
2684
|
class: "td-search-empty"
|
|
2681
|
-
},
|
|
2685
|
+
}, Io = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2682
2686
|
__name: "TdSiteSearch",
|
|
2683
2687
|
props: {
|
|
2684
2688
|
active: {
|
|
@@ -2689,9 +2693,9 @@ var po = {
|
|
|
2689
2693
|
query: { default: "" },
|
|
2690
2694
|
queryModifiers: {}
|
|
2691
2695
|
},
|
|
2692
|
-
emits: /*@__PURE__*/
|
|
2696
|
+
emits: /*@__PURE__*/ et(["select"], ["update:active", "update:query"]),
|
|
2693
2697
|
setup(e, { expose: t, emit: n }) {
|
|
2694
|
-
let r = mt(e, "active"), i = mt(e, "query"), o = n, s =
|
|
2698
|
+
let r = mt(e, "active"), i = mt(e, "query"), o = n, s = Le(), { withBase: l } = A(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = uo(), h = U(-1), g = M(() => 0 < i.value.trim().length), _ = M(() => {
|
|
2695
2699
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
2696
2700
|
for (let n of u.value) {
|
|
2697
2701
|
let r = a(n.id), i = t.get(r);
|
|
@@ -2715,7 +2719,7 @@ var po = {
|
|
|
2715
2719
|
function v() {
|
|
2716
2720
|
i.value = "";
|
|
2717
2721
|
}
|
|
2718
|
-
let y =
|
|
2722
|
+
let y = M(() => _.value.flatMap((e) => e.results)), b = M(() => {
|
|
2719
2723
|
let e = /* @__PURE__ */ new Map();
|
|
2720
2724
|
for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
|
|
2721
2725
|
return e;
|
|
@@ -2755,13 +2759,13 @@ var po = {
|
|
|
2755
2759
|
get isFocused() {
|
|
2756
2760
|
return document.activeElement === w.value;
|
|
2757
2761
|
}
|
|
2758
|
-
}), (e, t) => (H(),
|
|
2759
|
-
|
|
2760
|
-
|
|
2762
|
+
}), (e, t) => (H(), F("div", Do, [
|
|
2763
|
+
I("div", Oo, [
|
|
2764
|
+
R(q(He), {
|
|
2761
2765
|
size: 14,
|
|
2762
2766
|
class: "td-search-icon"
|
|
2763
2767
|
}),
|
|
2764
|
-
vt(
|
|
2768
|
+
vt(I("input", {
|
|
2765
2769
|
ref_key: "searchInput",
|
|
2766
2770
|
ref: w,
|
|
2767
2771
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
@@ -2771,71 +2775,71 @@ var po = {
|
|
|
2771
2775
|
placeholder: "Search...",
|
|
2772
2776
|
onKeydown: x
|
|
2773
2777
|
}, null, 544), [[ht, i.value]]),
|
|
2774
|
-
!g.value && !q(d) ? (H(),
|
|
2778
|
+
!g.value && !q(d) ? (H(), N($, {
|
|
2775
2779
|
key: 0,
|
|
2776
2780
|
keys: [q(Q).Meta, q(Q).k],
|
|
2777
2781
|
class: "td-search-kbd"
|
|
2778
|
-
}, null, 8, ["keys"])) :
|
|
2779
|
-
q(d) || !q(f) ? (H(),
|
|
2782
|
+
}, null, 8, ["keys"])) : P("", !0),
|
|
2783
|
+
q(d) || !q(f) ? (H(), N(q(At), {
|
|
2780
2784
|
key: 1,
|
|
2781
2785
|
size: 12,
|
|
2782
2786
|
class: "td-search-spinner"
|
|
2783
|
-
})) : g.value ? (H(),
|
|
2784
|
-
i.value ? (H(),
|
|
2787
|
+
})) : g.value ? (H(), F("span", ko, K(q(u).length), 1)) : P("", !0),
|
|
2788
|
+
i.value ? (H(), F("button", {
|
|
2785
2789
|
key: 3,
|
|
2786
2790
|
class: "td-search-clear",
|
|
2787
2791
|
type: "button",
|
|
2788
2792
|
"aria-label": "Clear search",
|
|
2789
2793
|
onClick: v
|
|
2790
|
-
}, [
|
|
2794
|
+
}, [R(q(Pe), { size: 12 })])) : P("", !0)
|
|
2791
2795
|
]),
|
|
2792
|
-
g.value && q(u).length > 0 ? (H(),
|
|
2796
|
+
g.value && q(u).length > 0 ? (H(), F("div", Ao, [(H(!0), F(j, null, W(_.value, (e) => (H(), F("div", {
|
|
2793
2797
|
key: e.pageUrl,
|
|
2794
2798
|
class: "td-search-group"
|
|
2795
|
-
}, [(H(!0),
|
|
2799
|
+
}, [(H(!0), F(j, null, W(e.results, (e) => (H(), F("a", {
|
|
2796
2800
|
key: e.id,
|
|
2797
2801
|
href: q(l)(e.id),
|
|
2798
|
-
class:
|
|
2802
|
+
class: B(["td-search-result", {
|
|
2799
2803
|
"is-selected": b.value.get(e.id) === h.value,
|
|
2800
2804
|
"is-current": q(l)(e.id) === q(s).path
|
|
2801
2805
|
}]),
|
|
2802
2806
|
onClick: S
|
|
2803
2807
|
}, [
|
|
2804
|
-
|
|
2808
|
+
I("span", {
|
|
2805
2809
|
class: "td-search-result-title",
|
|
2806
|
-
innerHTML: q(
|
|
2807
|
-
}, null, 8,
|
|
2808
|
-
|
|
2809
|
-
e.excerpt ? (H(),
|
|
2810
|
+
innerHTML: q(co)(e.title, i.value)
|
|
2811
|
+
}, null, 8, Mo),
|
|
2812
|
+
I("span", No, K(e.id), 1),
|
|
2813
|
+
e.excerpt ? (H(), F("span", {
|
|
2810
2814
|
key: 0,
|
|
2811
2815
|
class: "td-search-result-excerpt",
|
|
2812
|
-
innerHTML: q(
|
|
2813
|
-
}, null, 8,
|
|
2814
|
-
], 10,
|
|
2815
|
-
g.value && q(u).length === 0 ? (H(),
|
|
2816
|
+
innerHTML: q(co)(e.excerpt, i.value)
|
|
2817
|
+
}, null, 8, Po)) : P("", !0)
|
|
2818
|
+
], 10, jo))), 128))]))), 128))])) : P("", !0),
|
|
2819
|
+
g.value && q(u).length === 0 ? (H(), F("div", Fo, " No results for \"" + K(i.value) + "\" ", 1)) : P("", !0)
|
|
2816
2820
|
]));
|
|
2817
2821
|
}
|
|
2818
|
-
}), [["__scopeId", "data-v-f42853f1"]]),
|
|
2822
|
+
}), [["__scopeId", "data-v-f42853f1"]]), Lo = /* @__PURE__ */ z({
|
|
2819
2823
|
__name: "TdThemeToggle",
|
|
2820
2824
|
setup(e) {
|
|
2821
|
-
let { isDark: t, toggle: n } = E();
|
|
2822
|
-
return (e,
|
|
2825
|
+
let { isDark: t, toggle: n, lightToggleStyle: r, darkToggleStyle: i } = E();
|
|
2826
|
+
return (e, a) => (H(), N(Fr, {
|
|
2823
2827
|
label: q(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
2824
2828
|
onClick: q(n)
|
|
2825
2829
|
}, {
|
|
2826
|
-
default: X(() => [
|
|
2827
|
-
|
|
2830
|
+
default: X(() => [R(q(Se), {
|
|
2831
|
+
style: V(q(i)),
|
|
2828
2832
|
size: 18
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2833
|
+
}, null, 8, ["style"]), R(q(Ve), {
|
|
2834
|
+
style: V(q(r)),
|
|
2831
2835
|
size: 18
|
|
2832
|
-
})
|
|
2836
|
+
}, null, 8, ["style"])]),
|
|
2833
2837
|
_: 1
|
|
2834
2838
|
}, 8, ["label", "onClick"]));
|
|
2835
2839
|
}
|
|
2836
2840
|
});
|
|
2837
2841
|
// src/client/theme-default/composables/useCopyCode.ts
|
|
2838
|
-
function
|
|
2842
|
+
function Ro() {
|
|
2839
2843
|
function e(e) {
|
|
2840
2844
|
let t = e.target?.closest(".td-code-copy, .copy");
|
|
2841
2845
|
if (!t) return;
|
|
@@ -2862,7 +2866,7 @@ function zo() {
|
|
|
2862
2866
|
});
|
|
2863
2867
|
}
|
|
2864
2868
|
// src/client/theme-default/composables/useCopyHeadingAnchor.ts
|
|
2865
|
-
function
|
|
2869
|
+
function zo() {
|
|
2866
2870
|
function e(e) {
|
|
2867
2871
|
let t = e.target?.closest(".td-header-anchor");
|
|
2868
2872
|
if (!t) return;
|
|
@@ -2879,11 +2883,11 @@ function Bo() {
|
|
|
2879
2883
|
});
|
|
2880
2884
|
}
|
|
2881
2885
|
// src/client/theme-default/composables/useResizableTable.ts
|
|
2882
|
-
var
|
|
2883
|
-
function
|
|
2886
|
+
var Bo = 6, Vo = 40;
|
|
2887
|
+
function Ho() {
|
|
2884
2888
|
let e, t = !1;
|
|
2885
2889
|
function n(e, t) {
|
|
2886
|
-
return e.getBoundingClientRect().right - t <
|
|
2890
|
+
return e.getBoundingClientRect().right - t < Bo;
|
|
2887
2891
|
}
|
|
2888
2892
|
function r(r) {
|
|
2889
2893
|
if (t) return;
|
|
@@ -2903,7 +2907,7 @@ function Uo() {
|
|
|
2903
2907
|
r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
|
|
2904
2908
|
function o(e) {
|
|
2905
2909
|
let t = e.clientX - i;
|
|
2906
|
-
r && (r.style.width = `${Math.max(
|
|
2910
|
+
r && (r.style.width = `${Math.max(Vo, a + t)}px`);
|
|
2907
2911
|
}
|
|
2908
2912
|
function s() {
|
|
2909
2913
|
t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
|
|
@@ -2917,13 +2921,13 @@ function Uo() {
|
|
|
2917
2921
|
});
|
|
2918
2922
|
}
|
|
2919
2923
|
// src/client/theme-default/components/TdDiagram.vue?vue&type=script&setup=true&lang.ts
|
|
2920
|
-
var
|
|
2924
|
+
var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = { class: "td-diagram-code" }, qo = { class: "td-diagram-code-number" }, Jo = { class: "td-diagram-code-column" }, Yo = { class: "td-diagram-toolbar" }, Xo = { class: "td-diagram-toolbar-label" }, Zo = { class: "td-diagram-segment" }, Qo = { class: "td-diagram-zoom" }, $o = {
|
|
2921
2925
|
key: 0,
|
|
2922
2926
|
class: "td-diagram-caption"
|
|
2923
|
-
},
|
|
2927
|
+
}, es = ["aria-label"], ts = { class: "td-diagram-modal-header" }, ns = { class: "td-diagram-modal-header-left" }, rs = { class: "td-diagram-modal-title" }, is = { class: "td-diagram-modal-chip" }, as = { class: "td-diagram-modal-header-right" }, os = ["aria-pressed"], ss = { class: "td-diagram-button-label" }, cs = { class: "td-diagram-modal-body" }, ls = {
|
|
2924
2928
|
key: 0,
|
|
2925
2929
|
class: "td-diagram-modal-code-panel"
|
|
2926
|
-
},
|
|
2930
|
+
}, us = { class: "td-diagram-modal-code-panel-header" }, ds = { class: "td-diagram-modal-code-panel-body" }, fs = { class: "td-diagram-code td-diagram-code--modal" }, ps = { class: "td-diagram-code-number" }, ms = { class: "td-diagram-code-column" }, hs = ["innerHTML"], gs = { class: "td-diagram-modal-hint" }, _s = .15, vs = 5, ys = 4, bs = .9, xs = .82, Ss = 1.25, Cs = .8, ws = 1.6, Ts = 1400, Es = 20, Ds = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2927
2931
|
__name: "TdDiagram",
|
|
2928
2932
|
props: {
|
|
2929
2933
|
svg: {},
|
|
@@ -2941,7 +2945,7 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
2941
2945
|
x: 0,
|
|
2942
2946
|
y: 0,
|
|
2943
2947
|
scale: 1
|
|
2944
|
-
}), h =
|
|
2948
|
+
}), h = M(() => {
|
|
2945
2949
|
let t = e.svg.match(/viewBox=["']([^"']+)["']/);
|
|
2946
2950
|
if (t) {
|
|
2947
2951
|
let e = t[1].split(/[\s,]+/);
|
|
@@ -2958,33 +2962,33 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
2958
2962
|
width: 400,
|
|
2959
2963
|
height: 300
|
|
2960
2964
|
};
|
|
2961
|
-
}), g =
|
|
2965
|
+
}), g = M(() => e.source.split("\n")), _ = M(() => g.value.length), v = M(() => `${Math.round(p.value.scale * 100)}%`), y = M(() => `${Math.round(m.value.scale * 100)}%`), b = M(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = M(() => ({
|
|
2962
2966
|
width: `${h.value.width}px`,
|
|
2963
2967
|
height: `${h.value.height}px`
|
|
2964
|
-
})), S =
|
|
2968
|
+
})), S = M(() => {
|
|
2965
2969
|
let { x: e, y: t, scale: n } = p.value;
|
|
2966
2970
|
return {
|
|
2967
2971
|
...x.value,
|
|
2968
2972
|
transform: `translate(${e}px, ${t}px) scale(${n})`
|
|
2969
2973
|
};
|
|
2970
|
-
}), C =
|
|
2974
|
+
}), C = M(() => {
|
|
2971
2975
|
let { x: e, y: t, scale: n } = m.value;
|
|
2972
2976
|
return {
|
|
2973
2977
|
...x.value,
|
|
2974
2978
|
transform: `translate(${e}px, ${t}px) scale(${n})`
|
|
2975
2979
|
};
|
|
2976
|
-
}), w =
|
|
2977
|
-
let { x: e, y: t, scale: n } = m.value, r =
|
|
2980
|
+
}), w = M(() => {
|
|
2981
|
+
let { x: e, y: t, scale: n } = m.value, r = Es * n;
|
|
2978
2982
|
return {
|
|
2979
2983
|
backgroundSize: `${r}px ${r}px`,
|
|
2980
2984
|
backgroundPosition: `${e % r}px ${t % r}px`
|
|
2981
2985
|
};
|
|
2982
2986
|
});
|
|
2983
2987
|
function T(e) {
|
|
2984
|
-
return Math.min(
|
|
2988
|
+
return Math.min(vs, Math.max(_s, e));
|
|
2985
2989
|
}
|
|
2986
2990
|
function E() {
|
|
2987
|
-
l.value = !1,
|
|
2991
|
+
l.value = !1, ze?.(), ze = void 0, s.value?.focus();
|
|
2988
2992
|
}
|
|
2989
2993
|
function ee(e, t, n, r, i) {
|
|
2990
2994
|
if (n <= 0 || r <= 0) return {
|
|
@@ -3006,9 +3010,9 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
3006
3010
|
ne(f);
|
|
3007
3011
|
}
|
|
3008
3012
|
function ne(t) {
|
|
3009
|
-
navigator.clipboard.writeText(e.source).catch(() => {}), t.value = !0, clearTimeout(
|
|
3013
|
+
navigator.clipboard.writeText(e.source).catch(() => {}), t.value = !0, clearTimeout(Be), Be = setTimeout(() => {
|
|
3010
3014
|
t.value = !1;
|
|
3011
|
-
},
|
|
3015
|
+
}, Ts);
|
|
3012
3016
|
}
|
|
3013
3017
|
function re() {
|
|
3014
3018
|
let t = (a.value ?? r.value)?.querySelector("svg");
|
|
@@ -3019,66 +3023,66 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
3019
3023
|
c.href = s, c.download = `${e.diagramId}.svg`, c.click(), URL.revokeObjectURL(s);
|
|
3020
3024
|
}
|
|
3021
3025
|
function ie() {
|
|
3022
|
-
|
|
3026
|
+
oe(n.value ?? void 0, p, bs);
|
|
3023
3027
|
}
|
|
3024
3028
|
function ae() {
|
|
3025
|
-
|
|
3029
|
+
oe(i.value ?? void 0, m, xs);
|
|
3026
3030
|
}
|
|
3027
|
-
function
|
|
3031
|
+
function oe(e, t, n) {
|
|
3028
3032
|
!e || e.offsetWidth <= 0 || (t.value = ee(e.offsetWidth, e.offsetHeight, h.value.width, h.value.height, n));
|
|
3029
3033
|
}
|
|
3030
|
-
function
|
|
3034
|
+
function se(e, t) {
|
|
3031
3035
|
let n = t.getBoundingClientRect(), r = (t.offsetWidth ? n.width / t.offsetWidth : 1) || 1;
|
|
3032
3036
|
return {
|
|
3033
3037
|
x: (e.clientX - n.left) / r,
|
|
3034
3038
|
y: (e.clientY - n.top) / r
|
|
3035
3039
|
};
|
|
3036
3040
|
}
|
|
3037
|
-
function ce(e) {
|
|
3038
|
-
e.target.classList.contains("td-diagram-modal-backdrop") && E();
|
|
3039
|
-
}
|
|
3040
3041
|
function le(e) {
|
|
3041
|
-
e.
|
|
3042
|
-
}
|
|
3043
|
-
function ue() {
|
|
3044
|
-
xe(n.value ?? void 0, p, Cs);
|
|
3042
|
+
e.target.classList.contains("td-diagram-modal-backdrop") && E();
|
|
3045
3043
|
}
|
|
3046
|
-
function
|
|
3047
|
-
|
|
3044
|
+
function ue(e) {
|
|
3045
|
+
e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? fe() : e.key === "-" ? pe() : e.key === "0" && ae();
|
|
3048
3046
|
}
|
|
3049
3047
|
function de() {
|
|
3050
|
-
|
|
3048
|
+
Se(n.value ?? void 0, p, Ss);
|
|
3049
|
+
}
|
|
3050
|
+
function O() {
|
|
3051
|
+
Se(n.value ?? void 0, p, Cs);
|
|
3051
3052
|
}
|
|
3052
3053
|
function fe() {
|
|
3053
|
-
|
|
3054
|
+
Se(i.value ?? void 0, m, Ss);
|
|
3054
3055
|
}
|
|
3055
|
-
function
|
|
3056
|
+
function pe() {
|
|
3057
|
+
Se(i.value ?? void 0, m, Cs);
|
|
3058
|
+
}
|
|
3059
|
+
function he() {
|
|
3056
3060
|
let e = i.value;
|
|
3057
3061
|
if (!e) return;
|
|
3058
3062
|
let t = T(1);
|
|
3059
|
-
m.value =
|
|
3063
|
+
m.value = xe(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
|
|
3060
3064
|
}
|
|
3061
|
-
function
|
|
3065
|
+
function ge() {
|
|
3062
3066
|
l.value = !0, u.value = c.value, m.value = {
|
|
3063
3067
|
x: 0,
|
|
3064
3068
|
y: 0,
|
|
3065
3069
|
scale: 1
|
|
3066
|
-
},
|
|
3070
|
+
}, nt(() => {
|
|
3067
3071
|
requestAnimationFrame(() => {
|
|
3068
|
-
ae(), o.value?.focus({ preventScroll: !0 }),
|
|
3072
|
+
ae(), o.value?.focus({ preventScroll: !0 }), De();
|
|
3069
3073
|
});
|
|
3070
3074
|
});
|
|
3071
3075
|
}
|
|
3072
|
-
function
|
|
3076
|
+
function _e() {
|
|
3073
3077
|
c.value = !0;
|
|
3074
3078
|
}
|
|
3075
|
-
function
|
|
3079
|
+
function ve() {
|
|
3076
3080
|
c.value = !1;
|
|
3077
3081
|
}
|
|
3078
|
-
function
|
|
3082
|
+
function be() {
|
|
3079
3083
|
u.value = !u.value;
|
|
3080
3084
|
}
|
|
3081
|
-
function
|
|
3085
|
+
function xe(e, t, n, r) {
|
|
3082
3086
|
let i = T(e.scale * r), a = i / e.scale;
|
|
3083
3087
|
return {
|
|
3084
3088
|
x: t - (t - e.x) * a,
|
|
@@ -3086,10 +3090,10 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
3086
3090
|
scale: i
|
|
3087
3091
|
};
|
|
3088
3092
|
}
|
|
3089
|
-
function
|
|
3090
|
-
e && (t.value =
|
|
3093
|
+
function Se(e, t, n) {
|
|
3094
|
+
e && (t.value = xe(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
|
|
3091
3095
|
}
|
|
3092
|
-
let
|
|
3096
|
+
let Ce = {
|
|
3093
3097
|
active: !1,
|
|
3094
3098
|
startClientX: 0,
|
|
3095
3099
|
startClientY: 0,
|
|
@@ -3097,7 +3101,7 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
3097
3101
|
startTransformY: 0,
|
|
3098
3102
|
moved: !1,
|
|
3099
3103
|
clientScale: 1
|
|
3100
|
-
},
|
|
3104
|
+
}, Te = {
|
|
3101
3105
|
active: !1,
|
|
3102
3106
|
startClientX: 0,
|
|
3103
3107
|
startClientY: 0,
|
|
@@ -3106,23 +3110,23 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
3106
3110
|
moved: !1,
|
|
3107
3111
|
clientScale: 1
|
|
3108
3112
|
};
|
|
3109
|
-
function
|
|
3113
|
+
function Ee(e) {
|
|
3110
3114
|
function t(t) {
|
|
3111
3115
|
if (!t.ctrlKey && !t.metaKey) return;
|
|
3112
3116
|
t.preventDefault();
|
|
3113
|
-
let n =
|
|
3114
|
-
p.value =
|
|
3117
|
+
let n = se(t, e), r = Math.exp(-t.deltaY * .01);
|
|
3118
|
+
p.value = xe(p.value, n.x, n.y, r);
|
|
3115
3119
|
}
|
|
3116
3120
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
3117
3121
|
}
|
|
3118
|
-
function
|
|
3122
|
+
function De() {
|
|
3119
3123
|
let e = i.value;
|
|
3120
3124
|
if (!e) return;
|
|
3121
3125
|
function t(t) {
|
|
3122
3126
|
if (e) {
|
|
3123
3127
|
if (t.preventDefault(), t.ctrlKey || t.metaKey) {
|
|
3124
|
-
let n =
|
|
3125
|
-
m.value =
|
|
3128
|
+
let n = se(t, e), r = Math.exp(-t.deltaY * .01);
|
|
3129
|
+
m.value = xe(m.value, n.x, n.y, r);
|
|
3126
3130
|
} else {
|
|
3127
3131
|
let n = (e.offsetWidth ? e.getBoundingClientRect().width / e.offsetWidth : 1) || 1;
|
|
3128
3132
|
m.value = {
|
|
@@ -3133,294 +3137,294 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
|
|
|
3133
3137
|
}
|
|
3134
3138
|
}
|
|
3135
3139
|
}
|
|
3136
|
-
e.addEventListener("wheel", t, { passive: !1 }),
|
|
3140
|
+
e.addEventListener("wheel", t, { passive: !1 }), ze = () => e.removeEventListener("wheel", t);
|
|
3137
3141
|
}
|
|
3138
|
-
function
|
|
3142
|
+
function Oe(e, t, n, r) {
|
|
3139
3143
|
if (e.button !== 0) return;
|
|
3140
3144
|
t.active = !0, t.moved = !1;
|
|
3141
3145
|
let i = n.getBoundingClientRect();
|
|
3142
3146
|
t.clientScale = (n.offsetWidth ? i.width / n.offsetWidth : 1) || 1, t.startClientX = e.clientX, t.startClientY = e.clientY, t.startTransformX = r.value.x, t.startTransformY = r.value.y, n.setPointerCapture(e.pointerId), n.style.cursor = "grabbing";
|
|
3143
3147
|
}
|
|
3144
|
-
function
|
|
3148
|
+
function ke(e, t, n, r) {
|
|
3145
3149
|
t.active && (t.active = !1, n.releasePointerCapture(e.pointerId), n.style.cursor = "", !t.moved && r && r());
|
|
3146
3150
|
}
|
|
3147
|
-
function
|
|
3151
|
+
function Ae(e, t, n) {
|
|
3148
3152
|
if (!t.active) return;
|
|
3149
3153
|
let r = (e.clientX - t.startClientX) / t.clientScale, i = (e.clientY - t.startClientY) / t.clientScale;
|
|
3150
|
-
!t.moved &&
|
|
3154
|
+
!t.moved && ys <= Math.hypot(r, i) && (t.moved = !0), t.moved && (n.value = {
|
|
3151
3155
|
x: t.startTransformX + r,
|
|
3152
3156
|
y: t.startTransformY + i,
|
|
3153
3157
|
scale: n.value.scale
|
|
3154
3158
|
});
|
|
3155
3159
|
}
|
|
3156
|
-
function je(e) {
|
|
3157
|
-
let t = n.value;
|
|
3158
|
-
t && De(e, Se, t, p);
|
|
3159
|
-
}
|
|
3160
3160
|
function Me(e) {
|
|
3161
3161
|
let t = n.value;
|
|
3162
|
-
t && Oe(e,
|
|
3162
|
+
t && Oe(e, Ce, t, p);
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3165
|
-
|
|
3164
|
+
function Ne(e) {
|
|
3165
|
+
let t = n.value;
|
|
3166
|
+
t && ke(e, Ce, t, ge);
|
|
3166
3167
|
}
|
|
3167
3168
|
function Fe(e) {
|
|
3169
|
+
Ae(e, Ce, p);
|
|
3170
|
+
}
|
|
3171
|
+
function Ie(e) {
|
|
3168
3172
|
let t = i.value;
|
|
3169
3173
|
if (!t) return;
|
|
3170
|
-
let n =
|
|
3171
|
-
m.value =
|
|
3174
|
+
let n = se(e, t);
|
|
3175
|
+
m.value = xe(m.value, n.x, n.y, ws);
|
|
3172
3176
|
}
|
|
3173
|
-
function
|
|
3177
|
+
function k(e) {
|
|
3174
3178
|
let t = i.value;
|
|
3175
|
-
t &&
|
|
3179
|
+
t && Oe(e, Te, t, m);
|
|
3176
3180
|
}
|
|
3177
|
-
function
|
|
3181
|
+
function A(e) {
|
|
3178
3182
|
let t = i.value;
|
|
3179
|
-
t &&
|
|
3183
|
+
t && ke(e, Te, t);
|
|
3180
3184
|
}
|
|
3181
|
-
function
|
|
3182
|
-
|
|
3185
|
+
function Le(e) {
|
|
3186
|
+
Ae(e, Te, m);
|
|
3183
3187
|
}
|
|
3184
3188
|
Y(u, () => {
|
|
3185
|
-
|
|
3189
|
+
nt(() => ae());
|
|
3186
3190
|
});
|
|
3187
|
-
let
|
|
3191
|
+
let Re, ze, Be;
|
|
3188
3192
|
return it(() => {
|
|
3189
3193
|
let e = n.value;
|
|
3190
3194
|
if (!e) return;
|
|
3191
3195
|
let t = new ResizeObserver(() => {
|
|
3192
3196
|
0 < e.offsetWidth && 0 < e.offsetHeight && (ie(), t.disconnect());
|
|
3193
3197
|
});
|
|
3194
|
-
t.observe(e),
|
|
3198
|
+
t.observe(e), Re = Ee(e);
|
|
3195
3199
|
}), rt(() => {
|
|
3196
|
-
|
|
3197
|
-
}), (n, r) => (H(),
|
|
3200
|
+
Re?.(), ze?.(), clearTimeout(Be);
|
|
3201
|
+
}), (n, r) => (H(), F("figure", {
|
|
3198
3202
|
id: e.diagramId,
|
|
3199
3203
|
class: "td-diagram"
|
|
3200
3204
|
}, [
|
|
3201
|
-
|
|
3202
|
-
vt(
|
|
3205
|
+
I("div", Wo, [
|
|
3206
|
+
vt(I("div", {
|
|
3203
3207
|
ref: "stage",
|
|
3204
3208
|
class: "td-diagram-stage",
|
|
3205
|
-
onPointerdown:
|
|
3206
|
-
onPointermove:
|
|
3207
|
-
onPointerup:
|
|
3208
|
-
onPointercancel:
|
|
3209
|
-
}, [
|
|
3209
|
+
onPointerdown: Me,
|
|
3210
|
+
onPointermove: Fe,
|
|
3211
|
+
onPointerup: Ne,
|
|
3212
|
+
onPointercancel: Ne
|
|
3213
|
+
}, [I("div", {
|
|
3210
3214
|
ref: "canvas",
|
|
3211
3215
|
class: "td-diagram-canvas",
|
|
3212
|
-
style:
|
|
3216
|
+
style: V(S.value),
|
|
3213
3217
|
innerHTML: e.svg
|
|
3214
|
-
}, null, 12,
|
|
3215
|
-
vt(
|
|
3216
|
-
r[3] ||=
|
|
3217
|
-
(H(!0),
|
|
3218
|
+
}, null, 12, Go)], 544), [[gt, !c.value]]),
|
|
3219
|
+
vt(I("pre", Ko, [
|
|
3220
|
+
r[3] ||= L(" ", -1),
|
|
3221
|
+
(H(!0), F(j, null, W(g.value, (e, t) => (H(), F("div", {
|
|
3218
3222
|
key: t,
|
|
3219
3223
|
class: "td-diagram-code-row"
|
|
3220
3224
|
}, [
|
|
3221
|
-
r[0] ||=
|
|
3222
|
-
|
|
3223
|
-
r[1] ||=
|
|
3224
|
-
|
|
3225
|
-
r[2] ||=
|
|
3225
|
+
r[0] ||= L("\n ", -1),
|
|
3226
|
+
I("span", qo, K(t + 1), 1),
|
|
3227
|
+
r[1] ||= L("\n ", -1),
|
|
3228
|
+
I("span", Jo, K(e || " "), 1),
|
|
3229
|
+
r[2] ||= L("\n ", -1)
|
|
3226
3230
|
]))), 128)),
|
|
3227
|
-
r[4] ||=
|
|
3231
|
+
r[4] ||= L("\n ", -1)
|
|
3228
3232
|
], 512), [[gt, c.value]]),
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3233
|
+
I("div", Yo, [
|
|
3234
|
+
I("span", Xo, K(e.label), 1),
|
|
3235
|
+
I("div", Zo, [I("button", {
|
|
3232
3236
|
type: "button",
|
|
3233
|
-
class:
|
|
3234
|
-
onClick:
|
|
3235
|
-
}, " Preview ", 2),
|
|
3237
|
+
class: B(["td-diagram-segment-button", { "is-active": !c.value }]),
|
|
3238
|
+
onClick: ve
|
|
3239
|
+
}, " Preview ", 2), I("button", {
|
|
3236
3240
|
type: "button",
|
|
3237
|
-
class:
|
|
3238
|
-
onClick:
|
|
3241
|
+
class: B(["td-diagram-segment-button", { "is-active": c.value }]),
|
|
3242
|
+
onClick: _e
|
|
3239
3243
|
}, " Code ", 2)]),
|
|
3240
|
-
|
|
3244
|
+
I("button", {
|
|
3241
3245
|
type: "button",
|
|
3242
|
-
class:
|
|
3246
|
+
class: B(["td-diagram-button", { "is-copied": d.value }]),
|
|
3243
3247
|
"aria-label": "Copy source",
|
|
3244
3248
|
onClick: te
|
|
3245
|
-
}, [d.value ? (H(),
|
|
3249
|
+
}, [d.value ? (H(), N(q(xt), {
|
|
3246
3250
|
key: 0,
|
|
3247
3251
|
size: 16
|
|
3248
|
-
})) : (H(),
|
|
3252
|
+
})) : (H(), N(q(Tt), {
|
|
3249
3253
|
key: 1,
|
|
3250
3254
|
size: 16
|
|
3251
3255
|
}))], 2),
|
|
3252
|
-
|
|
3256
|
+
I("button", {
|
|
3253
3257
|
ref: "expandButton",
|
|
3254
3258
|
type: "button",
|
|
3255
3259
|
class: "td-diagram-button",
|
|
3256
3260
|
"aria-label": "Open full-screen preview",
|
|
3257
|
-
onClick:
|
|
3258
|
-
}, [
|
|
3261
|
+
onClick: ge
|
|
3262
|
+
}, [R(q(jt), { size: 16 })], 512)
|
|
3259
3263
|
]),
|
|
3260
|
-
vt(
|
|
3261
|
-
|
|
3264
|
+
vt(I("div", Qo, [
|
|
3265
|
+
I("button", {
|
|
3262
3266
|
type: "button",
|
|
3263
3267
|
class: "td-diagram-button",
|
|
3264
3268
|
"aria-label": "Zoom out",
|
|
3265
|
-
onClick:
|
|
3266
|
-
}, [
|
|
3267
|
-
|
|
3269
|
+
onClick: O
|
|
3270
|
+
}, [R(q(ye), { size: 16 })]),
|
|
3271
|
+
I("button", {
|
|
3268
3272
|
type: "button",
|
|
3269
3273
|
class: "td-diagram-button td-diagram-zoom-level",
|
|
3270
3274
|
"aria-label": "Reset zoom",
|
|
3271
3275
|
onClick: ie
|
|
3272
3276
|
}, K(v.value), 1),
|
|
3273
|
-
|
|
3277
|
+
I("button", {
|
|
3274
3278
|
type: "button",
|
|
3275
3279
|
class: "td-diagram-button",
|
|
3276
3280
|
"aria-label": "Zoom in",
|
|
3277
|
-
onClick:
|
|
3278
|
-
}, [
|
|
3281
|
+
onClick: de
|
|
3282
|
+
}, [R(q(we), { size: 16 })])
|
|
3279
3283
|
], 512), [[gt, !c.value]]),
|
|
3280
|
-
vt(
|
|
3284
|
+
vt(I("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + K(q(t)) + " + scroll to zoom ", 513), [[gt, !c.value]])
|
|
3281
3285
|
]),
|
|
3282
|
-
e.title ? (H(),
|
|
3283
|
-
(H(),
|
|
3286
|
+
e.title ? (H(), F("figcaption", $o, K(e.title), 1)) : P("", !0),
|
|
3287
|
+
(H(), N(Ye, { to: "body" }, [l.value ? (H(), F("div", {
|
|
3284
3288
|
key: 0,
|
|
3285
3289
|
class: "td-diagram-modal-backdrop",
|
|
3286
|
-
onClick:
|
|
3287
|
-
}, [
|
|
3290
|
+
onClick: le
|
|
3291
|
+
}, [I("div", {
|
|
3288
3292
|
ref: "modalDialog",
|
|
3289
3293
|
class: "td-diagram-modal",
|
|
3290
3294
|
role: "dialog",
|
|
3291
3295
|
"aria-label": e.title || `${e.label} diagram`,
|
|
3292
3296
|
tabindex: "-1",
|
|
3293
|
-
onKeydown:
|
|
3294
|
-
}, [
|
|
3295
|
-
|
|
3297
|
+
onKeydown: ue
|
|
3298
|
+
}, [I("div", ts, [I("div", ns, [I("span", rs, K(e.title || "Diagram"), 1), I("span", is, K(e.label), 1)]), I("div", as, [
|
|
3299
|
+
I("button", {
|
|
3296
3300
|
type: "button",
|
|
3297
|
-
class:
|
|
3301
|
+
class: B(["td-diagram-modal-button", { "is-active": u.value }]),
|
|
3298
3302
|
"aria-pressed": u.value,
|
|
3299
3303
|
"aria-label": "Toggle code",
|
|
3300
|
-
onClick:
|
|
3301
|
-
}, [
|
|
3302
|
-
r[8] ||=
|
|
3303
|
-
|
|
3304
|
+
onClick: be
|
|
3305
|
+
}, [R(q(me), { size: 16 }), r[5] ||= I("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, os),
|
|
3306
|
+
r[8] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
|
|
3307
|
+
I("button", {
|
|
3304
3308
|
type: "button",
|
|
3305
3309
|
class: "td-diagram-modal-button",
|
|
3306
3310
|
"aria-label": "Zoom out",
|
|
3307
|
-
onClick:
|
|
3308
|
-
}, [
|
|
3309
|
-
|
|
3311
|
+
onClick: pe
|
|
3312
|
+
}, [R(q(ye), { size: 16 })]),
|
|
3313
|
+
I("button", {
|
|
3310
3314
|
type: "button",
|
|
3311
3315
|
class: "td-diagram-modal-button td-diagram-modal-zoom-level",
|
|
3312
3316
|
"aria-label": "Zoom to 100%",
|
|
3313
|
-
onClick:
|
|
3317
|
+
onClick: he
|
|
3314
3318
|
}, K(y.value), 1),
|
|
3315
|
-
|
|
3319
|
+
I("button", {
|
|
3316
3320
|
type: "button",
|
|
3317
3321
|
class: "td-diagram-modal-button",
|
|
3318
3322
|
"aria-label": "Zoom in",
|
|
3319
|
-
onClick:
|
|
3320
|
-
}, [
|
|
3321
|
-
|
|
3323
|
+
onClick: fe
|
|
3324
|
+
}, [R(q(we), { size: 16 })]),
|
|
3325
|
+
I("button", {
|
|
3322
3326
|
type: "button",
|
|
3323
3327
|
class: "td-diagram-modal-button",
|
|
3324
3328
|
"aria-label": "Fit to view",
|
|
3325
3329
|
onClick: ae
|
|
3326
|
-
}, [
|
|
3327
|
-
r[9] ||=
|
|
3328
|
-
|
|
3330
|
+
}, [R(q(ce), { size: 16 }), r[6] ||= I("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
|
|
3331
|
+
r[9] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
|
|
3332
|
+
I("button", {
|
|
3329
3333
|
type: "button",
|
|
3330
|
-
class:
|
|
3334
|
+
class: B(["td-diagram-modal-button", { "is-copied": f.value }]),
|
|
3331
3335
|
"aria-label": "Copy source",
|
|
3332
3336
|
onClick: D
|
|
3333
|
-
}, [f.value ? (H(),
|
|
3337
|
+
}, [f.value ? (H(), N(q(xt), {
|
|
3334
3338
|
key: 0,
|
|
3335
3339
|
size: 16
|
|
3336
|
-
})) : (H(),
|
|
3340
|
+
})) : (H(), N(q(Tt), {
|
|
3337
3341
|
key: 1,
|
|
3338
3342
|
size: 16
|
|
3339
|
-
})),
|
|
3340
|
-
|
|
3343
|
+
})), I("span", ss, K(f.value ? "Copied" : "Copy"), 1)], 2),
|
|
3344
|
+
I("button", {
|
|
3341
3345
|
type: "button",
|
|
3342
3346
|
class: "td-diagram-modal-button",
|
|
3343
3347
|
"aria-label": "Download SVG",
|
|
3344
3348
|
onClick: re
|
|
3345
|
-
}, [
|
|
3346
|
-
r[10] ||=
|
|
3347
|
-
|
|
3349
|
+
}, [R(q(je), { size: 16 }), r[7] ||= I("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
|
|
3350
|
+
r[10] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
|
|
3351
|
+
I("button", {
|
|
3348
3352
|
type: "button",
|
|
3349
3353
|
class: "td-diagram-modal-button",
|
|
3350
3354
|
"aria-label": "Close preview",
|
|
3351
3355
|
onClick: E
|
|
3352
|
-
}, [
|
|
3353
|
-
])]),
|
|
3354
|
-
r[14] ||=
|
|
3355
|
-
(H(!0),
|
|
3356
|
+
}, [R(q(Pe), { size: 16 })])
|
|
3357
|
+
])]), I("div", cs, [u.value ? (H(), F("div", ls, [I("div", us, " diagram." + K(b.value) + " · " + K(_.value) + " lines ", 1), I("div", ds, [I("pre", fs, [
|
|
3358
|
+
r[14] ||= L(" ", -1),
|
|
3359
|
+
(H(!0), F(j, null, W(g.value, (e, t) => (H(), F("div", {
|
|
3356
3360
|
key: t,
|
|
3357
3361
|
class: "td-diagram-code-row"
|
|
3358
3362
|
}, [
|
|
3359
|
-
r[11] ||=
|
|
3360
|
-
|
|
3361
|
-
r[12] ||=
|
|
3362
|
-
|
|
3363
|
-
r[13] ||=
|
|
3363
|
+
r[11] ||= L("\n ", -1),
|
|
3364
|
+
I("span", ps, K(t + 1), 1),
|
|
3365
|
+
r[12] ||= L("\n ", -1),
|
|
3366
|
+
I("span", ms, K(e || " "), 1),
|
|
3367
|
+
r[13] ||= L("\n ", -1)
|
|
3364
3368
|
]))), 128)),
|
|
3365
|
-
r[15] ||=
|
|
3366
|
-
])])])) :
|
|
3369
|
+
r[15] ||= L("\n ", -1)
|
|
3370
|
+
])])])) : P("", !0), I("div", {
|
|
3367
3371
|
ref: "modalStage",
|
|
3368
3372
|
class: "td-diagram-modal-stage",
|
|
3369
|
-
style:
|
|
3370
|
-
onPointerdown:
|
|
3371
|
-
onPointermove:
|
|
3372
|
-
onPointerup:
|
|
3373
|
-
onPointercancel:
|
|
3374
|
-
onDblclick:
|
|
3375
|
-
}, [
|
|
3373
|
+
style: V(w.value),
|
|
3374
|
+
onPointerdown: k,
|
|
3375
|
+
onPointermove: Le,
|
|
3376
|
+
onPointerup: A,
|
|
3377
|
+
onPointercancel: A,
|
|
3378
|
+
onDblclick: Ie
|
|
3379
|
+
}, [I("div", {
|
|
3376
3380
|
ref: "modalCanvas",
|
|
3377
3381
|
class: "td-diagram-modal-canvas",
|
|
3378
|
-
style:
|
|
3382
|
+
style: V(C.value),
|
|
3379
3383
|
innerHTML: e.svg
|
|
3380
|
-
}, null, 12,
|
|
3381
|
-
], 8,
|
|
3384
|
+
}, null, 12, hs), I("div", gs, " Drag or scroll to pan · " + K(q(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, es)])) : P("", !0)]))
|
|
3385
|
+
], 8, Uo));
|
|
3382
3386
|
}
|
|
3383
3387
|
}), [["__scopeId", "data-v-fb95bcf7"]]);
|
|
3384
3388
|
// src/client/theme-default/composables/lazy-embed/mountDiagram.ts
|
|
3385
|
-
function
|
|
3389
|
+
function Os(e, t) {
|
|
3386
3390
|
let n = document.createElement("div");
|
|
3387
|
-
n.style.display = "contents", e.replaceWith(n), ct(
|
|
3391
|
+
n.style.display = "contents", e.replaceWith(n), ct(Qe(Ds, t), n);
|
|
3388
3392
|
}
|
|
3389
3393
|
// src/client/theme-default/composables/lazy-embed/d2.ts
|
|
3390
|
-
var
|
|
3391
|
-
function
|
|
3394
|
+
var ks = "https://esm.sh/@terrastruct/d2@0.1.32", As, js = 0;
|
|
3395
|
+
function Ms(e) {
|
|
3392
3396
|
let t = {
|
|
3393
3397
|
selector: ".td-d2-placeholder",
|
|
3394
|
-
onRender:
|
|
3398
|
+
onRender: Ps,
|
|
3395
3399
|
onVisible() {
|
|
3396
3400
|
let e = document.createElement("link");
|
|
3397
|
-
e.rel = "modulepreload", e.href =
|
|
3401
|
+
e.rel = "modulepreload", e.href = ks, document.head.appendChild(e);
|
|
3398
3402
|
}
|
|
3399
3403
|
};
|
|
3400
3404
|
it(() => e.register(t)), ot(() => e.unregister(t));
|
|
3401
3405
|
}
|
|
3402
|
-
async function
|
|
3403
|
-
if (
|
|
3406
|
+
async function Ns() {
|
|
3407
|
+
if (As) return As;
|
|
3404
3408
|
try {
|
|
3405
3409
|
let e = await import(
|
|
3406
3410
|
/* @vite-ignore */
|
|
3407
|
-
|
|
3411
|
+
ks
|
|
3408
3412
|
);
|
|
3409
|
-
|
|
3413
|
+
As = new (e.D2 || (e.default?.D2) || e.default)();
|
|
3410
3414
|
} catch {
|
|
3411
3415
|
return;
|
|
3412
3416
|
}
|
|
3413
|
-
return
|
|
3417
|
+
return As;
|
|
3414
3418
|
}
|
|
3415
|
-
async function
|
|
3419
|
+
async function Ps(e) {
|
|
3416
3420
|
let t = e, n = t.querySelector("code");
|
|
3417
3421
|
if (!n) return;
|
|
3418
|
-
let r = n.textContent ?? "", i = await
|
|
3422
|
+
let r = n.textContent ?? "", i = await Ns();
|
|
3419
3423
|
if (!i) return;
|
|
3420
|
-
let a = `td-d2-${
|
|
3424
|
+
let a = `td-d2-${js++}`, o = t.getAttribute("data-title");
|
|
3421
3425
|
try {
|
|
3422
3426
|
let e = await i.compile(r, { layout: "dagre" });
|
|
3423
|
-
|
|
3427
|
+
Os(t, {
|
|
3424
3428
|
svg: await i.render(e.diagram, {
|
|
3425
3429
|
...e.renderOptions,
|
|
3426
3430
|
themeID: document.documentElement.classList.contains("dark") ? 200 : 0
|
|
@@ -3435,42 +3439,42 @@ async function Fs(e) {
|
|
|
3435
3439
|
}
|
|
3436
3440
|
}
|
|
3437
3441
|
// src/client/theme-default/composables/lazy-embed/mermaid.ts
|
|
3438
|
-
var
|
|
3439
|
-
function
|
|
3442
|
+
var Fs = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Is, Ls = 0;
|
|
3443
|
+
function Rs(e) {
|
|
3440
3444
|
let t = {
|
|
3441
3445
|
selector: ".td-mermaid-placeholder",
|
|
3442
|
-
onRender:
|
|
3446
|
+
onRender: Bs,
|
|
3443
3447
|
onVisible() {
|
|
3444
3448
|
let e = document.createElement("link");
|
|
3445
|
-
e.rel = "modulepreload", e.href =
|
|
3449
|
+
e.rel = "modulepreload", e.href = Fs, document.head.appendChild(e);
|
|
3446
3450
|
}
|
|
3447
3451
|
};
|
|
3448
3452
|
it(() => e.register(t)), ot(() => e.unregister(t));
|
|
3449
3453
|
}
|
|
3450
|
-
async function
|
|
3451
|
-
if (
|
|
3454
|
+
async function zs() {
|
|
3455
|
+
if (Is !== void 0) return Is;
|
|
3452
3456
|
try {
|
|
3453
|
-
|
|
3457
|
+
Is = await import(
|
|
3454
3458
|
/* @vite-ignore */
|
|
3455
|
-
|
|
3459
|
+
Fs
|
|
3456
3460
|
);
|
|
3457
3461
|
} catch {
|
|
3458
3462
|
return;
|
|
3459
3463
|
}
|
|
3460
|
-
return
|
|
3464
|
+
return Is.default.initialize({
|
|
3461
3465
|
startOnLoad: !1,
|
|
3462
3466
|
theme: document.documentElement.classList.contains("dark") ? "dark" : "default"
|
|
3463
|
-
}),
|
|
3467
|
+
}), Is;
|
|
3464
3468
|
}
|
|
3465
|
-
async function
|
|
3469
|
+
async function Bs(e) {
|
|
3466
3470
|
let t = e, n = t.querySelector("code");
|
|
3467
3471
|
if (!n) return;
|
|
3468
|
-
let r = n.textContent ?? "", i = await
|
|
3472
|
+
let r = n.textContent ?? "", i = await zs();
|
|
3469
3473
|
if (i === void 0) return;
|
|
3470
|
-
let a = `td-mermaid-${
|
|
3474
|
+
let a = `td-mermaid-${Ls++}`, o = t.getAttribute("data-title");
|
|
3471
3475
|
try {
|
|
3472
3476
|
let { svg: e } = await i.default.render(a, r);
|
|
3473
|
-
|
|
3477
|
+
Os(t, {
|
|
3474
3478
|
svg: e,
|
|
3475
3479
|
source: r,
|
|
3476
3480
|
title: o ?? void 0,
|
|
@@ -3482,15 +3486,15 @@ async function Vs(e) {
|
|
|
3482
3486
|
}
|
|
3483
3487
|
}
|
|
3484
3488
|
// src/client/theme-default/composables/lazy-embed/github.ts
|
|
3485
|
-
var
|
|
3486
|
-
function
|
|
3489
|
+
var Vs = "https://emgithub.com/embed-v2.js";
|
|
3490
|
+
function Hs(e) {
|
|
3487
3491
|
let t, n = [], r = {
|
|
3488
3492
|
selector: ".td-github-placeholder",
|
|
3489
3493
|
onRender(e) {
|
|
3490
3494
|
let t = e, r = t.getAttribute("data-url");
|
|
3491
3495
|
if (!r) return;
|
|
3492
3496
|
let i = document.documentElement.classList.contains("dark"), a = document.createElement("script");
|
|
3493
|
-
a.src =
|
|
3497
|
+
a.src = Us(r, i);
|
|
3494
3498
|
let o = document.createElement("div");
|
|
3495
3499
|
o.className = "td-github-wrapper", o.dataset.url = r, o.appendChild(a), t.replaceWith(o), n.push({
|
|
3496
3500
|
container: o,
|
|
@@ -3503,7 +3507,7 @@ function Us(e) {
|
|
|
3503
3507
|
for (let e = n.length - 1; 0 <= e; e--) n[e].container.isConnected || n.splice(e, 1);
|
|
3504
3508
|
for (let t of n) {
|
|
3505
3509
|
let n = document.createElement("script");
|
|
3506
|
-
n.src =
|
|
3510
|
+
n.src = Us(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
|
|
3507
3511
|
}
|
|
3508
3512
|
}
|
|
3509
3513
|
it(() => {
|
|
@@ -3520,11 +3524,11 @@ function Us(e) {
|
|
|
3520
3524
|
e.unregister(r), t?.disconnect(), n.length = 0;
|
|
3521
3525
|
});
|
|
3522
3526
|
}
|
|
3523
|
-
function
|
|
3524
|
-
return `${
|
|
3527
|
+
function Us(e, t) {
|
|
3528
|
+
return `${Vs}?target=${encodeURIComponent(e)}&style=${t ? "base16/gruvbox-dark-medium" : "grayscale"}&type=code&showBorder=on&showFileMeta=on&showFullPath=on&showCopy=on&showLineNumbers=on`;
|
|
3525
3529
|
}
|
|
3526
3530
|
// src/client/theme-default/composables/lazy-embed/index.ts
|
|
3527
|
-
function
|
|
3531
|
+
function Ws() {
|
|
3528
3532
|
let e = [], t = /* @__PURE__ */ new WeakSet(), n = /* @__PURE__ */ new WeakMap(), r, i;
|
|
3529
3533
|
function a() {
|
|
3530
3534
|
let i = document.getElementById("td-content");
|
|
@@ -3558,37 +3562,34 @@ function Gs() {
|
|
|
3558
3562
|
n !== -1 && e.splice(n, 1);
|
|
3559
3563
|
}
|
|
3560
3564
|
};
|
|
3561
|
-
|
|
3565
|
+
Rs(o), Ms(o), Hs(o);
|
|
3562
3566
|
}
|
|
3563
3567
|
// src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
|
|
3564
|
-
var
|
|
3568
|
+
var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"], Js = { class: "td-brand-name" }, Ys = { class: "td-header-right" }, Xs = ["href"], Zs = { class: "td-drawer-header" }, Qs = ["href"], $s = { class: "td-brand-name" }, ec = {
|
|
3565
3569
|
key: 0,
|
|
3566
3570
|
class: "pt-4",
|
|
3567
3571
|
"aria-label": "Site navigation"
|
|
3568
|
-
},
|
|
3569
|
-
key: 2,
|
|
3570
|
-
class: "td-sidebar-collapse-label"
|
|
3571
|
-
}, ac = ["onKeydown"], oc = { class: "td-main-and-rail" }, sc = { class: "td-main" }, cc = {
|
|
3572
|
+
}, tc = { class: "td-page" }, nc = ["aria-label"], rc = ["onKeydown"], ic = { class: "td-main-and-rail" }, ac = { class: "td-main" }, oc = {
|
|
3572
3573
|
id: "td-content",
|
|
3573
3574
|
class: "td-content",
|
|
3574
3575
|
"data-testid": "content"
|
|
3575
|
-
},
|
|
3576
|
+
}, sc = {
|
|
3576
3577
|
key: 0,
|
|
3577
3578
|
class: "td-page-eyebrow"
|
|
3578
|
-
},
|
|
3579
|
+
}, cc = {
|
|
3579
3580
|
key: 1,
|
|
3580
3581
|
class: "td-page-icon"
|
|
3581
|
-
},
|
|
3582
|
+
}, lc = ["innerHTML"], uc = {
|
|
3582
3583
|
key: 3,
|
|
3583
3584
|
class: "td-page-meta"
|
|
3584
|
-
},
|
|
3585
|
+
}, dc = { key: 0 }, fc = { class: "td-content-body" }, pc = ["href"], mc = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
3585
3586
|
__name: "TdLayout",
|
|
3586
3587
|
setup(e) {
|
|
3587
|
-
let { title: t, page: n } =
|
|
3588
|
+
let { title: t, page: n } = Ce(), i = M(() => {
|
|
3588
3589
|
let e = n.value.icon;
|
|
3589
|
-
return e ?
|
|
3590
|
-
}), a =
|
|
3591
|
-
Y(() => v.path, () => m()),
|
|
3590
|
+
return e ? Re(e.name) : void 0;
|
|
3591
|
+
}), a = A(), { withBase: o } = a, c = Te(), l = Ae(), u = M(() => l.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Sa(), h = U(""), g = U(!1), _ = U(!1), v = Le(), y = U(!1);
|
|
3592
|
+
Y(() => v.path, () => m()), Ro(), zo(), Ws();
|
|
3592
3593
|
let x = J("sidebarSearch"), S = J("menuSearch"), C = J("palette"), { previous: w, next: T } = wa();
|
|
3593
3594
|
function E() {
|
|
3594
3595
|
y.value = !1;
|
|
@@ -3602,7 +3603,7 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
|
|
|
3602
3603
|
].filter(Boolean).join("/")}`;
|
|
3603
3604
|
}
|
|
3604
3605
|
function te() {
|
|
3605
|
-
|
|
3606
|
+
oe.value = !1, nt(() => x.value?.focus());
|
|
3606
3607
|
}
|
|
3607
3608
|
function ne() {
|
|
3608
3609
|
x.value?.isVisible ? x.value.focus() : (p(), S.value?.focus());
|
|
@@ -3623,112 +3624,115 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
|
|
|
3623
3624
|
document.title = e && e !== r ? `${e} - ${r}` : r;
|
|
3624
3625
|
let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
3625
3626
|
o && o.setAttribute("content", i);
|
|
3626
|
-
}),
|
|
3627
|
-
let { sidebarWidth: ae,
|
|
3628
|
-
function
|
|
3629
|
-
f.value ? d.value ? m() : p() :
|
|
3627
|
+
}), Ho();
|
|
3628
|
+
let { sidebarWidth: ae, isSidebarCollapsed: oe, sidebarWidthStyle: se, expandedSidebarVisibilityStyle: ce, collapsedSidebarVisibilityStyle: le } = D(), ue = U(!1);
|
|
3629
|
+
function de() {
|
|
3630
|
+
f.value ? d.value ? m() : p() : O();
|
|
3630
3631
|
}
|
|
3631
|
-
function
|
|
3632
|
-
|
|
3632
|
+
function O() {
|
|
3633
|
+
oe.value = !oe.value;
|
|
3633
3634
|
}
|
|
3634
|
-
_a([Q.Control, Q.Backslash],
|
|
3635
|
-
function
|
|
3635
|
+
_a([Q.Control, Q.Backslash], de, { capture: !0 }), _a([Q.Meta, Q.Backslash], de, { capture: !0 });
|
|
3636
|
+
function fe() {
|
|
3636
3637
|
ae.value = Math.min(500, ae.value + 20);
|
|
3637
3638
|
}
|
|
3638
|
-
function
|
|
3639
|
+
function pe(e) {
|
|
3639
3640
|
let t = e.clientX, n = ae.value, r = e.currentTarget;
|
|
3640
|
-
|
|
3641
|
+
ue.value = !0, r.setPointerCapture(e.pointerId);
|
|
3641
3642
|
function i(e) {
|
|
3642
3643
|
let r = Math.min(500, window.innerWidth * .85), i = Math.min(r, Math.max(200, n + e.clientX - t));
|
|
3643
3644
|
ae.value = i;
|
|
3644
3645
|
}
|
|
3645
3646
|
function a() {
|
|
3646
|
-
|
|
3647
|
+
ue.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
|
|
3647
3648
|
}
|
|
3648
3649
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
3649
3650
|
}
|
|
3650
|
-
function
|
|
3651
|
+
function me() {
|
|
3651
3652
|
ae.value = Math.max(200, ae.value - 20);
|
|
3652
3653
|
}
|
|
3653
|
-
return (e, r) => (H(),
|
|
3654
|
+
return (e, r) => (H(), F("div", null, [
|
|
3654
3655
|
G(e.$slots, "layout-top", {}, void 0, !0),
|
|
3655
|
-
r[6] ||=
|
|
3656
|
+
r[6] ||= I("a", {
|
|
3656
3657
|
href: "#td-content",
|
|
3657
3658
|
class: "td-skip-link"
|
|
3658
3659
|
}, "Skip to content", -1),
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3660
|
+
I("header", Gs, [
|
|
3661
|
+
I("div", Ks, [
|
|
3662
|
+
R(Ca, {
|
|
3663
|
+
class: "lg:hidden",
|
|
3664
|
+
onClick: q(p)
|
|
3665
|
+
}, null, 8, ["onClick"]),
|
|
3666
|
+
I("a", {
|
|
3663
3667
|
href: q(o)(q(s)("/")),
|
|
3664
3668
|
class: "td-brand"
|
|
3665
|
-
}, [
|
|
3666
|
-
|
|
3669
|
+
}, [R(Vt), I("span", Js, K(q(a).title || "Typedown"), 1)], 8, qs),
|
|
3670
|
+
R(_i, { class: "td-header-breadcrumb" })
|
|
3667
3671
|
]),
|
|
3668
|
-
|
|
3672
|
+
R(q(bi)),
|
|
3669
3673
|
G(e.$slots, "nav-bar-after", {}, void 0, !0),
|
|
3670
|
-
|
|
3671
|
-
|
|
3674
|
+
I("div", Ys, [
|
|
3675
|
+
R(Nr, {
|
|
3672
3676
|
text: "Commands",
|
|
3673
3677
|
placement: "bottom",
|
|
3674
3678
|
shortcut: [q(Q).Meta, q(Q).FSlash],
|
|
3675
3679
|
always: ""
|
|
3676
3680
|
}, {
|
|
3677
|
-
default: X(() => [
|
|
3681
|
+
default: X(() => [I("button", {
|
|
3678
3682
|
class: "td-header-commands-btn",
|
|
3679
3683
|
type: "button",
|
|
3680
3684
|
"aria-label": "Open command palette",
|
|
3681
3685
|
onClick: re
|
|
3682
|
-
}, [
|
|
3686
|
+
}, [R(q(ke), { size: 15 })])]),
|
|
3683
3687
|
_: 1
|
|
3684
3688
|
}, 8, ["shortcut"]),
|
|
3685
|
-
|
|
3686
|
-
q(a).repo ? (H(),
|
|
3689
|
+
R(Lo),
|
|
3690
|
+
q(a).repo ? (H(), F("a", {
|
|
3687
3691
|
key: 0,
|
|
3688
3692
|
href: q(a).repo.url,
|
|
3689
3693
|
target: "_blank",
|
|
3690
3694
|
rel: "noopener noreferrer",
|
|
3691
3695
|
class: "td-header-icon-link",
|
|
3692
3696
|
"aria-label": "GitHub repository"
|
|
3693
|
-
}, [...r[5] ||= [
|
|
3697
|
+
}, [...r[5] ||= [I("svg", {
|
|
3694
3698
|
width: "20",
|
|
3695
3699
|
height: "20",
|
|
3696
3700
|
viewBox: "0 0 98 96",
|
|
3697
3701
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3698
3702
|
"aria-hidden": "true",
|
|
3699
3703
|
fill: "currentColor"
|
|
3700
|
-
}, [
|
|
3704
|
+
}, [I("path", {
|
|
3701
3705
|
"fill-rule": "evenodd",
|
|
3702
3706
|
"clip-rule": "evenodd",
|
|
3703
3707
|
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"
|
|
3704
|
-
})], -1)]], 8,
|
|
3708
|
+
})], -1)]], 8, Xs)) : P("", !0)
|
|
3705
3709
|
])
|
|
3706
3710
|
]),
|
|
3707
|
-
|
|
3708
|
-
default: X(() => [q(f) ? (H(),
|
|
3711
|
+
R(Xe, { name: "td-drawer-scrim" }, {
|
|
3712
|
+
default: X(() => [q(f) ? (H(), F("div", {
|
|
3709
3713
|
key: 0,
|
|
3710
|
-
class:
|
|
3714
|
+
class: B(["td-drawer-scrim", { "is-open": q(d) }]),
|
|
3711
3715
|
onClick: r[0] ||= (...e) => q(m) && q(m)(...e)
|
|
3712
|
-
}, null, 2)) :
|
|
3716
|
+
}, null, 2)) : P("", !0)]),
|
|
3713
3717
|
_: 1
|
|
3714
3718
|
}),
|
|
3715
|
-
|
|
3716
|
-
default: X(() => [q(f) ? (H(),
|
|
3719
|
+
R(Xe, { name: "td-drawer-panel" }, {
|
|
3720
|
+
default: X(() => [q(f) ? (H(), F("aside", {
|
|
3717
3721
|
key: 0,
|
|
3718
|
-
class:
|
|
3722
|
+
class: B(["td-drawer", { "is-open": q(d) }])
|
|
3719
3723
|
}, [
|
|
3720
|
-
|
|
3724
|
+
I("header", Zs, [I("a", {
|
|
3721
3725
|
href: q(o)(q(s)("/")),
|
|
3722
3726
|
class: "td-brand"
|
|
3723
|
-
}, [
|
|
3727
|
+
}, [R(Vt), I("span", $s, K(q(a).title || "Typedown"), 1)], 8, Qs), R(Fr, {
|
|
3724
3728
|
label: "Close menu",
|
|
3725
3729
|
onClick: q(m)
|
|
3726
3730
|
}, {
|
|
3727
|
-
default: X(() => [
|
|
3731
|
+
default: X(() => [R(q(Pe), { size: 20 })]),
|
|
3728
3732
|
_: 1
|
|
3729
3733
|
}, 8, ["onClick"])]),
|
|
3730
|
-
|
|
3731
|
-
|
|
3734
|
+
R(q(Ci)),
|
|
3735
|
+
R(Io, {
|
|
3732
3736
|
ref_key: "menuSearch",
|
|
3733
3737
|
ref: S,
|
|
3734
3738
|
query: h.value,
|
|
@@ -3741,29 +3745,28 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
|
|
|
3741
3745
|
"active",
|
|
3742
3746
|
"onSelect"
|
|
3743
3747
|
]),
|
|
3744
|
-
_.value ?
|
|
3748
|
+
_.value ? P("", !0) : (H(), F("nav", ec, [u.value ? (H(), N(ni, {
|
|
3745
3749
|
key: 1,
|
|
3746
3750
|
tree: q(l).contentTree
|
|
3747
|
-
}, null, 8, ["tree"])) : (H(),
|
|
3748
|
-
], 2)) :
|
|
3751
|
+
}, null, 8, ["tree"])) : (H(), N(to, { key: 0 }))]))
|
|
3752
|
+
], 2)) : P("", !0)]),
|
|
3749
3753
|
_: 1
|
|
3750
3754
|
}),
|
|
3751
|
-
|
|
3752
|
-
class:
|
|
3753
|
-
"is-resizing":
|
|
3754
|
-
"is-collapsed": q(
|
|
3755
|
+
I("div", tc, [I("nav", {
|
|
3756
|
+
class: B(["td-sidebar-left", {
|
|
3757
|
+
"is-resizing": ue.value,
|
|
3758
|
+
"is-collapsed": q(oe)
|
|
3755
3759
|
}]),
|
|
3756
3760
|
"data-testid": "sidebar",
|
|
3757
3761
|
"aria-label": "Site navigation",
|
|
3758
|
-
style:
|
|
3762
|
+
style: V(q(se))
|
|
3759
3763
|
}, [
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
}, null, 8, ["tree"])) : (H(), I(M, { key: 0 }, [
|
|
3764
|
+
I("div", {
|
|
3765
|
+
class: "flex-col flex-1 overflow-y-auto",
|
|
3766
|
+
style: V(q(ce))
|
|
3767
|
+
}, [
|
|
3765
3768
|
G(e.$slots, "sidebar-top", {}, void 0, !0),
|
|
3766
|
-
|
|
3769
|
+
R(Io, {
|
|
3767
3770
|
ref_key: "sidebarSearch",
|
|
3768
3771
|
ref: x,
|
|
3769
3772
|
query: h.value,
|
|
@@ -3772,7 +3775,7 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
|
|
|
3772
3775
|
"onUpdate:active": r[4] ||= (e) => g.value = e,
|
|
3773
3776
|
class: "td-sidebar-search"
|
|
3774
3777
|
}, null, 8, ["query", "active"]),
|
|
3775
|
-
|
|
3778
|
+
R(no, {
|
|
3776
3779
|
tree: q(l).contentTree,
|
|
3777
3780
|
"search-active": g.value,
|
|
3778
3781
|
ready: u.value
|
|
@@ -3782,100 +3785,108 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
|
|
|
3782
3785
|
"ready"
|
|
3783
3786
|
]),
|
|
3784
3787
|
G(e.$slots, "sidebar-bottom", {}, void 0, !0)
|
|
3785
|
-
],
|
|
3786
|
-
|
|
3788
|
+
], 4),
|
|
3789
|
+
I("div", {
|
|
3790
|
+
style: V(q(le)),
|
|
3791
|
+
class: "flex-1"
|
|
3792
|
+
}, [R(so, {
|
|
3793
|
+
tree: q(l).contentTree,
|
|
3794
|
+
onSearch: te
|
|
3795
|
+
}, null, 8, ["tree"])], 4),
|
|
3796
|
+
I("button", {
|
|
3787
3797
|
class: "td-sidebar-collapse-btn",
|
|
3788
3798
|
type: "button",
|
|
3789
|
-
"aria-label": q(
|
|
3790
|
-
onClick:
|
|
3799
|
+
"aria-label": q(oe) ? "Expand sidebar" : "Collapse sidebar",
|
|
3800
|
+
onClick: O
|
|
3791
3801
|
}, [
|
|
3792
|
-
|
|
3793
|
-
|
|
3802
|
+
R(q(St), {
|
|
3803
|
+
style: V(q(ce)),
|
|
3794
3804
|
size: 14
|
|
3795
|
-
}
|
|
3796
|
-
|
|
3805
|
+
}, null, 8, ["style"]),
|
|
3806
|
+
R(q(Ct), {
|
|
3807
|
+
style: V(q(le)),
|
|
3797
3808
|
size: 14
|
|
3798
|
-
})
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
}, null, 8, ["keys"]))
|
|
3804
|
-
], 8,
|
|
3805
|
-
|
|
3806
|
-
|
|
3809
|
+
}, null, 8, ["style"]),
|
|
3810
|
+
I("span", {
|
|
3811
|
+
style: V(q(ce)),
|
|
3812
|
+
class: "td-sidebar-collapse-label"
|
|
3813
|
+
}, "Collapse sidebar", 4),
|
|
3814
|
+
I("div", { style: V(q(ce)) }, [R($, { keys: [q(Q).Meta, q(Q).Backslash] }, null, 8, ["keys"])], 4)
|
|
3815
|
+
], 8, nc),
|
|
3816
|
+
I("div", {
|
|
3817
|
+
style: V(q(ce)),
|
|
3807
3818
|
class: "td-resize-handle",
|
|
3808
3819
|
role: "separator",
|
|
3809
3820
|
"aria-orientation": "vertical",
|
|
3810
3821
|
"aria-label": "Resize sidebar",
|
|
3811
3822
|
tabindex: "0",
|
|
3812
|
-
onPointerdown: bt(
|
|
3813
|
-
onKeydown: [yt(bt(
|
|
3814
|
-
}, null,
|
|
3815
|
-
], 6),
|
|
3823
|
+
onPointerdown: bt(pe, ["prevent"]),
|
|
3824
|
+
onKeydown: [yt(bt(me, ["prevent"]), ["left"]), yt(bt(fe, ["prevent"]), ["right"])]
|
|
3825
|
+
}, null, 44, rc)
|
|
3826
|
+
], 6), I("div", ic, [I("main", ac, [I("article", oc, [
|
|
3816
3827
|
G(e.$slots, "doc-before", {}, void 0, !0),
|
|
3817
|
-
q(n).schema ? (H(),
|
|
3818
|
-
i.value ? (H(),
|
|
3819
|
-
q(t) ? (H(),
|
|
3828
|
+
q(n).schema ? (H(), F("div", sc, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
|
|
3829
|
+
i.value ? (H(), F("div", cc, [(H(), N(ut(i.value), { size: 32 }))])) : P("", !0),
|
|
3830
|
+
q(t) ? (H(), F("h1", {
|
|
3820
3831
|
key: 2,
|
|
3821
3832
|
class: "td-page-title",
|
|
3822
3833
|
innerHTML: q(n).titleHtml
|
|
3823
|
-
}, null, 8,
|
|
3824
|
-
q(n).fileMetadata ? (H(),
|
|
3825
|
-
|
|
3834
|
+
}, null, 8, lc)) : P("", !0),
|
|
3835
|
+
q(n).fileMetadata ? (H(), F("div", uc, [I("span", null, K(q(b)(q(n).fileMetadata.mtimeSecs, "Modified")), 1), q(n).fileMetadata.ctimeSecs === q(n).fileMetadata.mtimeSecs ? P("", !0) : (H(), F("span", dc, " · " + K(q(b)(q(n).fileMetadata.ctimeSecs, "Created")), 1))])) : P("", !0),
|
|
3836
|
+
R(q(pa), {
|
|
3826
3837
|
class: "td-frontmatter-inline",
|
|
3827
3838
|
schema: q(n).schema,
|
|
3828
3839
|
frontmatter: q(n).frontmatter
|
|
3829
3840
|
}, null, 8, ["schema", "frontmatter"]),
|
|
3830
|
-
q(n).headings.length > 1 ? (H(),
|
|
3841
|
+
q(n).headings.length > 1 ? (H(), N(Ja, {
|
|
3831
3842
|
key: 4,
|
|
3832
3843
|
class: "td-toc-inline",
|
|
3833
3844
|
headings: q(n).headings,
|
|
3834
3845
|
inline: ""
|
|
3835
|
-
}, null, 8, ["headings"])) :
|
|
3846
|
+
}, null, 8, ["headings"])) : P("", !0),
|
|
3836
3847
|
G(e.$slots, "doc-content-before", {}, void 0, !0),
|
|
3837
|
-
|
|
3848
|
+
I("div", fc, [R(q(Ie))]),
|
|
3838
3849
|
G(e.$slots, "doc-content-after", {}, void 0, !0),
|
|
3839
|
-
|
|
3840
|
-
q(a).repo && q(n).filepath ? (H(),
|
|
3850
|
+
R(La),
|
|
3851
|
+
q(a).repo && q(n).filepath ? (H(), F("a", {
|
|
3841
3852
|
key: 5,
|
|
3842
3853
|
href: ee(q(n).filepath),
|
|
3843
3854
|
target: "_blank",
|
|
3844
3855
|
rel: "noopener noreferrer",
|
|
3845
3856
|
class: "td-page-edit"
|
|
3846
|
-
}, "Edit this page", 8,
|
|
3857
|
+
}, "Edit this page", 8, pc)) : P("", !0),
|
|
3847
3858
|
G(e.$slots, "doc-after", {}, void 0, !0)
|
|
3848
|
-
])]),
|
|
3849
|
-
|
|
3859
|
+
])]), R($a, { class: "td-rail" })])]),
|
|
3860
|
+
R(ai),
|
|
3850
3861
|
G(e.$slots, "layout-bottom", {}, void 0, !0),
|
|
3851
|
-
|
|
3862
|
+
R(So, {
|
|
3852
3863
|
ref_key: "palette",
|
|
3853
3864
|
ref: C,
|
|
3854
|
-
onToggleSidebar:
|
|
3865
|
+
onToggleSidebar: O,
|
|
3855
3866
|
onShowShortcuts: ie
|
|
3856
3867
|
}, null, 512),
|
|
3857
|
-
|
|
3868
|
+
R(Eo, {
|
|
3858
3869
|
open: y.value,
|
|
3859
3870
|
onClose: E
|
|
3860
3871
|
}, null, 8, ["open"])
|
|
3861
3872
|
]));
|
|
3862
3873
|
}
|
|
3863
|
-
}), [["__scopeId", "data-v-
|
|
3874
|
+
}), [["__scopeId", "data-v-21aaf8eb"]]), hc = { class: "pt-16 pb-24" }, gc = ["href"], _c = /* @__PURE__ */ z({
|
|
3864
3875
|
__name: "TdNotFound",
|
|
3865
3876
|
setup(e) {
|
|
3866
|
-
let { withBase: t } =
|
|
3867
|
-
return (e, n) => (H(),
|
|
3868
|
-
n[0] ||=
|
|
3869
|
-
n[1] ||=
|
|
3870
|
-
n[2] ||=
|
|
3871
|
-
|
|
3877
|
+
let { withBase: t } = A();
|
|
3878
|
+
return (e, n) => (H(), F("div", hc, [
|
|
3879
|
+
n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
3880
|
+
n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
3881
|
+
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),
|
|
3882
|
+
I("a", {
|
|
3872
3883
|
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
3873
3884
|
href: q(t)(q(s)("/"))
|
|
3874
|
-
}, "Go Home", 8,
|
|
3885
|
+
}, "Go Home", 8, gc)
|
|
3875
3886
|
]));
|
|
3876
3887
|
}
|
|
3877
|
-
}),
|
|
3878
|
-
Layout:
|
|
3879
|
-
NotFound:
|
|
3888
|
+
}), vc = {
|
|
3889
|
+
Layout: mc,
|
|
3890
|
+
NotFound: _c
|
|
3880
3891
|
};
|
|
3881
|
-
export { ie as SIDEBAR_COLLAPSED_WIDTH, te as SIDEBAR_DEFAULT_WIDTH, ne as SIDEBAR_MAX_WIDTH, ee as SIDEBAR_MIN_WIDTH, Vt as TdBrandIcon, ni as TdContentNav,
|
|
3892
|
+
export { ie as SIDEBAR_COLLAPSED_WIDTH, te as SIDEBAR_DEFAULT_WIDTH, ne as SIDEBAR_MAX_WIDTH, ee as SIDEBAR_MIN_WIDTH, Vt as TdBrandIcon, ni as TdContentNav, De as TdDirectoryIndex, ai as TdFooter, Ee as TdGlossaryIndex, $ as TdKbdShortcut, Q as TdKeyName, mc as TdLayout, _c as TdNotFound, La as TdPreviousNext, $a as TdRail, Lo as TdThemeToggle, Ja as TdToc, vc as default, ga as isTypingTarget, re as useClientPreferences, Ro as useCopyCode, _a as useGlobalHotkey, va as useLocalHotkeys, D as useSidebarConfig, E as useTheme };
|