@ray-js/robot-map-sdk 0.0.2-beta-2 → 0.0.2-beta-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.
Files changed (68) hide show
  1. package/README.md +18 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.d.ts +14 -3
  4. package/dist/index.es.js +1 -1
  5. package/dist-app/assets/{index-BYNxFFSu.js → index-DXGZSNp6.js} +1 -1
  6. package/dist-app/index.html +1 -1
  7. package/dist-docs/404.html +3 -3
  8. package/dist-docs/assets/app.CGP3AJxb.js +1 -0
  9. package/dist-docs/assets/chunks/@localSearchIndexroot.BYBTPiic.js +1 -0
  10. package/dist-docs/assets/chunks/VPLocalSearchBox.8Tpit1ck.js +8 -0
  11. package/dist-docs/assets/chunks/framework.DRADY2L-.js +17 -6807
  12. package/dist-docs/assets/chunks/theme.SGB7Cf-o.js +2 -0
  13. package/dist-docs/assets/{guide_advanced-usage.md.DfDqOTuu.js → guide_advanced-usage.md.ChUH15VJ.js} +8 -30
  14. package/dist-docs/assets/guide_advanced-usage.md.ChUH15VJ.lean.js +1 -0
  15. package/dist-docs/assets/guide_concepts.md.GEw3xVjc.js +1 -21
  16. package/dist-docs/assets/guide_concepts.md.GEw3xVjc.lean.js +1 -10
  17. package/dist-docs/assets/{guide_getting-started.md.dZsqAPPF.js → guide_getting-started.md.CHqmbvad.js} +6 -25
  18. package/dist-docs/assets/guide_getting-started.md.CHqmbvad.lean.js +1 -0
  19. package/dist-docs/assets/index.md.Sm6vD2Gl.js +1 -0
  20. package/dist-docs/assets/index.md.Sm6vD2Gl.lean.js +1 -0
  21. package/dist-docs/assets/reference_callbacks.md.-S6uhkXO.js +19 -0
  22. package/dist-docs/assets/reference_callbacks.md.-S6uhkXO.lean.js +1 -0
  23. package/dist-docs/assets/reference_config.md.ChKLqSi3.js +41 -0
  24. package/dist-docs/assets/reference_config.md.ChKLqSi3.lean.js +1 -0
  25. package/dist-docs/assets/reference_data.md.B8JfrRhl.js +156 -0
  26. package/dist-docs/assets/reference_data.md.B8JfrRhl.lean.js +1 -0
  27. package/dist-docs/assets/reference_methods.md.BkU-PXMt.js +56 -0
  28. package/dist-docs/assets/reference_methods.md.BkU-PXMt.lean.js +1 -0
  29. package/dist-docs/assets/reference_runtime.md.UJkdf65W.js +19 -0
  30. package/dist-docs/assets/reference_runtime.md.UJkdf65W.lean.js +1 -0
  31. package/dist-docs/assets/reference_types.md.CteNuaxc.js +111 -0
  32. package/dist-docs/assets/reference_types.md.CteNuaxc.lean.js +1 -0
  33. package/dist-docs/assets/reference_utils.md.DU5CMWXW.js +12 -0
  34. package/dist-docs/assets/reference_utils.md.DU5CMWXW.lean.js +1 -0
  35. package/dist-docs/assets/{style.BhX5jokk.css → style.CN_tJoU2.css} +1 -1
  36. package/dist-docs/guide/advanced-usage.html +13 -15
  37. package/dist-docs/guide/concepts.html +5 -5
  38. package/dist-docs/guide/getting-started.html +11 -10
  39. package/dist-docs/hashmap.json +1 -1
  40. package/dist-docs/index.html +6 -6
  41. package/dist-docs/reference/callbacks.html +15 -277
  42. package/dist-docs/reference/config.html +37 -569
  43. package/dist-docs/reference/data.html +29 -122
  44. package/dist-docs/reference/methods.html +50 -298
  45. package/dist-docs/reference/runtime.html +23 -65
  46. package/dist-docs/reference/types.html +16 -95
  47. package/dist-docs/reference/utils.html +36 -0
  48. package/package.json +2 -2
  49. package/dist-docs/assets/app.D7Qrktsc.js +0 -104
  50. package/dist-docs/assets/chunks/@localSearchIndexroot.Btgy4C48.js +0 -3
  51. package/dist-docs/assets/chunks/VPLocalSearchBox.CTbu0gVG.js +0 -3556
  52. package/dist-docs/assets/chunks/theme.B7-5vjJp.js +0 -4152
  53. package/dist-docs/assets/guide_advanced-usage.md.DfDqOTuu.lean.js +0 -10
  54. package/dist-docs/assets/guide_getting-started.md.dZsqAPPF.lean.js +0 -10
  55. package/dist-docs/assets/index.md.Dd6Azqjp.js +0 -10
  56. package/dist-docs/assets/index.md.Dd6Azqjp.lean.js +0 -10
  57. package/dist-docs/assets/reference_callbacks.md.CR2l2ExI.js +0 -301
  58. package/dist-docs/assets/reference_callbacks.md.CR2l2ExI.lean.js +0 -10
  59. package/dist-docs/assets/reference_config.md.BW2PJe_F.js +0 -593
  60. package/dist-docs/assets/reference_config.md.BW2PJe_F.lean.js +0 -10
  61. package/dist-docs/assets/reference_data.md.GtmKYR4M.js +0 -269
  62. package/dist-docs/assets/reference_data.md.GtmKYR4M.lean.js +0 -10
  63. package/dist-docs/assets/reference_methods.md.yDXPS10c.js +0 -324
  64. package/dist-docs/assets/reference_methods.md.yDXPS10c.lean.js +0 -10
  65. package/dist-docs/assets/reference_runtime.md.BQ6YWC8F.js +0 -81
  66. package/dist-docs/assets/reference_runtime.md.BQ6YWC8F.lean.js +0 -10
  67. package/dist-docs/assets/reference_types.md.b5p13ywD.js +0 -210
  68. package/dist-docs/assets/reference_types.md.b5p13ywD.lean.js +0 -10
