@valaxyjs/devtools 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{VDCheckbox-dDiTqqTY.js → VDCheckbox-D9TnZbve.js} +1 -1
- package/dist/client/assets/{VDCodeBlock-8nUJdpeg.js → VDCodeBlock-C6r7SxFp.js} +1 -1
- package/dist/client/assets/{VDNumberField-DX69Wsca.js → VDNumberField-92EHlKGD.js} +1 -1
- package/dist/client/assets/{VDPostListItem-C2F_EF8t.js → VDPostListItem-BZa9NAOY.js} +1 -1
- package/dist/client/assets/{VDPostPanel-DkWe5cZw.js → VDPostPanel-DSBq-mIS.js} +1 -1
- package/dist/client/assets/{VDSelect-Binmj5CE.js → VDSelect-Bon_-RIK.js} +1 -1
- package/dist/client/assets/{VDToggleGroup-C-809EyX.js → VDToggleGroup-zSsS2PMl.js} +1 -1
- package/dist/client/assets/{addons-94s5y2VU.js → addons-2gXm0HIW.js} +1 -1
- package/dist/client/assets/{archives-IEQAdn2M.js → archives-FXJiU-ls.js} +1 -1
- package/dist/client/assets/{batch-edit-CfbL7wdW.js → batch-edit-B0GMdJaE.js} +1 -1
- package/dist/client/assets/{browser-agent-rpc-BXhoSh1z-tIg9DnEA.js → browser-agent-rpc-BXhoSh1z-BX-LxfQ7.js} +1 -1
- package/dist/client/assets/{categories-BR00gUUW.js → categories-DfyE49__.js} +1 -1
- package/dist/client/assets/{collections-CROWF-y4.js → collections-C3eMkgA-.js} +1 -1
- package/dist/client/assets/{config-CH-UpDQq.js → config-BMjzC0rx.js} +1 -1
- package/dist/client/assets/{debug-SUSddDQr.js → debug-B7a7gHW7.js} +1 -1
- package/dist/client/assets/{editor-Dmn66Bmw.js → editor-CFkOfp5H.js} +1 -1
- package/dist/client/assets/{index-DnypEXjl.js → index-CATNUOOs.js} +2 -2
- package/dist/client/assets/{index-D2DSYIZc.css → index-uRGsklRl.css} +1 -1
- package/dist/client/assets/{pages-B8bo-QMt.js → pages-Bz8PJQ_e.js} +1 -1
- package/dist/client/assets/{posts-DWEO30o6.js → posts-DENM1U8P.js} +1 -1
- package/dist/client/assets/{rpc-CQIJhNkR.js → rpc-Ad2-JgrG.js} +2 -2
- package/dist/client/assets/{settings-CVUKpCc0.js → settings-q2_T-TF-.js} +1 -1
- package/dist/client/assets/{tags-B5cnIpNL.js → tags-DE1w7mJ6.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/index.mjs +1 -1
- package/dist/node/definition.mjs +1 -1
- package/dist/node/mcp.mjs +1 -1
- package/dist/shared/{devtools.Du1nsPgz.mjs → devtools.BjQG0KfF.mjs} +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Bt as t,E as n,H as r,T as i,Ut as a,b as o,f as s,ft as c,r as l,tt as u,v as d,w as f,x as p,xt as m,y as h}from"./app-D70151fp.js";import{p as g}from"./index-
|
|
1
|
+
import{B as e,Bt as t,E as n,H as r,T as i,Ut as a,b as o,f as s,ft as c,r as l,tt as u,v as d,w as f,x as p,xt as m,y as h}from"./app-D70151fp.js";import{p as g}from"./index-CATNUOOs.js";import{n as _,t as v}from"./splitpanes.esm-CUQA4hIN.js";var y={class:`h-full overflow-auto`},b=[`onClick`],x={class:`font-bold text-sm`},S={class:`text-xs op-50 mt-1`},C={key:0,class:`text-center op-50 py-8 text-sm`},w={key:0,class:`overflow-auto h-full p-4`},T={class:`flex items-start gap-4 mb-4`},E=[`src`],D={class:`text-lg font-bold`},O={class:`text-xs op-50 mt-1`},k={key:0,class:`text-sm op-70 mt-2`},A={class:`text-xs mt-2`},j={class:`font-bold text-sm mb-2 op-70`},M={class:`border border-base rounded`},N={class:`op-40 text-xs w-6 text-right`},P={class:`flex-1`},F=[`href`],I={key:1,class:`text-xs op-40 font-mono`},L={key:0,class:`text-center op-50 py-4 text-sm`},R={key:1,class:`flex items-center justify-center h-full op-40 text-sm`},z=n({__name:`collections`,setup(n){let z=g(`(max-width: 640px)`),B=c(null);function V(e){B.value=e}return(n,c)=>(e(),h(m(_),{horizontal:m(z),class:`h-full`},{default:u(()=>[i(m(v),{"min-size":`20`,size:`33`},{default:u(()=>[d(`div`,y,[(e(!0),p(s,null,r(m(l),n=>(e(),p(`div`,{key:n.key,class:t([`cursor-pointer p-3 border-b border-mute hover:bg-hover transition`,{"bg-sunken ":B.value?.key===n.key}]),onClick:e=>V(n)},[d(`div`,x,a(n.title||n.key),1),d(`div`,S,a(n.items.length)+` items `,1)],10,b))),128)),m(l).length?o(``,!0):(e(),p(`div`,C,` No collections found `))])]),_:1}),i(m(v),null,{default:u(()=>[B.value?(e(),p(`div`,w,[d(`div`,T,[B.value.cover?(e(),p(`img`,{key:0,src:B.value.cover,class:`max-h-30 rounded shadow`},null,8,E)):o(``,!0),d(`div`,null,[d(`h2`,D,a(B.value.title||B.value.key),1),d(`div`,O,` key: `+a(B.value.key),1),B.value.description?(e(),p(`div`,k,a(B.value.description),1)):o(``,!0),d(`div`,A,[d(`span`,{class:t([`px-1.5 py-0.5 rounded`,B.value.collapse?`bg-active color-active`:`bg-sunken color-muted `])},a(B.value.collapse?`collapsed`:`expanded`),3)])])]),d(`h3`,j,` Items (`+a(B.value.items.length)+`) `,1),d(`div`,M,[(e(!0),p(s,null,r(B.value.items,(t,n)=>(e(),p(`div`,{key:t.key||t.link,class:`flex items-center gap-2 px-3 py-2 text-sm border-b border-base last:border-b-0`},[d(`span`,N,a(n+1),1),d(`span`,P,a(t.title),1),t.link?(e(),p(`a`,{key:0,href:t.link,target:`_blank`,rel:`noopener noreferrer`,class:`text-xs color-active font-mono inline-flex items-center gap-0.5`},[f(a(t.link)+` `,1),c[0]||=d(`span`,{class:`i-ri-external-link-line text-xs`},null,-1)],8,F)):(e(),p(`span`,I,a(t.key),1))]))),128)),B.value.items.length?o(``,!0):(e(),p(`div`,L,` No items `))])])):(e(),p(`div`,R,` Select a collection to view details `))]),_:1})]),_:1},8,[`horizontal`]))}});export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Q as t,X as n,c as r,d as i,h as a,l as o,o as s,p as c,s as l,u}from"./index-DnypEXjl.js";import{t as d}from"./VDCheckbox-dDiTqqTY.js";import{B as f,Bt as p,E as m,H as h,T as g,U as _,Ut as v,Z as y,_ as b,b as x,f as S,ft as C,tt as w,v as T,w as E,x as D,xt as O,y as k}from"./app-D70151fp.js";import{t as A}from"./VDNumberField-DX69Wsca.js";import{t as j}from"./VDSelect-Binmj5CE.js";import{n as ee,t as M}from"./splitpanes.esm-CUQA4hIN.js";import{t as N}from"./editor-Dmn66Bmw.js";var P={class:`flex items-center gap-2`},te=m({__name:`ConfigFieldCheckbox`,props:{configType:{},field:{},label:{},description:{},modelValue:{type:Boolean}},emits:[`saved`],setup(e,{emit:t}){let n=e,r=t;async function o(){let e=!n.modelValue;await i(n.configType,n.field,e),r(`saved`)}return(t,n)=>{let r=d,i=a;return f(),D(`div`,P,[g(r,{"model-value":e.modelValue??!1,"onUpdate:modelValue":o},null,8,[`model-value`]),T(`label`,{class:`text-sm font-medium cursor-pointer`,onClick:o},v(e.label),1),e.description?(f(),k(i,{key:0,content:e.description,side:`right`},{default:w(()=>[...n[0]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)])}}}),F={class:`config-field-group`},I={class:`flex items-center gap-2 mb-3`},L={class:`text-sm font-bold color-base`},R={class:`flex flex-col gap-4 pl-1`},z=m({__name:`ConfigFieldGroup`,props:{title:{},icon:{}},setup(e){return(t,n)=>(f(),D(`div`,F,[T(`div`,I,[e.icon?(f(),D(`div`,{key:0,class:p([e.icon,`text-base color-active`])},null,2)):x(``,!0),T(`h4`,L,v(e.title),1)]),T(`div`,R,[_(t.$slots,`default`)])]))}}),B={class:`flex flex-col gap-1.5`},V={class:`flex items-center gap-1.5`},H={class:`text-sm font-medium`},U=m({__name:`ConfigFieldNumber`,props:{configType:{},field:{},label:{},description:{},modelValue:{},min:{},max:{},step:{}},emits:[`saved`],setup(e,{emit:t}){let n=e,r=t,o=C(n.modelValue??0);y(()=>n.modelValue,e=>{o.value=e??0});async function s(){o.value!==(n.modelValue??0)&&(await i(n.configType,n.field,o.value),r(`saved`))}return(t,n)=>{let r=a,i=A;return f(),D(`div`,B,[T(`div`,V,[T(`label`,H,v(e.label),1),e.description?(f(),k(r,{key:0,content:e.description,side:`right`},{default:w(()=>[...n[1]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)]),g(i,{modelValue:o.value,"onUpdate:modelValue":[n[0]||=e=>o.value=e,s],min:e.min,max:e.max,step:e.step},null,8,[`modelValue`,`min`,`max`,`step`])])}}}),W={class:`flex flex-col gap-1.5`},G={class:`flex items-center gap-1.5`},K={class:`text-sm font-medium`},q=m({__name:`ConfigFieldSelect`,props:{configType:{},field:{},label:{},description:{},modelValue:{},options:{}},emits:[`saved`],setup(e,{emit:t}){let n=e,r=t;async function o(e){e!==void 0&&e!==n.modelValue&&(await i(n.configType,n.field,e),r(`saved`))}return(t,n)=>{let r=a,i=j;return f(),D(`div`,W,[T(`div`,G,[T(`label`,K,v(e.label),1),e.description?(f(),k(r,{key:0,content:e.description,side:`right`},{default:w(()=>[...n[0]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)]),g(i,{"model-value":e.modelValue,options:e.options,class:`w-48`,"onUpdate:modelValue":o},null,8,[`model-value`,`options`])])}}}),J={class:`flex flex-col gap-1.5`},Y={class:`flex items-center gap-1.5`},X={class:`text-sm font-medium`},Z=m({__name:`ConfigFieldInput`,props:{configType:{},field:{},label:{},description:{},placeholder:{},modelValue:{}},emits:[`saved`],setup(e,{emit:t}){let r=e,o=t,s=C(r.modelValue??``);y(()=>r.modelValue,e=>{s.value=e??``});async function c(){s.value!==(r.modelValue??``)&&(await i(r.configType,r.field,s.value),o(`saved`))}function l(e){e.key===`Enter`&&c()}return(t,r)=>{let i=a,o=n;return f(),D(`div`,J,[T(`div`,Y,[T(`label`,X,v(e.label),1),e.description?(f(),k(i,{key:0,content:e.description,side:`right`},{default:w(()=>[...r[1]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)]),g(o,{modelValue:s.value,"onUpdate:modelValue":r[0]||=e=>s.value=e,placeholder:e.placeholder,size:`md`,onBlur:c,onKeydown:l},null,8,[`modelValue`,`placeholder`])])}}}),Q={generated:`2026-03-23T00:00:00.000Z`,siteConfig:[{name:`mode`,type:`'light' | 'dark' | 'auto'`,description:`Enable auto light/dark mode`,descriptionZh:`启用自动亮色/暗色模式`,default:`'auto'`},{name:`lang`,type:`string`,description:`Default language`,descriptionZh:`默认语言,设置 'zh-CN' 以改变默认语言为中文`,default:`'en'`},{name:`languages`,type:`string[]`,description:`Alternative languages`,descriptionZh:`可选语言`,default:`['en', 'zh-CN']`},{name:`url`,type:`string`,description:`Site URL in web, required for SSG & RSS`,descriptionZh:`站点的完整 URL,SSG & RSS 需要`,default:`'/'`},{name:`timezone`,type:`string`,description:`Timezone configuration`,descriptionZh:`时区配置,国内推荐使用 'Asia/Shanghai'`,default:`''`},{name:`title`,type:`string`,description:`Site title`,descriptionZh:`站点标题`},{name:`subtitle`,type:`string`,description:`Site subtitle`,descriptionZh:`副标题`},{name:`description`,type:`string`,description:`Site description`,descriptionZh:`站点描述`},{name:`author`,type:`object`,description:`The owner of this blog`,descriptionZh:`博客作者`,children:[{name:`name`,type:`string`,description:`Your name`,descriptionZh:`你的名字`},{name:`email`,type:`string`,description:`Your email`,descriptionZh:`邮箱`},{name:`link`,type:`string`,description:`Your profile link`,descriptionZh:`个人链接`},{name:`avatar`,type:`string`,description:`Avatar URL`,descriptionZh:`头像 URL`},{name:`intro`,type:`string`,description:`Personal introduction`,descriptionZh:`个人简介`},{name:`status`,type:`object`,description:`The status of you`,descriptionZh:`状态`,children:[{name:`emoji`,type:`string`,description:`Emoji representation of your status like '👨💻'`,descriptionZh:`你的状态的 Emoji 表示`},{name:`message`,type:`string`,description:`Show when hover emoji`,descriptionZh:`当鼠标悬浮在图标上时显示`}]}]},{name:`favicon`,type:`string`,description:`Icon for your website`,descriptionZh:`站点图标`},{name:`orderBy`,type:`'date' | 'updated'`,description:`Order posts by 'date' or 'updated'`,descriptionZh:`按创建时间或更新时间排序`,default:`'date'`},{name:`lastUpdated`,type:`boolean`,description:`Show last updated time by git/mtime`,descriptionZh:`显示最后更新时间`,default:`false`},{name:`pageSize`,type:`number`,description:`Posts per page`,descriptionZh:`每页显示的文章数`,default:`7`},{name:`search`,type:`object`,description:`Search engine for your site`,descriptionZh:`搜索功能`,children:[{name:`enable`,type:`boolean`,description:`Enable search`,descriptionZh:`是否启用`,default:`false`},{name:`provider`,type:`'algolia' | 'engine' | 'fuse' | 'local'`,description:`Search provider type`,descriptionZh:`搜索提供商类型`,default:`'fuse'`}]},{name:`comment`,type:`object`,description:`Comment system`,descriptionZh:`评论系统`,children:[{name:`enable`,type:`boolean`,description:`Enable comment`,descriptionZh:`启用评论`,default:`false`}]},{name:`feed`,type:`object`,description:`Feed configuration`,descriptionZh:`RSS 订阅配置`,children:[{name:`name`,type:`string`,description:`Feed file name`,descriptionZh:`订阅文件名`,default:`''`},{name:`favicon`,type:`string`,description:`Feed favicon`,descriptionZh:`订阅图标`,default:`'/favicon.svg'`}]},{name:`license`,type:`object`,description:`Post license configuration`,descriptionZh:`文章所使用的协议`,children:[{name:`enabled`,type:`boolean`,description:`Whether to show at the bottom of the article`,descriptionZh:`是否显示在文章底部`,default:`true`},{name:`language`,type:`string`,description:`Creative License Language`,descriptionZh:`协议语言,默认与站点语言相同`,default:`'en'`},{name:`type`,type:`'zero' | 'by-sa' | 'by-nd' | 'by-nc' | 'by-nc-sa' | 'by-nc-nd'`,description:`Type of license`,descriptionZh:`证书类型`,default:`'by-nc-sa'`}]},{name:`sponsor`,type:`object`,description:`Donate/sponsor configuration`,descriptionZh:`打赏/赞助`,children:[{name:`enable`,type:`boolean`,description:`Enable sponsor`,descriptionZh:`启用赞助`,default:`true`},{name:`title`,type:`string`,description:`Donate button title`,descriptionZh:`打赏按钮的 title 属性`},{name:`description`,type:`string`,description:`Donate content description`,descriptionZh:`打赏的描述内容`}]},{name:`excerpt`,type:`object`,description:`Excerpt configuration`,descriptionZh:`全局摘要配置`,children:[{name:`type`,type:`'html' | 'text'`,description:`Default excerpt render type`,descriptionZh:`默认摘要渲染类型`,default:`'html'`},{name:`auto`,type:`boolean`,description:`Auto-generate excerpt from post content`,descriptionZh:`自动从文章内容截取摘要`,default:`false`},{name:`length`,type:`number`,description:`Maximum length of auto-generated excerpt`,descriptionZh:`自动摘要的最大长度(字符数)`,default:`200`}]},{name:`cdn`,type:`object`,description:`CDN configuration for third-party plugins`,descriptionZh:`第三方插件 CDN 配置`,children:[{name:`prefix`,type:`string`,description:`CDN prefix URL`,descriptionZh:`CDN 前缀 URL`,default:`'https://unpkg.com/'`}]},{name:`mediumZoom`,type:`object`,description:`Image preview by medium-zoom`,descriptionZh:`图片预览 (medium-zoom)`,children:[{name:`enable`,type:`boolean`,description:`Enable image preview`,descriptionZh:`启用图片预览`,default:`false`}]},{name:`vanillaLazyload`,type:`object`,description:`Lazyload by vanilla-lazyload`,descriptionZh:`图片懒加载 (vanilla-lazyload)`,children:[{name:`enable`,type:`boolean`,description:`Enable lazy loading`,descriptionZh:`启用懒加载`,default:`false`}]},{name:`statistics`,type:`object`,description:`Statistics: reading time and word count`,descriptionZh:`统计阅读时间和字数`,children:[{name:`enable`,type:`boolean`,description:`Enable statistics`,descriptionZh:`启用统计`,default:`false`},{name:`readTime`,type:`object`,description:`Read time configuration`,descriptionZh:`阅读时间配置`,children:[{name:`speed`,type:`object`,description:`Reading speed`,descriptionZh:`阅读速度`,children:[{name:`cn`,type:`number`,description:`Chinese words per minute`,descriptionZh:`中文每分钟阅读字数`,default:`300`},{name:`en`,type:`number`,description:`English words per minute`,descriptionZh:`英文每分钟阅读字数`,default:`100`}]}]}]},{name:`encrypt`,type:`object`,description:`Encrypt article`,descriptionZh:`加密文章`,children:[{name:`enable`,type:`boolean`,description:`Enable encryption`,descriptionZh:`启用加密`,default:`false`},{name:`algorithm`,type:`string`,description:`Encryption algorithm`,descriptionZh:`加密算法`,default:`'AES-CBC'`}]},{name:`codeHeightLimit`,type:`number`,description:`Limit the height of code blocks in px`,descriptionZh:`限制代码块的高度,单位是 px`},{name:`llms`,type:`object`,description:`llms.txt and raw Markdown file output`,descriptionZh:`llms.txt 及原始 Markdown 文件输出`,children:[{name:`enable`,type:`boolean`,description:`Enable llms.txt and raw .md file output`,descriptionZh:`是否开启 llms.txt 和 .md 原始文件输出`,default:`false`},{name:`fullText`,type:`boolean`,description:`Whether to generate llms-full.txt`,descriptionZh:`是否生成 llms-full.txt`,default:`true`},{name:`files`,type:`boolean`,description:`Whether to generate individual .md files`,descriptionZh:`是否为每篇文章生成独立的 .md 文件`,default:`true`},{name:`prompt`,type:`string`,description:`Custom prompt text for llms.txt`,descriptionZh:`自定义提示词`,default:`''`},{name:`exclude`,type:`string[]`,description:`Globs omitted from llms.txt and llms-full.txt. .md files are still written.`,descriptionZh:`从 llms.txt 和 llms-full.txt 排除的 glob,仍会写出 .md 文件`},{name:`sectionOrder`,type:`string[]`,description:`Section headings to emit first in llms.txt`,descriptionZh:`llms.txt 中优先输出的分组标题`},{name:`locales`,type:`string[]`,description:`URL prefixes treated as languages when grouping llms.txt`,descriptionZh:`分组时视为语言前缀的 URL 片段`},{name:`featured`,type:`LlmsFeatured`,description:`Pages pinned to the start of llms.txt`,descriptionZh:`置顶到 llms.txt 开头的页面`},{name:`collapse`,type:`LlmsCollapse[]`,description:`Replace matching pages with one llms.txt link and omit them from llms-full.txt`,descriptionZh:`把匹配页面收成一条 llms.txt 链接,并且不写入 llms-full.txt`}]}],valaxyConfig:[{name:`theme`,type:`string`,description:`The name of theme`,descriptionZh:`主题名称`},{name:`themeConfig`,type:`object`,description:`Theme-specific configuration`,descriptionZh:`主题配置,请参考对应主题的相关文档`}]},ne={key:0,class:`h-full flex items-center justify-center text-sm op-50`},re={key:1,class:`h-full flex items-center justify-center text-sm op-50`},ie={class:`h-full flex flex-col`},ae={class:`flex items-center gap-2 px-3 py-2 border-b border-mute`},oe={class:`text-sm font-bold flex-1`},se={class:`flex items-center gap-1`},ce=[`disabled`],le={key:0,class:`px-3 pt-2`},ue={class:`flex gap-1 px-3 pt-3 pb-1 flex-wrap`},de=[`onClick`],fe={class:`flex-1 overflow-auto p-3`},pe={key:0,class:`flex flex-col gap-4`},me={key:1,class:`flex flex-col gap-4`},he={key:2,class:`flex flex-col gap-4`},ge={key:3,class:`flex flex-col gap-4`},_e={key:4,class:`flex flex-col gap-4`},ve={key:0,class:`text-sm op-50`},ye={key:3,class:`flex flex-col gap-1.5`},be={class:`text-sm font-medium`},xe={class:`px-2 py-1 bg-secondary rounded text-xs break-all`},Se={class:`h-full flex flex-col`},Ce={class:`flex items-center gap-2 px-3 py-2 border-b border-mute`},we={class:`text-sm font-bold flex-1`},Te={class:`text-xs op-40 tabular-nums`},Ee={class:`px-3 pt-2 pb-1`},De={class:`flex-1 overflow-auto px-2 pb-2`},Oe={class:`flex flex-col gap-1.5 pt-1`},ke=[`onClick`],Ae={class:`text-xs op-50 font-normal`},je={key:0,class:`divide-y divide-[#9992]`},Me={class:`flex items-start gap-1.5`},Ne={class:`flex-1 min-w-0`},Pe={class:`flex items-center gap-1.5 flex-wrap`},Fe={class:`text-xs font-mono color-active`},Ie={class:`text-xs op-40`},Le={key:0,class:`text-xs op-40`},Re={key:0,class:`text-xs op-60 mt-0.5 leading-relaxed`},ze={key:1,class:`mt-0.5`},Be={class:`text-xs bg-sunken px-1 py-0.5 rounded break-all`},Ve={class:`flex items-center gap-0.5 flex-shrink-0`},$=[`onClick`],He=[`onClick`],Ue={key:0,class:`border border-base rounded-lg overflow-hidden`},We={class:`text-xs op-50 font-normal`},Ge={key:0,class:`divide-y divide-[#9992]`},Ke={class:`flex items-start gap-1.5`},qe={class:`flex-1 min-w-0`},Je={class:`flex items-center gap-1.5`},Ye={class:`text-xs font-mono color-active`},Xe={class:`text-xs op-40`},Ze={class:`mt-0.5`},Qe={class:`text-xs bg-sunken px-1 py-0.5 rounded break-all`},$e=m({__name:`config`,setup(i){let d=c(`(max-width: 640px)`),{t:m,locale:_}=e(),y=C(`site`),A=C(``),j=C(new Set);function P(e){j.value.has(e)?j.value.delete(e):j.value.add(e)}function F(e,t){if(!l.value)return;let n=e===`site`?l.value.siteConfig:e===`theme`?l.value.themeConfig:l.value.valaxyConfig,r=t.split(`.`),i=n;for(let e of r){if(i==null)return;i=i[e]}return i}function I(e){return _.value===`zh-CN`&&e.descriptionZh?e.descriptionZh:e.description||``}function L(e,t,n,r){let i=[];for(let a of e){let e=t?`${t}.${a.name}`:a.name;i.push({path:e,name:a.name,type:a.type,description:a.description||``,descriptionZh:a.descriptionZh,default:a.default,section:n,configType:r,value:F(r,e)}),`children`in a&&a.children&&i.push(...L(a.children,e,n,r))}return i}let R=b(()=>{let e=L(Q.siteConfig,``,`SiteConfig`,`site`),t=L(Q.valaxyConfig,``,`ValaxyConfig`,`valaxy`);return[...e,...t]}),B=b(()=>{if(!A.value)return R.value;let e=A.value.toLowerCase();return R.value.filter(t=>t.path.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)||t.descriptionZh&&t.descriptionZh.toLowerCase().includes(e))}),V=b(()=>l.value?.themeConfig?Object.entries(l.value.themeConfig).filter(([e])=>e!==`pkg`):[]);async function H(e){let t=e.value,n=typeof t==`string`?`'${t}'`:JSON.stringify(t),r=`${e.path}: ${n}`;try{await navigator.clipboard.writeText(r)}catch{}}function W(e){if(!l.value)return;let t=e===`site`?l.value.siteConfigPath:l.value.valaxyConfigPath;t&&s({file:t})}let G=b(()=>[{value:`site`,label:m(`config.tab_site`),icon:`i-ri:global-line`},{value:`author`,label:m(`config.tab_author`),icon:`i-ri:user-line`},{value:`features`,label:m(`config.tab_features`),icon:`i-ri:flashlight-line`},{value:`build`,label:m(`config.tab_build`),icon:`i-ri:hammer-line`},{value:`theme`,label:m(`config.tab_theme`),icon:`i-ri:palette-line`}]);return(e,i)=>{let s=a,c=t,_=Z,b=q,C=U,L=z,R=te,K=n;return O(r)&&!O(l)?(f(),D(`div`,ne,v(O(m)(`config.loading`)),1)):O(l)?(f(),k(O(ee),{key:2,horizontal:O(d),class:`h-full`},{default:w(()=>[g(O(M),{"min-size":`30`,size:`45`},{default:w(()=>[T(`div`,ie,[T(`div`,ae,[T(`h3`,oe,v(O(m)(`config.quick_edit`)),1),T(`div`,se,[g(s,{content:O(m)(`config.open_site_config`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center gap-1 px-1.5 py-0.5 text-xs rounded hover:bg-hover color-faint transition-colors`,onClick:i[0]||=e=>W(`site`)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2),i[6]||=E(` site `,-1)])]),_:1},8,[`content`]),g(s,{content:O(m)(`config.open_valaxy_config`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center gap-1 px-1.5 py-0.5 text-xs rounded hover:bg-hover color-faint transition-colors`,onClick:i[1]||=e=>W(`valaxy`)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2),i[7]||=E(` valaxy `,-1)])]),_:1},8,[`content`]),T(`button`,{class:`inline-flex items-center justify-center w-6 h-6 text-xs rounded hover:bg-hover color-faint transition-colors`,disabled:O(r),onClick:i[2]||=(...e)=>O(u)&&O(u)(...e)},[T(`div`,{class:p([`i-ri:refresh-line`,{"animate-spin":O(r)}])},null,2)],8,ce)])]),O(o)?(f(),D(`div`,le,[g(c,{severity:O(o).type===`success`?`success`:`error`,closable:``},{default:w(()=>[E(v(O(o).text),1)]),_:1},8,[`severity`])])):x(``,!0),T(`div`,ue,[(f(!0),D(S,null,h(G.value,e=>(f(),D(`button`,{key:e.value,class:p([`inline-flex items-center gap-1 px-2 py-1 text-xs rounded-md border transition-colors`,y.value===e.value?`bg-active border-active color-active `:`border-base color-muted hover:bg-hover `]),onClick:t=>y.value=e.value},[T(`div`,{class:p([e.icon,`text-xs`])},null,2),E(` `+v(e.label),1)],10,de))),128))]),T(`div`,fe,[y.value===`site`?(f(),D(`div`,pe,[g(_,{"config-type":`site`,field:`title`,label:O(m)(`config.field_title`),description:I({description:`Site title`,descriptionZh:`站点标题`}),"model-value":F(`site`,`title`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`subtitle`,label:O(m)(`config.field_subtitle`),description:I({description:`Site subtitle`,descriptionZh:`副标题`}),"model-value":F(`site`,`subtitle`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`description`,label:O(m)(`config.field_description`),description:I({description:`Site description`,descriptionZh:`站点描述`}),"model-value":F(`site`,`description`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`url`,label:O(m)(`config.field_url`),description:I({description:`Site URL, required for SSG & RSS`,descriptionZh:`站点 URL,SSG 和 RSS 需要`}),"model-value":F(`site`,`url`),placeholder:`https://example.com`,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`mode`,label:O(m)(`config.field_mode`),description:I({description:`Light/Dark mode`,descriptionZh:`亮色/暗色模式`}),"model-value":F(`site`,`mode`)||`auto`,options:[{label:`Auto`,value:`auto`},{label:`Light`,value:`light`},{label:`Dark`,value:`dark`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`lang`,label:O(m)(`config.field_lang`),description:I({description:`Default language`,descriptionZh:`默认语言`}),"model-value":F(`site`,`lang`),placeholder:`en`,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`favicon`,label:O(m)(`config.field_favicon`),description:I({description:`Website icon`,descriptionZh:`站点图标`}),"model-value":F(`site`,`favicon`),placeholder:`/favicon.svg`,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(C,{"config-type":`site`,field:`pageSize`,label:O(m)(`config.field_page_size`),description:I({description:`Posts per page`,descriptionZh:`每页显示文章数`}),"model-value":F(`site`,`pageSize`),min:1,max:100,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])])):y.value===`author`?(f(),D(`div`,me,[g(_,{"config-type":`site`,field:`author.name`,label:O(m)(`config.field_author_name`),description:I({description:`Your name`,descriptionZh:`你的名字`}),"model-value":F(`site`,`author.name`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.email`,label:O(m)(`config.field_author_email`),description:I({description:`Your email`,descriptionZh:`邮箱`}),"model-value":F(`site`,`author.email`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.link`,label:O(m)(`config.field_author_link`),description:I({description:`Your profile link`,descriptionZh:`个人链接`}),"model-value":F(`site`,`author.link`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.avatar`,label:O(m)(`config.field_author_avatar`),description:I({description:`Avatar URL`,descriptionZh:`头像 URL`}),"model-value":F(`site`,`author.avatar`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.intro`,label:O(m)(`config.field_author_intro`),description:I({description:`Personal introduction`,descriptionZh:`个人简介`}),"model-value":F(`site`,`author.intro`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(L,{title:O(m)(`config.field_author_status`),icon:`i-ri:emotion-line`},{default:w(()=>[g(_,{"config-type":`site`,field:`author.status.emoji`,label:O(m)(`config.field_status_emoji`),description:I({description:`Status emoji`,descriptionZh:`状态 Emoji`}),"model-value":F(`site`,`author.status.emoji`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.status.message`,label:O(m)(`config.field_status_message`),description:I({description:`Hover message`,descriptionZh:`悬浮消息`}),"model-value":F(`site`,`author.status.message`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`])])):y.value===`features`?(f(),D(`div`,he,[g(L,{title:O(m)(`config.group_search`),icon:`i-ri:search-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`search.enable`,label:O(m)(`config.field_search_enable`),description:I({description:`Enable search`,descriptionZh:`启用搜索`}),"model-value":F(`site`,`search.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`search.provider`,label:O(m)(`config.field_search_provider`),description:I({description:`Search provider`,descriptionZh:`搜索提供商`}),"model-value":F(`site`,`search.provider`)||`fuse`,options:[{label:`Fuse (Local)`,value:`fuse`},{label:`Algolia`,value:`algolia`},{label:`Engine`,value:`engine`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_comment`),icon:`i-ri:chat-3-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`comment.enable`,label:O(m)(`config.field_comment_enable`),description:I({description:`Enable comment`,descriptionZh:`启用评论`}),"model-value":F(`site`,`comment.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_license`),icon:`i-ri:copyright-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`license.enabled`,label:O(m)(`config.field_license_enabled`),description:I({description:`Show license`,descriptionZh:`显示协议`}),"model-value":F(`site`,`license.enabled`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`license.type`,label:O(m)(`config.field_license_type`),description:I({description:`License type`,descriptionZh:`协议类型`}),"model-value":F(`site`,`license.type`)||`by-nc-sa`,options:[{label:`CC BY-NC-SA`,value:`by-nc-sa`},{label:`CC BY-SA`,value:`by-sa`},{label:`CC BY-NC`,value:`by-nc`},{label:`CC BY-NC-ND`,value:`by-nc-nd`},{label:`CC BY-ND`,value:`by-nd`},{label:`CC0`,value:`zero`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_sponsor`),icon:`i-ri:heart-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`sponsor.enable`,label:O(m)(`config.field_sponsor_enable`),description:I({description:`Enable sponsor`,descriptionZh:`启用赞助`}),"model-value":F(`site`,`sponsor.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_general`),icon:`i-ri:settings-3-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`lastUpdated`,label:O(m)(`config.field_last_updated`),description:I({description:`Show last updated time`,descriptionZh:`显示最后更新时间`}),"model-value":F(`site`,`lastUpdated`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(R,{"config-type":`site`,field:`statistics.enable`,label:O(m)(`config.field_statistics_enable`),description:I({description:`Enable reading statistics`,descriptionZh:`启用阅读统计`}),"model-value":F(`site`,`statistics.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(R,{"config-type":`site`,field:`mediumZoom.enable`,label:O(m)(`config.field_medium_zoom`),description:I({description:`Enable image preview`,descriptionZh:`启用图片预览`}),"model-value":F(`site`,`mediumZoom.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_llms`),icon:`i-ri:robot-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`llms.enable`,label:O(m)(`config.field_llms_enable`),description:I({description:`Enable llms.txt output`,descriptionZh:`启用 llms.txt 输出`}),"model-value":F(`site`,`llms.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(R,{"config-type":`site`,field:`llms.fullText`,label:O(m)(`config.field_llms_full_text`),description:I({description:`Generate llms-full.txt`,descriptionZh:`生成 llms-full.txt`}),"model-value":F(`site`,`llms.fullText`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`])])):y.value===`build`?(f(),D(`div`,ge,[g(_,{"config-type":`valaxy`,field:`theme`,label:O(m)(`config.field_theme`),description:I({description:`Theme name`,descriptionZh:`主题名称`}),"model-value":F(`valaxy`,`theme`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`orderBy`,label:O(m)(`config.field_order_by`),description:I({description:`Post ordering`,descriptionZh:`文章排序方式`}),"model-value":F(`site`,`orderBy`)||`date`,options:[{label:`Date`,value:`date`},{label:`Updated`,value:`updated`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(L,{title:O(m)(`config.group_excerpt`),icon:`i-ri:file-text-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`excerpt.auto`,label:O(m)(`config.field_excerpt_auto`),description:I({description:`Auto-generate excerpt`,descriptionZh:`自动生成摘要`}),"model-value":F(`site`,`excerpt.auto`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(C,{"config-type":`site`,field:`excerpt.length`,label:O(m)(`config.field_excerpt_length`),description:I({description:`Max excerpt length`,descriptionZh:`摘要最大长度`}),"model-value":F(`site`,`excerpt.length`),min:50,max:1e3,step:50,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`])])):y.value===`theme`?(f(),D(`div`,_e,[V.value.length===0?(f(),D(`p`,ve,v(O(m)(`config.no_theme_config`)),1)):x(``,!0),(f(!0),D(S,null,h(V.value,([e,t])=>(f(),D(S,{key:e},[typeof t==`string`?(f(),k(_,{key:0,"config-type":`theme`,field:e,label:e,"model-value":t,onSaved:O(u)},null,8,[`field`,`label`,`model-value`,`onSaved`])):typeof t==`boolean`?(f(),k(R,{key:1,"config-type":`theme`,field:e,label:e,"model-value":t,onSaved:O(u)},null,8,[`field`,`label`,`model-value`,`onSaved`])):typeof t==`number`?(f(),k(C,{key:2,"config-type":`theme`,field:e,label:e,"model-value":t,onSaved:O(u)},null,8,[`field`,`label`,`model-value`,`onSaved`])):(f(),D(`div`,ye,[T(`label`,be,v(e),1),T(`code`,xe,v(JSON.stringify(t)),1)]))],64))),128))])):x(``,!0)])])]),_:1}),g(O(M),null,{default:w(()=>[T(`div`,Se,[T(`div`,Ce,[T(`h3`,we,v(O(m)(`config.all_options`)),1),T(`span`,Te,v(B.value.length),1)]),T(`div`,Ee,[g(K,{modelValue:A.value,"onUpdate:modelValue":i[3]||=e=>A.value=e,placeholder:O(m)(`config.search_placeholder`),size:`sm`,class:`w-full`},null,8,[`modelValue`,`placeholder`])]),T(`div`,De,[T(`div`,Oe,[(f(),D(S,null,h([`SiteConfig`,`ValaxyConfig`],e=>T(`div`,{key:e,class:`border border-base rounded-lg overflow-hidden`},[T(`button`,{class:`w-full flex items-center gap-2 px-3 py-1.5 text-xs font-bold bg-secondary hover:bg-hover transition-colors text-left`,onClick:t=>P(e)},[T(`div`,{class:p([`i-ri:arrow-right-s-line text-xs transition-transform`,{"rotate-90":!j.value.has(e)}])},null,2),E(` `+v(e)+` `,1),T(`span`,Ae,` (`+v(B.value.filter(t=>t.section===e).length)+`) `,1)],8,ke),j.value.has(e)?x(``,!0):(f(),D(`div`,je,[(f(!0),D(S,null,h(B.value.filter(t=>t.section===e),e=>(f(),D(`div`,{key:e.path,class:`px-3 py-1.5 hover:bg-hover transition-colors`},[T(`div`,Me,[T(`div`,Ne,[T(`div`,Pe,[T(`code`,Fe,v(e.path),1),T(`span`,Ie,`(`+v(e.type)+`)`,1),e.default?(f(),D(`span`,Le,` = `+v(e.default),1)):x(``,!0)]),I(e)?(f(),D(`p`,Re,v(I(e)),1)):x(``,!0),e.value===void 0?x(``,!0):(f(),D(`div`,ze,[T(`code`,Be,v(typeof e.value==`object`?JSON.stringify(e.value):String(e.value)),1)]))]),T(`div`,Ve,[g(s,{content:O(m)(`config.copy_snippet`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center justify-center w-5 h-5 rounded hover:bg-hover color-faint hover:color-muted transition-colors`,onClick:t=>H(e)},[...i[8]||=[T(`div`,{class:`i-ri:clipboard-line text-xs`},null,-1)]],8,$)]),_:2},1032,[`content`]),g(s,{content:O(m)(`config.open_in_editor`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center justify-center w-5 h-5 rounded hover:bg-hover color-faint hover:color-muted transition-colors`,onClick:t=>W(e.configType)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2)],8,He)]),_:2},1032,[`content`])])])]))),128))]))])),64)),V.value.length>0?(f(),D(`div`,Ue,[T(`button`,{class:`w-full flex items-center gap-2 px-3 py-1.5 text-xs font-bold bg-secondary hover:bg-hover transition-colors text-left`,onClick:i[4]||=e=>P(`ThemeConfig`)},[T(`div`,{class:p([`i-ri:arrow-right-s-line text-xs transition-transform`,{"rotate-90":!j.value.has(`ThemeConfig`)}])},null,2),i[9]||=E(` ThemeConfig `,-1),T(`span`,We,` (`+v(V.value.length)+`) `,1)]),j.value.has(`ThemeConfig`)?x(``,!0):(f(),D(`div`,Ge,[(f(!0),D(S,null,h(V.value,([e,t])=>(f(),D(`div`,{key:e,class:`px-3 py-1.5 hover:bg-hover transition-colors`},[T(`div`,Ke,[T(`div`,qe,[T(`div`,Je,[T(`code`,Ye,` themeConfig.`+v(e),1),T(`span`,Xe,`(`+v(typeof t)+`)`,1)]),T(`div`,Ze,[T(`code`,Qe,v(typeof t==`object`?JSON.stringify(t):String(t)),1)])]),g(s,{content:O(m)(`config.open_in_editor`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center justify-center w-5 h-5 rounded hover:bg-hover color-faint hover:color-muted transition-colors`,onClick:i[5]||=e=>W(`valaxy`)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2)])]),_:1},8,[`content`])])]))),128))]))])):x(``,!0)])])])]),_:1})]),_:1},8,[`horizontal`])):(f(),D(`div`,re,v(O(m)(`config.no_data`)),1))}}});export{$e as default};
|
|
1
|
+
import{$ as e,Q as t,X as n,c as r,d as i,h as a,l as o,o as s,p as c,s as l,u}from"./index-CATNUOOs.js";import{t as d}from"./VDCheckbox-D9TnZbve.js";import{B as f,Bt as p,E as m,H as h,T as g,U as _,Ut as v,Z as y,_ as b,b as x,f as S,ft as C,tt as w,v as T,w as E,x as D,xt as O,y as k}from"./app-D70151fp.js";import{t as A}from"./VDNumberField-92EHlKGD.js";import{t as j}from"./VDSelect-Bon_-RIK.js";import{n as ee,t as M}from"./splitpanes.esm-CUQA4hIN.js";import{t as N}from"./editor-CFkOfp5H.js";var P={class:`flex items-center gap-2`},te=m({__name:`ConfigFieldCheckbox`,props:{configType:{},field:{},label:{},description:{},modelValue:{type:Boolean}},emits:[`saved`],setup(e,{emit:t}){let n=e,r=t;async function o(){let e=!n.modelValue;await i(n.configType,n.field,e),r(`saved`)}return(t,n)=>{let r=d,i=a;return f(),D(`div`,P,[g(r,{"model-value":e.modelValue??!1,"onUpdate:modelValue":o},null,8,[`model-value`]),T(`label`,{class:`text-sm font-medium cursor-pointer`,onClick:o},v(e.label),1),e.description?(f(),k(i,{key:0,content:e.description,side:`right`},{default:w(()=>[...n[0]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)])}}}),F={class:`config-field-group`},I={class:`flex items-center gap-2 mb-3`},L={class:`text-sm font-bold color-base`},R={class:`flex flex-col gap-4 pl-1`},z=m({__name:`ConfigFieldGroup`,props:{title:{},icon:{}},setup(e){return(t,n)=>(f(),D(`div`,F,[T(`div`,I,[e.icon?(f(),D(`div`,{key:0,class:p([e.icon,`text-base color-active`])},null,2)):x(``,!0),T(`h4`,L,v(e.title),1)]),T(`div`,R,[_(t.$slots,`default`)])]))}}),B={class:`flex flex-col gap-1.5`},V={class:`flex items-center gap-1.5`},H={class:`text-sm font-medium`},U=m({__name:`ConfigFieldNumber`,props:{configType:{},field:{},label:{},description:{},modelValue:{},min:{},max:{},step:{}},emits:[`saved`],setup(e,{emit:t}){let n=e,r=t,o=C(n.modelValue??0);y(()=>n.modelValue,e=>{o.value=e??0});async function s(){o.value!==(n.modelValue??0)&&(await i(n.configType,n.field,o.value),r(`saved`))}return(t,n)=>{let r=a,i=A;return f(),D(`div`,B,[T(`div`,V,[T(`label`,H,v(e.label),1),e.description?(f(),k(r,{key:0,content:e.description,side:`right`},{default:w(()=>[...n[1]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)]),g(i,{modelValue:o.value,"onUpdate:modelValue":[n[0]||=e=>o.value=e,s],min:e.min,max:e.max,step:e.step},null,8,[`modelValue`,`min`,`max`,`step`])])}}}),W={class:`flex flex-col gap-1.5`},G={class:`flex items-center gap-1.5`},K={class:`text-sm font-medium`},q=m({__name:`ConfigFieldSelect`,props:{configType:{},field:{},label:{},description:{},modelValue:{},options:{}},emits:[`saved`],setup(e,{emit:t}){let n=e,r=t;async function o(e){e!==void 0&&e!==n.modelValue&&(await i(n.configType,n.field,e),r(`saved`))}return(t,n)=>{let r=a,i=j;return f(),D(`div`,W,[T(`div`,G,[T(`label`,K,v(e.label),1),e.description?(f(),k(r,{key:0,content:e.description,side:`right`},{default:w(()=>[...n[0]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)]),g(i,{"model-value":e.modelValue,options:e.options,class:`w-48`,"onUpdate:modelValue":o},null,8,[`model-value`,`options`])])}}}),J={class:`flex flex-col gap-1.5`},Y={class:`flex items-center gap-1.5`},X={class:`text-sm font-medium`},Z=m({__name:`ConfigFieldInput`,props:{configType:{},field:{},label:{},description:{},placeholder:{},modelValue:{}},emits:[`saved`],setup(e,{emit:t}){let r=e,o=t,s=C(r.modelValue??``);y(()=>r.modelValue,e=>{s.value=e??``});async function c(){s.value!==(r.modelValue??``)&&(await i(r.configType,r.field,s.value),o(`saved`))}function l(e){e.key===`Enter`&&c()}return(t,r)=>{let i=a,o=n;return f(),D(`div`,J,[T(`div`,Y,[T(`label`,X,v(e.label),1),e.description?(f(),k(i,{key:0,content:e.description,side:`right`},{default:w(()=>[...r[1]||=[T(`div`,{class:`i-ri:information-line text-xs op-40 cursor-help`},null,-1)]]),_:1},8,[`content`])):x(``,!0)]),g(o,{modelValue:s.value,"onUpdate:modelValue":r[0]||=e=>s.value=e,placeholder:e.placeholder,size:`md`,onBlur:c,onKeydown:l},null,8,[`modelValue`,`placeholder`])])}}}),Q={generated:`2026-03-23T00:00:00.000Z`,siteConfig:[{name:`mode`,type:`'light' | 'dark' | 'auto'`,description:`Enable auto light/dark mode`,descriptionZh:`启用自动亮色/暗色模式`,default:`'auto'`},{name:`lang`,type:`string`,description:`Default language`,descriptionZh:`默认语言,设置 'zh-CN' 以改变默认语言为中文`,default:`'en'`},{name:`languages`,type:`string[]`,description:`Alternative languages`,descriptionZh:`可选语言`,default:`['en', 'zh-CN']`},{name:`url`,type:`string`,description:`Site URL in web, required for SSG & RSS`,descriptionZh:`站点的完整 URL,SSG & RSS 需要`,default:`'/'`},{name:`timezone`,type:`string`,description:`Timezone configuration`,descriptionZh:`时区配置,国内推荐使用 'Asia/Shanghai'`,default:`''`},{name:`title`,type:`string`,description:`Site title`,descriptionZh:`站点标题`},{name:`subtitle`,type:`string`,description:`Site subtitle`,descriptionZh:`副标题`},{name:`description`,type:`string`,description:`Site description`,descriptionZh:`站点描述`},{name:`author`,type:`object`,description:`The owner of this blog`,descriptionZh:`博客作者`,children:[{name:`name`,type:`string`,description:`Your name`,descriptionZh:`你的名字`},{name:`email`,type:`string`,description:`Your email`,descriptionZh:`邮箱`},{name:`link`,type:`string`,description:`Your profile link`,descriptionZh:`个人链接`},{name:`avatar`,type:`string`,description:`Avatar URL`,descriptionZh:`头像 URL`},{name:`intro`,type:`string`,description:`Personal introduction`,descriptionZh:`个人简介`},{name:`status`,type:`object`,description:`The status of you`,descriptionZh:`状态`,children:[{name:`emoji`,type:`string`,description:`Emoji representation of your status like '👨💻'`,descriptionZh:`你的状态的 Emoji 表示`},{name:`message`,type:`string`,description:`Show when hover emoji`,descriptionZh:`当鼠标悬浮在图标上时显示`}]}]},{name:`favicon`,type:`string`,description:`Icon for your website`,descriptionZh:`站点图标`},{name:`orderBy`,type:`'date' | 'updated'`,description:`Order posts by 'date' or 'updated'`,descriptionZh:`按创建时间或更新时间排序`,default:`'date'`},{name:`lastUpdated`,type:`boolean`,description:`Show last updated time by git/mtime`,descriptionZh:`显示最后更新时间`,default:`false`},{name:`pageSize`,type:`number`,description:`Posts per page`,descriptionZh:`每页显示的文章数`,default:`7`},{name:`search`,type:`object`,description:`Search engine for your site`,descriptionZh:`搜索功能`,children:[{name:`enable`,type:`boolean`,description:`Enable search`,descriptionZh:`是否启用`,default:`false`},{name:`provider`,type:`'algolia' | 'engine' | 'fuse' | 'local'`,description:`Search provider type`,descriptionZh:`搜索提供商类型`,default:`'fuse'`}]},{name:`comment`,type:`object`,description:`Comment system`,descriptionZh:`评论系统`,children:[{name:`enable`,type:`boolean`,description:`Enable comment`,descriptionZh:`启用评论`,default:`false`}]},{name:`feed`,type:`object`,description:`Feed configuration`,descriptionZh:`RSS 订阅配置`,children:[{name:`name`,type:`string`,description:`Feed file name`,descriptionZh:`订阅文件名`,default:`''`},{name:`favicon`,type:`string`,description:`Feed favicon`,descriptionZh:`订阅图标`,default:`'/favicon.svg'`}]},{name:`license`,type:`object`,description:`Post license configuration`,descriptionZh:`文章所使用的协议`,children:[{name:`enabled`,type:`boolean`,description:`Whether to show at the bottom of the article`,descriptionZh:`是否显示在文章底部`,default:`true`},{name:`language`,type:`string`,description:`Creative License Language`,descriptionZh:`协议语言,默认与站点语言相同`,default:`'en'`},{name:`type`,type:`'zero' | 'by-sa' | 'by-nd' | 'by-nc' | 'by-nc-sa' | 'by-nc-nd'`,description:`Type of license`,descriptionZh:`证书类型`,default:`'by-nc-sa'`}]},{name:`sponsor`,type:`object`,description:`Donate/sponsor configuration`,descriptionZh:`打赏/赞助`,children:[{name:`enable`,type:`boolean`,description:`Enable sponsor`,descriptionZh:`启用赞助`,default:`true`},{name:`title`,type:`string`,description:`Donate button title`,descriptionZh:`打赏按钮的 title 属性`},{name:`description`,type:`string`,description:`Donate content description`,descriptionZh:`打赏的描述内容`}]},{name:`excerpt`,type:`object`,description:`Excerpt configuration`,descriptionZh:`全局摘要配置`,children:[{name:`type`,type:`'html' | 'text'`,description:`Default excerpt render type`,descriptionZh:`默认摘要渲染类型`,default:`'html'`},{name:`auto`,type:`boolean`,description:`Auto-generate excerpt from post content`,descriptionZh:`自动从文章内容截取摘要`,default:`false`},{name:`length`,type:`number`,description:`Maximum length of auto-generated excerpt`,descriptionZh:`自动摘要的最大长度(字符数)`,default:`200`}]},{name:`cdn`,type:`object`,description:`CDN configuration for third-party plugins`,descriptionZh:`第三方插件 CDN 配置`,children:[{name:`prefix`,type:`string`,description:`CDN prefix URL`,descriptionZh:`CDN 前缀 URL`,default:`'https://unpkg.com/'`}]},{name:`mediumZoom`,type:`object`,description:`Image preview by medium-zoom`,descriptionZh:`图片预览 (medium-zoom)`,children:[{name:`enable`,type:`boolean`,description:`Enable image preview`,descriptionZh:`启用图片预览`,default:`false`}]},{name:`vanillaLazyload`,type:`object`,description:`Lazyload by vanilla-lazyload`,descriptionZh:`图片懒加载 (vanilla-lazyload)`,children:[{name:`enable`,type:`boolean`,description:`Enable lazy loading`,descriptionZh:`启用懒加载`,default:`false`}]},{name:`statistics`,type:`object`,description:`Statistics: reading time and word count`,descriptionZh:`统计阅读时间和字数`,children:[{name:`enable`,type:`boolean`,description:`Enable statistics`,descriptionZh:`启用统计`,default:`false`},{name:`readTime`,type:`object`,description:`Read time configuration`,descriptionZh:`阅读时间配置`,children:[{name:`speed`,type:`object`,description:`Reading speed`,descriptionZh:`阅读速度`,children:[{name:`cn`,type:`number`,description:`Chinese words per minute`,descriptionZh:`中文每分钟阅读字数`,default:`300`},{name:`en`,type:`number`,description:`English words per minute`,descriptionZh:`英文每分钟阅读字数`,default:`100`}]}]}]},{name:`encrypt`,type:`object`,description:`Encrypt article`,descriptionZh:`加密文章`,children:[{name:`enable`,type:`boolean`,description:`Enable encryption`,descriptionZh:`启用加密`,default:`false`},{name:`algorithm`,type:`string`,description:`Encryption algorithm`,descriptionZh:`加密算法`,default:`'AES-CBC'`}]},{name:`codeHeightLimit`,type:`number`,description:`Limit the height of code blocks in px`,descriptionZh:`限制代码块的高度,单位是 px`},{name:`llms`,type:`object`,description:`llms.txt and raw Markdown file output`,descriptionZh:`llms.txt 及原始 Markdown 文件输出`,children:[{name:`enable`,type:`boolean`,description:`Enable llms.txt and raw .md file output`,descriptionZh:`是否开启 llms.txt 和 .md 原始文件输出`,default:`false`},{name:`fullText`,type:`boolean`,description:`Whether to generate llms-full.txt`,descriptionZh:`是否生成 llms-full.txt`,default:`true`},{name:`files`,type:`boolean`,description:`Whether to generate individual .md files`,descriptionZh:`是否为每篇文章生成独立的 .md 文件`,default:`true`},{name:`prompt`,type:`string`,description:`Custom prompt text for llms.txt`,descriptionZh:`自定义提示词`,default:`''`},{name:`exclude`,type:`string[]`,description:`Globs omitted from llms.txt and llms-full.txt. .md files are still written.`,descriptionZh:`从 llms.txt 和 llms-full.txt 排除的 glob,仍会写出 .md 文件`},{name:`sectionOrder`,type:`string[]`,description:`Section headings to emit first in llms.txt`,descriptionZh:`llms.txt 中优先输出的分组标题`},{name:`locales`,type:`string[]`,description:`URL prefixes treated as languages when grouping llms.txt`,descriptionZh:`分组时视为语言前缀的 URL 片段`},{name:`featured`,type:`LlmsFeatured`,description:`Pages pinned to the start of llms.txt`,descriptionZh:`置顶到 llms.txt 开头的页面`},{name:`collapse`,type:`LlmsCollapse[]`,description:`Replace matching pages with one llms.txt link and omit them from llms-full.txt`,descriptionZh:`把匹配页面收成一条 llms.txt 链接,并且不写入 llms-full.txt`}]}],valaxyConfig:[{name:`theme`,type:`string`,description:`The name of theme`,descriptionZh:`主题名称`},{name:`themeConfig`,type:`object`,description:`Theme-specific configuration`,descriptionZh:`主题配置,请参考对应主题的相关文档`}]},ne={key:0,class:`h-full flex items-center justify-center text-sm op-50`},re={key:1,class:`h-full flex items-center justify-center text-sm op-50`},ie={class:`h-full flex flex-col`},ae={class:`flex items-center gap-2 px-3 py-2 border-b border-mute`},oe={class:`text-sm font-bold flex-1`},se={class:`flex items-center gap-1`},ce=[`disabled`],le={key:0,class:`px-3 pt-2`},ue={class:`flex gap-1 px-3 pt-3 pb-1 flex-wrap`},de=[`onClick`],fe={class:`flex-1 overflow-auto p-3`},pe={key:0,class:`flex flex-col gap-4`},me={key:1,class:`flex flex-col gap-4`},he={key:2,class:`flex flex-col gap-4`},ge={key:3,class:`flex flex-col gap-4`},_e={key:4,class:`flex flex-col gap-4`},ve={key:0,class:`text-sm op-50`},ye={key:3,class:`flex flex-col gap-1.5`},be={class:`text-sm font-medium`},xe={class:`px-2 py-1 bg-secondary rounded text-xs break-all`},Se={class:`h-full flex flex-col`},Ce={class:`flex items-center gap-2 px-3 py-2 border-b border-mute`},we={class:`text-sm font-bold flex-1`},Te={class:`text-xs op-40 tabular-nums`},Ee={class:`px-3 pt-2 pb-1`},De={class:`flex-1 overflow-auto px-2 pb-2`},Oe={class:`flex flex-col gap-1.5 pt-1`},ke=[`onClick`],Ae={class:`text-xs op-50 font-normal`},je={key:0,class:`divide-y divide-[#9992]`},Me={class:`flex items-start gap-1.5`},Ne={class:`flex-1 min-w-0`},Pe={class:`flex items-center gap-1.5 flex-wrap`},Fe={class:`text-xs font-mono color-active`},Ie={class:`text-xs op-40`},Le={key:0,class:`text-xs op-40`},Re={key:0,class:`text-xs op-60 mt-0.5 leading-relaxed`},ze={key:1,class:`mt-0.5`},Be={class:`text-xs bg-sunken px-1 py-0.5 rounded break-all`},Ve={class:`flex items-center gap-0.5 flex-shrink-0`},$=[`onClick`],He=[`onClick`],Ue={key:0,class:`border border-base rounded-lg overflow-hidden`},We={class:`text-xs op-50 font-normal`},Ge={key:0,class:`divide-y divide-[#9992]`},Ke={class:`flex items-start gap-1.5`},qe={class:`flex-1 min-w-0`},Je={class:`flex items-center gap-1.5`},Ye={class:`text-xs font-mono color-active`},Xe={class:`text-xs op-40`},Ze={class:`mt-0.5`},Qe={class:`text-xs bg-sunken px-1 py-0.5 rounded break-all`},$e=m({__name:`config`,setup(i){let d=c(`(max-width: 640px)`),{t:m,locale:_}=e(),y=C(`site`),A=C(``),j=C(new Set);function P(e){j.value.has(e)?j.value.delete(e):j.value.add(e)}function F(e,t){if(!l.value)return;let n=e===`site`?l.value.siteConfig:e===`theme`?l.value.themeConfig:l.value.valaxyConfig,r=t.split(`.`),i=n;for(let e of r){if(i==null)return;i=i[e]}return i}function I(e){return _.value===`zh-CN`&&e.descriptionZh?e.descriptionZh:e.description||``}function L(e,t,n,r){let i=[];for(let a of e){let e=t?`${t}.${a.name}`:a.name;i.push({path:e,name:a.name,type:a.type,description:a.description||``,descriptionZh:a.descriptionZh,default:a.default,section:n,configType:r,value:F(r,e)}),`children`in a&&a.children&&i.push(...L(a.children,e,n,r))}return i}let R=b(()=>{let e=L(Q.siteConfig,``,`SiteConfig`,`site`),t=L(Q.valaxyConfig,``,`ValaxyConfig`,`valaxy`);return[...e,...t]}),B=b(()=>{if(!A.value)return R.value;let e=A.value.toLowerCase();return R.value.filter(t=>t.path.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)||t.descriptionZh&&t.descriptionZh.toLowerCase().includes(e))}),V=b(()=>l.value?.themeConfig?Object.entries(l.value.themeConfig).filter(([e])=>e!==`pkg`):[]);async function H(e){let t=e.value,n=typeof t==`string`?`'${t}'`:JSON.stringify(t),r=`${e.path}: ${n}`;try{await navigator.clipboard.writeText(r)}catch{}}function W(e){if(!l.value)return;let t=e===`site`?l.value.siteConfigPath:l.value.valaxyConfigPath;t&&s({file:t})}let G=b(()=>[{value:`site`,label:m(`config.tab_site`),icon:`i-ri:global-line`},{value:`author`,label:m(`config.tab_author`),icon:`i-ri:user-line`},{value:`features`,label:m(`config.tab_features`),icon:`i-ri:flashlight-line`},{value:`build`,label:m(`config.tab_build`),icon:`i-ri:hammer-line`},{value:`theme`,label:m(`config.tab_theme`),icon:`i-ri:palette-line`}]);return(e,i)=>{let s=a,c=t,_=Z,b=q,C=U,L=z,R=te,K=n;return O(r)&&!O(l)?(f(),D(`div`,ne,v(O(m)(`config.loading`)),1)):O(l)?(f(),k(O(ee),{key:2,horizontal:O(d),class:`h-full`},{default:w(()=>[g(O(M),{"min-size":`30`,size:`45`},{default:w(()=>[T(`div`,ie,[T(`div`,ae,[T(`h3`,oe,v(O(m)(`config.quick_edit`)),1),T(`div`,se,[g(s,{content:O(m)(`config.open_site_config`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center gap-1 px-1.5 py-0.5 text-xs rounded hover:bg-hover color-faint transition-colors`,onClick:i[0]||=e=>W(`site`)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2),i[6]||=E(` site `,-1)])]),_:1},8,[`content`]),g(s,{content:O(m)(`config.open_valaxy_config`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center gap-1 px-1.5 py-0.5 text-xs rounded hover:bg-hover color-faint transition-colors`,onClick:i[1]||=e=>W(`valaxy`)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2),i[7]||=E(` valaxy `,-1)])]),_:1},8,[`content`]),T(`button`,{class:`inline-flex items-center justify-center w-6 h-6 text-xs rounded hover:bg-hover color-faint transition-colors`,disabled:O(r),onClick:i[2]||=(...e)=>O(u)&&O(u)(...e)},[T(`div`,{class:p([`i-ri:refresh-line`,{"animate-spin":O(r)}])},null,2)],8,ce)])]),O(o)?(f(),D(`div`,le,[g(c,{severity:O(o).type===`success`?`success`:`error`,closable:``},{default:w(()=>[E(v(O(o).text),1)]),_:1},8,[`severity`])])):x(``,!0),T(`div`,ue,[(f(!0),D(S,null,h(G.value,e=>(f(),D(`button`,{key:e.value,class:p([`inline-flex items-center gap-1 px-2 py-1 text-xs rounded-md border transition-colors`,y.value===e.value?`bg-active border-active color-active `:`border-base color-muted hover:bg-hover `]),onClick:t=>y.value=e.value},[T(`div`,{class:p([e.icon,`text-xs`])},null,2),E(` `+v(e.label),1)],10,de))),128))]),T(`div`,fe,[y.value===`site`?(f(),D(`div`,pe,[g(_,{"config-type":`site`,field:`title`,label:O(m)(`config.field_title`),description:I({description:`Site title`,descriptionZh:`站点标题`}),"model-value":F(`site`,`title`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`subtitle`,label:O(m)(`config.field_subtitle`),description:I({description:`Site subtitle`,descriptionZh:`副标题`}),"model-value":F(`site`,`subtitle`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`description`,label:O(m)(`config.field_description`),description:I({description:`Site description`,descriptionZh:`站点描述`}),"model-value":F(`site`,`description`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`url`,label:O(m)(`config.field_url`),description:I({description:`Site URL, required for SSG & RSS`,descriptionZh:`站点 URL,SSG 和 RSS 需要`}),"model-value":F(`site`,`url`),placeholder:`https://example.com`,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`mode`,label:O(m)(`config.field_mode`),description:I({description:`Light/Dark mode`,descriptionZh:`亮色/暗色模式`}),"model-value":F(`site`,`mode`)||`auto`,options:[{label:`Auto`,value:`auto`},{label:`Light`,value:`light`},{label:`Dark`,value:`dark`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`lang`,label:O(m)(`config.field_lang`),description:I({description:`Default language`,descriptionZh:`默认语言`}),"model-value":F(`site`,`lang`),placeholder:`en`,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`favicon`,label:O(m)(`config.field_favicon`),description:I({description:`Website icon`,descriptionZh:`站点图标`}),"model-value":F(`site`,`favicon`),placeholder:`/favicon.svg`,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(C,{"config-type":`site`,field:`pageSize`,label:O(m)(`config.field_page_size`),description:I({description:`Posts per page`,descriptionZh:`每页显示文章数`}),"model-value":F(`site`,`pageSize`),min:1,max:100,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])])):y.value===`author`?(f(),D(`div`,me,[g(_,{"config-type":`site`,field:`author.name`,label:O(m)(`config.field_author_name`),description:I({description:`Your name`,descriptionZh:`你的名字`}),"model-value":F(`site`,`author.name`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.email`,label:O(m)(`config.field_author_email`),description:I({description:`Your email`,descriptionZh:`邮箱`}),"model-value":F(`site`,`author.email`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.link`,label:O(m)(`config.field_author_link`),description:I({description:`Your profile link`,descriptionZh:`个人链接`}),"model-value":F(`site`,`author.link`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.avatar`,label:O(m)(`config.field_author_avatar`),description:I({description:`Avatar URL`,descriptionZh:`头像 URL`}),"model-value":F(`site`,`author.avatar`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.intro`,label:O(m)(`config.field_author_intro`),description:I({description:`Personal introduction`,descriptionZh:`个人简介`}),"model-value":F(`site`,`author.intro`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(L,{title:O(m)(`config.field_author_status`),icon:`i-ri:emotion-line`},{default:w(()=>[g(_,{"config-type":`site`,field:`author.status.emoji`,label:O(m)(`config.field_status_emoji`),description:I({description:`Status emoji`,descriptionZh:`状态 Emoji`}),"model-value":F(`site`,`author.status.emoji`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(_,{"config-type":`site`,field:`author.status.message`,label:O(m)(`config.field_status_message`),description:I({description:`Hover message`,descriptionZh:`悬浮消息`}),"model-value":F(`site`,`author.status.message`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`])])):y.value===`features`?(f(),D(`div`,he,[g(L,{title:O(m)(`config.group_search`),icon:`i-ri:search-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`search.enable`,label:O(m)(`config.field_search_enable`),description:I({description:`Enable search`,descriptionZh:`启用搜索`}),"model-value":F(`site`,`search.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`search.provider`,label:O(m)(`config.field_search_provider`),description:I({description:`Search provider`,descriptionZh:`搜索提供商`}),"model-value":F(`site`,`search.provider`)||`fuse`,options:[{label:`Fuse (Local)`,value:`fuse`},{label:`Algolia`,value:`algolia`},{label:`Engine`,value:`engine`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_comment`),icon:`i-ri:chat-3-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`comment.enable`,label:O(m)(`config.field_comment_enable`),description:I({description:`Enable comment`,descriptionZh:`启用评论`}),"model-value":F(`site`,`comment.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_license`),icon:`i-ri:copyright-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`license.enabled`,label:O(m)(`config.field_license_enabled`),description:I({description:`Show license`,descriptionZh:`显示协议`}),"model-value":F(`site`,`license.enabled`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`license.type`,label:O(m)(`config.field_license_type`),description:I({description:`License type`,descriptionZh:`协议类型`}),"model-value":F(`site`,`license.type`)||`by-nc-sa`,options:[{label:`CC BY-NC-SA`,value:`by-nc-sa`},{label:`CC BY-SA`,value:`by-sa`},{label:`CC BY-NC`,value:`by-nc`},{label:`CC BY-NC-ND`,value:`by-nc-nd`},{label:`CC BY-ND`,value:`by-nd`},{label:`CC0`,value:`zero`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_sponsor`),icon:`i-ri:heart-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`sponsor.enable`,label:O(m)(`config.field_sponsor_enable`),description:I({description:`Enable sponsor`,descriptionZh:`启用赞助`}),"model-value":F(`site`,`sponsor.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_general`),icon:`i-ri:settings-3-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`lastUpdated`,label:O(m)(`config.field_last_updated`),description:I({description:`Show last updated time`,descriptionZh:`显示最后更新时间`}),"model-value":F(`site`,`lastUpdated`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(R,{"config-type":`site`,field:`statistics.enable`,label:O(m)(`config.field_statistics_enable`),description:I({description:`Enable reading statistics`,descriptionZh:`启用阅读统计`}),"model-value":F(`site`,`statistics.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(R,{"config-type":`site`,field:`mediumZoom.enable`,label:O(m)(`config.field_medium_zoom`),description:I({description:`Enable image preview`,descriptionZh:`启用图片预览`}),"model-value":F(`site`,`mediumZoom.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`]),g(L,{title:O(m)(`config.group_llms`),icon:`i-ri:robot-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`llms.enable`,label:O(m)(`config.field_llms_enable`),description:I({description:`Enable llms.txt output`,descriptionZh:`启用 llms.txt 输出`}),"model-value":F(`site`,`llms.enable`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(R,{"config-type":`site`,field:`llms.fullText`,label:O(m)(`config.field_llms_full_text`),description:I({description:`Generate llms-full.txt`,descriptionZh:`生成 llms-full.txt`}),"model-value":F(`site`,`llms.fullText`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`])])):y.value===`build`?(f(),D(`div`,ge,[g(_,{"config-type":`valaxy`,field:`theme`,label:O(m)(`config.field_theme`),description:I({description:`Theme name`,descriptionZh:`主题名称`}),"model-value":F(`valaxy`,`theme`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(b,{"config-type":`site`,field:`orderBy`,label:O(m)(`config.field_order_by`),description:I({description:`Post ordering`,descriptionZh:`文章排序方式`}),"model-value":F(`site`,`orderBy`)||`date`,options:[{label:`Date`,value:`date`},{label:`Updated`,value:`updated`}],onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(L,{title:O(m)(`config.group_excerpt`),icon:`i-ri:file-text-line`},{default:w(()=>[g(R,{"config-type":`site`,field:`excerpt.auto`,label:O(m)(`config.field_excerpt_auto`),description:I({description:`Auto-generate excerpt`,descriptionZh:`自动生成摘要`}),"model-value":F(`site`,`excerpt.auto`),onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`]),g(C,{"config-type":`site`,field:`excerpt.length`,label:O(m)(`config.field_excerpt_length`),description:I({description:`Max excerpt length`,descriptionZh:`摘要最大长度`}),"model-value":F(`site`,`excerpt.length`),min:50,max:1e3,step:50,onSaved:O(u)},null,8,[`label`,`description`,`model-value`,`onSaved`])]),_:1},8,[`title`])])):y.value===`theme`?(f(),D(`div`,_e,[V.value.length===0?(f(),D(`p`,ve,v(O(m)(`config.no_theme_config`)),1)):x(``,!0),(f(!0),D(S,null,h(V.value,([e,t])=>(f(),D(S,{key:e},[typeof t==`string`?(f(),k(_,{key:0,"config-type":`theme`,field:e,label:e,"model-value":t,onSaved:O(u)},null,8,[`field`,`label`,`model-value`,`onSaved`])):typeof t==`boolean`?(f(),k(R,{key:1,"config-type":`theme`,field:e,label:e,"model-value":t,onSaved:O(u)},null,8,[`field`,`label`,`model-value`,`onSaved`])):typeof t==`number`?(f(),k(C,{key:2,"config-type":`theme`,field:e,label:e,"model-value":t,onSaved:O(u)},null,8,[`field`,`label`,`model-value`,`onSaved`])):(f(),D(`div`,ye,[T(`label`,be,v(e),1),T(`code`,xe,v(JSON.stringify(t)),1)]))],64))),128))])):x(``,!0)])])]),_:1}),g(O(M),null,{default:w(()=>[T(`div`,Se,[T(`div`,Ce,[T(`h3`,we,v(O(m)(`config.all_options`)),1),T(`span`,Te,v(B.value.length),1)]),T(`div`,Ee,[g(K,{modelValue:A.value,"onUpdate:modelValue":i[3]||=e=>A.value=e,placeholder:O(m)(`config.search_placeholder`),size:`sm`,class:`w-full`},null,8,[`modelValue`,`placeholder`])]),T(`div`,De,[T(`div`,Oe,[(f(),D(S,null,h([`SiteConfig`,`ValaxyConfig`],e=>T(`div`,{key:e,class:`border border-base rounded-lg overflow-hidden`},[T(`button`,{class:`w-full flex items-center gap-2 px-3 py-1.5 text-xs font-bold bg-secondary hover:bg-hover transition-colors text-left`,onClick:t=>P(e)},[T(`div`,{class:p([`i-ri:arrow-right-s-line text-xs transition-transform`,{"rotate-90":!j.value.has(e)}])},null,2),E(` `+v(e)+` `,1),T(`span`,Ae,` (`+v(B.value.filter(t=>t.section===e).length)+`) `,1)],8,ke),j.value.has(e)?x(``,!0):(f(),D(`div`,je,[(f(!0),D(S,null,h(B.value.filter(t=>t.section===e),e=>(f(),D(`div`,{key:e.path,class:`px-3 py-1.5 hover:bg-hover transition-colors`},[T(`div`,Me,[T(`div`,Ne,[T(`div`,Pe,[T(`code`,Fe,v(e.path),1),T(`span`,Ie,`(`+v(e.type)+`)`,1),e.default?(f(),D(`span`,Le,` = `+v(e.default),1)):x(``,!0)]),I(e)?(f(),D(`p`,Re,v(I(e)),1)):x(``,!0),e.value===void 0?x(``,!0):(f(),D(`div`,ze,[T(`code`,Be,v(typeof e.value==`object`?JSON.stringify(e.value):String(e.value)),1)]))]),T(`div`,Ve,[g(s,{content:O(m)(`config.copy_snippet`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center justify-center w-5 h-5 rounded hover:bg-hover color-faint hover:color-muted transition-colors`,onClick:t=>H(e)},[...i[8]||=[T(`div`,{class:`i-ri:clipboard-line text-xs`},null,-1)]],8,$)]),_:2},1032,[`content`]),g(s,{content:O(m)(`config.open_in_editor`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center justify-center w-5 h-5 rounded hover:bg-hover color-faint hover:color-muted transition-colors`,onClick:t=>W(e.configType)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2)],8,He)]),_:2},1032,[`content`])])])]))),128))]))])),64)),V.value.length>0?(f(),D(`div`,Ue,[T(`button`,{class:`w-full flex items-center gap-2 px-3 py-1.5 text-xs font-bold bg-secondary hover:bg-hover transition-colors text-left`,onClick:i[4]||=e=>P(`ThemeConfig`)},[T(`div`,{class:p([`i-ri:arrow-right-s-line text-xs transition-transform`,{"rotate-90":!j.value.has(`ThemeConfig`)}])},null,2),i[9]||=E(` ThemeConfig `,-1),T(`span`,We,` (`+v(V.value.length)+`) `,1)]),j.value.has(`ThemeConfig`)?x(``,!0):(f(),D(`div`,Ge,[(f(!0),D(S,null,h(V.value,([e,t])=>(f(),D(`div`,{key:e,class:`px-3 py-1.5 hover:bg-hover transition-colors`},[T(`div`,Ke,[T(`div`,qe,[T(`div`,Je,[T(`code`,Ye,` themeConfig.`+v(e),1),T(`span`,Xe,`(`+v(typeof t)+`)`,1)]),T(`div`,Ze,[T(`code`,Qe,v(typeof t==`object`?JSON.stringify(t):String(t)),1)])]),g(s,{content:O(m)(`config.open_in_editor`)},{default:w(()=>[T(`button`,{class:`inline-flex items-center justify-center w-5 h-5 rounded hover:bg-hover color-faint hover:color-muted transition-colors`,onClick:i[5]||=e=>W(`valaxy`)},[T(`div`,{class:p([O(N)?.icon||`i-ph:code`,`text-xs`])},null,2)])]),_:1},8,[`content`])])]))),128))]))])):x(``,!0)])])])]),_:1})]),_:1},8,[`horizontal`])):(f(),D(`div`,re,v(O(m)(`config.no_data`)),1))}}});export{$e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Bt as t,E as n,H as r,T as i,Ut as a,_ as o,b as s,f as c,o as l,tt as u,v as d,w as f,x as p,xt as m,y as h}from"./app-D70151fp.js";import{t as g}from"./FeedbackEmptyState-CW6pLCXv.js";import{t as _}from"./LayoutCard-CTAguKmh.js";import{$ as v}from"./index-
|
|
1
|
+
import{B as e,Bt as t,E as n,H as r,T as i,Ut as a,_ as o,b as s,f as c,o as l,tt as u,v as d,w as f,x as p,xt as m,y as h}from"./app-D70151fp.js";import{t as g}from"./FeedbackEmptyState-CW6pLCXv.js";import{t as _}from"./LayoutCard-CTAguKmh.js";import{$ as v}from"./index-CATNUOOs.js";import{t as y}from"./VDCodeBlock-C6r7SxFp.js";var b={class:`max-w-6xl mx-auto p-4 sm:p-6 flex flex-col gap-4`},x={class:`flex flex-wrap items-center gap-2`},S={class:`text-lg font-semibold`},C={key:0,class:`text-xs rounded-full px-2 py-0.5 bg-green-500/10 text-green-700 dark:text-green-300`,role:`status`},w={class:`text-sm color-muted`},T={class:`flex flex-wrap items-center justify-between gap-2 mb-3`},E={class:`text-sm font-semibold flex items-center gap-2`},D={class:`text-sm font-mono`,"data-testid":`debug-viewport`},O={class:`flex flex-wrap gap-2`},k=[`aria-label`,`data-active`],A={key:0,class:`i-ph:check inline-block align-middle`,"aria-hidden":`true`},j={class:`grid md:grid-cols-2 gap-4 items-start`},M={open:``},N={class:`cursor-pointer p-4 text-sm font-semibold select-none focus-visible:outline-primary`},P=n({__name:`debug`,setup(n){let{t:P}=v(),F=o(()=>l.value?.debug),I=o(()=>[{id:`route`,title:P(`debug.route`),icon:`i-ph:signpost`,color:`text-blue-600 dark:text-blue-300`,value:F.value?.route},{id:`frontmatter`,title:`Frontmatter`,icon:`i-ph:article`,color:`text-amber-700 dark:text-amber-300`,value:l.value?.frontmatter},{id:`site`,title:P(`debug.site_config`),icon:`i-ph:globe`,color:`text-purple-600 dark:text-purple-300`,value:F.value?{theme:F.value.config.theme,...F.value.config.site}:void 0},{id:`theme`,title:P(`debug.theme_config`),icon:`i-ph:palette`,color:`text-purple-600 dark:text-purple-300`,value:F.value?.config.themeConfig}]);return(n,o)=>(e(),p(`div`,b,[d(`div`,x,[d(`h1`,S,a(m(P)(`nav.debug`)),1),F.value?(e(),p(`span`,C,a(m(P)(`debug.live`)),1)):s(``,!0)]),F.value?(e(),p(c,{key:1},[d(`p`,w,a(m(P)(`debug.description`)),1),i(_,{as:`section`,"aria-label":m(P)(`debug.viewport`)},{default:u(()=>[d(`div`,T,[d(`h2`,E,[o[0]||=d(`span`,{class:`i-ph:devices text-emerald-600 dark:text-emerald-300`,"aria-hidden":`true`},null,-1),f(` `+a(m(P)(`debug.viewport`)),1)]),d(`span`,D,a(F.value.viewport.width)+` × `+a(F.value.viewport.height)+` px`,1)]),d(`div`,O,[(e(!0),p(c,null,r(F.value.viewport.breakpoints,n=>(e(),p(`span`,{key:n.label,class:t([`rounded-md px-2 py-1 text-xs font-mono`,n.active?`bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:`bg-sunken color-muted`]),"aria-label":`${n.label}: ${m(P)(n.active?`debug.matched`:`debug.unmatched`)}`,"data-active":n.active},[f(a(n.label)+` `,1),n.active?(e(),p(`span`,A)):s(``,!0)],10,k))),128))])]),_:1},8,[`aria-label`]),d(`div`,j,[(e(!0),p(c,null,r(I.value,n=>(e(),h(_,{key:n.id,as:`section`,"aria-label":n.title,padding:!1,class:`min-w-0 overflow-hidden`},{default:u(()=>[d(`details`,M,[d(`summary`,N,[d(`span`,{class:t([[n.icon,n.color],`inline-block align-middle mx-1`]),"aria-hidden":`true`},null,2),f(` `+a(n.title),1)]),i(y,{code:JSON.stringify(n.value,null,2)??``,lang:`json`},null,8,[`code`])])]),_:2},1032,[`aria-label`]))),128))])],64)):(e(),h(g,{key:0,title:m(P)(`debug.no_page`),icon:`i-ph:browser`,class:`py-12`},{hint:u(()=>[f(a(m(P)(`debug.connect_hint`)),1)]),_:1},8,[`title`]))]))}});export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,t as n}from"./app-D70151fp.js";import{r}from"./rpc-
|
|
1
|
+
import{_ as e,c as t,t as n}from"./app-D70151fp.js";import{r}from"./rpc-Ad2-JgrG.js";var i=[{commands:[`code`],name:`Visual Studio Code`,icon:`i-vscode-icons:file-type-vscode`},{commands:[`code-insiders`],name:`VS Code Insiders`,icon:`i-vscode-icons:file-type-vscode-insiders`},{commands:[`cursor`],name:`Cursor`,icon:`i-simple-icons:cursor`},{commands:[`zed`],name:`Zed`,icon:`i-simple-icons:zedindustries`},{commands:[`webstorm`,`wstorm`],name:`WebStorm`,icon:`i-simple-icons:webstorm`},{commands:[`codium`,`vscodium`],name:`VSCodium`,icon:`i-simple-icons:vscodium`},{commands:[`subl`,`sublime`,`sublime_text`],name:`Sublime Text`,icon:`i-simple-icons:sublimetext`},{commands:[`idea`],name:`IntelliJ IDEA`,icon:`i-simple-icons:intellijidea`},{commands:[`trae`],name:`Trae`,icon:`i-simple-icons:trae`},{commands:[`atom`],name:`Atom`,icon:`i-simple-icons:atom`},{commands:[`pycharm`,`charm`],name:`PyCharm`,icon:`i-simple-icons:pycharm`},{commands:[`phpstorm`],name:`PhpStorm`,icon:`i-simple-icons:phpstorm`},{commands:[`rubymine`],name:`RubyMine`,icon:`i-simple-icons:rubymine`},{commands:[`clion`],name:`CLion`,icon:`i-simple-icons:clion`},{commands:[`goland`],name:`GoLand`,icon:`i-simple-icons:goland`},{commands:[`rider`],name:`Rider`,icon:`i-simple-icons:rider`},{commands:[`notepad++`],name:`Notepad++`,icon:`i-simple-icons:notepadplusplus`},{commands:[`vim`],name:`Vim`,icon:`i-simple-icons:vim`},{commands:[`mvim`],name:`MacVim`,icon:`i-simple-icons:vim`},{commands:[`gvim`],name:`gVim`,icon:`i-simple-icons:vim`},{commands:[`emacs`],name:`Emacs`,icon:`i-simple-icons:gnuemacs`},{commands:[`emacsclient`],name:`Emacs Client`,icon:`i-simple-icons:gnuemacs`},{commands:[`mate`],name:`TextMate`,icon:`i-ph:code`},{commands:[`rmate`],name:`Remote TextMate`,icon:`i-ph:code`},{commands:[`antigravity`],name:`Antigravity`,icon:`i-ph:code`},{commands:[`appcode`],name:`AppCode`,icon:`i-ph:code`},{commands:[`joe`],name:`JOE`,icon:`i-ph:terminal`}];function a(e){return i.find(t=>e&&t.commands.includes(e))}var o=e(()=>n.value.editors||[]),s=e({get:()=>t.value.editor&&o.value.includes(t.value.editor)?t.value.editor:``,set:e=>t.value.editor=e}),c=e(()=>i.flatMap(e=>{let t=e.commands.find(e=>e===s.value)||e.commands.find(e=>o.value.includes(e));return t?[{...e,command:t}]:[]})),l=e(()=>s.value||n.value.editor),u=e(()=>a(l.value)),d=e(()=>a(n.value.editor));async function f(e){await(await r()).call(`valaxy:service:open:open-in-editor`,{...e,editor:l.value})}export{f as a,s as i,d as n,c as r,u as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pages-
|
|
2
|
-
import{$ as e,A as t,B as n,Bt as r,C as i,D as a,E as o,F as s,G as c,H as l,Ht as u,I as d,J as f,K as p,L as m,M as h,N as g,O as _,P as v,Q as y,R as b,St as x,T as S,U as C,Ut as w,V as T,Vt as E,W as D,Wt as O,Y as k,Z as A,_ as j,_t as ee,a as te,at as ne,b as M,bt as re,ct as ie,d as ae,dt as oe,f as se,ft as N,g as ce,ht as le,it as ue,j as de,k as P,lt as fe,m as pe,mt as me,n as he,nt as ge,o as _e,ot as ve,p as ye,pt as be,q as xe,r as Se,rt as Ce,s as we,st as Te,t as Ee,tt as F,ut as De,v as I,vt as Oe,w as ke,x as L,xt as R,y as z,yt as B,z as Ae}from"./app-D70151fp.js";import{i as je,l as Me,n as Ne,s as Pe}from"./runtime-dom.esm-bundler-DsZABnoH.js";import{a as Fe,c as Ie,d as Le,f as Re,i as ze,l as Be,m as Ve,n as He,o as Ue,p as We,r as Ge,s as Ke,t as qe,u as Je}from"./rpc-CQIJhNkR.js";import{a as Ye}from"./editor-Dmn66Bmw.js";import{t as Xe}from"./nanoid-Cya-tyvy.js";var Ze=Object.create,Qe=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyNames,tt=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty,rt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),it=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=et(t),a=0,o=i.length,s;a<o;a++)s=i[a],!nt.call(e,s)&&s!==n&&Qe(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=$e(t,s))||r.enumerable});return e},at=(e,t,n)=>(n=e==null?{}:Ze(tt(e)),it(t||!e||!e.__esModule||!nt.call(e,`default`)?Qe(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ot=typeof window<`u`,st=Symbol(),ct=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function lt(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function ut(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){ht(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function dt(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ft(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var pt=typeof navigator==`object`?navigator:{userAgent:``},mt=/Macintosh/.test(pt.userAgent)&&/AppleWebKit/.test(pt.userAgent)&&!/Safari/.test(pt.userAgent),ht=ot?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!mt?gt:`msSaveOrOpenBlob`in pt?_t:vt:()=>{};function gt(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?ft(r):dt(r.href)?ut(e,t,n):(r.target=`_blank`,ft(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ft(r)},0))}function _t(e,t=`download`,n){if(typeof e==`string`){if(dt(e))ut(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){ft(t)})}}else navigator.msSaveOrOpenBlob(lt(e,n),t)}function vt(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return ut(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(ct.HTMLElement))||`safari`in ct,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||mt)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:yt}=Object;function bt(){let e=ne(!0),t=e.run(()=>N({})),n=[],r=[],i=ie({install(e){i._a=e,e.provide(st,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var{assign:xt}=Object,St=e=>e.startsWith(`/`);function Ct(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function wt(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Ct(e.default)}var V=Object.assign;function Tt(e,t){let n={};for(let r in t){let i=t[r];n[r]=Dt(i)?i.map(e):e(i)}return n}var Et=()=>{},Dt=Array.isArray;function Ot(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var kt=Symbol(``);function At(e,t){return V(Error(),{type:e,[kt]:!0},t)}function jt(e,t){return e instanceof Error&&kt in e&&(t==null||!!(e.type&t))}var Mt=Symbol(``),Nt=Symbol(``),Pt=Symbol(``),Ft=Symbol(``),It=Symbol(``);function Lt(){return de(Pt)}function Rt(e){return de(Ft)}var zt=typeof document<`u`,Bt=/#/g,Vt=/&/g,Ht=/\//g,Ut=/=/g,Wt=/\?/g,Gt=/\+/g,Kt=/%5B/g,qt=/%5D/g,Jt=/%5E/g,Yt=/%60/g,Xt=/%7B/g,Zt=/%7C/g,Qt=/%7D/g,$t=/%20/g;function en(e){return e==null?``:encodeURI(``+e).replace(Zt,`|`).replace(Kt,`[`).replace(qt,`]`)}function tn(e){return en(e).replace(Xt,`{`).replace(Qt,`}`).replace(Jt,`^`)}function nn(e){return en(e).replace(Gt,`%2B`).replace($t,`+`).replace(Bt,`%23`).replace(Vt,`%26`).replace(Yt,"`").replace(Xt,`{`).replace(Qt,`}`).replace(Jt,`^`)}function rn(e){return nn(e).replace(Ut,`%3D`)}function an(e){return en(e).replace(Bt,`%23`).replace(Wt,`%3F`)}function on(e){return an(e).replace(Ht,`%2F`)}function sn(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var cn=/\/$/,ln=e=>e.replace(cn,``);function un(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=vn(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:sn(o)}}function dn(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function fn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function pn(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&mn(t.matched[r],n.matched[i])&&hn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!gn(e[n],t[n]))return!1;return!0}function gn(e,t){return Dt(e)?_n(e,t):Dt(t)?_n(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function _n(e,t){return Dt(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function vn(e,t){if(St(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var yn={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function bn(e){if(!e){if(zt){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),ln(e)}var xn=/^[^#]+#/;function Sn(e,t){return e.replace(xn,`#`)+t}function Cn(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var wn=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function Tn(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Cn(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function En(e,t){return(history.state?history.state.position-t:-1)+e}var Dn=new Map;function On(e){Dn.set(e,wn())}function kn(e){let t=Dn.get(e);return Dn.delete(e),t}function An(e){return typeof e==`string`||e&&typeof e==`object`}function jn(e){return typeof e==`string`||typeof e==`symbol`}function Mn(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Gt,` `),i=r.indexOf(`=`),a=sn(i<0?r:r.slice(0,i)),o=i<0?null:sn(r.slice(i+1));if(a in t){let e=t[a];Dt(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Nn(e){let t=``;for(let n in e){let r=e[n];n=rn(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(Dt(r)?r.map(e=>e&&nn(e)):[r&&nn(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Pn(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Dt(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Fn(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function In(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(At(4,{from:n,to:t})):e instanceof Error?c(e):An(e)?c(At(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ln(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(Ct(s)){let c=(s.__vccOpts||s)[t];c&&a.push(In(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=wt(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&In(c,n,r,o,e,i)()}))}}}return a}function Rn(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>mn(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>mn(e,s))||i.push(s))}return[n,r,i]}var zn=()=>location.protocol+`//`+location.host;function Bn(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),fn(n,``)}return fn(n,e)+r+i}function Vn(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Bn(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(V({},e.state,{scroll:wn()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function Hn(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function Un(e){let{history:t,location:n}=window,r={value:Bn(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:zn()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,V({},t.state,Hn(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=V({},i.value,t.state,{forward:e,scroll:wn()});a(o.current,o,!0),a(e,V({},Hn(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Wn(e){e=bn(e);let t=Un(e),n=Vn(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=V({location:``,base:e,go:r,createHref:Sn.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Gn(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Wn(e)}var Kn={type:0,value:``},qn=/[a-zA-Z0-9_]/;function Jn(e){if(!e)return[[]];if(e===`/`)return[[Kn]];if(!St(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:qn.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Yn=`[^/]+?`,Xn={sensitive:!1,strict:!1,start:!0,end:!0},Zn=/[.+*?^${}()[\]/\\]/g;function Qn(e,t){let n=V({},Xn,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(Zn,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Yn;if(u!==Yn){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){r&&n.endsWith(`/`)||(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Dt(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Dt(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function $n(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function er(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=$n(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(tr(r))return 1;if(tr(i))return-1}return i.length-r.length}function tr(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var nr={strict:!1,end:!0,sensitive:!1};function rr(e,t,n){let r=V(Qn(Jn(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ir(e,t){let n=[],r=new Map;t=Ot(nr,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=or(e);s.aliasOf=r&&r.record;let l=Ot(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(or(V({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!St(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=rr(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!cr(d)&&o(e.name)),fr(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Et}function o(e){if(jn(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=ur(e,n);n.splice(t,0,e),e.record.name&&!cr(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw At(1,{location:e});s=i.record.name,a=V(ar(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&ar(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw At(1,{location:e,currentLocation:t});s=i.record.name,a=V({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:lr(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function ar(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function or(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:sr(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 sr(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function cr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function lr(e){return e.reduce((e,t)=>V(e,t.meta),{})}function ur(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;er(e,t[i])<0?r=i:n=i+1}let i=dr(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function dr(e){let t=e;for(;t=t.parent;)if(fr(t)&&er(e,t)===0)return t}function fr({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function pr(e){let t=de(Pt),n=de(Ft),r=j(()=>{let n=R(e.to);return t.resolve(n)}),i=j(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(mn.bind(null,i));if(o>-1)return o;let s=vr(e[t-2]);return t>1&&vr(i)===s&&a[a.length-1].path!==s?a.findIndex(mn.bind(null,e[t-2])):o}),a=j(()=>i.value>-1&&_r(n.params,r.value.params)),o=j(()=>i.value>-1&&i.value===n.matched.length-1&&hn(n.params,r.value.params));function s(n={}){if(gr(n)){let n=t[R(e.replace)?`replace`:`push`](R(e.to)).catch(Et);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function mr(e){return e.length===1?e[0]:e}var hr=o({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`},viewTransition:Boolean},useLink:pr,setup(e,{slots:t}){let n=De(pr(e)),{options:r}=de(Pt),i=j(()=>({[yr(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[yr(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&mr(t.default(n));return e.custom?r:P(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function gr(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _r(e,t){for(let n in t){let r=t[n],i=e[n];if(Dt(r)){if(!Dt(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function vr(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var yr=(e,t,n)=>e??t??n,br=o({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=de(It),i=j(()=>e.route||r.value),a=de(Nt,0),o=j(()=>{let e=R(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=j(()=>i.value.matched[o.value]);T(Nt,j(()=>o.value+1)),T(Mt,s),T(It,i);let c=N();return A(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&mn(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return xr(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=P(l,V({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return xr(n.default,{Component:f,route:r})||f}}});function xr(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Sr=br;function Cr(e){let t=ir(e.routes,e),n=e.parseQuery||Mn,r=e.stringifyQuery||Nn,i=e.history,a=Fn(),o=Fn(),c=Fn(),l=le(yn),u=le(0),d=yn;zt&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=Tt.bind(null,e=>``+e),p=Tt.bind(null,on),m=Tt.bind(null,sn);function h(e,n){let r,i;jn(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return u.value++,()=>{a(),u.value++}}function g(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),u.value++)}function _(){t.clearRoutes(),u.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,a){if(u.value,typeof e==`string`){a||=e.startsWith(`/`)?yn:l.value;let r=un(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return V(r,o,{params:m(o.params),redirectedFrom:void 0,href:s})}a=V({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?yn:l.value));let o;if(e.path!=null)o=V({},e,{path:un(n,e.path,a.path).path});else{let t=V({},e.params);for(let e in t)t[e]??delete t[e];o=V({},e,{params:p(t)}),a.params=p(a.params)}let s=t.resolve(o,a),c=e.hash||``;s.params=f(m(s.params));let d=dn(r,V({},e,{hash:tn(c),path:s.path})),h=i.createHref(d);return V({fullPath:d,hash:c,query:r===Nn?Pn(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function x(e){return typeof e==`string`?un(n,e,l.value.path):V({},e)}function S(e,t){if(d!==e)return At(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(V(x(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),V({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=d=b(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,i);if(c)return E(V(x(c),{state:typeof c==`object`?V({},a,c.state):a,force:o,replace:s}),t||n);let u=n;u.redirectedFrom=t;let f;return!o&&pn(r,i,n)&&(f=At(16,{to:u,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):k(u,i)).catch(e=>jt(e)?jt(e,2)?e:oe(e):ie(e,u,i)).then(e=>{if(e){if(jt(e,2))return E(V({replace:s},x(e.to),{state:typeof e.to==`object`?V({},a,e.to.state):a,force:o}),t||u)}else e=j(u,i,!0,s,a);return A(u,i,e),e})}function D(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){let t=ue.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function k(e,t){let n,[r,i,s]=Rn(e,t);n=Ln(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(In(r,e,t))});let c=D.bind(null,e,t);return n.push(c),P(n).then(()=>{n=[];for(let r of a.list())n.push(In(r,e,t));return n.push(c),P(n)}).then(()=>{n=Ln(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(In(r,e,t))});return n.push(c),P(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(Dt(r.beforeEnter))for(let i of r.beforeEnter)n.push(In(i,e,t));else n.push(In(r.beforeEnter,e,t))}return n.push(c),P(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ln(s,`beforeRouteEnter`,e,t,O),n.push(c),P(n))).then(()=>{n=[];for(let r of o.list())n.push(In(r,e,t));return n.push(c),P(n)}).catch(e=>jt(e,8)?e:Promise.reject(e))}function A(e,t,n){c.list().forEach(r=>O(()=>r(e,t,n)))}function j(e,t,n,r,a){let o=S(e,t);if(o)return o;let s=t===yn,c=zt?history.state:{};n&&(r||s?i.replace(e.fullPath,V({scroll:s&&c&&c.scroll},a)):i.push(e.fullPath,a)),l.value=e,se(e,t,n,s),oe()}let ee;function te(){ee||=i.listen((e,t,n)=>{if(!de.listening)return;let r=b(e),a=T(r,de.currentRoute.value);if(a){E(V(a,{replace:!0,force:!0}),r).catch(Et);return}d=r;let o=l.value;zt&&n.delta&&On(En(o.fullPath,n.delta)),k(r,o).catch(e=>jt(e,12)?e:jt(e,2)?(E(V(x(e.to),{force:!0}),r).then(e=>{jt(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Et),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=j(r,o,!1),e&&(n.delta&&!jt(e,8)?i.go(-n.delta,!1):n.type===`pop`&&jt(e,20)&&i.go(-1,!1)),A(r,o,e)}).catch(Et)})}let ne=Fn(),M=Fn(),re;function ie(e,t,n){oe(e);let r=M.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return re&&l.value!==yn?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function oe(e){return re||(re=!e,te(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!zt||!a)return Promise.resolve();let o=!r&&kn(En(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return s().then(()=>a(t,n,o)).then(e=>t===l.value&&e&&Tn(e)).catch(e=>t===l.value&&ie(e,t,n))}let N=e=>i.go(e),ce,ue=new Set,de={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:_,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:w,go:N,back:()=>N(-1),forward:()=>N(1),beforeEach:a.add,beforeResolve:o.add,afterEach:c.add,onError:M.add,isReady:ae,install(e){e.component(`RouterLink`,hr),e.component(`RouterView`,Sr),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>R(l)}),zt&&!ce&&l.value===yn&&(ce=!0,C(i.location).catch(e=>{}));let t={};for(let e in yn)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Pt,de),e.provide(Ft,be(t)),e.provide(It,l);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(d=yn,ee&&ee(),ee=null,l.value=yn,ce=!1,re=!1),n()}}};function P(e){return e.reduce((e,t)=>e.then(()=>O(t)),Promise.resolve())}return de}var wr=[{path:`/`,name:`/`,component:()=>Ve(()=>import(`./pages-B8bo-QMt.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:`/addons`,name:`/addons`,component:()=>Ve(()=>import(`./addons-94s5y2VU.js`),__vite__mapDeps([9,1,10,11,6,7,12,5,3,8,13]),import.meta.url)},{path:`/archives`,name:`/archives`,component:()=>Ve(()=>import(`./archives-IEQAdn2M.js`),__vite__mapDeps([14,15,1,10,6,7,16,17,18,8,19,2,20,21]),import.meta.url)},{path:`/batch-edit`,name:`/batch-edit`,component:()=>Ve(()=>import(`./batch-edit-CfbL7wdW.js`),__vite__mapDeps([22,1,16,10,18,21,4,6,7,23]),import.meta.url)},{path:`/categories`,name:`/categories`,component:()=>Ve(()=>import(`./categories-BR00gUUW.js`),__vite__mapDeps([24,25,1,10,4,5,6,7,21,8]),import.meta.url)},{path:`/collections`,name:`/collections`,component:()=>Ve(()=>import(`./collections-CROWF-y4.js`),__vite__mapDeps([26,1,21]),import.meta.url)},{path:`/config`,name:`/config`,component:()=>Ve(()=>import(`./config-CH-UpDQq.js`),__vite__mapDeps([27,18,1,10,16,17,21,5,6,7]),import.meta.url)},{path:`/debug`,name:`/debug`,component:()=>Ve(()=>import(`./debug-SUSddDQr.js`),__vite__mapDeps([28,1,2,3,11,6,7,12]),import.meta.url)},{path:`/posts`,name:`/posts`,component:()=>Ve(()=>import(`./posts-DWEO30o6.js`),__vite__mapDeps([29,15,1,10,6,7,16,17,18,8,19,2,20,25,4,5,21,30]),import.meta.url)},{path:`/settings`,name:`/settings`,component:()=>Ve(()=>import(`./settings-CVUKpCc0.js`),__vite__mapDeps([31,19,1,16,10]),import.meta.url)},{path:`/tags`,name:`/tags`,component:()=>Ve(()=>import(`./tags-B5cnIpNL.js`),__vite__mapDeps([32,25,1,10,4,5,6,7,21,8]),import.meta.url)}],Tr={class:`min-w-0`},Er=o({__name:`FeedbackTip`,props:{type:{default:`info`},icon:{}},setup(e){let t=e,i={info:`bg-blue-400/10 border-blue-500/20 text-blue-700 dark:text-blue-300`,success:`bg-green-400/10 border-green-500/20 text-green-700 dark:text-green-300`,warning:`bg-amber-400/10 border-amber-500/20 text-amber-700 dark:text-amber-300`,error:`bg-red-400/10 border-red-500/20 text-red-700 dark:text-red-300`},a=j(()=>i[t.type]);return(t,i)=>(n(),L(`div`,{class:r([`text-sm p-3 border rounded-lg flex gap-2`,a.value]),role:`note`},[e.icon?(n(),L(`span`,{key:0,class:r([e.icon,`mt-0.5 shrink-0`]),"aria-hidden":`true`},null,2)):M(``,!0),I(`div`,Tr,[C(t.$slots,`default`)])],2))}}),Dr=typeof window<`u`,Or=(e,t=!1)=>t?Symbol.for(e):Symbol(e),kr=(e,t,n)=>Ar({l:e,k:t,s:n}),Ar=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),H=e=>typeof e==`number`&&isFinite(e),jr=e=>Ur(e)===`[object Date]`,Mr=e=>Ur(e)===`[object RegExp]`,Nr=e=>X(e)&&Object.keys(e).length===0,U=Object.assign,Pr=Object.create,W=(e=null)=>Pr(e),Fr,Ir=()=>Fr||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:W(),Lr=Object.prototype.hasOwnProperty;function Rr(e,t){return Lr.call(e,t)}function zr(e,t){let n=e[t];return Rr(e,t)?n:void 0}function Br(e){return Rr(Object.prototype,e)}var G=Array.isArray,K=e=>typeof e==`function`,q=e=>typeof e==`string`,J=e=>typeof e==`boolean`,Y=e=>typeof e==`object`&&!!e,Vr=e=>Y(e)&&K(e.then)&&K(e.catch),Hr=Object.prototype.toString,Ur=e=>Hr.call(e),X=e=>Ur(e)===`[object Object]`,Wr=e=>e==null?``:G(e)||X(e)&&e.toString===Hr?JSON.stringify(e,null,2):String(e);function Gr(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}function Kr(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}function qr(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function Jr(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var Yr=/^javascript:/i,Xr=/^(?:href|xlink:href|src|action|formaction)$/i,Zr=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Qr=/&(?:Tab|NewLine);/g,$r=/:?/gi,ei=/[\u0000-\u0020\u007f-\u009f]/g,ti=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,ni=/(^|[\s"'<>/])on(\w+\s*=)/gi,ri=/(?:^|[\s"'<>/])srcdoc\s*=/i,ii=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,ai=/<(?:base|animate|set|script)(?=[\s/>]|$)/i,oi=/<(base|animate|set|script)(?=[\s/>]|$)/gi,si=/(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function ci(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function li(e){let t=e.replace(Zr,ci).replace(Qr,``).replace($r,`:`).replace(ei,``);return Yr.test(t)}function ui(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l)t===l&&(l=null);else if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=li(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function di(e,t){return Xr.test(e)&&li(t)?`about:blank`:Jr(e.toLowerCase()===`style`?ui(t):t)}function fi(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${di(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${di(t,n)}'`),ti.test(e)&&(e=e.replace(ni,`$1on$2`)),ri.test(e)&&(e=e.replace(ii,`$1s$2`)),ai.test(e)&&(e=e.replace(oi,`<$1`)),e=e.replace(si,(e,t,n,r)=>li(r)?`${t}${n}about:blank`:e),e}var pi=e=>!Y(e)||G(e);function mi(e,t){if(pi(e)||pi(t)||t===Object.prototype)throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{if(r===`__proto__`)return;let i=e[r];if(G(i)){let e=[];e.length=i.length,t[r]=e,n.push({src:i,des:e})}else Y(i)?((!Y(t[r])||G(t[r]))&&(t[r]=W()),n.push({src:i,des:t[r]})):t[r]=i})}}function hi(e,t,n){return{line:e,column:t,offset:n}}function gi(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var Z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};Z.EXPECTED_TOKEN,Z.INVALID_TOKEN_IN_PLACEHOLDER,Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,Z.UNKNOWN_ESCAPE_SEQUENCE,Z.INVALID_UNICODE_ESCAPE_SEQUENCE,Z.UNBALANCED_CLOSING_BRACE,Z.UNTERMINATED_CLOSING_BRACE,Z.EMPTY_PLACEHOLDER,Z.NOT_ALLOW_NEST_PLACEHOLDER,Z.INVALID_LINKED_FORMAT,Z.MUST_HAVE_MESSAGES_IN_PLURAL,Z.UNEXPECTED_EMPTY_LINKED_MODIFIER,Z.UNEXPECTED_EMPTY_LINKED_KEY,Z.UNEXPECTED_LEXICAL_ANALYSIS,Z.UNHANDLED_CODEGEN_NODE_TYPE,Z.UNHANDLED_MINIFIER_NODE_TYPE;function _i(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function vi(e){throw e}var yi=` `,bi=`\r`,xi=`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pages-Bz8PJQ_e.js","./app-D70151fp.js","./FeedbackEmptyState-CW6pLCXv.js","./LayoutCard-CTAguKmh.js","./i18n-BBTb3XL7.js","./editor-CFkOfp5H.js","./rpc-Ad2-JgrG.js","./nanoid-Cya-tyvy.js","./colors-CdKJdJxa.js","./addons-2gXm0HIW.js","./runtime-dom.esm-bundler-DsZABnoH.js","./VDCodeBlock-C6r7SxFp.js","./VDCodeBlock-C3pmQBwJ.css","./addons-D7_qAb67.css","./archives-FXJiU-ls.js","./VDPostPanel-DSBq-mIS.js","./VDSelect-Bon_-RIK.js","./VDNumberField-92EHlKGD.js","./VDCheckbox-D9TnZbve.js","./VDToggleGroup-zSsS2PMl.js","./VDPostPanel-CFfkiijD.css","./splitpanes.esm-CUQA4hIN.js","./batch-edit-B0GMdJaE.js","./batch-edit-UNPFWmV7.css","./categories-DfyE49__.js","./VDPostListItem-BZa9NAOY.js","./collections-C3eMkgA-.js","./config-BMjzC0rx.js","./debug-B7a7gHW7.js","./posts-DENM1U8P.js","./posts-Dv5XI0j-.css","./settings-q2_T-TF-.js","./tags-DE1w7mJ6.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,B as n,Bt as r,C as i,D as a,E as o,F as s,G as c,H as l,Ht as u,I as d,J as f,K as p,L as m,M as h,N as g,O as _,P as v,Q as y,R as b,St as x,T as S,U as C,Ut as w,V as T,Vt as E,W as D,Wt as O,Y as k,Z as A,_ as j,_t as ee,a as te,at as ne,b as M,bt as re,ct as ie,d as ae,dt as oe,f as se,ft as N,g as ce,ht as le,it as ue,j as de,k as P,lt as fe,m as pe,mt as me,n as he,nt as ge,o as _e,ot as ve,p as ye,pt as be,q as xe,r as Se,rt as Ce,s as we,st as Te,t as Ee,tt as F,ut as De,v as I,vt as Oe,w as ke,x as L,xt as R,y as z,yt as B,z as Ae}from"./app-D70151fp.js";import{i as je,l as Me,n as Ne,s as Pe}from"./runtime-dom.esm-bundler-DsZABnoH.js";import{a as Fe,c as Ie,d as Le,f as Re,i as ze,l as Be,m as Ve,n as He,o as Ue,p as We,r as Ge,s as Ke,t as qe,u as Je}from"./rpc-Ad2-JgrG.js";import{a as Ye}from"./editor-CFkOfp5H.js";import{t as Xe}from"./nanoid-Cya-tyvy.js";var Ze=Object.create,Qe=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyNames,tt=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty,rt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),it=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=et(t),a=0,o=i.length,s;a<o;a++)s=i[a],!nt.call(e,s)&&s!==n&&Qe(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=$e(t,s))||r.enumerable});return e},at=(e,t,n)=>(n=e==null?{}:Ze(tt(e)),it(t||!e||!e.__esModule||!nt.call(e,`default`)?Qe(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ot=typeof window<`u`,st=Symbol(),ct=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function lt(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function ut(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){ht(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function dt(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ft(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var pt=typeof navigator==`object`?navigator:{userAgent:``},mt=/Macintosh/.test(pt.userAgent)&&/AppleWebKit/.test(pt.userAgent)&&!/Safari/.test(pt.userAgent),ht=ot?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!mt?gt:`msSaveOrOpenBlob`in pt?_t:vt:()=>{};function gt(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?ft(r):dt(r.href)?ut(e,t,n):(r.target=`_blank`,ft(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ft(r)},0))}function _t(e,t=`download`,n){if(typeof e==`string`){if(dt(e))ut(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){ft(t)})}}else navigator.msSaveOrOpenBlob(lt(e,n),t)}function vt(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return ut(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(ct.HTMLElement))||`safari`in ct,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||mt)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:yt}=Object;function bt(){let e=ne(!0),t=e.run(()=>N({})),n=[],r=[],i=ie({install(e){i._a=e,e.provide(st,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var{assign:xt}=Object,St=e=>e.startsWith(`/`);function Ct(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function wt(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Ct(e.default)}var V=Object.assign;function Tt(e,t){let n={};for(let r in t){let i=t[r];n[r]=Dt(i)?i.map(e):e(i)}return n}var Et=()=>{},Dt=Array.isArray;function Ot(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var kt=Symbol(``);function At(e,t){return V(Error(),{type:e,[kt]:!0},t)}function jt(e,t){return e instanceof Error&&kt in e&&(t==null||!!(e.type&t))}var Mt=Symbol(``),Nt=Symbol(``),Pt=Symbol(``),Ft=Symbol(``),It=Symbol(``);function Lt(){return de(Pt)}function Rt(e){return de(Ft)}var zt=typeof document<`u`,Bt=/#/g,Vt=/&/g,Ht=/\//g,Ut=/=/g,Wt=/\?/g,Gt=/\+/g,Kt=/%5B/g,qt=/%5D/g,Jt=/%5E/g,Yt=/%60/g,Xt=/%7B/g,Zt=/%7C/g,Qt=/%7D/g,$t=/%20/g;function en(e){return e==null?``:encodeURI(``+e).replace(Zt,`|`).replace(Kt,`[`).replace(qt,`]`)}function tn(e){return en(e).replace(Xt,`{`).replace(Qt,`}`).replace(Jt,`^`)}function nn(e){return en(e).replace(Gt,`%2B`).replace($t,`+`).replace(Bt,`%23`).replace(Vt,`%26`).replace(Yt,"`").replace(Xt,`{`).replace(Qt,`}`).replace(Jt,`^`)}function rn(e){return nn(e).replace(Ut,`%3D`)}function an(e){return en(e).replace(Bt,`%23`).replace(Wt,`%3F`)}function on(e){return an(e).replace(Ht,`%2F`)}function sn(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var cn=/\/$/,ln=e=>e.replace(cn,``);function un(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=vn(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:sn(o)}}function dn(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function fn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function pn(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&mn(t.matched[r],n.matched[i])&&hn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!gn(e[n],t[n]))return!1;return!0}function gn(e,t){return Dt(e)?_n(e,t):Dt(t)?_n(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function _n(e,t){return Dt(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function vn(e,t){if(St(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var yn={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function bn(e){if(!e){if(zt){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),ln(e)}var xn=/^[^#]+#/;function Sn(e,t){return e.replace(xn,`#`)+t}function Cn(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var wn=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function Tn(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Cn(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function En(e,t){return(history.state?history.state.position-t:-1)+e}var Dn=new Map;function On(e){Dn.set(e,wn())}function kn(e){let t=Dn.get(e);return Dn.delete(e),t}function An(e){return typeof e==`string`||e&&typeof e==`object`}function jn(e){return typeof e==`string`||typeof e==`symbol`}function Mn(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Gt,` `),i=r.indexOf(`=`),a=sn(i<0?r:r.slice(0,i)),o=i<0?null:sn(r.slice(i+1));if(a in t){let e=t[a];Dt(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Nn(e){let t=``;for(let n in e){let r=e[n];n=rn(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(Dt(r)?r.map(e=>e&&nn(e)):[r&&nn(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Pn(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Dt(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Fn(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function In(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(At(4,{from:n,to:t})):e instanceof Error?c(e):An(e)?c(At(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ln(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(Ct(s)){let c=(s.__vccOpts||s)[t];c&&a.push(In(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=wt(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&In(c,n,r,o,e,i)()}))}}}return a}function Rn(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>mn(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>mn(e,s))||i.push(s))}return[n,r,i]}var zn=()=>location.protocol+`//`+location.host;function Bn(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),fn(n,``)}return fn(n,e)+r+i}function Vn(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Bn(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(V({},e.state,{scroll:wn()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function Hn(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function Un(e){let{history:t,location:n}=window,r={value:Bn(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:zn()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,V({},t.state,Hn(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=V({},i.value,t.state,{forward:e,scroll:wn()});a(o.current,o,!0),a(e,V({},Hn(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Wn(e){e=bn(e);let t=Un(e),n=Vn(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=V({location:``,base:e,go:r,createHref:Sn.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Gn(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Wn(e)}var Kn={type:0,value:``},qn=/[a-zA-Z0-9_]/;function Jn(e){if(!e)return[[]];if(e===`/`)return[[Kn]];if(!St(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:qn.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Yn=`[^/]+?`,Xn={sensitive:!1,strict:!1,start:!0,end:!0},Zn=/[.+*?^${}()[\]/\\]/g;function Qn(e,t){let n=V({},Xn,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(Zn,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Yn;if(u!==Yn){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){r&&n.endsWith(`/`)||(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Dt(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Dt(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function $n(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function er(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=$n(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(tr(r))return 1;if(tr(i))return-1}return i.length-r.length}function tr(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var nr={strict:!1,end:!0,sensitive:!1};function rr(e,t,n){let r=V(Qn(Jn(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ir(e,t){let n=[],r=new Map;t=Ot(nr,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=or(e);s.aliasOf=r&&r.record;let l=Ot(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(or(V({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!St(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=rr(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!cr(d)&&o(e.name)),fr(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Et}function o(e){if(jn(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=ur(e,n);n.splice(t,0,e),e.record.name&&!cr(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw At(1,{location:e});s=i.record.name,a=V(ar(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&ar(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw At(1,{location:e,currentLocation:t});s=i.record.name,a=V({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:lr(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function ar(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function or(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:sr(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 sr(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function cr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function lr(e){return e.reduce((e,t)=>V(e,t.meta),{})}function ur(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;er(e,t[i])<0?r=i:n=i+1}let i=dr(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function dr(e){let t=e;for(;t=t.parent;)if(fr(t)&&er(e,t)===0)return t}function fr({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function pr(e){let t=de(Pt),n=de(Ft),r=j(()=>{let n=R(e.to);return t.resolve(n)}),i=j(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(mn.bind(null,i));if(o>-1)return o;let s=vr(e[t-2]);return t>1&&vr(i)===s&&a[a.length-1].path!==s?a.findIndex(mn.bind(null,e[t-2])):o}),a=j(()=>i.value>-1&&_r(n.params,r.value.params)),o=j(()=>i.value>-1&&i.value===n.matched.length-1&&hn(n.params,r.value.params));function s(n={}){if(gr(n)){let n=t[R(e.replace)?`replace`:`push`](R(e.to)).catch(Et);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function mr(e){return e.length===1?e[0]:e}var hr=o({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`},viewTransition:Boolean},useLink:pr,setup(e,{slots:t}){let n=De(pr(e)),{options:r}=de(Pt),i=j(()=>({[yr(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[yr(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&mr(t.default(n));return e.custom?r:P(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function gr(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _r(e,t){for(let n in t){let r=t[n],i=e[n];if(Dt(r)){if(!Dt(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function vr(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var yr=(e,t,n)=>e??t??n,br=o({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=de(It),i=j(()=>e.route||r.value),a=de(Nt,0),o=j(()=>{let e=R(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=j(()=>i.value.matched[o.value]);T(Nt,j(()=>o.value+1)),T(Mt,s),T(It,i);let c=N();return A(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&mn(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return xr(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=P(l,V({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return xr(n.default,{Component:f,route:r})||f}}});function xr(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Sr=br;function Cr(e){let t=ir(e.routes,e),n=e.parseQuery||Mn,r=e.stringifyQuery||Nn,i=e.history,a=Fn(),o=Fn(),c=Fn(),l=le(yn),u=le(0),d=yn;zt&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=Tt.bind(null,e=>``+e),p=Tt.bind(null,on),m=Tt.bind(null,sn);function h(e,n){let r,i;jn(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return u.value++,()=>{a(),u.value++}}function g(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),u.value++)}function _(){t.clearRoutes(),u.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,a){if(u.value,typeof e==`string`){a||=e.startsWith(`/`)?yn:l.value;let r=un(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return V(r,o,{params:m(o.params),redirectedFrom:void 0,href:s})}a=V({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?yn:l.value));let o;if(e.path!=null)o=V({},e,{path:un(n,e.path,a.path).path});else{let t=V({},e.params);for(let e in t)t[e]??delete t[e];o=V({},e,{params:p(t)}),a.params=p(a.params)}let s=t.resolve(o,a),c=e.hash||``;s.params=f(m(s.params));let d=dn(r,V({},e,{hash:tn(c),path:s.path})),h=i.createHref(d);return V({fullPath:d,hash:c,query:r===Nn?Pn(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function x(e){return typeof e==`string`?un(n,e,l.value.path):V({},e)}function S(e,t){if(d!==e)return At(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(V(x(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),V({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=d=b(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,i);if(c)return E(V(x(c),{state:typeof c==`object`?V({},a,c.state):a,force:o,replace:s}),t||n);let u=n;u.redirectedFrom=t;let f;return!o&&pn(r,i,n)&&(f=At(16,{to:u,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):k(u,i)).catch(e=>jt(e)?jt(e,2)?e:oe(e):ie(e,u,i)).then(e=>{if(e){if(jt(e,2))return E(V({replace:s},x(e.to),{state:typeof e.to==`object`?V({},a,e.to.state):a,force:o}),t||u)}else e=j(u,i,!0,s,a);return A(u,i,e),e})}function D(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){let t=ue.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function k(e,t){let n,[r,i,s]=Rn(e,t);n=Ln(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(In(r,e,t))});let c=D.bind(null,e,t);return n.push(c),P(n).then(()=>{n=[];for(let r of a.list())n.push(In(r,e,t));return n.push(c),P(n)}).then(()=>{n=Ln(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(In(r,e,t))});return n.push(c),P(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(Dt(r.beforeEnter))for(let i of r.beforeEnter)n.push(In(i,e,t));else n.push(In(r.beforeEnter,e,t))}return n.push(c),P(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ln(s,`beforeRouteEnter`,e,t,O),n.push(c),P(n))).then(()=>{n=[];for(let r of o.list())n.push(In(r,e,t));return n.push(c),P(n)}).catch(e=>jt(e,8)?e:Promise.reject(e))}function A(e,t,n){c.list().forEach(r=>O(()=>r(e,t,n)))}function j(e,t,n,r,a){let o=S(e,t);if(o)return o;let s=t===yn,c=zt?history.state:{};n&&(r||s?i.replace(e.fullPath,V({scroll:s&&c&&c.scroll},a)):i.push(e.fullPath,a)),l.value=e,se(e,t,n,s),oe()}let ee;function te(){ee||=i.listen((e,t,n)=>{if(!de.listening)return;let r=b(e),a=T(r,de.currentRoute.value);if(a){E(V(a,{replace:!0,force:!0}),r).catch(Et);return}d=r;let o=l.value;zt&&n.delta&&On(En(o.fullPath,n.delta)),k(r,o).catch(e=>jt(e,12)?e:jt(e,2)?(E(V(x(e.to),{force:!0}),r).then(e=>{jt(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Et),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=j(r,o,!1),e&&(n.delta&&!jt(e,8)?i.go(-n.delta,!1):n.type===`pop`&&jt(e,20)&&i.go(-1,!1)),A(r,o,e)}).catch(Et)})}let ne=Fn(),M=Fn(),re;function ie(e,t,n){oe(e);let r=M.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ae(){return re&&l.value!==yn?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function oe(e){return re||(re=!e,te(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!zt||!a)return Promise.resolve();let o=!r&&kn(En(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return s().then(()=>a(t,n,o)).then(e=>t===l.value&&e&&Tn(e)).catch(e=>t===l.value&&ie(e,t,n))}let N=e=>i.go(e),ce,ue=new Set,de={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:_,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:w,go:N,back:()=>N(-1),forward:()=>N(1),beforeEach:a.add,beforeResolve:o.add,afterEach:c.add,onError:M.add,isReady:ae,install(e){e.component(`RouterLink`,hr),e.component(`RouterView`,Sr),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>R(l)}),zt&&!ce&&l.value===yn&&(ce=!0,C(i.location).catch(e=>{}));let t={};for(let e in yn)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Pt,de),e.provide(Ft,be(t)),e.provide(It,l);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(d=yn,ee&&ee(),ee=null,l.value=yn,ce=!1,re=!1),n()}}};function P(e){return e.reduce((e,t)=>e.then(()=>O(t)),Promise.resolve())}return de}var wr=[{path:`/`,name:`/`,component:()=>Ve(()=>import(`./pages-Bz8PJQ_e.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:`/addons`,name:`/addons`,component:()=>Ve(()=>import(`./addons-2gXm0HIW.js`),__vite__mapDeps([9,1,10,11,6,7,12,5,3,8,13]),import.meta.url)},{path:`/archives`,name:`/archives`,component:()=>Ve(()=>import(`./archives-FXJiU-ls.js`),__vite__mapDeps([14,15,1,10,6,7,16,17,18,8,19,2,20,21]),import.meta.url)},{path:`/batch-edit`,name:`/batch-edit`,component:()=>Ve(()=>import(`./batch-edit-B0GMdJaE.js`),__vite__mapDeps([22,1,16,10,18,21,4,6,7,23]),import.meta.url)},{path:`/categories`,name:`/categories`,component:()=>Ve(()=>import(`./categories-DfyE49__.js`),__vite__mapDeps([24,25,1,10,4,5,6,7,21,8]),import.meta.url)},{path:`/collections`,name:`/collections`,component:()=>Ve(()=>import(`./collections-C3eMkgA-.js`),__vite__mapDeps([26,1,21]),import.meta.url)},{path:`/config`,name:`/config`,component:()=>Ve(()=>import(`./config-BMjzC0rx.js`),__vite__mapDeps([27,18,1,10,16,17,21,5,6,7]),import.meta.url)},{path:`/debug`,name:`/debug`,component:()=>Ve(()=>import(`./debug-B7a7gHW7.js`),__vite__mapDeps([28,1,2,3,11,6,7,12]),import.meta.url)},{path:`/posts`,name:`/posts`,component:()=>Ve(()=>import(`./posts-DENM1U8P.js`),__vite__mapDeps([29,15,1,10,6,7,16,17,18,8,19,2,20,25,4,5,21,30]),import.meta.url)},{path:`/settings`,name:`/settings`,component:()=>Ve(()=>import(`./settings-q2_T-TF-.js`),__vite__mapDeps([31,19,1,16,10]),import.meta.url)},{path:`/tags`,name:`/tags`,component:()=>Ve(()=>import(`./tags-DE1w7mJ6.js`),__vite__mapDeps([32,25,1,10,4,5,6,7,21,8]),import.meta.url)}],Tr={class:`min-w-0`},Er=o({__name:`FeedbackTip`,props:{type:{default:`info`},icon:{}},setup(e){let t=e,i={info:`bg-blue-400/10 border-blue-500/20 text-blue-700 dark:text-blue-300`,success:`bg-green-400/10 border-green-500/20 text-green-700 dark:text-green-300`,warning:`bg-amber-400/10 border-amber-500/20 text-amber-700 dark:text-amber-300`,error:`bg-red-400/10 border-red-500/20 text-red-700 dark:text-red-300`},a=j(()=>i[t.type]);return(t,i)=>(n(),L(`div`,{class:r([`text-sm p-3 border rounded-lg flex gap-2`,a.value]),role:`note`},[e.icon?(n(),L(`span`,{key:0,class:r([e.icon,`mt-0.5 shrink-0`]),"aria-hidden":`true`},null,2)):M(``,!0),I(`div`,Tr,[C(t.$slots,`default`)])],2))}}),Dr=typeof window<`u`,Or=(e,t=!1)=>t?Symbol.for(e):Symbol(e),kr=(e,t,n)=>Ar({l:e,k:t,s:n}),Ar=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),H=e=>typeof e==`number`&&isFinite(e),jr=e=>Ur(e)===`[object Date]`,Mr=e=>Ur(e)===`[object RegExp]`,Nr=e=>X(e)&&Object.keys(e).length===0,U=Object.assign,Pr=Object.create,W=(e=null)=>Pr(e),Fr,Ir=()=>Fr||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:W(),Lr=Object.prototype.hasOwnProperty;function Rr(e,t){return Lr.call(e,t)}function zr(e,t){let n=e[t];return Rr(e,t)?n:void 0}function Br(e){return Rr(Object.prototype,e)}var G=Array.isArray,K=e=>typeof e==`function`,q=e=>typeof e==`string`,J=e=>typeof e==`boolean`,Y=e=>typeof e==`object`&&!!e,Vr=e=>Y(e)&&K(e.then)&&K(e.catch),Hr=Object.prototype.toString,Ur=e=>Hr.call(e),X=e=>Ur(e)===`[object Object]`,Wr=e=>e==null?``:G(e)||X(e)&&e.toString===Hr?JSON.stringify(e,null,2):String(e);function Gr(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}function Kr(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}function qr(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function Jr(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var Yr=/^javascript:/i,Xr=/^(?:href|xlink:href|src|action|formaction)$/i,Zr=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Qr=/&(?:Tab|NewLine);/g,$r=/:?/gi,ei=/[\u0000-\u0020\u007f-\u009f]/g,ti=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,ni=/(^|[\s"'<>/])on(\w+\s*=)/gi,ri=/(?:^|[\s"'<>/])srcdoc\s*=/i,ii=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,ai=/<(?:base|animate|set|script)(?=[\s/>]|$)/i,oi=/<(base|animate|set|script)(?=[\s/>]|$)/gi,si=/(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function ci(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function li(e){let t=e.replace(Zr,ci).replace(Qr,``).replace($r,`:`).replace(ei,``);return Yr.test(t)}function ui(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l)t===l&&(l=null);else if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=li(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function di(e,t){return Xr.test(e)&&li(t)?`about:blank`:Jr(e.toLowerCase()===`style`?ui(t):t)}function fi(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${di(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${di(t,n)}'`),ti.test(e)&&(e=e.replace(ni,`$1on$2`)),ri.test(e)&&(e=e.replace(ii,`$1s$2`)),ai.test(e)&&(e=e.replace(oi,`<$1`)),e=e.replace(si,(e,t,n,r)=>li(r)?`${t}${n}about:blank`:e),e}var pi=e=>!Y(e)||G(e);function mi(e,t){if(pi(e)||pi(t)||t===Object.prototype)throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{if(r===`__proto__`)return;let i=e[r];if(G(i)){let e=[];e.length=i.length,t[r]=e,n.push({src:i,des:e})}else Y(i)?((!Y(t[r])||G(t[r]))&&(t[r]=W()),n.push({src:i,des:t[r]})):t[r]=i})}}function hi(e,t,n){return{line:e,column:t,offset:n}}function gi(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var Z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};Z.EXPECTED_TOKEN,Z.INVALID_TOKEN_IN_PLACEHOLDER,Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,Z.UNKNOWN_ESCAPE_SEQUENCE,Z.INVALID_UNICODE_ESCAPE_SEQUENCE,Z.UNBALANCED_CLOSING_BRACE,Z.UNTERMINATED_CLOSING_BRACE,Z.EMPTY_PLACEHOLDER,Z.NOT_ALLOW_NEST_PLACEHOLDER,Z.INVALID_LINKED_FORMAT,Z.MUST_HAVE_MESSAGES_IN_PLURAL,Z.UNEXPECTED_EMPTY_LINKED_MODIFIER,Z.UNEXPECTED_EMPTY_LINKED_KEY,Z.UNEXPECTED_LEXICAL_ANALYSIS,Z.UNHANDLED_CODEGEN_NODE_TYPE,Z.UNHANDLED_MINIFIER_NODE_TYPE;function _i(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function vi(e){throw e}var yi=` `,bi=`\r`,xi=`
|
|
3
3
|
`,Si=`\u2028`,Ci=`\u2029`;function wi(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===bi&&t[e+1]===xi,s=e=>t[e]===xi,c=e=>t[e]===Ci,l=e=>t[e]===Si,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?xi:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var Ti=void 0,Ei=`'`,Di=`tokenizer`;function Oi(e,t={}){let n=t.location!==!1,r=wi(e),i=()=>r.index(),a=()=>hi(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=_i(e,n?gi(a.startLoc,t):null,{domain:Di,args:i});u(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=gi(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(Z.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===yi||e.currentPeek()===xi;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===Ti)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===Ti)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===Ei;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(n!==7&&n!==11)return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===yi||!t?!1:t===xi?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?r!==yi&&r!==xi:i===yi?(e.peek(),n(!0,yi)):i!==xi||(e.peek(),n(!0,xi))},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();if(n!==Ti)return t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function A(e){return O(e,k)}function j(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ee(e){return O(e,j)}function te(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ne(e){return O(e,te)}function M(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function re(e){return O(e,M)}function ie(e){let t=``,n=``;for(;t=ne(e);)n+=t;return n}function ae(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===yi||n===xi){if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next()}else t+=n,e.next()}return t}function oe(e){g(e);let t=``,n=``;for(;t=ee(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==Ti&&r!==yi&&r!==xi&&r!==` `){let t=P(e);return d(Z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===Ti&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n}function se(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${ie(e)}`):t+=ie(e),e.currentChar()===Ti&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),t}function N(e){return e!==Ei&&e!==xi}function ce(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,N);)n+=t===`\\`?le(e):t;let r=e.currentChar();return r===xi||r===Ti?(d(Z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===xi&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function le(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return ue(e,t,4);case`U`:return ue(e,t,6);default:return d(Z.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function ue(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=re(e);if(!n){d(Z.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function de(e){return e!==`{`&&e!==`}`&&e!==yi&&e!==xi}function P(e){g(e);let t=``,n=``;for(;t=O(e,de);)n+=t;return n}function fe(e){let t=``,n=``;for(;t=A(e);)n+=t;return n}function pe(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===yi?n:(n+=r,e.next(),t(n))};return t(``)}function me(e){g(e);let t=m(e,`|`);return g(e),t}function he(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(Z.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(Z.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n=ge(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(Z.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,_e(e,t);if(r=y(e,t))return n=f(t,4,oe(e)),g(e),n;if(i=b(e,t))return n=f(t,5,se(e)),g(e),n;if(o=x(e,t))return n=f(t,6,ce(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,P(e)),d(Z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function ge(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch(n!==7&&n!==8&&n!==11&&n!==9||i!==xi&&i!==yi||d(Z.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),ge(e,t)):C(e,t)?(g(e),f(t,11,fe(e))):T(e,t)?(g(e),i===`{`?he(e,t)||r:f(t,10,pe(e))):(n===7&&d(Z.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,_e(e,t))}}function _e(e,t){let n={type:13};if(t.braceNest>0)return he(e,t)||p(t);if(t.inLinked)return ge(e,t)||p(t);switch(e.currentChar()){case`{`:return he(e,t)||p(t);case`}`:return d(Z.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return ge(e,t)||p(t);default:if(E(e))return n=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,ae(e))}return n}function ve(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===Ti?f(c,13):_e(r,c)}return{nextToken:ve,currentOffset:i,currentPosition:a,context:l}}var ki=`parser`,Ai=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,ji=/\\([\\@{}|])/g;function Mi(e,t){return t}function Ni(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function Pi(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=_i(r,t?gi(i,s):null,{domain:ki,args:o});n(e)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(ji,Mi),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(Ai,Ni),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,Fi(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,Z.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(o)),n.key=l(e,o.value||``);break;default:{r(e,Z.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,Z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Fi(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,Z.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=Oi(n,U({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,Z.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function Fi(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function Ii(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function Li(e,t){for(let n=0;n<e.length;n++)Ri(e[n],t)}function Ri(e,t){switch(e.type){case 1:Li(e.cases,t),t.helper(`plural`);break;case 2:Li(e.items,t);break;case 6:Ri(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`)}}function zi(e,t={}){let n=Ii(e);n.helper(`normalize`),e.body&&Ri(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function Bi(e){let t=e.body;return t.type===2?Vi(t):t.cases.forEach(e=>Vi(e)),e}function Vi(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(r.type!==3&&r.type!==9||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Gr(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function Hi(e){switch(e.t=e.type,e.type){case 0:{let t=e;Hi(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)Hi(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)Hi(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;Hi(t.key),t.k=t.key,delete t.key,t.modifier&&(Hi(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}}delete e.type}function Ui(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function Wi(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),Ji(e,t.key),t.modifier?(e.push(`, `),Ji(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function Gi(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(Ji(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function Ki(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(Ji(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function qi(e,t){t.body?Ji(e,t.body):e.push(`null`)}function Ji(e,t){let{helper:n}=e;switch(t.type){case 0:qi(e,t);break;case 1:Ki(e,t);break;case 2:Gi(e,t);break;case 6:Wi(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t)}}var Yi=(e,t={})=>{let n=q(t.mode)?t.mode:`normal`,r=q(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:`
|
|
4
4
|
`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=Ui(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${Gr(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),Ji(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function Xi(e,t={}){let n=U({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null||n.optimize,o=Pi(n).parse(e);return r?(a&&Bi(o),i&&Hi(o),{ast:o,code:``}):(zi(o,n),Yi(o,n))}function Zi(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(Ir().__INTLIFY_PROD_DEVTOOLS__=!1)}function Qi(e){return Y(e)&&ca(e)===0&&(Rr(e,`b`)||Rr(e,`body`))}var $i=[`b`,`body`];function ea(e){return ha(e,$i)}var ta=[`c`,`cases`];function na(e){return ha(e,ta,[])}var ra=[`s`,`static`];function ia(e){return ha(e,ra)}var aa=[`i`,`items`];function oa(e){return ha(e,aa,[])}var sa=[`t`,`type`];function ca(e){return ha(e,sa)}var la=[`v`,`value`];function ua(e,t){let n=ha(e,la);if(n!=null)return n;throw _a(t)}var da=[`m`,`modifier`];function fa(e){return ha(e,da)}var pa=[`k`,`key`];function ma(e){let t=ha(e,pa);if(t)return t;throw _a(6)}function ha(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(Rr(e,r)&&e[r]!=null)return e[r]}return n}var ga=[...$i,...ta,...ra,...aa,...pa,...da,...la,...sa];function _a(e){return Error(`unhandled node type: ${e}`)}function va(e){return t=>ya(t,e)}function ya(e,t){let n=ea(t);if(n==null)throw _a(0);if(ca(n)===1){let t=na(n);return e.plural(t.reduce((t,n)=>[...t,ba(e,n)],[]))}return ba(e,n)}function ba(e,t){let n=ia(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=oa(t).reduce((t,n)=>[...t,xa(e,n)],[]);return e.normalize(n)}}function xa(e,t){let n=ca(t);switch(n){case 3:return ua(t,n);case 9:return ua(t,n);case 4:{let r=t;if(Rr(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(Rr(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw _a(n)}case 5:{let r=t;if(Rr(r,`i`)&&H(r.i))return e.interpolate(e.list(r.i));if(Rr(r,`index`)&&H(r.index))return e.interpolate(e.list(r.index));throw _a(n)}case 6:{let n=t,r=fa(n),i=ma(n);return e.linked(xa(e,i),r?xa(e,r):void 0,e.type)}case 7:return ua(t,n);case 8:return ua(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Sa=e=>e,Ca=W();function wa(e,t={}){let n=!1,r=t.onError||vi;return t.onError=e=>{n=!0,r(e)},{...Xi(e,t),detectError:n}}function Ta(e,t){if(q(e)){J(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||Sa)(e),r=Ca[n];if(r)return r;let{ast:i,detectError:a}=wa(e,{...t,location:!1,jit:!0}),o=va(i);return a?o:Ca[n]=o}{if(!Qi(e))return(()=>e);let t=e.cacheKey;return t?Ca[t]||(Ca[t]=va(e)):va(e)}}var Ea=null;function Da(e){Ea=e}function Oa(e,t,n){Ea&&Ea.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var ka=Aa(`function:translate`);function Aa(e){return t=>Ea&&Ea.emit(e,t)}var ja={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Ma(e){return _i(e,null,void 0)}ja.INVALID_ARGUMENT,ja.INVALID_DATE_ARGUMENT,ja.INVALID_ISO_DATE_ARGUMENT,ja.NOT_SUPPORT_NON_STRING_MESSAGE,ja.NOT_SUPPORT_LOCALE_PROMISE_VALUE,ja.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,ja.NOT_SUPPORT_LOCALE_TYPE;function Na(e,t){return t.locale==null?Fa(e.locale):Fa(t.locale)}var Pa;function Fa(e){if(q(e))return e;if(K(e)){if(e.resolvedOnce&&Pa!=null)return Pa;if(e.constructor.name===`Function`){let t=e();if(Vr(t))throw Ma(ja.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Pa=t}throw Ma(ja.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Ma(ja.NOT_SUPPORT_LOCALE_TYPE)}function Ia(e,t,n){return[...new Set([n,...G(t)?t:Y(t)?Object.keys(t).filter(e=>e!=="default"):q(t)?[t]:[n]])]}function La(e,t,n){let r=q(n)?n:$a,i=e,a;Y(t)?(i.__localeChainObjectCache||=new WeakMap,a=i.__localeChainObjectCache.get(t),a||(a=new Map,i.__localeChainObjectCache.set(t,a))):(i.__localeChainCache||=new Map,a=i.__localeChainCache.get(t),a||(a=new Map,i.__localeChainCache.set(t,a)));let o=a.get(r);if(o)return o;let s=[],c=[n];for(;G(c);)c=Ra(s,c,t);let l=G(t)||!X(t)?t:t.default?t.default:null;return c=q(l)?[l]:l,G(c)&&Ra(s,c,!1),a.set(r,s),s}function Ra(e,t,n){let r=!0;for(let i=0;i<t.length&&J(r);i++){let a=t[i];q(a)&&(r=za(e,t[i],n))}return r}function za(e,t,n){let r,i=t.split(`-`);do r=Ba(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Ba(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(G(n)||X(n))&&n[i]&&(r=n[i])}return r}var Va=[];Va[0]={w:[0],i:[3,0],"[":[4],o:[7]},Va[1]={w:[1],".":[2],"[":[4],o:[7]},Va[2]={w:[2],i:[3,0],0:[3,0]},Va[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Va[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Va[5]={"'":[4,0],o:8,l:[5,0]},Va[6]={'"':[4,0],o:8,l:[6,0]};var Ha=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ua(e){return Ha.test(e)}function Wa(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function Ga(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function Ka(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:Ua(t)?Wa(t):`*`+t}function qa(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=Ka(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=Ga(a),d=Va[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var Ja=new Map;function Ya(e,t){return Y(e)?zr(e,t):null}function Xa(e,t){if(!Y(e))return null;let n=Ja.get(t);if(n||(n=qa(t),n&&Ja.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(ga.includes(e)&&Qi(i)||!Y(i)||!Rr(i,e))return null;let t=i[e];if(t===void 0||K(i))return null;i=t,a++}return i}var Za={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};Za.NOT_FOUND_KEY,Za.FALLBACK_TO_TRANSLATE,Za.CANNOT_FORMAT_NUMBER,Za.FALLBACK_TO_NUMBER_FORMAT,Za.CANNOT_FORMAT_DATE,Za.FALLBACK_TO_DATE_FORMAT,Za.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,Za.INVALID_NUMBER_ARGUMENT,Za.INVALID_DATE_ARGUMENT;var Qa=`11.4.18`,$a=`en-US`,eo=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function to(){return{upper:(e,t)=>t===`text`&&q(e)?e.toUpperCase():t===`vnode`&&Y(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&q(e)?e.toLowerCase():t===`vnode`&&Y(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&q(e)?eo(e):t===`vnode`&&Y(e)&&`__v_isVNode`in e?eo(e.children):e}}var no;function ro(e){no=e}var io;function ao(e){io=e}var oo;function so(e){oo=e}var co=null,lo=()=>co,uo=null,fo=e=>{uo=e},po=()=>uo,mo=0;function ho(e={}){let t=K(e.onWarn)?e.onWarn:Kr,n=q(e.version)?e.version:Qa,r=q(e.locale)||K(e.locale)?e.locale:$a,i=K(r)?$a:r,a=G(e.fallbackLocale)||X(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=X(e.messages)?e.messages:go(i),s=X(e.datetimeFormats)?e.datetimeFormats:go(i),c=X(e.numberFormats)?e.numberFormats:go(i),l=U(W(),e.modifiers,to()),u=e.pluralRules||W(),d=K(e.missing)?e.missing:null,f=J(e.missingWarn)||Mr(e.missingWarn)?e.missingWarn:!0,p=J(e.fallbackWarn)||Mr(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=K(e.postTranslation)?e.postTranslation:null,_=X(e.processor)?e.processor:null,v=!J(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,b=K(e.messageCompiler)?e.messageCompiler:no,x=K(e.messageResolver)?e.messageResolver:io||Ya,S=K(e.localeFallbacker)?e.localeFallbacker:oo||Ia,C=Y(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=Y(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=Y(w.__numberFormatters)?w.__numberFormatters:new Map,D=Y(w.__meta)?w.__meta:{};mo++;let O={version:n,cid:mo,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,__INTLIFY_PROD_DEVTOOLS__&&Oa(O,n,D),O}var go=e=>({[e]:W()});function _o(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return q(r)?r:t}return t}function vo(e,t){let n=e;Y(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function yo(e,t,n){vo(e,n),e.fallbackContext&&vo(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function bo(e,t){return e!==t&&e.split(`-`)[0]===t.split(`-`)[0]}function xo(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(bo(e,t[r]))return!0;return!1}function So(e,t,n,r,i,a,o){let{fallbackLocale:s,localeFallbacker:c,onWarn:l}=e,u=c(e,s,n);for(let n=0;n<u.length;n++){let a=u[n];if(X(zr(zr(r,a)||{},t))&&q(a))return a;_o(e,t,a,i,o)}return null}function Co(e,t,n){let r=`${e}__${t}`;return X(n)&&!Nr(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function wo(e,t,n){for(let r in n){let n=`${t}__${r}`;for(let t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function To(e,t,n,r){let[,i,a,o]=e,s=n;return q(i)?t.key=i:X(i)&&Object.keys(i).forEach(e=>{r.includes(e)?s[e]=i[e]:t[e]=i[e]}),q(a)?t.locale=a:X(a)&&(s=a),X(o)&&(s=o),s}var Eo=typeof Intl<`u`;Eo&&Intl.DateTimeFormat,Eo&&Intl.NumberFormat;function Do(e,...t){let{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!q(t[0])&&!jr(t[0])&&!H(t[0]))return``;let[o,s,c,l]=ko(...t),u=J(c.missingWarn)?c.missingWarn:e.missingWarn,d=J(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Na(e,c);if(!q(o)||o===``){let e=new Intl.DateTimeFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=So(e,o,p,n,u,d,`datetime format`);if(!q(m))return r?-1:o;let h=n[m][o],g=Co(m,o,l),_=a.get(g);return _||(_=new Intl.DateTimeFormat(m,U({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var Oo=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function ko(...e){let[t]=e,n=W(),r=W(),i;if(q(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Ma(ja.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(n);try{i.toISOString()}catch{throw Ma(ja.INVALID_ISO_DATE_ARGUMENT)}}else if(jr(t)){if(isNaN(t.getTime()))throw Ma(ja.INVALID_DATE_ARGUMENT);i=t}else if(H(t))i=t;else throw Ma(ja.INVALID_ARGUMENT);let a=To(e,n,r,Oo);return[n.key||``,i,n,a]}function Ao(e,t,n){wo(e.__datetimeFormatters,t,n)}function jo(e,...t){let{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!H(t[0]))return``;let[o,s,c,l]=No(...t),u=J(c.missingWarn)?c.missingWarn:e.missingWarn,d=J(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Na(e,c);if(!q(o)||o===``){let e=new Intl.NumberFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=So(e,o,p,n,u,d,`number format`);if(!q(m))return r?-1:o;let h=n[m][o],g=Co(m,o,l),_=a.get(g);return _||(_=new Intl.NumberFormat(m,U({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var Mo=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function No(...e){let[t]=e,n=W(),r=W();if(!H(t))throw Ma(ja.INVALID_ARGUMENT);let i=t,a=To(e,n,r,Mo);return[n.key||``,i,n,a]}function Po(e,t,n){wo(e.__numberFormatters,t,n)}var Fo=e=>e,Io=e=>``,Lo=`text`,Ro=e=>e.length===0?``:Gr(e),zo=Wr;function Bo(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function Vo(e){let t=H(e.pluralIndex)?e.pluralIndex:-1;return H(e.named?.count)?e.named.count:H(e.named?.n)?e.named.n:t}function Ho(e={}){let t=e.locale,n=Vo(e),r=q(t)&&e.pluralRules&&K(zr(e.pluralRules,t))?e.pluralRules[t]:Bo,i=r===Bo?void 0:Bo,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||W(),l=H(e.pluralIndex),u=t=>{let n=Br(t)?zr(c,t):c[t];return l&&!n&&(t===`count`||t===`n`)?e.pluralIndex:n};function d(t,n){return(K(e.messages)?e.messages(t,!!n):Y(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Io)}let f=t=>e.modifiers?zr(e.modifiers,t):Fo,p=K(e.processor?.normalize)?e.processor.normalize:Ro,m=K(e.processor?.interpolate)?e.processor.interpolate:zo,h={list:s,named:u,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?Y(n)?(a=n.modifier||a,i=n.type||i):q(n)&&(a=n||a):t.length===2&&(q(n)&&(a=n||a),q(r)&&(i=r||i));let o=d(e,!0)(h),s=o===``||o===void 0?e:o,c=i===`vnode`&&G(s)&&a?s[0]:s;if(!a)return c;let l=f(a);return K(l)?l(c,i):c},message:d,type:q(e.processor?.type)?e.processor.type:Lo,interpolate:m,normalize:p,values:U(W(),o,c,l?{count:u(`count`),n:u(`n`)}:{})};return h}var Uo=()=>``,Wo=e=>K(e),Go=e=>q(e)||Qi(e)||Wo(e);function Ko(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=Zo(...t),u=J(l.missingWarn)?l.missingWarn:e.missingWarn,d=J(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=J(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=q(l.default)||J(l.default)?J(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(q(m)||K(m)),g=Na(e,l);f&&qo(l);let[_,v,y]=p?[c,g,zr(s,g)||W()]:Jo(e,c,g,o,d,u),b=_,x=c;if(!p&&!Go(b)&&h&&(b=m,x=b),!p&&(!Go(b)||!q(v)))return i?-1:c;let S=!1,C=Wo(b)?b:Yo(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=Xo(e,C,Ho($o(e,v,y,l))),T=r?r(w,c):w;if(f&&q(T)&&(T=fi(T)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:q(c)?c:Wo(b)?b.key:``,locale:v||(Wo(b)?b.locale:``),format:q(b)?b:Wo(b)?b.source:``,message:T};t.meta=U({},e.__meta,lo()||{}),ka(t)}return T}function qo(e){if(G(e.list)&&(e.list=e.list.map(e=>q(e)?qr(e):e)),Y(e.named)){let t=e.named,n=W();for(let e of Object.keys(t)){let r=t[e];n[e]=q(r)?qr(r):r}e.named=n}}function Jo(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=W(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=zr(o,f)||W(),(p=c(d,t))===null&&(p=zr(d,t)),!Go(p));n++)if(!xo(f,u)){let n=_o(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function Yo(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Wo(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,Qo(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function Xo(e,t,n){return t(n)}function Zo(...e){let[t,n,r]=e,i=W();if(!q(t)&&!H(t)&&!Wo(t)&&!Qi(t))throw Ma(ja.INVALID_ARGUMENT);let a=H(t)?String(t):(Wo(t),t);return H(n)?i.plural=n:q(n)?i.default=n:X(n)&&!Nr(n)?i.named=n:G(n)&&(i.list=n),H(r)?i.plural=r:q(r)?i.default=r:X(r)&&U(i,r),[a,i]}function Qo(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>kr(t,n,e)}}function $o(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=Jo(u||e,r,t,s,c,l);a=n??o(i,r)}if(q(a)||Qi(a)){let n=!1,i=Yo(e,r,t,a,r,()=>{n=!0});return n?Uo:i}return Wo(a)?a:Uo}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),H(r.plural)&&(d.pluralIndex=r.plural),d}Zi();var es=`11.4.18`;function ts(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(Ir().__INTLIFY_PROD_DEVTOOLS__=!1)}var Q={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ns(e,...t){return _i(e,null,void 0)}Q.UNEXPECTED_RETURN_TYPE,Q.INVALID_ARGUMENT,Q.MUST_BE_CALL_SETUP_TOP,Q.NOT_INSTALLED,Q.UNEXPECTED_ERROR,Q.REQUIRED_VALUE,Q.INVALID_VALUE,Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Q.NOT_INSTALLED_WITH_PROVIDE,Q.NOT_COMPATIBLE_LEGACY_VUE_I18N,Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var rs=Or(`__translateVNode`),is=Or(`__datetimeParts`),as=Or(`__numberParts`),os=Or(`__setPluralRules`);Or(`__intlifyMeta`);var ss=Or(`__injectWithOption`),cs=Or(`__dispose`),ls={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15,IGNORE_UNSAFE_LOCALE:16};ls.FALLBACK_TO_ROOT,ls.NOT_FOUND_PARENT_SCOPE,ls.IGNORE_OBJ_FLATTEN,ls.DEPRECATE_LEGACY_MODE,ls.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,ls.DUPLICATE_USE_I18N_CALLING,ls.IGNORE_UNSAFE_LOCALE;var us=null;{let e=Ir().__VUE_INSTANCE_SETTERS__;G(e)&&e.push(e=>{us=e})}function ds(e){return!!Br(e)}function fs(e){if(!Y(e)||Qi(e))return e;for(let t in e)if(Rr(e,t)){if(!t.includes(`.`))Y(e[t])&&fs(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=W()),!Y(i[n[e]])||Qi(i[n[e]])&&(ga.includes(n[e+1])||n[e+1]===`cacheKey`)){a=!0;break}i=i[n[e]]}a||(i[n[r]]=e[t],delete e[t]);let o=i[n[r]];Y(o)&&fs(o)}}return e}function ps(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=X(n)?n:G(r)?W():{[e]:W()};if(G(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;if(t){if(ds(t))return;o[t]=zr(o,t)||W(),mi(n,o[t])}else mi(n,o)}else q(e)&&mi(JSON.parse(e),o)}),i==null&&a)for(let e in o)Rr(o,e)&&fs(o[e]);return o}function ms(e){return e.type}function hs(e,t,n){let r=Y(t.messages)?t.messages:W();`__i18nGlobal`in n&&(r=ps(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),Y(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(Y(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function gs(e){return S(pe,null,e,0)}function _s(){return us??a()}var vs=()=>[],ys=()=>!1,bs=0;function xs(e){return((t,n,r,i)=>e(n,r,_s()||void 0,i))}function Ss(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=Dr?N:le,o=!J(e.inheritLocale)||e.inheritLocale,s=a(t&&o?t.locale.value:q(e.locale)?e.locale:$a),c=a(t&&o?t.fallbackLocale.value:q(e.fallbackLocale)||G(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(ps(s.value,e)),u=a(X(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(X(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:J(e.missingWarn)||Mr(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:J(e.fallbackWarn)||Mr(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:!J(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,g=K(e.missing)?e.missing:null,_=K(e.missing)?xs(e.missing):null,v=K(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:!J(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,x=t?t.modifiers:X(e.modifiers)?e.modifiers:{},S=e.pluralRules||t&&t.pluralRules,C;C=(()=>{r&&fo(null);let t={version:es,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:x,pluralRules:S,missing:_===null?void 0:_,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value;let n=ho(t);return r&&fo(n),n})(),yo(C,s.value,c.value);function w(){return[s.value,c.value,l.value,u.value,d.value]}let T=j({get:()=>s.value,set:e=>{C.locale=e,s.value=e}});function E(e){r||(C.fallbackContext=po());try{return e()}finally{r||(C.fallbackContext=void 0)}}function D(e){E(()=>yo(C,s.value,e))}let O=j({get:()=>c.value,set:e=>{c.value=e,C.fallbackLocale=c.value,D(c.value)}}),k=j(()=>l.value),ee=j(()=>u.value),te=j(()=>d.value);function ne(){return K(v)?v:null}function M(e){v=e,C.postTranslation=e}function re(){return g}function ie(e){e!==null&&(_=xs(e)),g=e,C.missing=_}let ae=(e,n,r,i,a,o)=>{w();let s;try{__INTLIFY_PROD_DEVTOOLS__,s=E(()=>e(C))}finally{__INTLIFY_PROD_DEVTOOLS__}if(r!==`translate exists`&&H(s)&&s===-1||r===`translate exists`&&!s){let[e,r]=n();return t&&m?i(t):a(e)}if(o(s))return s;throw ns(Q.UNEXPECTED_RETURN_TYPE)};function oe(...e){return ae(t=>Reflect.apply(Ko,null,[t,...e]),()=>Zo(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>q(e))}function se(...e){let[t,n,r]=e;if(r&&!Y(r))throw ns(Q.INVALID_ARGUMENT);return oe(t,n,U({resolvedMessage:!0},r||{}))}function ce(...e){return ae(t=>Reflect.apply(Do,null,[t,...e]),()=>ko(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>q(e)||G(e))}function ue(...e){return ae(t=>Reflect.apply(jo,null,[t,...e]),()=>No(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>q(e)||G(e))}function de(e){return e.map(e=>q(e)||H(e)||J(e)?gs(String(e)):e)}let P={normalize:de,interpolate:e=>e,type:`vnode`};function fe(...e){return ae(t=>{let n,r=t;try{r.processor=P,n=Reflect.apply(Ko,null,[r,...e])}finally{r.processor=null}return n},()=>Zo(...e),`translate`,t=>t[rs](...e),e=>[gs(e)],e=>G(e))}function pe(...e){return ae(t=>Reflect.apply(jo,null,[t,...e]),()=>No(...e),`number format`,t=>t[as](...e),vs,e=>q(e)||G(e))}function me(...e){return ae(t=>Reflect.apply(Do,null,[t,...e]),()=>ko(...e),`datetime format`,t=>t[is](...e),vs,e=>q(e)||G(e))}function he(e){S=e,C.pluralRules=S}function ge(e,t){let n=be(e),r=C.messageResolver(n,t);return r===null?zr(n,t):r}function _e(e,t){return ae(()=>{if(!e)return!1;let n=q(t)?t:s.value,r=q(t)?[n]:C.localeFallbacker(C,c.value,n);for(let t=0;t<r.length;t++)if(Go(ge(r[t],e)))return!0;return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),ys,e=>J(e))}function ve(e){let t=null,n=C.localeFallbacker(C,c.value,s.value);for(let r=0;r<n.length;r++){let i=ge(n[r],e);if(i!=null){t=i;break}}return t}function ye(e){return ve(e)??(t&&t.tm(e)||{})}function be(e){return zr(l.value,e)||{}}function xe(e,t){ds(e)||(i&&fs(t),l.value[e]=t,C.messages=l.value)}function Se(e,t){ds(e)||(l.value[e]=zr(l.value,e)||{},i&&fs(t),mi(t,l.value[e]),C.messages=l.value)}function Ce(e){return zr(u.value,e)||{}}function we(e,t){ds(e)||(u.value[e]=t,C.datetimeFormats=u.value,Ao(C,e,t))}function Te(e,t){ds(e)||(u.value[e]=U(zr(u.value,e)||{},t),C.datetimeFormats=u.value,Ao(C,e,t))}function Ee(e){return zr(d.value,e)||{}}function F(e,t){ds(e)||(d.value[e]=t,C.numberFormats=d.value,Po(C,e,t))}function De(e,t){ds(e)||(d.value[e]=U(zr(d.value,e)||{},t),C.numberFormats=d.value,Po(C,e,t))}bs++,A(c,()=>D(c.value),{deep:!0,flush:`sync`}),t&&Dr&&(A(t.locale,e=>{o&&(s.value=e,C.locale=e,yo(C,s.value,c.value))}),A(t.fallbackLocale,e=>{o&&(c.value=e,C.fallbackLocale=c.value,yo(C,s.value,c.value))}));let I={id:bs,locale:T,fallbackLocale:O,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(T.value=t.locale.value,O.value=t.fallbackLocale.value)},get availableLocales(){return Object.keys(l.value).sort()},messages:k,get modifiers(){return x},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,C.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,C.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(e){m=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,C.fallbackFormat=h},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,C.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,C.escapeParameter=e},t:oe,getLocaleMessage:be,setLocaleMessage:xe,mergeLocaleMessage:Se,getPostTranslationHandler:ne,setPostTranslationHandler:M,getMissingHandler:re,setMissingHandler:ie,[os]:he};return I.datetimeFormats=ee,I.numberFormats=te,I.rt=se,I.te=_e,I.tm=ye,I.d=ce,I.n=ue,I.getDateTimeFormat=Ce,I.setDateTimeFormat=we,I.mergeDateTimeFormat=Te,I.getNumberFormat=Ee,I.setNumberFormat=F,I.mergeNumberFormat=De,I[ss]=n,I[rs]=fe,I[is]=me,I[as]=pe,I}var Cs={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function ws({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===se?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},W())}function Ts(){return se}var Es=o({name:`i18n-t`,props:U({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>H(e)||!isNaN(e)}},Cs),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||Ls({useScope:e.scope,__useComponent:!0});return()=>{let a=()=>{let r=Object.keys(n).filter(e=>e[0]!==`_`),a=W();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=q(e.plural)?+e.plural:e.plural);let o=ws(t,r);return i[rs](e.keypath,o,a)},o=U(W(),r),s=q(e.tag)||Y(e.tag)?e.tag:Ts();return Y(s)?P(s,o,{default:a}):P(s,o,a())}}});function Ds(e){return G(e)&&!q(e[0])}function Os(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t=()=>{let t={part:!0},a=W();e.locale&&(t.locale=e.locale),q(e.format)?t.key=e.format:Y(e.format)&&(q(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?U(W(),t,{[r]:e.format[r]}):t,W()));let o=r(e.value,t,a),s=[t.key];return G(o)?s=o.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return Ds(r)&&(r[0].key=`${e.type}-${t}`),r}):q(o)&&(s=[o]),s},o=U(W(),a),s=q(e.tag)||Y(e.tag)?e.tag:Ts();return Y(s)?P(s,o,{default:t}):P(s,o,t())}}var ks=o({name:`i18n-n`,props:U({value:{type:Number,required:!0},format:{type:[String,Object]}},Cs),setup(e,t){let n=e.i18n||Ls({useScope:e.scope,__useComponent:!0});return Os(e,t,Mo,(...e)=>n[as](...e))}});function As(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function js(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw ns(Q.UNEXPECTED_ERROR);let i=As(e,n.$),a=Ms(r);return[Reflect.apply(i.t,i,[...Ns(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);Dr&&(e.__i18nWatcher=A(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{Dr&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=Ms(t);e.textContent=Reflect.apply(n.t,n,[...Ns(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function Ms(e){if(q(e))return{path:e};if(X(e)){if(!(`path`in e))throw ns(Q.REQUIRED_VALUE,`path`);return e}throw ns(Q.INVALID_VALUE)}function Ns(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return q(n)&&(o.locale=n),H(i)&&(o.plural=i),H(a)&&(o.plural=a),[t,s,o]}function Ps(e,t,...n){let r=X(n[0])?n[0]:{};(!J(r.globalInstall)||r.globalInstall)&&([Es.name,`I18nT`].forEach(t=>e.component(t,Es)),[ks.name,`I18nN`].forEach(t=>e.component(t,ks)),[Js.name,`I18nD`].forEach(t=>e.component(t,Js))),e.directive(`t`,js(t))}var Fs=Or(`global-vue-i18n`);function Is(e={}){let t=!J(e.globalInjection)||e.globalInjection,n=new Map,[r,i]=Rs(e,!1),a=Or(``);function o(e){return n.get(e)||null}function s(e,t){n.set(e,t)}function c(e){n.delete(e)}let l={get mode(){return`composition`},install(e,...n){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),X(n[0])){let e=n[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;t&&(r=qs(e,l.global)),Ps(e,l,...n);let i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:c};return l}function Ls(e={}){let t=_s();if(t==null)throw ns(Q.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ns(Q.NOT_INSTALLED);let n=zs(t),r=Vs(n),i=ms(t),a=Bs(e,i);if(a===`global`)return hs(r,e,i),r;if(a===`parent`){let i=Hs(n,t,e.__useComponent);return i??=r,i}if(a===`isolated`){if(n.mode!==`composition`)throw ns(Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);let i=n,a=U({},e);a.__root=Hs(n,t)||r;let o=Ss(a);return i.__composerExtend&&(o[cs]=i.__composerExtend(o)),ve()&&fe(()=>{let e=o[cs];e&&(e(),delete o[cs])}),o}let o=n,s=o.__getInstance(t);if(s==null){let n=U({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=Ss(n),o.__composerExtend&&(s[cs]=o.__composerExtend(s)),Ws(o,t,s),o.__setInstance(t,s)}return s}function Rs(e,t){let n=ne(),r=n.run(()=>Ss(e));if(r==null)throw ns(Q.UNEXPECTED_ERROR);return[n,r]}function zs(e){let t=de(e.isCE?Fs:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ns(e.isCE?Q.NOT_INSTALLED_WITH_PROVIDE:Q.UNEXPECTED_ERROR);return t}function Bs(e,t){return Nr(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function Vs(e){return e.mode===`composition`?e.global:e.global.__composer}function Hs(e,t,n=!1){let r=null,i=t.root,a=Us(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`&&(r=t.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function Us(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Ws(e,t,n){m(()=>{},t),b(()=>{let r=n;e.__deleteInstance(t);let i=r[cs];i&&(i(),delete r[cs])},t)}var Gs=[`locale`,`fallbackLocale`,`availableLocales`],Ks=[`t`,`rt`,`d`,`n`,`tm`,`te`];function qs(e,t){let n=Object.create(null);return Gs.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw ns(Q.UNEXPECTED_ERROR);let i=Te(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,Ks.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw ns(Q.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,Ks.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var Js=o({name:`i18n-d`,props:U({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Cs),setup(e,t){let n=e.i18n||Ls({useScope:e.scope,__useComponent:!0});return Os(e,t,Oo,(...e)=>n[is](...e))}});if(ts(),ro(Ta),ao(Xa),so(La),__INTLIFY_PROD_DEVTOOLS__){let e=Ir();e.__INTLIFY__=!0,Da(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Ys={class:`flex items-start gap-2`},Xs={class:`flex-1 min-w-0`},Zs=[`aria-label`],Qs=o({__name:`VDMessage`,props:{severity:{},closable:{type:Boolean}},setup(e){let t=N(!0),{t:r}=Ls();return(i,a)=>t.value?(n(),z(Er,{key:0,type:e.severity===`warn`?`warning`:e.severity||`info`,icon:`i-ph:info`},{default:F(()=>[I(`div`,Ys,[I(`div`,Xs,[C(i.$slots,`default`)]),e.closable?(n(),L(`button`,{key:0,type:`button`,class:`btn-icon-compact shrink-0`,"aria-label":R(r)(`button.close`),onClick:a[0]||=e=>t.value=!1},[...a[1]||=[I(`span`,{class:`i-ph:x`,"aria-hidden":`true`},null,-1)]],8,Zs)):M(``,!0)])]),_:3},8,[`type`])):M(``,!0)}}),$s={class:`p-2 flex flex-col gap-0.5`},ec={class:`flex-1 truncate`},tc={key:1,class:`text-micro px-1.5 rounded-full bg-active`},nc=o({__name:`LayoutSideNav`,props:g({items:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=k(e,`modelValue`);return(i,a)=>(n(),L(`nav`,$s,[C(i.$slots,`header`),(n(!0),L(se,null,l(e.items,e=>(n(),z(c(e.href?`a`:`button`),{key:e.value,href:e.href,type:e.href?void 0:`button`,"aria-current":e.value===t.value?`page`:void 0,class:r([`text-sm px-2 py-1.5 text-left outline-none rounded-md flex gap-2 w-full transition items-center focus-visible:ring-2 focus-visible:ring-primary-500/40`,[e.value===t.value?`bg-active color-active font-medium`:`color-muted hover:bg-hover hover:color-base`,e.disabled?`op50 pointer-events-none`:``]]),onClick:n=>!e.href&&(t.value=e.value)},{default:F(()=>[e.icon?(n(),L(`span`,{key:0,class:r(e.icon),"aria-hidden":`true`},null,2)):M(``,!0),I(`span`,ec,w(e.label??e.value),1),e.badge==null?M(``,!0):(n(),L(`span`,tc,w(e.badge),1))]),_:2},1032,[`href`,`type`,`aria-current`,`class`,`onClick`]))),128)),C(i.$slots,`footer`)]))}}),rc=`valaxy:main`,ic=[{id:`dashboard`,path:`/`,icon:`i-ph:squares-four`,label:`nav.dashboard`},{id:`posts`,path:`/posts`,icon:`i-ph:article`,label:`nav.posts`},{id:`archives`,path:`/archives`,icon:`i-ph:archive`,label:`nav.archives`},{id:`categories`,path:`/categories`,icon:`i-ph:folders`,label:`nav.categories`},{id:`tags`,path:`/tags`,icon:`i-ph:hash`,label:`nav.tags`},{id:`collections`,path:`/collections`,icon:`i-ph:books`,label:`nav.collections`},{id:`batch-edit`,path:`/batch-edit`,icon:`i-ph:pencil-simple`,label:`nav.batch_edit`},{id:`config`,path:`/config`,icon:`i-ph:sliders-horizontal`,label:`nav.config`},{id:`debug`,path:`/debug`,icon:`i-ph:bug`,label:`nav.debug`},{id:`addons`,path:`/addons`,icon:`i-ph:puzzle-piece`,label:`extensions.title`},{id:`settings`,path:`/settings`,icon:`i-ph:gear-six`,label:`nav.settings`}],ac=N(!1);function oc(){A(He,async(e,t,n)=>{let r=!1,i;if(n(()=>{r=!0,i?.()}),window.parent!==window&&e===`connected`)try{let e=await(await Ge()).sharedState.get(`devframe:docks`,{initialValue:[]});if(r)return;let t=()=>{ac.value=e.value().some(e=>e.type===`iframe`&&e.frameId===`valaxy:main`&&e.subTabs?.protocol===`postmessage`)};t(),i=e.on(`updated`,t)}catch(e){r||(qe.value=String(e))}},{immediate:!0})}function sc(){let{t:e}=Ls(),t=Rt(),n=j(()=>ic.map(t=>({...t,title:e(t.label)})));return{current:j(()=>n.value.find(e=>e.path===t.path)),items:j(()=>n.value.map(e=>({value:e.path,label:e.title,icon:e.icon,href:`#${e.path}`}))),tabs:j(()=>n.value.map((e,t)=>({id:e.id,title:e.title,icon:`mask:${new URL(`./icons/${e.icon.slice(5)}.svg`,window.location.href).href}`,navTarget:{path:e.path},groupId:`valaxy:tools`,category:`framework`,order:t})))}}var cc=o({__name:`VDNavigation`,setup(e){let{t}=Ls(),r=Rt(),{items:i}=sc();return(e,a)=>(n(),z(nc,{items:R(i),"model-value":R(r).path,"aria-label":R(t)(`nav.navigation`)},null,8,[`items`,`model-value`,`aria-label`]))}}),lc=o({__name:`FeedbackSpinner`,props:{size:{default:`1em`}},setup(e){let t=e,r=j(()=>typeof t.size==`number`?`${t.size}px`:t.size);return(e,t)=>(n(),L(`span`,{class:`border-2 border-current border-t-transparent rounded-full inline-block animate-spin`,style:u({width:r.value,height:r.value}),role:`status`,"aria-label":`Loading`},null,4))}}),uc=o({__name:`ActionButton`,props:{as:{},to:{},href:{},icon:{},variant:{default:`action`},size:{default:`md`},loading:{type:Boolean},disabled:{type:Boolean}},setup(e){let t=e,i=j(()=>t.as?t.as:t.href!=null||t.to!=null?`a`:`button`),a=j(()=>i.value===`a`),o=j(()=>i.value===`button`),s=j(()=>t.size===`sm`),l=j(()=>t.variant===`primary`?s.value?`btn-primary text-sm`:`btn-primary`:t.variant===`text`?s.value?`btn-text text-sm`:`btn-text`:s.value?`btn-action-sm`:`btn-action`),u=j(()=>t.disabled||t.loading);return(t,s)=>(n(),z(c(i.value),{class:r([l.value,{"pointer-events-none op-mute":u.value&&!o.value}]),href:a.value?e.href??e.to:void 0,to:e.as&&e.to!=null?e.to:void 0,disabled:o.value?u.value:void 0,"aria-disabled":u.value||void 0,"aria-busy":e.loading||void 0},{default:F(()=>[e.loading?(n(),z(lc,{key:0,size:`1em`})):e.icon?(n(),L(`span`,{key:1,class:r(e.icon),"aria-hidden":`true`},null,2)):M(``,!0),C(t.$slots,`default`)]),_:3},8,[`class`,`href`,`to`,`disabled`,`aria-disabled`,`aria-busy`]))}}),dc=o({__name:`VDButton`,props:{variant:{},size:{},disabled:{type:Boolean},loading:{type:Boolean},icon:{},label:{},tag:{}},setup(e){return(t,i)=>(n(),z(uc,{as:e.tag||`button`,type:e.tag===`a`?void 0:`button`,variant:e.variant===`ghost`?`text`:e.variant===`secondary`||e.variant===`warn`?`action`:`primary`,size:e.size||`sm`,disabled:e.disabled||e.loading,loading:e.loading,icon:e.icon,class:r([`justify-center whitespace-nowrap`,e.variant===`warn`?`text-warning-700 dark:text-warning-300 border-warning-600/20`:``])},{default:F(()=>[C(t.$slots,`default`,{},()=>[ke(w(e.label),1)])]),_:3},8,[`as`,`type`,`variant`,`size`,`disabled`,`loading`,`icon`,`class`]))}}),fc={key:0,class:`color-muted text-xs shrink-0`},pc=[`type`,`placeholder`,`aria-label`,`list`,`disabled`],mc={key:1,class:`color-muted text-xs shrink-0`},hc=o({inheritAttrs:!1,__name:`VDInput`,props:g({placeholder:{},size:{},type:{},list:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:t}){let i=k(e,`modelValue`),a=xe(),o=N();return t({focus:()=>o.value?.focus()}),(t,s)=>(n(),L(`div`,{class:r([[R(a).class,e.size===`md`?`h-9`:`h-7`,{op50:e.disabled}],`px-2 border border-base rounded bg-raised inline-flex gap-1.5 items-center min-w-0 transition focus-within:ring-2 focus-within:ring-primary-500/40`]),style:u(R(a).style)},[t.$slots.prefix?(n(),L(`span`,fc,[C(t.$slots,`prefix`)])):M(``,!0),ge(I(`input`,v({ref_key:`input`,ref:o},{...R(a),class:void 0,style:void 0},{"onUpdate:modelValue":s[0]||=e=>i.value=e,type:e.type||`text`,placeholder:e.placeholder,"aria-label":typeof R(a)[`aria-label`]==`string`?R(a)[`aria-label`]:e.placeholder,list:e.list,disabled:e.disabled,class:`color-base text-sm outline-none bg-transparent flex-1 min-w-0 w-full placeholder:color-faint`}),null,16,pc),[[je,i.value]]),t.$slots.suffix?(n(),L(`span`,mc,[C(t.$slots,`suffix`)])):M(``,!0)],6))}}),gc={class:`max-w-md mx-auto my-auto p-6 flex flex-col gap-4`,role:`status`},_c={key:1},vc={key:2,class:`text-error-700 dark:text-error-300`,role:`alert`},yc=o({__name:`VDConnectionState`,setup(e){let{t}=Ls(),r=N(``),i=N(!1);async function a(){try{await(await Ge()).requestAuthCode()}catch(e){qe.value=String(e)}}A(He,e=>{e===`unauthorized`&&a()},{immediate:!0});async function o(){i.value=!0,qe.value=``;try{await(await Ge()).requestTrustWithCode(r.value.trim())||(qe.value=t(`connection.invalid_code`))}catch(e){qe.value=String(e)}finally{i.value=!1}}async function s(){try{await ze()}catch{}}return(e,c)=>{let l=hc,u=dc;return n(),L(`div`,gc,[c[1]||=I(`h1`,{class:`text-xl font-bold`},` Valaxy DevTools `,-1),R(He)===`unauthorized`?(n(),L(se,{key:0},[I(`p`,null,w(R(t)(`connection.authorize`)),1),I(`form`,{class:`flex gap-2`,onSubmit:Me(o,[`prevent`])},[S(l,{modelValue:r.value,"onUpdate:modelValue":c[0]||=e=>r.value=e,"aria-label":R(t)(`connection.code`),inputmode:`numeric`,autocomplete:`one-time-code`,class:`flex-1`,size:`md`,required:``},null,8,[`modelValue`,`aria-label`]),S(u,{type:`submit`,disabled:i.value},{default:F(()=>[ke(w(R(t)(`connection.connect`)),1)]),_:1},8,[`disabled`])],32),I(`button`,{class:`text-left text-sm underline`,onClick:a},w(R(t)(`connection.request_code`)),1)],64)):(n(),L(`p`,_c,w(R(t)(`connection.${R(He)}`)),1)),R(qe)?(n(),L(`p`,vc,w(R(qe)),1)):M(``,!0),R(He)===`error`||R(He)===`disconnected`?(n(),z(u,{key:3,onClick:s},{default:F(()=>[ke(w(R(t)(`connection.retry`)),1)]),_:1})):M(``,!0)])}}});function bc(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=de(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(T(r,e),e)]}function xc(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Sc(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Cc(e){return e==null}function wc(e,t){return ve()?(fe(e,t),!0):!1}function Tc(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return wc(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}function Ec(e){let t=!1,n,r=ne(!0);return((...i)=>(t||=(n=r.run(()=>e(...i)),!0),n))}var Dc=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Oc=e=>e!==void 0,kc=Object.prototype.toString,Ac=e=>kc.call(e)===`[object Object]`,jc=Mc();function Mc(){var e,t;return Dc&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Nc(e){return Array.isArray(e)?e:[e]}function Pc(e){return e||a()}function Fc(e){if(!Dc)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=ne(!0),n=r.run(()=>e(...a))),wc(i),n))}function Ic(e){return Te(e)?De(new Proxy({},{get(t,n,r){return R(Reflect.get(e.value,n,r))},set(t,n,r){return Te(e.value[n])&&!Te(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):De(e)}function Lc(e){return Ic(j(e))}function Rc(e,...t){let n=t.flat(),r=n[0];return Lc(()=>Object.fromEntries(typeof r==`function`?Object.entries(Oe(e)).filter(([e,t])=>!r(B(t),e)):Object.entries(Oe(e)).filter(e=>!n.includes(e[0]))))}function zc(e,t=1e4){return ue((n,r)=>{let i=B(e),a,o=()=>setTimeout(()=>{i=B(e),r()},B(t));return wc(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function Bc(e,t){Pc(t)&&d(e,t)}function Vc(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=le(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},B(t))}return r&&(a.value=!0,Dc&&l()),wc(c),{isPending:me(a),start:l,stop:c}}function Hc(e,t,n){return A(e,t,{...n,immediate:!0})}var Uc=Dc?window:void 0;Dc&&window.document,Dc&&window.navigator,Dc&&window.location;function Wc(e){let t=B(e);return t?.$el??t}function Gc(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=j(()=>{let t=Nc(B(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Hc(()=>[n.value?.map(e=>Wc(e))??[Uc].filter(e=>e!=null),Nc(B(n.value?e[1]:e[0])),Nc(R(n.value?e[2]:e[1])),B(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Ac(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function Kc(){let e=le(!1),t=a();return t&&m(()=>{e.value=!0},t),e}function qc(e){let t=Kc();return j(()=>(t.value,!!e()))}function Jc(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Yc(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=Uc,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Jc(t);return Gc(i,a,e=>{e.repeat&&B(s)||c(e)&&n(e)},o)}function Xc(e){return JSON.parse(JSON.stringify(e))}function Zc(e,t,n={}){let{window:r=Uc,...i}=n,a,o=qc(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=A(j(()=>{let t=B(e);return Array.isArray(t)?t.map(e=>Wc(e)):[Wc(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return wc(l),{isSupported:o,stop:l}}function Qc(e,t,n,r={}){var i,o;let{clone:c=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:f,shouldEmit:p}=r,m=a(),h=n||m?.emit||(m==null||(i=m.$emit)==null?void 0:i.bind(m))||(m==null||(o=m.proxy)==null||(o=o.$emit)==null?void 0:o.bind(m?.proxy)),g=u;t||=`modelValue`,g||=`update:${t.toString()}`;let _=e=>c?typeof c==`function`?c(e):Xc(e):e,v=()=>Oc(e[t])?_(e[t]):f,y=e=>{p?p(e)&&h(g,e):h(g,e)};if(l){let n=N(v()),r=!1;return A(()=>e[t],e=>{r||(r=!0,n.value=_(e),s(()=>r=!1))}),A(n,n=>{!r&&(n!==e[t]||d)&&y(n)},{deep:d}),n}return j({get(){return v()},set(e){y(e)}})}function $c(e){return e?e.flatMap(e=>e.type===se?$c(e.children):[e]):[]}var[el,tl]=bc(`ConfigProvider`),nl=De({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});function rl(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function il(e,t,n=`.`,r){if(!rl(t))return il(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:rl(a)&&rl(i[t])?il(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function al(e){return(...t)=>t.reduce((t,n)=>il(t,n,``,e),{})}var ol=al(),sl=Fc(()=>{let e=N(new Map),t=N(),n=j(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=el({scrollBody:N(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,nl.layersWithOutsidePointerEventsDisabled.size===0&&(document.body.style.pointerEvents=``),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,jc&&i?.(),t.value=void 0};return A(n,(e,o)=>{if(!Dc)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let c=window.innerWidth-document.documentElement.clientWidth,l={padding:c,margin:0},u=r.scrollBody?.value?typeof r.scrollBody.value==`object`?ol({padding:r.scrollBody.value.padding===!0?c:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?c:r.scrollBody.value.margin},l):l:{padding:0,margin:0};c>0&&(document.body.style.paddingRight=typeof u.padding==`number`?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin==`number`?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${c}px`),document.body.style.overflow=`hidden`),jc&&(i=Gc(document,`touchmove`,e=>ul(e),{passive:!1})),s(()=>{n.value&&(document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function cl(e){let t=Math.random().toString(36).substring(2,7),n=sl();n.value.set(t,e??!1);let r=j({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return Bc(()=>{n.value.delete(t)}),r}function ll(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:ll(t)}}function ul(e){let t=e||window.event,n=t.target;return n instanceof Element&&ll(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function dl(e){let t=el({dir:N(`ltr`)});return j(()=>e?.value||t.dir?.value||`ltr`)}function fl(e){let t=a(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[O(x(t))]=(...n)=>e(t,...n)}),r}function $(){let e=a(),t=N(),n=j(()=>r());Ae(()=>{n.value!==r()&&re(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Wc(t)}let i=Object.assign({},e.exposed),o={};for(let t in e.props)Object.defineProperty(o,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function s(n){if(t.value=n,n&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},o);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:s,currentRef:t,currentElement:n}}function pl(e){let t=a(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=ee(e);return j(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[x(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function ml(e,t){let n=pl(e),r=t?fl(t):{};return j(()=>({...n.value,...r}))}function hl(e,t){let n=zc(!1,300);wc(()=>{n.value=!1});let r=N(null),i=Tc();function a(){r.value=null,n.value=!1}function o(e,t){if(!t)return;let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=_l(a,gl(a,i.getBoundingClientRect()),1),s=vl(t.getBoundingClientRect()),c=bl([...o,...s]);r.value=c,n.value=!0}return y(n=>{if(e.value&&t.value){let r=e.value,i=t.value,a=e=>o(e,i),s=e=>o(e,r);r.addEventListener(`pointerleave`,a),i.addEventListener(`pointerleave`,s),n(()=>{r.removeEventListener(`pointerleave`,a),i.removeEventListener(`pointerleave`,s)})}}),y(n=>{if(r.value){let o=n=>{if(!r.value||!(n.target instanceof Element))return;let o=n.target,s={x:n.clientX,y:n.clientY},c=e.value?.contains(o)||t.value?.contains(o),l=!yl(s,r.value),u=!!o.closest(`[data-grace-area-trigger]`);c?a():(l||u)&&(a(),i.trigger())},s=e.value?.ownerDocument;s?.addEventListener(`pointermove`,o),n(()=>s?.removeEventListener(`pointermove`,o))}}),{isPointerInTransit:n,onPointerExit:i.on}}function gl(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function _l(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function vl(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function yl(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function bl(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),xl(t)}function xl(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t.at(-1),n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n.at(-1),t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Sl=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Cl=new WeakMap,wl=new WeakMap,Tl={},El=0,Dl=function(e){return e&&(e.host||Dl(e.parentNode))},Ol=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Dl(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},kl=function(e,t,n,r){var i=Ol(t,Array.isArray(e)?e:[e]);Tl[n]||(Tl[n]=new WeakMap);var a=Tl[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Cl.get(e)||0)+1,l=(a.get(e)||0)+1;Cl.set(e,c),a.set(e,l),o.push(e),c===1&&i&&wl.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),El++,function(){o.forEach(function(e){var t=Cl.get(e)-1,i=a.get(e)-1;Cl.set(e,t),a.set(e,i),t||(wl.has(e)||e.removeAttribute(r),wl.delete(e)),i||e.removeAttribute(n)}),El--,El||(Cl=new WeakMap,Cl=new WeakMap,wl=new WeakMap,Tl={})}},Al=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Sl(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),kl(r,i,n,`aria-hidden`)):function(){return null}};function jl(e){let t;A(()=>Wc(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=Al(e):t&&t()}),b(()=>{t&&t()})}function Ml(e,t=`reka`){if(e)return e;let n,r=el({useId:void 0});return n=r.useId?r.useId():f?.(),t?`${t}-${n}`:n}function Nl(e){let t=N(),n=j(()=>t.value?.width??0),r=j(()=>t.value?.height??0),i;return m(()=>{let n=Wc(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),b(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}function Pl(e,t){let n=N(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Fl(e,t){let n=N({}),r=N(`none`),i=N(e),a=e.value?`mounted`:`unmounted`,o,c=t.value?.ownerDocument.defaultView??Uc,{state:l,dispatch:u}=Pl(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),d=e=>{if(Dc){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};A(e,async(e,i)=>{let a=i!==e;if(await s(),a){let a=r.value,o=Il(t.value);e?(u(`MOUNT`),d(`enter`),o===`none`&&d(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(u(`UNMOUNT`),d(`leave`),d(`after-leave`)):i&&a!==o?(u(`ANIMATION_OUT`),d(`leave`)):(u(`UNMOUNT`),d(`after-leave`))}},{immediate:!0});let f=e=>{if(e.target!==t.value)return;let n=Il(t.value),r=n.includes(CSS.escape(e.animationName)),a=l.value===`mounted`?`enter`:`leave`;if(r&&(d(`after-${a}`),u(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=c?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}n===`none`&&u(`ANIMATION_END`)},p=e=>{e.target===t.value&&(r.value=Il(t.value))},m=A(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,p),e.addEventListener(`animationcancel`,f),e.addEventListener(`animationend`,f)):(u(`ANIMATION_END`),o!==void 0&&c?.clearTimeout(o),t?.removeEventListener(`animationstart`,p),t?.removeEventListener(`animationcancel`,f),t?.removeEventListener(`animationend`,f))},{immediate:!0}),h=A(l,()=>{let e=Il(t.value);r.value=l.value===`mounted`?e:`none`});return b(()=>{m(),h(),t.value&&(t.value.removeEventListener(`animationstart`,p),t.value.removeEventListener(`animationcancel`,f),t.value.removeEventListener(`animationend`,f)),o!==void 0&&c?.clearTimeout(o)}),{isPresent:j(()=>[`mounted`,`unmountSuspended`].includes(l.value))}}function Il(e){return e&&getComputedStyle(e).animationName||`none`}var Ll=o({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=Oe(e),o=N(),{isPresent:s}=Fl(r,o);n({present:s});let c=t.default({present:s.value});c=$c(c||[]);let l=a();if(c&&c?.length>1){let e=l?.parent?.type.name?`<${l.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
|
|
5
5
|
`)].join(`
|