nekomeowww commited on
Commit
ce0a262
·
1 Parent(s): 01bdea4

release: build 856bcd0bc0ff568af0b9adb71ddbd80d387a985f

Browse files
Files changed (30) hide show
  1. assets/{Collapsable.vue_vue_type_script_setup_true_lang-5B91jQYE.js → Collapsable.vue_vue_type_script_setup_true_lang-BRAn0QOS.js} +1 -1
  2. assets/{HeaderLink.vue_vue_type_script_setup_true_lang-0l0qp1dE.js → HeaderLink.vue_vue_type_script_setup_true_lang-C1ZGRUE3.js} +1 -1
  3. assets/{MobileInteractiveArea.vue_vue_type_script_setup_true_lang-CvwJdt6x.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C-AcXYQs.js} +0 -0
  4. assets/{Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js → Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js} +0 -0
  5. assets/{_...all_-C0XTifl7.js → _...all_-DIDUSaAx.js} +1 -1
  6. assets/{audio-DpYjoWjp.js → audio-Cj2xupGD.js} +1 -1
  7. assets/{consciousness-DhuPQjgL.js → consciousness-Dq7jzqtg.js} +1 -1
  8. assets/{default-njAbr0vI.js → default-Cnlas9Yc.js} +1 -1
  9. assets/{default-node-huo2b1KH.js → default-node-DST4W3tW.js} +2 -2
  10. assets/{delays-CK8SNHyb.js → delays-kT-elVPo.js} +1 -1
  11. assets/{emotions-CZbTrpNx.js → emotions-DBnKXZAu.js} +1 -1
  12. assets/{filter-message-4XYln8a6.js → filter-message-BtyIiIWg.js} +1 -1
  13. assets/{image-zkElonim.js → image-BjD5KQov.js} +1 -1
  14. assets/{index-CRBCy5uG.js → index-B3VU4agt.js} +1 -1
  15. assets/{index-DOnbpi38.js → index-Bb05Rllo.js} +1 -1
  16. assets/{index-yWYB6MdK.js → index-C6reCA2R.js} +1 -1
  17. assets/{index-ZAJnl9Hr.js → index-C9syKmat.js} +4 -4
  18. assets/{index-DSZduMTj.js → index-CCs7TWBX.js} +1 -1
  19. assets/{index-B6lcf5Ka.js → index-CreFigCn.js} +1 -1
  20. assets/{index-DYLqqjTr.js → index-ns-YwWID.js} +1 -1
  21. assets/{index-DpHRHqJl.js → index-oyiFuDuq.js} +1 -1
  22. assets/{messages-CPR_GqN1.js → messages-C0ZSpEN4.js} +1 -1
  23. assets/{openrouter-DPj3nOdo.js → openrouter-CYjSnuEY.js} +1 -1
  24. assets/{providers-VFCWZz0i.js → providers-kZHh7EE9.js} +1 -1
  25. assets/{queue-vhzj6GnO.js → queue-C_pdx0nC.js} +1 -1
  26. assets/{queue-DzzOMrys.js → queue-DLBJqV7W.js} +1 -1
  27. assets/{queues-B9bk8QxX.js → queues-DX8_B84M.js} +1 -1
  28. assets/{stage-f1sqLDwM.js → stage-CxX9pQ4e.js} +1 -1
  29. assets/{v2-quoG19Ez.js → v2-C7lI0fGL.js} +1 -1
  30. index.html +1 -1