@@ -1,4152 +0,0 @@
1
- const __vite__mapDeps = (
2
- i,
3
- m = __vite__mapDeps,
4
- d = m.f ||
5
- (m.f = [
6
- 'assets/chunks/VPLocalSearchBox.CTbu0gVG.js',
7
- 'assets/chunks/framework.DRADY2L-.js',
8
- ]),
9
- ) => i.map((i) => d[i])
10
- import {
11
- d as m,
12
- c as u,
13
- r as c,
14
- n as M,
15
- o as a,
16
- a as z,
17
- t as I,
18
- b as k,
19
- w as f,
20
- T as ue,
21
- e as h,
22
- _ as g,
23
- u as He,
24
- i as Be,
25
- f as Ee,
26
- g as de,
27
- h as y,
28
- j as d,
29
- k as r,
30
- l as W,
31
- m as ae,
32
- p as T,
33
- q as D,
34
- s as Y,
35
- v as j,
36
- x as ve,
37
- y as pe,
38
- z as Fe,
39
- A as De,
40
- F as w,
41
- B as H,
42
- C as K,
43
- D as $e,
44
- E as Q,
45
- G as _,
46
- H as E,
47
- I as ye,
48
- J as Z,
49
- K as U,
50
- L as x,
51
- M as Oe,
52
- N as Pe,
53
- O as re,
54
- P as Le,
55
- Q as Ve,
56
- R as ee,
57
- S as Ge,
58
- U as Ue,
59
- V as je,
60
- W as Se,
61
- X as Te,
62
- Y as ze,
63
- Z as We,
64
- $ as Ke,
65
- a0 as qe,
66
- a1 as Re,
67
- } from './framework.DRADY2L-.js'
68
- const Je = m({
69
- __name: 'VPBadge',
70
- props: { text: {}, type: { default: 'tip' } },
71
- setup(s) {
72
- return (e, t) => (
73
- a(),
74
- u(
75
- 'span',
76
- { class: M(['VPBadge', e.type]) },
77
- [c(e.$slots, 'default', {}, () => [z(I(e.text), 1)])],
78
- 2,
79
- )
80
- )
81
- },
82
- }),
83
- Xe = { key: 0, class: 'VPBackdrop' },
84
- Ye = m({
85
- __name: 'VPBackdrop',
86
- props: { show: { type: Boolean } },
87
- setup(s) {
88
- return (e, t) => (
89
- a(),
90
- k(
91
- ue,
92
- { name: 'fade' },
93
- {
94
- default: f(() => [e.show ? (a(), u('div', Xe)) : h('', !0)]),
95
- _: 1,
96
- },
97
- )
98
- )
99
- },
100
- }),
101
- Qe = g(Ye, [['__scopeId', 'data-v-c79a1216']]),
102
- L = He
103
- function Ze(s, e) {
104
- let t,
105
- o = !1
106
- return () => {
107
- ;(t && clearTimeout(t),
108
- o
109
- ? (t = setTimeout(s, e))
110
- : (s(), (o = !0) && setTimeout(() => (o = !1), e)))
111
- }
112
- }
113
- function ie(s) {
114
- return s.startsWith('/') ? s : `/${s}`
115
- }
116
- function fe(s) {
117
- const {
118
- pathname: e,
119
- search: t,
120
- hash: o,
121
- protocol: n,
122
- } = new URL(s, 'http://a.com')
123
- if (Be(s) || s.startsWith('#') || !n.startsWith('http') || !Ee(e)) return s
124
- const { site: i } = L(),
125
- l =
126
- e.endsWith('/') || e.endsWith('.html')
127
- ? s
128
- : s.replace(
129
- /(?:(^\.+)\/)?.*$/,
130
- `$1${e.replace(/(\.md)?$/, i.value.cleanUrls ? '' : '.html')}${t}${o}`,
131
- )
132
- return de(l)
133
- }
134
- function R({ correspondingLink: s = !1 } = {}) {
135
- const { site: e, localeIndex: t, page: o, theme: n, hash: i } = L(),
136
- l = y(() => {
137
- var p, $
138
- return {
139
- label: (p = e.value.locales[t.value]) == null ? void 0 : p.label,
140
- link:
141
- (($ = e.value.locales[t.value]) == null ? void 0 : $.link) ||
142
- (t.value === 'root' ? '/' : `/${t.value}/`),
143
- }
144
- })
145
- return {
146
- localeLinks: y(() =>
147
- Object.entries(e.value.locales).flatMap(([p, $]) =>
148
- l.value.label === $.label
149
- ? []
150
- : {
151
- text: $.label,
152
- link:
153
- xe(
154
- $.link || (p === 'root' ? '/' : `/${p}/`),
155
- n.value.i18nRouting !== !1 && s,
156
- o.value.relativePath.slice(l.value.link.length - 1),
157
- !e.value.cleanUrls,
158
- ) + i.value,
159
- },
160
- ),
161
- ),
162
- currentLang: l,
163
- }
164
- }
165
- function xe(s, e, t, o) {
166
- return e
167
- ? s.replace(/\/$/, '') +
168
- ie(
169
- t
170
- .replace(/(^|\/)index\.md$/, '$1')
171
- .replace(/\.md$/, o ? '.html' : ''),
172
- )
173
- : s
174
- }
175
- const et = { class: 'NotFound' },
176
- tt = { class: 'code' },
177
- nt = { class: 'title' },
178
- ot = { class: 'quote' },
179
- st = { class: 'action' },
180
- at = ['href', 'aria-label'],
181
- rt = m({
182
- __name: 'NotFound',
183
- setup(s) {
184
- const { theme: e } = L(),
185
- { currentLang: t } = R()
186
- return (o, n) => {
187
- var i, l, v, p, $
188
- return (
189
- a(),
190
- u('div', et, [
191
- d(
192
- 'p',
193
- tt,
194
- I(((i = r(e).notFound) == null ? void 0 : i.code) ?? '404'),
195
- 1,
196
- ),
197
- d(
198
- 'h1',
199
- nt,
200
- I(
201
- ((l = r(e).notFound) == null ? void 0 : l.title) ??
202
- 'PAGE NOT FOUND',
203
- ),
204
- 1,
205
- ),
206
- n[0] || (n[0] = d('div', { class: 'divider' }, null, -1)),
207
- d(
208
- 'blockquote',
209
- ot,
210
- I(
211
- ((v = r(e).notFound) == null ? void 0 : v.quote) ??
212
- "But if you don't change your direction, and if you keep looking, you may end up where you are heading.",
213
- ),
214
- 1,
215
- ),
216
- d('div', st, [
217
- d(
218
- 'a',
219
- {
220
- class: 'link',
221
- href: r(de)(r(t).link),
222
- 'aria-label':
223
- ((p = r(e).notFound) == null ? void 0 : p.linkLabel) ??
224
- 'go to home',
225
- },
226
- I(
227
- (($ = r(e).notFound) == null ? void 0 : $.linkText) ??
228
- 'Take me home',
229
- ),
230
- 9,
231
- at,
232
- ),
233
- ]),
234
- ])
235
- )
236
- }
237
- },
238
- }),
239
- it = g(rt, [['__scopeId', 'data-v-d6be1790']])
240
- function Ne(s, e) {
241
- if (Array.isArray(s)) return J(s)
242
- if (s == null) return []
243
- e = ie(e)
244
- const t = Object.keys(s)
245
- .sort((n, i) => i.split('/').length - n.split('/').length)
246
- .find((n) => e.startsWith(ie(n))),
247
- o = t ? s[t] : []
248
- return Array.isArray(o) ? J(o) : J(o.items, o.base)
249
- }
250
- function lt(s) {
251
- const e = []
252
- let t = 0
253
- for (const o in s) {
254
- const n = s[o]
255
- if (n.items) {
256
- t = e.push(n)
257
- continue
258
- }
259
- ;(e[t] || e.push({ items: [] }), e[t].items.push(n))
260
- }
261
- return e
262
- }
263
- function ct(s) {
264
- const e = []
265
- function t(o) {
266
- for (const n of o)
267
- (n.text &&
268
- n.link &&
269
- e.push({ text: n.text, link: n.link, docFooterText: n.docFooterText }),
270
- n.items && t(n.items))
271
- }
272
- return (t(s), e)
273
- }
274
- function le(s, e) {
275
- return Array.isArray(e)
276
- ? e.some((t) => le(s, t))
277
- : W(s, e.link)
278
- ? !0
279
- : e.items
280
- ? le(s, e.items)
281
- : !1
282
- }
283
- function J(s, e) {
284
- return [...s].map((t) => {
285
- const o = { ...t },
286
- n = o.base || e
287
- return (
288
- n && o.link && (o.link = n + o.link),
289
- o.items && (o.items = J(o.items, n)),
290
- o
291
- )
292
- })
293
- }
294
- function O() {
295
- const { frontmatter: s, page: e, theme: t } = L(),
296
- o = ae('(min-width: 960px)'),
297
- n = T(!1),
298
- i = y(() => {
299
- const C = t.value.sidebar,
300
- S = e.value.relativePath
301
- return C ? Ne(C, S) : []
302
- }),
303
- l = T(i.value)
304
- D(i, (C, S) => {
305
- JSON.stringify(C) !== JSON.stringify(S) && (l.value = i.value)
306
- })
307
- const v = y(
308
- () =>
309
- s.value.sidebar !== !1 &&
310
- l.value.length > 0 &&
311
- s.value.layout !== 'home',
312
- ),
313
- p = y(() =>
314
- $
315
- ? s.value.aside == null
316
- ? t.value.aside === 'left'
317
- : s.value.aside === 'left'
318
- : !1,
319
- ),
320
- $ = y(() =>
321
- s.value.layout === 'home'
322
- ? !1
323
- : s.value.aside != null
324
- ? !!s.value.aside
325
- : t.value.aside !== !1,
326
- ),
327
- V = y(() => v.value && o.value),
328
- b = y(() => (v.value ? lt(l.value) : []))
329
- function P() {
330
- n.value = !0
331
- }
332
- function N() {
333
- n.value = !1
334
- }
335
- function A() {
336
- n.value ? N() : P()
337
- }
338
- return {
339
- isOpen: n,
340
- sidebar: l,
341
- sidebarGroups: b,
342
- hasSidebar: v,
343
- hasAside: $,
344
- leftAside: p,
345
- isSidebarEnabled: V,
346
- open: P,
347
- close: N,
348
- toggle: A,
349
- }
350
- }
351
- function ut(s, e) {
352
- let t
353
- ;(Y(() => {
354
- t = s.value ? document.activeElement : void 0
355
- }),
356
- j(() => {
357
- window.addEventListener('keyup', o)
358
- }),
359
- ve(() => {
360
- window.removeEventListener('keyup', o)
361
- }))
362
- function o(n) {
363
- n.key === 'Escape' && s.value && (e(), t == null || t.focus())
364
- }
365
- }
366
- function dt(s) {
367
- const { page: e, hash: t } = L(),
368
- o = T(!1),
369
- n = y(() => s.value.collapsed != null),
370
- i = y(() => !!s.value.link),
371
- l = T(!1),
372
- v = () => {
373
- l.value = W(e.value.relativePath, s.value.link)
374
- }
375
- ;(D([e, s, t], v), j(v))
376
- const p = y(() =>
377
- l.value
378
- ? !0
379
- : s.value.items
380
- ? le(e.value.relativePath, s.value.items)
381
- : !1,
382
- ),
383
- $ = y(() => !!(s.value.items && s.value.items.length))
384
- ;(Y(() => {
385
- o.value = !!(n.value && s.value.collapsed)
386
- }),
387
- pe(() => {
388
- ;(l.value || p.value) && (o.value = !1)
389
- }))
390
- function V() {
391
- n.value && (o.value = !o.value)
392
- }
393
- return {
394
- collapsed: o,
395
- collapsible: n,
396
- isLink: i,
397
- isActiveLink: l,
398
- hasActiveLink: p,
399
- hasChildren: $,
400
- toggle: V,
401
- }
402
- }
403
- function vt() {
404
- const { hasSidebar: s } = O(),
405
- e = ae('(min-width: 960px)'),
406
- t = ae('(min-width: 1280px)')
407
- return {
408
- isAsideEnabled: y(() =>
409
- !t.value && !e.value ? !1 : s.value ? t.value : e.value,
410
- ),
411
- }
412
- }
413
- const pt = /\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,
414
- ce = []
415
- function Me(s) {
416
- return (
417
- (typeof s.outline == 'object' &&
418
- !Array.isArray(s.outline) &&
419
- s.outline.label) ||
420
- s.outlineTitle ||
421
- 'On this page'
422
- )
423
- }
424
- function he(s) {
425
- const e = [...document.querySelectorAll('.VPDoc :where(h1,h2,h3,h4,h5,h6)')]
426
- .filter((t) => t.id && t.hasChildNodes())
427
- .map((t) => {
428
- const o = Number(t.tagName[1])
429
- return { element: t, title: ft(t), link: '#' + t.id, level: o }
430
- })
431
- return ht(e, s)
432
- }
433
- function ft(s) {
434
- let e = ''
435
- for (const t of s.childNodes)
436
- if (t.nodeType === 1) {
437
- if (pt.test(t.className)) continue
438
- e += t.textContent
439
- } else t.nodeType === 3 && (e += t.textContent)
440
- return e.trim()
441
- }
442
- function ht(s, e) {
443
- if (e === !1) return []
444
- const t = (typeof e == 'object' && !Array.isArray(e) ? e.level : e) || 2,
445
- [o, n] = typeof t == 'number' ? [t, t] : t === 'deep' ? [2, 6] : t
446
- return kt(s, o, n)
447
- }
448
- function mt(s, e) {
449
- const { isAsideEnabled: t } = vt(),
450
- o = Ze(i, 100)
451
- let n = null
452
- ;(j(() => {
453
- ;(requestAnimationFrame(i), window.addEventListener('scroll', o))
454
- }),
455
- Fe(() => {
456
- l(location.hash)
457
- }),
458
- ve(() => {
459
- window.removeEventListener('scroll', o)
460
- }))
461
- function i() {
462
- if (!t.value) return
463
- const v = window.scrollY,
464
- p = window.innerHeight,
465
- $ = document.body.offsetHeight,
466
- V = Math.abs(v + p - $) < 1,
467
- b = ce
468
- .map(({ element: N, link: A }) => ({ link: A, top: _t(N) }))
469
- .filter(({ top: N }) => !Number.isNaN(N))
470
- .sort((N, A) => N.top - A.top)
471
- if (!b.length) {
472
- l(null)
473
- return
474
- }
475
- if (v < 1) {
476
- l(null)
477
- return
478
- }
479
- if (V) {
480
- l(b[b.length - 1].link)
481
- return
482
- }
483
- let P = null
484
- for (const { link: N, top: A } of b) {
485
- if (A > v + De() + 4) break
486
- P = N
487
- }
488
- l(P)
489
- }
490
- function l(v) {
491
- ;(n && n.classList.remove('active'),
492
- v == null
493
- ? (n = null)
494
- : (n = s.value.querySelector(`a[href="${decodeURIComponent(v)}"]`)))
495
- const p = n
496
- p
497
- ? (p.classList.add('active'),
498
- (e.value.style.top = p.offsetTop + 39 + 'px'),
499
- (e.value.style.opacity = '1'))
500
- : ((e.value.style.top = '33px'), (e.value.style.opacity = '0'))
501
- }
502
- }
503
- function _t(s) {
504
- let e = 0
505
- for (; s !== document.body; ) {
506
- if (s === null) return NaN
507
- ;((e += s.offsetTop), (s = s.offsetParent))
508
- }
509
- return e
510
- }
511
- function kt(s, e, t) {
512
- ce.length = 0
513
- const o = [],
514
- n = []
515
- return (
516
- s.forEach((i) => {
517
- const l = { ...i, children: [] }
518
- let v = n[n.length - 1]
519
- for (; v && v.level >= l.level; ) (n.pop(), (v = n[n.length - 1]))
520
- if (
521
- l.element.classList.contains('ignore-header') ||
522
- (v && 'shouldIgnore' in v)
523
- ) {
524
- n.push({ level: l.level, shouldIgnore: !0 })
525
- return
526
- }
527
- l.level > t ||
528
- l.level < e ||
529
- (ce.push({ element: l.element, link: l.link }),
530
- v ? v.children.push(l) : o.push(l),
531
- n.push(l))
532
- }),
533
- o
534
- )
535
- }
536
- const bt = ['href', 'title'],
537
- gt = m({
538
- __name: 'VPDocOutlineItem',
539
- props: { headers: {}, root: { type: Boolean } },
540
- setup(s) {
541
- function e({ target: t }) {
542
- const o = t.href.split('#')[1],
543
- n = document.getElementById(decodeURIComponent(o))
544
- n == null || n.focus({ preventScroll: !0 })
545
- }
546
- return (t, o) => {
547
- const n = K('VPDocOutlineItem', !0)
548
- return (
549
- a(),
550
- u(
551
- 'ul',
552
- { class: M(['VPDocOutlineItem', t.root ? 'root' : 'nested']) },
553
- [
554
- (a(!0),
555
- u(
556
- w,
557
- null,
558
- H(
559
- t.headers,
560
- ({ children: i, link: l, title: v }) => (
561
- a(),
562
- u('li', null, [
563
- d(
564
- 'a',
565
- {
566
- class: 'outline-link',
567
- href: l,
568
- onClick: e,
569
- title: v,
570
- },
571
- I(v),
572
- 9,
573
- bt,
574
- ),
575
- i != null && i.length
576
- ? (a(),
577
- k(n, { key: 0, headers: i }, null, 8, ['headers']))
578
- : h('', !0),
579
- ])
580
- ),
581
- ),
582
- 256,
583
- )),
584
- ],
585
- 2,
586
- )
587
- )
588
- }
589
- },
590
- }),
591
- Ie = g(gt, [['__scopeId', 'data-v-b933a997']]),
592
- $t = { class: 'content' },
593
- yt = {
594
- 'aria-level': '2',
595
- class: 'outline-title',
596
- id: 'doc-outline-aria-label',
597
- role: 'heading',
598
- },
599
- Pt = m({
600
- __name: 'VPDocAsideOutline',
601
- setup(s) {
602
- const { frontmatter: e, theme: t } = L(),
603
- o = $e([])
604
- Q(() => {
605
- o.value = he(e.value.outline ?? t.value.outline)
606
- })
607
- const n = T(),
608
- i = T()
609
- return (
610
- mt(n, i),
611
- (l, v) => (
612
- a(),
613
- u(
614
- 'nav',
615
- {
616
- 'aria-labelledby': 'doc-outline-aria-label',
617
- class: M([
618
- 'VPDocAsideOutline',
619
- { 'has-outline': o.value.length > 0 },
620
- ]),
621
- ref_key: 'container',
622
- ref: n,
623
- },
624
- [
625
- d('div', $t, [
626
- d(
627
- 'div',
628
- { class: 'outline-marker', ref_key: 'marker', ref: i },
629
- null,
630
- 512,
631
- ),
632
- d('div', yt, I(r(Me)(r(t))), 1),
633
- _(Ie, { headers: o.value, root: !0 }, null, 8, ['headers']),
634
- ]),
635
- ],
636
- 2,
637
- )
638
- )
639
- )
640
- },
641
- }),
642
- Lt = g(Pt, [['__scopeId', 'data-v-a5bbad30']]),
643
- Vt = { class: 'VPDocAsideCarbonAds' },
644
- St = m({
645
- __name: 'VPDocAsideCarbonAds',
646
- props: { carbonAds: {} },
647
- setup(s) {
648
- const e = () => null
649
- return (t, o) => (
650
- a(),
651
- u('div', Vt, [
652
- _(r(e), { 'carbon-ads': t.carbonAds }, null, 8, ['carbon-ads']),
653
- ])
654
- )
655
- },
656
- }),
657
- Tt = { class: 'VPDocAside' },
658
- Nt = m({
659
- __name: 'VPDocAside',
660
- setup(s) {
661
- const { theme: e } = L()
662
- return (t, o) => (
663
- a(),
664
- u('div', Tt, [
665
- c(t.$slots, 'aside-top', {}, void 0, !0),
666
- c(t.$slots, 'aside-outline-before', {}, void 0, !0),
667
- _(Lt),
668
- c(t.$slots, 'aside-outline-after', {}, void 0, !0),
669
- o[0] || (o[0] = d('div', { class: 'spacer' }, null, -1)),
670
- c(t.$slots, 'aside-ads-before', {}, void 0, !0),
671
- r(e).carbonAds
672
- ? (a(),
673
- k(St, { key: 0, 'carbon-ads': r(e).carbonAds }, null, 8, [
674
- 'carbon-ads',
675
- ]))
676
- : h('', !0),
677
- c(t.$slots, 'aside-ads-after', {}, void 0, !0),
678
- c(t.$slots, 'aside-bottom', {}, void 0, !0),
679
- ])
680
- )
681
- },
682
- }),
683
- Mt = g(Nt, [['__scopeId', 'data-v-3f215769']])
684
- function It() {
685
- const { theme: s, page: e } = L()
686
- return y(() => {
687
- const { text: t = 'Edit this page', pattern: o = '' } =
688
- s.value.editLink || {}
689
- let n
690
- return (
691
- typeof o == 'function'
692
- ? (n = o(e.value))
693
- : (n = o.replace(/:path/g, e.value.filePath)),
694
- { url: n, text: t }
695
- )
696
- })
697
- }
698
- function wt() {
699
- const { page: s, theme: e, frontmatter: t } = L()
700
- return y(() => {
701
- var $, V, b, P, N, A, C, S
702
- const o = Ne(e.value.sidebar, s.value.relativePath),
703
- n = ct(o),
704
- i = At(n, (B) => B.link.replace(/[?#].*$/, '')),
705
- l = i.findIndex((B) => W(s.value.relativePath, B.link)),
706
- v =
707
- ((($ = e.value.docFooter) == null ? void 0 : $.prev) === !1 &&
708
- !t.value.prev) ||
709
- t.value.prev === !1,
710
- p =
711
- (((V = e.value.docFooter) == null ? void 0 : V.next) === !1 &&
712
- !t.value.next) ||
713
- t.value.next === !1
714
- return {
715
- prev: v
716
- ? void 0
717
- : {
718
- text:
719
- (typeof t.value.prev == 'string'
720
- ? t.value.prev
721
- : typeof t.value.prev == 'object'
722
- ? t.value.prev.text
723
- : void 0) ??
724
- ((b = i[l - 1]) == null ? void 0 : b.docFooterText) ??
725
- ((P = i[l - 1]) == null ? void 0 : P.text),
726
- link:
727
- (typeof t.value.prev == 'object' ? t.value.prev.link : void 0) ??
728
- ((N = i[l - 1]) == null ? void 0 : N.link),
729
- },
730
- next: p
731
- ? void 0
732
- : {
733
- text:
734
- (typeof t.value.next == 'string'
735
- ? t.value.next
736
- : typeof t.value.next == 'object'
737
- ? t.value.next.text
738
- : void 0) ??
739
- ((A = i[l + 1]) == null ? void 0 : A.docFooterText) ??
740
- ((C = i[l + 1]) == null ? void 0 : C.text),
741
- link:
742
- (typeof t.value.next == 'object' ? t.value.next.link : void 0) ??
743
- ((S = i[l + 1]) == null ? void 0 : S.link),
744
- },
745
- }
746
- })
747
- }
748
- function At(s, e) {
749
- const t = new Set()
750
- return s.filter((o) => {
751
- const n = e(o)
752
- return t.has(n) ? !1 : t.add(n)
753
- })
754
- }
755
- const F = m({
756
- __name: 'VPLink',
757
- props: {
758
- tag: {},
759
- href: {},
760
- noIcon: { type: Boolean },
761
- target: {},
762
- rel: {},
763
- },
764
- setup(s) {
765
- const e = s,
766
- t = y(() => e.tag ?? (e.href ? 'a' : 'span')),
767
- o = y(() => (e.href && ye.test(e.href)) || e.target === '_blank')
768
- return (n, i) => (
769
- a(),
770
- k(
771
- E(t.value),
772
- {
773
- class: M([
774
- 'VPLink',
775
- {
776
- link: n.href,
777
- 'vp-external-link-icon': o.value,
778
- 'no-icon': n.noIcon,
779
- },
780
- ]),
781
- href: n.href ? r(fe)(n.href) : void 0,
782
- target: n.target ?? (o.value ? '_blank' : void 0),
783
- rel: n.rel ?? (o.value ? 'noreferrer' : void 0),
784
- },
785
- { default: f(() => [c(n.$slots, 'default')]), _: 3 },
786
- 8,
787
- ['class', 'href', 'target', 'rel'],
788
- )
789
- )
790
- },
791
- }),
792
- Ct = { class: 'VPLastUpdated' },
793
- Ht = ['datetime'],
794
- Bt = m({
795
- __name: 'VPDocFooterLastUpdated',
796
- setup(s) {
797
- const { theme: e, page: t, lang: o } = L(),
798
- n = y(() => new Date(t.value.lastUpdated)),
799
- i = y(() => n.value.toISOString()),
800
- l = T('')
801
- return (
802
- j(() => {
803
- Y(() => {
804
- var v, p, $
805
- l.value = new Intl.DateTimeFormat(
806
- (p =
807
- (v = e.value.lastUpdated) == null ? void 0 : v.formatOptions) !=
808
- null && p.forceLocale
809
- ? o.value
810
- : void 0,
811
- (($ = e.value.lastUpdated) == null
812
- ? void 0
813
- : $.formatOptions) ?? {
814
- dateStyle: 'short',
815
- timeStyle: 'short',
816
- },
817
- ).format(n.value)
818
- })
819
- }),
820
- (v, p) => {
821
- var $
822
- return (
823
- a(),
824
- u('p', Ct, [
825
- z(
826
- I(
827
- (($ = r(e).lastUpdated) == null ? void 0 : $.text) ||
828
- r(e).lastUpdatedText ||
829
- 'Last updated',
830
- ) + ': ',
831
- 1,
832
- ),
833
- d('time', { datetime: i.value }, I(l.value), 9, Ht),
834
- ])
835
- )
836
- }
837
- )
838
- },
839
- }),
840
- Et = g(Bt, [['__scopeId', 'data-v-e98dd255']]),
841
- Ft = { key: 0, class: 'VPDocFooter' },
842
- Dt = { key: 0, class: 'edit-info' },
843
- Ot = { key: 0, class: 'edit-link' },
844
- Gt = { key: 1, class: 'last-updated' },
845
- Ut = {
846
- key: 1,
847
- class: 'prev-next',
848
- 'aria-labelledby': 'doc-footer-aria-label',
849
- },
850
- jt = { class: 'pager' },
851
- zt = ['innerHTML'],
852
- Wt = ['innerHTML'],
853
- Kt = { class: 'pager' },
854
- qt = ['innerHTML'],
855
- Rt = ['innerHTML'],
856
- Jt = m({
857
- __name: 'VPDocFooter',
858
- setup(s) {
859
- const { theme: e, page: t, frontmatter: o } = L(),
860
- n = It(),
861
- i = wt(),
862
- l = y(() => e.value.editLink && o.value.editLink !== !1),
863
- v = y(() => t.value.lastUpdated),
864
- p = y(() => l.value || v.value || i.value.prev || i.value.next)
865
- return ($, V) => {
866
- var b, P, N, A
867
- return p.value
868
- ? (a(),
869
- u('footer', Ft, [
870
- c($.$slots, 'doc-footer-before', {}, void 0, !0),
871
- l.value || v.value
872
- ? (a(),
873
- u('div', Dt, [
874
- l.value
875
- ? (a(),
876
- u('div', Ot, [
877
- _(
878
- F,
879
- {
880
- class: 'edit-link-button',
881
- href: r(n).url,
882
- 'no-icon': !0,
883
- },
884
- {
885
- default: f(() => [
886
- V[0] ||
887
- (V[0] = d(
888
- 'span',
889
- { class: 'vpi-square-pen edit-link-icon' },
890
- null,
891
- -1,
892
- )),
893
- z(' ' + I(r(n).text), 1),
894
- ]),
895
- _: 1,
896
- },
897
- 8,
898
- ['href'],
899
- ),
900
- ]))
901
- : h('', !0),
902
- v.value ? (a(), u('div', Gt, [_(Et)])) : h('', !0),
903
- ]))
904
- : h('', !0),
905
- ((b = r(i).prev) != null && b.link) ||
906
- ((P = r(i).next) != null && P.link)
907
- ? (a(),
908
- u('nav', Ut, [
909
- V[1] ||
910
- (V[1] = d(
911
- 'span',
912
- {
913
- class: 'visually-hidden',
914
- id: 'doc-footer-aria-label',
915
- },
916
- 'Pager',
917
- -1,
918
- )),
919
- d('div', jt, [
920
- (N = r(i).prev) != null && N.link
921
- ? (a(),
922
- k(
923
- F,
924
- {
925
- key: 0,
926
- class: 'pager-link prev',
927
- href: r(i).prev.link,
928
- },
929
- {
930
- default: f(() => {
931
- var C
932
- return [
933
- d(
934
- 'span',
935
- {
936
- class: 'desc',
937
- innerHTML:
938
- ((C = r(e).docFooter) == null
939
- ? void 0
940
- : C.prev) || 'Previous page',
941
- },
942
- null,
943
- 8,
944
- zt,
945
- ),
946
- d(
947
- 'span',
948
- {
949
- class: 'title',
950
- innerHTML: r(i).prev.text,
951
- },
952
- null,
953
- 8,
954
- Wt,
955
- ),
956
- ]
957
- }),
958
- _: 1,
959
- },
960
- 8,
961
- ['href'],
962
- ))
963
- : h('', !0),
964
- ]),
965
- d('div', Kt, [
966
- (A = r(i).next) != null && A.link
967
- ? (a(),
968
- k(
969
- F,
970
- {
971
- key: 0,
972
- class: 'pager-link next',
973
- href: r(i).next.link,
974
- },
975
- {
976
- default: f(() => {
977
- var C
978
- return [
979
- d(
980
- 'span',
981
- {
982
- class: 'desc',
983
- innerHTML:
984
- ((C = r(e).docFooter) == null
985
- ? void 0
986
- : C.next) || 'Next page',
987
- },
988
- null,
989
- 8,
990
- qt,
991
- ),
992
- d(
993
- 'span',
994
- {
995
- class: 'title',
996
- innerHTML: r(i).next.text,
997
- },
998
- null,
999
- 8,
1000
- Rt,
1001
- ),
1002
- ]
1003
- }),
1004
- _: 1,
1005
- },
1006
- 8,
1007
- ['href'],
1008
- ))
1009
- : h('', !0),
1010
- ]),
1011
- ]))
1012
- : h('', !0),
1013
- ]))
1014
- : h('', !0)
1015
- }
1016
- },
1017
- }),
1018
- Xt = g(Jt, [['__scopeId', 'data-v-e257564d']]),
1019
- Yt = { class: 'container' },
1020
- Qt = { class: 'aside-container' },
1021
- Zt = { class: 'aside-content' },
1022
- xt = { class: 'content' },
1023
- en = { class: 'content-container' },
1024
- tn = { class: 'main' },
1025
- nn = m({
1026
- __name: 'VPDoc',
1027
- setup(s) {
1028
- const { theme: e } = L(),
1029
- t = Z(),
1030
- { hasSidebar: o, hasAside: n, leftAside: i } = O(),
1031
- l = y(() => t.path.replace(/[./]+/g, '_').replace(/_html$/, ''))
1032
- return (v, p) => {
1033
- const $ = K('Content')
1034
- return (
1035
- a(),
1036
- u(
1037
- 'div',
1038
- { class: M(['VPDoc', { 'has-sidebar': r(o), 'has-aside': r(n) }]) },
1039
- [
1040
- c(v.$slots, 'doc-top', {}, void 0, !0),
1041
- d('div', Yt, [
1042
- r(n)
1043
- ? (a(),
1044
- u(
1045
- 'div',
1046
- { key: 0, class: M(['aside', { 'left-aside': r(i) }]) },
1047
- [
1048
- p[0] ||
1049
- (p[0] = d(
1050
- 'div',
1051
- { class: 'aside-curtain' },
1052
- null,
1053
- -1,
1054
- )),
1055
- d('div', Qt, [
1056
- d('div', Zt, [
1057
- _(Mt, null, {
1058
- 'aside-top': f(() => [
1059
- c(v.$slots, 'aside-top', {}, void 0, !0),
1060
- ]),
1061
- 'aside-bottom': f(() => [
1062
- c(v.$slots, 'aside-bottom', {}, void 0, !0),
1063
- ]),
1064
- 'aside-outline-before': f(() => [
1065
- c(
1066
- v.$slots,
1067
- 'aside-outline-before',
1068
- {},
1069
- void 0,
1070
- !0,
1071
- ),
1072
- ]),
1073
- 'aside-outline-after': f(() => [
1074
- c(
1075
- v.$slots,
1076
- 'aside-outline-after',
1077
- {},
1078
- void 0,
1079
- !0,
1080
- ),
1081
- ]),
1082
- 'aside-ads-before': f(() => [
1083
- c(v.$slots, 'aside-ads-before', {}, void 0, !0),
1084
- ]),
1085
- 'aside-ads-after': f(() => [
1086
- c(v.$slots, 'aside-ads-after', {}, void 0, !0),
1087
- ]),
1088
- _: 3,
1089
- }),
1090
- ]),
1091
- ]),
1092
- ],
1093
- 2,
1094
- ))
1095
- : h('', !0),
1096
- d('div', xt, [
1097
- d('div', en, [
1098
- c(v.$slots, 'doc-before', {}, void 0, !0),
1099
- d('main', tn, [
1100
- _(
1101
- $,
1102
- {
1103
- class: M([
1104
- 'vp-doc',
1105
- [
1106
- l.value,
1107
- r(e).externalLinkIcon &&
1108
- 'external-link-icon-enabled',
1109
- ],
1110
- ]),
1111
- },
1112
- null,
1113
- 8,
1114
- ['class'],
1115
- ),
1116
- ]),
1117
- _(Xt, null, {
1118
- 'doc-footer-before': f(() => [
1119
- c(v.$slots, 'doc-footer-before', {}, void 0, !0),
1120
- ]),
1121
- _: 3,
1122
- }),
1123
- c(v.$slots, 'doc-after', {}, void 0, !0),
1124
- ]),
1125
- ]),
1126
- ]),
1127
- c(v.$slots, 'doc-bottom', {}, void 0, !0),
1128
- ],
1129
- 2,
1130
- )
1131
- )
1132
- }
1133
- },
1134
- }),
1135
- on = g(nn, [['__scopeId', 'data-v-39a288b8']]),
1136
- sn = m({
1137
- __name: 'VPButton',
1138
- props: {
1139
- tag: {},
1140
- size: { default: 'medium' },
1141
- theme: { default: 'brand' },
1142
- text: {},
1143
- href: {},
1144
- target: {},
1145
- rel: {},
1146
- },
1147
- setup(s) {
1148
- const e = s,
1149
- t = y(() => e.href && ye.test(e.href)),
1150
- o = y(() => e.tag || (e.href ? 'a' : 'button'))
1151
- return (n, i) => (
1152
- a(),
1153
- k(
1154
- E(o.value),
1155
- {
1156
- class: M(['VPButton', [n.size, n.theme]]),
1157
- href: n.href ? r(fe)(n.href) : void 0,
1158
- target: e.target ?? (t.value ? '_blank' : void 0),
1159
- rel: e.rel ?? (t.value ? 'noreferrer' : void 0),
1160
- },
1161
- { default: f(() => [z(I(n.text), 1)]), _: 1 },
1162
- 8,
1163
- ['class', 'href', 'target', 'rel'],
1164
- )
1165
- )
1166
- },
1167
- }),
1168
- an = g(sn, [['__scopeId', 'data-v-fa7799d5']]),
1169
- rn = ['src', 'alt'],
1170
- ln = m({
1171
- inheritAttrs: !1,
1172
- __name: 'VPImage',
1173
- props: { image: {}, alt: {} },
1174
- setup(s) {
1175
- return (e, t) => {
1176
- const o = K('VPImage', !0)
1177
- return e.image
1178
- ? (a(),
1179
- u(
1180
- w,
1181
- { key: 0 },
1182
- [
1183
- typeof e.image == 'string' || 'src' in e.image
1184
- ? (a(),
1185
- u(
1186
- 'img',
1187
- U(
1188
- { key: 0, class: 'VPImage' },
1189
- typeof e.image == 'string'
1190
- ? e.$attrs
1191
- : { ...e.image, ...e.$attrs },
1192
- {
1193
- src: r(de)(
1194
- typeof e.image == 'string' ? e.image : e.image.src,
1195
- ),
1196
- alt:
1197
- e.alt ??
1198
- (typeof e.image == 'string'
1199
- ? ''
1200
- : e.image.alt || ''),
1201
- },
1202
- ),
1203
- null,
1204
- 16,
1205
- rn,
1206
- ))
1207
- : (a(),
1208
- u(
1209
- w,
1210
- { key: 1 },
1211
- [
1212
- _(
1213
- o,
1214
- U(
1215
- {
1216
- class: 'dark',
1217
- image: e.image.dark,
1218
- alt: e.image.alt,
1219
- },
1220
- e.$attrs,
1221
- ),
1222
- null,
1223
- 16,
1224
- ['image', 'alt'],
1225
- ),
1226
- _(
1227
- o,
1228
- U(
1229
- {
1230
- class: 'light',
1231
- image: e.image.light,
1232
- alt: e.image.alt,
1233
- },
1234
- e.$attrs,
1235
- ),
1236
- null,
1237
- 16,
1238
- ['image', 'alt'],
1239
- ),
1240
- ],
1241
- 64,
1242
- )),
1243
- ],
1244
- 64,
1245
- ))
1246
- : h('', !0)
1247
- }
1248
- },
1249
- }),
1250
- X = g(ln, [['__scopeId', 'data-v-8426fc1a']]),
1251
- cn = { class: 'container' },
1252
- un = { class: 'main' },
1253
- dn = { class: 'heading' },
1254
- vn = ['innerHTML'],
1255
- pn = ['innerHTML'],
1256
- fn = ['innerHTML'],
1257
- hn = { key: 0, class: 'actions' },
1258
- mn = { key: 0, class: 'image' },
1259
- _n = { class: 'image-container' },
1260
- kn = m({
1261
- __name: 'VPHero',
1262
- props: { name: {}, text: {}, tagline: {}, image: {}, actions: {} },
1263
- setup(s) {
1264
- const e = x('hero-image-slot-exists')
1265
- return (t, o) => (
1266
- a(),
1267
- u(
1268
- 'div',
1269
- { class: M(['VPHero', { 'has-image': t.image || r(e) }]) },
1270
- [
1271
- d('div', cn, [
1272
- d('div', un, [
1273
- c(t.$slots, 'home-hero-info-before', {}, void 0, !0),
1274
- c(
1275
- t.$slots,
1276
- 'home-hero-info',
1277
- {},
1278
- () => [
1279
- d('h1', dn, [
1280
- t.name
1281
- ? (a(),
1282
- u(
1283
- 'span',
1284
- { key: 0, innerHTML: t.name, class: 'name clip' },
1285
- null,
1286
- 8,
1287
- vn,
1288
- ))
1289
- : h('', !0),
1290
- t.text
1291
- ? (a(),
1292
- u(
1293
- 'span',
1294
- { key: 1, innerHTML: t.text, class: 'text' },
1295
- null,
1296
- 8,
1297
- pn,
1298
- ))
1299
- : h('', !0),
1300
- ]),
1301
- t.tagline
1302
- ? (a(),
1303
- u(
1304
- 'p',
1305
- { key: 0, innerHTML: t.tagline, class: 'tagline' },
1306
- null,
1307
- 8,
1308
- fn,
1309
- ))
1310
- : h('', !0),
1311
- ],
1312
- !0,
1313
- ),
1314
- c(t.$slots, 'home-hero-info-after', {}, void 0, !0),
1315
- t.actions
1316
- ? (a(),
1317
- u('div', hn, [
1318
- (a(!0),
1319
- u(
1320
- w,
1321
- null,
1322
- H(
1323
- t.actions,
1324
- (n) => (
1325
- a(),
1326
- u('div', { key: n.link, class: 'action' }, [
1327
- _(
1328
- an,
1329
- {
1330
- tag: 'a',
1331
- size: 'medium',
1332
- theme: n.theme,
1333
- text: n.text,
1334
- href: n.link,
1335
- target: n.target,
1336
- rel: n.rel,
1337
- },
1338
- null,
1339
- 8,
1340
- ['theme', 'text', 'href', 'target', 'rel'],
1341
- ),
1342
- ])
1343
- ),
1344
- ),
1345
- 128,
1346
- )),
1347
- ]))
1348
- : h('', !0),
1349
- c(t.$slots, 'home-hero-actions-after', {}, void 0, !0),
1350
- ]),
1351
- t.image || r(e)
1352
- ? (a(),
1353
- u('div', mn, [
1354
- d('div', _n, [
1355
- o[0] ||
1356
- (o[0] = d('div', { class: 'image-bg' }, null, -1)),
1357
- c(
1358
- t.$slots,
1359
- 'home-hero-image',
1360
- {},
1361
- () => [
1362
- t.image
1363
- ? (a(),
1364
- k(
1365
- X,
1366
- { key: 0, class: 'image-src', image: t.image },
1367
- null,
1368
- 8,
1369
- ['image'],
1370
- ))
1371
- : h('', !0),
1372
- ],
1373
- !0,
1374
- ),
1375
- ]),
1376
- ]))
1377
- : h('', !0),
1378
- ]),
1379
- ],
1380
- 2,
1381
- )
1382
- )
1383
- },
1384
- }),
1385
- bn = g(kn, [['__scopeId', 'data-v-4f9c455b']]),
1386
- gn = m({
1387
- __name: 'VPHomeHero',
1388
- setup(s) {
1389
- const { frontmatter: e } = L()
1390
- return (t, o) =>
1391
- r(e).hero
1392
- ? (a(),
1393
- k(
1394
- bn,
1395
- {
1396
- key: 0,
1397
- class: 'VPHomeHero',
1398
- name: r(e).hero.name,
1399
- text: r(e).hero.text,
1400
- tagline: r(e).hero.tagline,
1401
- image: r(e).hero.image,
1402
- actions: r(e).hero.actions,
1403
- },
1404
- {
1405
- 'home-hero-info-before': f(() => [
1406
- c(t.$slots, 'home-hero-info-before'),
1407
- ]),
1408
- 'home-hero-info': f(() => [c(t.$slots, 'home-hero-info')]),
1409
- 'home-hero-info-after': f(() => [
1410
- c(t.$slots, 'home-hero-info-after'),
1411
- ]),
1412
- 'home-hero-actions-after': f(() => [
1413
- c(t.$slots, 'home-hero-actions-after'),
1414
- ]),
1415
- 'home-hero-image': f(() => [c(t.$slots, 'home-hero-image')]),
1416
- _: 3,
1417
- },
1418
- 8,
1419
- ['name', 'text', 'tagline', 'image', 'actions'],
1420
- ))
1421
- : h('', !0)
1422
- },
1423
- }),
1424
- $n = { class: 'box' },
1425
- yn = { key: 0, class: 'icon' },
1426
- Pn = ['innerHTML'],
1427
- Ln = ['innerHTML'],
1428
- Vn = ['innerHTML'],
1429
- Sn = { key: 4, class: 'link-text' },
1430
- Tn = { class: 'link-text-value' },
1431
- Nn = m({
1432
- __name: 'VPFeature',
1433
- props: {
1434
- icon: {},
1435
- title: {},
1436
- details: {},
1437
- link: {},
1438
- linkText: {},
1439
- rel: {},
1440
- target: {},
1441
- },
1442
- setup(s) {
1443
- return (e, t) => (
1444
- a(),
1445
- k(
1446
- F,
1447
- {
1448
- class: 'VPFeature',
1449
- href: e.link,
1450
- rel: e.rel,
1451
- target: e.target,
1452
- 'no-icon': !0,
1453
- tag: e.link ? 'a' : 'div',
1454
- },
1455
- {
1456
- default: f(() => [
1457
- d('article', $n, [
1458
- typeof e.icon == 'object' && e.icon.wrap
1459
- ? (a(),
1460
- u('div', yn, [
1461
- _(
1462
- X,
1463
- {
1464
- image: e.icon,
1465
- alt: e.icon.alt,
1466
- height: e.icon.height || 48,
1467
- width: e.icon.width || 48,
1468
- },
1469
- null,
1470
- 8,
1471
- ['image', 'alt', 'height', 'width'],
1472
- ),
1473
- ]))
1474
- : typeof e.icon == 'object'
1475
- ? (a(),
1476
- k(
1477
- X,
1478
- {
1479
- key: 1,
1480
- image: e.icon,
1481
- alt: e.icon.alt,
1482
- height: e.icon.height || 48,
1483
- width: e.icon.width || 48,
1484
- },
1485
- null,
1486
- 8,
1487
- ['image', 'alt', 'height', 'width'],
1488
- ))
1489
- : e.icon
1490
- ? (a(),
1491
- u(
1492
- 'div',
1493
- { key: 2, class: 'icon', innerHTML: e.icon },
1494
- null,
1495
- 8,
1496
- Pn,
1497
- ))
1498
- : h('', !0),
1499
- d('h2', { class: 'title', innerHTML: e.title }, null, 8, Ln),
1500
- e.details
1501
- ? (a(),
1502
- u(
1503
- 'p',
1504
- { key: 3, class: 'details', innerHTML: e.details },
1505
- null,
1506
- 8,
1507
- Vn,
1508
- ))
1509
- : h('', !0),
1510
- e.linkText
1511
- ? (a(),
1512
- u('div', Sn, [
1513
- d('p', Tn, [
1514
- z(I(e.linkText) + ' ', 1),
1515
- t[0] ||
1516
- (t[0] = d(
1517
- 'span',
1518
- { class: 'vpi-arrow-right link-text-icon' },
1519
- null,
1520
- -1,
1521
- )),
1522
- ]),
1523
- ]))
1524
- : h('', !0),
1525
- ]),
1526
- ]),
1527
- _: 1,
1528
- },
1529
- 8,
1530
- ['href', 'rel', 'target', 'tag'],
1531
- )
1532
- )
1533
- },
1534
- }),
1535
- Mn = g(Nn, [['__scopeId', 'data-v-a3976bdc']]),
1536
- In = { key: 0, class: 'VPFeatures' },
1537
- wn = { class: 'container' },
1538
- An = { class: 'items' },
1539
- Cn = m({
1540
- __name: 'VPFeatures',
1541
- props: { features: {} },
1542
- setup(s) {
1543
- const e = s,
1544
- t = y(() => {
1545
- const o = e.features.length
1546
- if (o) {
1547
- if (o === 2) return 'grid-2'
1548
- if (o === 3) return 'grid-3'
1549
- if (o % 3 === 0) return 'grid-6'
1550
- if (o > 3) return 'grid-4'
1551
- } else return
1552
- })
1553
- return (o, n) =>
1554
- o.features
1555
- ? (a(),
1556
- u('div', In, [
1557
- d('div', wn, [
1558
- d('div', An, [
1559
- (a(!0),
1560
- u(
1561
- w,
1562
- null,
1563
- H(
1564
- o.features,
1565
- (i) => (
1566
- a(),
1567
- u(
1568
- 'div',
1569
- { key: i.title, class: M(['item', [t.value]]) },
1570
- [
1571
- _(
1572
- Mn,
1573
- {
1574
- icon: i.icon,
1575
- title: i.title,
1576
- details: i.details,
1577
- link: i.link,
1578
- 'link-text': i.linkText,
1579
- rel: i.rel,
1580
- target: i.target,
1581
- },
1582
- null,
1583
- 8,
1584
- [
1585
- 'icon',
1586
- 'title',
1587
- 'details',
1588
- 'link',
1589
- 'link-text',
1590
- 'rel',
1591
- 'target',
1592
- ],
1593
- ),
1594
- ],
1595
- 2,
1596
- )
1597
- ),
1598
- ),
1599
- 128,
1600
- )),
1601
- ]),
1602
- ]),
1603
- ]))
1604
- : h('', !0)
1605
- },
1606
- }),
1607
- Hn = g(Cn, [['__scopeId', 'data-v-a6181336']]),
1608
- Bn = m({
1609
- __name: 'VPHomeFeatures',
1610
- setup(s) {
1611
- const { frontmatter: e } = L()
1612
- return (t, o) =>
1613
- r(e).features
1614
- ? (a(),
1615
- k(
1616
- Hn,
1617
- { key: 0, class: 'VPHomeFeatures', features: r(e).features },
1618
- null,
1619
- 8,
1620
- ['features'],
1621
- ))
1622
- : h('', !0)
1623
- },
1624
- }),
1625
- En = m({
1626
- __name: 'VPHomeContent',
1627
- setup(s) {
1628
- const { width: e } = Oe({ initialWidth: 0, includeScrollbar: !1 })
1629
- return (t, o) => (
1630
- a(),
1631
- u(
1632
- 'div',
1633
- {
1634
- class: 'vp-doc container',
1635
- style: Pe(
1636
- r(e) ? { '--vp-offset': `calc(50% - ${r(e) / 2}px)` } : {},
1637
- ),
1638
- },
1639
- [c(t.$slots, 'default', {}, void 0, !0)],
1640
- 4,
1641
- )
1642
- )
1643
- },
1644
- }),
1645
- Fn = g(En, [['__scopeId', 'data-v-8e2d4988']]),
1646
- Dn = m({
1647
- __name: 'VPHome',
1648
- setup(s) {
1649
- const { frontmatter: e, theme: t } = L()
1650
- return (o, n) => {
1651
- const i = K('Content')
1652
- return (
1653
- a(),
1654
- u(
1655
- 'div',
1656
- {
1657
- class: M([
1658
- 'VPHome',
1659
- { 'external-link-icon-enabled': r(t).externalLinkIcon },
1660
- ]),
1661
- },
1662
- [
1663
- c(o.$slots, 'home-hero-before', {}, void 0, !0),
1664
- _(gn, null, {
1665
- 'home-hero-info-before': f(() => [
1666
- c(o.$slots, 'home-hero-info-before', {}, void 0, !0),
1667
- ]),
1668
- 'home-hero-info': f(() => [
1669
- c(o.$slots, 'home-hero-info', {}, void 0, !0),
1670
- ]),
1671
- 'home-hero-info-after': f(() => [
1672
- c(o.$slots, 'home-hero-info-after', {}, void 0, !0),
1673
- ]),
1674
- 'home-hero-actions-after': f(() => [
1675
- c(o.$slots, 'home-hero-actions-after', {}, void 0, !0),
1676
- ]),
1677
- 'home-hero-image': f(() => [
1678
- c(o.$slots, 'home-hero-image', {}, void 0, !0),
1679
- ]),
1680
- _: 3,
1681
- }),
1682
- c(o.$slots, 'home-hero-after', {}, void 0, !0),
1683
- c(o.$slots, 'home-features-before', {}, void 0, !0),
1684
- _(Bn),
1685
- c(o.$slots, 'home-features-after', {}, void 0, !0),
1686
- r(e).markdownStyles !== !1
1687
- ? (a(), k(Fn, { key: 0 }, { default: f(() => [_(i)]), _: 1 }))
1688
- : (a(), k(i, { key: 1 })),
1689
- ],
1690
- 2,
1691
- )
1692
- )
1693
- }
1694
- },
1695
- }),
1696
- On = g(Dn, [['__scopeId', 'data-v-8b561e3d']]),
1697
- Gn = {},
1698
- Un = { class: 'VPPage' }
1699
- function jn(s, e) {
1700
- const t = K('Content')
1701
- return (
1702
- a(),
1703
- u('div', Un, [c(s.$slots, 'page-top'), _(t), c(s.$slots, 'page-bottom')])
1704
- )
1705
- }
1706
- const zn = g(Gn, [['render', jn]]),
1707
- Wn = m({
1708
- __name: 'VPContent',
1709
- setup(s) {
1710
- const { page: e, frontmatter: t } = L(),
1711
- { hasSidebar: o } = O()
1712
- return (n, i) => (
1713
- a(),
1714
- u(
1715
- 'div',
1716
- {
1717
- class: M([
1718
- 'VPContent',
1719
- { 'has-sidebar': r(o), 'is-home': r(t).layout === 'home' },
1720
- ]),
1721
- id: 'VPContent',
1722
- },
1723
- [
1724
- r(e).isNotFound
1725
- ? c(n.$slots, 'not-found', { key: 0 }, () => [_(it)], !0)
1726
- : r(t).layout === 'page'
1727
- ? (a(),
1728
- k(
1729
- zn,
1730
- { key: 1 },
1731
- {
1732
- 'page-top': f(() => [
1733
- c(n.$slots, 'page-top', {}, void 0, !0),
1734
- ]),
1735
- 'page-bottom': f(() => [
1736
- c(n.$slots, 'page-bottom', {}, void 0, !0),
1737
- ]),
1738
- _: 3,
1739
- },
1740
- ))
1741
- : r(t).layout === 'home'
1742
- ? (a(),
1743
- k(
1744
- On,
1745
- { key: 2 },
1746
- {
1747
- 'home-hero-before': f(() => [
1748
- c(n.$slots, 'home-hero-before', {}, void 0, !0),
1749
- ]),
1750
- 'home-hero-info-before': f(() => [
1751
- c(n.$slots, 'home-hero-info-before', {}, void 0, !0),
1752
- ]),
1753
- 'home-hero-info': f(() => [
1754
- c(n.$slots, 'home-hero-info', {}, void 0, !0),
1755
- ]),
1756
- 'home-hero-info-after': f(() => [
1757
- c(n.$slots, 'home-hero-info-after', {}, void 0, !0),
1758
- ]),
1759
- 'home-hero-actions-after': f(() => [
1760
- c(
1761
- n.$slots,
1762
- 'home-hero-actions-after',
1763
- {},
1764
- void 0,
1765
- !0,
1766
- ),
1767
- ]),
1768
- 'home-hero-image': f(() => [
1769
- c(n.$slots, 'home-hero-image', {}, void 0, !0),
1770
- ]),
1771
- 'home-hero-after': f(() => [
1772
- c(n.$slots, 'home-hero-after', {}, void 0, !0),
1773
- ]),
1774
- 'home-features-before': f(() => [
1775
- c(n.$slots, 'home-features-before', {}, void 0, !0),
1776
- ]),
1777
- 'home-features-after': f(() => [
1778
- c(n.$slots, 'home-features-after', {}, void 0, !0),
1779
- ]),
1780
- _: 3,
1781
- },
1782
- ))
1783
- : r(t).layout && r(t).layout !== 'doc'
1784
- ? (a(), k(E(r(t).layout), { key: 3 }))
1785
- : (a(),
1786
- k(
1787
- on,
1788
- { key: 4 },
1789
- {
1790
- 'doc-top': f(() => [
1791
- c(n.$slots, 'doc-top', {}, void 0, !0),
1792
- ]),
1793
- 'doc-bottom': f(() => [
1794
- c(n.$slots, 'doc-bottom', {}, void 0, !0),
1795
- ]),
1796
- 'doc-footer-before': f(() => [
1797
- c(n.$slots, 'doc-footer-before', {}, void 0, !0),
1798
- ]),
1799
- 'doc-before': f(() => [
1800
- c(n.$slots, 'doc-before', {}, void 0, !0),
1801
- ]),
1802
- 'doc-after': f(() => [
1803
- c(n.$slots, 'doc-after', {}, void 0, !0),
1804
- ]),
1805
- 'aside-top': f(() => [
1806
- c(n.$slots, 'aside-top', {}, void 0, !0),
1807
- ]),
1808
- 'aside-outline-before': f(() => [
1809
- c(n.$slots, 'aside-outline-before', {}, void 0, !0),
1810
- ]),
1811
- 'aside-outline-after': f(() => [
1812
- c(n.$slots, 'aside-outline-after', {}, void 0, !0),
1813
- ]),
1814
- 'aside-ads-before': f(() => [
1815
- c(n.$slots, 'aside-ads-before', {}, void 0, !0),
1816
- ]),
1817
- 'aside-ads-after': f(() => [
1818
- c(n.$slots, 'aside-ads-after', {}, void 0, !0),
1819
- ]),
1820
- 'aside-bottom': f(() => [
1821
- c(n.$slots, 'aside-bottom', {}, void 0, !0),
1822
- ]),
1823
- _: 3,
1824
- },
1825
- )),
1826
- ],
1827
- 2,
1828
- )
1829
- )
1830
- },
1831
- }),
1832
- Kn = g(Wn, [['__scopeId', 'data-v-1428d186']]),
1833
- qn = { class: 'container' },
1834
- Rn = ['innerHTML'],
1835
- Jn = ['innerHTML'],
1836
- Xn = m({
1837
- __name: 'VPFooter',
1838
- setup(s) {
1839
- const { theme: e, frontmatter: t } = L(),
1840
- { hasSidebar: o } = O()
1841
- return (n, i) =>
1842
- r(e).footer && r(t).footer !== !1
1843
- ? (a(),
1844
- u(
1845
- 'footer',
1846
- { key: 0, class: M(['VPFooter', { 'has-sidebar': r(o) }]) },
1847
- [
1848
- d('div', qn, [
1849
- r(e).footer.message
1850
- ? (a(),
1851
- u(
1852
- 'p',
1853
- {
1854
- key: 0,
1855
- class: 'message',
1856
- innerHTML: r(e).footer.message,
1857
- },
1858
- null,
1859
- 8,
1860
- Rn,
1861
- ))
1862
- : h('', !0),
1863
- r(e).footer.copyright
1864
- ? (a(),
1865
- u(
1866
- 'p',
1867
- {
1868
- key: 1,
1869
- class: 'copyright',
1870
- innerHTML: r(e).footer.copyright,
1871
- },
1872
- null,
1873
- 8,
1874
- Jn,
1875
- ))
1876
- : h('', !0),
1877
- ]),
1878
- ],
1879
- 2,
1880
- ))
1881
- : h('', !0)
1882
- },
1883
- }),
1884
- Yn = g(Xn, [['__scopeId', 'data-v-e315a0ad']])
1885
- function Qn() {
1886
- const { theme: s, frontmatter: e } = L(),
1887
- t = $e([]),
1888
- o = y(() => t.value.length > 0)
1889
- return (
1890
- Q(() => {
1891
- t.value = he(e.value.outline ?? s.value.outline)
1892
- }),
1893
- { headers: t, hasLocalNav: o }
1894
- )
1895
- }
1896
- const Zn = { class: 'menu-text' },
1897
- xn = { class: 'header' },
1898
- eo = { class: 'outline' },
1899
- to = m({
1900
- __name: 'VPLocalNavOutlineDropdown',
1901
- props: { headers: {}, navHeight: {} },
1902
- setup(s) {
1903
- const e = s,
1904
- { theme: t } = L(),
1905
- o = T(!1),
1906
- n = T(0),
1907
- i = T(),
1908
- l = T()
1909
- function v(b) {
1910
- var P
1911
- ;((P = i.value) != null && P.contains(b.target)) || (o.value = !1)
1912
- }
1913
- ;(D(o, (b) => {
1914
- if (b) {
1915
- document.addEventListener('click', v)
1916
- return
1917
- }
1918
- document.removeEventListener('click', v)
1919
- }),
1920
- re('Escape', () => {
1921
- o.value = !1
1922
- }),
1923
- Q(() => {
1924
- o.value = !1
1925
- }))
1926
- function p() {
1927
- ;((o.value = !o.value),
1928
- (n.value =
1929
- window.innerHeight + Math.min(window.scrollY - e.navHeight, 0)))
1930
- }
1931
- function $(b) {
1932
- b.target.classList.contains('outline-link') &&
1933
- (l.value && (l.value.style.transition = 'none'),
1934
- Le(() => {
1935
- o.value = !1
1936
- }))
1937
- }
1938
- function V() {
1939
- ;((o.value = !1),
1940
- window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }))
1941
- }
1942
- return (b, P) => (
1943
- a(),
1944
- u(
1945
- 'div',
1946
- {
1947
- class: 'VPLocalNavOutlineDropdown',
1948
- style: Pe({ '--vp-vh': n.value + 'px' }),
1949
- ref_key: 'main',
1950
- ref: i,
1951
- },
1952
- [
1953
- b.headers.length > 0
1954
- ? (a(),
1955
- u(
1956
- 'button',
1957
- { key: 0, onClick: p, class: M({ open: o.value }) },
1958
- [
1959
- d('span', Zn, I(r(Me)(r(t))), 1),
1960
- P[0] ||
1961
- (P[0] = d(
1962
- 'span',
1963
- { class: 'vpi-chevron-right icon' },
1964
- null,
1965
- -1,
1966
- )),
1967
- ],
1968
- 2,
1969
- ))
1970
- : (a(),
1971
- u(
1972
- 'button',
1973
- { key: 1, onClick: V },
1974
- I(r(t).returnToTopLabel || 'Return to top'),
1975
- 1,
1976
- )),
1977
- _(
1978
- ue,
1979
- { name: 'flyout' },
1980
- {
1981
- default: f(() => [
1982
- o.value
1983
- ? (a(),
1984
- u(
1985
- 'div',
1986
- {
1987
- key: 0,
1988
- ref_key: 'items',
1989
- ref: l,
1990
- class: 'items',
1991
- onClick: $,
1992
- },
1993
- [
1994
- d('div', xn, [
1995
- d(
1996
- 'a',
1997
- { class: 'top-link', href: '#', onClick: V },
1998
- I(r(t).returnToTopLabel || 'Return to top'),
1999
- 1,
2000
- ),
2001
- ]),
2002
- d('div', eo, [
2003
- _(Ie, { headers: b.headers }, null, 8, ['headers']),
2004
- ]),
2005
- ],
2006
- 512,
2007
- ))
2008
- : h('', !0),
2009
- ]),
2010
- _: 1,
2011
- },
2012
- ),
2013
- ],
2014
- 4,
2015
- )
2016
- )
2017
- },
2018
- }),
2019
- no = g(to, [['__scopeId', 'data-v-8a42e2b4']]),
2020
- oo = { class: 'container' },
2021
- so = ['aria-expanded'],
2022
- ao = { class: 'menu-text' },
2023
- ro = m({
2024
- __name: 'VPLocalNav',
2025
- props: { open: { type: Boolean } },
2026
- emits: ['open-menu'],
2027
- setup(s) {
2028
- const { theme: e, frontmatter: t } = L(),
2029
- { hasSidebar: o } = O(),
2030
- { headers: n } = Qn(),
2031
- { y: i } = Ve(),
2032
- l = T(0)
2033
- ;(j(() => {
2034
- l.value = parseInt(
2035
- getComputedStyle(document.documentElement).getPropertyValue(
2036
- '--vp-nav-height',
2037
- ),
2038
- )
2039
- }),
2040
- Q(() => {
2041
- n.value = he(t.value.outline ?? e.value.outline)
2042
- }))
2043
- const v = y(() => n.value.length === 0),
2044
- p = y(() => v.value && !o.value),
2045
- $ = y(() => ({
2046
- VPLocalNav: !0,
2047
- 'has-sidebar': o.value,
2048
- empty: v.value,
2049
- fixed: p.value,
2050
- }))
2051
- return (V, b) =>
2052
- r(t).layout !== 'home' && (!p.value || r(i) >= l.value)
2053
- ? (a(),
2054
- u(
2055
- 'div',
2056
- { key: 0, class: M($.value) },
2057
- [
2058
- d('div', oo, [
2059
- r(o)
2060
- ? (a(),
2061
- u(
2062
- 'button',
2063
- {
2064
- key: 0,
2065
- class: 'menu',
2066
- 'aria-expanded': V.open,
2067
- 'aria-controls': 'VPSidebarNav',
2068
- onClick: b[0] || (b[0] = (P) => V.$emit('open-menu')),
2069
- },
2070
- [
2071
- b[1] ||
2072
- (b[1] = d(
2073
- 'span',
2074
- { class: 'vpi-align-left menu-icon' },
2075
- null,
2076
- -1,
2077
- )),
2078
- d('span', ao, I(r(e).sidebarMenuLabel || 'Menu'), 1),
2079
- ],
2080
- 8,
2081
- so,
2082
- ))
2083
- : h('', !0),
2084
- _(no, { headers: r(n), navHeight: l.value }, null, 8, [
2085
- 'headers',
2086
- 'navHeight',
2087
- ]),
2088
- ]),
2089
- ],
2090
- 2,
2091
- ))
2092
- : h('', !0)
2093
- },
2094
- }),
2095
- io = g(ro, [['__scopeId', 'data-v-a6f0e41e']])
2096
- function lo() {
2097
- const s = T(!1)
2098
- function e() {
2099
- ;((s.value = !0), window.addEventListener('resize', n))
2100
- }
2101
- function t() {
2102
- ;((s.value = !1), window.removeEventListener('resize', n))
2103
- }
2104
- function o() {
2105
- s.value ? t() : e()
2106
- }
2107
- function n() {
2108
- window.outerWidth >= 768 && t()
2109
- }
2110
- const i = Z()
2111
- return (
2112
- D(() => i.path, t),
2113
- { isScreenOpen: s, openScreen: e, closeScreen: t, toggleScreen: o }
2114
- )
2115
- }
2116
- const co = {},
2117
- uo = { class: 'VPSwitch', type: 'button', role: 'switch' },
2118
- vo = { class: 'check' },
2119
- po = { key: 0, class: 'icon' }
2120
- function fo(s, e) {
2121
- return (
2122
- a(),
2123
- u('button', uo, [
2124
- d('span', vo, [
2125
- s.$slots.default
2126
- ? (a(), u('span', po, [c(s.$slots, 'default', {}, void 0, !0)]))
2127
- : h('', !0),
2128
- ]),
2129
- ])
2130
- )
2131
- }
2132
- const ho = g(co, [
2133
- ['render', fo],
2134
- ['__scopeId', 'data-v-1d5665e3'],
2135
- ]),
2136
- mo = m({
2137
- __name: 'VPSwitchAppearance',
2138
- setup(s) {
2139
- const { isDark: e, theme: t } = L(),
2140
- o = x('toggle-appearance', () => {
2141
- e.value = !e.value
2142
- }),
2143
- n = T('')
2144
- return (
2145
- pe(() => {
2146
- n.value = e.value
2147
- ? t.value.lightModeSwitchTitle || 'Switch to light theme'
2148
- : t.value.darkModeSwitchTitle || 'Switch to dark theme'
2149
- }),
2150
- (i, l) => (
2151
- a(),
2152
- k(
2153
- ho,
2154
- {
2155
- title: n.value,
2156
- class: 'VPSwitchAppearance',
2157
- 'aria-checked': r(e),
2158
- onClick: r(o),
2159
- },
2160
- {
2161
- default: f(() => [
2162
- ...(l[0] ||
2163
- (l[0] = [
2164
- d('span', { class: 'vpi-sun sun' }, null, -1),
2165
- d('span', { class: 'vpi-moon moon' }, null, -1),
2166
- ])),
2167
- ]),
2168
- _: 1,
2169
- },
2170
- 8,
2171
- ['title', 'aria-checked', 'onClick'],
2172
- )
2173
- )
2174
- )
2175
- },
2176
- }),
2177
- me = g(mo, [['__scopeId', 'data-v-5337faa4']]),
2178
- _o = { key: 0, class: 'VPNavBarAppearance' },
2179
- ko = m({
2180
- __name: 'VPNavBarAppearance',
2181
- setup(s) {
2182
- const { site: e } = L()
2183
- return (t, o) =>
2184
- r(e).appearance &&
2185
- r(e).appearance !== 'force-dark' &&
2186
- r(e).appearance !== 'force-auto'
2187
- ? (a(), u('div', _o, [_(me)]))
2188
- : h('', !0)
2189
- },
2190
- }),
2191
- bo = g(ko, [['__scopeId', 'data-v-6c893767']]),
2192
- _e = T()
2193
- let we = !1,
2194
- se = 0
2195
- function go(s) {
2196
- const e = T(!1)
2197
- if (ee) {
2198
- ;(!we && $o(), se++)
2199
- const t = D(_e, (o) => {
2200
- var n, i, l
2201
- o === s.el.value || ((n = s.el.value) != null && n.contains(o))
2202
- ? ((e.value = !0), (i = s.onFocus) == null || i.call(s))
2203
- : ((e.value = !1), (l = s.onBlur) == null || l.call(s))
2204
- })
2205
- ve(() => {
2206
- ;(t(), se--, se || yo())
2207
- })
2208
- }
2209
- return Ge(e)
2210
- }
2211
- function $o() {
2212
- ;(document.addEventListener('focusin', Ae),
2213
- (we = !0),
2214
- (_e.value = document.activeElement))
2215
- }
2216
- function yo() {
2217
- document.removeEventListener('focusin', Ae)
2218
- }
2219
- function Ae() {
2220
- _e.value = document.activeElement
2221
- }
2222
- const Po = { class: 'VPMenuLink' },
2223
- Lo = ['innerHTML'],
2224
- Vo = m({
2225
- __name: 'VPMenuLink',
2226
- props: { item: {} },
2227
- setup(s) {
2228
- const { page: e } = L()
2229
- return (t, o) => (
2230
- a(),
2231
- u('div', Po, [
2232
- _(
2233
- F,
2234
- {
2235
- class: M({
2236
- active: r(W)(
2237
- r(e).relativePath,
2238
- t.item.activeMatch || t.item.link,
2239
- !!t.item.activeMatch,
2240
- ),
2241
- }),
2242
- href: t.item.link,
2243
- target: t.item.target,
2244
- rel: t.item.rel,
2245
- 'no-icon': t.item.noIcon,
2246
- },
2247
- {
2248
- default: f(() => [
2249
- d('span', { innerHTML: t.item.text }, null, 8, Lo),
2250
- ]),
2251
- _: 1,
2252
- },
2253
- 8,
2254
- ['class', 'href', 'target', 'rel', 'no-icon'],
2255
- ),
2256
- ])
2257
- )
2258
- },
2259
- }),
2260
- te = g(Vo, [['__scopeId', 'data-v-35975db6']]),
2261
- So = { class: 'VPMenuGroup' },
2262
- To = { key: 0, class: 'title' },
2263
- No = m({
2264
- __name: 'VPMenuGroup',
2265
- props: { text: {}, items: {} },
2266
- setup(s) {
2267
- return (e, t) => (
2268
- a(),
2269
- u('div', So, [
2270
- e.text ? (a(), u('p', To, I(e.text), 1)) : h('', !0),
2271
- (a(!0),
2272
- u(
2273
- w,
2274
- null,
2275
- H(
2276
- e.items,
2277
- (o) => (
2278
- a(),
2279
- u(
2280
- w,
2281
- null,
2282
- [
2283
- 'link' in o
2284
- ? (a(), k(te, { key: 0, item: o }, null, 8, ['item']))
2285
- : h('', !0),
2286
- ],
2287
- 64,
2288
- )
2289
- ),
2290
- ),
2291
- 256,
2292
- )),
2293
- ])
2294
- )
2295
- },
2296
- }),
2297
- Mo = g(No, [['__scopeId', 'data-v-69e747b5']]),
2298
- Io = { class: 'VPMenu' },
2299
- wo = { key: 0, class: 'items' },
2300
- Ao = m({
2301
- __name: 'VPMenu',
2302
- props: { items: {} },
2303
- setup(s) {
2304
- return (e, t) => (
2305
- a(),
2306
- u('div', Io, [
2307
- e.items
2308
- ? (a(),
2309
- u('div', wo, [
2310
- (a(!0),
2311
- u(
2312
- w,
2313
- null,
2314
- H(
2315
- e.items,
2316
- (o) => (
2317
- a(),
2318
- u(
2319
- w,
2320
- { key: JSON.stringify(o) },
2321
- [
2322
- 'link' in o
2323
- ? (a(),
2324
- k(te, { key: 0, item: o }, null, 8, ['item']))
2325
- : 'component' in o
2326
- ? (a(),
2327
- k(
2328
- E(o.component),
2329
- U({ key: 1, ref_for: !0 }, o.props),
2330
- null,
2331
- 16,
2332
- ))
2333
- : (a(),
2334
- k(
2335
- Mo,
2336
- { key: 2, text: o.text, items: o.items },
2337
- null,
2338
- 8,
2339
- ['text', 'items'],
2340
- )),
2341
- ],
2342
- 64,
2343
- )
2344
- ),
2345
- ),
2346
- 128,
2347
- )),
2348
- ]))
2349
- : h('', !0),
2350
- c(e.$slots, 'default', {}, void 0, !0),
2351
- ])
2352
- )
2353
- },
2354
- }),
2355
- Co = g(Ao, [['__scopeId', 'data-v-b98bc113']]),
2356
- Ho = ['aria-expanded', 'aria-label'],
2357
- Bo = { key: 0, class: 'text' },
2358
- Eo = ['innerHTML'],
2359
- Fo = { key: 1, class: 'vpi-more-horizontal icon' },
2360
- Do = { class: 'menu' },
2361
- Oo = m({
2362
- __name: 'VPFlyout',
2363
- props: { icon: {}, button: {}, label: {}, items: {} },
2364
- setup(s) {
2365
- const e = T(!1),
2366
- t = T()
2367
- go({ el: t, onBlur: o })
2368
- function o() {
2369
- e.value = !1
2370
- }
2371
- return (n, i) => (
2372
- a(),
2373
- u(
2374
- 'div',
2375
- {
2376
- class: 'VPFlyout',
2377
- ref_key: 'el',
2378
- ref: t,
2379
- onMouseenter: i[1] || (i[1] = (l) => (e.value = !0)),
2380
- onMouseleave: i[2] || (i[2] = (l) => (e.value = !1)),
2381
- },
2382
- [
2383
- d(
2384
- 'button',
2385
- {
2386
- type: 'button',
2387
- class: 'button',
2388
- 'aria-haspopup': 'true',
2389
- 'aria-expanded': e.value,
2390
- 'aria-label': n.label,
2391
- onClick: i[0] || (i[0] = (l) => (e.value = !e.value)),
2392
- },
2393
- [
2394
- n.button || n.icon
2395
- ? (a(),
2396
- u('span', Bo, [
2397
- n.icon
2398
- ? (a(),
2399
- u(
2400
- 'span',
2401
- { key: 0, class: M([n.icon, 'option-icon']) },
2402
- null,
2403
- 2,
2404
- ))
2405
- : h('', !0),
2406
- n.button
2407
- ? (a(),
2408
- u(
2409
- 'span',
2410
- { key: 1, innerHTML: n.button },
2411
- null,
2412
- 8,
2413
- Eo,
2414
- ))
2415
- : h('', !0),
2416
- i[3] ||
2417
- (i[3] = d(
2418
- 'span',
2419
- { class: 'vpi-chevron-down text-icon' },
2420
- null,
2421
- -1,
2422
- )),
2423
- ]))
2424
- : (a(), u('span', Fo)),
2425
- ],
2426
- 8,
2427
- Ho,
2428
- ),
2429
- d('div', Do, [
2430
- _(
2431
- Co,
2432
- { items: n.items },
2433
- {
2434
- default: f(() => [c(n.$slots, 'default', {}, void 0, !0)]),
2435
- _: 3,
2436
- },
2437
- 8,
2438
- ['items'],
2439
- ),
2440
- ]),
2441
- ],
2442
- 544,
2443
- )
2444
- )
2445
- },
2446
- }),
2447
- ke = g(Oo, [['__scopeId', 'data-v-cf11d7a2']]),
2448
- Go = ['href', 'aria-label', 'innerHTML'],
2449
- Uo = m({
2450
- __name: 'VPSocialLink',
2451
- props: { icon: {}, link: {}, ariaLabel: {} },
2452
- setup(s) {
2453
- const e = s,
2454
- t = T()
2455
- j(async () => {
2456
- var i
2457
- await Le()
2458
- const n = (i = t.value) == null ? void 0 : i.children[0]
2459
- n instanceof HTMLElement &&
2460
- n.className.startsWith('vpi-social-') &&
2461
- (getComputedStyle(n).maskImage ||
2462
- getComputedStyle(n).webkitMaskImage) === 'none' &&
2463
- n.style.setProperty(
2464
- '--icon',
2465
- `url('https://api.iconify.design/simple-icons/${e.icon}.svg')`,
2466
- )
2467
- })
2468
- const o = y(() =>
2469
- typeof e.icon == 'object'
2470
- ? e.icon.svg
2471
- : `<span class="vpi-social-${e.icon}"></span>`,
2472
- )
2473
- return (n, i) => (
2474
- a(),
2475
- u(
2476
- 'a',
2477
- {
2478
- ref_key: 'el',
2479
- ref: t,
2480
- class: 'VPSocialLink no-icon',
2481
- href: n.link,
2482
- 'aria-label':
2483
- n.ariaLabel ?? (typeof n.icon == 'string' ? n.icon : ''),
2484
- target: '_blank',
2485
- rel: 'noopener',
2486
- innerHTML: o.value,
2487
- },
2488
- null,
2489
- 8,
2490
- Go,
2491
- )
2492
- )
2493
- },
2494
- }),
2495
- jo = g(Uo, [['__scopeId', 'data-v-bd121fe5']]),
2496
- zo = { class: 'VPSocialLinks' },
2497
- Wo = m({
2498
- __name: 'VPSocialLinks',
2499
- props: { links: {} },
2500
- setup(s) {
2501
- return (e, t) => (
2502
- a(),
2503
- u('div', zo, [
2504
- (a(!0),
2505
- u(
2506
- w,
2507
- null,
2508
- H(
2509
- e.links,
2510
- ({ link: o, icon: n, ariaLabel: i }) => (
2511
- a(),
2512
- k(jo, { key: o, icon: n, link: o, ariaLabel: i }, null, 8, [
2513
- 'icon',
2514
- 'link',
2515
- 'ariaLabel',
2516
- ])
2517
- ),
2518
- ),
2519
- 128,
2520
- )),
2521
- ])
2522
- )
2523
- },
2524
- }),
2525
- be = g(Wo, [['__scopeId', 'data-v-7bc22406']]),
2526
- Ko = { key: 0, class: 'group translations' },
2527
- qo = { class: 'trans-title' },
2528
- Ro = { key: 1, class: 'group' },
2529
- Jo = { class: 'item appearance' },
2530
- Xo = { class: 'label' },
2531
- Yo = { class: 'appearance-action' },
2532
- Qo = { key: 2, class: 'group' },
2533
- Zo = { class: 'item social-links' },
2534
- xo = m({
2535
- __name: 'VPNavBarExtra',
2536
- setup(s) {
2537
- const { site: e, theme: t } = L(),
2538
- { localeLinks: o, currentLang: n } = R({ correspondingLink: !0 }),
2539
- i = y(
2540
- () =>
2541
- (o.value.length && n.value.label) ||
2542
- e.value.appearance ||
2543
- t.value.socialLinks,
2544
- )
2545
- return (l, v) =>
2546
- i.value
2547
- ? (a(),
2548
- k(
2549
- ke,
2550
- { key: 0, class: 'VPNavBarExtra', label: 'extra navigation' },
2551
- {
2552
- default: f(() => [
2553
- r(o).length && r(n).label
2554
- ? (a(),
2555
- u('div', Ko, [
2556
- d('p', qo, I(r(n).label), 1),
2557
- (a(!0),
2558
- u(
2559
- w,
2560
- null,
2561
- H(
2562
- r(o),
2563
- (p) => (
2564
- a(),
2565
- k(te, { key: p.link, item: p }, null, 8, ['item'])
2566
- ),
2567
- ),
2568
- 128,
2569
- )),
2570
- ]))
2571
- : h('', !0),
2572
- r(e).appearance &&
2573
- r(e).appearance !== 'force-dark' &&
2574
- r(e).appearance !== 'force-auto'
2575
- ? (a(),
2576
- u('div', Ro, [
2577
- d('div', Jo, [
2578
- d(
2579
- 'p',
2580
- Xo,
2581
- I(r(t).darkModeSwitchLabel || 'Appearance'),
2582
- 1,
2583
- ),
2584
- d('div', Yo, [_(me)]),
2585
- ]),
2586
- ]))
2587
- : h('', !0),
2588
- r(t).socialLinks
2589
- ? (a(),
2590
- u('div', Qo, [
2591
- d('div', Zo, [
2592
- _(
2593
- be,
2594
- {
2595
- class: 'social-links-list',
2596
- links: r(t).socialLinks,
2597
- },
2598
- null,
2599
- 8,
2600
- ['links'],
2601
- ),
2602
- ]),
2603
- ]))
2604
- : h('', !0),
2605
- ]),
2606
- _: 1,
2607
- },
2608
- ))
2609
- : h('', !0)
2610
- },
2611
- }),
2612
- es = g(xo, [['__scopeId', 'data-v-bb2aa2f0']]),
2613
- ts = ['aria-expanded'],
2614
- ns = m({
2615
- __name: 'VPNavBarHamburger',
2616
- props: { active: { type: Boolean } },
2617
- emits: ['click'],
2618
- setup(s) {
2619
- return (e, t) => (
2620
- a(),
2621
- u(
2622
- 'button',
2623
- {
2624
- type: 'button',
2625
- class: M(['VPNavBarHamburger', { active: e.active }]),
2626
- 'aria-label': 'mobile navigation',
2627
- 'aria-expanded': e.active,
2628
- 'aria-controls': 'VPNavScreen',
2629
- onClick: t[0] || (t[0] = (o) => e.$emit('click')),
2630
- },
2631
- [
2632
- ...(t[1] ||
2633
- (t[1] = [
2634
- d(
2635
- 'span',
2636
- { class: 'container' },
2637
- [
2638
- d('span', { class: 'top' }),
2639
- d('span', { class: 'middle' }),
2640
- d('span', { class: 'bottom' }),
2641
- ],
2642
- -1,
2643
- ),
2644
- ])),
2645
- ],
2646
- 10,
2647
- ts,
2648
- )
2649
- )
2650
- },
2651
- }),
2652
- os = g(ns, [['__scopeId', 'data-v-e5dd9c1c']]),
2653
- ss = ['innerHTML'],
2654
- as = m({
2655
- __name: 'VPNavBarMenuLink',
2656
- props: { item: {} },
2657
- setup(s) {
2658
- const { page: e } = L()
2659
- return (t, o) => (
2660
- a(),
2661
- k(
2662
- F,
2663
- {
2664
- class: M({
2665
- VPNavBarMenuLink: !0,
2666
- active: r(W)(
2667
- r(e).relativePath,
2668
- t.item.activeMatch || t.item.link,
2669
- !!t.item.activeMatch,
2670
- ),
2671
- }),
2672
- href: t.item.link,
2673
- target: t.item.target,
2674
- rel: t.item.rel,
2675
- 'no-icon': t.item.noIcon,
2676
- tabindex: '0',
2677
- },
2678
- {
2679
- default: f(() => [
2680
- d('span', { innerHTML: t.item.text }, null, 8, ss),
2681
- ]),
2682
- _: 1,
2683
- },
2684
- 8,
2685
- ['class', 'href', 'target', 'rel', 'no-icon'],
2686
- )
2687
- )
2688
- },
2689
- }),
2690
- rs = g(as, [['__scopeId', 'data-v-e56f3d57']]),
2691
- is = m({
2692
- __name: 'VPNavBarMenuGroup',
2693
- props: { item: {} },
2694
- setup(s) {
2695
- const e = s,
2696
- { page: t } = L(),
2697
- o = (i) =>
2698
- 'component' in i
2699
- ? !1
2700
- : 'link' in i
2701
- ? W(t.value.relativePath, i.link, !!e.item.activeMatch)
2702
- : i.items.some(o),
2703
- n = y(() => o(e.item))
2704
- return (i, l) => (
2705
- a(),
2706
- k(
2707
- ke,
2708
- {
2709
- class: M({
2710
- VPNavBarMenuGroup: !0,
2711
- active:
2712
- r(W)(
2713
- r(t).relativePath,
2714
- i.item.activeMatch,
2715
- !!i.item.activeMatch,
2716
- ) || n.value,
2717
- }),
2718
- button: i.item.text,
2719
- items: i.item.items,
2720
- },
2721
- null,
2722
- 8,
2723
- ['class', 'button', 'items'],
2724
- )
2725
- )
2726
- },
2727
- }),
2728
- ls = {
2729
- key: 0,
2730
- 'aria-labelledby': 'main-nav-aria-label',
2731
- class: 'VPNavBarMenu',
2732
- },
2733
- cs = m({
2734
- __name: 'VPNavBarMenu',
2735
- setup(s) {
2736
- const { theme: e } = L()
2737
- return (t, o) =>
2738
- r(e).nav
2739
- ? (a(),
2740
- u('nav', ls, [
2741
- o[0] ||
2742
- (o[0] = d(
2743
- 'span',
2744
- { id: 'main-nav-aria-label', class: 'visually-hidden' },
2745
- ' Main Navigation ',
2746
- -1,
2747
- )),
2748
- (a(!0),
2749
- u(
2750
- w,
2751
- null,
2752
- H(
2753
- r(e).nav,
2754
- (n) => (
2755
- a(),
2756
- u(
2757
- w,
2758
- { key: JSON.stringify(n) },
2759
- [
2760
- 'link' in n
2761
- ? (a(), k(rs, { key: 0, item: n }, null, 8, ['item']))
2762
- : 'component' in n
2763
- ? (a(),
2764
- k(
2765
- E(n.component),
2766
- U({ key: 1, ref_for: !0 }, n.props),
2767
- null,
2768
- 16,
2769
- ))
2770
- : (a(),
2771
- k(is, { key: 2, item: n }, null, 8, ['item'])),
2772
- ],
2773
- 64,
2774
- )
2775
- ),
2776
- ),
2777
- 128,
2778
- )),
2779
- ]))
2780
- : h('', !0)
2781
- },
2782
- }),
2783
- us = g(cs, [['__scopeId', 'data-v-dc692963']])
2784
- function ds(s) {
2785
- const { localeIndex: e, theme: t } = L()
2786
- function o(n) {
2787
- var A, C, S
2788
- const i = n.split('.'),
2789
- l = (A = t.value.search) == null ? void 0 : A.options,
2790
- v = l && typeof l == 'object',
2791
- p =
2792
- (v &&
2793
- ((S = (C = l.locales) == null ? void 0 : C[e.value]) == null
2794
- ? void 0
2795
- : S.translations)) ||
2796
- null,
2797
- $ = (v && l.translations) || null
2798
- let V = p,
2799
- b = $,
2800
- P = s
2801
- const N = i.pop()
2802
- for (const B of i) {
2803
- let G = null
2804
- const q = P == null ? void 0 : P[B]
2805
- q && (G = P = q)
2806
- const ne = b == null ? void 0 : b[B]
2807
- ne && (G = b = ne)
2808
- const oe = V == null ? void 0 : V[B]
2809
- ;(oe && (G = V = oe), q || (P = G), ne || (b = G), oe || (V = G))
2810
- }
2811
- return (
2812
- (V == null ? void 0 : V[N]) ??
2813
- (b == null ? void 0 : b[N]) ??
2814
- (P == null ? void 0 : P[N]) ??
2815
- ''
2816
- )
2817
- }
2818
- return o
2819
- }
2820
- const vs = ['aria-label'],
2821
- ps = { class: 'DocSearch-Button-Container' },
2822
- fs = { class: 'DocSearch-Button-Placeholder' },
2823
- ge = m({
2824
- __name: 'VPNavBarSearchButton',
2825
- setup(s) {
2826
- const t = ds({
2827
- button: { buttonText: 'Search', buttonAriaLabel: 'Search' },
2828
- })
2829
- return (o, n) => (
2830
- a(),
2831
- u(
2832
- 'button',
2833
- {
2834
- type: 'button',
2835
- class: 'DocSearch DocSearch-Button',
2836
- 'aria-label': r(t)('button.buttonAriaLabel'),
2837
- },
2838
- [
2839
- d('span', ps, [
2840
- n[0] ||
2841
- (n[0] = d(
2842
- 'span',
2843
- { class: 'vp-icon DocSearch-Search-Icon' },
2844
- null,
2845
- -1,
2846
- )),
2847
- d('span', fs, I(r(t)('button.buttonText')), 1),
2848
- ]),
2849
- n[1] ||
2850
- (n[1] = d(
2851
- 'span',
2852
- { class: 'DocSearch-Button-Keys' },
2853
- [
2854
- d('kbd', { class: 'DocSearch-Button-Key' }),
2855
- d('kbd', { class: 'DocSearch-Button-Key' }, 'K'),
2856
- ],
2857
- -1,
2858
- )),
2859
- ],
2860
- 8,
2861
- vs,
2862
- )
2863
- )
2864
- },
2865
- }),
2866
- hs = { class: 'VPNavBarSearch' },
2867
- ms = { id: 'local-search' },
2868
- _s = { key: 1, id: 'docsearch' },
2869
- ks = m({
2870
- __name: 'VPNavBarSearch',
2871
- setup(s) {
2872
- const e = Ue(() =>
2873
- je(
2874
- () => import('./VPLocalSearchBox.CTbu0gVG.js'),
2875
- __vite__mapDeps([0, 1]),
2876
- ),
2877
- ),
2878
- t = () => null,
2879
- { theme: o } = L(),
2880
- n = T(!1),
2881
- i = T(!1)
2882
- j(() => {})
2883
- function l() {
2884
- n.value || ((n.value = !0), setTimeout(v, 16))
2885
- }
2886
- function v() {
2887
- const b = new Event('keydown')
2888
- ;((b.key = 'k'),
2889
- (b.metaKey = !0),
2890
- window.dispatchEvent(b),
2891
- setTimeout(() => {
2892
- document.querySelector('.DocSearch-Modal') || v()
2893
- }, 16))
2894
- }
2895
- function p(b) {
2896
- const P = b.target,
2897
- N = P.tagName
2898
- return (
2899
- P.isContentEditable ||
2900
- N === 'INPUT' ||
2901
- N === 'SELECT' ||
2902
- N === 'TEXTAREA'
2903
- )
2904
- }
2905
- const $ = T(!1)
2906
- ;(re('k', (b) => {
2907
- ;(b.ctrlKey || b.metaKey) && (b.preventDefault(), ($.value = !0))
2908
- }),
2909
- re('/', (b) => {
2910
- p(b) || (b.preventDefault(), ($.value = !0))
2911
- }))
2912
- const V = 'local'
2913
- return (b, P) => {
2914
- var N
2915
- return (
2916
- a(),
2917
- u('div', hs, [
2918
- r(V) === 'local'
2919
- ? (a(),
2920
- u(
2921
- w,
2922
- { key: 0 },
2923
- [
2924
- $.value
2925
- ? (a(),
2926
- k(r(e), {
2927
- key: 0,
2928
- onClose: P[0] || (P[0] = (A) => ($.value = !1)),
2929
- }))
2930
- : h('', !0),
2931
- d('div', ms, [
2932
- _(ge, {
2933
- onClick: P[1] || (P[1] = (A) => ($.value = !0)),
2934
- }),
2935
- ]),
2936
- ],
2937
- 64,
2938
- ))
2939
- : r(V) === 'algolia'
2940
- ? (a(),
2941
- u(
2942
- w,
2943
- { key: 1 },
2944
- [
2945
- n.value
2946
- ? (a(),
2947
- k(
2948
- r(t),
2949
- {
2950
- key: 0,
2951
- algolia:
2952
- ((N = r(o).search) == null
2953
- ? void 0
2954
- : N.options) ?? r(o).algolia,
2955
- onVnodeBeforeMount:
2956
- P[2] || (P[2] = (A) => (i.value = !0)),
2957
- },
2958
- null,
2959
- 8,
2960
- ['algolia'],
2961
- ))
2962
- : h('', !0),
2963
- i.value
2964
- ? h('', !0)
2965
- : (a(), u('div', _s, [_(ge, { onClick: l })])),
2966
- ],
2967
- 64,
2968
- ))
2969
- : h('', !0),
2970
- ])
2971
- )
2972
- }
2973
- },
2974
- }),
2975
- bs = m({
2976
- __name: 'VPNavBarSocialLinks',
2977
- setup(s) {
2978
- const { theme: e } = L()
2979
- return (t, o) =>
2980
- r(e).socialLinks
2981
- ? (a(),
2982
- k(
2983
- be,
2984
- { key: 0, class: 'VPNavBarSocialLinks', links: r(e).socialLinks },
2985
- null,
2986
- 8,
2987
- ['links'],
2988
- ))
2989
- : h('', !0)
2990
- },
2991
- }),
2992
- gs = g(bs, [['__scopeId', 'data-v-0394ad82']]),
2993
- $s = ['href', 'rel', 'target'],
2994
- ys = ['innerHTML'],
2995
- Ps = { key: 2 },
2996
- Ls = m({
2997
- __name: 'VPNavBarTitle',
2998
- setup(s) {
2999
- const { site: e, theme: t } = L(),
3000
- { hasSidebar: o } = O(),
3001
- { currentLang: n } = R(),
3002
- i = y(() => {
3003
- var p
3004
- return typeof t.value.logoLink == 'string'
3005
- ? t.value.logoLink
3006
- : (p = t.value.logoLink) == null
3007
- ? void 0
3008
- : p.link
3009
- }),
3010
- l = y(() => {
3011
- var p
3012
- return typeof t.value.logoLink == 'string' ||
3013
- (p = t.value.logoLink) == null
3014
- ? void 0
3015
- : p.rel
3016
- }),
3017
- v = y(() => {
3018
- var p
3019
- return typeof t.value.logoLink == 'string' ||
3020
- (p = t.value.logoLink) == null
3021
- ? void 0
3022
- : p.target
3023
- })
3024
- return (p, $) => (
3025
- a(),
3026
- u(
3027
- 'div',
3028
- { class: M(['VPNavBarTitle', { 'has-sidebar': r(o) }]) },
3029
- [
3030
- d(
3031
- 'a',
3032
- {
3033
- class: 'title',
3034
- href: i.value ?? r(fe)(r(n).link),
3035
- rel: l.value,
3036
- target: v.value,
3037
- },
3038
- [
3039
- c(p.$slots, 'nav-bar-title-before', {}, void 0, !0),
3040
- r(t).logo
3041
- ? (a(),
3042
- k(X, { key: 0, class: 'logo', image: r(t).logo }, null, 8, [
3043
- 'image',
3044
- ]))
3045
- : h('', !0),
3046
- r(t).siteTitle
3047
- ? (a(),
3048
- u(
3049
- 'span',
3050
- { key: 1, innerHTML: r(t).siteTitle },
3051
- null,
3052
- 8,
3053
- ys,
3054
- ))
3055
- : r(t).siteTitle === void 0
3056
- ? (a(), u('span', Ps, I(r(e).title), 1))
3057
- : h('', !0),
3058
- c(p.$slots, 'nav-bar-title-after', {}, void 0, !0),
3059
- ],
3060
- 8,
3061
- $s,
3062
- ),
3063
- ],
3064
- 2,
3065
- )
3066
- )
3067
- },
3068
- }),
3069
- Vs = g(Ls, [['__scopeId', 'data-v-1168a8e4']]),
3070
- Ss = { class: 'items' },
3071
- Ts = { class: 'title' },
3072
- Ns = m({
3073
- __name: 'VPNavBarTranslations',
3074
- setup(s) {
3075
- const { theme: e } = L(),
3076
- { localeLinks: t, currentLang: o } = R({ correspondingLink: !0 })
3077
- return (n, i) =>
3078
- r(t).length && r(o).label
3079
- ? (a(),
3080
- k(
3081
- ke,
3082
- {
3083
- key: 0,
3084
- class: 'VPNavBarTranslations',
3085
- icon: 'vpi-languages',
3086
- label: r(e).langMenuLabel || 'Change language',
3087
- },
3088
- {
3089
- default: f(() => [
3090
- d('div', Ss, [
3091
- d('p', Ts, I(r(o).label), 1),
3092
- (a(!0),
3093
- u(
3094
- w,
3095
- null,
3096
- H(
3097
- r(t),
3098
- (l) => (
3099
- a(),
3100
- k(te, { key: l.link, item: l }, null, 8, ['item'])
3101
- ),
3102
- ),
3103
- 128,
3104
- )),
3105
- ]),
3106
- ]),
3107
- _: 1,
3108
- },
3109
- 8,
3110
- ['label'],
3111
- ))
3112
- : h('', !0)
3113
- },
3114
- }),
3115
- Ms = g(Ns, [['__scopeId', 'data-v-88af2de4']]),
3116
- Is = { class: 'wrapper' },
3117
- ws = { class: 'container' },
3118
- As = { class: 'title' },
3119
- Cs = { class: 'content' },
3120
- Hs = { class: 'content-body' },
3121
- Bs = m({
3122
- __name: 'VPNavBar',
3123
- props: { isScreenOpen: { type: Boolean } },
3124
- emits: ['toggle-screen'],
3125
- setup(s) {
3126
- const e = s,
3127
- { y: t } = Ve(),
3128
- { hasSidebar: o } = O(),
3129
- { frontmatter: n } = L(),
3130
- i = T({})
3131
- return (
3132
- pe(() => {
3133
- i.value = {
3134
- 'has-sidebar': o.value,
3135
- home: n.value.layout === 'home',
3136
- top: t.value === 0,
3137
- 'screen-open': e.isScreenOpen,
3138
- }
3139
- }),
3140
- (l, v) => (
3141
- a(),
3142
- u(
3143
- 'div',
3144
- { class: M(['VPNavBar', i.value]) },
3145
- [
3146
- d('div', Is, [
3147
- d('div', ws, [
3148
- d('div', As, [
3149
- _(Vs, null, {
3150
- 'nav-bar-title-before': f(() => [
3151
- c(l.$slots, 'nav-bar-title-before', {}, void 0, !0),
3152
- ]),
3153
- 'nav-bar-title-after': f(() => [
3154
- c(l.$slots, 'nav-bar-title-after', {}, void 0, !0),
3155
- ]),
3156
- _: 3,
3157
- }),
3158
- ]),
3159
- d('div', Cs, [
3160
- d('div', Hs, [
3161
- c(l.$slots, 'nav-bar-content-before', {}, void 0, !0),
3162
- _(ks, { class: 'search' }),
3163
- _(us, { class: 'menu' }),
3164
- _(Ms, { class: 'translations' }),
3165
- _(bo, { class: 'appearance' }),
3166
- _(gs, { class: 'social-links' }),
3167
- _(es, { class: 'extra' }),
3168
- c(l.$slots, 'nav-bar-content-after', {}, void 0, !0),
3169
- _(
3170
- os,
3171
- {
3172
- class: 'hamburger',
3173
- active: l.isScreenOpen,
3174
- onClick:
3175
- v[0] || (v[0] = (p) => l.$emit('toggle-screen')),
3176
- },
3177
- null,
3178
- 8,
3179
- ['active'],
3180
- ),
3181
- ]),
3182
- ]),
3183
- ]),
3184
- ]),
3185
- v[1] ||
3186
- (v[1] = d(
3187
- 'div',
3188
- { class: 'divider' },
3189
- [d('div', { class: 'divider-line' })],
3190
- -1,
3191
- )),
3192
- ],
3193
- 2,
3194
- )
3195
- )
3196
- )
3197
- },
3198
- }),
3199
- Es = g(Bs, [['__scopeId', 'data-v-6aa21345']]),
3200
- Fs = { key: 0, class: 'VPNavScreenAppearance' },
3201
- Ds = { class: 'text' },
3202
- Os = m({
3203
- __name: 'VPNavScreenAppearance',
3204
- setup(s) {
3205
- const { site: e, theme: t } = L()
3206
- return (o, n) =>
3207
- r(e).appearance &&
3208
- r(e).appearance !== 'force-dark' &&
3209
- r(e).appearance !== 'force-auto'
3210
- ? (a(),
3211
- u('div', Fs, [
3212
- d('p', Ds, I(r(t).darkModeSwitchLabel || 'Appearance'), 1),
3213
- _(me),
3214
- ]))
3215
- : h('', !0)
3216
- },
3217
- }),
3218
- Gs = g(Os, [['__scopeId', 'data-v-b44890b2']]),
3219
- Us = ['innerHTML'],
3220
- js = m({
3221
- __name: 'VPNavScreenMenuLink',
3222
- props: { item: {} },
3223
- setup(s) {
3224
- const e = x('close-screen')
3225
- return (t, o) => (
3226
- a(),
3227
- k(
3228
- F,
3229
- {
3230
- class: 'VPNavScreenMenuLink',
3231
- href: t.item.link,
3232
- target: t.item.target,
3233
- rel: t.item.rel,
3234
- 'no-icon': t.item.noIcon,
3235
- onClick: r(e),
3236
- },
3237
- {
3238
- default: f(() => [
3239
- d('span', { innerHTML: t.item.text }, null, 8, Us),
3240
- ]),
3241
- _: 1,
3242
- },
3243
- 8,
3244
- ['href', 'target', 'rel', 'no-icon', 'onClick'],
3245
- )
3246
- )
3247
- },
3248
- }),
3249
- zs = g(js, [['__scopeId', 'data-v-df37e6dd']]),
3250
- Ws = ['innerHTML'],
3251
- Ks = m({
3252
- __name: 'VPNavScreenMenuGroupLink',
3253
- props: { item: {} },
3254
- setup(s) {
3255
- const e = x('close-screen')
3256
- return (t, o) => (
3257
- a(),
3258
- k(
3259
- F,
3260
- {
3261
- class: 'VPNavScreenMenuGroupLink',
3262
- href: t.item.link,
3263
- target: t.item.target,
3264
- rel: t.item.rel,
3265
- 'no-icon': t.item.noIcon,
3266
- onClick: r(e),
3267
- },
3268
- {
3269
- default: f(() => [
3270
- d('span', { innerHTML: t.item.text }, null, 8, Ws),
3271
- ]),
3272
- _: 1,
3273
- },
3274
- 8,
3275
- ['href', 'target', 'rel', 'no-icon', 'onClick'],
3276
- )
3277
- )
3278
- },
3279
- }),
3280
- Ce = g(Ks, [['__scopeId', 'data-v-3e9c20e4']]),
3281
- qs = { class: 'VPNavScreenMenuGroupSection' },
3282
- Rs = { key: 0, class: 'title' },
3283
- Js = m({
3284
- __name: 'VPNavScreenMenuGroupSection',
3285
- props: { text: {}, items: {} },
3286
- setup(s) {
3287
- return (e, t) => (
3288
- a(),
3289
- u('div', qs, [
3290
- e.text ? (a(), u('p', Rs, I(e.text), 1)) : h('', !0),
3291
- (a(!0),
3292
- u(
3293
- w,
3294
- null,
3295
- H(
3296
- e.items,
3297
- (o) => (a(), k(Ce, { key: o.text, item: o }, null, 8, ['item'])),
3298
- ),
3299
- 128,
3300
- )),
3301
- ])
3302
- )
3303
- },
3304
- }),
3305
- Xs = g(Js, [['__scopeId', 'data-v-8133b170']]),
3306
- Ys = ['aria-controls', 'aria-expanded'],
3307
- Qs = ['innerHTML'],
3308
- Zs = ['id'],
3309
- xs = { key: 0, class: 'item' },
3310
- ea = { key: 1, class: 'item' },
3311
- ta = { key: 2, class: 'group' },
3312
- na = m({
3313
- __name: 'VPNavScreenMenuGroup',
3314
- props: { text: {}, items: {} },
3315
- setup(s) {
3316
- const e = s,
3317
- t = T(!1),
3318
- o = y(() => `NavScreenGroup-${e.text.replace(' ', '-').toLowerCase()}`)
3319
- function n() {
3320
- t.value = !t.value
3321
- }
3322
- return (i, l) => (
3323
- a(),
3324
- u(
3325
- 'div',
3326
- { class: M(['VPNavScreenMenuGroup', { open: t.value }]) },
3327
- [
3328
- d(
3329
- 'button',
3330
- {
3331
- class: 'button',
3332
- 'aria-controls': o.value,
3333
- 'aria-expanded': t.value,
3334
- onClick: n,
3335
- },
3336
- [
3337
- d(
3338
- 'span',
3339
- { class: 'button-text', innerHTML: i.text },
3340
- null,
3341
- 8,
3342
- Qs,
3343
- ),
3344
- l[0] ||
3345
- (l[0] = d(
3346
- 'span',
3347
- { class: 'vpi-plus button-icon' },
3348
- null,
3349
- -1,
3350
- )),
3351
- ],
3352
- 8,
3353
- Ys,
3354
- ),
3355
- d(
3356
- 'div',
3357
- { id: o.value, class: 'items' },
3358
- [
3359
- (a(!0),
3360
- u(
3361
- w,
3362
- null,
3363
- H(
3364
- i.items,
3365
- (v) => (
3366
- a(),
3367
- u(
3368
- w,
3369
- { key: JSON.stringify(v) },
3370
- [
3371
- 'link' in v
3372
- ? (a(),
3373
- u('div', xs, [
3374
- _(Ce, { item: v }, null, 8, ['item']),
3375
- ]))
3376
- : 'component' in v
3377
- ? (a(),
3378
- u('div', ea, [
3379
- (a(),
3380
- k(
3381
- E(v.component),
3382
- U({ ref_for: !0 }, v.props, {
3383
- 'screen-menu': '',
3384
- }),
3385
- null,
3386
- 16,
3387
- )),
3388
- ]))
3389
- : (a(),
3390
- u('div', ta, [
3391
- _(
3392
- Xs,
3393
- { text: v.text, items: v.items },
3394
- null,
3395
- 8,
3396
- ['text', 'items'],
3397
- ),
3398
- ])),
3399
- ],
3400
- 64,
3401
- )
3402
- ),
3403
- ),
3404
- 128,
3405
- )),
3406
- ],
3407
- 8,
3408
- Zs,
3409
- ),
3410
- ],
3411
- 2,
3412
- )
3413
- )
3414
- },
3415
- }),
3416
- oa = g(na, [['__scopeId', 'data-v-b9ab8c58']]),
3417
- sa = { key: 0, class: 'VPNavScreenMenu' },
3418
- aa = m({
3419
- __name: 'VPNavScreenMenu',
3420
- setup(s) {
3421
- const { theme: e } = L()
3422
- return (t, o) =>
3423
- r(e).nav
3424
- ? (a(),
3425
- u('nav', sa, [
3426
- (a(!0),
3427
- u(
3428
- w,
3429
- null,
3430
- H(
3431
- r(e).nav,
3432
- (n) => (
3433
- a(),
3434
- u(
3435
- w,
3436
- { key: JSON.stringify(n) },
3437
- [
3438
- 'link' in n
3439
- ? (a(), k(zs, { key: 0, item: n }, null, 8, ['item']))
3440
- : 'component' in n
3441
- ? (a(),
3442
- k(
3443
- E(n.component),
3444
- U({ key: 1, ref_for: !0 }, n.props, {
3445
- 'screen-menu': '',
3446
- }),
3447
- null,
3448
- 16,
3449
- ))
3450
- : (a(),
3451
- k(
3452
- oa,
3453
- { key: 2, text: n.text || '', items: n.items },
3454
- null,
3455
- 8,
3456
- ['text', 'items'],
3457
- )),
3458
- ],
3459
- 64,
3460
- )
3461
- ),
3462
- ),
3463
- 128,
3464
- )),
3465
- ]))
3466
- : h('', !0)
3467
- },
3468
- }),
3469
- ra = m({
3470
- __name: 'VPNavScreenSocialLinks',
3471
- setup(s) {
3472
- const { theme: e } = L()
3473
- return (t, o) =>
3474
- r(e).socialLinks
3475
- ? (a(),
3476
- k(
3477
- be,
3478
- {
3479
- key: 0,
3480
- class: 'VPNavScreenSocialLinks',
3481
- links: r(e).socialLinks,
3482
- },
3483
- null,
3484
- 8,
3485
- ['links'],
3486
- ))
3487
- : h('', !0)
3488
- },
3489
- }),
3490
- ia = { class: 'list' },
3491
- la = m({
3492
- __name: 'VPNavScreenTranslations',
3493
- setup(s) {
3494
- const { localeLinks: e, currentLang: t } = R({ correspondingLink: !0 }),
3495
- o = T(!1)
3496
- function n() {
3497
- o.value = !o.value
3498
- }
3499
- return (i, l) =>
3500
- r(e).length && r(t).label
3501
- ? (a(),
3502
- u(
3503
- 'div',
3504
- {
3505
- key: 0,
3506
- class: M(['VPNavScreenTranslations', { open: o.value }]),
3507
- },
3508
- [
3509
- d('button', { class: 'title', onClick: n }, [
3510
- l[0] ||
3511
- (l[0] = d(
3512
- 'span',
3513
- { class: 'vpi-languages icon lang' },
3514
- null,
3515
- -1,
3516
- )),
3517
- z(' ' + I(r(t).label) + ' ', 1),
3518
- l[1] ||
3519
- (l[1] = d(
3520
- 'span',
3521
- { class: 'vpi-chevron-down icon chevron' },
3522
- null,
3523
- -1,
3524
- )),
3525
- ]),
3526
- d('ul', ia, [
3527
- (a(!0),
3528
- u(
3529
- w,
3530
- null,
3531
- H(
3532
- r(e),
3533
- (v) => (
3534
- a(),
3535
- u('li', { key: v.link, class: 'item' }, [
3536
- _(
3537
- F,
3538
- { class: 'link', href: v.link },
3539
- { default: f(() => [z(I(v.text), 1)]), _: 2 },
3540
- 1032,
3541
- ['href'],
3542
- ),
3543
- ])
3544
- ),
3545
- ),
3546
- 128,
3547
- )),
3548
- ]),
3549
- ],
3550
- 2,
3551
- ))
3552
- : h('', !0)
3553
- },
3554
- }),
3555
- ca = g(la, [['__scopeId', 'data-v-858fe1a4']]),
3556
- ua = { class: 'container' },
3557
- da = m({
3558
- __name: 'VPNavScreen',
3559
- props: { open: { type: Boolean } },
3560
- setup(s) {
3561
- const e = T(null),
3562
- t = Se(ee ? document.body : null)
3563
- return (o, n) => (
3564
- a(),
3565
- k(
3566
- ue,
3567
- {
3568
- name: 'fade',
3569
- onEnter: n[0] || (n[0] = (i) => (t.value = !0)),
3570
- onAfterLeave: n[1] || (n[1] = (i) => (t.value = !1)),
3571
- },
3572
- {
3573
- default: f(() => [
3574
- o.open
3575
- ? (a(),
3576
- u(
3577
- 'div',
3578
- {
3579
- key: 0,
3580
- class: 'VPNavScreen',
3581
- ref_key: 'screen',
3582
- ref: e,
3583
- id: 'VPNavScreen',
3584
- },
3585
- [
3586
- d('div', ua, [
3587
- c(
3588
- o.$slots,
3589
- 'nav-screen-content-before',
3590
- {},
3591
- void 0,
3592
- !0,
3593
- ),
3594
- _(aa, { class: 'menu' }),
3595
- _(ca, { class: 'translations' }),
3596
- _(Gs, { class: 'appearance' }),
3597
- _(ra, { class: 'social-links' }),
3598
- c(o.$slots, 'nav-screen-content-after', {}, void 0, !0),
3599
- ]),
3600
- ],
3601
- 512,
3602
- ))
3603
- : h('', !0),
3604
- ]),
3605
- _: 3,
3606
- },
3607
- )
3608
- )
3609
- },
3610
- }),
3611
- va = g(da, [['__scopeId', 'data-v-f2779853']]),
3612
- pa = { key: 0, class: 'VPNav' },
3613
- fa = m({
3614
- __name: 'VPNav',
3615
- setup(s) {
3616
- const { isScreenOpen: e, closeScreen: t, toggleScreen: o } = lo(),
3617
- { frontmatter: n } = L(),
3618
- i = y(() => n.value.navbar !== !1)
3619
- return (
3620
- Te('close-screen', t),
3621
- Y(() => {
3622
- ee && document.documentElement.classList.toggle('hide-nav', !i.value)
3623
- }),
3624
- (l, v) =>
3625
- i.value
3626
- ? (a(),
3627
- u('header', pa, [
3628
- _(
3629
- Es,
3630
- { 'is-screen-open': r(e), onToggleScreen: r(o) },
3631
- {
3632
- 'nav-bar-title-before': f(() => [
3633
- c(l.$slots, 'nav-bar-title-before', {}, void 0, !0),
3634
- ]),
3635
- 'nav-bar-title-after': f(() => [
3636
- c(l.$slots, 'nav-bar-title-after', {}, void 0, !0),
3637
- ]),
3638
- 'nav-bar-content-before': f(() => [
3639
- c(l.$slots, 'nav-bar-content-before', {}, void 0, !0),
3640
- ]),
3641
- 'nav-bar-content-after': f(() => [
3642
- c(l.$slots, 'nav-bar-content-after', {}, void 0, !0),
3643
- ]),
3644
- _: 3,
3645
- },
3646
- 8,
3647
- ['is-screen-open', 'onToggleScreen'],
3648
- ),
3649
- _(
3650
- va,
3651
- { open: r(e) },
3652
- {
3653
- 'nav-screen-content-before': f(() => [
3654
- c(l.$slots, 'nav-screen-content-before', {}, void 0, !0),
3655
- ]),
3656
- 'nav-screen-content-after': f(() => [
3657
- c(l.$slots, 'nav-screen-content-after', {}, void 0, !0),
3658
- ]),
3659
- _: 3,
3660
- },
3661
- 8,
3662
- ['open'],
3663
- ),
3664
- ]))
3665
- : h('', !0)
3666
- )
3667
- },
3668
- }),
3669
- ha = g(fa, [['__scopeId', 'data-v-ae24b3ad']]),
3670
- ma = ['role', 'tabindex'],
3671
- _a = { key: 1, class: 'items' },
3672
- ka = m({
3673
- __name: 'VPSidebarItem',
3674
- props: { item: {}, depth: {} },
3675
- setup(s) {
3676
- const e = s,
3677
- {
3678
- collapsed: t,
3679
- collapsible: o,
3680
- isLink: n,
3681
- isActiveLink: i,
3682
- hasActiveLink: l,
3683
- hasChildren: v,
3684
- toggle: p,
3685
- } = dt(y(() => e.item)),
3686
- $ = y(() => (v.value ? 'section' : 'div')),
3687
- V = y(() => (n.value ? 'a' : 'div')),
3688
- b = y(() =>
3689
- v.value ? (e.depth + 2 === 7 ? 'p' : `h${e.depth + 2}`) : 'p',
3690
- ),
3691
- P = y(() => (n.value ? void 0 : 'button')),
3692
- N = y(() => [
3693
- [`level-${e.depth}`],
3694
- { collapsible: o.value },
3695
- { collapsed: t.value },
3696
- { 'is-link': n.value },
3697
- { 'is-active': i.value },
3698
- { 'has-active': l.value },
3699
- ])
3700
- function A(S) {
3701
- ;('key' in S && S.key !== 'Enter') || (!e.item.link && p())
3702
- }
3703
- function C() {
3704
- e.item.link && p()
3705
- }
3706
- return (S, B) => {
3707
- const G = K('VPSidebarItem', !0)
3708
- return (
3709
- a(),
3710
- k(
3711
- E($.value),
3712
- { class: M(['VPSidebarItem', N.value]) },
3713
- {
3714
- default: f(() => [
3715
- S.item.text
3716
- ? (a(),
3717
- u(
3718
- 'div',
3719
- U(
3720
- { key: 0, class: 'item', role: P.value },
3721
- ze(S.item.items ? { click: A, keydown: A } : {}, !0),
3722
- { tabindex: S.item.items && 0 },
3723
- ),
3724
- [
3725
- B[1] ||
3726
- (B[1] = d('div', { class: 'indicator' }, null, -1)),
3727
- S.item.link
3728
- ? (a(),
3729
- k(
3730
- F,
3731
- {
3732
- key: 0,
3733
- tag: V.value,
3734
- class: 'link',
3735
- href: S.item.link,
3736
- rel: S.item.rel,
3737
- target: S.item.target,
3738
- },
3739
- {
3740
- default: f(() => [
3741
- (a(),
3742
- k(
3743
- E(b.value),
3744
- { class: 'text', innerHTML: S.item.text },
3745
- null,
3746
- 8,
3747
- ['innerHTML'],
3748
- )),
3749
- ]),
3750
- _: 1,
3751
- },
3752
- 8,
3753
- ['tag', 'href', 'rel', 'target'],
3754
- ))
3755
- : (a(),
3756
- k(
3757
- E(b.value),
3758
- { key: 1, class: 'text', innerHTML: S.item.text },
3759
- null,
3760
- 8,
3761
- ['innerHTML'],
3762
- )),
3763
- S.item.collapsed != null &&
3764
- S.item.items &&
3765
- S.item.items.length
3766
- ? (a(),
3767
- u(
3768
- 'div',
3769
- {
3770
- key: 2,
3771
- class: 'caret',
3772
- role: 'button',
3773
- 'aria-label': 'toggle section',
3774
- onClick: C,
3775
- onKeydown: We(C, ['enter']),
3776
- tabindex: '0',
3777
- },
3778
- [
3779
- ...(B[0] ||
3780
- (B[0] = [
3781
- d(
3782
- 'span',
3783
- { class: 'vpi-chevron-right caret-icon' },
3784
- null,
3785
- -1,
3786
- ),
3787
- ])),
3788
- ],
3789
- 32,
3790
- ))
3791
- : h('', !0),
3792
- ],
3793
- 16,
3794
- ma,
3795
- ))
3796
- : h('', !0),
3797
- S.item.items && S.item.items.length
3798
- ? (a(),
3799
- u('div', _a, [
3800
- S.depth < 5
3801
- ? (a(!0),
3802
- u(
3803
- w,
3804
- { key: 0 },
3805
- H(
3806
- S.item.items,
3807
- (q) => (
3808
- a(),
3809
- k(
3810
- G,
3811
- { key: q.text, item: q, depth: S.depth + 1 },
3812
- null,
3813
- 8,
3814
- ['item', 'depth'],
3815
- )
3816
- ),
3817
- ),
3818
- 128,
3819
- ))
3820
- : h('', !0),
3821
- ]))
3822
- : h('', !0),
3823
- ]),
3824
- _: 1,
3825
- },
3826
- 8,
3827
- ['class'],
3828
- )
3829
- )
3830
- }
3831
- },
3832
- }),
3833
- ba = g(ka, [['__scopeId', 'data-v-b3fd67f8']]),
3834
- ga = m({
3835
- __name: 'VPSidebarGroup',
3836
- props: { items: {} },
3837
- setup(s) {
3838
- const e = T(!0)
3839
- let t = null
3840
- return (
3841
- j(() => {
3842
- t = setTimeout(() => {
3843
- ;((t = null), (e.value = !1))
3844
- }, 300)
3845
- }),
3846
- Ke(() => {
3847
- t != null && (clearTimeout(t), (t = null))
3848
- }),
3849
- (o, n) => (
3850
- a(!0),
3851
- u(
3852
- w,
3853
- null,
3854
- H(
3855
- o.items,
3856
- (i) => (
3857
- a(),
3858
- u(
3859
- 'div',
3860
- {
3861
- key: i.text,
3862
- class: M(['group', { 'no-transition': e.value }]),
3863
- },
3864
- [_(ba, { item: i, depth: 0 }, null, 8, ['item'])],
3865
- 2,
3866
- )
3867
- ),
3868
- ),
3869
- 128,
3870
- )
3871
- )
3872
- )
3873
- },
3874
- }),
3875
- $a = g(ga, [['__scopeId', 'data-v-c40bc020']]),
3876
- ya = {
3877
- class: 'nav',
3878
- id: 'VPSidebarNav',
3879
- 'aria-labelledby': 'sidebar-aria-label',
3880
- tabindex: '-1',
3881
- },
3882
- Pa = m({
3883
- __name: 'VPSidebar',
3884
- props: { open: { type: Boolean } },
3885
- setup(s) {
3886
- const { sidebarGroups: e, hasSidebar: t } = O(),
3887
- o = s,
3888
- n = T(null),
3889
- i = Se(ee ? document.body : null)
3890
- D(
3891
- [o, n],
3892
- () => {
3893
- var v
3894
- o.open
3895
- ? ((i.value = !0), (v = n.value) == null || v.focus())
3896
- : (i.value = !1)
3897
- },
3898
- { immediate: !0, flush: 'post' },
3899
- )
3900
- const l = T(0)
3901
- return (
3902
- D(
3903
- e,
3904
- () => {
3905
- l.value += 1
3906
- },
3907
- { deep: !0 },
3908
- ),
3909
- (v, p) =>
3910
- r(t)
3911
- ? (a(),
3912
- u(
3913
- 'aside',
3914
- {
3915
- key: 0,
3916
- class: M(['VPSidebar', { open: v.open }]),
3917
- ref_key: 'navEl',
3918
- ref: n,
3919
- onClick: p[0] || (p[0] = qe(() => {}, ['stop'])),
3920
- },
3921
- [
3922
- p[2] || (p[2] = d('div', { class: 'curtain' }, null, -1)),
3923
- d('nav', ya, [
3924
- p[1] ||
3925
- (p[1] = d(
3926
- 'span',
3927
- { class: 'visually-hidden', id: 'sidebar-aria-label' },
3928
- ' Sidebar Navigation ',
3929
- -1,
3930
- )),
3931
- c(v.$slots, 'sidebar-nav-before', {}, void 0, !0),
3932
- (a(),
3933
- k($a, { items: r(e), key: l.value }, null, 8, ['items'])),
3934
- c(v.$slots, 'sidebar-nav-after', {}, void 0, !0),
3935
- ]),
3936
- ],
3937
- 2,
3938
- ))
3939
- : h('', !0)
3940
- )
3941
- },
3942
- }),
3943
- La = g(Pa, [['__scopeId', 'data-v-319d5ca6']]),
3944
- Va = m({
3945
- __name: 'VPSkipLink',
3946
- setup(s) {
3947
- const { theme: e } = L(),
3948
- t = Z(),
3949
- o = T()
3950
- D(
3951
- () => t.path,
3952
- () => o.value.focus(),
3953
- )
3954
- function n({ target: i }) {
3955
- const l = document.getElementById(decodeURIComponent(i.hash).slice(1))
3956
- if (l) {
3957
- const v = () => {
3958
- ;(l.removeAttribute('tabindex'), l.removeEventListener('blur', v))
3959
- }
3960
- ;(l.setAttribute('tabindex', '-1'),
3961
- l.addEventListener('blur', v),
3962
- l.focus(),
3963
- window.scrollTo(0, 0))
3964
- }
3965
- }
3966
- return (i, l) => (
3967
- a(),
3968
- u(
3969
- w,
3970
- null,
3971
- [
3972
- d(
3973
- 'span',
3974
- { ref_key: 'backToTop', ref: o, tabindex: '-1' },
3975
- null,
3976
- 512,
3977
- ),
3978
- d(
3979
- 'a',
3980
- {
3981
- href: '#VPContent',
3982
- class: 'VPSkipLink visually-hidden',
3983
- onClick: n,
3984
- },
3985
- I(r(e).skipToContentLabel || 'Skip to content'),
3986
- 1,
3987
- ),
3988
- ],
3989
- 64,
3990
- )
3991
- )
3992
- },
3993
- }),
3994
- Sa = g(Va, [['__scopeId', 'data-v-0b0ada53']]),
3995
- Ta = m({
3996
- __name: 'Layout',
3997
- setup(s) {
3998
- const { isOpen: e, open: t, close: o } = O(),
3999
- n = Z()
4000
- ;(D(() => n.path, o), ut(e, o))
4001
- const { frontmatter: i } = L(),
4002
- l = Re(),
4003
- v = y(() => !!l['home-hero-image'])
4004
- return (
4005
- Te('hero-image-slot-exists', v),
4006
- (p, $) => {
4007
- const V = K('Content')
4008
- return r(i).layout !== !1
4009
- ? (a(),
4010
- u(
4011
- 'div',
4012
- { key: 0, class: M(['Layout', r(i).pageClass]) },
4013
- [
4014
- c(p.$slots, 'layout-top', {}, void 0, !0),
4015
- _(Sa),
4016
- _(
4017
- Qe,
4018
- { class: 'backdrop', show: r(e), onClick: r(o) },
4019
- null,
4020
- 8,
4021
- ['show', 'onClick'],
4022
- ),
4023
- _(ha, null, {
4024
- 'nav-bar-title-before': f(() => [
4025
- c(p.$slots, 'nav-bar-title-before', {}, void 0, !0),
4026
- ]),
4027
- 'nav-bar-title-after': f(() => [
4028
- c(p.$slots, 'nav-bar-title-after', {}, void 0, !0),
4029
- ]),
4030
- 'nav-bar-content-before': f(() => [
4031
- c(p.$slots, 'nav-bar-content-before', {}, void 0, !0),
4032
- ]),
4033
- 'nav-bar-content-after': f(() => [
4034
- c(p.$slots, 'nav-bar-content-after', {}, void 0, !0),
4035
- ]),
4036
- 'nav-screen-content-before': f(() => [
4037
- c(p.$slots, 'nav-screen-content-before', {}, void 0, !0),
4038
- ]),
4039
- 'nav-screen-content-after': f(() => [
4040
- c(p.$slots, 'nav-screen-content-after', {}, void 0, !0),
4041
- ]),
4042
- _: 3,
4043
- }),
4044
- _(io, { open: r(e), onOpenMenu: r(t) }, null, 8, [
4045
- 'open',
4046
- 'onOpenMenu',
4047
- ]),
4048
- _(
4049
- La,
4050
- { open: r(e) },
4051
- {
4052
- 'sidebar-nav-before': f(() => [
4053
- c(p.$slots, 'sidebar-nav-before', {}, void 0, !0),
4054
- ]),
4055
- 'sidebar-nav-after': f(() => [
4056
- c(p.$slots, 'sidebar-nav-after', {}, void 0, !0),
4057
- ]),
4058
- _: 3,
4059
- },
4060
- 8,
4061
- ['open'],
4062
- ),
4063
- _(Kn, null, {
4064
- 'page-top': f(() => [
4065
- c(p.$slots, 'page-top', {}, void 0, !0),
4066
- ]),
4067
- 'page-bottom': f(() => [
4068
- c(p.$slots, 'page-bottom', {}, void 0, !0),
4069
- ]),
4070
- 'not-found': f(() => [
4071
- c(p.$slots, 'not-found', {}, void 0, !0),
4072
- ]),
4073
- 'home-hero-before': f(() => [
4074
- c(p.$slots, 'home-hero-before', {}, void 0, !0),
4075
- ]),
4076
- 'home-hero-info-before': f(() => [
4077
- c(p.$slots, 'home-hero-info-before', {}, void 0, !0),
4078
- ]),
4079
- 'home-hero-info': f(() => [
4080
- c(p.$slots, 'home-hero-info', {}, void 0, !0),
4081
- ]),
4082
- 'home-hero-info-after': f(() => [
4083
- c(p.$slots, 'home-hero-info-after', {}, void 0, !0),
4084
- ]),
4085
- 'home-hero-actions-after': f(() => [
4086
- c(p.$slots, 'home-hero-actions-after', {}, void 0, !0),
4087
- ]),
4088
- 'home-hero-image': f(() => [
4089
- c(p.$slots, 'home-hero-image', {}, void 0, !0),
4090
- ]),
4091
- 'home-hero-after': f(() => [
4092
- c(p.$slots, 'home-hero-after', {}, void 0, !0),
4093
- ]),
4094
- 'home-features-before': f(() => [
4095
- c(p.$slots, 'home-features-before', {}, void 0, !0),
4096
- ]),
4097
- 'home-features-after': f(() => [
4098
- c(p.$slots, 'home-features-after', {}, void 0, !0),
4099
- ]),
4100
- 'doc-footer-before': f(() => [
4101
- c(p.$slots, 'doc-footer-before', {}, void 0, !0),
4102
- ]),
4103
- 'doc-before': f(() => [
4104
- c(p.$slots, 'doc-before', {}, void 0, !0),
4105
- ]),
4106
- 'doc-after': f(() => [
4107
- c(p.$slots, 'doc-after', {}, void 0, !0),
4108
- ]),
4109
- 'doc-top': f(() => [
4110
- c(p.$slots, 'doc-top', {}, void 0, !0),
4111
- ]),
4112
- 'doc-bottom': f(() => [
4113
- c(p.$slots, 'doc-bottom', {}, void 0, !0),
4114
- ]),
4115
- 'aside-top': f(() => [
4116
- c(p.$slots, 'aside-top', {}, void 0, !0),
4117
- ]),
4118
- 'aside-bottom': f(() => [
4119
- c(p.$slots, 'aside-bottom', {}, void 0, !0),
4120
- ]),
4121
- 'aside-outline-before': f(() => [
4122
- c(p.$slots, 'aside-outline-before', {}, void 0, !0),
4123
- ]),
4124
- 'aside-outline-after': f(() => [
4125
- c(p.$slots, 'aside-outline-after', {}, void 0, !0),
4126
- ]),
4127
- 'aside-ads-before': f(() => [
4128
- c(p.$slots, 'aside-ads-before', {}, void 0, !0),
4129
- ]),
4130
- 'aside-ads-after': f(() => [
4131
- c(p.$slots, 'aside-ads-after', {}, void 0, !0),
4132
- ]),
4133
- _: 3,
4134
- }),
4135
- _(Yn),
4136
- c(p.$slots, 'layout-bottom', {}, void 0, !0),
4137
- ],
4138
- 2,
4139
- ))
4140
- : (a(), k(V, { key: 1 }))
4141
- }
4142
- )
4143
- },
4144
- }),
4145
- Na = g(Ta, [['__scopeId', 'data-v-5d98c3a5']]),
4146
- Ia = {
4147
- Layout: Na,
4148
- enhanceApp: ({ app: s }) => {
4149
- s.component('Badge', Je)
4150
- },
4151
- }
4152
- export { ds as c, Ia as t, L as u }