diff --git a/404.html b/404.html new file mode 100644 index 00000000..47a64557 --- /dev/null +++ b/404.html @@ -0,0 +1 @@ +Plume 主题
Skip to content

404

页面未找到

但是,如果你不改变方向,并且一直寻找,最终可能会到达你要去的地方。
\ No newline at end of file diff --git a/CNAME b/CNAME new file mode 100644 index 00000000..c0197bde --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +plume.pengzhanbo.cn diff --git a/article/0lk24ty5/index.html b/article/0lk24ty5/index.html new file mode 100644 index 00000000..37fa4287 --- /dev/null +++ b/article/0lk24ty5/index.html @@ -0,0 +1,82 @@ +主题效果预览 | Plume 主题
Skip to content

主题效果预览

1004字约3分钟

预览标签

2023-12-25

标题H1

标题H2

标题H3

标题H4

标题H5
标题H6

标题2 Badge Badge

标题3 Badge Badge

标题4 Badge Badge

正文内容。

@property CSS at-rule是 CSS Houdini API 的一部分,它允许开发者显式地定义他们的 CSS 自定义属性, 允许进行属性类型检查、设定默认值以及定义该自定义属性是否可以被继承。

@property 的出现,极大的增强了 CSS 的能力。

加粗:加粗文字

斜体: 斜体文字

删除文字

内容 标记

数学表达式: (2n1)-(2^{n-1}) ~ 2n112^{n-1} -1

rωr(yωω)=(yωω){(logy)r+i=1r(1)Ir(ri+1)(logy)riωi}\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right) = \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^ Ir \cdots (r-i+1) (\log y)^{ri}} {\omega^i} \right\}

19th

H2O

内容居中

内容右对齐

  • 无序列表1
  • 无序列表2
  • 无序列表3
  1. 有序列表1
  2. 有序列表2
  3. 有序列表3
TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12
zebra stripesare neat$1

引用内容

引用内容

链接

外部链接

plume

Badge:

  • info badge
  • tip badge
  • warning badge
  • danger badge

图标:

  • home -
  • vscode -
  • twitter -

demo wrapper:

示例

main
aside

代码:

const a = 1
+const b = 2
+const c = a + b
+
+const obj = {
+  toLong: {
+    deep: {
+      deep: {
+        deep: {
+          value: 'this is to long text. this is to long text. this is to long text. this is to long text.',
+        }
+      }
+    }
+  }
+}

Code Blocks TwoSlash:

const 
welcome
= 'Tudo bem gente?'
+const
words
=
welcome
.contains(' ')
Property 'contains' does not exist on type '"Tudo bem gente?"'.
import 
express
from 'express'
+const
app
=
express
()
+
app
.
get
('/', (
req
,
res
) => {
+
res
.
send
+}) +
app
.
listen
(3000)
import { 
getHighlighterCore
} from 'shiki/core'
+ +const
highlighter
= await
getHighlighterCore
({})
+const
a
= 1
Custom log message
const
b
= 1
Custom error message
const
c
= 1
Custom warning message
Custom annotation message
interface Todo {
+  
title
: string
+} + +const
todo
:
Readonly
<Todo> = {
+
title
: 'Delete inactive users'.
toUpperCase
(),
+} + +
todo
.title = 'Hello'
Cannot assign to 'title' because it is a read-only property.
+
Number
.p
arseInt
('123', 10)
+ +// +//
<script setup lang="ts">
+import { 
ref
} from 'vue'
+ +const
count
=
ref
(0)
+</script> + +<template> + <
p
>{{ count }}</
p
>
+</template>

代码分组:

tab1
const a = 1
+const b = 2
+const c = a + b

代码块高亮:

function foo() {
+  const a = 1
+
+  console.log(a)
+
+  const b = 2
+  const c = 3
+
+  console.log(a + b + c)
+  console.log(a + b)
+}

代码块聚焦:

function foo() {
+  const a = 1
+}

仅标题

注释

注释内容 link inline code

const a = 1
+const b = 2
+const c = a + b

信息

信息内容 link inline code

const a = 1
+const b = 2
+const c = a + b

提示

提示内容 link inline code

const a = 1
+const b = 2
+const c = a + b

警告

警告内容 link inline code

const a = 1
+const b = 2
+const c = a + b

错误

错误内容 link inline code

const a = 1
+const b = 2
+const c = a + b

重要

重要内容 link inline code

const a = 1
+const b = 2
+const c = a + b
详细标题

这里是内容。

GFM alert:

note

相关信息

info

提示

tip

注意

warning

警告

caution

重要

important

代码演示:

Demo 演示
<h1>Hello Word!</h1>
+<p><span id="very">非常</span>强大!</p>
document.querySelector('#very').addEventListener('click', () => {
+  alert('非常强大')
+})
span {
+  color: red;
+}

选项卡:

标题1

内容区块

注意

标题1

内容区块

脚注:

脚注 1 链接[1]

脚注 2 链接[2]

行内的脚注[3] 定义。

重复的页脚定义[2:1]


  1. 脚注 可以包含特殊标记

    也可以由多个段落组成 ↩︎

  2. 脚注文字。 ↩︎ ↩︎

  3. 行内脚注文本 ↩︎

\ No newline at end of file diff --git a/article/2seng2ou/index.html b/article/2seng2ou/index.html new file mode 100644 index 00000000..8c0f3350 --- /dev/null +++ b/article/2seng2ou/index.html @@ -0,0 +1 @@ +示例文章5 | Plume 主题
Skip to content
\ No newline at end of file diff --git a/article/2z59hh8g/index.html b/article/2z59hh8g/index.html new file mode 100644 index 00000000..bbb83299 --- /dev/null +++ b/article/2z59hh8g/index.html @@ -0,0 +1,9 @@ +内容水印 | Plume 主题
Skip to content

内容水印

1298字约4分钟

2024-04-10

概述

不过最需要强调的便是它的可读性。一份使用 Markdown 格式撰写的文件应该可以直接以纯文字发佈,并且看起来不会像是由许多标签或是格式指令所构成。Markdown 语法受到一些既有 text-to-HTML 格式的影响, 包括 SetextatxTextilereStructuredTextGrutatextEtText,然而最大灵感来源其实是纯文字的电子邮件格式。

因此 Markdown 的语法全由标点符号所组成,并经过严谨慎选,是为了让它们看起来就像所要表达的意思。像是在文字两旁加上星号,看起来就像*强调*。Markdown 的列表看起来,嗯,就是列表。假如你有使用过电子邮件,引言写法看起来就真的像是引用一段文字。

Markdown 具有一系列衍生版本,用于扩展 Markdown 的功能 (如表格、脚注、内嵌 HTML 等等) , 这些功能原初的 Markdown 尚不具备,它们能让 Markdown 转换成更多的格式,例如 LaTeX,Docbook。 Markdown 增强版中比较有名的有 Markdown Extra、MultiMarkdown、 Maruku 等。这些衍生版本要么基于工具,如 Pandoc;要么基于网站,如 GitHub 和 Wikipedia,在语法上基本兼容,但在一些语法和渲染效果上有改动。

用途

Markdown 的语法有个主要的目的: 用来作为一种网络内容的写作用语言。Markdown 的重点在于,它能让文件更容易阅读、编写。因此,Markdown 的格式语法只涵盖纯文字可以涵盖的范围。

Markdown 的语法简洁明了、学习容易,而且功能比纯文本更强,因此有很多人用它写博客。世界上最流行的博客平台 WordPress 能很好的支持 Markdown。

用于编写说明文档,并且以 README.md 的文件名保存在软件的目录下面。

除此之外,我们还可以快速将 Markdown 转化为演讲 PPT、Word 产品文档、LaTex 论文甚至是用非常少量的代码完成最小可用原型。在数据科学领域,Markdown 已经广泛使用,极大地推进了动态可重复性研究的历史进程。

行内 HTML

不在 Markdown 涵盖范围之外的标签,都可以直接在文件里面用 HTML 撰写。不需要额外标注这是 HTML 或是 Markdown;只要直接加标签就可以了。

只有块元素 ── 比如 <div><table><pre><p> 等标签,必须在前后加上空行,以利与内容区隔。 而且这些 (元素) 的开始与结尾标签,不可以用 tab 或是空白来缩进。Markdown 的解析器有智慧型判断,可以避免在块标签前后加上没有必要的 <p> 标签。

举例来说,在 Markdown 文件里加上一段 HTML 表格:

This is a regular paragraph.
+
+<table>
+    <tr>
+        <td>Foo</td>
+    </tr>
+</table>
+
+This is another regular paragraph.

请注意,Markdown 语法在 HTML 块标签中将不会被进行处理。例如,你无法在 HTML 块内使用 Markdown 形式的 *强调*

特殊字元自动转换

在 HTML 文件中,有两个字元需要特殊处理: <&< 符号用于起始标签,& 符号则用于标记 HTML 实体,如果你只是想要使用这些符号,你必须要使用实体的形式,像是 &lt;&amp;

& 符号其实很容易让写作网络文件的人感到困扰,如果你要打「AT&T」 ,你必须要写成「AT&amp;T」 ,还得转换网址内的 & 符号,如果你要链接到 http://images.google.com/images?num=30&q=larry+bird

你必须要把网址转成:

http://images.google.com/images?num=30&amp;q=larry+bird

才能放到链接标签的 href 属性里。不用说也知道这很容易忘记,这也可能是 HTML 标准检查所检查到的错误中,数量最多的。

Markdown 允许你直接使用这些符号,但是你要小心跳脱字元的使用,如果你是在 HTML 实体中使用 & 符号的话,它不会被转换,而在其它情形下,它则会被转换成 &amp;。所以你如果要在文件中插入一个著作权的符号,你可以这样写:

&copy;

Markdown 将不会对这段文字做修改,但是如果你这样写:

AT&T

Markdown 就会将它转为:

AT&amp;T

类似的状况也会发生在 < 符号上,因为 Markdown 支持 行内 HTML ,如果你是使用 < 符号作为 HTML 标签使用,那 Markdown 也不会对它做任何转换,但是如果你是写:

4 < 5

Markdown 将会把它转换为:

4 &lt; 5

不过需要注意的是,code 范围内,不论是行内还是块, <& 两个符号都一定会被转换成 HTML 实体, 这项特性让你可以很容易地用 Markdown 写 HTML code (和 HTML 相对而言, HTML 语法中, 你要把所有的 <& 都转换为 HTML 实体,才能在 HTML 文件里面写出 HTML code。)

\ No newline at end of file diff --git a/article/30995vcd/index.html b/article/30995vcd/index.html new file mode 100644 index 00000000..dc3899a2 --- /dev/null +++ b/article/30995vcd/index.html @@ -0,0 +1,7 @@ +照片类作品示例 | Plume 主题
Skip to content

照片类作品示例

263字小于1分钟

2024-08-17

单列照片

<ImageCard v-for="item in list" :key="item.image" v-bind="item" />

双列照片

<CardGrid cols="2">
+  <ImageCard v-for="item in list" :key="item.image" v-bind="item" />
+</CardGrid>

三列照片

<CardGrid cols="3">
+  <ImageCard v-for="item in list" :key="item.image" v-bind="item" />
+</CardGrid>

不同尺寸设备适配

调整窗口大小以观察效果

<CardGrid :cols="{ sm: 2, md: 3, lg: 3 }">
+  <ImageCard v-for="item in list" :key="item.image" v-bind="item" />
+</CardGrid>
\ No newline at end of file diff --git a/article/5vjshyi9/index.html b/article/5vjshyi9/index.html new file mode 100644 index 00000000..48db65e1 --- /dev/null +++ b/article/5vjshyi9/index.html @@ -0,0 +1,48 @@ +1.0.0-rc.73 至 rc.77 更新说明 | Plume 主题
Skip to content

1.0.0-rc.73 至 rc.77 更新说明

1272字约4分钟

2024-07-11

近期的这几个版本主要围绕 实现单独的主题配置文件 ,监听并支持热更新。

Breaking Changes

以下内置插件被移除:

  • 移除 @vuepress-plume/plugin-blog-data 插件
  • 移除 @vuepress-plume/plugin-notes-data 插件
  • 移除 @vuepress-plume/plugin-auto-frontmatter 插件

以上插件的功能全部移动到 vuepress-theme-plume 主题包内部重新实现。原因是,单独的主题配置文件, 在异步加载完配置、以及配置热更新时,需要对这些插件所实现的功能进行重载,为了使流程更加清晰可控, 在主题内重新实现了这些功能,并移除了相关插件。

但相关的配置项并没有发生变更,因此版本更新后用户无需修改配置。

主要更新

新增 主题配置文件

一般我们在使用 VuePress 构建站点时,通常会在 .vuepress/config.js 中引入主题并进行主题配置:

import { defineUserConfig } from 'vuepress'
+import { plumeTheme } from 'vuepress-theme-plume'
+
+export default defineUserConfig({
+  theme: plumeTheme({
+    // 主题配置
+  }),
+})

主题配置 通常会包括 如 导航栏、侧边导航栏、多语言相关等的配置。 当我们启动了 VuePress 服务后,对 .vuepress/config.js 的修改会引起 VuePress 服务的重启, 这对于 VuePress 相关的配置而言是合理的行为。

但对于 主题相关的配置而言,大部分的配置更新是没有必要 重启 VuePress 服务的。 特别是当我们频繁的更新主题配置时,还可能引起 VuePress 服务崩溃, 这对于我们在编写站点内容时带来的体验是非常糟糕的。

因此,主题新增了一个 plume.config.js 的主题配置文件,将主题配置进行单独的维护。 该配置文件主要用于管理主题配置中与 构建流无关的配置。你对他的任意修改,都将以热更新的方式, 更新主题,并同步到 客户端站点实现无刷新更新,完全避免了 VuePress 服务多次重启的问题。

你可以直接在 VuePress 配置文件的相同目录下直接创建 plume.config.js ,主题会自动加载该文件, 也可以使用 plume.config.ts 文件,以获取更好的类型提示。

.vuepress/config.ts
import { defineUserConfig } from 'vuepress'
+import { plumeTheme } from 'vuepress-theme-plume'
+
+export default defineUserConfig({
+  theme: plumeTheme()
+})

新增 编译缓存

VuePress 在每次启动时,都需要全量编译所有的 markdown 文件,在站点内容比较少,且内容不复杂时, 这一过程不算特别耗时,但是当 站点的内容越来越多,内容越来越复杂时,启动等待的时间就会变得越来越久。

以本主题的文档站点为例,虽然主题文档的内容并不算特别多,但是由于使用了 shiki 语法高亮,并支持了 twoslash 功能,由于 twoslash 需要对代码块进行类型编译,非常耗时,这导致 主题文档站点的启动时间 达到了夸张的 15s 以上!

为了缓解这一问题,主题对 markdown 文件的编译做了一层缓存,在首次启用 VuePress 服务时,主题会 对所有的 markdown 文件的编译结果进行缓存,在二次启动时,直接从缓存中读取 markdown 文件的编译结果。 且仅在 markdown 文件有发生变更时,才会重新编译。

通过编译缓存,主题文档站点的启动耗时,从 15s 降低到了 1.2s 左右 !

另一方面, markdown 编译过程中耗时较为严重的是对 代码块 的编译,特别是 代码块使用了 twoslash 时。 主题原来的 15s 耗时主要就是由于 twoslash 的编译时间过长导致的。

主题同样对 代码块 进行了特殊的缓存处理,只有当 代码块 发生变化时,才会重新编译当前的代码块。

新增 autoFrontmatter 配置

在过去的版本,主题会自动为每个 markdown 文件添加了 frontmatter 配置,用户无法更改这个行为, 但部分用户可能不喜欢这一行为、或者只想给 部分 markdown 文件添加 frontmatter 配置、或者 只生成 部分的 frontmatter 配置。

为此,主题添加 autoFrontmatter 配置,用于控制是否自动为每个 markdown 文件添加 frontmatter 配置。 包括可以通过 glob 模式匹配过滤 markdown 文件,控制自动生成哪些 字段。

interface AutoFrontmatter {
+  /**
+   * glob 匹配,被匹配的文件将会自动生成 frontmatter
+   *
+   * @default ['**\/*.md']
+   */
+  include?: string | string[]
+
+  /**
+   * glob 匹配,被匹配的文件将不会自动生成 frontmatter
+   */
+  exclude?: string | string[]
+
+  /**
+   * 是否自动生成 permalink
+   *
+   * @default true
+   */
+  permalink?: boolean
+  /**
+   * 是否自动生成 createTime
+   *
+   * 默认读取 文件创建时间,`createTitme` 比 vuepress 默认的 `date` 时间更精准到秒
+   */
+  createTime?: boolean
+  /**
+   * 是否自动生成 title
+   *
+   * 默认读取文件名作为标题
+   */
+  title?: boolean
+}
\ No newline at end of file diff --git a/article/5xbhl125/index.html b/article/5xbhl125/index.html new file mode 100644 index 00000000..da32818e --- /dev/null +++ b/article/5xbhl125/index.html @@ -0,0 +1 @@ +示例文章7 | Plume 主题
Skip to content
\ No newline at end of file diff --git a/article/6pa64b1n/index.html b/article/6pa64b1n/index.html new file mode 100644 index 00000000..81e8a282 --- /dev/null +++ b/article/6pa64b1n/index.html @@ -0,0 +1 @@ +1.0.0-rc.102 至 rc.103 更新说明 | Plume 主题
Skip to content

1.0.0-rc.102 至 rc.103 更新说明

901字约3分钟

2024-09-24

这两个版本做了一些 破坏性的更新,主要围绕以下两个方面:

  • 适配 Vuepress Guidelines
  • 更新 vuepress-plugin-md-enhance 插件,并迁移其中的部分功能,改用 VuePress 官方插件

适配 VuePress Guidelines

VuePress 推出了 主题开发指南

这一举措旨在规范化主题开发流程,并提出了主题开发过程中需要遵守的几个约定,这包括:

  • 约定 CSS 变量命名规范,并约束 主要 CSS 变量的命名,如 --vp-c-accent--vp-c-text 等。
  • 约定 主要的 HTML 元素容器应添加指定的 属性名,如 vp-content, vp-navbar 等。
  • 约定 双主题模式应使用 [data-theme="light"][data-theme="dark"] 来区分。

围绕这几个约定,可以使得 VuePress 的 开发者们,可以很方便的 开发出 更具通用性的 主题和插件。

plume 主题也同样适配了这些约定:

  • CSS 变量命名的变更HTML 元素添加属性,对于用户是无感知的,您无需关注这方面是否会有影响。

  • 双主题模式,对于有自定义主题需求的用户而言,如果您有重新定义深色模式下的样式,则需要做出一些调整:

    在 CSS 中的 .dark 类应替换为 [data-theme="dark"],请不用担心替换会带来额外的副作用,它们在 CSS 中的 优先级是相同的,您可以安全的执行替换操作。

vuepress-plugin-md-enhance 插件迁移

vuepress-plugin-md-enhance 提供了非常多的功能支持,但与之带来的困难是, 它变得越来越臃肿,变得难以维护了。

我在 #4130 中提出了拆分迁移的计划。 因此从 @2.0.0-rc.53 版本开始,逐步开始拆分迁移的计划。

截止到 @2.0.0-rc.54 版本,已经拆分出了以下插件:

当前主题也将 vuepress-plugin-md-enhance 更新到 @2.0.0-rc.54 版本,因此,也重新接入了上述的插件。

  • @vuepress/plugin-markdown-hint 提供了 提示容器 和 github alerts 支持,主题已内置了该插件,对于该插件的迁移, 用户是无需做任何修改的,您可以继续使用这些功能。

  • @vuepress/plugin-markdown-image 提供了图片支持,主题已内置了该插件,但不启用该插件的默认功能, 因此,如果您使用了如 plugins.mdEnhance.imgSize 配置项,您需要通过plugins.markdownImage 重新进行配置。

  • @vuepress/plugin-markdown-math 提供了数学公式支持,主题已内置了该插件,并默认启用了 katex 支持。

  • @vuepress/plugin-markdown-tab 提供了 Tab 容器 和 代码分组支持,主题重写了插件部分内容,对 code-tabs 容器 做了一些调整,支持在 代码分组标题中显示 相关联的图标。

其它更新

  • 文件树 现在支持 不同的图标方案,可在 :::file-tree 后跟随 :simple-icon / :colored-icon 切换。

    默认为 colored-icon,如果切换为 simple-icon,则不再根据 文件夹名和文件扩展名匹配不同的图标,仅显示默认的 文件夹图标和文件图标。

  • 代码块分组 的标题现在支持显示 图标。当作为 文件名时,与 文件树 采用相同的图标解析规则,还额外支持 不同的技术、框架、语言的名称图标。

  • 优化了 容器、任务列表、脚注、等的样式。

\ No newline at end of file diff --git a/article/97s6ha1e/index.html b/article/97s6ha1e/index.html new file mode 100644 index 00000000..b5f8de9f --- /dev/null +++ b/article/97s6ha1e/index.html @@ -0,0 +1,9 @@ +全屏水印 | Plume 主题
Skip to content

全屏水印

1296字约4分钟

2024-04-10

概述

不过最需要强调的便是它的可读性。一份使用 Markdown 格式撰写的文件应该可以直接以纯文字发佈,并且看起来不会像是由许多标签或是格式指令所构成。Markdown 语法受到一些既有 text-to-HTML 格式的影响, 包括 SetextatxTextilereStructuredTextGrutatextEtText,然而最大灵感来源其实是纯文字的电子邮件格式。

因此 Markdown 的语法全由标点符号所组成,并经过严谨慎选,是为了让它们看起来就像所要表达的意思。像是在文字两旁加上星号,看起来就像*强调*。Markdown 的列表看起来,嗯,就是列表。假如你有使用过电子邮件,引言写法看起来就真的像是引用一段文字。

Markdown 具有一系列衍生版本,用于扩展 Markdown 的功能 (如表格、脚注、内嵌 HTML 等等) , 这些功能原初的 Markdown 尚不具备,它们能让 Markdown 转换成更多的格式,例如 LaTeX,Docbook。 Markdown 增强版中比较有名的有 Markdown Extra、MultiMarkdown、 Maruku 等。这些衍生版本要么基于工具,如 Pandoc;要么基于网站,如 GitHub 和 Wikipedia,在语法上基本兼容,但在一些语法和渲染效果上有改动。

用途

Markdown 的语法有个主要的目的: 用来作为一种网络内容的写作用语言。Markdown 的重点在于,它能让文件更容易阅读、编写。因此,Markdown 的格式语法只涵盖纯文字可以涵盖的范围。

Markdown 的语法简洁明了、学习容易,而且功能比纯文本更强,因此有很多人用它写博客。世界上最流行的博客平台 WordPress 能很好的支持 Markdown。

用于编写说明文档,并且以 README.md 的文件名保存在软件的目录下面。

除此之外,我们还可以快速将 Markdown 转化为演讲 PPT、Word 产品文档、LaTex 论文甚至是用非常少量的代码完成最小可用原型。在数据科学领域,Markdown 已经广泛使用,极大地推进了动态可重复性研究的历史进程。

行内 HTML

不在 Markdown 涵盖范围之外的标签,都可以直接在文件里面用 HTML 撰写。不需要额外标注这是 HTML 或是 Markdown;只要直接加标签就可以了。

只有块元素 ── 比如 <div><table><pre><p> 等标签,必须在前后加上空行,以利与内容区隔。 而且这些 (元素) 的开始与结尾标签,不可以用 tab 或是空白来缩进。Markdown 的解析器有智慧型判断,可以避免在块标签前后加上没有必要的 <p> 标签。

举例来说,在 Markdown 文件里加上一段 HTML 表格:

This is a regular paragraph.
+
+<table>
+    <tr>
+        <td>Foo</td>
+    </tr>
+</table>
+
+This is another regular paragraph.

请注意,Markdown 语法在 HTML 块标签中将不会被进行处理。例如,你无法在 HTML 块内使用 Markdown 形式的 *强调*

特殊字元自动转换

在 HTML 文件中,有两个字元需要特殊处理: <&< 符号用于起始标签,& 符号则用于标记 HTML 实体,如果你只是想要使用这些符号,你必须要使用实体的形式,像是 &lt;&amp;

& 符号其实很容易让写作网络文件的人感到困扰,如果你要打「AT&T」 ,你必须要写成「AT&amp;T」 ,还得转换网址内的 & 符号,如果你要链接到 http://images.google.com/images?num=30&q=larry+bird

你必须要把网址转成:

http://images.google.com/images?num=30&amp;q=larry+bird

才能放到链接标签的 href 属性里。不用说也知道这很容易忘记,这也可能是 HTML 标准检查所检查到的错误中,数量最多的。

Markdown 允许你直接使用这些符号,但是你要小心跳脱字元的使用,如果你是在 HTML 实体中使用 & 符号的话,它不会被转换,而在其它情形下,它则会被转换成 &amp;。所以你如果要在文件中插入一个著作权的符号,你可以这样写:

&copy;

Markdown 将不会对这段文字做修改,但是如果你这样写:

AT&T

Markdown 就会将它转为:

AT&amp;T

类似的状况也会发生在 < 符号上,因为 Markdown 支持 行内 HTML ,如果你是使用 < 符号作为 HTML 标签使用,那 Markdown 也不会对它做任何转换,但是如果你是写:

4 < 5

Markdown 将会把它转换为:

4 &lt; 5

不过需要注意的是,code 范围内,不论是行内还是块, <& 两个符号都一定会被转换成 HTML 实体, 这项特性让你可以很容易地用 Markdown 写 HTML code (和 HTML 相对而言, HTML 语法中, 你要把所有的 <& 都转换为 HTML 实体,才能在 HTML 文件里面写出 HTML code。)

\ No newline at end of file diff --git a/article/9eh4d6ao/index.html b/article/9eh4d6ao/index.html new file mode 100644 index 00000000..4a307d6e --- /dev/null +++ b/article/9eh4d6ao/index.html @@ -0,0 +1 @@ +示例文章3 | Plume 主题
Skip to content
\ No newline at end of file diff --git a/article/ecxnxxd0/index.html b/article/ecxnxxd0/index.html new file mode 100644 index 00000000..967cbb57 --- /dev/null +++ b/article/ecxnxxd0/index.html @@ -0,0 +1,148 @@ +如何使用 frontmatter | Plume 主题
Skip to content

如何使用 frontmatter

1393字约5分钟

2024-09-18

说明

本文 翻译 Introduction to YAML 的部分内容。 用于简单说明如何在 markdown 文件中使用 frontmatter。

如果您具有良好的英语阅读基础,为避免翻译可能存在的内容失真,建议您阅读原文。

原文地址: https://dev.to/paulasantamaria/introduction-to-yaml-125f

介绍

YAML 是一种数据序列化语言,通常用于配置文件,例如 Open API 规范CI/CD 管道

有趣的事实!🤓

根据 YAML 1.0 规范文档 (2001-05-26) 首字母缩略词 “YAML” 代表 “Yet Another Markup Language”, 但后来在 2002-04-07 规范 中更改为递归首字母缩略词“YAML Ain't Markup Language”。

正如最新规范中所述,YAML 旨在 对处理数据的人友好,并通过 最大限度地减少结构字符的使用来实现“独特的干净度”, 允许数据以自然和有意义的方式显示。

最新规范还指出,YAML 1.2 作为官方子集符合 JSON ,这意味着大多数 JSON 文档都可以解析为 YAML。

YAML 通过使用基于缩进的范围界定(类似于 Python)轻松检查数据结构。

另一个有趣的事实!🤓

DEV.to 文章使用 YAML 来定义自定义变量,如标题、描述、标签等。

基本语法

YAML 文档基本上是 键值对的集合,其中值可以像字符串一样简单,也可以像树一样复杂。

以下是有关 YAML 语法的一些说明:

  • 缩进用于表示结构。不允许使用制表符,只要子节点的缩进量比父节点大,空格的数量就无关紧要。
  • 允许使用 UTF-8、UTF-16 和 UTF-32 编码。

字符串

---
+# 字符串不需要引号:
+title: Introduction to YAML
+
+# 但你仍可使用它们:
+title-w-quotes: 'Introduction to YAML'
+
+# 多行字符串以 | 开头
+execute: |
+  npm ci
+  npm build
+  npm test
+---

上面的代码将转换为 JSON 为:

{
+  "title": "Introduction to YAML",
+  "title-w-quotes": "Introduction to YAML",
+  "execute": "npm ci\nnpm build\nnpm test\n"
+}

数字

---
+# 整数:
+age: 29
+
+# 浮点数:
+price: 15.99
+
+# 科学计数法:
+population: 2.89e+6
+---

上面的代码将转换为 JSON 为:

{
+  "age": 29,
+  "price": 15.99,
+  "population": 2890000
+}

布尔值

---
+# 布尔值可以有不同的表示方式:
+published: false
+published: False
+published: FALSE
+---

以上所有内容都将转换为 JSON,如下所示:

{
+  "published": false
+}

Null 值

---
+# Null 值可以通过不设置值来表示:
+null-value:
+
+# 或者更明确地说:
+null-value: null
+null-value: NULL
+null-value: Null
+---

以上所有内容都将转换为 JSON,如下所示:

{
+  "null-value": null
+}

日期和时间戳

可以使用 ISO 格式的日期,如下所示:

---
+date: 2002-12-14
+canonical: 2001-12-15T02:59:43.1Z
+iso8601: 2001-12-14t21:59:43.10-05:00
+spaced: 2001-12-14 21:59:43.10 -5
+---

Sequences 序列

序列允许我们在 YAML 中定义列表:

---
+# 使用连字符的数字列表:
+numbers:
+  - one
+  - two
+  - three
+
+# 内联版本:
+numbers: [ one, two, three ]
+---

上述两个序列都将解析为 JSON,如下所示:

{
+  "numbers": [
+    "one",
+    "two",
+    "three"
+  ]
+}

嵌套值

我们可以使用上述所有类型来创建具有嵌套值的对象,如下所示:

---
+# 一九八四小说数据。
+nineteen-eighty-four:
+  author: George Orwell
+  published-at: 1949-06-08
+  page-count: 328
+  description: |
+    A Novel, often published as 1984, is a dystopian novel by English novelist George Orwell.
+    It was published in June 1949 by Secker & Warburg as Orwell's ninth and final book.
+---

这将转换为 JSON :

{
+  "nineteen-eighty-four": {
+    "author": "George Orwell",
+    "published-at": "1949-06-08T00:00:00.000Z",
+    "page-count": 328,
+    "description": "A Novel, often published as 1984, is a dystopian novel by English novelist George Orwell.\nIt was published in June 1949 by Secker & Warburg as Orwell's ninth and final book.\n"
+  }
+}

对象列表

将序列和嵌套值组合在一起,我们可以创建一个对象列表。

---
+# Let's list books:
+- nineteen-eighty-four:
+    author: George Orwell
+    published-at: 1949-06-08
+    page-count: 328
+    description: |
+      A Novel, often published as 1984, is a dystopian novel by English novelist George Orwell.
+
+- the-hobbit:
+    author: J. R. R. Tolkien
+    published-at: 1937-09-21
+    page-count: 310
+    description: |
+      The Hobbit, or There and Back Again is a children's fantasy novel by English author J. R. R. Tolkien.
+---

独特特性

以下是一些引起我注意的 更复杂的功能 ,它们也使 YAML 与 JSON 区分开来。

注释

你可能已经在我前面的示例中注意到,YAML 允许以 # 开头的注释。

---
+# 这是一个非常有用的注释。
+---

锚点的可重用性

节点锚点用于 标记一个节点 以供将来引用,从而允许我们重复使用该节点。 要标记一个节点,我们使用 & 字符,要引用它,我们使用 *

在下面的示例中,我们将定义一个书籍列表并重用作者数据,因此我们只需要定义一次:

---
+# 作者数据:
+author: &gOrwell
+    name: George
+    last-name: Orwell
+
+# 一些书籍:
+books:
+    - 1984:
+        author: *gOrwell
+    - animal-farm:
+        author: *gOrwell
+---

解析为 JSON 后,上面的代码将如下所示:

{
+  "author": {
+    "name": "George",
+    "last-name": "Orwell"
+  },
+  "books": [
+    {
+      "1984": {
+        "author": {
+          "name": "George",
+          "last-name": "Orwell"
+        }
+      }
+    },
+    {
+      "animal-farm": {
+        "author": {
+          "name": "George",
+          "last-name": "Orwell"
+        }
+      }
+    }
+  ]
+}

带有标签的显式数据类型

正如我们在之前的示例中所见,YAML 会自动检测我们值的类型,但我们也可以 指定所需的类型

我们通过在值前加上 !! 类型来指定它。

以下是一些示例:

---
+# 以下值应为整数,无论何种情况:
+should-be-int: !!int 3.2
+
+# 解析任何值为字符串:
+should-be-string: !!str 30.25
+
+# 我需要下一个值为布尔类型:
+should-be-boolean: !!bool yes
+---

这将转换为 JSON:

{
+  "should-be-int": 3,
+  "should-be-string": "30.25",
+  "should-be-boolean": true
+}
\ No newline at end of file diff --git a/article/elac3ddb/index.html b/article/elac3ddb/index.html new file mode 100644 index 00000000..23c3cb75 --- /dev/null +++ b/article/elac3ddb/index.html @@ -0,0 +1 @@ +示例文章2 | Plume 主题
Skip to content
\ No newline at end of file diff --git a/article/enx7c9s/index.html b/article/enx7c9s/index.html new file mode 100644 index 00000000..fabc6359 --- /dev/null +++ b/article/enx7c9s/index.html @@ -0,0 +1 @@ +加密文章,密码:123456 | Plume 主题
Skip to content

加密文章,密码:123456

33字小于1分钟

预览标签

2023-12-25

\ No newline at end of file diff --git a/article/i4cuuonn/index.html b/article/i4cuuonn/index.html new file mode 100644 index 00000000..b71e5e92 --- /dev/null +++ b/article/i4cuuonn/index.html @@ -0,0 +1,9 @@ +图片水印 | Plume 主题
Skip to content

图片水印

1303字约4分钟

2024-04-11

概述

不过最需要强调的便是它的可读性。一份使用 Markdown 格式撰写的文件应该可以直接以纯文字发佈,并且看起来不会像是由许多标签或是格式指令所构成。Markdown 语法受到一些既有 text-to-HTML 格式的影响, 包括 SetextatxTextilereStructuredTextGrutatextEtText,然而最大灵感来源其实是纯文字的电子邮件格式。

因此 Markdown 的语法全由标点符号所组成,并经过严谨慎选,是为了让它们看起来就像所要表达的意思。像是在文字两旁加上星号,看起来就像*强调*。Markdown 的列表看起来,嗯,就是列表。假如你有使用过电子邮件,引言写法看起来就真的像是引用一段文字。

Markdown 具有一系列衍生版本,用于扩展 Markdown 的功能 (如表格、脚注、内嵌 HTML 等等) , 这些功能原初的 Markdown 尚不具备,它们能让 Markdown 转换成更多的格式,例如 LaTeX,Docbook。 Markdown 增强版中比较有名的有 Markdown Extra、MultiMarkdown、 Maruku 等。这些衍生版本要么基于工具,如 Pandoc;要么基于网站,如 GitHub 和 Wikipedia,在语法上基本兼容,但在一些语法和渲染效果上有改动。

用途

Markdown 的语法有个主要的目的: 用来作为一种网络内容的写作用语言。Markdown 的重点在于,它能让文件更容易阅读、编写。因此,Markdown 的格式语法只涵盖纯文字可以涵盖的范围。

Markdown 的语法简洁明了、学习容易,而且功能比纯文本更强,因此有很多人用它写博客。世界上最流行的博客平台 WordPress 能很好的支持 Markdown。

用于编写说明文档,并且以 README.md 的文件名保存在软件的目录下面。

除此之外,我们还可以快速将 Markdown 转化为演讲 PPT、Word 产品文档、LaTex 论文甚至是用非常少量的代码完成最小可用原型。在数据科学领域,Markdown 已经广泛使用,极大地推进了动态可重复性研究的历史进程。

行内 HTML

不在 Markdown 涵盖范围之外的标签,都可以直接在文件里面用 HTML 撰写。不需要额外标注这是 HTML 或是 Markdown;只要直接加标签就可以了。

只有块元素 ── 比如 <div><table><pre><p> 等标签,必须在前后加上空行,以利与内容区隔。 而且这些 (元素) 的开始与结尾标签,不可以用 tab 或是空白来缩进。Markdown 的解析器有智慧型判断,可以避免在块标签前后加上没有必要的 <p> 标签。

举例来说,在 Markdown 文件里加上一段 HTML 表格:

This is a regular paragraph.
+
+<table>
+    <tr>
+        <td>Foo</td>
+    </tr>
+</table>
+
+This is another regular paragraph.

请注意,Markdown 语法在 HTML 块标签中将不会被进行处理。例如,你无法在 HTML 块内使用 Markdown 形式的 *强调*

特殊字元自动转换

在 HTML 文件中,有两个字元需要特殊处理: <&< 符号用于起始标签,& 符号则用于标记 HTML 实体,如果你只是想要使用这些符号,你必须要使用实体的形式,像是 &lt;&amp;

& 符号其实很容易让写作网络文件的人感到困扰,如果你要打「AT&T」 ,你必须要写成「AT&amp;T」 ,还得转换网址内的 & 符号,如果你要链接到 http://images.google.com/images?num=30&q=larry+bird

你必须要把网址转成:

http://images.google.com/images?num=30&amp;q=larry+bird

才能放到链接标签的 href 属性里。不用说也知道这很容易忘记,这也可能是 HTML 标准检查所检查到的错误中,数量最多的。

Markdown 允许你直接使用这些符号,但是你要小心跳脱字元的使用,如果你是在 HTML 实体中使用 & 符号的话,它不会被转换,而在其它情形下,它则会被转换成 &amp;。所以你如果要在文件中插入一个著作权的符号,你可以这样写:

&copy;

Markdown 将不会对这段文字做修改,但是如果你这样写:

AT&T

Markdown 就会将它转为:

AT&amp;T

类似的状况也会发生在 < 符号上,因为 Markdown 支持 行内 HTML ,如果你是使用 < 符号作为 HTML 标签使用,那 Markdown 也不会对它做任何转换,但是如果你是写:

4 < 5

Markdown 将会把它转换为:

4 &lt; 5

不过需要注意的是,code 范围内,不论是行内还是块, <& 两个符号都一定会被转换成 HTML 实体, 这项特性让你可以很容易地用 Markdown 写 HTML code (和 HTML 相对而言, HTML 语法中, 你要把所有的 <& 都转换为 HTML 实体,才能在 HTML 文件里面写出 HTML code。)

\ No newline at end of file diff --git a/article/m4gen76w/index.html b/article/m4gen76w/index.html new file mode 100644 index 00000000..22caeb13 --- /dev/null +++ b/article/m4gen76w/index.html @@ -0,0 +1 @@ +示例文章8 | Plume 主题
Skip to content
\ No newline at end of file diff --git a/article/mcgayb5w/index.html b/article/mcgayb5w/index.html new file mode 100644 index 00000000..19b40850 --- /dev/null +++ b/article/mcgayb5w/index.html @@ -0,0 +1,323 @@ +markdown 扩展 | Plume 主题
Skip to content

markdown 扩展

2276字约8分钟

markdown教程

2024-03-05

标题锚点

标题会自动应用锚点。

自定义锚点

要为标题指定自定义锚点而不是使用自动生成的锚点,请向标题添加后缀:

# 使用自定义锚点 {#my-anchor}

这允许将标题链接为 #my-anchor,而不是默认的 #使用自定义锚点

链接

内部和外部链接都会被特殊处理。

主题默认对每个 md 文件自动生成一个新的 链接,并保存在对应的 md 文件的 frontmatter 的 permalink 中。 你可以随时修改它们。你也可以通过 theme.autoFrontmatter 选项来禁用这个功能,这时会恢复为 VuePress 的默认行为。

内部链接

有三种方式来使用内部链接:

  • 使用 生成的 permalink 作为内部链接的目标。
  • 使用 md 文件的相对路径作为内部链接的目标。
  • 使用 md 文件的绝对路径作为内部链接的目标, 绝对路径 / 表示从 ${sourceDir} 目录开始。
[Markdown](/guide/markdown/)
+
+[Markdown](./markdown基础.md)

渲染为:

Markdown

Markdown

外部链接

外部链接带有 target="_blank" rel="noreferrer"

VuePress

Github风格的表格

输入:

| Tables        |      Are      |  Cool |
+| ------------- | :-----------: | ----: |
+| col 3 is      | right-aligned | $1600 |
+| col 2 is      |   centered    |   $12 |
+| zebra stripes |   are neat    |    $1 |

输出:

TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12
zebra stripesare neat$1

Emoji 🎉

输入:

:tada: :100:

输出:

🎉 💯

这里可以找到 所有支持的 emoji 列表

目录表

输入:

[[TOC]]

输出:

自定义容器

自定义容器可以通过它们的类型、标题和内容来定义。

默认标题

输入:

::: note
+This is a note box
+:::
+
+::: info
+This is an info box.
+:::
+
+::: tip
+This is a tip.
+:::
+
+::: warning
+This is a warning.
+:::
+
+::: caution
+This is a dangerous warning.
+:::
+
+::: details
+This is a details block.
+:::

输出:

This is a note box

相关信息

This is an info box.

提示

This is a tip.

注意

This is a warning.

警告

This is a dangerous warning.

详情

This is a details block.

自定义标题

可以通过在容器的 "type" 之后附加文本来设置自定义标题。

输入:

::: caution STOP
+危险区域,请勿继续
+:::
+
+::: details 点我查看代码
+```js
+console.log('Hello, VitePress!')
+```
+:::

输出:

STOP

危险区域,请勿继续

点我查看代码
console.log('Hello, VitePress!')

GitHub 风格的警报

主题 同样支持以标注的方式渲染 GitHub 风格的警报。它们和自定义容器的渲染方式相同。

输入:

> [!NOTE]
+> 强调用户在快速浏览文档时也不应忽略的重要信息。
+
+> [!TIP]
+> 有助于用户更顺利达成目标的建议性信息。
+
+> [!IMPORTANT]
+> 对用户达成目标至关重要的信息。
+
+> [!WARNING]
+> 因为可能存在风险,所以需要用户立即关注的关键内容。
+
+> [!CAUTION]
+> 行为可能带来的负面影响。

输出:

强调用户在快速浏览文档时也不应忽略的重要信息。

提示

有助于用户更顺利达成目标的建议性信息。

重要

对用户达成目标至关重要的信息。

注意

因为可能存在风险,所以需要用户立即关注的关键内容。

警告

行为可能带来的负面影响。

代码块中的语法高亮

主题 使用 Shiki 在 Markdown 代码块中使用彩色文本实现语法高亮。 Shiki 支持多种编程语言。需要做的就是将有效的语言别名附加到代码块的开头:

输入:

```js
+export default {
+  name: 'MyComponent',
+  // ...
+}
+```
```html
+<ul>
+  <li v-for="todo in todos" :key="todo.id">
+    {{ todo.text }}
+  </li>
+</ul>
+```

输出:

export default {
+  name: 'MyComponent',
+  // ...
+}
<ul>
+  <li v-for="todo in todos" :key="todo.id">
+    {{ todo.text }}
+  </li>
+</ul>

在 Shiki 的代码仓库中,可以找到 合法的编程语言列表

在代码块中实现行高亮

输入:

```js{4}
+export default {
+  data () {
+    return {
+      msg: 'Highlighted!'
+    }
+  }
+}
+```

输出:

export default {
+  data () {
+    return {
+      msg: 'Highlighted!'
+    }
+  }
+}

除了单行之外,还可以指定多个单行、多行,或两者均指定:

  • 多行:例如 {5-8}{3-10}{10-17}
  • 多个单行:例如 {4,7,9}
  • 多行与单行:例如 {4,7-13,16,23-27,40}

输入:

```js{1,4,6-8}
+export default { // Highlighted
+  data () {
+    return {
+      msg: `Highlighted!
+      This line isn't highlighted,
+      but this and the next 2 are.`,
+      motd: 'VitePress is awesome',
+      lorem: 'ipsum'
+    }
+  }
+}
+```

输出:

export default { // Highlighted
+  data () {
+    return {
+      msg: `Highlighted!
+      This line isn't highlighted,
+      but this and the next 2 are.`,
+      motd: 'VitePress is awesome',
+      lorem: 'ipsum'
+    }
+  }
+}

也可以使用 // [!code highlight] 注释实现行高亮。

输入:

```js
+export default {
+  data () {
+    return {
+      msg: 'Highlighted!' // [!code highlight]
+    }
+  }
+}
+```

输出:

export default {
+  data() {
+    return {
+      msg: 'Highlighted!'
+    }
+  }
+}

代码块中聚焦

在某一行上添加 // [!code focus] 注释将聚焦它并模糊代码的其他部分。

此外,可以使用 // [!code focus:<lines>] 定义要聚焦的行数。

输入:

```js
+export default {
+  data () {
+    return {
+      msg: 'Focused!' // [!code focus]
+    }
+  }
+}
+```

输出:

export default {
+  data() {
+    return {
+      msg: 'Focused!'
+    }
+  }
+}

代码块中的颜色差异

在某一行添加 // [!code --]// [!code ++] 注释将会为该行创建 diff,同时保留代码块的颜色。

输入:

```js
+export default {
+  data () {
+    return {
+      remove: 'Removed', // [!code --]
+      add: 'Added' // [!code ++]
+    }
+  }
+}
+```

输出:

export default {
+  data() {
+    return {
+      remove: 'Removed',
+      add: 'Added'
+    }
+  }
+}

高亮“错误”和“警告”

在某一行添加 // [!code warning]// [!code error] 注释将会为该行相应的着色。

输入:

```js
+export default {
+  data () {
+    return {
+      error: 'Error', // [!code error]
+      warning: 'Warning' // [!code warning]
+    }
+  }
+}
+```

输出:

export default {
+  data() {
+    return {
+      error: 'Error',
+      warning: 'Warning'
+    }
+  }
+}

代码块中 词高亮

输入:

```ts
+export function foo() { // [!code word:Hello]
+  const msg = 'Hello World'
+  console.log(msg) // prints Hello World
+}
+```

输出:

export function foo() {
+  const msg = 'Hello World'
+  console.log(msg) // prints Hello World
+}

你还可以指定高亮显示的次数,例如 [!code word:options:2] 会高亮显示近两个 options

输入:

```ts
+// [!code word:options:2]
+const options = { foo: 'bar' }
+options.foo = 'baz'
+console.log(options.foo) // 这个不会被高亮显示
+```

输出:

const options = { foo: 'bar' }
+options.foo = 'baz'
+console.log(options.foo) // 这个不会被高亮显示

代码组

可以像这样对多个代码块进行分组:

输入:

::: code-tabs
+@tab config.js
+```js
+/**
+ * @type {import('vuepress').UserConfig}
+ */
+const config = {
+  // ..
+}
+
+export default config
+```
+
+@tab config.ts
+```ts
+import type { UserConfig } from 'vuepress'
+
+const config: UserConfig = {
+  // ..
+}
+
+export default config
+```
+:::

输出:

config.js
/**
+ * @type {import('vuepress').UserConfig}
+ */
+const config = {
+  // ..
+}
+
+export default config

你还可以通过 @tab:active

导入代码块

输入:

你可以使用下面的语法,从文件中导入代码块:

@[code](../snippet/snippet-1.js)

输出:

export const a = 1

如果你只想导入这个文件的一部分:

<!-- 仅导入第 1 行至第 10 行 -->
+@[code{1-10}](../snippet/snippet-1.js)

代码语言会根据文件扩展名进行推断,但我们建议你显式指定:

<!-- 指定代码语言 -->
+@[code js](../snippet/snippet-1.js)
+
+<!-- 行高亮 -->
+@[code js{2,4-5}](../foo.js)

数学方程

输入:

When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are
+$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
+
+**Maxwell's equations:**
+
+| equation                                                                                                                                                                  | description                                                                            |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
+| $\nabla \cdot \vec{\mathbf{B}}  = 0$                                                                                                                                      | divergence of $\vec{\mathbf{B}}$ is zero                                               |
+| $\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t}  = \vec{\mathbf{0}}$                                                          | curl of $\vec{\mathbf{E}}$ is proportional to the rate of change of $\vec{\mathbf{B}}$ |
+| $\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} = \frac{4\pi}{c}\vec{\mathbf{j}}    \nabla \cdot \vec{\mathbf{E}} = 4 \pi \rho$ | _wha?_                                                                                 |

输出:

When a0a \ne 0, there are two solutions to (ax2+bx+c=0)(ax^2 + bx + c = 0) and they are

x=b±b24ac2a x = {-b \pm \sqrt{b^2-4ac} \over 2a}

Maxwell's equations:

equationdescription
B=0\nabla \cdot \vec{\mathbf{B}} = 0divergence of B\vec{\mathbf{B}} is zero
×E+1cBt=0\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} = \vec{\mathbf{0}}curl of E\vec{\mathbf{E}} is proportional to the rate of change of B\vec{\mathbf{B}}
×B1cEt=4πcjE=4πρ\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} = \frac{4\pi}{c}\vec{\mathbf{j}} \nabla \cdot \vec{\mathbf{E}} = 4 \pi \rhowha?

标记

使用 == == 进行标记。请注意两边需要有空格。

输入:

vuepress-theme-plume 是一个 ==简洁美观== 的 主题

输出:

vuepress-theme-plume 是一个 简洁美观 的 主题

上下角标

  • 使用 ^ ^ 进行上角标标注。
  • 使用 ~ ~ 进行下角标标注。

输入:

- 19^th^
+- H~2~O

输出:

  • 19th
  • H2O

自定义对齐

输入:

::: left
+左对齐的内容
+:::
+
+::: center
+居中的内容
+:::
+
+::: right
+右对齐的内容
+:::

输出:

左对齐的内容

居中的内容

右对齐的内容

属性支持

你可以使用特殊标记为 Markdown 元素添加属性。

为图片添加属性:

这将为图片添加 一个 名为 full-width 的 class 属性,以及一个 width 属性,值为 100%

![](/plume.png){.full-width width="100%"}

同时也支持其他属性:

一个包含文字的段落。 {#p .a .b align=center customize-attr="content with spaces"}

这将被渲染为:

<p id="p" class="a b" align="center" customize-attr="content with spaces">
+  一个包含文字的段落。
+</p>

任务列表

输入:

- [ ] 任务 1
+- [x] 任务 2
+- [ ] 任务 3

输出:

脚注

输入:

人生自古谁无死,留取丹心照汗青[^脚注1]
+
+[^脚注1]: 出自 宋·文天祥 **《过零丁洋》**

输出:

人生自古谁无死,留取丹心照汗青[1]


  1. 出自 宋·文天祥 《过零丁洋》 ↩︎

\ No newline at end of file diff --git a/article/mcz1csb4/index.html b/article/mcz1csb4/index.html new file mode 100644 index 00000000..154ec9fb --- /dev/null +++ b/article/mcz1csb4/index.html @@ -0,0 +1,161 @@ +Markdown 基础 | Plume 主题
Skip to content

Markdown 基础

5711字约19分钟

markdown教程

2024-03-06

Markdown 是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式。

Markdown 的目标是实现「易读易写」。

概述

不过最需要强调的便是它的可读性。一份使用 Markdown 格式撰写的文件应该可以直接以纯文字发佈,并且看起来不会像是由许多标签或是格式指令所构成。Markdown 语法受到一些既有 text-to-HTML 格式的影响, 包括 SetextatxTextilereStructuredTextGrutatextEtText,然而最大灵感来源其实是纯文字的电子邮件格式。

因此 Markdown 的语法全由标点符号所组成,并经过严谨慎选,是为了让它们看起来就像所要表达的意思。像是在文字两旁加上星号,看起来就像*强调*。Markdown 的列表看起来,嗯,就是列表。假如你有使用过电子邮件,引言写法看起来就真的像是引用一段文字。

Markdown 具有一系列衍生版本,用于扩展 Markdown 的功能 (如表格、脚注、内嵌 HTML 等等) , 这些功能原初的 Markdown 尚不具备,它们能让 Markdown 转换成更多的格式,例如 LaTeX,Docbook。 Markdown 增强版中比较有名的有 Markdown Extra、MultiMarkdown、 Maruku 等。这些衍生版本要么基于工具,如 Pandoc;要么基于网站,如 GitHub 和 Wikipedia,在语法上基本兼容,但在一些语法和渲染效果上有改动。

用途

Markdown 的语法有个主要的目的: 用来作为一种网络内容的写作用语言。Markdown 的重点在于,它能让文件更容易阅读、编写。因此,Markdown 的格式语法只涵盖纯文字可以涵盖的范围。

Markdown 的语法简洁明了、学习容易,而且功能比纯文本更强,因此有很多人用它写博客。世界上最流行的博客平台 WordPress 能很好的支持 Markdown。

用于编写说明文档,并且以 README.md 的文件名保存在软件的目录下面。

除此之外,我们还可以快速将 Markdown 转化为演讲 PPT、Word 产品文档、LaTex 论文甚至是用非常少量的代码完成最小可用原型。在数据科学领域,Markdown 已经广泛使用,极大地推进了动态可重复性研究的历史进程。

行内 HTML

不在 Markdown 涵盖范围之外的标签,都可以直接在文件里面用 HTML 撰写。不需要额外标注这是 HTML 或是 Markdown;只要直接加标签就可以了。

只有块元素 ── 比如 <div><table><pre><p> 等标签,必须在前后加上空行,以利与内容区隔。 而且这些 (元素) 的开始与结尾标签,不可以用 tab 或是空白来缩进。Markdown 的解析器有智慧型判断,可以避免在块标签前后加上没有必要的 <p> 标签。

举例来说,在 Markdown 文件里加上一段 HTML 表格:

This is a regular paragraph.
+
+<table>
+    <tr>
+        <td>Foo</td>
+    </tr>
+</table>
+
+This is another regular paragraph.

请注意,Markdown 语法在 HTML 块标签中将不会被进行处理。例如,你无法在 HTML 块内使用 Markdown 形式的 *强调*

特殊字元自动转换

在 HTML 文件中,有两个字元需要特殊处理: <&< 符号用于起始标签,& 符号则用于标记 HTML 实体,如果你只是想要使用这些符号,你必须要使用实体的形式,像是 &lt;&amp;

& 符号其实很容易让写作网络文件的人感到困扰,如果你要打「AT&T」 ,你必须要写成「AT&amp;T」 ,还得转换网址内的 & 符号,如果你要链接到 http://images.google.com/images?num=30&q=larry+bird

你必须要把网址转成:

http://images.google.com/images?num=30&amp;q=larry+bird

才能放到链接标签的 href 属性里。不用说也知道这很容易忘记,这也可能是 HTML 标准检查所检查到的错误中,数量最多的。

Markdown 允许你直接使用这些符号,但是你要小心跳脱字元的使用,如果你是在 HTML 实体中使用 & 符号的话,它不会被转换,而在其它情形下,它则会被转换成 &amp;。所以你如果要在文件中插入一个著作权的符号,你可以这样写:

&copy;

Markdown 将不会对这段文字做修改,但是如果你这样写:

AT&T

Markdown 就会将它转为:

AT&amp;T

类似的状况也会发生在 < 符号上,因为 Markdown 支持 行内 HTML ,如果你是使用 < 符号作为 HTML 标签使用,那 Markdown 也不会对它做任何转换,但是如果你是写:

4 < 5

Markdown 将会把它转换为:

4 &lt; 5

不过需要注意的是,code 范围内,不论是行内还是块, <& 两个符号都一定会被转换成 HTML 实体, 这项特性让你可以很容易地用 Markdown 写 HTML code (和 HTML 相对而言, HTML 语法中, 你要把所有的 <& 都转换为 HTML 实体,才能在 HTML 文件里面写出 HTML code。)


块元素

段落和换行

一个段落是由一个以上相连接的行句组成,而一个以上的空行则会切分出不同的段落 (空行的定义是显示上看起来像是空行,便会被视为空行。比方说,若某一行只包含空白和 tab,则该行也会被视为空行) ,一般的段落不需要用空白或断行缩进。

「一个以上相连接的行句组成」这句话其实暗示了 Markdown 允许段落内的强迫断行, 这个特性和其他大部分的 text-to-HTML 格式不一样 (包括 MovableType 的「Convert Line Breaks」选项) , 其它的格式会把每个断行都转成 <br /> 标签。

如果你真的想要插入 <br /> 标签的话,在行尾加上两个以上的空格 () 或斜线 (/),然后按 Enter。

是的,这确实需要花比较多功夫来插入 <br /> ,但是「每个换行都转换为 <br />」的方法在 Markdown 中并不适合, Markdown 中 email 式的 块引言 和多段落的 列表 在使用换行来排版的时候,不但更好用,还更好阅读。

标题

标题能显示出文章的结构。

Markdown 支持两种标题的语法,Setextatx 形式。

Setext 形式是用底线的形式,利用 = (最高阶标题) 和 - (第二阶标题) ,例如:

# This is an H1
+
+## This is an H2

任何数量的 =- 都可以有效果。

Atx (推荐)形式则是在行首插入 1 到 6 个 # ,对应到标题 1 到 6 阶,例如:

  • H1: # Header 1
  • H2: ## Header 2
  • H3: ### Header 3
  • H4: #### Header 4
  • H5: ##### Header 5
  • H6: ###### Header 6

Blockquotes

Markdown 使用 email 形式的块引言,如果你很熟悉如何在 email 信件中引言,你就知道怎么在 Markdown 文件中建立一个块引言,那会看起来像是你强迫断行,然后在每行的最前面加上 > :

> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
+> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
+> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
+>
+> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
+> id sem consectetuer libero luctus adipiscing.

Markdown 也允许你只在整个段落的第一行最前面加上 > :

> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
+> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
+> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
+
+> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
+> id sem consectetuer libero luctus adipiscing.

块引言可以有阶层 (例如: 引言内的引言) ,只要根据层数加上不同数量的 > :

> This is the first level of quoting.
+>
+> > This is nested blockquote.
+>
+> Back to the first level.

引言的块内也可以使用其他的 Markdown 语法,包括标题、列表、代码块等:

> ## This is a header.
+>
+> 1. This is the first list item.
+> 1. This is the second list item.
+>
+> Here's some example code:
+>
+>     return shell_exec("echo $input | $markdown_script");

任何标准的文字编辑器都能简单地建立 email 样式的引言,例如 BBEdit ,你可以选取文字后然后从选单中选择增加引言阶层

列表

Markdown 支持有序列表和无序列表。

无序列表使用减号作为列表标记(也可使用星号、加号):

- Red
+- Green
+- Blue

也可以(不建议):

- Red
+- Green
+- Blue
+
+* Red
+* Green
+* Blue

有序列表则使用数字接着一个英文句点:

1.  Bird
+2.  McHale
+3.  Parish

很重要的一点是,你在列表标记上使用的数字并不会影响输出的 HTML 结果,上面的列表所产生的 HTML 标记为:

<ol>
+  <li>Bird</li>
+  <li>McHale</li>
+  <li>Parish</li>
+</ol>

如果你的列表标记写成:

1. Bird
+1. McHale
+1. Parish

你都会得到完全相同的 HTML 输出。重点在于,你可以让 Markdown 文件的列表数字和输出的结果相同,或是你懒一点都写作 1 你可以完全不用在意数字的正确性。

列表项目标记通常是放在最左边,但是其实也可以缩进,最多三个空白,项目标记后面则一定要接着至少一个空白或 tab。

要让列表看起来更漂亮,你可以把内容用固定的缩进整理好:

- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+  Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
+  viverra nec, fringilla in, laoreet vitae, risus.
+- Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
+  Suspendisse id sem consectetuer libero luctus adipiscing.

但是如果你很懒,那也不一定需要:

- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+  Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
+  viverra nec, fringilla in, laoreet vitae, risus.
+- Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
+  Suspendisse id sem consectetuer libero luctus adipiscing.

如果列表项目间用空行分开, Markdown 会把项目的内容在输出时用 <p> 标签包起来,举例来说:

- Bird
+- Magic

会被转换为:

<ul>
+  <li>Bird</li>
+  <li>Magic</li>
+</ul>

但是这个:

- Bird
+
+- Magic

会被转换为:

<ul>
+  <li><p>Bird</p></li>
+  <li><p>Magic</p></li>
+</ul>

列表项目可以包含多个段落,每个项目下的段落都必须缩进 4 个空白或是一个 tab :

1.  This is a list item with two paragraphs. Lorem ipsum dolor
+    sit amet, consectetuer adipiscing elit. Aliquam hendrerit
+    mi posuere lectus.
+
+    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
+    vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
+    sit amet velit.
+
+2.  Suspendisse id sem consectetuer libero luctus adipiscing.

如果你每行都有缩进,看起来会看好很多,当然,再次地,如果你很懒惰,Markdown 也允许:

- This is a list item with two paragraphs.
+
+  This is the second paragraph in the list item. You're
+  only required to indent the first line. Lorem ipsum dolor
+  sit amet, consectetuer adipiscing elit.
+
+- Another item in the same list.

如果要在列表项目内放进引言,那 > 就需要缩进:

- A list item with a blockquote:
+
+  > This is a blockquote
+  > inside a list item.

当然,项目列表很可能会不小心产生,像是下面这样的写法:

1986. What a great season.

换句话说,也就是在行首出现数字-句点-空白,要避免这样的状况,你可以在句点前面加上反斜线。

1986\. What a great season.

代码块

和代码相关的写作或是标签语言原始码通常会有已经排版好的代码块,通常这些块我们并不希望它以一般段落文件的方式去排版,而是照原来的样子显示,Markdown 会用 <pre><code> 标签来把代码块包起来。

要在 Markdown 中建立代码块很简单,只要简单地缩进 4 个空白或是 1 个 tab 就可以,例如,下面的输入:

This is a normal paragraph:
+
+This is a code block.

Markdown 会转换成:

<p>This is a normal paragraph:</p>
+
+<pre>
+  <code>This is a code block.</code>
+</pre>

这里的缩进 (4 个空白或是 1 个 tab) ,都会被移除,例如:

Here is an example of AppleScript:
+
+tell application "Foo"
+beep
+end tell

会被转换为:

<p>Here is an example of AppleScript:</p>
+
+<pre><code>tell application "Foo"
+  beep
+end tell
+</code></pre>

一个代码块会一直持续到没有缩进的那一行 (或是文件结尾) 。

在代码块里面, &<> 会自动转成 HTML 实体,这样的方式让你非常容易使用 Markdown 插入范例用的 HTML 原始码,只需要复制粘贴,再加上缩进就可以了,剩下的 Markdown 都会帮你处理,例如:

```
+<div class="footer">
+  &copy; 2004 Foo Corporation
+</div>
+```

会被转换为:

<pre>
+  <code>&lt;div class="footer"&gt;
+  &amp;copy; 2004 Foo Corporation
+&lt;/div&gt;</code>
+</pre>

代码块中,一般的 Markdown 语法不会被转换,像是星号便只是星号,这表示你可以很容易地以 Markdown 语法撰写 Markdown 语法相关的文件。

如果你想要在代码块里输入用 Markdown 表示的代码库,你可以进行嵌套。

````md
+```js
+const a = 1
+```
+````

会渲染为

```js
+const a = 1
+```

分隔线

你可以在一行中用三个或以上的星号、减号、底线来建立一个分隔线,行内不能有其他东西。你也可以在星号中间插入空白。下面每种写法都可以建立分隔线:

---(建议) * * * *** ***** - - - ---------------------------------------

行内元素

链接

Markdown 支持两种形式的链接语法: 行内参考两种形式。

不管是哪一种,链接的文字都是用 [方括号] 来标记。

要建立一个行内形式的链接,只要在方块括号后面马上接着括号并插入网址链接即可,如果你还想要加上链接的 title 文字,只要在网址后面,用双引号把 title 文字包起来即可,例如:

This is [an example](http://example.com/ "Title") inline link. [This
+link](http://example.net/) has no title attribute.

会产生:

<p>
+  This is <a href="http://example.com/" title="Title"> an example</a> inline
+  link.
+</p>
+
+<p><a href="http://example.net/">This link</a> has no title attribute.</p>

如果你是要链接到同样主机的资源,你可以使用相对路径:

See my [About](/about/) page for details.

参考形式的链接使用另外一个方括号接在链接文字的括号后面,而在第二个方括号里面要填入用以辨识链接的标签:

This is [an example][id] reference-style link.

接着,在文件的任意处,你可以把这个标签的链接内容定义出来:

[id]: http://example.com/ "Optional Title Here"

链接定义的形式为:

  • 方括号,输入链接的标识 ID
  • 冒号
  • 一个以上的空白或 tab
  • 链接的网址
  • 选择性地添加 title 内容,可以用单引号、双引号或是括号包括

下面这三种链接的定义相同:

[foo]: http://example.com/ "Optional Title Here"
+[foo]: http://example.com/ "Optional Title Here"
+[foo]: http://example.com/ "Optional Title Here"

请注意: 有一个已知的问题是 Markdown.pl 1.0.1 会忽略单引号包起来的链接 title。

链接网址也可以用方括号包起来:

[id]: http://example.com/ "Optional Title Here"

你也可以把 title 属性放到下一行,也可以加一些缩进,网址太长的话,这样会比较好看:

[id]: http://example.com/longish/path/to/resource/here "Optional Title Here"

网址定义只有在产生链接的时候用到,并不会直接出现在文件之中。

链接辨识标签可以有字母、数字、空白和标点符号,但是并区分大小写,因此下面两个链接是一样的:

[link text][a]
+[link text][a]

预设的链接标签功能让你可以省略指定链接标签,这种情形下,链接标签和链接文字会视为相同,要用预设链接标签只要在链接文字后面加上一个空的方括号,如果你要让 "Google" 链接到 google.com,你可以简化成:

[Google][]

然后定义链接内容:

[google]: http://google.com/

由于链接文字可能包含空白,所以这种简化的标签内也可以包含多个文字:

Visit [Daring Fireball][] for more information.

然后接着定义链接:

[daring fireball]: http://daringfireball.net/

链接的定义可以放在文件中的任何一个地方,我比较偏好直接放在链接出现段落的后面,你也可以把它放在文件最后面,就像是注解一样。

下面是一个参考式链接的范例:

I get 10 times more traffic from [Google][1] than from
+[Yahoo][2] or [MSN][3].
+
+[1]: http://google.com/ "Google"
+[2]: http://search.yahoo.com/ "Yahoo Search"
+[3]: http://search.msn.com/ "MSN Search"

如果改成用链接名称的方式写:

I get 10 times more traffic from [Google][] than from
+[Yahoo][] or [MSN][].
+
+[google]: http://google.com/ "Google"
+[yahoo]: http://search.yahoo.com/ "Yahoo Search"
+[msn]: http://search.msn.com/ "MSN Search"

上面两种写法都会产生下面的 HTML。

<p>
+  I get 10 times more traffic from
+  <a href="http://google.com/" title="Google">Google</a> than from
+  <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a>
+  or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.
+</p>

下面是用行内形式写的同样一段内容的 Markdown 文件,提供作为比较之用:

I get 10 times more traffic from [Google](http://google.com/ "Google")
+than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
+[MSN](http://search.msn.com/ "MSN Search").

参考式的链接其实重点不在于它比较好写,而是它比较好读,比较一下上面的范例,使用参考式的文章本身只有 81 个字元,但是用行内形式的链接却会增加到 176 个字元,如果是用纯 HTML 格式来写,会有 234 个字元,在 HTML 格式中,标签比文字还要多。

使用 Markdown 的参考式链接,可以让文件更像是浏览器最后产生的结果,让你可以把一些标记相关的资讯移到段落文字之外,你就可以增加链接而不让文章的阅读感觉被打断。

强调

Markdown 使用星号 (*) 和底线 (_) 作为标记强调字词的符号,被 *_ 包围的字词会被转成用 <em> 标签包围,用两个 *_ 包起来的话,则会被转成 <strong>,例如:

**double asterisks** (建议)
+
+**double underscores** (建议)
+
+_single asterisks_
+
+_single underscores_

会转成:

<em>single asterisks</em>
+
+<em>single underscores</em>
+
+<strong>double asterisks</strong>
+
+<strong>double underscores</strong>

你可以随便用你喜欢的样式,唯一的限制是,你用什么符号开启标签,就要用什么符号结束。

强调也可以直接插在文字中间:

un*frigging*believable

但是如果你的 *_ 两边都有空白的话,它们就只会被当成普通的符号。

如果要在文字前后直接插入普通的星号或底线,你可以用反斜线:

\*this text is surrounded by literal asterisks\*

代码

如果要标记一小段行内代码,你可以用反引号把它包起来 (`) ,例如:

Use the `printf()` function.

会产生:

<p>Use the <code>printf()</code> function.</p>

如果要在代码内插入反引号,你可以用多个反引号来开启和结束行内代码:

``There is a literal backtick (`) here.``

这段语法会产生:

<p><code>There is a literal backtick (`) here.</code></p>

代码码区段的起始和结束端都可以放入一个空白,起始端后面一个,结束端前面一个,这样你就可以在区段的一开始就插入反引号:

A single backtick in a code span: `` ` ``
+
+A backtick-delimited string in a code span: `` `foo` ``

会产生:

<p>A single backtick in a code span: <code>`</code></p>
+
+<p>A backtick-delimited string in a code span: <code>`foo`</code></p>

在代码码区段内,& 和方括号都会被转成 HTML 实体,这样会比较容易插入 HTML 原始码,Markdown 会把下面这段:

Please don't use any `<blink>` tags.

转为:

<p>Please don't use any <code>&lt;blink&gt;</code> tags.</p>

你也可以这样写:

`&#8212;` is the decimal-encoded equivalent of `&mdash;`.

以产生:

<p>
+  <code>&amp;#8212;</code> is the decimal-encoded equivalent of
+  <code>&amp;mdash;</code>.
+</p>

图片

很明显地,要在纯文字应用中设计一个「自然」的语法来插入图片是有一定难度的。

Markdown 使用一种和链接很相似的语法来标记图片,同样也允许两种样式: 行内参考

行内图片的语法看起来像是:

![Alt text](/path/to/img.jpg)
+
+![Alt text](/path/to/img.jpg "Optional title")

详细叙述如下:

  • 一个惊叹号 !
  • 一个方括号,里面放上图片的替代文字
  • 一个普通括号,里面放上图片的网址,最后还可以用引号包住并加上 选择性的 title 文字。

参考式的图片语法则长得像这样:

![Alt text][id]

「id」是图片参考的名称,图片参考的定义方式则和链接参考一样:

[id]: url/to/image "Optional title attribute"

到目前为止, Markdown 还没有办法指定图片的宽高,如果你需要的话,你可以使用普通的 <img> 标签。

其他文本样式

  • 删除:~~delete~~
  • 段落: 段落之间空一行
  • 换行符: 一行结束时输入两个空格

其它

自动链接

Markdown 支持比较简短的自动链接形式来处理网址和电子邮件信箱,只要是用方括号包起来, Markdown 就会自动把它转成链接,链接的文字就和链接位置一样,例如:

<http://example.com/>

Markdown 会转为:

<a href="http://example.com/">http://example.com/</a>

自动的邮件链接也很类似,只是 Markdown 会先做一个编码转换的过程,把文字字元转成 16 进位码的 HTML 实体,这样的格式可以混淆一些不好的信箱地址收集机器人,例如:

<address@example.com>

Markdown 会转成:

<a
+  href="&#x6D;&#x61;i&#x6C;&#x74;&#x6F;:&#x61;&#x64;&#x64;&#x72;&#x65;&#115;&#115;&#64;&#101;&#120;&#x61;&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;&#109;"
+  >&#x61;&#x64;&#x64;&#x72;&#x65;&#115;&#115;&#64;&#101;&#120;&#x61;&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;&#109;</a
+>

在浏览器里面,这段字串会变成一个可以点击的 address@example.com 链接。

(这种作法虽然可以混淆不少的机器人,但并无法全部挡下来,不过这样也比什么都不做好些。无论如何,公开你的信箱终究会引来广告信件的。)

转义字符

Markdown 可以利用反斜线来插入一些在语法中有其它意义的符号,例如: 如果你想要用星号加在文字旁边的方式来做出强调效果 (但不用 <em> 标签) ,你可以在星号的前面加上反斜线:

\*literal asterisks\*

Markdown 支持在下面这些符号前面加上反斜线来帮助插入普通的符号:

  • \ 反斜线
  • ` 反引号
  • * 星号
  • _ 底线
  • {} 大括号
  • [] 方括号
  • () 括号
  • # 井字号
  • + 加号
  • - 减号
  • . 英文句点
  • ! 惊叹号

快捷键

输出后的效果Markdown快捷键
Bold**text**Ctrl/⌘ + B
Emphasize*text*Ctrl/⌘ + I
Inline Code`code`选中后 `

表格

居中右对齐左对齐
居中使用:-:右对齐使用-:左对齐使用:-
baaaaaaaaaaaaa
caaaaa
\ No newline at end of file diff --git a/article/qk81wscb/index.html b/article/qk81wscb/index.html new file mode 100644 index 00000000..21f120d7 --- /dev/null +++ b/article/qk81wscb/index.html @@ -0,0 +1 @@ +示例文章4 | Plume 主题
Skip to content
\ No newline at end of file diff --git a/article/v9fejej9/index.html b/article/v9fejej9/index.html new file mode 100644 index 00000000..3ddd3ddc --- /dev/null +++ b/article/v9fejej9/index.html @@ -0,0 +1 @@ +示例文章6 | Plume 主题
Skip to content
\ No newline at end of file diff --git a/article/xld23tu1/index.html b/article/xld23tu1/index.html new file mode 100644 index 00000000..779e7f44 --- /dev/null +++ b/article/xld23tu1/index.html @@ -0,0 +1 @@ +示例文章 | Plume 主题
Skip to content

示例文章

31字小于1分钟

预览标签

2023-12-25

这是一篇 示例文章。

无内容。

\ No newline at end of file diff --git a/article/z8zvx0ru/index.html b/article/z8zvx0ru/index.html new file mode 100644 index 00000000..b318ba04 --- /dev/null +++ b/article/z8zvx0ru/index.html @@ -0,0 +1,75 @@ +示例文章9 | Plume 主题
Skip to content

示例文章9

202字小于1分钟

2024-03-01

go playground

package main
+
+import (
+  "fmt"
+)
+
+func main() {
+  fmt.Println("Hello World")
+}

go playground

package main
+
+import (
+  "fmt"
+  "math/rand"
+  "time"
+)
+
+func main() {
+  for i := 0; i < 10; i++ {
+    dur := time.Duration(rand.Intn(1000)) * time.Millisecond
+    fmt.Printf("Sleeping for %v\n", dur)
+    // Sleep for a random duration between 0-1000ms
+    time.Sleep(dur)
+  }
+  fmt.Println("Done!")
+}

go playground

package main
+
+import (
+  "fmt"
+  "io"
+  "log"
+  "net"
+  "net/http"
+  "os"
+)
+
+func main() {
+  http.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) {
+    fmt.Fprint(w, "Hello, playground")
+  })
+
+  log.Println("Starting server...")
+  l, err := net.Listen("tcp", "localhost:8080")
+  if err != nil {
+    log.Fatal(err)
+  }
+  go func() {
+    log.Fatal(http.Serve(l, nil))
+  }()
+
+  log.Println("Sending request...")
+  res, err := http.Get("http://localhost:8080/hello")
+  if err != nil {
+    log.Fatal(err)
+  }
+
+  log.Println("Reading response...")
+  if _, err := io.Copy(os.Stdout, res.Body); err != nil {
+    log.Fatal(err)
+  }
+}

kotlin playground

class Contact(val id: Int, var email: String)
+
+fun main(args: Array<String>) {
+    val contact = Contact(1, "mary@gmail.com")
+    println(contact.id)
+}

kotlin playground

fun mul(a: Int, b: Int): Int {
+    return a * b
+}
+
+fun main(args: Array<String>) {
+    print(mul(-2, 4))
+}

rust playground

fn main() {
+    println!("Hello, world!");
+}

rust playground

fn main() {
+    printlnl!("Hello, world!");
+}
\ No newline at end of file diff --git a/assets/404.html-Undc4OIk.js b/assets/404.html-Undc4OIk.js new file mode 100644 index 00000000..bd9da88a --- /dev/null +++ b/assets/404.html-Undc4OIk.js @@ -0,0 +1 @@ +import{_ as t,c as a,a as o,o as c}from"./app-DTZBceJp.js";const n={};function s(r,e){return c(),a("div",null,e[0]||(e[0]=[o("p",null,"404 Not Found",-1)]))}const i=t(n,[["render",s],["__file","404.html.vue"]]),d=JSON.parse(`{"path":"/404.html","title":"","lang":"zh-CN","frontmatter":{"layout":"NotFound","gitInclude":[],"head":[["script",{"id":"check-dark-mode"},";(function () {const um= localStorage.getItem('vuepress-theme-appearance') || 'auto';const sm = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;const isDark = um === 'dark' || (um !== 'light' && sm);document.documentElement.dataset.theme = isDark ? 'dark' : 'light';})();"],["script",{"id":"check-mac-os"},"document.documentElement.classList.toggle('mac', /Mac|iPhone|iPod|iPad/i.test(navigator.platform))"]]},"headers":[],"readingTime":{"minutes":0.01,"words":3},"filePathRelative":null}`);export{i as comp,d as data}; diff --git a/assets/CodeEditor-D9mRZVFv.js b/assets/CodeEditor-D9mRZVFv.js new file mode 100644 index 00000000..f385a0e0 --- /dev/null +++ b/assets/CodeEditor-D9mRZVFv.js @@ -0,0 +1,13 @@ +var fn=Object.defineProperty;var hn=(n,e,t)=>e in n?fn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var A=(n,e,t)=>hn(n,typeof e!="symbol"?e+"":e,t);import{j as bn,f as it,H as st,l as yn,g as kn,a1 as wn,a2 as _n,z as vn,_ as Sn,o as Cn,c as xn,y as An,U as Rn,W as Bn,a as Pn}from"./app-DTZBceJp.js";const Nn={grammars:{kotlin:{displayName:"Kotlin",fileTypes:["kt","kts"],name:"kotlin",patterns:[{include:"#import"},{include:"#package"},{include:"#code"}],repository:{"annotation-simple":{match:"(?<([^<>]|\\g)+>)?"},code:{patterns:[{include:"#comments"},{include:"#keywords"},{include:"#annotation-simple"},{include:"#annotation-site-list"},{include:"#annotation-site"},{include:"#class-declaration"},{include:"#object"},{include:"#type-alias"},{include:"#function"},{include:"#variable-declaration"},{include:"#type-constraint"},{include:"#type-annotation"},{include:"#function-call"},{include:"#method-reference"},{include:"#key"},{include:"#string"},{include:"#string-empty"},{include:"#string-multiline"},{include:"#character"},{include:"#lambda-arrow"},{include:"#operators"},{include:"#self-reference"},{include:"#decimal-literal"},{include:"#hex-literal"},{include:"#binary-literal"},{include:"#boolean-literal"},{include:"#null-literal"}]},"comment-block":{begin:"/\\*(?!\\*)",end:"\\*/",name:"comment.block.kotlin"},"comment-javadoc":{patterns:[{begin:"/\\*\\*",end:"\\*/",name:"comment.block.javadoc.kotlin",patterns:[{match:"@(return|constructor|receiver|sample|see|author|since|suppress)\\b",name:"keyword.other.documentation.javadoc.kotlin"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"variable.parameter.kotlin"}},match:"(@param|@property)\\s+(\\S+)"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"variable.parameter.kotlin"}},match:"(@param)\\[(\\S+)\\]"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"entity.name.type.class.kotlin"}},match:"(@(?:exception|throws))\\s+(\\S+)"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"entity.name.type.class.kotlin"},3:{name:"variable.parameter.kotlin"}},match:"{(@link)\\s+(\\S+)?#([\\w$]+\\s*\\([^()]*\\)).*}"}]}]},"comment-line":{begin:"//",end:"$",name:"comment.line.double-slash.kotlin"},comments:{patterns:[{include:"#comment-line"},{include:"#comment-block"},{include:"#comment-javadoc"}]},"control-keywords":{match:"\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\b",name:"keyword.control.kotlin"},"decimal-literal":{match:"\\b\\d[\\d_]*(\\.[\\d_]+)?((e|E)\\d+)?(u|U)?(L|F|f)?\\b",name:"constant.numeric.decimal.kotlin"},function:{captures:{1:{name:"keyword.hard.fun.kotlin"},2:{patterns:[{include:"#type-parameter"}]},4:{name:"entity.name.type.class.extension.kotlin"},5:{name:"entity.name.function.declaration.kotlin"}},match:"\\b(fun)\\b\\s*(?<([^<>]|\\g)+>)?\\s*(?:(?:(\\w+)\\.)?(\\b\\w+\\b|`[^`]+`))?"},"function-call":{captures:{1:{name:"entity.name.function.call.kotlin"},2:{patterns:[{include:"#type-parameter"}]}},match:"\\??\\.?(\\b\\w+\\b|`[^`]+`)\\s*(?<([^<>]|\\g)+>)?\\s*(?=[({])"},"hard-keywords":{match:"\\b(as|typeof|is|in)\\b",name:"keyword.hard.kotlin"},"hex-literal":{match:"0(x|X)[A-Fa-f0-9][A-Fa-f0-9_]*(u|U)?",name:"constant.numeric.hex.kotlin"},import:{begin:"\\b(import)\\b\\s*",beginCaptures:{1:{name:"keyword.soft.kotlin"}},contentName:"entity.name.package.kotlin",end:";|$",name:"meta.import.kotlin",patterns:[{include:"#comments"},{include:"#hard-keywords"},{match:"\\*",name:"variable.language.wildcard.kotlin"}]},key:{captures:{1:{name:"variable.parameter.kotlin"},2:{name:"keyword.operator.assignment.kotlin"}},match:"\\b(\\w=)\\s*(=)"},keywords:{patterns:[{include:"#prefix-modifiers"},{include:"#postfix-modifiers"},{include:"#soft-keywords"},{include:"#hard-keywords"},{include:"#control-keywords"}]},"lambda-arrow":{match:"->",name:"storage.type.function.arrow.kotlin"},"method-reference":{captures:{1:{name:"entity.name.function.reference.kotlin"}},match:"\\??::(\\b\\w+\\b|`[^`]+`)"},"null-literal":{match:"\\bnull\\b",name:"constant.language.null.kotlin"},object:{captures:{1:{name:"keyword.hard.object.kotlin"},2:{name:"entity.name.type.object.kotlin"}},match:"\\b(object)(?:\\s+(\\b\\w+\\b|`[^`]+`))?"},operators:{patterns:[{match:"(===?|!==?|<=|>=|<|>)",name:"keyword.operator.comparison.kotlin"},{match:"([+*/%-]=)",name:"keyword.operator.assignment.arithmetic.kotlin"},{match:"(=)",name:"keyword.operator.assignment.kotlin"},{match:"([+*/%-])",name:"keyword.operator.arithmetic.kotlin"},{match:"(!|&&|\\|\\|)",name:"keyword.operator.logical.kotlin"},{match:"(--|\\+\\+)",name:"keyword.operator.increment-decrement.kotlin"},{match:"(\\.\\.)",name:"keyword.operator.range.kotlin"}]},package:{begin:"\\b(package)\\b\\s*",beginCaptures:{1:{name:"keyword.hard.package.kotlin"}},contentName:"entity.name.package.kotlin",end:";|$",name:"meta.package.kotlin",patterns:[{include:"#comments"}]},"postfix-modifiers":{match:"\\b(where|by|get|set)\\b",name:"storage.modifier.other.kotlin"},"prefix-modifiers":{match:"\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\b",name:"storage.modifier.other.kotlin"},"self-reference":{match:"\\b(this|super)(@\\w+)?\\b",name:"variable.language.this.kotlin"},"soft-keywords":{match:"\\b(init|catch|finally|field)\\b",name:"keyword.soft.kotlin"},string:{begin:'(?<([^<>]|\\g)+>)?"},"type-annotation":{captures:{0:{patterns:[{include:"#type-parameter"}]}},match:`(?|(?[<(]([^<>()"']|\\g)+[)>]))+`},"type-parameter":{patterns:[{match:"\\b\\w+\\b",name:"entity.name.type.kotlin"},{match:"\\b(in|out)\\b",name:"storage.modifier.kotlin"}]},"unescaped-annotation":{match:"\\b[\\w\\.]+\\b",name:"entity.name.type.annotation.kotlin"},"variable-declaration":{captures:{1:{name:"keyword.hard.kotlin"},2:{patterns:[{include:"#type-parameter"}]}},match:"\\b(val|var)\\b\\s*(?<([^<>]|\\g)+>)?"}},scopeName:"source.kotlin"},go:{displayName:"Go",name:"go",patterns:[{include:"#statements"}],repository:{after_control_variables:{captures:{1:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"(?:\\w+)",name:"variable.other.go"}]}},comment:"After control variables, to not highlight as a struct/interface (before formatting with gofmt)",match:"(?:(?<=\\brange\\b|\\bswitch\\b|\\;|\\bif\\b|\\bfor\\b|<|>|<=|>=|==|!=|\\w(?:\\+|/|-|\\*|\\%)|\\w(?:\\+|/|-|\\*|\\%)=|\\|\\||\\&\\&)(?:\\s*)((?![\\[\\]]+)[0-9A-Za-z\\-_!\\.\\[\\]<>=\\*/+\\%:]+)(?:\\s*)(?=\\{))"},brackets:{patterns:[{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.curly.go"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"$self"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"$self"}]},{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"$self"}]}]},built_in_functions:{comment:"Built-in functions",patterns:[{match:"\\b(append|cap|close|complex|copy|delete|imag|len|panic|print|println|real|recover|min|max|clear)\\b(?=\\()",name:"entity.name.function.support.builtin.go"},{begin:"(?:(\\bnew\\b)(\\())",beginCaptures:{1:{name:"entity.name.function.support.builtin.go"},2:{name:"punctuation.definition.begin.bracket.round.go"}},comment:"new keyword",end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#functions"},{include:"#struct_variables_types"},{include:"#type-declarations"},{include:"#generic_types"},{match:"(?:\\w+)",name:"entity.name.type.go"},{include:"$self"}]},{begin:"(?:(\\bmake\\b)(?:(\\()((?:(?:(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+(?:\\([^)]+\\))?)?(?:[\\[\\]\\*]+)?(?:(?!\\bmap\\b)(?:[\\w\\.]+))?(\\[(?:(?:[\\S]+)(?:(?:\\,\\s*(?:[\\S]+))*))?\\])?(?:\\,)?)?))",beginCaptures:{1:{name:"entity.name.function.support.builtin.go"},2:{name:"punctuation.definition.begin.bracket.round.go"},3:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"\\w+",name:"entity.name.type.go"}]}},comment:"make keyword",end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"$self"}]}]},comments:{patterns:[{begin:"(\\/\\*)",beginCaptures:{1:{name:"punctuation.definition.comment.go"}},end:"(\\*\\/)",endCaptures:{1:{name:"punctuation.definition.comment.go"}},name:"comment.block.go"},{begin:"(\\/\\/)",beginCaptures:{1:{name:"punctuation.definition.comment.go"}},end:"(?:\\n|$)",name:"comment.line.double-slash.go"}]},delimiters:{patterns:[{match:"\\,",name:"punctuation.other.comma.go"},{match:"\\.(?!\\.\\.)",name:"punctuation.other.period.go"},{match:":(?!=)",name:"punctuation.other.colon.go"}]},double_parentheses_types:{captures:{1:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},comment:"double parentheses types",match:"(?:(?\\-]+(?:\\s*)(?:\\/(?:\\/|\\*).*)?)$)"},{include:"$self"}]},function_param_types:{comment:"function parameter variables and types",patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},comment:"struct/interface type declaration",match:"((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b\\s*\\{)"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},comment:"multiple parameters one type -with multilines",match:"(?:(?:(?<=\\()|^\\s*)((?:(?:\\b\\w+\\,\\s*)+)(?:/(?:/|\\*).*)?)$)"},{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.parameter.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"multiple params and types | multiple params one type | one param one type",match:"(?:((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)(?:\\s+)((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:(?:(?:[\\w\\[\\]\\.\\*]+)?(?:(?:\\bfunc\\b\\((?:[^)]+)?\\))(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:\\s*))+(?:(?:(?:[\\w\\*\\.\\[\\]]+)|(?:\\((?:[^)]+)?\\))))?)|(?:(?:[\\[\\]\\*]+)?[\\w\\*\\.]+(?:\\[(?:[^\\]]+)\\])?(?:[\\w\\.\\*]+)?)+)))"},{include:"#parameter-variable-types"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"other types",match:"([\\w\\.]+)"},{include:"$self"}]},functions:{begin:"(?:(\\bfunc\\b)(?=\\())",beginCaptures:{1:{name:"keyword.function.go"}},comment:"Functions",end:"(?:(?<=\\))(\\s*(?:(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?((?:(?:\\s*(?:(?:[\\[\\]\\*]+)?[\\w\\.\\*]+)?(?:(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\])|(?:\\((?:[^)]+)?\\)))?(?:[\\w\\.\\*]+)?)(?:\\s*)(?=\\{))|(?:\\s*(?:(?:(?:[\\[\\]\\*]+)?(?!\\bfunc\\b)(?:[\\w\\.\\*]+)(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\])?(?:[\\w\\.\\*]+)?)|(?:\\((?:[^)]+)?\\)))))?)",endCaptures:{1:{patterns:[{include:"#type-declarations"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},patterns:[{include:"#parameter-variable-types"}]},functions_inline:{captures:{1:{name:"keyword.function.go"},2:{patterns:[{include:"#type-declarations-without-brackets"},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"},{include:"$self"}]},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\{",name:"punctuation.definition.begin.bracket.curly.go"},{match:"\\}",name:"punctuation.definition.end.bracket.curly.go"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"functions in-line with multi return types",match:"(?:(\\bfunc\\b)((?:\\((?:[^/]*?)\\))(?:\\s+)(?:\\((?:[^/]*?)\\)))(?:\\s+)(?=\\{))"},generic_param_types:{comment:"generic parameter variables and types",patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},comment:"struct/interface type declaration",match:"((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b\\s*\\{)"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},comment:"multiple parameters one type -with multilines",match:"(?:(?:(?<=\\()|^\\s*)((?:(?:\\b\\w+\\,\\s*)+)(?:/(?:/|\\*).*)?)$)"},{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.parameter.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},3:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"multiple params and types | multiple types one param",match:"(?:((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)(?:\\s+)((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:(?:(?:[\\w\\[\\]\\.\\*]+)?(?:(?:\\bfunc\\b\\((?:[^)]+)?\\))(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:\\s*))+(?:(?:(?:[\\w\\*\\.]+)|(?:\\((?:[^)]+)?\\))))?)|(?:(?:(?:[\\w\\*\\.\\~]+)|(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\]))(?:[\\w\\.\\*]+)?)+)))"},{include:"#parameter-variable-types"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"other types",match:"(?:\\b([\\w\\.]+))"},{include:"$self"}]},generic_types:{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},2:{patterns:[{include:"#parameter-variable-types"}]}},comment:"Generic support for all types",match:"(?:([\\w\\.\\*]+)(\\[(?:[^\\]]+)?\\]))"},"group-functions":{comment:"all statements related to functions",patterns:[{include:"#function_declaration"},{include:"#functions_inline"},{include:"#functions"},{include:"#built_in_functions"},{include:"#support_functions"}]},"group-types":{comment:"all statements related to types",patterns:[{include:"#other_struct_interface_expressions"},{include:"#type_assertion_inline"},{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#single_type"},{include:"#multi_types"},{include:"#struct_interface_declaration"},{include:"#double_parentheses_types"},{include:"#switch_types"},{include:"#type-declarations"}]},"group-variables":{comment:"all statements related to variables",patterns:[{include:"#var_const_assignment"},{include:"#variable_assignment"},{include:"#label_loop_variables"},{include:"#slice_index_variables"},{include:"#property_variables"},{include:"#switch_select_case_variables"},{include:"#other_variables"}]},import:{comment:"import",patterns:[{begin:"\\b(import)\\s+",beginCaptures:{1:{name:"keyword.control.import.go"}},comment:"import",end:"(?!\\G)",patterns:[{include:"#imports"}]}]},imports:{comment:"import package(s)",patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"(?:\\w+)",name:"variable.other.import.go"}]},2:{name:"string.quoted.double.go"},3:{name:"punctuation.definition.string.begin.go"},4:{name:"entity.name.import.go"},5:{name:"punctuation.definition.string.end.go"}},match:'(\\s*[\\w\\.]+)?\\s*((")([^"]*)("))'},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.imports.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.imports.end.bracket.round.go"}},patterns:[{include:"#comments"},{include:"#imports"}]},{include:"$self"}]},interface_variables_types:{begin:"(\\binterface\\b)\\s*(\\{)",beginCaptures:{1:{name:"keyword.interface.go"},2:{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"interface variable types",end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#interface_variables_types_field"},{include:"$self"}]},interface_variables_types_field:{comment:"interface variable type fields",patterns:[{include:"#support_functions"},{include:"#type-declarations-without-brackets"},{begin:"(?:([\\w\\.\\*]+)?(\\[))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},2:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]}},comment:"other types",match:"([\\w\\.]+)"}]},keywords:{patterns:[{comment:"Flow control keywords",match:"\\b(break|case|continue|default|defer|else|fallthrough|for|go|goto|if|range|return|select|switch)\\b",name:"keyword.control.go"},{match:"\\bchan\\b",name:"keyword.channel.go"},{match:"\\bconst\\b",name:"keyword.const.go"},{match:"\\bvar\\b",name:"keyword.var.go"},{match:"\\bfunc\\b",name:"keyword.function.go"},{match:"\\binterface\\b",name:"keyword.interface.go"},{match:"\\bmap\\b",name:"keyword.map.go"},{match:"\\bstruct\\b",name:"keyword.struct.go"},{match:"\\bimport\\b",name:"keyword.control.import.go"},{match:"\\btype\\b",name:"keyword.type.go"}]},label_loop_variables:{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.label.go"}]}},comment:"labeled loop variable name",match:"((?:^\\s*\\w+:\\s*$)|(?:^\\s*(?:\\bbreak\\b|\\bgoto\\b|\\bcontinue\\b)\\s+\\w+(?:\\s*/(?:/|\\*)\\s*.*)?$))"},language_constants:{captures:{1:{name:"constant.language.boolean.go"},2:{name:"constant.language.null.go"},3:{name:"constant.language.iota.go"}},comment:"Language constants",match:"\\b(?:(true|false)|(nil)|(iota))\\b"},map_types:{begin:"(?:(\\bmap\\b)(\\[))",beginCaptures:{1:{name:"keyword.map.go"},2:{name:"punctuation.definition.begin.bracket.square.go"}},comment:"map types",end:"(?:(\\])((?:(?:(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?!(?:[\\[\\]\\*]+)?\\b(?:func|struct|map)\\b)(?:[\\*\\[\\]]+)?(?:[\\w\\.]+)(?:\\[(?:(?:[\\w\\.\\*\\[\\]{}]+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]{}]+))*))?\\])?)?)",endCaptures:{1:{name:"punctuation.definition.end.bracket.square.go"},2:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{include:"#functions"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\{",name:"punctuation.definition.begin.bracket.curly.go"},{match:"\\}",name:"punctuation.definition.end.bracket.curly.go"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\w+",name:"entity.name.type.go"}]},multi_types:{begin:"(\\btype\\b)\\s*(\\()",beginCaptures:{1:{name:"keyword.type.go"},2:{name:"punctuation.definition.begin.bracket.round.go"}},comment:"multi type declaration",end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},numeric_literals:{captures:{0:{patterns:[{begin:"(?=.)",end:"(?:\\n|$)",patterns:[{captures:{1:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},2:{name:"punctuation.separator.constant.numeric.go"},3:{name:"constant.numeric.decimal.point.go"},4:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},5:{name:"punctuation.separator.constant.numeric.go"},6:{name:"keyword.other.unit.exponent.decimal.go"},7:{name:"keyword.operator.plus.exponent.decimal.go"},8:{name:"keyword.operator.minus.exponent.decimal.go"},9:{name:"constant.numeric.exponent.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},10:{name:"keyword.other.unit.imaginary.go"},11:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},12:{name:"punctuation.separator.constant.numeric.go"},13:{name:"keyword.other.unit.exponent.decimal.go"},14:{name:"keyword.operator.plus.exponent.decimal.go"},15:{name:"keyword.operator.minus.exponent.decimal.go"},16:{name:"constant.numeric.exponent.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},17:{name:"keyword.other.unit.imaginary.go"},18:{name:"constant.numeric.decimal.point.go"},19:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},20:{name:"punctuation.separator.constant.numeric.go"},21:{name:"keyword.other.unit.exponent.decimal.go"},22:{name:"keyword.operator.plus.exponent.decimal.go"},23:{name:"keyword.operator.minus.exponent.decimal.go"},24:{name:"constant.numeric.exponent.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},25:{name:"keyword.other.unit.imaginary.go"},26:{name:"keyword.other.unit.hexadecimal.go"},27:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},28:{name:"punctuation.separator.constant.numeric.go"},29:{name:"constant.numeric.hexadecimal.go"},30:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},31:{name:"punctuation.separator.constant.numeric.go"},32:{name:"keyword.other.unit.exponent.hexadecimal.go"},33:{name:"keyword.operator.plus.exponent.hexadecimal.go"},34:{name:"keyword.operator.minus.exponent.hexadecimal.go"},35:{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},36:{name:"keyword.other.unit.imaginary.go"},37:{name:"keyword.other.unit.hexadecimal.go"},38:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},39:{name:"punctuation.separator.constant.numeric.go"},40:{name:"keyword.other.unit.exponent.hexadecimal.go"},41:{name:"keyword.operator.plus.exponent.hexadecimal.go"},42:{name:"keyword.operator.minus.exponent.hexadecimal.go"},43:{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},44:{name:"keyword.other.unit.imaginary.go"},45:{name:"keyword.other.unit.hexadecimal.go"},46:{name:"constant.numeric.hexadecimal.go"},47:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},48:{name:"punctuation.separator.constant.numeric.go"},49:{name:"keyword.other.unit.exponent.hexadecimal.go"},50:{name:"keyword.operator.plus.exponent.hexadecimal.go"},51:{name:"keyword.operator.minus.exponent.hexadecimal.go"},52:{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},53:{name:"keyword.other.unit.imaginary.go"}},match:"(?:(?:(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])(\\d(?:\\d|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=\\d)\\.|\\.(?=\\d)))(\\d(?:\\d|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?:(?=|<(?!<)|>(?!>))",name:"keyword.operator.comparison.go"},{match:"(&&|\\|\\||!)",name:"keyword.operator.logical.go"},{match:"(=|\\+=|-=|\\|=|\\^=|\\*=|/=|:=|%=|<<=|>>=|&\\^=|&=)",name:"keyword.operator.assignment.go"},{match:"(\\+|-|\\*|/|%)",name:"keyword.operator.arithmetic.go"},{match:"(&(?!\\^)|\\||\\^|&\\^|<<|>>|\\~)",name:"keyword.operator.arithmetic.bitwise.go"},{match:"\\.\\.\\.",name:"keyword.operator.ellipsis.go"}]},other_struct_interface_expressions:{comment:"struct and interface expression in-line (before curly bracket)",patterns:[{comment:"after control variables must be added exactly here, do not move it! (changing may not affect tests, so be careful!)",include:"#after_control_variables"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},2:{patterns:[{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"},{include:"$self"}]}]}},match:"(\\b[\\w\\.]+)(\\[(?:[^\\]]+)?\\])?(?=\\{)(?\\|\\&]+:)|(?::\\b[\\w\\.\\*+/\\-\\%<>\\|\\&]+))(?:\\b[\\w\\.\\*+/\\-\\%<>\\|\\&]+)?(?::\\b[\\w\\.\\*+/\\-\\%<>\\|\\&]+)?)(?=\\])"},statements:{patterns:[{include:"#package_name"},{include:"#import"},{include:"#syntax_errors"},{include:"#group-functions"},{include:"#group-types"},{include:"#group-variables"},{include:"#field_hover"}]},storage_types:{patterns:[{match:"\\bbool\\b",name:"storage.type.boolean.go"},{match:"\\bbyte\\b",name:"storage.type.byte.go"},{match:"\\berror\\b",name:"storage.type.error.go"},{match:"\\b(complex(64|128)|float(32|64)|u?int(8|16|32|64)?)\\b",name:"storage.type.numeric.go"},{match:"\\brune\\b",name:"storage.type.rune.go"},{match:"\\bstring\\b",name:"storage.type.string.go"},{match:"\\buintptr\\b",name:"storage.type.uintptr.go"},{match:"\\bany\\b",name:"entity.name.type.any.go"}]},string_escaped_char:{patterns:[{match:`\\\\([0-7]{3}|[abfnrtv\\\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})`,name:"constant.character.escape.go"},{match:`\\\\[^0-7xuUabfnrtv\\'"]`,name:"invalid.illegal.unknown-escape.go"}]},string_literals:{patterns:[{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.go"}},comment:"Interpreted string literals",end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.go"}},name:"string.quoted.double.go",patterns:[{include:"#string_escaped_char"},{include:"#string_placeholder"}]}]},string_placeholder:{patterns:[{match:"%(\\[\\d+\\])?([+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGspw]",name:"constant.other.placeholder.go"}]},struct_interface_declaration:{captures:{1:{name:"keyword.type.go"},2:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]}},comment:"struct, interface type declarations (related to: struct_variables_types, interface_variables_types)",match:"(?:(?:^\\s*)(\\btype\\b)(?:\\s*)([\\w\\.]+))"},struct_variable_types_fields_multi:{comment:"struct variable and type fields with multi lines",patterns:[{begin:"(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bstruct\\b)(?:\\s*)(\\{))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.property.go"}]},2:{name:"keyword.struct.go"},3:{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"struct in struct types",end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#struct_variables_types_fields"},{include:"$self"}]},{begin:"(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\binterface\\b)(?:\\s*)(\\{))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.property.go"}]},2:{name:"keyword.interface.go"},3:{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"interface in struct types",end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#interface_variables_types_field"},{include:"$self"}]},{begin:"(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bfunc\\b)(?:\\s*)(\\())",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.property.go"}]},2:{name:"keyword.function.go"},3:{name:"punctuation.definition.begin.bracket.round.go"}},comment:"function in struct types",end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"},{include:"$self"}]},{include:"#parameter-variable-types"}]},struct_variables_types:{begin:"(\\bstruct\\b)\\s*(\\{)",beginCaptures:{1:{name:"keyword.struct.go"},2:{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"Struct variable type",end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#struct_variables_types_fields"},{include:"$self"}]},struct_variables_types_fields:{comment:"Struct variable type fields",patterns:[{include:"#struct_variable_types_fields_multi"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"one line - single type",match:"(?:(?<=\\{)\\s*((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]]+))\\s*(?=\\}))"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"variable.other.property.go"}]},2:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"one line - property variables and types",match:"(?:(?<=\\{)\\s*((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]]+))\\s*(?=\\}))"},{captures:{1:{patterns:[{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"variable.other.property.go"}]},2:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:[\\S]+)(?:\\;)?))"}]}},comment:"one line with semicolon(;) without formatting gofmt - single type | property variables and types",match:"(?:(?<=\\{)((?:\\s*(?:(?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?(?:(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:[\\S]+)(?:\\;)?))+)\\s*(?=\\}))"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"one type only",match:'(?:((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?(?:[\\w\\.\\*]+)\\s*)(?:(?=\\`|\\/|")|$))'},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"variable.other.property.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"property variables and types",match:'(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))([^\\`"\\/]+))'}]},support_functions:{captures:{1:{name:"entity.name.function.support.go"},2:{patterns:[{include:"#type-declarations"},{match:"\\d\\w*",name:"invalid.illegal.identifier.go"},{match:"\\w+",name:"entity.name.function.support.go"}]},3:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\{",name:"punctuation.definition.begin.bracket.curly.go"},{match:"\\}",name:"punctuation.definition.end.bracket.curly.go"},{match:"\\w+",name:"entity.name.type.go"}]}},comment:"Support Functions",match:`(?:(?:((?<=\\.)\\b\\w+)|(\\b\\w+))(\\[(?:(?:[\\w\\.\\*\\[\\]{}"\\']+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]{}]+))*))?\\])?(?=\\())`},switch_select_case_variables:{captures:{1:{name:"keyword.control.go"},2:{patterns:[{include:"#type-declarations"},{include:"#support_functions"},{include:"#variable_assignment"},{match:"\\w+",name:"variable.other.go"}]}},comment:"variables after case control keyword in switch/select expression, to not scope them as property variables",match:"(?:(?:^\\s*(\\bcase\\b))(?:\\s+)([\\s\\S]+(?::)\\s*(?:/(?:/|\\*).*)?)$)"},switch_types:{begin:"(?<=\\bswitch\\b)(?:\\s*)(?:(\\w+\\s*:=)?\\s*([\\w\\.\\*()\\[\\]+/\\-\\%<>\\|\\&]+))(\\.\\(\\btype\\b\\)\\s*)(\\{)",beginCaptures:{1:{patterns:[{include:"#operators"},{match:"\\w+",name:"variable.other.assignment.go"}]},2:{patterns:[{include:"#support_functions"},{include:"#type-declarations"},{match:"\\w+",name:"variable.other.go"}]},3:{patterns:[{include:"#delimiters"},{include:"#brackets"},{match:"\\btype\\b",name:"keyword.type.go"}]},4:{name:"punctuation.definition.begin.bracket.curly.go"}},comment:"switch type assertions, only highlights types after case keyword",end:"(?:\\})",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{captures:{1:{name:"keyword.control.go"},2:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},3:{name:"punctuation.other.colon.go"},4:{patterns:[{include:"#comments"}]}},comment:"types after case keyword with single line",match:"(?:^\\s*(\\bcase\\b))(?:\\s+)([\\w\\.\\,\\*=<>!\\s]+)(:)(\\s*/(?:/|\\*)\\s*.*)?$"},{begin:"\\bcase\\b",beginCaptures:{0:{name:"keyword.control.go"}},comment:"types after case keyword with multi lines",end:":",endCaptures:{0:{name:"punctuation.other.colon.go"}},patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},{include:"$self"}]},syntax_errors:{patterns:[{captures:{1:{name:"invalid.illegal.slice.go"}},comment:"Syntax error using slices",match:"\\[\\](\\s+)"},{comment:"Syntax error numeric literals",match:"\\b0[0-7]*[89]\\d*\\b",name:"invalid.illegal.numeric.go"}]},terminators:{comment:"Terminators",match:";",name:"punctuation.terminator.go"},"type-declarations":{comment:"includes all type declarations",patterns:[{include:"#language_constants"},{include:"#comments"},{include:"#map_types"},{include:"#brackets"},{include:"#delimiters"},{include:"#keywords"},{include:"#operators"},{include:"#runes"},{include:"#storage_types"},{include:"#raw_string_literals"},{include:"#string_literals"},{include:"#numeric_literals"},{include:"#terminators"}]},"type-declarations-without-brackets":{comment:"includes all type declarations without brackets (in some cases, brackets need to be captured manually)",patterns:[{include:"#language_constants"},{include:"#comments"},{include:"#map_types"},{include:"#delimiters"},{include:"#keywords"},{include:"#operators"},{include:"#runes"},{include:"#storage_types"},{include:"#raw_string_literals"},{include:"#string_literals"},{include:"#numeric_literals"},{include:"#terminators"}]},type_assertion_inline:{captures:{1:{name:"keyword.type.go"},2:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},comment:"struct/interface types in-line (type assertion) | switch type keyword",match:"(?:(?<=\\.\\()(?:(\\btype\\b)|((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+)?[\\w\\.\\[\\]\\*]+))(?=\\)))"},var_const_assignment:{comment:"variable assignment with var and const keyword",patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.other.assignment.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},comment:"var and const with single type assignment",match:"(?:(?<=\\bvar\\b|\\bconst\\b)(?:\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+(?:\\([^)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:=)?)?)"},{begin:"(?:(?<=\\bvar\\b|\\bconst\\b)(?:\\s*)(\\())",beginCaptures:{1:{name:"punctuation.definition.begin.bracket.round.go"}},comment:"var and const with multi type assignment",end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.other.assignment.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"(?:(?:^\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:<-\\s*)?\\bchan\\b(?:\\s*<-)?\\s*)+(?:\\([^)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:=)?)?)"},{include:"$self"}]}]},variable_assignment:{comment:"variable assignment",patterns:[{captures:{0:{patterns:[{include:"#delimiters"},{match:"\\d\\w*",name:"invalid.illegal.identifier.go"},{match:"\\w+",name:"variable.other.assignment.go"}]}},comment:"variable assignment with :=",match:"\\b\\w+(?:\\,\\s*\\w+)*(?=\\s*:=)"},{captures:{0:{patterns:[{include:"#delimiters"},{include:"#operators"},{match:"\\d\\w*",name:"invalid.illegal.identifier.go"},{match:"\\w+",name:"variable.other.assignment.go"}]}},comment:"variable assignment with =",match:"\\b[\\w\\.\\*]+(?:\\,\\s*[\\w\\.\\*]+)*(?=\\s*=(?!=))"}]}},scopeName:"source.go"},rust:{displayName:"Rust",name:"rust",patterns:[{begin:"(<)(\\[)",beginCaptures:{1:{name:"punctuation.brackets.angle.rust"},2:{name:"punctuation.brackets.square.rust"}},comment:"boxed slice literal",end:">",endCaptures:{0:{name:"punctuation.brackets.angle.rust"}},patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#gtypes"},{include:"#lvariables"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#types"}]},{captures:{1:{name:"keyword.operator.macro.dollar.rust"},3:{name:"keyword.other.crate.rust"},4:{name:"entity.name.type.metavariable.rust"},6:{name:"keyword.operator.key-value.rust"},7:{name:"variable.other.metavariable.specifier.rust"}},comment:"macro type metavariables",match:"(\\$)((crate)|([A-Z][A-Za-z0-9_]*))((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?",name:"meta.macro.metavariable.type.rust",patterns:[{include:"#keywords"}]},{captures:{1:{name:"keyword.operator.macro.dollar.rust"},2:{name:"variable.other.metavariable.name.rust"},4:{name:"keyword.operator.key-value.rust"},5:{name:"variable.other.metavariable.specifier.rust"}},comment:"macro metavariables",match:"(\\$)([a-z][A-Za-z0-9_]*)((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?",name:"meta.macro.metavariable.rust",patterns:[{include:"#keywords"}]},{captures:{1:{name:"entity.name.function.macro.rules.rust"},3:{name:"entity.name.function.macro.rust"},4:{name:"entity.name.type.macro.rust"},5:{name:"punctuation.brackets.curly.rust"}},comment:"macro rules",match:"\\b(macro_rules!)\\s+(([a-z0-9_]+)|([A-Z][a-z0-9_]*))\\s+(\\{)",name:"meta.macro.rules.rust"},{captures:{1:{name:"storage.type.rust"},2:{name:"entity.name.module.rust"}},comment:"modules",match:"(mod)\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][A-Za-z0-9_]*)"},{begin:"\\b(extern)\\s+(crate)",beginCaptures:{1:{name:"storage.type.rust"},2:{name:"keyword.other.crate.rust"}},comment:"external crate imports",end:";",endCaptures:{0:{name:"punctuation.semi.rust"}},name:"meta.import.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#punctuation"}]},{begin:"\\b(use)\\s",beginCaptures:{1:{name:"keyword.other.rust"}},comment:"use statements",end:";",endCaptures:{0:{name:"punctuation.semi.rust"}},name:"meta.use.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#namespaces"},{include:"#punctuation"},{include:"#types"},{include:"#lvariables"}]},{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#types"},{include:"#keywords"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#variables"}],repository:{attributes:{begin:"(#)(!?)(\\[)",beginCaptures:{1:{name:"punctuation.definition.attribute.rust"},3:{name:"punctuation.brackets.attribute.rust"}},comment:"attributes",end:"\\]",endCaptures:{0:{name:"punctuation.brackets.attribute.rust"}},name:"meta.attribute.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#strings"},{include:"#gtypes"},{include:"#types"}]},"block-comments":{patterns:[{comment:"empty block comments",match:"/\\*\\*/",name:"comment.block.rust"},{begin:"/\\*\\*",comment:"block documentation comments",end:"\\*/",name:"comment.block.documentation.rust",patterns:[{include:"#block-comments"}]},{begin:"/\\*(?!\\*)",comment:"block comments",end:"\\*/",name:"comment.block.rust",patterns:[{include:"#block-comments"}]}]},comments:{patterns:[{captures:{1:{name:"punctuation.definition.comment.rust"}},comment:"documentation comments",match:"(///).*$",name:"comment.line.documentation.rust"},{captures:{1:{name:"punctuation.definition.comment.rust"}},comment:"line comments",match:"(//).*$",name:"comment.line.double-slash.rust"}]},constants:{patterns:[{comment:"ALL CAPS constants",match:"\\b[A-Z]{2}[A-Z0-9_]*\\b",name:"constant.other.caps.rust"},{captures:{1:{name:"storage.type.rust"},2:{name:"constant.other.caps.rust"}},comment:"constant declarations",match:"\\b(const)\\s+([A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"punctuation.separator.dot.decimal.rust"},2:{name:"keyword.operator.exponent.rust"},3:{name:"keyword.operator.exponent.sign.rust"},4:{name:"constant.numeric.decimal.exponent.mantissa.rust"},5:{name:"entity.name.type.numeric.rust"}},comment:"decimal integers and floats",match:"\\b\\d[\\d_]*(\\.?)[\\d_]*(?:(E|e)([+-]?)([\\d_]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.decimal.rust"},{captures:{1:{name:"entity.name.type.numeric.rust"}},comment:"hexadecimal integers",match:"\\b0x[\\da-fA-F_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.hex.rust"},{captures:{1:{name:"entity.name.type.numeric.rust"}},comment:"octal integers",match:"\\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.oct.rust"},{captures:{1:{name:"entity.name.type.numeric.rust"}},comment:"binary integers",match:"\\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.bin.rust"},{comment:"booleans",match:"\\b(true|false)\\b",name:"constant.language.bool.rust"}]},escapes:{captures:{1:{name:"constant.character.escape.backslash.rust"},2:{name:"constant.character.escape.bit.rust"},3:{name:"constant.character.escape.unicode.rust"},4:{name:"constant.character.escape.unicode.punctuation.rust"},5:{name:"constant.character.escape.unicode.punctuation.rust"}},comment:"escapes: ASCII, byte, Unicode, quote, regex",match:"(\\\\)(?:(?:(x[0-7][\\da-fA-F])|(u(\\{)[\\da-fA-F]{4,6}(\\}))|.))",name:"constant.character.escape.rust"},functions:{patterns:[{captures:{1:{name:"keyword.other.rust"},2:{name:"punctuation.brackets.round.rust"}},comment:"pub as a function",match:"\\b(pub)(\\()"},{begin:"\\b(fn)\\s+((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)((\\()|(<))",beginCaptures:{1:{name:"keyword.other.fn.rust"},2:{name:"entity.name.function.rust"},4:{name:"punctuation.brackets.round.rust"},5:{name:"punctuation.brackets.angle.rust"}},comment:"function definition",end:"(\\{)|(;)",endCaptures:{1:{name:"punctuation.brackets.curly.rust"},2:{name:"punctuation.semi.rust"}},name:"meta.function.definition.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]},{begin:"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(\\()",beginCaptures:{1:{name:"entity.name.function.rust"},2:{name:"punctuation.brackets.round.rust"}},comment:"function/method calls, chaining",end:"\\)",endCaptures:{0:{name:"punctuation.brackets.round.rust"}},name:"meta.function.call.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]},{begin:"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(?=::<.*>\\()",beginCaptures:{1:{name:"entity.name.function.rust"}},comment:"function/method calls with turbofish",end:"\\)",endCaptures:{0:{name:"punctuation.brackets.round.rust"}},name:"meta.function.call.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]}]},gtypes:{patterns:[{comment:"option types",match:"\\b(Some|None)\\b",name:"entity.name.type.option.rust"},{comment:"result types",match:"\\b(Ok|Err)\\b",name:"entity.name.type.result.rust"}]},interpolations:{captures:{1:{name:"punctuation.definition.interpolation.rust"},2:{name:"punctuation.definition.interpolation.rust"}},comment:"curly brace interpolations",match:'({)[^"{}]*(})',name:"meta.interpolation.rust"},keywords:{patterns:[{comment:"control flow keywords",match:"\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\b",name:"keyword.control.rust"},{comment:"storage keywords",match:"\\b(extern|let|macro|mod)\\b",name:"keyword.other.rust storage.type.rust"},{comment:"const keyword",match:"\\b(const)\\b",name:"storage.modifier.rust"},{comment:"type keyword",match:"\\b(type)\\b",name:"keyword.declaration.type.rust storage.type.rust"},{comment:"enum keyword",match:"\\b(enum)\\b",name:"keyword.declaration.enum.rust storage.type.rust"},{comment:"trait keyword",match:"\\b(trait)\\b",name:"keyword.declaration.trait.rust storage.type.rust"},{comment:"struct keyword",match:"\\b(struct)\\b",name:"keyword.declaration.struct.rust storage.type.rust"},{comment:"storage modifiers",match:"\\b(abstract|static)\\b",name:"storage.modifier.rust"},{comment:"other keywords",match:"\\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\b",name:"keyword.other.rust"},{comment:"fn",match:"\\bfn\\b",name:"keyword.other.fn.rust"},{comment:"crate",match:"\\bcrate\\b",name:"keyword.other.crate.rust"},{comment:"mut",match:"\\bmut\\b",name:"storage.modifier.mut.rust"},{comment:"logical operators",match:"(\\^|\\||\\|\\||&&|<<|>>|!)(?!=)",name:"keyword.operator.logical.rust"},{comment:"logical AND, borrow references",match:"&(?![&=])",name:"keyword.operator.borrow.and.rust"},{comment:"assignment operators",match:"(\\+=|-=|\\*=|/=|%=|\\^=|&=|\\|=|<<=|>>=)",name:"keyword.operator.assignment.rust"},{comment:"single equal",match:"(?])=(?!=|>)",name:"keyword.operator.assignment.equal.rust"},{comment:"comparison operators",match:"(=(=)?(?!>)|!=|<=|(?=)",name:"keyword.operator.comparison.rust"},{comment:"math operators",match:"(([+%]|(\\*(?!\\w)))(?!=))|(-(?!>))|(/(?!/))",name:"keyword.operator.math.rust"},{captures:{1:{name:"punctuation.brackets.round.rust"},2:{name:"punctuation.brackets.square.rust"},3:{name:"punctuation.brackets.curly.rust"},4:{name:"keyword.operator.comparison.rust"},5:{name:"punctuation.brackets.round.rust"},6:{name:"punctuation.brackets.square.rust"},7:{name:"punctuation.brackets.curly.rust"}},comment:"less than, greater than (special case)",match:"(?:\\b|(?:(\\))|(\\])|(\\})))[ \\t]+([<>])[ \\t]+(?:\\b|(?:(\\()|(\\[)|(\\{)))"},{comment:"namespace operator",match:"::",name:"keyword.operator.namespace.rust"},{captures:{1:{name:"keyword.operator.dereference.rust"}},comment:"dereference asterisk",match:"(\\*)(?=\\w+)"},{comment:"subpattern binding",match:"@",name:"keyword.operator.subpattern.rust"},{comment:"dot access",match:"\\.(?!\\.)",name:"keyword.operator.access.dot.rust"},{comment:"ranges, range patterns",match:"\\.{2}(=|\\.)?",name:"keyword.operator.range.rust"},{comment:"colon",match:":(?!:)",name:"keyword.operator.key-value.rust"},{comment:"dashrocket, skinny arrow",match:"->|<-",name:"keyword.operator.arrow.skinny.rust"},{comment:"hashrocket, fat arrow",match:"=>",name:"keyword.operator.arrow.fat.rust"},{comment:"dollar macros",match:"\\$",name:"keyword.operator.macro.dollar.rust"},{comment:"question mark operator, questionably sized, macro kleene matcher",match:"\\?",name:"keyword.operator.question.rust"}]},lifetimes:{patterns:[{captures:{1:{name:"punctuation.definition.lifetime.rust"},2:{name:"entity.name.type.lifetime.rust"}},comment:"named lifetime parameters",match:"(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b"},{captures:{1:{name:"keyword.operator.borrow.rust"},2:{name:"punctuation.definition.lifetime.rust"},3:{name:"entity.name.type.lifetime.rust"}},comment:"borrowing references to named lifetimes",match:"(\\&)(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b"}]},lvariables:{patterns:[{comment:"self",match:"\\b[Ss]elf\\b",name:"variable.language.self.rust"},{comment:"super",match:"\\bsuper\\b",name:"variable.language.super.rust"}]},macros:{patterns:[{captures:{2:{name:"entity.name.function.macro.rust"},3:{name:"entity.name.type.macro.rust"}},comment:"macros",match:"(([a-z_][A-Za-z0-9_]*!)|([A-Z_][A-Za-z0-9_]*!))",name:"meta.macro.rust"}]},namespaces:{patterns:[{captures:{1:{name:"entity.name.namespace.rust"},2:{name:"keyword.operator.namespace.rust"}},comment:"namespace (non-type, non-function path segment)",match:"(?]",name:"punctuation.brackets.angle.rust"}]},strings:{patterns:[{begin:'(b?)(")',beginCaptures:{1:{name:"string.quoted.byte.raw.rust"},2:{name:"punctuation.definition.string.rust"}},comment:"double-quoted strings and byte strings",end:'"',endCaptures:{0:{name:"punctuation.definition.string.rust"}},name:"string.quoted.double.rust",patterns:[{include:"#escapes"},{include:"#interpolations"}]},{begin:'(b?r)(#*)(")',beginCaptures:{1:{name:"string.quoted.byte.raw.rust"},2:{name:"punctuation.definition.string.raw.rust"},3:{name:"punctuation.definition.string.rust"}},comment:"double-quoted raw strings and raw byte strings",end:'(")(\\2)',endCaptures:{1:{name:"punctuation.definition.string.rust"},2:{name:"punctuation.definition.string.raw.rust"}},name:"string.quoted.double.rust"},{begin:"(b)?(')",beginCaptures:{1:{name:"string.quoted.byte.raw.rust"},2:{name:"punctuation.definition.char.rust"}},comment:"characters and bytes",end:"'",endCaptures:{0:{name:"punctuation.definition.char.rust"}},name:"string.quoted.single.char.rust",patterns:[{include:"#escapes"}]}]},types:{patterns:[{captures:{1:{name:"entity.name.type.numeric.rust"}},comment:"numeric types",match:"(?",endCaptures:{0:{name:"punctuation.brackets.angle.rust"}},patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lvariables"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#types"},{include:"#variables"}]},{comment:"primitive types",match:"\\b(bool|char|str)\\b",name:"entity.name.type.primitive.rust"},{captures:{1:{name:"keyword.declaration.trait.rust storage.type.rust"},2:{name:"entity.name.type.trait.rust"}},comment:"trait declarations",match:"\\b(trait)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"keyword.declaration.struct.rust storage.type.rust"},2:{name:"entity.name.type.struct.rust"}},comment:"struct declarations",match:"\\b(struct)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"keyword.declaration.enum.rust storage.type.rust"},2:{name:"entity.name.type.enum.rust"}},comment:"enum declarations",match:"\\b(enum)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"keyword.declaration.type.rust storage.type.rust"},2:{name:"entity.name.type.declaration.rust"}},comment:"type declarations",match:"\\b(type)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{comment:"types",match:"\\b_?[A-Z][A-Za-z0-9_]*\\b(?!!)",name:"entity.name.type.rust"}]},variables:{patterns:[{comment:"variables",match:"\\b(?n+(e-n%e)%e;async function Fn(n){let e,t;const r={};function a(p){t=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function o(p,g,h){r.HEAPU8.copyWithin(p,g,g+h)}function i(p){try{return e.grow(p-t.byteLength+65535>>>16),a(e.buffer),1}catch{}}function c(p){const g=r.HEAPU8.length;p=p>>>0;const h=Tn();if(p>h)return!1;for(let b=1;b<=4;b*=2){let w=g*(1+.2/b);w=Math.min(w,p+100663296);const y=Math.min(h,En(Math.max(p,w),65536));if(i(y))return!0}return!1}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function l(p,g,h=1024){const b=g+h;let w=g;for(;p[w]&&!(w>=b);)++w;if(w-g>16&&p.buffer&&s)return s.decode(p.subarray(g,w));let y="";for(;g>10,56320|x&1023)}}return y}function d(p,g){return p?l(r.HEAPU8,p,g):""}const u={emscripten_get_now:In,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function m(){const g=await n({env:u,wasi_snapshot_preview1:u});e=g.memory,a(e.buffer),Object.assign(r,g),r.UTF8ToString=d}return await m(),r}let P=null;function Ln(n){throw new Ve(n.UTF8ToString(n.getLastOnigError()))}class Ce{constructor(e){A(this,"utf16Length");A(this,"utf8Length");A(this,"utf16Value");A(this,"utf8Value");A(this,"utf16OffsetToUtf8");A(this,"utf8OffsetToUtf16");const t=e.length,r=Ce._utf8ByteLength(e),a=r!==t,o=a?new Uint32Array(t+1):null;a&&(o[t]=r);const i=a?new Uint32Array(r+1):null;a&&(i[r]=t);const c=new Uint8Array(r);let s=0;for(let l=0;l=55296&&d<=56319&&l+1=56320&&p<=57343&&(u=(d-55296<<10)+65536|p-56320,m=!0)}a&&(o[l]=s,m&&(o[l+1]=s),u<=127?i[s+0]=l:u<=2047?(i[s+0]=l,i[s+1]=l):u<=65535?(i[s+0]=l,i[s+1]=l,i[s+2]=l):(i[s+0]=l,i[s+1]=l,i[s+2]=l,i[s+3]=l)),u<=127?c[s++]=u:u<=2047?(c[s++]=192|(u&1984)>>>6,c[s++]=128|(u&63)>>>0):u<=65535?(c[s++]=224|(u&61440)>>>12,c[s++]=128|(u&4032)>>>6,c[s++]=128|(u&63)>>>0):(c[s++]=240|(u&1835008)>>>18,c[s++]=128|(u&258048)>>>12,c[s++]=128|(u&4032)>>>6,c[s++]=128|(u&63)>>>0),m&&l++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let r=0,a=e.length;r=55296&&o<=56319&&r+1=56320&&s<=57343&&(i=(o-55296<<10)+65536|s-56320,c=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,c&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const E=class E{constructor(e){A(this,"id",++E.LAST_ID);A(this,"_onigBinding");A(this,"content");A(this,"utf16Length");A(this,"utf8Length");A(this,"utf16OffsetToUtf8");A(this,"utf8OffsetToUtf16");A(this,"ptr");if(!P)throw new Ve("Must invoke loadWasm first.");this._onigBinding=P,this.content=e;const t=new Ce(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!E._sharedPtrInUse?(E._sharedPtr||(E._sharedPtr=P.omalloc(1e4)),E._sharedPtrInUse=!0,P.HEAPU8.set(t.utf8Value,E._sharedPtr),this.ptr=E._sharedPtr):this.ptr=t.createString(P)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===E._sharedPtr?E._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};A(E,"LAST_ID",0),A(E,"_sharedPtr",0),A(E,"_sharedPtrInUse",!1);let ge=E;class On{constructor(e){A(this,"_onigBinding");A(this,"_ptr");if(!P)throw new Ve("Must invoke loadWasm first.");const t=[],r=[];for(let c=0,s=e.length;c{let r=n;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),Mn(r)?r=await r.instantiator(t):Gn(r)?r=await r.default(t):($n(r)&&(r=r.data),Dn(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await qn(r)(t):r=await Hn(r)(t):Un(r)?r=await Pe(r)(t):r instanceof WebAssembly.Module?r=await Pe(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Pe(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ie=e(),ie}function Pe(n){return e=>WebAssembly.instantiate(n,e)}function qn(n){return e=>WebAssembly.instantiateStreaming(n,e)}function Hn(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let zn;function Wn(){return zn}async function Pt(n){return n&&await jn(n),{createScanner(e){return new On(e)},createString(e){return new ge(e)}}}function Vn(n){return Ze(n)}function Ze(n){return Array.isArray(n)?Zn(n):typeof n=="object"?Kn(n):n}function Zn(n){let e=[];for(let t=0,r=n.length;t{for(let r in t)n[r]=t[r]}),n}function Tt(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Tt(n.substring(0,n.length-1)):n.substr(~e+1)}var Ne=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,se=class{static hasCaptures(n){return n===null?!1:(Ne.lastIndex=0,Ne.test(n))}static replaceCaptures(n,e,t){return n.replace(Ne,(r,a,o,i)=>{let c=t[parseInt(a||o,10)];if(c){let s=e.substring(c.start,c.end);for(;s[0]===".";)s=s.substring(1);switch(i){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return r})}};function It(n,e){return ne?1:0}function Et(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,r=e.length;if(t===r){for(let a=0;athis._root.match(r))}static createFromRawTheme(n,e){return this.createFromParsedTheme(Qn(n),e)}static createFromParsedTheme(n,e){return er(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,r=this._cachedMatchRoot.get(e).find(a=>Yn(n.parent,a.parentScopes));return r?new Ot(r.fontStyle,r.foreground,r.background):null}},Te=class de{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new de(e,r);return e}static from(...e){let t=null;for(let r=0;r"){if(t===e.length-1)return!1;r=e[++t],a=!0}for(;n&&!Xn(n.scopeName,r);){if(a)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function Xn(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Ot=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Qn(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],r=0;for(let a=0,o=e.length;a1&&(b=g.slice(0,g.length-1),b.reverse()),t[r++]=new Jn(h,b,a,s,l,d)}}return t}var Jn=class{constructor(n,e,t,r,a,o){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=a,this.background=o}},$=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))($||{});function er(n,e){n.sort((s,l)=>{let d=It(s.scope,l.scope);return d!==0||(d=Et(s.parentScopes,l.parentScopes),d!==0)?d:s.index-l.index});let t=0,r="#000000",a="#ffffff";for(;n.length>=1&&n[0].scope==="";){let s=n.shift();s.fontStyle!==-1&&(t=s.fontStyle),s.foreground!==null&&(r=s.foreground),s.background!==null&&(a=s.background)}let o=new tr(e),i=new Ot(t,o.getId(r),o.getId(a)),c=new rr(new Oe(0,null,-1,0,0),[]);for(let s=0,l=n.length;se?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},rr=class Me{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,a=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[a]===">"&&a++,!(r>=e.parentScopes.length||a>=t.parentScopes.length);){const o=t.parentScopes[a].length-e.parentScopes[r].length;if(o!==0)return o;r++,a++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),a,o;if(r===-1?(a=e,o=""):(a=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Me._cmpBySpecificity),t}insert(e,t,r,a,o,i){if(t===""){this._doInsertHere(e,r,a,o,i);return}let c=t.indexOf("."),s,l;c===-1?(s=t,l=""):(s=t.substring(0,c),l=t.substring(c+1));let d;this._children.hasOwnProperty(s)?d=this._children[s]:(d=new Me(this._mainRule.clone(),Oe.cloneArr(this._rulesWithParentScopes)),this._children[s]=d),d.insert(e+1,l,r,a,o,i)}_doInsertHere(e,t,r,a,o){if(t===null){this._mainRule.acceptOverwrite(e,r,a,o);return}for(let i=0,c=this._rulesWithParentScopes.length;i>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,a,o,i,c){let s=L.getLanguageId(e),l=L.getTokenType(e),d=L.containsBalancedBrackets(e)?1:0,u=L.getFontStyle(e),m=L.getForeground(e),p=L.getBackground(e);return t!==0&&(s=t),r!==8&&(l=r),a!==null&&(d=a?1:0),o!==-1&&(u=o),i!==0&&(m=i),c!==0&&(p=c),(s<<0|l<<8|d<<10|u<<11|m<<15|p<<24)>>>0}};function he(n,e){const t=[],r=ar(n);let a=r.next();for(;a!==null;){let s=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let l=i();if(t.push({matcher:l,priority:s}),a!==",")break;a=r.next()}return t;function o(){if(a==="-"){a=r.next();const s=o();return l=>!!s&&!s(l)}if(a==="("){a=r.next();const s=c();return a===")"&&(a=r.next()),s}if(lt(a)){const s=[];do s.push(a),a=r.next();while(lt(a));return l=>e(s,l)}return null}function i(){const s=[];let l=o();for(;l;)s.push(l),l=o();return d=>s.every(u=>u(d))}function c(){const s=[];let l=i();for(;l&&(s.push(l),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");l=i()}return d=>s.some(u=>u(d))}}function lt(n){return!!n&&!!n.match(/[\w\.:]+/)}function ar(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(n),r}}}function Gt(n){typeof n.dispose=="function"&&n.dispose()}var te=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},or=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},ir=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},sr=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new te(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new ir;for(const t of n)cr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof te){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function cr(n,e,t,r){const a=t.lookup(n.scopeName);if(!a){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);n instanceof te?me({baseGrammar:o,selfGrammar:a},r):Ge(n.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const i=t.injections(n.scopeName);if(i)for(const c of i)r.add(new te(c))}function Ge(n,e,t){if(e.repository&&e.repository[n]){const r=e.repository[n];be([r],e,t)}}function me(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&be(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&be(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function be(n,e,t){for(const r of n){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const a=r.repository?Nt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&be(r.patterns,{...e,repository:a},t);const o=r.include;if(!o)continue;const i=$t(o);switch(i.kind){case 0:me({...e,selfGrammar:e.baseGrammar},t);break;case 1:me(e,t);break;case 2:Ge(i.ruleName,{...e,repository:a},t);break;case 3:case 4:const c=i.scopeName===e.selfGrammar.scopeName?e.selfGrammar:i.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const s={baseGrammar:e.baseGrammar,selfGrammar:c,repository:a};i.kind===4?Ge(i.ruleName,s,t):me(s,t)}else i.kind===4?t.add(new or(i.scopeName,i.ruleName)):t.add(new te(i.scopeName));break}}}var lr=class{constructor(){this.kind=0}},ur=class{constructor(){this.kind=1}},dr=class{constructor(n){this.ruleName=n,this.kind=2}},mr=class{constructor(n){this.scopeName=n,this.kind=3}},pr=class{constructor(n,e){this.scopeName=n,this.ruleName=e,this.kind=4}};function $t(n){if(n==="$base")return new lr;if(n==="$self")return new ur;const e=n.indexOf("#");if(e===-1)return new mr(n);if(e===0)return new dr(n.substring(1));{const t=n.substring(0,e),r=n.substring(e+1);return new pr(t,r)}}var gr=/\\(\d+)/,ut=/\\(\d+)/g,fr=-1,Dt=-2;var ae=class{constructor(n,e,t,r){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=se.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=se.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Tt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:se.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:se.replaceCaptures(this._contentName,n,e)}},hr=class extends ae{constructor(n,e,t,r,a){super(n,e,t,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,r){throw new Error("Not supported!")}},br=class extends ae{constructor(n,e,t,r,a){super(n,e,t,null),this._match=new ne(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new re,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dt=class extends ae{constructor(n,e,t,r,a){super(n,e,t,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new re,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},$e=class extends ae{constructor(n,e,t,r,a,o,i,c,s,l){super(n,e,t,r),this._begin=new ne(a,this.id),this.beginCaptures=o,this._end=new ne(i||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=s||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,r)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new re;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},ye=class extends ae{constructor(n,e,t,r,a,o,i,c,s){super(n,e,t,r),this._begin=new ne(a,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new ne(i,Dt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new re;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,r){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,r)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new re,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Ut=class T{static createCaptureRule(e,t,r,a,o){return e.registerRule(i=>new hr(t,i,r,a,o))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(a=>{if(e.id=a,e.match)return new br(e.$vscodeTextmateLocation,e.id,e.name,e.match,T._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=Nt({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new dt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,T._compilePatterns(o,t,r))}return e.while?new ye(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,T._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,T._compileCaptures(e.whileCaptures||e.captures,t,r),T._compilePatterns(e.patterns,t,r)):new $e(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,T._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,T._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,T._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let a=[];if(e){let o=0;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const c=parseInt(i,10);c>o&&(o=c)}for(let i=0;i<=o;i++)a[i]=null;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const c=parseInt(i,10);let s=0;e[i].patterns&&(s=T.getCompiledRuleId(e[i],t,r)),a[c]=T.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,s)}}return a}static _compilePatterns(e,t,r){let a=[];if(e)for(let o=0,i=e.length;oe.substring(a.start,a.end));return ut.lastIndex=0,this.source.replace(ut,(a,o)=>Ft(r[parseInt(o,10)]||""))}_buildAnchorCache(){let e=[],t=[],r=[],a=[],o,i,c,s;for(o=0,i=this.source.length;ot.source);this._cached=new mt(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let r=this._items.map(a=>a.resolveAnchors(e,t));return new mt(n,r,this._items.map(a=>a.ruleId))}},mt=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e{const a=this._scopeToLanguage(r),o=this._toStandardTokenType(r);return new De(a,o)}),this._defaultAttributes=new De(e,8),this._embeddedLanguagesMatcher=new kr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ue._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Ue.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};Ke._NULL_SCOPE_METADATA=new De(0,0);Ke.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var yr=Ke,kr=class{constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,r])=>Ft(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},pt=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function qt(n,e,t,r,a,o,i,c){const s=e.content.length;let l=!1,d=-1;if(i){const p=wr(n,e,t,r,a,o);a=p.stack,r=p.linePos,t=p.isFirstLine,d=p.anchorPosition}const u=Date.now();for(;!l;){if(c!==0&&Date.now()-u>c)return new pt(a,!0);m()}return new pt(a,!1);function m(){const p=_r(n,e,t,r,a,d);if(!p){o.produce(a,s),l=!0;return}const g=p.captureIndices,h=p.matchedRuleId,b=g&&g.length>0?g[0].end>r:!1;if(h===fr){const w=a.getRule(n);o.produce(a,g[0].start),a=a.withContentNameScopesList(a.nameScopesList),J(n,e,t,a,o,w.endCaptures,g),o.produce(a,g[0].end);const y=a;if(a=a.parent,d=y.getAnchorPos(),!b&&y.getEnterPos()===r){a=y,o.produce(a,s),l=!0;return}}else{const w=n.getRule(h);o.produce(a,g[0].start);const y=a,k=w.getName(e.content,g),v=a.contentNameScopesList.pushAttributed(k,n);if(a=a.push(h,r,d,g[0].end===s,null,v,v),w instanceof $e){const C=w;J(n,e,t,a,o,C.beginCaptures,g),o.produce(a,g[0].end),d=g[0].end;const x=C.getContentName(e.content,g),I=v.pushAttributed(x,n);if(a=a.withContentNameScopesList(I),C.endHasBackReferences&&(a=a.withEndRule(C.getEndWithResolvedBackReferences(e.content,g))),!b&&y.hasSameRuleAs(a)){a=a.pop(),o.produce(a,s),l=!0;return}}else if(w instanceof ye){const C=w;J(n,e,t,a,o,C.beginCaptures,g),o.produce(a,g[0].end),d=g[0].end;const x=C.getContentName(e.content,g),I=v.pushAttributed(x,n);if(a=a.withContentNameScopesList(I),C.whileHasBackReferences&&(a=a.withEndRule(C.getWhileWithResolvedBackReferences(e.content,g))),!b&&y.hasSameRuleAs(a)){a=a.pop(),o.produce(a,s),l=!0;return}}else if(J(n,e,t,a,o,w.captures,g),o.produce(a,g[0].end),a=a.pop(),!b){a=a.safePop(),o.produce(a,s),l=!0;return}}g[0].end>r&&(r=g[0].end,t=!1)}}function wr(n,e,t,r,a,o){let i=a.beginRuleCapturedEOL?0:-1;const c=[];for(let s=a;s;s=s.pop()){const l=s.getRule(n);l instanceof ye&&c.push({rule:l,stack:s})}for(let s=c.pop();s;s=c.pop()){const{ruleScanner:l,findOptions:d}=Cr(s.rule,n,s.stack.endRule,t,r===i),u=l.findNextMatchSync(e,r,d);if(u){if(u.ruleId!==Dt){a=s.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(o.produce(s.stack,u.captureIndices[0].start),J(n,e,t,s.stack,o,s.rule.whileCaptures,u.captureIndices),o.produce(s.stack,u.captureIndices[0].end),i=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,t=!1))}else{a=s.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:i,isFirstLine:t}}function _r(n,e,t,r,a,o){const i=vr(n,e,t,r,a,o),c=n.getInjections();if(c.length===0)return i;const s=Sr(c,n,e,t,r,a,o);if(!s)return i;if(!i)return s;const l=i.captureIndices[0].start,d=s.captureIndices[0].start;return d=c)&&(c=k,s=y.captureIndices,l=y.ruleId,d=g.priority,c===a))break}return s?{priorityMatch:d===-1,captureIndices:s,matchedRuleId:l}:null}function Ht(n,e,t,r,a){return{ruleScanner:n.compileAG(e,t,r,a),findOptions:0}}function Cr(n,e,t,r,a){return{ruleScanner:n.compileWhileAG(e,t,r,a),findOptions:0}}function J(n,e,t,r,a,o,i){if(o.length===0)return;const c=e.content,s=Math.min(o.length,i.length),l=[],d=i[0].end;for(let u=0;ud)break;for(;l.length>0&&l[l.length-1].endPos<=p.start;)a.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?a.produceFromScopes(l[l.length-1].scopes,p.start):a.produce(r,p.start),m.retokenizeCapturedWithRuleId){const h=m.getName(c,i),b=r.contentNameScopesList.pushAttributed(h,n),w=m.getContentName(c,i),y=b.pushAttributed(w,n),k=r.push(m.retokenizeCapturedWithRuleId,p.start,-1,!1,null,b,y),v=n.createOnigString(c.substring(0,p.end));qt(n,v,t&&p.start===0,p.start,k,a,!1,0),Gt(v);continue}const g=m.getName(c,i);if(g!==null){const b=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(g,n);l.push(new xr(b,p.end))}}for(;l.length>0;)a.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var xr=class{constructor(n,e){this.scopes=n,this.endPos=e}};function Ar(n,e,t,r,a,o,i,c){return new Br(n,e,t,r,a,o,i,c)}function gt(n,e,t,r,a){const o=he(e,ke),i=Ut.getCompiledRuleId(t,r,a.repository);for(const c of o)n.push({debugSelector:e,matcher:c.matcher,ruleId:i,grammar:a,priority:c.priority})}function ke(n,e){if(e.length{for(let a=t;at&&n.substr(0,t)===e&&n[t]==="."}var Br=class{constructor(n,e,t,r,a,o,i,c){if(this._rootScopeName=n,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new yr(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=ft(e,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const s of Object.keys(a)){const l=he(s,ke);for(const d of l)this._tokenTypeMatchers.push({matcher:d.matcher,type:a[s]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},e=[],t=this._rootScopeName,r=n.lookup(t);if(r){const a=r.injections;if(a)for(let i in a)gt(e,i,a[i],this,r);const o=this._grammarRepository.injections(t);o&&o.forEach(i=>{const c=this.getExternalGrammar(i);if(c){const s=c.injectionSelector;s&>(e,s,c,this,c)}})}return e.sort((a,o)=>a.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=ft(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const r=this._tokenize(n,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(n,e,t=0){const r=this._tokenize(n,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(n,e,t,r){this._rootId===-1&&(this._rootId=Ut.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!e||e===qe.NULL){a=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),u=Z.set(0,l.languageId,l.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),m=this.getRule(this._rootId).getName(null,null);let p;m?p=ee.createRootAndLookUpScopeName(m,u,this):p=ee.createRoot("unknown",u),e=new qe(null,this._rootId,-1,-1,!1,null,p,p)}else a=!1,e.reset();n=n+` +`;const o=this.createOnigString(n),i=o.content.length,c=new Nr(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),s=qt(this,o,a,0,e,c,!0,r);return Gt(o),{lineLength:i,lineTokens:c,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function ft(n,e){return n=Vn(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var ee=class M{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,a=(e==null?void 0:e.scopePath)??null;for(const o of t)a=Te.push(a,o.scopeNames),r=new M(r,a,o.encodedTokenAttributes);return r}static createRoot(e,t){return new M(null,new Te(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const a=r.getMetadataForScope(e),o=new Te(null,e),i=r.themeProvider.themeMatch(o),c=M.mergeAttributes(t,a,i);return new M(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return M.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let a=-1,o=0,i=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,i=r.backgroundId),Z.set(e,t.languageId,t.tokenType,null,a,o,i)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return M._pushAttributed(this,e,t);const r=e.split(/ /g);let a=this;for(const o of r)a=M._pushAttributed(a,o,t);return a}static _pushAttributed(e,t,r){const a=r.getMetadataForScope(t),o=e.scopePath.push(t),i=r.themeProvider.themeMatch(o),c=M.mergeAttributes(e.tokenAttributes,a,i);return new M(e,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var a;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((a=r.parent)==null?void 0:a.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},je=class z{constructor(e,t,r,a,o,i,c,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=c,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}equals(e){return e===null?!1:z._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ee.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){z._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,a,o,i,c){return new z(this,e,t,r,a,o,i,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,a;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(a=this.contentNameScopesList)==null?void 0:a.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new z(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=ee.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new z(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,ee.fromExtension(r,t.contentNameScopesList))}};je.NULL=new je(null,0,0,0,!1,null,null,null);var qe=je,Pr=class{constructor(n,e){this.allowAny=!1,this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):he(t,ke).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>he(t,ke).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},Nr=class{constructor(n,e,t,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let a=(n==null?void 0:n.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(n==null?void 0:n.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(i)&&(a=Z.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(a=Z.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=e;return}const t=(n==null?void 0:n.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r0;)i.Q.map(c=>this._loadSingleGrammar(c.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,a,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,a)}_grammarForScopeName(e,t=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,r,a,o)}},zt=qe.NULL;const Er=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class oe{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}oe.prototype.property={};oe.prototype.normal={};oe.prototype.space=null;function Wt(n,e){const t={},r={};let a=-1;for(;++a4&&t.slice(0,4)==="data"&&Gr.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(bt,jr);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!bt.test(o)){let i=o.replace($r,Ur);i.charAt(0)!=="-"&&(i="-"+i),e="data"+i}}a=Ye}return new a(r,e)}function Ur(n){return"-"+n.toLowerCase()}function jr(n){return n.charAt(1).toUpperCase()}const qr=Wt([Kt,Zt,Qt,Jt,Or],"html"),en=Wt([Kt,Zt,Qt,Jt,Mr],"svg"),yt={}.hasOwnProperty;function Hr(n,e){const t=e||{};function r(a,...o){let i=r.invalid;const c=r.handlers;if(a&&yt.call(a,n)){const s=String(a[n]);i=yt.call(c,s)?c[s]:r.unknown}if(i)return i.call(this,a,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const zr=/["&'<>`]/g,Wr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Zr=/[|\\{}()[\]^$+*?.]/g,kt=new WeakMap;function Kr(n,e){if(n=n.replace(e.subset?Yr(e.subset):zr,r),e.subset||e.escapeOnly)return n;return n.replace(Wr,t).replace(Vr,r);function t(a,o,i){return e.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),e)}function r(a,o,i){return e.format(a.charCodeAt(0),i.charCodeAt(o+1),e)}}function Yr(n){let e=kt.get(n);return e||(e=Xr(n),kt.set(n,e)),e}function Xr(n){const e=[];let t=-1;for(;++t",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ra=["cent","copy","divide","gt","lt","not","para","times"],tn={}.hasOwnProperty,We={};let ce;for(ce in Ee)tn.call(Ee,ce)&&(We[Ee[ce]]=ce);const aa=/[^\dA-Za-z]/;function oa(n,e,t,r){const a=String.fromCharCode(n);if(tn.call(We,a)){const o=We[a],i="&"+o;return t&&na.includes(o)&&!ra.includes(o)&&(!r||e&&e!==61&&aa.test(String.fromCharCode(e)))?i:i+";"}return""}function ia(n,e,t){let r=Jr(n,e,t.omitOptionalSemicolons),a;if((t.useNamedReferences||t.useShortestReferences)&&(a=oa(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!a)&&t.useShortestReferences){const o=ta(n,e,t.omitOptionalSemicolons);o.length|^->||--!>|"],la=["<",">"];function ua(n,e,t,r){return r.settings.bogusComments?"":"";function a(o){return V(o,Object.assign({},r.settings.characterReferences,{subset:la}))}}function da(n,e,t,r){return""}function wt(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let r=0,a=t.indexOf(e);for(;a!==-1;)r++,a=t.indexOf(e,a+e.length);return r}function ma(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function pa(n){return n.join(" ").trim()}const ga=/[ \t\n\f\r]/g;function Xe(n){return typeof n=="object"?n.type==="text"?_t(n.value):!1:_t(n)}function _t(n){return n.replace(ga,"")===""}const B=rn(1),nn=rn(-1),fa=[];function rn(n){return e;function e(t,r,a){const o=t?t.children:fa;let i=(r||0)+n,c=o[i];if(!a)for(;c&&Xe(c);)i+=n,c=o[i];return c}}const ha={}.hasOwnProperty;function an(n){return e;function e(t,r,a){return ha.call(n,t.tagName)&&n[t.tagName](t,r,a)}}const Qe=an({body:ya,caption:Fe,colgroup:Fe,dd:va,dt:_a,head:Fe,html:ba,li:wa,optgroup:Sa,option:Ca,p:ka,rp:vt,rt:vt,tbody:Aa,td:St,tfoot:Ra,th:St,thead:xa,tr:Ba});function Fe(n,e,t){const r=B(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Xe(r.value.charAt(0)))}function ba(n,e,t){const r=B(t,e);return!r||r.type!=="comment"}function ya(n,e,t){const r=B(t,e);return!r||r.type!=="comment"}function ka(n,e,t){const r=B(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function wa(n,e,t){const r=B(t,e);return!r||r.type==="element"&&r.tagName==="li"}function _a(n,e,t){const r=B(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function va(n,e,t){const r=B(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function vt(n,e,t){const r=B(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Sa(n,e,t){const r=B(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Ca(n,e,t){const r=B(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function xa(n,e,t){const r=B(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Aa(n,e,t){const r=B(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ra(n,e,t){return!B(t,e)}function Ba(n,e,t){const r=B(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function St(n,e,t){const r=B(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Pa=an({body:Ia,colgroup:Ea,head:Ta,html:Na,tbody:Fa});function Na(n){const e=B(n,-1);return!e||e.type!=="comment"}function Ta(n){const e=new Set;for(const r of n.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=n.children[0];return!t||t.type==="element"}function Ia(n){const e=B(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Xe(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ea(n,e,t){const r=nn(t,e),a=B(n,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&Qe(r,t.children.indexOf(r),t)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Fa(n,e,t){const r=nn(t,e),a=B(n,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Qe(r,t.children.indexOf(r),t)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const le={name:[[` +\f\r &/=>`.split(""),` +\f\r "&'/=>\``.split("")],[`\0 +\f\r "&'/<=>`.split(""),`\0 +\f\r "&'/<=>\``.split("")]],unquoted:[[` +\f\r &>`.split(""),`\0 +\f\r "&'<=>\``.split("")],[`\0 +\f\r "&'<=>\``.split(""),`\0 +\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function La(n,e,t,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let i=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(n.tagName.toLowerCase());const c=[];let s;a.space==="html"&&n.tagName==="svg"&&(r.schema=en);const l=Oa(r,n.properties),d=r.all(a.space==="html"&&n.tagName==="template"?n.content:n);return r.schema=a,d&&(i=!1),(l||!o||!Pa(n,e,t))&&(c.push("<",n.tagName,l?" "+l:""),i&&(a.space==="svg"||r.settings.closeSelfClosing)&&(s=l.charAt(l.length-1),(!r.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(d),!i&&(!o||!Qe(n,e,t))&&c.push(""),c.join("")}function Oa(n,e){const t=[];let r=-1,a;if(e){for(a in e)if(e[a]!==null&&e[a]!==void 0){const o=Ma(n,a,e[a]);o&&t.push(o)}}for(;++rwt(t,n.alternative)&&(i=n.alternative),c=i+V(t,Object.assign({},n.settings.characterReferences,{subset:(i==="'"?le.single:le.double)[a][o],attribute:!0}))+i),s+(c&&"="+c))}const Ga=["<","&"];function on(n,e,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?n.value:V(n.value,Object.assign({},r.settings.characterReferences,{subset:Ga}))}function $a(n,e,t,r){return r.settings.allowDangerousHtml?n.value:on(n,e,t,r)}function Da(n,e,t,r){return r.all(n)}const Ua=Hr("type",{invalid:ja,unknown:qa,handlers:{comment:ua,doctype:da,element:La,raw:$a,root:Da,text:on}});function ja(n){throw new Error("Expected node, not `"+n+"`")}function qa(n){const e=n;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ha={},za={},Wa=[];function Va(n,e){const t=Ha,r=t.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Za,all:Ka,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Er,characterReferences:t.characterReferences||za,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?en:qr,quote:r,alternative:a}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function Za(n,e,t){return Ua(n,e,t,this)}function Ka(n){const e=[],t=n&&n.children||Wa;let r=-1;for(;++rt&&r.push({...n,content:n.content.slice(t,a),offset:n.offset+t}),t=a;return tr-a);return t.length?n.map(r=>r.flatMap(a=>{const o=t.filter(i=>a.offseti-a.offset).sort((i,c)=>i-c);return o.length?Qa(a,o):a})):n}async function cn(n){return Promise.resolve(typeof n=="function"?n():n).then(e=>e.default||e)}function we(n,e){const t=typeof n=="string"?{}:{...n.colorReplacements},r=typeof n=="string"?n:n.name;for(const[a,o]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof o=="string"?t[a]=o:a===r&&Object.assign(t,o);return t}function U(n,e){return n&&((e==null?void 0:e[n==null?void 0:n.toLowerCase()])||n)}function ln(n){const e={};return n.color&&(e.color=n.color),n.bgColor&&(e["background-color"]=n.bgColor),n.fontStyle&&(n.fontStyle&$.Italic&&(e["font-style"]="italic"),n.fontStyle&$.Bold&&(e["font-weight"]="bold"),n.fontStyle&$.Underline&&(e["text-decoration"]="underline")),e}function eo(n){return typeof n=="string"?n:Object.entries(n).map(([e,t])=>`${e}:${t}`).join(";")}function to(n){const e=xe(n,!0).map(([a])=>a);function t(a){if(a===n.length)return{line:e.length-1,character:e[e.length-1].length};let o=a,i=0;for(const c of e){if(ot.source.length)throw new N(`Invalid decoration offset: ${i}. Code length: ${t.source.length}`);return{...a.indexToPos(i),offset:i}}else{const c=a.lines[i.line];if(c===void 0)throw new N(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${a.lines.length}`);if(i.character<0||i.character>c.length)throw new N(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${c.length}`);return{...i,offset:a.posToIndex(i.line,i.character)}}};const a=to(t.source),o=(t.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));ro(o),n.set(t.meta,{decorations:o,converter:a,source:t.source})}return n.get(t.meta)}return{name:"shiki:decorations",tokens(t){var i;if(!((i=this.options.decorations)!=null&&i.length))return;const a=e(this).decorations.flatMap(c=>[c.start.offset,c.end.offset]);return Ja(t,a)},code(t){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const r=e(this),a=Array.from(t.children).filter(u=>u.type==="element"&&u.tagName==="span");if(a.length!==r.converter.lines.length)throw new N(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,m,p,g){const h=a[u];let b="",w=-1,y=-1;if(m===0&&(w=0),p===0&&(y=0),p===Number.POSITIVE_INFINITY&&(y=h.children.length),w===-1||y===-1)for(let v=0;vw);return u.tagName=m.tagName||"span",u.properties={...u.properties,...g,class:u.properties.class},(b=m.properties)!=null&&b.class&&sn(u,m.properties.class),u=h(u,p)||u,u}const s=[],l=r.decorations.sort((u,m)=>m.start.offset-u.start.offset);for(const u of l){const{start:m,end:p}=u;if(m.line===p.line)o(m.line,m.character,p.character,u);else if(m.linei(g,u));o(p.line,0,p.character,u)}}s.forEach(u=>u())}}}function ro(n){for(let e=0;et.end.offset)throw new N(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let r=e+1;rNumber.parseInt(i));o.length===3&&!o.some(i=>Number.isNaN(i))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(n[e+t]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[t,a]}function co(n){const e=[];for(let t=0;t=90&&a<=97?e.push({type:"setForegroundColor",value:{type:"named",name:j[a-90+8]}}):a>=100&&a<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:j[a-100+8]}})}return e}function lo(){let n=null,e=null,t=new Set;return{parse(r){const a=[];let o=0;do{const i=so(r,o),c=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:n,background:e,decorations:new Set(t)}),i.sequence){const s=co(i.sequence);for(const l of s)l.type==="resetAll"?(n=null,e=null,t.clear()):l.type==="resetForegroundColor"?n=null:l.type==="resetBackgroundColor"?e=null:l.type==="resetDecoration"&&t.delete(l.value);for(const l of s)l.type==="setForegroundColor"?n=l.value:l.type==="setBackgroundColor"?e=l.value:l.type==="setDecoration"&&t.add(l.value)}o=i.position}while(oMath.max(0,Math.min(s,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let l=0;l{var s;return[c,(s=n.colors)==null?void 0:s[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]}))),i=lo();return a.map(c=>i.parse(c[0]).map(s=>{let l,d;s.decorations.has("reverse")?(l=s.background?o.value(s.background):n.bg,d=s.foreground?o.value(s.foreground):n.fg):(l=s.foreground?o.value(s.foreground):n.fg,d=s.background?o.value(s.background):void 0),l=U(l,r),d=U(d,r),s.decorations.has("dim")&&(l=go(l));let u=$.None;return s.decorations.has("bold")&&(u|=$.Bold),s.decorations.has("italic")&&(u|=$.Italic),s.decorations.has("underline")&&(u|=$.Underline),{content:s.value,offset:c[1],color:l,bgColor:d,fontStyle:u}}))}function go(n){const e=n.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const t=n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:n}function tt(n,e,t={}){const{lang:r="text",theme:a=n.getLoadedThemes()[0]}=t;if(Je(r)||et(a))return xe(e).map(s=>[{content:s[0],offset:s[1]}]);const{theme:o,colorMap:i}=n.setTheme(a);if(r==="ansi")return po(o,e,t);const c=n.getLanguage(r);if(t.grammarState){if(t.grammarState.lang!==c.name)throw new pe(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${c.name}"`);if(t.grammarState.theme!==a)throw new pe(`Grammar state theme "${t.grammarState.theme}" does not match highlight theme "${a}"`)}return ho(e,c,o,i,t)}function fo(n,e,t={}){const{lang:r="text",theme:a=n.getLoadedThemes()[0]}=t;if(Je(r)||et(a))throw new pe("Plain language does not have grammar state");if(r==="ansi")throw new pe("ANSI language does not have grammar state");const{theme:o,colorMap:i}=n.setTheme(a),c=n.getLanguage(r);return new Ae(nt(e,c,o,i,t).stateStack,c.name,o.name)}function ho(n,e,t,r,a){return nt(n,e,t,r,a).tokens}function nt(n,e,t,r,a){const o=we(t,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:c=500}=a,s=xe(n);let l=a.grammarState?io(a.grammarState):a.grammarContextCode!=null?nt(a.grammarContextCode,e,t,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:zt,d=[];const u=[];for(let m=0,p=s.length;m0&&g.length>=i){d=[],u.push([{content:g,offset:h,color:"",fontStyle:0}]);continue}let b,w,y;a.includeExplanation&&(b=e.tokenizeLine(g,l),w=b.tokens,y=0);const k=e.tokenizeLine2(g,l,c),v=k.tokens.length/2;for(let C=0;CBe.trim());break;case"object":H=G.scope;break;default:continue}at.push({settings:G,selectors:H.map(Be=>Be.split(/ /))})}Re.explanation=[];let ot=0;for(;x+ot({scopeName:e}))}function yo(n,e){const t=[];for(let r=0,a=e.length;r=0&&a>=0;)xt(n[r],t[a])&&(r-=1),a-=1;return r===-1}function wo(n,e,t){const r=[];for(const{selectors:a,settings:o}of n)for(const i of a)if(ko(i,e,t)){r.push(o);break}return r}function dn(n,e,t){const r=Object.entries(t.themes).filter(i=>i[1]).map(i=>({color:i[0],theme:i[1]})),a=_o(...r.map(i=>tt(n,e,{...t,theme:i.theme})));return a[0].map((i,c)=>i.map((s,l)=>{const d={content:s.content,variants:{},offset:s.offset};return"includeExplanation"in t&&t.includeExplanation&&(d.explanation=s.explanation),a.forEach((u,m)=>{const{content:p,explanation:g,offset:h,...b}=u[c][l];d.variants[r[m].color]=b}),d}))}function _o(...n){const e=n.map(()=>[]),t=n.length;for(let r=0;rs[r]),o=e.map(()=>[]);e.forEach((s,l)=>s.push(o[l]));const i=a.map(()=>0),c=a.map(s=>s[0]);for(;c.every(s=>s);){const s=Math.min(...c.map(l=>l.content.length));for(let l=0;lh[1]).map(h=>({color:h[0],theme:h[1]})).sort((h,b)=>h.color===s?-1:b.color===s?1:0);if(d.length===0)throw new N("`themes` option must not be empty");const u=dn(n,e,t);if(s&&!d.find(h=>h.color===s))throw new N(`\`themes\` option must contain the defaultColor key \`${s}\``);const m=d.map(h=>n.getTheme(h.theme)),p=d.map(h=>h.color);o=u.map(h=>h.map(b=>vo(b,p,l,s)));const g=d.map(h=>we(h.theme,t));a=d.map((h,b)=>(b===0&&s?"":`${l+h.color}:`)+(U(m[b].fg,g[b])||"inherit")).join(";"),r=d.map((h,b)=>(b===0&&s?"":`${l+h.color}-bg:`)+(U(m[b].bg,g[b])||"inherit")).join(";"),i=`shiki-themes ${m.map(h=>h.name).join(" ")}`,c=s?void 0:[a,r].join(";")}else if("theme"in t){const s=we(t.theme,t);o=tt(n,e,t);const l=n.getTheme(t.theme);r=U(l.bg,s),a=U(l.fg,s),i=l.name}else throw new N("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:i,rootStyle:c}}function vo(n,e,t,r){const a={content:n.content,explanation:n.explanation,offset:n.offset},o=e.map(s=>ln(n.variants[s])),i=new Set(o.flatMap(s=>Object.keys(s))),c={};return o.forEach((s,l)=>{for(const d of i){const u=s[d]||"inherit";if(l===0&&r)c[d]=u;else{const m=d==="color"?"":d==="background-color"?"-bg":`-${d}`,p=t+e[l]+(d==="color"?"":m);c[p]=u}}}),a.htmlStyle=c,a}function Se(n,e,t,r={meta:{},options:t,codeToHast:(a,o)=>Se(n,a,o),codeToTokens:(a,o)=>ve(n,a,o)}){var m,p;let a=e;for(const g of _e(t))a=((m=g.preprocess)==null?void 0:m.call(r,a,t))||a;let{tokens:o,fg:i,bg:c,themeName:s,rootStyle:l}=ve(n,a,t);const{mergeWhitespaces:d=!0}=t;d===!0?o=Co(o):d==="never"&&(o=xo(o));const u={...r,get source(){return a}};for(const g of _e(t))o=((p=g.tokens)==null?void 0:p.call(u,o))||o;return So(o,{...t,fg:i,bg:c,themeName:s,rootStyle:l},u)}function So(n,e,t){var p,g,h;const r=_e(e),a=[],o={type:"root",children:[]},{structure:i="classic",tabindex:c="0"}=e;let s={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...c!==!1&&c!=null?{tabindex:c.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},l={type:"element",tagName:"code",properties:{},children:a};const d=[],u={...t,structure:i,addClassToHast:sn,get source(){return t.source},get tokens(){return n},get options(){return e},get root(){return o},get pre(){return s},get code(){return l},get lines(){return d}};if(n.forEach((b,w)=>{var v,C;w&&(i==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):i==="classic"&&a.push({type:"text",value:` +`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},k=0;for(const x of b){let I={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]};x.htmlStyle;const Y=eo(x.htmlStyle||ln(x));Y&&(I.properties.style=Y);for(const X of r)I=((v=X==null?void 0:X.span)==null?void 0:v.call(u,I,w+1,k,y,x))||I;i==="inline"?o.children.push(I):i==="classic"&&y.children.push(I),k+=x.content.length}if(i==="classic"){for(const x of r)y=((C=x==null?void 0:x.line)==null?void 0:C.call(u,y,w+1))||y;d.push(y),a.push(y)}}),i==="classic"){for(const b of r)l=((p=b==null?void 0:b.code)==null?void 0:p.call(u,l))||l;s.children.push(l);for(const b of r)s=((g=b==null?void 0:b.pre)==null?void 0:g.call(u,s))||s;o.children.push(s)}let m=o;for(const b of r)m=((h=b==null?void 0:b.root)==null?void 0:h.call(u,m))||m;return m}function Co(n){return n.map(e=>{const t=[];let r="",a=0;return e.forEach((o,i)=>{const s=!(o.fontStyle&&o.fontStyle&$.Underline);s&&o.content.match(/^\s+$/)&&e[i+1]?(a||(a=o.offset),r+=o.content):r?(s?t.push({...o,offset:a,content:r+o.content}):t.push({content:r,offset:a},o),a=0,r=""):t.push(o)}),t})}function xo(n){return n.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const r=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return t;const[,a,o,i]=r;if(!a&&!i)return t;const c=[{...t,offset:t.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:t.offset}),i&&c.push({content:i,offset:t.offset+a.length+o.length}),c}))}function Ao(n,e,t){var o;const r={meta:{},options:t,codeToHast:(i,c)=>Se(n,i,c),codeToTokens:(i,c)=>ve(n,i,c)};let a=Va(Se(n,e,t,r));for(const i of _e(t))a=((o=i.postprocess)==null?void 0:o.call(r,a,t))||a;return a}const At={light:"#333333",dark:"#bbbbbb"},Rt={light:"#fffffe",dark:"#1e1e1e"},Bt="__shiki_resolved";function rt(n){var c,s,l,d,u;if(n!=null&&n[Bt])return n;const e={...n};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:t,fg:r}=e;if(!t||!r){const m=e.settings?e.settings.find(p=>!p.name&&!p.scope):void 0;(c=m==null?void 0:m.settings)!=null&&c.foreground&&(r=m.settings.foreground),(s=m==null?void 0:m.settings)!=null&&s.background&&(t=m.settings.background),!r&&((l=e==null?void 0:e.colors)!=null&&l["editor.foreground"])&&(r=e.colors["editor.foreground"]),!t&&((d=e==null?void 0:e.colors)!=null&&d["editor.background"])&&(t=e.colors["editor.background"]),r||(r=e.type==="light"?At.light:At.dark),t||(t=e.type==="light"?Rt.light:Rt.dark),e.fg=r,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let a=0;const o=new Map;function i(m){var g;if(o.has(m))return o.get(m);a+=1;const p=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(g=e.colorReplacements)!=null&&g[`#${p}`]?i(m):(o.set(m,p),p)}e.settings=e.settings.map(m=>{var b,w;const p=((b=m.settings)==null?void 0:b.foreground)&&!m.settings.foreground.startsWith("#"),g=((w=m.settings)==null?void 0:w.background)&&!m.settings.background.startsWith("#");if(!p&&!g)return m;const h={...m,settings:{...m.settings}};if(p){const y=i(m.settings.foreground);e.colorReplacements[y]=m.settings.foreground,h.settings.foreground=y}if(g){const y=i(m.settings.background);e.colorReplacements[y]=m.settings.background,h.settings.background=y}return h});for(const m of Object.keys(e.colors||{}))if((m==="editor.foreground"||m==="editor.background"||m.startsWith("terminal.ansi"))&&!((u=e.colors[m])!=null&&u.startsWith("#"))){const p=i(e.colors[m]);e.colorReplacements[p]=e.colors[m],e.colors[m]=p}return Object.defineProperty(e,Bt,{enumerable:!1,writable:!1,value:!0}),e}async function mn(n){return Array.from(new Set((await Promise.all(n.filter(e=>!Ya(e)).map(async e=>await cn(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function pn(n){return(await Promise.all(n.map(async t=>Xa(t)?null:rt(await cn(t))))).filter(t=>!!t)}var Ro=Object.defineProperty,Bo=(n,e,t)=>e in n?Ro(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,D=(n,e,t)=>(Bo(n,typeof e!="symbol"?e+"":e,t),t);class Po extends Ir{constructor(e,t,r,a={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=a,D(this,"_resolvedThemes",new Map),D(this,"_resolvedGrammars",new Map),D(this,"_langMap",new Map),D(this,"_langGraph",new Map),D(this,"_textmateThemeCache",new WeakMap),D(this,"_loadedThemesCache",null),D(this,"_loadedLanguagesCache",null),this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=rt(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=fe.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new N(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){var o,i,c,s;if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(l=>{var d;return(d=l.embeddedLangsLazy)==null?void 0:d.includes(e.name)}));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const a=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(a.name=e.name,this._resolvedGrammars.set(e.name,a),e.aliases&&e.aliases.forEach(l=>{this._alias[l]=e.name}),this._loadedLanguagesCache=null,t.size)for(const l of t)this._resolvedGrammars.delete(l.name),this._loadedLanguagesCache=null,(i=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||i.delete(l.scopeName),(s=(c=this._syncRegistry)==null?void 0:c._grammars)==null||s.delete(l.scopeName),this.loadLanguage(this._langMap.get(l.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const t=Array.from(this._langGraph.entries()),r=t.filter(([a,o])=>!o);if(r.length){const a=t.filter(([o,i])=>{var c;return i&&((c=i.embeddedLangs)==null?void 0:c.some(s=>r.map(([l])=>l).includes(s)))}).filter(o=>!r.includes(o));throw new N(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of t)this._resolver.addLanguage(o);for(const[a,o]of t)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}var No=Object.defineProperty,To=(n,e,t)=>e in n?No(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ue=(n,e,t)=>(To(n,typeof e!="symbol"?e+"":e,t),t);class Io{constructor(e,t){ue(this,"_langs",new Map),ue(this,"_scopeToLang",new Map),ue(this,"_injections",new Map),ue(this,"_onigLib"),this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let a=1;a<=t.length;a++){const o=t.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Q=0;function Eo(n){Q+=1,n.warnings!==!1&&Q>=10&&Q%10===0&&console.warn(`[Shiki] ${Q} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!n.engine)throw new N("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),r=(n.themes||[]).flat(1).map(rt),a=new Io(n.engine,t),o=new Po(a,r,t,n.langAlias);let i;function c(y){b();const k=o.getGrammar(typeof y=="string"?y:y.name);if(!k)throw new N(`Language \`${y}\` not found, you may need to load it first`);return k}function s(y){if(y==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const k=o.getTheme(y);if(!k)throw new N(`Theme \`${y}\` not found, you may need to load it first`);return k}function l(y){b();const k=s(y);i!==y&&(o.setTheme(k),i=y);const v=o.getColorMap();return{theme:k,colorMap:v}}function d(){return b(),o.getLoadedThemes()}function u(){return b(),o.getLoadedLanguages()}function m(...y){b(),o.loadLanguages(y.flat(1))}async function p(...y){return m(await mn(y))}function g(...y){b();for(const k of y.flat(1))o.loadTheme(k)}async function h(...y){return b(),g(await pn(y))}function b(){if(e)throw new N("Shiki instance has been disposed")}function w(){e||(e=!0,o.dispose(),Q-=1)}return{setTheme:l,getTheme:s,getLanguage:c,getLoadedThemes:d,getLoadedLanguages:u,loadLanguage:p,loadLanguageSync:m,loadTheme:h,loadThemeSync:g,dispose:w,[Symbol.dispose]:w}}async function Fo(n={}){n.loadWasm;const[e,t,r]=await Promise.all([pn(n.themes||[]),mn(n.langs||[]),n.engine||Pt(n.loadWasm||Wn())]);return Eo({...n,loadWasm:void 0,themes:e,langs:t,engine:r})}async function Lo(n={}){const e=await Fo(n);return{getLastGrammarState:(t,r)=>fo(e,t,r),codeToTokensBase:(t,r)=>tt(e,t,r),codeToTokensWithThemes:(t,r)=>dn(e,t,r),codeToTokens:(t,r)=>ve(e,t,r),codeToHast:(t,r)=>Se(e,t,r),codeToHtml:(t,r)=>Ao(e,t,r),...e,getInternalContext:()=>e}}const Oo=bn({__name:"CodeEditor",setup(n,{expose:e}){e();let t=null,r=null,a=null;const{grammars:o,theme:i}=Nn,c=it(),s=st(),l=st(),d=it("");async function u(){t=await Lo({themes:"light"in i&&"dark"in i?[i.light,i.dark]:[i],langs:Object.keys(o).map(h=>o[h]),engine:Pt(()=>vn(()=>import("./wasm-CG6Dc4jp.js"),[]))})}function m(){if(t&&c.value&&d.value){const h=t.codeToHtml(d.value,{lang:c.value,..."light"in i&&"dark"in i?{themes:i,defaultColor:!1}:{theme:i}});r&&(r.innerHTML=h.replace(/^]*>/,"").replace(/<\/pre>$/,"").replace(/()(<\/span>)/g,"$1$2")),a&&(a.innerHTML=h.split(` +`).map(()=>'
').join(""))}}function p(){var h;r&&(r.scrollLeft=((h=l.value)==null?void 0:h.scrollLeft)||0)}yn([d],m,{flush:"post"}),kn(async()=>{if(!s.value||!l.value)return;await u(),r=s.value.querySelector("pre"),a=s.value.querySelector(".line-numbers");const h=wn(s.value);c.value=h.lang,d.value=h.code,l.value.addEventListener("scroll",p,{passive:!1}),window.addEventListener("resize",p)}),_n(()=>{var h;(h=l.value)==null||h.removeEventListener("scroll",p),window.removeEventListener("resize",p),t=null,r=null,a=null});const g={get highlighter(){return t},set highlighter(h){t=h},get container(){return r},set container(h){r=h},get lineNumbers(){return a},set lineNumbers(h){a=h},grammars:o,theme:i,lang:c,editorEl:s,textAreaEl:l,input:d,init:u,highlight:m,updateScroll:p};return Object.defineProperty(g,"__isScriptSetup",{enumerable:!1,value:!0}),g}}),Mo={ref:"editorEl",class:"code-repl-editor"};function Go(n,e,t,r,a,o){return Cn(),xn("div",Mo,[An(n.$slots,"default",{},void 0,!0),Rn(Pn("textarea",{ref:"textAreaEl","onUpdate:modelValue":e[0]||(e[0]=i=>r.input=i),class:"code-repl-input"},null,512),[[Bn,r.input]])],512)}const Ho=Sn(Oo,[["render",Go],["__scopeId","data-v-436579d8"],["__file","CodeEditor.vue"]]);export{Ho as default}; diff --git a/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 b/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 new file mode 100644 index 00000000..0acaaff0 Binary files /dev/null and b/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 differ diff --git a/assets/KaTeX_AMS-Regular-DMm9YOAa.woff b/assets/KaTeX_AMS-Regular-DMm9YOAa.woff new file mode 100644 index 00000000..b804d7b3 Binary files /dev/null and b/assets/KaTeX_AMS-Regular-DMm9YOAa.woff differ diff --git a/assets/KaTeX_AMS-Regular-DRggAlZN.ttf b/assets/KaTeX_AMS-Regular-DRggAlZN.ttf new file mode 100644 index 00000000..c6f9a5e7 Binary files /dev/null and b/assets/KaTeX_AMS-Regular-DRggAlZN.ttf differ diff --git a/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf b/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf new file mode 100644 index 00000000..9ff4a5e0 Binary files /dev/null and b/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf differ diff --git a/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff b/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff new file mode 100644 index 00000000..9759710d Binary files /dev/null and b/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff differ diff --git a/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 b/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 new file mode 100644 index 00000000..f390922e Binary files /dev/null and b/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 differ diff --git a/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff b/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff new file mode 100644 index 00000000..9bdd534f Binary files /dev/null and b/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff differ diff --git a/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 b/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 new file mode 100644 index 00000000..75344a1f Binary files /dev/null and b/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 differ diff --git a/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf b/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf new file mode 100644 index 00000000..f522294f Binary files /dev/null and b/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf differ diff --git a/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf b/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf new file mode 100644 index 00000000..4e98259c Binary files /dev/null and b/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf differ diff --git a/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff b/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff new file mode 100644 index 00000000..e7730f66 Binary files /dev/null and b/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff differ diff --git a/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 b/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 new file mode 100644 index 00000000..395f28be Binary files /dev/null and b/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 differ diff --git a/assets/KaTeX_Fraktur-Regular-CB_wures.ttf b/assets/KaTeX_Fraktur-Regular-CB_wures.ttf new file mode 100644 index 00000000..b8461b27 Binary files /dev/null and b/assets/KaTeX_Fraktur-Regular-CB_wures.ttf differ diff --git a/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 b/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 new file mode 100644 index 00000000..735f6948 Binary files /dev/null and b/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 differ diff --git a/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff b/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff new file mode 100644 index 00000000..acab069f Binary files /dev/null and b/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff differ diff --git a/assets/KaTeX_Main-Bold-Cx986IdX.woff2 b/assets/KaTeX_Main-Bold-Cx986IdX.woff2 new file mode 100644 index 00000000..ab2ad21d Binary files /dev/null and b/assets/KaTeX_Main-Bold-Cx986IdX.woff2 differ diff --git a/assets/KaTeX_Main-Bold-Jm3AIy58.woff b/assets/KaTeX_Main-Bold-Jm3AIy58.woff new file mode 100644 index 00000000..f38136ac Binary files /dev/null and b/assets/KaTeX_Main-Bold-Jm3AIy58.woff differ diff --git a/assets/KaTeX_Main-Bold-waoOVXN0.ttf b/assets/KaTeX_Main-Bold-waoOVXN0.ttf new file mode 100644 index 00000000..4060e627 Binary files /dev/null and b/assets/KaTeX_Main-Bold-waoOVXN0.ttf differ diff --git a/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 b/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 new file mode 100644 index 00000000..5931794d Binary files /dev/null and b/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 differ diff --git a/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf b/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf new file mode 100644 index 00000000..dc007977 Binary files /dev/null and b/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf differ diff --git a/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff b/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff new file mode 100644 index 00000000..67807b0b Binary files /dev/null and b/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff differ diff --git a/assets/KaTeX_Main-Italic-3WenGoN9.ttf b/assets/KaTeX_Main-Italic-3WenGoN9.ttf new file mode 100644 index 00000000..0e9b0f35 Binary files /dev/null and b/assets/KaTeX_Main-Italic-3WenGoN9.ttf differ diff --git a/assets/KaTeX_Main-Italic-BMLOBm91.woff b/assets/KaTeX_Main-Italic-BMLOBm91.woff new file mode 100644 index 00000000..6f43b594 Binary files /dev/null and b/assets/KaTeX_Main-Italic-BMLOBm91.woff differ diff --git a/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 b/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 new file mode 100644 index 00000000..b50920e1 Binary files /dev/null and b/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 differ diff --git a/assets/KaTeX_Main-Regular-B22Nviop.woff2 b/assets/KaTeX_Main-Regular-B22Nviop.woff2 new file mode 100644 index 00000000..eb24a7ba Binary files /dev/null and b/assets/KaTeX_Main-Regular-B22Nviop.woff2 differ diff --git a/assets/KaTeX_Main-Regular-Dr94JaBh.woff b/assets/KaTeX_Main-Regular-Dr94JaBh.woff new file mode 100644 index 00000000..21f58129 Binary files /dev/null and b/assets/KaTeX_Main-Regular-Dr94JaBh.woff differ diff --git a/assets/KaTeX_Main-Regular-ypZvNtVU.ttf b/assets/KaTeX_Main-Regular-ypZvNtVU.ttf new file mode 100644 index 00000000..dd45e1ed Binary files /dev/null and b/assets/KaTeX_Main-Regular-ypZvNtVU.ttf differ diff --git a/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf b/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf new file mode 100644 index 00000000..728ce7a1 Binary files /dev/null and b/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf differ diff --git a/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 b/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 new file mode 100644 index 00000000..29657023 Binary files /dev/null and b/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 differ diff --git a/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff b/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff new file mode 100644 index 00000000..0ae390d7 Binary files /dev/null and b/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff differ diff --git a/assets/KaTeX_Math-Italic-DA0__PXp.woff b/assets/KaTeX_Math-Italic-DA0__PXp.woff new file mode 100644 index 00000000..eb5159d4 Binary files /dev/null and b/assets/KaTeX_Math-Italic-DA0__PXp.woff differ diff --git a/assets/KaTeX_Math-Italic-flOr_0UB.ttf b/assets/KaTeX_Math-Italic-flOr_0UB.ttf new file mode 100644 index 00000000..70d559b4 Binary files /dev/null and b/assets/KaTeX_Math-Italic-flOr_0UB.ttf differ diff --git a/assets/KaTeX_Math-Italic-t53AETM-.woff2 b/assets/KaTeX_Math-Italic-t53AETM-.woff2 new file mode 100644 index 00000000..215c143f Binary files /dev/null and b/assets/KaTeX_Math-Italic-t53AETM-.woff2 differ diff --git a/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf b/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf new file mode 100644 index 00000000..2f65a8a3 Binary files /dev/null and b/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf differ diff --git a/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 b/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 new file mode 100644 index 00000000..cfaa3bda Binary files /dev/null and b/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 differ diff --git a/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff b/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff new file mode 100644 index 00000000..8d47c02d Binary files /dev/null and b/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff differ diff --git a/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 b/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 new file mode 100644 index 00000000..349c06dc Binary files /dev/null and b/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 differ diff --git a/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff b/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff new file mode 100644 index 00000000..7e02df96 Binary files /dev/null and b/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff differ diff --git a/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf b/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf new file mode 100644 index 00000000..d5850df9 Binary files /dev/null and b/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf differ diff --git a/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf b/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf new file mode 100644 index 00000000..537279f6 Binary files /dev/null and b/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf differ diff --git a/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff b/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff new file mode 100644 index 00000000..31b84829 Binary files /dev/null and b/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff differ diff --git a/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 b/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 new file mode 100644 index 00000000..a90eea85 Binary files /dev/null and b/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 differ diff --git a/assets/KaTeX_Script-Regular-C5JkGWo-.ttf b/assets/KaTeX_Script-Regular-C5JkGWo-.ttf new file mode 100644 index 00000000..fd679bf3 Binary files /dev/null and b/assets/KaTeX_Script-Regular-C5JkGWo-.ttf differ diff --git a/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 b/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 new file mode 100644 index 00000000..b3048fc1 Binary files /dev/null and b/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 differ diff --git a/assets/KaTeX_Script-Regular-D5yQViql.woff b/assets/KaTeX_Script-Regular-D5yQViql.woff new file mode 100644 index 00000000..0e7da821 Binary files /dev/null and b/assets/KaTeX_Script-Regular-D5yQViql.woff differ diff --git a/assets/KaTeX_Size1-Regular-C195tn64.woff b/assets/KaTeX_Size1-Regular-C195tn64.woff new file mode 100644 index 00000000..7f292d91 Binary files /dev/null and b/assets/KaTeX_Size1-Regular-C195tn64.woff differ diff --git a/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf b/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf new file mode 100644 index 00000000..871fd7d1 Binary files /dev/null and b/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf differ diff --git a/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 b/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 new file mode 100644 index 00000000..c5a8462f Binary files /dev/null and b/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 differ diff --git a/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf b/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf new file mode 100644 index 00000000..7a212caf Binary files /dev/null and b/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf differ diff --git a/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 b/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 new file mode 100644 index 00000000..e1bccfe2 Binary files /dev/null and b/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 differ diff --git a/assets/KaTeX_Size2-Regular-oD1tc_U0.woff b/assets/KaTeX_Size2-Regular-oD1tc_U0.woff new file mode 100644 index 00000000..d241d9be Binary files /dev/null and b/assets/KaTeX_Size2-Regular-oD1tc_U0.woff differ diff --git a/assets/KaTeX_Size3-Regular-CTq5MqoE.woff b/assets/KaTeX_Size3-Regular-CTq5MqoE.woff new file mode 100644 index 00000000..e6e9b658 Binary files /dev/null and b/assets/KaTeX_Size3-Regular-CTq5MqoE.woff differ diff --git a/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf b/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf new file mode 100644 index 00000000..00bff349 Binary files /dev/null and b/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf differ diff --git a/assets/KaTeX_Size4-Regular-BF-4gkZK.woff b/assets/KaTeX_Size4-Regular-BF-4gkZK.woff new file mode 100644 index 00000000..e1ec5457 Binary files /dev/null and b/assets/KaTeX_Size4-Regular-BF-4gkZK.woff differ diff --git a/assets/KaTeX_Size4-Regular-DWFBv043.ttf b/assets/KaTeX_Size4-Regular-DWFBv043.ttf new file mode 100644 index 00000000..74f08921 Binary files /dev/null and b/assets/KaTeX_Size4-Regular-DWFBv043.ttf differ diff --git a/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 b/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 new file mode 100644 index 00000000..680c1308 Binary files /dev/null and b/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 differ diff --git a/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff b/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff new file mode 100644 index 00000000..2432419f Binary files /dev/null and b/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff differ diff --git a/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 b/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 new file mode 100644 index 00000000..771f1af7 Binary files /dev/null and b/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 differ diff --git a/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf b/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf new file mode 100644 index 00000000..c83252c5 Binary files /dev/null and b/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf differ diff --git a/assets/SearchBox-axK1GpWF.js b/assets/SearchBox-axK1GpWF.js new file mode 100644 index 00000000..28accd46 --- /dev/null +++ b/assets/SearchBox-axK1GpWF.js @@ -0,0 +1,7 @@ +var dt=Object.defineProperty;var ht=(o,e,t)=>e in o?dt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var we=(o,e,t)=>ht(o,typeof e!="symbol"?e+"":e,t);import{f as J,n as de,A as ze,B as ft,C as pt,l as Oe,D as vt,_ as be,o as B,c as W,a as x,j as mt,E as gt,G as bt,q as yt,H as xe,I as Pe,J as wt,K as xt,g as _e,L as te,M as ae,N as _t,O as St,P as Et,Q as It,R as kt,S as je,i as Tt,T as Nt,d as Se,U as Ft,W as Ot,h as Ve,X as Ct,F as Be,e as ne,t as se,u as Rt,Y as Mt}from"./app-DTZBceJp.js";/*! +* tabbable 6.2.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var Ze=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],fe=Ze.join(","),Xe=typeof Element>"u",U=Xe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pe=!Xe&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},ve=function o(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&o(e.parentNode);return i},At=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},et=function(e,t,n){if(ve(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(fe));return t&&U.call(e,fe)&&s.unshift(e),s=s.filter(n),s},tt=function o(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!ve(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,l=o(c,!0,n);n.flatten?s.push.apply(s,l):s.push({scopeParent:i,candidates:l})}else{var h=U.call(i,fe);h&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var f=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),p=!ve(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(f&&p){var g=o(f===!0?i.children:f.children,!0,n);n.flatten?s.push.apply(s,g):s.push({scopeParent:i,candidates:g})}else r.unshift.apply(r,i.children)}}return s},nt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},K=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||At(e))&&!nt(e)?0:e.tabIndex},Lt=function(e,t){var n=K(e);return n<0&&t&&!nt(e)?0:n},Dt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},st=function(e){return e.tagName==="INPUT"},zt=function(e){return st(e)&&e.type==="hidden"},Pt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},jt=function(e,t){for(var n=0;nsummary:first-of-type"),i=r?e.parentElement:e;if(U.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof s=="function"){for(var a=e;e;){var c=e.parentElement,l=pe(e);if(c&&!c.shadowRoot&&s(c)===!0)return We(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=a}if($t(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return We(e);return!1},Kt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},qt=function o(e){var t=[],n=[];return e.forEach(function(s,r){var i=!!s.scopeParent,a=i?s.scopeParent:s,c=Lt(a,i),l=i?o(s.candidates):a;c===0?i?t.push.apply(t,l):t.push(a):n.push({documentOrder:r,tabIndex:c,item:s,isScope:i,content:l})}),n.sort(Dt).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},Gt=function(e,t){t=t||{};var n;return t.getShadowRoot?n=tt([e],t.includeContainer,{filter:Ce.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ut}):n=et(e,t.includeContainer,Ce.bind(null,t)),qt(n)},Ht=function(e,t){t=t||{};var n;return t.getShadowRoot?n=tt([e],t.includeContainer,{filter:me.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=et(e,t.includeContainer,me.bind(null,t)),n},Q=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return U.call(e,fe)===!1?!1:Ce(t,e)},Qt=Ze.concat("iframe").join(","),Ee=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return U.call(e,Qt)===!1?!1:me(t,e)};/*! +* focus-trap 7.6.0 +* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE +*/function Yt(o,e,t){return(e=Xt(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function $e(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),t.push.apply(t,n)}return t}function Je(o){for(var e=1;e0){var n=e[e.length-1];n!==t&&n.pause()}var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},en=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},tn=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},re=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},nn=function(e){return re(e)&&!e.shiftKey},sn=function(e){return re(e)&&e.shiftKey},Ue=function(e){return setTimeout(e,0)},qe=function(e,t){var n=-1;return e.every(function(s,r){return t(s)?(n=r,!1):!0}),n},ie=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s1?m-1:0),w=1;w=0)u=n.activeElement;else{var d=i.tabbableGroups[0],m=d&&d.firstTabbableNode;u=m||h("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},p=function(){if(i.containerGroups=i.containers.map(function(u){var d=Gt(u,r.tabbableOptions),m=Ht(u,r.tabbableOptions),v=d.length>0?d[0]:void 0,w=d.length>0?d[d.length-1]:void 0,S=m.find(function(F){return Q(F)}),T=m.slice().reverse().find(function(F){return Q(F)}),N=!!d.find(function(F){return K(F)>0});return{container:u,tabbableNodes:d,focusableNodes:m,posTabIndexesFound:N,firstTabbableNode:v,lastTabbableNode:w,firstDomTabbableNode:S,lastDomTabbableNode:T,nextTabbableNode:function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,L=d.indexOf(C);return L<0?A?m.slice(m.indexOf(C)+1).find(function(V){return Q(V)}):m.slice(0,m.indexOf(C)).reverse().find(function(V){return Q(V)}):d[L+(A?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},g=function(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?g(d.shadowRoot):d},b=function(u){if(u!==!1&&u!==g(document)){if(!u||!u.focus){b(f());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,en(u)&&u.select()}},y=function(u){var d=h("setReturnFocus",u);return d||(d===!1?!1:u)},_=function(u){var d=u.target,m=u.event,v=u.isBackward,w=v===void 0?!1:v;d=d||ce(m),p();var S=null;if(i.tabbableGroups.length>0){var T=l(d,m),N=T>=0?i.containerGroups[T]:void 0;if(T<0)w?S=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:S=i.tabbableGroups[0].firstTabbableNode;else if(w){var F=qe(i.tabbableGroups,function(ee){var ye=ee.firstTabbableNode;return d===ye});if(F<0&&(N.container===d||Ee(d,r.tabbableOptions)&&!Q(d,r.tabbableOptions)&&!N.nextTabbableNode(d,!1))&&(F=T),F>=0){var C=F===0?i.tabbableGroups.length-1:F-1,A=i.tabbableGroups[C];S=K(d)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else re(m)||(S=N.nextTabbableNode(d,!1))}else{var L=qe(i.tabbableGroups,function(ee){var ye=ee.lastTabbableNode;return d===ye});if(L<0&&(N.container===d||Ee(d,r.tabbableOptions)&&!Q(d,r.tabbableOptions)&&!N.nextTabbableNode(d))&&(L=T),L>=0){var V=L===i.tabbableGroups.length-1?0:L+1,oe=i.tabbableGroups[V];S=K(d)>=0?oe.firstTabbableNode:oe.firstDomTabbableNode}else re(m)||(S=N.nextTabbableNode(d))}}else S=h("fallbackFocus");return S},E=function(u){var d=ce(u);if(!(l(d,u)>=0)){if(ie(r.clickOutsideDeactivates,u)){a.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ie(r.allowOutsideClick,u)||u.preventDefault()}},I=function(u){var d=ce(u),m=l(d,u)>=0;if(m||d instanceof Document)m&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var v,w=!0;if(i.mostRecentlyFocusedNode)if(K(i.mostRecentlyFocusedNode)>0){var S=l(i.mostRecentlyFocusedNode),T=i.containerGroups[S].tabbableNodes;if(T.length>0){var N=T.findIndex(function(F){return F===i.mostRecentlyFocusedNode});N>=0&&(r.isKeyForward(i.recentNavEvent)?N+1=0&&(v=T[N-1],w=!1))}}else i.containerGroups.some(function(F){return F.tabbableNodes.some(function(C){return K(C)>0})})||(w=!1);else w=!1;w&&(v=_({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),b(v||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},M=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var m=_({event:u,isBackward:d});m&&(re(u)&&u.preventDefault(),b(m))},P=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&M(u,r.isKeyBackward(u))},D=function(u){tn(u)&&ie(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),a.deactivate())},z=function(u){var d=ce(u);l(d,u)>=0||ie(r.clickOutsideDeactivates,u)||ie(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},O=function(){if(i.active)return Ke.activateTrap(s,a),i.delayInitialFocusTimer=r.delayInitialFocus?Ue(function(){b(f())}):b(f()),n.addEventListener("focusin",I,!0),n.addEventListener("mousedown",E,{capture:!0,passive:!1}),n.addEventListener("touchstart",E,{capture:!0,passive:!1}),n.addEventListener("click",z,{capture:!0,passive:!1}),n.addEventListener("keydown",P,{capture:!0,passive:!1}),n.addEventListener("keydown",D),a},q=function(){if(i.active)return n.removeEventListener("focusin",I,!0),n.removeEventListener("mousedown",E,!0),n.removeEventListener("touchstart",E,!0),n.removeEventListener("click",z,!0),n.removeEventListener("keydown",P,!0),n.removeEventListener("keydown",D),a},G=function(u){var d=u.some(function(m){var v=Array.from(m.removedNodes);return v.some(function(w){return w===i.mostRecentlyFocusedNode})});d&&b(f())},H=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(G):void 0,j=function(){H&&(H.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){H.observe(u,{subtree:!0,childList:!0})}))};return a={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=c(u,"onActivate"),m=c(u,"onPostActivate"),v=c(u,"checkCanFocusTrap");v||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,d==null||d();var w=function(){v&&p(),O(),j(),m==null||m()};return v?(v(i.containers.concat()).then(w,w),this):(w(),this)},deactivate:function(u){if(!i.active)return this;var d=Je({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,q(),i.active=!1,i.paused=!1,j(),Ke.deactivateTrap(s,a);var m=c(d,"onDeactivate"),v=c(d,"onPostDeactivate"),w=c(d,"checkCanReturnFocus"),S=c(d,"returnFocus","returnFocusOnDeactivate");m==null||m();var T=function(){Ue(function(){S&&b(y(i.nodeFocusedBeforeActivation)),v==null||v()})};return S&&w?(w(y(i.nodeFocusedBeforeActivation)).then(T,T),this):(T(),this)},pause:function(u){if(i.paused||!i.active)return this;var d=c(u,"onPause"),m=c(u,"onPostPause");return i.paused=!0,d==null||d(),q(),j(),m==null||m(),this},unpause:function(u){if(!i.paused||!i.active)return this;var d=c(u,"onUnpause"),m=c(u,"onPostUnpause");return i.paused=!1,d==null||d(),p(),O(),j(),m==null||m(),this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(m){return typeof m=="string"?n.querySelector(m):m}),i.active&&p(),j(),this}},a.updateContainerElements(e),a};function an(o,e={}){let t;const{immediate:n,...s}=e,r=J(!1),i=J(!1),a=p=>t&&t.activate(p),c=p=>t&&t.deactivate(p),l=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)},f=de(()=>{const p=ze(o);return(Array.isArray(p)?p:[p]).map(g=>{const b=ze(g);return typeof b=="string"?b:ft(b)}).filter(pt)});return Oe(f,p=>{p.length&&(t=on(p,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&a())},{flush:"post"}),vt(()=>c()),{hasFocus:r,isPaused:i,activate:a,deactivate:c,pause:l,unpause:h}}class Z{constructor(e,t=!0,n=[],s=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=s}static matches(e,t){const n=typeof t=="string"?[t]:t,s=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(s){let r=!1;return n.every(i=>s.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const s=t.filter(r=>r.contains(n)).length>0;t.indexOf(n)===-1&&!s&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let s;try{const r=e.contentWindow;if(s=r.document,!r||!s)throw new Error("iframe inaccessible")}catch{n()}s&&t(s)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let s=!1,r=null;const i=()=>{if(!s){s=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,s=>{n++,this.waitForIframes(s.querySelector("html"),()=>{--n||t()})},s=>{s||t()})}forEachIframe(e,t,n,s=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,a=0;r=Array.prototype.slice.call(r);const c=()=>{--i<=0&&s(a)};i||c(),r.forEach(l=>{Z.matches(l,this.exclude)?c():this.onIframeReady(l,h=>{t(l)&&(a++,n(h)),c()},c)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new Z(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const s=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(s&r)if(t!==null){const i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_FOLLOWING;if(i&a)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,s){let r=!1,i=!1;return s.forEach((a,c)=>{a.val===n&&(r=c,i=a.handled)}),this.compareNodeIframe(e,t,n)?(r===!1&&!i?s.push({val:n,handled:!0}):r!==!1&&!i&&(s[r].handled=!0),!0):(r===!1&&s.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,s){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,n,s)})})}iterateThroughNodes(e,t,n,s,r){const i=this.createIterator(t,e,s);let a=[],c=[],l,h,f=()=>({prevNode:h,node:l}=this.getIteratorNode(i),l);for(;f();)this.iframes&&this.forEachIframe(t,p=>this.checkIframeFilter(l,h,p,a),p=>{this.createInstanceOnIframe(p).forEachNode(e,g=>c.push(g),s)}),c.push(l);c.forEach(p=>{n(p)}),this.iframes&&this.handleOpenIframes(a,e,n,s),r()}forEachNode(e,t,n,s=()=>{}){const r=this.getContexts();let i=r.length;i||s(),r.forEach(a=>{const c=()=>{this.iterateThroughNodes(e,a,t,n,()=>{--i<=0&&s()})};this.iframes?this.waitForIframes(a,c):c()})}}let cn=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Z(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",s=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],a=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);a!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(c)})`,`gm${n}`),s+`(${this.processSynomyms(a)}|${this.processSynomyms(c)})`+s))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,s)=>{let r=s.charAt(n+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let s=[];return e.split("").forEach(r=>{n.every(i=>{if(i.indexOf(r)!==-1){if(s.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),s.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,s=typeof n=="string"?n:n.value,r=typeof n=="string"?[]:n.limiters,i="";switch(r.forEach(a=>{i+=`|${this.escapeStr(a)}`}),s){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(s=>{s.trim()&&t.indexOf(s)===-1&&t.push(s)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,s)=>s.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((s,r)=>s.start-r.start).forEach(s=>{let{start:r,end:i,valid:a}=this.callNoMatchOnInvalidRanges(s,n);a&&(s.start=r,s.length=i-r,t.push(s),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,s,r=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),s=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&s-t>0&&s-n>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:s,valid:r}}checkWhitespaceRanges(e,t,n){let s,r=!0,i=n.length,a=t-i,c=parseInt(e.start,10)-a;return c=c>i?i:c,s=c+parseInt(e.length,10),s>i&&(s=i,this.log(`End range automatically set to the max value of ${i}`)),c<0||s-c<0||c>i||s>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(c,s).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:s,valid:r}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,s=>{n.push({start:t.length,end:(t+=s.textContent).length,node:s})},s=>this.matchesExclude(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return Z.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const s=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t);let a=document.createElement(s);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),i}wrapRangeInMappedTextNode(e,t,n,s,r){e.nodes.every((i,a)=>{const c=e.nodes[a+1];if(typeof c>"u"||c.start>t){if(!s(i.node))return!1;const l=t-i.start,h=(n>i.end?i.end:n)-i.start,f=e.value.substr(0,i.start),p=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,h),e.value=f+p,e.nodes.forEach((g,b)=>{b>=a&&(e.nodes[b].start>0&&b!==a&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),n-=h,r(i.node.previousSibling,i.start),n>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(a=>{a.nodes.forEach(c=>{c=c.node;let l;for(;(l=e.exec(c.textContent))!==null&&l[i]!=="";){if(!n(l[i],c))continue;let h=l.index;if(i!==0)for(let f=1;f{let c;for(;(c=e.exec(a.value))!==null&&c[i]!=="";){let l=c.index;if(i!==0)for(let f=1;fn(c[i],f),(f,p)=>{e.lastIndex=p,s(f)})}r()})}wrapRangeFromIndex(e,t,n,s){this.getTextNodes(r=>{const i=r.value.length;e.forEach((a,c)=>{let{start:l,end:h,valid:f}=this.checkWhitespaceRanges(a,i,r.value);f&&this.wrapRangeInMappedTextNode(r,l,h,p=>t(p,a,r.value.substring(l,h),c),p=>{n(p,a)})}),s()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,s="wrapMatches";const r=i=>{n++,this.opt.each(i)};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),this[s](e,this.opt.ignoreGroups,(i,a)=>this.opt.filter(a,i,n),r,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,s="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),a=this.opt.caseSensitive?"":"i",c=l=>{let h=new RegExp(this.createRegExp(l),`gm${a}`),f=0;this.log(`Searching with expression "${h}"`),this[s](h,1,(p,g)=>this.opt.filter(g,l,n,f),p=>{f++,n++,this.opt.each(p)},()=>{f===0&&this.opt.noMatch(l),r[i-1]===l?this.opt.done(n):c(r[r.indexOf(l)+1])})};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),i===0?this.opt.done(n):c(r[0])}markRanges(e,t){this.opt=t;let n=0,s=this.checkRanges(e);s&&s.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(s)),this.wrapRangeFromIndex(s,(r,i,a,c)=>this.opt.filter(r,i,a,c),(r,i)=>{n++,this.opt.each(r,i)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{const s=Z.matches(n,t),r=this.matchesExclude(n);return!s||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ln(o){const e=new cn(o);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}function he(o,e,t,n){function s(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function a(h){try{l(n.next(h))}catch(f){i(f)}}function c(h){try{l(n.throw(h))}catch(f){i(f)}}function l(h){h.done?r(h.value):s(h.value).then(a,c)}l((n=n.apply(o,[])).next())})}const un="ENTRIES",it="KEYS",rt="VALUES",R="";class Ie{constructor(e,t){const n=e._tree,s=Array.from(n.keys());this.set=e,this._type=t,this._path=s.length>0?[{node:n,keys:s}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=Y(this._path);if(Y(t)===R)return{done:!1,value:this.result()};const n=e.get(Y(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=Y(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Y(e)).filter(e=>e!==R).join("")}value(){return Y(this._path).node.get(R)}result(){switch(this._type){case rt:return this.value();case it:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const Y=o=>o[o.length-1],dn=(o,e,t)=>{const n=new Map;if(e===void 0)return n;const s=e.length+1,r=s+t,i=new Uint8Array(r*s).fill(t+1);for(let a=0;a{const c=r*i;e:for(const l of o.keys())if(l===R){const h=s[c-1];h<=t&&n.set(a,[o.get(l),h])}else{let h=r;for(let f=0;ft)continue e}ot(o.get(l),e,t,n,s,h,i,a+l)}};class ${constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=ge(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=Le(n);for(const i of s.keys())if(i!==R&&i.startsWith(r)){const a=new Map;return a.set(i.slice(r.length),s.get(i)),new $(a,e)}}return new $(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,hn(this._tree,e)}entries(){return new Ie(this,un)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return dn(this._tree,e,t)}get(e){const t=Re(this._tree,e);return t!==void 0?t.get(R):void 0}has(e){const t=Re(this._tree,e);return t!==void 0&&t.has(R)}keys(){return new Ie(this,it)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,ke(this._tree,e).set(R,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ke(this._tree,e);return n.set(R,t(n.get(R))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ke(this._tree,e);let s=n.get(R);return s===void 0&&n.set(R,s=t()),s}values(){return new Ie(this,rt)}[Symbol.iterator](){return this.entries()}static from(e){const t=new $;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return $.from(Object.entries(e))}}const ge=(o,e,t=[])=>{if(e.length===0||o==null)return[o,t];for(const n of o.keys())if(n!==R&&e.startsWith(n))return t.push([o,n]),ge(o.get(n),e.slice(n.length),t);return t.push([o,e]),ge(void 0,"",t)},Re=(o,e)=>{if(e.length===0||o==null)return o;for(const t of o.keys())if(t!==R&&e.startsWith(t))return Re(o.get(t),e.slice(t.length))},ke=(o,e)=>{const t=e.length;e:for(let n=0;o&&n{const[t,n]=ge(o,e);if(t!==void 0){if(t.delete(R),t.size===0)at(n);else if(t.size===1){const[s,r]=t.entries().next().value;ct(n,s,r)}}},at=o=>{if(o.length===0)return;const[e,t]=Le(o);if(e.delete(t),e.size===0)at(o.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==R&&ct(o.slice(0,-1),n,s)}},ct=(o,e,t)=>{if(o.length===0)return;const[n,s]=Le(o);n.set(s+e,t),n.delete(s)},Le=o=>o[o.length-1],De="or",lt="and",fn="and_not";class X{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Fe:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Ne),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},Ge),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},bn),e.autoSuggestOptions||{})}),this._index=new $,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ae,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:n,processTerm:s,fields:r,idField:i}=this._options,a=t(e,i);if(a==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(a))throw new Error(`MiniSearch: duplicate ID ${a}`);const c=this.addDocumentId(a);this.saveStoredFields(c,e);for(const l of r){const h=t(e,l);if(h==null)continue;const f=n(h.toString(),l),p=this._fieldIds[l],g=new Set(f).size;this.addFieldLength(c,p,this._documentCount-1,g);for(const b of f){const y=s(b,l);if(Array.isArray(y))for(const _ of y)this.addTerm(p,c,_);else y&&this.addTerm(p,c,y)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:a,promise:c},l,h)=>(a.push(l),(h+1)%n===0?{chunk:[],promise:c.then(()=>new Promise(f=>setTimeout(f,0))).then(()=>this.addAll(a))}:{chunk:a,promise:c}),s);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:n,extractField:s,fields:r,idField:i}=this._options,a=s(e,i);if(a==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const c=this._idToShortId.get(a);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${a}: it is not in the index`);for(const l of r){const h=s(e,l);if(h==null)continue;const f=t(h.toString(),l),p=this._fieldIds[l],g=new Set(f).size;this.removeFieldLength(c,p,this._documentCount,g);for(const b of f){const y=n(b,l);if(Array.isArray(y))for(const _ of y)this.removeTerm(p,c,_);else y&&this.removeTerm(p,c,y)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(a),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new $,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,s)=>{this.removeFieldLength(t,s,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,s=n(e,t);this.discard(s),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ae,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return he(this,void 0,void 0,function*(){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const s=e.batchSize||Me.batchSize,r=e.batchWait||Me.batchWait;let i=1;for(const[a,c]of this._index){for(const[l,h]of c)for(const[f]of h)this._documentIds.has(f)||(h.size<=1?c.delete(l):h.delete(f));this._index.get(a).size===0&&this._index.delete(a),i%s===0&&(yield new Promise(l=>setTimeout(l,r))),i+=1}this._dirtCount-=n}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||Fe.minDirtCount,n=n||Fe.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const n=this.executeQuery(e,t),s=[];for(const[r,{score:i,terms:a,match:c}]of n){const l=a.length||1,h={id:this._documentIds.get(r),score:i*l,terms:Object.keys(c),queryTerms:a,match:c};Object.assign(h,this._storedFields.get(r)),(t.filter==null||t.filter(h))&&s.push(h)}return e===X.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||s.sort(Qe),s}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const n=new Map;for(const{score:r,terms:i}of this.search(e,t)){const a=i.join(" "),c=n.get(a);c!=null?(c.score+=r,c.count+=1):n.set(a,{score:r,terms:i,count:1})}const s=[];for(const[r,{score:i,terms:a,count:c}]of n)s.push({suggestion:r,terms:a,score:i/c});return s.sort(Qe),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return he(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Ne.hasOwnProperty(e))return Te(Ne,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:a}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=le(s),c._fieldLength=le(r),c._storedFields=le(i);for(const[l,h]of c._documentIds)c._idToShortId.set(h,l);for(const[l,h]of n){const f=new Map;for(const p of Object.keys(h)){let g=h[p];a===1&&(g=g.ds),f.set(parseInt(p,10),le(g))}c._index.set(l,f)}return c}static loadJSAsync(e,t){return he(this,void 0,void 0,function*(){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:a}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=yield ue(s),c._fieldLength=yield ue(r),c._storedFields=yield ue(i);for(const[h,f]of c._documentIds)c._idToShortId.set(f,h);let l=0;for(const[h,f]of n){const p=new Map;for(const g of Object.keys(f)){let b=f[g];a===1&&(b=b.ds),p.set(parseInt(g,10),yield ue(b))}++l%1e3===0&&(yield ut(0)),c._index.set(h,p)}return c})}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:s,fieldIds:r,averageFieldLength:i,dirtCount:a,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new X(t);return l._documentCount=n,l._nextId=s,l._idToShortId=new Map,l._fieldIds=r,l._avgFieldLength=i,l._dirtCount=a||0,l._index=new $,l}executeQuery(e,t={}){if(e===X.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const p=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),g=e.queries.map(b=>this.executeQuery(b,p));return this.combineResults(g,p.combineWith)}const{tokenize:n,processTerm:s,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:n,processTerm:s},r),t),{tokenize:a,processTerm:c}=i,f=a(e).flatMap(p=>c(p)).filter(p=>!!p).map(gn(i)).map(p=>this.executeQuerySpec(p,i));return this.combineResults(f,i.combineWith)}executeQuerySpec(e,t){const n=Object.assign(Object.assign({},this._options.searchOptions),t),s=(n.fields||this._options.fields).reduce((y,_)=>Object.assign(Object.assign({},y),{[_]:Te(n.boost,_)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:a,bm25:c}=n,{fuzzy:l,prefix:h}=Object.assign(Object.assign({},Ge.weights),i),f=this._index.get(e.term),p=this.termResults(e.term,e.term,1,e.termBoost,f,s,r,c);let g,b;if(e.prefix&&(g=this._index.atPrefix(e.term)),e.fuzzy){const y=e.fuzzy===!0?.2:e.fuzzy,_=y<1?Math.min(a,Math.round(e.term.length*y)):y;_&&(b=this._index.fuzzyGet(e.term,_))}if(g)for(const[y,_]of g){const E=y.length-e.term.length;if(!E)continue;b==null||b.delete(y);const I=h*y.length/(y.length+.3*E);this.termResults(e.term,y,I,e.termBoost,_,s,r,c,p)}if(b)for(const y of b.keys()){const[_,E]=b.get(y);if(!E)continue;const I=l*y.length/(y.length+E);this.termResults(e.term,y,I,e.termBoost,_,s,r,c,p)}return p}executeWildcardQuery(e){const t=new Map,n=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[s,r]of this._documentIds){const i=n.boostDocument?n.boostDocument(r,"",this._storedFields.get(s)):1;t.set(s,{score:i,terms:[],match:{}})}return t}combineResults(e,t=De){if(e.length===0)return new Map;const n=t.toLowerCase(),s=pn[n];if(!s)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(s)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const s={};for(const[r,i]of n)s[r]=Object.fromEntries(i);e.push([t,s])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,s,r,i,a,c,l=new Map){if(r==null)return l;for(const h of Object.keys(i)){const f=i[h],p=this._fieldIds[h],g=r.get(p);if(g==null)continue;let b=g.size;const y=this._avgFieldLength[p];for(const _ of g.keys()){if(!this._documentIds.has(_)){this.removeTerm(p,_,t),b-=1;continue}const E=a?a(this._documentIds.get(_),t,this._storedFields.get(_)):1;if(!E)continue;const I=g.get(_),M=this._fieldLength.get(_)[p],P=mn(I,b,this._documentCount,M,y,c),D=n*s*f*E*P,z=l.get(_);if(z){z.score+=D,yn(z.terms,e);const O=Te(z.match,t);O?O.push(h):z.match[t]=[h]}else l.set(_,{score:D,terms:[e],match:{[t]:[h]}})}}return l}addTerm(e,t,n){const s=this._index.fetch(n,Ye);let r=s.get(e);if(r==null)r=new Map,r.set(t,1),s.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const s=this._index.fetch(n,Ye),r=s.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,n):r.get(t)<=1?r.size<=1?s.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${s}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;tObject.prototype.hasOwnProperty.call(o,e)?o[e]:void 0,pn={[De]:(o,e)=>{for(const t of e.keys()){const n=o.get(t);if(n==null)o.set(t,e.get(t));else{const{score:s,terms:r,match:i}=e.get(t);n.score=n.score+s,n.match=Object.assign(n.match,i),He(n.terms,r)}}return o},[lt]:(o,e)=>{const t=new Map;for(const n of e.keys()){const s=o.get(n);if(s==null)continue;const{score:r,terms:i,match:a}=e.get(n);He(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,a)})}return t},[fn]:(o,e)=>{for(const t of e.keys())o.delete(t);return o}},vn={k:1.2,b:.7,d:.5},mn=(o,e,t,n,s,r)=>{const{k:i,b:a,d:c}=r;return Math.log(1+(t-e+.5)/(e+.5))*(c+o*(i+1)/(o+i*(1-a+a*n/s)))},gn=o=>(e,t,n)=>{const s=typeof o.fuzzy=="function"?o.fuzzy(e,t,n):o.fuzzy||!1,r=typeof o.prefix=="function"?o.prefix(e,t,n):o.prefix===!0,i=typeof o.boostTerm=="function"?o.boostTerm(e,t,n):1;return{term:e,fuzzy:s,prefix:r,termBoost:i}},Ne={idField:"id",extractField:(o,e)=>o[e],tokenize:o=>o.split(wn),processTerm:o=>o.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(o,e)=>{typeof(console==null?void 0:console[o])=="function"&&console[o](e)},autoVacuum:!0},Ge={combineWith:De,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:vn},bn={combineWith:lt,prefix:(o,e,t)=>e===t.length-1},Me={batchSize:1e3,batchWait:10},Ae={minDirtFactor:.1,minDirtCount:20},Fe=Object.assign(Object.assign({},Me),Ae),yn=(o,e)=>{o.includes(e)||o.push(e)},He=(o,e)=>{for(const t of e)o.includes(t)||o.push(t)},Qe=({score:o},{score:e})=>e-o,Ye=()=>new Map,le=o=>{const e=new Map;for(const t of Object.keys(o))e.set(parseInt(t,10),o[t]);return e},ue=o=>he(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const n of Object.keys(o))e.set(parseInt(n,10),o[n]),++t%1e3===0&&(yield ut(0));return e}),ut=o=>new Promise(e=>setTimeout(e,o)),wn=/[\n\r\p{Z}\p{P}]+/u;var xn=class{constructor(o=10){we(this,"max");we(this,"cache");this.max=o,this.cache=new Map}get(o){const e=this.cache.get(o);return e!==void 0&&(this.cache.delete(o),this.cache.set(o,e)),e}set(o,e){this.cache.has(o)?this.cache.delete(o):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(o,e)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}};const _n={},Sn={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function En(o,e){return B(),W("svg",Sn,e[0]||(e[0]=[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 12H5m7 7l-7-7l7-7"},null,-1)]))}const In=be(_n,[["render",En],["__file","BackIcon.vue"]]),kn={},Tn={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function Nn(o,e){return B(),W("svg",Tn,e[0]||(e[0]=[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 5H9l-7 7l7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm-2 4l-6 6m0-6l6 6"},null,-1)]))}const Fn=be(kn,[["render",Nn],["__file","ClearIcon.vue"]]),On={},Cn={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function Rn(o,e){return B(),W("svg",Cn,e[0]||(e[0]=[x("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[x("circle",{cx:"11",cy:"11",r:"8"}),x("path",{d:"m21 21l-4.35-4.35"})],-1)]))}const Mn=be(On,[["render",Rn],["__file","SearchIcon.vue"]]),An=mt({__name:"SearchBox",props:{locales:{},options:{}},emits:["close"],setup(o,{expose:e,emit:t}){e();const n=o,s=t,r=gt(),i=bt(yt(n.locales)),a=xe(),c=xe(),l=kt(),{activate:h}=an(a,{immediate:!0}),f=Pe(async()=>{var v,w,S,T,N;return je(X.loadJSON((S=await((w=(v=l.value)[r.value])==null?void 0:w.call(v)))==null?void 0:S.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1}},...(T=n.options.miniSearch)==null?void 0:T.searchOptions,...(N=n.options.miniSearch)==null?void 0:N.options}))}),p=de(()=>{var v;return((v=n.options)==null?void 0:v.disableQueryPersistence)===!0}),g=p.value?J(""):wt("vuepress-plume:mini-search-filter",""),b=de(()=>i.value.buttonText||i.value.placeholder||"Search"),y=xe([]),_=J(!1);Oe(g,()=>{_.value=!1});const E=Pe(async()=>{if(c.value)return je(new ln(c.value))},null),I=new xn(16);xt(()=>[f.value,g.value],async([v,w],S,T)=>{(S==null?void 0:S[0])!==v&&I.clear();let N=!1;if(T(()=>{N=!0}),!v)return;y.value=v.search(w).slice(0,16).map(C=>{var A;return C.titles=((A=C.titles)==null?void 0:A.filter(Boolean))||[],C}),_.value=!0;const F=new Set;y.value=y.value.map(C=>{const[A,L]=C.id.split("#"),V=I.get(A),oe=(V==null?void 0:V.get(L))??"";for(const ee in C.match)F.add(ee);return{...C,text:oe}}),await te(),!N&&await new Promise(C=>{var A;(A=E.value)==null||A.unmark({done:()=>{var L;(L=E.value)==null||L.markRegExp(d(F),{done:C})}})})},{debounce:200,immediate:!0});const M=J(),P=de(()=>{var v;return((v=g.value)==null?void 0:v.length)<=0});function D(v=!0){var w,S;(w=M.value)==null||w.focus(),v&&((S=M.value)==null||S.select())}_e(()=>{D()});function z(v){v.pointerType==="mouse"&&D()}const O=J(-1),q=J(!1);Oe(y,v=>{O.value=v.length?0:-1,G()});function G(){te(()=>{const v=document.querySelector(".result.selected");v&&v.scrollIntoView({block:"nearest"})})}ae("ArrowUp",v=>{v.preventDefault(),O.value--,O.value<0&&(O.value=y.value.length-1),q.value=!0,G()}),ae("ArrowDown",v=>{v.preventDefault(),O.value++,O.value>=y.value.length&&(O.value=0),q.value=!0,G()});const H=_t();ae("Enter",v=>{if(v.isComposing||v.target instanceof HTMLButtonElement&&v.target.type!=="submit")return;const w=y.value[O.value];if(v.target instanceof HTMLInputElement&&!w){v.preventDefault();return}w&&(H.go(w.id),s("close"))}),ae("Escape",()=>{s("close")}),_e(()=>{window.history.pushState(null,"",null)}),St("popstate",v=>{v.preventDefault(),s("close")});const j=Et(typeof document<"u"?document.body:null);_e(()=>{te(()=>{j.value=!0,te().then(()=>h())})}),It(()=>{j.value=!1});function k(){g.value="",te().then(()=>D(!1))}function u(v){return v.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function d(v){return new RegExp([...v].sort((w,S)=>S.length-w.length).map(w=>`(${u(w)})`).join("|"),"gi")}const m={props:n,emit:s,routeLocale:r,locale:i,el:a,resultsEl:c,searchIndexData:l,activate:h,searchIndex:f,disableQueryPersistence:p,filterText:g,buttonText:b,results:y,enableNoResults:_,mark:E,cache:I,searchInput:M,disableReset:P,focusSearchInput:D,onSearchBarClick:z,selectedIndex:O,disableMouseOver:q,scrollToSelectedResult:G,router:H,isLocked:j,resetSearch:k,escapeRegExp:u,formMarkRegex:d,BackIcon:In,ClearIcon:Fn,SearchIcon:Mn};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),Ln=["aria-owns"],Dn={class:"shell"},zn=["title"],Pn={class:"search-actions before"},jn=["title"],Vn=["placeholder"],Bn={class:"search-actions"},Wn=["disabled","title"],$n=["id","role","aria-labelledby"],Jn=["aria-selected"],Kn=["href","aria-label","onMouseenter","onFocusin"],Un={class:"titles"},qn=["innerHTML"],Gn={class:"title main"},Hn=["innerHTML"],Qn={key:0,class:"no-results"},Yn={class:"search-keyboard-shortcuts"},Zn=["aria-label"],Xn=["aria-label"],es=["aria-label"],ts=["aria-label"];function ns(o,e,t,n,s,r){var i,a,c,l,h,f,p,g,b,y,_;return B(),Tt(Mt,{to:"body"},[x("div",{ref:"el",role:"button","aria-owns":(i=n.results)!=null&&i.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"mini-search-label",class:"VPLocalSearchBox"},[x("div",{class:"backdrop",onClick:e[0]||(e[0]=E=>o.$emit("close"))}),x("div",Dn,[x("form",{class:"search-bar",onPointerup:e[3]||(e[3]=E=>n.onSearchBarClick(E)),onSubmit:e[4]||(e[4]=Nt(()=>{},["prevent"]))},[x("label",{id:"localsearch-label",title:n.buttonText,for:"localsearch-input"},[Se(n.SearchIcon,{class:"search-icon"})],8,zn),x("div",Pn,[x("button",{class:"back-button",title:n.locale.backButtonTitle,onClick:e[1]||(e[1]=E=>o.$emit("close"))},[Se(n.BackIcon)],8,jn)]),Ft(x("input",{id:"localsearch-input",ref:"searchInput","onUpdate:modelValue":e[2]||(e[2]=E=>n.filterText=E),placeholder:n.buttonText,"aria-labelledby":"localsearch-label",class:"search-input"},null,8,Vn),[[Ot,n.filterText]]),x("div",Bn,[x("button",{class:"clear-button",type:"reset",disabled:n.disableReset,title:n.locale.resetButtonTitle,onClick:n.resetSearch},[Se(n.ClearIcon)],8,Wn)])],32),x("ul",{id:(a=n.results)!=null&&a.length?"localsearch-list":void 0,ref:"resultsEl",role:(c=n.results)!=null&&c.length?"listbox":void 0,"aria-labelledby":(l=n.results)!=null&&l.length?"localsearch-label":void 0,class:"results",onMousemove:e[6]||(e[6]=E=>n.disableMouseOver=!1)},[(B(!0),W(Be,null,Ve(n.results,(E,I)=>(B(),W("li",{key:E.id,role:"option","aria-selected":n.selectedIndex===I?"true":"false"},[x("a",{href:E.id,class:Ct(["result",{selected:n.selectedIndex===I}]),"aria-label":[...E.titles,E.title].join(" > "),onMouseenter:M=>!n.disableMouseOver&&(n.selectedIndex=I),onFocusin:M=>n.selectedIndex=I,onClick:e[5]||(e[5]=M=>o.$emit("close"))},[x("div",null,[x("div",Un,[e[8]||(e[8]=x("span",{class:"title-icon"},"#",-1)),(B(!0),W(Be,null,Ve(E.titles,(M,P)=>(B(),W("span",{key:P,class:"title"},[x("span",{class:"text",innerHTML:M},null,8,qn),e[7]||(e[7]=x("svg",{width:"18",height:"18",viewBox:"0 0 24 24"},[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"})],-1))]))),128)),x("span",Gn,[x("span",{class:"text",innerHTML:E.title},null,8,Hn)])])])],42,Kn)],8,Jn))),128)),n.filterText&&!n.results.length&&n.enableNoResults?(B(),W("li",Qn,[ne(se(n.locale.noResultsText)+' "',1),x("strong",null,se(n.filterText),1),e[9]||(e[9]=ne('" '))])):Rt("",!0)],40,$n),x("div",Yn,[x("span",null,[x("kbd",{"aria-label":((h=n.locale.footer)==null?void 0:h.navigateUpKeyAriaLabel)??""},e[10]||(e[10]=[x("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19V5m-7 7l7-7l7 7"})],-1)]),8,Zn),x("kbd",{"aria-label":((f=n.locale.footer)==null?void 0:f.navigateDownKeyAriaLabel)??""},e[11]||(e[11]=[x("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m7-7l-7 7l-7-7"})],-1)]),8,Xn),ne(" "+se(((p=n.locale.footer)==null?void 0:p.navigateText)??""),1)]),x("span",null,[x("kbd",{"aria-label":((g=n.locale.footer)==null?void 0:g.selectKeyAriaLabel)??""},e[12]||(e[12]=[x("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[x("g",{fill:"none",stroke:"currentcolor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[x("path",{d:"m9 10l-5 5l5 5"}),x("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})])],-1)]),8,es),ne(" "+se(((b=n.locale.footer)==null?void 0:b.selectText)??""),1)]),x("span",null,[x("kbd",{"aria-label":((y=n.locale.footer)==null?void 0:y.closeKeyAriaLabel)??""},"esc",8,ts),ne(" "+se(((_=n.locale.footer)==null?void 0:_.closeText)??""),1)])])])],8,Ln)])}const os=be(An,[["render",ns],["__scopeId","data-v-57826c17"],["__file","SearchBox.vue"]]);export{os as default}; diff --git a/assets/app-DTZBceJp.js b/assets/app-DTZBceJp.js new file mode 100644 index 00000000..55ec5949 --- /dev/null +++ b/assets/app-DTZBceJp.js @@ -0,0 +1,114 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.html-D1c1GOZr.js","assets/custom-hero-Bd1pmfWn.js","assets/index.html-DPUrQdsQ.js"])))=>i.map(i=>d[i]); +const Mv="modulepreload",jv=function(e){return"/"+e},xc={},L=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(n.map(l=>{if(l=jv(l),l in xc)return;xc[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Mv,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return r.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/** +* @vue/shared v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function rr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ae={},jo=[],Qt=()=>{},Nv=()=>!1,Zr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gl=e=>e.startsWith("onUpdate:"),Ge=Object.assign,_l=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Hv=Object.prototype.hasOwnProperty,Le=(e,t)=>Hv.call(e,t),fe=Array.isArray,No=e=>Xr(e)==="[object Map]",ir=e=>Xr(e)==="[object Set]",Pc=e=>Xr(e)==="[object Date]",_e=e=>typeof e=="function",$e=e=>typeof e=="string",on=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",bf=e=>(Ve(e)||_e(e))&&_e(e.then)&&_e(e.catch),yf=Object.prototype.toString,Xr=e=>yf.call(e),Fv=e=>Xr(e).slice(8,-1),wf=e=>Xr(e)==="[object Object]",bl=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ho=rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ps=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zv=/-(\w)/g,Et=ps(e=>e.replace(zv,(t,n)=>n?n.toUpperCase():"")),qv=/\B([A-Z])/g,ln=ps(e=>e.replace(qv,"-$1").toLowerCase()),hs=ps(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ii=ps(e=>e?`on${hs(e)}`:""),pt=(e,t)=>!Object.is(e,t),Ri=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Gi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uv=e=>{const t=$e(e)?Number(e):NaN;return isNaN(t)?e:t};let Sc;const kf=()=>Sc||(Sc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ce(e){if(fe(e)){const t={};for(let n=0;n{if(n){const o=n.split(Gv);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Jv(e){let t="";if(!e||$e(e))return t;for(const n in e){const o=e[n];if($e(o)||typeof o=="number"){const r=n.startsWith("--")?n:ln(n);t+=`${r}:${o};`}}return t}function X(e){let t="";if($e(e))t=e;else if(fe(e))for(let n=0;n?@[\\\]^`{|}~]/g;function og(e,t){return e.replace(ng,n=>`\\${n}`)}function rg(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&ogo(n,t))}const xf=e=>!!(e&&e.__v_isRef===!0),U=e=>$e(e)?e:e==null?"":fe(e)||Ve(e)&&(e.toString===yf||!_e(e.toString))?xf(e)?U(e.value):JSON.stringify(e,Pf,2):String(e),Pf=(e,t)=>xf(t)?Pf(e,t.value):No(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Ns(o,i)+" =>"]=r,n),{})}:ir(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ns(n))}:on(t)?Ns(t):Ve(t)&&!fe(t)&&!wf(t)?String(t):t,Ns=(e,t="")=>{var n;return on(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ct;class ig{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ct,!t&&ct&&(this.index=(ct.scopes||(ct.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;let e;for(;Do;){let t=Do,n;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=Do,Do=void 0;t;){if(n=t.next,t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function Lf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Of(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),xl(o),ag(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function xa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($f(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $f(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir))return;e.globalVersion=Ir;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!xa(e)){e.flags&=-3;return}const n=Re,o=Nt;Re=e,Nt=!0;try{Lf(e);const r=e.fn(e._value);(t.version===0||pt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Re=n,Nt=o,Of(e),e.flags&=-3}}function xl(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o),!n.subs&&n.computed){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)xl(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ag(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Nt=!0;const Vf=[];function Pn(){Vf.push(Nt),Nt=!1}function Sn(){const e=Vf.pop();Nt=e===void 0?!0:e}function Ac(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let Ir=0;class lg{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ms{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Re||!Nt||Re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink=new lg(Re,this),Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,Bf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=o)}return n}trigger(t){this.version++,Ir++,this.notify(t)}notify(t){kl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{El()}}}function Bf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Bf(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ki=new WeakMap,ho=Symbol(""),Pa=Symbol(""),Rr=Symbol("");function st(e,t,n){if(Nt&&Re){let o=Ki.get(e);o||Ki.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new ms),r.target=e,r.map=o,r.key=n),r.track()}}function xn(e,t,n,o,r,i){const s=Ki.get(e);if(!s){Ir++;return}const a=l=>{l&&l.trigger()};if(kl(),t==="clear")s.forEach(a);else{const l=fe(e),c=l&&bl(n);if(l&&n==="length"){const u=Number(o);s.forEach((d,f)=>{(f==="length"||f===Rr||!on(f)&&f>=u)&&a(d)})}else switch(n!==void 0&&a(s.get(n)),c&&a(s.get(Rr)),t){case"add":l?c&&a(s.get("length")):(a(s.get(ho)),No(e)&&a(s.get(Pa)));break;case"delete":l||(a(s.get(ho)),No(e)&&a(s.get(Pa)));break;case"set":No(e)&&a(s.get(ho));break}}El()}function cg(e,t){const n=Ki.get(e);return n&&n.get(t)}function Lo(e){const t=ke(e);return t===e?t:(st(t,"iterate",Rr),$t(e)?t:t.map(rt))}function vs(e){return st(e=ke(e),"iterate",Rr),e}const ug={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,rt)},concat(...e){return Lo(this).concat(...e.map(t=>fe(t)?Lo(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=rt(e[1]),e))},every(e,t){return pn(this,"every",e,t,void 0,arguments)},filter(e,t){return pn(this,"filter",e,t,n=>n.map(rt),arguments)},find(e,t){return pn(this,"find",e,t,rt,arguments)},findIndex(e,t){return pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pn(this,"findLast",e,t,rt,arguments)},findLastIndex(e,t){return pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return zs(this,"includes",e)},indexOf(...e){return zs(this,"indexOf",e)},join(e){return Lo(this).join(e)},lastIndexOf(...e){return zs(this,"lastIndexOf",e)},map(e,t){return pn(this,"map",e,t,void 0,arguments)},pop(){return dr(this,"pop")},push(...e){return dr(this,"push",e)},reduce(e,...t){return Tc(this,"reduce",e,t)},reduceRight(e,...t){return Tc(this,"reduceRight",e,t)},shift(){return dr(this,"shift")},some(e,t){return pn(this,"some",e,t,void 0,arguments)},splice(...e){return dr(this,"splice",e)},toReversed(){return Lo(this).toReversed()},toSorted(e){return Lo(this).toSorted(e)},toSpliced(...e){return Lo(this).toSpliced(...e)},unshift(...e){return dr(this,"unshift",e)},values(){return Fs(this,"values",rt)}};function Fs(e,t,n){const o=vs(e),r=o[t]();return o!==e&&!$t(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const dg=Array.prototype;function pn(e,t,n,o,r,i){const s=vs(e),a=s!==e&&!$t(e),l=s[t];if(l!==dg[t]){const d=l.apply(e,i);return a?rt(d):d}let c=n;s!==e&&(a?c=function(d,f){return n.call(this,rt(d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=l.call(s,c,o);return a&&r?r(u):u}function Tc(e,t,n,o){const r=vs(e);let i=n;return r!==e&&($t(e)?n.length>3&&(i=function(s,a,l){return n.call(this,s,a,l,e)}):i=function(s,a,l){return n.call(this,s,rt(a),l,e)}),r[t](i,...o)}function zs(e,t,n){const o=ke(e);st(o,"iterate",Rr);const r=o[t](...n);return(r===-1||r===!1)&&Al(n[0])?(n[0]=ke(n[0]),o[t](...n)):r}function dr(e,t,n=[]){Pn(),kl();const o=ke(e)[t].apply(e,n);return El(),Sn(),o}const fg=rr("__proto__,__v_isRef,__isVue"),If=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(on));function pg(e){on(e)||(e=String(e));const t=ke(this);return st(t,"has",e),t.hasOwnProperty(e)}class Rf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Sg:Nf:i?jf:Mf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=fe(t);if(!r){let l;if(s&&(l=ug[n]))return l;if(n==="hasOwnProperty")return pg}const a=Reflect.get(t,n,Fe(t)?t:o);return(on(n)?If.has(n):fg(n))||(r||st(t,"get",n),i)?a:Fe(a)?s&&bl(n)?a:a.value:Ve(a)?r?Zt(a):ei(a):a}}class Df extends Rf{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const l=_o(i);if(!$t(o)&&!_o(o)&&(i=ke(i),o=ke(o)),!fe(t)&&Fe(i)&&!Fe(o))return l?!1:(i.value=o,!0)}const s=fe(t)&&bl(n)?Number(n)e,gs=e=>Reflect.getPrototypeOf(e);function hi(e,t,n=!1,o=!1){e=e.__v_raw;const r=ke(e),i=ke(t);n||(pt(t,i)&&st(r,"get",t),st(r,"get",i));const{has:s}=gs(r),a=o?Pl:n?Tl:rt;if(s.call(r,t))return a(e.get(t));if(s.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function mi(e,t=!1){const n=this.__v_raw,o=ke(n),r=ke(e);return t||(pt(e,r)&&st(o,"has",e),st(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function vi(e,t=!1){return e=e.__v_raw,!t&&st(ke(e),"iterate",ho),Reflect.get(e,"size",e)}function Lc(e,t=!1){!t&&!$t(e)&&!_o(e)&&(e=ke(e));const n=ke(this);return gs(n).has.call(n,e)||(n.add(e),xn(n,"add",e,e)),this}function Oc(e,t,n=!1){!n&&!$t(t)&&!_o(t)&&(t=ke(t));const o=ke(this),{has:r,get:i}=gs(o);let s=r.call(o,e);s||(e=ke(e),s=r.call(o,e));const a=i.call(o,e);return o.set(e,t),s?pt(t,a)&&xn(o,"set",e,t):xn(o,"add",e,t),this}function $c(e){const t=ke(this),{has:n,get:o}=gs(t);let r=n.call(t,e);r||(e=ke(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&xn(t,"delete",e,void 0),i}function Vc(){const e=ke(this),t=e.size!==0,n=e.clear();return t&&xn(e,"clear",void 0,void 0),n}function gi(e,t){return function(o,r){const i=this,s=i.__v_raw,a=ke(s),l=t?Pl:e?Tl:rt;return!e&&st(a,"iterate",ho),s.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function _i(e,t,n){return function(...o){const r=this.__v_raw,i=ke(r),s=No(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=r[e](...o),u=n?Pl:t?Tl:rt;return!t&&st(i,"iterate",l?Pa:ho),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Tn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _g(){const e={get(i){return hi(this,i)},get size(){return vi(this)},has:mi,add:Lc,set:Oc,delete:$c,clear:Vc,forEach:gi(!1,!1)},t={get(i){return hi(this,i,!1,!0)},get size(){return vi(this)},has:mi,add(i){return Lc.call(this,i,!0)},set(i,s){return Oc.call(this,i,s,!0)},delete:$c,clear:Vc,forEach:gi(!1,!0)},n={get(i){return hi(this,i,!0)},get size(){return vi(this,!0)},has(i){return mi.call(this,i,!0)},add:Tn("add"),set:Tn("set"),delete:Tn("delete"),clear:Tn("clear"),forEach:gi(!0,!1)},o={get(i){return hi(this,i,!0,!0)},get size(){return vi(this,!0)},has(i){return mi.call(this,i,!0)},add:Tn("add"),set:Tn("set"),delete:Tn("delete"),clear:Tn("clear"),forEach:gi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_i(i,!1,!1),n[i]=_i(i,!0,!1),t[i]=_i(i,!1,!0),o[i]=_i(i,!0,!0)}),[e,n,t,o]}const[bg,yg,wg,kg]=_g();function Sl(e,t){const n=t?e?kg:wg:e?yg:bg;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Le(n,r)&&r in o?n:o,r,i)}const Eg={get:Sl(!1,!1)},xg={get:Sl(!1,!0)},Pg={get:Sl(!0,!1)};const Mf=new WeakMap,jf=new WeakMap,Nf=new WeakMap,Sg=new WeakMap;function Cg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ag(e){return e.__v_skip||!Object.isExtensible(e)?0:Cg(Fv(e))}function ei(e){return _o(e)?e:Cl(e,!1,mg,Eg,Mf)}function Hf(e){return Cl(e,!1,gg,xg,jf)}function Zt(e){return Cl(e,!0,vg,Pg,Nf)}function Cl(e,t,n,o,r){if(!Ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ag(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function Fo(e){return _o(e)?Fo(e.__v_raw):!!(e&&e.__v_isReactive)}function _o(e){return!!(e&&e.__v_isReadonly)}function $t(e){return!!(e&&e.__v_isShallow)}function Al(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function Tg(e){return!Le(e,"__v_skip")&&Object.isExtensible(e)&&Jo(e,"__v_skip",!0),e}const rt=e=>Ve(e)?ei(e):e,Tl=e=>Ve(e)?Zt(e):e;function Fe(e){return e?e.__v_isRef===!0:!1}function I(e){return Ff(e,!1)}function je(e){return Ff(e,!0)}function Ff(e,t){return Fe(e)?e:new Lg(e,t)}class Lg{constructor(t,n){this.dep=new ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ke(t),this._value=n?t:rt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||$t(t)||_o(t);t=o?t:ke(t),pt(t,n)&&(this._rawValue=t,this._value=o?t:rt(t),this.dep.trigger())}}function kn(e){return Fe(e)?e.value:e}function wt(e){return _e(e)?e():kn(e)}const Og={get:(e,t,n)=>t==="__v_raw"?e:kn(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Fe(r)&&!Fe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function zf(e){return Fo(e)?e:new Proxy(e,Og)}class $g{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ms,{get:o,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function _s(e){return new $g(e)}function Ll(e){const t=fe(e)?new Array(e.length):{};for(const n in e)t[n]=qf(e,n);return t}class Vg{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return cg(ke(this._object),this._key)}}class Bg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function bo(e,t,n){return Fe(e)?e:_e(e)?new Bg(e):Ve(e)&&arguments.length>1?qf(e,t,n):I(e)}function qf(e,t,n){const o=e[t];return Fe(o)?o:new Vg(e,t,n)}class Ig{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Re!==this)return Tf(this),!0}get value(){const t=this.dep.track();return $f(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Rg(e,t,n=!1){let o,r;return _e(e)?o=e:(o=e.get,r=e.set),new Ig(o,r,n)}const bi={},Yi=new WeakMap;let lo;function Dg(e,t=!1,n=lo){if(n){let o=Yi.get(n);o||Yi.set(n,o=[]),o.push(e)}}function Mg(e,t,n=Ae){const{immediate:o,deep:r,once:i,scheduler:s,augmentJob:a,call:l}=n,c=P=>r?P:$t(P)||r===!1||r===0?yn(P,1):yn(P);let u,d,f,p,m=!1,g=!1;if(Fe(e)?(d=()=>e.value,m=$t(e)):Fo(e)?(d=()=>c(e),m=!0):fe(e)?(g=!0,m=e.some(P=>Fo(P)||$t(P)),d=()=>e.map(P=>{if(Fe(P))return P.value;if(Fo(P))return c(P);if(_e(P))return l?l(P,2):P()})):_e(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){Pn();try{f()}finally{Sn()}}const P=lo;lo=u;try{return l?l(e,3,[p]):e(p)}finally{lo=P}}:d=Qt,t&&r){const P=d,R=r===!0?1/0:r;d=()=>yn(P(),R)}const b=Sf(),w=()=>{u.stop(),b&&_l(b.effects,u)};if(i&&t){const P=t;t=(...R)=>{P(...R),w()}}let S=g?new Array(e.length).fill(bi):bi;const y=P=>{if(!(!(u.flags&1)||!u.dirty&&!P))if(t){const R=u.run();if(r||m||(g?R.some((M,q)=>pt(M,S[q])):pt(R,S))){f&&f();const M=lo;lo=u;try{const q=[R,S===bi?void 0:g&&S[0]===bi?[]:S,p];l?l(t,3,q):t(...q),S=R}finally{lo=M}}}else u.run()};return a&&a(y),u=new Cf(d),u.scheduler=s?()=>s(y,!1):y,p=P=>Dg(P,!1,u),f=u.onStop=()=>{const P=Yi.get(u);if(P){if(l)l(P,4);else for(const R of P)R();Yi.delete(u)}},t?o?y(!0):S=u.run():s?s(y.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function yn(e,t=1/0,n){if(t<=0||!Ve(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Fe(e))yn(e.value,t,n);else if(fe(e))for(let o=0;o{yn(o,t,n)});else if(wf(e)){for(const o in e)yn(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&yn(e[o],t,n)}return e}/** +* @vue/runtime-core v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const kr=[];let qs=!1;function Bn(e,...t){if(qs)return;qs=!0,Pn();const n=kr.length?kr[kr.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=jg();if(o)sr(o,n,11,[e+t.map(i=>{var s,a;return(a=(s=i.toString)==null?void 0:s.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Hp(n,i.type)}>`).join(` +`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` +`,...Ng(r)),console.warn(...i)}Sn(),qs=!1}function jg(){let e=kr[kr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Ng(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[` +`],...Hg(n))}),t}function Hg({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Hp(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...Fg(e.props),i]:[r+i]}function Fg(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Uf(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Uf(e,t,n){return $e(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Fe(t)?(t=Uf(e,ke(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):_e(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ke(t),n?t:[`${e}=`,t])}function sr(e,t,n,o){try{return o?e(...o):e()}catch(r){ti(r,t,n)}}function qt(e,t,n,o){if(_e(e)){const r=sr(e,t,n,o);return r&&bf(r)&&r.catch(i=>{ti(i,t,n)}),r}if(fe(e)){const r=[];for(let i=0;i>>1,r=ut[o],i=Mr(r);i=Mr(n)?ut.push(e):ut.splice(qg(t),0,e),e.flags|=1,Gf()}}function Gf(){!Dr&&!Sa&&(Sa=!0,Ol=Wf.then(Kf))}function Ug(e){fe(e)?zo.push(...e):Dn&&e.id===-1?Dn.splice(Bo+1,0,e):e.flags&1||(zo.push(e),e.flags|=1),Gf()}function Bc(e,t,n=Dr?Gt+1:0){for(;nMr(n)-Mr(o));if(zo.length=0,Dn){Dn.push(...t);return}for(Dn=t,Bo=0;Boe.id==null?e.flags&2?-1:1/0:e.id;function Kf(e){Sa=!1,Dr=!0;try{for(Gt=0;GtJt.emit(r,...i)),_r=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Yf(i,t)}),setTimeout(()=>{Jt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ca=!0,_r=[])},3e3)):(Ca=!0,_r=[])}function Wg(e,t){bs("app:init",e,t,{Fragment:J,Text:Fn,Comment:Xe,Static:Uo})}function Gg(e){bs("app:unmount",e)}const Kg=Vl("component:added"),Jf=Vl("component:updated"),Yg=Vl("component:removed"),Jg=e=>{Jt&&typeof Jt.cleanupBuffer=="function"&&!Jt.cleanupBuffer(e)&&Yg(e)};/*! #__NO_SIDE_EFFECTS__ */function Vl(e){return t=>{bs(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Qg(e,t,n){bs("component:emit",e.appContext.app,e,t,n)}let Qe=null,ys=null;function Qi(e){const t=Qe;return Qe=e,ys=e&&e.type.__scopeId||null,t}function Zg(e){ys=e}function Xg(){ys=null}const e1=e=>A;function A(e,t=Qe,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Yc(-1);const i=Qi(t);let s;try{s=e(...r)}finally{Qi(i),o._d&&Yc(1)}return Jf(t),s};return o._n=!0,o._c=!0,o._d=!0,o}function jt(e,t){if(Qe===null)return e;const n=xs(Qe),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Er=e=>e&&(e.disabled||e.disabled===""),t1=e=>e&&(e.defer||e.defer===""),Ic=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Rc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Aa=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},n1={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:g,createComment:b}}=c,w=Er(t.props);let{shapeFlag:S,children:y,dynamicChildren:P}=t;if(e==null){const R=t.el=g(""),M=t.anchor=g("");p(R,n,o),p(M,n,o);const q=(H,$)=>{S&16&&(r&&r.isCE&&(r.ce._teleportTarget=H),u(y,H,$,r,i,s,a,l))},Q=()=>{const H=t.target=Aa(t.props,m),$=Xf(H,t,g,p);H&&(s!=="svg"&&Ic(H)?s="svg":s!=="mathml"&&Rc(H)&&(s="mathml"),w||(q(H,$),Di(t)))};w&&(q(n,M),Di(t)),t1(t.props)?ft(Q,i):Q()}else{t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,M=t.target=e.target,q=t.targetAnchor=e.targetAnchor,Q=Er(e.props),H=Q?n:M,$=Q?R:q;if(s==="svg"||Ic(M)?s="svg":(s==="mathml"||Rc(M))&&(s="mathml"),P?(f(e.dynamicChildren,P,H,r,i,s,a),Ml(e,t,!0)):l||d(e,t,H,$,r,i,s,a,!1),w)Q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):yi(t,n,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=Aa(t.props,m);W&&yi(t,W,null,c,0)}else Q&&yi(t,M,q,c,1);Di(t)}},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),i&&r(l),s&16){const p=i||!Er(f);for(let m=0;m{e.isMounted=!0}),Il(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],ep={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},tp=e=>{const t=e.subTree;return t.component?tp(t.component):t},i1={name:"BaseTransition",props:ep,setup(e,{slots:t}){const n=Zn(),o=r1();return()=>{const r=t.default&&rp(t.default(),!0);if(!r||!r.length)return;const i=np(r),s=ke(e),{mode:a}=s;if(o.isLeaving)return Us(i);const l=Dc(i);if(!l)return Us(i);let c=Ta(l,s,o,n,f=>c=f);l.type!==Xe&&jr(l,c);const u=n.subTree,d=u&&Dc(u);if(d&&d.type!==Xe&&!fo(l,d)&&tp(n).type!==Xe){const f=Ta(d,s,o,n);if(jr(d,f),a==="out-in"&&l.type!==Xe)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave},Us(i);a==="in-out"&&l.type!==Xe&&(f.delayLeave=(p,m,g)=>{const b=op(o,d);b[String(d.key)]=d,p[Mn]=()=>{m(),p[Mn]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return i}}};function np(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Xe){t=n;break}}return t}const s1=i1;function op(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ta(e,t,n,o,r){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:b,onAppear:w,onAfterAppear:S,onAppearCancelled:y}=t,P=String(e.key),R=op(n,e),M=(H,$)=>{H&&qt(H,o,9,$)},q=(H,$)=>{const W=$[1];M(H,$),fe(H)?H.every(z=>z.length<=1)&&W():H.length<=1&&W()},Q={mode:s,persisted:a,beforeEnter(H){let $=l;if(!n.isMounted)if(i)$=b||l;else return;H[Mn]&&H[Mn](!0);const W=R[P];W&&fo(e,W)&&W.el[Mn]&&W.el[Mn](),M($,[H])},enter(H){let $=c,W=u,z=d;if(!n.isMounted)if(i)$=w||c,W=S||u,z=y||d;else return;let oe=!1;const he=H[wi]=we=>{oe||(oe=!0,we?M(z,[H]):M(W,[H]),Q.delayedLeave&&Q.delayedLeave(),H[wi]=void 0)};$?q($,[H,he]):he()},leave(H,$){const W=String(e.key);if(H[wi]&&H[wi](!0),n.isUnmounting)return $();M(f,[H]);let z=!1;const oe=H[Mn]=he=>{z||(z=!0,$(),he?M(g,[H]):M(m,[H]),H[Mn]=void 0,R[W]===e&&delete R[W])};R[W]=e,p?q(p,[H,oe]):oe()},clone(H){const $=Ta(H,t,n,o,r);return r&&r($),$}};return Q}function Us(e){if(ni(e))return e=Gn(e),e.children=null,e}function Dc(e){if(!ni(e))return Zf(e.type)&&e.children?np(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_e(n.default))return n.default()}}function jr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rp(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iZi(m,t&&(fe(t)?t[g]:t),n,o,r));return}if(mo(o)&&!r)return;const i=o.shapeFlag&4?xs(o.component):o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ae?a.refs={}:a.refs,d=a.setupState,f=ke(d),p=d===Ae?()=>!1:m=>Le(f,m);if(c!=null&&c!==l&&($e(c)?(u[c]=null,p(c)&&(d[c]=null)):Fe(c)&&(c.value=null)),_e(l))sr(l,a,12,[s,u]);else{const m=$e(l),g=Fe(l);if(m||g){const b=()=>{if(e.f){const w=m?p(l)?d[l]:u[l]:l.value;r?fe(w)&&_l(w,i):fe(w)?w.includes(i)||w.push(i):m?(u[l]=[i],p(l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else m?(u[l]=s,p(l)&&(d[l]=s)):g&&(l.value=s,e.k&&(u[e.k]=s))};s?(b.id=-1,ft(b,n)):b()}}}let Mc=!1;const no=()=>{Mc||(console.error("Hydration completed but contains mismatches."),Mc=!0)},a1=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",l1=e=>e.namespaceURI.includes("MathML"),ki=e=>{if(e.nodeType===1){if(a1(e))return"svg";if(l1(e))return"mathml"}},uo=e=>e.nodeType===8;function c1(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:c}}=e,u=(y,P)=>{if(!P.hasChildNodes()){Bn("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,y,P),Ji(),P._vnode=y;return}d(P.firstChild,y,null,null,null),Ji(),P._vnode=y},d=(y,P,R,M,q,Q=!1)=>{Q=Q||!!P.dynamicChildren;const H=uo(y)&&y.data==="[",$=()=>g(y,P,R,M,q,H),{type:W,ref:z,shapeFlag:oe,patchFlag:he}=P;let we=y.nodeType;P.el=y,Jo(y,"__vnode",P,!0),Jo(y,"__vueParentComponent",R,!0),he===-2&&(Q=!1,P.dynamicChildren=null);let re=null;switch(W){case Fn:we!==3?P.children===""?(l(P.el=r(""),s(y),y),re=y):re=$():(y.data!==P.children&&(Bn("Hydration text mismatch in",y.parentNode,` + - rendered on server: ${JSON.stringify(y.data)} + - expected on client: ${JSON.stringify(P.children)}`),no(),y.data=P.children),re=i(y));break;case Xe:S(y)?(re=i(y),w(P.el=y.content.firstChild,y,R)):we!==8||H?re=$():re=i(y);break;case Uo:if(H&&(y=i(y),we=y.nodeType),we===1||we===3){re=y;const de=!P.children.length;for(let ae=0;ae{Q=Q||!!P.dynamicChildren;const{type:H,props:$,patchFlag:W,shapeFlag:z,dirs:oe,transition:he}=P,we=H==="input"||H==="option";if(we||W!==-1){oe&&Kt(P,null,R,"created");let re=!1;if(S(y)){re=Sp(M,he)&&R&&R.vnode.props&&R.vnode.props.appear;const ae=y.content.firstChild;re&&he.beforeEnter(ae),w(ae,y,R),P.el=y=ae}if(z&16&&!($&&($.innerHTML||$.textContent))){let ae=p(y.firstChild,P,y,R,M,q,Q),ye=!1;for(;ae;){br(y,1)||(ye||(Bn("Hydration children mismatch on",y,` +Server rendered element contains more child nodes than client vdom.`),ye=!0),no());const tt=ae;ae=ae.nextSibling,a(tt)}}else if(z&8){let ae=P.children;ae[0]===` +`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(ae=ae.slice(1)),y.textContent!==ae&&(br(y,0)||(Bn("Hydration text content mismatch on",y,` + - rendered on server: ${y.textContent} + - expected on client: ${P.children}`),no()),y.textContent=P.children)}if($){const ae=y.tagName.includes("-");for(const ye in $)!(oe&&oe.some(tt=>tt.dir.created))&&u1(y,ye,$[ye],P,R)&&no(),(we&&(ye.endsWith("value")||ye==="indeterminate")||Zr(ye)&&!Ho(ye)||ye[0]==="."||ae)&&o(y,ye,null,$[ye],void 0,R)}let de;(de=$&&$.onVnodeBeforeMount)&&Ct(de,R,P),oe&&Kt(P,null,R,"beforeMount"),((de=$&&$.onVnodeMounted)||oe||re)&&Vp(()=>{de&&Ct(de,R,P),re&&he.enter(y),oe&&Kt(P,null,R,"mounted")},M)}return y.nextSibling},p=(y,P,R,M,q,Q,H)=>{H=H||!!P.dynamicChildren;const $=P.children,W=$.length;let z=!1;for(let oe=0;oe{const{slotScopeIds:H}=P;H&&(q=q?q.concat(H):H);const $=s(y),W=p(i(y),P,$,R,M,q,Q);return W&&uo(W)&&W.data==="]"?i(P.anchor=W):(no(),l(P.anchor=c("]"),$,W),W)},g=(y,P,R,M,q,Q)=>{if(br(y.parentElement,1)||(Bn(`Hydration node mismatch: +- rendered on server:`,y,y.nodeType===3?"(text)":uo(y)&&y.data==="["?"(start of fragment)":"",` +- expected on client:`,P.type),no()),P.el=null,Q){const W=b(y);for(;;){const z=i(y);if(z&&z!==W)a(z);else break}}const H=i(y),$=s(y);return a(y),n(null,P,$,H,R,M,ki($),q),H},b=(y,P="[",R="]")=>{let M=0;for(;y;)if(y=i(y),y&&uo(y)&&(y.data===P&&M++,y.data===R)){if(M===0)return i(y);M--}return y},w=(y,P,R)=>{const M=P.parentNode;M&&M.replaceChild(y,P);let q=R;for(;q;)q.vnode.el===P&&(q.vnode.el=q.subTree.el=y),q=q.parent},S=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,d]}function u1(e,t,n,o,r){let i,s,a,l;if(t==="class")a=e.getAttribute("class"),l=X(n),d1(jc(a||""),jc(l))||(i=2,s="class");else if(t==="style"){a=e.getAttribute("style")||"",l=$e(n)?n:Jv(Ce(n));const c=Nc(a),u=Nc(l);if(o.dirs)for(const{dir:d,value:f}of o.dirs)d.name==="show"&&!f&&u.set("display","none");r&&ip(r,o,u),f1(c,u)||(i=3,s="style")}else(e instanceof SVGElement&&eg(t)||e instanceof HTMLElement&&(Cc(t)||Xv(t)))&&(Cc(t)?(a=e.hasAttribute(t),l=yl(n)):n==null?(a=e.hasAttribute(t),l=!1):(e.hasAttribute(t)?a=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?a=e.value:a=!1,l=tg(n)?String(n):!1),a!==l&&(i=4,s=t));if(i!=null&&!br(e,i)){const c=f=>f===!1?"(not rendered)":`${s}="${f}"`,u=`Hydration ${sp[i]} mismatch on`,d=` + - rendered on server: ${c(a)} + - expected on client: ${c(l)} + Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead. + You should fix the source of the mismatch.`;return Bn(u,e,d),!0}return!1}function jc(e){return new Set(e.trim().split(/\s+/))}function d1(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Nc(e){const t=new Map;for(const n of e.split(";")){let[o,r]=n.split(":");o=o.trim(),r=r&&r.trim(),o&&r&&t.set(o,r)}return t}function f1(e,t){if(e.size!==t.size)return!1;for(const[n,o]of e)if(o!==t.get(n))return!1;return!0}function ip(e,t,n){const o=e.subTree;if(e.getCssVars&&(t===o||o&&o.type===J&&o.children.includes(t))){const r=e.getCssVars();for(const i in r)n.set(`--${og(i)}`,String(r[i]))}t===o&&e.parent&&ip(e.parent,e.vnode,n)}const Hc="data-allow-mismatch",sp={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function br(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Hc);)e=e.parentElement;const n=e&&e.getAttribute(Hc);if(n==null)return!1;if(n==="")return!0;{const o=n.split(",");return t===0&&o.includes("children")?!0:n.split(",").includes(sp[t])}}function p1(e,t){if(uo(e)&&e.data==="["){let n=1,o=e.nextSibling;for(;o;){if(o.nodeType===1){if(t(o)===!1)break}else if(uo(o))if(o.data==="]"){if(--n===0)break}else o.data==="["&&n++;o=o.nextSibling}}else t(e)}const mo=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ws(e){_e(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,hydrate:i,timeout:s,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const f=()=>(d++,c=null,p()),p=()=>{let m;return c||(m=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((b,w)=>{l(g,()=>b(f()),()=>w(g),d+1)});throw g}).then(g=>m!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return V({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(m,g,b){const w=i?()=>{const S=i(b,y=>p1(m,y));S&&(g.bum||(g.bum=[])).push(S)}:b;u?w():p().then(()=>!g.isUnmounted&&w())},get __asyncResolved(){return u},setup(){const m=Je;if(Bl(m),u)return()=>Ws(u,m);const g=y=>{c=null,ti(y,m,13,!o)};if(a&&m.suspense||si)return p().then(y=>()=>Ws(y,m)).catch(y=>(g(y),()=>o?B(o,{error:y}):null));const b=I(!1),w=I(),S=I(!!r);return r&&setTimeout(()=>{S.value=!1},r),s!=null&&setTimeout(()=>{if(!b.value&&!w.value){const y=new Error(`Async component timed out after ${s}ms.`);g(y),w.value=y}},s),p().then(()=>{b.value=!0,m.parent&&ni(m.parent.vnode)&&m.parent.update()}).catch(y=>{g(y),w.value=y}),()=>{if(b.value&&u)return Ws(u,m);if(w.value&&o)return B(o,{error:w.value});if(n&&!S.value)return B(n)}}})}function Ws(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=B(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const ni=e=>e.type.__isKeepAlive;function h1(e,t){ap(e,"a",t)}function m1(e,t){ap(e,"da",t)}function ap(e,t,n=Je){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ks(t,o,n),n){let r=n.parent;for(;r&&r.parent;)ni(r.parent.vnode)&&v1(o,t,n,r),r=r.parent}}function v1(e,t,n,o){const r=ks(t,e,o,!0);It(()=>{_l(o[t],r)},n)}function ks(e,t,n=Je,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{Pn();const a=ii(n),l=qt(t,n,e,s);return a(),Sn(),l});return o?r.unshift(i):r.push(i),i}}const Cn=e=>(t,n=Je)=>{(!si||e==="sp")&&ks(e,(...o)=>t(...o),n)},g1=Cn("bm"),Ee=Cn("m"),_1=Cn("bu"),lp=Cn("u"),Il=Cn("bum"),It=Cn("um"),b1=Cn("sp"),y1=Cn("rtg"),w1=Cn("rtc");function k1(e,t=Je){ks("ec",e,t)}const cp="components";function ze(e,t){return dp(cp,e,!0,t)||e}const up=Symbol.for("v-ndc");function vo(e){return $e(e)?dp(cp,e,!1)||e:e||up}function dp(e,t,n=!0,o=!1){const r=Qe||Je;if(r){const i=r.type;{const a=Np(i,!1);if(a&&(a===t||a===Et(t)||a===hs(Et(t))))return i}const s=Fc(r[e]||i[e],t)||Fc(r.appContext[e],t);return!s&&o?i:s}}function Fc(e,t){return e&&(e[t]||e[Et(t)]||e[hs(Et(t))])}function ge(e,t,n,o){let r;const i=n,s=fe(e);if(s||$e(e)){const a=s&&Fo(e);let l=!1;a&&(l=!$t(e),e=vs(e)),r=new Array(e.length);for(let c=0,u=e.length;ct(a,l,void 0,i));else{const a=Object.keys(e);r=new Array(a.length);for(let l=0,c=a.length;lHr(t)?!(t.type===Xe||t.type===J&&!fp(t.children)):!0)?e:null}function E1(e,t){const n={};for(const o in e)n[/[A-Z]/.test(o)?`on:${o}`:Ii(o)]=e[o];return n}const La=e=>e?Dp(e)?xs(e):La(e.parent):null,xr=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>La(e.parent),$root:e=>La(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rl(e),$forceUpdate:e=>e.f||(e.f=()=>{$l(e.update)}),$nextTick:e=>e.n||(e.n=mt.bind(e.proxy)),$watch:e=>W1.bind(e)}),Gs=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Le(e,t),x1={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Gs(o,t))return s[t]=1,o[t];if(r!==Ae&&Le(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&Le(c,t))return s[t]=3,i[t];if(n!==Ae&&Le(n,t))return s[t]=4,n[t];Oa&&(s[t]=0)}}const u=xr[t];let d,f;if(u)return t==="$attrs"&&st(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ae&&Le(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,Le(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Gs(r,t)?(r[t]=n,!0):o!==Ae&&Le(o,t)?(o[t]=n,!0):Le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==Ae&&Le(e,s)||Gs(t,s)||(a=i[0])&&Le(a,s)||Le(o,s)||Le(xr,s)||Le(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function P1(){return S1().slots}function S1(){const e=Zn();return e.setupContext||(e.setupContext=jp(e))}function Xi(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function pp(e,t){return!e||!t?e||t:fe(e)&&fe(t)?e.concat(t):Ge({},Xi(e),Xi(t))}let Oa=!0;function C1(e){const t=Rl(e),n=e.proxy,o=e.ctx;Oa=!1,t.beforeCreate&&zc(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:g,deactivated:b,beforeDestroy:w,beforeUnmount:S,destroyed:y,unmounted:P,render:R,renderTracked:M,renderTriggered:q,errorCaptured:Q,serverPrefetch:H,expose:$,inheritAttrs:W,components:z,directives:oe,filters:he}=t;if(c&&A1(c,o,null),s)for(const de in s){const ae=s[de];_e(ae)&&(o[de]=ae.bind(n))}if(r){const de=r.call(n,n);Ve(de)&&(e.data=ei(de))}if(Oa=!0,i)for(const de in i){const ae=i[de],ye=_e(ae)?ae.bind(n,n):_e(ae.get)?ae.get.bind(n,n):Qt,tt=!_e(ae)&&_e(ae.set)?ae.set.bind(n):Qt,Pt=E({get:ye,set:tt});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>Pt.value,set:Ye=>Pt.value=Ye})}if(a)for(const de in a)hp(a[de],o,n,de);if(l){const de=_e(l)?l.call(n):l;Reflect.ownKeys(de).forEach(ae=>{Xt(ae,de[ae])})}u&&zc(u,e,"c");function re(de,ae){fe(ae)?ae.forEach(ye=>de(ye.bind(n))):ae&&de(ae.bind(n))}if(re(g1,d),re(Ee,f),re(_1,p),re(lp,m),re(h1,g),re(m1,b),re(k1,Q),re(w1,M),re(y1,q),re(Il,S),re(It,P),re(b1,H),fe($))if($.length){const de=e.exposed||(e.exposed={});$.forEach(ae=>{Object.defineProperty(de,ae,{get:()=>n[ae],set:ye=>n[ae]=ye})})}else e.exposed||(e.exposed={});R&&e.render===Qt&&(e.render=R),W!=null&&(e.inheritAttrs=W),z&&(e.components=z),oe&&(e.directives=oe),H&&Bl(e)}function A1(e,t,n=Qt){fe(e)&&(e=$a(e));for(const o in e){const r=e[o];let i;Ve(r)?"default"in r?i=De(r.from||o,r.default,!0):i=De(r.from||o):i=De(r),Fe(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function zc(e,t,n){qt(fe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function hp(e,t,n,o){let r=o.includes(".")?Tp(n,o):()=>n[o];if($e(e)){const i=t[e];_e(i)&&me(r,i)}else if(_e(e))me(r,e.bind(n));else if(Ve(e))if(fe(e))e.forEach(i=>hp(i,t,n,o));else{const i=_e(e.handler)?e.handler.bind(n):t[e.handler];_e(i)&&me(r,i,e)}}function Rl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>es(l,c,s,!0)),es(l,t,s)),Ve(t)&&i.set(t,l),l}function es(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&es(e,i,n,!0),r&&r.forEach(s=>es(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=T1[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const T1={data:qc,props:Uc,emits:Uc,methods:yr,computed:yr,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:yr,directives:yr,watch:O1,provide:qc,inject:L1};function qc(e,t){return t?e?function(){return Ge(_e(e)?e.call(this,this):e,_e(t)?t.call(this,this):t)}:t:e}function L1(e,t){return yr($a(e),$a(t))}function $a(e){if(fe(e)){const t={};for(let n=0;n1)return n&&_e(t)?t.call(o&&o.proxy):t}}const vp={},gp=()=>Object.create(vp),_p=e=>Object.getPrototypeOf(e)===vp;function B1(e,t,n,o=!1){const r={},i=gp();e.propsDefaults=Object.create(null),bp(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Hf(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function I1(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=ke(r),[l]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=yp(d,t,!0);Ge(s,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Ve(e)&&o.set(e,jo),jo;if(fe(i))for(let u=0;ue[0]==="_"||e==="$stable",Dl=e=>fe(e)?e.map(Tt):[Tt(e)],D1=(e,t,n)=>{if(t._n)return t;const o=A((...r)=>Dl(t(...r)),n);return o._c=!1,o},kp=(e,t,n)=>{const o=e._ctx;for(const r in e){if(wp(r))continue;const i=e[r];if(_e(i))t[r]=D1(r,i,o);else if(i!=null){const s=Dl(i);t[r]=()=>s}}},Ep=(e,t)=>{const n=Dl(t);e.slots.default=()=>n},xp=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},M1=(e,t,n)=>{const o=e.slots=gp();if(e.vnode.shapeFlag&32){const r=t._;r?(xp(o,t,n),n&&Jo(o,"_",r,!0)):kp(t,o)}else t&&Ep(e,t)},j1=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=Ae;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:xp(r,t,n):(i=!t.$stable,kp(t,r)),s=t}else t&&(Ep(e,t),s={default:1});if(i)for(const a in r)!wp(a)&&s[a]==null&&delete r[a]},ft=Vp;function N1(e){return Pp(e)}function H1(e){return Pp(e,c1)}function Pp(e,t){const n=kf();n.__VUE__=!0,Yf(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:r,patchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Qt,insertStaticContent:m}=e,g=(k,x,O,G=null,N=null,K=null,ne=void 0,ee=null,Z=!!x.dynamicChildren)=>{if(k===x)return;k&&!fo(k,x)&&(G=j(k),Ye(k,N,K,!0),k=null),x.patchFlag===-2&&(Z=!1,x.dynamicChildren=null);const{type:Y,ref:ve,shapeFlag:se}=x;switch(Y){case Fn:b(k,x,O,G);break;case Xe:w(k,x,O,G);break;case Uo:k==null&&S(x,O,G,ne);break;case J:z(k,x,O,G,N,K,ne,ee,Z);break;default:se&1?R(k,x,O,G,N,K,ne,ee,Z):se&6?oe(k,x,O,G,N,K,ne,ee,Z):(se&64||se&128)&&Y.process(k,x,O,G,N,K,ne,ee,Z,ce)}ve!=null&&N&&Zi(ve,k&&k.ref,K,x||k,!x)},b=(k,x,O,G)=>{if(k==null)o(x.el=a(x.children),O,G);else{const N=x.el=k.el;x.children!==k.children&&c(N,x.children)}},w=(k,x,O,G)=>{k==null?o(x.el=l(x.children||""),O,G):x.el=k.el},S=(k,x,O,G)=>{[k.el,k.anchor]=m(k.children,x,O,G,k.el,k.anchor)},y=({el:k,anchor:x},O,G)=>{let N;for(;k&&k!==x;)N=f(k),o(k,O,G),k=N;o(x,O,G)},P=({el:k,anchor:x})=>{let O;for(;k&&k!==x;)O=f(k),r(k),k=O;r(x)},R=(k,x,O,G,N,K,ne,ee,Z)=>{x.type==="svg"?ne="svg":x.type==="math"&&(ne="mathml"),k==null?M(x,O,G,N,K,ne,ee,Z):H(k,x,N,K,ne,ee,Z)},M=(k,x,O,G,N,K,ne,ee)=>{let Z,Y;const{props:ve,shapeFlag:se,transition:pe,dirs:be}=k;if(Z=k.el=s(k.type,K,ve&&ve.is,ve),se&8?u(Z,k.children):se&16&&Q(k.children,Z,null,G,N,Ks(k,K),ne,ee),be&&Kt(k,null,G,"created"),q(Z,k,k.scopeId,ne,G),ve){for(const Ie in ve)Ie!=="value"&&!Ho(Ie)&&i(Z,Ie,null,ve[Ie],K,G);"value"in ve&&i(Z,"value",null,ve.value,K),(Y=ve.onVnodeBeforeMount)&&Ct(Y,G,k)}Jo(Z,"__vnode",k,!0),Jo(Z,"__vueParentComponent",G,!0),be&&Kt(k,null,G,"beforeMount");const xe=Sp(N,pe);xe&&pe.beforeEnter(Z),o(Z,x,O),((Y=ve&&ve.onVnodeMounted)||xe||be)&&ft(()=>{Y&&Ct(Y,G,k),xe&&pe.enter(Z),be&&Kt(k,null,G,"mounted")},N)},q=(k,x,O,G,N)=>{if(O&&p(k,O),G)for(let K=0;K{for(let Y=Z;Y{const ee=x.el=k.el;ee.__vnode=x;let{patchFlag:Z,dynamicChildren:Y,dirs:ve}=x;Z|=k.patchFlag&16;const se=k.props||Ae,pe=x.props||Ae;let be;if(O&&oo(O,!1),(be=pe.onVnodeBeforeUpdate)&&Ct(be,O,x,k),ve&&Kt(x,k,O,"beforeUpdate"),O&&oo(O,!0),(se.innerHTML&&pe.innerHTML==null||se.textContent&&pe.textContent==null)&&u(ee,""),Y?$(k.dynamicChildren,Y,ee,O,G,Ks(x,N),K):ne||ae(k,x,ee,null,O,G,Ks(x,N),K,!1),Z>0){if(Z&16)W(ee,se,pe,O,N);else if(Z&2&&se.class!==pe.class&&i(ee,"class",null,pe.class,N),Z&4&&i(ee,"style",se.style,pe.style,N),Z&8){const xe=x.dynamicProps;for(let Ie=0;Ie{be&&Ct(be,O,x,k),ve&&Kt(x,k,O,"updated")},G)},$=(k,x,O,G,N,K,ne)=>{for(let ee=0;ee{if(x!==O){if(x!==Ae)for(const K in x)!Ho(K)&&!(K in O)&&i(k,K,x[K],null,N,G);for(const K in O){if(Ho(K))continue;const ne=O[K],ee=x[K];ne!==ee&&K!=="value"&&i(k,K,ee,ne,N,G)}"value"in O&&i(k,"value",x.value,O.value,N)}},z=(k,x,O,G,N,K,ne,ee,Z)=>{const Y=x.el=k?k.el:a(""),ve=x.anchor=k?k.anchor:a("");let{patchFlag:se,dynamicChildren:pe,slotScopeIds:be}=x;be&&(ee=ee?ee.concat(be):be),k==null?(o(Y,O,G),o(ve,O,G),Q(x.children||[],O,ve,N,K,ne,ee,Z)):se>0&&se&64&&pe&&k.dynamicChildren?($(k.dynamicChildren,pe,O,N,K,ne,ee),(x.key!=null||N&&x===N.subTree)&&Ml(k,x,!0)):ae(k,x,O,ve,N,K,ne,ee,Z)},oe=(k,x,O,G,N,K,ne,ee,Z)=>{x.slotScopeIds=ee,k==null?x.shapeFlag&512?N.ctx.activate(x,O,G,ne,Z):he(x,O,G,N,K,ne,Z):we(k,x,Z)},he=(k,x,O,G,N,K,ne)=>{const ee=k.component=o_(k,G,N);if(ni(k)&&(ee.ctx.renderer=ce),r_(ee,!1,ne),ee.asyncDep){if(N&&N.registerDep(ee,re,ne),!k.el){const Z=ee.subTree=B(Xe);w(null,Z,x,O)}}else re(ee,k,x,O,N,K,ne)},we=(k,x,O)=>{const G=x.component=k.component;if(J1(k,x,O))if(G.asyncDep&&!G.asyncResolved){de(G,x,O);return}else G.next=x,G.update();else x.el=k.el,G.vnode=x},re=(k,x,O,G,N,K,ne)=>{const ee=()=>{if(k.isMounted){let{next:se,bu:pe,u:be,parent:xe,vnode:Ie}=k;{const _t=Cp(k);if(_t){se&&(se.el=Ie.el,de(k,se,ne)),_t.asyncDep.then(()=>{k.isUnmounted||ee()});return}}let Oe=se,gt;oo(k,!1),se?(se.el=Ie.el,de(k,se,ne)):se=Ie,pe&&Ri(pe),(gt=se.props&&se.props.onVnodeBeforeUpdate)&&Ct(gt,xe,se,Ie),oo(k,!0);const ot=Ys(k),Rt=k.subTree;k.subTree=ot,g(Rt,ot,d(Rt.el),j(Rt),k,N,K),se.el=ot.el,Oe===null&&Q1(k,ot.el),be&&ft(be,N),(gt=se.props&&se.props.onVnodeUpdated)&&ft(()=>Ct(gt,xe,se,Ie),N),Jf(k)}else{let se;const{el:pe,props:be}=x,{bm:xe,m:Ie,parent:Oe,root:gt,type:ot}=k,Rt=mo(x);if(oo(k,!1),xe&&Ri(xe),!Rt&&(se=be&&be.onVnodeBeforeMount)&&Ct(se,Oe,x),oo(k,!0),pe&&Be){const _t=()=>{k.subTree=Ys(k),Be(pe,k.subTree,k,N,null)};Rt&&ot.__asyncHydrate?ot.__asyncHydrate(pe,k,_t):_t()}else{gt.ce&>.ce._injectChildStyle(ot);const _t=k.subTree=Ys(k);g(null,_t,O,G,k,N,K),x.el=_t.el}if(Ie&&ft(Ie,N),!Rt&&(se=be&&be.onVnodeMounted)){const _t=x;ft(()=>Ct(se,Oe,_t),N)}(x.shapeFlag&256||Oe&&mo(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&k.a&&ft(k.a,N),k.isMounted=!0,Kg(k),x=O=G=null}};k.scope.on();const Z=k.effect=new Cf(ee);k.scope.off();const Y=k.update=Z.run.bind(Z),ve=k.job=Z.runIfDirty.bind(Z);ve.i=k,ve.id=k.uid,Z.scheduler=()=>$l(ve),oo(k,!0),Y()},de=(k,x,O)=>{x.component=k;const G=k.vnode.props;k.vnode=x,k.next=null,I1(k,x.props,G,O),j1(k,x.children,O),Pn(),Bc(k),Sn()},ae=(k,x,O,G,N,K,ne,ee,Z=!1)=>{const Y=k&&k.children,ve=k?k.shapeFlag:0,se=x.children,{patchFlag:pe,shapeFlag:be}=x;if(pe>0){if(pe&128){tt(Y,se,O,G,N,K,ne,ee,Z);return}else if(pe&256){ye(Y,se,O,G,N,K,ne,ee,Z);return}}be&8?(ve&16&&nt(Y,N,K),se!==Y&&u(O,se)):ve&16?be&16?tt(Y,se,O,G,N,K,ne,ee,Z):nt(Y,N,K,!0):(ve&8&&u(O,""),be&16&&Q(se,O,G,N,K,ne,ee,Z))},ye=(k,x,O,G,N,K,ne,ee,Z)=>{k=k||jo,x=x||jo;const Y=k.length,ve=x.length,se=Math.min(Y,ve);let pe;for(pe=0;peve?nt(k,N,K,!0,!1,se):Q(x,O,G,N,K,ne,ee,Z,se)},tt=(k,x,O,G,N,K,ne,ee,Z)=>{let Y=0;const ve=x.length;let se=k.length-1,pe=ve-1;for(;Y<=se&&Y<=pe;){const be=k[Y],xe=x[Y]=Z?jn(x[Y]):Tt(x[Y]);if(fo(be,xe))g(be,xe,O,null,N,K,ne,ee,Z);else break;Y++}for(;Y<=se&&Y<=pe;){const be=k[se],xe=x[pe]=Z?jn(x[pe]):Tt(x[pe]);if(fo(be,xe))g(be,xe,O,null,N,K,ne,ee,Z);else break;se--,pe--}if(Y>se){if(Y<=pe){const be=pe+1,xe=bepe)for(;Y<=se;)Ye(k[Y],N,K,!0),Y++;else{const be=Y,xe=Y,Ie=new Map;for(Y=xe;Y<=pe;Y++){const bt=x[Y]=Z?jn(x[Y]):Tt(x[Y]);bt.key!=null&&Ie.set(bt.key,Y)}let Oe,gt=0;const ot=pe-xe+1;let Rt=!1,_t=0;const ur=new Array(ot);for(Y=0;Y=ot){Ye(bt,N,K,!0);continue}let Wt;if(bt.key!=null)Wt=Ie.get(bt.key);else for(Oe=xe;Oe<=pe;Oe++)if(ur[Oe-xe]===0&&fo(bt,x[Oe])){Wt=Oe;break}Wt===void 0?Ye(bt,N,K,!0):(ur[Wt-xe]=Y+1,Wt>=_t?_t=Wt:Rt=!0,g(bt,x[Wt],O,null,N,K,ne,ee,Z),gt++)}const kc=Rt?F1(ur):jo;for(Oe=kc.length-1,Y=ot-1;Y>=0;Y--){const bt=xe+Y,Wt=x[bt],Ec=bt+1{const{el:K,type:ne,transition:ee,children:Z,shapeFlag:Y}=k;if(Y&6){Pt(k.component.subTree,x,O,G);return}if(Y&128){k.suspense.move(x,O,G);return}if(Y&64){ne.move(k,x,O,ce);return}if(ne===J){o(K,x,O);for(let se=0;seee.enter(K),N);else{const{leave:se,delayLeave:pe,afterLeave:be}=ee,xe=()=>o(K,x,O),Ie=()=>{se(K,()=>{xe(),be&&be()})};pe?pe(K,xe,Ie):Ie()}else o(K,x,O)},Ye=(k,x,O,G=!1,N=!1)=>{const{type:K,props:ne,ref:ee,children:Z,dynamicChildren:Y,shapeFlag:ve,patchFlag:se,dirs:pe,cacheIndex:be}=k;if(se===-2&&(N=!1),ee!=null&&Zi(ee,null,O,k,!0),be!=null&&(x.renderCache[be]=void 0),ve&256){x.ctx.deactivate(k);return}const xe=ve&1&&pe,Ie=!mo(k);let Oe;if(Ie&&(Oe=ne&&ne.onVnodeBeforeUnmount)&&Ct(Oe,x,k),ve&6)Ut(k.component,O,G);else{if(ve&128){k.suspense.unmount(O,G);return}xe&&Kt(k,null,x,"beforeUnmount"),ve&64?k.type.remove(k,x,O,ce,G):Y&&!Y.hasOnce&&(K!==J||se>0&&se&64)?nt(Y,x,O,!1,!0):(K===J&&se&384||!N&&ve&16)&&nt(Z,x,O),G&&vt(k)}(Ie&&(Oe=ne&&ne.onVnodeUnmounted)||xe)&&ft(()=>{Oe&&Ct(Oe,x,k),xe&&Kt(k,null,x,"unmounted")},O)},vt=k=>{const{type:x,el:O,anchor:G,transition:N}=k;if(x===J){fn(O,G);return}if(x===Uo){P(k);return}const K=()=>{r(O),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(k.shapeFlag&1&&N&&!N.persisted){const{leave:ne,delayLeave:ee}=N,Z=()=>ne(O,K);ee?ee(k.el,K,Z):Z()}else K()},fn=(k,x)=>{let O;for(;k!==x;)O=f(k),r(k),k=O;r(x)},Ut=(k,x,O)=>{const{bum:G,scope:N,job:K,subTree:ne,um:ee,m:Z,a:Y}=k;Gc(Z),Gc(Y),G&&Ri(G),N.stop(),K&&(K.flags|=8,Ye(ne,k,x,O)),ee&&ft(ee,x),ft(()=>{k.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&k.asyncDep&&!k.asyncResolved&&k.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),Jg(k)},nt=(k,x,O,G=!1,N=!1,K=0)=>{for(let ne=K;ne{if(k.shapeFlag&6)return j(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const x=f(k.anchor||k.el),O=x&&x[Qf];return O?f(O):x};let ie=!1;const te=(k,x,O)=>{k==null?x._vnode&&Ye(x._vnode,null,null,!0):g(x._vnode||null,k,x,null,null,null,O),x._vnode=k,ie||(ie=!0,Bc(),Ji(),ie=!1)},ce={p:g,um:Ye,m:Pt,r:vt,mt:he,mc:Q,pc:ae,pbc:$,n:j,o:e};let Se,Be;return t&&([Se,Be]=t(ce)),{render:te,hydrate:Se,createApp:V1(te,Se)}}function Ks({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function oo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Sp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ml(e,t,n=!1){const o=e.children,r=t.children;if(fe(o)&&fe(r))for(let i=0;i>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Cp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cp(t)}function Gc(e){if(e)for(let t=0;tDe(z1);function Eo(e,t){return oi(e,null,t)}function Ap(e,t){return oi(e,null,{flush:"post"})}function U1(e,t){return oi(e,null,{flush:"sync"})}function me(e,t,n){return oi(e,t,n)}function oi(e,t,n=Ae){const{immediate:o,deep:r,flush:i,once:s}=n,a=Ge({},n);let l;if(si)if(i==="sync"){const f=q1();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!t||o)a.once=!0;else{const f=()=>{};return f.stop=Qt,f.resume=Qt,f.pause=Qt,f}const c=Je;a.call=(f,p,m)=>qt(f,c,p,m);let u=!1;i==="post"?a.scheduler=f=>{ft(f,c&&c.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():$l(f)}),a.augmentJob=f=>{t&&(f.flags|=4),u&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const d=Mg(e,t,a);return l&&l.push(d),d}function W1(e,t,n){const o=this.proxy,r=$e(e)?e.includes(".")?Tp(o,e):()=>o[e]:e.bind(o,o);let i;_e(t)?i=t:(i=t.handler,n=t);const s=ii(this),a=oi(r,i.bind(o),n);return s(),a}function Tp(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r{let u,d=Ae,f;return U1(()=>{const p=e[t];pt(u,p)&&(u=p,c())}),{get(){return l(),n.get?n.get(u):u},set(p){const m=n.set?n.set(p):p;if(!pt(m,u)&&!(d!==Ae&&pt(p,d)))return;const g=o.vnode.props;g&&(t in g||r in g||i in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${i}`in g)||(u=p,c()),o.emit(`update:${t}`,m),pt(p,m)&&pt(p,d)&&!pt(m,f)&&c(),d=p,f=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||Ae:a,done:!1}:{done:!0}}}},a}const Lp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Et(t)}Modifiers`]||e[`${ln(t)}Modifiers`];function G1(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Ae;let r=n;const i=t.startsWith("update:"),s=i&&Lp(o,t.slice(7));s&&(s.trim&&(r=n.map(u=>$e(u)?u.trim():u)),s.number&&(r=n.map(Gi))),Qg(e,t,r);let a,l=o[a=Ii(t)]||o[a=Ii(Et(t))];!l&&i&&(l=o[a=Ii(ln(t))]),l&&qt(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qt(c,e,6,r)}}function Op(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},a=!1;if(!_e(e)){const l=c=>{const u=Op(c,t,!0);u&&(a=!0,Ge(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ve(e)&&o.set(e,null),null):(fe(i)?i.forEach(l=>s[l]=null):Ge(s,i),Ve(e)&&o.set(e,s),s)}function Es(e,t){return!e||!Zr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Le(e,t[0].toLowerCase()+t.slice(1))||Le(e,ln(t))||Le(e,t))}function Ys(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:g}=e,b=Qi(e);let w,S;try{if(n.shapeFlag&4){const P=r||o,R=P;w=Tt(c.call(R,P,u,d,p,f,m)),S=a}else{const P=t;w=Tt(P.length>1?P(d,{attrs:a,slots:s,emit:l}):P(d,null)),S=t.props?a:K1(a)}}catch(P){Pr.length=0,ti(P,e,1),w=B(Xe)}let y=w;if(S&&g!==!1){const P=Object.keys(S),{shapeFlag:R}=y;P.length&&R&7&&(i&&P.some(gl)&&(S=Y1(S,i)),y=Gn(y,S,!1,!0))}return n.dirs&&(y=Gn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&jr(y,n.transition),w=y,Qi(b),w}const K1=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zr(n))&&((t||(t={}))[n]=e[n]);return t},Y1=(e,t)=>{const n={};for(const o in e)(!gl(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function J1(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Kc(o,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Vp(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):Ug(e)}const J=Symbol.for("v-fgt"),Fn=Symbol.for("v-txt"),Xe=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),Pr=[];let kt=null;function h(e=!1){Pr.push(kt=e?null:[])}function Z1(){Pr.pop(),kt=Pr[Pr.length-1]||null}let Nr=1;function Yc(e){Nr+=e,e<0&&kt&&(kt.hasOnce=!0)}function Bp(e){return e.dynamicChildren=Nr>0?kt||jo:null,Z1(),Nr>0&&kt&&kt.push(e),e}function _(e,t,n,o,r,i){return Bp(v(e,t,n,o,r,i,!0))}function F(e,t,n,o,r){return Bp(B(e,t,n,o,r,!0))}function Hr(e){return e?e.__v_isVNode===!0:!1}function fo(e,t){return e.type===t.type&&e.key===t.key}const Ip=({key:e})=>e??null,Mi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Fe(e)||_e(e)?{i:Qe,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,o=0,r=null,i=e===J?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ip(t),ref:t&&Mi(t),scopeId:ys,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Qe};return a?(jl(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=$e(n)?8:16),Nr>0&&!s&&kt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&kt.push(l),l}const B=X1;function X1(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===up)&&(e=Xe),Hr(e)){const a=Gn(e,t,!0);return n&&jl(a,n),Nr>0&&!i&&kt&&(a.shapeFlag&6?kt[kt.indexOf(e)]=a:kt.push(a)),a.patchFlag=-2,a}if(c_(e)&&(e=e.__vccOpts),t){t=Rp(t);let{class:a,style:l}=t;a&&!$e(a)&&(t.class=X(a)),Ve(l)&&(Al(l)&&!fe(l)&&(l=Ge({},l)),t.style=Ce(l))}const s=$e(e)?1:$p(e)?128:Zf(e)?64:Ve(e)?4:_e(e)?2:0;return v(e,t,n,o,r,s,i,!0)}function Rp(e){return e?Al(e)||_p(e)?Ge({},e):e:null}function Gn(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:a,transition:l}=e,c=t?en(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ip(c),ref:t&&t.ref?n&&i?fe(i)?i.concat(Mi(t)):[i,Mi(t)]:Mi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==J?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gn(e.ssContent),ssFallback:e.ssFallback&&Gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&jr(u,l.clone(u)),u}function He(e=" ",t=0){return B(Fn,null,e,t)}function e_(e,t){const n=B(Uo,null,e);return n.staticCount=t,n}function T(e="",t=!1){return t?(h(),F(Xe,null,e)):B(Xe,null,e)}function Tt(e){return e==null||typeof e=="boolean"?B(Xe):fe(e)?B(J,null,e.slice()):Hr(e)?jn(e):B(Fn,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gn(e)}function jl(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),jl(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!_p(t)?t._ctx=Qe:r===3&&Qe&&(Qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else _e(t)?(t={default:t,_ctx:Qe},n=32):(t=String(t),o&64?(n=16,t=[He(t)]):n=8);e.children=t,e.shapeFlag|=n}function en(...e){const t={};for(let n=0;nJe||Qe;let ts,Ba;{const e=kf(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};ts=t("__VUE_INSTANCE_SETTERS__",n=>Je=n),Ba=t("__VUE_SSR_SETTERS__",n=>si=n)}const ii=e=>{const t=Je;return ts(e),e.scope.on(),()=>{e.scope.off(),ts(t)}},Jc=()=>{Je&&Je.scope.off(),ts(null)};function Dp(e){return e.vnode.shapeFlag&4}let si=!1;function r_(e,t=!1,n=!1){t&&Ba(t);const{props:o,children:r}=e.vnode,i=Dp(e);B1(e,o,i,t),M1(e,r,n);const s=i?i_(e,t):void 0;return t&&Ba(!1),s}function i_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,x1);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?jp(e):null,i=ii(e);Pn();const s=sr(o,e,0,[e.props,r]);if(Sn(),i(),bf(s)){if(mo(e)||Bl(e),s.then(Jc,Jc),t)return s.then(a=>{Qc(e,a,t)}).catch(a=>{ti(a,e,0)});e.asyncDep=s}else Qc(e,s,t)}else Mp(e,t)}function Qc(e,t,n){_e(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ve(t)&&(e.devtoolsRawSetupState=t,e.setupState=zf(t)),Mp(e,n)}let Zc;function Mp(e,t,n){const o=e.type;if(!e.render){if(!t&&Zc&&!o.render){const r=o.template||Rl(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=Ge(Ge({isCustomElement:i,delimiters:a},s),l);o.render=Zc(r,c)}}e.render=o.render||Qt}{const r=ii(e);Pn();try{C1(e)}finally{Sn(),r()}}}const s_={get(e,t){return st(e,"get",""),e[t]}};function jp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,s_),slots:e.slots,emit:e.emit,expose:t}}function xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(zf(Tg(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xr)return xr[n](e)},has(t,n){return n in t||n in xr}})):e.proxy}const a_=/(?:^|[-_])(\w)/g,l_=e=>e.replace(a_,t=>t.toUpperCase()).replace(/[-_]/g,"");function Np(e,t=!0){return _e(e)?e.displayName||e.name:e.name||t&&e.__name}function Hp(e,t,n=!1){let o=Np(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?l_(o):n?"App":"Anonymous"}function c_(e){return _e(e)&&"__vccOpts"in e}const E=(e,t)=>Rg(e,t,si);function le(e,t,n){const o=arguments.length;return o===2?Ve(t)&&!fe(t)?Hr(t)?B(e,null,[t]):B(e,t):B(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Hr(n)&&(n=[n]),B(e,t,n))}const Xc="3.5.10";/** +* @vue/runtime-dom v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ia;const eu=typeof window<"u"&&window.trustedTypes;if(eu)try{Ia=eu.createPolicy("vue",{createHTML:e=>e})}catch{}const Fp=Ia?e=>Ia.createHTML(e):e=>e,u_="http://www.w3.org/2000/svg",d_="http://www.w3.org/1998/Math/MathML",gn=typeof document<"u"?document:null,tu=gn&&gn.createElement("template"),f_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?gn.createElementNS(u_,e):t==="mathml"?gn.createElementNS(d_,e):n?gn.createElement(e,{is:n}):gn.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>gn.createTextNode(e),createComment:e=>gn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{tu.innerHTML=Fp(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const a=tu.content;if(o==="svg"||o==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ln="transition",fr="animation",Fr=Symbol("_vtc"),zp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},p_=Ge({},ep,zp),h_=e=>(e.displayName="Transition",e.props=p_,e),Xn=h_((e,{slots:t})=>le(s1,m_(e),t)),ro=(e,t=[])=>{fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},nu=e=>e?fe(e)?e.some(t=>t.length>1):e.length>1:!1;function m_(e){const t={};for(const z in e)z in zp||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=v_(r),g=m&&m[0],b=m&&m[1],{onBeforeEnter:w,onEnter:S,onEnterCancelled:y,onLeave:P,onLeaveCancelled:R,onBeforeAppear:M=w,onAppear:q=S,onAppearCancelled:Q=y}=t,H=(z,oe,he)=>{io(z,oe?u:a),io(z,oe?c:s),he&&he()},$=(z,oe)=>{z._isLeaving=!1,io(z,d),io(z,p),io(z,f),oe&&oe()},W=z=>(oe,he)=>{const we=z?q:S,re=()=>H(oe,z,he);ro(we,[oe,re]),ou(()=>{io(oe,z?l:i),On(oe,z?u:a),nu(we)||ru(oe,o,g,re)})};return Ge(t,{onBeforeEnter(z){ro(w,[z]),On(z,i),On(z,s)},onBeforeAppear(z){ro(M,[z]),On(z,l),On(z,c)},onEnter:W(!1),onAppear:W(!0),onLeave(z,oe){z._isLeaving=!0;const he=()=>$(z,oe);On(z,d),On(z,f),b_(),ou(()=>{z._isLeaving&&(io(z,d),On(z,p),nu(P)||ru(z,o,b,he))}),ro(P,[z,he])},onEnterCancelled(z){H(z,!1),ro(y,[z])},onAppearCancelled(z){H(z,!0),ro(Q,[z])},onLeaveCancelled(z){$(z),ro(R,[z])}})}function v_(e){if(e==null)return null;if(Ve(e))return[Js(e.enter),Js(e.leave)];{const t=Js(e);return[t,t]}}function Js(e){return Uv(e)}function On(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Fr]||(e[Fr]=new Set)).add(t)}function io(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Fr];n&&(n.delete(t),n.size||(e[Fr]=void 0))}function ou(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let g_=0;function ru(e,t,n,o){const r=e._endId=++g_,i=()=>{r===e._endId&&o()};if(n!=null)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=__(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[m]||"").split(", "),r=o(`${Ln}Delay`),i=o(`${Ln}Duration`),s=iu(r,i),a=o(`${fr}Delay`),l=o(`${fr}Duration`),c=iu(a,l);let u=null,d=0,f=0;t===Ln?s>0&&(u=Ln,d=s,f=i.length):t===fr?c>0&&(u=fr,d=c,f=l.length):(d=Math.max(s,c),u=d>0?s>c?Ln:fr:null,f=u?u===Ln?i.length:l.length:0);const p=u===Ln&&/\b(transform|all)(,|$)/.test(o(`${Ln}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function iu(e,t){for(;e.lengthsu(n)+su(e[o])))}function su(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function b_(){return document.body.offsetHeight}function y_(e,t,n){const o=e[Fr];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ns=Symbol("_vod"),qp=Symbol("_vsh"),Ps={beforeMount(e,{value:t},{transition:n}){e[ns]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),pr(e,!0),o.enter(e)):o.leave(e,()=>{pr(e,!1)}):pr(e,t))},beforeUnmount(e,{value:t}){pr(e,t)}};function pr(e,t){e.style.display=t?e[ns]:"none",e[qp]=!t}const w_=Symbol(""),k_=/(^|;)\s*display\s*:/;function E_(e,t,n){const o=e.style,r=$e(n);let i=!1;if(n&&!r){if(t)if($e(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&ji(o,a,"")}else for(const s in t)n[s]==null&&ji(o,s,"");for(const s in n)s==="display"&&(i=!0),ji(o,s,n[s])}else if(r){if(t!==n){const s=o[w_];s&&(n+=";"+s),o.cssText=n,i=k_.test(n)}}else t&&e.removeAttribute("style");ns in e&&(e[ns]=i?o.display:"",e[qp]&&(o.display="none"))}const au=/\s*!important$/;function ji(e,t,n){if(fe(n))n.forEach(o=>ji(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=x_(e,t);au.test(n)?e.setProperty(ln(o),n.replace(au,""),"important"):e[o]=n}}const lu=["Webkit","Moz","ms"],Qs={};function x_(e,t){const n=Qs[t];if(n)return n;let o=Et(t);if(o!=="filter"&&o in e)return Qs[t]=o;o=hs(o);for(let r=0;rZs||(A_.then(()=>Zs=0),Zs=Date.now());function L_(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;qt(O_(o,n.value),t,5,[o])};return n.value=e,n.attached=T_(),n}function O_(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const hu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$_=(e,t,n,o,r,i)=>{const s=r==="svg";t==="class"?y_(e,o,s):t==="style"?E_(e,n,o):Zr(t)?gl(t)||S_(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):V_(e,t,o,s))?(du(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&uu(e,t,o,s,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!$e(o))?du(e,Et(t),o):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),uu(e,t,o,s))};function V_(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&hu(t)&&_e(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return hu(t)&&$e(n)?!1:t in e}const Kn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>Ri(t,n):t};function B_(e){e.target.composing=!0}function mu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vt=Symbol("_assign"),Ra={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Vt]=Kn(r);const i=o||r.props&&r.props.type==="number";wn(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Gi(a)),e[Vt](a)}),n&&wn(e,"change",()=>{e.value=e.value.trim()}),t||(wn(e,"compositionstart",B_),wn(e,"compositionend",mu),wn(e,"change",mu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[Vt]=Kn(s),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Gi(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===l)||(e.value=l))}},I_={deep:!0,created(e,t,n){e[Vt]=Kn(n),wn(e,"change",()=>{const o=e._modelValue,r=Qo(e),i=e.checked,s=e[Vt];if(fe(o)){const a=wl(o,r),l=a!==-1;if(i&&!l)s(o.concat(r));else if(!i&&l){const c=[...o];c.splice(a,1),s(c)}}else if(ir(o)){const a=new Set(o);i?a.add(r):a.delete(r),s(a)}else s(Up(e,i))})},mounted:vu,beforeUpdate(e,t,n){e[Vt]=Kn(n),vu(e,t,n)}};function vu(e,{value:t},n){e._modelValue=t;let o;fe(t)?o=wl(t,n.props.value)>-1:ir(t)?o=t.has(n.props.value):o=go(t,Up(e,!0)),e.checked!==o&&(e.checked=o)}const R_={created(e,{value:t},n){e.checked=go(t,n.props.value),e[Vt]=Kn(n),wn(e,"change",()=>{e[Vt](Qo(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Vt]=Kn(o),t!==n&&(e.checked=go(t,o.props.value))}},gu={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=ir(t);wn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Gi(Qo(s)):Qo(s));e[Vt](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,mt(()=>{e._assigning=!1})}),e[Vt]=Kn(o)},mounted(e,{value:t}){_u(e,t)},beforeUpdate(e,t,n){e[Vt]=Kn(n)},updated(e,{value:t}){e._assigning||_u(e,t)}};function _u(e,t){const n=e.multiple,o=fe(t);if(!(n&&!o&&!ir(t))){for(let r=0,i=e.options.length;rString(c)===String(a)):s.selected=wl(t,a)>-1}else s.selected=t.has(a);else if(go(Qo(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qo(e){return"_value"in e?e._value:e.value}function Up(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const D_=["ctrl","shift","alt","meta"],M_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>D_.some(n=>e[`${n}Key`]&&!t.includes(n))},Wp=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=ln(r.key);if(t.some(s=>s===i||j_[s]===i))return e(r)})},Gp=Ge({patchProp:$_},f_);let Sr,bu=!1;function N_(){return Sr||(Sr=N1(Gp))}function H_(){return Sr=bu?Sr:H1(Gp),bu=!0,Sr}const F_=(...e)=>{const t=N_().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=Yp(o);if(!r)return;const i=t._component;!_e(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const s=n(r,!1,Kp(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},z_=(...e)=>{const t=H_().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=Yp(o);if(r)return n(r,!0,Kp(r))},t};function Kp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yp(e){return $e(e)?document.querySelector(e):e}var Jp=e=>/^[a-z][a-z0-9+.-]*:/.test(e)||e.startsWith("//"),q_=/.md((\?|#).*)?$/,U_=(e,t="/")=>Jp(e)||e.startsWith("/")&&!e.startsWith(t)&&!q_.test(e),Bt=e=>/^(https?:)?\/\//.test(e),yu=e=>{if(!e||e.endsWith("/"))return e;let t=e.replace(/(^|\/)README.md$/i,"$1index.html");return t.endsWith(".md")?t=`${t.substring(0,t.length-3)}.html`:t.endsWith(".html")||(t=`${t}.html`),t.endsWith("/index.html")&&(t=t.substring(0,t.length-10)),t},W_="http://.",G_=(e,t)=>{if(!e.startsWith("/")&&t){const n=t.slice(0,t.lastIndexOf("/"));return yu(new URL(`${n}/${e}`,W_).pathname)}return yu(e)},K_=(e,t)=>{const n=Object.keys(e).sort((o,r)=>{const i=r.split("/").length-o.split("/").length;return i!==0?i:r.length-o.length});for(const o of n)if(t.startsWith(o))return o;return"/"},Y_=/(#|\?)/,Qp=e=>{const[t,...n]=e.split(Y_);return{pathname:t,hashAndQueries:n.join("")}},J_=["link","meta","script","style","noscript","template"],Q_=["title","base"],Z_=([e,t,n])=>Q_.includes(e)?e:J_.includes(e)?e==="meta"&&t.name?`${e}.${t.name}`:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,Object.entries(t).map(([o,r])=>typeof r=="boolean"?r?[o,""]:null:[o,r]).filter(o=>o!=null).sort(([o],[r])=>o.localeCompare(r)),n]):null,X_=e=>{const t=new Set,n=[];return e.forEach(o=>{const r=Z_(o);r&&!t.has(r)&&(t.add(r),n.push(o))}),n},Zp=e=>e.startsWith("/")?e:`/${e}`,Xp=e=>e.endsWith("/")||e.endsWith(".html")?e:`${e}/`,eh=e=>e.endsWith("/")?e.slice(0,-1):e,Hl=e=>e.startsWith("/")?e.slice(1):e,th=e=>typeof e=="function",Yn=e=>Object.prototype.toString.call(e)==="[object Object]",Ht=e=>typeof e=="string";const e0=JSON.parse('{"/changelog.html":"/changelog/","/contributing.html":"/contributing/","/demos.html":"/demos/","/friends.html":"/friends/","/questions.html":"/faq/","/sponsor.html":"/sponsor/","/1.%E7%A4%BA%E4%BE%8B/markdown%E5%9F%BA%E7%A1%80.html":"/article/mcz1csb4/","/1.%E7%A4%BA%E4%BE%8B/markdown%E6%89%A9%E5%B1%95.html":"/article/mcgayb5w/","/1.%E7%A4%BA%E4%BE%8B/%E5%85%A8%E5%B1%8F%E6%B0%B4%E5%8D%B0.html":"/article/97s6ha1e/","/1.%E7%A4%BA%E4%BE%8B/%E5%86%85%E5%AE%B9%E6%B0%B4%E5%8D%B0.html":"/article/2z59hh8g/","/1.%E7%A4%BA%E4%BE%8B/%E5%8A%A0%E5%AF%86%E6%96%87%E7%AB%A0.html":"/article/enx7c9s/","/1.%E7%A4%BA%E4%BE%8B/%E5%9B%BE%E7%89%87%E6%B0%B4%E5%8D%B0.html":"/article/i4cuuonn/","/1.%E7%A4%BA%E4%BE%8B/%E7%85%A7%E7%89%87%E7%B1%BB%E4%BD%9C%E5%93%81%E7%A4%BA%E4%BE%8B.html":"/article/30995vcd/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A0.html":"/article/xld23tu1/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A02.html":"/article/elac3ddb/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A03.html":"/article/9eh4d6ao/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A04.html":"/article/qk81wscb/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A05.html":"/article/2seng2ou/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A06.html":"/article/v9fejej9/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A07.html":"/article/5xbhl125/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A08.html":"/article/m4gen76w/","/1.%E7%A4%BA%E4%BE%8B/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A09.html":"/article/z8zvx0ru/","/2.preview/%E4%B8%BB%E9%A2%98%E6%95%88%E6%9E%9C%E9%A2%84%E8%A7%88.html":"/article/0lk24ty5/","/3.%E6%9B%B4%E6%96%B0%E8%AF%B4%E6%98%8E/102-103.html":"/article/6pa64b1n/","/3.%E6%9B%B4%E6%96%B0%E8%AF%B4%E6%98%8E/73-77.html":"/article/5vjshyi9/","/4.%E6%95%99%E7%A8%8B/frontmatter.html":"/article/ecxnxxd0/","/notes/plugins/":"/plugins/","/notes/plugins/caniuse.html":"/plugins/plugin-caniuse/","/notes/plugins/content-updated.html":"/plugins/plugin-content-update/","/notes/plugins/iconify.html":"/plugins/plugin-iconify/","/notes/plugins/md-power.html":"/plugins/plugin-md-power/","/notes/plugins/shiki.html":"/plugins/plugin-shikiji/","/notes/tools/":"/tools/","/notes/tools/caniuse.html":"/tools/caniuse/","/notes/tools/custom-theme.html":"/tools/theme-colors/","/notes/tools/home-hero-tint-plate.html":"/tools/home-hero-tint-plate/","/en/1.FE/1.Node/english_blog.html":"/en/article/xw0awouo/","/notes/plugins/netlify-functions/":"/plugins/plugin-netlify-functions/","/notes/plugins/netlify-functions/api.html":"/plugins/plugin-netlify-functions/api/","/notes/plugins/netlify-functions/functions.html":"/plugins/plugin-netlify-functions/functions/","/notes/plugins/netlify-functions/%E4%BB%8B%E7%BB%8D.html":"/plugins/plugin-netlify-functions/introduction/","/notes/plugins/netlify-functions/%E4%BD%BF%E7%94%A8.html":"/plugins/plugin-netlify-functions/usage/","/notes/plugins/netlify-functions/%E5%8A%9F%E8%83%BD.html":"/plugins/plugin-netlify-functions/features/","/notes/theme/config/notes%E9%85%8D%E7%BD%AE.html":"/config/notes/","/notes/theme/config/%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AE.html":"/config/basic/","/notes/theme/config/%E4%BE%A7%E8%BE%B9%E6%A0%8F%E9%85%8D%E7%BD%AE.html":"/config/sidebar/","/notes/theme/config/%E5%A4%9A%E8%AF%AD%E8%A8%80%E9%85%8D%E7%BD%AE.html":"/config/locales/","/notes/theme/config/%E5%AF%BC%E8%88%AA%E6%A0%8F%E9%85%8D%E7%BD%AE.html":"/config/navigation/","/notes/theme/config/%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E.html":"/config/intro/","/notes/theme/guide/api-node.html":"/guide/api/node/","/notes/theme/guide/api-%E5%AE%A2%E6%88%B7%E7%AB%AF.html":"/guide/api/client/","/notes/theme/guide/%E4%BB%8B%E7%BB%8D.html":"/guide/intro/","/notes/theme/guide/%E5%8D%9A%E5%AE%A2.html":"/guide/blog/","/notes/theme/guide/%E5%9B%BD%E9%99%85%E5%8C%96.html":"/guide/international/","/notes/theme/guide/%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8.html":"/guide/quick-start/","/notes/theme/guide/%E5%B8%83%E5%B1%80%E6%8F%92%E6%A7%BD.html":"/guide/layout-slots/","/notes/theme/guide/%E6%9E%84%E5%BB%BA%E4%BC%98%E5%8C%96.html":"/guide/optimize-build/","/notes/theme/guide/%E7%9F%A5%E8%AF%86%E7%AC%94%E8%AE%B0.html":"/guide/document/","/notes/theme/guide/%E7%BB%84%E4%BB%B6%E8%A6%86%E5%86%99.html":"/guide/component-overrides/","/notes/theme/guide/%E7%BC%96%E5%86%99%E6%96%87%E7%AB%A0.html":"/guide/write/","/notes/theme/guide/%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A0%B7%E5%BC%8F.html":"/guide/custom-style/","/notes/theme/guide/%E8%87%AA%E5%AE%9A%E4%B9%89%E9%A6%96%E9%A1%B5.html":"/guide/custom-home/","/notes/theme/guide/%E9%83%A8%E7%BD%B2.html":"/guide/deployment/","/notes/theme/guide/%E9%A1%B9%E7%9B%AE%E7%BB%93%E6%9E%84.html":"/guide/project-structure/","/en/notes/theme/config/intro.html":"/en/config/intro/","/en/notes/theme/guide/intro.html":"/en/guide/intro/","/notes/theme/config/frontmatter/basic.html":"/config/frontmatter/basic/","/notes/theme/config/frontmatter/friend.html":"/config/frontmatter/friends/","/notes/theme/config/frontmatter/home.html":"/config/frontmatter/home/","/notes/theme/config/frontmatter/post.html":"/config/frontmatter/article/","/notes/theme/config/plugins/":"/config/plugins/","/notes/theme/config/plugins/markdownImage.html":"/config/plugins/markdown-image/","/notes/theme/config/plugins/markdownMath.html":"/config/plugins/markdown-math/","/notes/theme/config/plugins/markdownPower.html":"/config/plugins/markdown-power/","/notes/theme/config/plugins/markdown%E5%A2%9E%E5%BC%BA.html":"/config/plugins/markdown-enhance/","/notes/theme/config/plugins/%E4%BB%A3%E7%A0%81%E5%A4%8D%E5%88%B6.html":"/config/plugins/copy-code/","/notes/theme/config/plugins/%E4%BB%A3%E7%A0%81%E9%AB%98%E4%BA%AE.html":"/config/plugins/code-highlight/","/notes/theme/config/plugins/%E6%90%9C%E7%B4%A2.html":"/config/plugins/search/","/notes/theme/config/plugins/%E6%B0%B4%E5%8D%B0.html":"/config/watermark/","/notes/theme/config/plugins/%E7%99%BE%E5%BA%A6%E7%BB%9F%E8%AE%A1.html":"/config/plugins/baidu-tongji/","/notes/theme/config/plugins/%E9%98%85%E8%AF%BB%E7%BB%9F%E8%AE%A1.html":"/config/plugins/reading-time/","/notes/theme/guide/markdown/caniuse.html":"/guide/markdown/caniuse/","/notes/theme/guide/markdown/%E5%8D%A1%E7%89%87.html":"/guide/markdown/card/","/notes/theme/guide/markdown/%E5%9B%BE%E6%A0%87.html":"/guide/markdown/iconify/","/notes/theme/guide/markdown/%E5%9F%BA%E7%A1%80.html":"/guide/markdown/basic/","/notes/theme/guide/markdown/%E5%AF%BC%E5%85%A5%E6%96%87%E4%BB%B6.html":"/guide/markdown/include/","/notes/theme/guide/markdown/%E6%89%A9%E5%B1%95.html":"/guide/markdown/extensions/","/notes/theme/guide/markdown/%E6%96%87%E4%BB%B6%E6%A0%91.html":"/guide/markdown/file-tree/","/notes/theme/guide/markdown/%E6%AD%A5%E9%AA%A4.html":"/guide/markdown/steps/","/notes/theme/guide/markdown/%E7%A4%BA%E4%BE%8B%E5%AE%B9%E5%99%A8.html":"/guide/markdown/demo-wrapper/","/notes/theme/guide/markdown/%E9%80%89%E9%A1%B9%E7%BB%84.html":"/guide/markdown/tabs/","/notes/theme/guide/markdown/%E9%9A%90%E7%A7%98%E6%96%87%E6%9C%AC.html":"/guide/markdown/plot/","/notes/theme/guide/%E4%BB%A3%E7%A0%81/twoslash.html":"/guide/markdown/experiment/","/notes/theme/guide/%E4%BB%A3%E7%A0%81/%E4%BB%8B%E7%BB%8D.html":"/guide/code/intro/","/notes/theme/guide/%E4%BB%A3%E7%A0%81/%E4%BB%A3%E7%A0%81%E7%BB%84.html":"/guide/code/group/","/notes/theme/guide/%E4%BB%A3%E7%A0%81/%E5%AF%BC%E5%85%A5%E4%BB%A3%E7%A0%81.html":"/guide/code/import/","/notes/theme/guide/%E4%BB%A3%E7%A0%81/%E7%89%B9%E6%80%A7%E6%94%AF%E6%8C%81.html":"/guide/code/features/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/codeSandbox.html":"/guide/code/code-sandbox/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/codepen.html":"/guide/code/code-pen/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/golang.html":"/guide/repl/golang/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/jsFiddle.html":"/guide/code/jsfiddle/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/kotlin.html":"/guide/repl/kotlin/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/replit.html":"/guide/code/replit/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/rust.html":"/guide/repl/rust/","/notes/theme/guide/%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA/%E5%89%8D%E7%AB%AF.html":"/guide/repl/frontend/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/seo.html":"/guide/seo/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/sitemap.html":"/guide/sitemap/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E4%BB%A3%E7%A0%81%E5%A4%8D%E5%88%B6.html":"/guide/features/copy-code/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E5%86%85%E5%AE%B9%E6%90%9C%E7%B4%A2.html":"/guide/features/content-search/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E5%8A%A0%E5%AF%86.html":"/guide/features/encryption/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E5%8F%8B%E6%83%85%E9%93%BE%E6%8E%A5%E9%A1%B5.html":"/guide/friend-links/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E5%9B%BE%E6%A0%87.html":"/guide/features/icon/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E6%96%87%E7%AB%A0%E6%B0%B4%E5%8D%B0.html":"/guide/features/watermark/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E7%BB%84%E4%BB%B6.html":"/guide/features/component/","/notes/theme/guide/%E5%8A%9F%E8%83%BD/%E8%AF%84%E8%AE%BA.html":"/guide/features/comments/","/notes/theme/guide/%E5%9B%BE%E8%A1%A8/chart.html":"/guide/chart/chartjs/","/notes/theme/guide/%E5%9B%BE%E8%A1%A8/echarts.html":"/guide/chart/echarts/","/notes/theme/guide/%E5%9B%BE%E8%A1%A8/flowchart.html":"/guide/chart/flowchart/","/notes/theme/guide/%E5%9B%BE%E8%A1%A8/mermaid.html":"/guide/chart/mermaid/","/notes/theme/guide/%E5%B5%8C%E5%85%A5/bilibili.html":"/guide/embed/video/bilibili/","/notes/theme/guide/%E5%B5%8C%E5%85%A5/pdf.html":"/guide/embed/pdf/","/notes/theme/guide/%E5%B5%8C%E5%85%A5/youtube.html":"/guide/embed/video/youtube/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/npmBadge.html":"/guide/components/npm-badge/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/repoCard.html":"/guide/components/github-repo-card/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E5%8D%A1%E7%89%87.html":"/guide/components/cark/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E5%8D%A1%E7%89%87%E5%AE%B9%E5%99%A8.html":"/guide/components/card-grid/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E5%9B%BE%E6%A0%87.html":"/guide/components/icon/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E5%9B%BE%E7%89%87%E5%8D%A1%E7%89%87.html":"/guide/components/image-card/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E5%BE%BD%E7%AB%A0.html":"/guide/components/badge/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E8%BD%AE%E6%92%AD%E5%9B%BE.html":"/guide/components/swiper/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E9%93%BE%E6%8E%A5%E5%8D%A1%E7%89%87.html":"/guide/components/link-card/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E9%9A%90%E7%A7%98%E6%96%87%E6%9C%AC.html":"/guide/components/plot/","/notes/theme/guide/%E7%BB%84%E4%BB%B6/%E9%A6%96%E9%A1%B5%E5%B8%83%E5%B1%80%E5%AE%B9%E5%99%A8.html":"/guide/components/home-box/"}'),t0=Object.fromEntries([["/",{loader:()=>L(()=>import("./index.html-DvejjRWT.js"),[]),meta:{title:""}}],["/changelog/",{loader:()=>L(()=>import("./index.html-GZ6Tihog.js"),[]),meta:{title:"Changelog"}}],["/contributing/",{loader:()=>L(()=>import("./index.html-Byhuci4z.js"),[]),meta:{title:"贡献指南"}}],["/demos/",{loader:()=>L(()=>import("./index.html-Du6TRDQd.js"),[]),meta:{title:"案例"}}],["/friends/",{loader:()=>L(()=>import("./index.html-C3sDKqtN.js"),[]),meta:{title:"友情链接"}}],["/faq/",{loader:()=>L(()=>import("./index.html-BBnvKfF8.js"),[]),meta:{title:"常见问题"}}],["/sponsor/",{loader:()=>L(()=>import("./index.html-VSWykBse.js"),[]),meta:{title:"喝杯奶茶"}}],["/article/mcz1csb4/",{loader:()=>L(()=>import("./index.html-CXmb0MSA.js"),[]),meta:{title:"Markdown 基础"}}],["/article/mcgayb5w/",{loader:()=>L(()=>import("./index.html-Dn4LjO2Z.js"),[]),meta:{title:"markdown 扩展"}}],["/article/97s6ha1e/",{loader:()=>L(()=>import("./index.html-CyQhW_R6.js"),[]),meta:{title:"全屏水印"}}],["/article/2z59hh8g/",{loader:()=>L(()=>import("./index.html-D1QVEOBc.js"),[]),meta:{title:"内容水印"}}],["/article/enx7c9s/",{loader:()=>L(()=>import("./index.html-B_jERRnY.js"),[]),meta:{title:"加密文章,密码:123456"}}],["/article/i4cuuonn/",{loader:()=>L(()=>import("./index.html-CTmD8FmM.js"),[]),meta:{title:"图片水印"}}],["/article/30995vcd/",{loader:()=>L(()=>import("./index.html-B2QZrjW3.js"),[]),meta:{title:"照片类作品示例"}}],["/article/xld23tu1/",{loader:()=>L(()=>import("./index.html-BQ9qSmE8.js"),[]),meta:{title:"示例文章"}}],["/article/elac3ddb/",{loader:()=>L(()=>import("./index.html-DoqH9tD6.js"),[]),meta:{title:"示例文章2"}}],["/article/9eh4d6ao/",{loader:()=>L(()=>import("./index.html-C2G58uUp.js"),[]),meta:{title:"示例文章3"}}],["/article/qk81wscb/",{loader:()=>L(()=>import("./index.html-DVw1mV5f.js"),[]),meta:{title:"示例文章4"}}],["/article/2seng2ou/",{loader:()=>L(()=>import("./index.html-Jecj-LRX.js"),[]),meta:{title:"示例文章5"}}],["/article/v9fejej9/",{loader:()=>L(()=>import("./index.html-DMscFwHu.js"),[]),meta:{title:"示例文章6"}}],["/article/5xbhl125/",{loader:()=>L(()=>import("./index.html-Dguy8oVS.js"),[]),meta:{title:"示例文章7"}}],["/article/m4gen76w/",{loader:()=>L(()=>import("./index.html-BFdX3b8i.js"),[]),meta:{title:"示例文章8"}}],["/article/z8zvx0ru/",{loader:()=>L(()=>import("./index.html-THCNtozN.js"),[]),meta:{title:"示例文章9"}}],["/article/0lk24ty5/",{loader:()=>L(()=>import("./index.html-C6QJvoWF.js"),[]),meta:{title:"主题效果预览"}}],["/article/6pa64b1n/",{loader:()=>L(()=>import("./index.html-txWhkrWX.js"),[]),meta:{title:"1.0.0-rc.102 至 rc.103 更新说明"}}],["/article/5vjshyi9/",{loader:()=>L(()=>import("./index.html-C3Y_IcK1.js"),[]),meta:{title:"1.0.0-rc.73 至 rc.77 更新说明"}}],["/article/ecxnxxd0/",{loader:()=>L(()=>import("./index.html-CFjL5aWi.js"),[]),meta:{title:"如何使用 frontmatter"}}],["/en/",{loader:()=>L(()=>import("./index.html-WC25v_o1.js"),[]),meta:{title:""}}],["/plugins/",{loader:()=>L(()=>import("./index.html-BFY1hhjR.js"),[]),meta:{title:"插件"}}],["/plugins/plugin-caniuse/",{loader:()=>L(()=>import("./index.html-C_lDpTJh.js"),[]),meta:{title:"plugin-caniuse"}}],["/plugins/plugin-content-update/",{loader:()=>L(()=>import("./index.html-dFUeduQX.js"),[]),meta:{title:"plugin-content-update"}}],["/plugins/plugin-iconify/",{loader:()=>L(()=>import("./index.html-DhtUmbMK.js"),[]),meta:{title:"plugin-iconify"}}],["/plugins/plugin-md-power/",{loader:()=>L(()=>import("./index.html-BouGk0Tf.js"),[]),meta:{title:"plugin-md-power"}}],["/plugins/plugin-shikiji/",{loader:()=>L(()=>import("./index.html-JWW3vs7W.js"),[]),meta:{title:"plugin-shikiji"}}],["/tools/",{loader:()=>L(()=>import("./index.html-oqg7cUIO.js"),[]),meta:{title:"主题工具包"}}],["/tools/caniuse/",{loader:()=>L(()=>import("./index.html-r9Jtks5k.js"),[]),meta:{title:"caniuse 特性搜索",icon:"fa-brands:css3"}}],["/tools/theme-colors/",{loader:()=>L(()=>import("./index.html-B3dc2s3k.js"),[]),meta:{title:"主题颜色工具",icon:"unjs:theme-colors"}}],["/tools/home-hero-tint-plate/",{loader:()=>L(()=>import("./index.html-Dbh3lQfG.js"),[]),meta:{title:"首页背景色板配置",icon:"icon-park-outline:hand-painted-plate"}}],["/en/article/xw0awouo/",{loader:()=>L(()=>import("./index.html-he2Szncw.js"),[]),meta:{title:"english_blog"}}],["/plugins/plugin-netlify-functions/",{loader:()=>L(()=>import("./index.html-Ab0Bnehb.js"),[]),meta:{title:"plugin-netlify-functions"}}],["/plugins/plugin-netlify-functions/api/",{loader:()=>L(()=>import("./index.html-BYGqYXYQ.js"),[]),meta:{title:"API"}}],["/plugins/plugin-netlify-functions/functions/",{loader:()=>L(()=>import("./index.html-C1ODDfqZ.js"),[]),meta:{title:"functions 使用指南"}}],["/plugins/plugin-netlify-functions/introduction/",{loader:()=>L(()=>import("./index.html-B1LqzqF7.js"),[]),meta:{title:"介绍"}}],["/plugins/plugin-netlify-functions/usage/",{loader:()=>L(()=>import("./index.html-CIezldSO.js"),[]),meta:{title:"使用"}}],["/plugins/plugin-netlify-functions/features/",{loader:()=>L(()=>import("./index.html-DkZOJwft.js"),[]),meta:{title:"功能"}}],["/config/notes/",{loader:()=>L(()=>import("./index.html-OC4vKEq_.js"),[]),meta:{title:"notes配置"}}],["/config/basic/",{loader:()=>L(()=>import("./index.html-9KAYRyN0.js"),[]),meta:{title:"主题配置"}}],["/config/sidebar/",{loader:()=>L(()=>import("./index.html-DnFzdZ5D.js"),[]),meta:{title:"侧边栏配置"}}],["/config/locales/",{loader:()=>L(()=>import("./index.html-BVFP2uCv.js"),[]),meta:{title:"多语言"}}],["/config/navigation/",{loader:()=>L(()=>import("./index.html-B4fD7tTJ.js"),[]),meta:{title:"导航栏配置"}}],["/config/intro/",{loader:()=>L(()=>import("./index.html-DC_TlrMY.js"),[]),meta:{title:"配置说明"}}],["/guide/api/node/",{loader:()=>L(()=>import("./index.html-CYt4b6GQ.js"),[]),meta:{title:"Node",icon:"fa6-brands:node"}}],["/guide/api/client/",{loader:()=>L(()=>import("./index.html-BFA0pLp6.js"),[]),meta:{title:"客户端",icon:"nimbus:browser"}}],["/guide/intro/",{loader:()=>L(()=>import("./index.html-DEoFhc0B.js"),[]),meta:{title:"主题介绍",icon:"mdi:tooltip-text-outline"}}],["/guide/blog/",{loader:()=>L(()=>import("./index.html-CrNnikmF.js"),[]),meta:{title:"博客",icon:"material-symbols:article-outline"}}],["/guide/international/",{loader:()=>L(()=>import("./index.html-7QYO-Fa_.js"),[]),meta:{title:"国际化",icon:"material-symbols-light:language"}}],["/guide/quick-start/",{loader:()=>L(()=>import("./index.html-Bb-X54ff.js"),[]),meta:{title:"安装/使用",icon:"grommet-icons:install"}}],["/guide/layout-slots/",{loader:()=>L(()=>import("./index.html-C5Ak01jz.js"),[]),meta:{title:"布局插槽",icon:"ph:layout-duotone"}}],["/guide/optimize-build/",{loader:()=>L(()=>import("./index.html-C1sonxhf.js"),[]),meta:{title:"构建优化",icon:"clarity:bundle-solid"}}],["/guide/document/",{loader:()=>L(()=>import("./index.html-DupU6CWm.js"),[]),meta:{title:"文档/知识笔记",icon:"teenyicons:doc-outline"}}],["/guide/component-overrides/",{loader:()=>L(()=>import("./index.html-BSixZXmT.js"),[]),meta:{title:"组件覆写",icon:"carbon:cics-sit-overrides"}}],["/guide/write/",{loader:()=>L(()=>import("./index.html-MgOm0m0_.js"),[]),meta:{title:"编写文章",icon:"mingcute:edit-4-line"}}],["/guide/custom-style/",{loader:()=>L(()=>import("./index.html-Bs2VkwBq.js"),[]),meta:{title:"自定义样式",icon:"icon-park-outline:theme"}}],["/guide/custom-home/",{loader:()=>L(()=>import("./index.html-D1c1GOZr.js"),__vite__mapDeps([0,1])),meta:{title:"自定义首页",icon:"material-symbols:home-outline"}}],["/guide/deployment/",{loader:()=>L(()=>import("./index.html-DxYp8HoX.js"),[]),meta:{title:"部署",icon:"material-symbols:deployed-code-outline"}}],["/guide/project-structure/",{loader:()=>L(()=>import("./index.html-o2ZCJqtD.js"),[]),meta:{title:"项目结构",icon:"ph:tree-structure-bold"}}],["/en/config/intro/",{loader:()=>L(()=>import("./index.html-CPxCZegF.js"),[]),meta:{title:"Configuration"}}],["/en/guide/intro/",{loader:()=>L(()=>import("./index.html-Q90Bkdcm.js"),[]),meta:{title:"Theme Introduction"}}],["/config/frontmatter/basic/",{loader:()=>L(()=>import("./index.html-gztY_dzh.js"),[]),meta:{title:"通用配置"}}],["/config/frontmatter/friends/",{loader:()=>L(()=>import("./index.html-K39nBeGx.js"),[]),meta:{title:"友情链接页"}}],["/config/frontmatter/home/",{loader:()=>L(()=>import("./index.html-6EosBbyY.js"),[]),meta:{title:"首页"}}],["/config/frontmatter/article/",{loader:()=>L(()=>import("./index.html-CyCWI_Fe.js"),[]),meta:{title:"博客文章"}}],["/config/plugins/",{loader:()=>L(()=>import("./index.html-BCD2MqLh.js"),[]),meta:{title:"介绍"}}],["/config/plugins/markdown-image/",{loader:()=>L(()=>import("./index.html-BmABF6ZH.js"),[]),meta:{title:"Markdown Image"}}],["/config/plugins/markdown-math/",{loader:()=>L(()=>import("./index.html-4feQ-rlA.js"),[]),meta:{title:"Markdown Math"}}],["/config/plugins/markdown-power/",{loader:()=>L(()=>import("./index.html-DNostcOZ.js"),[]),meta:{title:"Markdown Power"}}],["/config/plugins/markdown-enhance/",{loader:()=>L(()=>import("./index.html-BufBb0Of.js"),[]),meta:{title:"Markdown Enhance"}}],["/config/plugins/copy-code/",{loader:()=>L(()=>import("./index.html-B4klE2iR.js"),[]),meta:{title:"代码复制"}}],["/config/plugins/code-highlight/",{loader:()=>L(()=>import("./index.html-DuLWkhII.js"),[]),meta:{title:"代码高亮"}}],["/config/plugins/search/",{loader:()=>L(()=>import("./index.html-Bq7mnHvA.js"),[]),meta:{title:"内容搜索"}}],["/config/watermark/",{loader:()=>L(()=>import("./index.html-LHdAXKR7.js"),[]),meta:{title:"水印"}}],["/config/plugins/baidu-tongji/",{loader:()=>L(()=>import("./index.html-w0Fe2LG4.js"),[]),meta:{title:"百度统计"}}],["/config/plugins/reading-time/",{loader:()=>L(()=>import("./index.html-sRsGl6n-.js"),[]),meta:{title:"阅读统计"}}],["/guide/markdown/caniuse/",{loader:()=>L(()=>import("./index.html-CZtyQx1N.js"),[]),meta:{title:"Can I Use",icon:"streamline:desktop-help"}}],["/guide/markdown/card/",{loader:()=>L(()=>import("./index.html-BKPCI2zK.js"),[]),meta:{title:"卡片",icon:"solar:card-broken"}}],["/guide/markdown/iconify/",{loader:()=>L(()=>import("./index.html-Bd-N7ovS.js"),[]),meta:{title:"图标",icon:"grommet-icons:emoji"}}],["/guide/markdown/basic/",{loader:()=>L(()=>import("./index.html-BaYnQ5zy.js"),[]),meta:{title:"基础",icon:"fluent:markdown-20-filled"}}],["/guide/markdown/include/",{loader:()=>L(()=>import("./index.html-DcTlBhSe.js"),[]),meta:{title:"导入文件",icon:"fluent:table-simple-include-16-regular"}}],["/guide/markdown/extensions/",{loader:()=>L(()=>import("./index.html-C9zGND-N.js"),[]),meta:{title:"扩展",icon:"fluent-mdl2:auto-enhance-on"}}],["/guide/markdown/file-tree/",{loader:()=>L(()=>import("./index.html-B169YcAi.js"),[]),meta:{title:"文件树",icon:"mdi:file-tree"}}],["/guide/markdown/steps/",{loader:()=>L(()=>import("./index.html-DSr7tZEy.js"),[]),meta:{title:"步骤",icon:"streamline:steps-number"}}],["/guide/markdown/demo-wrapper/",{loader:()=>L(()=>import("./index.html-DPUrQdsQ.js"),__vite__mapDeps([2,1])),meta:{title:"示例容器",icon:"icon-park-outline:eyes"}}],["/guide/markdown/tabs/",{loader:()=>L(()=>import("./index.html-BNigzAMy.js"),[]),meta:{title:"选项组",icon:"vaadin:tabs"}}],["/guide/markdown/plot/",{loader:()=>L(()=>import("./index.html-DXhdJBY0.js"),[]),meta:{title:"隐秘文本",icon:"weui:eyes-off-outlined"}}],["/guide/markdown/experiment/",{loader:()=>L(()=>import("./index.html-CC3JEa1j.js"),[]),meta:{title:"Two Slash",icon:"material-symbols:experiment-outline"}}],["/guide/code/intro/",{loader:()=>L(()=>import("./index.html-Dwb8Db0L.js"),[]),meta:{title:"介绍",icon:"ic:outline-code"}}],["/guide/code/group/",{loader:()=>L(()=>import("./index.html-CIpWBEW6.js"),[]),meta:{title:"代码组",icon:"fluent:group-list-20-filled"}}],["/guide/code/import/",{loader:()=>L(()=>import("./index.html-5Z8Jysya.js"),[]),meta:{title:"导入代码",icon:"mdi:import"}}],["/guide/code/features/",{loader:()=>L(()=>import("./index.html-D-V7sa7K.js"),[]),meta:{title:"特性支持",icon:"majesticons:code-block-line"}}],["/guide/code/code-sandbox/",{loader:()=>L(()=>import("./index.html-D5wF7VnV.js"),[]),meta:{title:"Code Sandbox",icon:"lucide:codesandbox"}}],["/guide/code/code-pen/",{loader:()=>L(()=>import("./index.html-D5Ng8qG1.js"),[]),meta:{title:"Code Pen",icon:"mingcute:codepen-line"}}],["/guide/repl/golang/",{loader:()=>L(()=>import("./index.html-B7ksddZA.js"),[]),meta:{title:"Golang",icon:"devicon-plain:go"}}],["/guide/code/jsfiddle/",{loader:()=>L(()=>import("./index.html-C3Y0v3CT.js"),[]),meta:{title:"Js Fiddle",icon:"bxl:jsfiddle"}}],["/guide/repl/kotlin/",{loader:()=>L(()=>import("./index.html-BcGbcj_X.js"),[]),meta:{title:"Kotlin",icon:"tabler:brand-kotlin"}}],["/guide/code/replit/",{loader:()=>L(()=>import("./index.html-CCgtCe5k.js"),[]),meta:{title:"Replit",icon:"simple-icons:replit"}}],["/guide/repl/rust/",{loader:()=>L(()=>import("./index.html-CFA8gI_-.js"),[]),meta:{title:"Rust",icon:"logos:rust"}}],["/guide/repl/frontend/",{loader:()=>L(()=>import("./index.html-B4rRXalQ.js"),[]),meta:{title:"前端",icon:"icon-park-outline:html-five"}}],["/guide/seo/",{loader:()=>L(()=>import("./index.html-xT_kV30X.js"),[]),meta:{title:"SEO",icon:"tabler:seo"}}],["/guide/sitemap/",{loader:()=>L(()=>import("./index.html-CpBTjrdF.js"),[]),meta:{title:"sitemap",icon:"mdi:sitemap-outline"}}],["/guide/features/copy-code/",{loader:()=>L(()=>import("./index.html-DwG5uvys.js"),[]),meta:{title:"代码复制",icon:"ph:code"}}],["/guide/features/content-search/",{loader:()=>L(()=>import("./index.html-CygDCSz8.js"),[]),meta:{title:"内容搜索",icon:"material-symbols:search"}}],["/guide/features/encryption/",{loader:()=>L(()=>import("./index.html-DSESXEov.js"),[]),meta:{title:"加密",icon:"mdi:encryption-outline"}}],["/guide/friend-links/",{loader:()=>L(()=>import("./index.html-CspeYFHp.js"),[]),meta:{title:"友情链接页",icon:"carbon:friendship"}}],["/guide/features/icon/",{loader:()=>L(()=>import("./index.html-c_yfGSlM.js"),[]),meta:{title:"图标",icon:"raphael:smile2"}}],["/guide/features/watermark/",{loader:()=>L(()=>import("./index.html-Dy1tgcCQ.js"),[]),meta:{title:"文章水印",icon:"material-symbols-light:branding-watermark-outline"}}],["/guide/features/component/",{loader:()=>L(()=>import("./index.html-6WCZkMZ1.js"),[]),meta:{title:"组件",icon:"radix-icons:component-2"}}],["/guide/features/comments/",{loader:()=>L(()=>import("./index.html-CFpO1tI9.js"),[]),meta:{title:"评论",icon:"la:comment"}}],["/guide/chart/chartjs/",{loader:()=>L(()=>import("./index.html-CHRJRxw0.js"),[]),meta:{title:"chart.js",icon:"solar:chart-bold"}}],["/guide/chart/echarts/",{loader:()=>L(()=>import("./index.html-mxim5YNE.js"),[]),meta:{title:"ECharts",icon:"raphael:piechart"}}],["/guide/chart/flowchart/",{loader:()=>L(()=>import("./index.html-BizZsOss.js"),[]),meta:{title:"flowchart",icon:"f7:flowchart"}}],["/guide/chart/mermaid/",{loader:()=>L(()=>import("./index.html-xCOcbd43.js"),[]),meta:{title:"mermaid",icon:"file-icons:mermaid"}}],["/guide/embed/video/bilibili/",{loader:()=>L(()=>import("./index.html-oznygkPQ.js"),[]),meta:{title:"Bilibili 视频",icon:"ri:bilibili-fill"}}],["/guide/embed/pdf/",{loader:()=>L(()=>import("./index.html-BdZkRi2p.js"),[]),meta:{title:"PDF 阅读",icon:"teenyicons:pdf-outline"}}],["/guide/embed/video/youtube/",{loader:()=>L(()=>import("./index.html-ESCvKLwl.js"),[]),meta:{title:"Youtube 视频",icon:"mdi:youtube"}}],["/guide/components/npm-badge/",{loader:()=>L(()=>import("./index.html-BdFui4ov.js"),[]),meta:{title:"Npm 徽章",icon:"akar-icons:npm-fill"}}],["/guide/components/github-repo-card/",{loader:()=>L(()=>import("./index.html-D_zyaO4Q.js"),[]),meta:{title:"Repo 卡片",icon:"octicon:repo-16"}}],["/guide/components/cark/",{loader:()=>L(()=>import("./index.html-BziaN_ZX.js"),[]),meta:{title:"卡片",icon:"solar:card-broken"}}],["/guide/components/card-grid/",{loader:()=>L(()=>import("./index.html-CJh1SDu-.js"),[]),meta:{title:"卡片容器",icon:"vaadin:grid-h"}}],["/guide/components/icon/",{loader:()=>L(()=>import("./index.html-yU8zHCOa.js"),[]),meta:{title:"图标",icon:"grommet-icons:emoji"}}],["/guide/components/image-card/",{loader:()=>L(()=>import("./index.html-T3PdZbWx.js"),[]),meta:{title:"图片卡片",icon:"fa:photo"}}],["/guide/components/badge/",{loader:()=>L(()=>import("./index.html-BAw1jmll.js"),[]),meta:{title:"徽章",icon:"iconamoon:badge-light"}}],["/guide/components/swiper/",{loader:()=>L(()=>import("./index.html-CyHv3iy0.js"),[]),meta:{title:"轮播图",icon:"dashicons:images-alt2"}}],["/guide/components/link-card/",{loader:()=>L(()=>import("./index.html-Bg6L6T2Q.js"),[]),meta:{title:"链接卡片",icon:"solar:card-send-linear"}}],["/guide/components/plot/",{loader:()=>L(()=>import("./index.html-B1AHr7D-.js"),[]),meta:{title:"“隐秘”文本",icon:"lets-icons:hide-eye"}}],["/guide/components/home-box/",{loader:()=>L(()=>import("./index.html-B4hyHbX5.js"),[]),meta:{title:"首页布局容器",icon:"tabler:container"}}],["/404.html",{loader:()=>L(()=>import("./404.html-Undc4OIk.js"),[]),meta:{title:""}}],["/en/blog/",{loader:()=>L(()=>import("./index.html-DrTCHU7K.js"),[]),meta:{title:"Blog"}}],["/en/blog/tags/",{loader:()=>L(()=>import("./index.html-H0F5yhTg.js"),[]),meta:{title:"Tags"}}],["/en/blog/archives/",{loader:()=>L(()=>import("./index.html-DMyL13lF.js"),[]),meta:{title:"Archives"}}],["/en/blog/categories/",{loader:()=>L(()=>import("./index.html-CLlx7vdZ.js"),[]),meta:{title:"Categories"}}],["/blog/",{loader:()=>L(()=>import("./index.html-o4ReQ5b5.js"),[]),meta:{title:"博客"}}],["/blog/tags/",{loader:()=>L(()=>import("./index.html-B3rM4Yr-.js"),[]),meta:{title:"标签"}}],["/blog/archives/",{loader:()=>L(()=>import("./index.html-DWw_qIAs.js"),[]),meta:{title:"归档"}}],["/blog/categories/",{loader:()=>L(()=>import("./index.html-B3KOi8mg.js"),[]),meta:{title:"分类"}}]]);function n0(){return nh().__VUE_DEVTOOLS_GLOBAL_HOOK__}function nh(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const o0=typeof Proxy=="function",r0="devtools-plugin:setup",i0="plugin:settings:set";let Oo,Da;function s0(){var e;return Oo!==void 0||(typeof window<"u"&&window.performance?(Oo=!0,Da=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Oo=!0,Da=globalThis.perf_hooks.performance):Oo=!1),Oo}function a0(){return s0()?Da.now():Date.now()}class l0{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const s in t.settings){const a=t.settings[s];o[s]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},o);try{const s=localStorage.getItem(r),a=JSON.parse(s);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(r,JSON.stringify(s))}catch{}i=s},now(){return a0()}},n&&n.on(i0,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function c0(e,t){const n=e,o=nh(),r=n0(),i=o0&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))r.emit(r0,e,t);else{const s=i?new l0(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const _n=typeof document<"u";function oh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function u0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&oh(e.default)}const Te=Object.assign;function Xs(e,t){const n={};for(const o in t){const r=t[o];n[o]=xt(r)?r.map(e):e(r)}return n}const Cr=()=>{},xt=Array.isArray,rh=/#/g,d0=/&/g,f0=/\//g,p0=/=/g,h0=/\?/g,ih=/\+/g,m0=/%5B/g,v0=/%5D/g,sh=/%5E/g,g0=/%60/g,ah=/%7B/g,_0=/%7C/g,lh=/%7D/g,b0=/%20/g;function Fl(e){return encodeURI(""+e).replace(_0,"|").replace(m0,"[").replace(v0,"]")}function y0(e){return Fl(e).replace(ah,"{").replace(lh,"}").replace(sh,"^")}function Ma(e){return Fl(e).replace(ih,"%2B").replace(b0,"+").replace(rh,"%23").replace(d0,"%26").replace(g0,"`").replace(ah,"{").replace(lh,"}").replace(sh,"^")}function w0(e){return Ma(e).replace(p0,"%3D")}function k0(e){return Fl(e).replace(rh,"%23").replace(h0,"%3F")}function E0(e){return e==null?"":k0(e).replace(f0,"%2F")}function Zo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const x0=/\/$/,P0=e=>e.replace(x0,"");function ea(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=T0(o??t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Zo(s)}}function S0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function wu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function C0(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Jn(t.matched[o],n.matched[r])&&ch(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ch(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!A0(e[n],t[n]))return!1;return!0}function A0(e,t){return xt(e)?ku(e,t):xt(t)?ku(t,e):e===t}function ku(e,t){return xt(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function T0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,s,a;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(s).join("/")}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var zr;(function(e){e.pop="pop",e.push="push"})(zr||(zr={}));var Ar;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ar||(Ar={}));function L0(e){if(!e)if(_n){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),P0(e)}const O0=/^[^#]+#/;function $0(e,t){return e.replace(O0,"#")+t}function V0(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Ss=()=>({left:window.scrollX,top:window.scrollY});function B0(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=V0(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Eu(e,t){return(history.state?history.state.position-t:-1)+e}const ja=new Map;function I0(e,t){ja.set(e,t)}function R0(e){const t=ja.get(e);return ja.delete(e),t}let D0=()=>location.protocol+"//"+location.host;function uh(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),wu(l,"")}return wu(n,e)+o+r}function M0(e,t,n,o){let r=[],i=[],s=null;const a=({state:f})=>{const p=uh(e,location),m=n.value,g=t.value;let b=0;if(f){if(n.value=p,t.value=f,s&&s===m){s=null;return}b=g?f.position-g.position:0}else o(p);r.forEach(w=>{w(n.value,m,{delta:b,type:zr.pop,direction:b?b>0?Ar.forward:Ar.back:Ar.unknown})})};function l(){s=n.value}function c(f){r.push(f);const p=()=>{const m=r.indexOf(f);m>-1&&r.splice(m,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Te({},f.state,{scroll:Ss()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function xu(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Ss():null}}function j0(e){const{history:t,location:n}=window,o={value:uh(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:D0()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function s(l,c){const u=Te({},t.state,xu(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),o.value=l}function a(l,c){const u=Te({},r.value,t.state,{forward:l,scroll:Ss()});i(u.current,u,!0);const d=Te({},xu(o.value,l,null),{position:u.position+1},c);i(l,d,!1),o.value=l}return{location:o,state:r,push:a,replace:s}}function N0(e){e=L0(e);const t=j0(e),n=M0(e,t.state,t.location,t.replace);function o(i,s=!0){s||n.pauseListeners(),history.go(i)}const r=Te({location:"",base:e,go:o,createHref:$0.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function dh(e){return typeof e=="string"||e&&typeof e=="object"}function fh(e){return typeof e=="string"||typeof e=="symbol"}const ph=Symbol("");var Pu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pu||(Pu={}));function Xo(e,t){return Te(new Error,{type:e,[ph]:!0},t)}function hn(e,t){return e instanceof Error&&ph in e&&(t==null||!!(e.type&t))}const Su="[^/]+?",H0={sensitive:!1,strict:!1,start:!0,end:!0},F0=/[.+*?^${}()[\]/\\]/g;function z0(e,t){const n=Te({},H0,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function hh(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const U0={type:0,value:""},W0=/[a-zA-Z0-9_]/;function G0(e){if(!e)return[[]];if(e==="/")return[[U0]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,o=n;const r=[];let i;function s(){i&&r.push(i),i=[]}let a=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{s(y)}:Cr}function s(d){if(fh(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function l(d){const f=Z0(d,n);n.splice(f,0,d),d.record.name&&!Lu(d)&&o.set(d.record.name,d)}function c(d,f){let p,m={},g,b;if("name"in d&&d.name){if(p=o.get(d.name),!p)throw Xo(1,{location:d});b=p.record.name,m=Te(Au(f.params,p.keys.filter(y=>!y.optional).concat(p.parent?p.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&Au(d.params,p.keys.map(y=>y.name))),g=p.stringify(m)}else if(d.path!=null)g=d.path,p=n.find(y=>y.re.test(g)),p&&(m=p.parse(g),b=p.record.name);else{if(p=f.name?o.get(f.name):n.find(y=>y.re.test(f.path)),!p)throw Xo(1,{location:d,currentLocation:f});b=p.record.name,m=Te({},f.params,d.params),g=p.stringify(m)}const w=[];let S=p;for(;S;)w.unshift(S.record),S=S.parent;return{name:b,path:g,params:m,matched:w,meta:Q0(w)}}e.forEach(d=>i(d));function u(){n.length=0,o.clear()}return{addRoute:i,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function Au(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Tu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:J0(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function J0(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Lu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Q0(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function Ou(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Z0(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;hh(e,t[i])<0?o=i:n=i+1}const r=X0(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function X0(e){let t=e;for(;t=t.parent;)if(mh(t)&&hh(e,t)===0)return t}function mh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function eb(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Ma(i)):[o&&Ma(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function tb(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=xt(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const nb=Symbol(""),Vu=Symbol(""),Cs=Symbol(""),zl=Symbol(""),Na=Symbol("");function hr(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Nn(e,t,n,o,r,i=s=>s()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Xo(4,{from:n,to:t})):f instanceof Error?l(f):dh(f)?l(Xo(2,{from:t,to:f})):(s&&o.enterCallbacks[r]===s&&typeof f=="function"&&s.push(f),a())},u=i(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function ta(e,t,n,o,r=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(oh(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Nn(u,n,o,s,a,r))}else{let c=l();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const d=u0(u)?u.default:u;s.mods[a]=u,s.components[a]=d;const p=(d.__vccOpts||d)[t];return p&&Nn(p,n,o,s,a,r)()}))}}return i}function Bu(e){const t=De(Cs),n=De(zl),o=E(()=>{const l=kn(e.to);return t.resolve(l)}),r=E(()=>{const{matched:l}=o.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Jn.bind(null,u));if(f>-1)return f;const p=Iu(l[c-2]);return c>1&&Iu(u)===p&&d[d.length-1].path!==p?d.findIndex(Jn.bind(null,l[c-2])):f}),i=E(()=>r.value>-1&&sb(n.params,o.value.params)),s=E(()=>r.value>-1&&r.value===n.matched.length-1&&ch(n.params,o.value.params));function a(l={}){return ib(l)?t[kn(e.replace)?"replace":"push"](kn(e.to)).catch(Cr):Promise.resolve()}if(_n){const l=Zn();if(l){const c={route:o.value,isActive:i.value,isExactActive:s.value,error:null};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(c),Eo(()=>{c.route=o.value,c.isActive=i.value,c.isExactActive=s.value,c.error=dh(kn(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:o,href:E(()=>o.value.href),isActive:i,isExactActive:s,navigate:a}}const ob=V({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Bu,setup(e,{slots:t}){const n=ei(Bu(e)),{options:o}=De(Cs),r=E(()=>({[Ru(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Ru(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:le("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),rb=ob;function ib(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function sb(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!xt(r)||r.length!==o.length||o.some((i,s)=>i!==r[s]))return!1}return!0}function Iu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ru=(e,t,n)=>e??t??n,ab=V({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=De(Na),r=E(()=>e.route||o.value),i=De(Vu,0),s=E(()=>{let c=kn(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=E(()=>r.value.matched[s.value]);Xt(Vu,E(()=>s.value+1)),Xt(nb,a),Xt(Na,r);const l=I();return me(()=>[l.value,a.value,e.name],([c,u,d],[f,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Jn(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Du(n.default,{Component:f,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,b=le(f,Te({},m,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(d.instances[u]=null)},ref:l}));if(_n&&b.ref){const w={depth:s.value,name:d.name,path:d.path,meta:d.meta};(xt(b.ref)?b.ref.map(y=>y.i):[b.ref.i]).forEach(y=>{y.__vrv_devtools=w})}return Du(n.default,{Component:b,route:c})||b}}});function Du(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lb=ab;function mr(e,t){const n=Te({},e,{matched:e.matched.map(o=>bb(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Ei(e){return{_custom:{display:e}}}let cb=0;function ub(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=cb++;c0({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},r=>{typeof r.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.on.inspectComponent((u,d)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:mr(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:u,componentInstance:d})=>{if(d.__vrv_devtools){const f=d.__vrv_devtools;u.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:vh})}xt(d.__vrl_devtools)&&(d.__devtoolsApi=r,d.__vrl_devtools.forEach(f=>{let p=f.route.path,m=bh,g="",b=0;f.error?(p=f.error,m=mb,b=vb):f.isExactActive?(m=_h,g="This is exactly active"):f.isActive&&(m=gh,g="This link is active"),u.tags.push({label:p,textColor:b,tooltip:g,backgroundColor:m})}))}),me(t.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(a),r.sendInspectorState(a)});const i="router:navigations:"+o;r.addTimelineLayer({id:i,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((u,d)=>{r.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:r.now(),data:{error:u},groupId:d.meta.__navigationId}})});let s=0;t.beforeEach((u,d)=>{const f={guard:Ei("beforeEach"),from:mr(d,"Current Location during this navigation"),to:mr(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:s++}),r.addTimelineEvent({layerId:i,event:{time:r.now(),title:"Start of navigation",subtitle:u.fullPath,data:f,groupId:u.meta.__navigationId}})}),t.afterEach((u,d,f)=>{const p={guard:Ei("afterEach")};f?(p.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},p.status=Ei("❌")):p.status=Ei("✅"),p.from=mr(d,"Current Location during this navigation"),p.to=mr(u,"Target location"),r.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:u.fullPath,time:r.now(),data:p,logType:f?"warning":"default",groupId:u.meta.__navigationId}})});const a="router-inspector:"+o;r.addInspector({id:a,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!c)return;const u=c;let d=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);d.forEach(kh),u.filter&&(d=d.filter(f=>Ha(f,u.filter.toLowerCase()))),d.forEach(f=>wh(f,t.currentRoute.value)),u.rootNodes=d.map(yh)}let c;r.on.getInspectorTree(u=>{c=u,u.app===e&&u.inspectorId===a&&l()}),r.on.getInspectorState(u=>{if(u.app===e&&u.inspectorId===a){const f=n.getRoutes().find(p=>p.record.__vd_id===u.nodeId);f&&(u.state={options:fb(f)})}}),r.sendInspectorTree(a),r.sendInspectorState(a)})}function db(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function fb(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${db(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const vh=15485081,gh=2450411,_h=8702998,pb=2282478,bh=16486972,hb=6710886,mb=16704226,vb=12131356;function yh(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:pb}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:bh}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:vh}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:_h}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:gh}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:hb});let o=n.__vd_id;return o==null&&(o=String(gb++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(yh)}}let gb=0;const _b=/^\/(.*)\/([a-z]*)$/;function wh(e,t){const n=t.matched.length&&Jn(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>Jn(o,e.record))),e.children.forEach(o=>wh(o,t))}function kh(e){e.__vd_match=!1,e.children.forEach(kh)}function Ha(e,t){const n=String(e.re).match(_b);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(s=>Ha(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const r=e.record.path.toLowerCase(),i=Zo(r);return!t.startsWith("/")&&(i.includes(t)||r.includes(t))||i.startsWith(t)||r.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>Ha(s,t))}function bb(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function yb(e){const t=Y0(e.routes,e),n=e.parseQuery||eb,o=e.stringifyQuery||$u,r=e.history,i=hr(),s=hr(),a=hr(),l=je(vn);let c=vn;_n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Xs.bind(null,j=>""+j),d=Xs.bind(null,E0),f=Xs.bind(null,Zo);function p(j,ie){let te,ce;return fh(j)?(te=t.getRecordMatcher(j),ce=ie):ce=j,t.addRoute(ce,te)}function m(j){const ie=t.getRecordMatcher(j);ie&&t.removeRoute(ie)}function g(){return t.getRoutes().map(j=>j.record)}function b(j){return!!t.getRecordMatcher(j)}function w(j,ie){if(ie=Te({},ie||l.value),typeof j=="string"){const x=ea(n,j,ie.path),O=t.resolve({path:x.path},ie),G=r.createHref(x.fullPath);return Te(x,O,{params:f(O.params),hash:Zo(x.hash),redirectedFrom:void 0,href:G})}let te;if(j.path!=null)te=Te({},j,{path:ea(n,j.path,ie.path).path});else{const x=Te({},j.params);for(const O in x)x[O]==null&&delete x[O];te=Te({},j,{params:d(x)}),ie.params=d(ie.params)}const ce=t.resolve(te,ie),Se=j.hash||"";ce.params=u(f(ce.params));const Be=S0(o,Te({},j,{hash:y0(Se),path:ce.path})),k=r.createHref(Be);return Te({fullPath:Be,hash:Se,query:o===$u?tb(j.query):j.query||{}},ce,{redirectedFrom:void 0,href:k})}function S(j){return typeof j=="string"?ea(n,j,l.value.path):Te({},j)}function y(j,ie){if(c!==j)return Xo(8,{from:ie,to:j})}function P(j){return q(j)}function R(j){return P(Te(S(j),{replace:!0}))}function M(j){const ie=j.matched[j.matched.length-1];if(ie&&ie.redirect){const{redirect:te}=ie;let ce=typeof te=="function"?te(j):te;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=S(ce):{path:ce},ce.params={}),Te({query:j.query,hash:j.hash,params:ce.path!=null?{}:j.params},ce)}}function q(j,ie){const te=c=w(j),ce=l.value,Se=j.state,Be=j.force,k=j.replace===!0,x=M(te);if(x)return q(Te(S(x),{state:typeof x=="object"?Te({},Se,x.state):Se,force:Be,replace:k}),ie||te);const O=te;O.redirectedFrom=ie;let G;return!Be&&C0(o,ce,te)&&(G=Xo(16,{to:O,from:ce}),Pt(ce,ce,!0,!1)),(G?Promise.resolve(G):$(O,ce)).catch(N=>hn(N)?hn(N,2)?N:tt(N):ae(N,O,ce)).then(N=>{if(N){if(hn(N,2))return q(Te({replace:k},S(N.to),{state:typeof N.to=="object"?Te({},Se,N.to.state):Se,force:Be}),ie||O)}else N=z(O,ce,!0,k,Se);return W(O,ce,N),N})}function Q(j,ie){const te=y(j,ie);return te?Promise.reject(te):Promise.resolve()}function H(j){const ie=fn.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(j):j()}function $(j,ie){let te;const[ce,Se,Be]=wb(j,ie);te=ta(ce.reverse(),"beforeRouteLeave",j,ie);for(const x of ce)x.leaveGuards.forEach(O=>{te.push(Nn(O,j,ie))});const k=Q.bind(null,j,ie);return te.push(k),nt(te).then(()=>{te=[];for(const x of i.list())te.push(Nn(x,j,ie));return te.push(k),nt(te)}).then(()=>{te=ta(Se,"beforeRouteUpdate",j,ie);for(const x of Se)x.updateGuards.forEach(O=>{te.push(Nn(O,j,ie))});return te.push(k),nt(te)}).then(()=>{te=[];for(const x of Be)if(x.beforeEnter)if(xt(x.beforeEnter))for(const O of x.beforeEnter)te.push(Nn(O,j,ie));else te.push(Nn(x.beforeEnter,j,ie));return te.push(k),nt(te)}).then(()=>(j.matched.forEach(x=>x.enterCallbacks={}),te=ta(Be,"beforeRouteEnter",j,ie,H),te.push(k),nt(te))).then(()=>{te=[];for(const x of s.list())te.push(Nn(x,j,ie));return te.push(k),nt(te)}).catch(x=>hn(x,8)?x:Promise.reject(x))}function W(j,ie,te){a.list().forEach(ce=>H(()=>ce(j,ie,te)))}function z(j,ie,te,ce,Se){const Be=y(j,ie);if(Be)return Be;const k=ie===vn,x=_n?history.state:{};te&&(ce||k?r.replace(j.fullPath,Te({scroll:k&&x&&x.scroll},Se)):r.push(j.fullPath,Se)),l.value=j,Pt(j,ie,te,k),tt()}let oe;function he(){oe||(oe=r.listen((j,ie,te)=>{if(!Ut.listening)return;const ce=w(j),Se=M(ce);if(Se){q(Te(Se,{replace:!0}),ce).catch(Cr);return}c=ce;const Be=l.value;_n&&I0(Eu(Be.fullPath,te.delta),Ss()),$(ce,Be).catch(k=>hn(k,12)?k:hn(k,2)?(q(k.to,ce).then(x=>{hn(x,20)&&!te.delta&&te.type===zr.pop&&r.go(-1,!1)}).catch(Cr),Promise.reject()):(te.delta&&r.go(-te.delta,!1),ae(k,ce,Be))).then(k=>{k=k||z(ce,Be,!1),k&&(te.delta&&!hn(k,8)?r.go(-te.delta,!1):te.type===zr.pop&&hn(k,20)&&r.go(-1,!1)),W(ce,Be,k)}).catch(Cr)}))}let we=hr(),re=hr(),de;function ae(j,ie,te){tt(j);const ce=re.list();return ce.length?ce.forEach(Se=>Se(j,ie,te)):console.error(j),Promise.reject(j)}function ye(){return de&&l.value!==vn?Promise.resolve():new Promise((j,ie)=>{we.add([j,ie])})}function tt(j){return de||(de=!j,he(),we.list().forEach(([ie,te])=>j?te(j):ie()),we.reset()),j}function Pt(j,ie,te,ce){const{scrollBehavior:Se}=e;if(!_n||!Se)return Promise.resolve();const Be=!te&&R0(Eu(j.fullPath,0))||(ce||!te)&&history.state&&history.state.scroll||null;return mt().then(()=>Se(j,ie,Be)).then(k=>k&&B0(k)).catch(k=>ae(k,j,ie))}const Ye=j=>r.go(j);let vt;const fn=new Set,Ut={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:w,options:e,push:P,replace:R,go:Ye,back:()=>Ye(-1),forward:()=>Ye(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:re.add,isReady:ye,install(j){const ie=this;j.component("RouterLink",rb),j.component("RouterView",lb),j.config.globalProperties.$router=ie,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>kn(l)}),_n&&!vt&&l.value===vn&&(vt=!0,P(r.location).catch(Se=>{}));const te={};for(const Se in vn)Object.defineProperty(te,Se,{get:()=>l.value[Se],enumerable:!0});j.provide(Cs,ie),j.provide(zl,Hf(te)),j.provide(Na,l);const ce=j.unmount;fn.add(j),j.unmount=function(){fn.delete(j),fn.size<1&&(c=vn,oe&&oe(),oe=null,l.value=vn,vt=!1,de=!1),ce()},_n&&ub(j,ie,t)}};function nt(j){return j.reduce((ie,te)=>ie.then(()=>H(te)),Promise.resolve())}return Ut}function wb(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sJn(c,a))?o.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(c=>Jn(c,l))||r.push(l))}return[n,o,r]}function ar(){return De(Cs)}function dt(e){return De(zl)}var ql=Symbol(""),An=()=>{const e=De(ql);if(!e)throw new Error("useClientData() is called without provider.");return e},Eh=()=>An().pageComponent,As=()=>An().pageData,lr=()=>An().pageFrontmatter,kb=()=>An().pageHead,xo=()=>An().pageLang,Eb=()=>An().pageLayout,eo=()=>An().routeLocale,xh=()=>An().routePath,Ph=()=>An().siteLocaleData,xb=Symbol(""),Fa=je(e0),Wo=je(t0),Sh=(e,t)=>{const n=G_(e,t);if(Wo.value[n])return n;const o=encodeURI(n);if(Wo.value[o])return o;const r=Fa.value[n]||Fa.value[o];return r||n},er=(e,t)=>{const{pathname:n,hashAndQueries:o}=Qp(e),r=Sh(n,t),i=r+o;return Wo.value[r]?{...Wo.value[r],path:i,notFound:!1}:{...Wo.value["/404.html"],path:i,notFound:!0}},to=(e,t)=>{const{pathname:n,hashAndQueries:o}=Qp(e);return Sh(n,t)+o},Pb=e=>{if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget){const t=e.currentTarget.getAttribute("target");if(t!=null&&t.match(/\b_blank\b/i))return}return e.preventDefault(),!0}},Sb=V({name:"RouteLink",props:{to:{type:String,required:!0},active:Boolean,activeClass:{type:String,default:"route-link-active"}},slots:Object,setup(e,{slots:t}){const n=ar(),o=dt(),r=E(()=>e.to.startsWith("#")||e.to.startsWith("?")?e.to:`/${to(e.to,o.path).substring(1)}`);return()=>le("a",{class:["route-link",{[e.activeClass]:e.active}],href:r.value,onClick:(i={})=>{Pb(i)&&n.push(e.to).catch()}},t.default())}}),Cb=V({name:"ClientOnly",setup(e,t){const n=I(!1);return Ee(()=>{n.value=!0}),()=>{var o,r;return n.value?(r=(o=t.slots).default)==null?void 0:r.call(o):null}}}),Ch=V({name:"Content",props:{path:{type:String,required:!1,default:""}},setup(e){const t=Eh(),n=E(()=>{if(!e.path)return t.value;const o=er(e.path);return ws(async()=>o.loader().then(({comp:r})=>r))});return()=>le(n.value)}}),Ab="Layout",Tb="en-US",so=ei({resolveLayouts:e=>e.reduce((t,n)=>({...t,...n.layouts}),{}),resolvePageHead:(e,t,n)=>{const o=Ht(t.description)?t.description:n.description,r=[...Array.isArray(t.head)?t.head:[],...n.head,["title",{},e],["meta",{name:"description",content:o}]];return X_(r)},resolvePageHeadTitle:(e,t)=>[e.title,t.title].filter(n=>!!n).join(" | "),resolvePageLang:(e,t)=>e.lang||t.lang||Tb,resolvePageLayout:(e,t)=>{const n=Ht(e.frontmatter.layout)?e.frontmatter.layout:Ab;if(!t[n])throw new Error(`[vuepress] Cannot resolve layout: ${n}`);return t[n]},resolveRouteLocale:(e,t)=>K_(e,decodeURI(t)),resolveSiteLocaleData:({base:e,locales:t,...n},o)=>{var r;return{...n,...t[o],head:[...((r=t[o])==null?void 0:r.head)??[],...n.head]}}}),cn=(e={})=>e,et=e=>Bt(e)?e:`/${Hl(e)}`,Lb={};const Ob=Object.freeze(Object.defineProperty({__proto__:null,default:Lb},Symbol.toStringTag,{value:"Module"}));var Ni=[];function $b(e){Ni.push(e),It(()=>{Ni=Ni.filter(t=>t!==e)})}function na(e){Ni.forEach(t=>t(e))}var Vb=V({name:"Content",props:{path:{type:String,required:!1,default:""}},setup(e){const t=Eh(),n=E(()=>{if(!e.path)return t.value;const o=er(e.path);return ws(()=>o.loader().then(({comp:r})=>r))});return()=>le(n.value,{onVnodeMounted:()=>na({mounted:!0}),onVnodeUpdated:()=>na({updated:!0}),onVnodeBeforeUnmount:()=>na({beforeUnmount:!0})})}}),Bb=cn({enhance({app:e}){e._context.components.Content&&delete e._context.components.Content,e.component("Content",Vb)}});const Ib=Object.freeze(Object.defineProperty({__proto__:null,default:Bb},Symbol.toStringTag,{value:"Module"}));function un(e){return Sf()?(sg(e),!0):!1}function We(e){return typeof e=="function"?e():kn(e)}const ai=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Rb=e=>e!=null,Db=Object.prototype.toString,Mb=e=>Db.call(e)==="[object Object]",zn=()=>{},jb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),za=Nb();function Nb(){var e,t;return ai&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ah(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const Th=e=>e();function Lh(e,t={}){let n,o,r=zn;const i=a=>{clearTimeout(a),r(),r=zn};return a=>{const l=We(e),c=We(t.maxWait);return n&&i(n),l<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(a())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(a())},l)})}}function Hb(e=Th){const t=I(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Zt(t),pause:n,resume:o,eventFilter:r}}function Fb(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const o=t;t=void 0,o&&await o},n}function zb(e){return Zn()}function Oh(...e){if(e.length!==1)return bo(...e);const t=e[0];return typeof t=="function"?Zt(_s(()=>({get:t,set:zn}))):I(t)}function Ts(e,t=200,n={}){return Ah(Lh(t,n),e)}function $h(e,t,n={}){const{eventFilter:o=Th,...r}=n;return me(e,Ah(o,t),r)}function qb(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:i,pause:s,resume:a,isActive:l}=Hb(o);return{stop:$h(e,t,{...r,eventFilter:i}),pause:s,resume:a,isActive:l}}function li(e,t=!0,n){zb()?Ee(e,n):t?e():mt(e)}function Ub(e,t,n={}){const{immediate:o=!0}=n,r=I(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function a(){r.value=!1,s()}function l(...c){s(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...c)},We(t))}return o&&(r.value=!0,ai&&l()),un(a),{isPending:Zt(r),start:l,stop:a}}function Vh(e=!1,t={}){const{truthyValue:n=!0,falsyValue:o=!1}=t,r=Fe(e),i=I(e);function s(a){if(arguments.length)return i.value=a,i.value;{const l=We(n);return i.value=i.value===l?We(o):l,i.value}}return r?s:[i,s]}function IO(e,t,n={}){const{debounce:o=0,maxWait:r=void 0,...i}=n;return $h(e,t,{...i,eventFilter:Lh(o,{maxWait:r})})}function RO(e,t,n){let o;Fe(n)?o={evaluating:n}:o={};const{lazy:r=!1,evaluating:i=void 0,shallow:s=!0,onError:a=zn}=o,l=I(!r),c=s?je(t):I(t);let u=0;return Eo(async d=>{if(!l.value)return;u++;const f=u;let p=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const m=await e(g=>{d(()=>{i&&(i.value=!1),p||g()})});f===u&&(c.value=m)}catch(m){a(m)}finally{i&&f===u&&(i.value=!1),p=!0}}),r?E(()=>(l.value=!0,c.value)):c}const at=ai?window:void 0,Bh=ai?window.document:void 0,Ih=ai?window.navigator:void 0;function it(e){var t;const n=We(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Me(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=at):[t,n,o,r]=e,!t)return zn;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=me(()=>[it(t),We(r)],([u,d])=>{if(s(),!u)return;const f=Mb(d)?{...d}:d;i.push(...n.flatMap(p=>o.map(m=>a(u,p,m,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return un(c),c}let Mu=!1;function Ul(e,t,n={}){const{window:o=at,ignore:r=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return zn;za&&!Mu&&(Mu=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",zn)),o.document.documentElement.addEventListener("click",zn));let a=!0;const l=p=>We(r).some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(g=>g===p.target||p.composedPath().includes(g));{const g=it(m);return g&&(p.target===g||p.composedPath().includes(g))}}),c=p=>{const m=it(e);if(!(!m||m===p.target||p.composedPath().includes(m))){if(p.detail===0&&(a=!l(p)),!a){a=!0;return}t(p)}};let u=!1;const d=[Me(o,"click",p=>{u||(u=!0,setTimeout(()=>{u=!1},0),c(p))},{passive:!0,capture:i}),Me(o,"pointerdown",p=>{const m=it(e);a=!l(p)&&!!(m&&!p.composedPath().includes(m))},{passive:!0}),s&&Me(o,"blur",p=>{setTimeout(()=>{var m;const g=it(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(g!=null&&g.contains(o.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}function Wb(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ju(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=at,eventName:i="keydown",passive:s=!1,dedupe:a=!1}=o,l=Wb(t);return Me(r,i,u=>{u.repeat&&We(a)||l(u)&&n(u)},s)}function Gb(){const e=I(!1),t=Zn();return t&&Ee(()=>{e.value=!0},t),e}function cr(e){const t=Gb();return E(()=>(t.value,!!e()))}function Wl(e,t,n={}){const{window:o=at,...r}=n;let i;const s=cr(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},l=E(()=>{const f=We(e),p=(Array.isArray(f)?f:[f]).map(it).filter(Rb);return new Set(p)}),c=me(()=>l.value,f=>{a(),s.value&&f.size&&(i=new MutationObserver(t),f.forEach(p=>i.observe(p,r)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),d=()=>{c(),a()};return un(d),{isSupported:s,stop:d,takeRecords:u}}function rn(e,t={}){const{window:n=at}=t,o=cr(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=I(!1),s=c=>{i.value=c.matches},a=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",s):r.removeListener(s))},l=Eo(()=>{o.value&&(a(),r=n.matchMedia(We(e)),"addEventListener"in r?r.addEventListener("change",s):r.addListener(s),i.value=r.matches)});return un(()=>{l(),a(),r=void 0}),i}function Nu(e,t={}){const{controls:n=!1,navigator:o=Ih}=t,r=cr(()=>o&&"permissions"in o),i=je(),s=typeof e=="string"?{name:e}:e,a=je(),l=()=>{var u,d;a.value=(d=(u=i.value)==null?void 0:u.state)!=null?d:"prompt"};Me(i,"change",l);const c=Fb(async()=>{if(r.value){if(!i.value)try{i.value=await o.permissions.query(s)}catch{i.value=void 0}finally{l()}if(n)return ke(i.value)}});return c(),n?{state:a,isSupported:r,query:c}:a}function Kb(e={}){const{navigator:t=Ih,read:n=!1,source:o,copiedDuring:r=1500,legacy:i=!1}=e,s=cr(()=>t&&"clipboard"in t),a=Nu("clipboard-read"),l=Nu("clipboard-write"),c=E(()=>s.value||i),u=I(""),d=I(!1),f=Ub(()=>d.value=!1,r);function p(){s.value&&w(a.value)?t.clipboard.readText().then(S=>{u.value=S}):u.value=b()}c.value&&n&&Me(["copy","cut"],p);async function m(S=We(o)){c.value&&S!=null&&(s.value&&w(l.value)?await t.clipboard.writeText(S):g(S),u.value=S,d.value=!0,f.start())}function g(S){const y=document.createElement("textarea");y.value=S??"",y.style.position="absolute",y.style.opacity="0",document.body.appendChild(y),y.select(),document.execCommand("copy"),y.remove()}function b(){var S,y,P;return(P=(y=(S=document==null?void 0:document.getSelection)==null?void 0:S.call(document))==null?void 0:y.toString())!=null?P:""}function w(S){return S==="granted"||S==="prompt"}return{isSupported:c,text:u,copied:d,copy:m}}const xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pi="__vueuse_ssr_handlers__",Yb=Jb();function Jb(){return Pi in xi||(xi[Pi]=xi[Pi]||{}),xi[Pi]}function Rh(e,t){return Yb[e]||t}function Dh(e){return rn("(prefers-color-scheme: dark)",e)}function Qb(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Zb={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Hu="vueuse-storage";function ci(e,t,n,o={}){var r;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=at,eventFilter:f,onError:p=$=>{console.error($)},initOnMounted:m}=o,g=(u?je:I)(typeof t=="function"?t():t);if(!n)try{n=Rh("getDefaultStorage",()=>{var $;return($=at)==null?void 0:$.localStorage})()}catch($){p($)}if(!n)return g;const b=We(t),w=Qb(b),S=(r=o.serializer)!=null?r:Zb[w],{pause:y,resume:P}=qb(g,()=>M(g.value),{flush:i,deep:s,eventFilter:f});d&&a&&li(()=>{n instanceof Storage?Me(d,"storage",Q):Me(d,Hu,H),m&&Q()}),m||Q();function R($,W){if(d){const z={key:e,oldValue:$,newValue:W,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",z):new CustomEvent(Hu,{detail:z}))}}function M($){try{const W=n.getItem(e);if($==null)R(W,null),n.removeItem(e);else{const z=S.write($);W!==z&&(n.setItem(e,z),R(W,z))}}catch(W){p(W)}}function q($){const W=$?$.newValue:n.getItem(e);if(W==null)return l&&b!=null&&n.setItem(e,S.write(b)),b;if(!$&&c){const z=S.read(W);return typeof c=="function"?c(z,b):w==="object"&&!Array.isArray(z)?{...b,...z}:z}else return typeof W!="string"?W:S.read(W)}function Q($){if(!($&&$.storageArea!==n)){if($&&$.key==null){g.value=b;return}if(!($&&$.key!==e)){y();try{($==null?void 0:$.newValue)!==S.write(g.value)&&(g.value=q($))}catch(W){p(W)}finally{$?mt(P):P()}}}}function H($){Q($.detail)}return g}const Xb="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function ey(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=at,storage:i,storageKey:s="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},f=Dh({window:r}),p=E(()=>f.value?"dark":"light"),m=l||(s==null?Oh(o):ci(s,o,i,{window:r,listenToStorageChanges:a})),g=E(()=>m.value==="auto"?p.value:m.value),b=Rh("updateHTMLAttrs",(P,R,M)=>{const q=typeof P=="string"?r==null?void 0:r.document.querySelector(P):it(P);if(!q)return;const Q=new Set,H=new Set;let $=null;if(R==="class"){const z=M.split(/\s/g);Object.values(d).flatMap(oe=>(oe||"").split(/\s/g)).filter(Boolean).forEach(oe=>{z.includes(oe)?Q.add(oe):H.add(oe)})}else $={key:R,value:M};if(Q.size===0&&H.size===0&&$===null)return;let W;u&&(W=r.document.createElement("style"),W.appendChild(document.createTextNode(Xb)),r.document.head.appendChild(W));for(const z of Q)q.classList.add(z);for(const z of H)q.classList.remove(z);$&&q.setAttribute($.key,$.value),u&&(r.getComputedStyle(W).opacity,document.head.removeChild(W))});function w(P){var R;b(t,n,(R=d[P])!=null?R:P)}function S(P){e.onChanged?e.onChanged(P,w):w(P)}me(g,S,{flush:"post",immediate:!0}),li(()=>S(g.value));const y=E({get(){return c?m.value:g.value},set(P){m.value=P}});try{return Object.assign(y,{store:m,system:p,state:g})}catch{return y}}function ty(e,t,n={}){const{window:o=at,initialValue:r,observe:i=!1}=n,s=I(r),a=E(()=>{var c;return it(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function l(){var c;const u=We(e),d=We(a);if(d&&o&&u){const f=(c=o.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();s.value=f||r}}return i&&Wl(a,l,{attributeFilter:["style","class"],window:o}),me([a,()=>We(e)],(c,u)=>{u[0]&&u[1]&&u[0].style.removeProperty(u[1]),l()},{immediate:!0}),me(s,c=>{var u;const d=We(e);(u=a.value)!=null&&u.style&&d&&(c==null?a.value.style.removeProperty(d):a.value.style.setProperty(d,c))}),s}function ny(e={}){const{valueDark:t="dark",valueLight:n="",window:o=at}=e,r=ey({...e,onChanged:(a,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark",l,a):l(a)},modes:{dark:t,light:n}}),i=E(()=>r.system?r.system.value:Dh({window:o}).value?"dark":"light");return E({get(){return r.value==="dark"},set(a){const l=a?"dark":"light";i.value===l?r.value="auto":r.value=l}})}function oy(e,t,n={}){const{window:o=at,...r}=n;let i;const s=cr(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},l=E(()=>{const d=We(e);return Array.isArray(d)?d.map(f=>it(f)):[it(d)]}),c=me(l,d=>{if(a(),s.value&&o){i=new ResizeObserver(t);for(const f of d)f&&i.observe(f,r)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return un(u),{isSupported:s,stop:u}}function ry(e,t={width:0,height:0},n={}){const{window:o=at,box:r="content-box"}=n,i=E(()=>{var d,f;return(f=(d=it(e))==null?void 0:d.namespaceURI)==null?void 0:f.includes("svg")}),s=I(t.width),a=I(t.height),{stop:l}=oy(e,([d])=>{const f=r==="border-box"?d.borderBoxSize:r==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(o&&i.value){const p=it(e);if(p){const m=p.getBoundingClientRect();s.value=m.width,a.value=m.height}}else if(f){const p=Array.isArray(f)?f:[f];s.value=p.reduce((m,{inlineSize:g})=>m+g,0),a.value=p.reduce((m,{blockSize:g})=>m+g,0)}else s.value=d.contentRect.width,a.value=d.contentRect.height},n);li(()=>{const d=it(e);d&&(s.value="offsetWidth"in d?d.offsetWidth:t.width,a.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=me(()=>it(e),d=>{s.value=d?t.width:0,a.value=d?t.height:0});function u(){l(),c()}return{width:s,height:a,stop:u}}const Fu=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function iy(e,t={}){const{document:n=Bh,autoExit:o=!1}=t,r=E(()=>{var w;return(w=it(e))!=null?w:n==null?void 0:n.querySelector("html")}),i=I(!1),s=E(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),a=E(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),l=E(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>n&&w in n||r.value&&w in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>n&&w in n),u=cr(()=>r.value&&n&&s.value!==void 0&&a.value!==void 0&&l.value!==void 0),d=()=>c?(n==null?void 0:n[c])===r.value:!1,f=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const w=r.value;if((w==null?void 0:w[l.value])!=null)return!!w[l.value]}}return!1};async function p(){if(!(!u.value||!i.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const w=r.value;(w==null?void 0:w[a.value])!=null&&await w[a.value]()}i.value=!1}}async function m(){if(!u.value||i.value)return;f()&&await p();const w=r.value;s.value&&(w==null?void 0:w[s.value])!=null&&(await w[s.value](),i.value=!0)}async function g(){await(i.value?p():m())}const b=()=>{const w=f();(!w||w&&d())&&(i.value=w)};return Me(n,Fu,b,!1),Me(()=>it(r),Fu,b,!1),o&&un(p),{isSupported:u,isFullscreen:i,enter:m,exit:p,toggle:g}}function oa(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function zu(e,t,n={}){const{window:o=at}=n;return ci(e,t,o==null?void 0:o.localStorage,n)}function Mh(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ra=new WeakMap;function Gl(e,t=!1){const n=I(t);let o=null,r="";me(Oh(e),a=>{const l=oa(We(a));if(l){const c=l;if(ra.get(c)||ra.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(r=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const i=()=>{const a=oa(We(e));!a||n.value||(za&&(o=Me(a,"touchmove",l=>{sy(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},s=()=>{const a=oa(We(e));!a||!n.value||(za&&(o==null||o()),a.style.overflow=r,ra.delete(a),n.value=!1)};return un(s),E({get(){return n.value},set(a){a?i():s()}})}function qa(e,t,n={}){const{window:o=at}=n;return ci(e,t,o==null?void 0:o.sessionStorage,n)}let ay=0;function ly(e,t={}){const n=I(!1),{document:o=Bh,immediate:r=!0,manual:i=!1,id:s=`vueuse_styletag_${++ay}`}=t,a=I(e);let l=()=>{};const c=()=>{if(!o)return;const d=o.getElementById(s)||o.createElement("style");d.isConnected||(d.id=s,t.media&&(d.media=t.media),o.head.appendChild(d)),!n.value&&(l=me(a,f=>{d.textContent=f},{immediate:!0}),n.value=!0)},u=()=>{!o||!n.value||(l(),o.head.removeChild(o.getElementById(s)),n.value=!1)};return r&&!i&&li(c),i||un(u),{id:s,css:a,unload:u,load:c,isLoaded:Zt(n)}}function Kl(e={}){const{window:t=at,behavior:n="auto"}=e;if(!t)return{x:I(0),y:I(0)};const o=I(t.scrollX),r=I(t.scrollY),i=E({get(){return o.value},set(a){scrollTo({left:a,behavior:n})}}),s=E({get(){return r.value},set(a){scrollTo({top:a,behavior:n})}});return Me(t,"scroll",()=>{o.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:i,y:s}}function cy(e={}){const{window:t=at,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:i=!0,type:s="inner"}=e,a=I(n),l=I(o),c=()=>{t&&(s==="outer"?(a.value=t.outerWidth,l.value=t.outerHeight):i?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),li(c),Me("resize",c,{passive:!0}),r){const u=rn("(orientation: portrait)");me(u,()=>c())}return{width:a,height:l}}const qu=async(e,t)=>{const{path:n,query:o}=e.currentRoute.value,{scrollBehavior:r}=e.options;e.options.scrollBehavior=void 0,await e.replace({path:n,query:o,hash:t}),e.options.scrollBehavior=r},uy=({headerLinkSelector:e,headerAnchorSelector:t,delay:n,offset:o=5})=>{const r=ar();Me("scroll",Ts(()=>{var m,g;const s=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop);if(Math.abs(s-0)d.some(w=>w.hash===b.hash));for(let b=0;b=(((m=w.parentElement)==null?void 0:m.offsetTop)??0)-o,P=!S||s<(((g=S.parentElement)==null?void 0:g.offsetTop)??0)-o;if(!(y&&P))continue;const M=decodeURIComponent(r.currentRoute.value.hash),q=decodeURIComponent(w.hash);if(M===q)return;if(u){for(let Q=b+1;Q{const r=le("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,preserveAspectRatio:"xMidYMid",viewBox:"25 25 50 50"},[le("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;360"}),le("circle",{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t,"stroke-linecap":"round"},[le("animate",{attributeName:"stroke-dasharray",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"1,200;90,200;1,200"}),le("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"0;-35px;-125px"})])]);return n?le("div",{class:"loading-icon-wrapper",style:`display:flex;align-items:center;justify-content:center;height:${o}px`},r):r};Po.displayName="LoadingIcon";var yt=Uint8Array,Mo=Uint16Array,gy=Int32Array,jh=new yt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Nh=new yt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),_y=new yt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Hh=function(e,t){for(var n=new Mo(31),o=0;o<31;++o)n[o]=t+=1<>1|(Ne&21845)<<1;$n=($n&52428)>>2|($n&13107)<<2,$n=($n&61680)>>4|($n&3855)<<4,Ua[Ne]=(($n&65280)>>8|($n&255)<<8)>>1}var Tr=function(e,t,n){for(var o=e.length,r=0,i=new Mo(t);r>l]=c}else for(a=new Mo(o),r=0;r>15-e[r]);return a},ui=new yt(288);for(var Ne=0;Ne<144;++Ne)ui[Ne]=8;for(var Ne=144;Ne<256;++Ne)ui[Ne]=9;for(var Ne=256;Ne<280;++Ne)ui[Ne]=7;for(var Ne=280;Ne<288;++Ne)ui[Ne]=8;var qh=new yt(32);for(var Ne=0;Ne<32;++Ne)qh[Ne]=5;var ky=Tr(ui,9,1),Ey=Tr(qh,5,1),ia=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},Dt=function(e,t,n){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&n},sa=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},xy=function(e){return(e+7)/8|0},Uh=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new yt(e.subarray(t,n))},Py=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],At=function(e,t,n){var o=new Error(t||Py[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,At),!n)throw o;return o},Sy=function(e,t,n,o){var r=e.length,i=0;if(!r||t.f&&!t.l)return n||new yt(0);var s=!n,a=s||t.i!=2,l=t.i;s&&(n=new yt(r*3));var c=function(Se){var Be=n.length;if(Se>Be){var k=new yt(Math.max(Be*2,Se));k.set(n),n=k}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,g=t.m,b=t.n,w=r*8;do{if(!p){u=Dt(e,d,1);var S=Dt(e,d+1,3);if(d+=3,S)if(S==1)p=ky,m=Ey,g=9,b=5;else if(S==2){var M=Dt(e,d,31)+257,q=Dt(e,d+10,15)+4,Q=M+Dt(e,d+5,31)+1;d+=14;for(var H=new yt(Q),$=new yt(19),W=0;W>4;if(y<16)H[W++]=y;else{var re=0,de=0;for(y==16?(de=3+Dt(e,d,3),d+=2,re=H[W-1]):y==17?(de=3+Dt(e,d,7),d+=3):y==18&&(de=11+Dt(e,d,127),d+=7);de--;)H[W++]=re}}var ae=H.subarray(0,M),ye=H.subarray(M);g=ia(ae),b=ia(ye),p=Tr(ae,g,1),m=Tr(ye,b,1)}else At(1);else{var y=xy(d)+4,P=e[y-4]|e[y-3]<<8,R=y+P;if(R>r){l&&At(0);break}a&&c(f+P),n.set(e.subarray(y,R),f),t.b=f+=P,t.p=d=R*8,t.f=u;continue}if(d>w){l&&At(0);break}}a&&c(f+131072);for(var tt=(1<>4;if(d+=re&15,d>w){l&&At(0);break}if(re||At(2),vt<256)n[f++]=vt;else if(vt==256){Ye=d,p=null;break}else{var fn=vt-254;if(vt>264){var W=vt-257,Ut=jh[W];fn=Dt(e,d,(1<>4;nt||At(3),d+=nt&15;var ye=wy[j];if(j>3){var Ut=Nh[j];ye+=sa(e,d)&(1<w){l&&At(0);break}a&&c(f+131072);var ie=f+fn;if(f>4>7||(e[0]<<8|e[1])%31)&&At(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&At(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Ty(e,t){return Sy(e.subarray(Ay(e,t),-4),{i:2},t,t)}var Wa=typeof TextDecoder<"u"&&new TextDecoder,Ly=0;try{Wa.decode(Cy,{stream:!0}),Ly=1}catch{}var Oy=function(e){for(var t="",n=0;;){var o=e[n++],r=(o>127)+(o>223)+(o>239);if(n+r>e.length)return{s:t,r:Uh(e,n-1)};r?r==3?(o=((o&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):r&1?t+=String.fromCharCode((o&31)<<6|e[n++]&63):t+=String.fromCharCode((o&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(o)}};function $y(e,t){{for(var n=new yt(e.length),o=0;o{const t=atob(e);return Vy(Ty($y(t)))},So=e=>new Promise(t=>{setTimeout(t,e)}),Wh=e=>{const t=eo();return E(()=>e[t.value]??{})},Gh=e=>typeof e<"u",{isArray:Ga}=Array,By=(e,t)=>Ht(e)&&e.startsWith(t),{keys:Kh}=Object,Yh=e=>By(e,"/");/** + * NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT + */const Uu=(e,t)=>{e.classList.add(t)},Wu=(e,t)=>{e.classList.remove(t)},Iy=e=>{var t;(t=e==null?void 0:e.parentNode)==null||t.removeChild(e)},aa=(e,t,n)=>en?n:e,Gu=e=>(-1+e)*100,Ry=(()=>{const e=[],t=()=>{const n=e.shift();n&&n(t)};return n=>{e.push(n),e.length===1&&t()}})(),Dy=e=>e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(t,n)=>n.toUpperCase()),Si=(()=>{const e=["Webkit","O","Moz","ms"],t={},n=i=>{const{style:s}=document.body;if(i in s)return i;const a=i.charAt(0).toUpperCase()+i.slice(1);let l=e.length;for(;l--;){const c=`${e[l]}${a}`;if(c in s)return c}return i},o=i=>{const s=Dy(i);return t[s]??(t[s]=n(s))},r=(i,s,a)=>{i.style[o(s)]=a};return(i,s)=>{for(const a in s){const l=s[a];Object.hasOwn(s,a)&&Gh(l)&&r(i,a,l)}}})(),mn={minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'
'},qe={percent:null,isRendered:()=>!!document.getElementById("nprogress"),set:e=>{const{speed:t,easing:n}=mn,o=qe.isStarted(),r=aa(e,mn.minimum,1);qe.percent=r===1?null:r;const i=qe.render(!o),s=i.querySelector(mn.barSelector);return i.offsetWidth,Ry(a=>{Si(s,{transform:`translate3d(${Gu(r)}%,0,0)`,transition:`all ${t}ms ${n}`}),r===1?(Si(i,{transition:"none",opacity:"1"}),i.offsetWidth,setTimeout(()=>{Si(i,{transition:`all ${t}ms linear`,opacity:"0"}),setTimeout(()=>{qe.remove(),a()},t)},t)):setTimeout(()=>{a()},t)}),qe},isStarted:()=>typeof qe.percent=="number",start:()=>{qe.percent||qe.set(0);const e=()=>{setTimeout(()=>{qe.percent&&(qe.trickle(),e())},mn.trickleSpeed)};return e(),qe},done:e=>!e&&!qe.percent?qe:qe.increase(.3+.5*Math.random()).set(1),increase:e=>{let{percent:t}=qe;return t?(t=aa(t+(typeof e=="number"?e:(1-t)*aa(Math.random()*t,.1,.95)),0,.994),qe.set(t)):qe.start()},trickle:()=>qe.increase(Math.random()*mn.trickleRate),render:e=>{if(qe.isRendered())return document.getElementById("nprogress");Uu(document.documentElement,"nprogress-busy");const t=document.createElement("div");t.id="nprogress",t.innerHTML=mn.template;const n=t.querySelector(mn.barSelector),o=document.querySelector(mn.parent),r=e?"-100":Gu(qe.percent??0);return Si(n,{transition:"all 0 linear",transform:`translate3d(${r}%,0,0)`}),o&&(o!==document.body&&Uu(o,"nprogress-custom-parent"),o.appendChild(t)),t},remove:()=>{Wu(document.documentElement,"nprogress-busy"),Wu(document.querySelector(mn.parent),"nprogress-custom-parent"),Iy(document.getElementById("nprogress"))}},My=()=>{Ee(()=>{const e=ar(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(n=>{t.has(n.path)||qe.start()}),e.afterEach(n=>{t.add(n.path),qe.done()})})},jy=cn({setup(){My()}}),Ny=Object.freeze(Object.defineProperty({__proto__:null,default:jy},Symbol.toStringTag,{value:"Module"})),Hy=I({}),Jh=Symbol(""),Fy=()=>De(Jh),zy=e=>{e.provide(Jh,Hy)},qy='
',Uy=e=>Ht(e)?Array.from(document.querySelectorAll(e)):e.map(t=>Array.from(document.querySelectorAll(t))).flat(),Qh=e=>new Promise((t,n)=>{e.complete?t({type:"image",element:e,src:e.src,width:e.naturalWidth,height:e.naturalHeight,alt:e.alt,msrc:e.src}):(e.onload=()=>{t(Qh(e))},e.onerror=()=>{n()})}),Wy=(e,{download:t=!0,fullscreen:n=!0}={})=>{e.on("uiRegister",()=>{if(e.ui.registerElement({name:"bulletsIndicator",className:"photo-swipe-bullets-indicator",appendTo:"wrapper",onInit:o=>{const r=[];let i=-1;for(let s=0;s{e.goTo(r.indexOf(l.target))},r.push(a),o.appendChild(a)}e.on("change",()=>{i>=0&&r[i].classList.remove("active"),r[e.currIndex].classList.add("active"),i=e.currIndex})}}),n){const{isSupported:o,toggle:r}=iy();o.value&&e.ui.registerElement({name:"fullscreen",order:7,isButton:!0,html:'',onClick:()=>{r()}})}t&&e.ui.registerElement({name:"download",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:o=>{o.setAttribute("download",""),o.setAttribute("target","_blank"),o.setAttribute("rel","noopener"),e.on("change",()=>{o.setAttribute("href",e.currSlide.data.src)})}})})},Gy=(e,{scrollToClose:t=!0,download:n=!0,fullscreen:o=!0,...r})=>L(async()=>{const{default:i}=await import("./photoswipe.esm-GXRgw7eJ.js");return{default:i}},[]).then(({default:i})=>{let s=null;const a=e.map(l=>({html:qy,element:l,msrc:l.src}));return e.forEach((l,c)=>{const u=()=>{s==null||s.destroy(),s=new i({preloaderDelay:0,showHideAnimationType:"zoom",...r,dataSource:a,index:c,...t?{closeOnVerticalDrag:!0,wheelToZoom:!1}:{}}),Wy(s,{download:n,fullscreen:o}),s.addFilter("thumbEl",()=>l),s.addFilter("placeholderSrc",()=>l.src),s.init()};l.getAttribute("photo-swipe")||(l.style.cursor="zoom-in",l.addEventListener("click",()=>{u()}),l.addEventListener("keypress",({key:d})=>{d==="Enter"&&u()}),l.setAttribute("photo-swipe","")),Qh(l).then(d=>{a.splice(c,1,d),s==null||s.refreshSlideContent(c)})}),t?Me("wheel",()=>{s==null||s.close()}):()=>{}}),Ky=({selector:e,locales:t,delay:n=500,download:o=!0,fullscreen:r=!0,scrollToClose:i=!0})=>{const s=Fy(),a=Wh(t),l=As(),c=lr();let u=null;const d=()=>{const{photoSwipe:f}=c.value;f!==!1&&mt().then(()=>So(n)).then(async()=>{const p=Ht(f)?f:e;u=await Gy(Uy(p),{...s.value,...a.value,download:o,fullscreen:r,scrollToClose:i})})};Ee(()=>{d(),me(()=>[l.value.path,s.value],()=>{u==null||u(),d()})}),It(()=>{u==null||u()})};var Yy={"/en/":{closeTitle:"Close",downloadTitle:"Download Image",fullscreenTitle:"Switch to fullscreen",zoomTitle:"Zoom in/out",arrowPrevTitle:"Prev (Arrow Left)",arrowNextTitle:"Next (Arrow Right)"},"/":{closeTitle:"关闭",downloadTitle:"下载图片",fullscreenTitle:"切换全屏",zoomTitle:"缩放",arrowPrevTitle:"上一个 (左箭头)",arrowNextTitle:"下一个 (右箭头)"}};const Jy=".plume-content > img, .plume-content :not(a) > img",Qy=Yy,Zy=300,Xy=!0,e2=!0,t2=!0;var n2=cn({enhance:({app:e})=>{zy(e)},setup:()=>{Ky({selector:Jy,delay:Zy,locales:Qy,download:Xy,fullscreen:e2,scrollToClose:t2})}});const o2=Object.freeze(Object.defineProperty({__proto__:null,default:n2},Symbol.toStringTag,{value:"Module"})),r2={"/":()=>L(()=>import("./searchBox-default-_7XNqUBl.js"),[]),"/en/":()=>L(()=>import("./searchBox-en-cVud1dAQ.js"),[])};var Ku={"/":{placeholder:"Search",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}};function i2(e){const t=bo(e),n=eo();return E(()=>t.value[n.value]??Ku[n.value]??Ku["/"])}var s2=je(r2);function DO(){return s2}const a2=V({__name:"SearchButton",props:{locales:{}},setup(e,{expose:t}){t();const n=e,o=i2(bo(n.locales)),r={props:n,locale:o};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),D=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},l2=["aria-label"],c2={class:"mini-search-button-container"},u2={class:"mini-search-button-placeholder"};function d2(e,t,n,o,r,i){return h(),_("button",{type:"button",class:"mini-search mini-search-button","aria-label":o.locale.placeholder},[v("span",c2,[t[0]||(t[0]=v("svg",{class:"mini-search-search-icon",width:"20",height:"20",viewBox:"0 0 20 20","aria-label":"search icon"},[v("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),v("span",u2,U(o.locale.placeholder),1)]),t[1]||(t[1]=v("span",{class:"mini-search-button-keys"},[v("kbd",{class:"mini-search-button-key"}),v("kbd",{class:"mini-search-button-key"},"K")],-1))],8,l2)}const f2=D(a2,[["render",d2],["__file","SearchButton.vue"]]),p2=V({__name:"Search",props:{locales:{},options:{}},setup(e,{expose:t}){t();const n=ws(()=>L(()=>import("./SearchBox-axK1GpWF.js"),[])),o=I(!1);ju("k",s=>{(s.ctrlKey||s.metaKey)&&(s.preventDefault(),o.value=!0)}),ju("/",s=>{r(s)||(s.preventDefault(),o.value=!0)});function r(s){const a=s.target,l=a.tagName;return a.isContentEditable||l==="INPUT"||l==="SELECT"||l==="TEXTAREA"}const i={SearchBox:n,showSearch:o,isEditingContent:r,SearchButton:f2};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),h2={class:"search-wrapper"},m2={id:"local-search"};function v2(e,t,n,o,r,i){return h(),_("div",h2,[o.showSearch?(h(),F(o.SearchBox,{key:0,locales:n.locales,options:n.options,onClose:t[0]||(t[0]=s=>o.showSearch=!1)},null,8,["locales","options"])):T("",!0),v("div",m2,[B(o.SearchButton,{locales:n.locales,onClick:t[1]||(t[1]=s=>o.showSearch=!0)},null,8,["locales"])])])}const g2=D(p2,[["render",v2],["__scopeId","data-v-62419745"],["__file","Search.vue"]]);var _2={"/en/":{placeholder:"Search",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}},"/":{placeholder:"搜索文档",resetButtonTitle:"重置搜索",backButtonTitle:"关闭",noResultsText:"无搜索结果:",footer:{selectText:"选择",selectKeyAriaLabel:"输入",navigateText:"切换",navigateUpKeyAriaLabel:"向上",navigateDownKeyAriaLabel:"向下",closeText:"关闭",closeKeyAriaLabel:"退出"}}},b2={},y2=_2,w2=b2,k2=cn({enhance({app:e}){e.component("SearchBox",t=>le(g2,{locales:y2,options:w2,...t}))}});const E2=Object.freeze(Object.defineProperty({__proto__:null,default:k2},Symbol.toStringTag,{value:"Module"})),x2=["top","right","bottom","left"],Yu=["start","end"],Ju=x2.reduce((e,t)=>e.concat(t,t+"-"+Yu[0],t+"-"+Yu[1]),[]),qr=Math.min,co=Math.max,P2={left:"right",right:"left",bottom:"top",top:"bottom"},S2={start:"end",end:"start"};function Ka(e,t,n){return co(e,qr(t,n))}function Co(e,t){return typeof e=="function"?e(t):e}function sn(e){return e.split("-")[0]}function Ft(e){return e.split("-")[1]}function Zh(e){return e==="x"?"y":"x"}function Yl(e){return e==="y"?"height":"width"}function wo(e){return["top","bottom"].includes(sn(e))?"y":"x"}function Jl(e){return Zh(wo(e))}function Xh(e,t,n){n===void 0&&(n=!1);const o=Ft(e),r=Jl(e),i=Yl(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=rs(s)),[s,rs(s)]}function C2(e){const t=rs(e);return[os(e),t,os(t)]}function os(e){return e.replace(/start|end/g,t=>S2[t])}function A2(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function T2(e,t,n,o){const r=Ft(e);let i=A2(sn(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(os)))),i}function rs(e){return e.replace(/left|right|bottom|top/g,t=>P2[t])}function L2(e){return{top:0,right:0,bottom:0,left:0,...e}}function em(e){return typeof e!="number"?L2(e):{top:e,right:e,bottom:e,left:e}}function Lr(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Qu(e,t,n){let{reference:o,floating:r}=e;const i=wo(t),s=Jl(t),a=Yl(s),l=sn(t),c=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Ft(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1);break}return p}const O2=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Qu(c,o,l),f=o,p={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Co(e,t)||{};if(c==null)return{};const d=em(u),f={x:n,y:o},p=Jl(r),m=Yl(p),g=await s.getDimensions(c),b=p==="y",w=b?"top":"left",S=b?"bottom":"right",y=b?"clientHeight":"clientWidth",P=i.reference[m]+i.reference[p]-f[p]-i.floating[m],R=f[p]-i.reference[p],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let q=M?M[y]:0;(!q||!await(s.isElement==null?void 0:s.isElement(M)))&&(q=a.floating[y]||i.floating[m]);const Q=P/2-R/2,H=q/2-g[m]/2-1,$=qr(d[w],H),W=qr(d[S],H),z=$,oe=q-g[m]-W,he=q/2-g[m]/2+Q,we=Ka(z,he,oe),re=!l.arrow&&Ft(r)!=null&&he!==we&&i.reference[m]/2-(heFt(r)===e),...n.filter(r=>Ft(r)!==e)]:n.filter(r=>sn(r)===r)).filter(r=>e?Ft(r)===e||(t?os(r)!==r:!1):!0)}const B2=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:i,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:f=Ju,autoAlignment:p=!0,...m}=Co(e,t),g=d!==void 0||f===Ju?V2(d||null,p,f):f,b=await Ls(t,m),w=((n=s.autoPlacement)==null?void 0:n.index)||0,S=g[w];if(S==null)return{};const y=Xh(S,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==S)return{reset:{placement:g[0]}};const P=[b[sn(S)],b[y[0]],b[y[1]]],R=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:S,overflows:P}],M=g[w+1];if(M)return{data:{index:w+1,overflows:R},reset:{placement:M}};const q=R.map($=>{const W=Ft($.placement);return[$.placement,W&&u?$.overflows.slice(0,2).reduce((z,oe)=>z+oe,0):$.overflows[0],$.overflows]}).sort(($,W)=>$[1]-W[1]),H=((r=q.filter($=>$[2].slice(0,Ft($[0])?2:3).every(W=>W<=0))[0])==null?void 0:r[0])||q[0][0];return H!==a?{data:{index:w+1,overflows:R},reset:{placement:H}}:{}}}},I2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Co(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=sn(r),S=wo(a),y=sn(a)===a,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),R=f||(y||!g?[rs(a)]:C2(a)),M=m!=="none";!f&&M&&R.push(...T2(a,g,m,P));const q=[a,...R],Q=await Ls(t,b),H=[];let $=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&H.push(Q[w]),d){const he=Xh(r,s,P);H.push(Q[he[0]],Q[he[1]])}if($=[...$,{placement:r,overflows:H}],!H.every(he=>he<=0)){var W,z;const he=(((W=i.flip)==null?void 0:W.index)||0)+1,we=q[he];if(we)return{data:{index:he,overflows:$},reset:{placement:we}};let re=(z=$.filter(de=>de.overflows[0]<=0).sort((de,ae)=>de.overflows[1]-ae.overflows[1])[0])==null?void 0:z.placement;if(!re)switch(p){case"bestFit":{var oe;const de=(oe=$.filter(ae=>{if(M){const ye=wo(ae.placement);return ye===S||ye==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ye=>ye>0).reduce((ye,tt)=>ye+tt,0)]).sort((ae,ye)=>ae[1]-ye[1])[0])==null?void 0:oe[0];de&&(re=de);break}case"initialPlacement":re=a;break}if(r!==re)return{reset:{placement:re}}}return{}}}};async function R2(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=sn(n),a=Ft(n),l=wo(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=Co(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const D2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await R2(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},M2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:w,y:S}=b;return{x:w,y:S}}},...l}=Co(e,t),c={x:n,y:o},u=await Ls(t,l),d=wo(sn(r)),f=Zh(d);let p=c[f],m=c[d];if(i){const b=f==="y"?"top":"left",w=f==="y"?"bottom":"right",S=p+u[b],y=p-u[w];p=Ka(S,p,y)}if(s){const b=d==="y"?"top":"left",w=d==="y"?"bottom":"right",S=m+u[b],y=m-u[w];m=Ka(S,m,y)}const g=a.fn({...t,[f]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:i,[d]:s}}}}}},j2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Co(e,t),u=await Ls(t,c),d=sn(r),f=Ft(r),p=wo(r)==="y",{width:m,height:g}=i.floating;let b,w;d==="top"||d==="bottom"?(b=d,w=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=d,b=f==="end"?"top":"bottom");const S=g-u.top-u.bottom,y=m-u.left-u.right,P=qr(g-u[b],S),R=qr(m-u[w],y),M=!t.middlewareData.shift;let q=P,Q=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(Q=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(q=S),M&&!f){const $=co(u.left,0),W=co(u.right,0),z=co(u.top,0),oe=co(u.bottom,0);p?Q=m-2*($!==0||W!==0?$+W:co(u.left,u.right)):q=g-2*(z!==0||oe!==0?z+oe:co(u.top,u.bottom))}await l({...t,availableWidth:Q,availableHeight:q});const H=await s.getDimensions(a.floating);return m!==H.width||g!==H.height?{reset:{rects:!0}}:{}}}};function Ot(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tn(e){return Ot(e).getComputedStyle(e)}const Zu=Math.min,Or=Math.max,is=Math.round;function tm(e){const t=tn(e);let n=parseFloat(t.width),o=parseFloat(t.height);const r=e.offsetWidth,i=e.offsetHeight,s=is(n)!==r||is(o)!==i;return s&&(n=r,o=i),{width:n,height:o,fallback:s}}function Qn(e){return om(e)?(e.nodeName||"").toLowerCase():""}let Ci;function nm(){if(Ci)return Ci;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ci=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Ci):navigator.userAgent}function nn(e){return e instanceof Ot(e).HTMLElement}function qn(e){return e instanceof Ot(e).Element}function om(e){return e instanceof Ot(e).Node}function Xu(e){return typeof ShadowRoot>"u"?!1:e instanceof Ot(e).ShadowRoot||e instanceof ShadowRoot}function Os(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function N2(e){return["table","td","th"].includes(Qn(e))}function Ya(e){const t=/firefox/i.test(nm()),n=tn(e),o=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!o&&o!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(r=>n.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const i=n.contain;return i!=null&&i.includes(r)})}function rm(){return!/^((?!chrome|android).)*safari/i.test(nm())}function Ql(e){return["html","body","#document"].includes(Qn(e))}function im(e){return qn(e)?e:e.contextElement}const sm={x:1,y:1};function Go(e){const t=im(e);if(!nn(t))return sm;const n=t.getBoundingClientRect(),{width:o,height:r,fallback:i}=tm(t);let s=(i?is(n.width):n.width)/o,a=(i?is(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function Ur(e,t,n,o){var r,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=im(e);let l=sm;t&&(o?qn(o)&&(l=Go(o)):l=Go(e));const c=a?Ot(a):window,u=!rm()&&n;let d=(s.left+(u&&((r=c.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,f=(s.top+(u&&((i=c.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,p=s.width/l.x,m=s.height/l.y;if(a){const g=Ot(a),b=o&&qn(o)?Ot(o):o;let w=g.frameElement;for(;w&&o&&b!==g;){const S=Go(w),y=w.getBoundingClientRect(),P=getComputedStyle(w);y.x+=(w.clientLeft+parseFloat(P.paddingLeft))*S.x,y.y+=(w.clientTop+parseFloat(P.paddingTop))*S.y,d*=S.x,f*=S.y,p*=S.x,m*=S.y,d+=y.x,f+=y.y,w=Ot(w).frameElement}}return{width:p,height:m,top:f,right:d+p,bottom:f+m,left:d,x:d,y:f}}function Un(e){return((om(e)?e.ownerDocument:e.document)||window.document).documentElement}function $s(e){return qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function am(e){return Ur(Un(e)).left+$s(e).scrollLeft}function Wr(e){if(Qn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xu(e)&&e.host||Un(e);return Xu(t)?t.host:t}function lm(e){const t=Wr(e);return Ql(t)?t.ownerDocument.body:nn(t)&&Os(t)?t:lm(t)}function ss(e,t){var n;t===void 0&&(t=[]);const o=lm(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ot(o);return r?t.concat(i,i.visualViewport||[],Os(o)?o:[]):t.concat(o,ss(o))}function ed(e,t,n){return t==="viewport"?Lr(function(o,r){const i=Ot(o),s=Un(o),a=i.visualViewport;let l=s.clientWidth,c=s.clientHeight,u=0,d=0;if(a){l=a.width,c=a.height;const f=rm();(f||!f&&r==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}return{width:l,height:c,x:u,y:d}}(e,n)):qn(t)?Lr(function(o,r){const i=Ur(o,!0,r==="fixed"),s=i.top+o.clientTop,a=i.left+o.clientLeft,l=nn(o)?Go(o):{x:1,y:1};return{width:o.clientWidth*l.x,height:o.clientHeight*l.y,x:a*l.x,y:s*l.y}}(t,n)):Lr(function(o){const r=Un(o),i=$s(o),s=o.ownerDocument.body,a=Or(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),l=Or(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let c=-i.scrollLeft+am(o);const u=-i.scrollTop;return tn(s).direction==="rtl"&&(c+=Or(r.clientWidth,s.clientWidth)-a),{width:a,height:l,x:c,y:u}}(Un(e)))}function td(e){return nn(e)&&tn(e).position!=="fixed"?e.offsetParent:null}function nd(e){const t=Ot(e);let n=td(e);for(;n&&N2(n)&&tn(n).position==="static";)n=td(n);return n&&(Qn(n)==="html"||Qn(n)==="body"&&tn(n).position==="static"&&!Ya(n))?t:n||function(o){let r=Wr(o);for(;nn(r)&&!Ql(r);){if(Ya(r))return r;r=Wr(r)}return null}(e)||t}function H2(e,t,n){const o=nn(t),r=Un(t),i=Ur(e,!0,n==="fixed",t);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&n!=="fixed")if((Qn(t)!=="body"||Os(r))&&(s=$s(t)),nn(t)){const l=Ur(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else r&&(a.x=am(r));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}const F2={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=n==="clippingAncestors"?function(c,u){const d=u.get(c);if(d)return d;let f=ss(c).filter(b=>qn(b)&&Qn(b)!=="body"),p=null;const m=tn(c).position==="fixed";let g=m?Wr(c):c;for(;qn(g)&&!Ql(g);){const b=tn(g),w=Ya(g);(m?w||p:w||b.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=b:f=f.filter(S=>S!==g),g=Wr(g)}return u.set(c,f),f}(t,this._c):[].concat(n),s=[...i,o],a=s[0],l=s.reduce((c,u)=>{const d=ed(t,u,r);return c.top=Or(d.top,c.top),c.right=Zu(d.right,c.right),c.bottom=Zu(d.bottom,c.bottom),c.left=Or(d.left,c.left),c},ed(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=nn(n),i=Un(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((r||!r&&o!=="fixed")&&((Qn(n)!=="body"||Os(i))&&(s=$s(n)),nn(n))){const c=Ur(n);a=Go(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},isElement:qn,getDimensions:function(e){return nn(e)?tm(e):e.getBoundingClientRect()},getOffsetParent:nd,getDocumentElement:Un,getScale:Go,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||nd,i=this.getDimensions;return{reference:H2(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>tn(e).direction==="rtl"},z2=(e,t,n)=>{const o=new Map,r={platform:F2,...n},i={...r.platform,_c:o};return O2(e,t,{...r,platform:i})};function cm(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?cm(e[n],t[n]):e[n]=t[n])}const zt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Gr(e,t){let n=zt.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=zt.themes[n.$extend]||{}:(n=null,o=zt[t]):n=null;while(n);return o}function q2(e){const t=[e];let n=zt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=zt.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function od(e){const t=[e];let n=zt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=zt.themes[n.$extend]||{}):n=null;while(n);return t}let tr=!1;if(typeof window<"u"){tr=!1;try{const e=Object.defineProperty({},"passive",{get(){tr=!0}});window.addEventListener("test",null,e)}catch{}}let um=!1;typeof window<"u"&&typeof navigator<"u"&&(um=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const dm=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),rd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},id={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function sd(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function la(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Mt=[];let ao=null;const ad={};function ld(e){let t=ad[e];return t||(t=ad[e]=[]),t}let Ja=function(){};typeof window<"u"&&(Ja=window.Element);function Pe(e){return function(t){return Gr(t.theme,e)}}const ca="__floating-vue__popper",fm=()=>V({name:"VPopper",provide(){return{[ca]:{parentPopper:this}}},inject:{[ca]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Pe("disabled")},positioningDisabled:{type:Boolean,default:Pe("positioningDisabled")},placement:{type:String,default:Pe("placement"),validator:e=>dm.includes(e)},delay:{type:[String,Number,Object],default:Pe("delay")},distance:{type:[Number,String],default:Pe("distance")},skidding:{type:[Number,String],default:Pe("skidding")},triggers:{type:Array,default:Pe("triggers")},showTriggers:{type:[Array,Function],default:Pe("showTriggers")},hideTriggers:{type:[Array,Function],default:Pe("hideTriggers")},popperTriggers:{type:Array,default:Pe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Pe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Pe("popperHideTriggers")},container:{type:[String,Object,Ja,Boolean],default:Pe("container")},boundary:{type:[String,Ja],default:Pe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Pe("strategy")},autoHide:{type:[Boolean,Function],default:Pe("autoHide")},handleResize:{type:Boolean,default:Pe("handleResize")},instantMove:{type:Boolean,default:Pe("instantMove")},eagerMount:{type:Boolean,default:Pe("eagerMount")},popperClass:{type:[String,Array,Object],default:Pe("popperClass")},computeTransformOrigin:{type:Boolean,default:Pe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Pe("autoMinSize")},autoSize:{type:[Boolean,String],default:Pe("autoSize")},autoMaxSize:{type:Boolean,default:Pe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Pe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Pe("preventOverflow")},overflowPadding:{type:[Number,String],default:Pe("overflowPadding")},arrowPadding:{type:[Number,String],default:Pe("arrowPadding")},arrowOverflow:{type:Boolean,default:Pe("arrowOverflow")},flip:{type:Boolean,default:Pe("flip")},shift:{type:Boolean,default:Pe("shift")},shiftCrossAxis:{type:Boolean,default:Pe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Pe("noAutoFocus")},disposeTimeout:{type:Number,default:Pe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ca])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,r;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(D2({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(B2({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(M2({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(I2({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push($2({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:r,middlewareData:i})=>{let s;const{centerOffset:a}=i.arrow;return o.startsWith("top")||o.startsWith("bottom")?s=Math.abs(a)>r.reference.width/2:s=Math.abs(a)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:r,placement:i,middlewareData:s})=>{var a;if((a=s.autoSize)!=null&&a.skip)return{};let l,c;return i.startsWith("top")||i.startsWith("bottom")?l=r.reference.width:c=r.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(j2({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:r})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const n=await z2(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ao&&this.instantMove&&ao.instantMove&&ao!==this.parentPopper){ao.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ao=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await la(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ss(this.$_referenceNode),...ss(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(o.left+n.offsetLeft),i=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,sd(Mt,this),Mt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of od(this.theme)){const o=ld(n);sd(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}ao===this&&(ao=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await la(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,rd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],rd,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,id,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],id,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,tr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,r){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(s=>{const a=t[s];a&&this.$_registerEventListeners(e,a,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:r,handler:i}=n;!e||e===r?o.forEach(s=>s.removeEventListener(r,i)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if($r>=e.left&&$r<=e.right&&Vr>=e.top&&Vr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=$r-In,o=Vr-Rn,r=t.left+t.width/2-In+(t.top+t.height/2)-Rn+t.width+t.height,i=In+n*r,s=Rn+o*r;return Ai(In,Rn,i,s,t.left,t.top,t.left,t.bottom)||Ai(In,Rn,i,s,t.left,t.top,t.right,t.top)||Ai(In,Rn,i,s,t.right,t.top,t.right,t.bottom)||Ai(In,Rn,i,s,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(um){const e=tr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>cd(t,!0),e),document.addEventListener("touchend",t=>ud(t,!0),e)}else window.addEventListener("mousedown",e=>cd(e,!1),!0),window.addEventListener("click",e=>ud(e,!1),!0);window.addEventListener("resize",hm)}function cd(e,t){if(zt.autoHideOnMousedown)pm(e,t);else for(let n=0;n=0;o--){const r=Mt[o];try{const i=r.containsGlobalTarget=r.mouseDownContains||r.popperNode().contains(e.target);r.pendingHide=!1,requestAnimationFrame(()=>{if(r.pendingHide=!1,!n[r.randomId]&&dd(r,i,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let a=r.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let s=r.parentPopper;for(;s&&dd(s,s.containsGlobalTarget,e);)s.$_handleGlobalClose(e,t),s=s.parentPopper}})}catch{}}}function dd(e,t,n){return n.closeAllPopover||n.closePopover&&t||U2(e,n)&&!t}function U2(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function hm(){for(let e=0;e{In=$r,Rn=Vr,$r=e.clientX,Vr=e.clientY},tr?{passive:!0}:void 0);function Ai(e,t,n,o,r,i,s,a){const l=((s-r)*(t-i)-(a-i)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t)),c=((n-e)*(t-i)-(o-t)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t));return l>=0&&l<=1&&c>=0&&c<=1}const W2={extends:fm()},Vs=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function G2(e,t,n,o,r,i){return h(),_("div",{ref:"reference",class:X(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[C(e.$slots,"default",Qv(Rp(e.slotData)))],2)}const K2=Vs(W2,[["render",G2]]);function Y2(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let Hi;function Qa(){Qa.init||(Qa.init=!0,Hi=Y2()!==-1)}var Bs={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Qa(),mt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hi&&this.$el.appendChild(e),e.data="about:blank",Hi||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Hi&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const J2=e1();Zg("data-v-b329ee4c");const Q2={class:"resize-observer",tabindex:"-1"};Xg();const Z2=J2((e,t,n,o,r,i)=>(h(),F("div",Q2)));Bs.render=Z2;Bs.__scopeId="data-v-b329ee4c";Bs.__file="src/components/ResizeObserver.vue";const mm=(e="theme")=>({computed:{themeClass(){return q2(this[e])}}}),X2=V({name:"VPopperContent",components:{ResizeObserver:Bs},mixins:[mm()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),e3=["id","aria-hidden","tabindex","data-popper-placement"],t3={ref:"inner",class:"v-popper__inner"},n3=v("div",{class:"v-popper__arrow-outer"},null,-1),o3=v("div",{class:"v-popper__arrow-inner"},null,-1),r3=[n3,o3];function i3(e,t,n,o,r,i){const s=ze("ResizeObserver");return h(),_("div",{id:e.popperId,ref:"popover",class:X(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Ce(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Nl(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[v("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),v("div",{class:"v-popper__wrapper",style:Ce(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[v("div",t3,[e.mounted?(h(),_(J,{key:0},[v("div",null,[C(e.$slots,"default")]),e.handleResize?(h(),F(s,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):T("",!0)],64)):T("",!0)],512),v("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ce(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},r3,4)],4)],46,e3)}const vm=Vs(X2,[["render",i3]]),gm={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Za=function(){};typeof window<"u"&&(Za=window.Element);const s3=V({name:"VPopperWrapper",components:{Popper:K2,PopperContent:vm},mixins:[gm,mm("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Za,Boolean],default:void 0},boundary:{type:[String,Za],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function a3(e,t,n,o,r,i){const s=ze("PopperContent"),a=ze("Popper");return h(),F(a,en({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:A(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:d,autoHide:f,show:p,hide:m,handleResize:g,onResize:b,classes:w,result:S})=>[C(e.$slots,"default",{shown:c,show:p,hide:m}),B(s,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":d,"auto-hide":f,"handle-resize":g,classes:w,result:S,onHide:m,onResize:b},{default:A(()=>[C(e.$slots,"popper",{shown:c,hide:m})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Zl=Vs(s3,[["render",a3]]),l3={...Zl,name:"VDropdown",vPopperTheme:"dropdown"},c3={...Zl,name:"VMenu",vPopperTheme:"menu"},u3={...Zl,name:"VTooltip",vPopperTheme:"tooltip"},d3=V({name:"VTooltipDirective",components:{Popper:fm(),PopperContent:vm},mixins:[gm],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Gr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Gr(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),f3=["innerHTML"],p3=["textContent"];function h3(e,t,n,o,r,i){const s=ze("PopperContent"),a=ze("Popper");return h(),F(a,en({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:A(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:d,autoHide:f,hide:p,handleResize:m,onResize:g,classes:b,result:w})=>[B(s,{ref:"popperContent",class:X({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":d,"auto-hide":f,"handle-resize":m,classes:b,result:w,onHide:p,onResize:g},{default:A(()=>[e.html?(h(),_("div",{key:0,innerHTML:e.finalContent},null,8,f3)):(h(),_("div",{key:1,textContent:U(e.finalContent)},null,8,p3))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const m3=Vs(d3,[["render",h3]]),_m="v-popper--has-tooltip";function v3(e,t){let n=e.placement;if(!n&&t)for(const o of dm)t[o]&&(n=o);return n||(n=Gr(e.theme||"tooltip","placement")),n}function bm(e,t,n){let o;const r=typeof t;return r==="string"?o={content:t}:t&&r==="object"?o=t:o={content:!1},o.placement=v3(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let ua,Kr,g3=0;function _3(){if(ua)return;Kr=I([]),ua=F_({name:"VTooltipDirectiveApp",setup(){return{directives:Kr}},render(){return this.directives.map(t=>le(m3,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ua.mount(e)}function b3(e,t,n){_3();const o=I(bm(e,t,n)),r=I(!1),i={id:g3++,options:o,shown:r};return Kr.value.push(i),e.classList&&e.classList.add(_m),e.$_popper={options:o,item:i,show(){r.value=!0},hide(){r.value=!1}}}function ym(e){if(e.$_popper){const t=Kr.value.indexOf(e.$_popper.item);t!==-1&&Kr.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(_m)}function fd(e,{value:t,modifiers:n}){const o=bm(e,t,n);if(!o.content||Gr(o.theme||"tooltip","disabled"))ym(e);else{let r;e.$_popper?(r=e.$_popper,r.options.value=o):r=b3(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}const y3={beforeMount:fd,updated:fd,beforeUnmount(e){ym(e)}};function pd(e){e.addEventListener("mousedown",as),e.addEventListener("click",as),e.addEventListener("touchstart",wm,tr?{passive:!0}:!1)}function hd(e){e.removeEventListener("mousedown",as),e.removeEventListener("click",as),e.removeEventListener("touchstart",wm),e.removeEventListener("touchend",km),e.removeEventListener("touchcancel",Em)}function as(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function wm(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",km),t.addEventListener("touchcancel",Em)}}function km(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Em(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const w3={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&pd(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?pd(e):hd(e))},beforeUnmount(e){hd(e)}};function k3(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,cm(zt,t),e.directive("tooltip",y3),e.directive("close-popper",w3),e.component("VTooltip",u3),e.component("VDropdown",l3),e.component("VMenu",c3))}const E3={version:"5.2.2",install:k3,options:zt};var md=typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function x3(e){typeof window<"u"&&window.addEventListener("click",t=>{t.composedPath().some(o=>{var r,i,s,a;return((i=(r=o==null?void 0:o.classList)==null?void 0:r.contains)==null?void 0:i.call(r,"vp-code-group"))||((a=(s=o==null?void 0:o.classList)==null?void 0:s.contains)==null?void 0:a.call(s,"tabs"))})&&hm()},{passive:!0}),e.use(E3,{themes:{twoslash:{$extend:"dropdown",triggers:md?["touch"]:["hover","touch"],popperTriggers:md?["touch"]:["hover","touch"],placement:"bottom-start",overflowPadding:10,delay:0,handleResize:!1,autoHide:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0},"twoslash-query":{$extend:"twoslash",triggers:["click"],popperTriggers:["click"],autoHide:!1},"twoslash-completion":{$extend:"twoslash-query",triggers:["click"],popperTriggers:["click"],autoHide:!1,distance:0,arrowOverflow:!0}}})}var P3=/language-(?:shellscript|shell|bash|sh|zsh)/,S3=[".vp-copy-ignore",".diff.remove"];function C3({selector:e='div[class*="language-"] > button.copy',duration:t=2e3}={}){const n=new WeakMap,{copy:o}=Kb({legacy:!0});Me("click",r=>{const i=r.target;if(i.matches(e)){const s=i.parentElement,a=i.nextElementSibling;if(!s||!a)return;const l=P3.test(s.className),c=a.cloneNode(!0);c.querySelectorAll(S3.join(",")).forEach(d=>d.remove());let u=c.textContent||"";l&&(u=u.replace(/^ *(\$|>) /gm,"").trim()),o(u).then(()=>{if(t<=0)return;i.classList.add("copied"),clearTimeout(n.get(i));const d=setTimeout(()=>{i.classList.remove("copied"),i.blur(),n.delete(i)},t);n.set(i,d)})}})}function A3({selector:e='div[class*="language-"] > .collapsed-lines'}={}){Me("click",t=>{const n=t.target;if(n.matches(e)){const o=n.parentElement;o!=null&&o.classList.toggle("collapsed")&&o.scrollIntoView({block:"center",behavior:"instant"})}})}const T3={enhance({app:e}){x3(e)},setup(){C3({selector:'div[class*="language-"] > button.copy',duration:2e3}),A3()}},L3=Object.freeze(Object.defineProperty({__proto__:null,default:T3},Symbol.toStringTag,{value:"Module"})),O3=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ls=()=>{const e=document.documentElement;return e.classList.contains("dark")||e.getAttribute("data-theme")==="dark"},$3=(e,t)=>t==="json"?JSON.parse(e):new Function(`let config,__chart_js_config__; +{ +${e} +__chart_js_config__=config; +} +return __chart_js_config__;`)();var V3=V({name:"ChartJS",props:{config:{type:String,required:!0},id:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:"json"}},setup(e){const t=je(),n=je(),o=I(!1),r=I(!0),i=E(()=>yo(e.config));let s=!1,a;const l=async c=>{const[{default:u}]=await Promise.all([L(()=>import("./auto-Cl2ltNcc.js"),[]),s?Promise.resolve():(s=!0,So(800))]);u.defaults.borderColor=c?"#ccc":"#36A2EB",u.defaults.color=c?"#fff":"#000",u.defaults.maintainAspectRatio=!1;const d=$3(i.value,e.type),f=n.value.getContext("2d");a==null||a.destroy(),a=new u(f,d),r.value=!1};return Ee(()=>{o.value=ls(),Wl(document.documentElement,()=>{o.value=ls()},{attributeFilter:["class","data-theme"],attributes:!0}),me(o,c=>l(c),{immediate:!0})}),()=>[e.title?le("div",{class:"chartjs-title"},decodeURIComponent(e.title)):null,r.value?le(Po,{class:"chartjs-loading",height:192}):null,le("div",{ref:t,class:"chartjs-wrapper",id:e.id,style:{display:r.value?"none":"block"}},le("canvas",{ref:n,height:400}))]}});const B3='',I3='';var R3={useBabel:!1,jsLib:[],cssLib:[],codepenLayout:"left",codepenEditors:"101",babel:"https://unpkg.com/@babel/standalone/babel.min.js",vue:"https://unpkg.com/vue/dist/vue.global.prod.js",react:"https://unpkg.com/react/umd/react.production.min.js",reactDOM:"https://unpkg.com/react-dom/umd/react-dom.production.min.js"};const da=R3,vd={html:{types:["html","slim","haml","md","markdown","vue"],map:{html:"none",vue:"none",md:"markdown"}},js:{types:["js","javascript","coffee","coffeescript","ts","typescript","ls","livescript"],map:{js:"none",javascript:"none",coffee:"coffeescript",ls:"livescript",ts:"typescript"}},css:{types:["css","less","sass","scss","stylus","styl"],map:{css:"none",styl:"stylus"}}},D3=(e,t,n)=>{const o=document.createElement(e);return Yn(t)&&Kh(t).forEach(r=>{if(r.indexOf("data"))o[r]=t[r];else{const i=r.replace("data","");o.dataset[i]=t[r]}}),o},Xl=e=>({...da,...e,jsLib:Array.from(new Set([da.jsLib??[],e.jsLib??[]].flat())),cssLib:Array.from(new Set([da.cssLib??[],e.cssLib??[]].flat()))}),Ko=(e,t)=>{if(Gh(e[t]))return e[t];const n=new Promise(o=>{var i;const r=document.createElement("script");r.src=t,(i=document.querySelector("body"))==null||i.appendChild(r),r.onload=()=>{o()}});return e[t]=n,n},M3=(e,t)=>{if(t.css&&Array.from(e.childNodes).every(n=>n.nodeName!=="STYLE")){const n=D3("style",{innerHTML:t.css});e.appendChild(n)}},j3=(e,t,n)=>{const o=n.getScript();if(o&&Array.from(t.childNodes).every(r=>r.nodeName!=="SCRIPT")){const r=document.createElement("script");r.appendChild(document.createTextNode(`{const document=window.document.querySelector('#${e} .vp-code-demo-display').shadowRoot; +${o}}`)),t.appendChild(r)}},N3=["html","js","css"],H3=e=>{const t=Kh(e),n={html:[],js:[],css:[],isLegal:!1};return N3.forEach(o=>{const r=t.filter(i=>vd[o].types.includes(i));if(r.length){const i=r[0];n[o]=[e[i].replace(/^\n|\n$/g,""),vd[o].map[i]??i]}}),n.isLegal=(!n.html.length||n.html[1]==="none")&&(!n.js.length||n.js[1]==="none")&&(!n.css.length||n.css[1]==="none"),n},xm=e=>e.replace(/
/g,"
").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1>"),Pm=e=>`
+${xm(e)} +
`,F3=e=>`${e.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")}; +ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,z3=e=>e.replace(/export\s+default\s*\{(\n*[\s\S]*)\n*\}\s*;?$/u,"Vue.createApp({$1}).mount('#app')").replace(/export\s+default\s*define(Async)?Component\s*\(\s*\{(\n*[\s\S]*)\n*\}\s*\)\s*;?$/u,"Vue.createApp({$1}).mount('#app')").trim(),Sm=e=>`(function(exports){var module={};module.exports=exports;${e};return module.exports.__esModule?exports.default:module.exports;})({})`,q3=(e,t)=>{const n=Xl(t),o=e.js[0]??"";return{...n,html:xm(e.html[0]??""),js:o,css:e.css[0]??"",isLegal:e.isLegal,getScript:()=>{var r;return n.useBabel?((r=window.Babel.transform(o,{presets:["es2015"]}))==null?void 0:r.code)??"":o}}},U3=/