assets/{Collapsable.vue_vue_type_script_setup_true_lang-5B91jQYE.js → Collapsable.vue_vue_type_script_setup_true_lang-BRAn0QOS.js} RENAMED
@@ -1 +1 @@
1
- import{d as v,m as C,o as T,T as k,p as B,f,ce as E,cf as W,av as V,c as _,b as x,c8 as m,c9 as L,k as M,bP as $,a as h,I as N,t as b}from"./index-ZAJnl9Hr.js";const n="0px",P=v({__name:"TransitionVertical",props:{duration:{default:250},easingEnter:{default:"ease-in-out"},easingLeave:{default:"ease-in-out"},opacityClosed:{default:0},opacityOpened:{default:1}},setup(u){const i=u;function s(t){return{height:t.style.height,width:t.style.width,position:t.style.position,visibility:t.style.visibility,overflow:t.style.overflow,paddingTop:t.style.paddingTop,paddingBottom:t.style.paddingBottom,borderTopWidth:t.style.borderTopWidth,borderBottomWidth:t.style.borderBottomWidth,marginTop:t.style.marginTop,marginBottom:t.style.marginBottom}}function c(t,o){const{width:e}=getComputedStyle(t);t.style.width=e,t.style.position="absolute",t.style.visibility="hidden",t.style.height="";const{height:a}=getComputedStyle(t);return t.style.width=o.width,t.style.position=o.position,t.style.visibility=o.visibility,t.style.height=n,t.style.overflow="hidden",o.height&&o.height!==n?o.height:a}function r(t,o,e,a,l){const p=t.animate(a,l);t.style.height=o.height,p.onfinish=()=>{t.style.overflow=o.overflow,e()}}function d(t,o){return[{height:n,opacity:i.opacityClosed,paddingTop:n,paddingBottom:n,borderTopWidth:n,borderBottomWidth:n,marginTop:n,marginBottom:n},{height:t,opacity:i.opacityOpened,paddingTop:o.paddingTop,paddingBottom:o.paddingBottom,borderTopWidth:o.borderTopWidth,borderBottomWidth:o.borderBottomWidth,marginTop:o.marginTop,marginBottom:o.marginBottom}]}function y(t,o){const e=t,a=s(e),l=c(e,a),p=d(l,a),g={duration:i.duration,easing:i.easingEnter};r(e,a,o,p,g)}function w(t,o){const e=t,a=s(e),{height:l}=getComputedStyle(e);e.style.height=l,e.style.overflow="hidden";const p=d(l,a).reverse(),g={duration:i.duration,easing:i.easingLeave};r(e,a,o,p,g)}return(t,o)=>(T(),C(k,{css:!1,onEnter:y,onLeave:w},{default:B(()=>[f(t.$slots,"default")]),_:3}))}}),z={op50:""},O=v({__name:"Collapsable",props:E({default:{type:Boolean},label:null},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(u){const i=u,s=W(u,"modelValue");V(()=>{i.default!=null&&(s.value=!!i.default)});function c(r){return s.value=r,r}return(r,d)=>(T(),_("div",null,[f(r.$slots,"trigger",m(L({visible:s.value,setVisible:c})),()=>[h("button",{sticky:"","top-0":"","z-10":"",flex:"","items-center":"","justify-between":"",px2:"",py1:"","text-sm":"","backdrop-blur-xl":"",onClick:d[0]||(d[0]=y=>s.value=!s.value)},[h("span",null,b(i.label??"Collapsable"),1),d[1]||(d[1]=N()),h("span",z,b(s.value?"▲":"▼"),1)])]),x(P,null,{default:B(()=>[s.value?f(r.$slots,"default",m($({key:0},{visible:s.value,setVisible:c}))):M("",!0)]),_:3})]))}});export{O as _,P as a};
 
1
+ import{d as v,m as C,o as T,T as k,p as B,f,ce as E,cf as W,av as V,c as _,b as x,c8 as m,c9 as L,k as M,bP as $,a as h,I as N,t as b}from"./index-C9syKmat.js";const n="0px",P=v({__name:"TransitionVertical",props:{duration:{default:250},easingEnter:{default:"ease-in-out"},easingLeave:{default:"ease-in-out"},opacityClosed:{default:0},opacityOpened:{default:1}},setup(u){const i=u;function s(t){return{height:t.style.height,width:t.style.width,position:t.style.position,visibility:t.style.visibility,overflow:t.style.overflow,paddingTop:t.style.paddingTop,paddingBottom:t.style.paddingBottom,borderTopWidth:t.style.borderTopWidth,borderBottomWidth:t.style.borderBottomWidth,marginTop:t.style.marginTop,marginBottom:t.style.marginBottom}}function c(t,o){const{width:e}=getComputedStyle(t);t.style.width=e,t.style.position="absolute",t.style.visibility="hidden",t.style.height="";const{height:a}=getComputedStyle(t);return t.style.width=o.width,t.style.position=o.position,t.style.visibility=o.visibility,t.style.height=n,t.style.overflow="hidden",o.height&&o.height!==n?o.height:a}function r(t,o,e,a,l){const p=t.animate(a,l);t.style.height=o.height,p.onfinish=()=>{t.style.overflow=o.overflow,e()}}function d(t,o){return[{height:n,opacity:i.opacityClosed,paddingTop:n,paddingBottom:n,borderTopWidth:n,borderBottomWidth:n,marginTop:n,marginBottom:n},{height:t,opacity:i.opacityOpened,paddingTop:o.paddingTop,paddingBottom:o.paddingBottom,borderTopWidth:o.borderTopWidth,borderBottomWidth:o.borderBottomWidth,marginTop:o.marginTop,marginBottom:o.marginBottom}]}function y(t,o){const e=t,a=s(e),l=c(e,a),p=d(l,a),g={duration:i.duration,easing:i.easingEnter};r(e,a,o,p,g)}function w(t,o){const e=t,a=s(e),{height:l}=getComputedStyle(e);e.style.height=l,e.style.overflow="hidden";const p=d(l,a).reverse(),g={duration:i.duration,easing:i.easingLeave};r(e,a,o,p,g)}return(t,o)=>(T(),C(k,{css:!1,onEnter:y,onLeave:w},{default:B(()=>[f(t.$slots,"default")]),_:3}))}}),z={op50:""},O=v({__name:"Collapsable",props:E({default:{type:Boolean},label:null},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(u){const i=u,s=W(u,"modelValue");V(()=>{i.default!=null&&(s.value=!!i.default)});function c(r){return s.value=r,r}return(r,d)=>(T(),_("div",null,[f(r.$slots,"trigger",m(L({visible:s.value,setVisible:c})),()=>[h("button",{sticky:"","top-0":"","z-10":"",flex:"","items-center":"","justify-between":"",px2:"",py1:"","text-sm":"","backdrop-blur-xl":"",onClick:d[0]||(d[0]=y=>s.value=!s.value)},[h("span",null,b(i.label??"Collapsable"),1),d[1]||(d[1]=N()),h("span",z,b(s.value?"▲":"▼"),1)])]),x(P,null,{default:B(()=>[s.value?f(r.$slots,"default",m($({key:0},{visible:s.value,setVisible:c}))):M("",!0)]),_:3})]))}});export{O as _,P as a};
assets/{HeaderLink.vue_vue_type_script_setup_true_lang-0l0qp1dE.js → HeaderLink.vue_vue_type_script_setup_true_lang-C1ZGRUE3.js} RENAMED
@@ -1 +1 @@
1
- import{d as r,l,m as c,u as e,G as u,o as s,p as i,c as o,a as n}from"./index-ZAJnl9Hr.js";const k="/assets/logo-dark-CO0kwKsz.svg",p="/assets/logo-D6zeZTFl.svg",_=["src"],d=["src"],x=r({__name:"HeaderLink",setup(m){const a=l();return(g,t)=>(s(),c(e(u),{to:"/",flex:"~ 1","w-full":"","items-center":"","gap-2":"","px-2":"","text-nowrap":"","text-2xl":"","outline-none":""},{default:i(()=>[e(a)?(s(),o("img",{key:0,src:e(k),"h-8":"","w-8":""},null,8,_)):(s(),o("img",{key:1,src:e(p),"h-8":"","w-8":""},null,8,d)),t[0]||(t[0]=n("div",{"font-cute":""},[n("span",null,"アイリ")],-1))]),_:1}))}});export{x as _};
 
1
+ import{d as r,l,m as c,u as e,G as u,o as s,p as i,c as o,a as n}from"./index-C9syKmat.js";const k="/assets/logo-dark-CO0kwKsz.svg",p="/assets/logo-D6zeZTFl.svg",_=["src"],d=["src"],x=r({__name:"HeaderLink",setup(m){const a=l();return(g,t)=>(s(),c(e(u),{to:"/",flex:"~ 1","w-full":"","items-center":"","gap-2":"","px-2":"","text-nowrap":"","text-2xl":"","outline-none":""},{default:i(()=>[e(a)?(s(),o("img",{key:0,src:e(k),"h-8":"","w-8":""},null,8,_)):(s(),o("img",{key:1,src:e(p),"h-8":"","w-8":""},null,8,d)),t[0]||(t[0]=n("div",{"font-cute":""},[n("span",null,"アイリ")],-1))]),_:1}))}});export{x as _};
assets/{MobileInteractiveArea.vue_vue_type_script_setup_true_lang-CvwJdt6x.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C-AcXYQs.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js → Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{_...all_-C0XTifl7.js → _...all_-DIDUSaAx.js} RENAMED
@@ -1 +1 @@
1
- import{_ as e,c as _,o as c}from"./index-ZAJnl9Hr.js";const n={};function o(t,r){return c(),_("div",null," 404 - Page not found ")}const s=e(n,[["render",o]]);export{s as default};
 
1
+ import{_ as e,c as _,o as c}from"./index-C9syKmat.js";const n={};function o(t,r){return c(),_("div",null," 404 - Page not found ")}const s=e(n,[["render",o]]);export{s as default};
assets/{audio-DpYjoWjp.js → audio-Cj2xupGD.js} RENAMED
@@ -1 +1 @@
1
- import{d as s,g as f,c as d,o as p,a as t}from"./index-ZAJnl9Hr.js";const R=s({__name:"audio",setup(_){const a=f(),l=f();function u(o){var r,c,i;if(!o)return;const n=(c=(r=l.value)==null?void 0:r.files)==null?void 0:c[0];if(!n)return;const e=document.createElement("audio");(i=a.value)==null||i.appendChild(e),e.src=URL.createObjectURL(n),e.controls=!0,e.load(),e.play()}return(o,n)=>(p(),d("div",null,[t("div",null,[t("div",{ref_key:"containerRef",ref:a},null,512),t("input",{ref_key:"fileInputRef",ref:l,type:"file",onChange:u},null,544)])]))}});export{R as default};
 
1
+ import{d as s,g as f,c as d,o as p,a as t}from"./index-C9syKmat.js";const R=s({__name:"audio",setup(_){const a=f(),l=f();function u(o){var r,c,i;if(!o)return;const n=(c=(r=l.value)==null?void 0:r.files)==null?void 0:c[0];if(!n)return;const e=document.createElement("audio");(i=a.value)==null||i.appendChild(e),e.src=URL.createObjectURL(n),e.controls=!0,e.load(),e.play()}return(o,n)=>(p(),d("div",null,[t("div",null,[t("div",{ref_key:"containerRef",ref:a},null,512),t("input",{ref_key:"fileInputRef",ref:l,type:"file",onChange:u},null,544)])]))}});export{R as default};
assets/{consciousness-DhuPQjgL.js → consciousness-Dq7jzqtg.js} RENAMED
@@ -1 +1 @@
1
- import{d as i,C as o,c as n,o as a,a as e,u,F as d}from"./index-ZAJnl9Hr.js";import{b as r}from"./route-block-B_A1xBdJ.js";const s={flex:"~ row","items-center":"","gap-2":""},f=i({__name:"consciousness",setup(p){const l=o();return(c,t)=>(a(),n(d,null,[e("div",s,[e("button",{onClick:t[0]||(t[0]=m=>u(l).back())},t[1]||(t[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-xl":""},null,-1)])),t[2]||(t[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Modules")]),e("div",{"text-3xl":"","font-semibold":""}," Consciousness ")],-1))]),t[3]||(t[3]=e("div",{bg:"neutral-100 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":""},[e("div",{flex:"~ col gap-4"},[e("div",null,[e("h2",{"text-2xl":""}," Provider "),e("div",{text:"neutral-400 dark:neutral-400"},[e("span",null,"Select the suitable LLM provider for consciousness")])]),e("div",{"max-w-full":""},[e("fieldset",{flex:"~ row gap-4",style:{"scrollbar-width":"none"},"min-w-0":"","of-x-scroll":"","scroll-smooth":""},[e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")])])])])],-1)),t[4]||(t[4]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:ghost":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof r=="function"&&r(f);export{f as default};
 
1
+ import{d as i,C as o,c as n,o as a,a as e,u,F as d}from"./index-C9syKmat.js";import{b as r}from"./route-block-B_A1xBdJ.js";const s={flex:"~ row","items-center":"","gap-2":""},f=i({__name:"consciousness",setup(p){const l=o();return(c,t)=>(a(),n(d,null,[e("div",s,[e("button",{onClick:t[0]||(t[0]=m=>u(l).back())},t[1]||(t[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-xl":""},null,-1)])),t[2]||(t[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Modules")]),e("div",{"text-3xl":"","font-semibold":""}," Consciousness ")],-1))]),t[3]||(t[3]=e("div",{bg:"neutral-100 dark:[rgba(0,0,0,0.3)]","rounded-xl":"","p-4":""},[e("div",{flex:"~ col gap-4"},[e("div",null,[e("h2",{"text-2xl":""}," Provider "),e("div",{text:"neutral-400 dark:neutral-400"},[e("span",null,"Select the suitable LLM provider for consciousness")])]),e("div",{"max-w-full":""},[e("fieldset",{flex:"~ row gap-4",style:{"scrollbar-width":"none"},"min-w-0":"","of-x-scroll":"","scroll-smooth":""},[e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")]),e("label",{bg:"neutral-200 dark:neutral-800",flex:"~ col",block:"","min-w-50":"","w-fit":"","cursor-pointer":"","items-start":"","rounded-lg":"","p-3":"","text-left":""},[e("input",{type:"radio",name:"provider",value:"provider-1"}),e("div",{flex:"~ col","min-h-16":"","w-full":"","items-center":"","justify-center":""}," Provider 1 ")])])])])],-1)),t[4]||(t[4]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:ghost":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof r=="function"&&r(f);export{f as default};
assets/{default-njAbr0vI.js → default-Cnlas9Yc.js} RENAMED
@@ -1 +1 @@
1
- import{d as a,c as t,a as e,b as o,u as s,R as _,o as c}from"./index-ZAJnl9Hr.js";import{_ as n}from"./HeaderLink.vue_vue_type_script_setup_true_lang-0l0qp1dE.js";const r={"p-2":""},p={"mb-1":"","w-full":"","gap-2":"","p-2":""},d={"p-5":"",flex:"~ col gap-4"},h=a({__name:"default",setup(i){return(f,m)=>(c(),t("div",r,[e("div",p,[o(n)]),e("div",d,[o(s(_))])]))}});export{h as default};
 
1
+ import{d as a,c as t,a as e,b as o,u as s,R as _,o as c}from"./index-C9syKmat.js";import{_ as n}from"./HeaderLink.vue_vue_type_script_setup_true_lang-C1ZGRUE3.js";const r={"p-2":""},p={"mb-1":"","w-full":"","gap-2":"","p-2":""},d={"p-5":"",flex:"~ col gap-4"},h=a({__name:"default",setup(i){return(f,m)=>(c(),t("div",r,[e("div",p,[o(n)]),e("div",d,[o(s(_))])]))}});export{h as default};
assets/{default-node-huo2b1KH.js → default-node-DST4W3tW.js} RENAMED
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js","assets/index-ZAJnl9Hr.js","assets/index-C4HQu1OJ.css","assets/Stage-vwiukDGA.css"])))=>i.map(i=>d[i]);
2
- import{cq as a}from"./index-ZAJnl9Hr.js";async function u(){const{createRequire:n}=await a(async()=>{const{createRequire:t}=await import("./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js").then(o=>o._);return{createRequire:t}},__vite__mapDeps([0,1,2,3])),{dirname:d,resolve:e}=await a(async()=>{const{dirname:t,resolve:o}=await import("./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js").then(i=>i._);return{dirname:t,resolve:o}},__vite__mapDeps([0,1,2,3])),c=n(import.meta.url),r=d(c.resolve("@duckdb/duckdb-wasm"));return{mvp:{mainModule:e(r,"./duckdb-mvp.wasm"),mainWorker:e(r,"./duckdb-node-mvp.worker.cjs")},eh:{mainModule:e(r,"./duckdb-eh.wasm"),mainWorker:e(r,"./duckdb-node-eh.worker.cjs")}}}export{u as getBundles};
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js","assets/index-C9syKmat.js","assets/index-C4HQu1OJ.css","assets/Stage-vwiukDGA.css"])))=>i.map(i=>d[i]);
2
+ import{cq as a}from"./index-C9syKmat.js";async function u(){const{createRequire:n}=await a(async()=>{const{createRequire:t}=await import("./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js").then(o=>o._);return{createRequire:t}},__vite__mapDeps([0,1,2,3])),{dirname:d,resolve:e}=await a(async()=>{const{dirname:t,resolve:o}=await import("./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js").then(i=>i._);return{dirname:t,resolve:o}},__vite__mapDeps([0,1,2,3])),c=n(import.meta.url),r=d(c.resolve("@duckdb/duckdb-wasm"));return{mvp:{mainModule:e(r,"./duckdb-mvp.wasm"),mainWorker:e(r,"./duckdb-node-mvp.worker.cjs")},eh:{mainModule:e(r,"./duckdb-eh.wasm"),mainWorker:e(r,"./duckdb-node-eh.worker.cjs")}}}export{u as getBundles};
assets/{delays-CK8SNHyb.js → delays-kT-elVPo.js} RENAMED
@@ -1 +1 @@
1
- import{u as v,_,l as k}from"./queues-B9bk8QxX.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js";import"./emotions-DklqG3pM.js";import"./index-yWYB6MdK.js";import{d as b,g as d,c as s,o as l,a as e,b as y,u as x,t as i,F as p,E as f}from"./index-ZAJnl9Hr.js";import"./queue-vhzj6GnO.js";const z={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},h={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},E={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},N=b({__name:"delays",setup(S){const t=d(""),m=d([]),c=d([]),u=d(!1),r=v();r.onHandlerEvent("delay",a=>{c.value.push(a)});function g(){u.value=!0;const a=t.value.split("");for(const n of a)r.add(n);r.add(k),t.value="",u.value=!1}return(a,n)=>(l(),s("div",z,[e("div",w,[y(x(_),{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=o=>t.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:g},null,8,["modelValue"]),e("button",h,i(u.value?"Processing...":"Send"),1)]),e("div",E,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(l(!0),s(p,null,f(m.value,o=>(l(),s("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",V,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(l(!0),s(p,null,f(c.value,o=>(l(),s("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{N as default};
 
1
+ import{u as v,_,l as k}from"./queues-DX8_B84M.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js";import"./emotions-DklqG3pM.js";import"./index-C6reCA2R.js";import{d as b,g as d,c as s,o as l,a as e,b as y,u as x,t as i,F as p,E as f}from"./index-C9syKmat.js";import"./queue-C_pdx0nC.js";const z={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},h={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},E={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},N=b({__name:"delays",setup(S){const t=d(""),m=d([]),c=d([]),u=d(!1),r=v();r.onHandlerEvent("delay",a=>{c.value.push(a)});function g(){u.value=!0;const a=t.value.split("");for(const n of a)r.add(n);r.add(k),t.value="",u.value=!1}return(a,n)=>(l(),s("div",z,[e("div",w,[y(x(_),{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=o=>t.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:g},null,8,["modelValue"]),e("button",h,i(u.value?"Processing...":"Send"),1)]),e("div",E,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(l(!0),s(p,null,f(m.value,o=>(l(),s("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",V,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(l(!0),s(p,null,f(c.value,o=>(l(),s("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{N as default};
assets/{emotions-CZbTrpNx.js → emotions-DBnKXZAu.js} RENAMED
@@ -1 +1 @@
1
- import{a as _,_ as k,l as b}from"./queues-B9bk8QxX.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js";import"./emotions-DklqG3pM.js";import{u as x}from"./queue-vhzj6GnO.js";import{d as z,g as u,c as s,o as t,a as e,b as h,u as w,t as i,F as f,E as m}from"./index-ZAJnl9Hr.js";const E={flex:"","flex-col":"","gap-2":"","p-2":""},M={flex:"","flex-row":"","gap-2":""},V={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},y={"w-full":"",flex:"","flex-row":"","gap-4":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},S={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},D=z({__name:"emotions",setup(B){const l=u(""),p=u([]),r=u([]),d=u(!1),g=x({handlers:[async a=>{r.value.push(a.data)}]}),c=_(g);function v(){d.value=!0;const a=l.value.split("");for(const o of a)c.add(o);c.add(b),l.value="",d.value=!1}return(a,o)=>(t(),s("div",E,[e("div",M,[h(w(k),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=n=>l.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",V,i(d.value?"Processing...":"Send"),1)]),e("div",y,[e("div",Q,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),s(f,null,m(p.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",S,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),s(f,null,m(r.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))])])]))}});export{D as default};
 
1
+ import{a as _,_ as k,l as b}from"./queues-DX8_B84M.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js";import"./emotions-DklqG3pM.js";import{u as x}from"./queue-C_pdx0nC.js";import{d as z,g as u,c as s,o as t,a as e,b as h,u as w,t as i,F as f,E as m}from"./index-C9syKmat.js";const E={flex:"","flex-col":"","gap-2":"","p-2":""},M={flex:"","flex-row":"","gap-2":""},V={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},y={"w-full":"",flex:"","flex-row":"","gap-4":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},S={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},D=z({__name:"emotions",setup(B){const l=u(""),p=u([]),r=u([]),d=u(!1),g=x({handlers:[async a=>{r.value.push(a.data)}]}),c=_(g);function v(){d.value=!0;const a=l.value.split("");for(const o of a)c.add(o);c.add(b),l.value="",d.value=!1}return(a,o)=>(t(),s("div",E,[e("div",M,[h(w(k),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=n=>l.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",V,i(d.value?"Processing...":"Send"),1)]),e("div",y,[e("div",Q,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),s(f,null,m(p.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",S,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),s(f,null,m(r.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))])])]))}});export{D as default};
assets/{filter-message-4XYln8a6.js → filter-message-BtyIiIWg.js} RENAMED
@@ -1 +1 @@
1
- import{d as g,g as u,r as m,c as v,o as _,a as s,b as x,t as d}from"./index-ZAJnl9Hr.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},k={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},w={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V=g({__name:"filter-message",setup(z){const o=u(""),c=u(!1),i=u({content:""});async function f(r){return new Promise(e=>setTimeout(e,r))}async function p(){c.value=!0;const r=o.value.split("");let e;(a=>{a.Literal="literal",a.Special="special"})(e||(e={}));let l="literal",t="";for(const a of r){await f(50);let n=l;a==="<"?n="special":a===">"&&(n="literal"),l==="literal"&&n==="special"&&(i.value.content+=t,t=""),l==="special"&&n==="literal"&&(t=""),l==="literal"&&n==="literal"&&(i.value.content+=a,t=""),l=n}t&&(i.value.content+=t),o.value="",c.value=!1}return(r,e)=>{const l=m("BasicTextarea");return _(),v("div",b,[s("div",S,[x(l,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value=t),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),s("button",k,d(c.value?"Processing...":"Send"),1)]),s("div",w,[e[1]||(e[1]=s("h3",{"font-semibold":""}," Streaming Message ",-1)),s("div",null,d(i.value.content),1)])])}}});export{V as default};
 
1
+ import{d as g,g as u,r as m,c as v,o as _,a as s,b as x,t as d}from"./index-C9syKmat.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},k={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},w={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V=g({__name:"filter-message",setup(z){const o=u(""),c=u(!1),i=u({content:""});async function f(r){return new Promise(e=>setTimeout(e,r))}async function p(){c.value=!0;const r=o.value.split("");let e;(a=>{a.Literal="literal",a.Special="special"})(e||(e={}));let l="literal",t="";for(const a of r){await f(50);let n=l;a==="<"?n="special":a===">"&&(n="literal"),l==="literal"&&n==="special"&&(i.value.content+=t,t=""),l==="special"&&n==="literal"&&(t=""),l==="literal"&&n==="literal"&&(i.value.content+=a,t=""),l=n}t&&(i.value.content+=t),o.value="",c.value=!1}return(r,e)=>{const l=m("BasicTextarea");return _(),v("div",b,[s("div",S,[x(l,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value=t),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),s("button",k,d(c.value?"Processing...":"Send"),1)]),s("div",w,[e[1]||(e[1]=s("h3",{"font-semibold":""}," Streaming Message ",-1)),s("div",null,d(i.value.content),1)])])}}});export{V as default};
assets/{image-zkElonim.js → image-BjD5KQov.js} RENAMED
@@ -1,2 +1,2 @@
1
- import{d as _,g as c,q as y,c as d,o as u,a,k as x,t as v,u as w,_ as b}from"./index-ZAJnl9Hr.js";const h={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],k={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},R=_({__name:"image",setup(D){const p=c(),n=c(""),{copy:g}=y({source:n});async function m(r){return new Promise((e,o)=>{const t=new FileReader;t.onload=s=>{var l,i;e(((i=(l=s.target)==null?void 0:l.result)==null?void 0:i.toString())||"")},t.onerror=s=>{o(s)},t.readAsDataURL(r)})}async function f(r){var t;const o=(t=r.target.files)==null?void 0:t[0];if(o){p.value=o;const s=await m(o);n.value=s}}return(r,e)=>(u(),d("div",null,[a("label",h,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),n.value?(u(),d("div",C,[a("img",{src:n.value,alt:"Uploaded Image","w-100":""},null,8,U),a("pre",k," "+v(n.value)+`
2
  `,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>w(g)())}," Copy Data URL ")])):x("",!0)]))}}),B=b(R,[["__scopeId","data-v-7edd53e6"]]);export{B as default};
 
1
+ import{d as _,g as c,q as y,c as d,o as u,a,k as x,t as v,u as w,_ as b}from"./index-C9syKmat.js";const h={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],k={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},R=_({__name:"image",setup(D){const p=c(),n=c(""),{copy:g}=y({source:n});async function m(r){return new Promise((e,o)=>{const t=new FileReader;t.onload=s=>{var l,i;e(((i=(l=s.target)==null?void 0:l.result)==null?void 0:i.toString())||"")},t.onerror=s=>{o(s)},t.readAsDataURL(r)})}async function f(r){var t;const o=(t=r.target.files)==null?void 0:t[0];if(o){p.value=o;const s=await m(o);n.value=s}}return(r,e)=>(u(),d("div",null,[a("label",h,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),n.value?(u(),d("div",C,[a("img",{src:n.value,alt:"Uploaded Image","w-100":""},null,8,U),a("pre",k," "+v(n.value)+`
2
  `,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>w(g)())}," Copy Data URL ")])):x("",!0)]))}}),B=b(R,[["__scopeId","data-v-7edd53e6"]]);export{B as default};
assets/{index-CRBCy5uG.js → index-B3VU4agt.js} RENAMED
@@ -1 +1 @@
1
- import{d as f,C as g,x as p,D as v,c as t,o as n,a as e,u as r,F as s,E as m,b,p as k,s as x,t as _,G as h}from"./index-ZAJnl9Hr.js";import"./emotions-DklqG3pM.js";import{u as w}from"./providers-VFCWZz0i.js";import{b as a}from"./route-block-B_A1xBdJ.js";const y={flex:"~ row","items-center":"","gap-2":""},C={grid:"~ cols-3 gap-2"},L={flex:"~ col 1","gap-1.5":""},z={"p-2":""},R={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},S={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},A=f({__name:"index",setup(F){const l=g(),d=w(),{configuredForOpenRouter:u}=p(d),c=v(()=>[{id:"openrouter-ai",name:"OpenRouter",icon:"i-lobe-icons:openrouter",to:"/settings/providers/openrouter",configured:u.value},{id:"openai",name:"OpenAI",icon:"i-lobe-icons:openai",to:"/settings/providers/openai",configured:!1},{id:"ollama-ai",name:"Ollama",icon:"i-lobe-icons:ollama",to:"/settings/providers/ollama",configured:!1},{id:"vllm",name:"vLLM",icon:"i-lobe-icons:vllm-color",to:"/settings/providers/vllm",configured:!1},{id:"elevenlabs",name:"ElevenLabs",icon:"i-simple-icons:elevenlabs",to:"/settings/providers/elevenlabs",configured:!1},{id:"xai",name:"xAI",icon:"i-lobe-icons:xai",to:"/settings/providers/xai",configured:!1},{id:"deepseek",name:"DeepSeek",icon:"i-lobe-icons:deepseek-color",to:"/settings/providers/deepseek",configured:!1},{id:"together-ai",name:"Together.ai",icon:"i-lobe-icons:together-color",to:"/settings/providers/together",configured:!1},{id:"novita-ai",name:"Novita",icon:"i-lobe-icons:novita-color",to:"/settings/providers/novita",configured:!1},{id:"fireworks-ai",name:"Fireworks.ai",icon:"i-lobe-icons:fireworks",to:"/settings/providers/fireworks",configured:!1},{id:"cloudflare-workers-ai",name:"Cloudflare Workers AI",icon:"i-lobe-icons:cloudflare-color",to:"/settings/providers/cloudflare",configured:!1},{id:"mistral-ai",name:"Mistral",icon:"i-lobe-icons:mistral-color",to:"/settings/providers/mistral",configured:!1},{id:"moonshot-ai",name:"Moonshot AI",icon:"i-lobe-icons:moonshot",to:"/settings/providers/moonshot",configured:!1}]);return(I,o)=>(n(),t(s,null,[e("div",y,[e("button",{onClick:o[0]||(o[0]=i=>r(l).back())},o[1]||(o[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),o[2]||(o[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),e("div",{"text-3xl":"","font-semibold":""}," Providers ")],-1))]),e("div",C,[(n(!0),t(s,null,m(c.value,i=>(n(),t("div",{key:i.id,bg:"neutral-300/50 dark:neutral-600","w-full":"","of-hidden":"","rounded-xl":"",flex:"~ col 1"},[b(r(h),{to:i.to,bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","h-full":"","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-5":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0"},{default:k(()=>[e("div",L,[e("div",{class:x([i.icon,"provider-icon size-10"]),transition:"filter duration-250 ease-in-out"},null,2),e("div",null,_(i.name),1)])]),_:2},1032,["to"]),e("div",z,[i.configured?(n(),t("div",R)):(n(),t("div",S))])]))),128))]),o[3]||(o[3]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:brain":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof a=="function"&&a(A);export{A as default};
 
1
+ import{d as f,C as g,x as p,D as v,c as t,o as n,a as e,u as r,F as s,E as m,b,p as k,s as x,t as _,G as h}from"./index-C9syKmat.js";import"./emotions-DklqG3pM.js";import{u as w}from"./providers-kZHh7EE9.js";import{b as a}from"./route-block-B_A1xBdJ.js";const y={flex:"~ row","items-center":"","gap-2":""},C={grid:"~ cols-3 gap-2"},L={flex:"~ col 1","gap-1.5":""},z={"p-2":""},R={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},S={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},A=f({__name:"index",setup(F){const l=g(),d=w(),{configuredForOpenRouter:u}=p(d),c=v(()=>[{id:"openrouter-ai",name:"OpenRouter",icon:"i-lobe-icons:openrouter",to:"/settings/providers/openrouter",configured:u.value},{id:"openai",name:"OpenAI",icon:"i-lobe-icons:openai",to:"/settings/providers/openai",configured:!1},{id:"ollama-ai",name:"Ollama",icon:"i-lobe-icons:ollama",to:"/settings/providers/ollama",configured:!1},{id:"vllm",name:"vLLM",icon:"i-lobe-icons:vllm-color",to:"/settings/providers/vllm",configured:!1},{id:"elevenlabs",name:"ElevenLabs",icon:"i-simple-icons:elevenlabs",to:"/settings/providers/elevenlabs",configured:!1},{id:"xai",name:"xAI",icon:"i-lobe-icons:xai",to:"/settings/providers/xai",configured:!1},{id:"deepseek",name:"DeepSeek",icon:"i-lobe-icons:deepseek-color",to:"/settings/providers/deepseek",configured:!1},{id:"together-ai",name:"Together.ai",icon:"i-lobe-icons:together-color",to:"/settings/providers/together",configured:!1},{id:"novita-ai",name:"Novita",icon:"i-lobe-icons:novita-color",to:"/settings/providers/novita",configured:!1},{id:"fireworks-ai",name:"Fireworks.ai",icon:"i-lobe-icons:fireworks",to:"/settings/providers/fireworks",configured:!1},{id:"cloudflare-workers-ai",name:"Cloudflare Workers AI",icon:"i-lobe-icons:cloudflare-color",to:"/settings/providers/cloudflare",configured:!1},{id:"mistral-ai",name:"Mistral",icon:"i-lobe-icons:mistral-color",to:"/settings/providers/mistral",configured:!1},{id:"moonshot-ai",name:"Moonshot AI",icon:"i-lobe-icons:moonshot",to:"/settings/providers/moonshot",configured:!1}]);return(I,o)=>(n(),t(s,null,[e("div",y,[e("button",{onClick:o[0]||(o[0]=i=>r(l).back())},o[1]||(o[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),o[2]||(o[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),e("div",{"text-3xl":"","font-semibold":""}," Providers ")],-1))]),e("div",C,[(n(!0),t(s,null,m(c.value,i=>(n(),t("div",{key:i.id,bg:"neutral-300/50 dark:neutral-600","w-full":"","of-hidden":"","rounded-xl":"",flex:"~ col 1"},[b(r(h),{to:i.to,bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","h-full":"","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-5":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0"},{default:k(()=>[e("div",L,[e("div",{class:x([i.icon,"provider-icon size-10"]),transition:"filter duration-250 ease-in-out"},null,2),e("div",null,_(i.name),1)])]),_:2},1032,["to"]),e("div",z,[i.configured?(n(),t("div",R)):(n(),t("div",S))])]))),128))]),o[3]||(o[3]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:brain":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof a=="function"&&a(A);export{A as default};
assets/{index-DOnbpi38.js → index-Bb05Rllo.js} RENAMED
@@ -1 +1 @@
1
- import{d as r,C as a,c as l,o as s,a as t,u as i,F as u}from"./index-ZAJnl9Hr.js";import{b as n}from"./route-block-B_A1xBdJ.js";const d={flex:"~ row","items-center":"","gap-2":""},f=r({__name:"index",setup(m){const o=a();return(p,e)=>(s(),l(u,null,[t("div",d,[t("button",{onClick:e[0]||(e[0]=x=>i(o).back())},e[1]||(e[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e[2]||(e[2]=t("h1",{relative:""},[t("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[t("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),t("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),e[3]||(e[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:paintbrush":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(f);export{f as default};
 
1
+ import{d as r,C as a,c as l,o as s,a as t,u as i,F as u}from"./index-C9syKmat.js";import{b as n}from"./route-block-B_A1xBdJ.js";const d={flex:"~ row","items-center":"","gap-2":""},f=r({__name:"index",setup(m){const o=a();return(p,e)=>(s(),l(u,null,[t("div",d,[t("button",{onClick:e[0]||(e[0]=x=>i(o).back())},e[1]||(e[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e[2]||(e[2]=t("h1",{relative:""},[t("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[t("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),t("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),e[3]||(e[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:paintbrush":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(f);export{f as default};
assets/{index-yWYB6MdK.js → index-C6reCA2R.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{ch as getAugmentedNamespace}from"./index-ZAJnl9Hr.js";var dist={},ortWeb_min={exports:{}};const backends={},backendsSortedByPriority=[],registerBackend=(D,u,b)=>{if(u&&typeof u.init=="function"&&typeof u.createSessionHandler=="function"){const g=backends[D];if(g===void 0)backends[D]={backend:u,priority:b};else{if(g.priority>b)return;if(g.priority===b&&g.backend!==u)throw new Error(`cannot register backend "${D}" using priority ${b}`)}if(b>=0){const p=backendsSortedByPriority.indexOf(D);p!==-1&&backendsSortedByPriority.splice(p,1);for(let h=0;h<backendsSortedByPriority.length;h++)if(backends[backendsSortedByPriority[h]].priority<=b){backendsSortedByPriority.splice(h,0,D);return}backendsSortedByPriority.push(D)}return}throw new TypeError("not a valid backend")},resolveBackend=async D=>{const u=D.length===0?backendsSortedByPriority:D,b=[];for(const g of u){const p=backends[g];if(p){if(p.initialized)return p.backend;if(p.aborted)continue;const h=!!p.initPromise;try{return h||(p.initPromise=p.backend.init()),await p.initPromise,p.initialized=!0,p.backend}catch(o){h||b.push({name:g,err:o}),p.aborted=!0}finally{delete p.initPromise}}}throw new Error(`no available backend found. ERR: ${b.map(g=>`[${g.name}] ${g.err}`).join(", ")}`)};class EnvImpl{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(u){if(u!==void 0){if(typeof u!="string"||["verbose","info","warning","error","fatal"].indexOf(u)===-1)throw new Error(`Unsupported logging level: ${u}`);this.logLevelInternal=u}}get logLevel(){return this.logLevelInternal}}const env=new EnvImpl,isBigInt64ArrayAvailable=typeof BigInt64Array<"u"&&typeof BigInt64Array.from=="function",isBigUint64ArrayAvailable=typeof BigUint64Array<"u"&&typeof BigUint64Array.from=="function",NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);isBigInt64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("int64",BigInt64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigInt64Array,"int64"));isBigUint64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("uint64",BigUint64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigUint64Array,"uint64"));const calculateSize=D=>{let u=1;for(let b=0;b<D.length;b++){const g=D[b];if(typeof g!="number"||!Number.isSafeInteger(g))throw new TypeError(`dims[${b}] must be an integer, got: ${g}`);if(g<0)throw new RangeError(`dims[${b}] must be a non-negative integer, got: ${g}`);u*=g}return u};let Tensor$1=class at{constructor(u,b,g){let p,h,o;if(typeof u=="string")if(p=u,o=g,u==="string"){if(!Array.isArray(b))throw new TypeError("A string tensor's data must be a string array.");h=b}else{const f=NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.get(u);if(f===void 0)throw new TypeError(`Unsupported tensor type: ${u}.`);if(Array.isArray(b))h=f.from(b);else if(b instanceof f)h=b;else throw new TypeError(`A ${p} tensor's data must be type of ${f}`)}else if(o=b,Array.isArray(u)){if(u.length===0)throw new TypeError("Tensor type cannot be inferred from an empty array.");const f=typeof u[0];if(f==="string")p="string",h=u;else if(f==="boolean")p="bool",h=Uint8Array.from(u);else throw new TypeError(`Invalid element type of data array: ${f}.`)}else{const f=NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.get(u.constructor);if(f===void 0)throw new TypeError(`Unsupported type for tensor data: ${u.constructor}.`);p=f,h=u}if(o===void 0)o=[h.length];else if(!Array.isArray(o))throw new TypeError("A tensor's dims must be a number array");const c=calculateSize(o);if(c!==h.length)throw new Error(`Tensor's size(${c}) does not match data length(${h.length}).`);this.dims=o,this.type=p,this.data=h,this.size=c}static bufferToTensor(u,b){if(u===void 0)throw new Error("Image buffer must be defined");if(b.height===void 0||b.width===void 0)throw new Error("Image height and width must be defined");const{height:g,width:p}=b,h=b.norm;let o,c;h===void 0||h.mean===void 0?o=255:o=h.mean,h===void 0||h.bias===void 0?c=0:c=h.bias;const f=b.bitmapFormat!==void 0?b.bitmapFormat:"RGBA",s=b.tensorFormat!==void 0&&b.tensorFormat!==void 0?b.tensorFormat:"RGB",i=g*p,t=s==="RGBA"?new Float32Array(i*4):new Float32Array(i*3);let e=4,n=0,r=1,a=2,l=3,d=0,m=i,y=i*2,v=-1;f==="RGB"&&(e=3,n=0,r=1,a=2,l=-1),s==="RGBA"?v=i*3:s==="RBG"?(d=0,y=i,m=i*2):s==="BGR"&&(y=0,m=i,d=i*2);for(let T=0;T<i;T++,n+=e,a+=e,r+=e,l+=e)t[d++]=(u[n]+c)/o,t[m++]=(u[r]+c)/o,t[y++]=(u[a]+c)/o,v!==-1&&l!==-1&&(t[v++]=(u[l]+c)/o);return s==="RGBA"?new at("float32",t,[1,4,g,p]):new at("float32",t,[1,3,g,p])}static async fromImage(u,b){const g=typeof HTMLImageElement<"u"&&u instanceof HTMLImageElement,p=typeof ImageData<"u"&&u instanceof ImageData,h=typeof ImageBitmap<"u"&&u instanceof ImageBitmap,o=typeof String<"u"&&(u instanceof String||typeof u=="string");let c,f={};if(g){const s=document.createElement("canvas"),i=s.getContext("2d");if(i!=null){let t=u.naturalHeight,e=u.naturalWidth;if(b!==void 0&&b.resizedHeight!==void 0&&b.resizedWidth!==void 0&&(t=b.resizedHeight,e=b.resizedWidth),b!==void 0){if(f=b,b.tensorFormat!==void 0)throw new Error("Image input config format must be RGBA for HTMLImageElement");if(f.tensorFormat="RGBA",b.height!==void 0&&b.height!==t)throw new Error("Image input config height doesn't match HTMLImageElement height");if(f.height=t,b.width!==void 0&&b.width!==e)throw new Error("Image input config width doesn't match HTMLImageElement width");f.width=e}else f.tensorFormat="RGBA",f.height=t,f.width=e;s.width=e,s.height=t,i.drawImage(u,0,0,e,t),c=i.getImageData(0,0,e,t).data}else throw new Error("Can not access image data")}else if(p){const s="RGBA";let i,t;if(b!==void 0&&b.resizedWidth!==void 0&&b.resizedHeight!==void 0?(i=b.resizedHeight,t=b.resizedWidth):(i=u.height,t=u.width),b!==void 0){if(f=b,b.bitmapFormat!==void 0&&b.bitmapFormat!==s)throw new Error("Image input config format must be RGBA for ImageData");f.bitmapFormat="RGBA"}else f.bitmapFormat="RGBA";if(f.height=i,f.width=t,b!==void 0){const e=document.createElement("canvas");e.width=t,e.height=i;const n=e.getContext("2d");if(n!=null)n.putImageData(u,0,0),c=n.getImageData(0,0,t,i).data;else throw new Error("Can not access image data")}else c=u.data}else if(h){if(b===void 0)throw new Error("Please provide image config with format for Imagebitmap");if(b.bitmapFormat!==void 0)throw new Error("Image input config format must be defined for ImageBitmap");const s=document.createElement("canvas").getContext("2d");if(s!=null){const i=u.height,t=u.width;if(s.drawImage(u,0,0,t,i),c=s.getImageData(0,0,t,i).data,b!==void 0){if(b.height!==void 0&&b.height!==i)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=i,b.width!==void 0&&b.width!==t)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t}else f.height=i,f.width=t;return at.bufferToTensor(c,f)}else throw new Error("Can not access image data")}else{if(o)return new Promise((s,i)=>{const t=document.createElement("canvas"),e=t.getContext("2d");if(!u||!e)return i();const n=new Image;n.crossOrigin="Anonymous",n.src=u,n.onload=()=>{t.width=n.width,t.height=n.height,e.drawImage(n,0,0,t.width,t.height);const r=e.getImageData(0,0,t.width,t.height);if(b!==void 0){if(b.height!==void 0&&b.height!==t.height)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=t.height,b.width!==void 0&&b.width!==t.width)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t.width}else f.height=t.height,f.width=t.width;s(at.bufferToTensor(r.data,f))}});throw new Error("Input data provided is not supported - aborted tensor creation")}if(c!==void 0)return at.bufferToTensor(c,f);throw new Error("Input data provided is not supported - aborted tensor creation")}toImageData(u){var b,g;const p=document.createElement("canvas").getContext("2d");let h;if(p!=null){const o=this.dims[3],c=this.dims[2],f=this.dims[1],s=u!==void 0&&u.format!==void 0?u.format:"RGB",i=u!==void 0&&((b=u.norm)===null||b===void 0?void 0:b.mean)!==void 0?u.norm.mean:255,t=u!==void 0&&((g=u.norm)===null||g===void 0?void 0:g.bias)!==void 0?u.norm.bias:0,e=c*o;if(u!==void 0){if(u.height!==void 0&&u.height!==c)throw new Error("Image output config height doesn't match tensor height");if(u.width!==void 0&&u.width!==o)throw new Error("Image output config width doesn't match tensor width");if(u.format!==void 0&&f===4&&u.format!=="RGBA"||f===3&&u.format!=="RGB"&&u.format!=="BGR")throw new Error("Tensor format doesn't match input tensor dims")}const n=4;let r=0,a=1,l=2,d=3,m=0,y=e,v=e*2,_=-1;s==="RGBA"?(m=0,y=e,v=e*2,_=e*3):s==="RGB"?(m=0,y=e,v=e*2):s==="RBG"&&(m=0,v=e,y=e*2),h=p.createImageData(o,c);for(let T=0;T<c*o;r+=n,a+=n,l+=n,d+=n,T++)h.data[r]=(this.data[m++]-t)*i,h.data[a]=(this.data[y++]-t)*i,h.data[l]=(this.data[v++]-t)*i,h.data[d]=_===-1?255:(this.data[_++]-t)*i}else throw new Error("Can not access image data");return h}reshape(u){return new at(this.type,this.data,u)}};const Tensor=Tensor$1;let InferenceSession$1=class cn{constructor(u){this.handler=u}async run(u,b,g){const p={};let h={};if(typeof u!="object"||u===null||u instanceof Tensor||Array.isArray(u))throw new TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let o=!0;if(typeof b=="object"){if(b===null)throw new TypeError("Unexpected argument[1]: cannot be null.");if(b instanceof Tensor)throw new TypeError("'fetches' cannot be a Tensor");if(Array.isArray(b)){if(b.length===0)throw new TypeError("'fetches' cannot be an empty array.");o=!1;for(const s of b){if(typeof s!="string")throw new TypeError("'fetches' must be a string array or an object.");if(this.outputNames.indexOf(s)===-1)throw new RangeError(`'fetches' contains invalid output name: ${s}.`);p[s]=null}if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else{let s=!1;const i=Object.getOwnPropertyNames(b);for(const t of this.outputNames)if(i.indexOf(t)!==-1){const e=b[t];(e===null||e instanceof Tensor)&&(s=!0,o=!1,p[t]=e)}if(s){if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else h=b}}else if(typeof b<"u")throw new TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(const s of this.inputNames)if(typeof u[s]>"u")throw new Error(`input '${s}' is missing in 'feeds'.`);if(o)for(const s of this.outputNames)p[s]=null;const c=await this.handler.run(u,p,h),f={};for(const s in c)Object.hasOwnProperty.call(c,s)&&(f[s]=new Tensor(c[s].type,c[s].data,c[s].dims));return f}static async create(u,b,g,p){let h,o={};if(typeof u=="string"){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof Uint8Array){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer){const t=u;let e=0,n=u.byteLength;if(typeof b=="object"&&b!==null)o=b;else if(typeof b=="number"){if(e=b,!Number.isSafeInteger(e))throw new RangeError("'byteOffset' must be an integer.");if(e<0||e>=t.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${t.byteLength}).`);if(n=u.byteLength-e,typeof g=="number"){if(n=g,!Number.isSafeInteger(n))throw new RangeError("'byteLength' must be an integer.");if(n<=0||e+n>t.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${t.byteLength-e}].`);if(typeof p=="object"&&p!==null)o=p;else if(typeof p<"u")throw new TypeError("'options' must be an object.")}else if(typeof g<"u")throw new TypeError("'byteLength' must be a number.")}else if(typeof b<"u")throw new TypeError("'options' must be an object.");h=new Uint8Array(t,e,n)}else throw new TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");const f=(o.executionProviders||[]).map(t=>typeof t=="string"?t:t.name),i=await(await resolveBackend(f)).createSessionHandler(h,o);return new cn(i)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}};const InferenceSession=InferenceSession$1,lib=Object.freeze(Object.defineProperty({__proto__:null,InferenceSession,Tensor,env,registerBackend},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(lib);/*!
2
  * ONNX Runtime Web v1.14.0
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
  * Licensed under the MIT License.
 
1
+ import{ch as getAugmentedNamespace}from"./index-C9syKmat.js";var dist={},ortWeb_min={exports:{}};const backends={},backendsSortedByPriority=[],registerBackend=(D,u,b)=>{if(u&&typeof u.init=="function"&&typeof u.createSessionHandler=="function"){const g=backends[D];if(g===void 0)backends[D]={backend:u,priority:b};else{if(g.priority>b)return;if(g.priority===b&&g.backend!==u)throw new Error(`cannot register backend "${D}" using priority ${b}`)}if(b>=0){const p=backendsSortedByPriority.indexOf(D);p!==-1&&backendsSortedByPriority.splice(p,1);for(let h=0;h<backendsSortedByPriority.length;h++)if(backends[backendsSortedByPriority[h]].priority<=b){backendsSortedByPriority.splice(h,0,D);return}backendsSortedByPriority.push(D)}return}throw new TypeError("not a valid backend")},resolveBackend=async D=>{const u=D.length===0?backendsSortedByPriority:D,b=[];for(const g of u){const p=backends[g];if(p){if(p.initialized)return p.backend;if(p.aborted)continue;const h=!!p.initPromise;try{return h||(p.initPromise=p.backend.init()),await p.initPromise,p.initialized=!0,p.backend}catch(o){h||b.push({name:g,err:o}),p.aborted=!0}finally{delete p.initPromise}}}throw new Error(`no available backend found. ERR: ${b.map(g=>`[${g.name}] ${g.err}`).join(", ")}`)};class EnvImpl{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(u){if(u!==void 0){if(typeof u!="string"||["verbose","info","warning","error","fatal"].indexOf(u)===-1)throw new Error(`Unsupported logging level: ${u}`);this.logLevelInternal=u}}get logLevel(){return this.logLevelInternal}}const env=new EnvImpl,isBigInt64ArrayAvailable=typeof BigInt64Array<"u"&&typeof BigInt64Array.from=="function",isBigUint64ArrayAvailable=typeof BigUint64Array<"u"&&typeof BigUint64Array.from=="function",NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);isBigInt64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("int64",BigInt64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigInt64Array,"int64"));isBigUint64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("uint64",BigUint64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigUint64Array,"uint64"));const calculateSize=D=>{let u=1;for(let b=0;b<D.length;b++){const g=D[b];if(typeof g!="number"||!Number.isSafeInteger(g))throw new TypeError(`dims[${b}] must be an integer, got: ${g}`);if(g<0)throw new RangeError(`dims[${b}] must be a non-negative integer, got: ${g}`);u*=g}return u};let Tensor$1=class at{constructor(u,b,g){let p,h,o;if(typeof u=="string")if(p=u,o=g,u==="string"){if(!Array.isArray(b))throw new TypeError("A string tensor's data must be a string array.");h=b}else{const f=NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.get(u);if(f===void 0)throw new TypeError(`Unsupported tensor type: ${u}.`);if(Array.isArray(b))h=f.from(b);else if(b instanceof f)h=b;else throw new TypeError(`A ${p} tensor's data must be type of ${f}`)}else if(o=b,Array.isArray(u)){if(u.length===0)throw new TypeError("Tensor type cannot be inferred from an empty array.");const f=typeof u[0];if(f==="string")p="string",h=u;else if(f==="boolean")p="bool",h=Uint8Array.from(u);else throw new TypeError(`Invalid element type of data array: ${f}.`)}else{const f=NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.get(u.constructor);if(f===void 0)throw new TypeError(`Unsupported type for tensor data: ${u.constructor}.`);p=f,h=u}if(o===void 0)o=[h.length];else if(!Array.isArray(o))throw new TypeError("A tensor's dims must be a number array");const c=calculateSize(o);if(c!==h.length)throw new Error(`Tensor's size(${c}) does not match data length(${h.length}).`);this.dims=o,this.type=p,this.data=h,this.size=c}static bufferToTensor(u,b){if(u===void 0)throw new Error("Image buffer must be defined");if(b.height===void 0||b.width===void 0)throw new Error("Image height and width must be defined");const{height:g,width:p}=b,h=b.norm;let o,c;h===void 0||h.mean===void 0?o=255:o=h.mean,h===void 0||h.bias===void 0?c=0:c=h.bias;const f=b.bitmapFormat!==void 0?b.bitmapFormat:"RGBA",s=b.tensorFormat!==void 0&&b.tensorFormat!==void 0?b.tensorFormat:"RGB",i=g*p,t=s==="RGBA"?new Float32Array(i*4):new Float32Array(i*3);let e=4,n=0,r=1,a=2,l=3,d=0,m=i,y=i*2,v=-1;f==="RGB"&&(e=3,n=0,r=1,a=2,l=-1),s==="RGBA"?v=i*3:s==="RBG"?(d=0,y=i,m=i*2):s==="BGR"&&(y=0,m=i,d=i*2);for(let T=0;T<i;T++,n+=e,a+=e,r+=e,l+=e)t[d++]=(u[n]+c)/o,t[m++]=(u[r]+c)/o,t[y++]=(u[a]+c)/o,v!==-1&&l!==-1&&(t[v++]=(u[l]+c)/o);return s==="RGBA"?new at("float32",t,[1,4,g,p]):new at("float32",t,[1,3,g,p])}static async fromImage(u,b){const g=typeof HTMLImageElement<"u"&&u instanceof HTMLImageElement,p=typeof ImageData<"u"&&u instanceof ImageData,h=typeof ImageBitmap<"u"&&u instanceof ImageBitmap,o=typeof String<"u"&&(u instanceof String||typeof u=="string");let c,f={};if(g){const s=document.createElement("canvas"),i=s.getContext("2d");if(i!=null){let t=u.naturalHeight,e=u.naturalWidth;if(b!==void 0&&b.resizedHeight!==void 0&&b.resizedWidth!==void 0&&(t=b.resizedHeight,e=b.resizedWidth),b!==void 0){if(f=b,b.tensorFormat!==void 0)throw new Error("Image input config format must be RGBA for HTMLImageElement");if(f.tensorFormat="RGBA",b.height!==void 0&&b.height!==t)throw new Error("Image input config height doesn't match HTMLImageElement height");if(f.height=t,b.width!==void 0&&b.width!==e)throw new Error("Image input config width doesn't match HTMLImageElement width");f.width=e}else f.tensorFormat="RGBA",f.height=t,f.width=e;s.width=e,s.height=t,i.drawImage(u,0,0,e,t),c=i.getImageData(0,0,e,t).data}else throw new Error("Can not access image data")}else if(p){const s="RGBA";let i,t;if(b!==void 0&&b.resizedWidth!==void 0&&b.resizedHeight!==void 0?(i=b.resizedHeight,t=b.resizedWidth):(i=u.height,t=u.width),b!==void 0){if(f=b,b.bitmapFormat!==void 0&&b.bitmapFormat!==s)throw new Error("Image input config format must be RGBA for ImageData");f.bitmapFormat="RGBA"}else f.bitmapFormat="RGBA";if(f.height=i,f.width=t,b!==void 0){const e=document.createElement("canvas");e.width=t,e.height=i;const n=e.getContext("2d");if(n!=null)n.putImageData(u,0,0),c=n.getImageData(0,0,t,i).data;else throw new Error("Can not access image data")}else c=u.data}else if(h){if(b===void 0)throw new Error("Please provide image config with format for Imagebitmap");if(b.bitmapFormat!==void 0)throw new Error("Image input config format must be defined for ImageBitmap");const s=document.createElement("canvas").getContext("2d");if(s!=null){const i=u.height,t=u.width;if(s.drawImage(u,0,0,t,i),c=s.getImageData(0,0,t,i).data,b!==void 0){if(b.height!==void 0&&b.height!==i)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=i,b.width!==void 0&&b.width!==t)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t}else f.height=i,f.width=t;return at.bufferToTensor(c,f)}else throw new Error("Can not access image data")}else{if(o)return new Promise((s,i)=>{const t=document.createElement("canvas"),e=t.getContext("2d");if(!u||!e)return i();const n=new Image;n.crossOrigin="Anonymous",n.src=u,n.onload=()=>{t.width=n.width,t.height=n.height,e.drawImage(n,0,0,t.width,t.height);const r=e.getImageData(0,0,t.width,t.height);if(b!==void 0){if(b.height!==void 0&&b.height!==t.height)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=t.height,b.width!==void 0&&b.width!==t.width)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t.width}else f.height=t.height,f.width=t.width;s(at.bufferToTensor(r.data,f))}});throw new Error("Input data provided is not supported - aborted tensor creation")}if(c!==void 0)return at.bufferToTensor(c,f);throw new Error("Input data provided is not supported - aborted tensor creation")}toImageData(u){var b,g;const p=document.createElement("canvas").getContext("2d");let h;if(p!=null){const o=this.dims[3],c=this.dims[2],f=this.dims[1],s=u!==void 0&&u.format!==void 0?u.format:"RGB",i=u!==void 0&&((b=u.norm)===null||b===void 0?void 0:b.mean)!==void 0?u.norm.mean:255,t=u!==void 0&&((g=u.norm)===null||g===void 0?void 0:g.bias)!==void 0?u.norm.bias:0,e=c*o;if(u!==void 0){if(u.height!==void 0&&u.height!==c)throw new Error("Image output config height doesn't match tensor height");if(u.width!==void 0&&u.width!==o)throw new Error("Image output config width doesn't match tensor width");if(u.format!==void 0&&f===4&&u.format!=="RGBA"||f===3&&u.format!=="RGB"&&u.format!=="BGR")throw new Error("Tensor format doesn't match input tensor dims")}const n=4;let r=0,a=1,l=2,d=3,m=0,y=e,v=e*2,_=-1;s==="RGBA"?(m=0,y=e,v=e*2,_=e*3):s==="RGB"?(m=0,y=e,v=e*2):s==="RBG"&&(m=0,v=e,y=e*2),h=p.createImageData(o,c);for(let T=0;T<c*o;r+=n,a+=n,l+=n,d+=n,T++)h.data[r]=(this.data[m++]-t)*i,h.data[a]=(this.data[y++]-t)*i,h.data[l]=(this.data[v++]-t)*i,h.data[d]=_===-1?255:(this.data[_++]-t)*i}else throw new Error("Can not access image data");return h}reshape(u){return new at(this.type,this.data,u)}};const Tensor=Tensor$1;let InferenceSession$1=class cn{constructor(u){this.handler=u}async run(u,b,g){const p={};let h={};if(typeof u!="object"||u===null||u instanceof Tensor||Array.isArray(u))throw new TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let o=!0;if(typeof b=="object"){if(b===null)throw new TypeError("Unexpected argument[1]: cannot be null.");if(b instanceof Tensor)throw new TypeError("'fetches' cannot be a Tensor");if(Array.isArray(b)){if(b.length===0)throw new TypeError("'fetches' cannot be an empty array.");o=!1;for(const s of b){if(typeof s!="string")throw new TypeError("'fetches' must be a string array or an object.");if(this.outputNames.indexOf(s)===-1)throw new RangeError(`'fetches' contains invalid output name: ${s}.`);p[s]=null}if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else{let s=!1;const i=Object.getOwnPropertyNames(b);for(const t of this.outputNames)if(i.indexOf(t)!==-1){const e=b[t];(e===null||e instanceof Tensor)&&(s=!0,o=!1,p[t]=e)}if(s){if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else h=b}}else if(typeof b<"u")throw new TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(const s of this.inputNames)if(typeof u[s]>"u")throw new Error(`input '${s}' is missing in 'feeds'.`);if(o)for(const s of this.outputNames)p[s]=null;const c=await this.handler.run(u,p,h),f={};for(const s in c)Object.hasOwnProperty.call(c,s)&&(f[s]=new Tensor(c[s].type,c[s].data,c[s].dims));return f}static async create(u,b,g,p){let h,o={};if(typeof u=="string"){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof Uint8Array){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer){const t=u;let e=0,n=u.byteLength;if(typeof b=="object"&&b!==null)o=b;else if(typeof b=="number"){if(e=b,!Number.isSafeInteger(e))throw new RangeError("'byteOffset' must be an integer.");if(e<0||e>=t.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${t.byteLength}).`);if(n=u.byteLength-e,typeof g=="number"){if(n=g,!Number.isSafeInteger(n))throw new RangeError("'byteLength' must be an integer.");if(n<=0||e+n>t.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${t.byteLength-e}].`);if(typeof p=="object"&&p!==null)o=p;else if(typeof p<"u")throw new TypeError("'options' must be an object.")}else if(typeof g<"u")throw new TypeError("'byteLength' must be a number.")}else if(typeof b<"u")throw new TypeError("'options' must be an object.");h=new Uint8Array(t,e,n)}else throw new TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");const f=(o.executionProviders||[]).map(t=>typeof t=="string"?t:t.name),i=await(await resolveBackend(f)).createSessionHandler(h,o);return new cn(i)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}};const InferenceSession=InferenceSession$1,lib=Object.freeze(Object.defineProperty({__proto__:null,InferenceSession,Tensor,env,registerBackend},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(lib);/*!
2
  * ONNX Runtime Web v1.14.0
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
  * Licensed under the MIT License.
assets/{index-ZAJnl9Hr.js → index-C9syKmat.js} RENAMED
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-njAbr0vI.js","assets/HeaderLink.vue_vue_type_script_setup_true_lang-0l0qp1dE.js","assets/index-DYLqqjTr.js","assets/Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js","assets/Stage-vwiukDGA.css","assets/emotions-DklqG3pM.js","assets/MobileInteractiveArea.vue_vue_type_script_setup_true_lang-CvwJdt6x.js","assets/queue-vhzj6GnO.js","assets/queues-B9bk8QxX.js","assets/Collapsable.vue_vue_type_script_setup_true_lang-5B91jQYE.js","assets/index-yWYB6MdK.js","assets/providers-VFCWZz0i.js","assets/MobileInteractiveArea-BA62G2rz.css","assets/route-block-B_A1xBdJ.js","assets/index-BKdPP9lW.css","assets/image-zkElonim.js","assets/image-BhuwcwI9.css","assets/queue-DzzOMrys.js","assets/index-B6lcf5Ka.js","assets/index-DpHRHqJl.js","assets/index-DSZduMTj.js","assets/consciousness-DhuPQjgL.js","assets/index-CRBCy5uG.js","assets/openrouter-DPj3nOdo.js","assets/index-DOnbpi38.js","assets/delays-CK8SNHyb.js","assets/emotions-CZbTrpNx.js","assets/messages-CPR_GqN1.js","assets/v2-quoG19Ez.js"])))=>i.map(i=>d[i]);
2
  (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const ew="modulepreload",tw=function(n){return"/"+n},A_={},$t=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(l=>{if(l=tw(l),l in A_)return;A_[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":ew,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};/**
3
  * @vue/shared v3.5.13
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -3846,11 +3846,11 @@ void main() {
3846
  * pinia v3.0.1
3847
  * (c) 2025 Eduardo San Martin Morote
3848
  * @license MIT
3849
- */let dT;const Zh=n=>dT=n,pT=Symbol();function _m(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var dl;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(dl||(dl={}));function bk(){const n=Ql(!0),e=n.run(()=>Xe({}));let t=[],i=[];const r=Xm({install(s){Zh(r),r._a=s,s.provide(pT,r),s.config.globalProperties.$pinia=r,i.forEach(o=>t.push(o)),i=[]},use(s){return this._a?t.push(s):i.push(s),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return r}const mT=()=>{};function Ay(n,e,t,i=mT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&th()&&Bm(r),r}function ko(n,...e){n.slice().forEach(t=>{t(...e)})}const Sk=n=>n(),Cy=Symbol(),gp=Symbol();function vm(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t],r=n[t];_m(r)&&_m(i)&&n.hasOwnProperty(t)&&!Mt(i)&&!yr(i)?n[t]=vm(r,i):n[t]=i}return n}const Mk=Symbol();function Ek(n){return!_m(n)||!n.hasOwnProperty(Mk)}const{assign:zr}=Object;function Tk(n){return!!(Mt(n)&&n.effect)}function wk(n,e,t,i){const{state:r,actions:s,getters:o}=e,a=t.state.value[n];let l;function c(){a||(t.state.value[n]=r?r():{});const u=Yx(t.state.value[n]);return zr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Xm(Ce(()=>{Zh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=gT(n,c,e,t,i,!0),l}function gT(n,e,t={},i,r,s){let o;const a=zr({actions:{}},t),l={deep:!0};let c,u,f=[],h=[],d;const p=i.state.value[n];!s&&!p&&(i.state.value[n]={}),Xe({});let _;function g(P){let b;c=u=!1,typeof P=="function"?(P(i.state.value[n]),b={type:dl.patchFunction,storeId:n,events:d}):(vm(i.state.value[n],P),b={type:dl.patchObject,payload:P,storeId:n,events:d});const S=_=Symbol();cs().then(()=>{_===S&&(c=!0)}),u=!0,ko(f,b,i.state.value[n])}const m=s?function(){const{state:b}=t,S=b?b():{};this.$patch(D=>{zr(D,S)})}:mT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Cy in P)return P[gp]=b,P;const S=function(){Zh(i);const D=Array.from(arguments),B=[],H=[];function $(te){B.push(te)}function ee(te){H.push(te)}ko(h,{args:D,name:S[gp],store:E,after:$,onError:ee});let Z;try{Z=P.apply(this&&this.$id===n?this:E,D)}catch(te){throw ko(H,te),te}return Z instanceof Promise?Z.then(te=>(ko(B,te),te)).catch(te=>(ko(H,te),Promise.reject(te))):(ko(B,Z),Z)};return S[Cy]=!0,S[gp]=b,S},v={_p:i,$id:n,$onAction:Ay.bind(null,h),$patch:g,$reset:m,$subscribe(P,b={}){const S=Ay(f,P,b.detached,()=>D()),D=o.run(()=>Ze(()=>i.state.value[n],B=>{(b.flush==="sync"?u:c)&&P({storeId:n,type:dl.direct,events:d},B)},zr({},l,b)));return S},$dispose:y},E=fi(v);i._s.set(n,E);const M=(i._a&&i._a.runWithContext||Sk)(()=>i._e.run(()=>(o=Ql()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Mt(b)&&!Tk(b)||yr(b))s||(p&&Ek(b)&&(Mt(b)?b.value=p[P]:vm(b,p[P])),i.state.value[n][P]=b);else if(typeof b=="function"){const S=x(b,P);M[P]=S,a.actions[P]=b}}return zr(E,M),zr(st(E),M),Object.defineProperty(E,"$state",{get:()=>i.state.value[n],set:P=>{g(b=>{zr(b,P)})}}),i._p.forEach(P=>{zr(E,o.run(()=>P({store:E,app:i._a,pinia:i,options:a})))}),p&&s&&t.hydrate&&t.hydrate(E.$state,p),c=!0,u=!0,E}/*! #__NO_SIDE_EFFECTS__ */function Ak(n,e,t){let i;const r=typeof e=="function";i=r?t:e;function s(o,a){const l=Jm();return o=o||(l?In(pT,null):null),o&&Zh(o),o=dT,o._s.has(n)||(r?gT(n,e,i,o):wk(n,i,o)),o._s.get(n)}return s.$id=n,s}function Ck(n){const e=st(n),t={};for(const i in e){const r=e[i];r.effect?t[i]=Ce({get:()=>n[i],set(s){n[i]=s}}):(Mt(r)||yr(r))&&(t[i]=jx(n,i))}return t}const Rk=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>$t(()=>import("./default-njAbr0vI.js"),__vite__mapDeps([0,1])),"/src/layouts/stage.vue":()=>$t(()=>import("./stage-f1sqLDwM.js"),[])})).forEach(([r,s])=>{let o=r.replace("/src/layouts/","").replace(".vue","");e[o]=s});function i(r,s=!0){return r.map(o=>{var a,l,c,u,f,h;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=i(o.children,!1)),s){if(!o.component&&((l=o.children)==null?void 0:l.find(p=>{var _;return(p.path===""||p.path==="/")&&((_=p.meta)==null?void 0:_.isLayout)})))return o;if(((c=o.meta)==null?void 0:c.layout)!==!1)return{path:o.path,component:e[((u=o.meta)==null?void 0:u.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(f=o.meta)!=null&&f.layout?{path:o.path,component:e[(h=o.meta)==null?void 0:h.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return i(n)};/*!
3850
  * vue-router v4.5.0
3851
  * (c) 2024 Eduardo San Martin Morote
3852
  * @license MIT
3853
- */const Vo=typeof document<"u";function _T(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function Pk(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&_T(n.default)}const vt=Object.assign;function _p(n,e){const t={};for(const i in e){const r=e[i];t[i]=Pi(r)?r.map(n):n(r)}return t}const pl=()=>{},Pi=Array.isArray,vT=/#/g,Ik=/&/g,Lk=/\//g,Dk=/=/g,Ok=/\?/g,yT=/\+/g,Nk=/%5B/g,Uk=/%5D/g,xT=/%5E/g,Fk=/%60/g,bT=/%7B/g,Bk=/%7C/g,ST=/%7D/g,kk=/%20/g;function f_(n){return encodeURI(""+n).replace(Bk,"|").replace(Nk,"[").replace(Uk,"]")}function zk(n){return f_(n).replace(bT,"{").replace(ST,"}").replace(xT,"^")}function ym(n){return f_(n).replace(yT,"%2B").replace(kk,"+").replace(vT,"%23").replace(Ik,"%26").replace(Fk,"`").replace(bT,"{").replace(ST,"}").replace(xT,"^")}function Vk(n){return ym(n).replace(Dk,"%3D")}function Hk(n){return f_(n).replace(vT,"%23").replace(Ok,"%3F")}function Gk(n){return n==null?"":Hk(n).replace(Lk,"%2F")}function ql(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Wk=/\/$/,Xk=n=>n.replace(Wk,"");function vp(n,e,t="/"){let i,r={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),r=n(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=jk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:ql(o)}}function $k(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Ry(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function qk(n,e,t){const i=e.matched.length-1,r=t.matched.length-1;return i>-1&&i===r&&ua(e.matched[i],t.matched[r])&&MT(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function ua(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function MT(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!Yk(n[t],e[t]))return!1;return!0}function Yk(n,e){return Pi(n)?Py(n,e):Pi(e)?Py(e,n):n===e}function Py(n,e){return Pi(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function jk(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Br={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Yl;(function(n){n.pop="pop",n.push="push"})(Yl||(Yl={}));var ml;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ml||(ml={}));function Kk(n){if(!n)if(Vo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Xk(n)}const Zk=/^[^#]+#/;function Jk(n,e){return n.replace(Zk,"#")+e}function Qk(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Jh=()=>({left:window.scrollX,top:window.scrollY});function ez(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=Qk(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Iy(n,e){return(history.state?history.state.position-e:-1)+n}const xm=new Map;function tz(n,e){xm.set(n,e)}function nz(n){const e=xm.get(n);return xm.delete(n),e}let iz=()=>location.protocol+"//"+location.host;function ET(n,e){const{pathname:t,search:i,hash:r}=e,s=n.indexOf("#");if(s>-1){let a=r.includes(n.slice(s))?n.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),Ry(l,"")}return Ry(t,n)+i+r}function rz(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=ET(n,location),p=t.value,_=e.value;let g=0;if(h){if(t.value=d,e.value=h,o&&o===p){o=null;return}g=_?h.position-_.position:0}else i(d);r.forEach(m=>{m(t.value,p,{delta:g,type:Yl.pop,direction:g?g>0?ml.forward:ml.back:ml.unknown})})};function l(){o=t.value}function c(h){r.push(h);const d=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return s.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(vt({},h.state,{scroll:Jh()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Ly(n,e,t,i=!1,r=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:r?Jh():null}}function sz(n){const{history:e,location:t}=window,i={value:ET(n,t)},r={value:e.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=n.indexOf("#"),h=f>-1?(t.host&&document.querySelector("base")?n:n.slice(f))+l:iz()+n+l;try{e[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),t[u?"replace":"assign"](h)}}function o(l,c){const u=vt({},e.state,Ly(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});s(l,u,!0),i.value=l}function a(l,c){const u=vt({},r.value,e.state,{forward:l,scroll:Jh()});s(u.current,u,!0);const f=vt({},Ly(i.value,l,null),{position:u.position+1},c);s(l,f,!1),i.value=l}return{location:i,state:r,push:a,replace:o}}function oz(n){n=Kk(n);const e=sz(n),t=rz(n,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const r=vt({location:"",base:n,go:i,createHref:Jk.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function az(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),oz(n)}function lz(n){return typeof n=="string"||n&&typeof n=="object"}function TT(n){return typeof n=="string"||typeof n=="symbol"}const wT=Symbol("");var Dy;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Dy||(Dy={}));function fa(n,e){return vt(new Error,{type:n,[wT]:!0},e)}function ar(n,e){return n instanceof Error&&wT in n&&(e==null||!!(n.type&e))}const Oy="[^/]+?",cz={sensitive:!1,strict:!1,start:!0,end:!0},uz=/[.+*?^${}()[\]/\\]/g;function fz(n,e){const t=vt({},cz,e),i=[];let r=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=40+(t.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(uz,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:_,optional:g,regexp:m}=h;s.push({name:p,repeatable:_,optional:g});const y=m||Oy;if(y!==Oy){d+=10;try{new RegExp(`(${y})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+v.message)}}let x=_?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(x=g&&c.length<2?`(?:/${x})`:"/"+x),g&&(x+="?"),r+=x,d+=20,g&&(d+=-8),_&&(d+=-20),y===".*"&&(d+=-50)}u.push(d)}i.push(u)}if(t.strict&&t.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,t.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",p=s[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of n){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===0)u+=d.value;else if(d.type===1){const{value:p,repeatable:_,optional:g}=d,m=p in c?c[p]:"";if(Pi(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Pi(m)?m.join("/"):m;if(!y)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=y}}return u||"/"}return{re:o,score:i,keys:s,parse:a,stringify:l}}function hz(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function AT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=hz(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(Ny(i))return 1;if(Ny(r))return-1}return r.length-i.length}function Ny(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const dz={type:0,value:""},pz=/[a-zA-Z0-9_]/;function mz(n){if(!n)return[[]];if(n==="/")return[[dz]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(d){throw new Error(`ERR (${t})/"${c}": ${d}`)}let t=0,i=t;const r=[];let s;function o(){s&&r.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<n.length;){if(l=n[a++],l==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:l==="/"?(c&&f(),o()):l===":"?(f(),t=1):h();break;case 4:h(),t=i;break;case 1:l==="("?t=2:pz.test(l)?h():(f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:t=3:u+=l;break;case 3:f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}function gz(n,e,t){const i=fz(mz(n.path),t),r=vt(i,{record:n,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function _z(n,e){const t=[],i=new Map;e=ky({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=Fy(f);_.aliasOf=d&&d.record;const g=ky(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of v)m.push(Fy(vt({},_,{components:d?d.record.components:_.components,path:E,aliasOf:d?d.record:_})))}let y,x;for(const v of m){const{path:E}=v;if(h&&E[0]!=="/"){const T=h.record.path,M=T[T.length-1]==="/"?"":"/";v.path=h.record.path+(E&&M+E)}if(y=gz(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!By(y)&&o(f.name)),CT(y)&&l(y),_.children){const T=_.children;for(let M=0;M<T.length;M++)s(T[M],y,d&&d.children[M])}d=d||y}return x?()=>{o(x)}:pl}function o(f){if(TT(f)){const h=i.get(f);h&&(i.delete(f),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(f);h>-1&&(t.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return t}function l(f){const h=xz(f,t);t.splice(h,0,f),f.record.name&&!By(f)&&i.set(f.record.name,f)}function c(f,h){let d,p={},_,g;if("name"in f&&f.name){if(d=i.get(f.name),!d)throw fa(1,{location:f});g=d.record.name,p=vt(Uy(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&Uy(f.params,d.keys.map(x=>x.name))),_=d.stringify(p)}else if(f.path!=null)_=f.path,d=t.find(x=>x.re.test(_)),d&&(p=d.parse(_),g=d.record.name);else{if(d=h.name?i.get(h.name):t.find(x=>x.re.test(h.path)),!d)throw fa(1,{location:f,currentLocation:h});g=d.record.name,p=vt({},h.params,f.params),_=d.stringify(p)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:_,params:p,matched:m,meta:yz(m)}}n.forEach(f=>s(f));function u(){t.length=0,i.clear()}return{addRoute:s,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function Uy(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function Fy(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:vz(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function vz(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function By(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function yz(n){return n.reduce((e,t)=>vt(e,t.meta),{})}function ky(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function xz(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;AT(n,e[s])<0?i=s:t=s+1}const r=bz(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function bz(n){let e=n;for(;e=e.parent;)if(CT(e)&&AT(n,e)===0)return e}function CT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function Sz(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(yT," "),o=s.indexOf("="),a=ql(o<0?s:s.slice(0,o)),l=o<0?null:ql(s.slice(o+1));if(a in e){let c=e[a];Pi(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function zy(n){let e="";for(let t in n){const i=n[t];if(t=Vk(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Pi(i)?i.map(s=>s&&ym(s)):[i&&ym(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function Mz(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Pi(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const Ez=Symbol(""),Vy=Symbol(""),Qh=Symbol(""),RT=Symbol(""),bm=Symbol("");function ka(){let n=[];function e(i){return n.push(i),()=>{const r=n.indexOf(i);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function $r(n,e,t,i,r,s=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(fa(4,{from:t,to:e})):h instanceof Error?l(h):lz(h)?l(fa(2,{from:e,to:h})):(o&&i.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),a())},u=s(()=>n.call(i&&i.instances[r],e,t,c));let f=Promise.resolve(u);n.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function yp(n,e,t,i,r=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(_T(l)){const u=(l.__vccOpts||l)[e];u&&s.push($r(u,t,i,o,a,r))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=Pk(u)?u.default:u;o.mods[a]=u,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&$r(d,t,i,o,a,r)()}))}}return s}function Hy(n){const e=In(Qh),t=In(RT),i=Ce(()=>{const l=Pt(n.to);return e.resolve(l)}),r=Ce(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],f=t.matched;if(!u||!f.length)return-1;const h=f.findIndex(ua.bind(null,u));if(h>-1)return h;const d=Gy(l[c-2]);return c>1&&Gy(u)===d&&f[f.length-1].path!==d?f.findIndex(ua.bind(null,l[c-2])):h}),s=Ce(()=>r.value>-1&&Rz(t.params,i.value.params)),o=Ce(()=>r.value>-1&&r.value===t.matched.length-1&&MT(t.params,i.value.params));function a(l={}){if(Cz(l)){const c=e[Pt(n.replace)?"replace":"push"](Pt(n.to)).catch(pl);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:i,href:Ce(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function Tz(n){return n.length===1?n[0]:n}const wz=nn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hy,setup(n,{slots:e}){const t=fi(Hy(n)),{options:i}=In(Qh),r=Ce(()=>({[Wy(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[Wy(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&Tz(e.default(t));return n.custom?s:Sr("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),Az=wz;function Cz(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function Rz(n,e){for(const t in e){const i=e[t],r=n[t];if(typeof i=="string"){if(i!==r)return!1}else if(!Pi(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function Gy(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const Wy=(n,e,t)=>n??e??t,Pz=nn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=In(bm),r=Ce(()=>n.route||i.value),s=In(Vy,0),o=Ce(()=>{let c=Pt(s);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Ce(()=>r.value.matched[o.value]);Jr(Vy,Ce(()=>o.value+1)),Jr(Ez,a),Jr(bm,r);const l=Xe();return Ze(()=>[l.value,a.value,n.name],([c,u,f],[h,d,p])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!ua(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,u=n.name,f=a.value,h=f&&f.components[u];if(!h)return Xy(t.default,{Component:h,route:c});const d=f.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,g=Sr(h,vt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Xy(t.default,{Component:g,route:c})||g}}});function Xy(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const PT=Pz;function Iz(n){const e=_z(n.routes,n),t=n.parseQuery||Sz,i=n.stringifyQuery||zy,r=n.history,s=ka(),o=ka(),a=ka(),l=ze(Br);let c=Br;Vo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=_p.bind(null,W=>""+W),f=_p.bind(null,Gk),h=_p.bind(null,ql);function d(W,ae){let ue,le;return TT(W)?(ue=e.getRecordMatcher(W),le=ae):le=W,e.addRoute(le,ue)}function p(W){const ae=e.getRecordMatcher(W);ae&&e.removeRoute(ae)}function _(){return e.getRoutes().map(W=>W.record)}function g(W){return!!e.getRecordMatcher(W)}function m(W,ae){if(ae=vt({},ae||l.value),typeof W=="string"){const w=vp(t,W,ae.path),j=e.resolve({path:w.path},ae),G=r.createHref(w.fullPath);return vt(w,j,{params:h(j.params),hash:ql(w.hash),redirectedFrom:void 0,href:G})}let ue;if(W.path!=null)ue=vt({},W,{path:vp(t,W.path,ae.path).path});else{const w=vt({},W.params);for(const j in w)w[j]==null&&delete w[j];ue=vt({},W,{params:f(w)}),ae.params=f(ae.params)}const le=e.resolve(ue,ae),De=W.hash||"";le.params=u(h(le.params));const I=$k(i,vt({},W,{hash:zk(De),path:le.path})),L=r.createHref(I);return vt({fullPath:I,hash:De,query:i===zy?Mz(W.query):W.query||{}},le,{redirectedFrom:void 0,href:L})}function y(W){return typeof W=="string"?vp(t,W,l.value.path):vt({},W)}function x(W,ae){if(c!==W)return fa(8,{from:ae,to:W})}function v(W){return M(W)}function E(W){return v(vt(y(W),{replace:!0}))}function T(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:ue}=ae;let le=typeof ue=="function"?ue(W):ue;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=y(le):{path:le},le.params={}),vt({query:W.query,hash:W.hash,params:le.path!=null?{}:W.params},le)}}function M(W,ae){const ue=c=m(W),le=l.value,De=W.state,I=W.force,L=W.replace===!0,w=T(ue);if(w)return M(vt(y(w),{state:typeof w=="object"?vt({},De,w.state):De,force:I,replace:L}),ae||ue);const j=ue;j.redirectedFrom=ae;let G;return!I&&qk(i,le,ue)&&(G=fa(16,{to:j,from:le}),re(le,le,!0,!1)),(G?Promise.resolve(G):S(j,le)).catch(q=>ar(q)?ar(q,2)?q:ve(q):Q(q,j,le)).then(q=>{if(q){if(ar(q,2))return M(vt({replace:L},y(q.to),{state:typeof q.to=="object"?vt({},De,q.to.state):De,force:I}),ae||j)}else q=B(j,le,!0,L,De);return D(j,le,q),q})}function P(W,ae){const ue=x(W,ae);return ue?Promise.reject(ue):Promise.resolve()}function b(W){const ae=se.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function S(W,ae){let ue;const[le,De,I]=Lz(W,ae);ue=yp(le.reverse(),"beforeRouteLeave",W,ae);for(const w of le)w.leaveGuards.forEach(j=>{ue.push($r(j,W,ae))});const L=P.bind(null,W,ae);return ue.push(L),be(ue).then(()=>{ue=[];for(const w of s.list())ue.push($r(w,W,ae));return ue.push(L),be(ue)}).then(()=>{ue=yp(De,"beforeRouteUpdate",W,ae);for(const w of De)w.updateGuards.forEach(j=>{ue.push($r(j,W,ae))});return ue.push(L),be(ue)}).then(()=>{ue=[];for(const w of I)if(w.beforeEnter)if(Pi(w.beforeEnter))for(const j of w.beforeEnter)ue.push($r(j,W,ae));else ue.push($r(w.beforeEnter,W,ae));return ue.push(L),be(ue)}).then(()=>(W.matched.forEach(w=>w.enterCallbacks={}),ue=yp(I,"beforeRouteEnter",W,ae,b),ue.push(L),be(ue))).then(()=>{ue=[];for(const w of o.list())ue.push($r(w,W,ae));return ue.push(L),be(ue)}).catch(w=>ar(w,8)?w:Promise.reject(w))}function D(W,ae,ue){a.list().forEach(le=>b(()=>le(W,ae,ue)))}function B(W,ae,ue,le,De){const I=x(W,ae);if(I)return I;const L=ae===Br,w=Vo?history.state:{};ue&&(le||L?r.replace(W.fullPath,vt({scroll:L&&w&&w.scroll},De)):r.push(W.fullPath,De)),l.value=W,re(W,ae,ue,L),ve()}let H;function $(){H||(H=r.listen((W,ae,ue)=>{if(!ge.listening)return;const le=m(W),De=T(le);if(De){M(vt(De,{replace:!0,force:!0}),le).catch(pl);return}c=le;const I=l.value;Vo&&tz(Iy(I.fullPath,ue.delta),Jh()),S(le,I).catch(L=>ar(L,12)?L:ar(L,2)?(M(vt(y(L.to),{force:!0}),le).then(w=>{ar(w,20)&&!ue.delta&&ue.type===Yl.pop&&r.go(-1,!1)}).catch(pl),Promise.reject()):(ue.delta&&r.go(-ue.delta,!1),Q(L,le,I))).then(L=>{L=L||B(le,I,!1),L&&(ue.delta&&!ar(L,8)?r.go(-ue.delta,!1):ue.type===Yl.pop&&ar(L,20)&&r.go(-1,!1)),D(le,I,L)}).catch(pl)}))}let ee=ka(),Z=ka(),te;function Q(W,ae,ue){ve(W);const le=Z.list();return le.length?le.forEach(De=>De(W,ae,ue)):console.error(W),Promise.reject(W)}function pe(){return te&&l.value!==Br?Promise.resolve():new Promise((W,ae)=>{ee.add([W,ae])})}function ve(W){return te||(te=!W,$(),ee.list().forEach(([ae,ue])=>W?ue(W):ae()),ee.reset()),W}function re(W,ae,ue,le){const{scrollBehavior:De}=n;if(!Vo||!De)return Promise.resolve();const I=!ue&&nz(Iy(W.fullPath,0))||(le||!ue)&&history.state&&history.state.scroll||null;return cs().then(()=>De(W,ae,I)).then(L=>L&&ez(L)).catch(L=>Q(L,W,ae))}const xe=W=>r.go(W);let Ve;const se=new Set,ge={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:_,resolve:m,options:n,push:v,replace:E,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:pe,install(W){const ae=this;W.component("RouterLink",Az),W.component("RouterView",PT),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Pt(l)}),Vo&&!Ve&&l.value===Br&&(Ve=!0,v(r.location).catch(De=>{}));const ue={};for(const De in Br)Object.defineProperty(ue,De,{get:()=>l.value[De],enumerable:!0});W.provide(Qh,ae),W.provide(RT,Xx(ue)),W.provide(bm,l);const le=W.unmount;se.add(W),W.unmount=function(){se.delete(W),se.size<1&&(c=Br,H&&H(),H=null,l.value=Br,Ve=!1,te=!1),le()}}};function be(W){return W.reduce((ae,ue)=>ae.then(()=>b(ue)),Promise.resolve())}return ge}function Lz(n,e){const t=[],i=[],r=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(n.matched.find(c=>ua(c,a))?i.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(c=>ua(c,l))||r.push(l))}return[t,i,r]}function Dz(){return In(Qh)}const Oz=[{path:"/",name:"/",component:()=>$t(()=>import("./index-DYLqqjTr.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,1,10,11,12,13,14])),meta:{layout:"stage",stageTransition:{name:"bubble-wave-out"}}},{path:"/:all(.*)",name:"/[...all]",component:()=>$t(()=>import("./_...all_-C0XTifl7.js"),[])},{path:"/audio",name:"/audio",component:()=>$t(()=>import("./audio-DpYjoWjp.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>$t(()=>import("./image-zkElonim.js"),__vite__mapDeps([15,16]))}]},{path:"/queue",name:"/queue",component:()=>$t(()=>import("./queue-DzzOMrys.js"),__vite__mapDeps([17,7]))},{path:"/settings",children:[{path:"",name:"/settings/",component:()=>$t(()=>import("./index-B6lcf5Ka.js"),__vite__mapDeps([18,5,13])),meta:{stageTransition:{name:"slide"}}},{path:"models",children:[{path:"",name:"/settings/models/",component:()=>$t(()=>import("./index-DpHRHqJl.js"),__vite__mapDeps([19,13])),meta:{stageTransition:{name:"slide"}}}]},{path:"modules",children:[{path:"",name:"/settings/modules/",component:()=>$t(()=>import("./index-DSZduMTj.js"),__vite__mapDeps([20,13])),meta:{stageTransition:{name:"slide"}}},{path:"consciousness",name:"/settings/modules/consciousness",component:()=>$t(()=>import("./consciousness-DhuPQjgL.js"),__vite__mapDeps([21,13])),meta:{stageTransition:{name:"slide"}}}]},{path:"providers",children:[{path:"",name:"/settings/providers/",component:()=>$t(()=>import("./index-CRBCy5uG.js"),__vite__mapDeps([22,5,11,13])),meta:{stageTransition:{name:"slide"}}},{path:"openrouter",name:"/settings/providers/openrouter",component:()=>$t(()=>import("./openrouter-DPj3nOdo.js"),__vite__mapDeps([23,9,3,4,5,11]))}]},{path:"themes",children:[{path:"",name:"/settings/themes/",component:()=>$t(()=>import("./index-DOnbpi38.js"),__vite__mapDeps([24,13])),meta:{stageTransition:{name:"slide"}}}]}]},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>$t(()=>import("./filter-message-4XYln8a6.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>$t(()=>import("./delays-CK8SNHyb.js"),__vite__mapDeps([25,8,5,7,3,4,10]))},{path:"emotions",name:"/test/queues/emotions",component:()=>$t(()=>import("./emotions-CZbTrpNx.js"),__vite__mapDeps([26,8,5,7,3,4]))},{path:"messages",name:"/test/queues/messages",component:()=>$t(()=>import("./messages-CPR_GqN1.js"),__vite__mapDeps([27,8,5,7,3,4]))}]}]},{path:"/v2",name:"/v2",component:()=>$t(()=>import("./v2-quoG19Ez.js"),__vite__mapDeps([28,3,4,5,6,7,8,9,1,10,11,12,13])),meta:{layout:"default"}}];var Sm=(n=>(n.Myriam="Myriam",n.Beatrice="Beatrice",n.Camilla_KM="Camilla_KM",n.SallySunshine="Sally Sunshine",n.Annie="Annie",n.KawaiiAerisita="Kawaii Aerisita",n.Morioki="Morioki",n))(Sm||{});const X4={Myriam:"lNxY9WuCBCZCISASyJ55",Beatrice:"KAsXoQDshjF6ehsWa1mF",Camilla_KM:"dLhSyo03JRp5WkGpUlz1","Sally Sunshine":"qswttdunP3b44zVZKMRB",Annie:"AfA1PA0ldViH0DA6pbml","Kawaii Aerisita":"vGQNBgLaiM3EdZtxIiuY",Morioki:"8EkOjt4xTPGMclNlh1pk"},Nz=Ak("settings",()=>{const n=Xe(),e=bi("settings/language","en-US"),t=bi("settings/stage/view/model-renderer","2d"),i=bi("settings/credentials/openai-api-key",""),r=bi("settings/credentials/openai-api-base-url",""),s=bi("settings/credentials/elevenlabs-api-key",""),o=bi("settings/llm/openai/model",{id:"openai/gpt-3.5-turbo",name:"OpenAI GPT3.5 Turbo"}),a=bi("settings/audio/input","true"),l=Ce(()=>{var v;return(v=n.value)==null?void 0:v.deviceId}),{audioInputs:c}=k2({constraints:{audio:!0},requestPermissions:!0}),u=bi("settings/llm/elevenlabs/voice/en",Sm.Myriam),f=bi("settings/llm/elevenlabs/voice/ja",Sm.Morioki),h=Xe(),d=Xe("./assets/live2d/models/hiyori_pro_zh.zip"),p=Xe("url"),_=Xe(!1),g=bi("settings/live2d/position",{x:0,y:0}),m=Xe({group:"Idle",index:0}),y=Xe([]),x=bi("settings/live2d/motion-map",{});return Ze(a,v=>{v==="false"&&(n.value=void 0),v==="true"&&(n.value=c.value[0])}),Nn(()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),Ze(c,()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),{openAiApiKey:i,openAiApiBaseURL:r,openAiModel:o,elevenLabsApiKey:s,live2dModelFile:h,live2dModelUrl:d,live2dLoadSource:p,live2dCurrentMotion:m,live2dPosition:g,availableLive2dMotions:y,live2dMotionMap:x,loadingLive2dModel:_,language:e,stageView:t,isAudioInputOn:a,selectedAudioDevice:n,selectedAudioDeviceId:l,elevenlabsVoiceEnglish:u,elevenlabsVoiceJapanese:f}}),Uz=nn({__name:"ArrowTransition",props:{stageTransition:{default:()=>({primaryColor:"#666",secondaryColor:"#ccc"})}},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>t.value.primaryColor||"#666"),r=Ce(()=>t.value.secondaryColor||"#ccc");return Nn(()=>{document.documentElement.style.setProperty("--stage-transition-3-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-3-overlay-color-2",r.value)}),(s,o)=>(ln(),ci("div",{class:"stage-transition-3",style:mi({zIndex:t.value.zIndex||100})},null,4))}}),vo=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},Fz=vo(Uz,[["__scopeId","data-v-6dbef2c1"]]),Bz=nn({__name:"BubbleWaveOutTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>{var i;return((i=e.stageTransition)==null?void 0:i.colors)||["#eee","#ebcb8b","#c56370","#3f3b52"]});return Nn(()=>{var i,r;document.documentElement.style.setProperty("--circle-expansion-delay",`${((i=e.stageTransition)==null?void 0:i.delay)||0}s`),document.documentElement.style.setProperty("--circle-expansion-duration",`${((r=e.stageTransition)==null?void 0:r.duration)||.4}s`),t.value.forEach((s,o)=>{document.documentElement.style.setProperty(`--circle-expansion-color-${o+1}`,s)})}),(i,r)=>{var s;return ln(),ci("div",{class:"circle-expansion-transition",style:mi({zIndex:((s=n.stageTransition)==null?void 0:s.zIndex)||100})},[(ln(!0),ci(Gt,null,lA(t.value,(o,a)=>(ln(),ci("div",{key:a}))),128))],4)}}}),kz=vo(Bz,[["__scopeId","data-v-58c4c777"]]),zz=nn({__name:"FantasyFallTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>{var r;return((r=e.stageTransition)==null?void 0:r.direction)||"up"}),i=Ce(()=>`fantasy-fall-${t.value}`);return Nn(()=>{var r,s,o,a,l,c,u,f,h;document.documentElement.style.setProperty("--fantasy-fall-color",((r=e.stageTransition)==null?void 0:r.primaryColor)||"#eee"),document.documentElement.style.setProperty("--fantasy-fall-duration",`${((s=e.stageTransition)==null?void 0:s.duration)||.6}s`),document.documentElement.style.setProperty("--fantasy-fall-delay",`${((o=e.stageTransition)==null?void 0:o.delay)||0}s`),document.documentElement.style.setProperty("--fantasy-fall-radius-sm",`${((l=(a=e.stageTransition)==null?void 0:a.borderRadius)==null?void 0:l.sm)||"14rem"}`),document.documentElement.style.setProperty("--fantasy-fall-radius-md",`${((u=(c=e.stageTransition)==null?void 0:c.borderRadius)==null?void 0:u.md)||"14rem"}`),document.documentElement.style.setProperty("--fantasy-fall-radius-lg",`${((h=(f=e.stageTransition)==null?void 0:f.borderRadius)==null?void 0:h.lg)||"50%"}`)}),(r,s)=>{var o;return ln(),ci("div",{class:ma(["fantasy-fall-transition",i.value]),style:mi({zIndex:((o=n.stageTransition)==null?void 0:o.zIndex)??100})},null,6)}}}),Vz=vo(zz,[["__scopeId","data-v-9e7fdd2b"]]),Hz=nn({__name:"MultipleBlocksRevealTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>{var s;return((s=t.value)==null?void 0:s.primaryColor)||"#666"}),r=Ce(()=>{var s;return((s=t.value)==null?void 0:s.secondaryColor)||"#ccc"});return Nn(()=>{document.documentElement.style.setProperty("--stage-transition-4-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-4-overlay-color-2",r.value)}),(s,o)=>{var a;return ln(),ci("div",{class:"stage-transition-4",style:mi({zIndex:((a=t.value)==null?void 0:a.zIndex)??100})},o[0]||(o[0]=[VA('<div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div>',5)]),4)}}}),Gz=vo(Hz,[["__scopeId","data-v-b359e365"]]),Wz=nn({__name:"SlideTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>{var s;return((s=t.value)==null?void 0:s.primaryColor)||"#666"}),r=Ce(()=>{var s;return((s=t.value)==null?void 0:s.secondaryColor)||"#ccc"});return Ze([t,i,r],()=>{document.documentElement.style.setProperty("--stage-transition-1-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-1-overlay-color-2",r.value)}),Nn(()=>{document.documentElement.style.setProperty("--stage-transition-1-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-1-overlay-color-2",r.value)}),(s,o)=>{var a;return ln(),ci("div",{class:"stage-transition-1",style:mi({zIndex:((a=t.value)==null?void 0:a.zIndex)??100})},null,4)}}}),Xz=vo(Wz,[["__scopeId","data-v-9f6e49ad"]]),$z=nn({__name:"SlopeSlideTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>{var s;return((s=t.value)==null?void 0:s.primaryColor)??"#666"}),r=Ce(()=>{var s;return((s=t.value)==null?void 0:s.secondaryColor)??"#ccc"});return Nn(()=>{document.documentElement.style.setProperty("--stage-transition-2-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-2-overlay-color-2",r.value)}),(s,o)=>{var a;return ln(),ci("div",{class:"stage-transition-2",style:mi({zIndex:((a=t.value)==null?void 0:a.zIndex)??100})},null,4)}}}),qz=vo($z,[["__scopeId","data-v-63e4fb63"]]),Yz=nn({__name:"RectanglesRotateTransition",props:{stageTransition:null},setup(n){const e=n;return Nn(()=>{var t,i,r,s,o,a,l;document.documentElement.style.setProperty("--rectangle-rotate-1-color",((t=e.stageTransition)==null?void 0:t.primaryColor)||"#ebcb8b"),document.documentElement.style.setProperty("--rectangle-rotate-2-color",((i=e.stageTransition)==null?void 0:i.secondaryColor)||"#c56370"),document.documentElement.style.setProperty("--rectangle-rotate-3-color",((r=e.stageTransition)==null?void 0:r.tertiaryColor)||"#43445b"),document.documentElement.style.setProperty("--rectangle-rotate-duration",`${((s=e.stageTransition)==null?void 0:s.duration)||.6}s`),document.documentElement.style.setProperty("--rectangle-rotate-delay",`${((o=e.stageTransition)==null?void 0:o.delay)||0}s`),document.documentElement.style.setProperty("--rectangle-rotate-stagger",`${((a=e.stageTransition)==null?void 0:a.staggerDelay)||.1}s`),document.documentElement.style.setProperty("--rectangle-rotate-rotation",`${((l=e.stageTransition)==null?void 0:l.rotation)||270}deg`)}),(t,i)=>{var r;return ln(),ci("div",{class:"rectangle-rotate-transition",style:mi({zIndex:((r=n.stageTransition)==null?void 0:r.zIndex)??100})},i[0]||(i[0]=[Gr("div",{class:"rectangle rectangle-rotate-1"},[Gr("div")],-1),Gr("div",{class:"rectangle rectangle-rotate-2"},[Gr("div")],-1),Gr("div",{class:"rectangle rectangle-rotate-3"},[Gr("div")],-1)]),4)}}}),jz=vo(Yz,[["__scopeId","data-v-a62a24a5"]]),Kz=nn({__name:"StageTransitionGroup",props:{primaryColor:null,secondaryColor:null,tertiaryColor:null,colors:null,zIndex:null},setup(n){const e=n,t=Dz(),i=Xe(!1),r=Xe(),s=Xe(""),o=Xe(),a=ze({slide:{component:Xz,duration:2700},"slope-slide":{component:qz,duration:2700},arrow:{component:Fz,duration:2700},"multiple-blocks-reveal":{component:Gz,duration:2800},"fantasy-fall":{component:Vz,duration:2700},"rectangles-rotate":{component:jz,duration:2700},"bubble-wave-out":{component:kz,duration:1e3}}),l=Xe([]);function c(d){return l.value.push(d),()=>{const p=l.value.indexOf(d);p>=0&&l.value.splice(p,1)}}async function u(d,p={}){r.value=d;for(const _ of l.value)try{await Promise.resolve(_(d,p))}catch(g){console.error(`Error in transition hook at stage "${d}":`,g)}}async function f(d,p,_){if(d.name==="none"||!d.name){p(),_();return}const g=a.value[d.name];if(!g){console.error(`Transition ${d.name} not found`),p(),_();return}const m=g.nextDelay!==void 0?g.nextDelay:g.duration/3;let y=!1;const v=c(E=>{E==="navigation"&&!y&&(y=!0,p())});try{await u("before-enter",{transitionName:d.name}),i.value&&(await u("before-leave",{transitionName:s.value}),s.value="",o.value=void 0,i.value=!1,await u("after-leave",{transitionName:s.value}),await new Promise(T=>setTimeout(T,50))),s.value=d.name,o.value=d,i.value=!0,await u("enter-active",{transitionName:name}),setTimeout(async()=>{await u("navigation",{transitionName:d.name,config:g}),y||(y=!0,p())},m),setTimeout(async()=>{await u("after-enter",{transitionName:d.name})},g.duration),setTimeout(async()=>{await u("before-leave",{transitionName:d.name})},g.duration+10),setTimeout(async()=>{await u("leave-active",{transitionName:d.name})},g.duration+20);const E=g.exitDuration??0;setTimeout(async()=>{i.value=!1,s.value="",o.value=void 0,await u("after-leave",{transitionName:d.name}),_()},g.duration+E)}catch(E){console.error(E)}finally{v(),setTimeout(()=>{y||(y=!0,p())},g.duration*2)}}function h(d,p){return new Promise(_=>{f(d,p,_)})}return t.beforeEach((d,p,_)=>{if(typeof d.meta.stageTransition!="object"){_();return}const g=d.meta.stageTransition;typeof e.primaryColor<"u"&&(g.primaryColor=e.primaryColor),typeof e.secondaryColor<"u"&&(g.secondaryColor=e.secondaryColor),typeof e.tertiaryColor<"u"&&(g.tertiaryColor=e.tertiaryColor),typeof e.colors<"u"&&(g.colors=e.colors),typeof e.zIndex<"u"&&(g.zIndex=e.zIndex),h(g,_)}),(d,p)=>(ln(),ci(Gt,null,[cA(d.$slots,"default"),i.value?(ln(),ci(Gt,{key:0},[a.value[s.value]?(ln(),bl(aA(a.value[s.value].component),{key:0,"stage-transition":o.value},null,8,["stage-transition"])):$_("",!0)],64)):$_("",!0)],64))}});/*!
3854
  * shared v11.1.2
3855
  * (c) 2025 kazuya kawaguchi
3856
  * Released under the MIT License.
@@ -3900,4 +3900,4 @@ And the last, do what ever you want!
3900
  - <|DELAY:3|> (延迟 3 秒)
3901
 
3902
  最后,做任何你想做的事!
3903
- `}}},settings:{"elevenlabs-api-key":{label:{t:0,b:{t:2,i:[{t:3}],s:"ElevenLabs API 密钥"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"输入您的 ElevenLabs API 密钥"}},placeholder_mobile:{t:0,b:{t:2,i:[{t:3}],s:"ElevenLabs API Key"}}},language:{chinese:{t:0,b:{t:2,i:[{t:3}],s:"简体中文"}},english:{t:0,b:{t:2,i:[{t:3}],s:"English"}},title:{t:0,b:{t:2,i:[{t:3}],s:"语言"}}},live2d:{"change-model":{"from-file":{t:0,b:{t:2,i:[{t:3}],s:"从文件加载"}},"from-file-select":{t:0,b:{t:2,i:[{t:3}],s:"选择"}},"from-url":{t:0,b:{t:2,i:[{t:3}],s:"从 URL 加载"}},"from-url-confirm":{t:0,b:{t:2,i:[{t:3}],s:"加载"}},"from-url-placeholder":{t:0,b:{t:2,i:[{t:3}],s:"输入 Live2D 模型 URL"}},title:{t:0,b:{t:2,i:[{t:3}],s:"更换模型"}}},"map-motions":{play:{t:0,b:{t:2,i:[{t:3}],s:"播放动作"}},title:{t:0,b:{t:2,i:[{t:3}],s:"映射动作"}}},title:{t:0,b:{t:2,i:[{t:3}],s:"Live2D 设置"}}},microphone:{t:0,b:{t:2,i:[{t:3}],s:"麦克风"}},"model-provider":{title:{t:0,b:{t:2,i:[{t:3}],s:"模型提供商"}}},models:{t:0,b:{t:2,i:[{t:3}],s:"模型"}},"openai-api-key":{label:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI API 密钥"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"输入您的 API 密钥"}},placeholder_mobile:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI API Key"}}},"openai-base-url":{label:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI API BaseURL"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"输入您的 API BaseURL"}},placeholder_mobile:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI BaseURL"}}},theme:{t:0,b:{t:2,i:[{t:3}],s:"主题颜色"}},title:{t:0,b:{t:2,i:[{t:3}],s:"设置"}},voices:{t:0,b:{t:2,i:[{t:3}],s:"声线"}}},stage:{chat:{message:{"character-name":{airi:{t:0,b:{t:2,i:[{t:3}],s:"Airi"}},"core-system":{t:0,b:{t:2,i:[{t:3}],s:"核心系统"}},you:{t:0,b:{t:2,i:[{t:3}],s:"你"}}}},tabs:{chat:{t:0,b:{t:2,i:[{t:3}],s:"聊天"}},clothes:{t:0,b:{t:2,i:[{t:3}],s:"换装"}},custom:{t:0,b:{t:2,i:[{t:3}],s:"自定义"}}}},message:{t:0,b:{t:2,i:[{t:3}],s:"消息"}},operations:{"load-models":{t:0,b:{t:2,i:[{t:3}],s:"加载推理模型"}},"load-models-status":{loading:{t:0,b:{t:2,i:[{t:3}],s:"加载中"}},ready:{t:0,b:{t:2,i:[{t:3}],s:"已就绪"}}}},"select-a-audio-input":{t:0,b:{t:2,i:[{t:3}],s:"选择一个音频输入设备"}},"select-a-model":{t:0,b:{t:2,i:[{t:3}],s:"选择一个模型"}},"select-a-voice":{t:0,b:{t:2,i:[{t:3}],s:"选择一个声线"}},viewers:{"debug-menu":{emotions:{t:0,b:{t:2,i:[{t:3}],s:"表情"}}}},waiting:{t:0,b:{t:2,i:[{t:3}],s:"等待中"}}}}}),o4=YH({locale:a4(),fallbackLocale:"en",messages:qT});function a4(){const n=localStorage.getItem("settings/language"),e=Object.keys(qT);return n&&e.includes(n)?n:"en"}const l4=bk(),c4=Rk(Oz);let yc;yc=Iz({routes:c4,history:az()});yc.beforeEach((n,e)=>{n.path!==e.path&&hT.start()});yc.afterEach(()=>{hT.done()});yc.isReady().then(async()=>{}).catch(()=>{});w1(s4).use(gk).use($1).use(yc).use(l4).use(o4).use(bU).mount("#app");export{H4 as $,b4 as A,Mt as B,Dz as C,Ce as D,lA as E,Gt as F,Az as G,P4 as H,zA as I,x4 as J,E4 as K,Ak as L,st as M,jx as N,O4 as O,jg as P,I4 as Q,PT as R,D4 as S,y4 as T,Y2 as U,z2 as V,Y1 as W,Yx as X,pE as Y,ze as Z,vo as _,Gr as a,xI as a$,Ki as a0,F as a1,q1 as a2,nI as a3,qn as a4,Wh as a5,fe as a6,Wt as a7,va as a8,Xr as a9,zt as aA,ho as aB,ji as aC,_a as aD,Wi as aE,Rh as aF,Bt as aG,Pn as aH,Et as aI,Il as aJ,wh as aK,Cr as aL,Xi as aM,cn as aN,ai as aO,hM as aP,kp as aQ,rI as aR,Xg as aS,Bu as aT,lg as aU,Wo as aV,Yt as aW,Za as aX,Hi as aY,Rl as aZ,Pl as a_,ft as aa,kf as ab,Te as ac,rt as ad,Ah as ae,co as af,Ri as ag,Ln as ah,GS as ai,Gn as aj,ti as ak,We as al,Dn as am,ht as an,sI as ao,gn as ap,bg as aq,xa as ar,Zm as as,g4 as at,T4 as au,ah as av,Mi as aw,th as ax,Bm as ay,ic as az,an as b,z4 as b$,nC as b0,rC as b1,iC as b2,Yn as b3,jp as b4,wr as b5,dM as b6,lo as b7,wn as b8,AM as b9,jP as bA,xU as bB,_k as bC,Sm as bD,X4 as bE,yE as bF,em as bG,go as bH,V4 as bI,F4 as bJ,cs as bK,m4 as bL,k2 as bM,S4 as bN,Cn as bO,HA as bP,Qr as bQ,Sr as bR,In as bS,Jr as bT,Xn as bU,On as bV,d4 as bW,rn as bX,rs as bY,od as bZ,ei as b_,CM as ba,RM as bb,KS as bc,la as bd,ct as be,EP as bf,PP as bg,wg as bh,vn as bi,Un as bj,Og as bk,jS as bl,Zi as bm,is as bn,JS as bo,QS as bp,$o as bq,Ch as br,Gl as bs,Tg as bt,Hl as bu,Vl as bv,pc as bw,at as bx,Mr as by,dc as bz,ci as c,w2 as c0,h4 as c1,fi as c2,L4 as c3,w4 as c4,A4 as c5,R4 as c6,C4 as c7,u4 as c8,kA as c9,Ym as ca,U4 as cb,B4 as cc,M4 as cd,_4 as ce,v4 as cf,bi as cg,W4 as ch,G4 as ci,Wl as cj,us as ck,Me as cl,Qe as cm,bC as cn,tI as co,yI as cp,$t as cq,nn as d,k4 as e,cA as f,Xe as g,_n as h,Nn as i,qi as j,$_ as k,F2 as l,bl as m,mi as n,ln as o,nb as p,N4 as q,p4 as r,ma as s,mw as t,Pt as u,id as v,Ze as w,Ck as x,Nz as y,f4 as z};
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-Cnlas9Yc.js","assets/HeaderLink.vue_vue_type_script_setup_true_lang-C1ZGRUE3.js","assets/index-ns-YwWID.js","assets/Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js","assets/Stage-vwiukDGA.css","assets/emotions-DklqG3pM.js","assets/MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C-AcXYQs.js","assets/queue-C_pdx0nC.js","assets/queues-DX8_B84M.js","assets/Collapsable.vue_vue_type_script_setup_true_lang-BRAn0QOS.js","assets/index-C6reCA2R.js","assets/providers-kZHh7EE9.js","assets/MobileInteractiveArea-BA62G2rz.css","assets/route-block-B_A1xBdJ.js","assets/index-BKdPP9lW.css","assets/image-BjD5KQov.js","assets/image-BhuwcwI9.css","assets/queue-DLBJqV7W.js","assets/index-CreFigCn.js","assets/index-oyiFuDuq.js","assets/index-CCs7TWBX.js","assets/consciousness-Dq7jzqtg.js","assets/index-B3VU4agt.js","assets/openrouter-CYjSnuEY.js","assets/index-Bb05Rllo.js","assets/delays-kT-elVPo.js","assets/emotions-DBnKXZAu.js","assets/messages-C0ZSpEN4.js","assets/v2-C7lI0fGL.js"])))=>i.map(i=>d[i]);
2
  (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const ew="modulepreload",tw=function(n){return"/"+n},A_={},$t=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(l=>{if(l=tw(l),l in A_)return;A_[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":ew,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};/**
3
  * @vue/shared v3.5.13
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
 
3846
  * pinia v3.0.1
3847
  * (c) 2025 Eduardo San Martin Morote
3848
  * @license MIT
3849
+ */let dT;const Zh=n=>dT=n,pT=Symbol();function _m(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var dl;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(dl||(dl={}));function bk(){const n=Ql(!0),e=n.run(()=>Xe({}));let t=[],i=[];const r=Xm({install(s){Zh(r),r._a=s,s.provide(pT,r),s.config.globalProperties.$pinia=r,i.forEach(o=>t.push(o)),i=[]},use(s){return this._a?t.push(s):i.push(s),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return r}const mT=()=>{};function Ay(n,e,t,i=mT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&th()&&Bm(r),r}function ko(n,...e){n.slice().forEach(t=>{t(...e)})}const Sk=n=>n(),Cy=Symbol(),gp=Symbol();function vm(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t],r=n[t];_m(r)&&_m(i)&&n.hasOwnProperty(t)&&!Mt(i)&&!yr(i)?n[t]=vm(r,i):n[t]=i}return n}const Mk=Symbol();function Ek(n){return!_m(n)||!n.hasOwnProperty(Mk)}const{assign:zr}=Object;function Tk(n){return!!(Mt(n)&&n.effect)}function wk(n,e,t,i){const{state:r,actions:s,getters:o}=e,a=t.state.value[n];let l;function c(){a||(t.state.value[n]=r?r():{});const u=Yx(t.state.value[n]);return zr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Xm(Ce(()=>{Zh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=gT(n,c,e,t,i,!0),l}function gT(n,e,t={},i,r,s){let o;const a=zr({actions:{}},t),l={deep:!0};let c,u,f=[],h=[],d;const p=i.state.value[n];!s&&!p&&(i.state.value[n]={}),Xe({});let _;function g(P){let b;c=u=!1,typeof P=="function"?(P(i.state.value[n]),b={type:dl.patchFunction,storeId:n,events:d}):(vm(i.state.value[n],P),b={type:dl.patchObject,payload:P,storeId:n,events:d});const S=_=Symbol();cs().then(()=>{_===S&&(c=!0)}),u=!0,ko(f,b,i.state.value[n])}const m=s?function(){const{state:b}=t,S=b?b():{};this.$patch(D=>{zr(D,S)})}:mT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Cy in P)return P[gp]=b,P;const S=function(){Zh(i);const D=Array.from(arguments),B=[],H=[];function $(te){B.push(te)}function ee(te){H.push(te)}ko(h,{args:D,name:S[gp],store:E,after:$,onError:ee});let Z;try{Z=P.apply(this&&this.$id===n?this:E,D)}catch(te){throw ko(H,te),te}return Z instanceof Promise?Z.then(te=>(ko(B,te),te)).catch(te=>(ko(H,te),Promise.reject(te))):(ko(B,Z),Z)};return S[Cy]=!0,S[gp]=b,S},v={_p:i,$id:n,$onAction:Ay.bind(null,h),$patch:g,$reset:m,$subscribe(P,b={}){const S=Ay(f,P,b.detached,()=>D()),D=o.run(()=>Ze(()=>i.state.value[n],B=>{(b.flush==="sync"?u:c)&&P({storeId:n,type:dl.direct,events:d},B)},zr({},l,b)));return S},$dispose:y},E=fi(v);i._s.set(n,E);const M=(i._a&&i._a.runWithContext||Sk)(()=>i._e.run(()=>(o=Ql()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Mt(b)&&!Tk(b)||yr(b))s||(p&&Ek(b)&&(Mt(b)?b.value=p[P]:vm(b,p[P])),i.state.value[n][P]=b);else if(typeof b=="function"){const S=x(b,P);M[P]=S,a.actions[P]=b}}return zr(E,M),zr(st(E),M),Object.defineProperty(E,"$state",{get:()=>i.state.value[n],set:P=>{g(b=>{zr(b,P)})}}),i._p.forEach(P=>{zr(E,o.run(()=>P({store:E,app:i._a,pinia:i,options:a})))}),p&&s&&t.hydrate&&t.hydrate(E.$state,p),c=!0,u=!0,E}/*! #__NO_SIDE_EFFECTS__ */function Ak(n,e,t){let i;const r=typeof e=="function";i=r?t:e;function s(o,a){const l=Jm();return o=o||(l?In(pT,null):null),o&&Zh(o),o=dT,o._s.has(n)||(r?gT(n,e,i,o):wk(n,i,o)),o._s.get(n)}return s.$id=n,s}function Ck(n){const e=st(n),t={};for(const i in e){const r=e[i];r.effect?t[i]=Ce({get:()=>n[i],set(s){n[i]=s}}):(Mt(r)||yr(r))&&(t[i]=jx(n,i))}return t}const Rk=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>$t(()=>import("./default-Cnlas9Yc.js"),__vite__mapDeps([0,1])),"/src/layouts/stage.vue":()=>$t(()=>import("./stage-CxX9pQ4e.js"),[])})).forEach(([r,s])=>{let o=r.replace("/src/layouts/","").replace(".vue","");e[o]=s});function i(r,s=!0){return r.map(o=>{var a,l,c,u,f,h;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=i(o.children,!1)),s){if(!o.component&&((l=o.children)==null?void 0:l.find(p=>{var _;return(p.path===""||p.path==="/")&&((_=p.meta)==null?void 0:_.isLayout)})))return o;if(((c=o.meta)==null?void 0:c.layout)!==!1)return{path:o.path,component:e[((u=o.meta)==null?void 0:u.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(f=o.meta)!=null&&f.layout?{path:o.path,component:e[(h=o.meta)==null?void 0:h.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return i(n)};/*!
3850
  * vue-router v4.5.0
3851
  * (c) 2024 Eduardo San Martin Morote
3852
  * @license MIT
3853
+ */const Vo=typeof document<"u";function _T(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function Pk(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&_T(n.default)}const vt=Object.assign;function _p(n,e){const t={};for(const i in e){const r=e[i];t[i]=Pi(r)?r.map(n):n(r)}return t}const pl=()=>{},Pi=Array.isArray,vT=/#/g,Ik=/&/g,Lk=/\//g,Dk=/=/g,Ok=/\?/g,yT=/\+/g,Nk=/%5B/g,Uk=/%5D/g,xT=/%5E/g,Fk=/%60/g,bT=/%7B/g,Bk=/%7C/g,ST=/%7D/g,kk=/%20/g;function f_(n){return encodeURI(""+n).replace(Bk,"|").replace(Nk,"[").replace(Uk,"]")}function zk(n){return f_(n).replace(bT,"{").replace(ST,"}").replace(xT,"^")}function ym(n){return f_(n).replace(yT,"%2B").replace(kk,"+").replace(vT,"%23").replace(Ik,"%26").replace(Fk,"`").replace(bT,"{").replace(ST,"}").replace(xT,"^")}function Vk(n){return ym(n).replace(Dk,"%3D")}function Hk(n){return f_(n).replace(vT,"%23").replace(Ok,"%3F")}function Gk(n){return n==null?"":Hk(n).replace(Lk,"%2F")}function ql(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Wk=/\/$/,Xk=n=>n.replace(Wk,"");function vp(n,e,t="/"){let i,r={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),r=n(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=jk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:ql(o)}}function $k(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Ry(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function qk(n,e,t){const i=e.matched.length-1,r=t.matched.length-1;return i>-1&&i===r&&ua(e.matched[i],t.matched[r])&&MT(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function ua(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function MT(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!Yk(n[t],e[t]))return!1;return!0}function Yk(n,e){return Pi(n)?Py(n,e):Pi(e)?Py(e,n):n===e}function Py(n,e){return Pi(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function jk(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Br={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Yl;(function(n){n.pop="pop",n.push="push"})(Yl||(Yl={}));var ml;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ml||(ml={}));function Kk(n){if(!n)if(Vo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Xk(n)}const Zk=/^[^#]+#/;function Jk(n,e){return n.replace(Zk,"#")+e}function Qk(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Jh=()=>({left:window.scrollX,top:window.scrollY});function ez(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=Qk(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Iy(n,e){return(history.state?history.state.position-e:-1)+n}const xm=new Map;function tz(n,e){xm.set(n,e)}function nz(n){const e=xm.get(n);return xm.delete(n),e}let iz=()=>location.protocol+"//"+location.host;function ET(n,e){const{pathname:t,search:i,hash:r}=e,s=n.indexOf("#");if(s>-1){let a=r.includes(n.slice(s))?n.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),Ry(l,"")}return Ry(t,n)+i+r}function rz(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=ET(n,location),p=t.value,_=e.value;let g=0;if(h){if(t.value=d,e.value=h,o&&o===p){o=null;return}g=_?h.position-_.position:0}else i(d);r.forEach(m=>{m(t.value,p,{delta:g,type:Yl.pop,direction:g?g>0?ml.forward:ml.back:ml.unknown})})};function l(){o=t.value}function c(h){r.push(h);const d=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return s.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(vt({},h.state,{scroll:Jh()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Ly(n,e,t,i=!1,r=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:r?Jh():null}}function sz(n){const{history:e,location:t}=window,i={value:ET(n,t)},r={value:e.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=n.indexOf("#"),h=f>-1?(t.host&&document.querySelector("base")?n:n.slice(f))+l:iz()+n+l;try{e[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),t[u?"replace":"assign"](h)}}function o(l,c){const u=vt({},e.state,Ly(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});s(l,u,!0),i.value=l}function a(l,c){const u=vt({},r.value,e.state,{forward:l,scroll:Jh()});s(u.current,u,!0);const f=vt({},Ly(i.value,l,null),{position:u.position+1},c);s(l,f,!1),i.value=l}return{location:i,state:r,push:a,replace:o}}function oz(n){n=Kk(n);const e=sz(n),t=rz(n,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const r=vt({location:"",base:n,go:i,createHref:Jk.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function az(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),oz(n)}function lz(n){return typeof n=="string"||n&&typeof n=="object"}function TT(n){return typeof n=="string"||typeof n=="symbol"}const wT=Symbol("");var Dy;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Dy||(Dy={}));function fa(n,e){return vt(new Error,{type:n,[wT]:!0},e)}function ar(n,e){return n instanceof Error&&wT in n&&(e==null||!!(n.type&e))}const Oy="[^/]+?",cz={sensitive:!1,strict:!1,start:!0,end:!0},uz=/[.+*?^${}()[\]/\\]/g;function fz(n,e){const t=vt({},cz,e),i=[];let r=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=40+(t.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(uz,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:_,optional:g,regexp:m}=h;s.push({name:p,repeatable:_,optional:g});const y=m||Oy;if(y!==Oy){d+=10;try{new RegExp(`(${y})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+v.message)}}let x=_?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(x=g&&c.length<2?`(?:/${x})`:"/"+x),g&&(x+="?"),r+=x,d+=20,g&&(d+=-8),_&&(d+=-20),y===".*"&&(d+=-50)}u.push(d)}i.push(u)}if(t.strict&&t.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,t.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",p=s[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of n){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===0)u+=d.value;else if(d.type===1){const{value:p,repeatable:_,optional:g}=d,m=p in c?c[p]:"";if(Pi(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Pi(m)?m.join("/"):m;if(!y)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=y}}return u||"/"}return{re:o,score:i,keys:s,parse:a,stringify:l}}function hz(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function AT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=hz(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(Ny(i))return 1;if(Ny(r))return-1}return r.length-i.length}function Ny(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const dz={type:0,value:""},pz=/[a-zA-Z0-9_]/;function mz(n){if(!n)return[[]];if(n==="/")return[[dz]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(d){throw new Error(`ERR (${t})/"${c}": ${d}`)}let t=0,i=t;const r=[];let s;function o(){s&&r.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<n.length;){if(l=n[a++],l==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:l==="/"?(c&&f(),o()):l===":"?(f(),t=1):h();break;case 4:h(),t=i;break;case 1:l==="("?t=2:pz.test(l)?h():(f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:t=3:u+=l;break;case 3:f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}function gz(n,e,t){const i=fz(mz(n.path),t),r=vt(i,{record:n,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function _z(n,e){const t=[],i=new Map;e=ky({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=Fy(f);_.aliasOf=d&&d.record;const g=ky(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of v)m.push(Fy(vt({},_,{components:d?d.record.components:_.components,path:E,aliasOf:d?d.record:_})))}let y,x;for(const v of m){const{path:E}=v;if(h&&E[0]!=="/"){const T=h.record.path,M=T[T.length-1]==="/"?"":"/";v.path=h.record.path+(E&&M+E)}if(y=gz(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!By(y)&&o(f.name)),CT(y)&&l(y),_.children){const T=_.children;for(let M=0;M<T.length;M++)s(T[M],y,d&&d.children[M])}d=d||y}return x?()=>{o(x)}:pl}function o(f){if(TT(f)){const h=i.get(f);h&&(i.delete(f),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(f);h>-1&&(t.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return t}function l(f){const h=xz(f,t);t.splice(h,0,f),f.record.name&&!By(f)&&i.set(f.record.name,f)}function c(f,h){let d,p={},_,g;if("name"in f&&f.name){if(d=i.get(f.name),!d)throw fa(1,{location:f});g=d.record.name,p=vt(Uy(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&Uy(f.params,d.keys.map(x=>x.name))),_=d.stringify(p)}else if(f.path!=null)_=f.path,d=t.find(x=>x.re.test(_)),d&&(p=d.parse(_),g=d.record.name);else{if(d=h.name?i.get(h.name):t.find(x=>x.re.test(h.path)),!d)throw fa(1,{location:f,currentLocation:h});g=d.record.name,p=vt({},h.params,f.params),_=d.stringify(p)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:_,params:p,matched:m,meta:yz(m)}}n.forEach(f=>s(f));function u(){t.length=0,i.clear()}return{addRoute:s,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function Uy(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function Fy(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:vz(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function vz(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function By(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function yz(n){return n.reduce((e,t)=>vt(e,t.meta),{})}function ky(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function xz(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;AT(n,e[s])<0?i=s:t=s+1}const r=bz(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function bz(n){let e=n;for(;e=e.parent;)if(CT(e)&&AT(n,e)===0)return e}function CT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function Sz(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(yT," "),o=s.indexOf("="),a=ql(o<0?s:s.slice(0,o)),l=o<0?null:ql(s.slice(o+1));if(a in e){let c=e[a];Pi(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function zy(n){let e="";for(let t in n){const i=n[t];if(t=Vk(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Pi(i)?i.map(s=>s&&ym(s)):[i&&ym(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function Mz(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Pi(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const Ez=Symbol(""),Vy=Symbol(""),Qh=Symbol(""),RT=Symbol(""),bm=Symbol("");function ka(){let n=[];function e(i){return n.push(i),()=>{const r=n.indexOf(i);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function $r(n,e,t,i,r,s=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(fa(4,{from:t,to:e})):h instanceof Error?l(h):lz(h)?l(fa(2,{from:e,to:h})):(o&&i.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),a())},u=s(()=>n.call(i&&i.instances[r],e,t,c));let f=Promise.resolve(u);n.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function yp(n,e,t,i,r=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(_T(l)){const u=(l.__vccOpts||l)[e];u&&s.push($r(u,t,i,o,a,r))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=Pk(u)?u.default:u;o.mods[a]=u,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&$r(d,t,i,o,a,r)()}))}}return s}function Hy(n){const e=In(Qh),t=In(RT),i=Ce(()=>{const l=Pt(n.to);return e.resolve(l)}),r=Ce(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],f=t.matched;if(!u||!f.length)return-1;const h=f.findIndex(ua.bind(null,u));if(h>-1)return h;const d=Gy(l[c-2]);return c>1&&Gy(u)===d&&f[f.length-1].path!==d?f.findIndex(ua.bind(null,l[c-2])):h}),s=Ce(()=>r.value>-1&&Rz(t.params,i.value.params)),o=Ce(()=>r.value>-1&&r.value===t.matched.length-1&&MT(t.params,i.value.params));function a(l={}){if(Cz(l)){const c=e[Pt(n.replace)?"replace":"push"](Pt(n.to)).catch(pl);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:i,href:Ce(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function Tz(n){return n.length===1?n[0]:n}const wz=nn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hy,setup(n,{slots:e}){const t=fi(Hy(n)),{options:i}=In(Qh),r=Ce(()=>({[Wy(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[Wy(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&Tz(e.default(t));return n.custom?s:Sr("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),Az=wz;function Cz(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function Rz(n,e){for(const t in e){const i=e[t],r=n[t];if(typeof i=="string"){if(i!==r)return!1}else if(!Pi(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function Gy(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const Wy=(n,e,t)=>n??e??t,Pz=nn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=In(bm),r=Ce(()=>n.route||i.value),s=In(Vy,0),o=Ce(()=>{let c=Pt(s);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Ce(()=>r.value.matched[o.value]);Jr(Vy,Ce(()=>o.value+1)),Jr(Ez,a),Jr(bm,r);const l=Xe();return Ze(()=>[l.value,a.value,n.name],([c,u,f],[h,d,p])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!ua(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,u=n.name,f=a.value,h=f&&f.components[u];if(!h)return Xy(t.default,{Component:h,route:c});const d=f.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,g=Sr(h,vt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Xy(t.default,{Component:g,route:c})||g}}});function Xy(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const PT=Pz;function Iz(n){const e=_z(n.routes,n),t=n.parseQuery||Sz,i=n.stringifyQuery||zy,r=n.history,s=ka(),o=ka(),a=ka(),l=ze(Br);let c=Br;Vo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=_p.bind(null,W=>""+W),f=_p.bind(null,Gk),h=_p.bind(null,ql);function d(W,ae){let ue,le;return TT(W)?(ue=e.getRecordMatcher(W),le=ae):le=W,e.addRoute(le,ue)}function p(W){const ae=e.getRecordMatcher(W);ae&&e.removeRoute(ae)}function _(){return e.getRoutes().map(W=>W.record)}function g(W){return!!e.getRecordMatcher(W)}function m(W,ae){if(ae=vt({},ae||l.value),typeof W=="string"){const w=vp(t,W,ae.path),j=e.resolve({path:w.path},ae),G=r.createHref(w.fullPath);return vt(w,j,{params:h(j.params),hash:ql(w.hash),redirectedFrom:void 0,href:G})}let ue;if(W.path!=null)ue=vt({},W,{path:vp(t,W.path,ae.path).path});else{const w=vt({},W.params);for(const j in w)w[j]==null&&delete w[j];ue=vt({},W,{params:f(w)}),ae.params=f(ae.params)}const le=e.resolve(ue,ae),De=W.hash||"";le.params=u(h(le.params));const I=$k(i,vt({},W,{hash:zk(De),path:le.path})),L=r.createHref(I);return vt({fullPath:I,hash:De,query:i===zy?Mz(W.query):W.query||{}},le,{redirectedFrom:void 0,href:L})}function y(W){return typeof W=="string"?vp(t,W,l.value.path):vt({},W)}function x(W,ae){if(c!==W)return fa(8,{from:ae,to:W})}function v(W){return M(W)}function E(W){return v(vt(y(W),{replace:!0}))}function T(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:ue}=ae;let le=typeof ue=="function"?ue(W):ue;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=y(le):{path:le},le.params={}),vt({query:W.query,hash:W.hash,params:le.path!=null?{}:W.params},le)}}function M(W,ae){const ue=c=m(W),le=l.value,De=W.state,I=W.force,L=W.replace===!0,w=T(ue);if(w)return M(vt(y(w),{state:typeof w=="object"?vt({},De,w.state):De,force:I,replace:L}),ae||ue);const j=ue;j.redirectedFrom=ae;let G;return!I&&qk(i,le,ue)&&(G=fa(16,{to:j,from:le}),re(le,le,!0,!1)),(G?Promise.resolve(G):S(j,le)).catch(q=>ar(q)?ar(q,2)?q:ve(q):Q(q,j,le)).then(q=>{if(q){if(ar(q,2))return M(vt({replace:L},y(q.to),{state:typeof q.to=="object"?vt({},De,q.to.state):De,force:I}),ae||j)}else q=B(j,le,!0,L,De);return D(j,le,q),q})}function P(W,ae){const ue=x(W,ae);return ue?Promise.reject(ue):Promise.resolve()}function b(W){const ae=se.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function S(W,ae){let ue;const[le,De,I]=Lz(W,ae);ue=yp(le.reverse(),"beforeRouteLeave",W,ae);for(const w of le)w.leaveGuards.forEach(j=>{ue.push($r(j,W,ae))});const L=P.bind(null,W,ae);return ue.push(L),be(ue).then(()=>{ue=[];for(const w of s.list())ue.push($r(w,W,ae));return ue.push(L),be(ue)}).then(()=>{ue=yp(De,"beforeRouteUpdate",W,ae);for(const w of De)w.updateGuards.forEach(j=>{ue.push($r(j,W,ae))});return ue.push(L),be(ue)}).then(()=>{ue=[];for(const w of I)if(w.beforeEnter)if(Pi(w.beforeEnter))for(const j of w.beforeEnter)ue.push($r(j,W,ae));else ue.push($r(w.beforeEnter,W,ae));return ue.push(L),be(ue)}).then(()=>(W.matched.forEach(w=>w.enterCallbacks={}),ue=yp(I,"beforeRouteEnter",W,ae,b),ue.push(L),be(ue))).then(()=>{ue=[];for(const w of o.list())ue.push($r(w,W,ae));return ue.push(L),be(ue)}).catch(w=>ar(w,8)?w:Promise.reject(w))}function D(W,ae,ue){a.list().forEach(le=>b(()=>le(W,ae,ue)))}function B(W,ae,ue,le,De){const I=x(W,ae);if(I)return I;const L=ae===Br,w=Vo?history.state:{};ue&&(le||L?r.replace(W.fullPath,vt({scroll:L&&w&&w.scroll},De)):r.push(W.fullPath,De)),l.value=W,re(W,ae,ue,L),ve()}let H;function $(){H||(H=r.listen((W,ae,ue)=>{if(!ge.listening)return;const le=m(W),De=T(le);if(De){M(vt(De,{replace:!0,force:!0}),le).catch(pl);return}c=le;const I=l.value;Vo&&tz(Iy(I.fullPath,ue.delta),Jh()),S(le,I).catch(L=>ar(L,12)?L:ar(L,2)?(M(vt(y(L.to),{force:!0}),le).then(w=>{ar(w,20)&&!ue.delta&&ue.type===Yl.pop&&r.go(-1,!1)}).catch(pl),Promise.reject()):(ue.delta&&r.go(-ue.delta,!1),Q(L,le,I))).then(L=>{L=L||B(le,I,!1),L&&(ue.delta&&!ar(L,8)?r.go(-ue.delta,!1):ue.type===Yl.pop&&ar(L,20)&&r.go(-1,!1)),D(le,I,L)}).catch(pl)}))}let ee=ka(),Z=ka(),te;function Q(W,ae,ue){ve(W);const le=Z.list();return le.length?le.forEach(De=>De(W,ae,ue)):console.error(W),Promise.reject(W)}function pe(){return te&&l.value!==Br?Promise.resolve():new Promise((W,ae)=>{ee.add([W,ae])})}function ve(W){return te||(te=!W,$(),ee.list().forEach(([ae,ue])=>W?ue(W):ae()),ee.reset()),W}function re(W,ae,ue,le){const{scrollBehavior:De}=n;if(!Vo||!De)return Promise.resolve();const I=!ue&&nz(Iy(W.fullPath,0))||(le||!ue)&&history.state&&history.state.scroll||null;return cs().then(()=>De(W,ae,I)).then(L=>L&&ez(L)).catch(L=>Q(L,W,ae))}const xe=W=>r.go(W);let Ve;const se=new Set,ge={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:_,resolve:m,options:n,push:v,replace:E,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:pe,install(W){const ae=this;W.component("RouterLink",Az),W.component("RouterView",PT),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Pt(l)}),Vo&&!Ve&&l.value===Br&&(Ve=!0,v(r.location).catch(De=>{}));const ue={};for(const De in Br)Object.defineProperty(ue,De,{get:()=>l.value[De],enumerable:!0});W.provide(Qh,ae),W.provide(RT,Xx(ue)),W.provide(bm,l);const le=W.unmount;se.add(W),W.unmount=function(){se.delete(W),se.size<1&&(c=Br,H&&H(),H=null,l.value=Br,Ve=!1,te=!1),le()}}};function be(W){return W.reduce((ae,ue)=>ae.then(()=>b(ue)),Promise.resolve())}return ge}function Lz(n,e){const t=[],i=[],r=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(n.matched.find(c=>ua(c,a))?i.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(c=>ua(c,l))||r.push(l))}return[t,i,r]}function Dz(){return In(Qh)}const Oz=[{path:"/",name:"/",component:()=>$t(()=>import("./index-ns-YwWID.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,1,10,11,12,13,14])),meta:{layout:"stage",stageTransition:{name:"bubble-wave-out"}}},{path:"/:all(.*)",name:"/[...all]",component:()=>$t(()=>import("./_...all_-DIDUSaAx.js"),[])},{path:"/audio",name:"/audio",component:()=>$t(()=>import("./audio-Cj2xupGD.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>$t(()=>import("./image-BjD5KQov.js"),__vite__mapDeps([15,16]))}]},{path:"/queue",name:"/queue",component:()=>$t(()=>import("./queue-DLBJqV7W.js"),__vite__mapDeps([17,7]))},{path:"/settings",children:[{path:"",name:"/settings/",component:()=>$t(()=>import("./index-CreFigCn.js"),__vite__mapDeps([18,5,13])),meta:{stageTransition:{name:"slide"}}},{path:"models",children:[{path:"",name:"/settings/models/",component:()=>$t(()=>import("./index-oyiFuDuq.js"),__vite__mapDeps([19,13])),meta:{stageTransition:{name:"slide"}}}]},{path:"modules",children:[{path:"",name:"/settings/modules/",component:()=>$t(()=>import("./index-CCs7TWBX.js"),__vite__mapDeps([20,13])),meta:{stageTransition:{name:"slide"}}},{path:"consciousness",name:"/settings/modules/consciousness",component:()=>$t(()=>import("./consciousness-Dq7jzqtg.js"),__vite__mapDeps([21,13])),meta:{stageTransition:{name:"slide"}}}]},{path:"providers",children:[{path:"",name:"/settings/providers/",component:()=>$t(()=>import("./index-B3VU4agt.js"),__vite__mapDeps([22,5,11,13])),meta:{stageTransition:{name:"slide"}}},{path:"openrouter",name:"/settings/providers/openrouter",component:()=>$t(()=>import("./openrouter-CYjSnuEY.js"),__vite__mapDeps([23,9,3,4,5,11]))}]},{path:"themes",children:[{path:"",name:"/settings/themes/",component:()=>$t(()=>import("./index-Bb05Rllo.js"),__vite__mapDeps([24,13])),meta:{stageTransition:{name:"slide"}}}]}]},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>$t(()=>import("./filter-message-BtyIiIWg.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>$t(()=>import("./delays-kT-elVPo.js"),__vite__mapDeps([25,8,5,7,3,4,10]))},{path:"emotions",name:"/test/queues/emotions",component:()=>$t(()=>import("./emotions-DBnKXZAu.js"),__vite__mapDeps([26,8,5,7,3,4]))},{path:"messages",name:"/test/queues/messages",component:()=>$t(()=>import("./messages-C0ZSpEN4.js"),__vite__mapDeps([27,8,5,7,3,4]))}]}]},{path:"/v2",name:"/v2",component:()=>$t(()=>import("./v2-C7lI0fGL.js"),__vite__mapDeps([28,3,4,5,6,7,8,9,1,10,11,12,13])),meta:{layout:"default"}}];var Sm=(n=>(n.Myriam="Myriam",n.Beatrice="Beatrice",n.Camilla_KM="Camilla_KM",n.SallySunshine="Sally Sunshine",n.Annie="Annie",n.KawaiiAerisita="Kawaii Aerisita",n.Morioki="Morioki",n))(Sm||{});const X4={Myriam:"lNxY9WuCBCZCISASyJ55",Beatrice:"KAsXoQDshjF6ehsWa1mF",Camilla_KM:"dLhSyo03JRp5WkGpUlz1","Sally Sunshine":"qswttdunP3b44zVZKMRB",Annie:"AfA1PA0ldViH0DA6pbml","Kawaii Aerisita":"vGQNBgLaiM3EdZtxIiuY",Morioki:"8EkOjt4xTPGMclNlh1pk"},Nz=Ak("settings",()=>{const n=Xe(),e=bi("settings/language","en-US"),t=bi("settings/stage/view/model-renderer","2d"),i=bi("settings/credentials/openai-api-key",""),r=bi("settings/credentials/openai-api-base-url",""),s=bi("settings/credentials/elevenlabs-api-key",""),o=bi("settings/llm/openai/model",{id:"openai/gpt-3.5-turbo",name:"OpenAI GPT3.5 Turbo"}),a=bi("settings/audio/input","true"),l=Ce(()=>{var v;return(v=n.value)==null?void 0:v.deviceId}),{audioInputs:c}=k2({constraints:{audio:!0},requestPermissions:!0}),u=bi("settings/llm/elevenlabs/voice/en",Sm.Myriam),f=bi("settings/llm/elevenlabs/voice/ja",Sm.Morioki),h=Xe(),d=Xe("./assets/live2d/models/hiyori_pro_zh.zip"),p=Xe("url"),_=Xe(!1),g=bi("settings/live2d/position",{x:0,y:0}),m=Xe({group:"Idle",index:0}),y=Xe([]),x=bi("settings/live2d/motion-map",{});return Ze(a,v=>{v==="false"&&(n.value=void 0),v==="true"&&(n.value=c.value[0])}),Nn(()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),Ze(c,()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),{openAiApiKey:i,openAiApiBaseURL:r,openAiModel:o,elevenLabsApiKey:s,live2dModelFile:h,live2dModelUrl:d,live2dLoadSource:p,live2dCurrentMotion:m,live2dPosition:g,availableLive2dMotions:y,live2dMotionMap:x,loadingLive2dModel:_,language:e,stageView:t,isAudioInputOn:a,selectedAudioDevice:n,selectedAudioDeviceId:l,elevenlabsVoiceEnglish:u,elevenlabsVoiceJapanese:f}}),Uz=nn({__name:"ArrowTransition",props:{stageTransition:{default:()=>({primaryColor:"#666",secondaryColor:"#ccc"})}},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>t.value.primaryColor||"#666"),r=Ce(()=>t.value.secondaryColor||"#ccc");return Nn(()=>{document.documentElement.style.setProperty("--stage-transition-3-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-3-overlay-color-2",r.value)}),(s,o)=>(ln(),ci("div",{class:"stage-transition-3",style:mi({zIndex:t.value.zIndex||100})},null,4))}}),vo=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},Fz=vo(Uz,[["__scopeId","data-v-6dbef2c1"]]),Bz=nn({__name:"BubbleWaveOutTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>{var i;return((i=e.stageTransition)==null?void 0:i.colors)||["#eee","#ebcb8b","#c56370","#3f3b52"]});return Nn(()=>{var i,r;document.documentElement.style.setProperty("--circle-expansion-delay",`${((i=e.stageTransition)==null?void 0:i.delay)||0}s`),document.documentElement.style.setProperty("--circle-expansion-duration",`${((r=e.stageTransition)==null?void 0:r.duration)||.4}s`),t.value.forEach((s,o)=>{document.documentElement.style.setProperty(`--circle-expansion-color-${o+1}`,s)})}),(i,r)=>{var s;return ln(),ci("div",{class:"circle-expansion-transition",style:mi({zIndex:((s=n.stageTransition)==null?void 0:s.zIndex)||100})},[(ln(!0),ci(Gt,null,lA(t.value,(o,a)=>(ln(),ci("div",{key:a}))),128))],4)}}}),kz=vo(Bz,[["__scopeId","data-v-58c4c777"]]),zz=nn({__name:"FantasyFallTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>{var r;return((r=e.stageTransition)==null?void 0:r.direction)||"up"}),i=Ce(()=>`fantasy-fall-${t.value}`);return Nn(()=>{var r,s,o,a,l,c,u,f,h;document.documentElement.style.setProperty("--fantasy-fall-color",((r=e.stageTransition)==null?void 0:r.primaryColor)||"#eee"),document.documentElement.style.setProperty("--fantasy-fall-duration",`${((s=e.stageTransition)==null?void 0:s.duration)||.6}s`),document.documentElement.style.setProperty("--fantasy-fall-delay",`${((o=e.stageTransition)==null?void 0:o.delay)||0}s`),document.documentElement.style.setProperty("--fantasy-fall-radius-sm",`${((l=(a=e.stageTransition)==null?void 0:a.borderRadius)==null?void 0:l.sm)||"14rem"}`),document.documentElement.style.setProperty("--fantasy-fall-radius-md",`${((u=(c=e.stageTransition)==null?void 0:c.borderRadius)==null?void 0:u.md)||"14rem"}`),document.documentElement.style.setProperty("--fantasy-fall-radius-lg",`${((h=(f=e.stageTransition)==null?void 0:f.borderRadius)==null?void 0:h.lg)||"50%"}`)}),(r,s)=>{var o;return ln(),ci("div",{class:ma(["fantasy-fall-transition",i.value]),style:mi({zIndex:((o=n.stageTransition)==null?void 0:o.zIndex)??100})},null,6)}}}),Vz=vo(zz,[["__scopeId","data-v-9e7fdd2b"]]),Hz=nn({__name:"MultipleBlocksRevealTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>{var s;return((s=t.value)==null?void 0:s.primaryColor)||"#666"}),r=Ce(()=>{var s;return((s=t.value)==null?void 0:s.secondaryColor)||"#ccc"});return Nn(()=>{document.documentElement.style.setProperty("--stage-transition-4-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-4-overlay-color-2",r.value)}),(s,o)=>{var a;return ln(),ci("div",{class:"stage-transition-4",style:mi({zIndex:((a=t.value)==null?void 0:a.zIndex)??100})},o[0]||(o[0]=[VA('<div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div><div class="stage-transition-4__block" data-v-b359e365></div>',5)]),4)}}}),Gz=vo(Hz,[["__scopeId","data-v-b359e365"]]),Wz=nn({__name:"SlideTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>{var s;return((s=t.value)==null?void 0:s.primaryColor)||"#666"}),r=Ce(()=>{var s;return((s=t.value)==null?void 0:s.secondaryColor)||"#ccc"});return Ze([t,i,r],()=>{document.documentElement.style.setProperty("--stage-transition-1-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-1-overlay-color-2",r.value)}),Nn(()=>{document.documentElement.style.setProperty("--stage-transition-1-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-1-overlay-color-2",r.value)}),(s,o)=>{var a;return ln(),ci("div",{class:"stage-transition-1",style:mi({zIndex:((a=t.value)==null?void 0:a.zIndex)??100})},null,4)}}}),Xz=vo(Wz,[["__scopeId","data-v-9f6e49ad"]]),$z=nn({__name:"SlopeSlideTransition",props:{stageTransition:null},setup(n){const e=n,t=Ce(()=>e.stageTransition),i=Ce(()=>{var s;return((s=t.value)==null?void 0:s.primaryColor)??"#666"}),r=Ce(()=>{var s;return((s=t.value)==null?void 0:s.secondaryColor)??"#ccc"});return Nn(()=>{document.documentElement.style.setProperty("--stage-transition-2-overlay-color-1",i.value),document.documentElement.style.setProperty("--stage-transition-2-overlay-color-2",r.value)}),(s,o)=>{var a;return ln(),ci("div",{class:"stage-transition-2",style:mi({zIndex:((a=t.value)==null?void 0:a.zIndex)??100})},null,4)}}}),qz=vo($z,[["__scopeId","data-v-63e4fb63"]]),Yz=nn({__name:"RectanglesRotateTransition",props:{stageTransition:null},setup(n){const e=n;return Nn(()=>{var t,i,r,s,o,a,l;document.documentElement.style.setProperty("--rectangle-rotate-1-color",((t=e.stageTransition)==null?void 0:t.primaryColor)||"#ebcb8b"),document.documentElement.style.setProperty("--rectangle-rotate-2-color",((i=e.stageTransition)==null?void 0:i.secondaryColor)||"#c56370"),document.documentElement.style.setProperty("--rectangle-rotate-3-color",((r=e.stageTransition)==null?void 0:r.tertiaryColor)||"#43445b"),document.documentElement.style.setProperty("--rectangle-rotate-duration",`${((s=e.stageTransition)==null?void 0:s.duration)||.6}s`),document.documentElement.style.setProperty("--rectangle-rotate-delay",`${((o=e.stageTransition)==null?void 0:o.delay)||0}s`),document.documentElement.style.setProperty("--rectangle-rotate-stagger",`${((a=e.stageTransition)==null?void 0:a.staggerDelay)||.1}s`),document.documentElement.style.setProperty("--rectangle-rotate-rotation",`${((l=e.stageTransition)==null?void 0:l.rotation)||270}deg`)}),(t,i)=>{var r;return ln(),ci("div",{class:"rectangle-rotate-transition",style:mi({zIndex:((r=n.stageTransition)==null?void 0:r.zIndex)??100})},i[0]||(i[0]=[Gr("div",{class:"rectangle rectangle-rotate-1"},[Gr("div")],-1),Gr("div",{class:"rectangle rectangle-rotate-2"},[Gr("div")],-1),Gr("div",{class:"rectangle rectangle-rotate-3"},[Gr("div")],-1)]),4)}}}),jz=vo(Yz,[["__scopeId","data-v-a62a24a5"]]),Kz=nn({__name:"StageTransitionGroup",props:{primaryColor:null,secondaryColor:null,tertiaryColor:null,colors:null,zIndex:null},setup(n){const e=n,t=Dz(),i=Xe(!1),r=Xe(),s=Xe(""),o=Xe(),a=ze({slide:{component:Xz,duration:2700},"slope-slide":{component:qz,duration:2700},arrow:{component:Fz,duration:2700},"multiple-blocks-reveal":{component:Gz,duration:2800},"fantasy-fall":{component:Vz,duration:2700},"rectangles-rotate":{component:jz,duration:2700},"bubble-wave-out":{component:kz,duration:1e3}}),l=Xe([]);function c(d){return l.value.push(d),()=>{const p=l.value.indexOf(d);p>=0&&l.value.splice(p,1)}}async function u(d,p={}){r.value=d;for(const _ of l.value)try{await Promise.resolve(_(d,p))}catch(g){console.error(`Error in transition hook at stage "${d}":`,g)}}async function f(d,p,_){if(d.name==="none"||!d.name){p(),_();return}const g=a.value[d.name];if(!g){console.error(`Transition ${d.name} not found`),p(),_();return}const m=g.nextDelay!==void 0?g.nextDelay:g.duration/3;let y=!1;const v=c(E=>{E==="navigation"&&!y&&(y=!0,p())});try{await u("before-enter",{transitionName:d.name}),i.value&&(await u("before-leave",{transitionName:s.value}),s.value="",o.value=void 0,i.value=!1,await u("after-leave",{transitionName:s.value}),await new Promise(T=>setTimeout(T,50))),s.value=d.name,o.value=d,i.value=!0,await u("enter-active",{transitionName:name}),setTimeout(async()=>{await u("navigation",{transitionName:d.name,config:g}),y||(y=!0,p())},m),setTimeout(async()=>{await u("after-enter",{transitionName:d.name})},g.duration),setTimeout(async()=>{await u("before-leave",{transitionName:d.name})},g.duration+10),setTimeout(async()=>{await u("leave-active",{transitionName:d.name})},g.duration+20);const E=g.exitDuration??0;setTimeout(async()=>{i.value=!1,s.value="",o.value=void 0,await u("after-leave",{transitionName:d.name}),_()},g.duration+E)}catch(E){console.error(E)}finally{v(),setTimeout(()=>{y||(y=!0,p())},g.duration*2)}}function h(d,p){return new Promise(_=>{f(d,p,_)})}return t.beforeEach((d,p,_)=>{if(typeof d.meta.stageTransition!="object"){_();return}const g=d.meta.stageTransition;typeof e.primaryColor<"u"&&(g.primaryColor=e.primaryColor),typeof e.secondaryColor<"u"&&(g.secondaryColor=e.secondaryColor),typeof e.tertiaryColor<"u"&&(g.tertiaryColor=e.tertiaryColor),typeof e.colors<"u"&&(g.colors=e.colors),typeof e.zIndex<"u"&&(g.zIndex=e.zIndex),h(g,_)}),(d,p)=>(ln(),ci(Gt,null,[cA(d.$slots,"default"),i.value?(ln(),ci(Gt,{key:0},[a.value[s.value]?(ln(),bl(aA(a.value[s.value].component),{key:0,"stage-transition":o.value},null,8,["stage-transition"])):$_("",!0)],64)):$_("",!0)],64))}});/*!
3854
  * shared v11.1.2
3855
  * (c) 2025 kazuya kawaguchi
3856
  * Released under the MIT License.
 
3900
  - <|DELAY:3|> (延迟 3 秒)
3901
 
3902
  最后,做任何你想做的事!
3903
+ `}}},settings:{"elevenlabs-api-key":{label:{t:0,b:{t:2,i:[{t:3}],s:"ElevenLabs API 密钥"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"输入您的 ElevenLabs API 密钥"}},placeholder_mobile:{t:0,b:{t:2,i:[{t:3}],s:"ElevenLabs API Key"}}},language:{chinese:{t:0,b:{t:2,i:[{t:3}],s:"简体中文"}},english:{t:0,b:{t:2,i:[{t:3}],s:"English"}},title:{t:0,b:{t:2,i:[{t:3}],s:"语言"}}},live2d:{"change-model":{"from-file":{t:0,b:{t:2,i:[{t:3}],s:"从文件加载"}},"from-file-select":{t:0,b:{t:2,i:[{t:3}],s:"选择"}},"from-url":{t:0,b:{t:2,i:[{t:3}],s:"从 URL 加载"}},"from-url-confirm":{t:0,b:{t:2,i:[{t:3}],s:"加载"}},"from-url-placeholder":{t:0,b:{t:2,i:[{t:3}],s:"输入 Live2D 模型 URL"}},title:{t:0,b:{t:2,i:[{t:3}],s:"更换模型"}}},"map-motions":{play:{t:0,b:{t:2,i:[{t:3}],s:"播放动作"}},title:{t:0,b:{t:2,i:[{t:3}],s:"映射动作"}}},title:{t:0,b:{t:2,i:[{t:3}],s:"Live2D 设置"}}},microphone:{t:0,b:{t:2,i:[{t:3}],s:"麦克风"}},"model-provider":{title:{t:0,b:{t:2,i:[{t:3}],s:"模型提供商"}}},models:{t:0,b:{t:2,i:[{t:3}],s:"模型"}},"openai-api-key":{label:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI API 密钥"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"输入您的 API 密钥"}},placeholder_mobile:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI API Key"}}},"openai-base-url":{label:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI API BaseURL"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"输入您的 API BaseURL"}},placeholder_mobile:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI BaseURL"}}},theme:{t:0,b:{t:2,i:[{t:3}],s:"主题颜色"}},title:{t:0,b:{t:2,i:[{t:3}],s:"设置"}},voices:{t:0,b:{t:2,i:[{t:3}],s:"声线"}}},stage:{chat:{message:{"character-name":{airi:{t:0,b:{t:2,i:[{t:3}],s:"Airi"}},"core-system":{t:0,b:{t:2,i:[{t:3}],s:"核心系统"}},you:{t:0,b:{t:2,i:[{t:3}],s:"你"}}}},tabs:{chat:{t:0,b:{t:2,i:[{t:3}],s:"聊天"}},clothes:{t:0,b:{t:2,i:[{t:3}],s:"换装"}},custom:{t:0,b:{t:2,i:[{t:3}],s:"自定义"}}}},message:{t:0,b:{t:2,i:[{t:3}],s:"消息"}},operations:{"load-models":{t:0,b:{t:2,i:[{t:3}],s:"加载推理模型"}},"load-models-status":{loading:{t:0,b:{t:2,i:[{t:3}],s:"加载中"}},ready:{t:0,b:{t:2,i:[{t:3}],s:"已就绪"}}}},"select-a-audio-input":{t:0,b:{t:2,i:[{t:3}],s:"选择一个音频输入设备"}},"select-a-model":{t:0,b:{t:2,i:[{t:3}],s:"选择一个模型"}},"select-a-voice":{t:0,b:{t:2,i:[{t:3}],s:"选择一个声线"}},viewers:{"debug-menu":{emotions:{t:0,b:{t:2,i:[{t:3}],s:"表情"}}}},waiting:{t:0,b:{t:2,i:[{t:3}],s:"等待中"}}}}}),o4=YH({locale:a4(),fallbackLocale:"en",messages:qT});function a4(){const n=localStorage.getItem("settings/language"),e=Object.keys(qT);return n&&e.includes(n)?n:"en"}const l4=bk(),c4=Rk(Oz);let yc;yc=Iz({routes:c4,history:az()});yc.beforeEach((n,e)=>{n.path!==e.path&&hT.start()});yc.afterEach(()=>{hT.done()});yc.isReady().then(async()=>{}).catch(()=>{});w1(s4).use(gk).use($1).use(yc).use(l4).use(o4).use(bU).mount("#app");export{ze as $,b4 as A,Mt as B,Dz as C,Ce as D,lA as E,Gt as F,Az as G,P4 as H,zA as I,x4 as J,E4 as K,Ak as L,st as M,jx as N,O4 as O,jg as P,I4 as Q,PT as R,D4 as S,y4 as T,Y2 as U,z2 as V,q1 as W,Y1 as X,Yx as Y,pE as Z,vo as _,Gr as a,xI as a$,H4 as a0,Ki as a1,F as a2,nI as a3,qn as a4,Wh as a5,fe as a6,Wt as a7,va as a8,Xr as a9,zt as aA,ho as aB,ji as aC,_a as aD,Wi as aE,Rh as aF,Bt as aG,Pn as aH,Et as aI,Il as aJ,wh as aK,Cr as aL,Xi as aM,cn as aN,ai as aO,hM as aP,kp as aQ,rI as aR,Xg as aS,Bu as aT,lg as aU,Wo as aV,Yt as aW,Za as aX,Hi as aY,Rl as aZ,Pl as a_,ft as aa,kf as ab,Te as ac,rt as ad,Ah as ae,co as af,Ri as ag,Ln as ah,GS as ai,Gn as aj,ti as ak,We as al,Dn as am,ht as an,sI as ao,gn as ap,bg as aq,xa as ar,Zm as as,g4 as at,T4 as au,ah as av,Mi as aw,th as ax,Bm as ay,ic as az,an as b,z4 as b$,nC as b0,rC as b1,iC as b2,Yn as b3,jp as b4,wr as b5,dM as b6,lo as b7,wn as b8,AM as b9,jP as bA,xU as bB,_k as bC,Sm as bD,X4 as bE,yE as bF,em as bG,go as bH,V4 as bI,F4 as bJ,cs as bK,m4 as bL,k2 as bM,S4 as bN,Cn as bO,HA as bP,Qr as bQ,Sr as bR,In as bS,Jr as bT,Xn as bU,On as bV,d4 as bW,rn as bX,rs as bY,od as bZ,ei as b_,CM as ba,RM as bb,KS as bc,la as bd,ct as be,EP as bf,PP as bg,wg as bh,vn as bi,Un as bj,Og as bk,jS as bl,Zi as bm,is as bn,JS as bo,QS as bp,$o as bq,Ch as br,Gl as bs,Tg as bt,Hl as bu,Vl as bv,pc as bw,at as bx,Mr as by,dc as bz,ci as c,w2 as c0,h4 as c1,fi as c2,L4 as c3,w4 as c4,A4 as c5,R4 as c6,C4 as c7,u4 as c8,kA as c9,Ym as ca,U4 as cb,B4 as cc,M4 as cd,_4 as ce,v4 as cf,bi as cg,W4 as ch,G4 as ci,Wl as cj,us as ck,Me as cl,Qe as cm,bC as cn,tI as co,yI as cp,$t as cq,nn as d,k4 as e,cA as f,Xe as g,_n as h,Nn as i,qi as j,$_ as k,F2 as l,bl as m,mi as n,ln as o,nb as p,N4 as q,p4 as r,ma as s,mw as t,Pt as u,id as v,Ze as w,Ck as x,Nz as y,f4 as z};
assets/{index-DSZduMTj.js → index-CCs7TWBX.js} RENAMED
@@ -1 +1 @@
1
- import{d as g,C as p,D as f,r as m,c as n,o,a as e,u as k,F as s,E as v,b as h,p as x,k as r,t as a,s as _}from"./index-ZAJnl9Hr.js";import{b as c}from"./route-block-B_A1xBdJ.js";const y="/assets/factorio-P3v2tIeq.png",b={flex:"~ row","items-center":"","gap-2":""},w={grid:"~ cols-1 sm:cols-2 gap-4"},C={"z-1":"","flex-1":""},z={"text-lg":"","font-bold":"",class:"settings-section-title",transition:"all ease-in-out duration-200"},L={text:"sm neutral-500 dark:neutral-400",class:"settings-section-description",transition:"all ease-in-out duration-200"},M=["src"],S={"p-2":""},F={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},I={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},V=g({__name:"index",setup(B){const l=p(),d=f(()=>[{id:"consciousness",name:"Consciousness",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:ghost",to:"/settings/modules/consciousness",configured:!1},{id:"hearing",name:"Hearing",description:"Hearing, speech recognition, etc.",icon:"i-lucide:ear",to:"",configured:!1},{id:"messaging-discord",name:"Discord",description:"Messaging, notifications, etc.",icon:"i-simple-icons:discord",to:"",configured:!1},{id:"speech",name:"Speech",description:"Speech synthesis, etc.",icon:"i-lucide:mic",to:"",configured:!1},{id:"memory-short-term",name:"Short-Term Memory",description:"Short-term memory, etc.",icon:"i-lucide:book",to:"",configured:!1},{id:"memory-long-term",name:"Long-Term Memory",description:"Long-term memory, etc.",icon:"i-lucide:book-copy",to:"",configured:!1},{id:"vision",name:"Vision",description:"Vision, etc.",icon:"i-lucide:eye",to:"",configured:!1},{id:"game-minecraft",name:"Minecraft",description:"Playing Minecraft with you, etc.",icon:"i-vscode-icons:file-type-minecraft",to:"",configured:!1},{id:"game-factorio",name:"Factorio",description:"Playing Factorio with you, etc.",iconImage:y,to:"",configured:!1}]);return(D,i)=>{const u=m("RouterLink");return o(),n(s,null,[e("div",b,[e("button",{onClick:i[0]||(i[0]=t=>k(l).back())},i[1]||(i[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),i[2]||(i[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),e("div",{"text-3xl":"","font-semibold":""}," Modules ")],-1))]),e("div",w,[(o(!0),n(s,null,v(d.value,t=>(o(),n("div",{key:t.id,bg:"neutral-200/50 dark:neutral-700",border:"neutral-100 dark:neutral-700 hover:pink-300 dark:hover:pink-300/40 solid 2","drop-shadow":"none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none",class:"[&_.settings-section-icon]:hover:scale-120 [&_.settings-section-description]:hover:text-pink-400/80 [&_.settings-section-icon]:hover:text-pink-200 [&_.settings-section-icon]:hover:grayscale-0 dark:[&_.settings-section-icon]:hover:text-pink-200/40 dark:[&_.settings-section-title]:hover:text-pink-400","w-full":"","of-hidden":"","rounded-xl":"",flex:"~ col 1"},[h(u,{flex:"~ row",bg:"neutral-50 dark:neutral-800",transition:"all ease-in-out duration-200",relative:"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",to:t.to},{default:x(()=>[e("div",C,[e("div",z,a(t.name),1),e("div",L,[e("span",null,a(t.description),1)])]),typeof t.icon=="string"?(o(),n("div",{key:0,class:_(["settings-section-icon",[t.icon]]),transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-16":"","translate-y-2":"",text:"neutral-400/50 dark:neutral-600/50","grayscale-100":""},null,2)):r("",!0),t.iconImage?(o(),n("img",{key:1,src:t.iconImage,class:"settings-section-icon grayscale-100",transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-16":"","translate-y-2":"",text:"neutral-400/50 dark:neutral-600/50"},null,8,M)):r("",!0)]),_:2},1032,["to"]),e("div",S,[t.configured?(o(),n("div",F)):(o(),n("div",I))])]))),128))]),i[3]||(i[3]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:blocks":"","translate-x-10":"","translate-y-10":""})],-1))],64)}}});typeof c=="function"&&c(V);export{V as default};
 
1
+ import{d as g,C as p,D as f,r as m,c as n,o,a as e,u as k,F as s,E as v,b as h,p as x,k as r,t as a,s as _}from"./index-C9syKmat.js";import{b as c}from"./route-block-B_A1xBdJ.js";const y="/assets/factorio-P3v2tIeq.png",b={flex:"~ row","items-center":"","gap-2":""},w={grid:"~ cols-1 sm:cols-2 gap-4"},C={"z-1":"","flex-1":""},z={"text-lg":"","font-bold":"",class:"settings-section-title",transition:"all ease-in-out duration-200"},L={text:"sm neutral-500 dark:neutral-400",class:"settings-section-description",transition:"all ease-in-out duration-200"},M=["src"],S={"p-2":""},F={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},I={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},V=g({__name:"index",setup(B){const l=p(),d=f(()=>[{id:"consciousness",name:"Consciousness",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:ghost",to:"/settings/modules/consciousness",configured:!1},{id:"hearing",name:"Hearing",description:"Hearing, speech recognition, etc.",icon:"i-lucide:ear",to:"",configured:!1},{id:"messaging-discord",name:"Discord",description:"Messaging, notifications, etc.",icon:"i-simple-icons:discord",to:"",configured:!1},{id:"speech",name:"Speech",description:"Speech synthesis, etc.",icon:"i-lucide:mic",to:"",configured:!1},{id:"memory-short-term",name:"Short-Term Memory",description:"Short-term memory, etc.",icon:"i-lucide:book",to:"",configured:!1},{id:"memory-long-term",name:"Long-Term Memory",description:"Long-term memory, etc.",icon:"i-lucide:book-copy",to:"",configured:!1},{id:"vision",name:"Vision",description:"Vision, etc.",icon:"i-lucide:eye",to:"",configured:!1},{id:"game-minecraft",name:"Minecraft",description:"Playing Minecraft with you, etc.",icon:"i-vscode-icons:file-type-minecraft",to:"",configured:!1},{id:"game-factorio",name:"Factorio",description:"Playing Factorio with you, etc.",iconImage:y,to:"",configured:!1}]);return(D,i)=>{const u=m("RouterLink");return o(),n(s,null,[e("div",b,[e("button",{onClick:i[0]||(i[0]=t=>k(l).back())},i[1]||(i[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),i[2]||(i[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),e("div",{"text-3xl":"","font-semibold":""}," Modules ")],-1))]),e("div",w,[(o(!0),n(s,null,v(d.value,t=>(o(),n("div",{key:t.id,bg:"neutral-200/50 dark:neutral-700",border:"neutral-100 dark:neutral-700 hover:pink-300 dark:hover:pink-300/40 solid 2","drop-shadow":"none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none",class:"[&_.settings-section-icon]:hover:scale-120 [&_.settings-section-description]:hover:text-pink-400/80 [&_.settings-section-icon]:hover:text-pink-200 [&_.settings-section-icon]:hover:grayscale-0 dark:[&_.settings-section-icon]:hover:text-pink-200/40 dark:[&_.settings-section-title]:hover:text-pink-400","w-full":"","of-hidden":"","rounded-xl":"",flex:"~ col 1"},[h(u,{flex:"~ row",bg:"neutral-50 dark:neutral-800",transition:"all ease-in-out duration-200",relative:"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",to:t.to},{default:x(()=>[e("div",C,[e("div",z,a(t.name),1),e("div",L,[e("span",null,a(t.description),1)])]),typeof t.icon=="string"?(o(),n("div",{key:0,class:_(["settings-section-icon",[t.icon]]),transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-16":"","translate-y-2":"",text:"neutral-400/50 dark:neutral-600/50","grayscale-100":""},null,2)):r("",!0),t.iconImage?(o(),n("img",{key:1,src:t.iconImage,class:"settings-section-icon grayscale-100",transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-16":"","translate-y-2":"",text:"neutral-400/50 dark:neutral-600/50"},null,8,M)):r("",!0)]),_:2},1032,["to"]),e("div",S,[t.configured?(o(),n("div",F)):(o(),n("div",I))])]))),128))]),i[3]||(i[3]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:blocks":"","translate-x-10":"","translate-y-10":""})],-1))],64)}}});typeof c=="function"&&c(V);export{V as default};
assets/{index-B6lcf5Ka.js → index-CreFigCn.js} RENAMED
@@ -1 +1 @@
1
- import{d as f,r as x,m,o as r,p as _,a as t,c as u,k as p,f as b,t as a,s as y,v as w,x as C,y as z,l as T,b as l,u as o,z as B,A as L,B as M,T as R,F as S}from"./index-ZAJnl9Hr.js";import"./emotions-DklqG3pM.js";import{b as h}from"./route-block-B_A1xBdJ.js";const V={"z-1":"","flex-1":""},$={"text-lg":"","font-bold":"",class:"settings-section-title",transition:"all ease-in-out duration-200"},D={text:"sm neutral-500 dark:neutral-400",class:"settings-section-description",transition:"all ease-in-out duration-200"},d=f({__name:"IconItem",props:{title:null,description:null,icon:null,iconTemplate:{type:Boolean},to:null},setup(i){return(s,c)=>{const n=x("RouterLink");return r(),m(n,{flex:"~ row",bg:"neutral-50 dark:neutral-800",border:"neutral-100 dark:neutral-700 hover:pink-300 dark:hover:pink-300/40 solid 2","drop-shadow":"none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none",class:"after:mask-[linear-gradient(165deg,white_30%,transparent_50%)] after:bg-dotted-[neutral-200] after:hover:bg-dotted-[pink-300/50] dark:after:bg-dotted-[neutral-700/80] dark:after:hover:bg-dotted-[pink-200/20] after:absolute after:left-0 after:top-0 after:z--1 after:h-full after:w-full after:bg-[size:10px_10px] after:content-empty [&_.settings-section-icon]:hover:scale-120 [&_.settings-section-description]:hover:text-pink-400/80 [&_.settings-section-icon]:hover:text-pink-200 [&_.settings-section-title]:hover:text-pink-500 dark:[&_.settings-section-icon]:hover:text-pink-200/40 dark:[&_.settings-section-title]:hover:text-pink-400",transition:"all ease-in-out duration-200",relative:"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",to:i.to},{default:_(()=>[t("div",V,[t("div",$,a(i.title),1),t("div",D,[t("span",null,a(i.description),1)])]),typeof i.icon=="string"?(r(),u("div",{key:0,class:y(["settings-section-icon",[i.icon]]),transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-24":"","translate-y-4":"",text:"neutral-400/50 dark:neutral-600/50"},null,2)):p("",!0),i.iconTemplate?b(s.$slots,"icon",{key:1}):p("",!0)]),_:3},8,["to"])}}}),N={flex:"~ col gap-4"},I={flex:"~ col gap-4"},F={flex:"~ col gap-4"},U={grid:"~ cols-[150px_1fr]",bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":""},j={text:"sm"},A={flex:"~ row","w-full":"","justify-end":""},E={value:"en-US"},G={value:"zh-CN"},P={bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","cursor-pointer":"","rounded-lg":"","px-4":"","py-3":""},q=["checked","aria-checked"],H={flex:"~ row","w-full":"","items-center":"","gap-1.5":""},J={text:"sm","w-full":"","flex-1":""},K={"select-none":""},O={key:0,"i-solar:moon-stars-bold-duotone":"",transition:"all ease-in-out duration-250"},Q={key:1,"i-solar:sun-fog-bold-duotone":"",transition:"all ease-in-out duration-250"},W=f({__name:"index",setup(i){const{t:s}=w(),c=C(z()),n=T();function v(g){const e=g.target;c.language.value=e.value}return(g,e)=>(r(),u(S,null,[e[3]||(e[3]=t("div",null,[t("h1",{"text-3xl":""}," Settings ")],-1)),t("div",N,[t("div",I,[l(d,{title:"Modules",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:blocks",to:"/settings/modules"}),l(d,{title:"Models",description:"Live2D, VRM, etc.",icon:"i-lucide:person-standing",to:"/settings/models"}),l(d,{title:"Providers",description:"LLMs, speech providers, etc.",icon:"i-lucide:brain",to:"/settings/providers"}),l(d,{title:"Themes",description:"Customize your stage!",icon:"i-lucide:paintbrush",to:"/settings/themes"})]),e[1]||(e[1]=t("div",null,[t("h2",{"text-2xl":""}," General ")],-1)),t("div",F,[t("div",U,[t("div",j,[t("span",null,a(o(s)("settings.language.title")),1)]),t("div",A,[t("select",{class:"w-32",bg:"transparent",text:"sm right neutral-800 dark:neutral-100",transition:"all ease-in-out duration-250",outline:"none",onChange:v},[t("option",E,a(o(s)("settings.language.english")),1),t("option",G,a(o(s)("settings.language.chinese")),1)],32)])]),t("label",P,[B(t("input",{"onUpdate:modelValue":e[0]||(e[0]=k=>M(n)?n.value=k:null),text:"neutral-800 dark:neutral-100",checked:o(n),"aria-checked":o(n),type:"checkbox",hidden:"","appearance-none":"","outline-none":""},null,8,q),[[L,o(n)]]),t("div",H,[t("div",J,[t("span",null,a(o(s)("settings.theme")),1)]),t("div",K,[l(R,{name:"slide-away",mode:"out-in"},{default:_(()=>[o(n)?(r(),u("div",O)):(r(),u("div",Q))]),_:1})])])])]),e[2]||(e[2]=t("div",{fixed:"","bottom-0":"","right-0":"",text:"neutral-100/50 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:cog":"","translate-x-10":"","translate-y-10":""})],-1))])],64))}});typeof h=="function"&&h(W);export{W as default};
 
1
+ import{d as f,r as x,m,o as r,p as _,a as t,c as u,k as p,f as b,t as a,s as y,v as w,x as C,y as z,l as T,b as l,u as o,z as B,A as L,B as M,T as R,F as S}from"./index-C9syKmat.js";import"./emotions-DklqG3pM.js";import{b as h}from"./route-block-B_A1xBdJ.js";const V={"z-1":"","flex-1":""},$={"text-lg":"","font-bold":"",class:"settings-section-title",transition:"all ease-in-out duration-200"},D={text:"sm neutral-500 dark:neutral-400",class:"settings-section-description",transition:"all ease-in-out duration-200"},d=f({__name:"IconItem",props:{title:null,description:null,icon:null,iconTemplate:{type:Boolean},to:null},setup(i){return(s,c)=>{const n=x("RouterLink");return r(),m(n,{flex:"~ row",bg:"neutral-50 dark:neutral-800",border:"neutral-100 dark:neutral-700 hover:pink-300 dark:hover:pink-300/40 solid 2","drop-shadow":"none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none",class:"after:mask-[linear-gradient(165deg,white_30%,transparent_50%)] after:bg-dotted-[neutral-200] after:hover:bg-dotted-[pink-300/50] dark:after:bg-dotted-[neutral-700/80] dark:after:hover:bg-dotted-[pink-200/20] after:absolute after:left-0 after:top-0 after:z--1 after:h-full after:w-full after:bg-[size:10px_10px] after:content-empty [&_.settings-section-icon]:hover:scale-120 [&_.settings-section-description]:hover:text-pink-400/80 [&_.settings-section-icon]:hover:text-pink-200 [&_.settings-section-title]:hover:text-pink-500 dark:[&_.settings-section-icon]:hover:text-pink-200/40 dark:[&_.settings-section-title]:hover:text-pink-400",transition:"all ease-in-out duration-200",relative:"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",to:i.to},{default:_(()=>[t("div",V,[t("div",$,a(i.title),1),t("div",D,[t("span",null,a(i.description),1)])]),typeof i.icon=="string"?(r(),u("div",{key:0,class:y(["settings-section-icon",[i.icon]]),transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-24":"","translate-y-4":"",text:"neutral-400/50 dark:neutral-600/50"},null,2)):p("",!0),i.iconTemplate?b(s.$slots,"icon",{key:1}):p("",!0)]),_:3},8,["to"])}}}),N={flex:"~ col gap-4"},I={flex:"~ col gap-4"},F={flex:"~ col gap-4"},U={grid:"~ cols-[150px_1fr]",bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":""},j={text:"sm"},A={flex:"~ row","w-full":"","justify-end":""},E={value:"en-US"},G={value:"zh-CN"},P={bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","cursor-pointer":"","rounded-lg":"","px-4":"","py-3":""},q=["checked","aria-checked"],H={flex:"~ row","w-full":"","items-center":"","gap-1.5":""},J={text:"sm","w-full":"","flex-1":""},K={"select-none":""},O={key:0,"i-solar:moon-stars-bold-duotone":"",transition:"all ease-in-out duration-250"},Q={key:1,"i-solar:sun-fog-bold-duotone":"",transition:"all ease-in-out duration-250"},W=f({__name:"index",setup(i){const{t:s}=w(),c=C(z()),n=T();function v(g){const e=g.target;c.language.value=e.value}return(g,e)=>(r(),u(S,null,[e[3]||(e[3]=t("div",null,[t("h1",{"text-3xl":""}," Settings ")],-1)),t("div",N,[t("div",I,[l(d,{title:"Modules",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:blocks",to:"/settings/modules"}),l(d,{title:"Models",description:"Live2D, VRM, etc.",icon:"i-lucide:person-standing",to:"/settings/models"}),l(d,{title:"Providers",description:"LLMs, speech providers, etc.",icon:"i-lucide:brain",to:"/settings/providers"}),l(d,{title:"Themes",description:"Customize your stage!",icon:"i-lucide:paintbrush",to:"/settings/themes"})]),e[1]||(e[1]=t("div",null,[t("h2",{"text-2xl":""}," General ")],-1)),t("div",F,[t("div",U,[t("div",j,[t("span",null,a(o(s)("settings.language.title")),1)]),t("div",A,[t("select",{class:"w-32",bg:"transparent",text:"sm right neutral-800 dark:neutral-100",transition:"all ease-in-out duration-250",outline:"none",onChange:v},[t("option",E,a(o(s)("settings.language.english")),1),t("option",G,a(o(s)("settings.language.chinese")),1)],32)])]),t("label",P,[B(t("input",{"onUpdate:modelValue":e[0]||(e[0]=k=>M(n)?n.value=k:null),text:"neutral-800 dark:neutral-100",checked:o(n),"aria-checked":o(n),type:"checkbox",hidden:"","appearance-none":"","outline-none":""},null,8,q),[[L,o(n)]]),t("div",H,[t("div",J,[t("span",null,a(o(s)("settings.theme")),1)]),t("div",K,[l(R,{name:"slide-away",mode:"out-in"},{default:_(()=>[o(n)?(r(),u("div",O)):(r(),u("div",Q))]),_:1})])])])]),e[2]||(e[2]=t("div",{fixed:"","bottom-0":"","right-0":"",text:"neutral-100/50 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:cog":"","translate-x-10":"","translate-y-10":""})],-1))])],64))}});typeof h=="function"&&h(W);export{W as default};
assets/{index-DYLqqjTr.js → index-ns-YwWID.js} RENAMED
@@ -1 +1 @@
1
- import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js";import{_ as E,c as m,o as v,f as P,d as z,g as t,w as H,h as Z,i as q,j as D,a as p,k as L,n as B,l as R,m as U,p as O,b as d,u as A}from"./index-ZAJnl9Hr.js";import"./emotions-DklqG3pM.js";import{_ as X,M as Y,W as G,I as J,a as K}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-CvwJdt6x.js";import{b as I}from"./route-block-B_A1xBdJ.js";import"./queue-vhzj6GnO.js";import"./queues-B9bk8QxX.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-5B91jQYE.js";import"./HeaderLink.vue_vue_type_script_setup_true_lang-0l0qp1dE.js";import"./index-yWYB6MdK.js";import"./providers-VFCWZz0i.js";const Q={},T={class:"cross-background-container"};function ee(_,e){return v(),m("div",T,[P(_.$slots,"default",{},void 0,!0)])}const te=E(Q,[["render",ee],["__scopeId","data-v-ff7347db"]]),ae={class:"relative"},le=["width","height","viewBox"],ne=["d","fill"],oe=z({__name:"AnimatedBackground",props:{verticalOffset:{default:20},height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:"#f8e8f2"},direction:{default:"down"},animationSpeed:{default:.5}},setup(_){const e=_,i=t(null),u=t(null),r=t(0),l=t(e.height),M=t(e.amplitude),a=t(e.waveLength),y=t(""),w=t(e.fillColor),g=t(e.direction);function F(c,n,f,o,b){const s=[],k=Math.ceil(c/o)*o,V=1,W=b==="up"?n-f:f;s.push(`M 0 ${W}`);for(let h=0;h<=k;h+=V){const j=b==="up"?W-f*Math.sin(2*Math.PI*h/o):W+f*Math.sin(2*Math.PI*h/o);s.push(`L ${h} ${j}`)}return b==="up"?(s.push(`L ${k} ${n}`),s.push(`L 0 ${n} Z`)):(s.push(`L ${k} 0`),s.push("L 0 0 Z")),s.join(" ")}function $(){var c;if(i.value){const n=i.value.clientWidth;r.value=n;const o=Math.ceil(n*2/a.value)*a.value;y.value=F(o,l.value,M.value,a.value,g.value),(c=u.value)==null||c.setAttribute("width",o.toString())}}let C;const N=t(e.animationSpeed),x=t(0);function S(){x.value-=N.value,Math.abs(x.value)>=a.value&&(x.value+=a.value),u.value&&(u.value.style.transform=`translateX(${x.value}px)`),C=requestAnimationFrame(S)}return H(()=>[e.height,e.amplitude,e.waveLength,e.fillColor,e.direction],()=>{l.value=e.height,M.value=e.amplitude,a.value=e.waveLength,w.value=e.fillColor,g.value=e.direction,$()},{immediate:!0}),Z("resize",$),q(()=>{$(),S()}),D(()=>{cancelAnimationFrame(C)}),(c,n)=>(v(),m("div",ae,[P(c.$slots,"default"),p("div",{ref_key:"container",ref:i,absolute:"","left-0":"","right-0":"","top-0":"","w-full":"","overflow-hidden":""},[g.value==="down"?(v(),m("div",{key:0,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0),(v(),m("svg",{ref_key:"svg",ref:u,width:a.value*Math.ceil(r.value*2/a.value),height:l.value,viewBox:`0 0 ${a.value*Math.ceil(r.value*2/a.value)} ${l.value}`,xmlns:"http://www.w3.org/2000/svg",h:"[100%]",w:"[200%]",style:{willChange:"transform"}},[p("path",{d:y.value,fill:w.value},null,8,ne)],8,le)),g.value==="up"?(v(),m("div",{key:1,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0)],512)]))}}),se={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},ie={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},ue=z({__name:"index",setup(_){const e=R(),i=t(!1);function u(r){i.value=r}return(r,l)=>(v(),U(te,null,{default:O(()=>[d(oe,{"fill-color":A(e)?"#563544":"#f8e8f2"},{default:O(()=>[p("div",se,[p("div",null,[d(X,{class:"flex <md:hidden",p2:""}),d(Y,{class:"hidden <md:block"})]),p("div",ie,[d(A(G),{"flex-1":"","min-w":"1/2",paused:i.value},null,8,["paused"]),d(J,{class:"flex <md:hidden","flex-1":"","max-w":"500px","min-w":"30%"}),d(K,{class:"hidden <md:block",mx2:"",mb2:"",onSettingsOpen:u})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof I=="function"&&I(ue);export{ue as default};
 
1
+ import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js";import{_ as E,c as m,o as v,f as P,d as z,g as t,w as H,h as Z,i as q,j as D,a as p,k as L,n as B,l as R,m as U,p as O,b as d,u as A}from"./index-C9syKmat.js";import"./emotions-DklqG3pM.js";import{_ as X,M as Y,W as G,I as J,a as K}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C-AcXYQs.js";import{b as I}from"./route-block-B_A1xBdJ.js";import"./queue-C_pdx0nC.js";import"./queues-DX8_B84M.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-BRAn0QOS.js";import"./HeaderLink.vue_vue_type_script_setup_true_lang-C1ZGRUE3.js";import"./index-C6reCA2R.js";import"./providers-kZHh7EE9.js";const Q={},T={class:"cross-background-container"};function ee(_,e){return v(),m("div",T,[P(_.$slots,"default",{},void 0,!0)])}const te=E(Q,[["render",ee],["__scopeId","data-v-ff7347db"]]),ae={class:"relative"},le=["width","height","viewBox"],ne=["d","fill"],oe=z({__name:"AnimatedBackground",props:{verticalOffset:{default:20},height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:"#f8e8f2"},direction:{default:"down"},animationSpeed:{default:.5}},setup(_){const e=_,i=t(null),u=t(null),r=t(0),l=t(e.height),M=t(e.amplitude),a=t(e.waveLength),y=t(""),w=t(e.fillColor),g=t(e.direction);function F(c,n,f,o,b){const s=[],k=Math.ceil(c/o)*o,V=1,W=b==="up"?n-f:f;s.push(`M 0 ${W}`);for(let h=0;h<=k;h+=V){const j=b==="up"?W-f*Math.sin(2*Math.PI*h/o):W+f*Math.sin(2*Math.PI*h/o);s.push(`L ${h} ${j}`)}return b==="up"?(s.push(`L ${k} ${n}`),s.push(`L 0 ${n} Z`)):(s.push(`L ${k} 0`),s.push("L 0 0 Z")),s.join(" ")}function $(){var c;if(i.value){const n=i.value.clientWidth;r.value=n;const o=Math.ceil(n*2/a.value)*a.value;y.value=F(o,l.value,M.value,a.value,g.value),(c=u.value)==null||c.setAttribute("width",o.toString())}}let C;const N=t(e.animationSpeed),x=t(0);function S(){x.value-=N.value,Math.abs(x.value)>=a.value&&(x.value+=a.value),u.value&&(u.value.style.transform=`translateX(${x.value}px)`),C=requestAnimationFrame(S)}return H(()=>[e.height,e.amplitude,e.waveLength,e.fillColor,e.direction],()=>{l.value=e.height,M.value=e.amplitude,a.value=e.waveLength,w.value=e.fillColor,g.value=e.direction,$()},{immediate:!0}),Z("resize",$),q(()=>{$(),S()}),D(()=>{cancelAnimationFrame(C)}),(c,n)=>(v(),m("div",ae,[P(c.$slots,"default"),p("div",{ref_key:"container",ref:i,absolute:"","left-0":"","right-0":"","top-0":"","w-full":"","overflow-hidden":""},[g.value==="down"?(v(),m("div",{key:0,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0),(v(),m("svg",{ref_key:"svg",ref:u,width:a.value*Math.ceil(r.value*2/a.value),height:l.value,viewBox:`0 0 ${a.value*Math.ceil(r.value*2/a.value)} ${l.value}`,xmlns:"http://www.w3.org/2000/svg",h:"[100%]",w:"[200%]",style:{willChange:"transform"}},[p("path",{d:y.value,fill:w.value},null,8,ne)],8,le)),g.value==="up"?(v(),m("div",{key:1,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0)],512)]))}}),se={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},ie={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},ue=z({__name:"index",setup(_){const e=R(),i=t(!1);function u(r){i.value=r}return(r,l)=>(v(),U(te,null,{default:O(()=>[d(oe,{"fill-color":A(e)?"#563544":"#f8e8f2"},{default:O(()=>[p("div",se,[p("div",null,[d(X,{class:"flex <md:hidden",p2:""}),d(Y,{class:"hidden <md:block"})]),p("div",ie,[d(A(G),{"flex-1":"","min-w":"1/2",paused:i.value},null,8,["paused"]),d(J,{class:"flex <md:hidden","flex-1":"","max-w":"500px","min-w":"30%"}),d(K,{class:"hidden <md:block",mx2:"",mb2:"",onSettingsOpen:u})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof I=="function"&&I(ue);export{ue as default};
assets/{index-DpHRHqJl.js → index-oyiFuDuq.js} RENAMED
@@ -1 +1 @@
1
- import{d as r,C as a,c as l,o as s,a as t,u as i,F as d}from"./index-ZAJnl9Hr.js";import{b as n}from"./route-block-B_A1xBdJ.js";const u={flex:"~ row","items-center":"","gap-2":""},f=r({__name:"index",setup(p){const o=a();return(x,e)=>(s(),l(d,null,[t("div",u,[t("button",{onClick:e[0]||(e[0]=m=>i(o).back())},e[1]||(e[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e[2]||(e[2]=t("h1",{relative:""},[t("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[t("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),t("div",{"text-3xl":"","font-semibold":""}," Models ")],-1))]),e[3]||(e[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:person-standing":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(f);export{f as default};
 
1
+ import{d as r,C as a,c as l,o as s,a as t,u as i,F as d}from"./index-C9syKmat.js";import{b as n}from"./route-block-B_A1xBdJ.js";const u={flex:"~ row","items-center":"","gap-2":""},f=r({__name:"index",setup(p){const o=a();return(x,e)=>(s(),l(d,null,[t("div",u,[t("button",{onClick:e[0]||(e[0]=m=>i(o).back())},e[1]||(e[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e[2]||(e[2]=t("h1",{relative:""},[t("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[t("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),t("div",{"text-3xl":"","font-semibold":""}," Models ")],-1))]),e[3]||(e[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:person-standing":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(f);export{f as default};
assets/{messages-CPR_GqN1.js → messages-C0ZSpEN4.js} RENAMED
@@ -1 +1 @@
1
- import{b as m,_ as g,l as _}from"./queues-B9bk8QxX.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js";import"./emotions-DklqG3pM.js";import{u as v}from"./queue-vhzj6GnO.js";import{d as b,g as t,c as l,o as u,a as e,b as x,u as k,t as c,F as h,E as z}from"./index-ZAJnl9Hr.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},V={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},y={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=b({__name:"messages",setup(Q){const s=t(""),d=t([]),a=t(!1),p=v({handlers:[async i=>{d.value.push(i.data)}]}),r=m(p);async function f(){a.value=!0,r.add(s.value),r.add(_),s.value="",a.value=!1}return(i,n)=>(u(),l("div",w,[e("div",S,[x(k(g),{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:f},null,8,["modelValue"]),e("button",V,c(a.value?"Processing...":"Send"),1)]),e("div",y,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(u(!0),l(h,null,z(d.value,o=>(u(),l("div",{key:o},[e("div",null,c(o),1)]))),128))])])]))}});export{I as default};
 
1
+ import{b as m,_ as g,l as _}from"./queues-DX8_B84M.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js";import"./emotions-DklqG3pM.js";import{u as v}from"./queue-C_pdx0nC.js";import{d as b,g as t,c as l,o as u,a as e,b as x,u as k,t as c,F as h,E as z}from"./index-C9syKmat.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},V={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},y={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=b({__name:"messages",setup(Q){const s=t(""),d=t([]),a=t(!1),p=v({handlers:[async i=>{d.value.push(i.data)}]}),r=m(p);async function f(){a.value=!0,r.add(s.value),r.add(_),s.value="",a.value=!1}return(i,n)=>(u(),l("div",w,[e("div",S,[x(k(g),{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:f},null,8,["modelValue"]),e("button",V,c(a.value?"Processing...":"Send"),1)]),e("div",y,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(u(!0),l(h,null,z(d.value,o=>(u(),l("div",{key:o},[e("div",null,c(o),1)]))),128))])])]))}});export{I as default};
assets/{openrouter-DPj3nOdo.js → openrouter-CYjSnuEY.js} RENAMED
@@ -1 +1 @@
1
- import{d as b,C as g,x as w,g as i,H as k,i as z,w as y,c as C,o as U,a as e,u as s,b as V,z as d,I as K,J as p,p as v,s as R,K as B,F as A}from"./index-ZAJnl9Hr.js";import{_ as T}from"./Collapsable.vue_vue_type_script_setup_true_lang-5B91jQYE.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js";import"./emotions-DklqG3pM.js";import{u as I}from"./providers-VFCWZz0i.js";const M={flex:"~ row","items-center":"","gap-2":""},N={grid:"~ cols-2 gap-4"},S=["onClick"],F={"mt-4":""},L={grid:"~ cols-2 gap-4"},J=b({__name:"openrouter",setup(O){var l,u;const x=g(),f=I(),{providers:n}=w(f),r=i(((l=n.value["openrouter-ai"])==null?void 0:l.apiKey)||""),a=i(((u=n.value["openrouter-ai"])==null?void 0:u.baseUrl)||""),m=i(!1),c=k(m);return z(()=>{n.value["openrouter-ai"]||(n.value["openrouter-ai"]={baseUrl:"https://openrouter.ai/api/v1/"})}),y([r,a],()=>{n.value["openrouter-ai"]={apiKey:r.value,baseUrl:a.value||"https://openrouter.ai/api/v1/"}}),(P,t)=>(U(),C(A,null,[e("div",M,[e("button",{onClick:t[0]||(t[0]=o=>s(x).back())},t[3]||(t[3]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),t[4]||(t[4]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Provider")]),e("div",{"text-3xl":"","font-semibold":""}," OpenRouter ")],-1))]),e("form",{flex:"~ col gap-4",onSubmit:B(()=>{},["prevent"])},[t[9]||(t[9]=e("div",null,[e("h2",{"text-2xl":""},[e("span",null,"Basic")])],-1)),e("div",null,[e("label",N,[t[5]||(t[5]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"},[K(" API Key "),e("span",{class:"text-red-500"},"*")]),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400","text-nowrap":""}," API Key for OpenRouter ")],-1)),d(e("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>r.value=o),type:"password",border:"zinc-300 dark:zinc-800 solid 1 focus:zinc-400 dark:focus:zinc-600",transition:"border duration-250 ease-in-out","w-full":"",rounded:"","px-2":"","py-1":"","text-nowrap":"","text-sm":"","outline-none":"",placeholder:"sk-or-..."},null,512),[[p,r.value]])])]),V(s(T),{"w-full":""},{trigger:v(o=>[e("button",{transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:()=>o.setVisible(!o.visible)&&s(c)()},[t[7]||(t[7]=e("h2",{"text-2xl":""},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:R({"rotate-180":o.visible})},t[6]||(t[6]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,S)]),default:v(()=>[e("div",F,[e("label",L,[t[8]||(t[8]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Base URL "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Custom base URL (optional) ")],-1)),d(e("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>a.value=o),type:"text",border:"zinc-300 dark:zinc-800 solid 1 focus:zinc-400 dark:focus:zinc-600",transition:"border duration-250 ease-in-out","w-full":"",rounded:"","px-2":"","py-1":"","text-nowrap":"","text-sm":"","outline-none":"",placeholder:"https://openrouter.ai/api/v1/"},null,512),[[p,a.value]])])])]),_:1})],32),t[10]||(t[10]=e("div",{fixed:"","bottom-0":"","right-0":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lobe-icons:openrouter":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});export{J as default};
 
1
+ import{d as b,C as g,x as w,g as i,H as k,i as z,w as y,c as C,o as U,a as e,u as s,b as V,z as d,I as K,J as p,p as v,s as R,K as B,F as A}from"./index-C9syKmat.js";import{_ as T}from"./Collapsable.vue_vue_type_script_setup_true_lang-BRAn0QOS.js";import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js";import"./emotions-DklqG3pM.js";import{u as I}from"./providers-kZHh7EE9.js";const M={flex:"~ row","items-center":"","gap-2":""},N={grid:"~ cols-2 gap-4"},S=["onClick"],F={"mt-4":""},L={grid:"~ cols-2 gap-4"},J=b({__name:"openrouter",setup(O){var l,u;const x=g(),f=I(),{providers:n}=w(f),r=i(((l=n.value["openrouter-ai"])==null?void 0:l.apiKey)||""),a=i(((u=n.value["openrouter-ai"])==null?void 0:u.baseUrl)||""),m=i(!1),c=k(m);return z(()=>{n.value["openrouter-ai"]||(n.value["openrouter-ai"]={baseUrl:"https://openrouter.ai/api/v1/"})}),y([r,a],()=>{n.value["openrouter-ai"]={apiKey:r.value,baseUrl:a.value||"https://openrouter.ai/api/v1/"}}),(P,t)=>(U(),C(A,null,[e("div",M,[e("button",{onClick:t[0]||(t[0]=o=>s(x).back())},t[3]||(t[3]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),t[4]||(t[4]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-500"},"Provider")]),e("div",{"text-3xl":"","font-semibold":""}," OpenRouter ")],-1))]),e("form",{flex:"~ col gap-4",onSubmit:B(()=>{},["prevent"])},[t[9]||(t[9]=e("div",null,[e("h2",{"text-2xl":""},[e("span",null,"Basic")])],-1)),e("div",null,[e("label",N,[t[5]||(t[5]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"},[K(" API Key "),e("span",{class:"text-red-500"},"*")]),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400","text-nowrap":""}," API Key for OpenRouter ")],-1)),d(e("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>r.value=o),type:"password",border:"zinc-300 dark:zinc-800 solid 1 focus:zinc-400 dark:focus:zinc-600",transition:"border duration-250 ease-in-out","w-full":"",rounded:"","px-2":"","py-1":"","text-nowrap":"","text-sm":"","outline-none":"",placeholder:"sk-or-..."},null,512),[[p,r.value]])])]),V(s(T),{"w-full":""},{trigger:v(o=>[e("button",{transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:()=>o.setVisible(!o.visible)&&s(c)()},[t[7]||(t[7]=e("h2",{"text-2xl":""},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:R({"rotate-180":o.visible})},t[6]||(t[6]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,S)]),default:v(()=>[e("div",F,[e("label",L,[t[8]||(t[8]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Base URL "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Custom base URL (optional) ")],-1)),d(e("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>a.value=o),type:"text",border:"zinc-300 dark:zinc-800 solid 1 focus:zinc-400 dark:focus:zinc-600",transition:"border duration-250 ease-in-out","w-full":"",rounded:"","px-2":"","py-1":"","text-nowrap":"","text-sm":"","outline-none":"",placeholder:"https://openrouter.ai/api/v1/"},null,512),[[p,a.value]])])])]),_:1})],32),t[10]||(t[10]=e("div",{fixed:"","bottom-0":"","right-0":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lobe-icons:openrouter":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});export{J as default};
assets/{providers-VFCWZz0i.js → providers-kZHh7EE9.js} RENAMED
@@ -1 +1 @@
1
- import{L as a,cg as r,D as u}from"./index-ZAJnl9Hr.js";const d=a("providers",()=>{const e=r("settings/credentials/providers",{}),t=r("settings/credentials/coreControllerProvider","openai"),s=r("settings/credentials/audioSynthesisProvider","elevenlabs"),o=u(()=>!!e.value["openrouter-ai"].baseUrl&&!!e.value["openrouter-ai"].apiKey);function n(i){switch(i){case"openrouter-ai":return o.value;default:return!1}}return{providers:e,coreControllerProvider:t,audioSynthesisProvider:s,configuredForOpenRouter:o,configuredFor:n}});export{d as u};
 
1
+ import{L as a,cg as r,D as u}from"./index-C9syKmat.js";const d=a("providers",()=>{const e=r("settings/credentials/providers",{}),t=r("settings/credentials/coreControllerProvider","openai"),s=r("settings/credentials/audioSynthesisProvider","elevenlabs"),o=u(()=>!!e.value["openrouter-ai"].baseUrl&&!!e.value["openrouter-ai"].apiKey);function n(i){switch(i){case"openrouter-ai":return o.value;default:return!1}}return{providers:e,coreControllerProvider:t,audioSynthesisProvider:s,configuredForOpenRouter:o,configuredFor:n}});export{d as u};
assets/{queue-vhzj6GnO.js → queue-C_pdx0nC.js} RENAMED
@@ -1 +1 @@
1
- import{g as l}from"./index-ZAJnl9Hr.js";function m(f){const t=l([]),a=l(!1),d={add:[],pick:[],processing:[],error:[],processed:[],done:[]},s={};function c(n,e){d[n].push(e)}function r(n,...e){d[n].forEach(i=>{i(...e)})}function h(n,e){s[n]=s[n]||[],s[n].push(e)}function p(n,...e){(s[n]||[]).forEach(i=>{i(...e)})}async function v(n){t.value.push(n),r("add",n)}function g(){const n=t.value.shift();if(n)return r("pick",n),n}async function u(){if(a.value)return;const n=g();if(n){a.value=!0;for(const e of f.handlers){r("processing",n,e);try{const o=await e({data:n,itemsToBeProcessed:()=>t.value.length,emit:p});r("processed",n,o,e)}catch(o){r("error",n,o,e);continue}}a.value=!1,r("done",n),t.value.length>0&&u()}}return c("add",u),c("done",u),{add:v,on:c,onHandlerEvent:h,queue:t}}export{m as u};
 
1
+ import{g as l}from"./index-C9syKmat.js";function m(f){const t=l([]),a=l(!1),d={add:[],pick:[],processing:[],error:[],processed:[],done:[]},s={};function c(n,e){d[n].push(e)}function r(n,...e){d[n].forEach(i=>{i(...e)})}function h(n,e){s[n]=s[n]||[],s[n].push(e)}function p(n,...e){(s[n]||[]).forEach(i=>{i(...e)})}async function v(n){t.value.push(n),r("add",n)}function g(){const n=t.value.shift();if(n)return r("pick",n),n}async function u(){if(a.value)return;const n=g();if(n){a.value=!0;for(const e of f.handlers){r("processing",n,e);try{const o=await e({data:n,itemsToBeProcessed:()=>t.value.length,emit:p});r("processed",n,o,e)}catch(o){r("error",n,o,e);continue}}a.value=!1,r("done",n),t.value.length>0&&u()}}return c("add",u),c("done",u),{add:v,on:c,onHandlerEvent:h,queue:t}}export{m as u};
assets/{queue-DzzOMrys.js → queue-DLBJqV7W.js} RENAMED
@@ -1 +1 @@
1
- import{u as o}from"./queue-vhzj6GnO.js";import{d as v,g as h,i as g,c as k,o as w,a as I}from"./index-ZAJnl9Hr.js";const Q=v({__name:"queue",setup(P){function i(e){return new Promise(a=>setTimeout(a,e))}const n=h(""),d=o({handlers:[async e=>{console.log("ready to play speech audio for",e)}]}),u=o({handlers:[async e=>{console.log("ready to stream speech audio for",e),d.add(e.data)}]}),c=o({handlers:[async e=>{const a=[".","?","!"];let s=!1;for(const t of a){if(!e.data.includes(t))continue;const r=e.data.indexOf(t),p=e.data.slice(0,r+1),y=e.data.slice(r+1);n.value+=p,u.add(n.value.trim()),n.value=y,s=!0}s||(n.value+=e.data)}]}),l=["Hello"," N","eko","! I"," am"," an"," AI"," assistant"," trained"," to"," help"," with"," a"," variety"," of"," tasks"," such"," as"," answering"," questions",","," providing"," information",","," giving"," recommendations",","," and"," more",". How"," can"," I"," assist"," you"," today","?","Hello"," N","eko",","," I"," am"," an"," AI"," assistant","."," I"," can"," help"," answer"," questions",","," provide"," information",","," assist"," with"," tasks",","," and"," engage"," in"," conversation","."," How"," can"," I"," assist"," you"," today","?"];async function f(){for(const e of l)await i(100),c.add(e)}async function m(){f()}return g(()=>{m()}),(e,a)=>(w(),k("div",null,a[0]||(a[0]=[I("div",null,null,-1)])))}});export{Q as default};
 
1
+ import{u as o}from"./queue-C_pdx0nC.js";import{d as v,g as h,i as g,c as k,o as w,a as I}from"./index-C9syKmat.js";const Q=v({__name:"queue",setup(P){function i(e){return new Promise(a=>setTimeout(a,e))}const n=h(""),d=o({handlers:[async e=>{console.log("ready to play speech audio for",e)}]}),u=o({handlers:[async e=>{console.log("ready to stream speech audio for",e),d.add(e.data)}]}),c=o({handlers:[async e=>{const a=[".","?","!"];let s=!1;for(const t of a){if(!e.data.includes(t))continue;const r=e.data.indexOf(t),p=e.data.slice(0,r+1),y=e.data.slice(r+1);n.value+=p,u.add(n.value.trim()),n.value=y,s=!0}s||(n.value+=e.data)}]}),l=["Hello"," N","eko","! I"," am"," an"," AI"," assistant"," trained"," to"," help"," with"," a"," variety"," of"," tasks"," such"," as"," answering"," questions",","," providing"," information",","," giving"," recommendations",","," and"," more",". How"," can"," I"," assist"," you"," today","?","Hello"," N","eko",","," I"," am"," an"," AI"," assistant","."," I"," can"," help"," answer"," questions",","," provide"," information",","," assist"," with"," tasks",","," and"," engage"," in"," conversation","."," How"," can"," I"," assist"," you"," today","?"];async function f(){for(const e of l)await i(100),c.add(e)}async function m(){f()}return g(()=>{m()}),(e,a)=>(w(),k("div",null,a[0]||(a[0]=[I("div",null,null,-1)])))}});export{Q as default};
assets/{queues-B9bk8QxX.js → queues-DX8_B84M.js} RENAMED
@@ -1,2 +1,2 @@
1
- import{d as g,ce as h,cf as y,g as d,i as k,z as E,J as M,o as x,c as w,n as b,bK as T}from"./index-ZAJnl9Hr.js";import{E as m}from"./emotions-DklqG3pM.js";import{u as c}from"./queue-vhzj6GnO.js";const H=g({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:h(["submit"],["update:modelValue"]),setup(r,{emit:n}){const t=n,a=y(r,"modelValue"),e=d(),s=d({height:"auto",overflowY:"hidden"});function u(o){o.target instanceof HTMLTextAreaElement&&(o.target.style.height="auto",o.target.style.height=`${o.target.scrollHeight}px`)}function v(o){var i,l;if(o.target instanceof HTMLTextAreaElement)if(o.code==="Enter"&&o.shiftKey){o.preventDefault();const f=(i=o.target)==null?void 0:i.selectionStart,p=(l=o.target)==null?void 0:l.selectionEnd;a.value=`${a.value.substring(0,f)}
2
  ${a.value.substring(p)}`,s.value.height="0",T().then(()=>{e.value&&(e.value.selectionStart=e.value.selectionEnd=f+1,s.value.height=`${e.value.scrollHeight}px`)})}else o.code==="Enter"&&(o.preventDefault(),t("submit",a.value))}return k(()=>{e.value&&(s.value.height=`${e.value.scrollHeight}px`)}),(o,i)=>E((x(),w("textarea",{ref_key:"textareaRef",ref:e,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),style:b(s.value),onInput:u,onKeydown:v},null,36)),[[M,a.value]])}}),_="<|llm_inference_end|>";function L(r){function n(t){for(const a of m)if(t.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return c({handlers:[async t=>{if(m.includes(t.data)){t.emit("emotion",t.data),await r.add(t.data);return}{const{ok:a,emotion:e}=n(t.data);a&&(t.emit("emotion",e),await r.add(e))}}]})}function N(){function r(t){if(!/<\|DELAY:\d+\|>/i.test(t))return{ok:!1,delay:0};const a=/<\|DELAY:(\d+)\|>/i.exec(t),e=a==null?void 0:a[1];if(!e)return{ok:!1,delay:0};const s=Number.parseFloat(e);return s<=0||Number.isNaN(s)?{ok:!0,delay:0}:{ok:!0,delay:s}}function n(t){return new Promise(a=>setTimeout(a,t))}return c({handlers:[async t=>{const{ok:a,delay:e}=r(t.data);a&&(t.emit("delay",e),await n(e*1e3))}]})}function V(r){const n=d("");return c({handlers:[async t=>{if(t.data===_){const e=n.value.trim();e&&await r.add(e),n.value="";return}const a=/[.?!]/;for(n.value+=t.data;n.value;){const e=a.exec(n.value);if(!e||typeof e.index>"u")break;const s=n.value.slice(0,e.index+1),u=n.value.slice(e.index+1);await r.add(s),n.value=u}}]})}export{H as _,L as a,V as b,_ as l,N as u};
 
1
+ import{d as g,ce as h,cf as y,g as d,i as k,z as E,J as M,o as x,c as w,n as b,bK as T}from"./index-C9syKmat.js";import{E as m}from"./emotions-DklqG3pM.js";import{u as c}from"./queue-C_pdx0nC.js";const H=g({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:h(["submit"],["update:modelValue"]),setup(r,{emit:n}){const t=n,a=y(r,"modelValue"),e=d(),s=d({height:"auto",overflowY:"hidden"});function u(o){o.target instanceof HTMLTextAreaElement&&(o.target.style.height="auto",o.target.style.height=`${o.target.scrollHeight}px`)}function v(o){var i,l;if(o.target instanceof HTMLTextAreaElement)if(o.code==="Enter"&&o.shiftKey){o.preventDefault();const f=(i=o.target)==null?void 0:i.selectionStart,p=(l=o.target)==null?void 0:l.selectionEnd;a.value=`${a.value.substring(0,f)}
2
  ${a.value.substring(p)}`,s.value.height="0",T().then(()=>{e.value&&(e.value.selectionStart=e.value.selectionEnd=f+1,s.value.height=`${e.value.scrollHeight}px`)})}else o.code==="Enter"&&(o.preventDefault(),t("submit",a.value))}return k(()=>{e.value&&(s.value.height=`${e.value.scrollHeight}px`)}),(o,i)=>E((x(),w("textarea",{ref_key:"textareaRef",ref:e,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),style:b(s.value),onInput:u,onKeydown:v},null,36)),[[M,a.value]])}}),_="<|llm_inference_end|>";function L(r){function n(t){for(const a of m)if(t.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return c({handlers:[async t=>{if(m.includes(t.data)){t.emit("emotion",t.data),await r.add(t.data);return}{const{ok:a,emotion:e}=n(t.data);a&&(t.emit("emotion",e),await r.add(e))}}]})}function N(){function r(t){if(!/<\|DELAY:\d+\|>/i.test(t))return{ok:!1,delay:0};const a=/<\|DELAY:(\d+)\|>/i.exec(t),e=a==null?void 0:a[1];if(!e)return{ok:!1,delay:0};const s=Number.parseFloat(e);return s<=0||Number.isNaN(s)?{ok:!0,delay:0}:{ok:!0,delay:s}}function n(t){return new Promise(a=>setTimeout(a,t))}return c({handlers:[async t=>{const{ok:a,delay:e}=r(t.data);a&&(t.emit("delay",e),await n(e*1e3))}]})}function V(r){const n=d("");return c({handlers:[async t=>{if(t.data===_){const e=n.value.trim();e&&await r.add(e),n.value="";return}const a=/[.?!]/;for(n.value+=t.data;n.value;){const e=a.exec(n.value);if(!e||typeof e.index>"u")break;const s=n.value.slice(0,e.index+1),u=n.value.slice(e.index+1);await r.add(s),n.value=u}}]})}export{H as _,L as a,V as b,_ as l,N as u};
assets/{stage-f1sqLDwM.js → stage-CxX9pQ4e.js} RENAMED
@@ -1 +1 @@
1
- import{d as p,e as s,c,b as d,r as i,n as m,u as e,o as l}from"./index-ZAJnl9Hr.js";const x=p({__name:"stage",setup(u){const{top:t,right:o,bottom:a,left:n}=s();return(f,_)=>{const r=i("RouterView");return l(),c("main",{text:"gray-700 dark:gray-200","h-full":"","font-cuteen":"",style:m({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{x as default};
 
1
+ import{d as p,e as s,c,b as d,r as i,n as m,u as e,o as l}from"./index-C9syKmat.js";const x=p({__name:"stage",setup(u){const{top:t,right:o,bottom:a,left:n}=s();return(f,_)=>{const r=i("RouterView");return l(),c("main",{text:"gray-700 dark:gray-200","h-full":"","font-cuteen":"",style:m({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{x as default};
assets/{v2-quoG19Ez.js → v2-C7lI0fGL.js} RENAMED
@@ -1 +1 @@
1
- import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-q07C-NNu.js";import"./emotions-DklqG3pM.js";import{_ as t,M as i,W as s,I as r,a as m}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-CvwJdt6x.js";import{d,c,o as l,a as o,b as e,u as n}from"./index-ZAJnl9Hr.js";import{b as a}from"./route-block-B_A1xBdJ.js";import"./queue-vhzj6GnO.js";import"./queues-B9bk8QxX.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-5B91jQYE.js";import"./HeaderLink.vue_vue_type_script_setup_true_lang-0l0qp1dE.js";import"./index-yWYB6MdK.js";import"./providers-VFCWZz0i.js";const p={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},f={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},_=d({__name:"v2",setup(x){return(h,v)=>(l(),c("div",null,[o("div",p,[o("div",null,[e(t,{class:"flex <md:hidden",p2:""}),e(i,{class:"hidden <md:block"})]),o("div",f,[e(n(s),{"flex-1":"","min-w":"1/2"}),e(r,{class:"flex <md:hidden","flex-1":"","max-w":"30%"}),e(m,{class:"hidden <md:block",mx2:"",mb2:""})])])]))}});typeof a=="function"&&a(_);export{_ as default};
 
1
+ import"./Stage.vue_vue_type_style_index_0_scoped_dc801a8a_lang-j0nM_wkh.js";import"./emotions-DklqG3pM.js";import{_ as t,M as i,W as s,I as r,a as m}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C-AcXYQs.js";import{d,c,o as l,a as o,b as e,u as n}from"./index-C9syKmat.js";import{b as a}from"./route-block-B_A1xBdJ.js";import"./queue-C_pdx0nC.js";import"./queues-DX8_B84M.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-BRAn0QOS.js";import"./HeaderLink.vue_vue_type_script_setup_true_lang-C1ZGRUE3.js";import"./index-C6reCA2R.js";import"./providers-kZHh7EE9.js";const p={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},f={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},_=d({__name:"v2",setup(x){return(h,v)=>(l(),c("div",null,[o("div",p,[o("div",null,[e(t,{class:"flex <md:hidden",p2:""}),e(i,{class:"hidden <md:block"})]),o("div",f,[e(n(s),{"flex-1":"","min-w":"1/2"}),e(r,{class:"flex <md:hidden","flex-1":"","max-w":"30%"}),e(m,{class:"hidden <md:block",mx2:"",mb2:""})])])]))}});typeof a=="function"&&a(_);export{_ as default};
index.html CHANGED
@@ -23,7 +23,7 @@
23
  src="/remote-assets/page-external-data/js/script.js"
24
  ></script>
25
  <script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
26
- <script type="module" crossorigin src="/assets/index-ZAJnl9Hr.js"></script>
27
  <link rel="stylesheet" crossorigin href="/assets/index-C4HQu1OJ.css">
28
  </head>
29
  <body class="font-sans">
 
23
  src="/remote-assets/page-external-data/js/script.js"
24
  ></script>
25
  <script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
26
+ <script type="module" crossorigin src="/assets/index-C9syKmat.js"></script>
27
  <link rel="stylesheet" crossorigin href="/assets/index-C4HQu1OJ.css">
28
  </head>
29
  <body class="font-sans">